diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/_...all_-Cmya1G6w.js b/assets/_...all_-Cmya1G6w.js new file mode 100644 index 0000000..4c24ef8 --- /dev/null +++ b/assets/_...all_-Cmya1G6w.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{d as c,r as i,g as u,h as d,j as m,b as s,a as n,w as f,k as _,f as x,o as v,e as p,t as w,u as N,_ as g}from"./index-DD358c5I.js";const k={class:"min-h-screen flex flex-col items-center justify-center"},B={class:"flex flex-col items-center gap-4"},V=c({__name:"[...all]",setup(h){const a=_(),e=i({inter:Number.NaN,countdown:5});u(()=>{e.value.inter&&window.clearInterval(e.value.inter)}),d(()=>{e.value.inter=window.setInterval(()=>{e.value.countdown--,e.value.countdown===0&&(e.value.inter&&window.clearInterval(e.value.inter),o())},1e3)});function o(){a.push("/")}return(I,t)=>{const l=g,r=x;return v(),m("div",k,[s(l,{name:"404",class:"text-[300px] -mt-9xl"}),n("div",B,[t[0]||(t[0]=n("h1",{class:"m-0 text-6xl font-sans"}," 404 ",-1)),t[1]||(t[1]=n("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你访问的页面不存在 ",-1)),s(r,{onClick:o},{default:f(()=>[p(w(N(e).countdown)+" 秒后,返回首页 ",1)]),_:1})])])}}});export{V as default}; diff --git a/assets/_...all_-Cmya1G6w.js.br b/assets/_...all_-Cmya1G6w.js.br new file mode 100644 index 0000000..142d7a7 Binary files /dev/null and b/assets/_...all_-Cmya1G6w.js.br differ diff --git a/assets/_...all_-Cmya1G6w.js.gz b/assets/_...all_-Cmya1G6w.js.gz new file mode 100644 index 0000000..a2ef9e2 Binary files /dev/null and b/assets/_...all_-Cmya1G6w.js.gz differ diff --git a/assets/animation-bGlipfm8.js b/assets/animation-bGlipfm8.js new file mode 100644 index 0000000..d1e02ee --- /dev/null +++ b/assets/animation-bGlipfm8.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as S}from"./index-DkxdnFkg.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as $,r as i,c as y,w as o,m as _,o as w,a as m,b as n,e as p,u as a,i as O,t as c,ac as V,j as X,p as Y,_ as j}from"./index-DD358c5I.js";const N={class:"whitespace-break-spaces p-4 space-y-2"},P={class:"space-x-2"},E={class:"m-4"},M={key:0,class:"mt-2 h-100px w-100px bg-blue"},H=$({__name:"animation",setup(q){const f=i(!1),v=i([{text:"bounce",value:"animate__bounce"},{text:"flash",value:"animate__flash"},{text:"pulse",value:"animate__pulse"},{text:"rubberBand",value:"animate__rubberBand"},{text:"shakeX",value:"animate__shakeX"},{text:"shakeY",value:"animate__shakeY"},{text:"headShake",value:"animate__headShake"},{text:"swing",value:"animate__swing"},{text:"tada",value:"animate__tada"},{text:"wobble",value:"animate__wobble"},{text:"jello",value:"animate__jello"},{text:"heartBeat",value:"animate__heartBeat"},{text:"backInDown",value:"animate__backInDown"},{text:"backInLeft",value:"animate__backInLeft"},{text:"backInRight",value:"animate__backInRight"},{text:"backInUp",value:"animate__backInUp"},{text:"backOutDown",value:"animate__backOutDown"},{text:"backOutLeft",value:"animate__backOutLeft"},{text:"backOutRight",value:"animate__backOutRight"},{text:"backOutUp",value:"animate__backOutUp"},{text:"bounceIn",value:"animate__bounceIn"},{text:"bounceInDown",value:"animate__bounceInDown"},{text:"bounceInLeft",value:"animate__bounceInLeft"},{text:"bounceInRight",value:"animate__bounceInRight"},{text:"bounceInUp",value:"animate__bounceInUp"},{text:"bounceOut",value:"animate__bounceOut"},{text:"bounceOutDown",value:"animate__bounceOutDown"},{text:"bounceOutLeft",value:"animate__bounceOutLeft"},{text:"bounceOutRight",value:"animate__bounceOutRight"},{text:"bounceOutUp",value:"animate__bounceOutUp"},{text:"fadeIn",value:"animate__fadeIn"},{text:"fadeInDown",value:"animate__fadeInDown"},{text:"fadeInDownBig",value:"animate__fadeInDownBig"},{text:"fadeInLeft",value:"animate__fadeInLeft"},{text:"fadeInLeftBig",value:"animate__fadeInLeftBig"},{text:"fadeInRight",value:"animate__fadeInRight"},{text:"fadeInRightBig",value:"animate__fadeInRightBig"},{text:"fadeInUp",value:"animate__fadeInUp"},{text:"fadeInUpBig",value:"animate__fadeInUpBig"},{text:"fadeInTopLeft",value:"animate__fadeInTopLeft"},{text:"fadeInTopRight",value:"animate__fadeInTopRight"},{text:"fadeInBottomLeft",value:"animate__fadeInBottomLeft"},{text:"fadeInBottomRight",value:"animate__fadeInBottomRight"},{text:"fadeOut",value:"animate__fadeOut"},{text:"fadeOutDown",value:"animate__fadeOutDown"},{text:"fadeOutDownBig",value:"animate__fadeOutDownBig"},{text:"fadeOutLeft",value:"animate__fadeOutLeft"},{text:"fadeOutLeftBig",value:"animate__fadeOutLeftBig"},{text:"fadeOutRight",value:"animate__fadeOutRight"},{text:"fadeOutRightBig",value:"animate__fadeOutRightBig"},{text:"fadeOutUp",value:"animate__fadeOutUp"},{text:"fadeOutUpBig",value:"animate__fadeOutUpBig"},{text:"fadeOutTopLeft",value:"animate__fadeOutTopLeft"},{text:"fadeOutTopRight",value:"animate__fadeOutTopRight"},{text:"fadeOutBottomLeft",value:"animate__fadeOutBottomLeft"},{text:"fadeOutBottomRight",value:"animate__fadeOutBottomRight"},{text:"flip",value:"animate__flip"},{text:"flipInX",value:"animate__flipInX"},{text:"flipInY",value:"animate__flipInY"},{text:"flipOutX",value:"animate__flipOutX"},{text:"flipOutY",value:"animate__flipOutY"},{text:"lightSpeedInRight",value:"animate__lightSpeedInRight"},{text:"lightSpeedInLeft",value:"animate__lightSpeedInLeft"},{text:"lightSpeedOutRight",value:"animate__lightSpeedOutRight"},{text:"lightSpeedOutLeft",value:"animate__lightSpeedOutLeft"},{text:"rotateIn",value:"animate__rotateIn"},{text:"rotateInDownLeft",value:"animate__rotateInDownLeft"},{text:"rotateInDownRight",value:"animate__rotateInDownRight"},{text:"rotateInUpLeft",value:"animate__rotateInUpLeft"},{text:"rotateInUpRight",value:"animate__rotateInUpRight"},{text:"rotateOut",value:"animate__rotateOut"},{text:"rotateOutDownLeft",value:"animate__rotateOutDownLeft"},{text:"rotateOutDownRight",value:"animate__rotateOutDownRight"},{text:"rotateOutUpLeft",value:"animate__rotateOutUpLeft"},{text:"rotateOutUpRight",value:"animate__rotateOutUpRight"},{text:"hinge",value:"animate__hinge"},{text:"jackInTheBox",value:"animate__jackInTheBox"},{text:"rollIn",value:"animate__rollIn"},{text:"rollOut",value:"animate__rollOut"},{text:"zoomIn",value:"animate__zoomIn"},{text:"zoomInDown",value:"animate__zoomInDown"},{text:"zoomInLeft",value:"animate__zoomInLeft"},{text:"zoomInRight",value:"animate__zoomInRight"},{text:"zoomInUp",value:"animate__zoomInUp"},{text:"zoomOut",value:"animate__zoomOut"},{text:"zoomOutDown",value:"animate__zoomOutDown"},{text:"zoomOutLeft",value:"animate__zoomOutLeft"},{text:"zoomOutRight",value:"animate__zoomOutRight"},{text:"zoomOutUp",value:"animate__zoomOutUp"},{text:"slideInDown",value:"animate__slideInDown"},{text:"slideInLeft",value:"animate__slideInLeft"},{text:"slideInRight",value:"animate__slideInRight"},{text:"slideInUp",value:"animate__slideInUp"},{text:"slideOutDown",value:"animate__slideOutDown"},{text:"slideOutLeft",value:"animate__slideOutLeft"},{text:"slideOutRight",value:"animate__slideOutRight"},{text:"slideOutUp",value:"animate__slideOutUp"}]),x=i("animate__bounce"),I=i("animate__bounce"),u=i(!1);function L({selectedOptions:d}){u.value=!1,x.value=d[0].value}const l=i(!1);function R({selectedOptions:d}){l.value=!1,I.value=d[0].value}const s=i(!0);return(d,t)=>{const k=j,B=_("van-tag"),U=_("van-action-sheet"),g=_("van-field"),h=_("van-picker"),b=_("van-popup"),D=_("VanButton"),z=T,C=S;return w(),y(C,{navbar:"","navbar-start-side":"back"},{"navbar-end":o(()=>[m("div",{class:"h-full flex-center px-1",onClick:t[0]||(t[0]=e=>f.value=!0)},[n(k,{name:"i-mdi:information",class:"text-4"})]),n(U,{show:a(f),"onUpdate:show":t[1]||(t[1]=e=>O(f)?f.value=e:null),teleport:"body"},{default:o(()=>[m("div",N,[t[10]||(t[10]=m("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),t[11]||(t[11]=m("div",null,"安装命令:",-1)),m("div",P,[n(B,{type:"primary",plain:""},{default:o(()=>t[9]||(t[9]=[p(" pnpm add animate.css ")])),_:1})])])]),_:1},8,["show"])]),default:o(()=>[m("div",E,[n(g,{"is-link":"",readonly:"",label:"进入动画(显示)","label-width":"8em",onClick:t[2]||(t[2]=e=>u.value=!0)},{input:o(()=>{var e;return[p(c((e=a(v).find(r=>r.value===a(x)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(u),"onUpdate:show":t[4]||(t[4]=e=>O(u)?u.value=e:null),round:"",position:"bottom"},{default:o(()=>[n(h,{columns:a(v),onCancel:t[3]||(t[3]=e=>u.value=!1),onConfirm:L},null,8,["columns"])]),_:1},8,["show"]),n(g,{"is-link":"",readonly:"",label:"离开动画(隐藏)","label-width":"8em",onClick:t[5]||(t[5]=e=>l.value=!0)},{input:o(()=>{var e;return[p(c((e=a(v).find(r=>r.value===a(I)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(l),"onUpdate:show":t[7]||(t[7]=e=>O(l)?l.value=e:null),round:"",position:"bottom"},{default:o(()=>[n(h,{columns:a(v),onCancel:t[6]||(t[6]=e=>l.value=!1),onConfirm:R},null,8,["columns"])]),_:1},8,["show"])]),n(z,null,{default:o(()=>[n(D,{onClick:t[8]||(t[8]=e=>s.value=!a(s))},{default:o(()=>[p(c(a(s)?"隐藏":"显示"),1)]),_:1}),n(V,{"enter-active-class":`animate__animated ${a(x)}`,"leave-active-class":`animate__animated ${a(I)}`},{default:o(()=>[a(s)?(w(),X("div",M)):Y("",!0)]),_:1},8,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}});export{H as default}; diff --git a/assets/animation-bGlipfm8.js.br b/assets/animation-bGlipfm8.js.br new file mode 100644 index 0000000..f943116 Binary files /dev/null and b/assets/animation-bGlipfm8.js.br differ diff --git a/assets/animation-bGlipfm8.js.gz b/assets/animation-bGlipfm8.js.gz new file mode 100644 index 0000000..c85d1e6 Binary files /dev/null and b/assets/animation-bGlipfm8.js.gz differ diff --git a/assets/animation-pDegJk7t.css b/assets/animation-pDegJk7t.css new file mode 100644 index 0000000..a8d3602 --- /dev/null +++ b/assets/animation-pDegJk7t.css @@ -0,0 +1,14 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +@charset "UTF-8";/*! +* animate.css - https://animate.style/ +* Version - 4.1.1 +* Licensed under the MIT license - http://opensource.org/licenses/MIT +* +* Copyright (c) 2020 Animate.css +*/:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1);transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05);transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02);transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1);transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05);transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02);transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0);transform:translate3d(max(-2.667vw,-16px),0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(min(2.667vw,16px),0,0);transform:translate3d(min(2.667vw,16px),0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0);transform:translate3d(max(-2.667vw,-16px),0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(min(2.667vw,16px),0,0);transform:translate3d(min(2.667vw,16px),0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0);transform:translate3d(0,max(-2.667vw,-16px),0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,min(2.667vw,16px),0);transform:translate3d(0,min(2.667vw,16px),0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0);transform:translate3d(0,max(-2.667vw,-16px),0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,min(2.667vw,16px),0);transform:translate3d(0,min(2.667vw,16px),0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(max(-1.6vw,-9.6px)) rotateY(-9deg);transform:translate(max(-1.6vw,-9.6px)) rotateY(-9deg)}18.5%{-webkit-transform:translateX(min(1.333vw,8px)) rotateY(7deg);transform:translate(min(1.333vw,8px)) rotateY(7deg)}31.5%{-webkit-transform:translateX(max(-.8vw,-4.8px)) rotateY(-5deg);transform:translate(max(-.8vw,-4.8px)) rotateY(-5deg)}43.5%{-webkit-transform:translateX(min(.533vw,3.2px)) rotateY(3deg);transform:translate(min(.533vw,3.2px)) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(max(-1.6vw,-9.6px)) rotateY(-9deg);transform:translate(max(-1.6vw,-9.6px)) rotateY(-9deg)}18.5%{-webkit-transform:translateX(min(1.333vw,8px)) rotateY(7deg);transform:translate(min(1.333vw,8px)) rotateY(7deg)}31.5%{-webkit-transform:translateX(max(-.8vw,-4.8px)) rotateY(-5deg);transform:translate(max(-.8vw,-4.8px)) rotateY(-5deg)}43.5%{-webkit-transform:translateX(min(.533vw,3.2px)) rotateY(3deg);transform:translate(min(.533vw,3.2px)) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(max(-320vw,-1920px)) scale(.7);transform:translateY(max(-320vw,-1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(max(-320vw,-1920px)) scale(.7);transform:translateY(max(-320vw,-1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(min(320vw,1920px)) scale(.7);transform:translateY(min(320vw,1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(min(320vw,1920px)) scale(.7);transform:translateY(min(320vw,1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(min(186.667vw,1120px)) scale(.7);transform:translateY(min(186.667vw,1120px)) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(min(186.667vw,1120px)) scale(.7);transform:translateY(min(186.667vw,1120px)) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(max(-186.667vw,-1120px)) scale(.7);transform:translateY(max(-186.667vw,-1120px)) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(max(-186.667vw,-1120px)) scale(.7);transform:translateY(max(-186.667vw,-1120px)) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3);transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9);transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985);transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3);transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9);transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985);transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3);transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(min(6.667vw,40px),0,0) scaleX(1);transform:translate3d(min(6.667vw,40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98);transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995);transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3);transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(min(6.667vw,40px),0,0) scaleX(1);transform:translate3d(min(6.667vw,40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98);transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995);transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(min(800vw,4800px),0,0) scaleX(3);transform:translate3d(min(800vw,4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1);transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98);transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995);transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(min(800vw,4800px),0,0) scaleX(3);transform:translate3d(min(800vw,4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1);transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98);transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995);transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,min(800vw,4800px),0) scaleY(5);transform:translate3d(0,min(800vw,4800px),0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985);transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,min(800vw,4800px),0) scaleY(5);transform:translate3d(0,min(800vw,4800px),0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985);transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3);transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3);transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9);transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2);transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9);transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2);transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9);transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2);transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9);transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2);transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9);transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3);transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9);transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3);transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-190deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-170deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-190deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-170deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,10deg);transform:perspective(min(106.667vw,640px)) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateX(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}@keyframes flipInX{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,10deg);transform:perspective(min(106.667vw,640px)) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateX(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,10deg);transform:perspective(min(106.667vw,640px)) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateY(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}@keyframes flipInY{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,10deg);transform:perspective(min(106.667vw,640px)) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateY(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-15deg);transform:perspective(min(106.667vw,640px)) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-15deg);transform:perspective(min(106.667vw,640px)) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,min(186.667vw,1120px),0);transform:translate3d(0,min(186.667vw,1120px),0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,min(186.667vw,1120px),0);transform:translate3d(0,min(186.667vw,1120px),0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0);transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0);transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(min(533.333vw,3200px),0,0);transform:scale(.1) translate3d(min(533.333vw,3200px),0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(min(533.333vw,3200px),0,0);transform:scale(.1) translate3d(min(533.333vw,3200px),0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp} diff --git a/assets/animation-pDegJk7t.css.br b/assets/animation-pDegJk7t.css.br new file mode 100644 index 0000000..587007b Binary files /dev/null and b/assets/animation-pDegJk7t.css.br differ diff --git a/assets/animation-pDegJk7t.css.gz b/assets/animation-pDegJk7t.css.gz new file mode 100644 index 0000000..d31c937 Binary files /dev/null and b/assets/animation-pDegJk7t.css.gz differ diff --git a/assets/badge-BdyfrbV2.js b/assets/badge-BdyfrbV2.js new file mode 100644 index 0000000..dc8613e --- /dev/null +++ b/assets/badge-BdyfrbV2.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_}from"./index-DkxdnFkg.js";import{d as v,aD as k,c as x,w as n,k as C,m,o as g,a as d,b as e,u as o,e as a,_ as $}from"./index-DD358c5I.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";const N={class:"flex flex-col gap-4 p-4"},D=v({__name:"badge",setup(V){const f=C(),s=k();return(T,t)=>{const l=m("VanButton"),r=B,i=$,p=m("van-button"),b=_;return g(),x(b,{navbar:!1,tabbar:"","tabbar-name":"third"},{default:n(()=>[d("div",N,[t[12]||(t[12]=d("div",null,"角标可以搭配 Pinia 一起使用,实现动态控制。",-1)),e(r,{title:"点标记",class:"m-0!"},{default:n(()=>[e(l,{onClick:t[0]||(t[0]=u=>o(s).switchDot())},{default:n(()=>t[6]||(t[6]=[a(" 切换 ")])),_:1})]),_:1}),e(r,{title:"数字标记,小于等于 0 时隐藏",class:"m-0!"},{default:n(()=>[e(l,{onClick:t[1]||(t[1]=u=>o(s).setNumber(o(s).number+1))},{icon:n(()=>[e(i,{name:"i-ep:plus"})]),default:n(()=>[t[7]||(t[7]=a(" 1 "))]),_:1}),e(l,{onClick:t[2]||(t[2]=u=>o(s).setNumber(o(s).number-1))},{icon:n(()=>[e(i,{name:"i-ep:minus"})]),default:n(()=>[t[8]||(t[8]=a(" 1 "))]),_:1})]),_:1}),e(r,{title:"文字标记",class:"m-0!"},{default:n(()=>[e(l,{onClick:t[3]||(t[3]=u=>o(s).setText(o(s).text==="热门"?"促销":"热门"))},{default:n(()=>t[9]||(t[9]=[a(" 切换 ")])),_:1}),e(l,{onClick:t[4]||(t[4]=u=>o(s).setText(""))},{default:n(()=>t[10]||(t[10]=[a(" 清空 ")])),_:1})]),_:1}),e(p,{onClick:t[5]||(t[5]=u=>o(f).back())},{default:n(()=>t[11]||(t[11]=[a(" 返回 ")])),_:1})])]),_:1})}}});export{D as default}; diff --git a/assets/badge-BdyfrbV2.js.br b/assets/badge-BdyfrbV2.js.br new file mode 100644 index 0000000..df6ea80 Binary files /dev/null and b/assets/badge-BdyfrbV2.js.br differ diff --git a/assets/badge-BdyfrbV2.js.gz b/assets/badge-BdyfrbV2.js.gz new file mode 100644 index 0000000..8d913e6 Binary files /dev/null and b/assets/badge-BdyfrbV2.js.gz differ diff --git a/assets/basic-WFbbQgFw.js b/assets/basic-WFbbQgFw.js new file mode 100644 index 0000000..b36ca67 --- /dev/null +++ b/assets/basic-WFbbQgFw.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as c}from"./index-DkxdnFkg.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as B,r as s,c as C,w as e,m as o,o as R,b as n,e as a,u as r,i as m}from"./index-DD358c5I.js";const S=B({__name:"basic",setup(N){const p=s(""),_=s(1),i=s(3),f=s(!0);return(P,t)=>{const u=k,d=o("van-button"),V=o("van-icon"),g=o("van-field"),b=o("van-cell-group"),v=o("van-radio"),y=o("van-radio-group"),w=o("van-rate"),x=o("van-switch"),U=c;return R(),C(U,{navbar:"","navbar-start-side":"back"},{default:e(()=>[n(u,null,{default:e(()=>t[4]||(t[4]=[a(" 框架内置 Vant 组件库,本页仅展示部分组件,更多组件及使用说明请查看 Vant 官网 ")])),_:1}),n(u,{title:"Button"},{default:e(()=>[n(d,{type:"primary"},{default:e(()=>t[5]||(t[5]=[a(" 主要按钮 ")])),_:1}),n(d,{type:"success"},{default:e(()=>t[6]||(t[6]=[a(" 成功按钮 ")])),_:1}),n(d,{type:"default"},{default:e(()=>t[7]||(t[7]=[a(" 默认按钮 ")])),_:1}),n(d,{type:"danger"},{default:e(()=>t[8]||(t[8]=[a(" 危险按钮 ")])),_:1}),n(d,{type:"warning"},{default:e(()=>t[9]||(t[9]=[a(" 警告按钮 ")])),_:1})]),_:1}),n(u,{title:"Icon"},{default:e(()=>[n(V,{name:"chat-o"})]),_:1}),n(b,{inset:""},{default:e(()=>[n(g,{modelValue:r(p),"onUpdate:modelValue":t[0]||(t[0]=l=>m(p)?p.value=l:null),label:"文本",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),n(u,{title:"Radio"},{default:e(()=>[n(y,{modelValue:r(_),"onUpdate:modelValue":t[1]||(t[1]=l=>m(_)?_.value=l:null)},{default:e(()=>[n(v,{name:1},{default:e(()=>t[10]||(t[10]=[a(" 单选框 1 ")])),_:1}),n(v,{name:2},{default:e(()=>t[11]||(t[11]=[a(" 单选框 2 ")])),_:1})]),_:1},8,["modelValue"])]),_:1}),n(u,{title:"Rate"},{default:e(()=>[n(w,{modelValue:r(i),"onUpdate:modelValue":t[2]||(t[2]=l=>m(i)?i.value=l:null)},null,8,["modelValue"])]),_:1}),n(u,{title:"Switch"},{default:e(()=>[n(x,{modelValue:r(f),"onUpdate:modelValue":t[3]||(t[3]=l=>m(f)?f.value=l:null)},null,8,["modelValue"])]),_:1})]),_:1})}}});export{S as default}; diff --git a/assets/basic-WFbbQgFw.js.br b/assets/basic-WFbbQgFw.js.br new file mode 100644 index 0000000..36352e2 Binary files /dev/null and b/assets/basic-WFbbQgFw.js.br differ diff --git a/assets/basic-WFbbQgFw.js.gz b/assets/basic-WFbbQgFw.js.gz new file mode 100644 index 0000000..462f747 Binary files /dev/null and b/assets/basic-WFbbQgFw.js.gz differ diff --git a/assets/built-in-CuZuocYO.js b/assets/built-in-CuZuocYO.js new file mode 100644 index 0000000..32ca05b --- /dev/null +++ b/assets/built-in-CuZuocYO.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as U,b as k,a as I}from"./index-DkxdnFkg.js";import{d as T,r as m,c as C,w as t,o as L,b as e,e as o,u as s,i as d,_ as y,f as P,s as S,v as w,x as D,y as M,z as N}from"./index-DD358c5I.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";const R=T({__name:"built-in",setup(j){const f=m(!1),r=m(""),_=m(!1),p=m(1),u=m(!1);return(q,l)=>{const a=z,v=y,V=k,i=P,b=I,$=S,H=w,x=D,g=M,B=U;return L(),C(B,{navbar:"","navbar-start-side":"back"},{default:t(()=>[e(a,null,{default:t(()=>l[8]||(l[8]=[o(" PageMain 是最常用的页面组件,几乎所有页面都会使用到 ")])),_:1}),e(a,{title:"Badge"},{default:t(()=>[e(V,{value:!0},{default:t(()=>[e(v,{name:"i-ri:notification-3-line"})]),_:1}),e(V,{value:99},{default:t(()=>[e(v,{name:"i-ri:notification-3-line"})]),_:1}),e(V,{value:"噢"},{default:t(()=>[e(v,{name:"i-ri:notification-3-line"})]),_:1})]),_:1}),e(a,{title:"Button"},{default:t(()=>[e(i,null,{default:t(()=>l[9]||(l[9]=[o(" 按钮 ")])),_:1}),e(i,{outline:""},{default:t(()=>l[10]||(l[10]=[o(" 按钮 ")])),_:1}),e(i,{disabled:""},{default:t(()=>l[11]||(l[11]=[o(" 按钮 ")])),_:1}),e(i,{disabled:"",outline:""},{default:t(()=>l[12]||(l[12]=[o(" 按钮 ")])),_:1})]),_:1}),e(a,{title:"Dialog"},{default:t(()=>[e(i,{onClick:l[0]||(l[0]=n=>f.value=!0)},{default:t(()=>l[13]||(l[13]=[o(" 打开 ")])),_:1}),e(b,{modelValue:s(f),"onUpdate:modelValue":l[1]||(l[1]=n=>d(f)?f.value=n:null),title:"标题"},{default:t(()=>l[14]||(l[14]=[o(" 这里是 dialog 内容 ")])),_:1},8,["modelValue"])]),_:1}),e(a,{title:"Input"},{default:t(()=>[e($,{modelValue:s(r),"onUpdate:modelValue":l[2]||(l[2]=n=>d(r)?r.value=n:null)},null,8,["modelValue"])]),_:1}),e(a,{title:"Slideover"},{default:t(()=>[e(i,{onClick:l[3]||(l[3]=n=>_.value=!0)},{default:t(()=>l[15]||(l[15]=[o(" 打开 ")])),_:1}),e(H,{modelValue:s(_),"onUpdate:modelValue":l[4]||(l[4]=n=>d(_)?_.value=n:null),title:"标题",overlay:!1},{default:t(()=>l[16]||(l[16]=[o(" 这里是 slideover 内容 ")])),_:1},8,["modelValue"])]),_:1}),e(a,{title:"TabList"},{default:t(()=>[e(x,{modelValue:s(p),"onUpdate:modelValue":l[5]||(l[5]=n=>d(p)?p.value=n:null),options:[{label:"标签1",value:1},{label:"标签2",value:2},{label:"标签3",value:3}]},null,8,["modelValue"])]),_:1}),e(a,{title:"Toggle"},{default:t(()=>[e(g,{modelValue:s(u),"onUpdate:modelValue":l[6]||(l[6]=n=>d(u)?u.value=n:null)},null,8,["modelValue"]),e(g,{modelValue:s(u),"onUpdate:modelValue":l[7]||(l[7]=n=>d(u)?u.value=n:null),"on-icon":"ri:sun-line","off-icon":"ri:moon-line"},null,8,["modelValue"])]),_:1})]),_:1})}}}),G=N(R,[["__scopeId","data-v-736f5d34"]]);export{G as default}; diff --git a/assets/built-in-CuZuocYO.js.br b/assets/built-in-CuZuocYO.js.br new file mode 100644 index 0000000..0892348 Binary files /dev/null and b/assets/built-in-CuZuocYO.js.br differ diff --git a/assets/built-in-CuZuocYO.js.gz b/assets/built-in-CuZuocYO.js.gz new file mode 100644 index 0000000..76bcfc7 Binary files /dev/null and b/assets/built-in-CuZuocYO.js.gz differ diff --git a/assets/built-in-ojHX3N5y.css b/assets/built-in-ojHX3N5y.css new file mode 100644 index 0000000..34f5821 --- /dev/null +++ b/assets/built-in-ojHX3N5y.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +.page-main[data-v-736f5d34] .main-container{display:flex;flex:1 1 0%;align-items:center;justify-content:center;gap:32px} diff --git a/assets/built-in-ojHX3N5y.css.br b/assets/built-in-ojHX3N5y.css.br new file mode 100644 index 0000000..8caf537 Binary files /dev/null and b/assets/built-in-ojHX3N5y.css.br differ diff --git a/assets/composite-BsubK0y6.js b/assets/composite-BsubK0y6.js new file mode 100644 index 0000000..751dcc2 --- /dev/null +++ b/assets/composite-BsubK0y6.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as K}from"./index-DkxdnFkg.js";import{A as X,B as Z,S as I,C as k,M as q,D as H,E as J,G as Q,H as j,I as ee,J as L,K as O,L as ne,d as S,N as T,O as v,P as $,Q as F,r as _,m as g,o as M,j as A,b as f,R as P,u as s,i as V,F as E,w as C,c as le,e as D,t as w}from"./index-DD358c5I.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";var oe="[object Symbol]";function N(e){return typeof e=="symbol"||X(e)&&Z(e)==oe}function ae(e,n){for(var t=-1,o=e==null?0:e.length,l=Array(o);++tx(n,["label","name","id","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["color","minDate","maxDate","formatter","showConfirm","confirmText","firstDayOfWeek","round"])),l=$(e,"modelValue"),a=v(()=>l.value&&F(l.value).format(n.format)),d=v(()=>F(l.value).toDate()),r=_(!1);function i(m){l.value=F(m).format(n.valueFormat),r.value=!1}return(m,u)=>{const c=g("van-field"),h=g("van-calendar");return M(),A(E,null,[f(c,P({"model-value":s(a)},s(t),{"is-link":"",readonly:"",onClick:u[0]||(u[0]=b=>r.value=!0)}),null,16,["model-value"]),f(h,P({show:s(r),"onUpdate:show":u[1]||(u[1]=b=>V(r)?r.value=b:null)},s(o),{"default-date":s(d),teleport:"body",onConfirm:i}),null,16,["show","default-date"])],64)}}}),Me=S({name:"VanFieldDatePicker",__name:"index",props:T({label:{},name:{},id:{},size:{},placeholder:{},border:{},colon:{},required:{},center:{},arrowDirection:{},labelClass:{},labelWidth:{},labelAlign:{},leftIcon:{},rightIcon:{},rules:{},round:{type:Boolean},columnsType:{},minDate:{},maxDate:{},formatter:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=e,t=v(()=>x(n,["label","name","id","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["round"])),l=v(()=>x(n,["columnsType","minDate","maxDate","formatter"])),a=$(e,"modelValue"),d=_(a.value??[]),r=v(()=>a.value?a.value.join("-"):""),i=_(!1);function m({selectedValues:u}){a.value=u,i.value=!1}return(u,c)=>{const h=g("van-field"),b=g("van-date-picker"),p=g("van-popup");return M(),A(E,null,[f(h,P({"model-value":s(r)},s(t),{"is-link":"",readonly:"",onClick:c[0]||(c[0]=y=>i.value=!0)}),null,16,["model-value"]),f(p,P({show:s(i),"onUpdate:show":c[3]||(c[3]=y=>V(i)?i.value=y:null)},s(o),{position:"bottom",teleport:"body"}),{default:C(()=>[f(b,P({modelValue:s(d),"onUpdate:modelValue":c[1]||(c[1]=y=>V(d)?d.value=y:null)},s(l),{onConfirm:m,onCancel:c[2]||(c[2]=y=>i.value=!1)}),null,16,["modelValue"])]),_:1},16,["show"])],64)}}}),ze=S({name:"VanFieldPicker",__name:"index",props:T({label:{},name:{},id:{},type:{},size:{},placeholder:{},border:{},colon:{},required:{},center:{},arrowDirection:{},labelClass:{},labelWidth:{},labelAlign:{},autosize:{},leftIcon:{},rightIcon:{},rules:{},round:{type:Boolean},columns:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=e,t=v(()=>x(n,["label","name","id","type","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","autosize","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["round"])),l=v(()=>x(n,["columns"])),a=$(e,"modelValue"),d=_([a.value]),r=v(()=>{var m,u;return(u=(m=n.columns)==null?void 0:m.find(c=>c.value===a.value))==null?void 0:u.text}),i=_(!1);return(m,u)=>{const c=g("van-field"),h=g("van-picker"),b=g("van-popup");return M(),A(E,null,[f(c,P({"model-value":s(r)},s(t),{"is-link":"",readonly:"",onClick:u[0]||(u[0]=p=>i.value=!0)}),null,16,["model-value"]),f(b,P({show:s(i),"onUpdate:show":u[3]||(u[3]=p=>V(i)?i.value=p:null)},s(o),{position:"bottom",teleport:"body"}),{default:C(()=>[f(h,P({"model-value":s(d)},s(l),{onConfirm:u[1]||(u[1]=({selectedOptions:p})=>{var y;a.value=(y=p[0])==null?void 0:y.value,i.value=!1}),onCancel:u[2]||(u[2]=p=>i.value=!1)}),null,16,["model-value"])]),_:1},16,["show"])],64)}}}),Ae=S({__name:"composite",setup(e){const n=_(""),t=_([{text:"杭州",value:"Hangzhou"},{text:"宁波",value:"Ningbo"},{text:"温州",value:"Wenzhou"},{text:"绍兴",value:"Shaoxing"},{text:"湖州",value:"Huzhou"}]),o=_(),l=_(""),a=_("");return(d,r)=>{const i=te,m=ze,u=g("van-divider"),c=Me,h=Se,b=K;return M(),le(b,{navbar:"","navbar-start-side":"back"},{default:C(()=>[f(i,null,{default:C(()=>r[4]||(r[4]=[D(" Vant 提供的组件大多数比较原子化,在实际业务开发中,往往一个功能需要通过多个组件结合使用才能实现。本框架则将一些常用的功能封装成复合组件,方便开发者使用。 ")])),_:1}),f(i,{title:"VanFieldPicker"},{default:C(()=>[f(m,{modelValue:s(n),"onUpdate:modelValue":r[0]||(r[0]=p=>V(n)?n.value=p:null),placeholder:"请选择",border:!1,columns:s(t)},null,8,["modelValue","columns"]),f(u),D(" 选中值: "+w(s(n)),1)]),_:1}),f(i,{title:"VanFieldDatePicker"},{default:C(()=>[f(c,{modelValue:s(o),"onUpdate:modelValue":r[1]||(r[1]=p=>V(o)?o.value=p:null),placeholder:"请选择",border:!1},null,8,["modelValue"]),f(u),D(" 选中值: "+w(s(o)),1)]),_:1}),f(i,{title:"VanFieldCalendar"},{default:C(()=>[f(h,{modelValue:s(l),"onUpdate:modelValue":r[2]||(r[2]=p=>V(l)?l.value=p:null),placeholder:"请选择",border:!1},null,8,["modelValue"]),f(u),D(" 选中值: "+w(s(l)),1)]),_:1}),f(i,{title:"VanFieldCalendar 格式化"},{default:C(()=>[f(h,{modelValue:s(a),"onUpdate:modelValue":r[3]||(r[3]=p=>V(a)?a.value=p:null),placeholder:"请选择",border:!1,format:"MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),f(u),D(" 选中值: "+w(s(a)),1)]),_:1})]),_:1})}}});export{Ae as default}; diff --git a/assets/composite-BsubK0y6.js.br b/assets/composite-BsubK0y6.js.br new file mode 100644 index 0000000..f114ec7 Binary files /dev/null and b/assets/composite-BsubK0y6.js.br differ diff --git a/assets/composite-BsubK0y6.js.gz b/assets/composite-BsubK0y6.js.gz new file mode 100644 index 0000000..28ab2f5 Binary files /dev/null and b/assets/composite-BsubK0y6.js.gz differ diff --git a/assets/custom-area-BOQUSC5t.js b/assets/custom-area-BOQUSC5t.js new file mode 100644 index 0000000..8c4ed8d --- /dev/null +++ b/assets/custom-area-BOQUSC5t.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as p}from"./index-DkxdnFkg.js";import{d,r as f,c as v,w as a,k as x,m as i,o as b,a as t,b as s,V as g,W as h,u as l,i as V,e as k,_ as w}from"./index-DD358c5I.js";const C={class:"flex-center flex-1"},B={class:"flex-center flex-1"},N={class:"flex-center flex-1"},R={class:"flex flex-col gap-4 p-4"},D=d({__name:"custom-area",setup(S){const r=x(),o=f(!1);return($,e)=>{const n=w,u=i("van-switch"),m=i("van-button"),_=p;return b(),v(_,{navbar:!1,tabbar:""},{tabbar:a(()=>[t("div",C,[s(n,{name:"https://fantastic-admin.hurui.me/logo.png",class:"text-8"})]),g(t("div",B,[s(n,{name:"https://fantastic-mobile.hurui.me/logo.png",class:"text-8"})],512),[[h,l(o)]]),t("div",N,[s(n,{name:"https://one-step-admin.hurui.me/logo.png",class:"text-8"})])]),default:a(()=>[t("div",R,[e[3]||(e[3]=t("div",null,"可以根据业务逻辑做更精细化的处理,比如动态切换显示内容。",-1)),t("div",null,[s(u,{modelValue:l(o),"onUpdate:modelValue":e[0]||(e[0]=c=>V(o)?o.value=c:null),size:"16px"},null,8,["modelValue"])]),s(m,{onClick:e[1]||(e[1]=c=>l(r).back())},{default:a(()=>e[2]||(e[2]=[k(" 返回 ")])),_:1})])]),_:1})}}});export{D as default}; diff --git a/assets/custom-area-BOQUSC5t.js.br b/assets/custom-area-BOQUSC5t.js.br new file mode 100644 index 0000000..ae6bdb8 Binary files /dev/null and b/assets/custom-area-BOQUSC5t.js.br differ diff --git a/assets/custom-area-BOQUSC5t.js.gz b/assets/custom-area-BOQUSC5t.js.gz new file mode 100644 index 0000000..68ef63a Binary files /dev/null and b/assets/custom-area-BOQUSC5t.js.gz differ diff --git a/assets/custom-area-D9KoYE4K.js b/assets/custom-area-D9KoYE4K.js new file mode 100644 index 0000000..210ca37 --- /dev/null +++ b/assets/custom-area-D9KoYE4K.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as x}from"./index-DkxdnFkg.js";import{d as V,r as m,c as C,w as t,k as g,m as u,o as B,b as s,u as l,i as p,e as d,a as c,t as N,a6 as S}from"./index-DD358c5I.js";const h={class:"flex flex-col gap-4 p-4"},T=V({__name:"custom-area",setup(y){const a=m(!1),n=m(!1),v=[{name:"选项一"},{name:"选项二"},{name:"选项三"}];function _(r){n.value=!1,S(r.name)}const f=g();return(r,e)=>{const w=u("van-switch"),i=u("van-button"),b=u("van-action-sheet"),k=x;return B(),C(k,{navbar:""},{"navbar-start":t(()=>[s(w,{modelValue:l(a),"onUpdate:modelValue":e[0]||(e[0]=o=>p(a)?a.value=o:null),size:"16px"},null,8,["modelValue"])]),"navbar-end":t(()=>[s(i,{size:"small",onClick:e[1]||(e[1]=o=>n.value=!0)},{default:t(()=>e[4]||(e[4]=[d(" 操作按钮 ")])),_:1}),s(b,{show:l(n),"onUpdate:show":e[2]||(e[2]=o=>p(n)?n.value=o:null),actions:v,onSelect:_},null,8,["show"])]),default:t(()=>[c("div",h,[c("div",null," Switch: "+N(l(a)),1),s(i,{onClick:e[3]||(e[3]=o=>l(f).back())},{default:t(()=>e[5]||(e[5]=[d(" 返回 ")])),_:1})])]),_:1})}}});export{T as default}; diff --git a/assets/custom-area-D9KoYE4K.js.br b/assets/custom-area-D9KoYE4K.js.br new file mode 100644 index 0000000..dd511ea Binary files /dev/null and b/assets/custom-area-D9KoYE4K.js.br differ diff --git a/assets/custom-area-D9KoYE4K.js.gz b/assets/custom-area-D9KoYE4K.js.gz new file mode 100644 index 0000000..531c327 Binary files /dev/null and b/assets/custom-area-D9KoYE4K.js.gz differ diff --git a/assets/custom-navbar-BfY0vt2s.js b/assets/custom-navbar-BfY0vt2s.js new file mode 100644 index 0000000..328a321 --- /dev/null +++ b/assets/custom-navbar-BfY0vt2s.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as f}from"./index-DkxdnFkg.js";import{d as i,r as x,c as m,w as n,k as v,m as g,o as r,a as t,q as b,u as l,e as c,b as k,j as h,n as w,F as C,t as B,z as N}from"./index-DD358c5I.js";const y={class:"h-full flex flex-col"},T={class:"mt-[80px] flex flex-1 flex-col gap-4 p-4"},V=i({__name:"custom-navbar",setup(z){const p=v(),a=x(0);function u(s){a.value=s.target.scrollTop}return(s,e)=>{const _=g("van-button"),d=f;return r(),m(d,{navbar:!1,onScroll:u},{default:n(()=>[t("div",y,[t("header",{class:b(["h-[80px] flex flex-center gap-2 bg-cover bg-center bg-no-repeat text-light text-shadow text-shadow-color-dark shadow transition-all transition-all-500",{"h-[60px]!":l(a)>50}])}," 头部导航 ",2),t("div",T,[e[2]||(e[2]=c(" 使用自定义导航可以满足更复杂的业务场景,例如当前页面,你可以滚动页面试试。 ")),k(_,{onClick:e[0]||(e[0]=o=>l(p).back())},{default:n(()=>e[1]||(e[1]=[c(" 返回 ")])),_:1}),(r(),h(C,null,w(50,o=>t("div",{key:o,class:"text-center"},B(o),1)),64))])])]),_:1})}}}),S=N(V,[["__scopeId","data-v-ef732603"]]);export{S as default}; diff --git a/assets/custom-navbar-BfY0vt2s.js.br b/assets/custom-navbar-BfY0vt2s.js.br new file mode 100644 index 0000000..acd8650 Binary files /dev/null and b/assets/custom-navbar-BfY0vt2s.js.br differ diff --git a/assets/custom-navbar-BfY0vt2s.js.gz b/assets/custom-navbar-BfY0vt2s.js.gz new file mode 100644 index 0000000..6bb721d Binary files /dev/null and b/assets/custom-navbar-BfY0vt2s.js.gz differ diff --git a/assets/custom-navbar-BoWRFbmD.css b/assets/custom-navbar-BoWRFbmD.css new file mode 100644 index 0000000..bf3cf33 --- /dev/null +++ b/assets/custom-navbar-BoWRFbmD.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +header[data-v-ef732603]{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px);background-image:url(https://picsum.photos/375/60)} diff --git a/assets/custom-navbar-BoWRFbmD.css.br b/assets/custom-navbar-BoWRFbmD.css.br new file mode 100644 index 0000000..55fb030 Binary files /dev/null and b/assets/custom-navbar-BoWRFbmD.css.br differ diff --git a/assets/custom-navbar-BoWRFbmD.css.gz b/assets/custom-navbar-BoWRFbmD.css.gz new file mode 100644 index 0000000..adfa0cb Binary files /dev/null and b/assets/custom-navbar-BoWRFbmD.css.gz differ diff --git a/assets/custom-title-D_2cdcAs.js b/assets/custom-title-D_2cdcAs.js new file mode 100644 index 0000000..94cc48b --- /dev/null +++ b/assets/custom-title-D_2cdcAs.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as u}from"./index-DkxdnFkg.js";import{d as l,c as p,w as o,k as _,m,o as d,e,a as n,b as i,u as f}from"./index-DD358c5I.js";const v={class:"flex flex-col gap-4 p-4"},N=l({__name:"custom-title",setup(c){const a=_();return(b,t)=>{const s=m("van-button"),r=u;return d(),p(r,{navbar:""},{navbar:o(()=>t[1]||(t[1]=[e(" 这是一段自定义的标题这是一段自定义的标题这是一段自定义的标题 ")])),default:o(()=>[n("div",v,[t[3]||(t[3]=n("div",null,"但也要注意,这种方式只能自定义 Navbar 区域的标题,并不会影响网页标题。如需同时修改网页标题,请参考动态标题。",-1)),i(s,{onClick:t[0]||(t[0]=x=>f(a).back())},{default:o(()=>t[2]||(t[2]=[e(" 返回 ")])),_:1})])]),_:1})}}});export{N as default}; diff --git a/assets/custom-title-D_2cdcAs.js.br b/assets/custom-title-D_2cdcAs.js.br new file mode 100644 index 0000000..82a611a Binary files /dev/null and b/assets/custom-title-D_2cdcAs.js.br differ diff --git a/assets/custom-title-D_2cdcAs.js.gz b/assets/custom-title-D_2cdcAs.js.gz new file mode 100644 index 0000000..8f22da6 Binary files /dev/null and b/assets/custom-title-D_2cdcAs.js.gz differ diff --git a/assets/default-BU1r84Lk.js b/assets/default-BU1r84Lk.js new file mode 100644 index 0000000..f8ddf9b --- /dev/null +++ b/assets/default-BU1r84Lk.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as s}from"./index-DkxdnFkg.js";import{d as r,c as _,w as o,k as u,m as c,o as p,a as l,b as m,e as d,u as f}from"./index-DD358c5I.js";const i={class:"flex flex-col gap-4 p-4"},g=r({__name:"default",setup(v){const t=u();return(x,e)=>{const n=c("van-button"),a=s;return p(),_(a,{navbar:""},{default:o(()=>[l("div",i,[m(n,{onClick:e[0]||(e[0]=b=>f(t).back())},{default:o(()=>e[1]||(e[1]=[d(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/default-BU1r84Lk.js.br b/assets/default-BU1r84Lk.js.br new file mode 100644 index 0000000..4bd278e Binary files /dev/null and b/assets/default-BU1r84Lk.js.br differ diff --git a/assets/default-BU1r84Lk.js.gz b/assets/default-BU1r84Lk.js.gz new file mode 100644 index 0000000..97eaeb1 Binary files /dev/null and b/assets/default-BU1r84Lk.js.gz differ diff --git a/assets/default-CmtT-dUy.js b/assets/default-CmtT-dUy.js new file mode 100644 index 0000000..b30a25b --- /dev/null +++ b/assets/default-CmtT-dUy.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as r}from"./index-DkxdnFkg.js";import{d as u,c as l,w as o,k as p,m as d,o as _,a as e,b as f,e as m,u as i}from"./index-DD358c5I.js";const b={class:"flex flex-col gap-4 p-4"},g=u({__name:"default",setup(v){const n=p();return(c,t)=>{const a=d("van-button"),s=r;return _(),l(s,{navbar:!1,tabbar:"","tabbar-name":"default"},{default:o(()=>[e("div",b,[t[2]||(t[2]=e("div",null,"底部导航默认是全局关闭的,可以单独给指定路由设置开启底部导航。",-1)),t[3]||(t[3]=e("div",null,"当然也可以设置为全局开启,指定路由设置关闭。",-1)),f(a,{onClick:t[0]||(t[0]=x=>i(n).back())},{default:o(()=>t[1]||(t[1]=[m(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/default-CmtT-dUy.js.br b/assets/default-CmtT-dUy.js.br new file mode 100644 index 0000000..5d76b79 Binary files /dev/null and b/assets/default-CmtT-dUy.js.br differ diff --git a/assets/default-CmtT-dUy.js.gz b/assets/default-CmtT-dUy.js.gz new file mode 100644 index 0000000..bb6c08b Binary files /dev/null and b/assets/default-CmtT-dUy.js.gz differ diff --git a/assets/digital-7-webfont-Be4rWpNL.woff2 b/assets/digital-7-webfont-Be4rWpNL.woff2 new file mode 100644 index 0000000..012a409 Binary files /dev/null and b/assets/digital-7-webfont-Be4rWpNL.woff2 differ diff --git a/assets/digital-7-webfont-BjD0-cHb.eot b/assets/digital-7-webfont-BjD0-cHb.eot new file mode 100644 index 0000000..ce1a756 Binary files /dev/null and b/assets/digital-7-webfont-BjD0-cHb.eot differ diff --git a/assets/digital-7-webfont-CsMgswhn.svg b/assets/digital-7-webfont-CsMgswhn.svg new file mode 100644 index 0000000..d02c78f --- /dev/null +++ b/assets/digital-7-webfont-CsMgswhn.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/digital-7-webfont-CsMgswhn.svg.br b/assets/digital-7-webfont-CsMgswhn.svg.br new file mode 100644 index 0000000..9e5bd43 Binary files /dev/null and b/assets/digital-7-webfont-CsMgswhn.svg.br differ diff --git a/assets/digital-7-webfont-CsMgswhn.svg.gz b/assets/digital-7-webfont-CsMgswhn.svg.gz new file mode 100644 index 0000000..1f6ac24 Binary files /dev/null and b/assets/digital-7-webfont-CsMgswhn.svg.gz differ diff --git a/assets/digital-7-webfont-T-2P9Ugr.woff b/assets/digital-7-webfont-T-2P9Ugr.woff new file mode 100644 index 0000000..c622d75 Binary files /dev/null and b/assets/digital-7-webfont-T-2P9Ugr.woff differ diff --git a/assets/digital-7_mono-webfont-CgIkl65M.woff2 b/assets/digital-7_mono-webfont-CgIkl65M.woff2 new file mode 100644 index 0000000..516bc56 Binary files /dev/null and b/assets/digital-7_mono-webfont-CgIkl65M.woff2 differ diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg b/assets/digital-7_mono-webfont-CgrKaJks.svg new file mode 100644 index 0000000..5ef075d --- /dev/null +++ b/assets/digital-7_mono-webfont-CgrKaJks.svg @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg.br b/assets/digital-7_mono-webfont-CgrKaJks.svg.br new file mode 100644 index 0000000..6eaf059 Binary files /dev/null and b/assets/digital-7_mono-webfont-CgrKaJks.svg.br differ diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg.gz b/assets/digital-7_mono-webfont-CgrKaJks.svg.gz new file mode 100644 index 0000000..8a9b9c6 Binary files /dev/null and b/assets/digital-7_mono-webfont-CgrKaJks.svg.gz differ diff --git a/assets/digital-7_mono-webfont-DV1ffHFE.woff b/assets/digital-7_mono-webfont-DV1ffHFE.woff new file mode 100644 index 0000000..d7545f5 Binary files /dev/null and b/assets/digital-7_mono-webfont-DV1ffHFE.woff differ diff --git a/assets/digital-7_mono-webfont-p3QHBSNF.eot b/assets/digital-7_mono-webfont-p3QHBSNF.eot new file mode 100644 index 0000000..7af0eb4 Binary files /dev/null and b/assets/digital-7_mono-webfont-p3QHBSNF.eot differ diff --git a/assets/echarts-D7CAfsfQ.js b/assets/echarts-D7CAfsfQ.js new file mode 100644 index 0000000..6296f6d --- /dev/null +++ b/assets/echarts-D7CAfsfQ.js @@ -0,0 +1,67 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as F2}from"./index-DkxdnFkg.js";import{_ as H2}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as W2,r as U2,U as Dl,h as Y2,g as X2,c as Z2,w as _a,m as am,o as $2,a as $r,b as rn,e as q2,u as K2,i as Q2,_ as J2}from"./index-DD358c5I.js";/*! ***************************************************************************** +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 op=function(r,e){return op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},op(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");op(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var j2=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),tI=function(){function r(){this.browser=new j2,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}(),mt=new tI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mt.wxa=!0,mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(mt.node=!0,mt.svgSupported=!0):eI(navigator.userAgent,mt);function eI(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var qd=12,sw="sans-serif",Xa=qd+"px "+sw,rI=20,aI=100,nI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function iI(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function CI(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?sm(s,o):sm(o,s))}function pw(r){return r.nodeName.toUpperCase()==="CANVAS"}var DI=/([&<>"'])/g,MI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ee(r){return r==null?"":(r+"").replace(DI,function(e,t){return MI[t]})}var II=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vh=[],LI=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function cp(r,e,t,a){return t=t||{},a?um(r,e,t):LI&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):um(r,e,t),t}function um(r,e,t){if(mt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(pw(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(vp(Vh,r,a,n)){t.zrX=Vh[0],t.zrY=Vh[1];return}}t.zrX=t.zrY=0}function rg(r){return r||window.event}function qe(r,e,t){if(e=rg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&cp(r,o,e,t)}else{cp(r,e,e,t);var i=PI(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&II.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PI(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function pp(r,e,t,a){r.addEventListener(e,t,a)}function RI(r,e,t,a){r.removeEventListener(e,t,a)}var sa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fm(r){return r.which===2||r.which===3}var EI=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=hm(a)/hm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=kI(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Fe(){return[1,0,0,1,0,0]}function Jf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ag(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function aa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Gr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function ui(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function ng(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ho(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function OI(r){var e=Fe();return ag(e,r),e}var ut=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),Il=Math.min,Ll=Math.max,an=new ut,nn=new ut,on=new ut,sn=new ut,Do=new ut,Mo=new ut,ht=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Il(e.x,this.x),a=Il(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ll(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ll(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Fe();return Gr(i,i,[-t.x,-t.y]),ng(i,i,[a,n]),Gr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}an.x=on.x=t.x,an.y=sn.y=t.y,nn.x=sn.x=t.x+t.width,nn.y=on.y=t.y+t.height,an.transform(a),sn.transform(a),nn.transform(a),on.transform(a),e.x=Il(an.x,nn.x,on.x,sn.x),e.y=Il(an.y,nn.y,on.y,sn.y);var l=Ll(an.x,nn.x,on.x,sn.x),u=Ll(an.y,nn.y,on.y,sn.y);e.width=l-e.x,e.height=u-e.y},r}(),dw="silent";function NI(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:BI}}function BI(){sa(this.event)}var VI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(or),Io=function(){function r(e,t){this.x=e,this.y=t}return r}(),zI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gh=new ht(0,0,0,0),gw=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Io(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new VI,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new bI(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(zI,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=yw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Io(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Io(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=NI(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Io(t,a);if(vm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Gh.copy(v.getBoundingRect()),v.transform&&Gh.applyTransform(v.transform),Gh.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function GI(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?dw:!0}return!1}function vm(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=GI(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==dw)){e.target=o;break}}}function yw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var mw=32,Lo=7;function FI(r){for(var e=0;r>=mw;)e|=r&1,r>>=1;return r+e}function cm(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function HI(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){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(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Fh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Hh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function WI(r,e){var t=Lo,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Lo||w>=Lo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,A=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--p===0){D=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){D=!0;break}while((T|A)=0;y--)r[x+y]=r[b+y];if(p===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-Fh(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,b=_+1,y=0;y=Lo||A>=Lo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),pm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var ze=1,rs=2,Bi=4,dm=!1;function Wh(){dm||(dm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var UI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Wh(),f.z=0),isNaN(f.z2)&&(Wh(),f.z2=0),isNaN(f.zlevel)&&(Wh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,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}(),ef;ef=mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ds={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 e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ds.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?ds.bounceIn(r*2)*.5:ds.bounceOut(r*2-1)*.5+.5}},Pl=Math.pow,Ha=Math.sqrt,rf=1e-8,_w=1e-4,ym=Ha(3),Rl=1/3,Pr=li(),je=li(),Xi=li();function Na(r){return r>-rf&&rrf||r<-rf}function jt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function mm(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function af(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Na(f)&&Na(h))if(Na(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Na(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Ha(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Pl(-_,Rl):_=Pl(_,Rl),S<0?S=-Pl(-S,Rl):S=Pl(S,Rl);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Ha(f*f*f)),x=Math.acos(b)/3,w=Ha(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+ym*Math.sin(x)))/(3*o),A=(-s+w*(T-ym*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),A>=0&&A<=1&&(i[c++]=A)}}return c}function xw(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Na(o)){if(Sw(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Na(f))n[0]=-i/(2*o);else if(f>0){var h=Ha(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function $a(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function bw(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Pr[0]=l,Pr[1]=u;for(var m=0;m<1;m+=.05)je[0]=jt(r,t,n,o,m),je[1]=jt(e,a,i,s,m),g=Xn(Pr,je),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Na(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Ha(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function ww(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ps(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Tw(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Pr[0]=o,Pr[1]=s;for(var v=0;v<1;v+=.05){je[0]=ie(r,t,n,v),je[1]=ie(e,a,i,v);var c=Xn(Pr,je);c=0&&c=1?1:af(0,a,i,1,l,s)&&jt(0,n,o,1,s[0])}}}var qI=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Xt,this.ondestroy=e.ondestroy||Xt,this.onrestart=e.onrestart||Xt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,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(e){this.easing=e,this.easingFunc=Q(e)?e:ds[e]||ig(e)},r}(),Aw=function(){function r(e){this.value=e}return r}(),KI=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Aw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),nl=function(){function r(e){this._list=new KI,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Aw(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),_m={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 QI(r){return r=Math.round(r),r<0?0:r>360?360:r}function Rs(r){return r<0?0:r>1?1:r}function Uh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function Zn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Rs(parseFloat(e)/100):Rs(parseFloat(e))}function Yh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ba(r,e,t){return r+(e-r)*t}function $e(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function gp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Cw=new nl(20),El=null;function yi(r,e){El&&gp(El,e),El=Cw.put(r,El||e.slice())}function He(r,e){if(r){e=e||[];var t=Cw.get(r);if(t)return gp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in _m)return gp(e,_m[a]),yi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){$e(e,0,0,0,1);return}return $e(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),yi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){$e(e,0,0,0,1);return}return $e(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),yi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?$e(e,+u[0],+u[1],+u[2],1):$e(e,0,0,0,1);f=Zn(u.pop());case"rgb":if(u.length>=3)return $e(e,Uh(u[0]),Uh(u[1]),Uh(u[2]),u.length===3?f:Zn(u[3])),yi(r,e),e;$e(e,0,0,0,1);return;case"hsla":if(u.length!==4){$e(e,0,0,0,1);return}return u[3]=Zn(u[3]),yp(u,e),yi(r,e),e;case"hsl":if(u.length!==3){$e(e,0,0,0,1);return}return yp(u,e),yi(r,e),e;default:return}}$e(e,0,0,0,1)}}function yp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Zn(r[1]),n=Zn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],$e(e,yr(Yh(o,i,t+1/3)*255),yr(Yh(o,i,t)*255),yr(Yh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function JI(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function mp(r,e){var t=He(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return na(t,t.length===4?"rgba":"rgb")}}function Xh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=yr(Ba(o[0],s[0],l)),t[1]=yr(Ba(o[1],s[1],l)),t[2]=yr(Ba(o[2],s[2],l)),t[3]=Rs(Ba(o[3],s[3],l)),t}}function jI(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=He(e[n]),s=He(e[i]),l=a-n,u=na([yr(Ba(o[0],s[0],l)),yr(Ba(o[1],s[1],l)),yr(Ba(o[2],s[2],l)),Rs(Ba(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function gs(r,e,t,a){var n=He(r);if(r)return n=JI(n),e!=null&&(n[0]=QI(e)),t!=null&&(n[1]=Zn(t)),a!=null&&(n[2]=Zn(a)),na(yp(n),"rgba")}function nf(r,e){var t=He(r);if(t&&e!=null)return t[3]=Rs(e),na(t,"rgba")}function na(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function of(r,e){var t=He(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Sm=new nl(100);function _p(r){if(U(r)){var e=Sm.get(r);return e||(e=mp(r,-.1),Sm.put(r,e)),e}else if(Kf(r)){var t=V({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:mp(a.color,-.1)}}),t}return r}var sf=Math.round;function Es(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=He(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var xm=1e-4;function Va(r){return r-xm}function kl(r){return sf(r*1e3)/1e3}function Sp(r){return sf(r*1e4)/1e4}function tL(r){return"matrix("+kl(r[0])+","+kl(r[1])+","+kl(r[2])+","+kl(r[3])+","+Sp(r[4])+","+Sp(r[5])+")"}var eL={left:"start",right:"end",center:"middle",middle:"middle"};function rL(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function aL(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function nL(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Dw(r){return r&&!!r.image}function iL(r){return r&&!!r.svgElement}function og(r){return Dw(r)||iL(r)}function Mw(r){return r.type==="linear"}function Iw(r){return r.type==="radial"}function Lw(r){return r&&(r.type==="linear"||r.type==="radial")}function jf(r){return"url(#"+r+")"}function Pw(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Rw(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Ru,n=it(r.scaleX,1),i=it(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+sf(o*Ru)+"deg, "+sf(s*Ru)+"deg)"),l.join(" ")}var oL=function(){return mt.hasGlobalWindow&&Q(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}}(),xp=Array.prototype.slice;function Jr(r,e,t){return(e-r)*t+r}function Zh(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=wm,l=t;if(ge(t)){var u=fL(t);s=u,(u===1&&!Ct(t[0])||u===2&&!Ct(t[0][0]))&&(o=!0)}else if(Ct(t)&&!Ls(t))s=Nl;else if(U(t))if(!isNaN(+t))s=Nl;else{var f=He(t);f&&(l=f,s=as)}else if(Kf(t)){var h=V({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:He(c.color)}}),Mw(t)?s=bp:Iw(t)&&(s=wp),l=h}i===0?this.valType=s:(s!==this.valType||s===wm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=Q(a)?a:ds[a]||ig(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Bl(n),u=Tm(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?Po:e[l];if((Bl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(Bl(i))i===Bu?Zh(m,c[n],p[n],y):sL(m,c[n],p[n],y);else if(Tm(i)){var _=c[n],S=p[n],b=i===bp;e[l]={type:b?"linear":"radial",x:Jr(_.x,S.x,y),y:Jr(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:Jr(w.offset,A.offset,y),color:Nu(Zh([],w.color,A.color,y))}}),global:S.global},b?(e[l].x2=Jr(_.x2,S.x2,y),e[l].y2=Jr(_.y2,S.y2,y)):e[l].r=Jr(_.r,S.r,y)}else if(u)Zh(m,c[n],p[n],y),a||(e[l]=Nu(m));else{var x=Jr(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Nl?e[a]=e[a]+n:t===as?(He(e[a],Po),Ol(Po,Po,n,1),e[a]=Nu(Po)):t===Bu?Ol(e[a],e[a],n,1):t===Ew&&bm(e[a],e[a],n,1)},r}(),sg=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Jd("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,St(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,ys(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ys(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Hi(){return new Date().getTime()}var vL=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Hi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(ef(a),!t._paused&&t.update())}ef(a)},e.prototype.start=function(){this._running||(this._time=Hi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Hi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Hi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new sg(t,a.loop);return this.addAnimator(n),n},e}(or),cL=300,$h=mt.domSupported,qh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Am={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Cm=!1;function Tp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function pL(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 Kh(r){r&&(r.zrByTouch=!0)}function dL(r,e){return qe(r.dom,new gL(r,e),!0)}function kw(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var gL=function(){function r(e,t){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),vr={mousedown:function(r){r=qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=qe(this.dom,r);var e=r.toElement||r.relatedTarget;kw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Cm=!0,r=qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Cm||(r=qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=qe(this.dom,r),Kh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),vr.mousemove.call(this,r),vr.mousedown.call(this,r)},touchmove:function(r){r=qe(this.dom,r),Kh(r),this.handler.processGesture(r,"change"),vr.mousemove.call(this,r)},touchend:function(r){r=qe(this.dom,r),Kh(r),this.handler.processGesture(r,"end"),vr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentIm||r<-Im}var un=[],mi=[],Jh=Fe(),jh=Math.abs,ta=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Mm(a),this.invTransform=null);return}a=a||Fe(),t?this.getLocalTransform(a):Mm(a),e&&(t?aa(a,e,a):ag(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(un);var a=un[0]<0?-1:1,n=un[1]<0?-1:1,i=((un[0]-a)*t+a)/un[0]||0,o=((un[1]-n)*t+n)/un[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Fe(),ho(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Fe(),aa(mi,e.invTransform,t),t=mi);var a=this.originX,n=this.originY;(a||n)&&(Jh[4]=a,Jh[5]=n,aa(mi,t,Jh),mi[4]-=a,mi[5]-=n,t=mi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ue(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ue(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&jh(e[0]-1)>1e-10&&jh(e[3]-1)>1e-10?Math.sqrt(jh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Nw(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&ui(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Fr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nw(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function uf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=_r(a[0],t.width),u+=_r(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var tv="__zr_normal__",ev=Fr.concat(["ignore"]),xL=zr(Fr,function(r,e){return r[e]=!0,r},{ignore:!1}),_i={},bL=new ht(0,0,0,0),eh=function(){function r(e){this.id=fw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=bL;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_i,a,f):uf(_i,a,f),i.x=_i.x,i.y=_i.y,o=_i.align,s=_i.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=_r(h[0],f.width),c=_r(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.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)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=ze,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mp:Dp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&He(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,na(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=St(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(tv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===tv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(vt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Jd("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ze),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ze)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=vt(n,e),o=vt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,A=void 0,D=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];A[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=d[S];D[y]=ys(t[y]),TL(t,a,y)}}var b=new sg(t,!1,!1,h?Pt(p,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(u??500,s?A:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var at=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=vt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=vt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?EL(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ut(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),zw),r=(+r).toFixed(e),t?r:+r}function ar(r){return r.sort(function(e,t){return e-t}),r}function Er(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return kL(r)}function kL(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Gw(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function OL(r,e){var t=zr(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=zr(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function NL(r,e){var t=Math.max(Er(r),Er(e)),a=r+e;return t>zw?a:Ut(a,t)}var km=9007199254740991;function Fw(r){var e=Math.PI*2;return(r%e+e)%e}function ks(r){return r>-Em&&r=10&&e++,e}function Hw(r,e){var t=lg(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function nv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function Om(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&vt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var lP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],uP=ai(lP),fP=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return uP(this,e,t)},r}(),Pp=new nl(50);function hP(r){if(typeof r=="string"){var e=Pp.get(r);return e&&e.image}else return r}function vg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Pp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!ah(e)&&i.pending.push(o)):(e=Za.loadImage(r,zm,zm),e.__zrImageSrc=r,Pp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function zm(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=We(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function eT(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=We(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?cP(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=We(r,a)}return r===""&&(r=e.placeholder),r}function cP(r,e,t,a){for(var n=0,i=0,o=r.length;ic&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&i&&f!=null)for(var d=tT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&ov(t,r.substring(s,u),e,o),ov(t,l[2],e,o,l[1]),s=iv.lastIndex}sn){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=We(x.text,D);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=hP(R),ah(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=p&&a!=null?a-S:null;E!=null&&E0&&p+a.accumWidth>a.width&&(f=e.split(` +`),u=!0),a.accumWidth=p}else{var d=rT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(` +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _P=zr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function SP(r){return mP(r)?!!_P[r]:!0}function rT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Rp="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[Rp]=!0;var Fm=["z","z2","invisible"],xP=["invisible"],ir=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Vl[0]=fv(n)*t+r,Vl[1]=uv(n)*a+e,zl[0]=fv(i)*t+r,zl[1]=uv(i)*a+e,u(s,Vl,zl),f(l,Vl,zl),n=n%hn,n<0&&(n=n+hn),i=i%hn,i<0&&(i=i+hn),n>i&&!o?i+=hn:nn&&(Gl[0]=fv(c)*t+r,Gl[1]=uv(c)*a+e,u(s,Gl,s),f(l,Gl,l))}var kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vn=[],cn=[],wr=[],Sa=[],Tr=[],Ar=[],hv=Math.min,vv=Math.max,pn=Math.cos,dn=Math.sin,qr=Math.abs,Ep=Math.PI,Ia=Ep*2,cv=typeof Float32Array<"u",Ro=[];function pv(r){var e=Math.round(r/Ep*1e8)/1e8;return e%2*Ep}function cg(r,e){var t=pv(r[0]);t<0&&(t+=Ia);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Ia?n=t+Ia:e&&t-n>=Ia?n=t-Ia:!e&&t>n?n=t+(Ia-pv(t-n)):e&&t0&&(this._ux=qr(a/lf/e)||0,this._uy=qr(a/lf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(kt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=qr(e-this._xi),n=qr(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(kt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(kt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(kt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Ro[0]=n,Ro[1]=i,cg(Ro,o),n=Ro[0],i=Ro[1];var s=i-n;return this.addData(kt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=pn(i)*a+e,this._yi=dn(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(kt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(kt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&cv&&(this.data=new Float32Array(t));for(var a=0;af.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 e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){wr[0]=wr[1]=Tr[0]=Tr[1]=Number.MAX_VALUE,Sa[0]=Sa[1]=Ar[0]=Ar[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||qr(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case kt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];d=YI(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case kt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];d=ZI(i,o,S,b,g,y,10),i=g,o=y;break}case kt.A:var T=e[v++],A=e[v++],D=e[v++],M=e[v++],I=e[v++],L=e[v++],P=L+I;v+=1,p&&(s=pn(I)*D+T,l=dn(I)*M+A),d=vv(D,M)*hv(Ia,Math.abs(L)),i=pn(P)*D+T,o=dn(P)*M+A;break;case kt.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];d=R*2+E*2;break}case kt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case kt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case kt.L:{h=a[x++],v=a[x++];var A=qr(h-u),D=qr(v-f);if(A>n||D>i){if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var L=A*A+D*D;L>_&&(S=h,b=v,_=L)}break}case kt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],B=a[x++];if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;$a(u,P,E,O,I,vn),$a(f,R,N,B,I,cn),e.bezierCurveTo(vn[1],cn[1],vn[2],cn[2],vn[3],cn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case kt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;Ps(u,P,E,I,vn),Ps(f,R,N,I,cn),e.quadraticCurveTo(vn[1],cn[1],vn[2],cn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case kt.A:var F=a[x++],H=a[x++],Y=a[x++],K=a[x++],J=a[x++],ct=a[x++],xt=a[x++],pt=!a[x++],rt=Y>K?Y:K,dt=qr(Y-K)>.001,st=J+ct,q=!1;if(c){var M=p[y++];g+M>m&&(st=J+ct*(m-g)/M,q=!0),g+=M}if(dt&&e.ellipse?e.ellipse(F,H,Y,K,xt,J,st,pt):e.arc(F,H,rt,J,st,pt),q)break t;T&&(s=pn(J)*Y+F,l=dn(J)*K+H),u=pn(st)*Y+F,f=dn(st)*K+H;break;case kt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var lt=a[x++],zt=a[x++];if(c){var M=p[y++];if(g+M>m){var Tt=m-g;e.moveTo(h,v),e.lineTo(h+hv(Tt,lt),v),Tt-=lt,Tt>0&&e.lineTo(h+lt,v+hv(Tt,zt)),Tt-=zt,Tt>0&&e.lineTo(h+vv(lt-Tt,0),v+zt),Tt-=lt,Tt>0&&e.lineTo(h,v+vv(zt-Tt,0));break t}g+=M}e.rect(h,v,lt,zt);break;case kt.Z:if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=kt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Pa(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Eo);var v=Math.atan2(l,s);return v<0&&(v+=Eo),v>=a&&v<=n||v+Eo>=a&&v+Eo<=n}function jr(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var xa=Wr.CMD,gn=Math.PI*2,MP=1e-4;function IP(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&LP(),c=jt(e,a,i,s,Qe[0]),v>1&&(p=jt(e,a,i,s,Qe[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=ie(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);xe[0]=-l,xe[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=gn-1e-4){a=0,n=gn;var f=i?1:-1;return o>=xe[0]+r&&o<=xe[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=gn,n+=gn);for(var v=0,c=0;c<2;c++){var p=xe[c];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=gn+d),(d>=a&&d<=n||d+gn>=a&&d+gn<=n)&&(d>Math.PI/2&&d1&&(t||(s+=jr(l,u,f,h,a,n))),g&&(l=i[p],u=i[p+1],f=l,h=u),d){case xa.M:f=i[p++],h=i[p++],l=f,u=h;break;case xa.L:if(t){if(Pa(l,u,i[p],i[p+1],e,a,n))return!0}else s+=jr(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.C:if(t){if(CP(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=PP(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.Q:if(t){if(aT(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=RP(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=jr(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(DP(y,m,S,b,b+x,w,e,T,n))return!0}else s+=EP(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case xa.R:f=l=i[p++],h=u=i[p++];var A=i[p++],D=i[p++];if(v=f+A,c=h+D,t){if(Pa(f,h,v,h,e,a,n)||Pa(v,h,v,c,e,a,n)||Pa(v,c,f,c,e,a,n)||Pa(f,c,f,h,e,a,n))return!0}else s+=jr(v,h,v,c,a,n),s+=jr(f,c,f,h,a,n);break;case xa.Z:if(t){if(Pa(l,u,f,h,e,a,n))return!0}else s+=jr(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!IP(u,h)&&(s+=jr(l,u,f,h,a,n)||0),s!==0}function kP(r,e,t){return nT(r,0,!1,e,t)}function OP(r,e,t,a){return nT(r,e,!0,t,a)}var ff=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),NP={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nh.style)},dv=Fr.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Dp:a>.2?SL:Mp}else if(t)return Mp}return Dp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=of(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Bi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),OP(s,l/u,t,a)))return!0}if(this.hasFill())return kP(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:V(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Bi)},e.prototype.createStyle=function(t){return Qf(ff,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=V({},n.shape),V(u,a.shape)):(u=V({},i?this.shape:n.shape),V(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=St(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Qf(BP,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=il(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ir);ji.prototype.type="tspan";var VP=j({x:0,y:0},$n),zP={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nh.style)};function GP(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var se=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Qf(VP,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=GP(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return zP},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ir);se.prototype.type="image";function FP(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Wi=Math.round;function iT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Wi(a*2)===Wi(n*2)&&(r.x1=r.x2=zn(a,s,!0)),Wi(i*2)===Wi(o*2)&&(r.y1=r.y2=zn(i,s,!0))),r}}function oT(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=zn(a,s,!0),r.y=zn(n,s,!0),r.width=Math.max(zn(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(zn(n+o,s,!1)-r.y,o===0?0:1)),r}}function zn(r,e,t){if(!e)return r;var a=Wi(r*2);return(a+Wi(e))%2===0?a/2:(a+(t?1:-1))/2}var HP=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),WP={},bt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new HP},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=oT(WP,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?FP(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);bt.prototype.type="rect";var Xm={fill:"#000"},Zm=2,UP={style:j({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},nh.style)},At=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Xm,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-A)/2;D<=L;)P=x[D],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&gv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=jm(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(ji),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Jm("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=Qm("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Zm,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Xa,g.opacity=Br(u.opacity,a.opacity,1),qm(g,u),b&&(g.lineWidth=Br(u.lineWidth,a.lineWidth,_),g.lineDash=it(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ht(ns(g.x,w,g.textAlign),Vi(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(bt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=it(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(se),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=it(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Br(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return lT(t)&&(a=[t.fontStyle,t.fontWeight,sT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&dr(a)||t.textFont||t.font},e}(ir),YP={left:!0,right:1,center:1},XP={top:1,bottom:1,middle:1},$m=["fontStyle","fontWeight","fontSize","fontFamily"];function sT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?qd+"px":r+"px"}function qm(r,e){for(var t=0;t<$m.length;t++){var a=$m[t],n=e[a];n!=null&&(r[a]=n)}}function lT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ZP(r){return Km(r),C(r.rich,Km),r}function Km(r){if(r){r.font=At.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||YP[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||XP[t]?t:"top";var a=r.padding;a&&(r.padding=eg(r.padding))}}function Qm(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Jm(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function jm(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function t0(r){var e=r.text;return e!=null&&(e+=""),e}function gv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var nt=wt(),kp=function(r,e,t,a){if(a){var n=nt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=nt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},e0=1,r0={},uT=wt(),pg=wt(),dg=0,sl=1,oh=2,Ce=["emphasis","blur","select"],Ns=["normal","emphasis","blur","select"],co=10,$P=9,qn="highlight",Gu="downplay",Ss="select",Fu="unselect",xs="toggleSelect";function Si(r){return r!=null&&r!=="none"}function sh(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function fT(r){sh(r,"emphasis",oh)}function hT(r){r.hoverState===oh&&sh(r,"normal",dg)}function gg(r){sh(r,"blur",sl)}function vT(r){r.hoverState===sl&&sh(r,"normal",dg)}function qP(r){r.selected=!0}function KP(r){r.selected=!1}function a0(r,e,t){e(r,t)}function da(r,e,t){a0(r,e,t),r.isGroup&&r.traverse(function(a){a0(a,e,t)})}function hf(r,e){switch(e){case"emphasis":r.hoverState=oh;break;case"normal":r.hoverState=dg;break;case"blur":r.hoverState=sl;break;case"select":r.selected=!0}}function QP(r,e,t,a){for(var n=r.style,i={},o=0;o=0,i=!1;if(r instanceof yt){var o=uT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Si(s)||Si(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!Si(u.fill)&&Si(s)?(i=!0,a=V({},a),u=V({},u),u.fill=_p(s)):!Si(u.stroke)&&Si(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=_p(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??co)}return a}function jP(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??$P)}return t}function tR(r,e,t){var a=vt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:QP(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?n:i.opacity*.1},o),t.style=o),t}function yv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return JP(this,r,e,t);if(r==="blur")return tR(this,r,t);if(r==="select")return jP(this,r,t)}return t}function ni(r){r.stateProxy=yv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=yv),t&&(t.stateProxy=yv)}function n0(r,e){!gT(r,e)&&!r.__highByOuter&&da(r,fT)}function i0(r,e){!gT(r,e)&&!r.__highByOuter&&da(r,hT)}function ua(r,e){r.__highByOuter|=1<<(e||0),da(r,fT)}function fa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&da(r,hT)}function cT(r){da(r,gg)}function yg(r){da(r,vT)}function pT(r){da(r,qP)}function dT(r){da(r,KP)}function gT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function yT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=pg(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){vT(u)}),s&&t.push(i)),o.isBlured=!1}),C(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Op(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Kn(r,e,t){Gn(r,!0),da(r,ni),Bp(r,e,t)}function oR(r){Gn(r,!1)}function Ht(r,e,t,a){a?oR(r):Kn(r,e,t)}function Bp(r,e,t){var a=nt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var s0=["emphasis","blur","select"],sR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fe(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=mv(p),s*=mv(p));var d=(n===i?-1:1)*mv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Hl(h)*g-Fl(h)*y,_=(e+a)/2+Fl(h)*g+Hl(h)*y,S=h0([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=h0(b,x);if(zp(b,x)<=-1&&(w=ko),zp(b,x)>=1&&(w=0),w<0){var T=Math.round(w/ko*1e6)/1e6;w=ko*2+T%2*ko}f.addData(u,m,_,o,s,S,w,h,i)}var cR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dR(r){var e=new Wr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Wr.CMD,l=r.match(cR);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(n/b-1),y1:A*(n/b-1)}}function bR(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function wR(r,e){var t,a=is(e.r,0),n=is(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=c0(u-l),p=c>_v&&c%_v;if(p>hr&&(c=p),!(a>hr))r.moveTo(f,h);else if(c>_v-hr)r.moveTo(f+a*bi(l),h+a*yn(l)),r.arc(f,h,a,l,u,!v),n>hr&&(r.moveTo(f+n*bi(u),h+n*yn(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=a*bi(l),E=a*yn(l),N=n*bi(u),O=n*yn(u),B=c>hr;if(B){var F=e.cornerRadius;F&&(t=bR(F),d=t[0],g=t[1],y=t[2],m=t[3]);var H=c0(a-n)/2;if(_=Cr(H,y),S=Cr(H,m),b=Cr(H,d),x=Cr(H,g),A=w=is(_,S),D=T=is(b,x),(w>hr||T>hr)&&(M=a*bi(u),I=a*yn(u),L=n*bi(l),P=n*yn(l),chr){var dt=Cr(y,A),st=Cr(m,A),q=Wl(L,P,R,E,a,dt,v),lt=Wl(M,I,N,O,a,st,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),A0&&r.arc(f+q.cx,h+q.cy,dt,ce(q.y0,q.x0),ce(q.y1,q.x1),!v),r.arc(f,h,a,ce(q.cy+q.y1,q.cx+q.x1),ce(lt.cy+lt.y1,lt.cx+lt.x1),!v),st>0&&r.arc(f+lt.cx,h+lt.cy,st,ce(lt.y1,lt.x1),ce(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>hr)||!B)r.lineTo(f+N,h+O);else if(D>hr){var dt=Cr(d,D),st=Cr(g,D),q=Wl(N,O,M,I,n,-st,v),lt=Wl(R,E,L,P,n,-dt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D0&&r.arc(f+q.cx,h+q.cy,st,ce(q.y0,q.x0),ce(q.y1,q.x1),!v),r.arc(f,h,n,ce(q.cy+q.y1,q.cx+q.x1),ce(lt.cy+lt.y1,lt.cx+lt.x1),v),dt>0&&r.arc(f+lt.cx,h+lt.cy,dt,ce(lt.y1,lt.x1),ce(lt.y0,lt.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var TR=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}(),De=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new TR},e.prototype.buildPath=function(t,a){wR(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);De.prototype.type="sector";var AR=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ll=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AR},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(yt);ll.prototype.type="ring";function CR(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=CR(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s_n[1]){if(s=!1,i)return s;var f=Math.abs(_n[0]-mn[1]),h=Math.abs(mn[0]-_n[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Dt(r,e,t,a,n,i){xg("update",r,e,t,a,n,i)}function Vt(r,e,t,a,n,i){xg("enter",r,e,t,a,n,i)}function Zi(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function g0(r){return!r.isGroup}function GR(r){return r.shape!=null}function hl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){g0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return GR(o)&&(s.shape=V({},o.shape)),s}var i=a(r);e.traverse(function(o){if(g0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Dt(o,l,t,nt(o).dataIndex)}}})}function PT(r,e){return G(r,function(t){var a=t[0];a=cf(a,e.x),a=pf(a,e.x+e.width);var n=t[1];return n=cf(n,e.y),n=pf(n,e.y+e.height),[a,n]})}function FR(r,e){var t=cf(r.x,e.x),a=pf(r.x+r.width,e.x+e.width),n=cf(r.y,e.y),i=pf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function vl(r,e,t){var a=V({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,t),new se(a)):fh(r.replace("path://",""),a,t,"center")}function os(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Sv(c,p,f,h)/v;return!(g<0||g>1)}function Sv(r,e,t,a){return r*a-t*e}function HR(r){return r<=1e-6&&r>=-1e-6}function go(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(St(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function y0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function tn(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function en(r,e){return ft(ft({},r,!0),e,!0)}const tE={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:". "}}}},eE={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var gf="ZH",Tg="EN",$i=Tg,Wu={},Ag={},VT=mt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$i).toUpperCase();return r.indexOf(gf)>-1?gf:$i}():$i;function zT(r,e){r=r.toUpperCase(),Ag[r]=new It(e),Wu[r]=e}function rE(r){if(U(r)){var e=Wu[r.toUpperCase()]||{};return r===gf||r===Tg?et(e):ft(et(e),et(Wu[$i]),!1)}else return ft(et(r),et(Wu[$i]),!1)}function Hp(r){return Ag[r]}function aE(){return Ag[$i]}zT(Tg,tE);zT(gf,eE);var Cg=1e3,Dg=Cg*60,ws=Dg*60,rr=ws*24,b0=rr*365,ss={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}"},Xl="{yyyy}-{MM}-{dd}",w0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xl,hour:Xl+" "+ss.hour,minute:Xl+" "+ss.minute,second:Xl+" "+ss.second,millisecond:ss.none},wv=["year","month","day","hour","minute","second","millisecond"],GT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ba(r,e){return r+="","0000".substr(0,e-r.length)+r}function qi(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 nE(r){return r===qi(r)}function iE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ch(r,e,t,a){var n=Hr(r),i=n[Mg(t)](),o=n[Ki(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[ph(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[zs(t)](),h=(f-1)%12+1,v=n[dh(t)](),c=n[gh(t)](),p=n[yh(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=a instanceof It?a:Hp(a||VT)||aE(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ba(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ba(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ba(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ba(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ba(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ba(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ba(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ba(p,3)).replace(/{S}/g,p+"")}function oE(r,e,t,a,n){var i=null;if(U(t))i=t;else if(Q(t))i=t(r.value,e,{level:r.level});else{var o=V({},ss);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return ch(new Date(r.value),i,n,a)}function FT(r,e){var t=Hr(r),a=t[Ki(e)]()+1,n=t[ph(e)](),i=t[zs(e)](),o=t[dh(e)](),s=t[gh(e)](),l=t[yh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,p=c&&a===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function T0(r,e,t){var a=Ct(r)?Hr(r):r;switch(e=e||FT(r,t),e){case"year":return a[Mg(t)]();case"half-year":return a[Ki(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ki(t)]()+1)/4);case"month":return a[Ki(t)]();case"day":return a[ph(t)]();case"half-day":return a[zs(t)]()/24;case"hour":return a[zs(t)]();case"minute":return a[dh(t)]();case"second":return a[gh(t)]();case"millisecond":return a[yh(t)]()}}function Mg(r){return r?"getUTCFullYear":"getFullYear"}function Ki(r){return r?"getUTCMonth":"getMonth"}function ph(r){return r?"getUTCDate":"getDate"}function zs(r){return r?"getUTCHours":"getHours"}function dh(r){return r?"getUTCMinutes":"getMinutes"}function gh(r){return r?"getUTCSeconds":"getSeconds"}function yh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function sE(r){return r?"setUTCFullYear":"setFullYear"}function HT(r){return r?"setUTCMonth":"setMonth"}function WT(r){return r?"setUTCDate":"setDate"}function UT(r){return r?"setUTCHours":"setHours"}function YT(r){return r?"setUTCMinutes":"setMinutes"}function XT(r){return r?"setUTCSeconds":"setSeconds"}function ZT(r){return r?"setUTCMilliseconds":"setMilliseconds"}function $T(r){if(!Ww(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qT(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var _o=eg;function Wp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&dr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Hr(r):r;if(isNaN(+l)){if(s)return"-"}else return ch(l,a,t)}if(e==="ordinal")return sp(r)?n(r):Ct(r)&&i(r)?r+"":"-";var u=la(r);return i(u)?$T(u):sp(r)?n(r):typeof r=="boolean"?r+"":"-"}var A0=["a","b","c","d","e","f","g"],Tv=function(r,e){return"{"+r+(e??"")+"}"};function KT(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function ii(r,e){return e=e||"transparent",U(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function yf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Uu=C,QT=["left","right","top","bottom","width","height"],Fn=[["width","left","right"],["height","top","bottom"]];function Ig(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=i+d,c>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=p+t)})}var Jn=Ig;ot(Ig,"vertical");ot(Ig,"horizontal");function fE(r,e,t){var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=_o(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Jt(r,e,t){t=_o(t||0);var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),f=W(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ht(i+t[3],o+t[0],u,f);return p.margin=t,p}function mh(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=Jt(j({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function hE(r,e){return r[Fn[e][0]]!=null||r[Fn[e][1]]!=null&&r[Fn[e][2]]!=null}function Gs(r){var e=r.layoutMode||r.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function Ka(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Fn[0],0),i=o(Fn[1],1);u(Fn[0],r,n),u(Fn[1],r,i);function o(f,h){var v={},c=0,p={},d=0,g=2;if(Uu(f,function(_){p[_]=r[_]}),Uu(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=ft(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return ol(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(It);jw(_t,It);rh(_t);JR(_t);jR(_t,cE);function cE(r){var e=[];return C(_t.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return kr(t).main}),r!=="dataset"&&vt(e,"dataset")<=0&&e.unshift("dataset"),e}var jT="";typeof navigator<"u"&&(jT=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)";const pE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:jT.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 tA=$(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sr="original",ye="arrayRows",lr="objectRows",Ur="keyedColumns",Wa="typedArray",eA="unknown",Vr="column",xo="row",le={Must:1,Might:2,Not:3},rA=wt();function dE(r){rA(r).datasetMap=$()}function aA(r,e,t){var a={},n=Pg(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=rA(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),C(r,function(d,g){var y=tt(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function oA(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:SE(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function xE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Zl,Oo,D0,M0="\0_ec_inner",bE=1,Eg=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new It(i),this._locale=new It(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=P0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,P0(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?D0(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=a&&a.replaceMergeMainTypeMap;dE(this),C(t,function(h,v){h!=null&&(_t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?et(h):ft(n[v],h,!0))}),u&&u.each(function(h,v){_t.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),f,this);function f(h){var v=mE(this,h,Rt(t[h])),c=i.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=$w(c,v,p);ZL(d,h,_t),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;C(d,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",A=_t.getClass(h,S.keyInfo.subType,!T);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var D=V({componentIndex:b},S.keyInfo);x=new A(w,this,this,D),V(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&Zl(this)}this._seriesIndices||Zl(this)},e.prototype.getOption=function(){var t=et(this.option);return C(t,function(a,n){if(_t.hasClass(n)){for(var i=Rt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Os(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[M0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function PE(r,e){return r.join(",")===e.join(",")}var ur=C,Fs=tt,R0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=R0.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=NL(v,m),d=m;break}}}return a[0]=v,a[1]=d,a})})}var _h=function(){function r(e){this.data=e.data||(e.sourceFormat===Ur?{}:[]),this.sourceFormat=e.sourceFormat||eA,this.seriesLayoutBy=e.seriesLayoutBy||Vr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};z0=(e={},e[ye+"_"+Vr]={pure:!0,appendData:i},e[ye+"_"+xo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[lr]={pure:!0,appendData:i},e[Ur]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[sr]={appendData:i},e[Wa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return eo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function W0(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ts(r){return new $E(r)}var $E=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},KE=function(){function r(e,t){if(!Ct(t)){var a="";Mt(a)}this._opFn=yA[e],this._rvalFloat=la(t)}return r.prototype.evaluate=function(e){return Ct(e)?this._opFn(e,this._rvalFloat):this._opFn(la(e),this._rvalFloat)},r}(),mA=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ct(e)?e:la(e),n=Ct(t)?t:la(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),QE=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=la(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=la(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function JE(r,e){return r==="eq"||r==="ne"?new QE(r==="eq",e):Z(yA,r)?new KE(r,e):null}var jE=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ua(e,t)},r}();function tk(r,e){var t=new jE,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Vr&&Mt(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Mt(_),l[y]=m}});else for(var f=0;f65535?lk:uk}function Ti(){return[1/0,-1/0]}function fk(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function X0(r,e,t,a,n){var i=xA[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;ye[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Bo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}M>0&&Mf-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Ua(t[i],this._dimensions[i])}Iv={arrayRows:e,objectRows:function(t,a,n,i){return Ua(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ua(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),bA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if($l(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Wa:sr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=it(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=it(h.sourceHeader,v.sourceHeader),d=it(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;n=g?[Xp(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Xp(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&$0(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&$0(h),s.push(f),l.push(u._getVersionSign())}),a?o=ok(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[FE(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return C(r.blocks,function(n){var i=CA(n);i>=e&&(e=i+ +(a&&(!i||$p(n)&&!n.noHeader)))}),e}return 0}function ck(r,e,t,a){var n=e.noHeader,i=dk(CA(e)),o=[],s=e.blocks||[];Ae(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new mA(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,d){var g=e.valueFormatter,y=AA(p)(g?V(V({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):qp(o.join(""),n?t:i.html);if(n)return h;var v=Wp(e.header,"ordinal",r.useUTC),c=TA(a,r.renderMode).nameStyle;return r.renderMode==="richText"?DA(r,v,c)+i.richText+h:qp('
'+Ee(v)+"
"+h,t)}function pk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Wp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Wp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=TA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":DA(r,v,m))+(o?"":mk(r,p,d,g,_)):qp((s?"":h)+(i?"":gk(v,!s,m))+(o?"":yk(p,d,g,_)),t)}}function q0(r,e,t,a,n,i){if(r){var o=AA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function dk(r){return{html:hk[r],richText:vk[r]}}function qp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function gk(r,e,t){var a=e?"margin-left:2px":"";return''+Ee(r)+""}function yk(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Ee(o)}).join("  ")+""}function DA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function mk(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function MA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return ii(a)}function IA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Lv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Uw()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=uE({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?C(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function LA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=MA(e,t),f,h,v,c;if(o>1||l&&!o){var p=_k(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=eo(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=ug(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ne("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ne("nameValue",{markerType:"item",markerColor:u,name:_,noName:!dr(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function _k(r,e,t,a,n){var i=e.getData(),o=zr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?C(a,function(h){f(eo(i,t,h),h)}):C(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ne("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var wa=wt();function ql(r,e){return r.getName(e)||r.getId(e)}var Yu="__universalTransitionEnabled",Bt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ts({count:xk,reset:bk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=wa(this).sourceManager=new bA(this);i.prepareSource();var o=this.getInitialData(t,n);Q0(o,this),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,K0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Gs(this),i=n?So(t):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),ft(t,a.getTheme().get(this.subType)),ft(t,this.getDefaultOption()),ei(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ka(t,i,n)},e.prototype.mergeOption=function(t,a){t=ft(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Gs(this);n&&Ka(this.option,t,n);var i=wa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);Q0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,K0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Be(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Rg.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[ql(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Yu])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return _t.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(_t);Kt(Bt,Sh);Kt(Bt,Rg);jw(Bt,_t);function K0(r){var e=r.name;ug(r)||(r.name=Sk(r)||e)}function Sk(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return C(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function xk(r){return r.model.getRawData().count()}function bk(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),wk}function wk(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Q0(r,e){C(tf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(Tk,e))})}function Tk(r,e){var t=Kp(r);return t&&t.setOutputEnd((e||this).count()),e}function Kp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Gt=function(){function r(){this.group=new at,this.uid=mo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();hg(Gt);rh(Gt);function bo(){var r=wt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var PA=wt(),Ak=bo(),Et=function(){function r(){this.group=new at,this.uid=mo("viewChart"),this.renderTask=Ts({plan:Ck,reset:Dk}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&j0(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&j0(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){tn(this.group,e)},r.markUpdateMethod=function(e,t){PA(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function J0(r,e,t){r&&Bs(r)&&(e==="emphasis"?ua:fa)(r,t)}function j0(r,e,t){var a=ri(r,e),n=e&&e.highlightKey!=null?uR(e.highlightKey):null;a!=null?C(Rt(a),function(i){J0(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){J0(i,t,n)})}hg(Et);rh(Et);function Ck(r){return Ak(r.model)}function Dk(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&PA(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),Mk[l]}var Mk={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mf="\0__throttleOriginMethod",t_="\0__throttleRate",e_="\0__throttleType";function Vg(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function wo(r,e,t,a){var n=r[e];if(n){var i=n[mf]||n,o=n[e_],s=n[t_];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Vg(i,t,a==="debounce"),n[mf]=i,n[e_]=a,n[t_]=t}return n}}function Hs(r,e){var t=r[e];t&&t[mf]&&(t.clear&&t.clear(),r[e]=t[mf])}var r_=wt(),a_={itemStyle:ai(BT,!0),lineStyle:ai(NT,!0)},Ik={lineStyle:"stroke",itemStyle:"fill"};function RA(r,e){var t=r.visualStyleMapper||a_[e];return t||(console.warn("Unknown style type '"+e+"'."),a_.itemStyle)}function EA(r,e){var t=r.visualDrawType||Ik[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Lk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=RA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=EA(r,a),u=o[l],f=Q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=V({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Vo=new It,Pk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=RA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Vo.option=l[a];var u=n(Vo),f=o.ensureUniqueItemVisual(s,"style");V(f,u),Vo.option.decal&&(o.setItemVisual(s,"decal",Vo.option.decal),Vo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Rk={performRawSeries:!0,overallReset:function(r){var e=$();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),r_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=r_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=EA(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Kl=Math.PI;function Ek(r,e){e=e||{},j(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new at,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new At({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new uh({shape:{startAngle:-Kl/2,endAngle:-Kl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Kl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kl*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var kA=function(){function r(e,t,a,n){this._stageTaskMap=$(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=$();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;C(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Ae(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=$(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ts({plan:Vk,reset:zk,count:Fk}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Ts({reset:kk});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=$(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Ae(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,C(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,Ts({reset:Ok,onDirty:Bk})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:Hk(e)}),e.uid=mo("stageHandler"),t&&(e.visualType=t),e},r}();function kk(r){r.overallReset(r.ecModel,r.api,r.payload)}function Ok(r){return r.overallProgress&&Nk}function Nk(){this.agent.dirty(),this.getDownstream().dirty()}function Bk(){this.agent&&this.agent.dirty()}function Vk(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function zk(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return OA(a)}):Gk}var Gk=OA(0);function OA(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Qp=["symbol","symbolSize","symbolRotate","symbolOffset"],s_=Qp.concat(["symbolKeepAspect"]),Yk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Wn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Jp(r,e,t){for(var a=e.type==="radial"?oO(r,e,t):iO(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ct(r)?[r]:z(r)?r:null}function Gg(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&lO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var uO=new Wr(!0);function xf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function l_(r){return typeof r=="string"&&r!=="none"}function bf(r){var e=r.fill;return e!=null&&e!=="none"}function u_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function f_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function jp(r,e,t){var a=vg(e.image,e.__image,t);if(ah(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Ru),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function fO(r,e,t,a){var n,i=xf(t),o=bf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||uO,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?Jp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Jp(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?jp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?jp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,A;r.setLineDash&&t.lineDash&&(n=Gg(e),T=n[0],A=n[1]);var D=!0;(u||h&Bi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),a||(t.strokeFirst?(i&&f_(r,t),o&&u_(r,t)):(o&&u_(r,t),i&&f_(r,t))),T&&r.setLineDash([])}function hO(r,e,t){var a=e.__image=vg(t.image,e.__image,e,e.onload);if(!(!a||!ah(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function vO(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Xa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Gg(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(xf(t)&&r.strokeText(n,t.x,t.y),bf(t)&&r.fillText(n,t.x,t.y)):(bf(t)&&r.fillText(n,t.x,t.y),xf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var h_=["shadowBlur","shadowOffsetX","shadowOffsetY"],v_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FA(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ne(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?$n.opacity:o}(a||e.blend!==t.blend)&&(i||(Ne(r,n),i=!0),r.globalCompositeOperation=e.blend||$n.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[pe]){if(this._disposed){this.id;return}var i,o,s;if(tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[pe]=!0,!this._model||a){var l=new DE(this._api),u=this._theme,f=this._model=new Eg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},ed);var h={seriesTransition:s,optionChanged:!0};if(n)this[Re]={silent:i,updateParams:h},this[pe]=!1,this.getZr().wakeUp();else{try{Ci(this),Ta.update.call(this,null,h)}catch(v){throw this[Re]=null,this[pe]=!1,v}this._ssr||this._zr.flush(),this[Re]=null,this[pe]=!1,zo.call(this,i),Go.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||mt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(mt.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return C(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;C(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(D_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();C(Cs,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=Za.createCanvas(),y=Rm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return C(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),C(v,function(_){var S=new se({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Ov(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Ov(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=_s(n,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=_s(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?zg(s,l,a):pl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(BO,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Hn(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=V({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),C(As,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),C(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),Zk(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Kw(this.getDom(),Wg,"");var a=this,n=a._api,i=a._model;C(a._componentsViews,function(o){o.dispose(i,n)}),C(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Cs[a.id]},e.prototype.resize=function(t){if(!this[pe]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Re]&&(i==null&&(i=this[Re].silent),n=!0,this[Re]=null),this[pe]=!0;try{n&&Ci(this),Ta.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[pe]=!1,o}this[pe]=!1,zo.call(this,i),Go.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!rd[t]){var n=rd[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=As[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!wf[t.type]&&this._model){if(this[pe]){this._pendingActions.push(t);return}var n=a.silent;Bv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&mt.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Go.call(this,n)}},e.prototype.updateLabelLayout=function(){cr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ci=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),kv(h,!0),kv(h,!1),v.plan()},kv=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!mt.node&&!mt.worker&&v.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,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Zi(y))return;if(y instanceof yt&&fR(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}A_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){ua(p,d),Ue(h)},c.prototype.leaveEmphasis=function(p,d){fa(p,d),Ue(h)},c.prototype.enterBlur=function(p){cT(p),Ue(h)},c.prototype.leaveBlur=function(p){yg(p),Ue(h)},c.prototype.enterSelect=function(p){pT(p),Ue(h)},c.prototype.leaveSelect=function(p){dT(p),Ue(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(sA))(h)},rC=function(h){function v(c,p){for(var d=0;d=0)){M_.push(t);var i=kA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function lC(r,e){rd[r]=e}function UO(r,e,t){var a=bO("registerMap");a&&a(r,e,t)}var YO=ik;vi(Fg,Lk);vi(bh,Pk);vi(bh,Rk);vi(Fg,Yk);vi(bh,Xk);vi(KA,SO);oC(uA);sC(AO,zE);lC("default",Ek);Yr({type:qn,event:qn,update:qn},Xt);Yr({type:Gu,event:Gu,update:Gu},Xt);Yr({type:Ss,event:Ss,update:Ss},Xt);Yr({type:Fu,event:Fu,update:Fu},Xt);Yr({type:xs,event:xs,update:xs},Xt);iC("light",Wk);iC("dark",VA);var I_=[],XO={registerPreprocessor:oC,registerProcessor:sC,registerPostInit:GO,registerPostUpdate:FO,registerUpdateLifecycle:Ug,registerAction:Yr,registerCoordinateSystem:HO,registerLayout:WO,registerVisual:vi,registerTransform:YO,registerLoading:lC,registerMap:UO,registerImpl:xO,PRIORITY:kO,ComponentModel:_t,ComponentView:Gt,SeriesModel:Bt,ChartView:Et,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Gt.registerClass(r)},registerSeriesModel:function(r){Bt.registerClass(r)},registerChartView:function(r){Et.registerClass(r)},registerSubTypeDefaulter:function(r,e){_t.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){LL(r,e)}};function gt(r){if(z(r)){C(r,function(e){gt(e)});return}vt(I_,r)>=0||(I_.push(r),Q(r)&&(r={install:r}),r.install(XO))}function Fo(r){return r==null?0:r.length||1}function L_(r){return r}var ha=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||L_,this._newKeyGetter=n||L_,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Ho=tt,Aa=G,JO=typeof Int32Array>"u"?Array:Int32Array,jO="e\0\0",P_=-1,tN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eN=["_approximateExtent"],R_,ru,Wo,Uo,Gv,au,Fv,we=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;fC(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===sr;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Ho(i)&&(i=V({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ho(t)?V(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ho(e)?V(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;kp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Aa(this.dimensions,this._getDimInfo,this),this.hostModel)),Gv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(tg(arguments)))})},r.internalField=function(){R_=function(e){var t=e._invertedIndicesMap;C(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new JO(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();function dl(r,e){kg(r)||(r=Og(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=$(),i=[],o=aN(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cC(o),l=a===r.dimensionsDefine,u=l?vC(r):hC(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=$(f),v=new SA(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function aN(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return C(e,function(i){var o;tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function nN(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var iN=function(){function r(e){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=e}return r}();function oN(r){var e=r.get("coordinateSystem"),t=new iN(e),a=sN[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var sN={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",$t).models[0],i=r.getReferringComponents("yAxis",$t).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Di(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Di(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",$t).models[0];e.coordSysDims=["single"],t.set("single",n),Di(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",$t).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Di(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Di(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Di(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Di(r){return r.get("type")==="category"}function lN(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;uN(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(C(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;C(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function uN(r){return!fC(r.schema)}function Qa(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function pC(r,e){return Qa(r,e)?r.getCalculationInfo("stackResultDimension"):e}function fN(r,e){var t=r.get("coordinateSystem"),a=cl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Af(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function hN(r,e,t){var a,n;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function ya(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Og(r)):(n=a.getSource(),i=n.sourceFormat===sr);var o=oN(e),s=fN(e,o),l=t.useEncodeDefaulter,u=Q(l)?l:l?ot(aA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=dl(n,f),v=hN(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=lN(e,{schema:h,store:c}),d=new we(h,e);d.setCalculationInfo(p);var g=v!=null&&vN(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d}function vN(r){if(r.sourceFormat===sr){var e=cN(r.data||[]);return!z(vo(e))}}function cN(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();rh(Xr);var pN=0,ad=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++pN}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,dN);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r}();function dN(r){return tt(r)&&r.value!=null?r.value:r+""}function nd(r){return r.type==="interval"||r.type==="log"}function gN(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=Hw(i/e);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=dC(o),l=n.niceTickExtent=[Ut(Math.ceil(r[0]/o)*o,s),Ut(Math.floor(r[1]/o)*o,s)];return yN(l,r),n}function Hv(r){var e=Math.pow(10,lg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ut(t*e)}function dC(r){return Er(r)+2}function E_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function yN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),E_(r,0,e),E_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function wh(r,e){return r>=e[0]&&r<=e[1]}function Th(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Ah(r,e){return r*(e[1]-e[0])+e[0]}var Ch=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ad({})),z(n)&&(n=new ad({categories:G(n,function(i){return tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),wh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Th(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ah(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Xr);Xr.registerClass(Ch);var wn=Ut,va=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return wh(t,this._extent)},e.prototype.normalize=function(t){return Th(t,this._extent)},e.prototype.scale=function(t){return Ah(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=dC(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:wn(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function mC(r){var e=SN(r),t=[];return C(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=W(a.get("barWidth"),s),d=W(a.get("barMaxWidth"),s),g=W(a.get("barMinWidth")||(wC(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Zg(i),stackId:Xg(a)})}),_C(t)}function _C(r){var e={};C(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),f=W(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),C(i,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,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;C(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;C(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function xN(r,e,t){if(r&&e){var a=r[Zg(e)];return a!=null&&t!=null?a[Xg(t)]:a}}function SC(r,e){var t=yC(r,e),a=mC(t);C(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Xg(n),u=a[Zg(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function xC(r){return{seriesType:r,plan:bo(),reset:function(e){if(bC(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=Qa(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=bN(n,i),p=wC(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&Or(b*3),w=p&&l&&Or(b*3),T=p&&Or(b),A=a.master.getRect(),D=v?A.width:A.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),E=c,N=void 0;h&&(N=+P-I.get(o,M));var O=void 0,B=void 0,F=void 0,H=void 0;if(v){var Y=a.dataToPoint([P,R]);if(h){var K=a.dataToPoint([N,R]);E=K[0]}O=E,B=Y[1]+m,F=Y[0]-E,H=y,Math.abs(F)0?t:1:t))}var wN=function(r,e,t,a){for(;t>>1;r[n][1]n&&(this._approxInterval=n);var s=nu.length,l=Math.min(wN(nu,this._approxInterval,0,s),s-1);this._interval=nu[l][1],this._minLevelUnit=nu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Ct(t)?t:+Hr(t)},e.prototype.contain=function(t){return wh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Th(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ah(t,this._extent)},e.type="time",e}(va),nu=[["second",Cg],["minute",Dg],["hour",ws],["quarter-day",ws*6],["half-day",ws*12],["day",rr*1.2],["half-week",rr*3.5],["week",rr*7],["month",rr*31],["quarter",rr*95],["half-year",b0/2],["year",b0]];function TN(r,e,t,a){var n=Hr(e),i=Hr(t),o=function(p){return T0(n,p,a)===T0(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function AN(r,e){return r/=rr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function CN(r){var e=30*rr;return r/=e,r>6?6:r>3?3:r>2?2:1}function DN(r){return r/=ws,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function k_(r,e){return r/=e?Dg:Cg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function MN(r){return Hw(r)}function IN(r,e,t){var a=new Date(r);switch(qi(e)){case"year":case"month":a[HT(t)](0);case"day":a[WT(t)](1);case"hour":a[UT(t)](0);case"minute":a[YT(t)](0);case"second":a[XT(t)](0),a[ZT(t)](0)}return a.getTime()}function LN(r,e,t,a){var n=1e4,i=GT,o=0;function s(D,M,I,L,P,R,E){for(var N=new Date(M),O=M,B=N[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Pt(G(u,function(D){return Pt(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1,c=0;c0;)i*=10;var s=[Ut(EN(a[0]/i)*i),Ut(RN(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ds.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=fr(t)/fr(this.base),wh(t,this._extent)},e.prototype.normalize=function(t){return t=fr(t)/fr(this.base),Th(t,this._extent)},e.prototype.scale=function(t){return t=Ah(t,this._extent),iu(this.base,t)},e.type="log",e}(Xr),TC=qg.prototype;TC.getMinorTicks=Ds.getMinorTicks;TC.getLabel=Ds.getLabel;function ou(r,e){return PN(r,Er(e))}Xr.registerClass(qg);var kN=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[NN[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=ON[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),ON={min:"_determinedMin",max:"_determinedMax"},NN={min:"_dataMin",max:"_dataMax"};function AC(r,e,t){var a=r.rawExtentInfo;return a||(a=new kN(r,e,t),r.rawExtentInfo=a,a)}function su(r,e){return e==null?null:Ls(e)?NaN:r.parse(e)}function CC(r,e){var t=r.type,a=AC(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=yC("bar",o),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=mC(s),f=BN(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function BN(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=xN(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;C(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function ao(r,e){var t=e,a=CC(r,t),n=a.extent,i=t.get("splitNumber");r instanceof qg&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Dh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ch({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $g({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Xr.getClass(e)||va)}}function VN(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Ao(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):U(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(e):Q(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Kg(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function Kg(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function zN(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof Ch?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ao(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var gl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),HN=1e-8;function N_(r,e){return Math.abs(r-e)n&&(a=o,n=l)}if(a)return UN(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?B_(s.exterior,n,i,t):C(s.points,function(l){B_(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function ZN(r,e){return r=XN(r),G(Pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new V_(o[0],o.slice(1)));break;case"MultiPolygon":C(n.coordinates,function(l){l[0]&&i.push(new V_(l[0],l.slice(1)))});break;case"LineString":i.push(new z_([n.coordinates]));break;case"MultiLineString":i.push(new z_(n.coordinates))}var s=new IC(a[e||"name"],i,a.cp);return s.properties=a,s})}var Ys=wt();function PC(r,e){var t=G(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function $N(r){var e=r.getLabelModel().get("customValues");if(e){var t=Ao(r);return{labels:PC(r,e).map(function(a){var n={value:a};return{formattedLabel:t(n),rawLabel:r.scale.getLabel(n),tickValue:a}})}}return r.type==="category"?KN(r):JN(r)}function qN(r,e){var t=r.getTickModel().get("customValues");return t?{ticks:PC(r,t)}:r.type==="category"?QN(r,e):{ticks:G(r.scale.getTicks(),function(a){return a.value})}}function KN(r){var e=r.getLabelModel(),t=RC(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function RC(r,e){var t=EC(r,"labels"),a=Qg(e),n=kC(t,a);if(n)return n;var i,o;return Q(a)?i=BC(r,a):(o=a==="auto"?jN(r):a,i=NC(r,o)),OC(t,a,{labels:i,labelCategoryInterval:o})}function QN(r,e){var t=EC(r,"ticks"),a=Qg(e),n=kC(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=BC(r,a,!0);else if(a==="auto"){var s=RC(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=NC(r,o,!0);return OC(t,a,{ticks:i,tickCategoryInterval:o})}function JN(r){var e=r.scale.getTicks(),t=Ao(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function EC(r,e){return Ys(r)[e]||(Ys(r)[e]=[])}function kC(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var p=0,d=0,g=il(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Ys(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function eB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function NC(r,e,t){var a=Ao(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=DC(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);c&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function BC(r,e,t){var a=r.scale,n=Ao(r),i=[];return C(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var G_=[0,1],br=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Gw(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),F_(a,n.count())),Lt(e,G_,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),F_(a,n.count()));var i=Lt(e,a,G_,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=qN(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return rB(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return $N(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 e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return tB(this)},r}();function F_(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function rB(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;C(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,p){return c=Ut(c),p=Ut(p),h?c>p:cn&&(n+=Yo);var c=Math.atan2(s,o);if(c<0&&(c+=Yo),c>=a&&c<=n||c+Yo>=a&&c+Yo<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Df(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function VC(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var pr=[];function oB(r,e,t){var a=VC(e.x,e.y,e.width,e.height,r.x,r.y,pr);return t.set(pr[0],pr[1]),a}function sB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,gr.fromArray(r[0]),Ot.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Nr,gr,Ot),ut.sub(Rr,Yt,Ot);var t=Nr.len(),a=Rr.len();if(!(t<.001||a<.001)){Nr.scale(1/t),Rr.scale(1/a);var n=Nr.dot(Rr),i=Math.cos(e);if(i1&&ut.copy(be,Yt),be.toArray(r[1])}}}}function lB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,gr.fromArray(r[0]),Ot.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Nr,Ot,gr),ut.sub(Rr,Yt,Ot);var a=Nr.len(),n=Rr.len();if(!(a<.001||n<.001)){Nr.scale(1/a),Rr.scale(1/n);var i=Nr.dot(e),o=Math.cos(t);if(i=l)ut.copy(be,Yt);else{be.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-f));var h=Yt.x!==Ot.x?(be.x-Ot.x)/(Yt.x-Ot.x):(be.y-Ot.y)/(Yt.y-Ot.y);if(isNaN(h))return;h<0?ut.copy(be,Ot):h>1&&ut.copy(be,Yt)}be.toArray(r[1])}}}}function Yv(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function uB(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Ea(a[0],a[1]),i=Ea(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=ku([],a[1],a[0],o/n),l=ku([],a[1],a[2],o/i),u=ku([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&b(-f/o,0,o);var d=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&&w(-y),m<0&&w(m);function _(){y=d.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function S(T,A,D){if(T<0){var M=Math.min(A,-T);if(M>0){b(M*D,0,o);var I=M+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function b(T,A,D){T!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var E=D[I-1]*R;b(-E,I,o)}}}function w(T){var A=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M0?b(D,0,M+1):b(-D,o-M-1,o),T-=D,T<=0)return}return u}function fB(r,e,t,a){return FC(r,"x","width",e,t,a)}function HC(r,e,t,a){return FC(r,"y","height",e,t,a)}function WC(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ht(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),vt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Dt(a,u,t,l)}else if(a.attr(u),!yo(a).valueAnimation){var h=it(a.style.opacity,1);a.style.opacity=0,Vt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};lu(c,u,uu),lu(c,a.states.select,uu)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};lu(p,u,uu),lu(p,a.states.emphasis,uu)}OT(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=cB(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),Dt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Vt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}(),Zv=wt();function dB(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Zv(t).labelManager;n||(n=Zv(t).labelManager=new pB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Zv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var $v=Math.sin,qv=Math.cos,UC=Math.PI,An=Math.PI*2,gB=180/UC,YC=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Va(h-An)||(f?u>=An:-u>=An),c=u>0?u%An:u%An+An,p=!1;v?p=!0:Va(h)?p=!1:p=c>=UC==!!f;var d=e+a*qv(o),g=t+n*$v(o);this._start&&this._add("M",d,g);var y=Math.round(i*gB);if(v){var m=1/this._p,_=(f?1:-1)*(An-m);this._add("A",a,n,y,1,+f,e+a*qv(o+_),t+n*$v(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*qv(s),b=t+n*$v(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function AB(r){return""}function ey(r,e){e=e||{};var t=e.newline?` +`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return TB(o,s)+(o!=="style"?Ee(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+AB(o)}return a(r)}function CB(r,e,t){t=t||{};var a=t.newline?` +`:"",n=" {"+a,i=a+"}",o=G(St(r),function(l){return l+n+G(St(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(St(e),function(l){return"@keyframes "+l+n+G(St(e[l]),function(u){return u+n+G(St(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function sd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Y_(r,e,t,a){return ee("svg","root",{width:r,height:e,xmlns:XC,"xmlns:xlink":ZC,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var DB=0;function qC(){return DB++}var X_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Mn="transform-origin";function MB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new YC;return n.reset(Pw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function IB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Mn]=t+"px "+a+"px")}var LB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KC(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function PB(r,e,t){var a=r.shape.paths,n={},i,o;if(C(a,function(l){var u=sd(t.zrId);u.animation=!0,Mh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=St(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=KC(n,t);return i.replace(o,s)}}function Z_(r){return U(r)?X_[r]?"cubic-bezier("+X_[r]+")":ig(r)?r:"":""}function Mh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Sg){var s=PB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var pt=KC(w,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+qC();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function RB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};$_(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=_p(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),$_(a,e,t)}}function $_(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+qC(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var Xs=Math.round;function QC(r){return r&&U(r.src)}function JC(r){return r&&Q(r.toDataURL)}function ry(r,e,t,a){xB(function(n,i){var o=n==="fill"||n==="stroke";o&&Lw(i)?tD(e,r,n,a):o&&og(i)?eD(t,r,n,a):o&&i==="none"?r[n]="transparent":r[n]=i},e,t,!1),zB(t,r,a)}function ay(r,e){var t=PL(e);t&&(t.each(function(a,n){a!=null&&(r[(U_+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[U_+"silent"]="true"))}function q_(r){return Va(r[0]-1)&&Va(r[1])&&Va(r[2])&&Va(r[3]-1)}function EB(r){return Va(r[4])&&Va(r[5])}function ny(r,e,t){if(e&&!(EB(e)&&q_(e))){var a=1e4;r.transform=q_(e)?"translate("+Xs(e[4]*a)/a+" "+Xs(e[5]*a)/a+")":tL(e)}}function K_(r,e,t){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ae(v,g),Ae(c,g)}else if(v==null||c==null){var y=function(D,M){if(D){var I=D.elm,L=v||M.width,P=c||M.height;D.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=vg(p,null,r,function(D){l||y(x,D),y(h,D)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=ee("image","img",{href:p,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=et(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=Rw(n);b&&(o.patternTransform=b);var x=ee("pattern","",o,[h]),w=ey(x),T=a.patternCache,A=T[w];A||(A=a.zrId+"-p"+a.patternIdx++,T[w]=A,o.id=A,x=a.defs[A]=ee("pattern",A,o,[h])),e[t]=jf(A)}}function GB(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=ee("clipPath",i,o,[jC(r,t)])}e["clip-path"]=jf(i)}function j_(r){return document.createTextNode(r)}function On(r,e,t){r.insertBefore(e,t)}function t1(r,e){r.removeChild(e)}function e1(r,e){r.appendChild(e)}function rD(r){return r.parentNode}function aD(r){return r.nextSibling}function Kv(r,e){r.textContent=e}var r1=58,FB=120,HB=ee("","");function ld(r){return r===void 0}function Lr(r){return r!==void 0}function WB(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function us(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function Zs(r){var e,t=r.children,a=r.tag;if(Lr(a)){var n=r.elm=$C(a);if(iy(HB,r),z(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,nD(r,p,t,n,l)):If(r,e,a,i))}function zi(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(iy(r,e),ld(e.text)?Lr(a)&&Lr(n)?a!==n&&UB(t,a,n):Lr(n)?(Lr(r.text)&&Kv(t,""),nD(t,null,n,0,n.length-1)):Lr(a)?If(t,a,0,a.length-1):Lr(r.text)&&Kv(t,""):r.text!==e.text&&(Lr(a)&&If(t,a,0,a.length-1),Kv(t,e.text)))}function YB(r,e){if(us(r,e))zi(r,e);else{var t=r.elm,a=rD(t);Zs(e),a!==null&&(On(a,e.elm,aD(t)),If(a,[r],0,0))}return e}var XB=0,ZB=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=a1(),this.configLayer=a1(),this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+XB++,this._oldVNode=Y_(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=$C("svg");iy(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",YB(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return J_(e,sd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=sd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],s=this._bgVNode=$B(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ee("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(St(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(ee("defs","defs",{},u)),e.animation){var f=CB(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=ee("style","stl",{},[],f);o.push(h)}}return Y_(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ey(this.renderToVNode({animation:it(e.cssAnimation,!0),emphasis:it(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:it(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?fu:0),this._needsManuallyCompositing),f.__builtin__||Jd("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&ze&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!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(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ft(a[e],t,!0):a[e]=t;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Bt);function no(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=eo(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var yl=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=qt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=rV,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ua(this.childAt(0))},e.prototype.downplay=function(){fa(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Dt(v,c,s,a),Sr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Vt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ae(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=hi(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof se){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;he(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return M?t.getName(R):no(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,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;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ht(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&qa(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();qa(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return To(t.getItemVisual(a,"symbolSize"))},e}(at);function rV(r,e){this.parent.drift(r,e)}function Jv(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function o1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function s1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ae(e),cursorStyle:e.get("cursor")}}var ml=function(){function r(e){this.group=new at,this._SymbolCtor=e||yl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=o1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=s1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Jv(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(!Jv(e,p,h,t)){a.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Dt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=o1(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function sD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function nV(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function iV(r,e,t,a,n,i,o,s){for(var l=nV(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=oD(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||d<0)break;if(jn(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g=a||jn(x,w))c=y,p=m;else{D=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(R);var F=D>0?1:-1;c=y-F*O*o,p=m,I=y+F*B*o,L=m}else if(s==="y"){O=Math.abs(E),B=Math.abs(N);var H=M>0?1:-1;c=y,p=m-H*O*o,I=y,L=m+H*B*o}else O=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),A=B/(B+O),c=y-D*o*(1-A),p=m-M*o*(1-A),I=y+D*o*A,L=m+M*o*A,I=Ca(I,Da(x,y)),L=Ca(L,Da(w,m)),I=Da(I,Ca(x,y)),L=Da(L,Ca(w,m)),D=I-y,M=L-m,c=y-D*O/B,p=m-M*O/B,c=Ca(c,Da(u,y)),p=Ca(p,Da(f,m)),c=Da(c,Ca(u,y)),p=Da(p,Ca(f,m)),D=y-c,M=m-p,I=y+D*B/O,L=m+M*B/O}r.bezierCurveTo(h,v,c,p,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var lD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),oV=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&jn(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?af(s,c,d,y,t,f):af(l,p,g,m,t,f);if(b>0)for(var x=0;x=0){var S=u?jt(l,p,g,m,w):jt(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(yt),sV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(lD),uD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new sV},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&jn(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function fV(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=uV(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";C(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new fl(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}function hV(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&vV(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function vV(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function cV(r,e){return isNaN(r)||isNaN(e)}function pV(r){for(var e=r.length/2;e>0&&cV(r[e*2-2],r[e*2-1]);e--);return e-1}function v1(r,e){return[r[e*2],r[e*2+1]]}function dV(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vD(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=t.seriesIndex,Ht(d,N,O,B);var H=h1(t.get("smooth")),Y=t.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:Y,connectNulls:T}),g){var K=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),K&&(J=h1(K.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:J,smoothMonotone:Y,connectNulls:T}),fe(g,t,"areaStyle"),nt(g).seriesIndex=t.seriesIndex,Ht(g,N,O,B)}var ct=function(xt){i._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=ct)}),this._polyline.onHoverStateChange=ct,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){nt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new yl(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;hf(this._polyline,t),a&&hf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new oV({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new uD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=Q(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=Q(h)?h(p):f*w+v,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(vD(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new At({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=pV(l);f>=0&&(he(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?iD(o,c):no(o,h)},enableTextSetter:!0},gV(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=dV(h,S,w),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=v1(h,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=v.getRawValue(A[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=Qw(n,p,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=v1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var E=yo(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=iV(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=Ma(v.current,n,o,l),p=Ma(v.stackedOnCurrent,n,o,l),d=Ma(v.next,n,o,l),g=Ma(v.stackedOnNext,n,o,l)),f1(c,d)>3e3||f&&f1(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Dt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Dt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;te&&(e=i,t=n)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},_V=function(r){return Math.round(r.length/2)};function cD(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=mV[i]:Q(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,_V))}}}}}function SV(r){r.registerChartView(yV),r.registerSeriesModel(eV),r.registerLayout(Sl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,cD("line"))}var $s=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)C(i.getAxes(),function(v,c){if(v.type==="category"&&a!=null){var p=v.getTicksCoords(),d=v.getTickModel().get("alignWithLabel"),g=o[c],y=a[c]==="x1"||a[c]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Bt);Bt.registerClass($s);var xV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ya(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=en($s.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}($s),bV=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}return r}(),Lf=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new bV},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Vs(i,t,nt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Et),c1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=tc(e.x,r.x),s=ec(e.x+e.width,n),l=tc(e.y,r.y),u=ec(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=ec(e.r,r.r),i=tc(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},p1={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new bt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Lf:De,f=new u({shape:a,z2:1});f.name="item";var h=pD(n);if(f.calculateTextPosition=wV(h,{isRoundCap:u===Lf}),i){var v=f.shape,c=n?"r":"endAngle",p={};v[c]=n?a.r0:a.startAngle,p[c]=a[c],(s?Dt:Vt)(f,{shape:p},i)}return f}};function DV(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function d1(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Dt:Vt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Dt:Vt)(t,{shape:u},f,n)}function g1(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function LV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function pD(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function m1(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Yn(a.getModel("itemStyle"),f,!0);V(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=ae(a);he(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:no(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,TV(r,g==="outside"?c:g,pD(o),a.get(["label","rotate"]))}kT(d,p,i.getRawValue(t),function(m){return iD(e,m)});var y=a.getModel(["emphasis"]);Ht(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),fe(r,a),LV(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function PV(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var RV=function(){function r(){}return r}(),_1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new RV},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function EV(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function dD(r,e,t){if(ci(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function kV(r,e,t){var a=r.type==="polar"?De:bt;return new a({shape:dD(e,t,r),silent:!0,z2:0})}function OV(r){r.registerChartView(CV),r.registerSeriesModel(xV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,cD("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var b1=Math.PI*2,pu=Math.PI/180;function gD(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yD(r,e){var t=gD(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=W(t.width,e.getWidth()),o=W(t.height,e.getHeight()),s=Math.min(i,o),l=W(n[0],s/2),u=W(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=W(a[0],i)+t.x,h=W(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function NV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=gD(a,t),s=yD(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*pu,c=a.get("endAngle"),p=a.get("padAngle")*pu;c=c==="auto"?v-b1:-c*pu;var d=a.get("minAngle")*pu,g=d+p,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,A=[v,c],D=T*p/2;cg(A,!S),v=A[0],c=A[1];var M=mD(a);M.startAngle=v,M.endAngle=c,M.clockwise=S;var I=Math.abs(c-v),L=I,P=0,R=v;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(N,O){var B;if(isNaN(N)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?B=m===0&&x?_:N*_:B=I/y,BB?(H=R+T*B/2,Y=H):(H=R+D,Y=F-D),n.setItemLayout(O,{angle:B,startAngle:H,endAngle:Y,clockwise:S,cx:l,cy:u,r0:h,r:b?Lt(N,w,[h,f]):f}),R=F}),Lt?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",p)}var d=a.getBoundingRect();i.width=d.width;var g=(a.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-h)/2}}}function rc(r){return r.position==="center"}function zV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*BV,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,A=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=W(I.get("edgeDistance"),u),N=I.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=W(B,u);var F=O.get("length2");if(F=W(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Y>0?"left":"right"}var Wt=Math.PI,Ft=0,ve=I.get("rotate");if(Ct(ve))Ft=ve*(Wt/180);else if(L==="center")Ft=0;else if(ve==="radial"||ve===!0){var Zr=Y<0?-H+Wt:-H;Ft=Zr}else if(ve==="tangential"&&L!=="outside"&&L!=="outer"){var Le=Math.atan2(Y,K);Le<0&&(Le=Wt*2+Le);var Cl=K>0;Cl&&(Le=Wt+Le),Ft=Le-Wt}if(i=!!Ft,A.x=J,A.y=ct,A.rotation=Ft,A.setStyle({verticalAlign:"middle"}),rt){A.setStyle({align:pt});var Nh=A.states.select;Nh&&(Nh.x+=A.x,Nh.y+=A.y)}else{var ma=A.getBoundingRect().clone();ma.applyTransform(A.getComputedTransform());var rm=(A.style.margin||0)+2.1;ma.y-=rm/2,ma.height+=rm,t.push({label:A,labelLine:D,position:L,len:B,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Y,K),linePoints:xt,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ma,unconstrainedWidth:ma.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get("avoidLabelOverlap")&&VV(t,a,n,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(Et);function Co(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=dl(a,e).dimensions,i=new we(n,r);return i.initData(a,t),i}var bl=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),HV=wt(),WV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bl(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Co(this,{coordDimensions:["value"],encodeDefaulter:ot(Lg,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=HV(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=OL(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Bt);function UV(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Ct(o)&&!isNaN(o)&&o<0)})}}}function YV(r){r.registerChartView(FV),r.registerSeriesModel(WV),GA("pie",r.registerAction),r.registerLayout(ot(NV,"pie")),r.registerProcessor(xl("pie")),r.registerProcessor(UV("pie"))}var XV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Bt),SD=4,ZV=function(){function r(){}return r}(),$V=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new ZV},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),KV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Sl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new qV:new ml,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Et),QV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(_t),fd=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$t).models[0]},e.type="cartesian2dAxis",e}(_t);Kt(fd,gl);var xD={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)"]}}},JV=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},xD),oy=ft({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}}},xD),jV=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},oy),tz=j({logBase:10},oy);const bD={category:JV,value:oy,time:jV,log:tz};var ez={value:1,category:1,time:1,log:1};function io(r,e,t,a){C(ez,function(n,i){var o=ft(ft({},bD[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Gs(this),c=v?So(f):{},p=h.getTheme();ft(f,p.get(i+"Axis")),ft(f,this.getDefaultOption()),f.type=T1(f),v&&Ka(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ad.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",T1)}function T1(r){return r.type||(r.data?"category":"value")}var rz=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),hd=["x","y"];function A1(r){return r.type==="interval"||r.type==="time"}var az=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=hd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!A1(t)||!A1(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=ho([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ue(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new ht(i,o,s,l)},e}(rz),nz=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(br);function vd(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),oe(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function C1(r){return r.get("coordinateSystem")==="cartesian2d"}function D1(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,$t).models[0];e[a]=i}),e}var ac=Math.log;function wD(r,e,t){var a=va.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=CC(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=ac(r.base);u=[ac(u[0])/v,ac(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Hv(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Hv(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Ut(g-m),d<0&&u[0]>=0?(d=0,g=Ut(m)):g>0&&u[1]<=0&&(g=0,d=-Ut(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var iz=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hd,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=St(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;nd(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(ao(d,p),nd(d)&&(s=c))}f.length&&(s||(s=f.pop(),ao(s.scale,s.model)),C(f,function(g){wD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};C(a.x,function(o){M1(a,"y",o,i)}),C(a.y,function(o){M1(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Jt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=zN(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),oz(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):ks(n-za)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),L1={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ue(s,s,o),ue(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new te({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});to(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(c)||Ct(c))&&(c=[c,c]);var p=hi(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];C([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=qt(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=uz(t,a,e,r),i=hz(t,a,e,r);if(lz(e,i,n),fz(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=GC(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));WC(o)}},axisName:function(r,e,t,a){var n=oe(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,R1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*za/180);var p;R1(i)?v=Te.innerTextLayout(r.rotation,c??r.rotation,o):(v=sz(r.rotation,i,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=oe(r.nameTruncateMaxWidth,g.maxWidth,p),_=new At({x:h[0],y:h[1],rotation:v.rotation,silent:Te.isLabelSilent(e),style:Nt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(go({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=Te.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,nt(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function sz(r,e,t,a){var n=Fw(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return ks(n-za/2)?(o=l?"bottom":"top",i="center"):ks(n-za*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nza/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function lz(r,e,t){if(!DC(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(Ye(i),Ye(u)):P1(i,o)&&(a?(Ye(o),Ye(f)):(Ye(i),Ye(u))),n===!1?(Ye(s),Ye(h)):P1(l,s)&&(n?(Ye(l),Ye(v)):(Ye(s),Ye(h)))}}function Ye(r){r&&(r.ignore=!0)}function P1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Jf([]);return ui(n,n,-r.rotation),t.applyTransform(aa([],n,r.getLocalTransform())),a.applyTransform(aa([],n,e.getLocalTransform())),t.intersect(a)}}function R1(r){return r==="middle"||r==="center"}function TD(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function yz(r){var e=sy(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=cd(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=j({color:p.color},l));var g=ft(et(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(U(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else Q(f)&&(g.name=f(g.name,g));var m=new It(g,null,this.ecModel);return Kt(m,gl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ft({lineStyle:{color:"#bbb"}},Xo.axisLine),axisLabel:du(Xo.axisLabel,!1),axisTick:du(Xo.axisTick,!1),splitLine:du(Xo.splitLine,!0),splitArea:du(Xo.splitArea,!0),indicator:[]},e}(_t),Lz=["axisLine","axisTickLabel","axisName"],Pz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Te(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(i,function(o){C(Lz,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new ga({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,d,x);y[w].push(new ll({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,A=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),D=[],x=0;x<=T;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;oc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);oc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!V1(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;oc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function oc(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(sa(a.event),LD(r,e,t,a,n))}function LD(r,e,t,a,n){n.isAvailableBehavior=X(Zu,null,t,a),r.trigger(e,n)}function Zu(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}function uy(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function fy(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Vz={axisPointer:1,tooltip:1,brush:1};function Ih(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Vz.hasOwnProperty(a.mainType)&&n&&n.model!==t}function PD(r){if(U(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var sc,Pf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},z1=St(Pf),Rf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},G1=St(Rf),zz=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=PD(e);this._defsUsePending=[];var n=new at;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ve(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Hz(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Lh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=ED(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new at,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=sc[s];if(f&&Z(sc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=F1[s];if(c&&Z(F1,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new ji({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),Gz(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){sc={g:function(e,t){var a=new at;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new ga;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new te;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new lh;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=U1(a));var i=new Me({shape:{points:n||[]},silent:!0});return Xe(t,i),Ve(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=U1(a));var i=new Ie({shape:{points:n||[]},silent:!0});return Xe(t,i),Ve(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new se;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new at;return Xe(t,s),Ve(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return Xe(t,s),Ve(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=bT(a);return Xe(t,n),Ve(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),F1={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new fl(e,t,a,n);return H1(r,i),W1(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new CT(e,t,a);return H1(r,n),W1(r,n),n}};function H1(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function W1(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};RD(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Xe(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),j(e.__inheritedStyle,r.__inheritedStyle))}function U1(r){for(var e=Lh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Lh(o);switch(n=n||Fe(),s){case"translate":Gr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ng(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ui(n,n,-parseFloat(l[0])*lc,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*lc);aa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*lc);aa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var X1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RD(r,e,t){var a=r.getAttribute("style");if(a){X1.lastIndex=0;for(var n;(n=X1.exec(a))!=null;){var i=n[1],o=Z(Pf,i)?Pf[i]:null;o&&(e[o]=n[2]);var s=Z(Rf,i)?Rf[i]:null;s&&(t[s]=n[2])}}}function Xz(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),a=$(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;he(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(kD(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Q1(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):nt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function J1(r,e,t,a,n){r.data||go({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function j1(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ht(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&lR(e,n,t),o}function tS(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Bt);function v5(r,e){var t={};return C(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Jt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function g5(r,e){C(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var y5=function(){function r(){this.dimensions=ND}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new gd(l+s,l,V({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=nS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),C(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new gd(s,s,V({nameMap:jd(l)},n(o[0])));u.zoomLimit=oe.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=nS,u.resize(o[0],t),C(o,function(f){f.coordinateSystem=u,g5(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=$(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function w5(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){C5(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=D5(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function T5(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function oS(r){return arguments.length?r:L5}function fs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function A5(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function C5(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function D5(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=uc(s),i=fc(i),s&&i;){n=uc(n),o=fc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(I5(M5(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!uc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!fc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function uc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function fc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function M5(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function I5(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function L5(r,e){return r.parentNode===e.parentNode?1:2}var P5=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),R5=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new P5},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=W(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),A=T.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?tf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(nt(t).focus=L),k5(n,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===sl||hf(t.__edge,P)}})}function k5(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new ul({shape:yd(f,h,v,n,n)})),Dt(d,{shape:yd(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function HD(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function dy(r,e){var t=HD(r);return vt(t,e)>=0}function Ph(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var W5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new It(n,this,this.ecModel),o=py.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ph(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Bt);function U5(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function Y5(r,e){r.eachSeriesByType("tree",function(t){X5(t,e)})}function X5(r,e){var t=A5(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=oS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=oS());var s=r.getData().tree.root,l=s.children[0];if(l){b5(s),U5(l,w5,o),s.hierNode.modifier=-l.hierNode.prelim,$o(l,T5);var u=l,f=l,h=l;$o(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),$o(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=fs(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),$o(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),$o(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function Z5(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");V(s,o)})})}function $5(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=vy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function q5(r){r.registerChartView(E5),r.registerSeriesModel(W5),r.registerLayout(Y5),r.registerVisual(Z5),$5(r)}var hS=["treemapZoomToNode","treemapRender","treemapMove"];function K5(r){for(var e=0;e1;)i=i.parentNode;var o=Yp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var Q5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};UD(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new It({itemStyle:o},this,a);i=t.levels=J5(i,a);var l=G(i||[],function(h){return new It(h,s,a)},this),u=py.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ph(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=$(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){WD(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Bt);function UD(r){var e=0;C(r.children,function(a){UD(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function J5(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;C(r,function(s){var l=new It(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var j5=8,vS=8,hc=5,tG=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),mh(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Qt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+j5*2,t.emptyItemWidth);t.totalWidth+=s+vS,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=fE(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Me({shape:{points:eG(l,0,m,f,d===c.length-1,d===0)},style:j(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new At({style:Nt(i,{text:_})}),textConfig:{position:"inside"},z2:co*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Nt(o,{text:_}),S.ensureState("emphasis").style=p,Ht(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),rG(S,e,y),l+=m+vS}},r.prototype.remove=function(){this.group.removeAll()},r}();function eG(r,e,t,a,n,i){var o=[[n?r:r-hc,e],[r+t,e],[r+t,e+a],[n?r:r-hc,e+a]];return!i&&o.splice(2,0,[r+t+hc,e+a/2]),!n&&o.push([r,e+a/2]),o}function rG(r,e,t){nt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ph(t,e)}}var aG=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;npS||Math.abs(t.dy)>pS)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ht(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var h=f.zoom=f.zoom||1;if(h*=i,u){var v=u.min||0,c=u.max||1/0;h=Math.max(Math.min(c,h),v)}var p=h/f.zoom;f.zoom=h;var d=this.seriesModel.layoutInfo;a-=d.x,n-=d.y;var g=Fe();Gr(g,g,[-a,-n]),ng(g,g,[p,p]),Gr(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&yf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new tG(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(dy(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Et);function qo(){return{nodeGroup:[],background:[],content:[]}}function uG(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),A=v.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=J("nodeGroup",md);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Ef(M).nodeWidth=c,Ef(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=J("background",cS,u,oG);I&&B(M,I,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),E=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Bs(M)&&Gn(M,!1),I&&(Gn(I,!E),h.setItemGraphicEl(o.dataIndex,I),Bp(I,N,R));else{var O=J("content",cS,u,sG);O&&F(M,O),I.disableMorphing=!0,I&&Bs(I)&&Gn(I,!1),Gn(M,!E),h.setItemGraphicEl(o.dataIndex,M),Bp(M,N,R)}return M;function B(pt,rt,dt){var st=nt(rt);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,rt.setShape({x:0,y:0,width:c,height:p,r:D}),g)H(rt);else{rt.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=yS(x);zt.fill=lt;var Tt=Ln(w);Tt.fill=w.get("borderColor");var Wt=Ln(T);Wt.fill=T.get("borderColor");var Ft=Ln(A);if(Ft.fill=A.get("borderColor"),dt){var ve=c-2*d;Y(rt,lt,q.opacity,{x:d,y:0,width:ve,height:S})}else rt.removeTextContent();rt.setStyle(zt),rt.ensureState("emphasis").style=Tt,rt.ensureState("blur").style=Wt,rt.ensureState("select").style=Ft,ni(rt)}pt.add(rt)}function F(pt,rt){var dt=nt(rt);dt.dataIndex=o.dataIndex,dt.seriesIndex=r.seriesIndex;var st=Math.max(c-2*d,0),q=Math.max(p-2*d,0);if(rt.culling=!0,rt.setShape({x:d,y:d,width:st,height:q,r:D}),g)H(rt);else{rt.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,Tt=yS(x);Tt.fill=zt,Tt.decal=lt.decal;var Wt=Ln(w),Ft=Ln(T),ve=Ln(A);Y(rt,zt,lt.opacity,null),rt.setStyle(Tt),rt.ensureState("emphasis").style=Wt,rt.ensureState("blur").style=Ft,rt.ensureState("select").style=ve,ni(rt)}pt.add(rt)}function H(pt){!pt.invisible&&i.push(pt)}function Y(pt,rt,dt,st){var q=v.getModel(st?gS:dS),lt=Qt(v.get("name"),null),zt=q.getShallow("show");he(pt,ae(v,st?gS:dS),{defaultText:zt?lt:null,inheritColor:rt,defaultOpacity:dt,labelFetcher:r,labelDataIndex:o.dataIndex});var Tt=pt.getTextContent();if(Tt){var Wt=Tt.style,Ft=eg(Wt.padding||0);st&&(pt.setTextConfig({layoutRect:st}),Tt.disableLabelLayout=!0),Tt.beforeUpdate=function(){var Zr=Math.max((st?st.width:pt.shape.width)-Ft[1]-Ft[3],0),Le=Math.max((st?st.height:pt.shape.height)-Ft[0]-Ft[2],0);(Wt.width!==Zr||Wt.height!==Le)&&Tt.setStyle({width:Zr,height:Le})},Wt.truncateMinChar=2,Wt.lineOverflow="truncate",K(Wt,st,f);var ve=Tt.getState("emphasis");K(ve?ve.style:null,st,f)}}function K(pt,rt,dt){var st=pt?pt.text:null;if(!rt&&dt.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+st:st}}function J(pt,rt,dt,st){var q=m!=null&&t[pt][m],lt=n[pt];return q?(t[pt][m]=null,ct(lt,q)):g||(q=new rt,q instanceof ir&&(q.z2=fG(dt,st)),xt(lt,q)),e[pt][y]=q}function ct(pt,rt){var dt=pt[y]={};rt instanceof md?(dt.oldX=rt.x,dt.oldY=rt.y):dt.oldShape=V({},rt.shape)}function xt(pt,rt){var dt=pt[y]={},st=o.parentNode,q=rt instanceof at;if(st&&(!a||a.direction==="drillDown")){var lt=0,zt=0,Tt=n.background[st.getRawIndex()];!a&&Tt&&Tt.oldShape&&(lt=Tt.oldShape.width,zt=Tt.oldShape.height),q?(dt.oldX=0,dt.oldY=zt):dt.oldShape={x:lt,y:zt,width:0,height:0}}dt.fadein=!q}}function fG(r,e){return r*iG+e}var Qs=C,hG=tt,kf=-1,re=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=et(e);this.type=a,this.mappingMethod=t,this._normalizeData=pG[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(vc(n),vG(n)):t==="category"?n.categories?cG(n):vc(n,!0):(Ae(t!=="linear"||n.dataExtent),vc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return X(this._normalizeData,this)},r.listVisualTypes=function(){return St(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){tt(e)?C(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:tt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Qs(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(hG(e)){var t=[];Qs(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function vc(r,e){var t=r.visual,a=[];tt(t)?Qs(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),YD(r,a)}function yu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:_d([0,1])}}function mS(r){var e=this.option.visual;return e[Math.round(Lt(r,[0,1],[0,e.length-1],!0))]||{}}function Ko(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function hs(r){var e=this.option.visual;return e[this.option.loop&&r!==kf?r%e.length:r]}function Pn(){return this.option.visual[0]}function _d(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:hs,piecewise:function(e,t){var a=Sd.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Pn}}function Sd(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=re.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function YD(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=He(t);return a||[0,0,0,1]})),e}var pG={linear:function(r){return Lt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=re.findPieceIndex(r,e,!0);if(t!=null)return Lt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??kf},fixed:Xt};function mu(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=SG(n,l,d,g,p,a);ZD(d,y,t,a)}})}}}function yG(r,e,t){var a=V({},e),n=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function _S(r){var e=cc(r,"color");if(e){var t=cc(r,"colorAlpha"),a=cc(r,"colorSaturation");return a&&(e=gs(e,null,null,a)),t&&(e=nf(e,t)),e}}function mG(r,e){return e!=null?gs(e,null,null,r):null}function cc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function _G(r,e,t,a,n,i){if(!(!i||!i.length)){var o=pc(e,"color")||n.color!=null&&n.color!=="none"&&(pc(e,"colorAlpha")||pc(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new re(h);return XD(v).drColorMappingBy=f,v}}}function pc(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function SG(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l=s==="color"&&XD(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Js=Math.max,Of=Math.min,SS=oe,gy=C,$D=["itemStyle","borderWidth"],xG=["itemStyle","gapWidth"],bG=["upperLabel","show"],wG=["upperLabel","height"];const TG={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=W(SS(s.width,l[0]),n),f=W(SS(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Ks(a,v,r),p=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=HD(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?LG(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),qD(d,_,!1,0),S=d.getLayout(),gy(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(PG(s,p,c),!0),r.setLayoutInfo(s),KD(b,new ht(-s.x,-s.y,n,i),g,d,0)}};function qD(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get($D),u=s.get(xG)/2,f=QD(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=Js(n-2*v,0),i=Js(i-v-c,0);var p=n*i,d=AG(r,s,p,e,t,a);if(d.length){var g={x:v,y:c,width:n,height:i},y=Of(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function IG(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Js(u*a/l,l/(u*n)):1/0}function xS(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hkm&&(u=km),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+A,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+A,p="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+A,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(at),xy=function(){function r(e){this.group=new at,this._LineCtor=e||Sy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=DS(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=DS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!qG(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function DS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ae(e)}}function MS(r){return isNaN(r[0])||isNaN(r[1])}function _c(r){return r&&!MS(r[0])&&!MS(r[1])}var Sc=[],xc=[],bc=[],Li=ie,wc=Xn,IS=Math.abs;function LS(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Sc[0]=Li(a[0],n[0],i[0],f),Sc[1]=Li(a[1],n[1],i[1],f);var h=IS(wc(Sc,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Tc(r,e){var t=[],a=Ps,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ra(u[0]),ra(u[1])],u[2]&&u.__original.push(ra(u[2])));var v=u.__original;if(u[2]!=null){if(Se(n[0],v[0]),Se(n[1],v[2]),Se(n[2],v[1]),f&&f!=="none"){var c=cs(s.node1),p=LS(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=cs(s.node2),p=LS(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Se(u[0],n[0]),Se(u[1],n[2]),Se(u[2],n[1])}else{if(Se(i[0],v[0]),Se(i[1],v[1]),Vn(o,i[1],i[0]),fo(o,o),f&&f!=="none"){var c=cs(s.node1);lp(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=cs(s.node2);lp(i[1],i[1],o,-c*e)}Se(u[0],i[0]),Se(u[1],i[1])}})}function PS(r){return r.type==="view"}var KG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new ml,i=new xy,o=this.group;this._controller=new wl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(PS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Dt(u,f,t)}Tc(t.getGraph(),vs(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(A){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),_y(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),my(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(nt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(nt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){eM(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Ih(u,n,t)}),!PS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){uy(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){fy(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Tc(t.getGraph(),vs(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=vs(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Tc(t.getGraph(),vs(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Et);function Pi(r){return"_EC_"+r}var QG=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Pi(e)]){var n=new Rn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Pi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Pi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Ct(e)&&(e=this.nodes[e]),Ct(t)&&(t=this.nodes[t]),e instanceof Rn||(e=n[Pi(e)]),t instanceof Rn||(t=n[Pi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new aM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Rn&&(e=e.id),t instanceof Rn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Rn||(t=this._nodesMap[Pi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Kt(Rn,nM("hostGraph","data"));Kt(aM,nM("hostGraph","edgeData"));function iM(r,e,t,a,n){for(var i=new QG(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=ya(r,t);else{var d=cl.get(c),g=d?d.dimensions||[]:[];vt(g,"value")<0&&g.concat(["value"]);var y=dl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new we(y,t),p.initData(r)}var m=new we(["value"],t);return m.initData(l,s),n&&n(p,m),GD({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var JG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new bl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ei(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){VG(this);var s=iM(i,n,this,!0,l);return C(s.edges,function(u){zG(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=It.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ne("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=LA({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:V({value:0},n)}),a=new we(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Bt),jG={type:"graphRoam",event:"graphRoam",update:"none"};function t3(r){r.registerChartView(KG),r.registerSeriesModel(JG),r.registerProcessor(EG),r.registerVisual(kG),r.registerVisual(OG),r.registerLayout(GG),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,HG),r.registerLayout(UG),r.registerCoordinateSystem("graphView",{dimensions:Tl.dimensions,create:XG}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(jG,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=vy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var e3=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),r3=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new e3},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(yt);function a3(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=W(t[0],e.getWidth()),s=W(t[1],e.getHeight()),l=W(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Su(r,e){var t=r==null?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):Q(e)&&(t=e(r))),t}var n3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=a3(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Lf:De,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];cg(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b=A&&(D===0?0:i[D-1][0])Math.PI/2&&(J+=Math.PI)):K==="tangential"?J=-T-Math.PI/2:Ct(K)&&(J=K*Math.PI/180),J===0?h.add(new At({style:Nt(_,{text:B,x:H,y:Y,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new At({style:Nt(_,{text:B,x:H,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:Y,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var ct=0;ct<=b;ct++){P=Math.cos(T),R=Math.sin(T);var xt=new te({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:I});I.stroke==="auto"&&xt.setStyle({stroke:i((E+ct/b)/S)}),h.add(xt),T+=D}T-=D}else T+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(D,M){var I=m.getItemModel(D),L=I.getModel("pointer"),P=W(L.get("width"),o.r),R=W(L.get("length"),o.r),E=t.get(["pointer","icon"]),N=L.get("offsetCenter"),O=W(N[0],o.r),B=W(N[1],o.r),F=L.get("keepAspect"),H;return E?H=qt(E,O-P/2,B-R,P,R,null,F):H=new r3({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:B}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function A(D,M){var I=g.get("roundCap"),L=I?Lf:De,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=b-m.get(_,D)%b),O}(y||d)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(d){var I=T(D,s);Vt(I,{rotation:-((isNaN(+M)?w[0]:Lt(M,x,w,!0))+Math.PI/2)},t),h.add(I),m.setItemGraphicEl(D,I)}if(y){var L=A(D,s),P=g.get("clip");Vt(L,{shape:{endAngle:Lt(M,x,w,P)}},t),h.add(L),kp(t.seriesIndex,m.dataType,D,L),p[D]=L}}).update(function(D,M){var I=m.get(_,D);if(d){var L=v.getItemGraphicEl(M),P=L?L.rotation:s,R=T(D,P);R.rotation=P,Dt(R,{rotation:-((isNaN(+I)?w[0]:Lt(I,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],N=E?E.shape.endAngle:s,O=A(D,N),B=g.get("clip");Dt(O,{shape:{endAngle:Lt(I,x,w,B)}},t),h.add(O),kp(t.seriesIndex,m.dataType,D,O),p[D]=O}}).execute(),m.each(function(D){var M=m.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(d){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(E instanceof se){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Lt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,fe(E,M),Ht(E,L,P,R)}if(y){var F=p[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,fe(F,M),Ht(F,L,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=qt(s,a.cx-o/2+W(l[0],a.r),a.cy-o/2+W(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new at,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new At({silent:!0}),p[y]=new At({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=i(Lt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+W(w[0],o.r),A=o.cy+W(w[1],o.r),D=c[y];D.attr({z2:g?0:2,style:Nt(x,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+W(I[0],o.r),P=o.cy+W(I[1],o.r),R=W(M.get("width"),o.r),E=W(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,D=p[y],O=M.get("formatter");D.attr({z2:g?0:2,style:Nt(M,{x:L,y:P,text:Su(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),kT(D,{normal:M},_,function(F){return Su(F,O)}),d&&OT(D,y,l,t,{getFormattedLabel:function(F,H,Y,K,J,ct){return Su(ct?ct.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Et),i3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Co(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Bt);function o3(r){r.registerChartView(n3),r.registerSeriesModel(i3)}var s3=["itemStyle","opacity"],l3=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ie,s=new At;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(s3);f=f??1,n||Sr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Vt(i,{style:{opacity:f}},o,a)):Dt(i,{style:{opacity:f},shape:{points:l.points}},o,a),fe(i,s),this._updateLabel(t,a),Ht(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;he(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ut(c[0][0],c[0][1]):null},Dt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Jg(n,jg(l),{stroke:v})},e}(Me),u3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new l3(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Vs(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Et),f3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bl(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Co(this,{coordDimensions:["value"],encodeDefaulter:ot(Lg,this)})},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Bt);function h3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function v3(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();oM3)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Cc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Cc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var P3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ft(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);C(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(_t),R3=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(br);function di(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Ri(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Ri(s,[0,o]),n=i=Ri(s,[n,i]),a=0}e[0]=Ri(e[0],t),e[1]=Ri(e[1],t);var l=Dc(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Ri(e[a],f);var h;return h=Dc(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Dc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ri(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Mc=C,sM=Math.min,lM=Math.max,kS=Math.floor,E3=Math.ceil,OS=Ut,k3=Math.PI,O3=function(){function r(e,t,a){this.type="parallel",this._axesMap=$(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;Mc(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new R3(o,Dh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();Mc(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ao(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=xu(e.get("axisExpandWidth"),l),h=xu(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=xu(c[1]-c[0],l),c[1]=c[0]+p;else{p=xu(f*(h-1),l);var d=e.get("axisExpandCenter")||kS(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[kS(OS(c[0]/f,1))+1,E3(OS(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Mc(a,function(o,s){var l=(n.axisExpandable?B3:N3)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:k3/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=Fe();ui(c,c,v),Gr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];C(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?di(l,n,o,"all"):u="none";else{var c=n[1]-n[0],p=o[1]*s/c;n=[lM(0,p-c/2)],n[1]=sM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function xu(r,e){return sM(lM(r,e[0]),e[1])}function N3(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function B3(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)ar(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iH3}function pM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function dM(r,e,t,a){var n=new at;return n.add(new bt({name:"main",style:Cy(t),silent:!0,draggable:!0,cursor:"move",drift:ot(VS,r,e,n,["n","s","w","e"]),ondragend:ot(si,e,{isEnd:!0})})),C(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(VS,r,e,n,i),ondragend:ot(si,e,{isEnd:!0})}))}),n}function gM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=oo(n,W3),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Qr(r,e,"main",o,s,p,d),a.transformable&&(Qr(r,e,"w",l,u,i,y),Qr(r,e,"e",v,u,i,y),Qr(r,e,"n",l,u,g,i),Qr(r,e,"s",l,c,g,i),Qr(r,e,"nw",l,u,i,i),Qr(r,e,"ne",v,u,i,i),Qr(r,e,"sw",l,c,i,i),Qr(r,e,"se",v,c,i,i))}function Cd(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Cy(t)),n.attr({silent:!a,cursor:a?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Dd(r,i[0]):q3(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?Y3[s]+"-resize":null})})}function Qr(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(Q3(Dy(r,e,[[a,n],[a+i,n+o]])))}function Cy(r){return j({strokeNoScale:!0},r.brushStyle)}function yM(r,e,t,a){var n=[tl(r,t),tl(e,a)],i=[oo(r,t),oo(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function $3(r){return Qn(r.group)}function Dd(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=hh(t[e],$3(r));return a[n]}function q3(r,e){var t=[Dd(r,e[0]),Dd(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function VS(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=mM(e,n,i);C(a,function(u){var f=U3[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(yM(s[0][0],s[1][0],s[0][1],s[1][1])),wy(e,t),si(e,{isEnd:!1})}function K3(r,e,t,a){var n=e.__brushOption.range,i=mM(r,t,a);C(n,function(o){o[0]+=i[0],o[1]+=i[1]}),wy(r,e),si(r,{isEnd:!1})}function mM(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Dy(r,e,t){var a=cM(r,e);return a&&a!==oi?a.clipPath(t,r._transform):et(t)}function Q3(r){var e=tl(r[0][0],r[1][0]),t=tl(r[0][1],r[1][1]),a=oo(r[0][0],r[1][0]),n=oo(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function J3(r,e,t){if(!(!r._brushType||tF(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Ay(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Eh={lineX:FS(0),lineY:FS(1),rect:{createCover:function(r,e){function t(a){return a}return dM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=pM(r);return yM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){gM(r,e,t,a)},updateCommon:Cd,contain:Id},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ie({name:"main",style:Cy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Me({name:"main",draggable:!0,drift:ot(K3,r,e),ondragend:ot(si,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Dy(r,e,t)})},updateCommon:Cd,contain:Id}};function FS(r){return{createCover:function(e,t){return dM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=pM(e),a=tl(t[0][r],t[1][r]),n=oo(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=cM(e,t);if(o!==oi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),gM(e,t,l,n)},updateCommon:Cd,contain:Id}}function SM(r){return r=My(r),function(e){return PT(e,r)}}function xM(r,e){return r=My(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function bM(r,e,t){var a=My(r);return function(n,i){return a.contain(i[0],i[1])&&!Ih(n,e,t)}}function My(r){return ht.create(r)}var eF=["axisLine","axisTickLabel","axisName"],rF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new by(a.getZr())).on("brush",X(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!aF(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=iF(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=V({strokeContainThreshold:f},v),p=new Te(t,c);C(eF,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,n),hl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:SM(h),isTargetByCursor:bM(h,s,i),getLinearBrushOtherExtent:xM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(nF(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Gt);function aF(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function nF(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function iF(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var oF={type:"axisAreaSelect",event:"axisAreaSelected"};function sF(r){r.registerAction(oF,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var lF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function wM(r){r.registerComponentView(I3),r.registerComponentModel(P3),r.registerCoordinateSystem("parallel",z3),r.registerPreprocessor(A3),r.registerComponentModel(Td),r.registerComponentView(rF),io(r,"parallel",Td,lF),sF(r)}function uF(r){gt(wM),r.registerChartView(y3),r.registerSeriesModel(S3),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,T3)}var fF=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),hF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new fF},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ua(this)},e.prototype.downplay=function(){fa(this)},e}(yt),vF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new hF,g=nt(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),A=p.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=p.getLayout(),L,P,R,E,N,O,B,F;d.shape.extent=Math.max(1,I.dy),d.shape.orient=c,c==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(D!=null?D*u:T.x)+I.ty,E=M!=null?M*f:T.y,N=L,O=P*(1-_)+E*_,B=R,F=P*_+E*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=D!=null?D*u:T.x,E=(M!=null?M*f:T.y)+I.ty,N=L*(1-_)+R*_,O=P,B=L*_+R*(1-_),F=E),d.setShape({x1:L,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:B,cpy2:F}),d.useStyle(m.getItemStyle()),HS(d.style,c,p);var H=""+y.get("value"),Y=ae(y,"edgeLabel");he(d,Y,{labelFetcher:{getFormattedLabel:function(ct,xt,pt,rt,dt,st){return t.getFormattedLabel(ct,xt,"edge",rt,Br(dt,Y.normal&&Y.normal.get("formatter"),H),st)}},labelDataIndex:p.dataIndex,defaultText:H}),d.setTextConfig({position:"inside"});var K=y.getModel("emphasis");fe(d,y,"lineStyle",function(ct){var xt=ct.getItemStyle();return HS(xt,c,p),xt}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var J=K.get("focus");Ht(d,J==="adjacency"?p.getAdjacentDataIndices():J==="trajectory"?p.getTrajectoryDataIndices():J,K.get("blurScope"),K.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new bt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});he(b,ae(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),fe(b,g),s.add(b),h.setItemGraphicEl(p.dataIndex,b),nt(b).dataType="node";var x=_.get("focus");Ht(b,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(cF(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Et);function HS(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");U(a)&&U(n)&&(r.fill=new fl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function cF(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Vt(a,{shape:{width:r.width+20}},e,t),a}var pF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new It(o[l],this,a));if(i&&n){var u=iM(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ne("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return ne("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Bt);function dF(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=gF(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;mF(u);var h=Pt(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");yF(u,f,a,n,o,s,v,c,p)})}function gF(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yF(r,e,t,a,n,i,o,s,l){_F(r,e,t,n,i,s,l),wF(r,e,i,n,a,o,s),RF(r,s)}function mF(r){C(r,function(e){var t=Ya(e.outEdges,Nf),a=Ya(e.inEdges,Nf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function _F(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&SF(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;bF(r,T,i)}function TM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function SF(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,CF(s,l,o),Ic(s,n,t,a,o),PF(s,l,o),Ic(s,n,t,a,o)}function TF(r,e){var t=[],a=e==="vertical"?"y":"x",n=Lp(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),C(n.keys,function(i){t.push(n.buckets.get(i))}),t}function AF(r,e,t,a,n,i){var o=1/0;C(r,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var p=n==="vertical"?a:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function CF(r,e,t){C(r.slice().reverse(),function(a){C(a,function(n){if(n.outEdges.length){var i=Ya(n.outEdges,DF,t)/Ya(n.outEdges,Nf);if(isNaN(i)){var o=n.outEdges.length;i=o?Ya(n.outEdges,MF,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ja(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ja(n,t))*e;n.setLayout({y:l},!0)}}})})}function DF(r,e){return Ja(r.node2,e)*r.getValue()}function MF(r,e){return Ja(r.node2,e)}function IF(r,e){return Ja(r.node1,e)*r.getValue()}function LF(r,e){return Ja(r.node1,e)}function Ja(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Nf(r){return r.getValue()}function Ya(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),C(a,function(s){var l=new re({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&C(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function kF(r){r.registerChartView(vF),r.registerSeriesModel(pF),r.registerLayout(dF),r.registerVisual(EF),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var AM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];C(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Af(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Af(d),dimsDef:m.slice()}];return Co(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(aA,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),CM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Bt);Kt(CM,AM,!0);var OF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=WS(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(Sr(h),DM(v,h,i,u)):h=WS(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Et),NF=function(){function r(){}return r}(),BF=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new NF},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var UF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ye){var a="";Mt(a)}var n=WF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function YF(r){r.registerSeriesModel(CM),r.registerChartView(OF),r.registerLayout(zF),r.registerTransform(UF)}var XF=["color","borderColor"],ZF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){tn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&US(u,h))return;var v=Lc(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Pc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&US(u,c)){i.remove(v);return}v?(Dt(v,{shape:{points:c.ends}},t,f),Sr(v)):v=Lc(c),Pc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),YS(t,this.group);var a=t.get("clip",!0)?_l(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Lc(s);Pc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){YS(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Et),$F=function(){function r(){}return r}(),qF=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new $F},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(yt);function Lc(r,e,t){var a=r.ends;return new qF({shape:{points:t?KF(a,r):a},z2:100})}function US(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(XF);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var MM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Bt);Kt(MM,AM,!0);function JF(r){!r||!z(r.series)||C(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var jF=["itemStyle","borderColor"],t4=["itemStyle","borderColor0"],e4=["itemStyle","borderColorDoji"],r4=["itemStyle","color"],a4=["itemStyle","color0"],n4={seriesType:"candlestick",plan:bo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?r4:a4)}function a(i,o){return o.get(i===0?e4:i>0?jF:t4)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");V(h,f)}}}}}},i4={seriesType:"candlestick",plan:bo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=o4(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),A=Math.max(S,b),D=N(T,_),M=N(A,_),I=N(x,_),L=N(w,_),P=[];O(P,M,0),O(P,D,1),P.push(F(L),F(M),F(I),F(D));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:XS(m,y,S,b,f,E),initBaseline:S>b?M[i]:D[i],ends:P,brushRect:B(x,w,_)})}function N(H,Y){var K=[];return K[n]=Y,K[i]=H,isNaN(Y)||isNaN(H)?[NaN,NaN]:e.dataToPoint(K)}function O(H,Y,K){var J=Y.slice(),ct=Y.slice();J[n]=Hu(J[n]+a/2,1,!1),ct[n]=Hu(ct[n]-a/2,1,!0),K?H.push(J,ct):H.push(ct,J)}function B(H,Y,K){var J=N(H,K),ct=N(Y,K);return J[n]-=a/2,ct[n]-=a/2,{x:J[0],y:J[1],width:a,height:ct[1]-J[1]}}function F(H){return H[n]=Hu(H[n],1),H}}function p(d,g){for(var y=Or(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var A=w.get(s,x),D=w.get(u,x),M=w.get(f,x),I=w.get(h,x),L=w.get(v,x);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=XS(w,x,D,M,f,T),S[n]=A,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function XS(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function o4(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=W(it(r.get("barMaxWidth"),n),n),o=W(it(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?W(s,n):Math.max(Math.min(n/2,i),o)}function s4(r){r.registerChartView(ZF),r.registerSeriesModel(MM),r.registerPreprocessor(JF),r.registerVisual(n4),r.registerLayout(i4)}function ZS(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var l4=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new yl(t,a),o=new at;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;Q(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ea(t.__p1,t.__cp1)+Ea(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ie,f=dp;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],p=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(IM),c4=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),p4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c4},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,p=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(aT(h,v,g,y,p,d,s,t,a))return l}else if(Pa(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),PM={seriesType:"lines",plan:bo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&_l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=PM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new d4:new xy(o?i?v4:LM:i?IM:Sy),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Et),y4=typeof Uint32Array>"u"?Array:Uint32Array,m4=typeof Float64Array>"u"?Array:Float64Array;function $S(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),jd([n,t[0],t[1]])}))}var _4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],$S(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if($S(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=tf(this._flatCoords,a.flatCoords),this._flatCoordsOffset=tf(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Bt);function bu(r){return r instanceof Array||(r=[r,r]),r}var S4={seriesType:"lines",reset:function(r){var e=bu(r.get("symbol")),t=bu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=bu(s.getShallow("symbol",!0)),u=bu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function x4(r){r.registerChartView(g4),r.registerSeriesModel(_4),r.registerLayout(PM),r.registerVisual(S4)}var b4=256,w4=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Za.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var I=o(_)?l:u;_>0&&(_=_*D+T),b[x++]=I[M],b[x++]=I[M+1],b[x++]=I[M+2],b[x++]=I[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Za.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function T4(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function qS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var C4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):qS(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(qS(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){tn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=ci(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ae(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),A=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Mh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);I=new bt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(D[1],M)))continue;I=new bt({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),A=O.get("disabled"),b=ae(N)}I.shape.r=S;var B=t.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),he(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:F}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,Ht(I,w,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new w4;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var D=t.dataToPoint([w,T]);return D[0]-=v,D[1]-=c,D.push(A),D}),S=n.getExtent(),b=n.type==="visualMap.continuous"?A4(S,n.option.range):T4(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new se({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Et),D4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=cl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Bt);function M4(r){r.registerChartView(C4),r.registerSeriesModel(D4)}var I4=["itemStyle","borderWidth"],KS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],kc=new ga,L4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:KS[+f],categoryDim:KS[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=JS(o,p),g=QS(o,p,d,v),y=jS(o,v,g);o.setItemGraphicEl(p,y),i.add(y),ex(y,v,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=JS(o,p),m=QS(o,p,y,v),_=BM(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?B4(g,v,m):g=jS(o,v,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),ex(g,v,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&tx(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var c=t.get("clip",!0)?_l(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){tx(i,nt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Et);function QS(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};P4(t,i,n,a,v),R4(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),E4(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=hi(t.get("symbolOffset"),c);return k4(t,c,n,i,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function P4(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Oc(s,o[0])-l,Oc(s,o[1])-l];h[1]0?1:-1}function Oc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function R4(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=W(p[h.index],v),p[f.index]=W(p[f.index],a?v:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function E4(r,e,t,a,n){var i=r.get(I4)||0;i&&(kc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),kc.updateTransform(),i/=kc.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function k4(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=W(m,e[c.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=Ww(a),T=w?a:rx((y+x)/b),A=y-T*d;S=A/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?rx((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var D=p*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=h.bundlePosition=[];I[v.index]=t[v.xy],I[c.index]=t[c.xy];var L=h.barRectShape=V({},t);L[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+D)),L[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function RM(r){var e=r.symbolPatternSize,t=qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function EM(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(Iy(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function kM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Qi(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=RM(t),n.add(i),Qi(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function OM(r,e,t){var a=V({},e.barRectShape),n=r.__pictorialBarRect;n?Qi(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function NM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Dt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],fi[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function JS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=O4,t.isAnimationEnabled=N4,t}function O4(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function N4(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function jS(r,e,t,a){var n=new at,i=new at;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?EM(n,e,t):kM(n,e,t),OM(n,t,a),NM(n,e,t,a),n.__pictorialShapeStr=BM(r,t),n.__pictorialSymbolMeta=t,n}function B4(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Dt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?EM(r,e,t,!0):kM(r,e,t,!0),OM(r,t,!0),NM(r,e,t,!0)}function tx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Iy(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),C(i,function(o){qa(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function BM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Iy(r,e,t){C(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Qi(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&fi[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function ex(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");Iy(r,function(d){if(d instanceof se){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,he(p,ae(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:no(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Ht(r,f,h,i.get("disabled"))}function rx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var V4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=en($s.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}($s);function z4(r){r.registerChartView(L4),r.registerSeriesModel(V4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("pictorialBar"))}var G4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new ha(this._layersSeries||[],l,v,v),p=[];c.add(X(d,this,"add")).update(X(d,this,"update")).remove(X(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function Y4(r){r.registerChartView(G4),r.registerSeriesModel(H4),r.registerLayout(W4),r.registerProcessor(xl("themeRiver"))}var X4=2,Z4=4,nx=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=X4,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new At({z2:Z4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;nt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=V({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=ro(c,o));var p=Yn(l.getModel("itemStyle"),h,!0);V(h,p),C(Ce,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Yn(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,Vt(s,{shape:{r:f.r}},n,a.dataIndex)):(Dt(s,{shape:h},n),Sr(s)),s.useStyle(v),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ht(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)P&&!ks(E-P)&&E0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new nx(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";yf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ld,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Et),Q4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};VM(n);var i=this._levelModels=G(t.levels||[],function(l){return new It(l,this,a)},this),o=py.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Ph(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){WD(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Bt);function VM(r){var e=0;C(r.children,function(a){VM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var ox=Math.PI/180;function J4(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=W(n[0],o),f=W(n[1],s),h=W(i[0],l/2),v=W(i[1],l/2),c=-a.get("startAngle")*ox,p=a.get("minAngle")*ox,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&zM(g,m);var _=0;C(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-h)/(w||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,N){if(E){var O=N;if(E!==d){var B=E.getValue(),F=S===0&&D?b:B*b;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=mp(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function eH(r){r.registerChartView(K4),r.registerSeriesModel(Q4),r.registerLayout(ot(J4,"sunburst")),r.registerProcessor(ot(xl,"sunburst")),r.registerVisual(tH),q4(r)}var sx={color:"fill",borderColor:"stroke"},rH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=wt(),aH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return ya(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=ia(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Bt);function nH(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function iH(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(nH,r)}}}function oH(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function sH(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:X(oH,r)}}}function lH(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function uH(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(lH,r)}}}function fH(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function hH(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:X(fH,r)}}}function vH(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function GM(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Z(r,"text")))}function FM(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return lx(o,r),C(o.rich,function(l){lx(l,l)}),{textConfig:n,textContent:i}}function lx(r,e){e&&(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function ux(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";fx(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,C(e.rich,function(s){fx(s,s)}),a}function fx(r,e){e&&(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var HM={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},hx=St(HM);zr(Fr,function(r,e){return r[e]=1,r},{});Fr.join(", ");var Bf=["","style","shape","extra"],so=wt();function Ly(r,e,t,a,n){var i=r+"Animation",o=po(r,a,n)||{},s=so(e).userDuring;return o.duration>0&&(o.during=s?X(yH,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function $u(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=so(r),u=e.style;l.userDuring=e.during;var f={},h={};if(_H(r,e,h),cx("shape",e,h),cx("extra",e,h),!i&&s&&(mH(r,e,f),vx("shape",r,e,f),vx("extra",r,e,f),SH(r,e,u,f)),h.style=u,cH(r,h,o),dH(r,e),s)if(i){var v={};C(Bf,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),V(p?v[p]:v,d.enterFrom))});var c=Ly("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else pH(r,e,n||0,t,f);WM(r,e),u?r.dirty():r.markRedraw()}function WM(r,e){for(var t=so(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function dH(r,e){Z(e,"silent")&&(r.silent=e.silent),Z(e,"ignore")&&(r.ignore=e.ignore),r instanceof ir&&Z(e,"invisible")&&(r.invisible=e.invisible),r instanceof yt&&Z(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Mr={},gH={setTransform:function(r,e){return Mr.el[r]=e,this},getTransform:function(r){return Mr.el[r]},setShape:function(r,e){var t=Mr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Mr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Mr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Mr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Mr.el.extra||(Mr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Mr.el.extra;if(e)return e[r]}};function yH(){var r=this,e=r.el;if(e){var t=so(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Mr.el=e,a(gH)}}function vx(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ti(l))V(o,i);else for(var u=Rt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=St(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var p=St(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),B=E&&E.ordinalMeta;return B?B.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,B=m(R,Ga).getItemStyle();N!=null&&(B.fill=N),O!=null&&(B.opacity=O);var F={inheritColor:U(N)?N:"#000"},H=_(R,Ga),Y=Nt(H,null,F,!1,!0);Y.text=H.getShallow("show")?it(r.getFormattedLabel(R,Ga),no(e,R)):null;var K=df(H,F,!1);return A(P,B),B=ux(B,Y,K),P&&T(B,P),B.legacy=!0,B}function w(P,R){R==null&&(R=u);var E=m(R,oa).getItemStyle(),N=_(R,oa),O=Nt(N,null,null,!0,!0);O.text=N.getShallow("show")?Br(r.getFormattedLabel(R,oa),r.getFormattedLabel(R,Ga),no(e,R)):null;var B=df(N,null,!0);return A(P,E),E=ux(E,O,B),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Z(R,E)&&(P[E]=R[E])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),Z(sx,P)){var E=e.getItemVisual(R,"style");return E?E[sx[P]]:null}if(Z(rH,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return _N(j({axis:R},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return wg(P,t)}}function LH(r){var e={};return C(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function zc(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Oy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ht(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Oy(r,e,t,a,n,i){var o=-1,s=e;e&&ZM(e,a,n)&&(o=vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ey(a),s&&CH(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ze.normal.cfg=Ze.normal.conOpt=Ze.emphasis.cfg=Ze.emphasis.conOpt=Ze.blur.cfg=Ze.blur.conOpt=Ze.select.cfg=Ze.select.conOpt=null,Ze.isLegacy=!1,RH(u,t,a,n,l,Ze),PH(u,t,a,n,l),ky(r,u,t,a,Ze,n,l),Z(a,"info")&&(ia(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function ZM(r,e,t){var a=ia(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&BH(i)&&$M(i)!==a.customPathData||n==="image"&&Z(o,"image")&&o.image!==a.customImagePath}function PH(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&ZM(o,i,a)&&(o=null),o||(o=Ey(i),r.setClipPath(o)),ky(null,o,e,i,null,a,n)}}function RH(r,e,t,a,n,i){if(!r.isGroup){dx(t,null,i),dx(t,oa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Ey(o),r.setTextContent(f)),ky(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var p=e.childAt(c);kH(e,p,n)}}}function kH(r,e,t){e&&kh(e,ia(r).option,t)}function OH(r){new ha(r.oldChildren,r.newChildren,gx,gx,r).add(yx).update(yx).remove(NH).execute()}function gx(r,e){var t=r&&r.name;return t??TH+e}function yx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Oy(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function NH(r){var e=this.context,t=e.oldChildren[r];t&&kh(t,ia(t).option,e.seriesModel)}function $M(r){return r&&(r.pathData||r.d)}function BH(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function VH(r){r.registerChartView(DH),r.registerSeriesModel(aH)}var Nn=wt(),mx=et,Gc=X,By=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=ot(_x,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}xx(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=sy(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Nn(e).pointerEl=new fi[i.type](mx(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Nn(e).labelEl=new At(mx(t.label));e.add(i),Sx(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Nn(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Nn(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),Sx(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=vl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){sa(u.event)},onmousedown:Gc(this._onHandleDragMove,this,0,0),drift:Gc(this._onHandleDragMove,this),ondragend:Gc(this._onHandleDragEnd,this)}),a.add(n)),xx(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,wo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_x(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Fc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Fc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Fc(n)),Nn(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Hs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function _x(r,e,t,a){qM(Nn(t).lastProp,a)||(Nn(t).lastProp=a,e?Dt(t,a,r):(t.stopAnimation(),t.attr(a)))}function qM(r,e){if(tt(r)&&tt(e)){var t=!0;return C(e,function(a,n){t=t&&qM(r[n],a)}),!!t}else return r===e}function Sx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Fc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xx(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function Vy(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function KM(r,e,t,a,n){var i=t.get("value"),o=QM(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=_o(s.get("padding")||0),u=s.getFont(),f=il(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),zH(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function zH(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function QM(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Kg(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function zy(r,e,t){var a=Fe();return ui(a,a,t.rotation),Gr(a,a,t.position),mr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function JM(r,e,t,a,n,i){var o=Te.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),KM(e,a,n,i,{position:zy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Gy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function jM(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function bx(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var GH=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=Tx(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=Vy(i),c=FH[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=vd(l.model,n);JM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=vd(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=zy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Tx(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(By);function Tx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var FH={line:function(r,e,t){var a=Gy([e,t[0]],[e,t[1]],Ax(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:jM([e-a/2,t[0]],[a,n],Ax(r))}}};function Ax(r){return r.dim==="x"?0:1}var HH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(_t),ea=wt(),WH=C;function t2(r,e,t){if(!mt.node){var a=e.getZr();ea(a).records||(ea(a).records={}),UH(a,e);var n=ea(a).records[r]||(ea(a).records[r]={});n.handler=t}}function UH(r,e){if(ea(r).initialized)return;ea(r).initialized=!0,t("click",ot(Cx,"click")),t("mousemove",ot(Cx,"mousemove")),t("globalout",XH);function t(a,n){r.on(a,function(i){var o=ZH(e);WH(ea(r).records,function(s){s&&n(s,i,o.dispatchAction)}),YH(o.pendings,e)})}}function YH(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function XH(r,e,t){r.handler("leave",null,t)}function Cx(r,e,t,a){e.handler(r,t,a)}function ZH(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Ed(r,e){if(!mt.node){var t=e.getZr(),a=(ea(t).records||{})[r];a&&(ea(t).records[r]=null)}}var $H=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";t2("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Ed("axisPointer",a)},e.prototype.dispose=function(t,a){Ed("axisPointer",a)},e.type="axisPointer",e}(Gt);function e2(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ri(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=i.mapDimension(v),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Dx=wt();function qH(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||X(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){qu(n)&&(n=e2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=qu(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||qu(n),v={},c={},p={list:[],map:{}},d={showPointer:ot(QH,c),showTooltip:ot(JH,p)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);C(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=rW(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&Mx(S,T,d,!1,v)}})});var g={};return C(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&C(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Ix(S),Ix(y)))),g[y.key]=w}})}),C(g,function(y,m){Mx(f[m],y,d,!0,v)}),jH(c,f,v),tW(p,n,r,o),eW(f,o,t),v}}function Mx(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=KH(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function KH(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,n=h,i.length=0),C(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function QH(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function JH(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=qs(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function jH(r,e,t){var a=t.axesInfo=[];C(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function tW(r,e,t,a){if(qu(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function eW(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Dx(a)[n]||{},o=Dx(a)[n]={};C(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function rW(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Ix(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function qu(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Al(r){pi.registerAxisPointerClass("CartesianAxisPointer",GH),r.registerComponentModel(HH),r.registerComponentView($H),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=vz(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},qH)}function aW(r){gt(ID),gt(Al)}var nW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=Vy(i),p=oW[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=iW(a,n,i,l,d);KM(t,n,i,o,g)},e}(By);function iW(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=Fe();ui(v,v,s),Gr(v,v,[a.cx,a.cy]),u=mr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,p=Te.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var oW={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Gy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:bx(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:bx(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},sW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(_t),Fy=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$t).models[0]},e.type="polarAxis",e}(_t);Kt(Fy,gl);var lW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Fy),uW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Fy),Hy=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(br);Hy.prototype.dataToRadius=br.prototype.dataToCoord;Hy.prototype.radiusToData=br.prototype.coordToData;var fW=wt(),Wy=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=il(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=fW(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(br);Wy.prototype.dataToAngle=br.prototype.dataToCoord;Wy.prototype.angleToData=br.prototype.coordToData;var r2=["radius","angle"],hW=function(){function r(e){this.dimensions=r2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hy,this._angleAxis=new Wy,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=Lx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Lx(t);return n===this?this.pointToData(a):null},r}();function Lx(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vW(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=W(a[0],n),r.cy=W(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function cW(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Cf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),C(Cf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),ao(a.scale,a.model),ao(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function pW(r){return r.mainType==="angleAxis"}function Px(r,e){var t;if(r.type=e.get("type"),r.scale=Dh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),pW(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var dW={dimensions:r2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new hW(n+"");i.update=cW;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Px(o,l),Px(s,u),vW(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",$t).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},gW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function wu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Tu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function Rx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var yW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=et(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});Rx(u),Rx(s),C(gW,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&mW[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(pi),mW={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Tu(t),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new fi[c]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new ll({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Tu(t)],u=G(a,function(f){return new te({shape:wu(t,[l,l+s],f.coord)})});r.add(er(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Tu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];tt(b)&&b.textStyle&&(c=new It(b.textStyle,l,l.ecModel))}var x=new At({silent:Te.isLabelSilent(e),style:Nt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Te.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,nt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",R=A;b&&(a[f][L]||(a[f][L]={p:A,n:A}),R=a[f][L][P]);var E=void 0,N=void 0,O=void 0,B=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-A,H=l.dataToCoord(L);Math.abs(F)=B})}}})}function AW(r){var e={};C(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=n2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=a2(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=W(a.get("barWidth"),f),d=W(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=W(a.categoryGap,o),l=W(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),C(i,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=Ex(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Ex(t);return n===this?this.pointToData(a):null},r}();function Ex(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function NW(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new OW(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",$t).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var BW={create:NW,dimensions:i2},kx=["x","y"],VW=["width","height"],zW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Hc(l,1-Gf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=Vy(i),c=GW[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=kd(n);JM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=kd(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=zy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Gf(o),u=Hc(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Hc(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(By),GW={line:function(r,e,t){var a=Gy([e,t[0]],[e,t[1]],Gf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:jM([e-a/2,t[0]],[a,n],Gf(r))}}};function Gf(r){return r.isHorizontal()?0:1}function Hc(r,e){var t=r.getRect();return[t[kx[e]],t[kx[e]]+t[VW[e]]]}var FW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Gt);function HW(r){gt(Al),pi.registerAxisPointerClass("SingleAxisPointer",zW),r.registerComponentView(FW),r.registerComponentView(RW),r.registerComponentModel(Ku),io(r,"single",Ku,Ku.defaultOption),r.registerCoordinateSystem("single",BW)}var WW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=So(t);r.prototype.init.apply(this,arguments),Ox(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Ox(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(_t);function Ox(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return hE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ka(r,e,{type:"box",ignoreSize:n})}var UW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ie({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?lE(t,a):Q(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new At({z2:30,style:Nt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=Hp(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Wc)-Math.floor(t[0].time/Wc)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Nx(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function XW(r){r.registerComponentModel(WW),r.registerComponentView(UW),r.registerCoordinateSystem("calendar",YW)}function ZW(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Bx(r,e){var t;return C(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function $W(r,e,t){var a=V({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(ft(n,a,!0),Ka(n,a,{ignoreSize:!0}),JT(t,n),Au(t,n),Au(t,n,"shape"),Au(t,n,"style"),Au(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var o2=["transition","enterFrom","leaveTo"],qW=o2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Au(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?o2:qW,n=0;n=0;f--){var h=n[f],v=Qt(h.id,null),c=v!=null?o.get(v):null;if(c){var p=c.parent,y=Je(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=mh(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Je(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=A:c[T]=A}Dt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Qu(n,Je(n).option,a,t._lastGraphicModel)}),this._elMap=$()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Gt);function Od(r){var e=Z(Vx,r)?Vx[r]:bg(r),t=new e({});return Je(t).type=r,t}function zx(r,e,t,a){var n=Od(t);return e.add(n),a.set(r,n),Je(n).id=r,Je(n).isNew=!0,n}function Qu(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Qu(i,e,t,a)}),kh(r,e,a),t.removeKey(Je(r).id))}function Gx(r,e,t,a){r.isGroup||C([["cursor",ir.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Z(e,i)?r[i]=it(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),C(St(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=Q(i)?i:null}}),Z(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function jW(r){return r=V({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QT),function(e){delete r[e]}),r}function t6(r,e,t){var a=nt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function e6(r){r.registerComponentModel(QW),r.registerComponentView(JW),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Fx=["x","y","radius","angle","single"],r6=["cartesian2d","polar","singleAxis"];function a6(r){var e=r.get("coordinateSystem");return vt(r6,e)>=0}function Fa(r){return r+"Axis"}function n6(r,e){var t=$(),a=[],n=$();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function s2(r){var e=r.ecModel,t={infoList:[],infoMap:$()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Fa(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Uc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),el=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=Hx(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=Hx(t);ft(this.option,t,!0),ft(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=$(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return C(Fx,function(n){var i=this.getReferringComponents(Fa(n),QL);if(i.specified){a=!0;var o=new Uc;C(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Uc;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",$t).models[0];c&&C(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",$t).models[0]&&v.add(p.componentIndex)})}}}i&&C(Fx,function(u){if(i){var f=n.findComponents({mainType:Fa(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Uc;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Fa(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){C(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Fa(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;C(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Gi(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Gi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Gi(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Lt(a[0]+o,a,[0,100],!0):i!=null&&(o=Lt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=Gw(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function l6(r,e,t){var a=[1/0,-1/0];Gi(t,function(o){FN(a,o.getData(),e)});var n=r.getAxisModel(),i=AC(n.axis.scale,n,a).calculate();return[i.min,i.max]}var u6={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Fa(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new s6(n,i,s,r),t.push(o.__dzAxisProxy))});var a=$();return C(t,function(n){C(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function f6(r){r.registerAction("dataZoom",function(e,t){var a=n6(t,e);C(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Ux=!1;function Yy(r){Ux||(Ux=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,u6),f6(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function h6(r){r.registerComponentModel(i6),r.registerComponentView(o6),Yy(r)}var tr=function(){function r(){}return r}(),l2={};function Fi(r,e){l2[r]=e}function u2(r){return l2[r]}var v6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(a,n){var i=u2(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ft(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(_t);function c6(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Jt(a,i,n);Jn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),mh(r,a,i,n)}function f2(r,e){var t=_o(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new bt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var p6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];C(u,function(p,d){h.push(d)}),new ha(this._featureNames||[],h).add(v).update(v).remove(ot(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new It(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(d6(g))S={onclick:_.option.onclick,featureName:g};else{var b=u2(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=mo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof tr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(w,T){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,D[w]&&(T==="emphasis"?ua:fa)(D[w])},S instanceof tr&&S.render&&S.render(_,a,n,i)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof tr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;U(_)?(b={},b[g]=_):b=_,U(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};C(b,function(T,A){var D=vl(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new At({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:wg({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),go({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),D.__title=x[A],D.on("mouseover",function(){var L=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?ua:fa)(D),o.add(D),D.on("click",X(d.onclick,d,a,n,A)),w[A]=D})}c6(o,t,n),o.add(f2(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Q(_)&&d){var S=_.style||(_.style={}),b=il(d,At.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-b.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){C(this._features,function(o){o instanceof tr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){C(this._features,function(n){n instanceof tr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){C(this._features,function(n){n instanceof tr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Gt);function d6(r){return r.indexOf("my")===0}var g6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=mt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(tr),Yx="__ec_magicType_stack__",y6=[["line","bar"],["stack"]],m6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return C(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Xx[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=Xx[n](v,c,h,i);p&&(j(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,$t).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};C(y6,function(h){vt(h,n)>=0&&C(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(tr),Xx={line:function(r,e,t,a){if(r==="bar")return ft({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ft({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===Yx;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ft({id:e,stack:n?"":Yx},a.get(["option","stack"])||{},!0)}};Yr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Oh=new Array(60).join("-"),lo=" ";function _6(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function S6(r){var e=[];return C(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];C(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(lo)],f=0;f=0)return!0}var Nd=new RegExp("["+lo+"]+","g");function T6(r){for(var e=r.split(/\n+/g),t=Ff(e.shift()).split(Nd),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function L6(r){var e=Xy(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return h2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function P6(r){v2(r).snapshots=null}function R6(r){return Xy(r).length}function Xy(r){var e=v2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var E6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){P6(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(tr);Yr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var k6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Zy=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=Zx(t,e);C(O6,function(o,s){(!a||!a.include||vt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Yc[a.brushType](0,i,n);a.__rangeOffset={offset:Qx[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){C(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=Yc[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Yc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Qx[a.brushType](i.values,o.offset,N6(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:SM(n),isTargetByCursor:bM(n,e,a.coordSysModel),getLinearBrushOtherExtent:xM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&vt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=Zx(t,e),i=0;ir[1]&&r.reverse(),r}function Zx(r,e){return _s(r,e,{includeMainTypes:k6})}var O6={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=$(),o={},s={};!t&&!a&&!n||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(h,v){(vt(t,h.getAxis("x").model)>=0||vt(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:qx.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:qx.geo})})}},$x=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],qx={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Qn(r)),e}},Yc={lineX:ot(Kx,0),lineY:ot(Kx,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Bd([n[0],i[0]]),Bd([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function Kx(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Bd(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Qx={lineX:ot(Jx,0),lineY:ot(Jx,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function Jx(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function N6(r,e){var t=jx(r),a=jx(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function jx(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Vd=C,B6=XL("toolbox-dataZoom_"),V6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new by(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),F6(t,a,this,i,n),G6(t,a)},e.prototype.onclick=function(t,a,n){z6[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Zy($y(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),I6(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=di(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Vd(t,function(n,i){a.push(et(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(tr),z6={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(L6(this.ecModel))}};function $y(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function G6(r,e){r.setIconStatus("back",R6(e)>1?"emphasis":"normal")}function F6(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Zy($y(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=$y(a),o=_s(r,i);Vd(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Vd(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:B6+u+h};v[f]=h,n.push(v)}return n});function H6(r){r.registerComponentModel(v6),r.registerComponentView(p6),Fi("saveAsImage",g6),Fi("magicType",m6),Fi("dataView",D6),Fi("dataZoom",V6),Fi("restore",E6),gt(h6)}var W6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(_t);function c2(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function p2(r){if(mt.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var p=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'
'}function K6(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=mt.transformSupported?","+qy+a:",left"+a+",top"+a),X6+":"+n}function tb(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!mt.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=mt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+qy+":"+o+";":[["top",0],["left",0],[d2,o]]}function Q6(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),C(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function J6(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=IA(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(K6(n,t)),i&&a.push("background-color:"+i),C(["width","color","radius"],function(c){var p="border-"+c,d=qT(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(Q6(f)),h!=null&&a.push("padding:"+_o(h).join("px ")+"px"),a.join(";")+";"}function eb(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&TI(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var j6=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,mt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(U(i)?document.querySelector(i):Ji(i)?i:Q(i)&&i(e.getDom()));eb(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();qe(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=Y6(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Z6+J6(e,!this._firstShow,this._longHide)+tb(i[0],i[1],!0)+("border-color:"+ii(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(i)&&a.get("trigger")==="item"&&!c2(a)&&(s=q6(a,n,i)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||mt.node||!n.getDom())){var o=nb(i,n);this._ticket="";var s=i.dataByCoordSys,l=oU(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=eU;f.x=i.x,f.y=i.y,f.update(),nt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=e2(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(nb(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=Qo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=nt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hn(n,function(f){if(nt(f).dataIndex!=null)return l=f,!0;if(nt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=X(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Qo([a.tooltipOption],i),l=this._renderMode,u=[],f=ne("section",{blocks:[],noHeader:!0}),h=[],v=new Lv;C(t,function(m){C(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=QM(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ne("section",{header:x,noHeader:!dr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(T){var A=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Kg(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",ii(M.color),l);var I=W0(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=Qo([A],i).get("valueFormatter");w.blocks.push(P?V({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=q0(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?` + +`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Qo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Lv;y.marker=m.makeTooltipMarker("item",ii(y.color),c);var _=W0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?q0(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=et(l),l.content=Ee(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=Qo(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Lv;this._showOrMove(p,function(){var m=et(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ch(y.axisValue,c,g)),c=KT(c,n,!0)}else if(Q(v)){var _=X(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=W(a[0],u),i=W(a[1],f);else if(tt(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=iU(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=aU(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=ib(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=ib(c)?h[1]/2:c==="bottom"?h[1]:0),c2(t)){var y=nU(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&C(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&C(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&C(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){mt.node||!a.getDom()||(Hs(this,"_updatePosition"),this._tooltipContent.dispose(),Ed("itemTooltip",a))},e.type="tooltip",e}(Gt);function Qo(r,e,t){var a=e.ecModel,n;t?(n=new It(t,a,a),n=new It(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof It&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new It(o,n,a)))}return n}function nb(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function aU(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function nU(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function iU(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function ib(r){return r==="center"||r==="middle"}function oU(r,e,t){var a=fg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=ol(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function sU(r){gt(Al),r.registerComponentModel(W6),r.registerComponentView(rU),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var lU=["rect","polygon","keep","clear"];function uU(r,e){var t=Rt(r?r.brush:[]);if(t.length){var a=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),fU(s),e&&!s.length&&s.push.apply(s,lU)}}function fU(r){var e={};C(r,function(t){e[t]=1}),r.length=0,C(e,function(t,a){r.push(a)})}var ob=C;function sb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function zd(r,e,t){var a={};return ob(e,function(i){var o=a[i]=n();ob(r[i],function(s,l){if(re.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new re(u),l==="opacity"&&(u=et(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new re(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function y2(r,e,t){var a;C(t,function(n){e.hasOwnProperty(n)&&sb(e[n])&&(a=!0)}),a&&C(t,function(n){e.hasOwnProperty(n)&&sb(e[n])?r[n]=et(e[n]):delete r[n]})}function hU(r,e,t,a,n,i){var o={};C(r,function(h){var v=re.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return zg(t,s,h)}function u(h,v){zA(t,s,h,v)}t.each(f);function f(h,v){s=h;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&vb(e)}};function vb(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var _U=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new by(a.getZr())).on("brush",X(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){m2(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:et(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:et(n),$from:a})},e.type="brush",e}(Gt),SU="#ddd",xU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&y2(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:SU},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(a){return cb(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=cb(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(_t);function cb(r,e){return ft({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new It(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var bU=["rect","polygon","lineX","lineY","keep","clear"],wU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return C(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:bU.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(tr);function TU(r){r.registerComponentView(_U),r.registerComponentModel(xU),r.registerPreprocessor(uU),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,pU),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),Fi("brush",wU)}var AU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(_t),CU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=it(t.get("textBaseline"),t.get("textVerticalAlign")),f=new At({style:Nt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new At({style:Nt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){yf(p,"_"+t.get("target"))}),d&&c.on("click",function(){yf(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Gt);function DU(r){r.registerComponentModel(AU),r.registerComponentView(CU)}var pb=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],C(a,function(u,f){var h=Qt(vo(u),""),v;tt(u)?(v=et(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new we([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(_t),_2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=en(pb.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(pb);Kt(_2,Sh.prototype);var MU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Gt),IU=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(br),Zc=Math.PI,db=wt(),LU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ne("nameValue",{noName:!0,value:f})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=RU(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Zc/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Zc/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),A=0,D=h;b==="left"||b==="bottom"?(x&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[D-p,0],D-=g)):(x&&(m=[D-p,0],D-=g),w&&(_=[0,0],A+=g),T&&(S=[D-p,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Fe(),l=o.x,u=o.y+o.height;Gr(s,s,[-l,-u]),ui(s,s,-Zc/2),Gr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||U(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=PU(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new IU("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new te({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new te({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:j({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],C(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:X(o._changeTimeline,o,u.value)},g=gb(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Kn(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],C(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new At({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:X(o._changeTimeline,o,h),silent:!1,style:Nt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Nt(p),y.ensureState("progress").style=Nt(d),a.add(y),Kn(y),db(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",X(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",X(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",X(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(c){var y=_r(it(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=EU(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Kn(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=X(u._handlePointerDrag,u),h.ondragend=X(u._handlePointerDragend,u),yb(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){yb(h,u._progressLine,s,n,i)}};this._currentPointer=gb(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=ar(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var $c={min:ot(Mu,"min"),max:ot(Mu,"max"),average:ot(Mu,"average"),median:ot(Mu,"median")};function rl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!zU(e)&&!z(e.coord)&&z(n)){var i=S2(e,t,a,r);if(e=et(e),e.type&&$c[e.type]&&i.baseAxis&&i.valueAxis){var o=vt(n,i.baseAxis.dim),s=vt(n,i.valueAxis.dim),l=$c[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)$c[u[f]]&&(u[f]=Qy(t,t.mapDimension(n[f]),u[f]));return e}}function S2(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(GU(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function GU(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function al(r,e){return r&&r.containData&&e.coord&&!Fd(e)?r.containData(e.coord):!0}function FU(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Fd(e)&&!Fd(t)?r.containZone(e.coord,t.coord):!0}function x2(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ua(o,e[i])}:function(t,a,n,i){return Ua(t.value,e[i])}}function Qy(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var qc=wt(),Jy=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=$()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){qc(s).keep=!1}),a.eachSeries(function(s){var l=pa.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!qc(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){qc(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;C(t,function(i){var o=pa.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?cT(l):yg(l))})}})},e.type="marker",e}(Gt);function _b(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=W(i.get("x"),t.getWidth()),l=W(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var HU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markPoint");o&&(_b(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ml),h=WU(o,t,a);a.setData(h),_b(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(Q(p)||Q(d)||Q(g)||Q(y)){var _=a.getRawValue(v),S=a.getDataParams(v);Q(p)&&(p=p(_,S)),Q(d)&&(d=d(_,S)),Q(g)&&(g=g(_,S)),Q(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=pl(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Jy);function WU(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new we(a,t),i=G(t.get("data"),ot(rl,e));r&&(i=Pt(i,ot(al,r)));var o=x2(!!r,a);return n.initData(i,null,o),n}function UU(r){r.registerComponentModel(VU),r.registerComponentView(HU),r.registerPreprocessor(function(e){Ky(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var YU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(pa),Iu=wt(),XU=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=oe(a.yAxis,a.xAxis);else{var u=S2(a,n,e,r);s=u.valueAxis;var f=pC(n,u.valueDataDim);l=Qy(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=et(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&Ct(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[rl(r,i[0]),rl(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,ft(g[2],g[0]),ft(g[2],g[1]),g};function Hf(r){return!isNaN(r)&&!isFinite(r)}function Sb(r,e,t,a){var n=1-r,i=a.dimensions[r];return Hf(e[n])&&Hf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function ZU(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Sb(1,t,a,r)||Sb(0,t,a,r)))return!0}return al(r,e[0])&&al(r,e[1])}function Kc(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get("x"),n.getWidth()),u=W(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(ci(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;Hf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Hf(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var $U=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Iu(o).from,u=Iu(o).to;l.each(function(f){Kc(l,f,!0,i,n),Kc(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new xy);this.group.add(f.group);var h=qU(o,t,a),v=h.from,c=h.to,p=h.line;Iu(a).from=v,Iu(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(b){nt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Kc(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=pl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:it(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:it(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:it(w.get("symbolSize"),g[x?0:1]),symbol:it(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Jy);function qU(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new we(a,t),i=new we(a,t),o=new we([],t),s=G(t.get("data"),ot(XU,e,r,t));r&&(s=Pt(s,ot(ZU,r)));var l=x2(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function KU(r){r.registerComponentModel(YU),r.registerComponentView($U),r.registerPreprocessor(function(e){Ky(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var QU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(pa),Lu=wt(),JU=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=rl(r,n),s=rl(r,i),l=o.coord,u=s.coord;l[0]=oe(l[0],-1/0),l[1]=oe(l[1],-1/0),u[0]=oe(u[0],1/0),u[1]=oe(u[1],1/0);var f=jd([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Wf(r){return!isNaN(r)&&!isFinite(r)}function xb(r,e,t,a){var n=1-r;return Wf(e[n])&&Wf(t[n])}function jU(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ci(r,"cartesian2d")?t&&a&&(xb(1,t,a)||xb(0,t,a))?!0:FU(r,n,i):al(r,n)||al(r,i)}function bb(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get(t[0]),n.getWidth()),u=W(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];t[0]==="x0"?p[0]=v[0]>c[0]?h[0]:f[0]:p[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?p[1]=v[1]>c[1]?h[1]:f[1]:p[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ci(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);Wf(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Wf(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var wb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],t8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(wb,function(h){return bb(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=e8(o,t,a);a.setData(h),h.each(function(v){var c=G(wb,function(T){return bb(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];ar(m),ar(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:c,allClipped:b});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=pl(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=nf(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Lu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Me({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Lu(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?Dt(p,{shape:{points:d.points}},a,v):p=new Me({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Lu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),he(v,ae(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:U(d.fill)?nf(d.fill,1):"#000"}),fe(v,p),Ht(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),Lu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Jy);function e8(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new we(n,t)}else n=[{name:"value",type:"float"}],a=new we(n,t);var s=G(t.get("data"),ot(JU,e,r,t));r&&(s=Pt(s,ot(jU,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Ua(c,n[v])}:function(u,f,h,v){return Ua(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function r8(r){r.registerComponentModel(QU),r.registerComponentView(t8),r.registerPreprocessor(function(e){Ky(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var a8=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Hd=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&C(a,function(i,o){U(i)&&(i={type:i}),a[o]=ft(i,a8(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(_t),Ei=ot,Wd=C,Pu=at,b2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Pu),this.group.add(this._selectorGroup=new Pu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=Jt(j({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=f2(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=$(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Wd(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var g=new Pu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",Ei(Tb,d,null,i,v)).on("mouseover",Ei(Ud,y.name,null,i,v)).on("mouseout",Ei(Yd,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),D=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=He(D.fill);I&&I[3]===0&&(I[3]=.2,D=V(V({},D),{fill:na(I,"rgba")}));var L=this._createItem(w,d,p,c,a,t,{},D,M,h,i);L.on("click",Ei(Tb,null,d,i,v)).on("mouseover",Ei(Ud,null,d,i,v)).on("mouseout",Ei(Yd,null,d,i,v)),n.ssr&&L.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Wd(t,function(u){var f=u.type,h=new At({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);he(h,{normal:v,emphasis:c},{defaultText:u.title}),Kn(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=n8(f,i,l,u,c,g,v),b=new Pu,x=i.getModel("textStyle");if(Q(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(i8({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,D=o.get("formatter"),M=a;U(D)&&D?M=D.replace("{name}",a??""):Q(D)&&(M=D(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new At({style:Nt(x,{text:M,x:T,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&go({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),Kn(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Jn(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Jn("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gt);function n8(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Wd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:ro(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function i8(r){var e=r.icon||"roundRect",t=qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Tb(r,e,t,a){Yd(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Ud(r,e,t,a)}function w2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=it(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new bt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Dt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Qc[o],l=Jc[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(b2);function f8(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function h8(r){gt(T2),r.registerComponentModel(l8),r.registerComponentView(u8),f8(r)}function v8(r){gt(T2),gt(h8)}var c8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=en(el.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(el),jy=wt();function p8(r,e,t){jy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function d8(r,e){for(var t=jy(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function S8(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=jy(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=$());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=s2(i);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,g8(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=$());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){A2(n,i);return}var f=_8(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),wo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var x8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),p8(n,t,{pan:X(jc.pan,this),zoom:X(jc.zoom,this),scrollMove:X(jc.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){d8(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Uy),jc={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=tp[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Db(function(r,e,t,a,n,i){var o=tp[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Db(function(r,e,t,a,n,i){var o=tp[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Db(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(di(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var tp={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function C2(r){Yy(r),r.registerComponentModel(c8),r.registerComponentView(x8),S8(r)}var b8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=en(el.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(el),ts=bt,Mb=7,w8=1,ep=30,T8=7,es="horizontal",Ib="vertical",A8=5,C8=["line","bar","candlestick","scatter"],D8={easing:"cubicOut",duration:100,delay:0},M8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),wo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Hs(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?T8:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===es?{right:s.width-o.x-o.width,top:s.height-ep-Mb-i,width:o.width,height:ep}:{right:Mb,top:o.y,width:ep,height:o.height},u=So(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Ib&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===es&&!o?{scaleY:l?1:-1,scaleX:1}:n===es&&o?{scaleY:l?1:-1,scaleX:-1}:n===Ib&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ts({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ts({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(A,D){if(_>0&&D%_){m+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:Lt(A,h,c,!0);M&&!S&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new at,I=new Me({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ie({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!n&&!(a!==!0&&vt(C8,u.get("type"))<0)){var f=i.getComponent(Fa(o),s).axis,h=I8(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new ts({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new ts({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:w8,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!Sf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=qt(S,-1,0,2,2,null,!0);b.attr({cursor:Lb(this._orient),draggable:!0,drift:X(this._onDragMove,this,_),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=W(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Kn(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var A=l.getModel("textStyle");t.add(i[_]=new At({silent:!0,invisible:!0,style:Nt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var p=W(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:Lb(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Lt(t[0],[0,100],a,!0),Lt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];di(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Lt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Lt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ar([Lt(i[0],o,l,!0),Lt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=ar(n.slice()),o=this._size;C([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ut(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ar([Lt(n.x,o,s,!0),Lt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(sa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ts({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?D8:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=s2(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Uy);function I8(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Lb(r){return r==="vertical"?"ns-resize":"ew-resize"}function D2(r){r.registerComponentModel(b8),r.registerComponentView(M8),Yy(r)}function L8(r){gt(C2),gt(D2)}var M2={get:function(r,e,t){var a=et((P8[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},P8={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Pb=re.mapVisual,R8=re.eachVisual,E8=z,Rb=C,k8=ar,O8=Lt,Uf=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&y2(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=X(t,this),this.controllerVisuals=zd(this.option.controller,a,t),this.targetVisuals=zd(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){C(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=k8([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ft(i,n),ft(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){E8(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},Rb(p,function(g,y){if(re.isValidType(y)){var m=M2.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Rb(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&et(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&et(c)||(s?m[0]:[m[0],m[0]])),_.symbol=Pb(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;R8(S,function(x){x>b&&(b=x)}),_.symbolSize=Pb(S,function(x){return O8(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(_t),Eb=[20,140],N8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Eb[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Eb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ar((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=kb(this,"outOfRange",this.getExtent()),n=kb(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();B8([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=Ir(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=mr(n.handleLabelPoints[f],Qn(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Ir(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=mr(f.indicatorLabelPoint,Qn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,A),_.animateTo(T,A)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||Vb(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=qL(v,c);this._dispatchHighDown("downplay",Ju(p[0],n)),this._dispatchHighDown("highlight",Ju(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Hn(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Y8(r,e,t,a){for(var n=e.targetVisuals[a],i=re.prepareVisualTypes(n),o={color:pl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(H8,W8),C(U8,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(X8))}function R2(r){r.registerComponentModel(N8),r.registerComponentView(G8),P2(r)}var Z8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],$8[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=et(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=et(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=re.listVisualTypes(),i=this.isCategory();C(t.pieces,function(s){C(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),C(a,function(s,l){var u=!1;C(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&C(this.stateList,function(f){(t[f]||(t[f]={}))[l]=M2.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,C(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;C(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=et(t)},e.prototype.getValueState=function(t){var a=re.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=re.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=en(Uf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Uf),$8={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Hb(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var q8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=oe(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),C(f.viewPieceList,function(c){var p=c.piece,d=new at;d.onclick=X(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new At({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Jn(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Ju(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return L2(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new At({style:Nt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=et(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,C(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(I2);function E2(r){r.registerComponentModel(Z8),r.registerComponentView(q8),P2(r)}function K8(r){gt(R2),gt(E2)}var Q8={label:{enabled:!0},decal:{show:!1}},Wb=wt(),J8={};function j8(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=et(Q8);ft(a.label,r.getLocaleModel().get("aria"),!1),ft(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=$();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),Wb(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(Q(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Yp(v.ecModel,v.name,J8,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=Wb(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Yp(v.ecModel,w,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=j(h.option,f),!!h.get("enabled")){if(h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?h.get(["series","multiple",I]):h.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=h.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),E=h.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rY=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):dI(e)?e:null;if(t==null){var a="";Mt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Ct(t)?this._condVal.test(e+""):!1},r}(),aY=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),nY=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[L,P]}function f(L,P,R,E){Yi(L,R)&&Yi(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,N,O){var B=Math.abs(P-L),F=Math.tan(B/4)*4/3,H=PT:M2&&a.push(n),a}function Zd(r,e,t,a,n,i,o,s,l,u){if(Yi(r,t)&&Yi(e,a)&&Yi(n,o)&&Yi(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],D=[];$a(r,t,n,o,.5,A),$a(e,a,i,s,.5,D),Zd(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Zd(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function mY(r,e){var t=Xd(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=O2([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=O2([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new ut(d*l+r,d*u+e)}function xY(r,e,t){var a=new ut;ut.sub(a,t,e),a.normalize();var n=new ut;ut.sub(n,r,e);var i=n.dot(a);return i}function Oi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function bY(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),bY(e,u,f)}function Yf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Yf(r,i[0],n,a),Yf(r,i[1],t-n,a)}return a}function wY(r,e){for(var t=[],a=0;a0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function $f(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:RY(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function V2(r){return CY(r.path,r.count)}function $d(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EY(r,e,t){var a=[];function n(b){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var OY={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Jb(r)&&(u=r,f=e),Jb(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,A=m?w:x[0];if(Xf(T))h({many:[T],one:A},!0,_,S,!0);else{var D=s?j({delay:s(_,S)},l):l;em(T,A,D),i(T,A,T,A,D)}}else for(var M=j({dividePath:OY[t],individualDelay:s&&function(N,O,B,F){return s(N+_,S)}},l),I=m?EY(x,w,M):kY(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Ee.length,c=u?jb(f,u):jb(v?e:r,[v?r:e]),p=0,d=0;dz2))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof yt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function nw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function iw(r){return z(r)?r.sort().join(","):r}function Ra(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function HY(r,e){var t=$(),a=$(),n=$();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=nw(i),f=iw(u);a.set(f,{dataGroupId:s,data:l}),z(u)&&C(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),C(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=nw(i),u=iw(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ra(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Ra(s),data:s}]});else if(z(l)){var h=[];C(l,function(p){var d=a.get(p);d.data&&h.push({dataGroupId:d.dataGroupId,divide:Ra(d.data),data:d.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Ra(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ra(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Ra(s)})}}}}),t}function ow(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ra(e.oldData[s]),groupIdDim:o.dimension})}),C(Rt(r.to),function(o){var s=ow(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ra(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&G2(n,i,a)}function UY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){C(Rt(a.seriesTransition),function(n){C(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s{f(),h(),v(),c(),window.addEventListener("resize",()=>{o.resize(),s.resize(),l.resize(),u.resize()})}),X2(()=>{o.dispose(),s.dispose(),l.dispose(),u.dispose(),window.removeEventListener("resize",()=>{o.resize(),s.resize(),l.resize(),u.resize()})});function f(){o=eu(t.value);const p={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎","百度","谷歌","必应","其他"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"]}],yAxis:[{type:"value"}],series:[{name:"直接访问",type:"bar",data:[320,332,301,334,390,330,320]},{name:"邮件营销",type:"bar",stack:"广告",data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"bar",stack:"广告",data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"bar",stack:"广告",data:[150,232,201,154,190,330,410]},{name:"搜索引擎",type:"bar",data:[862,1018,964,1026,1679,1600,1570],markLine:{lineStyle:{type:"dashed"},data:[[{type:"min"},{type:"max"}]]}},{name:"百度",type:"bar",barWidth:5,stack:"搜索引擎",data:[620,732,701,734,1090,1130,1120]},{name:"谷歌",type:"bar",stack:"搜索引擎",data:[120,132,101,134,290,230,220]},{name:"必应",type:"bar",stack:"搜索引擎",data:[60,72,71,74,190,130,110]},{name:"其他",type:"bar",stack:"搜索引擎",data:[62,82,91,84,109,110,120]}]};o.setOption(p)}function h(){s=eu(a.value);const p={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["邮件营销","联盟广告","视频广告","直接访问","搜索引擎"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["周一","周二","周三","周四","周五","周六","周日"]}],yAxis:[{type:"value"}],series:[{name:"邮件营销",type:"line",stack:"总量",areaStyle:{},data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"line",stack:"总量",areaStyle:{},data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"line",stack:"总量",areaStyle:{},data:[150,232,201,154,190,330,410]},{name:"直接访问",type:"line",stack:"总量",areaStyle:{},data:[320,332,301,334,390,330,320]},{name:"搜索引擎",type:"line",stack:"总量",areaStyle:{},data:[820,932,901,934,1290,1330,1320]}]};s.setOption(p)}function v(){l=eu(n.value);const p={title:{text:"某站点用户访问来源",subtext:"纯属虚构",left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};l.setOption(p)}function c(){u=eu(i.value);const p={legend:{data:["预算分配(Allocated Budget)","实际开销(Actual Spending)"]},radar:{indicator:[{name:"销售(sales)",max:6500},{name:"管理(Administration)",max:16e3},{name:"信息技术(Information Techology)",max:3e4},{name:"客服(Customer Support)",max:38e3},{name:"研发(Development)",max:52e3},{name:"市场(Marketing)",max:25e3}]},series:[{name:"预算 vs 开销(Budget vs spending)",type:"radar",data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"预算分配(Allocated Budget)"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"实际开销(Actual Spending)"}]}]};u.setOption(p)}return(p,d)=>{const g=J2,y=am("van-tag"),m=am("van-action-sheet"),_=H2,S=F2;return $2(),Z2(S,{navbar:"","navbar-start-side":"back"},{"navbar-end":_a(()=>[$r("div",{class:"h-full flex-center px-1",onClick:d[0]||(d[0]=b=>e.value=!0)},[rn(g,{name:"i-mdi:information",class:"text-4"})]),rn(m,{show:K2(e),"onUpdate:show":d[1]||(d[1]=b=>Q2(e)?e.value=b:null),teleport:"body"},{default:_a(()=>[$r("div",YY,[d[3]||(d[3]=$r("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),d[4]||(d[4]=$r("div",null,"安装命令:",-1)),$r("div",XY,[rn(y,{type:"primary",plain:""},{default:_a(()=>d[2]||(d[2]=[q2(" pnpm add echarts ")])),_:1})])])]),_:1},8,["show"])]),default:_a(()=>[rn(_,{title:"柱状图"},{default:_a(()=>[$r("div",{ref_key:"chart1Ref",ref:t,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"折线图"},{default:_a(()=>[$r("div",{ref_key:"chart2Ref",ref:a,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"饼图"},{default:_a(()=>[$r("div",{ref_key:"chart3Ref",ref:n,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"雷达图"},{default:_a(()=>[$r("div",{ref_key:"chart4Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{KY as default}; diff --git a/assets/echarts-D7CAfsfQ.js.br b/assets/echarts-D7CAfsfQ.js.br new file mode 100644 index 0000000..bbbd376 Binary files /dev/null and b/assets/echarts-D7CAfsfQ.js.br differ diff --git a/assets/echarts-D7CAfsfQ.js.gz b/assets/echarts-D7CAfsfQ.js.gz new file mode 100644 index 0000000..155f399 Binary files /dev/null and b/assets/echarts-D7CAfsfQ.js.gz differ diff --git a/assets/errorLog-CuSmrDsI.js b/assets/errorLog-CuSmrDsI.js new file mode 100644 index 0000000..bec084c --- /dev/null +++ b/assets/errorLog-CuSmrDsI.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as L}from"./index-DkxdnFkg.js";import{d as w,Y as S,r as C,O as B,c as N,w as i,m as _,o as s,u as d,j as n,a as t,b as u,e as x,F as T,n as V,Z as j,t as r}from"./index-DD358c5I.js";const E={key:0,class:"flex flex-col items-center gap-4 p-4"},F={key:0},I={key:1,class:"w-full"},O={class:"flex justify-evenly"},$={class:"text-xs text-gray-5"},D={class:"text-xs text-gray-5"},J={class:"text-xs text-gray-5"},M={class:"text-xs text-gray-5"},P={key:1,class:"flex flex-col items-center p-4"},z=w({__name:"errorLog",setup(Y){const g=S(),f="example",l=C(""),m=B(()=>l.value?[JSON.parse(l.value)]:[]);function v(c){switch(j(()=>{l.value=sessionStorage.getItem("errorLog")||""}),c){case 1:a=abc;break;case 2:testMethod();break}}return(c,e)=>{const p=_("van-button"),k=_("van-divider"),b=L;return s(),N(b,{navbar:"","navbar-start-side":"back"},{default:i(()=>[d(f)!=="development"?(s(),n("div",E,[d(g).settings.app.enableErrorLog?(s(),n("div",I,[t("div",O,[u(p,{onClick:e[0]||(e[0]=o=>v(1))},{default:i(()=>e[2]||(e[2]=[x(" 模拟触发错误1 ")])),_:1}),u(p,{onClick:e[1]||(e[1]=o=>v(2))},{default:i(()=>e[3]||(e[3]=[x(" 模拟触发错误2 ")])),_:1})]),u(k),(s(!0),n(T,null,V(d(m),(o,y)=>(s(),n("div",{key:y,class:"flex flex-col gap-2 break-words rounded bg-white p-4"},[t("div",null,[e[4]||(e[4]=t("div",null,"错误信息",-1)),t("div",$,r(o.err.message),1)]),t("div",null,[e[5]||(e[5]=t("div",null,"错误详情",-1)),t("div",D,r(o.err.stack),1)]),t("div",null,[e[6]||(e[6]=t("div",null,"错误链接",-1)),t("div",J,r(o.url),1)]),t("div",null,[e[7]||(e[7]=t("div",null,"时间",-1)),t("div",M,r(o.datetime),1)])]))),128))])):(s(),n("div",F," 请到 /src/settings.ts 里打开错误日志功能,再进入该页面查看演示 "))])):(s(),n("div",P," 当前为开发环境,该功能关闭演示 "))]),_:1})}}});export{z as default}; diff --git a/assets/errorLog-CuSmrDsI.js.br b/assets/errorLog-CuSmrDsI.js.br new file mode 100644 index 0000000..31004f2 Binary files /dev/null and b/assets/errorLog-CuSmrDsI.js.br differ diff --git a/assets/errorLog-CuSmrDsI.js.gz b/assets/errorLog-CuSmrDsI.js.gz new file mode 100644 index 0000000..3891622 Binary files /dev/null and b/assets/errorLog-CuSmrDsI.js.gz differ diff --git a/assets/esign-BX1I6AXs.css b/assets/esign-BX1I6AXs.css new file mode 100644 index 0000000..26c3329 --- /dev/null +++ b/assets/esign-BX1I6AXs.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +canvas[data-v-1fcc7cb1]{max-width:100%;display:block} diff --git a/assets/esign-BX1I6AXs.css.br b/assets/esign-BX1I6AXs.css.br new file mode 100644 index 0000000..4c3f0c9 Binary files /dev/null and b/assets/esign-BX1I6AXs.css.br differ diff --git a/assets/esign-CwjgP7-h.js b/assets/esign-CwjgP7-h.js new file mode 100644 index 0000000..510755b --- /dev/null +++ b/assets/esign-CwjgP7-h.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as B}from"./index-DkxdnFkg.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{z as M,o as y,j as R,d as S,r as w,U as E,c as _,w as c,m as T,a as v,b as f,e as p,u as d,i as I,p as X,Z as Y,_ as N}from"./index-DD358c5I.js";import{s as P}from"./function-call-BVTb5Ux6.js";const U={props:{width:{type:Number,default:800},height:{type:Number,default:300},lineWidth:{type:Number,default:4},lineColor:{type:String,default:"#000000"},bgColor:{type:String,default:""},isCrop:{type:Boolean,default:!1},isClearBgColor:{type:Boolean,default:!0},format:{type:String,default:"image/png"},quality:{type:Number,default:1}},data(){return{hasDrew:!1,resultImg:"",points:[],canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio(){return this.height/this.width},stageInfo(){return this.$refs.canvas.getBoundingClientRect()},myBg(){return this.bgColor?this.bgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){this.$refs.canvas.style.background=t}},beforeMount(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy(){window.removeEventListener("resize",this.$_resizeHandler)},mounted(){const t=this.$refs.canvas;t.height=this.height,t.width=this.width,t.style.background=this.myBg,this.$_resizeHandler(),document.onmouseup=()=>{this.isDrawing=!1}},methods:{$_resizeHandler(){const t=this.$refs.canvas;t.style.width=this.width+"px";const e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.canvasTxt=t.getContext("2d"),this.canvasTxt.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.canvasTxt.scale(1/this.sratio,1/this.sratio)},mouseDown(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;let e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove(t){if(t=t||event,t.preventDefault(),this.isDrawing){let e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp(t){t=t||event,t.preventDefault();let e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove(t){if(t=t||event,t.preventDefault(),t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd(t){if(t=t||event,t.preventDefault(),t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart(t){this.startX=t.x,this.startY=t.y,this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t)},drawMove(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.strokeStyle=this.lineColor,this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.startY=t.y,this.startX=t.x,this.points.push(t)},drawEnd(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t),this.points.push({x:-1,y:-1})},generate(t){let e=t&&t.format?t.format:this.format,i=t&&t.quality?t.quality:this.quality;return new Promise((h,a)=>{if(!this.hasDrew){a("Warning: Not Signned!");return}var n=this.canvasTxt.getImageData(0,0,this.$refs.canvas.width,this.$refs.canvas.height);this.canvasTxt.globalCompositeOperation="destination-over",this.canvasTxt.fillStyle=this.myBg,this.canvasTxt.fillRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.resultImg=this.$refs.canvas.toDataURL(e,i);var u=this.resultImg;if(this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.canvasTxt.putImageData(n,0,0),this.canvasTxt.globalCompositeOperation="source-over",this.isCrop){const s=this.getCropArea(n.data);var r=document.createElement("canvas");const l=r.getContext("2d");r.width=s[2]-s[0],r.height=s[3]-s[1];const g=this.canvasTxt.getImageData(...s);l.globalCompositeOperation="destination-over",l.putImageData(g,0,0),l.fillStyle=this.myBg,l.fillRect(0,0,r.width,r.height),u=r.toDataURL(e,i),r=null}h(u)})},reset(){this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.isClearBgColor&&(this.$emit("update:bgColor",""),this.$refs.canvas.style.background="rgba(255, 255, 255, 0)"),this.points=[],this.hasDrew=!1,this.resultImg=""},getCropArea(t){for(var e=this.$refs.canvas.width,i=0,o=this.$refs.canvas.height,h=0,a=0;a0||t[u+1]>0||t[u+2]||t[u+3]>0)&&(h=Math.max(n,h),i=Math.max(a,i),o=Math.min(n,o),e=Math.min(a,e))}return e++,i++,o++,h++,[e,o,i,h]}}};function W(t,e,i,o,h,a){return y(),R("canvas",{ref:"canvas",onMousedown:e[0]||(e[0]=(...n)=>a.mouseDown&&a.mouseDown(...n)),onMousemove:e[1]||(e[1]=(...n)=>a.mouseMove&&a.mouseMove(...n)),onMouseup:e[2]||(e[2]=(...n)=>a.mouseUp&&a.mouseUp(...n)),onTouchstart:e[3]||(e[3]=(...n)=>a.touchStart&&a.touchStart(...n)),onTouchmove:e[4]||(e[4]=(...n)=>a.touchMove&&a.touchMove(...n)),onTouchend:e[5]||(e[5]=(...n)=>a.touchEnd&&a.touchEnd(...n))},null,544)}const C=M(U,[["render",W],["__scopeId","data-v-1fcc7cb1"]]);C.install=function(t){this.installed||(this.installed=!0,t.component("vueEsign",C))};const z={class:"whitespace-break-spaces p-4 space-y-2"},V={class:"space-x-2"},L={class:"mt-2 space-x-2"},q=["src"],F=S({__name:"esign",setup(t){const e=w(!1),i=E("esignRef"),o=w({lineWidth:6,lineColor:"#000000",bgColor:"#f0f0f0",isCrop:!1}),h=w("");function a(){i.value.reset(),Y(()=>{o.value.bgColor="#f0f0f0"})}function n(){i.value.generate().then(r=>{h.value=r}).catch(()=>{P({message:"画板为空,无法生成图片"})})}function u(){i.value.generate().then(r=>{const s=new Image;s.setAttribute("crossOrigin","anonymous"),s.onload=()=>{const l=document.createElement("a"),g=new MouseEvent("click");l.download=Date.parse(new Date().toString()).toString(),l.href=s.src,l.dispatchEvent(g)},s.src=r})}return(r,s)=>{const l=N,g=T("van-tag"),D=T("van-action-sheet"),x=T("VanButton"),b=k,$=B;return y(),_($,{navbar:"","navbar-start-side":"back"},{"navbar-end":c(()=>[v("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=m=>e.value=!0)},[f(l,{name:"i-mdi:information",class:"text-4"})]),f(D,{show:d(e),"onUpdate:show":s[1]||(s[1]=m=>I(e)?e.value=m:null),teleport:"body"},{default:c(()=>[v("div",z,[s[4]||(s[4]=v("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),s[5]||(s[5]=v("div",null,"安装命令:",-1)),v("div",V,[f(g,{type:"primary",plain:""},{default:c(()=>s[3]||(s[3]=[p(" pnpm add vue-esign ")])),_:1})])])]),_:1},8,["show"])]),default:c(()=>[f(b,null,{default:c(()=>[f(d(C),{ref_key:"esignRef",ref:i,"bg-color":d(o).bgColor,"onUpdate:bgColor":s[2]||(s[2]=m=>d(o).bgColor=m),width:800,height:400,"is-crop":d(o).isCrop,"line-width":d(o).lineWidth,"line-color":d(o).lineColor},null,8,["bg-color","is-crop","line-width","line-color"]),v("div",L,[f(x,{onClick:a},{default:c(()=>s[6]||(s[6]=[p(" 清空画板 ")])),_:1}),f(x,{onClick:n},{default:c(()=>s[7]||(s[7]=[p(" 生成图片 ")])),_:1}),f(x,{onClick:u},{default:c(()=>s[8]||(s[8]=[p(" 下载图片 ")])),_:1})])]),_:1}),d(h)?(y(),_(b,{key:0},{default:c(()=>[v("img",{src:d(h),class:"aspect-ratio-[800/400] w-full"},null,8,q)]),_:1})):X("",!0)]),_:1})}}});export{F as default}; diff --git a/assets/esign-CwjgP7-h.js.br b/assets/esign-CwjgP7-h.js.br new file mode 100644 index 0000000..5561b3f Binary files /dev/null and b/assets/esign-CwjgP7-h.js.br differ diff --git a/assets/esign-CwjgP7-h.js.gz b/assets/esign-CwjgP7-h.js.gz new file mode 100644 index 0000000..8a01348 Binary files /dev/null and b/assets/esign-CwjgP7-h.js.gz differ diff --git a/assets/font-Bpu72GZV.css b/assets/font-Bpu72GZV.css new file mode 100644 index 0000000..b8ddd1d --- /dev/null +++ b/assets/font-Bpu72GZV.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +@font-face{font-family:digital-7regular;font-style:normal;font-weight:400;src:url(./digital-7-webfont-BjD0-cHb.eot);src:url(./digital-7-webfont-BjD0-cHb.eot?#iefix) format("embedded-opentype"),url(./digital-7-webfont-Be4rWpNL.woff2) format("woff2"),url(./digital-7-webfont-T-2P9Ugr.woff) format("woff"),url(./digital-7-webfont-CsMgswhn.svg#digital-7regular) format("svg")}/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on January 22, 2021 */@font-face{font-family:digital-7_monomono;font-style:normal;font-weight:400;src:url(./digital-7_mono-webfont-p3QHBSNF.eot);src:url(./digital-7_mono-webfont-p3QHBSNF.eot?#iefix) format("embedded-opentype"),url(./digital-7_mono-webfont-CgIkl65M.woff2) format("woff2"),url(./digital-7_mono-webfont-DV1ffHFE.woff) format("woff"),url(./digital-7_mono-webfont-CgrKaJks.svg#digital-7_monomono) format("svg")}.digital-7[data-v-ddb8f6ef],.digital-7_mono[data-v-ddb8f6ef]{margin:min(2.667vw,16px) 0;font-size:min(9.6vw,57.6px)}.digital-7[data-v-ddb8f6ef]{font-family:digital-7regular}.digital-7_mono[data-v-ddb8f6ef]{font-family:digital-7_monomono} diff --git a/assets/font-Bpu72GZV.css.br b/assets/font-Bpu72GZV.css.br new file mode 100644 index 0000000..038fea3 Binary files /dev/null and b/assets/font-Bpu72GZV.css.br differ diff --git a/assets/font-Bpu72GZV.css.gz b/assets/font-Bpu72GZV.css.gz new file mode 100644 index 0000000..b6de474 Binary files /dev/null and b/assets/font-Bpu72GZV.css.gz differ diff --git a/assets/font-Dq7rX39F.js b/assets/font-Dq7rX39F.js new file mode 100644 index 0000000..052738c --- /dev/null +++ b/assets/font-Dq7rX39F.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as i}from"./index-DkxdnFkg.js";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{z as _,c as r,w as a,o as d,b as s,e as c,a as o}from"./index-DD358c5I.js";const f={};function m(p,t){const e=l,n=i;return d(),r(n,{navbar:"","navbar-start-side":"back"},{default:a(()=>[s(e,null,{default:a(()=>t[0]||(t[0]=[c(" 自定义字体需要下载字体文件,不建议在非英文环境中使用。以下为框架预设字体: ")])),_:1}),s(e,{title:"Digital 7"},{default:a(()=>t[1]||(t[1]=[o("p",{class:"digital-7"}," Fantastic-mobile ",-1),o("p",{class:"digital-7"}," 1234567890,. ",-1)])),_:1}),s(e,{title:"Digital 7(等宽)"},{default:a(()=>t[2]||(t[2]=[o("p",{class:"digital-7_mono"}," Fantastic-mobile ",-1),o("p",{class:"digital-7_mono"}," 1234567890,. ",-1)])),_:1})]),_:1})}const x=_(f,[["render",m],["__scopeId","data-v-ddb8f6ef"]]);export{x as default}; diff --git a/assets/font-Dq7rX39F.js.br b/assets/font-Dq7rX39F.js.br new file mode 100644 index 0000000..d4f84f9 Binary files /dev/null and b/assets/font-Dq7rX39F.js.br differ diff --git a/assets/font-Dq7rX39F.js.gz b/assets/font-Dq7rX39F.js.gz new file mode 100644 index 0000000..b6613fb Binary files /dev/null and b/assets/font-Dq7rX39F.js.gz differ diff --git a/assets/function-call-BVTb5Ux6.js b/assets/function-call-BVTb5Ux6.js new file mode 100644 index 0000000..6f3d52c --- /dev/null +++ b/assets/function-call-BVTb5Ux6.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{ar as a,as as s,at as i,au as r,av as l,b as u,R as c,aw as d}from"./index-DD358c5I.js";let o,e;const f=t=>i(t)?t:{message:t};function p(){({instance:e}=r({setup(){const{state:t,toggle:n}=l();return()=>u(d,c(t,{"onUpdate:show":n}),null)}}))}const m=()=>({type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0});let g=m();const v=()=>{e&&e.toggle(!1)};function w(t){if(a)return e||p(),t=s({},g,f(t)),e.open(t),clearTimeout(o),t.duration>0&&(o=setTimeout(v,t.duration)),e}export{w as s}; diff --git a/assets/function-call-BVTb5Ux6.js.br b/assets/function-call-BVTb5Ux6.js.br new file mode 100644 index 0000000..20c1d72 Binary files /dev/null and b/assets/function-call-BVTb5Ux6.js.br differ diff --git a/assets/function-call-BVTb5Ux6.js.gz b/assets/function-call-BVTb5Ux6.js.gz new file mode 100644 index 0000000..f7a2955 Binary files /dev/null and b/assets/function-call-BVTb5Ux6.js.gz differ diff --git a/assets/i18n-DA_O80-w.js b/assets/i18n-DA_O80-w.js new file mode 100644 index 0000000..a177919 --- /dev/null +++ b/assets/i18n-DA_O80-w.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as b}from"./index-DkxdnFkg.js";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as w,l as x,Y as M,r as k,a0 as j,c as z,w as t,m as c,o as C,a,b as n,e as r,t as m,u as f,Q as L,a1 as S,a2 as V}from"./index-DD358c5I.js";const B={class:"flex justify-center gap-4"},N={class:"mt-4 text-center"},O=w({__name:"i18n",setup($){const{t:p}=x(),_=M(),i=k("");j(()=>_.lang,()=>{i.value=L().format("MMMM-dddd")},{immediate:!0});function d(o){const e=S(),s=V();s&&(o==="zh-cn"?(Object.assign(s["zh-cn"],{hello:{world:"你好,世界!"}}),e.global.setLocaleMessage(o,s["zh-cn"])):(Object.assign(s["en-us"],{hello:{world:"Hello World !"}}),e.global.setLocaleMessage(o,s["en-us"])))}return(o,e)=>{const s=c("van-calendar"),l=y,u=c("van-button"),g=b;return C(),z(g,{navbar:"","navbar-start-side":"back","navbar-end-side":"i18n"},{default:t(()=>[e[4]||(e[4]=a("div",{class:"m-4 c-gray"}," Vant 组件国际化 ",-1)),n(l,null,{default:t(()=>[n(s,{poppable:!1,"show-confirm":!1,style:{height:"500px"}})]),_:1}),e[5]||(e[5]=a("div",{class:"m-4 c-gray"}," Dayjs ",-1)),n(l,null,{default:t(()=>[r(m(f(i)),1)]),_:1}),e[6]||(e[6]=a("div",{class:"m-4 c-gray"}," 延迟加载 ",-1)),n(l,null,{default:t(()=>[a("div",B,[n(u,{onClick:e[0]||(e[0]=v=>d("zh-cn"))},{default:t(()=>e[2]||(e[2]=[r(" 载入中文 ")])),_:1}),n(u,{onClick:e[1]||(e[1]=v=>d("en-us"))},{default:t(()=>e[3]||(e[3]=[r(" 载入英文 ")])),_:1})]),a("div",N,m(f(p)("hello.world")),1)]),_:1})]),_:1})}}});export{O as default}; diff --git a/assets/i18n-DA_O80-w.js.br b/assets/i18n-DA_O80-w.js.br new file mode 100644 index 0000000..fcb1d47 Binary files /dev/null and b/assets/i18n-DA_O80-w.js.br differ diff --git a/assets/i18n-DA_O80-w.js.gz b/assets/i18n-DA_O80-w.js.gz new file mode 100644 index 0000000..ea2a3f5 Binary files /dev/null and b/assets/i18n-DA_O80-w.js.gz differ diff --git a/assets/icon-DZdN6GCF.js b/assets/icon-DZdN6GCF.js new file mode 100644 index 0000000..4fd7fdb --- /dev/null +++ b/assets/icon-DZdN6GCF.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as w}from"./index-DkxdnFkg.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as I,r as f,c as y,w as p,m as d,o as $,b as e,a,u as n,e as s,i as _,_ as B,f as U}from"./index-DD358c5I.js";const L={class:"space-x-2"},N={class:"p-4"},H=I({__name:"icon",setup(R){const r=f("https://picsum.photos/50");function x(){r.value="",r.value=`https://picsum.photos/50?random=${Math.random()}`}const z=new URL(""+new URL("logo-CvGq432t.png",import.meta.url).href,import.meta.url).href,t=f(),o=f(0);return(M,l)=>{const i=B,v=U,u=d("van-radio"),g=d("van-radio-group"),b=d("van-slider"),V=C,k=w;return $(),y(k,{navbar:"","navbar-start-side":"back"},{default:p(()=>[e(V,null,{default:p(()=>[l[11]||(l[11]=a("p",null,"单色 Icon",-1)),a("div",null,[e(i,{name:"example-emotion-line",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"example-emotion-laugh-line",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"example-emotion-unhappy-line",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"])]),l[12]||(l[12]=a("p",null,"彩色 Icon",-1)),a("div",null,[e(i,{name:"example-crown",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"example-star",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"example-vip",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"])]),l[13]||(l[13]=a("p",null,"Iconify Icon",-1)),a("div",null,[e(i,{name:"i-carbon:4k",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"i-carbon:play-filled-alt",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"]),e(i,{name:"i-carbon:pause-filled",size:48,flip:n(t),rotate:n(o)},null,8,["flip","rotate"])]),l[14]||(l[14]=a("p",null,"网络图片",-1)),e(i,{name:n(r),size:48,flip:n(t),rotate:n(o)},null,8,["name","flip","rotate"]),a("div",L,[e(v,{onClick:x},{default:p(()=>l[3]||(l[3]=[s(" 更改图片 ")])),_:1}),e(v,{onClick:l[0]||(l[0]=m=>r.value="")},{default:p(()=>l[4]||(l[4]=[s(" 创建错误 ")])),_:1})]),l[15]||(l[15]=a("p",null,"本地图片",-1)),e(i,{name:n(z),size:48,flip:n(t),rotate:n(o)},null,8,["name","flip","rotate"]),a("div",null,[l[9]||(l[9]=a("p",null,"翻转:",-1)),e(g,{modelValue:n(t),"onUpdate:modelValue":l[1]||(l[1]=m=>_(t)?t.value=m:null),class:"space-y-1"},{default:p(()=>[e(u,null,{default:p(()=>l[5]||(l[5]=[s(" 无 ")])),_:1}),e(u,{name:"horizontal"},{default:p(()=>l[6]||(l[6]=[s(" 水平翻转 ")])),_:1}),e(u,{name:"vertical"},{default:p(()=>l[7]||(l[7]=[s(" 垂直翻转 ")])),_:1}),e(u,{name:"both"},{default:p(()=>l[8]||(l[8]=[s(" 水平垂直翻转 ")])),_:1})]),_:1},8,["modelValue"]),l[10]||(l[10]=a("p",null,"旋转:",-1)),a("div",N,[e(b,{modelValue:n(o),"onUpdate:modelValue":l[2]||(l[2]=m=>_(o)?o.value=m:null),min:0,max:360},null,8,["modelValue"])])])]),_:1})]),_:1})}}});export{H as default}; diff --git a/assets/icon-DZdN6GCF.js.br b/assets/icon-DZdN6GCF.js.br new file mode 100644 index 0000000..2d241e2 Binary files /dev/null and b/assets/icon-DZdN6GCF.js.br differ diff --git a/assets/icon-DZdN6GCF.js.gz b/assets/icon-DZdN6GCF.js.gz new file mode 100644 index 0000000..30ca0a7 Binary files /dev/null and b/assets/icon-DZdN6GCF.js.gz differ diff --git a/assets/index-BjDFbG3z.js b/assets/index-BjDFbG3z.js new file mode 100644 index 0000000..c3f3d7a --- /dev/null +++ b/assets/index-BjDFbG3z.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as v,b as p}from"./index-DkxdnFkg.js";import{d as b,aq as _,r as u,a0 as k,c,w as r,o as d,a as t,b as s,u as l,j as w,t as y,e as n,_ as B,f as S}from"./index-DD358c5I.js";import{_ as V}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";const $={class:"flex flex-1 flex-col gap-8 p-4"},h={class:"flex flex-1 flex-col gap-4"},j={class:"flex items-center justify-end gap-4"},C={class:"flex items-center gap-4"},H=["src","onerror"],N={class:"text-8 font-bold"},P={class:"mb-2 mt-4 flex items-center text-4 font-mono"},E={class:"flex flex-1 flex-col items-center gap-2"},U={class:"flex flex-1 flex-col items-center gap-2"},q={class:"flex flex-1 flex-col items-center gap-2"},D={class:"flex flex-1 flex-col items-center gap-2"},I={class:"flex flex-col rounded-lg bg-[var(--g-container-bg)]"},L={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},M={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},T={class:"ms-auto flex items-center gap-2 font-mono"},z={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},A={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},F={class:"ms-auto flex items-center gap-2 font-mono"},G={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},J={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},K={class:"ms-auto flex items-center gap-2 font-mono"},O={class:"grid grid-cols-4 gap-4"},Q={class:"flex flex-col items-center gap-1"},R={class:"flex flex-col items-center gap-1"},W={class:"flex flex-col items-center gap-1"},X={class:"flex flex-col items-center gap-1"},Y={class:"flex flex-col items-center gap-1"},Z={class:"flex flex-col items-center gap-1"},ee={class:"flex flex-col items-center gap-1"},te={class:"flex flex-col items-center gap-1"},re=b({__name:"index",setup(se){const a=_(),i=u(!1);return k(()=>a.avatar,()=>{i.value&&(i.value=!1)}),(oe,e)=>{const o=B,x=p,f=V,m=S,g=v;return d(),c(g,{navbar:"","navbar-mode":"show-hide-fixed",tabbar:""},{default:r(()=>[t("div",$,[t("div",h,[t("div",j,[s(x,{value:10},{default:r(()=>[s(o,{name:"i-carbon:notification",class:"text-6"})]),_:1}),s(o,{name:"i-carbon:settings",class:"text-6"})]),t("div",C,[l(a).avatar&&!l(i)?(d(),w("img",{key:0,src:l(a).avatar,onerror:()=>i.value=!0,class:"h-20 w-20 rounded-full bg-dark p-2 dark-bg-light"},null,8,H)):(d(),c(o,{key:1,name:"i-carbon:user-avatar-filled-alt",class:"text-20 text-gray-400"})),t("div",null,[t("div",N," Hi, "+y(l(a).account),1),e[1]||(e[1]=t("div",{class:"mt-1 text-stone-5"}," 这是个人中心示例页面噢~ ",-1))])]),t("div",P,[t("div",E,[s(o,{name:"i-logos:vitejs",class:"text-8"}),e[2]||(e[2]=n(" Vite "))]),t("div",U,[s(o,{name:"i-logos:vue",class:"text-8"}),e[3]||(e[3]=n(" Vue.js "))]),t("div",q,[s(o,{name:"i-logos:unocss",class:"text-8"}),e[4]||(e[4]=n(" UnoCSS "))]),t("div",D,[s(o,{name:"i-logos:pinia",class:"text-8"}),e[5]||(e[5]=n(" Pinia "))])]),t("div",I,[t("div",L,[t("div",M,[s(o,{name:"i-carbon:thumbs-up",class:"text-4 text-[#53b7ad]"})]),e[7]||(e[7]=n(" 点赞 ")),t("div",T,[e[6]||(e[6]=n(" 9+ ")),s(o,{name:"i-carbon:chevron-right"})])]),t("div",z,[t("div",A,[s(o,{name:"i-carbon:favorite",class:"text-4 text-[#6ecc84]"})]),e[9]||(e[9]=n(" 收藏 ")),t("div",F,[e[8]||(e[8]=n(" 99+ ")),s(o,{name:"i-carbon:chevron-right"})])]),t("div",G,[t("div",J,[s(o,{name:"i-carbon:share",class:"text-4 text-[#4580dd]"})]),e[11]||(e[11]=n(" 分享 ")),t("div",K,[e[10]||(e[10]=n(" 999+ ")),s(o,{name:"i-carbon:chevron-right"})])])]),s(f,{title:"更多服务",class:"rounded-lg m-0!"},{default:r(()=>[t("div",O,[t("div",Q,[s(o,{name:"i-icon-park:ad",class:"text-8"}),e[12]||(e[12]=t("div",{class:"text-xs text-stone-5"}," 服务1 ",-1))]),t("div",R,[s(o,{name:"i-icon-park:bitcoin",class:"text-8"}),e[13]||(e[13]=t("div",{class:"text-xs text-stone-5"}," 服务2 ",-1))]),t("div",W,[s(o,{name:"i-icon-park:alarm-clock",class:"text-8"}),e[14]||(e[14]=t("div",{class:"text-xs text-stone-5"}," 服务3 ",-1))]),t("div",X,[s(o,{name:"i-icon-park:calendar-dot",class:"text-8"}),e[15]||(e[15]=t("div",{class:"text-xs text-stone-5"}," 服务4 ",-1))]),t("div",Y,[s(o,{name:"i-icon-park:good-two",class:"text-8"}),e[16]||(e[16]=t("div",{class:"text-xs text-stone-5"}," 服务5 ",-1))]),t("div",Z,[s(o,{name:"i-icon-park:airplane",class:"text-8"}),e[17]||(e[17]=t("div",{class:"text-xs text-stone-5"}," 服务6 ",-1))]),t("div",ee,[s(o,{name:"i-icon-park:shopping",class:"text-8"}),e[18]||(e[18]=t("div",{class:"text-xs text-stone-5"}," 服务7 ",-1))]),t("div",te,[s(o,{name:"i-icon-park:globe",class:"text-8"}),e[19]||(e[19]=t("div",{class:"text-xs text-stone-5"}," 服务8 ",-1))])])]),_:1})]),s(m,{block:"",onClick:e[0]||(e[0]=ne=>l(a).logout())},{default:r(()=>e[20]||(e[20]=[n(" 登出 ")])),_:1})])]),_:1})}}});export{re as default}; diff --git a/assets/index-BjDFbG3z.js.br b/assets/index-BjDFbG3z.js.br new file mode 100644 index 0000000..4ffbca7 Binary files /dev/null and b/assets/index-BjDFbG3z.js.br differ diff --git a/assets/index-BjDFbG3z.js.gz b/assets/index-BjDFbG3z.js.gz new file mode 100644 index 0000000..cad8ab0 Binary files /dev/null and b/assets/index-BjDFbG3z.js.gz differ diff --git a/assets/index-BvYIJUVG.js b/assets/index-BvYIJUVG.js new file mode 100644 index 0000000..d588d83 --- /dev/null +++ b/assets/index-BvYIJUVG.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as m,a as x}from"./index-DkxdnFkg.js";import{d,r as c,c as k,w as b,o as w,a as r,b as i,e as a,u as y,i as v,_ as g,f as _}from"./index-DD358c5I.js";import{_ as B}from"./logo-DvfkIia2.js";const L={class:"z-1 flex flex-1 flex-col items-center justify-center gap-4"},V={class:"mt-4 flex gap-4"},G={class:"mt-4 flex flex-wrap justify-center gap-4"},D=d({__name:"index",setup(C){function f(u){window.open(u,"_blank")}const l=c(!1);function n(){l.value=!0}return(u,t)=>{const o=g,s=_,h=x,p=m;return w(),k(p,{navbar:!1,copyright:"",tabbar:""},{default:b(()=>[t[12]||(t[12]=r("svg",{class:"absolute top-2/5 z-0 -translate-y-1/2",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.dev/svgjs",viewBox:"0 0 800 800",opacity:"0.5"},[r("defs",null,[r("filter",{id:"bbburst-blur-1",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"})]),r("filter",{id:"bbburst-blur-2",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2"})]),r("filter",{id:"bbburst-blur-3",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"4"})]),r("filter",{id:"bbburst-blur-4",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12"})]),r("symbol",{id:"bbburst-shape-1",viewBox:"0 0 194 167"},[r("path",{d:"m97 0 96.129 166.5H.871L97 0Z"})]),r("symbol",{id:"bbburst-shape-4",viewBox:"0 0 149 143"},[r("path",{d:"M71.647 2.781c.898-2.764 4.808-2.764 5.706 0l15.445 47.534a3 3 0 0 0 2.853 2.073h49.98c2.906 0 4.115 3.719 1.764 5.427L106.96 87.193a2.999 2.999 0 0 0-1.09 3.354l15.445 47.534c.898 2.764-2.266 5.062-4.617 3.354l-40.435-29.378a3 3 0 0 0-3.526 0l-40.435 29.378c-2.351 1.708-5.515-.59-4.617-3.354L43.13 90.547a3 3 0 0 0-1.09-3.354L1.605 57.815c-2.35-1.708-1.142-5.427 1.764-5.427h49.98a3 3 0 0 0 2.853-2.073L71.647 2.781Z"})]),r("symbol",{id:"bbburst-shape-6",viewBox:"0 0 133 116"},[r("path",{d:"M59.7487 10.2513c-13.6683-13.66839-35.8291-13.66839-49.4974 0-13.66839 13.6683-13.66839 35.8291 0 49.4974l49.4974-49.4974ZM66.5 66.5 41.7513 91.2487 66.5 115.997l24.7487-24.7483L66.5 66.5Zm56.249-6.7513c13.668-13.6683 13.668-35.8291 0-49.4974-13.669-13.66839-35.8294-13.66839-49.4977 0l49.4977 49.4974Zm-112.4977 0 31.5 31.5 49.4974-49.4974-31.5-31.5-49.4974 49.4974Zm80.9974 31.5 31.5003-31.5-49.4977-49.4974-31.5 31.5 49.4974 49.4974Z"})]),r("symbol",{id:"bbburst-shape-8",viewBox:"0 0 87 168"},[r("path",{d:"m12 12 31.2546 18.0749c16.4102 9.4902 20.014 31.6325 7.4603 45.8369L36.3296 92.1884c-12.5684 14.2206-8.9394 36.3916 7.5068 45.8636L75 156","stroke-width":"14","stroke-linecap":"round","stroke-linejoin":"round"})]),r("symbol",{id:"bbburst-shape-10",viewBox:"0 0 145 145"},[r("circle",{cx:"72.5",cy:"72.5",r:"61.5",fill:"none","stroke-width":"22"})])]),r("use",{"xlink:href":"#bbburst-shape-6",width:"26.416031353675077",opacity:"0.5558125008595394",transform:"matrix(0.8948913757080802,0.44628401907675314,-0.44628401907675314,0.8948913757080802,764.4989705590918,7.394036236793511)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"31.6181173108733",opacity:"0.24447893397779907",transform:"matrix(1.0181298934052316,-0.7251975731858538,0.7251975731858538,1.0181298934052316,83.84057233816316,344.0911679213252)",fill:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.35836701644857",opacity:"0.3939041554887399",transform:"matrix(0.9818636343718777,0.18958851098641893,-0.18958851098641893,0.9818636343718777,185.3241317450107,-20.441183043098818)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"27.436063205739657",opacity:"0.634055200115319",transform:"matrix(0.7945493008807643,0.6071996446556015,-0.6071996446556015,0.7945493008807643,778.3792528597228,-1.5005415967389695)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"19.286593148931928",opacity:"0.6929890267054223",transform:"matrix(0.9998675263528706,0.01627666258763093,-0.01627666258763093,0.9998675263528706,487.69150345038605,104.00194476171367)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"26.285962047362066",opacity:"0.5884257064355131",transform:"matrix(0.9323517281447373,0.3615525619125409,-0.3615525619125409,0.9323517281447373,420.41836124322595,169.89367200498566)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"28.138131344890343",opacity:"0.24151611584353583",transform:"matrix(1.2140347401183973,-0.2976905268658307,0.2976905268658307,1.2140347401183973,-76.20470313003861,-52.070508080368654)",fill:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.96410692439042",opacity:"0.16276858481360978",transform:"matrix(1.1813328357357196,0.40859849634158424,-0.40859849634158424,1.1813328357357196,180.77138375624097,36.64211297396139)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"23.294275791580883",opacity:"0.7884943613282643",transform:"matrix(0.8207015175269758,-0.5713571729915701,0.5713571729915701,0.8207015175269758,141.47627412313483,-14.586693829285423)",fill:"none",stroke:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"23.253094199109952",opacity:"0.6777859835962992",transform:"matrix(0.9978821316634325,-0.06504806920150548,0.06504806920150548,0.9978821316634325,297.768605869114,-128.20171692630942)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"33.946456612090714",opacity:"0.17469749546888036",transform:"matrix(1.1502628113244515,-0.48928055845697516,0.48928055845697516,1.1502628113244515,-178.79689032308565,-127.52881309943399)",fill:"#ffbd9b",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"17.503837823956527",opacity:"0.8840634618774533",transform:"matrix(0.9671106934827564,-0.25435586596597687,0.25435586596597687,0.9671106934827564,329.4322054291615,49.302907128432366)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"39.46823225673065",opacity:"0.14322513219973998",transform:"matrix(1.167719666328466,0.44601657017395263,-0.44601657017395263,1.167719666328466,785.609295854234,-385.13758115993556)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"38.9288980066375",opacity:"-0.06642004913641286",transform:"matrix(1.7481345161113895,0.08078188893556315,-0.08078188893556315,1.7481345161113895,732.5319725182615,-645.1062632953099)",fill:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.488913772353985",opacity:"0.6941195012737249",transform:"matrix(0.886062851439946,-0.46356512303894504,0.46356512303894504,0.886062851439946,68.76949642174395,34.44576912703553)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.80932923777674",opacity:"0.6831023743850402",transform:"matrix(0.9772575024190081,0.2120560632610215,-0.2120560632610215,0.9772575024190081,518.9299369767407,142.44732832606815)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.14008901483358",opacity:"0.5271024527024384",transform:"matrix(0.8380168949831764,0.5456442831394422,-0.5456442831394422,0.8380168949831764,543.4505206764961,260.65950212407415)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.5994596380744",opacity:"0.20228209083124982",transform:"matrix(1.2256950819055399,-0.24529893231029717,0.24529893231029717,1.2256950819055399,634.1701440327786,-39.01742401620646)",fill:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"34.03377174978507",opacity:"0.2636163413758421",transform:"matrix(1.0742282380507913,-0.6391664044474588,0.6391664044474588,1.0742282380507913,-133.30590378832116,-225.06762711889436)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"13.373055185250985",opacity:"0.8726705337045912",transform:"matrix(0.947840818549115,0.31874407083449224,-0.31874407083449224,0.947840818549115,482.64398739792546,61.15429598490982)",fill:"none",stroke:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.20607374520945",opacity:"0.30085489897027917",transform:"matrix(0.9294283220167407,0.8358606308668604,-0.8358606308668604,0.9294283220167407,424.58467490690794,-104.85491982685306)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.30381738255501",opacity:"0.6785184671801652",transform:"matrix(0.9938856040396487,-0.11041470048296415,0.11041470048296415,0.9938856040396487,289.6218157181378,136.90375632681474)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"18.669357324120497",opacity:"0.6575368445004026",transform:"matrix(0.8753453416810841,-0.48349822419242244,0.48349822419242244,0.8753453416810841,290.78957167865883,-68.99021079222337)",fill:"#ff5c58",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"34.6844094516455",opacity:"0.4409424222203059",transform:"matrix(0.9955757113541631,0.09396277433990582,-0.09396277433990582,0.9955757113541631,428.22080504220344,-251.3116102527606)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"37.60867558154684",opacity:"0.1445054336727435",transform:"matrix(1.2171858832594042,-0.2845321169815874,0.2845321169815874,1.2171858832594042,24.645750448950025,-383.5278737376741)",fill:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"32.794407343640955",opacity:"0.2767332868589536",transform:"matrix(1.2434521524739712,-0.1277761499961862,0.1277761499961862,1.2434521524739712,616.0677410898945,57.14712244346788)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"19.485949492344034",opacity:"0.7592137588253466",transform:"matrix(0.7883200326962686,-0.6152654110623756,0.6152654110623756,0.7883200326962686,248.22322269886865,54.13543279115419)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.19360101215321",opacity:"0.44874471816313344",transform:"matrix(0.7725965110979194,-0.634897338976407,0.634897338976407,0.7725965110979194,359.4744605104281,-8.244242253234574)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"27.897460483637857",opacity:"0.2854849461789576",transform:"matrix(1.2299793951583662,-0.22282434222018796,0.22282434222018796,1.2299793951583662,89.36636688164285,159.35998335327554)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"36.27649639080377",opacity:"0.22023273250004471",transform:"matrix(1.2122519408471433,0.304869204598192,-0.304869204598192,1.2122519408471433,778.9754860971674,-303.21524296908626)",fill:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"30.156812483801453",opacity:"0.5595186722367804",transform:"matrix(0.8488054609464469,-0.5287052954789555,0.5287052954789555,0.8488054609464469,241.17140455197887,-118.62281838320263)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"28.465136667021834",opacity:"0.1925273132808426",transform:"matrix(1.1245857747312715,-0.5457168086765019,0.5457168086765019,1.1245857747312715,-115.94243357035177,187.50994458277995)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"22.772606059316328",opacity:"0.6364280141054937",transform:"matrix(0.8582258388406303,-0.5132722567471346,0.5132722567471346,0.8582258388406303,178.72306691122498,-100.93608993451369)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"35.54500352575896",opacity:"0.48087915178256946",transform:"matrix(0.958508856073423,-0.2850627524402622,0.2850627524402622,0.958508856073423,41.38010278460905,74.46026839745804)",fill:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"18.046398850828204",opacity:"0.9574403449777207",transform:"matrix(0.9646991492264526,0.26335442180027774,-0.26335442180027774,0.9646991492264526,496.8768531345968,30.894384742960142)",fill:"none",stroke:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"23.408844280637563",opacity:"0.6367804684088002",transform:"matrix(0.7081552981953446,0.7060567070978524,-0.7060567070978524,0.7081552981953446,533.5753487041859,25.04461043075338)",fill:"#ff5c58",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.55651638804689",opacity:"0.2642812811776739",transform:"matrix(1.2427530248429088,0.13440580063301039,-0.13440580063301039,1.2427530248429088,651.6587270374946,144.15439068218308)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"17.949129162646432",opacity:"0.798918311753063",transform:"matrix(0.8844518856945768,-0.46663139831274464,0.46663139831274464,0.8844518856945768,119.33917903123952,22.521968540329965)",fill:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"14.859938209965907",opacity:"0.8693897729801137",transform:"matrix(0.7233414119049179,0.6904905515815549,-0.6904905515815549,0.7233414119049179,672.1756703913004,164.30165808837796)",fill:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"40.562644811325725",opacity:"0.2642811599036019",transform:"matrix(1.177891378629033,0.41841594155982603,-0.41841594155982603,1.177891378629033,614.3428022176136,-403.04281080444673)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"23.019122039343472",opacity:"0.6892028121127827",transform:"matrix(0.9905348575016841,0.13726141509586143,-0.13726141509586143,0.9905348575016841,583.3595890428223,1.992116791112153)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"13.308157012883006",opacity:"0.8505629688734552",transform:"matrix(0.8484537296467857,-0.5292695614225885,0.5292695614225885,0.8484537296467857,116.00730993113373,73.15890688445796)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"29.936838172794538",opacity:"0.049708162293127356",transform:"matrix(1.69312962159218,-0.4425065925917051,0.4425065925917051,1.69312962159218,-163.92527185249548,-42.283279621731594)",fill:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"35.35551902487354",opacity:"0.38452574143774754",transform:"matrix(0.9479318226938659,-0.3184733262367278,0.3184733262367278,0.9479318226938659,532.2948246542818,9.461417984865989)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"21.351314321199105",opacity:"0.6423664559648137",transform:"matrix(0.9595094671283049,0.2816763790081737,-0.2816763790081737,0.9595094671283049,494.3770754450114,173.94164251177205)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"16.2854986019584",opacity:"0.8172883901867557",transform:"matrix(0.7200389045134103,0.693933697111711,-0.693933697111711,0.7200389045134103,753.3895891363628,115.75051520674276)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"28.272569437891605",opacity:"0.3709642989706964",transform:"matrix(0.9903687702907983,0.1384546815123708,-0.1384546815123708,0.9903687702907983,641.3045839601917,-198.4974772323666)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"30.756526946174013",opacity:"0.19689600446076505",transform:"matrix(0.8948765357540839,0.8727519611875816,-0.8727519611875816,0.8948765357540839,718.4179499815281,-332.37245398434163)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"18.16667503216277",opacity:"0.7698989074328813",transform:"matrix(0.926112251002737,-0.37724805969367625,0.37724805969367625,0.926112251002737,230.9559506131129,136.08355114854578)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"21.885065989769494",opacity:"0.7925758768593798",transform:"matrix(0.9403425238414829,0.34022924309269803,-0.34022924309269803,0.9403425238414829,561.6935872022045,106.32026829640472)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"28.749315554570373",opacity:"0.2809432881863717",transform:"matrix(1.2495622703198281,0.03307767514740126,-0.03307767514740126,1.2495622703198281,697.7343379961311,-215.2606692272039)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"15.443229565023426",opacity:"0.795885989749451",transform:"matrix(0.9633116896753093,-0.26838514961692744,0.26838514961692744,0.9633116896753093,356.8859655086748,74.18377079864905)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"29.478637863200223",opacity:"0.17145715237847048",transform:"matrix(1.1292003958040162,-0.5361030368465127,0.5361030368465127,1.1292003958040162,534.3723451991259,-117.68676108281767)",fill:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.85911382368745",opacity:"0.5815606819356425",transform:"matrix(0.8877406248402884,0.46034398335176974,-0.46034398335176974,0.8877406248402884,722.8540374520534,157.3447868598775)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"18.498919664324916",opacity:"0.9321936095044238",transform:"matrix(0.9993315421687766,-0.03655774646466429,0.03655774646466429,0.9993315421687766,345.7373810131898,-2.0362046820878277)",fill:"#ffbd9b"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"13.693142541305319",opacity:"0.863489453033575",transform:"matrix(0.9989318178279983,-0.046208476828941844,0.046208476828941844,0.9989318178279983,426.74018408035937,-31.861084170371157)",fill:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"35.268122653482536",opacity:"0.0747390020798605",transform:"matrix(1.7106019611993228,0.3692437275581409,-0.3692437275581409,1.7106019611993228,162.4638308501252,-508.2100598787268)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"40.60128481498418",opacity:"-0.07392494469178357",transform:"matrix(1.6869113086032348,-0.4656503375994929,0.4656503375994929,1.6869113086032348,-160.74457489792087,77.88525043039954)",fill:"#2c2891",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"40.94105502846296",opacity:"0.5120942761336786",transform:"matrix(0.9025418585238841,-0.4306021291311194,0.4306021291311194,0.9025418585238841,141.144696882964,-160.86364847351163)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"36.596532889900544",opacity:"0.3372881407998708",transform:"matrix(0.7247904765392196,-0.688969349911918,0.688969349911918,0.7247904765392196,-157.60792428117813,251.90369391823623)",fill:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"25.921761180647998",opacity:"0.10736055772919317",transform:"matrix(1.475459727483159,-0.9410199745889151,0.9410199745889151,1.475459727483159,369.8087149891469,-11.015154621386046)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"33.04736653297553",opacity:"0.4608349328757705",transform:"matrix(0.9982348681428221,0.05938979730460901,-0.05938979730460901,0.9982348681428221,203.06883778473758,-131.3170558801445)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"44.89232396679711",opacity:"0.08091988444936682",transform:"matrix(1.6321400698746786,0.6313626472238273,-0.6313626472238273,1.6321400698746786,392.8425252548857,81.32881514532562)",fill:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"30.61737391309776",opacity:"0.4198131748320779",transform:"matrix(0.8393141145334597,0.543646776082517,-0.543646776082517,0.8393141145334597,750.9343508175571,272.1917211169002)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.3306295959121",opacity:"0.7658690604199302",transform:"matrix(0.9970292456966028,0.07702391333646531,-0.07702391333646531,0.9970292456966028,495.1905213970417,-74.51667099407894)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"34.73405345005027",opacity:"0.5448379996351069",transform:"matrix(0.999616062540463,-0.027707896186850607,0.027707896186850607,0.999616062540463,170.7703617321028,-39.793976204333546)",fill:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"37.47511444510972",opacity:"0.37425387956885814",transform:"matrix(0.943842384170447,0.33039605603494476,-0.33039605603494476,0.943842384170447,354.094633226263,-215.17814033599382)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"36.143780999103996",opacity:"0.05442213361677595",transform:"matrix(1.6984447659652357,0.42164603278733215,-0.42164603278733215,1.6984447659652357,777.3188617276672,64.80917428335795)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"36.56633839492573",opacity:"0.3081899990048894",transform:"matrix(0.9118894984013848,-0.8549605503795311,0.8549605503795311,0.9118894984013848,-45.025579241467824,-248.21820622873884)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"51.17960397461315",opacity:"-0.06893970122033855",transform:"matrix(1.7235227941923668,-0.3032642047775109,0.3032642047775109,1.7235227941923668,-100.81759025041902,-626.4455964052045)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"21.660677019537395",opacity:"0.5358670064608531",transform:"matrix(0.8389240949497108,-0.5442484385947365,0.5442484385947365,0.8389240949497108,321.06690550885764,-77.19528425384175)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"19.072300852945485",opacity:"0.867975695412889",transform:"matrix(0.9560646494762371,-0.2931559073630955,0.2931559073630955,0.9560646494762371,235.4508086153137,-25.15734662214487)",fill:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"34.44989454416138",opacity:"0.30763750302158366",transform:"matrix(1.2314596709209886,-0.21449260801988168,0.21449260801988168,1.2314596709209886,178.77763135840624,200.9846213927941)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"25.28901381671598",opacity:"0.5644023592835734",transform:"matrix(0.8557086099396285,-0.5174579933436034,0.5174579933436034,0.8557086099396285,277.36538352476487,235.65197416972285)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"17.981292274075628",opacity:"0.9360349057717411",transform:"matrix(0.9339565985462233,-0.35738644634620487,0.35738644634620487,0.9339565985462233,249.5906789609321,0.861810235563155)",fill:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"26.875733205415827",opacity:"0.5570324433766652",transform:"matrix(0.9020873199288372,0.43155355081798114,-0.43155355081798114,0.9020873199288372,433.39482500429915,-120.17555443435748)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"34.08808709611311",opacity:"0.3815863678264644",transform:"matrix(0.9986117664686351,-0.05267390122624303,0.05267390122624303,0.9986117664686351,435.4871052873753,269.8367451414996)",fill:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"35.99078188960184",opacity:"0.1767831192608167",transform:"matrix(1.0971959609939557,0.5988831465140341,-0.5988831465140341,1.0971959609939557,691.0209658713641,313.9284179971748)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"29.749860014218438",opacity:"0.1177029301974728",transform:"matrix(1.2018664151199367,-0.3435361992669067,0.3435361992669067,1.2018664151199367,79.705570616574,-436.7592777611839)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"30.833740021494805",opacity:"0.15590334401171135",transform:"matrix(1.1270597886457088,0.5405887834739919,-0.5405887834739919,1.1270597886457088,495.8010750433953,306.4377146837421)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"18.463822400332052",opacity:"0.7297876650701348",transform:"matrix(0.9986616593917805,0.05171933933119487,-0.05171933933119487,0.9986616593917805,444.9879456327544,-116.82606277723028)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"22.793528027293668",opacity:"0.7781641681733864",transform:"matrix(0.9938739247677828,0.11051977952694102,-0.11051977952694102,0.9938739247677828,373.9537133656526,81.7689779219973)",fill:"none",stroke:"#ffbd9b"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"25.708002196035583",opacity:"0.6308646129962682",transform:"matrix(0.9997513299379795,0.022299737380541296,-0.022299737380541296,0.9997513299379795,236.087019462269,44.51826198899744)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"35.11116364325612",opacity:"0.12479613460197658",transform:"matrix(0.9873679933973254,-0.7665536156163764,0.7665536156163764,0.9873679933973254,232.57344151731564,-342.86038535715346)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.03272212160093",opacity:"0.5404016468296393",transform:"matrix(0.7329610166212789,-0.6802706432836135,0.6802706432836135,0.7329610166212789,151.16125402275594,319.87040716539934)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"39.79098241492075",opacity:"0.3910174789155494",transform:"matrix(0.8048673646848262,0.5934547373349571,-0.5934547373349571,0.8048673646848262,886.4854050047372,135.61533324792236)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"38.54718583364994",opacity:"0.19525872042670156",transform:"matrix(1.1070627632826489,0.5804412443589669,-0.5804412443589669,1.1070627632826489,760.7957003519333,275.6563883169359)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"22.464784793855586",opacity:"0.6675250663600203",transform:"matrix(0.9997402513869925,0.022791001660150523,-0.022791001660150523,0.9997402513869925,279.04108926629146,90.73208269007068)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"35.9851213840529",opacity:"0.48095453774484065",transform:"matrix(0.995413538124793,-0.09566550118972493,0.09566550118972493,0.995413538124793,157.15082077857866,143.97077409757281)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.341228594598842",opacity:"0.8473677178671943",transform:"matrix(0.9095580059880713,-0.41557698894790074,0.41557698894790074,0.9095580059880713,245.366383043814,-25.37783187969785)",fill:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"31.122608075162102",opacity:"0.42666818743213764",transform:"matrix(0.9347556836933607,0.35529116482535517,-0.35529116482535517,0.9347556836933607,505.6252503477608,277.63323531713723)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"33.05237437541884",opacity:"0.06168935576936119",transform:"matrix(1.579038218120365,0.7544125567057212,-0.7544125567057212,1.579038218120365,1036.735508970527,-462.98419402429863)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"27.98034949739368",opacity:"0.44117623848325294",transform:"matrix(0.9188719837015616,-0.3945557977882939,0.3945557977882939,0.9188719837015616,92.22170289280186,248.7813573851751)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"37.12621837593663",opacity:"0.4384973373264587",transform:"matrix(0.8295285542312407,-0.5584643029908245,0.5584643029908245,0.8295285542312407,368.37631888106404,223.22648724541313)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"27.983276816484043",opacity:"0.5593999594345938",transform:"matrix(0.9575329508745078,0.28832385955650164,-0.28832385955650164,0.9575329508745078,693.8746966903442,62.64204380075341)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"43.58416436486924",opacity:"0.07855832738612067",transform:"matrix(1.7363088580396244,-0.21847551234208357,0.21847551234208357,1.7363088580396244,600.154615794529,-32.74065307102569)",fill:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.663330985679025",opacity:"0.3861697969354583",transform:"matrix(0.9009474079936586,0.4339282982584889,-0.4339282982584889,0.9009474079936586,681.5751343323127,-214.83300033492876)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"16.79244977896319",opacity:"0.7531249130021647",transform:"matrix(0.9659176055855678,-0.2588497232369459,0.2588497232369459,0.9659176055855678,207.3685886368855,-60.24495098134241)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"15.914272257549815",opacity:"0.9298545212577191",transform:"matrix(0.9584742608796021,0.28517905117890485,-0.28517905117890485,0.9584742608796021,537.8917654535644,11.60817172849687)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"18.48447167035644",opacity:"0.7667763650842055",transform:"matrix(0.9723227386716432,-0.23364180247138008,0.23364180247138008,0.9723227386716432,199.31630099331582,50.154995787129565)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"21.010553712678306",opacity:"0.7007416847786461",transform:"matrix(0.8507328033448063,0.5255984182939359,-0.5255984182939359,0.8507328033448063,724.7619710169704,107.96888592493974)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"34.01792536906908",opacity:"-0.09511205163284386",transform:"matrix(1.7021267138295475,0.4065275514252701,-0.4065275514252701,1.7021267138295475,883.1938942223621,59.67886736497519)",fill:"#ffbd9b",filter:"url(#bbburst-blur-4)"})],-1)),r("div",L,[t[9]||(t[9]=r("img",{src:B,class:"h-40 w-40"},null,-1)),t[10]||(t[10]=r("div",{class:"bg-gradient-[120deg,#AE3FF5_30%,#6EC0F9] bg-gradient-linear bg-clip-text text-4xl text-transparent font-bold"}," Fantastic-mobile ",-1)),t[11]||(t[11]=r("div",{class:"text-3xl text-dark/80 font-bold dark-text-light/80"}," 别具一格, 自成一派 ",-1)),r("div",V,[i(s,{onClick:t[0]||(t[0]=e=>f("https://fantastic-mobile.hurui.me"))},{default:b(()=>[i(o,{name:"i-ri:file-text-line"}),t[4]||(t[4]=a(" 开发文档 "))]),_:1}),i(s,{outline:"",onClick:n},{default:b(()=>t[5]||(t[5]=[a(" 切换组件库 ")])),_:1})]),i(h,{modelValue:y(l),"onUpdate:modelValue":t[3]||(t[3]=e=>v(l)?l.value=e:null),title:"切换组件库",overlay:""},{default:b(()=>[t[8]||(t[8]=r("div",{class:"rounded-2 bg-green/20 px-4 py-2 text-sm/6 c-green-6"},[r("p",{class:"my-1"}," 本框架支持与 Vant 组件库解耦,意味着可以轻松将 Vant 组件库替换成其他 UI 组件库,并且不会影响框架原本的功能。 "),r("p",{class:"my-1"}," 演示站挑选了以下 2 款组件库作为示例,你可以点击访问并预览。 ")],-1)),r("div",G,[i(s,{onClick:t[1]||(t[1]=e=>f("https://fantastic-mobile.hurui.me/varlet-example/"))},{default:b(()=>t[6]||(t[6]=[a(" 访问 Varlet 演示站 ")])),_:1}),i(s,{onClick:t[2]||(t[2]=e=>f("https://fantastic-mobile.hurui.me/nut-example/"))},{default:b(()=>t[7]||(t[7]=[a(" 访问 NutUI 演示站 ")])),_:1})])]),_:1},8,["modelValue"])])]),_:1})}}});export{D as default}; diff --git a/assets/index-BvYIJUVG.js.br b/assets/index-BvYIJUVG.js.br new file mode 100644 index 0000000..d7cab8d Binary files /dev/null and b/assets/index-BvYIJUVG.js.br differ diff --git a/assets/index-BvYIJUVG.js.gz b/assets/index-BvYIJUVG.js.gz new file mode 100644 index 0000000..017928f Binary files /dev/null and b/assets/index-BvYIJUVG.js.gz differ diff --git a/assets/index-CEzT67gG.css b/assets/index-CEzT67gG.css new file mode 100644 index 0000000..47e7d7f --- /dev/null +++ b/assets/index-CEzT67gG.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +.navbar-static[data-v-5350d342]{position:absolute;top:0;left:0;z-index:1000;width:100%}.navbar-fixed[data-v-5350d342]{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.navbar.shadow-top[data-v-5350d342]{box-shadow:0 min(2.667vw,16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.tabbar[data-v-5350d342]{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.tabbar.shadow-bottom[data-v-5350d342]{box-shadow:0 max(-2.667vw,-16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.backtop[data-v-5350d342]{position:fixed;right:calc(50% - min(274.4px,45.733%));bottom:min(4.267vw,25.6px);z-index:1000} diff --git a/assets/index-CEzT67gG.css.br b/assets/index-CEzT67gG.css.br new file mode 100644 index 0000000..452b2b2 Binary files /dev/null and b/assets/index-CEzT67gG.css.br differ diff --git a/assets/index-CEzT67gG.css.gz b/assets/index-CEzT67gG.css.gz new file mode 100644 index 0000000..69c05fa Binary files /dev/null and b/assets/index-CEzT67gG.css.gz differ diff --git a/assets/index-Cf4_vbhO.css b/assets/index-Cf4_vbhO.css new file mode 100644 index 0000000..038e133 --- /dev/null +++ b/assets/index-Cf4_vbhO.css @@ -0,0 +1,16 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +.mode[data-v-b2ea229c]:after{position:absolute;top:20%;left:20%;width:60%;height:60%;border-radius:8px;--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;content:""}.dark .mode[data-v-b2ea229c]:after{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.mode.mode-fade[data-v-b2ea229c]:after{animation:transition-mode-fade-after-b2ea229c 1.5s infinite}@keyframes transition-mode-fade-after-b2ea229c{0%{opacity:1}30%,35%{opacity:0}65%{opacity:1}}.mode.mode-slide-left[data-v-b2ea229c]:after{animation:transition-mode-slide-left-b2ea229c 1.5s infinite}@keyframes transition-mode-slide-left-b2ea229c{0%{opacity:1}30%{opacity:0;transform:translate(-30%)}35%{opacity:0;transform:translate(30%)}65%{opacity:1}}.mode.mode-slide-right[data-v-b2ea229c]:after{animation:transition-mode-slide-right-b2ea229c 1.5s infinite}@keyframes transition-mode-slide-right-b2ea229c{0%{opacity:1}30%{opacity:0;transform:translate(30%)}35%{opacity:0;transform:translate(-30%)}to{opacity:1}}.mode.mode-slide-top[data-v-b2ea229c]:after{animation:transition-mode-slide-top-b2ea229c 1.5s infinite}@keyframes transition-mode-slide-top-b2ea229c{0%{opacity:1}30%{opacity:0;transform:translateY(-30%)}35%{opacity:0;transform:translateY(30%)}to{opacity:1}}.mode.mode-slide-bottom[data-v-b2ea229c]:after{animation:transition-mode-slide-bottom-b2ea229c 1.5s infinite}@keyframes transition-mode-slide-bottom-b2ea229c{0%{opacity:1}30%{opacity:0;transform:translateY(30%)}35%{opacity:0;transform:translateY(-30%)}to{opacity:1}}#nprogress{pointer-events:none}#nprogress .bar{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:2000;width:min(100%,600px);height:min(.533vw,3.2px);background:rgb(var(--ui-primary))}#nprogress .peg{position:absolute;right:0;display:block;width:min(26.667vw,160px);height:100%;box-shadow:0 0 min(2.667vw,16px) rgb(var(--ui-primary)),0 0 min(1.333vw,8px) rgb(var(--ui-primary));opacity:1;transform:rotate(3deg) translateY(max(-1.067vw,-6.4px))}#nprogress .spinner{position:fixed;top:min(2.933vw,17.6px);right:calc(50% - min(277.6px,46.267%));z-index:2000;display:block}#nprogress .spinner .spinner-icon{box-sizing:border-box;width:min(4.8vw,28.8px);height:min(4.8vw,28.8px);border:solid min(.533vw,3.2px) transparent;border-top-color:rgb(var(--ui-primary));border-left-color:rgb(var(--ui-primary));border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{position:relative;overflow:hidden}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: min(1.067vw, 6.4px);--van-padding-xs: min(2.133vw, 12.8px);--van-padding-sm: min(3.2vw, 19.2px);--van-padding-md: min(4.267vw, 25.6px);--van-padding-lg: min(6.4vw, 38.4px);--van-padding-xl: min(8.533vw, 51.2px);--van-font-bold: 600;--van-font-size-xs: min(2.667vw, 16px);--van-font-size-sm: min(3.2vw, 19.2px);--van-font-size-md: min(3.733vw, 22.4px);--van-font-size-lg: min(4.267vw, 25.6px);--van-line-height-xs: min(3.733vw, 22.4px);--van-line-height-sm: min(4.8vw, 28.8px);--van-line-height-md: min(5.333vw, 32px);--van-line-height-lg: min(5.867vw, 35.2px);--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: min(.267vw, 1.6px);--van-radius-sm: min(.533vw, 3.2px);--van-radius-md: min(1.067vw, 6.4px);--van-radius-lg: min(2.133vw, 12.8px);--van-radius-max: min(266.4vw, 1598.4px)}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: min(13.333vw, 80px)}.van-action-bar{position:fixed;right:calc(50% - min(50%,300px));bottom:0;left:calc(50% - min(50%,300px));display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}:root,:host{--van-badge-size: min(4.267vw, 25.6px);--van-badge-color: var(--van-white);--van-badge-padding: 0 min(.8vw, 4.8px);--van-badge-font-size: var(--van-font-size-sm);--van-badge-font-weight: var(--van-font-bold);--van-badge-border-width: var(--van-border-width);--van-badge-background: var(--van-danger-color);--van-badge-dot-color: var(--van-danger-color);--van-badge-dot-size: min(2.133vw, 12.8px);--van-badge-font: -apple-system-font, helvetica neue, arial, sans-serif}.van-badge{display:inline-block;box-sizing:border-box;min-width:var(--van-badge-size);padding:var(--van-badge-padding);color:var(--van-badge-color);font-weight:var(--van-badge-font-weight);font-size:var(--van-badge-font-size);font-family:var(--van-badge-font);line-height:1.2;text-align:center;background:var(--van-badge-background);border:var(--van-badge-border-width) solid var(--van-background-2);border-radius:var(--van-radius-max)}.van-badge--fixed{position:absolute;transform-origin:100%}.van-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.van-badge--top-right{top:0;right:0;transform:translate(50%,-50%)}.van-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.van-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.van-badge--dot{width:var(--van-badge-dot-size);min-width:0;height:var(--van-badge-dot-size);background:var(--van-badge-dot-color);border-radius:100%;border:none;padding:0}.van-badge__wrapper{position:relative;display:inline-block}.van-icon{position:relative;display:inline-block;font:min(3.733vw,22.4px)/1 vant-icon;font:normal normal normal min(3.733vw,22.4px)/1 var(--van-icon-font-family, "vant-icon");font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon:before{display:inline-block}.van-icon-arrow-double-left:before{content:""}.van-icon-arrow-double-right:before{content:""}.van-icon-contact:before{content:""}.van-icon-notes:before{content:""}.van-icon-records:before{content:""}.van-icon-cash-back-record:before{content:""}.van-icon-newspaper:before{content:""}.van-icon-discount:before{content:""}.van-icon-completed:before{content:""}.van-icon-user:before{content:""}.van-icon-description:before{content:""}.van-icon-list-switch:before{content:""}.van-icon-list-switching:before{content:""}.van-icon-link-o:before{content:""}.van-icon-miniprogram-o:before{content:""}.van-icon-qq:before{content:""}.van-icon-wechat-moments:before{content:""}.van-icon-weibo:before{content:""}.van-icon-cash-o:before{content:""}.van-icon-guide-o:before{content:""}.van-icon-invitation:before{content:""}.van-icon-shield-o:before{content:""}.van-icon-exchange:before{content:""}.van-icon-eye:before{content:""}.van-icon-enlarge:before{content:""}.van-icon-expand-o:before{content:""}.van-icon-eye-o:before{content:""}.van-icon-expand:before{content:""}.van-icon-filter-o:before{content:""}.van-icon-fire:before{content:""}.van-icon-fail:before{content:""}.van-icon-failure:before{content:""}.van-icon-fire-o:before{content:""}.van-icon-flag-o:before{content:""}.van-icon-font:before{content:""}.van-icon-font-o:before{content:""}.van-icon-gem-o:before{content:""}.van-icon-flower-o:before{content:""}.van-icon-gem:before{content:""}.van-icon-gift-card:before{content:""}.van-icon-friends:before{content:""}.van-icon-friends-o:before{content:""}.van-icon-gold-coin:before{content:""}.van-icon-gold-coin-o:before{content:""}.van-icon-good-job-o:before{content:""}.van-icon-gift:before{content:""}.van-icon-gift-o:before{content:""}.van-icon-gift-card-o:before{content:""}.van-icon-good-job:before{content:""}.van-icon-home-o:before{content:""}.van-icon-goods-collect:before{content:""}.van-icon-graphic:before{content:""}.van-icon-goods-collect-o:before{content:""}.van-icon-hot-o:before{content:""}.van-icon-info:before{content:""}.van-icon-hotel-o:before{content:""}.van-icon-info-o:before{content:""}.van-icon-hot-sale-o:before{content:""}.van-icon-hot:before{content:""}.van-icon-like:before{content:""}.van-icon-idcard:before{content:""}.van-icon-like-o:before{content:""}.van-icon-hot-sale:before{content:""}.van-icon-location-o:before{content:""}.van-icon-location:before{content:""}.van-icon-label:before{content:""}.van-icon-lock:before{content:""}.van-icon-label-o:before{content:""}.van-icon-map-marked:before{content:""}.van-icon-logistics:before{content:""}.van-icon-manager:before{content:""}.van-icon-more:before{content:""}.van-icon-live:before{content:""}.van-icon-manager-o:before{content:""}.van-icon-medal:before{content:""}.van-icon-more-o:before{content:""}.van-icon-music-o:before{content:""}.van-icon-music:before{content:""}.van-icon-new-arrival-o:before{content:""}.van-icon-medal-o:before{content:""}.van-icon-new-o:before{content:""}.van-icon-free-postage:before{content:""}.van-icon-newspaper-o:before{content:""}.van-icon-new-arrival:before{content:""}.van-icon-minus:before{content:""}.van-icon-orders-o:before{content:""}.van-icon-new:before{content:""}.van-icon-paid:before{content:""}.van-icon-notes-o:before{content:""}.van-icon-other-pay:before{content:""}.van-icon-pause-circle:before{content:""}.van-icon-pause:before{content:""}.van-icon-pause-circle-o:before{content:""}.van-icon-peer-pay:before{content:""}.van-icon-pending-payment:before{content:""}.van-icon-passed:before{content:""}.van-icon-plus:before{content:""}.van-icon-phone-circle-o:before{content:""}.van-icon-phone-o:before{content:""}.van-icon-printer:before{content:""}.van-icon-photo-fail:before{content:""}.van-icon-phone:before{content:""}.van-icon-photo-o:before{content:""}.van-icon-play-circle:before{content:""}.van-icon-play:before{content:""}.van-icon-phone-circle:before{content:""}.van-icon-point-gift-o:before{content:""}.van-icon-point-gift:before{content:""}.van-icon-play-circle-o:before{content:""}.van-icon-shrink:before{content:""}.van-icon-photo:before{content:""}.van-icon-qr:before{content:""}.van-icon-qr-invalid:before{content:""}.van-icon-question-o:before{content:""}.van-icon-revoke:before{content:""}.van-icon-replay:before{content:""}.van-icon-service:before{content:""}.van-icon-question:before{content:""}.van-icon-search:before{content:""}.van-icon-refund-o:before{content:""}.van-icon-service-o:before{content:""}.van-icon-scan:before{content:""}.van-icon-share:before{content:""}.van-icon-send-gift-o:before{content:""}.van-icon-share-o:before{content:""}.van-icon-setting:before{content:""}.van-icon-points:before{content:""}.van-icon-photograph:before{content:""}.van-icon-shop:before{content:""}.van-icon-shop-o:before{content:""}.van-icon-shop-collect-o:before{content:""}.van-icon-shop-collect:before{content:""}.van-icon-smile:before{content:""}.van-icon-shopping-cart-o:before{content:""}.van-icon-sign:before{content:""}.van-icon-sort:before{content:""}.van-icon-star-o:before{content:""}.van-icon-smile-comment-o:before{content:""}.van-icon-stop:before{content:""}.van-icon-stop-circle-o:before{content:""}.van-icon-smile-o:before{content:""}.van-icon-star:before{content:""}.van-icon-success:before{content:""}.van-icon-stop-circle:before{content:""}.van-icon-records-o:before{content:""}.van-icon-shopping-cart:before{content:""}.van-icon-tosend:before{content:""}.van-icon-todo-list:before{content:""}.van-icon-thumb-circle-o:before{content:""}.van-icon-thumb-circle:before{content:""}.van-icon-umbrella-circle:before{content:""}.van-icon-underway:before{content:""}.van-icon-upgrade:before{content:""}.van-icon-todo-list-o:before{content:""}.van-icon-tv-o:before{content:""}.van-icon-underway-o:before{content:""}.van-icon-user-o:before{content:""}.van-icon-vip-card-o:before{content:""}.van-icon-vip-card:before{content:""}.van-icon-send-gift:before{content:""}.van-icon-wap-home:before{content:""}.van-icon-wap-nav:before{content:""}.van-icon-volume-o:before{content:""}.van-icon-video:before{content:""}.van-icon-wap-home-o:before{content:""}.van-icon-volume:before{content:""}.van-icon-warning:before{content:""}.van-icon-weapp-nav:before{content:""}.van-icon-wechat-pay:before{content:""}.van-icon-warning-o:before{content:""}.van-icon-wechat:before{content:""}.van-icon-setting-o:before{content:""}.van-icon-youzan-shield:before{content:""}.van-icon-warn-o:before{content:""}.van-icon-smile-comment:before{content:""}.van-icon-user-circle-o:before{content:""}.van-icon-video-o:before{content:""}.van-icon-add-square:before{content:""}.van-icon-add:before{content:""}.van-icon-arrow-down:before{content:""}.van-icon-arrow-up:before{content:""}.van-icon-arrow:before{content:""}.van-icon-after-sale:before{content:""}.van-icon-add-o:before{content:""}.van-icon-alipay:before{content:""}.van-icon-ascending:before{content:""}.van-icon-apps-o:before{content:""}.van-icon-aim:before{content:""}.van-icon-award:before{content:""}.van-icon-arrow-left:before{content:""}.van-icon-award-o:before{content:""}.van-icon-audio:before{content:""}.van-icon-bag-o:before{content:""}.van-icon-balance-list:before{content:""}.van-icon-back-top:before{content:""}.van-icon-bag:before{content:""}.van-icon-balance-pay:before{content:""}.van-icon-balance-o:before{content:""}.van-icon-bar-chart-o:before{content:""}.van-icon-bars:before{content:""}.van-icon-balance-list-o:before{content:""}.van-icon-birthday-cake-o:before{content:""}.van-icon-bookmark:before{content:""}.van-icon-bill:before{content:""}.van-icon-bell:before{content:""}.van-icon-browsing-history-o:before{content:""}.van-icon-browsing-history:before{content:""}.van-icon-bookmark-o:before{content:""}.van-icon-bulb-o:before{content:""}.van-icon-bullhorn-o:before{content:""}.van-icon-bill-o:before{content:""}.van-icon-calendar-o:before{content:""}.van-icon-brush-o:before{content:""}.van-icon-card:before{content:""}.van-icon-cart-o:before{content:""}.van-icon-cart-circle:before{content:""}.van-icon-cart-circle-o:before{content:""}.van-icon-cart:before{content:""}.van-icon-cash-on-deliver:before{content:""}.van-icon-cash-back-record-o:before{content:""}.van-icon-cashier-o:before{content:""}.van-icon-chart-trending-o:before{content:""}.van-icon-certificate:before{content:""}.van-icon-chat:before{content:""}.van-icon-clear:before{content:""}.van-icon-chat-o:before{content:""}.van-icon-checked:before{content:""}.van-icon-clock:before{content:""}.van-icon-clock-o:before{content:""}.van-icon-close:before{content:""}.van-icon-closed-eye:before{content:""}.van-icon-circle:before{content:""}.van-icon-cluster-o:before{content:""}.van-icon-column:before{content:""}.van-icon-comment-circle-o:before{content:""}.van-icon-cluster:before{content:""}.van-icon-comment:before{content:""}.van-icon-comment-o:before{content:""}.van-icon-comment-circle:before{content:""}.van-icon-completed-o:before{content:""}.van-icon-credit-pay:before{content:""}.van-icon-coupon:before{content:""}.van-icon-debit-pay:before{content:""}.van-icon-coupon-o:before{content:""}.van-icon-contact-o:before{content:""}.van-icon-descending:before{content:""}.van-icon-desktop-o:before{content:""}.van-icon-diamond-o:before{content:""}.van-icon-description-o:before{content:""}.van-icon-delete:before{content:""}.van-icon-diamond:before{content:""}.van-icon-delete-o:before{content:""}.van-icon-cross:before{content:""}.van-icon-edit:before{content:""}.van-icon-ellipsis:before{content:""}.van-icon-down:before{content:""}.van-icon-discount-o:before{content:""}.van-icon-ecard-pay:before{content:""}.van-icon-envelop-o:before{content:""}@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAGNAAA0AAAAA6ngAAGLlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCWhEICoOqHILKFAuEDgABNgIkA4QUBCAFhQ4HllAbe7dFB2rYOIAxOG/nKOrEpKWbGbVlVHRZ9v816Tis0RbhPC4JZQk1ws72WlBGJJIsL3bc5Y/x5HdtBrzwoZQX/Ls/uAhsXMZIVk73Ds/ntvd3cezvhO1/2HExro3B2ID/4d7GxjXObZwqxy0gG8pQPDBFMAW980hTNIuhpqZleVwJlHSKR6WkDM3KECuz083Qu+8BCnabd+4tsemRGtBnHBAHxuTmuLWNUbd7fuSZA88fOBlzekCqfDPnV1BArpTKjp/r0AfE0+Lc97SXNa3ugaSqW2AfIo5Ghr2YAos8H+krfQ3L8DwA+F1V4Mecr9JV2ljSM/wUzQWAITlxoJSfEmfsi321rwHH2TjhEuUPgNJu+Hcty5uF3l0Cy0kEaR28qmxd8hKkAt5Trc38Jr9PItjeThzVmTUBj5z82tS8UPpag3jw7WchyoaNGucZYxmcV1Jb6vJBqnCMkPdKndPjulEbt2VSBNS4ZVtIZLN6T9OnLc4cOBve6vc6m1plHO0oxsXKP/eW/2ZnuXyddAuKQbgYR1EK4cAhrOf/N9XeX86QVOD/DqRT/CFXTqcPKVVuujv3vcG8eW/eYDAguOCA5CJIaxCg/iJIaxCgdgkCwgnk0qC01BF/yHEArvaQ3ASR0kYHOuVQ5djFTsfVlluULl2UrlNo3fUuSpcu3ZQuqpCWpVYrmWKnTAyidINbXlvu8bu//dIWc5DsbS7GIKHEPJFYjquWVH/3b/fH9Hv+26O9ju21WlGpogESSNAeY5MiykWEExSVOOK47UMhvaS1xPVqDWvyXAAAoBcwRQlvI/bwC/dtkISEsc4loVoTIbIVCZ0AIJHYfDMgr9cTJpanTeQN9AuIhrzvf00mgr8/5Nen14LLjxN/LCL2eHpgQbwHVi9DEjNBPAZfTAsKwnMSwP7qC7wBARAe6x9bHpf9WOTxAPA48XFR7j2u+DZ/LOBswPsBp1TOAERZQSgIVpzf/feAvzvI47F6AFF6BLhHCukZF45LVMtBJKlnIvAGFHtJAGRAaHoLQiKLSNqKGJ/iSh1q4tXURKt6IBdS5ApVMI26ClYVZuVQVnhVZgY4CYyzCpOoqw1rsgcEu7Q3GuxKXG3aJn0qjxMHVImq1jrHlwJ5PVtvHrX3Ko2IEfgjlbcFnyYathK4PgKjqatOPbBMVV8xGuwT1DE0AxC6x+5SJJyBz+Fn2AkJxZ4glrASujSdxsleq/PHWbE0RywisaeK8VEJZLLrdigkOat2y1CZLYwZ1YnRRpTdTk64eN4CfgfsjqnucvDALVR3A2vlb2hX0wNceye5Hmm5fEBzdP+Qyb085kH1PuANU75Jzsv7ZS/lLnC4ZoKnV+dJLf4NlekCzHB3ZLelfqmuL45JnZvrXJsJkHk15+TdfdqgwG+izf3JCXOj2RyinXv/VMefCSdPVMiY8jjXOo2MAP4mI/AtycatkqmIALn6l0Uq0lI87BIJ04zYwdq+uVjZCxY2jV+rwhDAwgMpoizZa05SYFIIR3JHR+IKxpnh40BpkzSirZGEOCAuOR/KRAje55CKZod135qzlfbXOMuOPHx1h7YxinH5Uij/5Dwy73HhX1B5ZKvVwRDanqFUFff3wOnQyxyWdERob6qK7Gi12nOhCPvVtZnIYtm2NwfM3k5EXA3H+6YC2B5AN2ejHZQofD50sdRcRWiq+zbZmwWxUU4+e26XKyCyQz1nkYmVlZIqmHnHyniMwALg7W0ge9iTxu3Hui5LzZirrSnxcNzQbrVOEohrbh4R6ilExdRG3ok7V4wlzRGOHiwv0cB50pZ+3m+urqJjt0nyn1mdwTS7GeBAZd7buqpOLOJOzjswwyHGHZYUl6VSbXyOF+71XRUd3IVOwPN4SxT9WirnGy624oNiyc5Or9oH0Xk7cnuxO8pCwYb5hEzNIdfsbrKorNqB2QzwQQmn/Qwb5NRYcbDz1o26MSF3dPfSrJMiL/dAGlRNHMtCEVt3nDSsVrHaufOEusODmTKY8DriHN07hL0EzqFkNyJpnLfFzsVNmR74ahkk6gGTe9J/GHlIpI2GNPlqZ3r+IevE+3Wt703n+Go4OwVuvCrAuzjuoMxtExVKOPdlyui9uI5AoqdxF83KGIUjIoIfDD06nOXu3SMUijv0qc4/wnkmI17W2EBApdJANX4zFNC4sVrhfKJCiHMfHYMLKqu4E37QzW/mhSNfGcYXYxwzR0nViMWyCzAiTOQcKTKZLcduJ+FwJUGuGFwrbmOUnyKEOuXZiVUugONRFLS+hbbikD6NOwjMNHWdlyhkKG64GPuGgnEYa5WqB2KiSgX1MmfwEBm02vhE1dZl9lyNSCFhrsrfe5XGiqVa1cMkU+UwTlQxTOPv1XioWX5gB/GSKMyxDWafvs/FDTk6t+XgVh5hDrEDKqVCJBGTkSYUgljvEqQ6bX8in0iutaWULcSirLCQch+B+4LqWLZVu96F3YTcUWEbTfUuWMYGlYLcl1zdCTpEBDfs014M6OiYmvsMCIXwx0V7JAxjfRyKkVFaGEVsCBnZ25CPrHY1H0ZHSGEcL6cw3ZXrV4fh+8ttExFKOPXlVTmZ2h8sy2L73Q/KF6h0AEjYCuELIVkkL9Te8+OtKEF97Uunyl4YSaJUkKmMocCOWwjY/HhRk2M1YpKE80TkVkpOzRPxXfcYpfowYEOo+JbRI/lBpFv1iKhXtfDc3p6PK2K0rKQKrqiZNpZgQt4pHxotxzgGi2ldPdBYX+3MY5kvdDts5F6XPARl0YNNJv/GGJwwcMCqrFLH4Hlo3S0sxzaAicMhZyfeEeBtitFEcscUDkUNDGtqmrzADU1kYnLOclO4yba+dwmSK4ix+qyrNPM4i4z0tinwCAEBby+PPZy2pdmiVmTTU1m5QdV+2iSEcV+/IBX2r2DuL70bzb87V+D5jl0Umt1rny6hpufLPsTPEId2fxKswvnv8E6ZhgNiOVn6k+0tbffCvHzl79fW1VuTnkhTCFspS+uZnEzLnFmqwL9L5Sbf3gU+GCOMx+CJ9dvlIg5qhJYgltBMHcEKQ4w9AaVHebnXT+0RfSf4PPoy/OoM4wYkiIrbKCNXEIxL+tQTblS7fmRe/YU/n1rXfl0mNuSennYFZFBXD5oDpfYN7L4vLvR+Bozp5fDL6PPgi1Xan1fW9Tt/vTQvXkZUCP7RupSEs5w2dNvUliTerBVUUrCDsklwAFASjm+7blXNTKldPwLkM82lNMQM/wz7zPq/rM4kotIv/rrZFXy8faP/saE+AtzdyiqQy9kx1tjznWamFvA2los64ONCg9erx80RGjYCGbtXyFkPgiDd4q1FlacgoO6+RUeq0gkpFfbePZwXQxywYtBsBtQ1oevUhlV7zrEfjrZ1zOFOM3Jr52OqVOdwkMLTmZ7pVvcLFSqvDqpc1jsevuMIs41Hvh8jEdIr5VCz+3chcDxe09IS0nwVYDY2RXOtnk+jSw77g7lrBevvyePfhIwOlkRq4YW9M5UfHGSWZnUapsXprah2Ah4zUBUo3Lj/atA+pp1wWnJvH6JUpYLz/X3ZuyLn+80YzbnZG3/LKazt3IV2fhn2a8pkxgG8IioDL1po8B0XdsiUsrG/0L4ThA+9MWbSMS+d2etmuer1MaWcTjfqNhhSD+ExEvtSBVUoyL1RTUc9/KS9/HR06btoPDwqJnCQCGZ1rCMOuDf0blRD7srP9tMJBGxeLFiZwhGGzvtbXFxVCJ725SqgK3vLu7a739PuJgS2BcjZJS5OFSioEzAvPJM/tL9gp8piaShTHVs15xBNvfp89jDgaRny92xKf2vlmcAOZDOQDMu31tdet7tWnw2dULFC1V4SLdnacGtQk4dwIppwVgKOpxj0asPoZ9yo9uby077lS0Ygm3Zgb6y7wbvXnouWRKodKpYTOpvrbw7oN441mbSu/5ayYmjNXjn+bfaibsPvbWzZkkO6g9xUZOfJVEGKS20pbtyxM8CnVZvRxvUpgAEI9Fn3Ld55Q47pDgIbgRd0zWKTPYw6vRQeo+ibZ8+jKA3hDI1f3wlTjZkUlbufOvwRnFxJi0dJ28Vd8BdwkESik4R+H5twr1NRMTkwunZCeXB2RcZvcyW1EzL7pzX0qJgCx6YVMBr68LiU6U6n4q/RuIPCB8/4AdGKWXTn/44H+8IBV9xDRjJfVOi8rFnd+P925llwS9uWPMDgSGiu4yIoCfgRhtASRPw1ioQFAwW6T2CSbOIBjbiv2n1cRSZxjcWpd1kyFo4vNJGTxiw/csJ5FvYN5+afU6z17j2/i1PPbVAwWidc8TmTixlzxpi5Oy+bNHof4lsmlAl18vJnpveUtAanFOhNzqQ03DMO/2iEqjWvgppPYvXH97bCOrMb99th2os6SXnLO96NncC2FHqpJdiNOgor3xR1GQP6mP2SHkKIph5NcS9/DGTWqmOAwh9fRIQh5/TDXqfseVDBWDQ4PLaITdXtH35rVMHaVwu/NcENIkjEzuwN2ndLrV8HdTcae0buLY+efoi1k+ZyHQMOjWOFe/3s4iS9VqGOEI4pFYApALYqwvXeo9LiKWI5HhHmFi1n3lap534+/k2F2Psr6pWrc0qRI4BEZH2ABOcb3hqQbOIBqjN7/Mr6s0IL/IS12cOqgeqr4TWJKvtBfK1u7nKL2pHB+pQ+5KZtGISD1PFNxjyqw+WH93CKwpYk9PU9FcrErSApKIgq7+Q0IdBAmxxiCqMUcwEHEUuzAGU/FNIuGbkpqCWg4ByAWpss999fG8z5IvwKxZ9VQhnlhzGoMEI8qKhPz1ObEmMMMMBXtfWXuShxre7Dy3X7dz2qTBHWFywLPojO6jBKCzWuRbenfZSgRgwflw5HbCOuCx9Re05YhmRdKkGNUAxkZT6zBF2myWSf77yw15mMtqIrLeZb0PRvKIqw2xGUW7uMMQDX6WH8621RNpZHqird7JJ91mlSQ8hJrTOMBK8JCP9SR/ffPcruAyvYooRhSUrCLos4Q7jISeC/L1PyiQcjLjlC5Wd47wBm52StDg9Eg1xHy9cM2yUZSBXipSGPeuLlMUaAE96phx+r3qXUYhV2KSu5+AFUevGMNM3Y0s+8nJsKxBdvKYoVWc7Wer0SBrY6r1VIc0WLoK5VkW5tDbizVeaHWtrlyyMHKLxSHSOc+nBnTjz0KJtWNwxOe/1eU7p1JeUCZjwW7rg4QIrBFQWQaPNdQqX08GRqWijgOaR0lUfmB6JwbH3fjvhiml11Ty1Xr6wx9YO++nDQKoHaWBDNRgy42MK4tv3Ph0zX9RXbHetwhoa9iD2PgmwcbMSGsXeErvNLAKACtGipFpaHVsyoDESzRhzIaR4BZKgDR5p6TehGgcGaxaEWuomsCqakdBfLejJ4BNwUqZBC/8mJJuHtd7AJ1XEL+1TRoEZuWwk00WQjhUpbvVa0nvEo80+pxDASFbCrIM7ouwdEAHfKPbgEzWmj9tyocroYW6BSJJviEBu+oPlzcys7A3j9tM5IhFuiEg3hWBYNurPnxtvNbhxu+e7SQBPosQvbtBcMlCBGNE3rPtikG/uo2oxZueowVQjWeWH15EiVm3sl+vl5RFQgONfWcSMOlBnzKXKu2MoXTUuV922QzKIl0ax5X3ltqhJfNQvIvwoGorKiFsXu8/DMZ7pZNjYrts4M8ShRUAfDtDraG/y0vz/jvpiQsZM1DtywV1x2Cofq98JgpY+mrVGEfTSm4cVcvyQVhtw4pApXvDeUFSw6dNGgDTw1ioWGf/xJFBo7el4iCBo/EBEWevRgppx/4IIpLuDk9aZoEiseOjuutwUBMmchPE2Oa1Br53tR1mpRwM1YpaGwchsnNNoX5eVfwFBE4IZ877vUcNsykCZmbfe7FSWN8IFq3ZL+SI6pQ8VG+naSvfXqeO6ZYf9e/MKQrzlfnc4nNQlxaSE8zCQB/10NKYoRZaI0RdHG/no3YD/X5Hhgt2H6/i+K7JllF2r3fMn3qr/8ytxDUejMLr/Yd0zTkWF73VQ7ND/5t/U1rgeIGJMx50YP7o27zym2BtbhUwIYTYkJCX2L5kAS3m6jXC3L4iL5DEkiUjvuKU+q7UXYl0SYYHRIErPa8E0AVrS9GHx1TADOPuC3+heQ5wKWL/S6y0/ng2ZbkigaLy/N6jDp3avdWTYTLJ3euv38bkds05t9+3Wl5bPhirkd5ZcOGKwZkw0tDbG5ta0YLc1SK4xvxmYLtRa+IUrzIxbFGKXw6lXtPd1M3m+NEODjkFIBv8+GcmWFw4zu6IGtDmbGCxdIFCJV2FZmdozcAXZFKT0YKpZKQWr0rfWl0zNTq1DHjStpUwr9Y0s7opcOIuUVSyeIubKKqBE0fNSiQfHTAcp07vfCjY/B4ODHH0aFSOS9Pvn44EefECzd0uMXCwpK2D5tfdw2o5vPilPTmu3n+cPo9hSgFDNl/UTPef1uiyE2lpl5ZSdJZmO07saDZQlwB3g2kK+4bnNnHnp9AeOYYKNG6IqUptBn9WVPOkiU//fQPnf0G5VHjQnYduZmuH1zzriJu7JWp8mxm4KJvmL2rvZ1EUF/0D64ZWZk5RlnU6Cr78OEdW0rq8+6m0MRGlebzjeMsVSdc2yJGXAip7UXlyD3SUZmmBIKZ6UhEeFLOZ4ScYpi5oRIfG7ROdFcYBvz7NwMW/CACmnJ8MLhRJa+pq5l2pF51rWi4SrtlggNkcQMsemlRvtlgvSMqUM5Sp+4qpQ7ddg63uRwB+ZWXAro24JdAjap6YHXlc+6U7Fokd9MlVezEOM7EXRQKNO/E+KD0DZ7Od3snxDmV/QXMG/DAovxfiIRITkTYzBEB4XYS2Al24go0Q71V+3qqZltVzXnR2XWojTCygjsVuW2a+f/PnFCEloBwRn+Y8z/6OMvnpCR0eqCmuPUjLx2Kn5nnUR5OPZE32cnP83hs5nVH3MMiPvsc8pNO4BMF0IQXIGCWPnK/3vgGY114TxjzmIkY4idbGPt4LvD0WXmj884QLtSoF7SjBsNNgSnMQPslbUo6V8PeeViX4poMW6IAdFGTmEJNcLzOsLOsx9cLu8wZVl6liE8cdlbtUaUaI0GRBLaKcJf1iUzNHaaKrbsSVziLfaodIk34nFJRpgycTwCjnUZu3xvlJpEwDX+bwX3Aii0E4WoGSukTjnGXVxK6w5sRnck9mRmxBuh6Dc2nrhQlsEa62jLlZzvqd0Kzs2RNvx/6ga/MGDApGco41YM8QLdZy0BD+a1wrrEHdgkH2o6uQ0PQWwmHaHkKC3Ege7q1bODT5dENDYBBpxtCz7+6HPt9sQ/lE584qGpmbWfcrW+pnKlRoKCq7TaiSeXD5eFSKiLm2U09ruFjsHBJf1Bit2sbrLLeBli/PRW3+LtYyZ0jktEsN/yxIgOp/3D2m4Rd2R/EqyZy7Fs2o5/m87BLcpHT7TBMZHFE+BbdhcbXRJ2BYD9MoPQWaoc4rxOQChxJo1t4BKfjTGM8MFEmaY3KjYRB7ZdWikTV/oUt74AKNrSvLn7eW70G8cAnISYVAC+gK4abPStRgQoEgBHYnPolBwiRAujX/qNh6JVmtTaHkYXEKATmBFnroXQnnmSRDG6K+7sAUhEuOElr4dekBfHt6DpJJosO79tmYXCMGwsh7YE1Le2LgekWXM6r8nUIVvs0xQFURSUZwqmCsx0DgMjAyHj1ndNIHdhci9tGWgk7W16E56rg3NPscCJjMtbAxRbrXYiiJAXCiarouxGq3e0ijF/esUKmfcD/AYxEC7lLLNL6N005ZSfvNREpcCJzkdOFatMf7rRnpiSLRgyDuiyG52tN7vW5fYsIrHIF5o7VjbVchMJWGDuOnNo5klbfYO/WLGzy9bN9T1N01Z75M3UtYbLFfOOxycU9Q9e3tvJOG7j28cYImdEelZ4qDawW0PxcXY+ER1NNxJFwdf7JHoMOUI3ODHGx+70zOJXZF1XktcDXI7GzUzizy7jhK14IQzEVg57zOPOwUHrWOk1LQcF6cQCvIBiYKi4qmByqcihCJU73lZj6ifygmBuC2wBxyB5S8qqRHEJjhUuYdR7oiQBpKFWkKcu2hAqy6nA0XKm1gcXNR9+XErFelk7en+pKLXowwmtobl/9trN9a2OzQJf5rttWfWNzo6bXRKH9CuopBWK9tU+MTkffHGKuzDasVkUfm3RCrV1xu6wco9D7KmJ5/6MFdlLM82tmI+dZlhsFzr2fA6cjXUd6PxmVI8eQy/YOaXduQnGRcYdXAT4JHgM8LC4MnAHef+W8j8oImHAHjr0/7lNH87nTRgfPSnfniRyUwv/NYjO97Gl/7tvEW19cCG4OJzEn40vh5dGc28JyiRsUVwZrseSUgwdDgA64zjC0+/IETD5bIMgPKQAxiQ63mJQ5SobrLWBNJkk+tJcSr6crEDEq+FyyhzTkEkIn+Xwr+8FbThXRksOmiEjsIM5vJXTO+2109o+Z0rLL8YXq2KTsGbetn5UDKETwMK3BDktSyskAufu0kkHErprx4h/GfKK4JonEWisQOOGpeeOFDAgwdok+JQAsY+hcZUszyIj0WVLroNq2br6BexLTnCEo3ryd5JyGeqnqETTkNFD4DDdC8xoLEWh0PIqJEmSwAcdwNInxEs/S5NklJehqasPryC+eF3+3K8UECx2dMJDAwC0gXx5bfS25BaTKidgGB+3W1ISRx5iXZqnch7nKVV+Bdrluq7qYGjrz4/6be562uw8dkW415iY+HxPjFS+QSW6ZWdnmgzGgQVCrXsNHsw6nJ/1gNhiytxBtW75ccb1VcJiQ/ucB/6GG0BSLhLd26eWdjPjdY2WgrVMS7wEXs0n+vsFbtk9j8Wfe1xsEgDDaV0FAszZFsDQAwyjWfhtsl8hqI+gwe2YDMbifpvLhsZYJOdDvUxvwtnBlMxGjy66MlQViPOSC+hmFUC1db/CzfzyZeWtQ5hv1JmLZ4S4Cs6qEsbJuyUpH6h1whZs2RX2l5YbxIg/IaxjJG3HPC2/Vmt0Qk347qUJLHIB707wCtpKqUhxeQK38LL6ZlvOrNe5ak6iECtcm1o2FURLJKOQ1VQY1eJrta86ixjC/N6+WvZAfSOWNUEmqgdE3atvSJMG9XoLsxhtu8RcKh5y/36qW3FT2oWz8dDu/LnFaqMpt1gVzdpoAqn+Y5ijo7EDvwc3odUJ+LV96qk2qCld4hUDAgVZU98LozOatOpOniMv8k0hLCtguJEPqTNV0ijTSeqnyhYlVing2A9rA2LwTEoQ9oXO08S3bhHA/XwOyJRKn6LOiNkGgsGiPyivtpOvKomkKQ0uOlXprY2yJ4JJ0wdlc3/d3O2aGtRjuqL+q1Rte7qsI2ikExd0uqKFbmRP6Ecgm8nyOLk/+ZlZ655Sf1v1skJ7ZjJ6udqpmQSRqoZ2hurrDnJ3cYbkCR1klWvGYd47jPCUVY8DtYRvw74ggIxqQpHS1KsyuDJHKyc3a6TTB54WGXiuoFEzd+LWrCBqZzj4DCXI3R0UjqQRPaBj7A8m5+ZInB6FJd1MnPBfnRT1Eq1sT+Rd8bgptZqjFi+C2xZ/IZvIWYgJwRe2QCHYdJwveiDwiaDPi12b7q8XWPriw0NyFl4YDNrA+baj3qQ1aT5x2Jec0vdRQ0Pa8j2lHJNbtj7dXjqmaHLzOJ5mucPlg8DaJudyicBFHskzd/ODA4VMk+DKM8bXNYfbQEFYKuuDQuyUUB2FrX3OuMZP1kx+9Fz3UFViJ2u6AFWIwVxFnLmnfdd9IgsVztf4KttS7aNr6z4lHpX1ptuhsc7exbEQ8DWPGUmIGQTntNFuRPdeV6roYlowsWJui+QBNWU/zudEgYQgkvZLIw0Mi5DmC9ngGcWxjmMPUcggJ4WmZ0ZREqJCQzr+MTcbalaX4mqafKqegxq2JrhW2Dtc2SNrjxp7nJ683gAlma+GkJsmU0nAfmqGXMODYa2xaJ1PXxgUjnoXrz9qCBoLBPnScIlsdm8x/NIR/SPs660vBektKHCsZi9eROj7yDusw3bwTyjgTUkSNyZnzx87n6EOCemQeKygt4GOffPsFYv3OMqFRbmSc+QrwmuffvXTY2gnI0zuiH67HalK5ALdZ16AHHxatYa1KKn3wftKpe1GhxVnkcnNL3TcbabC+tIgvbf8Rnby9Nn1mLRfT5jhuiWFpE2jzMomh7kEg9CphlTa+vGOMi7LD6Y1Cs1qVUiQLOs1Z3I/pZHop8dNuQ1FykthtjL5cVaTw5fnwloSL3PvNRXtrSGvoTANoAOyedPPjeIdXW6XmsKhKsOYxnQpqZ/hBWy6fDpv5mSapFmi1AjZLt9fSp+3NwHYXI/7CC8XBz5idux2eeUl0ifzHzH88VjkC7vmJ6zmHOqlDn5pEO3MYi0G4Adc9NxWzx3kLP4wD0mIg0OFIFGwzXI/nU1HNB6JBPEj2GQ53hGioicAXCm0/2rc75C5e3EcrRxuglT9mV3kFjupNwe5DYzL8cD/umNOLs8VMrtBKgCV611j5koR2yv4QRaOXgf4bnNJqlqV1kOnhfHEjE+RM4SfmAryOBRrsFPgoXZuDU5u10oV90a1OWLOI9ZCLdsRN7oBvFJTVEVt4sG7aWDO3vFi4By4CSSIGD9kv8sFC3u65CUI2vwgZfE9yIgOKw3qSbDAG0lsU1Nak/0qOtMSNyKVdbwCw4KWzJdING4VFDi1SRReAFE4ZERlo7IPP43pVWsKYW81YT6MlOrtYgxy3HG9Yt3yrQqhF99gq5Pzz61Y2nHJJ3Zq9hWC7tbom9mkLE5RpmcosearYTw+p3kD2w8bUsO5xXQBDDlFUYTb69RKtfb5jSsLjK0SOehPXf0lkJjYvX701z4UGBzYt1/ywHI6FJ279qs3tZhz6/TAOdEM7N/j74Vd5IHNtbRv3+o/0Fz27pk9u4IKZArkOXwuJAl9ZP1zlGDfMuiPqx67IcFEOBPUJ8nIqHd2n/jm23EqIB7yVuoofKc4rQcyNMugZe1gF3r5qmpHdO7cPgubEhSaczo9xRYdSzXB+g2bZfPx08U+xl2c0HjiAAyH//GDUBgAW0d9zzxdWlmAlctMhqd44Pnz/a0H28E72jQNEKW14IxkT5ZprFa3xlStl7cltMLFH8PnEnNlFoAvFTey9Z8b8otPyMnk/N3S/4ATxdZNS6mNposW2XwdVunoPLGQpZdlaDoLItv3J/Clt1d8R42CzoQr+tov7sB1mn1H9ks+J6SwPrPNTb2nPwMoSEVq1+/4rlxls4GqV2dL8JLLf86KROKD3bxlQyQfqL3Y2sRT/IhMWInfl3jZ1+YUath8VVFkGcoqjIVxobf0mqAwOM9wzGH/800Rk7srNTFYnauMIQzVMHcJ64+1mOiCAt7AnCuFzC74rBBCAWnf74yMnKiG+4ZE+ARnS7cHckKDcIIrMz9Rm7W0NoB1ka3YxPyai3TZ/Cwt3OV6Ph3ykeglFnSMciD2YJTekQJKpx4jb7KIwKEewih5hf4xs0bVIo/aS2Yql17C5eyJHl2/X+PppsQ8m5VfkF+9j+WeOYaGY9ltZfaw2shCxBmIca2GXl1Nj3DeicY0uWtCBOYc+yOsN0PxsTxxutJ8WfV2JJ7PI1OCBY5oFMXo8tYFra/ocMkBlc7NtxVrRyad7OUyT2I7RGgojeHtKzTGRoqvIEq5A4Vgtv3BpsD2EtpgcjFUVWiUeVzbolpolzQeDZLVyQuxphVDc9CbU8TCUlxBfu/dFmIBaydLZJl5DNsJZp4RmBe4RR4X8I+ScHSBXWX5GinwbEe0ax4UmtYXAUhLQqwjmM0Y9l3zn8IT6F9Wx7XjN+tQadAO6fbjtHmxagilhxAtWr6A5tV1chqC03gykxjT48PwsUK29o/DWCXbFzDLEIHrR/bW5GqOVqiNdLOlYRE+k5h3c/vwQO96qHIgt854Se5htoDBwbbkBaBlsJ6vK1BMnrRZAqmQiHlCXgK2N0DoCCJ7VyQ1gBjCeOTzcCyQ9/aHXRXS7fINInEYVK8JYoo7V/yHOdSqfNbBZrlyioCabnqbzxwd2837JYvlZFtXqsDKghJDTpkNbNxAU26drPs/1WIDnSd7Nzok75RxUdMZiWkV7kbgLwzF54RdAex9mHy6swPa2A1mIVLyp2wY9hRH53D8ruGNtw/tzKWccCiyyZWxxYW7Jg7KXHERhldfRPcTZhyNiJxzoi01RApuh2w+YWqzjEpdHfqI4TlGKDjZHGFqF2btd0uFw1vm/Tktf9rcZd8EOLtl13lbMDEpDKaUxsDB9TEywuB58QIM8pX6DwfrIV5DjaCA4jJv6UnjBWfXls/zUOEvo/D2TWXp7lt0+mS5XBLe3RXAZYokNBOjWVb30xehf+WSXtxJmybtT/d8Ou0fjy9esmNBZuWPS1mUkOgWfwxlbCK7fi+fDOet/nmlHCmVvU4Vz0vz5KrWFV4tcyTYrkt/ztVOLT2PYwy7bpq918Lp4EpPxxznmVEd3gCvDaFaAqPmCqSkUNF6IW2PNBlFUxVJCdWYEK+QprWff1mzdo3LcFA9Hz+313Ts7k0Fv54VtpeqyD7Cu8qC+8iPkwOEa+7Cfg2H4Zz8fhgVK7rWI94+WkbSMfNHEc+3Pt1oyd3be7wYGU8SIXrNz7YnyF6ryO902KmV8zs5I3sxvXjqEs/QLspQBbJXcHRBOuH6x0M5sSl5YNIAsOQBbHNGtgbE6X7vuJzCtNiQ/exV9ZwZlDj5EO/60bdO+9KhFKZ+zhz0mMD60LjLRzswIRnL6i/NSbFPxxT8D2QGNUP73FGJR0mL93djpw8/p1aPyV8qxcT+ylAva+DrYJ2AkXTQtupZgOvv8KS/Xqm3Umi4pKHJ/i6PVGlYgJ8HPuoMFeDun9+6om9I6PHL9GrZ8uNx29Uca4u3obR6Ft/lS74gijV/cs3kfHvNXXDInxMZJ0ckwXckroXMuGQcwcPgn1fBKTY82dyDGNiPv+t0RWm5SMSvp583pO2NPGIK5uaHsrx4LzgA/H0Nv164B+xn3ILaqsmosvGCY+8sEzCXKSjja025saLcagdnZUjY4vOHKEjlLfQE4g00qpstnrmmO3YwIzsBYzxlNjLjK+fTBfdCTt0xFW1VpedWdERL7mxQ3pDVBoW/p0qw3U509y09d61yY5k5DfrTstXNrnLQzYbLd8yMsoVQKw6C4e2xR0gtqdeb7SNXavdSCUYWDUy7UlU6t3rWCQ1XEaZlYIs20B7AcZd79MtuZpjNxVfawjLCtZ62+JWe7qgK2TxSzqSMxZFeD7iwrx6Csh/LT6kjynYoYCWVxbYKl+7petCEFDWbLKKv0vg8PQ3O78nna0dHmfpSIjgnaVCxLJkej4M8qjVWLA2/CKcj4d6R5LFD8aZ0hHY5GBkMDI3W8PZYVSdP9Ou/OrSwcl/wX/SGZUcBepQu8jbtApiBemCBbUMPyoBd7kEYIADerqLaW3PcI1SAMqgjVz9nAFCtibGyrTdsLNuDHzQFBRwi0ffLME4hWR92dvTIESuX35pEphOjWgX29CNvv8u9z/XlkDIbDsRkBazG8W3nmtMKHO62YSdPveHnCnb57fKpbhuyRJRE1rVUxJRqtaUxFXc1TJCg3LSl1hZhUba9xUzbUVea0safKkrrEqxlqoLkIWMOzKGMOdzoHDpXLWDJZ7qUWUUNAJgOwJ69az2QXlMN1JcVuAvvd4dxPIgj5zAGRhwjA9gIFcBuGFBH4DmfmqNaBwcEWzSHekLsDu8MO6jtfVuoBbGrpMRql9nnRy2wT90+X+M+sNpcIMwNMuYTcnII+cYgfpNCrwAhQgUbGMAw1MRvZhVNvCBT94fGFMTrb+5CfE4WJxfJys5CzEU35GcK5LTI933j5bkh8d1B4PsmF/9SfycKUDdJjHw6dfZfiv1F5qNpabEC6z//aHyjrTJq9E8XpFRJSXz0Fo1iPQxglx1gfRiAV5Oc1NiQuHwGF+zeT1hL7evxStrhD4sfU5nXHRi/zqQ+bsoP04Dde9s2rmu0Af71o3NXr3jQMhS87YIZKAPmnw/z2mHQSgF42O5G4ar8wbklvH6r9VxQv2wibu0dOyHrDzpntTqtL30UIkU2cF45PyhLgpiDneDhGzIWy6pRbSUlwPd9OkCYKN2HhQAUOg50AQCGMWAH3gHfndnoAi4AEA6visc5YZIhj4wM24H9EumnMhHIob4+wL13nMpAGdRxNzKHzlUzDwcbdmVcFozWjIwkLUzEHdWM7zfTy5uS6hMS6pOa/tIwQYKy/V/77uDvzaf6LNYJWb/sRtxKHJNrtTrTAVzeBSD+wYr4hVvMfuw7TkWXn0g/RJuC2M3TsVUZ+f8WqhaUgzyl6zX/7QWgPCJPVXh4PqdE7DSygBq3YEFshXZhK7jUFrtAW7EQtLZd+hZtBm0w02OZP7BKfALuGsS9j020H1JQBgqSOe/ngfBN/Sm9KTum/EBoeAcoFgPRZcC9dwyeg8HRHf10cpZRPwVjVA/yLC5Y4E7hHi477e9ya1+IhePLVtTvdOnBQOn+g7+/ES/eZUA/CstA5+/DLosvz8/1iWWTCq+Kr8YeFOMzd4v5v+TSfvmxNfvLAz55QabadbhRF5Qq06Y1RH9pI0sDD0qFSriwuSO69/wPHjVKx1T52gjPF5u31XzfZwTqqyE6/Y14+/X3bXAfNHiKAjhske1nVzPshGxXsdwtdVoNQtQ3mJyUHgxPDx9KHwpMDzwYqilSq4vq1BY+UmdRszoEeP5eYgAAD/ZRiSDTguoJIK/AaLdE4U8yEBNNXruwN/AB2IN64IEqSkF0vlqdH11AqbqFAAU00IEu7JwwILsiBwVRtT9wLT4CA5iS1qIqKZH9HSrB5ZQj+cGnS+/Ny1XlKCNyIvI+YuAgQdn+4326wi1KdqtEUnKS21cClTPA6rRYb5QfFst1tHk/8EyadcEvFsh1e+Rp8tQ/MtuzsD8CvGCJ6ha8yGM52EgPYY7I/TgiVzMA2gxAOWFGt4Eu2JWwO353wq5x2cFAY8CQcSjAGHhwe7U9UvUcWutYi1VYsRELFm5MVPdaLLz8h0vigyjAvqolZSMt/Jfa8+1GAYLPe2JwnhijlPYKl2Jq7fPXsFBwU4SrlOZDVg7gtlRVMywMeQXDNFfOtDHl8yt/h+hmBHAbVeaICPM8BAzO219I/SgK0CULEpIbExMbk6PDivMWlrrcVD8r2yqNNuzcdC2uAJ8J1oRPOD+czEV9brBu+KAK72rSW8FHTqDrWueqDa/XWJ3d3QJLkLBOc2Gdm2wGVp/oDwhwogzE+fPPXrCLMmAvyZzgoM5erD90uYzAz9PAUmOYEvG6VczB+gnm9im+dWLETRAlo/v+HCYfRDj3OTCpH3x6wn4bWG/uq2PVFRTmlUZZ77mAq35fV+32i602a7/s4k/UvoaGPgQg/fe5xWhEwVdwhJASZTBCgTbj3u9HAFBXRnSnCeU0ufF/yU4vQgZ908zNSxL6hJPbnKLcwaKOT0pgeFrs6+RGCkoOeRl+/ihSjyADNGusXpuWK772eo32Ty4H5XL/1HYsu2YWx6TF6OlW7oCv7qhLv9hAMywu2nM+2Dn/iXPvO1Efc9Z3+iV8n6NDLFwQrqkbzvcaajgyh3quKgCuUZfd1Y4tHSnZUoPxHXw75kCYKB9lIo6Byn9T+5hjLIFCyNiGO2ZTJQgERmsQZqRSQGxttfsTaNB9L56bnDtZfKHz+tnTatRlUQDh9UsCup6+kJgA1DlKAcw19oltjenyCCVr+GkonuQf614Ag93N9T30ve8/5eu3u97/V/96iLWL72b7zvq38A1Cg1jAcZZz3zdA/thjy9Grn2ZZCzX/oCA5Kaj5eTxwGfku/jDmWvDohPUfF447xrBxBHISQxDdkgv90w57YAcJFG8cVo6k8lMj8/h5gngQIg68XwoszyMjzLkRFRqciJyzR0Xu5NV1i+btbnuGN/x4CED9f5k8+l/of2Y74czDS/48FABwFkDAmYSjfZ9zFMa7LFAEKiPs/zmsG9UAoFE7jrCQGToZbl808rGFm74s9AMWmoxlZMksHlhtKLRRBueFZobllPBtQRG212vUxi9poQf9P0NsFCHsAR7aau+77bFgf+mjPfLJA96bJ2Nef5R5HLSB45mPXo+Z3Ox9YFK+51HpflBSm6NfgqCLs/Wf6fhiFFlSjtdgXwj4dXTiz3m38/AFgYFBJJ+oJzmbw7t57K+CJ+aR48VhwcpewWAGXJC8r4iqSK9SQRsGCl9wxN0bFGm0rCteZ3GbBfUOrL04djE6qTJi/tL5Ea5guofKgPGJi+dPhzNxO+pLr5Ras22lJ0rrtnV2Ic5+JzqHdDn7ENNSmAGDOakvgBlNz7bXlV7OtCVA6clSW/vCPqTPeTE0h0ofBKivPkr/6DfbbyaNffoZCt6+Y9hJNwohNgRC3ekzLfvG6RaBHyFOOhy7b2xcJdpv3FmbT47z/1sT+evIJoC66fgMPozZU+lj2d0YNj1hR5ldk+kPgaLohkR9t/oPcUqBa6/dZR+ww5tlC9gHuHub2TnVkdFWdAsUWw9d8PVlRHXLRIHRpctyll0NSA2I7BGwowKiOFjAxoA4TuSrUj/qwl2eYZx/tTPICyRG/voC1NdMOD7o909MM82atfoejbgqyYuvddo+r//c5tTyvZJWEWn3VmdZm2kx//gN4njcNPb5zdor3J0/4qvUSXyq0RJx6hMxd9EZkcVI5SepV+E/7uReqb3pxBwYwOaoc/AIFSAR52FPxOAYgByFTWPYILbRB7CE48y/94v2/yT66S3RW3+P0eWBn27DT1dDwxf70nxf+P4XkGgNv3mQshJb5d3OXV/FNja/FL0Q+4pjbvr+T83XI8vHu07kYLwDC+wPYQCT/GJcoT/7ujAXn3npS8mXl+xMQYPwR3jgNUCYFSAsRBDoYSfddQQKPJf5LoSFvPOhox2/SwqHZvh3f0Fu2XscFRVu5U6kddcyXqXLflw1uAsvHq8dTwktbD3BrGWeaA1GnzzNgw/N+4+faGycX9JaOQksAOzVKmzs8WIP6zGppXAwD/YJg1GqNUIrtW7evsNaZlwG60Rp3Qvyk6yvrcwK7JOAD+yYnSOiksvUiN0RSFj88GIG3fhGfX+zvm/Cn0iFFQIFVgsUpGuCM9F343r6wZMZqgfxUNtgD9z2r7TI+SG7jd0a2yZDCJv0xUxYbE9bz0DhKj0qF7O80NjZttm4zGdzhbgM/OmTwV3zVaN8nWDmSIzXm9sth9J38N8d0lK+WVcNsJNnwngtPfmqLeUFwa+li3PnYf8atDyJBL8HVT6DziFzl9sT13vJECLpdO204ZuilRbdA00u3fLA4DQwrPX1TrQfiIn05U0x9dqE0qSKuxocJChvwXLDKsmiLaptWC8e3Z0ib0toOTrebXFRof8Qg2TLPYEuG+UYc6NYfUjfho2r50TBC0jWB6No10Z8PK5z42HAvvaaF8kqavBlrRWqUqXGHJN7NiZXwBtK+7sPL7yK2qQiLOG8ou3/atQG3QM44+fjwuM/C/9EXXSsHNkv2k+ydR46ngVqoyS+RXLTy2Qn+aUGUBOVl0qiktj3BrHmK32EW0NTO0y6K9ovDLB+45pOzpItxBXRaiSxYBoGivpYoCfHjBsGEPeYoVyz3tx7Z8NGwKD6RnPHLlG6hlDyKO4qOoHjS75N8PnJfz4/fnrbra3RO8L75csX3YPfuvfzy9iWdiWrPWFxhWOdoqOqU14VviiVnUoAfX6zU359f1wTq5ZWyZdUqZb5OxmmBa/bKpYtzar5AHgozWXaEo2mRFs2qS3TlJRoyvaTH9belKLW7Oik3WEPT1S7vogk2Y+oQAECzU7ZguWTC1/oeYnm963jps9f9Jo+i7QZ22wgQAGNT6KoYGBhqdcoNjpBgAkRnzUmHEokOsm2wh54hkKAPZPx+7DkOcRT+cYGRQGNoaZXG+vOc+wYpklpRXQJLZyBrT3Tt5DBo0noRdvrPIINSuVDQxrACy9uTBtVjSOId+PaCNonggga28a7NcdRlYbaFuf2Afa9uurS3sS711w7PqR3WsYsfseAaxLiOw4MPMWFyxMAHySs3vufj8XHxgbffSCqa7AhrThVPn1ZP++Qx1jYd2YtxgiPlkg1c5FcCtTX6Lh1ag7F8eunMh/T/89kQVYAMWXemn/+qe+haBYtiiZBZNmbmi3RJfESqvSnC5KedB7uwjFqGoueKuFhzBXEMrGC/hwG2PQtWiz5i0L1ZRd/jI/9CA7SwsuROYA9Dy9pwNFOtN0S2J+aXRv1l1B67LgTdXb1oQxb4OxHhry7WAJcJQCyzEveh4E4+7rmAmyU/iYde0CfQGCcHkHcN2vj3oribj7pp8FVvTrDgvGr1El1bdjK5gj8oknsAb608EOfvsATbj8TyzYYVYakuKA4Q2JkukF6Jm4RVrVXWWxWIwpxkFjJjbaZ9yqqRqMoMS96Nv6tvpucxKBZEYhifqvXJwhQQH3dLZbXr6E6hhzGBmaDjkHHrtRXTGPY2LB9Bp+x2sdd48Q1VlT68FA7LrCpLjm+gEba5ZExxI+MCtwU0qDzQf9Jtfnyj9ETt9cHNPdPlGbCUjizNHwLmwPW7772hfKLQ2HmTRIsWfEwH8MnEh4hXWOdamniv/lA1Hb+B1phd6VAnHRfzL6RIA6VotoANhon4CAcj4tbcPCjfeeFwuCNQDaG1gyjntjcN9MTY3ql1qvZt6oMJlCXVXeGK3996ssREIC0EBOKw63YzNW9BHEoO0CLStE4Qbuw2Q25k0CrEGZS3wgkC++ByxVoturjuNL9klaSyDeC+oPOk0krSfcwMrik81McJimSh+wPFDcpXV1O1Flbe+AAQaig6rvy8vqc5iLETN2dpeb+jtPS9otOKhUksmh/2nOY5ldT40eDwdlJjvZhCesT+uuk2olaYX+tBbQ1fbHXsyfv3j0XNQEmgs6hAYw5gKIxuks80fll+SR7N3jgMz396+AWT1rVbq6/J+DJlEo19STA48/dXZXm2TL465krmFl6RRM/gfgRYQriFanuBsdzzVOHmVxOFmX3uwgla/9HJz4kVx7POMm2z9PMb5fZF0TNt/+zdat+OxKZdkG3xKdNLazLFZcDzzzqSbydytOeThsbHu6HXNA7wyHDfwX1ayzUI+gm0ktiIS4BPA4KXh77XoyPqS/jfOV2x8lV9mFL/Jf0YsperCqxCmgffMD56rGKbXatzNnbu1uwu6+PKUk6kxo5N4KxarvfHNrVu/Y29CEMtA94Jm25Qn3ACcprf9pENIbt8daXl8pEnvB43sD/0sutj20Mmsj252uUEyWcOqV12g7lR3hkLBPLSBVgL43dz9r3JrTMOYsC9CNW/92N9dHKlI3ZPgzPes41vXmJ6QLr7AGx7yUOXJOulTKQC395V+wjcRFJunuMD+AlJiO1jvf6d84mw3Vi6U9Do1ceHxD9mvdfGcIc0WENrq+/3h0oO+8N+RHaborNabhJmCXaCgCQ9sAsvtlG8INoY3DuZH5OYBrysXY/VqwJquls+sLw2cvMwM24o5efGb5o6qwJ0hRj+7UfpyE5gXkDmnJyK4Bm9F/LXXEtBdRXblUrVv/aamW81a/Vq4vVXAdbKrdaRvKctPdx+jXNq/bYMf3XR5C9XQMt6ab77farpX/4c+1xaMmu4TrA7zBVFb5AuucdXPxOwsprjxWR779x7nPi4/8l/vsineOeqNMRPQG1W8rnFRUJWm1yYU5my4G1/MrxDR8quIYUE61UoIvIjFoUnl5ofj11z/ru0k5nxWEw+orS5WXxcnpRA7z6KYmUfi/lRyiIBFEgEhCMhSzZ8+HCXW7MjRy2CB+Y7UdZaP+sx4k6WdTOs73q4jpi8T+h4sSz1ekLKna/f/iNxTcVoac2LUo4JF4ckmeE9kkeTofwralleCaW0RSZ1uRfyyrIMHwm521Y2LUM8j/5UlA0Ql94dNa+daxpTcqr+6vzW5eMpfQNBVBfBTUqU0k1tv83NqOf3fiQlspd2NbdSPHAtNV7NbaK0sqVWdKGViw9RnrsKz+h2USbf5O0gbzpuVCWlgs+e/VB+PXD3uM7T6QRs1AT9OrlpX0/pfzz4Qcfbc/i9Px2IZ2QuHznncTkH0FNpyUwNZuQzm6KqUj8y+fKBzl+OeyFmx/M4+wy5ph/+ufkbQ+IKaLP5uA8N/PjifvDFrLLATO4/wWQHSOwB/liy2XRYcy1hgcwIOEjjLzCoDz33xWAtobu/VNI7atgkXXE3WDvcz1KjwyufhXyk88YxtxYvrD86MoC34K35LkZuUfMox+D0Y34KP290fOm0Wsg9FJsaKoupGoog2jXh4bpEC8nA3A+rOv9M/zKmzn0Oj1Uf77pQMjEu113TmWU00AGhAO7rjQGK9b73XxUXfcN89mp9NZ5tzoe8PYtTW/eYLz2w5uHQko4Ib4n5VhZWWz1rh8LeAWJeQ+Ztc6lTacbWHFdmiXBBdaaJTUwQBmoB52rZMBzyBxKn4krzwTXRXfFybRGHxjA9A1Lm5y1zIeJebwCEPoLdw4m+wNprbVGnkwVGW4b6J1c92jTo4y6bYu2DXRurtyMYZmel6EH9No89JizBwJ1Hoh/qgFrRdbOW7e0r5SizR9iH7wlUs5qHz3amZUZdLj+sG17k5aBMZq0223LyZRvQvHX9zu/zoZNhNyr5xPEQ/NJliExgV9/L2QiDIRo6LHlWm15bEJyZQjIYHcsEOvF6bkQBDOoHVRApUA5EoM4rWN+BguEJi9IiI0pL9MeS6N//XpGdGhp3ryQzne86pp9P/chM+LaK3Mvgm2afHWEIjtbCXQ38TcW6GIbEyGCr9gOypGliZYWmn6BDjBQBvzlNsrw4DS5PM0sT00L5gVU5KlylMocVd483BysW/Bim28mZ0M9ObmHDj7vA33Yg/3xXTEyjRvb5p04gq8kvCxRFIWkyuWpuRpewdwPPRtjy2O0ZS3a8nJtS00BWFnzKAOPMUyZOs2z8mh6alQ4AE46tnTOzSsqKGBgQl01q+hiwE46OrkL89UtKuTuMjAtGXz9tDzf9cHzBRSng21EV6LdGYP1ocq9RD/Ceogd2hniHRmpbsOkRShAB1GADif3D/vyA7EonpQWBzVK435gCa1oCTNNVUS9hhSGtnYGfzRgH7SDqb3rL8ZdXJ+wxZyikR2Ljz8m05hTtpSgABlBAWo1Nro4OIK4nQdzvtTqAJfDBdy0g21LrjUZr108RyErOoe67Q7c4bK4rK6B3w+BuUfco64Npnn8i+sPrr/o4b2rC3s8gn+dGSPi1mcGZe189Eg7qxS9tQJbuVmkfKW9dWvn+ZVTw+IDzSMZHlULDWguMm1/42sH9rNd3L666P/D/zeJPu5De9bC5vbmc5uxzbynlqeBUfynv4b/ilNRgZur+mkPND23pAQ5iWr255ikP3WeBtG+0eCvd8UzYD6NLCdIWb8ePf9rmif02eGZw8/UA+D758GCAy9f34kCVCIi07kaJ8MkDyOGZwZFpTrTuXSOX5Iu7IIo+E+5LoRC6YMgCAw/Sy9qH3iMMhHcGxiGaRyfC9gLqQKYAQ+MZnr4Hx6wE0AaIOwI/BBOIhEIMovvYwoNOYvQKCJCG6dxvshzdruM1z58WS0uEEZOismsKu5CNgAAQJsVDMPavGjJWcGHEGBFp2zXQ8qBHNDhRxZPRiafPPgX97nRCCl/C/AieONQXOnjCanjo09rJDcel8wLoUAQiRDwm3ZAGbSz7rM4vGEilP7dFZmvYv5RuPjPRWmL/hRjUar8BrnZ+OLFhw/Tou9yAVZTMxc1x/hAG4CbYkQx1vUc+9WdmFfKeHV8xJEIvVqvPFgY2mJaGCog/a6eCz4f8EIww0de8F+04/1hqhXKFarnbkosNbgC4LhLu7xROmkGUQFwPR9zjVFJCclYJKKtnMKoAMapAIlbY1Q3dSGQ/ehyOwwc28I/Z/q64aTkcXdGXVaXBbMWoi8uoiRU2CPoM8LxJyYADAUdBZxTvFUKVo2AskCl70FGRwQZX/yHmmPY+OD4x94YXdkiXar9rSR5//t5RSyVhTlWv1ya+/Xf3tnQYyyZj/l2IpWSSm4XYr/ivW35c0k3t1pSjaQ6MoCPJIxd9wWle3L9ryE3//uE/kkzoX9taMG+BuqzrSG9T0P/Dks3xlWHkpMYx5QbS3zEFxrzZFJCS6o0ifWUcHvndfenP/IS1F4ymSysAIQEy4JDw6RhKplEvJrlDwvO9gztUCtlyhDQ8XVfKUFfHYnWx+mj7d7Hx8WvKRTYouI0QYLQc/nnkQC5UI7w/cWcVQvDNCuiV2jCQFfGnySCuC9oXU1Nr1TFWbt3s+AH2FppbY1snaiPWLyQ8eB53Dc2Ohzqkbd7aRngY3wwYPLNBud69VuBxFsC8qLS/lkR70PiN8RpNHENfKvji+4d3B3mmP/G29txe1dE7LiwN+TqExxYNL/O0tQY0Mxvys1tDGwIrGdJ6i1Ex5y7gcHLLs7O2b2btVbaq+Dq+bW1qNXd/8iBL0gxfjL2GMr2/vvrXOny+jELU1XEynt/f3LJb9ql0hYlnXtcilRLqrndkufLt3lfsSNd3EpJZXW5V5jEB2TYCOsnuymX/K58Qv/kv7f9KfsKQtfeR572hmz1YsnCZDKZlzqB9+On7us7bxOespKkqS0EqSyv8YLYp2Sj8hgjiRxaHWdMXxwSFKKUKdU7hnrOCmB/1mqxRKYKk4aFBsuCgZiYMS8vIkehzFbllP+n1ADwYE6p/bdclaPMzlHkRZRj5jR5alD2yuwZXhBf9ig7Z+UfaXLzaHAaytAyfFhw5MF4QwRFmkBoD8rS/xmfV773mKE41ZPW/Gs4tnez1fg/hmlkyysflY9ni2qLxx95tQUMhCf0EOgMqQ5H185Wj+IIE8UZBx6z+s/wzrD7bx9g4CHVpWcdSQxbNMlhOnDYDhpm2bgjzJ3lO4LlaViod1owUF/m/I39zRvgHTIj82+K084QVquZzM+3V9DKzreneatqqfDTFfxHo2/s3uW+OpD4LVuBApQ1sNPdvZFRdWrF+CkAwKnxFafSp/Fx3D2dXI1dxCxNSRuzjYx3dIyP2MbSUpbGqHhJ0kAcfgOhNfSwaaf88hoFx8xWspgbKodilA81Tzjf47yBkoWV+neHxYUKisFxw/LjMr+fMjU6irCCmVZBXZps4iiGQB1yW5R7M/lmbtJ3WYAVF+Bgy09o6iUSUdZFZ6phBtXx9AwdVAb2O6jZGP/BcgfcgJkzhVt27ICAk/2trRfLfrJ6+svOtUSV/OlFOcFiNyLrOso7uXPwR76X7euA64Prrusf2BK/lK396Vl+C5wd57q3UrOPMvDUYDZL196bi5rLz/dEGp7XANgs0qNmIkzUceOYzqfT0Wm8YzccQNNF43U6Xd2jDsmLyCH4uyHHXCb/+2H3/E2cibDPL364WFfrTfR96gNKlgeaBPDl+MtUgUlAvSygQMuyFTWM0dhSG2+sabdrIQU7Futqi/eu1OJswEbAvdecJn+xIFi3R2faTG6ewdxxI+MjSY1JiQ3LNbg9frH004JVMmGqKF4QXyGUsFurvGBfS6IgUaQTBlWt/Hhtvbj3TO6/x4vimkTi99W5h8kIpemNn0HZ27963rtHxEphifcI9ohZOv85/VB7/bTlQE2H8uvG4cGL1sCUnJR92bocHfxv19WuA8LV8au/b7AnpgjfFCZVdIPx+Yf53MIr7+EX4vDMtsrxyvn7Kcx0AX+PkJSqkhnlmUWBsmcrCsoMSveYWgbYldXHj7FK9kDjXrCkt+BHyA8p1Pm25v7y1GhG/s41pz/9dqo5Lz9vPVlIFy9CCfG2ALrelBvwLS6yifBvA3LbMVdfWITeHKKyqQwEn7BtQ7IRYWI1VCNKBUm10M00Wc1I7jdZmiBOkB01Ic0yuSvYzwEhDgHigJAFl0zWuYgch3ty9wx1lpqUJHpXOCIYFh0WfSQYEZ4VaZOos4k2QaOgyHfWV5U35sxS/XHvPV5qrz3e5y5/WXxO0MUPPGlMJe/y1vaYc3OTvHaRe85qvd+gxBkXGZLSc+Mob1BxQu3Tw6PbRx0jDp77xYYjc8IuqylAlYwOuz0Es0abhYpIgJrs2HfYNctiYWPlv8srZcI0XqIo0ewDk1evZD+//lgxEcZLFkrmVW5Nkz4YgIzju3QEqyhoOGhYJG7QRJ8/7li9XcZMYMre2ta7XcpMYQY1VjoLrxQdzPUeO7riu/qwaGOC8TtjilH77vXF12VF2hXacqWhuTxBtE+U3AHkpbuZdeI65uPvJFDfNKGiNELJB3wlhGIYLsA9bhVWjHx38F2WbyisYSwVNYYeTkxRD8v49Q1iwhFZHZRUK3CpGmhv9YMqm5QmRzNIO4hxyoA9fIw/Zh+W5yQu7av8Y4DbZcf5PjnGj2ORZnssOC+Stsr1he+7LhgFjP3LQ02teI62XEdoPR8+0kTs1L9rS74AnDc/yCRjMGn7y8dATL7CbncbSZtjCZq1YcMkNbwydMGqtiY3oWxpqlrKcY+E/UKjcS6wDHmPnGcnjYBccu7YGQYGnYTgttNFb8sFludBrCAMhemic6nsYh04FD5ey9gc7i5mzKryimPTijH+mPqyHXrIdNxf7+mqwufk5TlRZ15+X/a6Xq3nnbqsFZkY5hiOS4wsyDXhANZ0iPHsIf/XF6AmBHcaYIMO6+Q4N/YZYO2X2q919szor6KVT/VfUeO2bQN5qZlpE9uYZnN+aTV3XDwa5D+0xhO2fDiRrgeApH/90g80Xkoj5GI2pvBo///7rpYEgNYy0c0iQ+kV2cGaY8TfT7mhJEVK1Hcax+HrFogcMe2y4SGpJYU4nMylD3zuYRz+xU8wVLtG67N7sx4zhgv8LmbNee7dpXPdl7fJS1JDtoGISQBBYgvka16pMnv57mcBy90D7TnKO2afOQMbaOrOv/3racUdKMiqbl8UZVOb6qcyz++qup0zT22QGfH5rKuxelmqupSUSa6YlX7zlZjQutvju8gQ4Q0LvzXUN+j3zZ0cVKW3UVNSd99WQ3CEph/E5Ne6XC4cBWheRFOYNjk6PIxd0e6yo2DZQH6Zzndh7mtfMDgZ6juYmfHsIGyw8cYVSz/obzXI/Y9DxrlfFlIEHNifEu9QQb4Acx0lZBQ//01kmEN7D6KjdjThaYThkBMNGv8mCLSV/1oMa/c2dkPz/IQVVdOXJp7u18p92m/apPCi1COHU9suy2xJpmZTnl608x/urcDTZ9a+G4XG3xW5QswVruHemiO9XPAYVwQGb8jJni3bpq3x8uVnZG0qTWfve/SaL2179gaAPYcZKEDnUA/Vrtr7pmmIMcTnkoxMRiTDlAzy157ml9nt08vFYv82J+Zlcdi/EWLhtkeeYLG6QtZ9824dF8D5vl9VrwNqSe1A8s7qr3xXwAzukvRkWRfcxa6Tv57TR7nJMF5YEpKK21x121JDSuTbLru59Lv3PHPkRT9BuBHTb97to11TOyTw++Uww/P5wF0A9OkTH7LIALJcP+zQfBeVokiC3Kd+Jx7TBGdXpENkVveERQsASfvuv//TeI0pTBeU0sij/XDpdT1QbaPOkadcdXtRCHGAnQutpdDcAQi9bP14igwq77v6L0DHd7t+rfxjD7CCOMvXQ3hwB95u95sBnqG3Sq07/gqH/EiJbacvD9E0bhqCwv/aYS31CnPzdaB3jbQ7hN9+WsMKf7LWahrs6LeobsPQJpOWDKML+0/3wIh7EDAkd6329oDB/ML+8+f7J+7nz3UxizKZb6EAiUfm2vERpbfO8UAp29IP8j8HI03fvLuu+ivffBhw69ifkpAu1rGlZUI9rtVJCq++hk5RAXXEzhWrX7rUJXmNjs0beAbAarjxvfpHtb/Af6U1m6ybUAjZNOY53ju19xUbxoocYCXPx5F2AIDdeT6BejDZ6nazGxYVG30lY0yDSdpCurWO4v3K6npeeP/EHBnFVtu9rKVFKun7p6z/xHv9T5rrwjCEiT7pf+9E/9aIv+pFLr01OvAiMnf+Ibl42pibZ4Do0bxoOhRODlRI08UoeaT9l01slAxoGh4kVChM7fTTG1aosEydqdX//Pchu0OGQ/pB70QnyaSpT1sSffRoLNebRPH3k7pGnKiHmKFZuvRJZUFEnlJljso9qzIrs3MiclUVhHgqA/liS2pEgUGukwenhqbtCk7Nfc1sJvwBgm5qh+1jwvFhe6/uB2pDBmW9OlofYBRaGMUMa6wOMwwnFjMsdF1cOiaw7M4iEok5G3afzc47EVRXqM/X1bGb2J9lGgp1eax6v6agOmHRrxNDCTZyPHVKB9xnEYDOIADBUYAI+AIEoDgCkBkUINZReA5uLM6vyJnUjq86qaGmNsKgzpK+S7dE/RmByQ0RRpc481Pt9Pm0pncp2PvAuMSgX7JBjyzRb2CGqBiyhljc48kF3Tyv/gY5bjWFGcMwbnKFZaAmhsNc2PPqkGGNC6oDsm30PHzUvNwIc4QSTw2uxXxuIKw7haviiF/fjtkV+7sV3Ok/Jds7S9W1jiKeOf7toU8+jNbYOhqDVTWNx8ICVmHtWea0s7D89VI12pKYMqhZllH94RXKXGV2doRZVQbgUmCOyFIqsyoPlJFHfrxHyBzqsGZK4eVRfAZvd38Jfym4jeEQe8Bu9O5YgyYQHxwewlZ7Zc6G+56cMdyjYIvNEPOoGQmdfP8/AyD3GZt7IzvphnQiJ/Ucwnq3ONtX77NVfMTwaW+o+3CbOZzCyy37dGb+Oyk7Mi5mCvPFlTSgkT6qPZsaWrjiALOWeaA1tLAdBYgLYaLt9xpGrMNprjSrC3O549wEe3h7OAh2k3MM5wg3ckw3KOyRt7uCK0V/3un5VA2FzXKrVflJzVWGzsIjyFE2RbUuGf2jegenwVitj2+f3bEt/ydSIJqKeiU+fQKC9dkmxooMsg/9ZesDjmErx/Cg9SXdh7wiw8QA3+en5n8PRq3/rqYYT+Lj2bv4mqb7uONYtzOfLKPHHMd9OrBam3+hX02aSQNCah2/z/8y9rVtX3CDmMXur7A3C0KZN2u+02cq8WPLr0U/0d/65cfw8CQjPtax7XNEtoASGcr4pOaGLuOcsUSAsyabQMg2OmNjd3yJi5gbIPEyV+vXvZHRNZ3ckJTUsFwTgIw2oGm178jZo3Uf+f+okw7OGqcOG2HXqPHwVPUpkA3qfvTbX1ruyXxWXv5MztEG4AFaf7ln5Ef/DdgGT3vO2xMzg7a/jQa++WlgaJ8XFAV59eX3hUJq/9JCAz99MxB9OyJl0X/OUYH6Cl2UNCMiMasIwaUyAADYrBDq1tilrHcE7wAAOcAhQ6TyzRywmE0WTSaJJFdO8o753dFJN9yXhoWmG0LDgp5lZf2Q8UNZ1g9B/jH+GipAGNQ0Vh87ecdE+n3pBt0dP90MCmm1rEiWlzfkhUNxJY+fqh3f/WKP/uxFaUUIiYKy+UeTg7YeRkKdeZ0UQiSB0pnbGUKIOu/pDEUOK3CqB5mjquZbtbEfAhRc9hHM3PlzZ0zbyhpDNSh5/H5zQlZ9xkr9ycxKaG44ksDOMFcrWqsUmWZ2wpGNV/zPhZ4POx96LiS5E8B7DV3iK47ZgwLEh2sRp74NeNFq31fUoGzJC5JQxbHUUuSVNPGv/uOpj4u2t9pxxj/AJSVGGXZMck6JT9PTcXz9PXxp+jmYQoVaK5WPkp5Rg9Hvve7uWPWfP0WyerVnC2yZDbysdbs9J/jHeBx4wIO9NnsQ1nsKDdPTQEmVj1sKviIMX/w7tueeAgsxEfDq5wa8DWGe9sPFWcEUHvejr7oofQY7M37j89K6HTUxDlL61PuB3PQu7FyQ78OD3tVg3t6XuAu3a63EAbsDL3L7XD1OWCBVRG5ORHl2HK4HqOC69KYqUfANnUCdK8bV+4lRdiju5rmD8pwMlpP16YFBmidUzsBXbCbfXZbz1FJfD6vGqi6IiipQW0c1OEhQth+9961OXFwdXxkXVxlf/USDgwRl+yf3u2GiUbTRisCW0cDrLYEV1xfCUf5Ms4Owc+bTCc3OIwnsTHOVorVakcFddgPnfZsAT7yn/XBJZrAXj7O/71Ude69TvHtzqA8PtP+sYml9g39xZrFuyckltVF1N7uX5NeNOEmdf/75seScyXWSp5bUPA8YSK7Rkziz3F+4sxwf7hRXHFvnATd2UJanPxbR8/xrmtp3+85RjG7qzm0n6szPd1INfRcvtD3OMa+8RxC0eAMEpcbklkcf6xo/n/wYWzZK7iSzryzNiQ7Dt6WdxpFfyfVZvLzT2KMtzPcAGMCZCKgn+z8bMmGgd5xI4d8lyY+i5Jm8rnFbuD4EIiGZl03w9yYF+tCz5UQiwX9Ip4hiH/F7hx78tZF2asOh5UWScNPN1N9cfzw96D+00Q2iIVhm3TTly+87/J2MVE8kevuQ5MH+FBIpkJRF4NC4xHAfHkogayuzvSW72OQi6hRakQsaUmJ+/Z/giFy/pd40hUuKlh/acMpI+zqY/o7fEbYiSjfkTyAS5dl0n0CStz8hm5dMIBJ8uC3cayavTzuH/A8e/+nEFJVcxN4lyfau1JIJKM8nnMilcQhZpEASieIfLCf5eBOJ9aTvZIf7+L5Tm6wyGIoG/6/6j0aEvVLTW9r0aRSRwsVEAQpooJOCibPueHoKdQrBcQ7+xIxgPM/u/gtPl8t7mCKxQIVVt+QgOKnmWEsglzJsN5ta6nJSz2J2e2rBsBIdhHeRvhM4hEtj2VZmsjXktQ+cPz0DBp0HDN92OMF0CPdHMBdwTXhdXrC9Pkvu/rkDA5hSeLly+5IsUwr9RL1y2nuYEsg91lKT1HqrCiqUWCjDYMB4Qq1UBucDmzv1CXL6+696SJe8+1I/Rj/njT0K3SikSxW236MO/B76R6i/ZXWlO0uT5oeGfF0Yz3tN+RoPJDpqB2eM2MeS+Nj5Kut5WOi0bOLj/BFJoflJH+vKNJfHA2y6tvb0wzCbkbIjdX0Eh0PZ1B2UdaGCzeILNU9a5ItLy39e1Ufbg0CXC1jIiH0EairIrvbQnPaHlL766P/DwaG9ZzkTYROcb8f/JZeft4187v/X8EQ4XuSA8LM/7Ptsvo0fDZ7Fxti9zNPMXvbYtAv1YlKYXqjm6aykQFb0sQZXMutsEBiFmUMAkNuQn98Z3rAYHqzT+UxWWDH9zM+B6Bz3bWqkmh/Cnlp+mkEtx8nibhqCPOiCV9LDw3g7rh0HtuzDfkKKvtaRkdm5/fKCQgrMgK9Q5Fn128PzjjKvRZmIK3yAu34xgg7C9E385kpu1AFov9/9knWW9eVdd98dxt7TMvjvZY49bupDnAZDxntXNThympf4RMpeF/pOONFF7V1I/zmVfaUW54pkXBM8rx4eLZo+tATpd+VSVoOkXtIpccJnEkhWslcX0UoKJ9EL6t1FtgLPZOj+qgXYdUtC2xcfWMF+/qrPN2VXv/TE4tvvG+2XHUPX47PKwisUzYtrNAuiMSte0liqyAvLydayF3ntvL4sLyY7sLBjsFJ29/mQXjRzDlwkW0kJlCJ7d5F268syUbSaVS9pkDglneAMMK1MNtSnaObOBbOQvOLI1QOibM9URvOqjOYpz+xc7uvx8+p/gOg5019lLE6XbgE0ZM3DF37tcaIF3/8Rkpr95b5tGYmtDIMwXWgVWoYSJpL5BvaP7F1Bu9X4ri8vNgNPjvd4GZRd6IaKDWiXEn169MnFvK5/jf92vQDqHHzNYivMXqIX1z9ijVZi9EU/cr+ExAW7wyq2TS00aoqSVqt71Bbi19+FU4dywnbrKh1N9rlbjheXrgZtz0e+bV5tGXsa/PWfMIlMJgaXUb3FjNAsTmIY2Rsh6WJYuT4957wpJej/HVGrp7yTCle6vmPZwH97C1rfFq8vbDs8kfUB420UoPSWgrb3P8++o/uBpCGGkzQkMkzUE4VEDZFTEeSO4v3U9hrVHcGOMiqB/o0gUXWz1i0GVBAZYc4+BtRluapol8xuM6X4dcBz9qhf6zfYVUKVNvauY1PnRN9Lf+8z1ZOPqn6faa9LC1PXtc/8XvVosvqMt//LvhtOliprl+WUBneq46zTc/klKxBJbG6R0qYaR0BI3+YSRPH7d9+hxoCM3OW86SzP7UH/p5+Kzr+iA0Pf9noxOUP6/Zvoh0NRQw+jv/mdNDP5wuvt0MDov2zURyPDLtw1EVCvvRnlCsyAwr8zM8PIsWMO1zSOtyvgCibs97cNSPSpcTXGrdw3dZmZb1TGTeoF2znb9LxvKmP6M19/NL7J2WqMrYlNhkBcTQF5X5Tz17yINLlRUCQ3KrNVR5+H7CMXxGuoHhhs3QHPcT3wDrCd+ozroe7YBnu4c/C2bTAD1H0cvSP9/VMRWVkRyrL68qQb2WtLT4enk1Kwp/7Z136NI+3/WO7OUKxbn76Tr+uIX+BL++Tr/L7u+P1+lmEtFbGlGk1pbEVLs6Y8utgWkzZvJHSASn7aunxWyRW1fElKy05UU1rGK2PJ299uKoupCFMAIlY7NVGPHdaJa7pk/Od0mLaiNHadbkdNo8y4NH1p8zoQl19+WYj8CCLmd5wOb/E7UHqKYCQ8lMkeGgmEU6WbiS3hpzvmR3grvjb15Evkugpky6O+YjdhIb9IWPKVXvuJTvNAWMy3EFpehlY/8KrQySVglaSZ5gU06eAqI+6/PuEg5fQxGHpxgu9hfwktD77JilR8NSd5yhxzjI1XngYi/bq+3nVRVqBkaK82/uwXZQNKRuzlLv5OH/jr76avwoA1je/4mNel/d/Hwet41r7TeWuJdeDqoc7fsSsvXwBrPyme2sP+7wl4EUlCoyje7pi49Yspq39jrbfJBuVybcxvi7fEHZo9N2VSpYbZ/Ar9cshFlFS/goD/d3gV0CBN+QRpa+gKly1r+mIRX1z3QS7IyFgWtI3SrTEV1mTkd4dvofw/kVEW0W/UA+g+KZ2y0iTtufzGxt3zaQw/dcbVJ5uuxG3xu12Vdkx+a809ZXbMw3/Ey59/llp4r+J6Tgo3K7BcUKPeUklimCVVhB+PiidXf9tpZ57OB0ObAcPAgL85BSBI4idsz/Eiet/zn/KFJCI+vfAn3yn/+75zYvYa/vw9XwDht8wS8XxyYcTospAFjmUg/qSe+HJde8fn/gWc/HO5nDz2vTRdf887/Wh/StqrXKEtT+Tp4y8KWNTU1jy8iNcmKCgQVP+mp9SxZCpfomBPF0bcbg7JcywDCZf1xJed9o7P/Qr888/lcXLZT3W6/gAW2lUV7b0h6aSf/hNQ++DRRkZr0dk9FfppKUUjvlCTaiKPogau4ebO2ibQGLcT3H3r+AGoV9w/WJS/rOtU6aUtSMETf7Ogz2/zmOYvEhcwEl94U0ngf+LMB54eEiD2CNMb9BnI/7FpVUzYSnqm3TYpoQ2Pow4wAkqoCGDsI/AxG8XBGpWAVKAiAopBPDUCRQBAjo6BY+KQOMALvMZKjFS4Vfl4Fg4lon1bVUsMrrPVVDjkBabGxFC8z8VOApUYSFq78cwOAofGhC287dwPAh2kgWfM5le4RvAVZ1BRtB4ZIx2FnKmBFVJZH4HK+QMA9dSFNajUmPWklpWWrM40LJvirQbyvhYEiENhDWp47KEdRAMHpKE1yi5X5597K0sn27KN/qvUSQoA8LoXFEmtQlr4S9B/33lxEdAASHlEX2UAeAA4ssEU2vuBUGoQ8AH5RgBeoJnEUXsdSdA+bGRABaOkQPux+QIFlPGaCvygNwFR9kk++2AAKoMAGyQaAdBBGYnYdpAE7c1GBlxwnBRof2O+wAbmfqOCYGgx0AMHqANVYLF9WAvEoBosXfPtN4EasAi0gXoYbtwECO2RlBVJXrMAdIKq72BEUmhZVZdHxPYGoBDUgQawBLSAqvmiX4nzCaQ4oZgJG6irzI6f+HW8GKiBCkQBQPL8KKlVUalVk2jLYdH2mh1Sow0gGqRZzwKZDkmztRHGHDCh2VKbi36K9nCzmTNrROtUAJDgF3Z0NkQvXlyP/4wXPYQUvoHLw48B0Jj/TDuIB5F1u/qcharGSqtOZyzrpRFvdgEn6zJ8v8IQJeSfmAkQASJCJIgMUQ6C0nTDtGzH9bCw+fHHwYVABQjEwycgJCImISUTRC5YiFBhwikoRVCJFEUtmoZWjFhxMLh4CRIlSZYiFQAEgSFQGByBRKExWByeQCSRKVQanREAYrLYHC6PLxCKxBKpTK5QqtQarU5vMJrMFqvN7nC63B6vDwyBwuAIJAqNweLwBCKJTKHS6Awmi83h8vh5BgiEIrFEKpMrlKH7KkCt0er0BqPJbLHa7A6nyx2pC16fH4RgBMVwgqRohuV4fIFQJJZIZXKFUqXWaHV6g9FktlhtdofT5fZ4fX5AmFDGhVTaWEc6nywp93pjEF+esQ5zxc211BcU3l3bQP0GBbiXA9hus8PXPfpPvt/1UsJdwi78Tl+EZZdHSF5LWXfn9UtrpVXKz2s+r7YVnrwW8xpbb/wSFqSXK3Awx+QOKc7r3/lPJEr2Xmii9t5G2ae8M5IO04xIJQS/w45A+N84Fmmz9Li+XGsjTIsTub6fYtt9Yd4B26Qg/FWuYgAVVm1RGrZ2ghFOaM1HqG2ggDkAC3MgM7ZetybkcL+0Cv0LF9pmXtvKwDhNZU2FU60zdQ9z4TAbDQU4ge+Rw8WPrfMcmIbDVGsmnKbfXJLmYNMEB/eEiSOLwk23fQ05jLl4WY8Qray1Y/ntYG3ghSDGJtwJ78gyzMmCp2SCaIGUy4JVGKArttX27ahK8aupMlJooOHQIghimWEaG5WV/Co50Ja/kzCKBd2c1FxDSZBx6Bj1ELT4kDQUniGjmaczG2uPwk5g/khBQNZ+6cjQ92gO0xsqhbAEye+WcWLzFHc3KJPD1LXtYoG+KxgXLLjZTXwYOHp+h8XYhvQ4/cStuUeokLUtnMaiTazAWuS0DBUycA78yWCYoGR4ZZP2KIREy1oXHgicFMhx7Jgt3Hu9f73MZ5sLnTPXKknmT5aiwwTjEU7Vx6394kwYKFZZo99aJA6SnBTIQZcJgG2iOYEsA/LgjmzKES2ZorolhWDN4CQuJuRsFswnDcUAAZi2TRY7JPXJAYgZ+rwVJO3T4yAk0pyCAGwjaFvwZo0PWAJpnAVMR/IKkLFD3rrE4CXkkh7ZdmWq3JjRmQOLM4eFIcU3V4kDVT6REKckYXPGANSPBMWlNOQYjkIawhCXnuM5prZCQwfdXgqfZidhGfJpYOqTA/Y0500ZB4LQReO8YZ6mjq2e6QIdzdGLzR8ziEWSLVQd2NoiYGkRGaMXLCt0oq7fOWoCTc11KgkMttjj0jFJ6zIc7BafifCk0pZOhSbraAopcEpG4/kOwyNmF39Mt5ppTW7jRoB8WgPkOc51rC8oKZl62iKAamlu4DmuBkvCcCtjwcMLAlVzR32t10CwTyM6AbagGllb48gU5ACDzUmBCyJqxlxs8U4XAyTcTtjWMNGdH9GuwTBmjyI3YJFEgrovcQDR5kFZ0NMkmgTDZclc183uTcoBDNAaimIE2Cwu9OXklBGRkNvItMU7zXTlX5Zz/V8YIO2iK//xMnpu22WBNXRyG9vGQuJ0mGsc26/Aag5YQelZZs5Bi2ubsxHV/DzGXRt3P3KTOvQ4HG8aKpm9OyoHnIgzG/GkIEerHqEBaYCQ8UJPWbg8/vNFDyFvqkhIe6O6l0WordG9pHAAyyTWbhCGHCtBD7vDjzljqRT4+8E2POgLpACHDw+E5jqrtyanHw0AAA==) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_ciljc7axaw7.woff?t=1705587463221) format("woff")}.van-icon__image{display:block;width:1em;height:1em;-o-object-fit:contain;object-fit:contain}:root,:host{--van-skeleton-image-size: min(25.6vw, 153.6px);--van-skeleton-image-radius: min(6.4vw, 38.4px)}.van-skeleton-image{display:flex;width:var(--van-skeleton-image-size);height:var(--van-skeleton-image-size);align-items:center;justify-content:center;background:var(--van-active-color)}.van-skeleton-image--round{border-radius:var(--van-skeleton-image-radius)}.van-skeleton-image__icon{width:calc(var(--van-skeleton-image-size) / 2);height:calc(var(--van-skeleton-image-size) / 2);font-size:calc(var(--van-skeleton-image-size) / 2);color:var(--van-gray-5)}:root,:host{--van-rate-icon-size: min(5.333vw, 32px);--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-danger-color);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}:root,:host{--van-notice-bar-height: min(10.667vw, 64px);--van-notice-bar-padding: 0 var(--van-padding-md);--van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md);--van-notice-bar-text-color: var(--van-orange-dark);--van-notice-bar-font-size: var(--van-font-size-md);--van-notice-bar-line-height: min(6.4vw, 38.4px);--van-notice-bar-background: var(--van-orange-light);--van-notice-bar-icon-size: min(4.267vw, 25.6px);--van-notice-bar-icon-min-width: min(6.4vw, 38.4px)}.van-notice-bar{position:relative;display:flex;align-items:center;height:var(--van-notice-bar-height);padding:var(--van-notice-bar-padding);color:var(--van-notice-bar-text-color);font-size:var(--van-notice-bar-font-size);line-height:var(--van-notice-bar-line-height);background:var(--van-notice-bar-background)}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:var(--van-notice-bar-icon-min-width);font-size:var(--van-notice-bar-icon-size)}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:var(--van-notice-bar-wrapable-padding)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}:root,:host{--van-nav-bar-height: min(12.267vw, 73.6px);--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: min(4.267vw, 25.6px);--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1;--van-nav-bar-disabled-opacity: var(--van-disabled-opacity)}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left--disabled,.van-nav-bar__right--disabled{cursor:not-allowed;opacity:var(--van-nav-bar-disabled-opacity)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}:root,:host{--van-floating-bubble-size: min(12.8vw, 76.8px);--van-floating-bubble-initial-gap: min(6.4vw, 38.4px);--van-floating-bubble-icon-size: min(7.467vw, 44.8px);--van-floating-bubble-background: var(--van-primary-color);--van-floating-bubble-color: var(--van-background-2);--van-floating-bubble-z-index: 999;--van-floating-bubble-border-radius: var(--van-radius-max)}.van-floating-bubble{position:fixed;left:calc(50% - min(50%,300px));top:0;right:var(--van-floating-bubble-initial-gap);bottom:var(--van-floating-bubble-initial-gap);width:var(--van-floating-bubble-size);height:var(--van-floating-bubble-size);box-sizing:border-box;display:flex;justify-content:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none;background:var(--van-floating-bubble-background);color:var(--van-floating-bubble-color);border-radius:var(--van-floating-bubble-border-radius);z-index:var(--van-floating-bubble-z-index);transition:transform var(--van-duration-base)}.van-floating-bubble:active{opacity:.8}.van-floating-bubble__icon{font-size:var(--van-floating-bubble-icon-size)}:root,:host{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: min(8.533vw, 51.2px);--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: min(8.533vw, 51.2px);--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}:root,:host{--van-back-top-size: min(10.667vw, 64px);--van-back-top-right: min(8vw, 48px);--van-back-top-bottom: min(10.667vw, 64px);--van-back-top-z-index: 100;--van-back-top-icon-size: min(5.333vw, 32px);--van-back-top-text-color: #fff;--van-back-top-background: var(--van-blue)}.van-back-top{position:fixed;display:flex;align-items:center;justify-content:center;width:var(--van-back-top-size);height:var(--van-back-top-size);right:var(--van-back-top-right);bottom:var(--van-back-top-bottom);z-index:var(--van-back-top-z-index);cursor:pointer;color:var(--van-back-top-text-color);border-radius:var(--van-radius-max);box-shadow:0 min(.533vw,3.2px) min(2.133vw,12.8px) rgba(0,0,0,.12);transform:scale(0);transition:var(--van-duration-base) cubic-bezier(.25,.8,.5,1);background-color:var(--van-back-top-background)}.van-back-top:active{opacity:var(--van-active-opacity)}.van-back-top__placeholder{display:none}.van-back-top--active{transform:scale(1)}.van-back-top__icon{font-size:var(--van-back-top-icon-size);font-weight:var(--van-font-bold)}:root,:host{--van-tag-padding: 0 var(--van-padding-base);--van-tag-text-color: var(--van-white);--van-tag-font-size: var(--van-font-size-sm);--van-tag-radius: min(.533vw, 3.2px);--van-tag-line-height: min(4.267vw, 25.6px);--van-tag-medium-padding: min(.533vw, 3.2px) min(1.6vw, 9.6px);--van-tag-large-padding: var(--van-padding-base) var(--van-padding-xs);--van-tag-large-radius: var(--van-radius-md);--van-tag-large-font-size: var(--van-font-size-md);--van-tag-round-radius: var(--van-radius-max);--van-tag-danger-color: var(--van-danger-color);--van-tag-primary-color: var(--van-primary-color);--van-tag-success-color: var(--van-success-color);--van-tag-warning-color: var(--van-warning-color);--van-tag-default-color: var(--van-gray-6);--van-tag-plain-background: var(--van-background-2)}.van-tag{position:relative;display:inline-flex;align-items:center;padding:var(--van-tag-padding);color:var(--van-tag-text-color);font-size:var(--van-tag-font-size);line-height:var(--van-tag-line-height);border-radius:var(--van-tag-radius)}.van-tag--default{background:var(--van-tag-default-color)}.van-tag--default.van-tag--plain{color:var(--van-tag-default-color)}.van-tag--danger{background:var(--van-tag-danger-color)}.van-tag--danger.van-tag--plain{color:var(--van-tag-danger-color)}.van-tag--primary{background:var(--van-tag-primary-color)}.van-tag--primary.van-tag--plain{color:var(--van-tag-primary-color)}.van-tag--success{background:var(--van-tag-success-color)}.van-tag--success.van-tag--plain{color:var(--van-tag-success-color)}.van-tag--warning{background:var(--van-tag-warning-color)}.van-tag--warning.van-tag--plain{color:var(--van-tag-warning-color)}.van-tag--plain{background:var(--van-tag-plain-background);border-color:currentColor}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:min(.267vw,1.6px) solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:var(--van-tag-medium-padding)}.van-tag--large{padding:var(--van-tag-large-padding);font-size:var(--van-tag-large-font-size);border-radius:var(--van-tag-large-radius)}.van-tag--mark{border-radius:0 var(--van-tag-round-radius) var(--van-tag-round-radius) 0}.van-tag--mark:after{display:block;width:min(.533vw,3.2px);content:""}.van-tag--round{border-radius:var(--van-tag-round-radius)}.van-tag__close{margin-left:min(.533vw,3.2px)}:root,:host{--van-card-padding: var(--van-padding-xs) var(--van-padding-md);--van-card-font-size: var(--van-font-size-sm);--van-card-text-color: var(--van-text-color);--van-card-background: var(--van-background);--van-card-thumb-size: min(23.467vw, 140.8px);--van-card-thumb-radius: var(--van-radius-lg);--van-card-title-line-height: min(4.267vw, 25.6px);--van-card-desc-color: var(--van-text-color-2);--van-card-desc-line-height: var(--van-line-height-md);--van-card-price-color: var(--van-text-color);--van-card-origin-price-color: var(--van-text-color-2);--van-card-num-color: var(--van-text-color-2);--van-card-origin-price-font-size: var(--van-font-size-xs);--van-card-price-font-size: var(--van-font-size-sm);--van-card-price-integer-font-size: var(--van-font-size-lg);--van-card-price-font: var(--van-price-font)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__title,.van-card__desc{word-wrap:break-word}.van-card__title{max-height:min(8.533vw,51.2px);font-weight:var(--van-font-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font)}.van-card__price-decimal{font-family:var(--van-card-price-font)}.van-card__origin-price{display:inline-block;margin-left:min(1.333vw,8px);color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:min(.533vw,3.2px);left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:min(1.333vw,8px)}:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: min(6.4vw, 38.4px);--van-cell-vertical-padding: min(2.667vw, 16px);--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: min(4.267vw, 25.6px);--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:min(.267vw,1.6px) solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}:root,:host{--van-coupon-cell-selected-text-color: var(--van-text-color)}.van-coupon-cell__value--selected{color:var(--van-coupon-cell-selected-text-color)}:root,:host{--van-contact-card-padding: var(--van-padding-md);--van-contact-card-add-icon-size: min(10.667vw, 64px);--van-contact-card-add-icon-color: var(--van-primary-color);--van-contact-card-title-line-height: var(--van-line-height-md)}.van-contact-card{padding:var(--van-contact-card-padding)}.van-contact-card__title{margin-left:min(1.333vw,8px);line-height:var(--van-contact-card-title-line-height)}.van-contact-card--add .van-contact-card__value{line-height:var(--van-contact-card-add-icon-size)}.van-contact-card--add .van-cell__left-icon{color:var(--van-contact-card-add-icon-color);font-size:var(--van-contact-card-add-icon-size)}.van-contact-card:before{position:absolute;right:0;bottom:0;left:0;height:min(.533vw,3.2px);background:repeating-linear-gradient(-45deg,var(--van-warning-color) 0,var(--van-warning-color) 20%,transparent 0,transparent 25%,var(--van-primary-color) 0,var(--van-primary-color) 45%,transparent 0,transparent 50%);background-size:min(21.333vw,128px);content:""}:root,:host{--van-collapse-item-duration: var(--van-duration-base);--van-collapse-item-content-padding: var(--van-padding-sm) var(--van-padding-md);--van-collapse-item-content-font-size: var(--van-font-size-md);--van-collapse-item-content-line-height: 1.5;--van-collapse-item-content-text-color: var(--van-text-color-2);--van-collapse-item-content-background: var(--van-background-2);--van-collapse-item-title-disabled-color: var(--van-text-color-3)}.van-collapse-item{position:relative}.van-collapse-item--border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:var(--van-padding-md);left:var(--van-padding-md);border-top:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-collapse-item__title .van-cell__right-icon:before{transform:rotate(90deg) translateZ(0);transition:transform var(--van-collapse-item-duration)}.van-collapse-item__title:after{right:var(--van-padding-md);display:none}.van-collapse-item__title--expanded .van-cell__right-icon:before{transform:rotate(-90deg)}.van-collapse-item__title--expanded:after{display:block}.van-collapse-item__title--borderless:after{display:none}.van-collapse-item__title--disabled{cursor:not-allowed}.van-collapse-item__title--disabled,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--van-collapse-item-title-disabled-color)}.van-collapse-item__wrapper{overflow:hidden;transition:height var(--van-collapse-item-duration) ease-in-out;will-change:height}.van-collapse-item__content{padding:var(--van-collapse-item-content-padding);color:var(--van-collapse-item-content-text-color);font-size:var(--van-collapse-item-content-font-size);line-height:var(--van-collapse-item-content-line-height);background:var(--van-collapse-item-content-background)}:root,:host{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-text-color);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: min(4.8vw, 28.8px);--van-field-clear-icon-size: min(4.8vw, 28.8px);--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: min(3.2vw, 19.2px);--van-field-text-area-min-height: min(16vw, 96px);--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: min(4.267vw, 25.6px);--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field{flex-wrap:wrap}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--top{display:flex;width:100%;text-align:left;margin-bottom:var(--van-padding-base);overflow-wrap:break-word}.van-field__label--required:before{margin-right:min(.533vw,3.2px);color:var(--van-field-required-mark-color);content:"*"}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.van-field__control::-moz-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:-moz-read-only{cursor:default}.van-field__control:read-only{cursor:default}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-moz-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}:root,:host{--van-search-padding: min(2.667vw, 16px) var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: min(9.067vw, 54.4px);--van-search-label-padding: 0 min(1.333vw, 8px);--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;align-items:center;padding:0 var(--van-padding-xs) 0 0;height:var(--van-search-input-height);background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search__field--with-message{height:auto;align-items:flex-start;padding-top:min(1.333vw,8px);padding-bottom:min(1.333vw,8px)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}:root,:host{--van-action-bar-icon-width: min(12.8vw, 76.8px);--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: min(4.8vw, 28.8px);--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}:root,:host{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: min(8vw, 48px);--van-loading-spinner-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:min(.533vw,3.2px);height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}:root,:host{--van-pull-refresh-head-height: min(13.333vw, 80px);--van-pull-refresh-head-font-size: var(--van-font-size-md);--van-pull-refresh-head-text-color: var(--van-text-color-2);--van-pull-refresh-loading-icon-size: min(4.267vw, 25.6px)}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}:root,:host{--van-number-keyboard-background: var(--van-gray-2);--van-number-keyboard-key-height: min(12.8vw, 76.8px);--van-number-keyboard-key-font-size: min(7.467vw, 44.8px);--van-number-keyboard-key-active-color: var(--van-gray-3);--van-number-keyboard-key-background: var(--van-background-2);--van-number-keyboard-delete-font-size: var(--van-font-size-lg);--van-number-keyboard-title-color: var(--van-gray-7);--van-number-keyboard-title-height: min(9.067vw, 54.4px);--van-number-keyboard-title-font-size: var(--van-font-size-lg);--van-number-keyboard-close-padding: 0 var(--van-padding-md);--van-number-keyboard-close-color: var(--van-primary-color);--van-number-keyboard-close-font-size: var(--van-font-size-md);--van-number-keyboard-button-text-color: var(--van-white);--van-number-keyboard-button-background: var(--van-primary-color);--van-number-keyboard-z-index: 100}.van-theme-dark{--van-number-keyboard-background: var(--van-gray-8);--van-number-keyboard-key-background: var(--van-gray-7);--van-number-keyboard-key-active-color: var(--van-gray-6)}.van-number-keyboard{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-number-keyboard-z-index);width:min(100%,600px);padding-bottom:min(5.867vw,35.2px);background:var(--van-number-keyboard-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:min(5.333vw,32px) min(5.333vw,32px) 0 0}.van-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--van-number-keyboard-title-height);padding-top:min(1.6vw,9.6px);color:var(--van-number-keyboard-title-color);font-size:var(--van-number-keyboard-title-font-size)}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:flex;padding:min(1.6vw,9.6px) 0 0 min(1.6vw,9.6px)}.van-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:var(--van-number-keyboard-close-padding);color:var(--van-number-keyboard-close-color);font-size:var(--van-number-keyboard-close-font-size);background-color:transparent;border:none}.van-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:flex;align-items:center;justify-content:center;height:var(--van-number-keyboard-key-height);font-size:var(--van-number-keyboard-key-font-size);line-height:1.5;background:var(--van-number-keyboard-key-background);border-radius:var(--van-radius-lg);cursor:pointer}.van-key--large{position:absolute;top:0;right:min(1.6vw,9.6px);bottom:min(1.6vw,9.6px);left:0;height:auto}.van-key--blue,.van-key--delete{font-size:var(--van-number-keyboard-delete-font-size)}.van-key--active{background-color:var(--van-number-keyboard-key-active-color)}.van-key--blue{color:var(--van-number-keyboard-button-text-color);background:var(--van-number-keyboard-button-background)}.van-key--blue.van-key--active{opacity:var(--van-active-opacity)}.van-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:0 min(1.6vw,9.6px) min(1.6vw,9.6px) 0}.van-key__wrapper--wider{flex-basis:66%}.van-key__delete-icon{width:min(8.533vw,51.2px);height:min(5.867vw,35.2px)}.van-key__collapse-icon{width:min(8vw,48px);height:min(6.4vw,38.4px)}.van-key__loading-icon{color:var(--van-number-keyboard-button-text-color)}:root,:host{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: min(13.333vw, 80px);--van-list-loading-icon-size: min(4.267vw, 25.6px)}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}:root,:host{--van-switch-size: min(6.933vw, 41.6px);--van-switch-width: calc(1.8em + min(1.067vw, 6.4px)) ;--van-switch-height: calc(1em + min(1.067vw, 6.4px)) ;--van-switch-node-size: 1em;--van-switch-node-background: var(--van-white);--van-switch-node-shadow: 0 min(.8vw, 4.8px) min(.267vw, 1.6px) 0 rgba(0, 0, 0, .05);--van-switch-background: rgba(120, 120, 128, .16);--van-switch-on-background: var(--van-primary-color);--van-switch-duration: var(--van-duration-base);--van-switch-disabled-opacity: var(--van-disabled-opacity)}.van-theme-dark{--van-switch-background: rgba(120, 120, 128, .32)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background:var(--van-switch-background);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-duration)}.van-switch__node{position:absolute;top:min(.533vw,3.2px);left:min(.533vw,3.2px);width:var(--van-switch-node-size);height:var(--van-switch-node-size);font-size:inherit;background:var(--van-switch-node-background);border-radius:100%;box-shadow:var(--van-switch-node-shadow);transition:transform var(--van-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background:var(--van-switch-on-background)}.van-switch--on .van-switch__node{transform:translate(calc(var(--van-switch-width) - var(--van-switch-node-size) - min(1.067vw,6.4px)))}.van-switch--on .van-switch__loading{color:var(--van-switch-on-background)}.van-switch--disabled{cursor:not-allowed;opacity:var(--van-switch-disabled-opacity)}.van-switch--loading{cursor:default}:root,:host{--van-button-mini-height: min(6.4vw, 38.4px);--van-button-mini-padding: 0 var(--van-padding-base);--van-button-mini-font-size: var(--van-font-size-xs);--van-button-small-height: min(8.533vw, 51.2px);--van-button-small-padding: 0 var(--van-padding-xs);--van-button-small-font-size: var(--van-font-size-sm);--van-button-normal-padding: 0 min(4vw, 24px);--van-button-normal-font-size: var(--van-font-size-md);--van-button-large-height: min(13.333vw, 80px);--van-button-default-height: min(11.733vw, 70.4px);--van-button-default-line-height: 1.2;--van-button-default-font-size: var(--van-font-size-lg);--van-button-default-color: var(--van-text-color);--van-button-default-background: var(--van-background-2);--van-button-default-border-color: var(--van-gray-4);--van-button-primary-color: var(--van-white);--van-button-primary-background: var(--van-primary-color);--van-button-primary-border-color: var(--van-primary-color);--van-button-success-color: var(--van-white);--van-button-success-background: var(--van-success-color);--van-button-success-border-color: var(--van-success-color);--van-button-danger-color: var(--van-white);--van-button-danger-background: var(--van-danger-color);--van-button-danger-border-color: var(--van-danger-color);--van-button-warning-color: var(--van-white);--van-button-warning-background: var(--van-warning-color);--van-button-warning-border-color: var(--van-warning-color);--van-button-border-width: var(--van-border-width);--van-button-radius: var(--van-radius-md);--van-button-round-radius: var(--van-radius-max);--van-button-plain-background: var(--van-white);--van-button-disabled-opacity: var(--van-disabled-opacity);--van-button-icon-size: 1.2em;--van-button-loading-icon-size: min(5.333vw, 32px)}.van-theme-dark{--van-button-plain-background: transparent}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-radius);cursor:pointer;transition:opacity var(--van-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--van-black);border:inherit;border-color:var(--van-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.van-button:active:before{opacity:.1}.van-button--loading:before,.van-button--disabled:before{display:none}.van-button--default{color:var(--van-button-default-color);background:var(--van-button-default-background);border:var(--van-button-border-width) solid var(--van-button-default-border-color)}.van-button--primary{color:var(--van-button-primary-color);background:var(--van-button-primary-background);border:var(--van-button-border-width) solid var(--van-button-primary-border-color)}.van-button--success{color:var(--van-button-success-color);background:var(--van-button-success-background);border:var(--van-button-border-width) solid var(--van-button-success-border-color)}.van-button--danger{color:var(--van-button-danger-color);background:var(--van-button-danger-background);border:var(--van-button-border-width) solid var(--van-button-danger-border-color)}.van-button--warning{color:var(--van-button-warning-color);background:var(--van-button-warning-background);border:var(--van-button-border-width) solid var(--van-button-warning-border-color)}.van-button--plain{background:var(--van-button-plain-background)}.van-button--plain.van-button--primary{color:var(--van-button-primary-background)}.van-button--plain.van-button--success{color:var(--van-button-success-background)}.van-button--plain.van-button--danger{color:var(--van-button-danger-background)}.van-button--plain.van-button--warning{color:var(--van-button-warning-background)}.van-button--large{width:100%;height:var(--van-button-large-height)}.van-button--normal{padding:var(--van-button-normal-padding);font-size:var(--van-button-normal-font-size)}.van-button--small{height:var(--van-button-small-height);padding:var(--van-button-small-padding);font-size:var(--van-button-small-font-size)}.van-button__loading{color:inherit;font-size:inherit}.van-button__loading .van-loading__spinner{color:currentColor;width:var(--van-button-loading-icon-size);height:var(--van-button-loading-icon-size)}.van-button--mini{height:var(--van-button-mini-height);padding:var(--van-button-mini-padding);font-size:var(--van-button-mini-font-size)}.van-button--mini+.van-button--mini{margin-left:var(--van-padding-base)}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:var(--van-button-disabled-opacity)}.van-button--loading{cursor:default}.van-button--round{border-radius:var(--van-button-round-radius)}.van-button--square{border-radius:0}.van-button__content{display:flex;align-items:center;justify-content:center;height:100%}.van-button__content:before{content:" "}.van-button__icon{font-size:var(--van-button-icon-size);line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:var(--van-padding-base)}.van-button--hairline{border-width:0}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--van-button-radius) * 2)}.van-button--hairline.van-button--round:after{border-radius:var(--van-button-round-radius)}.van-button--hairline.van-button--square:after{border-radius:0}:root,:host{--van-submit-bar-height: min(13.333vw, 80px);--van-submit-bar-z-index: 100;--van-submit-bar-background: var(--van-background-2);--van-submit-bar-button-width: min(29.333vw, 176px);--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: min(5.333vw, 32px);--van-submit-bar-price-font: var(--van-price-font);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background: var(--van-orange-light);--van-submit-bar-tip-icon-size: min(3.2vw, 19.2px);--van-submit-bar-button-height: min(10.667vw, 64px);--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-submit-bar-z-index);width:min(100%,600px);background:var(--van-submit-bar-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}:root,:host{--van-signature-padding: var(--van-padding-xs);--van-signature-content-height: min(53.333vw, 320px);--van-signature-content-background: var(--van-background-2);--van-signature-content-border: min(.267vw, 1.6px) dotted #dadada}.van-signature{padding:var(--van-signature-padding)}.van-signature__content{display:flex;justify-content:center;align-items:center;height:var(--van-signature-content-height);background-color:var(--van-signature-content-background);border:var(--van-signature-content-border);border-radius:var(--van-radius-lg);overflow:hidden}.van-signature__content canvas{width:100%;height:100%}.van-signature__footer{display:flex;justify-content:flex-end}.van-signature__footer .van-button{padding:0 var(--van-padding-md);margin-top:var(--van-padding-xs);margin-left:var(--van-padding-xs)}:root,:host{--van-contact-edit-padding: var(--van-padding-md);--van-contact-edit-fields-radius: var(--van-radius-md);--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;--van-contact-edit-button-margin-bottom: var(--van-padding-sm);--van-contact-edit-button-font-size: var(--van-font-size-lg);--van-contact-edit-field-label-width: 4.1em}.van-contact-edit{padding:var(--van-contact-edit-padding)}.van-contact-edit__fields{overflow:hidden;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__fields .van-field__label{width:var(--van-contact-edit-field-label-width)}.van-contact-edit__switch-cell{margin-top:min(2.667vw,16px);padding-top:min(2.4vw,14.4px);padding-bottom:min(2.4vw,14.4px);border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__buttons{padding:var(--van-contact-edit-buttons-padding)}.van-contact-edit__button{margin-bottom:var(--van-contact-edit-button-margin-bottom);font-size:var(--van-contact-edit-button-font-size)}:root,:host{--van-action-bar-button-height: min(10.667vw, 64px);--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:min(1.333vw,8px);border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:min(1.333vw,8px);border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:min(3.467vw,20.8px)}}:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:var(--van-overlay-z-index);width:min(100%,600px);height:100%;background:var(--van-overlay-background)}:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: min(4.267vw, 25.6px);--van-popup-close-icon-size: min(5.867vw, 35.2px);--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: min(4.267vw, 25.6px);--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:calc(50% - min(50%,300px));right:calc(50% - min(50%,300px));width:-moz-fit-content;width:fit-content;max-width:calc(min(100vw,600px) - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:calc(50% - min(50%,300px));transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:calc(50% - min(50%,300px));transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}:root,:host{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: min(4.267vw, 25.6px);--van-share-sheet-icon-size: min(12.8vw, 76.8px);--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: min(12.8vw, 76.8px);--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-share-sheet__icon,.van-share-sheet__image-icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__icon{display:flex;align-items:center;justify-content:center;color:var(--van-gray-7);border-radius:100%;background-color:var(--van-gray-2)}.van-share-sheet__icon--link,.van-share-sheet__icon--poster,.van-share-sheet__icon--qrcode{font-size:min(6.933vw,41.6px)}.van-share-sheet__icon--weapp-qrcode{font-size:min(7.467vw,44.8px)}.van-share-sheet__icon--qq,.van-share-sheet__icon--weibo,.van-share-sheet__icon--wechat,.van-share-sheet__icon--wechat-moments{font-size:min(8vw,48px);color:var(--van-white)}.van-share-sheet__icon--qq{background-color:#38b9fa}.van-share-sheet__icon--wechat{background-color:#0bc15f}.van-share-sheet__icon--weibo{background-color:#ee575e}.van-share-sheet__icon--wechat-moments{background-color:#7bc845}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}:root,:host{--van-popover-arrow-size: min(1.6vw, 9.6px);--van-popover-radius: var(--van-radius-lg);--van-popover-action-width: min(34.133vw, 204.8px);--van-popover-action-height: min(11.733vw, 70.4px);--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: min(5.333vw, 32px);--van-popover-horizontal-action-height: min(9.067vw, 54.4px);--van-popover-horizontal-action-icon-size: min(4.267vw, 25.6px);--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background: var(--van-background-2);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-radius)}.van-popover__content--horizontal{display:flex;width:-moz-max-content;width:max-content}.van-popover__content--horizontal .van-popover__action{flex:none;width:auto;height:var(--van-popover-horizontal-action-height);padding:0 var(--van-padding-sm)}.van-popover__content--horizontal .van-popover__action:last-child:after{display:none}.van-popover__content--horizontal .van-popover__action-icon{margin-right:var(--van-padding-base);font-size:var(--van-popover-horizontal-action-icon-size)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background);box-shadow:0 min(.533vw,3.2px) min(3.2vw,19.2px) rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-ease-in)}:root,:host{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background: var(--van-primary-color);--van-notify-success-background: var(--van-success-color);--van-notify-danger-background: var(--van-danger-color);--van-notify-warning-background: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background:var(--van-notify-primary-background)}.van-notify--success{background:var(--van-notify-success-background)}.van-notify--danger{background:var(--van-notify-danger-background)}.van-notify--warning{background:var(--van-notify-warning-background)}:root,:host{--van-dialog-width: min(85.333vw, 512px);--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: min(4.267vw, 25.6px);--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: min(6.4vw, 38.4px);--van-dialog-header-padding-top: min(6.933vw, 41.6px);--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: min(12.8vw, 76.8px);--van-dialog-round-button-height: min(9.6vw, 57.6px);--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:min(27.733vw,166.4px)}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:min(6.933vw,41.6px) var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}:root,:host{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: min(9.6vw, 57.6px);--van-toast-text-min-width: min(25.6vw, 153.6px);--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: min(23.467vw, 140.8px);--van-toast-default-min-height: min(23.467vw, 140.8px);--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;word-break:break-all;text-align:center;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--break-normal{word-break:normal;word-wrap:normal}.van-toast--break-word{word-break:normal;word-wrap:break-word}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-moz-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}:root,:host{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: min(12.8vw, 76.8px);--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-item-icon-size: min(4.8vw, 28.8px);--van-action-sheet-item-icon-margin-right: var(--van-padding-xs);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: min(5.867vw, 35.2px);--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: min(5.867vw, 35.2px)}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;padding:min(3.733vw,22.4px) var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__item-icon{font-size:var(--van-action-sheet-item-icon-size);margin-right:var(--van-action-sheet-item-icon-margin-right)}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{width:100%;margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height);overflow-wrap:break-word}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:min(5.333vw,32px) var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}:root,:host{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}:root,:host{--van-swipe-indicator-size: min(1.6vw, 9.6px);--van-swipe-indicator-margin: var(--van-padding-sm);--van-swipe-indicator-active-opacity: 1;--van-swipe-indicator-inactive-opacity: .3;--van-swipe-indicator-active-background: var(--van-primary-color);--van-swipe-indicator-inactive-background: var(--van-border-color)}.van-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-swipe__track{display:flex;height:100%;transition-property:transform}.van-swipe__track--vertical{flex-direction:column}.van-swipe__indicators{position:absolute;bottom:var(--van-swipe-indicator-margin);left:50%;display:flex;transform:translate(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:var(--van-swipe-indicator-margin);flex-direction:column;transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:var(--van-swipe-indicator-size)}.van-swipe__indicator{width:var(--van-swipe-indicator-size);height:var(--van-swipe-indicator-size);background-color:var(--van-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--van-swipe-indicator-inactive-opacity);transition:opacity var(--van-duration-fast),background-color var(--van-duration-fast)}.van-swipe__indicator:not(:last-child){margin-right:var(--van-swipe-indicator-size)}.van-swipe__indicator--active{background-color:var(--van-swipe-indicator-active-background);opacity:var(--van-swipe-indicator-active-opacity)}.van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}:root,:host{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 min(.267vw, 1.6px) min(.267vw, 1.6px) var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: min(5.867vw, 35.2px);--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:calc(50% - min(50%,300px));width:min(100%,600px);height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:min(9.6vw,57.6px)}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}:root,:host{--van-uploader-size: min(21.333vw, 128px);--van-uploader-icon-size: min(6.4vw, 38.4px);--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: min(3.733vw, 22.4px);--van-uploader-delete-background: rgba(0, 0, 0, .7);--van-uploader-file-background: var(--van-background);--van-uploader-file-icon-size: min(5.333vw, 32px);--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: min(5.867vw, 35.2px);--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: min(5.867vw, 35.2px);--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity);--van-uploader-border-radius: 0px}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background);border-radius:var(--van-uploader-border-radius)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden;border-radius:var(--van-uploader-border-radius)}.van-uploader__preview-delete{position:absolute;top:0;right:0}.van-uploader__preview-delete--shadow{width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background:var(--van-uploader-delete-background);border-radius:0 0 0 min(3.2vw,19.2px)}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background:var(--van-uploader-mask-background);border-radius:var(--van-uploader-border-radius)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:min(1.6vw,9.6px);padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background:var(--van-uploader-file-background)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}:root,:host{--van-tab-text-color: var(--van-gray-7);--van-tab-active-text-color: var(--van-text-color);--van-tab-disabled-text-color: var(--van-text-color-3);--van-tab-font-size: var(--van-font-size-md);--van-tab-line-height: var(--van-line-height-md);--van-tabs-default-color: var(--van-primary-color);--van-tabs-line-height: min(11.733vw, 70.4px);--van-tabs-card-height: min(8vw, 48px);--van-tabs-nav-background: var(--van-background-2);--van-tabs-bottom-bar-width: min(10.667vw, 64px);--van-tabs-bottom-bar-height: min(.8vw, 4.8px);--van-tabs-bottom-bar-color: var(--van-primary-color)}.van-tab{position:relative;display:flex;flex:1;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--van-padding-base);color:var(--van-tab-text-color);font-size:var(--van-tab-font-size);line-height:var(--van-tab-line-height);cursor:pointer}.van-tab--active{color:var(--van-tab-active-text-color);font-weight:var(--van-font-bold)}.van-tab--disabled{color:var(--van-tab-disabled-text-color);cursor:not-allowed}.van-tab--grow{flex:1 0 auto;padding:0 var(--van-padding-sm)}.van-tab--shrink{flex:none;padding:0 var(--van-padding-xs)}.van-tab--card{color:var(--van-tabs-default-color);border-right:var(--van-border-width) solid var(--van-tabs-default-color)}.van-tab--card:last-child{border-right:none}.van-tab--card.van-tab--active{color:var(--van-white);background-color:var(--van-tabs-default-color)}.van-tab--card.van-tab--disabled{color:var(--van-tab-disabled-text-color)}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__nav{position:relative;display:flex;background:var(--van-tabs-nav-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__nav--complete::-webkit-scrollbar{display:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:min(4vw,24px)}.van-tabs__nav--line.van-tabs__nav--shrink,.van-tabs__nav--line.van-tabs__nav--complete{padding-right:var(--van-padding-xs);padding-left:var(--van-padding-xs)}.van-tabs__nav--card{box-sizing:border-box;height:var(--van-tabs-card-height);margin:0 var(--van-padding-md);border:var(--van-border-width) solid var(--van-tabs-default-color);border-radius:var(--van-radius-sm)}.van-tabs__nav--card.van-tabs__nav--shrink{display:inline-flex}.van-tabs__line{position:absolute;bottom:min(4vw,24px);left:0;z-index:1;width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}.van-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:var(--van-tabs-line-height)}.van-tabs--card>.van-tabs__wrap{height:var(--van-tabs-card-height)}.van-tab__panel,.van-tab__panel-wrapper{flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__panel-wrapper--inactive{height:0;overflow:visible}:root,:host{--van-cascader-header-height: min(12.8vw, 76.8px);--van-cascader-header-padding: 0 var(--van-padding-md);--van-cascader-title-font-size: var(--van-font-size-lg);--van-cascader-title-line-height: min(5.333vw, 32px);--van-cascader-close-icon-size: min(5.867vw, 35.2px);--van-cascader-close-icon-color: var(--van-gray-5);--van-cascader-selected-icon-size: min(4.8vw, 28.8px);--van-cascader-tabs-height: min(12.8vw, 76.8px);--van-cascader-active-color: var(--van-primary-color);--van-cascader-options-height: min(102.4vw, 614.4px);--van-cascader-option-disabled-color: var(--van-text-color-3);--van-cascader-tab-color: var(--van-text-color);--van-cascader-unselected-tab-color: var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs.van-tabs--line .van-tabs__wrap{height:var(--van-cascader-tabs-height)}.van-cascader__tab{color:var(--van-cascader-tab-color);font-weight:var(--van-font-bold)}.van-cascader__tab--unselected{color:var(--van-cascader-unselected-tab-color);font-weight:400}.van-cascader__option{display:flex;align-items:center;justify-content:space-between;padding:min(2.667vw,16px) var(--van-padding-md);font-size:var(--van-font-size-md);line-height:var(--van-line-height-md);cursor:pointer}.van-cascader__option:active{background-color:var(--van-active-color)}.van-cascader__option--selected{color:var(--van-cascader-active-color);font-weight:var(--van-font-bold)}.van-cascader__option--disabled{color:var(--van-cascader-option-disabled-color);cursor:not-allowed}.van-cascader__option--disabled:active{background-color:transparent}.van-cascader__selected-icon{font-size:var(--van-cascader-selected-icon-size)}.van-cascader__options{box-sizing:border-box;height:var(--van-cascader-options-height);padding-top:min(1.6vw,9.6px);overflow-y:auto;-webkit-overflow-scrolling:touch}:root,:host{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: min(11.733vw, 70.4px);--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-primary-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-picker__toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{position:absolute;left:50%;color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center;transform:translate(-50%)}.van-picker__columns{position:relative;display:flex;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}:root,:host{--van-picker-group-background: var(--van-background-2)}.van-picker-group{background:var(--van-picker-group-background)}.van-picker-group__tabs{margin-top:var(--van-padding-base)}.van-picker-group__tab-title{margin-right:min(4.267vw,25.6px)}:root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 min(.533vw, 3.2px) min(2.667vw, 16px) rgba(125, 126, 128, .16);--van-calendar-header-title-height: min(11.733vw, 70.4px);--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: min(7.467vw, 44.8px);--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: min(8vw, 48px);--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: min(42.667vw, 256px);--van-calendar-day-height: min(17.067vw, 102.4px);--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: min(1.067vw, 6.4px);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: min(14.4vw, 86.4px);--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: min(9.6vw, 57.6px);--van-calendar-confirm-button-margin: min(1.867vw, 11.2px) 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:min(2.933vw,17.6px)}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-switch{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:min(2.4vw,14.4px)}}.van-calendar__top-info{top:min(1.6vw,9.6px)}.van-calendar__bottom-info{bottom:min(1.6vw,9.6px)}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}:root,:host{--van-address-edit-padding: var(--van-padding-sm);--van-address-edit-buttons-padding: var(--van-padding-xl) var(--van-padding-base);--van-address-edit-button-margin-bottom: var(--van-padding-sm);--van-address-edit-button-font-size: var(--van-font-size-lg)}.van-address-edit{padding:var(--van-address-edit-padding)}.van-address-edit__fields{overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__fields .van-field__label{width:4.1em}.van-address-edit__default{margin-top:var(--van-padding-sm);overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__buttons{padding:var(--van-address-edit-buttons-padding)}.van-address-edit__button{margin-bottom:var(--van-address-edit-button-margin-bottom);font-size:var(--van-address-edit-button-font-size)}.van-address-edit-detail__search-item{background:var(--van-gray-2)}.van-radio-group--horizontal,.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}:root,:host{--van-checkbox-size: min(5.333vw, 32px);--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:min(.267vw,1.6px) solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--indeterminate .van-icon{display:flex;align-items:center;justify-content:center;color:var(--van-white);border-color:var(--van-checkbox-checked-icon-color);background-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root,:host{--van-coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);--van-coupon-content-height: min(22.4vw, 134.4px);--van-coupon-content-padding: min(3.733vw, 22.4px) 0;--van-coupon-content-text-color: var(--van-text-color);--van-coupon-background: var(--van-background-2);--van-coupon-active-background: var(--van-active-color);--van-coupon-radius: var(--van-radius-lg);--van-coupon-shadow: 0 0 min(1.067vw, 6.4px) rgba(0, 0, 0, .1);--van-coupon-head-width: min(25.6vw, 153.6px);--van-coupon-amount-color: var(--van-primary-color);--van-coupon-amount-font-size: min(8vw, 48px);--van-coupon-currency-font-size: 40%;--van-coupon-name-font-size: var(--van-font-size-md);--van-coupon-disabled-text-color: var(--van-text-color-2);--van-coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);--van-coupon-description-border-color: var(--van-border-color);--van-coupon-checkbox-color: var(--van-primary-color)}.van-coupon{margin:var(--van-coupon-margin);overflow:hidden;background:var(--van-coupon-background);border-radius:var(--van-coupon-radius);box-shadow:var(--van-coupon-shadow)}.van-coupon:active{background-color:var(--van-coupon-active-background)}.van-coupon__content{display:flex;align-items:center;box-sizing:border-box;min-height:var(--van-coupon-content-height);padding:var(--van-coupon-content-padding);color:var(--van-coupon-content-text-color)}.van-coupon__head{position:relative;min-width:var(--van-coupon-head-width);padding:0 var(--van-padding-xs);color:var(--van-coupon-amount-color);text-align:center}.van-coupon__amount,.van-coupon__condition,.van-coupon__name,.van-coupon__valid{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount{margin-bottom:min(1.6vw,9.6px);font-weight:var(--van-font-bold);font-size:var(--van-coupon-amount-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount span{font-size:var(--van-coupon-currency-font-size)}.van-coupon__amount span:not(:empty){margin-left:min(.533vw,3.2px)}.van-coupon__condition{font-size:var(--van-font-size-sm);line-height:min(4.267vw,25.6px);white-space:pre-wrap}.van-coupon__body{position:relative;flex:1}.van-coupon__name{margin-bottom:min(2.667vw,16px);font-weight:var(--van-font-bold);font-size:var(--van-coupon-name-font-size);line-height:var(--van-line-height-md)}.van-coupon__valid{font-size:var(--van-font-size-sm)}.van-coupon__corner{position:absolute;top:0;right:var(--van-padding-md);bottom:0}.van-coupon__corner .van-checkbox__icon--checked .van-icon{background-color:var(--van-coupon-checkbox-color);border-color:var(--van-coupon-checkbox-color)}.van-coupon__description{padding:var(--van-coupon-description-padding);font-size:var(--van-font-size-sm);border-top:min(.267vw,1.6px) dashed var(--van-coupon-description-border-color)}.van-coupon--disabled:active{background-color:var(--van-coupon-background)}.van-coupon--disabled .van-coupon-item__content{height:calc(var(--van-coupon-content-height) - min(2.667vw,16px))}.van-coupon--disabled .van-coupon__head{color:inherit}:root,:host{--van-radio-size: min(5.333vw, 32px);--van-radio-dot-size: min(2.133vw, 12.8px);--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:min(.267vw,1.6px) solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--dot{position:relative;border-radius:100%;box-sizing:border-box;width:var(--van-radio-size);height:var(--van-radio-size);border:min(.267vw,1.6px) solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:border-color}.van-radio__icon--dot__icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;height:calc(100% - var(--van-radio-dot-size));width:calc(100% - var(--van-radio-dot-size));transition-duration:var(--van-radio-duration);transition-property:background-color}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot{border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot .van-radio__icon--dot__icon{background:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}:root,:host{--van-contact-list-padding: var(--van-padding-sm) var(--van-padding-sm) min(21.333vw, 128px);--van-contact-list-edit-icon-size: min(4.267vw, 25.6px);--van-contact-list-add-button-z-index: 999;--van-contact-list-radio-color: var(--van-primary-color);--van-contact-list-item-padding: var(--van-padding-md)}.van-contact-list{box-sizing:border-box;height:100%;padding:var(--van-contact-list-padding)}.van-contact-list__item{padding:var(--van-contact-list-item-padding)}.van-contact-list__item-title{display:flex;align-items:center;padding-right:var(--van-padding-xl);padding-left:var(--van-padding-xs)}.van-contact-list__item-tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-contact-list__group{box-sizing:border-box;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;border-radius:var(--van-radius-lg)}.van-contact-list__edit{font-size:var(--van-contact-list-edit-icon-size)}.van-contact-list__radio .van-radio__icon--checked .van-icon{background-color:var(--van-contact-list-radio-color);border-color:var(--van-contact-list-radio-color)}.van-contact-list__bottom{position:fixed;right:calc(50% - min(50%,300px));bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-contact-list-add-button-z-index);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-contact-list__add{height:min(10.667vw,64px);margin:min(1.333vw,8px) 0}:root,:host{--van-address-list-padding: var(--van-padding-sm) var(--van-padding-sm) min(21.333vw, 128px);--van-address-list-disabled-text-color: var(--van-text-color-2);--van-address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0;--van-address-list-disabled-text-font-size: var(--van-font-size-md);--van-address-list-disabled-text-line-height: var(--van-line-height-md);--van-address-list-add-button-z-index: 999;--van-address-list-item-padding: var(--van-padding-sm);--van-address-list-item-text-color: var(--van-text-color);--van-address-list-item-disabled-text-color: var(--van-text-color-3);--van-address-list-item-font-size: min(3.467vw, 20.8px);--van-address-list-item-line-height: var(--van-line-height-sm);--van-address-list-radio-color: var(--van-primary-color);--van-address-list-edit-icon-size: min(5.333vw, 32px)}.van-address-list{box-sizing:border-box;height:100%;padding:var(--van-address-list-padding)}.van-address-list__bottom{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-address-list-add-button-z-index);box-sizing:border-box;width:min(100%,600px);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-address-list__add{height:min(10.667vw,64px);margin:min(1.333vw,8px) 0}.van-address-list__disabled-text{padding:var(--van-address-list-disabled-text-padding);color:var(--van-address-list-disabled-text-color);font-size:var(--van-address-list-disabled-text-font-size);line-height:var(--van-address-list-disabled-text-line-height)}.van-address-item{padding:var(--van-address-list-item-padding);background-color:var(--van-background-2);border-radius:var(--van-radius-lg)}.van-address-item:not(:last-child){margin-bottom:var(--van-padding-sm)}.van-address-item__title{padding-right:min(11.733vw,70.4px)}.van-address-item__name{display:flex;align-items:center;margin-bottom:var(--van-padding-xs);font-size:var(--van-font-size-lg);line-height:var(--van-line-height-lg)}.van-address-item__tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-address-item__address{color:var(--van-address-list-item-text-color);font-size:var(--van-address-list-item-font-size);line-height:var(--van-address-list-item-line-height)}.van-address-item--disabled .van-address-item__name,.van-address-item--disabled .van-address-item__address{color:var(--van-address-list-item-disabled-text-color)}.van-address-item__edit{position:absolute;top:50%;right:var(--van-padding-md);color:var(--van-gray-6);font-size:var(--van-address-list-edit-icon-size);transform:translateY(-50%)}.van-address-item .van-cell{padding:0}.van-address-item .van-radio__label{margin-left:var(--van-padding-sm)}.van-address-item .van-radio__icon--checked .van-icon{background-color:var(--van-address-list-radio-color);border-color:var(--van-address-list-radio-color)}:root,:host{--van-barrage-font-size: min(4.267vw, 25.6px);--van-barrage-space: min(2.667vw, 16px);--van-barrage-font: inherit;--van-barrage-color: var(--van-white)}.van-barrage{position:relative;overflow:hidden}.van-barrage__item{position:absolute;top:0;right:0;z-index:99;padding-bottom:var(--van-barrage-space);opacity:.75;line-height:1;font-size:var(--van-barrage-font-size);font-family:var(--van-barrage-font);font-weight:700;white-space:nowrap;color:var(--van-barrage-color);text-shadow:min(.267vw,1.6px) 0 min(.267vw,1.6px) #000000,0 min(.267vw,1.6px) min(.267vw,1.6px) #000000,0 max(-.267vw,-1.6px) min(.267vw,1.6px) #000000,max(-.267vw,-1.6px) 0 min(.267vw,1.6px) #000000;-webkit-user-select:none;-moz-user-select:none;user-select:none;will-change:transform;transform:translate(110%)}@keyframes van-barrage{0%{transform:translate(110%)}to{transform:translate(var(--move-distance))}}:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: min(4.267vw, 25.6px);--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}:root,:host{--van-circle-size: min(26.667vw, 160px);--van-circle-color: var(--van-primary-color);--van-circle-layer-color: var(--van-white);--van-circle-text-color: var(--van-text-color);--van-circle-text-font-weight: var(--van-font-bold);--van-circle-text-font-size: var(--van-font-size-md);--van-circle-text-line-height: var(--van-line-height-md)}.van-circle{position:relative;display:inline-block;width:var(--van-circle-size);height:var(--van-circle-size);text-align:center}.van-circle svg{position:absolute;top:0;left:0;width:100%;height:100%}.van-circle__layer{stroke:var(--van-circle-layer-color)}.van-circle__hover{fill:none;stroke:var(--van-circle-color);stroke-linecap:round}.van-circle__text{position:absolute;top:50%;left:0;box-sizing:border-box;width:100%;padding:0 var(--van-padding-base);color:var(--van-circle-text-color);font-weight:var(--van-circle-text-font-weight);font-size:var(--van-circle-text-font-size);line-height:var(--van-circle-text-line-height);transform:translateY(-50%)}.van-row{display:flex;flex-wrap:wrap}.van-row--nowrap{flex-wrap:nowrap}.van-row--justify-center{justify-content:center}.van-row--justify-end{justify-content:flex-end}.van-row--justify-space-between{justify-content:space-between}.van-row--justify-space-around{justify-content:space-around}.van-row--align-center{align-items:center}.van-row--align-bottom{align-items:flex-end}.van-col{display:block;box-sizing:border-box;min-height:min(.267vw,1.6px)}.van-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{flex:0 0 12.5%;max-width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{flex:0 0 25%;max-width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{flex:0 0 37.5%;max-width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{flex:0 0 50%;max-width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{flex:0 0 62.5%;max-width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{flex:0 0 75%;max-width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{flex:0 0 87.5%;max-width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{flex:0 0 100%;max-width:100%}.van-col--offset-24{margin-left:100%}:root,:host{--van-count-down-text-color: var(--van-text-color);--van-count-down-font-size: var(--van-font-size-md);--van-count-down-line-height: var(--van-line-height-md)}.van-count-down{color:var(--van-count-down-text-color);font-size:var(--van-count-down-font-size);line-height:var(--van-count-down-line-height)}:root,:host{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: min(42.667vw, 256px);--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 min(16vw, 96px);--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: min(6.4vw, 38.4px)}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}:root,:host{--van-coupon-list-background: var(--van-background);--van-coupon-list-field-padding: min(1.333vw, 8px) 0 min(1.333vw, 8px) var(--van-padding-md);--van-coupon-list-exchange-button-height: min(8.533vw, 51.2px);--van-coupon-list-close-button-height: min(10.667vw, 64px);--van-coupon-list-empty-tip-color: var(--van-text-color-2);--van-coupon-list-empty-tip-font-size: var(--van-font-size-md);--van-coupon-list-empty-tip-line-height: var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background:var(--van-coupon-list-background)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:min(9.067vw,54.4px);padding-left:var(--van-padding-sm);line-height:min(9.067vw,54.4px);background:var(--van-background);border-radius:var(--van-radius-max)}.van-coupon-list__field .van-field__body::-moz-placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-background-2)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - min(.533vw,3.2px));border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 min(1.6vw,9.6px) min(3.2vw,19.2px) max(-3.2vw,-19.2px) var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-bottom{padding-bottom:min(13.333vw,80px)}.van-coupon-list__bottom{position:absolute;bottom:0;left:0;z-index:999;box-sizing:border-box;width:100%;padding:min(1.333vw,8px) var(--van-padding-md);font-weight:var(--van-font-bold);background-color:var(--van-background-2)}.van-coupon-list__close{height:var(--van-coupon-list-close-button-height)}.van-coupon-list__empty-tip{color:var(--van-coupon-list-empty-tip-color);font-size:var(--van-coupon-list-empty-tip-font-size);line-height:var(--van-coupon-list-empty-tip-line-height)}:root,:host{--van-divider-margin: var(--van-padding-md) 0;--van-divider-vertical-margin: 0 var(--van-padding-xs);--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: min(6.4vw, 38.4px);--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:min(.267vw,1.6px);border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}.van-divider--vertical{display:inline-block;width:var(--van-border-width);height:1em;margin:var(--van-divider-vertical-margin);vertical-align:middle}.van-divider--vertical:before{height:100%;border-width:0 0 0 var(--van-border-width)}.van-divider--vertical:after{display:none}.van-divider--vertical.van-divider--hairline:before{transform:scaleX(.5)}:root,:host{--van-dropdown-menu-height: min(12.8vw, 76.8px);--van-dropdown-menu-background: var(--van-background-2);--van-dropdown-menu-shadow: 0 min(.533vw, 3.2px) min(3.2vw, 19.2px) rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: min(4vw, 24px);--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-primary-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-primary-color);--van-dropdown-menu-option-disabled-color: var(--van-text-color-3);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);box-shadow:var(--van-dropdown-menu-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__bar--scrollable{padding-left:var(--van-padding-base);padding-right:var(--van-padding-xs);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-dropdown-menu__bar--scrollable::-webkit-scrollbar{display:none}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__item--grow{flex:1 0 auto;padding-left:var(--van-padding-base);padding-right:var(--van-padding-sm)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:max(-1.067vw,-6.4px);margin-top:max(-1.333vw,-8px);border:min(.8vw,4.8px) solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:max(-.267vw,-1.6px);transform:rotate(135deg)}:root,:host{--van-dropdown-item-z-index: 10}.van-dropdown-item{position:fixed;right:calc(50% - min(50%,300px));left:calc(50% - min(50%,300px));z-index:var(--van-dropdown-item-z-index);overflow:hidden}.van-dropdown-item__icon{display:block;line-height:inherit}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active,.van-dropdown-item__option--active .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-active-color)}.van-dropdown-item__option--disabled,.van-dropdown-item__option--disabled .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-disabled-color)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__content{position:absolute;max-height:var(--van-dropdown-menu-content-max-height)}:root,:host{--van-floating-panel-border-radius: min(4.267vw, 25.6px);--van-floating-panel-header-height: min(8vw, 48px);--van-floating-panel-z-index: 999;--van-floating-panel-background: var(--van-background-2);--van-floating-panel-bar-width: min(5.333vw, 32px);--van-floating-panel-bar-height: min(.8vw, 4.8px);--van-floating-panel-bar-color: var(--van-gray-5)}.van-floating-panel{position:fixed;left:calc(50% - min(50%,300px));bottom:0;width:min(100vw,600px);z-index:var(--van-floating-panel-z-index);display:flex;flex-direction:column;touch-action:none;border-top-left-radius:var(--van-floating-panel-border-radius);border-top-right-radius:var(--van-floating-panel-border-radius);background:var(--van-floating-panel-background);will-change:transform}.van-floating-panel:after{content:"";display:block;position:absolute;bottom:-100vh;height:100vh;width:min(100vw,600px);background-color:inherit}.van-floating-panel__header{height:var(--van-floating-panel-header-height);display:flex;justify-content:center;align-items:center;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-floating-panel__header-bar{height:var(--van-floating-panel-bar-height);width:var(--van-floating-panel-bar-width);border-radius:var(--van-radius-md);background:var(--van-floating-panel-bar-color)}.van-floating-panel__content{flex:1;overflow-y:auto;background-color:var(--van-floating-panel-background)}.van-grid{display:flex;flex-wrap:wrap}:root,:host{--van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);--van-grid-item-content-background: var(--van-background-2);--van-grid-item-content-active-color: var(--van-active-color);--van-grid-item-icon-size: min(7.467vw, 44.8px);--van-grid-item-text-color: var(--van-text-color);--van-grid-item-text-font-size: var(--van-font-size-sm)}.van-grid-item{position:relative;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__icon{font-size:var(--van-grid-item-icon-size)}.van-grid-item__text{color:var(--van-grid-item-text-color);font-size:var(--van-grid-item-text-font-size);line-height:1.5;word-break:break-all}.van-grid-item__icon+.van-grid-item__text{margin-top:var(--van-padding-xs)}.van-grid-item__content{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:var(--van-grid-item-content-padding);background:var(--van-grid-item-content-background)}.van-grid-item__content:after{z-index:1;border-width:0 var(--van-border-width) var(--van-border-width) 0}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 var(--van-padding-xs)}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 var(--van-padding-xs)}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 var(--van-padding-xs) 0 0}.van-grid-item__content--surround:after{border-width:var(--van-border-width)}.van-grid-item__content--clickable{cursor:pointer}.van-grid-item__content--clickable:active{background-color:var(--van-grid-item-content-active-color)}:root,:host{--van-highlight-tag-color: var(--van-primary-color)}.van-highlight__tag{color:var(--van-highlight-tag-color)}:root,:host{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-primary-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:calc(50% - min(50%,300px));z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color);font-weight:700}:root,:host{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: min(8.533vw, 51.2px);--van-index-anchor-background: transparent;--van-index-anchor-sticky-text-color: var(--van-primary-color);--van-index-anchor-sticky-background: var(--van-background-2)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background)}.van-index-anchor--sticky{position:fixed;top:0;right:calc(50% - min(50%,300px));left:calc(50% - min(50%,300px));color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background)}:root,:host{--van-pagination-height: min(10.667vw, 64px);--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: min(9.6vw, 57.6px);--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}:root,:host{--van-password-input-height: min(13.333vw, 80px);--van-password-input-margin: 0 var(--van-padding-md);--van-password-input-font-size: min(5.333vw, 32px);--van-password-input-radius: min(1.6vw, 9.6px);--van-password-input-background: var(--van-background-2);--van-password-input-info-color: var(--van-text-color-2);--van-password-input-info-font-size: var(--van-font-size-md);--van-password-input-error-info-color: var(--van-danger-color);--van-password-input-dot-size: min(2.667vw, 16px);--van-password-input-dot-color: var(--van-text-color);--van-password-input-text-color: var(--van-text-color);--van-password-input-cursor-color: var(--van-text-color);--van-password-input-cursor-width: min(.267vw, 1.6px);--van-password-input-cursor-height: 40%;--van-password-input-cursor-duration: 1s}.van-password-input{position:relative;margin:var(--van-password-input-margin);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-password-input__info,.van-password-input__error-info{margin-top:var(--van-padding-md);font-size:var(--van-password-input-info-font-size);text-align:center}.van-password-input__info{color:var(--van-password-input-info-color)}.van-password-input__error-info{color:var(--van-password-input-error-info-color)}.van-password-input__security{display:flex;width:100%;height:var(--van-password-input-height);cursor:pointer}.van-password-input__security:after{border-radius:var(--van-password-input-radius)}.van-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--van-password-input-text-color);font-size:var(--van-password-input-font-size);line-height:1.2;background:var(--van-password-input-background)}.van-password-input__security i{position:absolute;top:50%;left:50%;width:var(--van-password-input-dot-size);height:var(--van-password-input-dot-size);background:var(--van-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--van-password-input-cursor-width);height:var(--van-password-input-cursor-height);background:var(--van-password-input-cursor-color);transform:translate(-50%,-50%);animation:var(--van-password-input-cursor-duration) van-cursor-flicker infinite}@keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}:root,:host{--van-progress-height: min(1.067vw, 6.4px);--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background: var(--van-gray-3);--van-progress-pivot-padding: 0 min(1.333vw, 8px);--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background);border-radius:1em;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}:root,:host{--van-rolling-text-background: inherit;--van-rolling-text-color: var(--van-text-color);--van-rolling-text-font-size: var(--van-font-size-md);--van-rolling-text-gap: 0px;--van-rolling-text-item-width: min(4vw, 24px);--van-rolling-text-item-border-radius: 0px}.van-rolling-text{display:inline-flex;justify-content:center;align-items:center;font-size:var(--van-rolling-text-font-size);color:var(--van-rolling-text-color)}.van-rolling-text-item{margin-right:var(--van-rolling-text-gap);width:var(--van-rolling-text-item-width);border-radius:var(--van-rolling-text-item-border-radius);background:var(--van-rolling-text-background);overflow:hidden}.van-rolling-text-item:last-child{margin-right:0}.van-rolling-text-item__box{overflow:hidden}.van-rolling-text-item__box--animate{animation:van-up var(--van-duration) ease-in-out var(--van-delay);animation-iteration-count:1;animation-fill-mode:both}.van-rolling-text-item__item{text-align:center}.van-rolling-text-item--down .van-rolling-text-item__box{transform:translateY(var(--van-translate))}.van-rolling-text-item--down .van-rolling-text-item__box--animate{animation-name:van-down}@keyframes van-down{0%{transform:translateY(var(--van-translate))}to{transform:translateY(0)}}@keyframes van-up{0%{transform:translateY(0)}to{transform:translateY(var(--van-translate))}}:root,:host{--van-sidebar-width: min(21.333vw, 128px)}.van-sidebar{width:var(--van-sidebar-width);overflow-y:auto;-webkit-overflow-scrolling:touch}:root,:host{--van-sidebar-font-size: var(--van-font-size-md);--van-sidebar-line-height: var(--van-line-height-md);--van-sidebar-text-color: var(--van-text-color);--van-sidebar-disabled-text-color: var(--van-text-color-3);--van-sidebar-padding: min(5.333vw, 32px) var(--van-padding-sm);--van-sidebar-active-color: var(--van-active-color);--van-sidebar-background: var(--van-background);--van-sidebar-selected-font-weight: var(--van-font-bold);--van-sidebar-selected-text-color: var(--van-text-color);--van-sidebar-selected-border-width: min(1.067vw, 6.4px);--van-sidebar-selected-border-height: min(4.267vw, 25.6px);--van-sidebar-selected-border-color: var(--van-primary-color);--van-sidebar-selected-background: var(--van-background-2)}.van-sidebar-item{position:relative;display:block;box-sizing:border-box;padding:var(--van-sidebar-padding);overflow:hidden;color:var(--van-sidebar-text-color);font-size:var(--van-sidebar-font-size);line-height:var(--van-sidebar-line-height);background:var(--van-sidebar-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-sidebar-item:active{background-color:var(--van-sidebar-active-color)}.van-sidebar-item:not(:last-child):after{border-bottom-width:min(.267vw,1.6px)}.van-sidebar-item__text{word-break:break-all}.van-sidebar-item--select{color:var(--van-sidebar-selected-text-color);font-weight:var(--van-sidebar-selected-font-weight)}.van-sidebar-item--select,.van-sidebar-item--select:active{background-color:var(--van-sidebar-selected-background)}.van-sidebar-item--select:before{position:absolute;top:50%;left:0;width:var(--van-sidebar-selected-border-width);height:var(--van-sidebar-selected-border-height);background-color:var(--van-sidebar-selected-border-color);transform:translateY(-50%);content:""}.van-sidebar-item--disabled{color:var(--van-sidebar-disabled-text-color);cursor:not-allowed}.van-sidebar-item--disabled:active{background-color:var(--van-sidebar-background)}:root,:host{--van-tree-select-font-size: var(--van-font-size-md);--van-tree-select-nav-background: var(--van-background);--van-tree-select-content-background: var(--van-background-2);--van-tree-select-nav-item-padding: min(3.733vw, 22.4px) var(--van-padding-sm);--van-tree-select-item-height: min(12.8vw, 76.8px);--van-tree-select-item-active-color: var(--van-primary-color);--van-tree-select-item-disabled-color: var(--van-gray-5);--van-tree-select-item-selected-size: min(4.267vw, 25.6px)}.van-tree-select{position:relative;display:flex;font-size:var(--van-tree-select-font-size)}.van-tree-select__nav{flex:1;overflow-y:auto;background:var(--van-tree-select-nav-background);-webkit-overflow-scrolling:touch}.van-tree-select__nav-item{padding:var(--van-tree-select-nav-item-padding)}.van-tree-select__content{flex:2;overflow-y:auto;background:var(--van-tree-select-content-background);-webkit-overflow-scrolling:touch}.van-tree-select__item{position:relative;padding:0 min(8.533vw,51.2px) 0 var(--van-padding-md);font-weight:var(--van-font-bold);line-height:var(--van-tree-select-item-height);-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.van-tree-select__item--active{color:var(--van-tree-select-item-active-color)}.van-tree-select__item:active{background-color:var(--van-active-color)}.van-tree-select__item--disabled{color:var(--van-tree-select-item-disabled-color);cursor:not-allowed}.van-tree-select__item--disabled:active{background-color:transparent}.van-tree-select__selected{position:absolute;top:50%;right:var(--van-padding-md);margin-top:calc(var(--van-padding-xs) * -1);font-size:var(--van-tree-select-item-selected-size)}:root,:host{--van-skeleton-title-width: 40%}.van-skeleton-title{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-title--round{border-radius:var(--van-radius-max)}.van-skeleton-title{width:var(--van-skeleton-title-width);margin:0}.van-skeleton-title+.van-skeleton-paragraph{margin-top:min(5.333vw,32px)}:root,:host{--van-skeleton-avatar-size: min(8.533vw, 51.2px);--van-skeleton-avatar-background: var(--van-active-color)}.van-skeleton-avatar{flex-shrink:0;width:var(--van-skeleton-avatar-size);height:var(--van-skeleton-avatar-size);margin-right:var(--van-padding-md);background:var(--van-skeleton-avatar-background)}.van-skeleton-avatar--round{border-radius:var(--van-radius-max)}.van-skeleton-avatar+.van-skeleton__content{padding-top:var(--van-padding-xs)}:root,:host{--van-skeleton-paragraph-height: min(4.267vw, 25.6px);--van-skeleton-paragraph-background: var(--van-active-color);--van-skeleton-paragraph-margin-top: var(--van-padding-sm)}.van-skeleton-paragraph{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-paragraph--round{border-radius:var(--van-radius-max)}.van-skeleton-paragraph:not(:first-child){margin-top:var(--van-skeleton-paragraph-margin-top)}:root,:host{--van-skeleton-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton__content{width:100%}.van-skeleton--animate{animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}:root,:host{--van-slider-active-background: var(--van-primary-color);--van-slider-inactive-background: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: min(.533vw, 3.2px);--van-slider-button-width: min(6.4vw, 38.4px);--van-slider-button-height: min(6.4vw, 38.4px);--van-slider-button-radius: 50%;--van-slider-button-background: var(--van-white);--van-slider-button-shadow: 0 min(.267vw, 1.6px) min(.533vw, 3.2px) rgba(0, 0, 0, .5)}.van-theme-dark{--van-slider-inactive-background: var(--van-background-3)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background);border-radius:var(--van-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background);border-radius:inherit;transition:all var(--van-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background);border-radius:var(--van-slider-button-radius);box-shadow:var(--van-slider-button-shadow)}.van-slider__button-wrapper{position:absolute;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper--left{left:0;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}.van-space{display:inline-flex}.van-space--horizontal .van-space-item{display:flex;align-items:center}.van-space--vertical{flex-direction:column}.van-space--align-baseline{align-items:baseline}.van-space--align-start{align-items:flex-start}.van-space--align-end{align-items:flex-end}.van-space--align-center{align-items:center}.van-space--wrap{flex-wrap:wrap}.van-space--fill{display:flex}:root,:host{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:min(2.667vw,16px) min(2.667vw,16px) 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 min(2.667vw,16px);padding-bottom:min(5.867vw,35.2px)}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}:root,:host{--van-step-text-color: var(--van-text-color-2);--van-step-active-color: var(--van-primary-color);--van-step-process-text-color: var(--van-text-color);--van-step-font-size: var(--van-font-size-md);--van-step-line-color: var(--van-border-color);--van-step-finish-line-color: var(--van-primary-color);--van-step-finish-text-color: var(--van-text-color);--van-step-icon-size: min(3.2vw, 19.2px);--van-step-circle-size: min(1.333vw, 8px);--van-step-circle-color: var(--van-gray-6);--van-step-horizontal-title-font-size: var(--van-font-size-sm)}.van-step{position:relative;flex:1;color:var(--van-step-text-color);font-size:var(--van-step-font-size)}.van-step__circle{display:block;width:var(--van-step-circle-size);height:var(--van-step-circle-size);background-color:var(--van-step-circle-color);border-radius:50%}.van-step__line{position:absolute;background-color:var(--van-step-line-color);transition:background-color var(--van-duration-base)}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child:not(:first-child){position:absolute;right:min(.267vw,1.6px);width:auto}.van-step--horizontal:last-child:not(:first-child) .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child:not(:first-child) .van-step__circle-container{right:max(-2.4vw,-14.4px);left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:min(8vw,48px);left:calc(var(--van-padding-xs) * -1);z-index:1;padding:0 var(--van-padding-xs);background-color:var(--van-background-2);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:min(.8vw,4.8px);font-size:var(--van-step-horizontal-title-font-size);transform:translate(-50%)}.van-step--horizontal .van-step__line{top:min(8vw,48px);left:0;width:100%;height:min(.267vw,1.6px)}.van-step--horizontal .van-step__icon{display:block;font-size:var(--van-step-icon-size)}.van-step--horizontal .van-step--process{color:var(--van-step-process-text-color)}.van-step--vertical{display:block;float:none;padding:min(2.667vw,16px) min(2.667vw,16px) min(2.667vw,16px) 0;line-height:var(--van-line-height-sm)}.van-step--vertical:not(:last-child):after{border-bottom-width:min(.267vw,1.6px)}.van-step--vertical .van-step__circle-container{position:absolute;top:min(5.067vw,30.4px);left:max(-4vw,-24px);z-index:1;font-size:var(--van-step-icon-size);line-height:1;transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:min(4.267vw,25.6px);left:max(-4vw,-24px);width:min(.267vw,1.6px);height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:var(--van-step-finish-text-color)}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:var(--van-step-finish-line-color)}.van-step__icon,.van-step__title{transition:color var(--van-duration-base)}.van-step__icon--active,.van-step__title--active,.van-step__icon--finish,.van-step__title--finish{color:var(--van-step-active-color)}:root,:host{--van-stepper-background: var(--van-active-color);--van-stepper-button-icon-color: var(--van-text-color);--van-stepper-button-disabled-color: var(--van-background);--van-stepper-button-disabled-icon-color: var(--van-gray-5);--van-stepper-button-round-theme-color: var(--van-primary-color);--van-stepper-input-width: min(8.533vw, 51.2px);--van-stepper-input-height: min(7.467vw, 44.8px);--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: normal;--van-stepper-input-text-color: var(--van-text-color);--van-stepper-input-disabled-text-color: var(--van-text-color-3);--van-stepper-input-disabled-background: var(--van-active-color);--van-stepper-radius: var(--van-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background);border:0}.van-stepper__minus:before,.van-stepper__plus:before{width:50%;height:min(.267vw,1.6px)}.van-stepper__minus:after,.van-stepper__plus:after{width:min(.267vw,1.6px);height:50%}.van-stepper__minus:before,.van-stepper__plus:before,.van-stepper__minus:after,.van-stepper__plus:after{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:""}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-radius) 0 0 var(--van-stepper-radius)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-radius) var(--van-stepper-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 min(.533vw,3.2px);padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background);border:0;border-width:min(.267vw,1.6px) 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:-moz-read-only{cursor:default}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__plus,.van-stepper--round .van-stepper__minus{border-radius:100%}.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-2);border:min(.267vw,1.6px) solid var(--van-stepper-button-round-theme-color)}.van-swipe-cell{position:relative;overflow:hidden;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}:root,:host{--van-tabbar-height: min(13.333vw, 80px);--van-tabbar-z-index: 1;--van-tabbar-background: var(--van-background-2)}.van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:var(--van-tabbar-height);background:var(--van-tabbar-background)}.van-tabbar--fixed{position:fixed;bottom:0;left:calc(50% - min(50%,300px))}:root,:host{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: min(5.867vw, 35.2px);--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:min(5.333vw,32px)}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}:root,:host{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;overflow-wrap:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}:root,:host{--van-watermark-z-index: 100}.van-watermark{position:absolute;height:100%;width:100%;left:0;top:0;z-index:var(--van-watermark-z-index);background-repeat:repeat;pointer-events:none}.van-watermark__wrapper{display:none}.van-watermark--full{position:fixed}.app-setting[data-v-7a97f5ed]{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));position:fixed;top:70%;right:calc(50% - min(50%,300px));z-index:10;display:flex;align-items:center;justify-content:center;width:min(13.333vw,80px);height:min(13.333vw,80px);font-size:min(6.4vw,38.4px);cursor:pointer;border-radius:min(1.333vw,8px) 0 0 min(1.333vw,8px)}.dark .app-setting[data-v-7a97f5ed]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.app-setting .icon[data-v-7a97f5ed]{animation:rotate-7a97f5ed 5s linear infinite}@keyframes rotate-7a97f5ed{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.navbar-enter-active[data-v-7a97f5ed],.navbar-leave-active[data-v-7a97f5ed]{transition:transform .15s ease-in-out}.navbar-enter-from[data-v-7a97f5ed],.navbar-leave-to[data-v-7a97f5ed]{transform:translateY(-100%)}.tabbar-enter-active[data-v-7a97f5ed],.tabbar-leave-active[data-v-7a97f5ed]{transition:transform .15s ease-in-out}.tabbar-enter-from[data-v-7a97f5ed],.tabbar-leave-to[data-v-7a97f5ed]{transform:translateY(100%)}.fade-enter-active[data-v-7a97f5ed],.slide-left-enter-active[data-v-7a97f5ed],.slide-right-enter-active[data-v-7a97f5ed],.slide-top-enter-active[data-v-7a97f5ed],.slide-bottom-enter-active[data-v-7a97f5ed]{transition:.2s}.fade-leave-active[data-v-7a97f5ed],.slide-left-leave-active[data-v-7a97f5ed],.slide-right-leave-active[data-v-7a97f5ed],.slide-top-leave-active[data-v-7a97f5ed],.slide-bottom-leave-active[data-v-7a97f5ed]{transition:.15s}.fade-enter-from[data-v-7a97f5ed],.fade-leave-to[data-v-7a97f5ed]{opacity:0}.slide-left-enter-from[data-v-7a97f5ed]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-left-leave-to[data-v-7a97f5ed],.slide-right-enter-from[data-v-7a97f5ed]{margin-right:min(5.333vw,32px);margin-left:max(-5.333vw,-32px);opacity:0}.slide-right-leave-to[data-v-7a97f5ed]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-top-enter-from[data-v-7a97f5ed]{margin-top:min(5.333vw,32px);opacity:0}.slide-top-leave-to[data-v-7a97f5ed],.slide-bottom-enter-from[data-v-7a97f5ed]{margin-top:max(-5.333vw,-32px);opacity:0}.slide-bottom-leave-to[data-v-7a97f5ed]{margin-top:min(5.333vw,32px);opacity:0}.m-message-container{position:fixed;z-index:1010;pointer-events:none;display:flex;flex-direction:column;box-sizing:border-box;padding:min(4vw,24px);background-color:rgba(255,255,255,0);transition:all 1s ease-in-out}.m-message-container.is-top-left,.m-message-container.is-top-center,.m-message-container.is-top-right{width:100%;top:0;left:0}.m-message-container.is-top-left{align-items:flex-start}.m-message-container.is-top-center{align-items:center}.m-message-container.is-top-right{align-items:flex-end}.m-message-container.is-center{width:100%;height:100%;left:0;top:0;align-items:center;justify-content:center}.m-message-container.is-bottom-left,.m-message-container.is-bottom-center,.m-message-container.is-bottom-right{bottom:0;left:0;width:100%;justify-content:flex-end}.m-message-container.is-bottom-left{align-items:flex-start}.m-message-container.is-bottom-center{align-items:center}.m-message-container.is-bottom-right{align-items:flex-end}.m-message-container.has-mask{background-color:rgba(255,255,255,.3);width:100%;height:100%;pointer-events:all}.m-message-wrapper{display:inline-block;max-width:min(133.333vw,800px)}.m-message-wrapper+.m-message-wrapper{margin-top:min(4vw,24px)}.m-message-wrapper:before,.m-message-wrapper:after{content:"";clear:both;display:table}.m-message{display:flex;align-items:center;padding:min(2.667vw,16px);font-size:min(3.733vw,22.4px);overflow:hidden;border-radius:min(1.067vw,6.4px);box-sizing:border-box;box-shadow:0 min(.267vw,1.6px) min(2.133vw,12.8px) rgba(0,0,0,.15);background:#fff;pointer-events:all;position:relative;min-width:min(40vw,240px)}.m-message-icons{float:left;box-sizing:border-box;margin-right:min(2.667vw,16px)}.m-message--title{font-size:min(3.733vw,22.4px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-message-content{box-sizing:border-box;overflow:auto;width:100%}.m-message--description{line-height:1.6;color:#0e1921}.m-message--title+.m-message--description{margin-top:min(1.333vw,8px)}.m-message--icon{width:min(6.667vw,40px);height:min(6.667vw,40px);vertical-align:middle;display:inline-block;border-radius:50%}.m-message--control{position:relative;height:100%;align-self:flex-start;white-space:nowrap;margin-right:max(-1.333vw,-8px);margin-left:min(2.667vw,16px);margin-top:min(.8vw,4.8px)}.m-message--button{border:none;outline:none;background:none;cursor:pointer;font-size:min(4vw,24px);color:#646464;font-weight:600;padding:0;width:min(5.333vw,32px);height:min(5.333vw,32px);line-height:min(5.333vw,32px);text-align:center;vertical-align:middle}.m-message--button:hover{color:#f56c6c}.m-message--arrow-down.is-collapsed{transform:rotate(90deg)}.m-message-fade-enter-active{animation:m-message-fade-in-down .3s}.m-message-fade-leave-active{animation:m-message-fade-out .3s}@keyframes m-message-fade-in-down{0%{opacity:0;transform:translateY(max(-5.333vw,-32px))}to{opacity:1;transform:translateY(0)}}@keyframes m-message-fade-out{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:max(-12vw,-72px)}}/*! + * OverlayScrollbars + * Version: 2.10.0 + * + * Copyright (c) Rene Haas | KingSora. + * https://github.com/KingSora + * + * Released under the MIT license. + */.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:max(-35.467vw,-212.8px);top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:min(2.667vw,16px);width:min(2.667vw,16px);height:min(2.667vw,16px)}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:max(-35.467vw,-212.8px);transform:scale(10)}.os-size-observer-listener.ltr{margin-right:max(-70.933vw,-425.6px);margin-left:0}.os-size-observer-listener.rtl{margin-left:max(-70.933vw,-425.6px);margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:min(.267vw,1.6px);padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + min(.267vw,1.6px));contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + min(.267vw,1.6px));top:max(-.267vw,-1.6px)}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:min(.267vw,1.6px);min-width:min(.267vw,1.6px)}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:min(.267vw,1.6px);min-height:min(.267vw,1.6px);width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:min(.267vw,1.6px)!important;height:min(.267vw,1.6px)!important;padding:0!important;margin:max(-.267vw,-1.6px)!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) )}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: min(8.8vw, 52.8px);--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: min(2.667vw, 16px);--os-padding-perpendicular: min(.533vw, 3.2px);--os-padding-axis: min(.533vw, 3.2px);--os-track-border-radius: min(2.667vw, 16px);--os-handle-interactive-area-offset: min(1.067vw, 6.4px);--os-handle-border-radius: min(2.667vw, 16px)}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-theme=light],[data-theme=light] *,[data-theme=light] :before,[data-theme=light] :after{color-scheme:light;--ui-primary:15 15 15;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#0f0f0f;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#0f0f0f}[data-theme=light] ::backdrop{color-scheme:light;--ui-primary:15 15 15;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#0f0f0f;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#0f0f0f}[data-theme=classic],[data-theme=classic] *,[data-theme=classic] :before,[data-theme=classic] :after{color-scheme:light;--ui-primary:64 158 255;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#409eff;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#409eff}[data-theme=classic] ::backdrop{color-scheme:light;--ui-primary:64 158 255;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#409eff;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#409eff}[data-theme=naive],[data-theme=naive] *,[data-theme=naive] :before,[data-theme=naive] :after{color-scheme:light;--ui-primary:24 160 88;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#18a058;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#18a058}[data-theme=naive] ::backdrop{color-scheme:light;--ui-primary:24 160 88;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#18a058;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#18a058}[data-theme=barbie],[data-theme=barbie] *,[data-theme=barbie] :before,[data-theme=barbie] :after{color-scheme:light;--ui-primary:255 67 188;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#ff43bc;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#ff43bc}[data-theme=barbie] ::backdrop{color-scheme:light;--ui-primary:255 67 188;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#ff43bc;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#ff43bc}[data-theme=winter],[data-theme=winter] *,[data-theme=winter] :before,[data-theme=winter] :after{color-scheme:light;--ui-primary:166 228 248;--ui-text:62 78 104;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#3e4e68;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#3e4e68}[data-theme=winter] ::backdrop{color-scheme:light;--ui-primary:166 228 248;--ui-text:62 78 104;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#3e4e68;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#3e4e68}[data-theme=cyberpunk],[data-theme=cyberpunk] *,[data-theme=cyberpunk] :before,[data-theme=cyberpunk] :after{color-scheme:light;--ui-primary:219 203 0;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#dbcb00;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#dbcb00}[data-theme=cyberpunk] ::backdrop{color-scheme:light;--ui-primary:219 203 0;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#dbcb00;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#dbcb00}html.dark [data-theme=dark],html.dark [data-theme=dark] *,html.dark [data-theme=dark] :before,html.dark [data-theme=dark] :after{color-scheme:dark;--ui-primary:229 229 229;--ui-text:36 43 51;--g-bg:#0a0a0a;--g-container-bg:#141414;--g-border-color:#15191e;--g-navbar-bg:#141414;--g-navbar-color:#e5e5e5;--g-tabbar-bg:#141414;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#e5e5e5}html.dark [data-theme=dark] ::backdrop{color-scheme:dark;--ui-primary:229 229 229;--ui-text:36 43 51;--g-bg:#0a0a0a;--g-container-bg:#141414;--g-border-color:#15191e;--g-navbar-bg:#141414;--g-navbar-color:#e5e5e5;--g-tabbar-bg:#141414;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#e5e5e5}html.dark [data-theme=dracula],html.dark [data-theme=dracula] *,html.dark [data-theme=dracula] :before,html.dark [data-theme=dracula] :after{color-scheme:dark;--ui-primary:166 173 187;--ui-text:36 43 51;--g-bg:#272935;--g-container-bg:#1d232a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#a6adbb;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#a6adbb}html.dark [data-theme=dracula] ::backdrop{color-scheme:dark;--ui-primary:166 173 187;--ui-text:36 43 51;--g-bg:#272935;--g-container-bg:#1d232a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#a6adbb;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#a6adbb}html.dark [data-theme=night],html.dark [data-theme=night] *,html.dark [data-theme=night] :before,html.dark [data-theme=night] :after{color-scheme:dark;--ui-primary:12 166 233;--ui-text:36 43 51;--g-bg:#0f1729;--g-container-bg:#1d283a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#0ca6e9;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#0ca6e9}html.dark [data-theme=night] ::backdrop{color-scheme:dark;--ui-primary:12 166 233;--ui-text:36 43 51;--g-bg:#0f1729;--g-container-bg:#1d283a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#0ca6e9;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#0ca6e9}html.dark [data-theme=luxury],html.dark [data-theme=luxury] *,html.dark [data-theme=luxury] :before,html.dark [data-theme=luxury] :after{color-scheme:dark;--ui-primary:220 165 76;--ui-text:36 43 51;--g-bg:#09090b;--g-container-bg:#171618;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#dca54c;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#dca54c}html.dark [data-theme=luxury] ::backdrop{color-scheme:dark;--ui-primary:220 165 76;--ui-text:36 43 51;--g-bg:#09090b;--g-container-bg:#171618;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#dca54c;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#dca54c}html.dark [data-theme=synthwave],html.dark [data-theme=synthwave] *,html.dark [data-theme=synthwave] :before,html.dark [data-theme=synthwave] :after{color-scheme:dark;--ui-primary:88 199 243;--ui-text:36 43 51;--g-bg:#1a103c;--g-container-bg:#221551;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#58c7f3;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#58c7f3}html.dark [data-theme=synthwave] ::backdrop{color-scheme:dark;--ui-primary:88 199 243;--ui-text:36 43 51;--g-bg:#1a103c;--g-container-bg:#221551;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#58c7f3;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#58c7f3}html.dark [data-theme=stone],html.dark [data-theme=stone] *,html.dark [data-theme=stone] :before,html.dark [data-theme=stone] :after{color-scheme:dark;--ui-primary:104 209 191;--ui-text:36 43 51;--g-bg:#1b1917;--g-container-bg:#282524;--g-border-color:#43403c;--g-navbar-bg:#141414;--g-navbar-color:#68d1bf;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#68d1bf}html.dark [data-theme=stone] ::backdrop{color-scheme:dark;--ui-primary:104 209 191;--ui-text:36 43 51;--g-bg:#1b1917;--g-container-bg:#282524;--g-border-color:#43403c;--g-navbar-bg:#141414;--g-navbar-color:#68d1bf;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#68d1bf}.i-bx\:bxs-component{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M3.553 18.895l4 2a1.001 1.001 0 0 0 .894 0L12 19.118l3.553 1.776a.99.99 0 0 0 .894.001l4-2c.339-.17.553-.516.553-.895v-5c0-.379-.214-.725-.553-.895L17 10.382V6c0-.379-.214-.725-.553-.895l-4-2a1 1 0 0 0-.895 0l-4 2C7.214 5.275 7 5.621 7 6v4.382l-3.447 1.724A.998.998 0 0 0 3 13v5c0 .379.214.725.553.895zM8 12.118l2.264 1.132l-2.913 1.457l-2.264-1.132L8 12.118zm4-2.5l3-1.5v2.264l-3 1.5V9.618zm6.264 3.632l-2.882 1.441l-2.264-1.132L16 12.118l2.264 1.132zM8 18.882l-.062-.031V16.65L11 15.118v2.264l-3 1.5zm8 0v-2.264l3-1.5v2.264l-3 1.5zM12 5.118l2.264 1.132l-2.882 1.441l-2.264-1.132L12 5.118z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:4k{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 11.03v4h-2v-4H8v6h4v4h2v-10zm12.19 0H22l-3 4.39v-4.39h-2v10h2V18.3l.91-1.33L22 21.03h2.19l-2.99-5.62z'/%3E%3Cpath fill='currentColor' d='M28 26H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2M4 8v16h24V8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:auto-scroll{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M12 16a4 4 0 1 0 4-4a4 4 0 0 0-4 4zm6 0a2 2 0 1 1-2-2a2 2 0 0 1 2 2z' fill='currentColor'/%3E%3Cpath d='M16 27.17l-5.6-5.59L9 23l7 7l7-7l-1.41-1.41L16 27.17z' fill='currentColor'/%3E%3Cpath d='M16 4.83l5.58 5.57L23 9l-7-7l-7 7l1.41 1.41L16 4.83z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:carousel-horizontal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 26H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2M10 8v16h12V8zM4 24H0v-2h4V10H0V8h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2m28 0h-4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h4v2h-4v12h4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:chevron-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:favorite{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22.45 6a5.47 5.47 0 0 1 3.91 1.64a5.7 5.7 0 0 1 0 8L16 26.13L5.64 15.64a5.7 5.7 0 0 1 0-8a5.48 5.48 0 0 1 7.82 0l2.54 2.6l2.53-2.58A5.44 5.44 0 0 1 22.45 6m0-2a7.47 7.47 0 0 0-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 0 0-10.68 0a7.72 7.72 0 0 0 0 10.82L16 29l11.79-11.94a7.72 7.72 0 0 0 0-10.82A7.5 7.5 0 0 0 22.45 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:notification{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.707 19.293L26 16.586V13a10.014 10.014 0 0 0-9-9.95V1h-2v2.05A10.014 10.014 0 0 0 6 13v3.586l-2.707 2.707A1 1 0 0 0 3 20v3a1 1 0 0 0 1 1h7v.777a5.15 5.15 0 0 0 4.5 5.199A5.006 5.006 0 0 0 21 25v-1h7a1 1 0 0 0 1-1v-3a1 1 0 0 0-.293-.707M19 25a3 3 0 0 1-6 0v-1h6Zm8-3H5v-1.586l2.707-2.707A1 1 0 0 0 8 17v-4a8 8 0 0 1 16 0v4a1 1 0 0 0 .293.707L27 20.414Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:pause-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 6h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m10 0h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:play-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:settings{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27 16.76v-1.53l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11 11 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.5 11.5 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11 11 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.5 11.5 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51ZM25.21 24l-3.43-1.16a8.9 8.9 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.4 9.4 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.9 8.9 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.4 9.4 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6m0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:share{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 20a5 5 0 0 0-3.89 1.89l-7.31-4.57a4.46 4.46 0 0 0 0-2.64l7.31-4.57A5 5 0 1 0 18 7a4.8 4.8 0 0 0 .2 1.32l-7.31 4.57a5 5 0 1 0 0 6.22l7.31 4.57A4.8 4.8 0 0 0 18 25a5 5 0 1 0 5-5m0-16a3 3 0 1 1-3 3a3 3 0 0 1 3-3M7 19a3 3 0 1 1 3-3a3 3 0 0 1-3 3m16 9a3 3 0 1 1 3-3a3 3 0 0 1-3 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:thumbs-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 12h-6V6a3.003 3.003 0 0 0-3-3h-2.133a2.01 2.01 0 0 0-1.98 1.717l-.845 5.917L8.465 16H2v14h21a7.01 7.01 0 0 0 7-7v-7a4.005 4.005 0 0 0-4-4M8 28H4V18h4Zm20-5a5.006 5.006 0 0 1-5 5H10V17.303l3.958-5.937l.91-6.366H17a1 1 0 0 1 1 1v8h8a2.003 2.003 0 0 1 2 2Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:user-avatar-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8a5 5 0 1 0 5 5a5 5 0 0 0-5-5'/%3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14.016 14.016 0 0 0 16 2m7.993 22.926A5 5 0 0 0 19 20h-6a5 5 0 0 0-4.992 4.926a12 12 0 1 1 15.985 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-cil\:window-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 512 512' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M352 153H40.247a24.03 24.03 0 0 0-24 24v281a24.03 24.03 0 0 0 24 24H352a24.03 24.03 0 0 0 24-24V177a24.03 24.03 0 0 0-24-24m-8 32v45.22H48.247V185ZM48.247 450V262.22H344V450Z'/%3E%3Cpath fill='currentColor' d='M472 32H152a24.03 24.03 0 0 0-24 24v65h32V64h304v275.143h-56v32h64a24.03 24.03 0 0 0 24-24V56a24.03 24.03 0 0 0-24-24'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-clarity\:animation-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 36 36' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10.16 31.71a4.4 4.4 0 0 1-4.64-1a4.34 4.34 0 0 1-1.29-3.11a4.4 4.4 0 0 1 .18-1.2a11.6 11.6 0 0 1-1-2.56a6.4 6.4 0 0 0 9.33 8.63a11.6 11.6 0 0 1-2.58-.76m8.25-4.03a7.61 7.61 0 0 1-9.08-1.26a7.58 7.58 0 0 1-1.27-9.06a14.3 14.3 0 0 1-.37-2.85a9.58 9.58 0 0 0 .22 13.33a9.63 9.63 0 0 0 13.35.22a14.5 14.5 0 0 1-2.85-.38'/%3E%3Cpath fill='currentColor' d='M21.66 26.21a12.1 12.1 0 1 1 8.57-3.54a12.1 12.1 0 0 1-8.57 3.54m0-22.21a10.11 10.11 0 0 0-10.12 10.11a10 10 0 0 0 3 7.14a10.12 10.12 0 0 0 14.31 0A10.11 10.11 0 0 0 21.66 4m7.86 18'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-clarity\:plugin-outline-alerted{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 36 36' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.81 16H29v-.6h-2V18h2.81A3.13 3.13 0 0 1 33 20.69a3 3 0 0 1-.78 2.31A3 3 0 0 1 30 24h-3v7.83H4V25h1a5 5 0 0 0 5-5.51A5.15 5.15 0 0 0 4.81 15H4V8.83h9V7a3 3 0 0 1 1-2.22A3 3 0 0 1 16.31 4A3.13 3.13 0 0 1 19 7.19v1.64h.66L21 6.59A5.12 5.12 0 0 0 16.51 2A5 5 0 0 0 11 6.83H4a2 2 0 0 0-2 2V17h2.81A3.13 3.13 0 0 1 8 19.69A3 3 0 0 1 7.22 22A3 3 0 0 1 5 23H2v8.83a2 2 0 0 0 2 2h23a2 2 0 0 0 2-2V26h1a5 5 0 0 0 5-5.51A5.15 5.15 0 0 0 29.81 16' class='clr-i-outline--alerted clr-i-outline-path-1--alerted'/%3E%3Cpath fill='currentColor' d='M26.85 1.14L21.13 11a1.28 1.28 0 0 0 1.1 2h11.45a1.28 1.28 0 0 0 1.1-2l-5.72-9.86a1.28 1.28 0 0 0-2.21 0' class='clr-i-outline--alerted clr-i-outline-path-2--alerted clr-i-alert'/%3E%3Cpath fill='none' d='M0 0h36v36H0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-codicon\:color-mode{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m0 13V2a6 6 0 1 1 0 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M831.872 340.864L512 652.672L192.128 340.864a30.59 30.59 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.59 30.59 0 0 0-42.752 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:caret-top{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 320L192 704h639.936z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:document-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:minus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:plus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-fluent\:document-footer-16-regular{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6 11a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zM4.75 1A1.75 1.75 0 0 0 3 2.75v10.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 13.25V2.75A1.75 1.75 0 0 0 11.25 1zM4 2.75A.75.75 0 0 1 4.75 2h6.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-fluent\:document-header-16-regular{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6 3a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2zM4.75 1A1.75 1.75 0 0 0 3 2.75v10.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 13.25V2.75A1.75 1.75 0 0 0 11.25 1zM4 2.75A.75.75 0 0 1 4.75 2h6.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:baseline-home,.i-ic\:sharp-home{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:baseline-person{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:round-arrow-back-ios{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:round-arrow-forward-ios{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:sharp-auto-awesome{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-auto-awesome{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.99 11.01L9 8.83l-.99 2.18l-2.18.99l2.18.99l.99 2.18l.99-2.18l2.18-.99z' opacity='.3'/%3E%3Cpath fill='currentColor' d='m19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18l2.18.99z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-home{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3zm5 15h-2v-6H9v6H7v-7.81l5-4.5l5 4.5z'/%3E%3Cpath fill='currentColor' d='M7 10.19V18h2v-6h6v6h2v-7.81l-5-4.5z' opacity='.3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-person{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 16c-2.69 0-5.77 1.28-6 2h12c-.2-.71-3.3-2-6-2' opacity='.3'/%3E%3Ccircle cx='12' cy='8' r='2' fill='currentColor' opacity='.3'/%3E%3Cpath fill='currentColor' d='M12 14c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m-6 4c.22-.72 3.31-2 6-2c2.7 0 5.8 1.29 6 2zm6-6c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2s-2-.9-2-2s.9-2 2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park-outline\:mosaic{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M44 36h-8v8h8zm-16 0h-8v8h8zm-16 0H4v8h8zm32-16h-8v8h8zm-16 0h-8v8h8zm-16 0H4v8h8zM44 4h-8v8h8zM28 4h-8v8h8zM12 4H4v8h8zm8 8h-8v8h8zm0 16h-8v8h8zm16-16h-8v8h8zm0 16h-8v8h8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park-outline\:to-top-one{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='m12 33l12-12l12 12M12 13h24'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:ad{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='24' cy='24' r='20' fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M38 38L35 35'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M10 10L13 13'/%3E%3Cpath fill='%232F88FF' d='M21.1429 28L18 17L14.8571 28H21.1429Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M14 31L14.8571 28M22 31L21.1429 28M21.1429 28L18 17L14.8571 28M21.1429 28H14.8571'/%3E%3Cpath fill='%232F88FF' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M35 24C35 29 31.4183 31 27 31V17C31.4183 17 35 19 35 24Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:airplane{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20.5 10.5372C20.5 6.5143 22.8333 4.50286 24 4C25.1667 4.50286 27.5 6.5143 27.5 10.5372V18.0801L43 31V35L27 27V36L32 44L24 41L16 44L21 36V27L5 35V31L20.5 18.0801V10.5372Z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:alarm-clock{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke-linejoin='round' stroke-width='4'%3E%3Cpath fill='%232F88FF' stroke='%23000' d='M23.9998 44.3332C34.1251 44.3332 42.3332 36.1251 42.3332 25.9999C42.3332 15.8747 34.1251 7.66656 23.9998 7.66656C13.8746 7.66656 5.6665 15.8747 5.6665 25.9999C5.6665 36.1251 13.8746 44.3332 23.9998 44.3332Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' d='M23.7594 15.3536L23.7582 26.3624L31.5305 34.1347'/%3E%3Cpath stroke='%23000' stroke-linecap='round' d='M4 9.00001L11 4.00001'/%3E%3Cpath stroke='%23000' stroke-linecap='round' d='M44 9.00001L37 4.00001'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:bitcoin{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='24' cy='24' r='20' fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath fill='%232F88FF' d='M20 16H25H27C29.2091 16 31 17.7909 31 20C31 22.2091 29.2091 24 27 24H20V16Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20 16V24H27C29.2091 24 31 22.2091 31 20V20C31 17.7909 29.2091 16 27 16H25M20 16H16M20 16V12M20 16H25M25 16V12'/%3E%3Cpath fill='%232F88FF' d='M20 24H29C31.2091 24 33 25.7909 33 28C33 30.2091 31.2091 32 29 32H25H20V24Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20 32V24H29C31.2091 24 33 25.7909 33 28V28C33 30.2091 31.2091 32 29 32H25M20 32V36M20 32H16H25M20 32H25M25 32V36'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:calendar-dot{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Crect width='40' height='40' x='4' y='4' fill='%232F88FF' stroke='%23000' rx='2'/%3E%3Cpath stroke='%23fff' d='M4 14H44'/%3E%3Cline x1='44' x2='44' y1='11' y2='23' stroke='%23000'/%3E%3Cpath stroke='%23fff' d='M12 22H16'/%3E%3Cpath stroke='%23fff' d='M22 22H26'/%3E%3Cpath stroke='%23fff' d='M32 22H36'/%3E%3Cpath stroke='%23fff' d='M12 29H16'/%3E%3Cpath stroke='%23fff' d='M22 29H26'/%3E%3Cpath stroke='%23fff' d='M32 29H36'/%3E%3Cpath stroke='%23fff' d='M12 36H16'/%3E%3Cpath stroke='%23fff' d='M22 36H26'/%3E%3Cpath stroke='%23fff' d='M32 36H36'/%3E%3Cline x1='4' x2='4' y1='11' y2='23' stroke='%23000'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:globe{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Cpath d='M37.8261 4C41.6276 7.58886 44 12.6753 44 18.3158C44 29.1871 35.1871 38 24.3158 38C18.6753 38 13.5889 35.6276 10 31.8261'/%3E%3Cpath fill='%232F88FF' fill-rule='evenodd' d='M24 32C31.732 32 38 25.732 38 18C38 10.268 31.732 4 24 4C16.268 4 10 10.268 10 18C10 25.732 16.268 32 24 32Z' clip-rule='evenodd'/%3E%3Cpath d='M24 38V44'/%3E%3Cpath d='M18 44H30'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:good-two{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Cpath d='M4.18898 22.1733C4.08737 21.0047 5.00852 20 6.18146 20H10C11.1046 20 12 20.8954 12 22V41C12 42.1046 11.1046 43 10 43H7.83363C6.79622 43 5.93102 42.2068 5.84115 41.1733L4.18898 22.1733Z'/%3E%3Cpath d='M18 21.3745C18 20.5388 18.5194 19.7908 19.2753 19.4345C20.9238 18.6574 23.7329 17.0938 25 14.9805C26.6331 12.2569 26.9411 7.33595 26.9912 6.20878C26.9982 6.05099 26.9937 5.89301 27.0154 5.73656C27.2861 3.78446 31.0543 6.06492 32.5 8.47612C33.2846 9.78471 33.3852 11.504 33.3027 12.8463C33.2144 14.2825 32.7933 15.6699 32.3802 17.0483L31.5 19.9845H42.3569C43.6832 19.9845 44.6421 21.2518 44.2816 22.5281L38.9113 41.5436C38.668 42.4051 37.8818 43 36.9866 43H20C18.8954 43 18 42.1046 18 41V21.3745Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:shopping{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath fill='%232F88FF' d='M39 32H13L8 12H44L39 32Z'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M3 6H6.5L8 12M8 12L13 32H39L44 12H8Z'/%3E%3Ccircle cx='13' cy='39' r='3' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='39' cy='39' r='3' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-line-md\:loading-loop{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-dasharray='16' stroke-dashoffset='16' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 3c4.97 0 9 4.03 9 9'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.2s' values='16;0'/%3E%3CanimateTransform attributeName='transform' dur='1.5s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:pinia{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 331' display='inline-block' vertical-align='middle' width='0.78em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='logosPinia0' x1='55.342%25' x2='42.817%25' y1='0%25' y2='42.863%25'%3E%3Cstop offset='0%25' stop-color='%2352CE63'/%3E%3Cstop offset='100%25' stop-color='%2351A256'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia1' x1='55.349%25' x2='42.808%25' y1='0%25' y2='42.863%25'%3E%3Cstop offset='0%25' stop-color='%2352CE63'/%3E%3Cstop offset='100%25' stop-color='%2351A256'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia2' x1='50%25' x2='50%25' y1='0%25' y2='58.811%25'%3E%3Cstop offset='0%25' stop-color='%238AE99C'/%3E%3Cstop offset='100%25' stop-color='%2352CE63'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia3' x1='51.378%25' x2='44.585%25' y1='17.473%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23FFE56C'/%3E%3Cstop offset='100%25' stop-color='%23FFC63A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23logosPinia0)' d='M67.56 173.328c30.366-2.985 41.08-27.648 44.735-64.823c3.654-37.175-21.174-70.814-31.502-69.799s-43.15 40.322-46.805 77.497c-3.654 37.175 3.205 60.11 33.572 57.125' transform='rotate(-38 72.877 106.136)'/%3E%3Cpath fill='url(%23logosPinia1)' d='M184.454 186.277c30.367 2.986 36.394-20.032 32.74-57.207c-3.655-37.175-35.645-76.4-45.973-77.415s-35.989 32.542-32.334 69.717s15.201 61.92 45.567 64.905' transform='rotate(52 178.34 119.085)'/%3E%3Cpath fill='url(%23logosPinia2)' d='M129.232 151.601c27.341 0 34.878-26.184 34.878-67.013S138.531 3.745 129.232 3.745S93.605 43.758 93.605 84.588c0 40.829 8.286 67.013 35.627 67.013' transform='rotate(7 128.858 77.673)'/%3E%3Cpath fill='url(%23logosPinia3)' d='M113.386 330.307c56.896 0 103.038-16.528 103.038-91.482s-46.142-136.462-103.038-136.462c-56.897 0-103.002 61.507-103.002 136.462s46.105 91.482 103.002 91.482'/%3E%3Cellipse cx='165.427' cy='216.677' fill='%23EAADCC' rx='14.717' ry='6.845'/%3E%3Cellipse cx='57.273' cy='212.57' fill='%23EAADCC' rx='14.717' ry='6.845' transform='rotate(7 57.273 212.57)'/%3E%3Cpath d='M96.266 210.285a2.054 2.054 0 1 0-3.406 2.295c3.151 4.676 7.997 7.39 14.373 8.119c6.348.725 12.016-.902 16.877-4.852a2.054 2.054 0 1 0-2.59-3.187c-3.999 3.249-8.563 4.559-13.82 3.958c-5.23-.598-8.986-2.7-11.434-6.333M65.818 178.63a14.67 14.67 0 0 1 10.551 3.945a14.67 14.67 0 0 1 4.672 10.25a14.67 14.67 0 0 1-3.945 10.55a14.67 14.67 0 0 1-10.25 4.672a14.67 14.67 0 0 1-10.551-3.945a14.67 14.67 0 0 1-4.67-10.25a14.67 14.67 0 0 1 3.944-10.55a14.67 14.67 0 0 1 10.249-4.672'/%3E%3Cpath fill='%23FFF' d='M66.59 190.932a4.792 4.792 0 1 0-9.578.336a4.792 4.792 0 0 0 9.579-.336'/%3E%3Cpath d='M154.99 182.366a14.67 14.67 0 0 1 10.552 3.944a14.67 14.67 0 0 1 4.67 10.25a14.67 14.67 0 0 1-3.944 10.551a14.67 14.67 0 0 1-10.25 4.671a14.67 14.67 0 0 1-10.55-3.945a14.67 14.67 0 0 1-4.672-10.25a14.67 14.67 0 0 1 3.945-10.55a14.67 14.67 0 0 1 10.25-4.671'/%3E%3Cpath fill='%23FFF' d='M65.71 175.552c9.824-.343 18.066 7.342 18.409 17.165s-7.342 18.065-17.166 18.408s-18.064-7.342-18.407-17.166c-.343-9.823 7.341-18.064 17.164-18.407m12.252 17.38c-.224-6.423-5.613-11.448-12.037-11.223c-6.422.224-11.447 5.612-11.222 12.035c.224 6.424 5.612 11.448 12.035 11.224s11.448-5.612 11.224-12.036m76.921-13.645c9.824-.343 18.065 7.342 18.408 17.165s-7.342 18.065-17.165 18.408s-18.065-7.342-18.408-17.165s7.342-18.065 17.165-18.408m12.251 17.38c-.224-6.423-5.612-11.447-12.036-11.223s-11.448 5.613-11.223 12.036s5.612 11.448 12.035 11.224c6.424-.225 11.448-5.613 11.224-12.037'/%3E%3Cpath fill='%23FFF' d='M155.763 194.668a4.792 4.792 0 1 0-9.578.335a4.792 4.792 0 0 0 9.578-.335'/%3E%3Cpath fill='%23ECB732' d='m38.083 243.16l22.33 23.235l16.022-17.044a3.765 3.765 0 0 1 5.486 5.157l-16.283 17.324l23.1 24.036a3.765 3.765 0 1 1-5.43 5.218l-22.834-23.761l-10.725 11.41a3.765 3.765 0 1 1-5.486-5.158l10.986-11.688l-22.595-23.511a3.765 3.765 0 1 1 5.43-5.218m149.956 0a3.765 3.765 0 1 1 5.429 5.218l-22.596 23.511l10.988 11.688a3.765 3.765 0 0 1-.042 5.201l-.123.121a3.765 3.765 0 0 1-5.322-.165l-10.725-11.41l-22.834 23.762a3.765 3.765 0 0 1-5.197.222l-.127-.116a3.765 3.765 0 0 1-.105-5.324l23.1-24.036l-16.284-17.324a3.765 3.765 0 0 1 .042-5.2l.123-.121a3.765 3.765 0 0 1 5.321.164l16.021 17.044z'/%3E%3Cpath fill='%23FFC73B' d='M136.602 126.74a3.765 3.765 0 0 1 0 5.323l-17.53 17.531l10.684 10.686a3.765 3.765 0 0 1 .12 5.2l-.12.125a3.765 3.765 0 0 1-5.324 0l-10.686-10.686l-10.686 10.686a3.765 3.765 0 1 1-5.324-5.325l10.685-10.686l-17.53-17.53a3.765 3.765 0 0 1-.12-5.2l.12-.125a3.765 3.765 0 0 1 5.324 0l17.531 17.53l17.531-17.53a3.765 3.765 0 0 1 5.325 0'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:.78em;height:1em}.i-logos\:unocss{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23858585' d='M137.176 195.927c0-32.813 26.6-59.412 59.412-59.412S256 163.114 256 195.927c0 32.812-26.6 59.412-59.412 59.412s-59.412-26.6-59.412-59.412'/%3E%3Cpath fill='%23CCC' d='M137.176 59.412C137.176 26.6 163.776 0 196.588 0S256 26.6 256 59.412v53.471c0 3.28-2.66 5.941-5.941 5.941H143.117a5.94 5.94 0 0 1-5.941-5.94z'/%3E%3Cpath fill='%234D4D4D' d='M118.824 195.927c0 32.812-26.6 59.412-59.412 59.412S0 228.74 0 195.927v-53.47a5.94 5.94 0 0 1 5.941-5.942h106.942a5.94 5.94 0 0 1 5.941 5.941z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:vitejs{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 257' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='logosVitejs0' x1='-.828%25' x2='57.636%25' y1='7.652%25' y2='78.411%25'%3E%3Cstop offset='0%25' stop-color='%2341D1FF'/%3E%3Cstop offset='100%25' stop-color='%23BD34FE'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosVitejs1' x1='43.376%25' x2='50.316%25' y1='2.242%25' y2='89.03%25'%3E%3Cstop offset='0%25' stop-color='%23FFEA83'/%3E%3Cstop offset='8.333%25' stop-color='%23FFDD35'/%3E%3Cstop offset='100%25' stop-color='%23FFA800'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23logosVitejs0)' d='M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.5 6.5 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62'/%3E%3Cpath fill='url(%23logosVitejs1)' d='M185.432.063L96.44 17.501a3.27 3.27 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:vue{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 221' display='inline-block' vertical-align='middle' width='1.16em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2341B883' d='M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0z'/%3E%3Cpath fill='%2341B883' d='m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0z'/%3E%3Cpath fill='%2335495E' d='M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1.16em;height:1em}.i-material-symbols\:qr-code{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 11V3h8v8zm2-2h4V5H5zM3 21v-8h8v8zm2-2h4v-4H5zm8-8V3h8v8zm2-2h4V5h-4zm4 12v-2h2v2zm-6-6v-2h2v2zm2 2v-2h2v2zm-2 2v-2h2v2zm2 2v-2h2v2zm2-2v-2h2v2zm0-4v-2h2v2zm2 2v-2h2v2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:draw{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.75 20.85c1.78-.7 1.39-2.63.49-3.85c-.89-1.25-2.12-2.11-3.36-2.94A9.8 9.8 0 0 1 4.54 12c-.28-.33-.85-.94-.27-1.06c.59-.12 1.61.46 2.13.68c.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21c-.32.99.19 1.99.77 2.77c1.37 1.83 3.5 2.71 5.09 4.29c.34.33.75.72.95 1.18c.21.44.16.47-.31.47c-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.56.56 0 0 0-.78 0l-1.02 1.02l2.08 2.08M11 10.92V13h2.08l6.15-6.15l-2.08-2.08z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:flower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 13a9 9 0 0 0 9 9c0-5-4.03-9-9-9m9-7.5A2.5 2.5 0 0 1 14.5 8a2.5 2.5 0 0 1-2.5 2.5A2.5 2.5 0 0 1 9.5 8A2.5 2.5 0 0 1 12 5.5m-6.4 4.75a2.5 2.5 0 0 0 2.5 2.5c.53 0 1.02-.17 1.4-.44v.19A2.5 2.5 0 0 0 12 15a2.5 2.5 0 0 0 2.5-2.5v-.19c.38.27.87.44 1.4.44a2.5 2.5 0 0 0 2.5-2.5c0-1-.59-1.85-1.43-2.25c.84-.4 1.43-1.26 1.43-2.25a2.5 2.5 0 0 0-2.5-2.5c-.53 0-1.02.16-1.4.44V3.5A2.5 2.5 0 0 0 12 1a2.5 2.5 0 0 0-2.5 2.5v.19c-.38-.28-.87-.44-1.4-.44a2.5 2.5 0 0 0-2.5 2.5c0 .99.59 1.85 1.43 2.25c-.84.4-1.43 1.25-1.43 2.25M12 22a9 9 0 0 0 9-9c-5 0-9 4-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:format-title{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 4v3h5.5v12h3V7H19V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:grass{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 20H2v-2h5.75C7 15.19 4.81 13 2 12.26c.64-.16 1.31-.26 2-.26c4.42 0 8 3.58 8 8m10-7.74c-.64-.16-1.31-.26-2-.26c-2.93 0-5.5 1.58-6.88 3.93c.29.66.53 1.35.67 2.07c.13.65.21 1.32.21 2h8v-2h-5.76c.76-2.81 2.95-5 5.76-5.74M15.64 11c.78-2.07 2.23-3.82 4.09-5c-4.29.16-7.73 3.67-7.73 8c.95-1.25 2.2-2.28 3.64-3m-4.22-2.15A8.53 8.53 0 0 0 6.7 4C8.14 5.86 9 8.18 9 10.71c0 .21-.03.41-.04.61c.43.24.83.52 1.22.82a9.9 9.9 0 0 1 1.24-3.29'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:professional-hexagon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.12-.36.18-.57.18s-.41-.06-.57-.18l-7.9-4.44A.99.99 0 0 1 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.12.36-.18.57-.18s.41.06.57.18l7.9 4.44c.32.17.53.5.53.88zM5 9v6h1.25v-2H7a2 2 0 0 0 2-2a2 2 0 0 0-2-2zm1.25 3v-2h.5a1 1 0 0 1 1 1a1 1 0 0 1-1 1zm3.5-3v6H11v-2h.75l.66 2h1.32l-.79-2.39c.49-.36.81-.95.81-1.61a2 2 0 0 0-2-2zM11 12v-2h.5a1 1 0 0 1 1 1a1 1 0 0 1-1 1zm6-3c-1.38 0-2.5 1.34-2.5 3s1.12 3 2.5 3s2.5-1.34 2.5-3s-1.12-3-2.5-3m0 1.25c.76 0 1.38.78 1.38 1.75s-.62 1.75-1.38 1.75s-1.37-.78-1.37-1.75s.61-1.75 1.37-1.75'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mingcute\:zoom-in-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M10.5 2a8.5 8.5 0 0 1 6.873 13.502l-.197.26l3.652 3.652a1 1 0 0 1-1.32 1.498l-.094-.084l-3.652-3.652A8.5 8.5 0 1 1 10.5 2m0 2a6.5 6.5 0 1 0 0 13a6.5 6.5 0 0 0 0-13m0 2a1 1 0 0 1 .993.883L11.5 7v2.5H14a1 1 0 0 1 .117 1.993L14 11.5h-2.5V14a1 1 0 0 1-1.993.117L9.5 14v-2.5H7a1 1 0 0 1-.117-1.993L7 9.5h2.5V7a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:bar-chart-2-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 13h6v8H2zm14-5h6v13h-6zM9 3h6v18H9zM4 15v4h2v-4zm7-10v14h2V5zm7 5v9h2v-9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:bug-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 19.9a5 5 0 0 0 4-4.9v-3c0-.701-.144-1.378-.415-2h-9.17A5 5 0 0 0 7 12v3a5 5 0 0 0 4 4.9V14h2zm-7.464-2.21A7 7 0 0 1 5 15H2v-2h3v-1c0-.643.087-1.265.249-1.856L3.036 8.866l1-1.732L6.056 8.3a7 7 0 0 1 .199-.3h11.49q.103.148.199.3l2.02-1.166l1 1.732l-2.213 1.278c.162.59.249 1.213.249 1.856v1h3v2h-3a7 7 0 0 1-.536 2.69l2.5 1.444l-1 1.732l-2.526-1.458A6.99 6.99 0 0 1 12 22a6.99 6.99 0 0 1-5.438-2.592l-2.526 1.458l-1-1.732zM8 6a4 4 0 1 1 8 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:copyright-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.288 9.428A4.999 4.999 0 0 0 7 12a4.999 4.999 0 0 0 9.288 2.572l-1.715-1.028A3 3 0 1 1 12 9c1.093 0 2.05.584 2.573 1.457zM22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10s10-4.48 10-10M4 12c0-4.42 3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:earth-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6.235 6.453a8 8 0 0 0 8.817 12.944c.115-.75-.137-1.47-.24-1.722c-.23-.56-.988-1.517-2.253-2.844c-.338-.355-.316-.627-.195-1.437l.013-.091c.082-.554.22-.882 2.085-1.178c.948-.15 1.197.228 1.542.753l.116.172c.328.48.571.59.938.756c.165.075.37.17.645.325c.652.373.652.794.652 1.716v.105c0 .391-.038.735-.098 1.034a8.002 8.002 0 0 0-3.105-12.341c-.553.373-1.312.902-1.577 1.265c-.135.185-.327 1.132-.95 1.21c-.162.02-.381.006-.613-.009c-.622-.04-1.472-.095-1.744.644c-.173.468-.203 1.74.356 2.4c.09.105.107.3.046.519c-.08.287-.241.462-.292.498c-.096-.056-.288-.279-.419-.43c-.313-.366-.705-.82-1.211-.96c-.184-.051-.386-.093-.583-.135c-.549-.115-1.17-.246-1.315-.554c-.106-.226-.105-.537-.105-.865c0-.417 0-.888-.204-1.345a1.3 1.3 0 0 0-.306-.43M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:file-text-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 8v12.993A1 1 0 0 1 20.007 22H3.993A.993.993 0 0 1 3 21.008V2.992C3 2.455 3.449 2 4.002 2h10.995zm-2 1h-5V4H5v16h14zM8 7h3v2H8zm0 4h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:font-size{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154zm-.8-2L8 6.885L5.554 13zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93M19 18a2 2 0 1 0 0-4a2 2 0 0 0 0 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:function-add-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm0 10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm10 0a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm1 6v-4h4v4zM5 9V5h4v4zm0 10v-4h4v4zm11-8V8h-3V6h3V3h2v3h3v2h-3v3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:moon-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:notification-3-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 17h2v2H2v-2h2v-7a8 8 0 1 1 16 0zm-2 0v-7a6 6 0 0 0-12 0v7zm-9 4h6v2H9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:pages-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 8v12h14V8zm0-2h14V4H5zm15 16H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1M7 10h4v4H7zm0 6h10v2H7zm6-5h4v2h-4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:remixicon-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m6.365 6l8.784 9.663l.72-.283c1.685-.661 2.864-2.156 3.092-3.896q-.23.016-.46.016A6.5 6.5 0 0 1 12.077 6zM14 5a4.5 4.5 0 0 0 6.714 3.918c.186.618.286 1.271.286 1.947c0 2.891-1.822 5.365-4.4 6.377L20 21H3V4h11.111A4.5 4.5 0 0 0 14 5m4.5 2.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5M5 7.47V19h10.48z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:shield-keyhole-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 1l8.217 1.826a1 1 0 0 1 .783.976v9.987a6 6 0 0 1-2.672 4.992L12 23l-6.328-4.219A6 6 0 0 1 3 13.79V3.802a1 1 0 0 1 .783-.976zm0 2.049L5 4.604v9.185a4 4 0 0 0 1.781 3.328L12 20.597l5.219-3.48A4 4 0 0 0 19 13.79V4.604zM12 7a2 2 0 0 1 1.001 3.732L13 15h-2v-4.268A2 2 0 0 1 12 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:sun-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:translate{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 15v2a2 2 0 0 0 1.85 1.994L7 19h3v2H7a4 4 0 0 1-4-4v-2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10zm-1 2.885L15.753 16h2.492zM8 2v2h4v7H8v3H6v-3H2V4h4V2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3zM6 6H4v3h2zm4 0H8v3h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-tdesign\:image-error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-typcn\:plus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-uiw\:setting-o{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 20 20' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11.078 0c.294 0 .557.183.656.457l.706 1.957q.379.094.654.192q.3.107.78.33l1.644-.87a.7.7 0 0 1 .832.131l1.446 1.495c.192.199.246.49.138.744l-.771 1.807q.191.352.308.604q.126.273.312.76l1.797.77c.27.115.437.385.419.674l-.132 2.075a.69.69 0 0 1-.46.605l-1.702.605q-.073.352-.154.606a9 9 0 0 1-.298.774l.855 1.89a.68.68 0 0 1-.168.793l-1.626 1.452a.7.7 0 0 1-.796.096l-1.676-.888a7 7 0 0 1-.81.367l-.732.274l-.65 1.8a.7.7 0 0 1-.64.457L9.11 20a.7.7 0 0 1-.669-.447l-.766-2.027a15 15 0 0 1-.776-.29a10 10 0 0 1-.618-.293l-1.9.812a.7.7 0 0 1-.755-.133L2.22 16.303a.68.68 0 0 1-.155-.783l.817-1.78a10 10 0 0 1-.302-.644a14 14 0 0 1-.3-.811L.49 11.74a.69.69 0 0 1-.49-.683l.07-1.921a.69.69 0 0 1 .392-.594L2.34 7.64q.13-.478.23-.748a9 9 0 0 1 .314-.712L2.07 4.46a.68.68 0 0 1 .15-.79l1.404-1.326a.7.7 0 0 1 .75-.138l1.898.784q.314-.209.572-.344q.307-.162.824-.346l.66-1.841A.7.7 0 0 1 8.984 0zm-.49 1.377H9.475L8.87 3.071a.7.7 0 0 1-.434.423c-.436.145-.751.27-.935.367q-.294.155-.74.47a.7.7 0 0 1-.673.074l-1.83-.755l-.713.674l.743 1.57a.68.68 0 0 1-.006.597c-.2.401-.335.697-.403.879a10 10 0 0 0-.27.922a.69.69 0 0 1-.37.45l-1.79.859l-.036.98l1.62.492c.215.065.385.23.456.442q.241.722.38 1.056a10 10 0 0 0 .404.827a.68.68 0 0 1 .019.606l-.751 1.638l.711.668l1.782-.762a.7.7 0 0 1 .603.024q.55.288.809.398c.175.073.51.195.996.361a.7.7 0 0 1 .424.41l.708 1.871l.926-.02l.597-1.654a.7.7 0 0 1 .409-.413l1.037-.388q.394-.145.951-.46a.7.7 0 0 1 .674-.008l1.577.835l.887-.791L15.856 14a.68.68 0 0 1-.001-.56c.182-.407.305-.714.367-.91q.093-.29.185-.825a.69.69 0 0 1 .451-.533l1.648-.585l.072-1.14l-1.62-.694a.7.7 0 0 1-.377-.394a15 15 0 0 0-.378-.944a11 11 0 0 0-.42-.794a.68.68 0 0 1-.035-.606l.725-1.7l-.764-.79l-1.488.788a.7.7 0 0 1-.633.013a11 11 0 0 0-.968-.426a7 7 0 0 0-.857-.23a.7.7 0 0 1-.508-.441zm-.564 4.264c2.435 0 4.41 1.953 4.41 4.361s-1.975 4.36-4.41 4.36s-4.41-1.952-4.41-4.36s1.974-4.36 4.41-4.36m0 1.378c-1.667 0-3.018 1.335-3.018 2.983s1.351 2.984 3.018 2.984s3.017-1.336 3.017-2.984s-1.35-2.983-3.017-2.983'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.flex-center{display:flex;align-items:center;justify-content:center}.flex-col-center{display:flex;flex-direction:column;align-items:center;justify-content:center}.flex-col-start{display:flex;flex-direction:column;align-items:flex-start}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.absolute\!{position:absolute!important}.fixed{position:fixed}.relative,[relative=""]{position:relative}.sticky{position:sticky}.before\:absolute:before{position:absolute}.after\:absolute:after{position:absolute}.static{position:static}.inset-0{top:0;right:0;bottom:0;left:0}.start-\[100\%\]\!{inset-inline-start:100%!important}.start-\[50\%\]{inset-inline-start:50%}.before\:start-0:before{inset-inline-start:0}.-top-\[var\(--g-navbar-height\)\]\!{top:calc(var(--g-navbar-height) * -1)!important}.bottom-0{bottom:0}.bottom-1{bottom:min(1.067vw,6.4px)}.left-0{left:0}.left-1{left:min(1.067vw,6.4px)}.left-1\/5{left:20%}.right-\[-12px\]{right:max(-3.2vw,-19.2px)}.right-1{right:min(1.067vw,6.4px)}.top--3{top:max(-3.2vw,-19.2px)}.top-0{top:0}.top-1{top:min(1.067vw,6.4px)}.top-1\/5{top:20%}.top-2\/5{top:40%}.before\:top-0:before{top:0}.after\:bottom-0:after{bottom:0}.after\:left-0:after{left:0}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.z-0{z-index:0}.z-1{z-index:1}.z-2{z-index:2}.z-20{z-index:20}.z-2000{z-index:2000}.after\:-z-1:after{z-index:-1}.grid{display:grid}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.m-0,.m\[0\],[m-0=""]{margin:0}.m-0\!{margin:0!important}.m-4{margin:min(4.267vw,25.6px)}.m12{margin:min(12.8vw,76.8px)}.m97{margin:min(103.467vw,620.8px)}[ma=""]{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:min(4.267vw,25.6px);margin-right:min(4.267vw,25.6px)}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:min(1.067vw,6.4px);margin-bottom:min(1.067vw,6.4px)}.my-4{margin-top:min(4.267vw,25.6px);margin-bottom:min(4.267vw,25.6px)}.-mt-9xl{margin-top:max(-34.133vw,-204.8px)}.mb-2{margin-bottom:min(2.133vw,12.8px)}.mb-4,[mb=""]{margin-bottom:min(4.267vw,25.6px)}.ml-\[80px\]{margin-left:min(21.333vw,128px)}.ml-1{margin-left:min(1.067vw,6.4px)}.ms-0{margin-inline-start:0}.ms-5{margin-inline-start:min(5.333vw,32px)}.ms-auto{margin-inline-start:auto}.mt-\[80px\]{margin-top:min(21.333vw,128px)}.mt-0{margin-top:0}.mt-1{margin-top:min(1.067vw,6.4px)}.mt-2{margin-top:min(2.133vw,12.8px)}.mt-4,[mt=""]{margin-top:min(4.267vw,25.6px)}.mt-8{margin-top:min(8.533vw,51.2px)}.block,[block=""]{display:block}.before\:block:before{display:block}.inline-block{display:inline-block}.aspect-ratio-\[800\/400\]{aspect-ratio:800/400}[size~="16px"]{width:min(4.267vw,25.6px);height:min(4.267vw,25.6px)}[size~="48"]{width:min(51.2vw,307.2px);height:min(51.2vw,307.2px)}.h-\[1em\]{height:1em}.h-\[400px\]{height:min(106.667vw,640px)}.h-\[60px\]\!{height:min(16vw,96px)!important}.h-\[80px\],.h-20{height:min(21.333vw,128px)}.h-1\.5{height:min(1.6vw,9.6px)}.h-10{height:min(10.667vw,64px)}.h-100px{height:min(26.667vw,160px)}.h-12{height:min(12.8vw,76.8px)}.h-24{height:min(25.6vw,153.6px)}.h-3,.h3{height:min(3.2vw,19.2px)}.h-3\/5{height:60%}.h-4{height:min(4.267vw,25.6px)}.h-40{height:min(42.667vw,256px)}.h-5{height:min(5.333vw,32px)}.h-full{height:100%}.h-vh{height:100vh}.h1{height:min(1.067vw,6.4px)}.max-w-md,[max-w-md=""]{max-width:min(119.467vw,716.8px)}.min-h-full{min-height:100%}.min-h-screen,.min-h-vh{min-height:100vh}.min-w-0{min-width:0}.min-w-30{min-width:min(32vw,192px)}.min-w-50{min-width:min(53.333vw,320px)}.w-\[1em\]{width:1em}.w-\[80px\],.w-20{width:min(21.333vw,128px)}.w-1\.5{width:min(1.6vw,9.6px)}.w-10{width:min(10.667vw,64px)}.w-100px{width:min(26.667vw,160px)}.w-12{width:min(12.8vw,76.8px)}.w-14{width:min(14.933vw,89.6px)}.w-24{width:min(25.6vw,153.6px)}.w-3{width:min(3.2vw,19.2px)}.w-3\/5{width:60%}.w-4{width:min(4.267vw,25.6px)}.w-40{width:min(42.667vw,256px)}.w-6{width:min(6.4vw,38.4px)}.w-60{width:min(64vw,384px)}.w-full,[w-full=""]{width:100%}.w-screen,[w-screen=""]{width:min(100vw,600px)}.before\:h-\[1px\]:before{height:min(.267vw,1.6px)}.before\:h-full:before{height:100%}.before\:w-full:before{width:100%}.after\:h-\[1px\]:after{height:min(.267vw,1.6px)}.after\:h-2:after{height:min(2.133vw,12.8px)}.after\:w-full:after{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-inline,.inline-flex{display:inline-flex}.flex-1,[flex-1=""]{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-col,[flex-col=""]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.table{display:table}.border-collapse{border-collapse:collapse}.-translate-x-\[50\%\]{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-\[50\%\],.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-4{--un-translate-y:min(4.267vw, 25.6px);transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[dir=rtl] .rtl\:translate-x-\[50\%\]{--un-translate-x:50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0\!{--un-rotate-x:0 !important;--un-rotate-y:0 !important;--un-rotate-z:0 !important;--un-rotate:0 !important;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))!important}.rotate-30{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:30deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[rotate~="0"]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[rotate~="180"]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-100{--un-scale-x:1;--un-scale-y:1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-50{--un-scale-x:.5;--un-scale-y:.5;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[scale-50~="default:"]:default{--un-scale-x:.5;--un-scale-y:.5;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes bounce-alt{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,max(-8vw,-48px),0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,max(-4vw,-24px),0)}90%{transform:translate3d(0,max(-1.067vw,-6.4px),0)}}@keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}.animate-bounce-alt,[animate-bounce-alt=""]{animation:bounce-alt 1s linear infinite;transform-origin:center bottom}.before\:animate-ping:before{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.animate-duration-1s,[animate-duration-1s=""]{animation-duration:1s}.animate-count-infinite,[animate-count-infinite=""]{animation-iteration-count:infinite}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.disabled-cursor-not-allowed:disabled{cursor:not-allowed}.select-none,[select-none=""]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.items-end{align-items:flex-end}.items-center,[flex~=items-center]{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end,[flex~=justify-end]{justify-content:flex-end}.justify-center{justify-content:center}.justify-between,[flex~=justify-between]{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-\[2px\]{gap:min(.533vw,3.2px)}.gap-1{gap:min(1.067vw,6.4px)}.gap-2{gap:min(2.133vw,12.8px)}.gap-3{gap:min(3.2vw,19.2px)}.gap-4{gap:min(4.267vw,25.6px)}.gap-8{gap:min(8.533vw,51.2px)}.gap-x-1\.5{-moz-column-gap:min(1.6vw,9.6px);column-gap:min(1.6vw,9.6px)}.space-x-2>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(min(2.133vw,12.8px) * calc(1 - var(--un-space-x-reverse)));margin-right:calc(min(2.133vw,12.8px) * var(--un-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(min(4.267vw,25.6px) * calc(1 - var(--un-space-x-reverse)));margin-right:calc(min(4.267vw,25.6px) * var(--un-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(min(1.067vw,6.4px) * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(min(1.067vw,6.4px) * var(--un-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(min(2.133vw,12.8px) * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(min(2.133vw,12.8px) * var(--un-space-y-reverse))}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden{overflow:hidden}.of-y-hidden,[of-y-hidden=""]{overflow-y:hidden}.overflow-y-auto,[overflow-y-auto=""]{overflow-y:auto}.overscroll-none{overscroll-behavior:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-break-spaces{white-space:break-spaces}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-keep{word-break:keep-all}.b,.b-1,.border{border-width:min(.267vw,1.6px)}.border-0,.border-size-0{border-width:0px}.border-2{border-width:min(.533vw,3.2px)}.b-r-1,.border-r-1px{border-right-width:min(.267vw,1.6px)}.border-b,.border-b-1,.border-b-1px,[border-b~="~"]{border-bottom-width:min(.267vw,1.6px)}.border-t,[border-t~="~"]{border-top-width:min(.267vw,1.6px)}.b-\[\#d4af37\]{--un-border-opacity:1;border-color:rgb(212 175 55 / var(--un-border-opacity))}.border-transparent{border-color:transparent}.b-r-\[var\(--g-bg\)\]{border-right-color:var(--g-bg)}.border-b-\[var\(--g-bg\)\]{border-bottom-color:var(--g-bg)}.border-b-\#ddd{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(221 221 221 / var(--un-border-bottom-opacity))}.border-r-\#ddd{--un-border-opacity:1;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(221 221 221 / var(--un-border-right-opacity))}.dark .dark\:border-b-\#333{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(51 51 51 / var(--un-border-bottom-opacity))}.dark .dark\:border-r-\#333{--un-border-opacity:1;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(51 51 51 / var(--un-border-right-opacity))}[border-b~="stone/15"]{border-bottom-color:rgba(168,162,158,.15)}[border-t~="stone/15"]{border-top-color:rgba(168,162,158,.15)}.rounded{border-radius:min(1.067vw,6.4px)}.rounded-1\/2{border-radius:50%}.rounded-2,.rounded-lg{border-radius:min(2.133vw,12.8px)}.rounded-full{border-radius:min(2666.4vw,15998.4px)}.rounded-md{border-radius:min(1.6vw,9.6px)}.rounded-xl{border-radius:min(3.2vw,19.2px)}.before\:rounded-full:before{border-radius:min(2666.4vw,15998.4px)}.b-solid{border-style:solid}.b-r-solid,.border-r-solid{border-right-style:solid}.border-b-none{border-bottom-style:none}.border-b-solid,[border-b~=solid]{border-bottom-style:solid}.border-r-none{border-right-style:none}[border-t~=solid]{border-top-style:solid}.last\:border-b-none:last-child{border-bottom-style:none}.bg-\[\#fae9eb\]{--un-bg-opacity:1;background-color:rgb(250 233 235 / var(--un-bg-opacity))}.bg-\[var\(--g-container-bg\)\]{background-color:var(--g-container-bg)}.bg-\[var\(--g-navbar-bg\)\]{background-color:var(--g-navbar-bg)}.bg-\[var\(--g-tabbar-bg\)\]{background-color:var(--g-tabbar-bg)}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity))}.bg-dark,.dark .dark-bg-dark{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.bg-green\/20{background-color:rgba(74,222,128,.2)}.bg-inherit{background-color:inherit}.bg-light,.dark .dark-bg-light{--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-rose\/20{background-color:rgba(251,113,133,.2)}.bg-stone-1{--un-bg-opacity:1;background-color:rgb(245 245 244 / var(--un-bg-opacity))}.bg-stone-2{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.bg-stone-2\/75{background-color:rgba(231,229,228,.75)}.bg-stone-3{--un-bg-opacity:1;background-color:rgb(214 211 209 / var(--un-bg-opacity))}.bg-ui-primary{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity))}.bg-white,[bg-white=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark-bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.dark .dark-bg-dark-9{--un-bg-opacity:1;background-color:rgb(15 15 15 / var(--un-bg-opacity))}.dark .dark-bg-stone-7{--un-bg-opacity:1;background-color:rgb(68 64 60 / var(--un-bg-opacity))}.dark .dark-bg-stone-8,.dark [dark-bg-stone-8=""]{--un-bg-opacity:1;background-color:rgb(41 37 36 / var(--un-bg-opacity))}.dark .dark-bg-stone-8\/75{background-color:rgba(41,37,36,.75)}.dark .dark-bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark-hover-not-disabled-bg-ui-primary\/10:not(:disabled):hover{background-color:rgb(var(--ui-primary) / .1)}.hover-bg-ui-primary\/75:hover{background-color:rgb(var(--ui-primary) / .75)}.hover-not-disabled-bg-ui-primary\/10:not(:disabled):hover{background-color:rgb(var(--ui-primary) / .1)}.active\:bg-stone-1:active{--un-bg-opacity:1;background-color:rgb(245 245 244 / var(--un-bg-opacity))}.dark .dark-active\:bg-stone-9:active{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.disabled-bg-ui-primary\/90:disabled{background-color:rgb(var(--ui-primary) / .9)}.before\:bg-stone-2:before{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.before\:bg-ui-primary:before{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity))}.dark .before\:dark-bg-stone-6:before{--un-bg-opacity:1;background-color:rgb(87 83 78 / var(--un-bg-opacity))}.after\:bg-stone-2:after{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.after\:bg-yellow:after{--un-bg-opacity:1;background-color:rgb(250 204 21 / var(--un-bg-opacity))}.dark .after\:dark-bg-stone-6:after{--un-bg-opacity:1;background-color:rgb(87 83 78 / var(--un-bg-opacity))}.dark .after\:dark-bg-yellow-9:after{--un-bg-opacity:1;background-color:rgb(113 63 18 / var(--un-bg-opacity))}.bg-gradient-\[120deg\,\#AE3FF5_30\%\,\#6EC0F9\]{--un-gradient:120deg,#AE3FF5 30%,#6EC0F9}.from-transparent{--un-gradient-from-position:0%;--un-gradient-from:transparent var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to)}.dark .dark-to-\[\#ffd70030\]{--un-gradient-to-position:100%;--un-gradient-to:rgb(255 215 0 / var(--un-to-opacity, .19)) var(--un-gradient-to-position)}.to-\[\#ffd700\]{--un-gradient-to-position:100%;--un-gradient-to:rgb(255 215 0 / var(--un-to-opacity, 1)) var(--un-gradient-to-position)}.to-\[var\(--g-container-bg\)\]{--un-gradient-to-position:100%;--un-gradient-to:var(--g-container-bg) var(--un-gradient-to-position)}.bg-gradient-linear{background-image:linear-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))}.bg-gradient-to-b{--un-gradient-shape:to bottom in oklch;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-gradient-to-r{--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-cover{background-size:cover}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}[fill-opacity~="0.53"]{--un-fill-opacity:.0053}[fill-opacity~="1"]{--un-fill-opacity:.01}[stroke-width~="0"]{stroke-width:0px}[stroke-width~="14"]{stroke-width:min(3.733vw,22.4px)}[stroke-width~="2"]{stroke-width:min(.533vw,3.2px)}[stroke-width~="22"]{stroke-width:min(5.867vw,35.2px)}[stroke~="#00a19d"]{--un-stroke-opacity:1;stroke:rgb(0 161 157 / var(--un-stroke-opacity))}[stroke~="#2c2891"]{--un-stroke-opacity:1;stroke:rgb(44 40 145 / var(--un-stroke-opacity))}[stroke~="#ff5c58"]{--un-stroke-opacity:1;stroke:rgb(255 92 88 / var(--un-stroke-opacity))}[stroke~="#ffa6d5"]{--un-stroke-opacity:1;stroke:rgb(255 166 213 / var(--un-stroke-opacity))}[stroke~="#ffbd9b"]{--un-stroke-opacity:1;stroke:rgb(255 189 155 / var(--un-stroke-opacity))}[stroke~=none]{stroke:none}.p-0{padding:0}.p-1{padding:min(1.067vw,6.4px)}.p-2{padding:min(2.133vw,12.8px)}.p-3{padding:min(3.2vw,19.2px)}.p-4,[p-4=""]{padding:min(4.267vw,25.6px)}.px,.px-4,[px-4=""],[px=""]{padding-left:min(4.267vw,25.6px);padding-right:min(4.267vw,25.6px)}.px-0\!{padding-left:0!important;padding-right:0!important}.px-1,[px-1=""]{padding-left:min(1.067vw,6.4px);padding-right:min(1.067vw,6.4px)}.px-1\.5{padding-left:min(1.6vw,9.6px);padding-right:min(1.6vw,9.6px)}.px-2{padding-left:min(2.133vw,12.8px);padding-right:min(2.133vw,12.8px)}.px-2\.5{padding-left:min(2.667vw,16px);padding-right:min(2.667vw,16px)}.px-3,[px-3=""]{padding-left:min(3.2vw,19.2px);padding-right:min(3.2vw,19.2px)}.py-1\.5{padding-top:min(1.6vw,9.6px);padding-bottom:min(1.6vw,9.6px)}.py-2,[py-2=""]{padding-top:min(2.133vw,12.8px);padding-bottom:min(2.133vw,12.8px)}.py-3,[py-3=""]{padding-top:min(3.2vw,19.2px);padding-bottom:min(3.2vw,19.2px)}.py-4{padding-top:min(4.267vw,25.6px);padding-bottom:min(4.267vw,25.6px)}.pb-2{padding-bottom:min(2.133vw,12.8px)}.pb-4{padding-bottom:min(4.267vw,25.6px)}.pe-2{padding-inline-end:min(2.133vw,12.8px)}.ps-2{padding-inline-start:min(2.133vw,12.8px)}.pt-10{padding-top:min(10.667vw,64px)}.pie{padding-inline-end:min(4.267vw,25.6px)}.text-center,[text-center=""]{text-align:center}.text-left{text-align:left}.text-start,[text-start=""]{text-align:start}.-indent-9999{text-indent:max(-10665.6vw,-63993.6px)}.vertical-middle{vertical-align:middle}.text-\[300px\]{font-size:min(80vw,480px)}.text-20{font-size:min(21.333vw,128px)}.text-2xl{font-size:min(6.4vw,38.4px);line-height:min(8.533vw,51.2px)}.text-3xl{font-size:min(8vw,48px);line-height:min(9.6vw,57.6px)}.text-4{font-size:min(4.267vw,25.6px)}.text-4xl{font-size:min(9.6vw,57.6px);line-height:min(10.667vw,64px)}.text-5xl,[text-5xl=""]{font-size:min(12.8vw,76.8px);line-height:1}.text-6,[text-6=""]{font-size:min(6.4vw,38.4px)}.text-6xl{font-size:min(16vw,96px);line-height:1}.text-8{font-size:min(8.533vw,51.2px)}.text-base{font-size:min(4.267vw,25.6px);line-height:min(6.4vw,38.4px)}.text-lg,[text-lg=""]{font-size:min(4.8vw,28.8px);line-height:min(7.467vw,44.8px)}.text-sm{font-size:min(3.733vw,22.4px);line-height:min(5.333vw,32px)}.text-sm\/6{font-size:min(3.733vw,22.4px);line-height:min(6.4vw,38.4px)}.text-xl{font-size:min(5.333vw,32px);line-height:min(7.467vw,44.8px)}.text-xs{font-size:min(3.2vw,19.2px);line-height:min(4.267vw,25.6px)}.dark .dark-text-dark,.text-dark,[text-dark=""]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.dark .dark-text-gray-3{--un-text-opacity:1;color:rgb(209 213 219 / var(--un-text-opacity))}.c-gray,.dark .dark-text-gray-4,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .dark-text-light\/80{color:rgba(246,246,246,.8)}.dark .dark-text-stone-3{--un-text-opacity:1;color:rgb(214 211 209 / var(--un-text-opacity))}.dark .dark-text-stone-6{--un-text-opacity:1;color:rgb(87 83 78 / var(--un-text-opacity))}.c-white,.dark .dark-text-white,.dark [dark-text-white=""],.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-\[\#4580dd\]{--un-text-opacity:1;color:rgb(69 128 221 / var(--un-text-opacity))}.text-\[\#53b7ad\]{--un-text-opacity:1;color:rgb(83 183 173 / var(--un-text-opacity))}.text-\[\#6ecc84\]{--un-text-opacity:1;color:rgb(110 204 132 / var(--un-text-opacity))}.text-\[var\(--g-navbar-color\)\]{color:var(--g-navbar-color)}.text-\[var\(--g-tabbar-active-color\)\]\!{color:var(--g-tabbar-active-color)!important}.text-\[var\(--g-tabbar-color\)\]{color:var(--g-tabbar-color)}.text-dark\/80{color:rgba(34,34,34,.8)}.text-gray-5{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-6{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.text-gray-7{--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.text-light{--un-text-opacity:1;color:rgb(246 246 246 / var(--un-text-opacity))}.c-stone,.text-stone-4{--un-text-opacity:1;color:rgb(168 162 158 / var(--un-text-opacity))}.text-stone-5,[text-stone-5=""]{--un-text-opacity:1;color:rgb(120 113 108 / var(--un-text-opacity))}.text-stone-7{--un-text-opacity:1;color:rgb(68 64 60 / var(--un-text-opacity))}.text-transparent{color:transparent}.text-ui-primary{--un-text-opacity:1;color:rgb(var(--ui-primary) / var(--un-text-opacity))}.text-ui-primary\/30{color:rgb(var(--ui-primary) / .3)}.text-ui-text{--un-text-opacity:1;color:rgb(var(--ui-text) / var(--un-text-opacity))}[text~="[token.value]"]{color:token.value}.c-\[\#d4af37\]{--un-text-opacity:1;color:rgb(212 175 55 / var(--un-text-opacity))}.c-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.c-green-6{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.c-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.c-rose{--un-text-opacity:1;color:rgb(251 113 133 / var(--un-text-opacity))}.c-stone\/50{color:rgba(168,162,158,.5)}.dark .dark-c-\[\#d4af3730\]{--un-text-opacity:.19;color:rgb(212 175 55 / var(--un-text-opacity))}.font-500,.font-medium{font-weight:500}.font-bold{font-weight:700}[fw100=""]{font-weight:100}.leading-\[1em\]{line-height:1em}.leading-tight{line-height:1.25}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.line-through{text-decoration-line:line-through}.no-underline{text-decoration:none}.text-shadow{--un-text-shadow:0 0 min(.267vw, 1.6px) var(--un-text-shadow-color, rgb(0 0 0 / .2)),0 0 min(.267vw, 1.6px) var(--un-text-shadow-color, rgb(1 0 5 / .1));text-shadow:var(--un-text-shadow)}.text-shadow-color-dark{--un-text-shadow-opacity:1;--un-text-shadow-color:rgb(34 34 34 / var(--un-text-shadow-opacity)) }.op-30{opacity:.3}.opacity-0,[opacity-0=""]{opacity:0}.opacity-100,[opacity-100=""]{opacity:1}.opacity-50{opacity:.5}[default~=opacity-0]:default{opacity:0}[default~=opacity-100]:default{opacity:1}.hover-op-100:hover,.hover-opacity-100:hover{opacity:1}.disabled-opacity-50:disabled{opacity:.5}.disabled-opacity-75:disabled{opacity:.75}.mix-blend-difference{mix-blend-mode:difference}.shadow{--un-shadow:var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.8vw, 4.8px) 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.533vw, 3.2px) max(-.267vw, -1.6px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 min(2.667vw, 16px) min(4vw, 24px) max(-.8vw, -4.8px) var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(1.067vw, 6.4px) min(1.6vw, 9.6px) max(-1.067vw, -6.4px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-sm{--un-shadow:var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.533vw, 3.2px) 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 min(5.333vw, 32px) min(6.667vw, 40px) max(-1.333vw, -8px) var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(2.133vw, 12.8px) min(2.667vw, 16px) max(-1.6vw, -9.6px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-outline-0:focus-visible{outline-width:0px}.outline,[outline=""]{outline-style:solid}.focus-outline-none:focus{outline:min(.533vw,3.2px) solid transparent;outline-offset:min(.533vw,3.2px)}[focus-outline-none=""]:focus{outline:min(.533vw,3.2px) solid transparent;outline-offset:min(.533vw,3.2px)}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:min(.267vw, 1.6px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-2{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-ring-2:focus{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-ring-2:focus-visible{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-ring-offset-2:focus-visible{--un-ring-offset-width:min(.533vw, 3.2px)}.dark .dark-ring-dark{--un-ring-opacity:1;--un-ring-color:rgb(34 34 34 / var(--un-ring-opacity)) }.dark .dark-ring-stone-7{--un-ring-opacity:1;--un-ring-color:rgb(68 64 60 / var(--un-ring-opacity)) }.dark .dark-ring-stone-8{--un-ring-opacity:1;--un-ring-color:rgb(41 37 36 / var(--un-ring-opacity)) }.ring-light{--un-ring-opacity:1;--un-ring-color:rgb(246 246 246 / var(--un-ring-opacity)) }.ring-stone-2{--un-ring-opacity:1;--un-ring-color:rgb(231 229 228 / var(--un-ring-opacity)) }.ring-stone-3{--un-ring-opacity:1;--un-ring-color:rgb(214 211 209 / var(--un-ring-opacity)) }.ring-ui-primary{--un-ring-opacity:1;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) }.ring-ui-primary\!{--un-ring-opacity:1 !important;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) !important}.focus-ring-ui-primary:focus{--un-ring-opacity:1;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) }.dark .dark-focus-visible-ring-offset-gray-900:focus-visible{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(17 24 39 / var(--un-ring-offset-opacity)) }.focus-visible-ring-offset-white:focus-visible{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(255 255 255 / var(--un-ring-offset-opacity)) }.ring-inset{--un-ring-inset:inset}.focus-visible-ring-inset:focus-visible{--un-ring-inset:inset}.backdrop-blur-sm{--un-backdrop-blur:blur(min(1.067vw, 6.4px));-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all,[transition-all=""]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all-500{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s}.transition-background-color-300{transition-property:background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-border-color-300{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-margin{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[all\:transition-400=""] *{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.4s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.delay-150{transition-delay:.15s}.ease-in,[ease-in=""]{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out,[ease-out=""]{transition-timing-function:cubic-bezier(0,0,.2,1)}[default~=ease-in]:default{transition-timing-function:cubic-bezier(.4,0,1,1)}[default~=ease-out]:default{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\:content-\[\'\'\]:after{content:""}.content-empty{content:""}.before\:content-empty:before{content:""}.after\:content-empty:after{content:""}.dark .dark-placeholder-stone-5::-moz-placeholder{--un-placeholder-opacity:1;color:rgb(120 113 108 / var(--un-placeholder-opacity))}.dark .dark-placeholder-stone-5::placeholder{--un-placeholder-opacity:1;color:rgb(120 113 108 / var(--un-placeholder-opacity))}.placeholder-stone-4::-moz-placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158 / var(--un-placeholder-opacity))}.placeholder-stone-4::placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158 / var(--un-placeholder-opacity))}.mb\+safe-\[var\(--g-tabbar-height\)\]{margin-bottom:calc(env(safe-area-inset-bottom) + var(--g-tabbar-height))}.mt-safe,[mt-safe~="_unref(settingsStore).settings.navbar.mode)"],[mt-safe~="??"],[mt-safe~="(_ctx.navbarMode"],[mt-safe~="==="]{margin-top:env(safe-area-inset-top,0)}.mt\+safe-\[var\(--g-navbar-height\)\]{margin-top:calc(env(safe-area-inset-top) + var(--g-navbar-height))}.pb-safe,[pb-safe=""]{padding-bottom:env(safe-area-inset-bottom,0)}.pt-safe{padding-top:env(safe-area-inset-top,0)}.h\+safe-b-\[calc\(var\(--g-tabbar-height\)\)\]{height:calc(env(safe-area-inset-bottom) + calc(var(--g-tabbar-height)))}.h\+safe-t-\[var\(--g-navbar-height\)\]{height:calc(env(safe-area-inset-top) + var(--g-navbar-height))}.bottom\+safe-\[calc\(var\(--g-tabbar-height\)\+16px\)\]\!{bottom:calc(env(safe-area-inset-bottom) + calc(var(--g-tabbar-height) + min(4.267vw,25.6px)))!important}@supports (height:100dvh){.supports-\[\(height\:100dvh\)\]\:h-dvh{height:100dvh}}@supports (min-height:100dvh){.supports-\[\(min-height\:100dvh\)\]\:min-h-dvh{min-height:100dvh}}@media (min-width: 1024px){.lg-my-8{margin-top:min(8.533vw,51.2px);margin-bottom:min(8.533vw,51.2px)}.lg-max-w-lg{max-width:min(136.533vw,819.2px)}.lg-translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-scale-100{--un-scale-x:1;--un-scale-y:1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-scale-95{--un-scale-x:.95;--un-scale-y:.95;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-items-center{align-items:center}}:root{--g-navbar-height: min(13.333vw, 80px);--g-tabbar-height: min(16vw, 96px);color-scheme:light}:root.dark{color-scheme:dark}html{overscroll-behavior:none}body{box-sizing:border-box;margin:0}*{box-sizing:inherit}#app{max-width:600px!important;margin-left:auto!important;margin-right:auto!important;box-shadow:0 0 0 1px rgba(136,136,136,.12);min-height:100vh;height:auto!important;overflow:hidden auto;font-size:min(3.733vw,22.4px);background-color:var(--g-bg)}.medium-zoom-overlay,.medium-zoom-image--opened{z-index:1100}@supports (min-height: 100dvh){#app{min-height:100dvh}} diff --git a/assets/index-Cf4_vbhO.css.br b/assets/index-Cf4_vbhO.css.br new file mode 100644 index 0000000..613f858 Binary files /dev/null and b/assets/index-Cf4_vbhO.css.br differ diff --git a/assets/index-Cf4_vbhO.css.gz b/assets/index-Cf4_vbhO.css.gz new file mode 100644 index 0000000..ddcb1bd Binary files /dev/null and b/assets/index-Cf4_vbhO.css.gz differ diff --git a/assets/index-DD358c5I.js b/assets/index-DD358c5I.js new file mode 100644 index 0000000..1bf4545 --- /dev/null +++ b/assets/index-DD358c5I.js @@ -0,0 +1,112 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BvYIJUVG.js","./index-DkxdnFkg.js","./index-CEzT67gG.css","./logo-DvfkIia2.js","./index-DYpkv-NC.js","./basic-WFbbQgFw.js","./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js","./built-in-CuZuocYO.js","./built-in-ojHX3N5y.css","./composite-BsubK0y6.js","./pagemain-demo-CyFB3cuM.js","./sparkline-demo-CSoPib9O.js","./sparkline-demo-BLfZO1aJ.css","./trend-demo-C3tL53JI.js","./errorLog-CuSmrDsI.js","./font-Dq7rX39F.js","./font-Bpu72GZV.css","./i18n-DA_O80-w.js","./icon-DZdN6GCF.js","./keepAlive-CUSTFduS.js","./scroll-C6m3hgBj.js","./scroll2-BTV6JlN9.js","./title-CqP7FtSA.js","./unocss-D0FABVcL.js","./watermark-CaopLkAC.js","./zoomable-B52EiMgA.js","./custom-area-D9KoYE4K.js","./custom-navbar-BfY0vt2s.js","./custom-navbar-BoWRFbmD.css","./custom-title-D_2cdcAs.js","./default-BU1r84Lk.js","./mode-Dhiktx0f.js","./none-jtoQ-Isj.js","./preset-Fg5pq6Iu.js","./title-no-center-CWQNR54Q.js","./loadmore-Du2nnSXd.js","./productlist-3LgwzsxM.js","./productlist-CROuibJ0.css","./schedule-DFRsQdUX.js","./schedule-DSaUVl66.css","./index-DHgij77Y.js","./function-call-BVTb5Ux6.js","./test-BN4ihABe.js","./animation-bGlipfm8.js","./animation-pDegJk7t.css","./echarts-D7CAfsfQ.js","./esign-CwjgP7-h.js","./esign-BX1I6AXs.css","./qrcode-BeogybRM.js","./swiper-CJ0otCO6.js","./swiper-Coapw6G4.css","./vchart-DbIrQOOZ.js","./badge-BdyfrbV2.js","./custom-area-BOQUSC5t.js","./default-CmtT-dUy.js","./multi-CVm3yxcv.js","./login-DT8IGGTc.js","./login-DRXm-LMi.css","./index-BjDFbG3z.js"])))=>i.map(i=>d[i]); +(function(){const ne=document.createElement("link").relList;if(ne&&ne.supports&&ne.supports("modulepreload"))return;for(const ie of document.querySelectorAll('link[rel="modulepreload"]'))ae(ie);new MutationObserver(ie=>{for(const se of ie)if(se.type==="childList")for(const de of se.addedNodes)de.tagName==="LINK"&&de.rel==="modulepreload"&&ae(de)}).observe(document,{childList:!0,subtree:!0});function oe(ie){const se={};return ie.integrity&&(se.integrity=ie.integrity),ie.referrerPolicy&&(se.referrerPolicy=ie.referrerPolicy),ie.crossOrigin==="use-credentials"?se.credentials="include":ie.crossOrigin==="anonymous"?se.credentials="omit":se.credentials="same-origin",se}function ae(ie){if(ie.ep)return;ie.ep=!0;const se=oe(ie);fetch(ie.href,se)}})();window.__VITE__PLUGIN__FAKE__SERVER__={meta:{name:"vite-plugin-fake-server",type:"module",version:"2.1.3",description:"A fake server plugin for Vite.",author:"Condor Hero",license:"MIT",homepage:"https://github.com/condorheroblog/vite-plugin-fake-server/blob/main/README.md",repository:{type:"git",url:"git+https://github.com/condorheroblog/vite-plugin-fake-server.git",directory:"packages/vite-plugin-fake-server"},bugs:{url:"https://github.com/condorheroblog/vite-plugin-fake-server/issues"},keywords:["vite-plugin-fake-server","vite-plugin-fake","vite-plugin-faker","vite-plugin-mock-server","vite-plugin-mock","faker-server"],exports:{".":{import:"./dist/index.mjs",require:"./dist/index.cjs"},"./client":{import:"./dist/client.mjs",require:"./dist/client.cjs"}},main:"dist/index.cjs",module:"dist/index.mjs",types:"dist/index.d.cts",typesVersions:{"*":{"*":["./dist/*","./dist/index.d.ts"]}},files:["dist"],scripts:{prepublishOnly:"nr build",test:"vitest",dev:"esno ./src/index.ts",build:"rimraf dist && rollup -c","build:watch":"rimraf dist && rollup -c -w",typecheck:"tsc --noEmit"},dependencies:{"bundle-import":"^0.0.2",chokidar:"^4.0.1","fast-glob":"^3.3.2","path-to-regexp":"^8.2.0",picocolors:"^1.1.1"},devDependencies:{vite:"^5.4.10"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}},vitePluginFakeServerOptions:{include:"src/mock",exclude:[],infixName:!1,extensions:["ts","js","mjs","cjs","cts","mts"],enableProd:!0,enableDev:!0,watch:!0,logger:!1,basename:"",headers:{},build:!1,http2:!0}};function defineFakeRoute(ee){return ee}const allList=[];for(let ee=0;ee<50;ee++)allList.push(ee+1);const page=[{url:"/mock/page/loadmore",method:"get",response:({query:ee})=>{const{from:ne,limit:oe}=ee;return{error:"",status:1,data:{list:allList.filter((ie,se)=>se>=~~ne&&se<~~ne+~~oe),total:allList.length}}}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:page},Symbol.toStringTag,{value:"Module"}));var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ee){return ee&&ee.__esModule&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee}var mock={exports:{}};(function(module,exports){(function(ne,oe){module.exports=oe()})(commonjsGlobal,function(){return function(ee){var ne={};function oe(ae){if(ne[ae])return ne[ae].exports;var ie=ne[ae]={exports:{},id:ae,loaded:!1};return ee[ae].call(ie.exports,ie,ie.exports,oe),ie.loaded=!0,ie.exports}return oe.m=ee,oe.c=ne,oe.p="",oe(0)}([function(ee,ne,oe){var ae=oe(1),ie=oe(3),se=oe(5),de=oe(20),fe=oe(23),ve=oe(25),be;typeof window<"u"&&(be=oe(27));/*! + Mock - 模拟请求 & 模拟数据 + https://github.com/nuysoft/Mock + 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com +*/var ye={Handler:ae,Random:se,Util:ie,XHR:be,RE:de,toJSONSchema:fe,valid:ve,heredoc:ie.heredoc,setup:function($e){return be.setup($e)},_mocked:{}};ye.version="1.0.1-beta3",be&&(be.Mock=ye),ye.mock=function($e,we,Ee){return arguments.length===1?ae.gen($e):(arguments.length===2&&(Ee=we,we=void 0),be&&(window.XMLHttpRequest=be),ye._mocked[$e+(we||"")]={rurl:$e,rtype:we,template:Ee},ye)},ee.exports=ye},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(ee,ne,oe){ne=ne==null?"":ne+"",oe=oe||{},oe={path:oe.path||[Constant.GUID],templatePath:oe.templatePath||[Constant.GUID++],currentContext:oe.currentContext,templateCurrentContext:oe.templateCurrentContext||ee,root:oe.root||oe.currentContext,templateRoot:oe.templateRoot||oe.templateCurrentContext||ee};var ae=Parser.parse(ne),ie=Util.type(ee),se;return Handler[ie]?(se=Handler[ie]({type:ie,template:ee,name:ne,parsedName:ne&&ne.replace(Constant.RE_KEY,"$1"),rule:ae,context:oe}),oe.root||(oe.root=se),se):ee},Handler.extend({array:function(ee){var ne=[],oe,ae;if(ee.template.length===0)return ne;if(ee.rule.parameters)if(ee.rule.min===1&&ee.rule.max===void 0)ee.context.path.push(ee.name),ee.context.templatePath.push(ee.name),ne=Random.pick(Handler.gen(ee.template,void 0,{path:ee.context.path,templatePath:ee.context.templatePath,currentContext:ne,templateCurrentContext:ee.template,root:ee.context.root||ne,templateRoot:ee.context.templateRoot||ee.template})),ee.context.path.pop(),ee.context.templatePath.pop();else if(ee.rule.parameters[2])ee.template.__order_index=ee.template.__order_index||0,ee.context.path.push(ee.name),ee.context.templatePath.push(ee.name),ne=Handler.gen(ee.template,void 0,{path:ee.context.path,templatePath:ee.context.templatePath,currentContext:ne,templateCurrentContext:ee.template,root:ee.context.root||ne,templateRoot:ee.context.templateRoot||ee.template})[ee.template.__order_index%ee.template.length],ee.template.__order_index+=+ee.rule.parameters[2],ee.context.path.pop(),ee.context.templatePath.pop();else for(oe=0;oe1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(ie=ne.context.path.slice(0),ie.pop(),ie=this.normalizePath(ie.concat(ae)));try{ee=ae[ae.length-1];for(var se=ne.context.root,de=ne.context.templateRoot,fe=1;fe1/(oe+ae)*oe?!ie:ie):Math.random()>=.5},bool:function(oe,ae,ie){return this.boolean(oe,ae,ie)},natural:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):0,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},integer:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):-9007199254740992,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},int:function(oe,ae){return this.integer(oe,ae)},float:function(oe,ae,ie,se){ie=ie===void 0?0:ie,ie=Math.max(Math.min(ie,17),0),se=se===void 0?17:se,se=Math.max(Math.min(se,17),0);for(var de=this.integer(oe,ae)+".",fe=0,ve=this.natural(ie,se);fe1&&be--,6*be<1?$e=fe+(ve-fe)*6*be:2*be<1?$e=ve:3*be<2?$e=fe+(ve-fe)*(2/3-be)*6:$e=fe,ye[we]=$e*255;return ye},hsl2hsv:function(ae){var ie=ae[0],se=ae[1]/100,de=ae[2]/100,fe,ve;return de*=2,se*=de<=1?de:2-de,ve=(de+se)/2,fe=2*se/(de+se),[ie,fe*100,ve*100]},hsv2rgb:function(ae){var ie=ae[0]/60,se=ae[1]/100,de=ae[2]/100,fe=Math.floor(ie)%6,ve=ie-Math.floor(ie),be=255*de*(1-se),ye=255*de*(1-se*ve),$e=255*de*(1-se*(1-ve));switch(de=255*de,fe){case 0:return[de,$e,be];case 1:return[ye,de,be];case 2:return[be,de,$e];case 3:return[be,ye,de];case 4:return[$e,be,de];case 5:return[de,be,ye]}},hsv2hsl:function(ae){var ie=ae[0],se=ae[1]/100,de=ae[2]/100,fe,ve;return ve=(2-se)*de,fe=se*de,fe/=ve<=1?ve:2-ve,ve/=2,[ie,fe*100,ve*100]},rgb2hex:function(oe,ae,ie){return"#"+((256+oe<<8|ae)<<8|ie).toString(16).slice(1)},hex2rgb:function(oe){return oe="0x"+oe.slice(1).replace(oe.length>4?oe:/./g,"$&$&")|0,[oe>>16,oe>>8&255,oe&255]}}},function(ee,ne){ee.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(ee,ne,oe){var ae=oe(6),ie=oe(14);function se(de,fe,ve,be){return ve===void 0?ae.natural(de,fe):be===void 0?ve:ae.natural(parseInt(ve,10),parseInt(be,10))}ee.exports={paragraph:function(de,fe){for(var ve=se(3,7,de,fe),be=[],ye=0;ye1&&(se=[].slice.call(arguments,0));var de=ie.options,fe=de.context.templatePath.join("."),ve=ie.cache[fe]=ie.cache[fe]||{index:0,array:se};return ve.array[ve.index++%ve.array.length]}}},function(ee,ne){ee.exports={first:function(){var oe=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(oe)},last:function(){var oe=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(oe)},name:function(oe){return this.first()+" "+(oe?this.first()+" ":"")+this.last()},cfirst:function(){var oe="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(oe)},clast:function(){var oe="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(oe)},cname:function(){return this.cfirst()+this.clast()}}},function(ee,ne){ee.exports={url:function(oe,ae){return(oe||this.protocol())+"://"+(ae||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(oe){return this.word()+"."+(oe||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(oe){return this.character("lower")+"."+this.word()+"@"+(oe||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(ee,ne,oe){var ae=oe(18),ie=["东北","华北","华东","华中","华南","西南","西北"];ee.exports={region:function(){return this.pick(ie)},province:function(){return this.pick(ae).name},city:function(se){var de=this.pick(ae),fe=this.pick(de.children);return se?[de.name,fe.name].join(" "):fe.name},county:function(se){var de=this.pick(ae),fe=this.pick(de.children),ve=this.pick(fe.children)||{name:"-"};return se?[de.name,fe.name,ve.name].join(" "):ve.name},zip:function(se){for(var de="",fe=0;fe<(se||6);fe++)de+=this.natural(0,9);return de}}},function(ee,ne){var oe={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function ae(se){for(var de={},fe=0,ve;feEn;En++)Nn=Me.charAt(En),Nn===` +`?(Jt.seenCR||Jt.line++,Jt.column=1,Jt.seenCR=!1):Nn==="\r"||Nn==="\u2028"||Nn==="\u2029"?(Jt.line++,Jt.column=1,Jt.seenCR=!0):(Jt.column++,Jt.seenCR=!1)}return On!==Ie&&(On>Ie&&(On=0,Yn={line:1,column:1,seenCR:!1}),We(Yn,On,Ie),On=Ie),Yn}function De(Ie){jn>kt||(kt>jn&&(jn=kt,Hn=[]),Hn.push(Ie))}function je(Ie){var We=0;for(Ie.sort();Wekt?(Jt=Me.charAt(kt),kt++):(Jt=null,rn===0&&De($r)),Jt!==null?(ln=Ie,We=ea(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)):(kt=Ie,Ie=sn),Ie}function wn(){var Ie,We,Jt;return Ie=kt,Me.charCodeAt(kt)===92?(We=Sr,kt++):(We=null,rn===0&&De(wr)),We!==null?(ta.test(Me.charAt(kt))?(Jt=Me.charAt(kt),kt++):(Jt=null,rn===0&&De(na)),Jt!==null?(ln=Ie,We=ra(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)):(kt=Ie,Ie=sn),Ie}function $n(){var Ie,We,Jt,an;if(Ie=kt,Me.substr(kt,2)===Mn?(We=Mn,kt+=2):(We=null,rn===0&&De(_r)),We!==null){if(Jt=[],Er.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Cr)),an!==null)for(;an!==null;)Jt.push(an),Er.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Cr));else Jt=sn;Jt!==null?(ln=Ie,We=oa(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)}else kt=Ie,Ie=sn;return Ie}function Cn(){var Ie,We,Jt,an;if(Ie=kt,Me.substr(kt,2)===Tr?(We=Tr,kt+=2):(We=null,rn===0&&De(aa)),We!==null){if(Jt=[],Bn.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Fn)),an!==null)for(;an!==null;)Jt.push(an),Bn.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Fn));else Jt=sn;Jt!==null?(ln=Ie,We=ia(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)}else kt=Ie,Ie=sn;return Ie}function _n(){var Ie,We,Jt,an;if(Ie=kt,Me.substr(kt,2)===Pr?(We=Pr,kt+=2):(We=null,rn===0&&De(sa)),We!==null){if(Jt=[],Bn.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Fn)),an!==null)for(;an!==null;)Jt.push(an),Bn.test(Me.charAt(kt))?(an=Me.charAt(kt),kt++):(an=null,rn===0&&De(Fn));else Jt=sn;Jt!==null?(ln=Ie,We=la(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)}else kt=Ie,Ie=sn;return Ie}function Rn(){var Ie,We;return Ie=kt,Me.substr(kt,2)===Mn?(We=Mn,kt+=2):(We=null,rn===0&&De(_r)),We!==null&&(ln=Ie,We=ca()),We===null&&(kt=Ie),Ie=We,Ie}function In(){var Ie,We,Jt;return Ie=kt,Me.charCodeAt(kt)===92?(We=Sr,kt++):(We=null,rn===0&&De(wr)),We!==null?(Me.length>kt?(Jt=Me.charAt(kt),kt++):(Jt=null,rn===0&&De($r)),Jt!==null?(ln=Ie,We=Kn(Jt),We===null&&(kt=Ie),Ie=We):(kt=Ie,Ie=sn)):(kt=Ie,Ie=sn),Ie}var Tn,Pn=arguments.length>1?arguments[1]:{},Dn={regexp:He},An=He,sn=null,Sn="",xn="|",kn='"|"',Un=function(Ie,We){return We?new ae(Ie,We[1]):Ie},Ln=function(Ie,We,Jt){return new ie([Ie].concat(We).concat([Jt]))},qn="^",Gn='"^"',xr=function(){return new oe("start")},kr="$",Ar='"$"',Or=function(){return new oe("end")},Nr=function(Ie,We){return new fe(Ie,We)},Rr="Quantifier",Ir=function(Ie,We){return We&&(Ie.greedy=!1),Ie},zn="{",Wn='"{"',Dr=",",Lr='","',Xn="}",Jn='"}"',Vr=function(Ie,We){return new ve(Ie,We)},Zn=",}",Mr='",}"',Br=function(Ie){return new ve(Ie,1/0)},Fr=function(Ie){return new ve(Ie,Ie)},jr="+",Hr='"+"',Ur=function(){return new ve(1,1/0)},zr="*",Wr='"*"',Kr=function(){return new ve(0,1/0)},Qn="?",er='"?"',Yr=function(){return new ve(0,1)},tr=/^[0-9]/,nr="[0-9]",qr=function(Ie){return+Ie.join("")},Gr="(",Xr='"("',Jr=")",Zr='")"',Qr=function(Ie){return Ie},eo=function(Ie){return new de(Ie)},rr="?:",to='"?:"',no=function(Ie){return new se("non-capture-group",Ie)},or="?=",ro='"?="',oo=function(Ie){return new se("positive-lookahead",Ie)},ar="?!",ao='"?!"',io=function(Ie){return new se("negative-lookahead",Ie)},so="CharacterSet",lo="[",co='"["',uo="]",fo='"]"',mo=function(Ie,We){return new be(!!Ie,We)},ho="CharacterRange",po="-",go='"-"',vo=function(Ie,We){return new ye(Ie,We)},bo="Character",yo=/^[^\\\]]/,$o="[^\\\\\\]]",Kn=function(Ie){return new $e(Ie)},So=".",wo='"."',_o=function(){return new oe("any-character")},Eo="Literal",Co=/^[^|\\\/.[()?+*$\^]/,To="[^|\\\\\\/.[()?+*$\\^]",Vn="\\b",ir='"\\\\b"',Po=function(){return new oe("backspace")},xo=function(){return new oe("word-boundary")},sr="\\B",ko='"\\\\B"',Ao=function(){return new oe("non-word-boundary")},lr="\\d",Oo='"\\\\d"',No=function(){return new oe("digit")},cr="\\D",Ro='"\\\\D"',Io=function(){return new oe("non-digit")},ur="\\f",Do='"\\\\f"',Lo=function(){return new oe("form-feed")},dr="\\n",Vo='"\\\\n"',Mo=function(){return new oe("line-feed")},fr="\\r",Bo='"\\\\r"',Fo=function(){return new oe("carriage-return")},mr="\\s",jo='"\\\\s"',Ho=function(){return new oe("white-space")},hr="\\S",Uo='"\\\\S"',zo=function(){return new oe("non-white-space")},pr="\\t",Wo='"\\\\t"',Ko=function(){return new oe("tab")},gr="\\v",Yo='"\\\\v"',qo=function(){return new oe("vertical-tab")},vr="\\w",Go='"\\\\w"',Xo=function(){return new oe("word")},br="\\W",Jo='"\\\\W"',Zo=function(){return new oe("non-word")},yr="\\c",Qo='"\\\\c"',$r="any character",ea=function(Ie){return new Pe(Ie)},Sr="\\",wr='"\\\\"',ta=/^[1-9]/,na="[1-9]",ra=function(Ie){return new Ce(Ie)},Mn="\\0",_r='"\\\\0"',Er=/^[0-7]/,Cr="[0-7]",oa=function(Ie){return new _e(Ie.join(""))},Tr="\\x",aa='"\\\\x"',Bn=/^[0-9a-fA-F]/,Fn="[0-9a-fA-F]",ia=function(Ie){return new Ee(Ie.join(""))},Pr="\\u",sa='"\\\\u"',la=function(Ie){return new we(Ie.join(""))},ca=function(){return new oe("null-character")},kt=0,ln=0,On=0,Yn={line:1,column:1,seenCR:!1},jn=0,Hn=[],rn=0;if("startRule"in Pn){if(!(Pn.startRule in Dn))throw new Error(`Can't start parsing from rule "`+Pn.startRule+'".');An=Dn[Pn.startRule]}if(oe.offset=Xe,oe.text=Le,Tn=An(),Tn!==null&&kt===Me.length)return Tn;throw je(Hn),ln=Math.max(kt,jn),new Re(Hn,lnwe)return!0;var Ce={path:ye,type:be,actual:$e,expected:we,action:"is greater than",message:_e};return Ce.message=ve.message(Ce),Ee.push(Ce),!1},lessThan:function(be,ye,$e,we,Ee,_e){if($e=we)return!0;var Ce={path:ye,type:be,actual:$e,expected:we,action:"is greater than or equal to",message:_e};return Ce.message=ve.message(Ce),Ee.push(Ce),!1},lessThanOrEqualTo:function(be,ye,$e,we,Ee,_e){if($e<=we)return!0;var Ce={path:ye,type:be,actual:$e,expected:we,action:"is less than or equal to",message:_e};return Ce.message=ve.message(Ce),Ee.push(Ce),!1}};de.Diff=fe,de.Assert=ve,ee.exports=de},function(ee,ne,oe){ee.exports=oe(28)},function(ee,ne,oe){var ae=oe(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(_e,Ce,Pe,Ae){var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(_e,Ce,Pe,Ae),ke}}var ie={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},se="readystatechange loadstart progress abort error load timeout loadend".split(" "),de="timeout withCredentials".split(" "),fe="readyState responseURL status statusText responseType response responseText responseXML".split(" "),ve={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function be(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}be._settings={timeout:"10-100"},be.setup=function(Ee){return ae.extend(be._settings,Ee),be._settings},ae.extend(be,ie),ae.extend(be.prototype,ie),be.prototype.mock=!0,be.prototype.match=!1,ae.extend(be.prototype,{open:function(Ee,_e,Ce,Pe,Ae){var ke=this;ae.extend(this.custom,{method:Ee,url:_e,async:typeof Ce=="boolean"?Ce:!0,username:Pe,password:Ae,options:{url:_e,type:Ee}}),this.custom.timeout=function(Le){if(typeof Le=="number")return Le;if(typeof Le=="string"&&!~Le.indexOf("-"))return parseInt(Le,10);if(typeof Le=="string"&&~Le.indexOf("-")){var Xe=Le.split("-"),Ke=parseInt(Xe[0],10),De=parseInt(Xe[1],10);return Math.round(Math.random()*(De-Ke))+Ke}}(be._settings.timeout);var Ne=$e(this.custom.options);function Oe(Le){for(var Xe=0;Xe({error:"",status:1,data:Mock.mock({account:ee.account,token:`${ee.account}_@string`,avatar:"https://fantastic-mobile.hurui.me/logo.png"})})},{url:"/mock/user/permission",method:"get",response:({headers:ee})=>{var oe,ae;let ne=[];return((oe=ee.token)==null?void 0:oe.indexOf("admin"))===0?ne=["permission.browse","permission.create","permission.edit","permission.remove"]:((ae=ee.token)==null?void 0:ae.indexOf("test"))===0&&(ne=["permission.browse"]),{error:"",status:1,data:{permissions:ne}}}}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:user},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"/src/mock/page.ts":__vite_glob_0_0,"/src/mock/user.ts":__vite_glob_0_1}),fakeModuleList$1=Object.keys(modules).reduce((ee,ne)=>{const oe=modules[ne]??{};if(oe.default)for(const ae of Object.keys(oe)){const ie=modules[ne][ae]??[],se=Array.isArray(ie)?[...ie]:[ie];return[...ee,...se]}else return ee},[]);window.__VITE__PLUGIN__FAKE__SERVER__.fakeModuleList=fakeModuleList$1;function xhook(){const ee=ze=>{try{return new URL(ze),!0}catch{return!1}},ne=(ze,Fe)=>Array.prototype.slice.call(ze,Fe);let oe=null;typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?oe=self:typeof global<"u"?oe=global:window&&(oe=window);const ae=oe,ie=oe.document,se=["load","loadend","loadstart"],de=["progress","abort","error","timeout"],fe=ze=>["returnValue","totalSize","position"].includes(ze),ve=function(ze,Fe){for(let Ze in ze){if(fe(Ze))continue;const ot=ze[Ze];try{Fe[Ze]=ot}catch{}}return Fe},be=function(ze,Fe,Ze){const ot=Nt=>function(Mt){const Ue={};for(let Pt in Mt){if(fe(Pt))continue;const Dt=Mt[Pt];Ue[Pt]=Dt===Fe?Ze:Dt}return Ze.dispatchEvent(Nt,Ue)};for(let Nt of Array.from(ze))Ze._has(Nt)&&(Fe[`on${Nt}`]=ot(Nt))},ye=function(ze){if(ie&&ie.createEventObject!=null){const Fe=ie.createEventObject();return Fe.type=ze,Fe}try{return new Event(ze)}catch{return{type:ze}}},$e=function(ze){let Fe={};const Ze=Nt=>Fe[Nt]||[],ot={};return ot.addEventListener=function(Nt,Mt,Ue){Fe[Nt]=Ze(Nt),!(Fe[Nt].indexOf(Mt)>=0)&&(Ue=Ue===void 0?Fe[Nt].length:Ue,Fe[Nt].splice(Ue,0,Mt))},ot.removeEventListener=function(Nt,Mt){if(Nt===void 0){Fe={};return}Mt===void 0&&(Fe[Nt]=[]);const Ue=Ze(Nt).indexOf(Mt);Ue!==-1&&Ze(Nt).splice(Ue,1)},ot.dispatchEvent=function(){const Nt=ne(arguments),Mt=Nt.shift();ze||(Nt[0]=ve(Nt[0],ye(Mt)),Object.defineProperty(Nt[0],"target",{writable:!1,value:this}));const Ue=ot[`on${Mt}`];Ue&&Ue.apply(ot,Nt);const Pt=Ze(Mt).concat(Ze("*"));for(let Dt=0;Dt!!(Fe[Nt]||ot[`on${Nt}`]),ze&&(ot.listeners=Nt=>ne(Ze(Nt)),ot.on=ot.addEventListener,ot.off=ot.removeEventListener,ot.fire=ot.dispatchEvent,ot.once=function(Nt,Mt){var Ue=function(){return ot.off(Nt,Ue),Mt.apply(null,arguments)};return ot.on(Nt,Ue)},ot.destroy=()=>Fe={}),ot},we=`\r +`,Ee=function(ze){return Object.entries(ze).map(([ot,Nt])=>`${ot.toLowerCase()}: ${Nt}`).join(we)},_e=function(ze,Fe){const Ze=ze.split(we);Fe==null&&(Fe={});for(let ot of Ze)if(/([^:]+):\s*(.+)/.test(ot)){const Nt=RegExp.$1!=null?RegExp.$1.toLowerCase():void 0,Mt=RegExp.$2;Fe[Nt]==null&&(Fe[Nt]=Mt)}return Fe};var Pe={convert:function(ze,Fe){switch(typeof ze){case"object":return Ee(ze);case"string":return _e(ze,Fe)}return[]}};const Ae=$e(!0),ke=ze=>ze===void 0?null:ze,Ne=ae.XMLHttpRequest,Oe=function(){const Fe=new Ne,Ze={};let ot=null,Nt,Mt,Ue;var Pt=0;const Dt=function(){if(Ue.status=ot||Fe.status,ot!==-1&&(Ue.statusText=Fe.statusText),ot!==-1){const Zt=Pe.convert(Fe.getAllResponseHeaders());for(let nt in Zt){const Et=Zt[nt];if(!Ue.headers[nt]){const Bt=nt.toLowerCase();Ue.headers[Bt]=Et}}return}},Ut=function(){if(!Fe.responseType||Fe.responseType==="text"){Ue.text=Fe.responseText,Ue.data=Fe.responseText;try{Ue.xml=Fe.responseXML}catch{}}else Fe.responseType==="document"?(Ue.xml=Fe.responseXML,Ue.data=Fe.responseXML):Ue.data=Fe.response;"responseURL"in Fe&&(Ue.responseURL=Fe.responseURL)},Rt=function(){jt.status=Ue.status,jt.statusText=Ue.statusText},Wt=function(){if("text"in Ue&&(jt.responseText=Ue.text),"xml"in Ue&&(jt.responseXML=Ue.xml),"data"in Ue)jt.response=Ue.data;else{const Zt={"":"",text:"",json:null,blob:new Blob([],{type:new Headers(Ue.headers??{}).get("content-type")}),arraybuffer:new ArrayBuffer};jt.response=Zt[jt.responseType]}("responseURL"in Ue||Ze.url)&&(jt.responseURL=Ue.responseURL??(ee(Ze.url)?Ze.url:new URL(location.href).origin+Ze.url))},Qe=function(){Nt||jt.dispatchEvent("load",{}),jt.dispatchEvent("loadend",{}),Nt&&(jt.readyState=0)},It=function(Zt){for(;Zt>Pt&&Pt<4;)jt.readyState=++Pt,Pt===1&&jt.dispatchEvent("loadstart",{}),Pt===2&&Rt(),Pt===4&&(Rt(),Wt()),jt.dispatchEvent("readystatechange",{}),Pt===4&&(Ze.async===!1?Qe():setTimeout(Qe,0))},Ft=function(Zt){if(Zt!==4){It(Zt);return}const nt=Ae.listeners("after");var Et=function(){if(nt.length>0){const Bt=nt.shift();Bt.length===2?(Bt(Ze,Ue),Et()):Bt.length===3&&Ze.async?Bt(Ze,Ue,Et):Et()}else It(4)};Et()};var jt=$e();Ze.xhr=jt,Fe.onreadystatechange=function(Zt){try{Fe.readyState===2&&Dt()}catch{}Fe.readyState===4&&(Mt=!1,Dt(),Ut()),Ft(Fe.readyState)};const tn=function(){Nt=!0};jt.addEventListener("error",tn),jt.addEventListener("timeout",tn),jt.addEventListener("abort",tn),jt.addEventListener("progress",function(Zt){Pt<3?Ft(3):Fe.readyState<=3&&jt.dispatchEvent("readystatechange",{})}),"withCredentials"in Fe&&(jt.withCredentials=!1),jt.status=0;for(let Zt of Array.from(de.concat(se)))jt[`on${Zt}`]=null;if(jt.open=function(Zt,nt,Et,Bt,Xt){Pt=0,Nt=!1,Mt=!1,Ze.headers={},Ze.headerNames={},Ze.status=0,Ze.method=Zt,Ze.url=nt,Ze.async=Et!==!1,Ze.user=Bt,Ze.pass=Xt,Ue={},Ue.headers={},Ft(1)},jt.send=function(Zt){let nt,Et;for(nt of["type","timeout","withCredentials"])Et=nt==="type"?"responseType":nt,Et in jt&&(Ze[nt]=jt[Et]);Ze.body=Zt;const Bt=function(){be(de,Fe,jt),jt.upload&&be(de.concat(se),Fe.upload,jt.upload),Mt=!0,Fe.open(Ze.method,Ze.url,Ze.async,Ze.user,Ze.pass);for(nt of["type","timeout","withCredentials"])Et=nt==="type"?"responseType":nt,nt in Ze&&(Fe[Et]=Ze[nt]);for(let st in Ze.headers){const Tt=Ze.headers[st];st&&Fe.setRequestHeader(st,Tt)}Fe.send(Ze.body)},Xt=Ae.listeners("before");var Yt=function(){if(!Xt.length)return Bt();const st=function(Vt){if(typeof Vt=="object"&&(typeof Vt.status=="number"||typeof Ue.status=="number")){ve(Vt,Ue),"data"in Vt||(Vt.data=Vt.response||Vt.text),Ft(4);return}Yt()};st.head=function(Vt){ve(Vt,Ue),Ft(2)},st.progress=function(Vt){ve(Vt,Ue),Ft(3)};const Tt=Xt.shift();Tt.length===1?st(Tt(Ze)):Tt.length===2&&Ze.async?Tt(Ze,st):st()};Yt()},jt.abort=function(){ot=-1,Mt?Fe.abort():jt.dispatchEvent("abort",{})},jt.setRequestHeader=function(Zt,nt){const Et=Zt!=null?Zt.toLowerCase():void 0,Bt=Ze.headerNames[Et]=Ze.headerNames[Et]||Zt;Ze.headers[Bt]&&(nt=Ze.headers[Bt]+", "+nt),Ze.headers[Bt]=nt},jt.getResponseHeader=Zt=>ke(Ue.headers[Zt?Zt.toLowerCase():void 0]),jt.getAllResponseHeaders=()=>ke(Pe.convert(Ue.headers)),Fe.overrideMimeType&&(jt.overrideMimeType=function(){Fe.overrideMimeType.apply(Fe,arguments)}),Fe.upload){let Zt=$e();jt.upload=Zt,Ze.upload=Zt}return jt.UNSENT=0,jt.OPENED=1,jt.HEADERS_RECEIVED=2,jt.LOADING=3,jt.DONE=4,jt.response="",jt.responseText="",jt.responseXML=null,jt.readyState=0,jt.statusText="",jt.responseType="",jt};Oe.UNSENT=0,Oe.OPENED=1,Oe.HEADERS_RECEIVED=2,Oe.LOADING=3,Oe.DONE=4;var Re={patch(){Ne&&(ae.XMLHttpRequest=Oe)},unpatch(){Ne&&(ae.XMLHttpRequest=Ne)},Native:Ne,Xhook:Oe};function Be(ze,Fe){var Ze={};for(var ot in ze)Object.prototype.hasOwnProperty.call(ze,ot)&&Fe.indexOf(ot)<0&&(Ze[ot]=ze[ot]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ot=Object.getOwnPropertySymbols(ze);NtZe[ot]=ze[ot]),Ze}function Ke(ze){return ze instanceof Headers?De([...ze.entries()]):Array.isArray(ze)?De(ze):ze}function De(ze){return ze.reduce((Fe,[Ze,ot])=>(Fe[Ze]=ot,Fe),{})}const je=function(ze,Fe={headers:{}}){let Ze=Object.assign(Object.assign({},Fe),{isFetch:!0});if(ze instanceof Request){const Mt=Xe(ze),Ue=Object.assign(Object.assign({},Ke(Mt.headers)),Ke(Ze.headers));Ze=Object.assign(Object.assign(Object.assign({},Mt),Fe),{headers:Ue,acceptedRequest:!0,isFetch:!0})}else Ze.url=ze;const ot=Ae.listeners("before"),Nt=Ae.listeners("after");return new Promise(function(Mt,Ue){let Pt=Mt;const Dt=function(Qe){if(!Nt.length)return Pt(Qe);const It=Nt.shift();return It.length===2?(It(Ze,Qe),Dt(Qe)):It.length===3?It(Ze,Qe,Dt):Dt(Qe)},Ut=function(Qe){if(Qe!==void 0){const It=new Response(Qe.body||Qe.text,Qe);Object.defineProperty(It,"url",{value:ee(Ze.url)?Ze.url:new URL(location.href).origin+Ze.url}),Mt(It),Dt(It);return}Rt()},Rt=function(){if(!ot.length){Wt();return}const Qe=ot.shift();if(Qe.length===1)return Ut(Qe(Ze));if(Qe.length===2)return Qe(Ze,Ut)},Wt=()=>Me(this,void 0,void 0,function*(){const{url:Qe,isFetch:It,acceptedRequest:Ft}=Ze,jt=Be(Ze,["url","isFetch","acceptedRequest"]);return ze instanceof Request&&jt.body instanceof ReadableStream&&(jt.body=yield new Response(jt.body).text()),Le(Qe,jt).then(tn=>Dt(tn)).catch(function(tn){return Pt=Ue,Dt(tn),Ue(tn)})});Rt()})};var He={patch(){Le&&(ae.fetch=je)},unpatch(){Le&&(ae.fetch=Le)},Native:Le,Xhook:je};const qe=Ae;return qe.EventEmitter=$e,qe.before=function(ze,Fe){if(ze.length<1||ze.length>2)throw"invalid hook";return qe.on("before",ze,Fe)},qe.after=function(ze,Fe){if(ze.length<2||ze.length>3)throw"invalid hook";return qe.on("after",ze,Fe)},qe.enable=function(){Re.patch(),He.patch()},qe.disable=function(){Re.unpatch(),He.unpatch()},qe.XMLHttpRequest=Re.Native,qe.fetch=He.Native,qe.headers=Pe.convert,qe.enable(),qe}window.__VITE__PLUGIN__FAKE__SERVER__.xhook=xhook();window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp=(function(){return function(ee){var ne={};Object.defineProperty(ne,"__esModule",{value:!0}),ee.TokenData=ne.TokenData=void 0;var oe=ne.parse=ke,ae=ne.compile=Ne,ie=ne.match=Be,se=ne.pathToRegexp=Me,de=ne.stringify=De;const fe="/",ve=qe=>qe,be=/^[$_\p{ID_Start}]$/u,ye=/^[$\u200c\u200d\p{ID_Continue}]$/u,$e="https://git.new/pathToRegexpError",we={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Ee(qe){return qe.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function _e(qe){return qe.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Ce(qe){const ze=[...qe];let Fe=0;function Ze(){let ot="";if(be.test(ze[++Fe]))for(ot+=ze[Fe];ye.test(ze[++Fe]);)ot+=ze[Fe];else if(ze[Fe]==='"'){let Nt=Fe;for(;FeRe(ot,ze,Fe));return ot=>{const Nt=[""];for(const Mt of Ze){const[Ue,...Pt]=Mt(ot);Nt[0]+=Ue,Nt.push(...Pt)}return Nt}}function Re(qe,ze,Fe){if(qe.type==="text")return()=>[qe.value];if(qe.type==="group"){const ot=Oe(qe.tokens,ze,Fe);return Nt=>{const[Mt,...Ue]=ot(Nt);return Ue.length?[""]:[Mt]}}const Ze=Fe||ve;return qe.type==="wildcard"&&Fe!==!1?ot=>{const Nt=ot[qe.name];if(Nt==null)return["",qe.name];if(!Array.isArray(Nt)||Nt.length===0)throw new TypeError(`Expected "${qe.name}" to be a non-empty array`);return[Nt.map((Mt,Ue)=>{if(typeof Mt!="string")throw new TypeError(`Expected "${qe.name}/${Ue}" to be a string`);return Ze(Mt)}).join(ze)]}:ot=>{const Nt=ot[qe.name];if(Nt==null)return["",qe.name];if(typeof Nt!="string")throw new TypeError(`Expected "${qe.name}" to be a string`);return[Ze(Nt)]}}function Be(qe,ze={}){const{decode:Fe=decodeURIComponent,delimiter:Ze=fe}=ze,{regexp:ot,keys:Nt}=Me(qe,ze),Mt=Nt.map(Ue=>Fe===!1?ve:Ue.type==="param"?Fe:Pt=>Pt.split(Ze).map(Fe));return function(Pt){const Dt=ot.exec(Pt);if(!Dt)return!1;const Ut=Dt[0],Rt=Object.create(null);for(let Wt=1;WtQe instanceof Ae?Qe:ke(Qe,ze));for(const{tokens:Qe}of Ut)for(const It of Le(Qe,0,[])){const Ft=Xe(It,Fe,Mt);Ue.push(Ft)}let Rt=`^(?:${Ue.join("|")})`;return Nt&&(Rt+=`(?:${_e(Fe)}$)?`),Rt+=Ze?"$":`(?=${_e(Fe)}|$)`,{regexp:new RegExp(Rt,Pt),keys:Mt}}function*Le(qe,ze,Fe){if(ze===qe.length)return yield Fe;const Ze=qe[ze];if(Ze.type==="group"){const ot=Fe.slice();for(const Nt of Le(Ze.tokens,0,ot))yield*Le(qe,ze+1,Nt)}else Fe.push(Ze);yield*Le(qe,ze+1,Fe)}function Xe(qe,ze,Fe){let Ze="",ot="",Nt=!0;for(let Mt=0;Mtye.test(Ze)):!1}function He(qe){return(qe==null?void 0:qe.type)!=="text"?!0:!ye.test(qe.value[0])}ee.compile=ae,ee.default=ne,ee.match=ie,ee.parse=oe,ee.pathToRegexp=se,ee.stringify=de,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}(this.pathToRegexp=this.pathToRegexp||{}),this.pathToRegexp}).apply({});const fakeModuleList=window.__VITE__PLUGIN__FAKE__SERVER__.fakeModuleList,pathToRegexp=window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp,match=pathToRegexp.match??pathToRegexp.default.match;window.__VITE__PLUGIN__FAKE__SERVER__.xhook.before(async function(ee,ne){function oe(ve){return new Promise(be=>{const ye=setTimeout(()=>{be(ye),clearTimeout(ye)},ve)})}function ae(ve){let be="";try{be=JSON.parse(ve)}catch{be=ve}return be}async function ie(ve={},be=[],ye={}){const{match:$e,basename:we="",defaultTimeout:Ee=0,globalResponseHeaders:_e={}}=ye;function Ce(Pe,Ae){const ke=new URL(Pe,"http://localhost:5173/").pathname,Ne=new URL(Ae,"http://localhost:5173/").pathname;return ke.endsWith("/")?ke.slice(0,-1)+Ne:ke+Ne}if(ve.url){const Pe=new URL(ve.url,"http://localhost:5173/"),Ae=Pe.pathname,ke=be.find(Ne=>{if(!Ae||!Ne||!Ne.url)return!1;const Oe=Ne.method??"GET",Re=ve.method??"GET";if(Oe.toUpperCase()!==Re.toUpperCase())return!1;const Be=Ce(we,Ne.url);return!!$e(Be)(Ae)});if(ke){const{response:Ne,rawResponse:Oe,timeout:Re=Ee,statusCode:Be,statusText:Me,url:Le,headers:Xe={}}=ke;Re&&await oe(Re);const Ke=Ce(we,Le),De=$e(Ke,{encode:encodeURI}),je=Pe.searchParams,He={};for(const[ze,Fe]of je.entries())if(Object.prototype.hasOwnProperty.call(He,ze)){const Ze=He[ze];Array.isArray(Ze)?Ze.push(Fe):He[ze]=[Ze,Fe]}else He[ze]=Fe;let qe={};if(Ae){const ze=De(Ae);ze&&(qe=ze.params)}return{response:Ne,rawResponse:Oe,timeout:Re,statusCode:Be??200,statusText:Me,url:ve.url,query:He,params:qe,responseHeaders:new Headers({..._e,...Xe})}}}}const se={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};function de(ve){const be={};for(const[ye,$e]of ve.entries())be[ye]=$e;return be}const fe=await ie(ee,fakeModuleList,{match,basename:"",defaultTimeout:void 0,globalResponseHeaders:{}});if(fe){const{response:ve,statusCode:be,statusText:ye=se[be],url:$e,query:we,params:Ee,responseHeaders:_e}=fe??{},Ce="",Pe=typeof ve=="function",Ae={};for(const Ne in ee.headers)Ae[Ne.toLowerCase()]=ee.headers[Ne];const ke=!Pe||await Promise.resolve(ve({url:$e,body:ae(ee.body),rawBody:ee.body,query:we,params:Ee,headers:Ae}));if(ee.isFetch)typeof ke=="string"?(_e.get("Content-Type")||_e.set("Content-Type","text/plain"),ne(new Response(Pe?ke:null,{statusText:Ce,status:be,headers:de(_e)}))):(_e.get("Content-Type")||_e.set("Content-Type","application/json"),ne(new Response(Pe?JSON.stringify(ke,null,2):null,{statusText:Ce,status:be,headers:de(_e)})));else{const Ne=Pe?{data:ke}:{};if(!ee.type||ee.type.toLowerCase()==="text")_e.get("Content-Type")||_e.set("Content-Type","text/plain"),ne({statusText:Ce,status:be,text:ke,...Ne,headers:de(_e)});else if(ee.type.toLowerCase()==="json")_e.get("Content-Type")||_e.set("Content-Type","application/json"),ne({statusText:Ce,status:be,...Ne,headers:de(_e)});else if(ee.type.toLowerCase()==="document"){_e.get("Content-Type")||_e.set("Content-Type","application/xml");const Re=new DOMParser().parseFromString(ke,"application/xml");ne({statusText:Ce,status:be,xml:Re,data:Re,headers:de(_e)})}else ne({statusText:Ce,status:be,...Ne,headers:de(_e)})}}else ne()});/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function makeMap(ee){const ne=Object.create(null);for(const oe of ee.split(","))ne[oe]=1;return oe=>oe in ne}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=ee=>ee.charCodeAt(0)===111&&ee.charCodeAt(1)===110&&(ee.charCodeAt(2)>122||ee.charCodeAt(2)<97),isModelListener=ee=>ee.startsWith("onUpdate:"),extend$2=Object.assign,remove=(ee,ne)=>{const oe=ee.indexOf(ne);oe>-1&&ee.splice(oe,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$1=(ee,ne)=>hasOwnProperty$g.call(ee,ne),isArray$5=Array.isArray,isMap$1=ee=>toTypeString$1(ee)==="[object Map]",isSet$1=ee=>toTypeString$1(ee)==="[object Set]",isRegExp$2=ee=>toTypeString$1(ee)==="[object RegExp]",isFunction$6=ee=>typeof ee=="function",isString$4=ee=>typeof ee=="string",isSymbol=ee=>typeof ee=="symbol",isObject$8=ee=>ee!==null&&typeof ee=="object",isPromise$2=ee=>(isObject$8(ee)||isFunction$6(ee))&&isFunction$6(ee.then)&&isFunction$6(ee.catch),objectToString$2=Object.prototype.toString,toTypeString$1=ee=>objectToString$2.call(ee),toRawType=ee=>toTypeString$1(ee).slice(8,-1),isPlainObject$5=ee=>toTypeString$1(ee)==="[object Object]",isIntegerKey=ee=>isString$4(ee)&&ee!=="NaN"&&ee[0]!=="-"&&""+parseInt(ee,10)===ee,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=ee=>{const ne=Object.create(null);return oe=>ne[oe]||(ne[oe]=ee(oe))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(ee=>ee.replace(camelizeRE$1,(ne,oe)=>oe?oe.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(ee=>ee.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(ee=>ee.charAt(0).toUpperCase()+ee.slice(1)),toHandlerKey=cacheStringFunction(ee=>ee?`on${capitalize$1(ee)}`:""),hasChanged=(ee,ne)=>!Object.is(ee,ne),invokeArrayFns=(ee,...ne)=>{for(let oe=0;oe{Object.defineProperty(ee,ne,{configurable:!0,enumerable:!1,writable:ae,value:oe})},looseToNumber=ee=>{const ne=parseFloat(ee);return isNaN(ne)?ee:ne},toNumber=ee=>{const ne=isString$4(ee)?Number(ee):NaN;return isNaN(ne)?ee:ne};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(ee){if(isArray$5(ee)){const ne={};for(let oe=0;oe{if(oe){const ae=oe.split(propertyDelimiterRE);ae.length>1&&(ne[ae[0].trim()]=ae[1].trim())}}),ne}function stringifyStyle(ee){if(!ee)return"";if(isString$4(ee))return ee;let ne="";for(const oe in ee){const ae=ee[oe];if(isString$4(ae)||typeof ae=="number"){const ie=oe.startsWith("--")?oe:hyphenate(oe);ne+=`${ie}:${ae};`}}return ne}function normalizeClass(ee){let ne="";if(isString$4(ee))ne=ee;else if(isArray$5(ee))for(let oe=0;oe!!(ee&&ee.__v_isRef===!0),toDisplayString$1=ee=>isString$4(ee)?ee:ee==null?"":isArray$5(ee)||isObject$8(ee)&&(ee.toString===objectToString$2||!isFunction$6(ee.toString))?isRef$1(ee)?toDisplayString$1(ee.value):JSON.stringify(ee,replacer,2):String(ee),replacer=(ee,ne)=>isRef$1(ne)?replacer(ee,ne.value):isMap$1(ne)?{[`Map(${ne.size})`]:[...ne.entries()].reduce((oe,[ae,ie],se)=>(oe[stringifySymbol(ae,se)+" =>"]=ie,oe),{})}:isSet$1(ne)?{[`Set(${ne.size})`]:[...ne.values()].map(oe=>stringifySymbol(oe))}:isSymbol(ne)?stringifySymbol(ne):isObject$8(ne)&&!isArray$5(ne)&&!isPlainObject$5(ne)?String(ne):ne,stringifySymbol=(ee,ne="")=>{var oe;return isSymbol(ee)?`Symbol(${(oe=ee.description)!=null?oe:ne})`:ee};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let activeEffectScope;class EffectScope{constructor(ne=!1){this.detached=ne,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!ne&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let ne,oe;if(this.scopes)for(ne=0,oe=this.scopes.length;ne0)return;if(batchedComputed){let ne=batchedComputed;for(batchedComputed=void 0;ne;){const oe=ne.next;ne.next=void 0,ne.flags&=-9,ne=oe}}let ee;for(;batchedSub;){let ne=batchedSub;for(batchedSub=void 0;ne;){const oe=ne.next;if(ne.next=void 0,ne.flags&=-9,ne.flags&1)try{ne.trigger()}catch(ae){ee||(ee=ae)}ne=oe}}if(ee)throw ee}function prepareDeps(ee){for(let ne=ee.deps;ne;ne=ne.nextDep)ne.version=-1,ne.prevActiveLink=ne.dep.activeLink,ne.dep.activeLink=ne}function cleanupDeps(ee){let ne,oe=ee.depsTail,ae=oe;for(;ae;){const ie=ae.prevDep;ae.version===-1?(ae===oe&&(oe=ie),removeSub(ae),removeDep(ae)):ne=ae,ae.dep.activeLink=ae.prevActiveLink,ae.prevActiveLink=void 0,ae=ie}ee.deps=ne,ee.depsTail=oe}function isDirty(ee){for(let ne=ee.deps;ne;ne=ne.nextDep)if(ne.dep.version!==ne.version||ne.dep.computed&&(refreshComputed(ne.dep.computed)||ne.dep.version!==ne.version))return!0;return!!ee._dirty}function refreshComputed(ee){if(ee.flags&4&&!(ee.flags&16)||(ee.flags&=-17,ee.globalVersion===globalVersion))return;ee.globalVersion=globalVersion;const ne=ee.dep;if(ee.flags|=2,ne.version>0&&!ee.isSSR&&ee.deps&&!isDirty(ee)){ee.flags&=-3;return}const oe=activeSub,ae=shouldTrack;activeSub=ee,shouldTrack=!0;try{prepareDeps(ee);const ie=ee.fn(ee._value);(ne.version===0||hasChanged(ie,ee._value))&&(ee._value=ie,ne.version++)}catch(ie){throw ne.version++,ie}finally{activeSub=oe,shouldTrack=ae,cleanupDeps(ee),ee.flags&=-3}}function removeSub(ee,ne=!1){const{dep:oe,prevSub:ae,nextSub:ie}=ee;if(ae&&(ae.nextSub=ie,ee.prevSub=void 0),ie&&(ie.prevSub=ae,ee.nextSub=void 0),oe.subs===ee&&(oe.subs=ae,!ae&&oe.computed)){oe.computed.flags&=-5;for(let se=oe.computed.deps;se;se=se.nextDep)removeSub(se,!0)}!ne&&!--oe.sc&&oe.map&&oe.map.delete(oe.key)}function removeDep(ee){const{prevDep:ne,nextDep:oe}=ee;ne&&(ne.nextDep=oe,ee.prevDep=void 0),oe&&(oe.prevDep=ne,ee.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const ee=trackStack.pop();shouldTrack=ee===void 0?!0:ee}function cleanupEffect(ee){const{cleanup:ne}=ee;if(ee.cleanup=void 0,ne){const oe=activeSub;activeSub=void 0;try{ne()}finally{activeSub=oe}}}let globalVersion=0;class Link{constructor(ne,oe){this.sub=ne,this.dep=oe,this.version=oe.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(ne){this.computed=ne,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(ne){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let oe=this.activeLink;if(oe===void 0||oe.sub!==activeSub)oe=this.activeLink=new Link(activeSub,this),activeSub.deps?(oe.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=oe,activeSub.depsTail=oe):activeSub.deps=activeSub.depsTail=oe,addSub(oe);else if(oe.version===-1&&(oe.version=this.version,oe.nextDep)){const ae=oe.nextDep;ae.prevDep=oe.prevDep,oe.prevDep&&(oe.prevDep.nextDep=ae),oe.prevDep=activeSub.depsTail,oe.nextDep=void 0,activeSub.depsTail.nextDep=oe,activeSub.depsTail=oe,activeSub.deps===oe&&(activeSub.deps=ae)}return oe}trigger(ne){this.version++,globalVersion++,this.notify(ne)}notify(ne){startBatch();try{for(let oe=this.subs;oe;oe=oe.prevSub)oe.sub.notify()&&oe.sub.dep.notify()}finally{endBatch()}}}function addSub(ee){if(ee.dep.sc++,ee.sub.flags&4){const ne=ee.dep.computed;if(ne&&!ee.dep.subs){ne.flags|=20;for(let ae=ne.deps;ae;ae=ae.nextDep)addSub(ae)}const oe=ee.dep.subs;oe!==ee&&(ee.prevSub=oe,oe&&(oe.nextSub=ee)),ee.dep.subs=ee}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(ee,ne,oe){if(shouldTrack&&activeSub){let ae=targetMap.get(ee);ae||targetMap.set(ee,ae=new Map);let ie=ae.get(oe);ie||(ae.set(oe,ie=new Dep),ie.map=ae,ie.key=oe),ie.track()}}function trigger(ee,ne,oe,ae,ie,se){const de=targetMap.get(ee);if(!de){globalVersion++;return}const fe=ve=>{ve&&ve.trigger()};if(startBatch(),ne==="clear")de.forEach(fe);else{const ve=isArray$5(ee),be=ve&&isIntegerKey(oe);if(ve&&oe==="length"){const ye=Number(ae);de.forEach(($e,we)=>{(we==="length"||we===ARRAY_ITERATE_KEY||!isSymbol(we)&&we>=ye)&&fe($e)})}else switch((oe!==void 0||de.has(void 0))&&fe(de.get(oe)),be&&fe(de.get(ARRAY_ITERATE_KEY)),ne){case"add":ve?be&&fe(de.get("length")):(fe(de.get(ITERATE_KEY)),isMap$1(ee)&&fe(de.get(MAP_KEY_ITERATE_KEY)));break;case"delete":ve||(fe(de.get(ITERATE_KEY)),isMap$1(ee)&&fe(de.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(ee)&&fe(de.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(ee,ne){const oe=targetMap.get(ee);return oe&&oe.get(ne)}function reactiveReadArray(ee){const ne=toRaw(ee);return ne===ee?ne:(track(ne,"iterate",ARRAY_ITERATE_KEY),isShallow(ee)?ne:ne.map(toReactive))}function shallowReadArray(ee){return track(ee=toRaw(ee),"iterate",ARRAY_ITERATE_KEY),ee}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...ee){return reactiveReadArray(this).concat(...ee.map(ne=>isArray$5(ne)?reactiveReadArray(ne):ne))},entries(){return iterator(this,"entries",ee=>(ee[1]=toReactive(ee[1]),ee))},every(ee,ne){return apply$2(this,"every",ee,ne,void 0,arguments)},filter(ee,ne){return apply$2(this,"filter",ee,ne,oe=>oe.map(toReactive),arguments)},find(ee,ne){return apply$2(this,"find",ee,ne,toReactive,arguments)},findIndex(ee,ne){return apply$2(this,"findIndex",ee,ne,void 0,arguments)},findLast(ee,ne){return apply$2(this,"findLast",ee,ne,toReactive,arguments)},findLastIndex(ee,ne){return apply$2(this,"findLastIndex",ee,ne,void 0,arguments)},forEach(ee,ne){return apply$2(this,"forEach",ee,ne,void 0,arguments)},includes(...ee){return searchProxy(this,"includes",ee)},indexOf(...ee){return searchProxy(this,"indexOf",ee)},join(ee){return reactiveReadArray(this).join(ee)},lastIndexOf(...ee){return searchProxy(this,"lastIndexOf",ee)},map(ee,ne){return apply$2(this,"map",ee,ne,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...ee){return noTracking(this,"push",ee)},reduce(ee,...ne){return reduce(this,"reduce",ee,ne)},reduceRight(ee,...ne){return reduce(this,"reduceRight",ee,ne)},shift(){return noTracking(this,"shift")},some(ee,ne){return apply$2(this,"some",ee,ne,void 0,arguments)},splice(...ee){return noTracking(this,"splice",ee)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(ee){return reactiveReadArray(this).toSorted(ee)},toSpliced(...ee){return reactiveReadArray(this).toSpliced(...ee)},unshift(...ee){return noTracking(this,"unshift",ee)},values(){return iterator(this,"values",toReactive)}};function iterator(ee,ne,oe){const ae=shallowReadArray(ee),ie=ae[ne]();return ae!==ee&&!isShallow(ee)&&(ie._next=ie.next,ie.next=()=>{const se=ie._next();return se.value&&(se.value=oe(se.value)),se}),ie}const arrayProto$1=Array.prototype;function apply$2(ee,ne,oe,ae,ie,se){const de=shallowReadArray(ee),fe=de!==ee&&!isShallow(ee),ve=de[ne];if(ve!==arrayProto$1[ne]){const $e=ve.apply(ee,se);return fe?toReactive($e):$e}let be=oe;de!==ee&&(fe?be=function($e,we){return oe.call(this,toReactive($e),we,ee)}:oe.length>2&&(be=function($e,we){return oe.call(this,$e,we,ee)}));const ye=ve.call(de,be,ae);return fe&&ie?ie(ye):ye}function reduce(ee,ne,oe,ae){const ie=shallowReadArray(ee);let se=oe;return ie!==ee&&(isShallow(ee)?oe.length>3&&(se=function(de,fe,ve){return oe.call(this,de,fe,ve,ee)}):se=function(de,fe,ve){return oe.call(this,de,toReactive(fe),ve,ee)}),ie[ne](se,...ae)}function searchProxy(ee,ne,oe){const ae=toRaw(ee);track(ae,"iterate",ARRAY_ITERATE_KEY);const ie=ae[ne](...oe);return(ie===-1||ie===!1)&&isProxy(oe[0])?(oe[0]=toRaw(oe[0]),ae[ne](...oe)):ie}function noTracking(ee,ne,oe=[]){pauseTracking(),startBatch();const ae=toRaw(ee)[ne].apply(ee,oe);return endBatch(),resetTracking(),ae}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(ee=>ee!=="arguments"&&ee!=="caller").map(ee=>Symbol[ee]).filter(isSymbol));function hasOwnProperty$f(ee){isSymbol(ee)||(ee=String(ee));const ne=toRaw(this);return track(ne,"has",ee),ne.hasOwnProperty(ee)}class BaseReactiveHandler{constructor(ne=!1,oe=!1){this._isReadonly=ne,this._isShallow=oe}get(ne,oe,ae){if(oe==="__v_skip")return ne.__v_skip;const ie=this._isReadonly,se=this._isShallow;if(oe==="__v_isReactive")return!ie;if(oe==="__v_isReadonly")return ie;if(oe==="__v_isShallow")return se;if(oe==="__v_raw")return ae===(ie?se?shallowReadonlyMap:readonlyMap:se?shallowReactiveMap:reactiveMap).get(ne)||Object.getPrototypeOf(ne)===Object.getPrototypeOf(ae)?ne:void 0;const de=isArray$5(ne);if(!ie){let ve;if(de&&(ve=arrayInstrumentations[oe]))return ve;if(oe==="hasOwnProperty")return hasOwnProperty$f}const fe=Reflect.get(ne,oe,isRef(ne)?ne:ae);return(isSymbol(oe)?builtInSymbols.has(oe):isNonTrackableKeys(oe))||(ie||track(ne,"get",oe),se)?fe:isRef(fe)?de&&isIntegerKey(oe)?fe:fe.value:isObject$8(fe)?ie?readonly(fe):reactive(fe):fe}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(ne=!1){super(!1,ne)}set(ne,oe,ae,ie){let se=ne[oe];if(!this._isShallow){const ve=isReadonly(se);if(!isShallow(ae)&&!isReadonly(ae)&&(se=toRaw(se),ae=toRaw(ae)),!isArray$5(ne)&&isRef(se)&&!isRef(ae))return ve?!1:(se.value=ae,!0)}const de=isArray$5(ne)&&isIntegerKey(oe)?Number(oe)ee,getProto=ee=>Reflect.getPrototypeOf(ee);function createIterableMethod(ee,ne,oe){return function(...ae){const ie=this.__v_raw,se=toRaw(ie),de=isMap$1(se),fe=ee==="entries"||ee===Symbol.iterator&&de,ve=ee==="keys"&&de,be=ie[ee](...ae),ye=oe?toShallow:ne?toReadonly:toReactive;return!ne&&track(se,"iterate",ve?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:$e,done:we}=be.next();return we?{value:$e,done:we}:{value:fe?[ye($e[0]),ye($e[1])]:ye($e),done:we}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(ee){return function(...ne){return ee==="delete"?!1:ee==="clear"?void 0:this}}function createInstrumentations(ee,ne){const oe={get(ie){const se=this.__v_raw,de=toRaw(se),fe=toRaw(ie);ee||(hasChanged(ie,fe)&&track(de,"get",ie),track(de,"get",fe));const{has:ve}=getProto(de),be=ne?toShallow:ee?toReadonly:toReactive;if(ve.call(de,ie))return be(se.get(ie));if(ve.call(de,fe))return be(se.get(fe));se!==de&&se.get(ie)},get size(){const ie=this.__v_raw;return!ee&&track(toRaw(ie),"iterate",ITERATE_KEY),Reflect.get(ie,"size",ie)},has(ie){const se=this.__v_raw,de=toRaw(se),fe=toRaw(ie);return ee||(hasChanged(ie,fe)&&track(de,"has",ie),track(de,"has",fe)),ie===fe?se.has(ie):se.has(ie)||se.has(fe)},forEach(ie,se){const de=this,fe=de.__v_raw,ve=toRaw(fe),be=ne?toShallow:ee?toReadonly:toReactive;return!ee&&track(ve,"iterate",ITERATE_KEY),fe.forEach((ye,$e)=>ie.call(se,be(ye),be($e),de))}};return extend$2(oe,ee?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(ie){!ne&&!isShallow(ie)&&!isReadonly(ie)&&(ie=toRaw(ie));const se=toRaw(this);return getProto(se).has.call(se,ie)||(se.add(ie),trigger(se,"add",ie,ie)),this},set(ie,se){!ne&&!isShallow(se)&&!isReadonly(se)&&(se=toRaw(se));const de=toRaw(this),{has:fe,get:ve}=getProto(de);let be=fe.call(de,ie);be||(ie=toRaw(ie),be=fe.call(de,ie));const ye=ve.call(de,ie);return de.set(ie,se),be?hasChanged(se,ye)&&trigger(de,"set",ie,se):trigger(de,"add",ie,se),this},delete(ie){const se=toRaw(this),{has:de,get:fe}=getProto(se);let ve=de.call(se,ie);ve||(ie=toRaw(ie),ve=de.call(se,ie)),fe&&fe.call(se,ie);const be=se.delete(ie);return ve&&trigger(se,"delete",ie,void 0),be},clear(){const ie=toRaw(this),se=ie.size!==0,de=ie.clear();return se&&trigger(ie,"clear",void 0,void 0),de}}),["keys","values","entries",Symbol.iterator].forEach(ie=>{oe[ie]=createIterableMethod(ie,ee,ne)}),oe}function createInstrumentationGetter(ee,ne){const oe=createInstrumentations(ee,ne);return(ae,ie,se)=>ie==="__v_isReactive"?!ee:ie==="__v_isReadonly"?ee:ie==="__v_raw"?ae:Reflect.get(hasOwn$1(oe,ie)&&ie in ae?oe:ae,ie,se)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(ee){switch(ee){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(ee){return ee.__v_skip||!Object.isExtensible(ee)?0:targetTypeMap(toRawType(ee))}function reactive(ee){return isReadonly(ee)?ee:createReactiveObject(ee,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(ee){return createReactiveObject(ee,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(ee){return createReactiveObject(ee,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(ee){return createReactiveObject(ee,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(ee,ne,oe,ae,ie){if(!isObject$8(ee)||ee.__v_raw&&!(ne&&ee.__v_isReactive))return ee;const se=ie.get(ee);if(se)return se;const de=getTargetType(ee);if(de===0)return ee;const fe=new Proxy(ee,de===2?ae:oe);return ie.set(ee,fe),fe}function isReactive(ee){return isReadonly(ee)?isReactive(ee.__v_raw):!!(ee&&ee.__v_isReactive)}function isReadonly(ee){return!!(ee&&ee.__v_isReadonly)}function isShallow(ee){return!!(ee&&ee.__v_isShallow)}function isProxy(ee){return ee?!!ee.__v_raw:!1}function toRaw(ee){const ne=ee&&ee.__v_raw;return ne?toRaw(ne):ee}function markRaw(ee){return!hasOwn$1(ee,"__v_skip")&&Object.isExtensible(ee)&&def(ee,"__v_skip",!0),ee}const toReactive=ee=>isObject$8(ee)?reactive(ee):ee,toReadonly=ee=>isObject$8(ee)?readonly(ee):ee;function isRef(ee){return ee?ee.__v_isRef===!0:!1}function ref(ee){return createRef(ee,!1)}function shallowRef(ee){return createRef(ee,!0)}function createRef(ee,ne){return isRef(ee)?ee:new RefImpl(ee,ne)}class RefImpl{constructor(ne,oe){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=oe?ne:toRaw(ne),this._value=oe?ne:toReactive(ne),this.__v_isShallow=oe}get value(){return this.dep.track(),this._value}set value(ne){const oe=this._rawValue,ae=this.__v_isShallow||isShallow(ne)||isReadonly(ne);ne=ae?ne:toRaw(ne),hasChanged(ne,oe)&&(this._rawValue=ne,this._value=ae?ne:toReactive(ne),this.dep.trigger())}}function unref(ee){return isRef(ee)?ee.value:ee}const shallowUnwrapHandlers={get:(ee,ne,oe)=>ne==="__v_raw"?ee:unref(Reflect.get(ee,ne,oe)),set:(ee,ne,oe,ae)=>{const ie=ee[ne];return isRef(ie)&&!isRef(oe)?(ie.value=oe,!0):Reflect.set(ee,ne,oe,ae)}};function proxyRefs(ee){return isReactive(ee)?ee:new Proxy(ee,shallowUnwrapHandlers)}class CustomRefImpl{constructor(ne){this.__v_isRef=!0,this._value=void 0;const oe=this.dep=new Dep,{get:ae,set:ie}=ne(oe.track.bind(oe),oe.trigger.bind(oe));this._get=ae,this._set=ie}get value(){return this._value=this._get()}set value(ne){this._set(ne)}}function customRef(ee){return new CustomRefImpl(ee)}function toRefs(ee){const ne=isArray$5(ee)?new Array(ee.length):{};for(const oe in ee)ne[oe]=propertyToRef(ee,oe);return ne}class ObjectRefImpl{constructor(ne,oe,ae){this._object=ne,this._key=oe,this._defaultValue=ae,this.__v_isRef=!0,this._value=void 0}get value(){const ne=this._object[this._key];return this._value=ne===void 0?this._defaultValue:ne}set value(ne){this._object[this._key]=ne}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(ne){this._getter=ne,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef$1(ee,ne,oe){return isRef(ee)?ee:isFunction$6(ee)?new GetterRefImpl(ee):isObject$8(ee)&&arguments.length>1?propertyToRef(ee,ne,oe):ref(ee)}function propertyToRef(ee,ne,oe){const ae=ee[ne];return isRef(ae)?ae:new ObjectRefImpl(ee,ne,oe)}class ComputedRefImpl{constructor(ne,oe,ae){this.fn=ne,this.setter=oe,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!oe,this.isSSR=ae}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const ne=this.dep.track();return refreshComputed(this),ne&&(ne.version=this.dep.version),this._value}set value(ne){this.setter&&this.setter(ne)}}function computed$1(ee,ne,oe=!1){let ae,ie;return isFunction$6(ee)?ae=ee:(ae=ee.get,ie=ee.set),new ComputedRefImpl(ae,ie,oe)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(ee,ne=!1,oe=activeWatcher){if(oe){let ae=cleanupMap.get(oe);ae||cleanupMap.set(oe,ae=[]),ae.push(ee)}}function watch$1(ee,ne,oe=EMPTY_OBJ){const{immediate:ae,deep:ie,once:se,scheduler:de,augmentJob:fe,call:ve}=oe,be=Oe=>ie?Oe:isShallow(Oe)||ie===!1||ie===0?traverse(Oe,1):traverse(Oe);let ye,$e,we,Ee,_e=!1,Ce=!1;if(isRef(ee)?($e=()=>ee.value,_e=isShallow(ee)):isReactive(ee)?($e=()=>be(ee),_e=!0):isArray$5(ee)?(Ce=!0,_e=ee.some(Oe=>isReactive(Oe)||isShallow(Oe)),$e=()=>ee.map(Oe=>{if(isRef(Oe))return Oe.value;if(isReactive(Oe))return be(Oe);if(isFunction$6(Oe))return ve?ve(Oe,2):Oe()})):isFunction$6(ee)?ne?$e=ve?()=>ve(ee,2):ee:$e=()=>{if(we){pauseTracking();try{we()}finally{resetTracking()}}const Oe=activeWatcher;activeWatcher=ye;try{return ve?ve(ee,3,[Ee]):ee(Ee)}finally{activeWatcher=Oe}}:$e=NOOP,ne&&ie){const Oe=$e,Re=ie===!0?1/0:ie;$e=()=>traverse(Oe(),Re)}const Pe=getCurrentScope(),Ae=()=>{ye.stop(),Pe&&Pe.active&&remove(Pe.effects,ye)};if(se&&ne){const Oe=ne;ne=(...Re)=>{Oe(...Re),Ae()}}let ke=Ce?new Array(ee.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Ne=Oe=>{if(!(!(ye.flags&1)||!ye.dirty&&!Oe))if(ne){const Re=ye.run();if(ie||_e||(Ce?Re.some((Be,Me)=>hasChanged(Be,ke[Me])):hasChanged(Re,ke))){we&&we();const Be=activeWatcher;activeWatcher=ye;try{const Me=[Re,ke===INITIAL_WATCHER_VALUE?void 0:Ce&&ke[0]===INITIAL_WATCHER_VALUE?[]:ke,Ee];ve?ve(ne,3,Me):ne(...Me),ke=Re}finally{activeWatcher=Be}}}else ye.run()};return fe&&fe(Ne),ye=new ReactiveEffect($e),ye.scheduler=de?()=>de(Ne,!1):Ne,Ee=Oe=>onWatcherCleanup(Oe,!1,ye),we=ye.onStop=()=>{const Oe=cleanupMap.get(ye);if(Oe){if(ve)ve(Oe,4);else for(const Re of Oe)Re();cleanupMap.delete(ye)}},ne?ae?Ne(!0):ke=ye.run():de?de(Ne.bind(null,!0),!0):ye.run(),Ae.pause=ye.pause.bind(ye),Ae.resume=ye.resume.bind(ye),Ae.stop=Ae,Ae}function traverse(ee,ne=1/0,oe){if(ne<=0||!isObject$8(ee)||ee.__v_skip||(oe=oe||new Set,oe.has(ee)))return ee;if(oe.add(ee),ne--,isRef(ee))traverse(ee.value,ne,oe);else if(isArray$5(ee))for(let ae=0;ae{traverse(ae,ne,oe)});else if(isPlainObject$5(ee)){for(const ae in ee)traverse(ee[ae],ne,oe);for(const ae of Object.getOwnPropertySymbols(ee))Object.prototype.propertyIsEnumerable.call(ee,ae)&&traverse(ee[ae],ne,oe)}return ee}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const stack=[];let isWarning=!1;function warn$1(ee,...ne){if(isWarning)return;isWarning=!0,pauseTracking();const oe=stack.length?stack[stack.length-1].component:null,ae=oe&&oe.appContext.config.warnHandler,ie=getComponentTrace();if(ae)callWithErrorHandling(ae,oe,11,[ee+ne.map(se=>{var de,fe;return(fe=(de=se.toString)==null?void 0:de.call(se))!=null?fe:JSON.stringify(se)}).join(""),oe&&oe.proxy,ie.map(({vnode:se})=>`at <${formatComponentName(oe,se.type)}>`).join(` +`),ie]);else{const se=[`[Vue warn]: ${ee}`,...ne];ie.length&&se.push(` +`,...formatTrace(ie)),console.warn(...se)}resetTracking(),isWarning=!1}function getComponentTrace(){let ee=stack[stack.length-1];if(!ee)return[];const ne=[];for(;ee;){const oe=ne[0];oe&&oe.vnode===ee?oe.recurseCount++:ne.push({vnode:ee,recurseCount:0});const ae=ee.component&&ee.component.parent;ee=ae&&ae.vnode}return ne}function formatTrace(ee){const ne=[];return ee.forEach((oe,ae)=>{ne.push(...ae===0?[]:[` +`],...formatTraceEntry(oe))}),ne}function formatTraceEntry({vnode:ee,recurseCount:ne}){const oe=ne>0?`... (${ne} recursive calls)`:"",ae=ee.component?ee.component.parent==null:!1,ie=` at <${formatComponentName(ee.component,ee.type,ae)}`,se=">"+oe;return ee.props?[ie,...formatProps(ee.props),se]:[ie+se]}function formatProps(ee){const ne=[],oe=Object.keys(ee);return oe.slice(0,3).forEach(ae=>{ne.push(...formatProp(ae,ee[ae]))}),oe.length>3&&ne.push(" ..."),ne}function formatProp(ee,ne,oe){return isString$4(ne)?(ne=JSON.stringify(ne),oe?ne:[`${ee}=${ne}`]):typeof ne=="number"||typeof ne=="boolean"||ne==null?oe?ne:[`${ee}=${ne}`]:isRef(ne)?(ne=formatProp(ee,toRaw(ne.value),!0),oe?ne:[`${ee}=Ref<`,ne,">"]):isFunction$6(ne)?[`${ee}=fn${ne.name?`<${ne.name}>`:""}`]:(ne=toRaw(ne),oe?ne:[`${ee}=`,ne])}function callWithErrorHandling(ee,ne,oe,ae){try{return ae?ee(...ae):ee()}catch(ie){handleError(ie,ne,oe)}}function callWithAsyncErrorHandling(ee,ne,oe,ae){if(isFunction$6(ee)){const ie=callWithErrorHandling(ee,ne,oe,ae);return ie&&isPromise$2(ie)&&ie.catch(se=>{handleError(se,ne,oe)}),ie}if(isArray$5(ee)){const ie=[];for(let se=0;se>>1,ie=queue$1[ae],se=getId(ie);se=getId(oe)?queue$1.push(ee):queue$1.splice(findInsertionIndex$1(ne),0,ee),ee.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(ee){isArray$5(ee)?pendingPostFlushCbs.push(...ee):activePostFlushCbs&&ee.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,ee):ee.flags&1||(pendingPostFlushCbs.push(ee),ee.flags|=1),queueFlush()}function flushPreFlushCbs(ee,ne,oe=flushIndex+1){for(;oegetId(oe)-getId(ae));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...ne);return}for(activePostFlushCbs=ne,postFlushIndex=0;postFlushIndexee.id==null?ee.flags&2?-1:1/0:ee.id;function flushJobs(ee){try{for(flushIndex=0;flushIndex{ae._d&&setBlockTracking(-1);const se=setCurrentRenderingInstance(ne);let de;try{de=ee(...ie)}finally{setCurrentRenderingInstance(se),ae._d&&setBlockTracking(1)}return de};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function withDirectives(ee,ne){if(currentRenderingInstance===null)return ee;const oe=getComponentPublicInstance(currentRenderingInstance),ae=ee.dirs||(ee.dirs=[]);for(let ie=0;ieee.__isTeleport,isTeleportDisabled=ee=>ee&&(ee.disabled||ee.disabled===""),isTeleportDeferred=ee=>ee&&(ee.defer||ee.defer===""),isTargetSVG=ee=>typeof SVGElement<"u"&&ee instanceof SVGElement,isTargetMathML=ee=>typeof MathMLElement=="function"&&ee instanceof MathMLElement,resolveTarget=(ee,ne)=>{const oe=ee&&ee.to;return isString$4(oe)?ne?ne(oe):null:oe},TeleportImpl={name:"Teleport",__isTeleport:!0,process(ee,ne,oe,ae,ie,se,de,fe,ve,be){const{mc:ye,pc:$e,pbc:we,o:{insert:Ee,querySelector:_e,createText:Ce,createComment:Pe}}=be,Ae=isTeleportDisabled(ne.props);let{shapeFlag:ke,children:Ne,dynamicChildren:Oe}=ne;if(ee==null){const Re=ne.el=Ce(""),Be=ne.anchor=Ce("");Ee(Re,oe,ae),Ee(Be,oe,ae);const Me=(Xe,Ke)=>{ke&16&&(ie&&ie.isCE&&(ie.ce._teleportTarget=Xe),ye(Ne,Xe,Ke,ie,se,de,fe,ve))},Le=()=>{const Xe=ne.target=resolveTarget(ne.props,_e),Ke=prepareAnchor(Xe,ne,Ce,Ee);Xe&&(de!=="svg"&&isTargetSVG(Xe)?de="svg":de!=="mathml"&&isTargetMathML(Xe)&&(de="mathml"),Ae||(Me(Xe,Ke),updateCssVars(ne,!1)))};Ae&&(Me(oe,Be),updateCssVars(ne,!0)),isTeleportDeferred(ne.props)?queuePostRenderEffect(()=>{Le(),ne.el.__isMounted=!0},se):Le()}else{if(isTeleportDeferred(ne.props)&&!ee.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(ee,ne,oe,ae,ie,se,de,fe,ve,be),delete ee.el.__isMounted},se);return}ne.el=ee.el,ne.targetStart=ee.targetStart;const Re=ne.anchor=ee.anchor,Be=ne.target=ee.target,Me=ne.targetAnchor=ee.targetAnchor,Le=isTeleportDisabled(ee.props),Xe=Le?oe:Be,Ke=Le?Re:Me;if(de==="svg"||isTargetSVG(Be)?de="svg":(de==="mathml"||isTargetMathML(Be))&&(de="mathml"),Oe?(we(ee.dynamicChildren,Oe,Xe,ie,se,de,fe),traverseStaticChildren(ee,ne,!0)):ve||$e(ee,ne,Xe,Ke,ie,se,de,fe,!1),Ae)Le?ne.props&&ee.props&&ne.props.to!==ee.props.to&&(ne.props.to=ee.props.to):moveTeleport(ne,oe,Re,be,1);else if((ne.props&&ne.props.to)!==(ee.props&&ee.props.to)){const De=ne.target=resolveTarget(ne.props,_e);De&&moveTeleport(ne,De,null,be,0)}else Le&&moveTeleport(ne,Be,Me,be,1);updateCssVars(ne,Ae)}},remove(ee,ne,oe,{um:ae,o:{remove:ie}},se){const{shapeFlag:de,children:fe,anchor:ve,targetStart:be,targetAnchor:ye,target:$e,props:we}=ee;if($e&&(ie(be),ie(ye)),se&&ie(ve),de&16){const Ee=se||!isTeleportDisabled(we);for(let _e=0;_e{ee.isMounted=!0}),onBeforeUnmount(()=>{ee.isUnmounting=!0}),ee}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=ee=>{const ne=ee.subTree;return ne.component?recursiveGetSubtree(ne.component):ne},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(ee,{slots:ne}){const oe=getCurrentInstance(),ae=useTransitionState();return()=>{const ie=ne.default&&getTransitionRawChildren(ne.default(),!0);if(!ie||!ie.length)return;const se=findNonCommentChild(ie),de=toRaw(ee),{mode:fe}=de;if(ae.isLeaving)return emptyPlaceholder(se);const ve=getInnerChild$1(se);if(!ve)return emptyPlaceholder(se);let be=resolveTransitionHooks(ve,de,ae,oe,$e=>be=$e);ve.type!==Comment$1&&setTransitionHooks(ve,be);let ye=oe.subTree&&getInnerChild$1(oe.subTree);if(ye&&ye.type!==Comment$1&&!isSameVNodeType(ve,ye)&&recursiveGetSubtree(oe).type!==Comment$1){let $e=resolveTransitionHooks(ye,de,ae,oe);if(setTransitionHooks(ye,$e),fe==="out-in"&&ve.type!==Comment$1)return ae.isLeaving=!0,$e.afterLeave=()=>{ae.isLeaving=!1,oe.job.flags&8||oe.update(),delete $e.afterLeave,ye=void 0},emptyPlaceholder(se);fe==="in-out"&&ve.type!==Comment$1?$e.delayLeave=(we,Ee,_e)=>{const Ce=getLeavingNodesForType(ae,ye);Ce[String(ye.key)]=ye,we[leaveCbKey]=()=>{Ee(),we[leaveCbKey]=void 0,delete be.delayedLeave,ye=void 0},be.delayedLeave=()=>{_e(),delete be.delayedLeave,ye=void 0}}:ye=void 0}else ye&&(ye=void 0);return se}}};function findNonCommentChild(ee){let ne=ee[0];if(ee.length>1){for(const oe of ee)if(oe.type!==Comment$1){ne=oe;break}}return ne}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(ee,ne){const{leavingVNodes:oe}=ee;let ae=oe.get(ne.type);return ae||(ae=Object.create(null),oe.set(ne.type,ae)),ae}function resolveTransitionHooks(ee,ne,oe,ae,ie){const{appear:se,mode:de,persisted:fe=!1,onBeforeEnter:ve,onEnter:be,onAfterEnter:ye,onEnterCancelled:$e,onBeforeLeave:we,onLeave:Ee,onAfterLeave:_e,onLeaveCancelled:Ce,onBeforeAppear:Pe,onAppear:Ae,onAfterAppear:ke,onAppearCancelled:Ne}=ne,Oe=String(ee.key),Re=getLeavingNodesForType(oe,ee),Be=(Xe,Ke)=>{Xe&&callWithAsyncErrorHandling(Xe,ae,9,Ke)},Me=(Xe,Ke)=>{const De=Ke[1];Be(Xe,Ke),isArray$5(Xe)?Xe.every(je=>je.length<=1)&&De():Xe.length<=1&&De()},Le={mode:de,persisted:fe,beforeEnter(Xe){let Ke=ve;if(!oe.isMounted)if(se)Ke=Pe||ve;else return;Xe[leaveCbKey]&&Xe[leaveCbKey](!0);const De=Re[Oe];De&&isSameVNodeType(ee,De)&&De.el[leaveCbKey]&&De.el[leaveCbKey](),Be(Ke,[Xe])},enter(Xe){let Ke=be,De=ye,je=$e;if(!oe.isMounted)if(se)Ke=Ae||be,De=ke||ye,je=Ne||$e;else return;let He=!1;const qe=Xe[enterCbKey]=ze=>{He||(He=!0,ze?Be(je,[Xe]):Be(De,[Xe]),Le.delayedLeave&&Le.delayedLeave(),Xe[enterCbKey]=void 0)};Ke?Me(Ke,[Xe,qe]):qe()},leave(Xe,Ke){const De=String(ee.key);if(Xe[enterCbKey]&&Xe[enterCbKey](!0),oe.isUnmounting)return Ke();Be(we,[Xe]);let je=!1;const He=Xe[leaveCbKey]=qe=>{je||(je=!0,Ke(),qe?Be(Ce,[Xe]):Be(_e,[Xe]),Xe[leaveCbKey]=void 0,Re[De]===ee&&delete Re[De])};Re[De]=ee,Ee?Me(Ee,[Xe,He]):He()},clone(Xe){const Ke=resolveTransitionHooks(Xe,ne,oe,ae,ie);return ie&&ie(Ke),Ke}};return Le}function emptyPlaceholder(ee){if(isKeepAlive(ee))return ee=cloneVNode(ee),ee.children=null,ee}function getInnerChild$1(ee){if(!isKeepAlive(ee))return isTeleport(ee.type)&&ee.children?findNonCommentChild(ee.children):ee;const{shapeFlag:ne,children:oe}=ee;if(oe){if(ne&16)return oe[0];if(ne&32&&isFunction$6(oe.default))return oe.default()}}function setTransitionHooks(ee,ne){ee.shapeFlag&6&&ee.component?(ee.transition=ne,setTransitionHooks(ee.component.subTree,ne)):ee.shapeFlag&128?(ee.ssContent.transition=ne.clone(ee.ssContent),ee.ssFallback.transition=ne.clone(ee.ssFallback)):ee.transition=ne}function getTransitionRawChildren(ee,ne=!1,oe){let ae=[],ie=0;for(let se=0;se1)for(let se=0;seoe.value,set:se=>oe.value=se})}return oe}function setRef(ee,ne,oe,ae,ie=!1){if(isArray$5(ee)){ee.forEach((_e,Ce)=>setRef(_e,ne&&(isArray$5(ne)?ne[Ce]:ne),oe,ae,ie));return}if(isAsyncWrapper(ae)&&!ie){ae.shapeFlag&512&&ae.type.__asyncResolved&&ae.component.subTree.component&&setRef(ee,ne,oe,ae.component.subTree);return}const se=ae.shapeFlag&4?getComponentPublicInstance(ae.component):ae.el,de=ie?null:se,{i:fe,r:ve}=ee,be=ne&&ne.r,ye=fe.refs===EMPTY_OBJ?fe.refs={}:fe.refs,$e=fe.setupState,we=toRaw($e),Ee=$e===EMPTY_OBJ?()=>!1:_e=>hasOwn$1(we,_e);if(be!=null&&be!==ve&&(isString$4(be)?(ye[be]=null,Ee(be)&&($e[be]=null)):isRef(be)&&(be.value=null)),isFunction$6(ve))callWithErrorHandling(ve,fe,12,[de,ye]);else{const _e=isString$4(ve),Ce=isRef(ve);if(_e||Ce){const Pe=()=>{if(ee.f){const Ae=_e?Ee(ve)?$e[ve]:ye[ve]:ve.value;ie?isArray$5(Ae)&&remove(Ae,se):isArray$5(Ae)?Ae.includes(se)||Ae.push(se):_e?(ye[ve]=[se],Ee(ve)&&($e[ve]=ye[ve])):(ve.value=[se],ee.k&&(ye[ee.k]=ve.value))}else _e?(ye[ve]=de,Ee(ve)&&($e[ve]=de)):Ce&&(ve.value=de,ee.k&&(ye[ee.k]=de))};de?(Pe.id=-1,queuePostRenderEffect(Pe,oe)):Pe()}}}getGlobalThis$1().requestIdleCallback;getGlobalThis$1().cancelIdleCallback;const isAsyncWrapper=ee=>!!ee.type.__asyncLoader,isKeepAlive=ee=>ee.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(ee,{slots:ne}){const oe=getCurrentInstance(),ae=oe.ctx;if(!ae.renderer)return()=>{const ke=ne.default&&ne.default();return ke&&ke.length===1?ke[0]:ke};const ie=new Map,se=new Set;let de=null;const fe=oe.suspense,{renderer:{p:ve,m:be,um:ye,o:{createElement:$e}}}=ae,we=$e("div");ae.activate=(ke,Ne,Oe,Re,Be)=>{const Me=ke.component;be(ke,Ne,Oe,0,fe),ve(Me.vnode,ke,Ne,Oe,Me,fe,Re,ke.slotScopeIds,Be),queuePostRenderEffect(()=>{Me.isDeactivated=!1,Me.a&&invokeArrayFns(Me.a);const Le=ke.props&&ke.props.onVnodeMounted;Le&&invokeVNodeHook(Le,Me.parent,ke)},fe)},ae.deactivate=ke=>{const Ne=ke.component;invalidateMount(Ne.m),invalidateMount(Ne.a),be(ke,we,null,1,fe),queuePostRenderEffect(()=>{Ne.da&&invokeArrayFns(Ne.da);const Oe=ke.props&&ke.props.onVnodeUnmounted;Oe&&invokeVNodeHook(Oe,Ne.parent,ke),Ne.isDeactivated=!0},fe)};function Ee(ke){resetShapeFlag(ke),ye(ke,oe,fe,!0)}function _e(ke){ie.forEach((Ne,Oe)=>{const Re=getComponentName(Ne.type);Re&&!ke(Re)&&Ce(Oe)})}function Ce(ke){const Ne=ie.get(ke);Ne&&(!de||!isSameVNodeType(Ne,de))?Ee(Ne):de&&resetShapeFlag(de),ie.delete(ke),se.delete(ke)}watch(()=>[ee.include,ee.exclude],([ke,Ne])=>{ke&&_e(Oe=>matches(ke,Oe)),Ne&&_e(Oe=>!matches(Ne,Oe))},{flush:"post",deep:!0});let Pe=null;const Ae=()=>{Pe!=null&&(isSuspense(oe.subTree.type)?queuePostRenderEffect(()=>{ie.set(Pe,getInnerChild(oe.subTree))},oe.subTree.suspense):ie.set(Pe,getInnerChild(oe.subTree)))};return onMounted(Ae),onUpdated(Ae),onBeforeUnmount(()=>{ie.forEach(ke=>{const{subTree:Ne,suspense:Oe}=oe,Re=getInnerChild(Ne);if(ke.type===Re.type&&ke.key===Re.key){resetShapeFlag(Re);const Be=Re.component.da;Be&&queuePostRenderEffect(Be,Oe);return}Ee(ke)})}),()=>{if(Pe=null,!ne.default)return de=null;const ke=ne.default(),Ne=ke[0];if(ke.length>1)return de=null,ke;if(!isVNode$1(Ne)||!(Ne.shapeFlag&4)&&!(Ne.shapeFlag&128))return de=null,Ne;let Oe=getInnerChild(Ne);if(Oe.type===Comment$1)return de=null,Oe;const Re=Oe.type,Be=getComponentName(isAsyncWrapper(Oe)?Oe.type.__asyncResolved||{}:Re),{include:Me,exclude:Le,max:Xe}=ee;if(Me&&(!Be||!matches(Me,Be))||Le&&Be&&matches(Le,Be))return Oe.shapeFlag&=-257,de=Oe,Ne;const Ke=Oe.key==null?Re:Oe.key,De=ie.get(Ke);return Oe.el&&(Oe=cloneVNode(Oe),Ne.shapeFlag&128&&(Ne.ssContent=Oe)),Pe=Ke,De?(Oe.el=De.el,Oe.component=De.component,Oe.transition&&setTransitionHooks(Oe,Oe.transition),Oe.shapeFlag|=512,se.delete(Ke),se.add(Ke)):(se.add(Ke),Xe&&se.size>parseInt(Xe,10)&&Ce(se.values().next().value)),Oe.shapeFlag|=256,de=Oe,isSuspense(Ne.type)?Ne:Oe}}},KeepAlive=KeepAliveImpl;function matches(ee,ne){return isArray$5(ee)?ee.some(oe=>matches(oe,ne)):isString$4(ee)?ee.split(",").includes(ne):isRegExp$2(ee)?(ee.lastIndex=0,ee.test(ne)):!1}function onActivated(ee,ne){registerKeepAliveHook(ee,"a",ne)}function onDeactivated(ee,ne){registerKeepAliveHook(ee,"da",ne)}function registerKeepAliveHook(ee,ne,oe=currentInstance){const ae=ee.__wdc||(ee.__wdc=()=>{let ie=oe;for(;ie;){if(ie.isDeactivated)return;ie=ie.parent}return ee()});if(injectHook(ne,ae,oe),oe){let ie=oe.parent;for(;ie&&ie.parent;)isKeepAlive(ie.parent.vnode)&&injectToKeepAliveRoot(ae,ne,oe,ie),ie=ie.parent}}function injectToKeepAliveRoot(ee,ne,oe,ae){const ie=injectHook(ne,ee,ae,!0);onUnmounted(()=>{remove(ae[ne],ie)},oe)}function resetShapeFlag(ee){ee.shapeFlag&=-257,ee.shapeFlag&=-513}function getInnerChild(ee){return ee.shapeFlag&128?ee.ssContent:ee}function injectHook(ee,ne,oe=currentInstance,ae=!1){if(oe){const ie=oe[ee]||(oe[ee]=[]),se=ne.__weh||(ne.__weh=(...de)=>{pauseTracking();const fe=setCurrentInstance(oe),ve=callWithAsyncErrorHandling(ne,oe,ee,de);return fe(),resetTracking(),ve});return ae?ie.unshift(se):ie.push(se),se}}const createHook=ee=>(ne,oe=currentInstance)=>{(!isInSSRComponentSetup||ee==="sp")&&injectHook(ee,(...ae)=>ne(...ae),oe)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(ee,ne=currentInstance){injectHook("ec",ee,ne)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(ee,ne){return resolveAsset(COMPONENTS,ee,!0,ne)||ee}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(ee){return isString$4(ee)?resolveAsset(COMPONENTS,ee,!1)||ee:ee||NULL_DYNAMIC_COMPONENT}function resolveDirective(ee){return resolveAsset(DIRECTIVES,ee)}function resolveAsset(ee,ne,oe=!0,ae=!1){const ie=currentRenderingInstance||currentInstance;if(ie){const se=ie.type;if(ee===COMPONENTS){const fe=getComponentName(se,!1);if(fe&&(fe===ne||fe===camelize$1(ne)||fe===capitalize$1(camelize$1(ne))))return se}const de=resolve(ie[ee]||se[ee],ne)||resolve(ie.appContext[ee],ne);return!de&&ae?se:de}}function resolve(ee,ne){return ee&&(ee[ne]||ee[camelize$1(ne)]||ee[capitalize$1(camelize$1(ne))])}function renderList(ee,ne,oe,ae){let ie;const se=oe,de=isArray$5(ee);if(de||isString$4(ee)){const fe=de&&isReactive(ee);let ve=!1;fe&&(ve=!isShallow(ee),ee=shallowReadArray(ee)),ie=new Array(ee.length);for(let be=0,ye=ee.length;bene(fe,ve,void 0,se));else{const fe=Object.keys(ee);ie=new Array(fe.length);for(let ve=0,be=fe.length;ve{const se=ae.fn(...ie);return se&&(se.key=ae.key),se}:ae.fn)}return ee}function renderSlot(ee,ne,oe={},ae,ie){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return ne!=="default"&&(oe.name=ne),openBlock(),createBlock(Fragment,null,[createVNode("slot",oe,ae&&ae())],64);let se=ee[ne];se&&se._c&&(se._d=!1),openBlock();const de=se&&ensureValidVNode(se(oe)),fe=oe.key||de&&de.key,ve=createBlock(Fragment,{key:(fe&&!isSymbol(fe)?fe:`_${ne}`)+(!de&&ae?"_fb":"")},de||(ae?ae():[]),de&&ee._===1?64:-2);return!ie&&ve.scopeId&&(ve.slotScopeIds=[ve.scopeId+"-s"]),se&&se._c&&(se._d=!0),ve}function ensureValidVNode(ee){return ee.some(ne=>isVNode$1(ne)?!(ne.type===Comment$1||ne.type===Fragment&&!ensureValidVNode(ne.children)):!0)?ee:null}const getPublicInstance=ee=>ee?isStatefulComponent(ee)?getComponentPublicInstance(ee):getPublicInstance(ee.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:ee=>ee,$el:ee=>ee.vnode.el,$data:ee=>ee.data,$props:ee=>ee.props,$attrs:ee=>ee.attrs,$slots:ee=>ee.slots,$refs:ee=>ee.refs,$parent:ee=>getPublicInstance(ee.parent),$root:ee=>getPublicInstance(ee.root),$host:ee=>ee.ce,$emit:ee=>ee.emit,$options:ee=>resolveMergedOptions(ee),$forceUpdate:ee=>ee.f||(ee.f=()=>{queueJob(ee.update)}),$nextTick:ee=>ee.n||(ee.n=nextTick.bind(ee.proxy)),$watch:ee=>instanceWatch.bind(ee)}),hasSetupBinding=(ee,ne)=>ee!==EMPTY_OBJ&&!ee.__isScriptSetup&&hasOwn$1(ee,ne),PublicInstanceProxyHandlers={get({_:ee},ne){if(ne==="__v_skip")return!0;const{ctx:oe,setupState:ae,data:ie,props:se,accessCache:de,type:fe,appContext:ve}=ee;let be;if(ne[0]!=="$"){const Ee=de[ne];if(Ee!==void 0)switch(Ee){case 1:return ae[ne];case 2:return ie[ne];case 4:return oe[ne];case 3:return se[ne]}else{if(hasSetupBinding(ae,ne))return de[ne]=1,ae[ne];if(ie!==EMPTY_OBJ&&hasOwn$1(ie,ne))return de[ne]=2,ie[ne];if((be=ee.propsOptions[0])&&hasOwn$1(be,ne))return de[ne]=3,se[ne];if(oe!==EMPTY_OBJ&&hasOwn$1(oe,ne))return de[ne]=4,oe[ne];shouldCacheAccess&&(de[ne]=0)}}const ye=publicPropertiesMap[ne];let $e,we;if(ye)return ne==="$attrs"&&track(ee.attrs,"get",""),ye(ee);if(($e=fe.__cssModules)&&($e=$e[ne]))return $e;if(oe!==EMPTY_OBJ&&hasOwn$1(oe,ne))return de[ne]=4,oe[ne];if(we=ve.config.globalProperties,hasOwn$1(we,ne))return we[ne]},set({_:ee},ne,oe){const{data:ae,setupState:ie,ctx:se}=ee;return hasSetupBinding(ie,ne)?(ie[ne]=oe,!0):ae!==EMPTY_OBJ&&hasOwn$1(ae,ne)?(ae[ne]=oe,!0):hasOwn$1(ee.props,ne)||ne[0]==="$"&&ne.slice(1)in ee?!1:(se[ne]=oe,!0)},has({_:{data:ee,setupState:ne,accessCache:oe,ctx:ae,appContext:ie,propsOptions:se}},de){let fe;return!!oe[de]||ee!==EMPTY_OBJ&&hasOwn$1(ee,de)||hasSetupBinding(ne,de)||(fe=se[0])&&hasOwn$1(fe,de)||hasOwn$1(ae,de)||hasOwn$1(publicPropertiesMap,de)||hasOwn$1(ie.config.globalProperties,de)},defineProperty(ee,ne,oe){return oe.get!=null?ee._.accessCache[ne]=0:hasOwn$1(oe,"value")&&this.set(ee,ne,oe.value,null),Reflect.defineProperty(ee,ne,oe)}};function useSlots(){return getContext().slots}function getContext(){const ee=getCurrentInstance();return ee.setupContext||(ee.setupContext=createSetupContext(ee))}function normalizePropsOrEmits(ee){return isArray$5(ee)?ee.reduce((ne,oe)=>(ne[oe]=null,ne),{}):ee}function mergeModels(ee,ne){return!ee||!ne?ee||ne:isArray$5(ee)&&isArray$5(ne)?ee.concat(ne):extend$2({},normalizePropsOrEmits(ee),normalizePropsOrEmits(ne))}let shouldCacheAccess=!0;function applyOptions(ee){const ne=resolveMergedOptions(ee),oe=ee.proxy,ae=ee.ctx;shouldCacheAccess=!1,ne.beforeCreate&&callHook$1(ne.beforeCreate,ee,"bc");const{data:ie,computed:se,methods:de,watch:fe,provide:ve,inject:be,created:ye,beforeMount:$e,mounted:we,beforeUpdate:Ee,updated:_e,activated:Ce,deactivated:Pe,beforeDestroy:Ae,beforeUnmount:ke,destroyed:Ne,unmounted:Oe,render:Re,renderTracked:Be,renderTriggered:Me,errorCaptured:Le,serverPrefetch:Xe,expose:Ke,inheritAttrs:De,components:je,directives:He,filters:qe}=ne;if(be&&resolveInjections(be,ae,null),de)for(const Ze in de){const ot=de[Ze];isFunction$6(ot)&&(ae[Ze]=ot.bind(oe))}if(ie){const Ze=ie.call(oe,oe);isObject$8(Ze)&&(ee.data=reactive(Ze))}if(shouldCacheAccess=!0,se)for(const Ze in se){const ot=se[Ze],Nt=isFunction$6(ot)?ot.bind(oe,oe):isFunction$6(ot.get)?ot.get.bind(oe,oe):NOOP,Mt=!isFunction$6(ot)&&isFunction$6(ot.set)?ot.set.bind(oe):NOOP,Ue=computed({get:Nt,set:Mt});Object.defineProperty(ae,Ze,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Pt=>Ue.value=Pt})}if(fe)for(const Ze in fe)createWatcher(fe[Ze],ae,oe,Ze);if(ve){const Ze=isFunction$6(ve)?ve.call(oe):ve;Reflect.ownKeys(Ze).forEach(ot=>{provide(ot,Ze[ot])})}ye&&callHook$1(ye,ee,"c");function Fe(Ze,ot){isArray$5(ot)?ot.forEach(Nt=>Ze(Nt.bind(oe))):ot&&Ze(ot.bind(oe))}if(Fe(onBeforeMount,$e),Fe(onMounted,we),Fe(onBeforeUpdate,Ee),Fe(onUpdated,_e),Fe(onActivated,Ce),Fe(onDeactivated,Pe),Fe(onErrorCaptured,Le),Fe(onRenderTracked,Be),Fe(onRenderTriggered,Me),Fe(onBeforeUnmount,ke),Fe(onUnmounted,Oe),Fe(onServerPrefetch,Xe),isArray$5(Ke))if(Ke.length){const Ze=ee.exposed||(ee.exposed={});Ke.forEach(ot=>{Object.defineProperty(Ze,ot,{get:()=>oe[ot],set:Nt=>oe[ot]=Nt})})}else ee.exposed||(ee.exposed={});Re&&ee.render===NOOP&&(ee.render=Re),De!=null&&(ee.inheritAttrs=De),je&&(ee.components=je),He&&(ee.directives=He),Xe&&markAsyncBoundary(ee)}function resolveInjections(ee,ne,oe=NOOP){isArray$5(ee)&&(ee=normalizeInject(ee));for(const ae in ee){const ie=ee[ae];let se;isObject$8(ie)?"default"in ie?se=inject(ie.from||ae,ie.default,!0):se=inject(ie.from||ae):se=inject(ie),isRef(se)?Object.defineProperty(ne,ae,{enumerable:!0,configurable:!0,get:()=>se.value,set:de=>se.value=de}):ne[ae]=se}}function callHook$1(ee,ne,oe){callWithAsyncErrorHandling(isArray$5(ee)?ee.map(ae=>ae.bind(ne.proxy)):ee.bind(ne.proxy),ne,oe)}function createWatcher(ee,ne,oe,ae){let ie=ae.includes(".")?createPathGetter(oe,ae):()=>oe[ae];if(isString$4(ee)){const se=ne[ee];isFunction$6(se)&&watch(ie,se)}else if(isFunction$6(ee))watch(ie,ee.bind(oe));else if(isObject$8(ee))if(isArray$5(ee))ee.forEach(se=>createWatcher(se,ne,oe,ae));else{const se=isFunction$6(ee.handler)?ee.handler.bind(oe):ne[ee.handler];isFunction$6(se)&&watch(ie,se,ee)}}function resolveMergedOptions(ee){const ne=ee.type,{mixins:oe,extends:ae}=ne,{mixins:ie,optionsCache:se,config:{optionMergeStrategies:de}}=ee.appContext,fe=se.get(ne);let ve;return fe?ve=fe:!ie.length&&!oe&&!ae?ve=ne:(ve={},ie.length&&ie.forEach(be=>mergeOptions$1(ve,be,de,!0)),mergeOptions$1(ve,ne,de)),isObject$8(ne)&&se.set(ne,ve),ve}function mergeOptions$1(ee,ne,oe,ae=!1){const{mixins:ie,extends:se}=ne;se&&mergeOptions$1(ee,se,oe,!0),ie&&ie.forEach(de=>mergeOptions$1(ee,de,oe,!0));for(const de in ne)if(!(ae&&de==="expose")){const fe=internalOptionMergeStrats[de]||oe&&oe[de];ee[de]=fe?fe(ee[de],ne[de]):ne[de]}return ee}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(ee,ne){return ne?ee?function(){return extend$2(isFunction$6(ee)?ee.call(this,this):ee,isFunction$6(ne)?ne.call(this,this):ne)}:ne:ee}function mergeInject(ee,ne){return mergeObjectOptions(normalizeInject(ee),normalizeInject(ne))}function normalizeInject(ee){if(isArray$5(ee)){const ne={};for(let oe=0;oe1)return oe&&isFunction$6(ne)?ne.call(ae&&ae.proxy):ne}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=ee=>Object.getPrototypeOf(ee)===internalObjectProto;function initProps(ee,ne,oe,ae=!1){const ie={},se=createInternalObject();ee.propsDefaults=Object.create(null),setFullProps(ee,ne,ie,se);for(const de in ee.propsOptions[0])de in ie||(ie[de]=void 0);oe?ee.props=ae?ie:shallowReactive(ie):ee.type.props?ee.props=ie:ee.props=se,ee.attrs=se}function updateProps(ee,ne,oe,ae){const{props:ie,attrs:se,vnode:{patchFlag:de}}=ee,fe=toRaw(ie),[ve]=ee.propsOptions;let be=!1;if((ae||de>0)&&!(de&16)){if(de&8){const ye=ee.vnode.dynamicProps;for(let $e=0;$e{ve=!0;const[we,Ee]=normalizePropsOptions($e,ne,!0);extend$2(de,we),Ee&&fe.push(...Ee)};!oe&&ne.mixins.length&&ne.mixins.forEach(ye),ee.extends&&ye(ee.extends),ee.mixins&&ee.mixins.forEach(ye)}if(!se&&!ve)return isObject$8(ee)&&ae.set(ee,EMPTY_ARR),EMPTY_ARR;if(isArray$5(se))for(let ye=0;yeee[0]==="_"||ee==="$stable",normalizeSlotValue=ee=>isArray$5(ee)?ee.map(normalizeVNode):[normalizeVNode(ee)],normalizeSlot$1=(ee,ne,oe)=>{if(ne._n)return ne;const ae=withCtx((...ie)=>normalizeSlotValue(ne(...ie)),oe);return ae._c=!1,ae},normalizeObjectSlots=(ee,ne,oe)=>{const ae=ee._ctx;for(const ie in ee){if(isInternalKey(ie))continue;const se=ee[ie];if(isFunction$6(se))ne[ie]=normalizeSlot$1(ie,se,ae);else if(se!=null){const de=normalizeSlotValue(se);ne[ie]=()=>de}}},normalizeVNodeSlots=(ee,ne)=>{const oe=normalizeSlotValue(ne);ee.slots.default=()=>oe},assignSlots=(ee,ne,oe)=>{for(const ae in ne)(oe||ae!=="_")&&(ee[ae]=ne[ae])},initSlots=(ee,ne,oe)=>{const ae=ee.slots=createInternalObject();if(ee.vnode.shapeFlag&32){const ie=ne._;ie?(assignSlots(ae,ne,oe),oe&&def(ae,"_",ie,!0)):normalizeObjectSlots(ne,ae)}else ne&&normalizeVNodeSlots(ee,ne)},updateSlots=(ee,ne,oe)=>{const{vnode:ae,slots:ie}=ee;let se=!0,de=EMPTY_OBJ;if(ae.shapeFlag&32){const fe=ne._;fe?oe&&fe===1?se=!1:assignSlots(ie,ne,oe):(se=!ne.$stable,normalizeObjectSlots(ne,ie)),de=ne}else ne&&(normalizeVNodeSlots(ee,ne),de={default:1});if(se)for(const fe in ie)!isInternalKey(fe)&&de[fe]==null&&delete ie[fe]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(ee){return baseCreateRenderer(ee)}function baseCreateRenderer(ee,ne){const oe=getGlobalThis$1();oe.__VUE__=!0;const{insert:ae,remove:ie,patchProp:se,createElement:de,createText:fe,createComment:ve,setText:be,setElementText:ye,parentNode:$e,nextSibling:we,setScopeId:Ee=NOOP,insertStaticContent:_e}=ee,Ce=(nt,Et,Bt,Xt=null,Yt=null,st=null,Tt=void 0,Vt=null,Kt=!!Et.dynamicChildren)=>{if(nt===Et)return;nt&&!isSameVNodeType(nt,Et)&&(Xt=Qe(nt),Pt(nt,Yt,st,!0),nt=null),Et.patchFlag===-2&&(Kt=!1,Et.dynamicChildren=null);const{type:Gt,ref:Qt,shapeFlag:Lt}=Et;switch(Gt){case Text:Pe(nt,Et,Bt,Xt);break;case Comment$1:Ae(nt,Et,Bt,Xt);break;case Static:nt==null&&ke(Et,Bt,Xt,Tt);break;case Fragment:je(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt);break;default:Lt&1?Re(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt):Lt&6?He(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt):(Lt&64||Lt&128)&&Gt.process(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt,jt)}Qt!=null&&Yt&&setRef(Qt,nt&&nt.ref,st,Et||nt,!Et)},Pe=(nt,Et,Bt,Xt)=>{if(nt==null)ae(Et.el=fe(Et.children),Bt,Xt);else{const Yt=Et.el=nt.el;Et.children!==nt.children&&be(Yt,Et.children)}},Ae=(nt,Et,Bt,Xt)=>{nt==null?ae(Et.el=ve(Et.children||""),Bt,Xt):Et.el=nt.el},ke=(nt,Et,Bt,Xt)=>{[nt.el,nt.anchor]=_e(nt.children,Et,Bt,Xt,nt.el,nt.anchor)},Ne=({el:nt,anchor:Et},Bt,Xt)=>{let Yt;for(;nt&&nt!==Et;)Yt=we(nt),ae(nt,Bt,Xt),nt=Yt;ae(Et,Bt,Xt)},Oe=({el:nt,anchor:Et})=>{let Bt;for(;nt&&nt!==Et;)Bt=we(nt),ie(nt),nt=Bt;ie(Et)},Re=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt)=>{Et.type==="svg"?Tt="svg":Et.type==="math"&&(Tt="mathml"),nt==null?Be(Et,Bt,Xt,Yt,st,Tt,Vt,Kt):Xe(nt,Et,Yt,st,Tt,Vt,Kt)},Be=(nt,Et,Bt,Xt,Yt,st,Tt,Vt)=>{let Kt,Gt;const{props:Qt,shapeFlag:Lt,transition:qt,dirs:nn}=nt;if(Kt=nt.el=de(nt.type,st,Qt&&Qt.is,Qt),Lt&8?ye(Kt,nt.children):Lt&16&&Le(nt.children,Kt,null,Xt,Yt,resolveChildrenNamespace(nt,st),Tt,Vt),nn&&invokeDirectiveHook(nt,null,Xt,"created"),Me(Kt,nt,nt.scopeId,Tt,Xt),Qt){for(const un in Qt)un!=="value"&&!isReservedProp(un)&&se(Kt,un,null,Qt[un],st,Xt);"value"in Qt&&se(Kt,"value",null,Qt.value,st),(Gt=Qt.onVnodeBeforeMount)&&invokeVNodeHook(Gt,Xt,nt)}nn&&invokeDirectiveHook(nt,null,Xt,"beforeMount");const on=needTransition(Yt,qt);on&&qt.beforeEnter(Kt),ae(Kt,Et,Bt),((Gt=Qt&&Qt.onVnodeMounted)||on||nn)&&queuePostRenderEffect(()=>{Gt&&invokeVNodeHook(Gt,Xt,nt),on&&qt.enter(Kt),nn&&invokeDirectiveHook(nt,null,Xt,"mounted")},Yt)},Me=(nt,Et,Bt,Xt,Yt)=>{if(Bt&&Ee(nt,Bt),Xt)for(let st=0;st{for(let Gt=Kt;Gt{const Vt=Et.el=nt.el;let{patchFlag:Kt,dynamicChildren:Gt,dirs:Qt}=Et;Kt|=nt.patchFlag&16;const Lt=nt.props||EMPTY_OBJ,qt=Et.props||EMPTY_OBJ;let nn;if(Bt&&toggleRecurse(Bt,!1),(nn=qt.onVnodeBeforeUpdate)&&invokeVNodeHook(nn,Bt,Et,nt),Qt&&invokeDirectiveHook(Et,nt,Bt,"beforeUpdate"),Bt&&toggleRecurse(Bt,!0),(Lt.innerHTML&&qt.innerHTML==null||Lt.textContent&&qt.textContent==null)&&ye(Vt,""),Gt?Ke(nt.dynamicChildren,Gt,Vt,Bt,Xt,resolveChildrenNamespace(Et,Yt),st):Tt||ot(nt,Et,Vt,null,Bt,Xt,resolveChildrenNamespace(Et,Yt),st,!1),Kt>0){if(Kt&16)De(Vt,Lt,qt,Bt,Yt);else if(Kt&2&&Lt.class!==qt.class&&se(Vt,"class",null,qt.class,Yt),Kt&4&&se(Vt,"style",Lt.style,qt.style,Yt),Kt&8){const on=Et.dynamicProps;for(let un=0;un{nn&&invokeVNodeHook(nn,Bt,Et,nt),Qt&&invokeDirectiveHook(Et,nt,Bt,"updated")},Xt)},Ke=(nt,Et,Bt,Xt,Yt,st,Tt)=>{for(let Vt=0;Vt{if(Et!==Bt){if(Et!==EMPTY_OBJ)for(const st in Et)!isReservedProp(st)&&!(st in Bt)&&se(nt,st,Et[st],null,Yt,Xt);for(const st in Bt){if(isReservedProp(st))continue;const Tt=Bt[st],Vt=Et[st];Tt!==Vt&&st!=="value"&&se(nt,st,Vt,Tt,Yt,Xt)}"value"in Bt&&se(nt,"value",Et.value,Bt.value,Yt)}},je=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt)=>{const Gt=Et.el=nt?nt.el:fe(""),Qt=Et.anchor=nt?nt.anchor:fe("");let{patchFlag:Lt,dynamicChildren:qt,slotScopeIds:nn}=Et;nn&&(Vt=Vt?Vt.concat(nn):nn),nt==null?(ae(Gt,Bt,Xt),ae(Qt,Bt,Xt),Le(Et.children||[],Bt,Qt,Yt,st,Tt,Vt,Kt)):Lt>0&&Lt&64&&qt&&nt.dynamicChildren?(Ke(nt.dynamicChildren,qt,Bt,Yt,st,Tt,Vt),(Et.key!=null||Yt&&Et===Yt.subTree)&&traverseStaticChildren(nt,Et,!0)):ot(nt,Et,Bt,Qt,Yt,st,Tt,Vt,Kt)},He=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt)=>{Et.slotScopeIds=Vt,nt==null?Et.shapeFlag&512?Yt.ctx.activate(Et,Bt,Xt,Tt,Kt):qe(Et,Bt,Xt,Yt,st,Tt,Kt):ze(nt,Et,Kt)},qe=(nt,Et,Bt,Xt,Yt,st,Tt)=>{const Vt=nt.component=createComponentInstance(nt,Xt,Yt);if(isKeepAlive(nt)&&(Vt.ctx.renderer=jt),setupComponent(Vt,!1,Tt),Vt.asyncDep){if(Yt&&Yt.registerDep(Vt,Fe,Tt),!nt.el){const Kt=Vt.subTree=createVNode(Comment$1);Ae(null,Kt,Et,Bt)}}else Fe(Vt,nt,Et,Bt,Yt,st,Tt)},ze=(nt,Et,Bt)=>{const Xt=Et.component=nt.component;if(shouldUpdateComponent(nt,Et,Bt))if(Xt.asyncDep&&!Xt.asyncResolved){Ze(Xt,Et,Bt);return}else Xt.next=Et,Xt.update();else Et.el=nt.el,Xt.vnode=Et},Fe=(nt,Et,Bt,Xt,Yt,st,Tt)=>{const Vt=()=>{if(nt.isMounted){let{next:Lt,bu:qt,u:nn,parent:on,vnode:un}=nt;{const hn=locateNonHydratedAsyncRoot(nt);if(hn){Lt&&(Lt.el=un.el,Ze(nt,Lt,Tt)),hn.asyncDep.then(()=>{nt.isUnmounted||Vt()});return}}let cn=Lt,fn;toggleRecurse(nt,!1),Lt?(Lt.el=un.el,Ze(nt,Lt,Tt)):Lt=un,qt&&invokeArrayFns(qt),(fn=Lt.props&&Lt.props.onVnodeBeforeUpdate)&&invokeVNodeHook(fn,on,Lt,un),toggleRecurse(nt,!0);const mn=renderComponentRoot(nt),gn=nt.subTree;nt.subTree=mn,Ce(gn,mn,$e(gn.el),Qe(gn),nt,Yt,st),Lt.el=mn.el,cn===null&&updateHOCHostEl(nt,mn.el),nn&&queuePostRenderEffect(nn,Yt),(fn=Lt.props&&Lt.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(fn,on,Lt,un),Yt)}else{let Lt;const{el:qt,props:nn}=Et,{bm:on,m:un,parent:cn,root:fn,type:mn}=nt,gn=isAsyncWrapper(Et);if(toggleRecurse(nt,!1),on&&invokeArrayFns(on),!gn&&(Lt=nn&&nn.onVnodeBeforeMount)&&invokeVNodeHook(Lt,cn,Et),toggleRecurse(nt,!0),qt&&Zt){const hn=()=>{nt.subTree=renderComponentRoot(nt),Zt(qt,nt.subTree,nt,Yt,null)};gn&&mn.__asyncHydrate?mn.__asyncHydrate(qt,nt,hn):hn()}else{fn.ce&&fn.ce._injectChildStyle(mn);const hn=nt.subTree=renderComponentRoot(nt);Ce(null,hn,Bt,Xt,nt,Yt,st),Et.el=hn.el}if(un&&queuePostRenderEffect(un,Yt),!gn&&(Lt=nn&&nn.onVnodeMounted)){const hn=Et;queuePostRenderEffect(()=>invokeVNodeHook(Lt,cn,hn),Yt)}(Et.shapeFlag&256||cn&&isAsyncWrapper(cn.vnode)&&cn.vnode.shapeFlag&256)&&nt.a&&queuePostRenderEffect(nt.a,Yt),nt.isMounted=!0,Et=Bt=Xt=null}};nt.scope.on();const Kt=nt.effect=new ReactiveEffect(Vt);nt.scope.off();const Gt=nt.update=Kt.run.bind(Kt),Qt=nt.job=Kt.runIfDirty.bind(Kt);Qt.i=nt,Qt.id=nt.uid,Kt.scheduler=()=>queueJob(Qt),toggleRecurse(nt,!0),Gt()},Ze=(nt,Et,Bt)=>{Et.component=nt;const Xt=nt.vnode.props;nt.vnode=Et,nt.next=null,updateProps(nt,Et.props,Xt,Bt),updateSlots(nt,Et.children,Bt),pauseTracking(),flushPreFlushCbs(nt),resetTracking()},ot=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt=!1)=>{const Gt=nt&&nt.children,Qt=nt?nt.shapeFlag:0,Lt=Et.children,{patchFlag:qt,shapeFlag:nn}=Et;if(qt>0){if(qt&128){Mt(Gt,Lt,Bt,Xt,Yt,st,Tt,Vt,Kt);return}else if(qt&256){Nt(Gt,Lt,Bt,Xt,Yt,st,Tt,Vt,Kt);return}}nn&8?(Qt&16&&Wt(Gt,Yt,st),Lt!==Gt&&ye(Bt,Lt)):Qt&16?nn&16?Mt(Gt,Lt,Bt,Xt,Yt,st,Tt,Vt,Kt):Wt(Gt,Yt,st,!0):(Qt&8&&ye(Bt,""),nn&16&&Le(Lt,Bt,Xt,Yt,st,Tt,Vt,Kt))},Nt=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt)=>{nt=nt||EMPTY_ARR,Et=Et||EMPTY_ARR;const Gt=nt.length,Qt=Et.length,Lt=Math.min(Gt,Qt);let qt;for(qt=0;qtQt?Wt(nt,Yt,st,!0,!1,Lt):Le(Et,Bt,Xt,Yt,st,Tt,Vt,Kt,Lt)},Mt=(nt,Et,Bt,Xt,Yt,st,Tt,Vt,Kt)=>{let Gt=0;const Qt=Et.length;let Lt=nt.length-1,qt=Qt-1;for(;Gt<=Lt&&Gt<=qt;){const nn=nt[Gt],on=Et[Gt]=Kt?cloneIfMounted(Et[Gt]):normalizeVNode(Et[Gt]);if(isSameVNodeType(nn,on))Ce(nn,on,Bt,null,Yt,st,Tt,Vt,Kt);else break;Gt++}for(;Gt<=Lt&&Gt<=qt;){const nn=nt[Lt],on=Et[qt]=Kt?cloneIfMounted(Et[qt]):normalizeVNode(Et[qt]);if(isSameVNodeType(nn,on))Ce(nn,on,Bt,null,Yt,st,Tt,Vt,Kt);else break;Lt--,qt--}if(Gt>Lt){if(Gt<=qt){const nn=qt+1,on=nnqt)for(;Gt<=Lt;)Pt(nt[Gt],Yt,st,!0),Gt++;else{const nn=Gt,on=Gt,un=new Map;for(Gt=on;Gt<=qt;Gt++){const pn=Et[Gt]=Kt?cloneIfMounted(Et[Gt]):normalizeVNode(Et[Gt]);pn.key!=null&&un.set(pn.key,Gt)}let cn,fn=0;const mn=qt-on+1;let gn=!1,hn=0;const yn=new Array(mn);for(Gt=0;Gt=mn){Pt(pn,Yt,st,!0);continue}let vn;if(pn.key!=null)vn=un.get(pn.key);else for(cn=on;cn<=qt;cn++)if(yn[cn-on]===0&&isSameVNodeType(pn,Et[cn])){vn=cn;break}vn===void 0?Pt(pn,Yt,st,!0):(yn[vn-on]=Gt+1,vn>=hn?hn=vn:gn=!0,Ce(pn,Et[vn],Bt,null,Yt,st,Tt,Vt,Kt),fn++)}const bn=gn?getSequence(yn):EMPTY_ARR;for(cn=bn.length-1,Gt=mn-1;Gt>=0;Gt--){const pn=on+Gt,vn=Et[pn],wn=pn+1{const{el:st,type:Tt,transition:Vt,children:Kt,shapeFlag:Gt}=nt;if(Gt&6){Ue(nt.component.subTree,Et,Bt,Xt);return}if(Gt&128){nt.suspense.move(Et,Bt,Xt);return}if(Gt&64){Tt.move(nt,Et,Bt,jt);return}if(Tt===Fragment){ae(st,Et,Bt);for(let Lt=0;LtVt.enter(st),Yt);else{const{leave:Lt,delayLeave:qt,afterLeave:nn}=Vt,on=()=>ae(st,Et,Bt),un=()=>{Lt(st,()=>{on(),nn&&nn()})};qt?qt(st,on,un):un()}else ae(st,Et,Bt)},Pt=(nt,Et,Bt,Xt=!1,Yt=!1)=>{const{type:st,props:Tt,ref:Vt,children:Kt,dynamicChildren:Gt,shapeFlag:Qt,patchFlag:Lt,dirs:qt,cacheIndex:nn}=nt;if(Lt===-2&&(Yt=!1),Vt!=null&&setRef(Vt,null,Bt,nt,!0),nn!=null&&(Et.renderCache[nn]=void 0),Qt&256){Et.ctx.deactivate(nt);return}const on=Qt&1&&qt,un=!isAsyncWrapper(nt);let cn;if(un&&(cn=Tt&&Tt.onVnodeBeforeUnmount)&&invokeVNodeHook(cn,Et,nt),Qt&6)Rt(nt.component,Bt,Xt);else{if(Qt&128){nt.suspense.unmount(Bt,Xt);return}on&&invokeDirectiveHook(nt,null,Et,"beforeUnmount"),Qt&64?nt.type.remove(nt,Et,Bt,jt,Xt):Gt&&!Gt.hasOnce&&(st!==Fragment||Lt>0&&Lt&64)?Wt(Gt,Et,Bt,!1,!0):(st===Fragment&&Lt&384||!Yt&&Qt&16)&&Wt(Kt,Et,Bt),Xt&&Dt(nt)}(un&&(cn=Tt&&Tt.onVnodeUnmounted)||on)&&queuePostRenderEffect(()=>{cn&&invokeVNodeHook(cn,Et,nt),on&&invokeDirectiveHook(nt,null,Et,"unmounted")},Bt)},Dt=nt=>{const{type:Et,el:Bt,anchor:Xt,transition:Yt}=nt;if(Et===Fragment){Ut(Bt,Xt);return}if(Et===Static){Oe(nt);return}const st=()=>{ie(Bt),Yt&&!Yt.persisted&&Yt.afterLeave&&Yt.afterLeave()};if(nt.shapeFlag&1&&Yt&&!Yt.persisted){const{leave:Tt,delayLeave:Vt}=Yt,Kt=()=>Tt(Bt,st);Vt?Vt(nt.el,st,Kt):Kt()}else st()},Ut=(nt,Et)=>{let Bt;for(;nt!==Et;)Bt=we(nt),ie(nt),nt=Bt;ie(Et)},Rt=(nt,Et,Bt)=>{const{bum:Xt,scope:Yt,job:st,subTree:Tt,um:Vt,m:Kt,a:Gt}=nt;invalidateMount(Kt),invalidateMount(Gt),Xt&&invokeArrayFns(Xt),Yt.stop(),st&&(st.flags|=8,Pt(Tt,nt,Et,Bt)),Vt&&queuePostRenderEffect(Vt,Et),queuePostRenderEffect(()=>{nt.isUnmounted=!0},Et),Et&&Et.pendingBranch&&!Et.isUnmounted&&nt.asyncDep&&!nt.asyncResolved&&nt.suspenseId===Et.pendingId&&(Et.deps--,Et.deps===0&&Et.resolve())},Wt=(nt,Et,Bt,Xt=!1,Yt=!1,st=0)=>{for(let Tt=st;Tt{if(nt.shapeFlag&6)return Qe(nt.component.subTree);if(nt.shapeFlag&128)return nt.suspense.next();const Et=we(nt.anchor||nt.el),Bt=Et&&Et[TeleportEndKey];return Bt?we(Bt):Et};let It=!1;const Ft=(nt,Et,Bt)=>{nt==null?Et._vnode&&Pt(Et._vnode,null,null,!0):Ce(Et._vnode||null,nt,Et,null,null,null,Bt),Et._vnode=nt,It||(It=!0,flushPreFlushCbs(),flushPostFlushCbs(),It=!1)},jt={p:Ce,um:Pt,m:Ue,r:Dt,mt:qe,mc:Le,pc:ot,pbc:Ke,n:Qe,o:ee};let tn,Zt;return{render:Ft,hydrate:tn,createApp:createAppAPI(Ft,tn)}}function resolveChildrenNamespace({type:ee,props:ne},oe){return oe==="svg"&&ee==="foreignObject"||oe==="mathml"&&ee==="annotation-xml"&&ne&&ne.encoding&&ne.encoding.includes("html")?void 0:oe}function toggleRecurse({effect:ee,job:ne},oe){oe?(ee.flags|=32,ne.flags|=4):(ee.flags&=-33,ne.flags&=-5)}function needTransition(ee,ne){return(!ee||ee&&!ee.pendingBranch)&&ne&&!ne.persisted}function traverseStaticChildren(ee,ne,oe=!1){const ae=ee.children,ie=ne.children;if(isArray$5(ae)&&isArray$5(ie))for(let se=0;se>1,ee[oe[fe]]0&&(ne[ae]=oe[se-1]),oe[se]=ae)}}for(se=oe.length,de=oe[se-1];se-- >0;)oe[se]=de,de=ne[de];return oe}function locateNonHydratedAsyncRoot(ee){const ne=ee.subTree.component;if(ne)return ne.asyncDep&&!ne.asyncResolved?ne:locateNonHydratedAsyncRoot(ne)}function invalidateMount(ee){if(ee)for(let ne=0;neinject(ssrContextKey);function watchEffect(ee,ne){return doWatch(ee,null,ne)}function watchPostEffect(ee,ne){return doWatch(ee,null,{flush:"post"})}function watchSyncEffect(ee,ne){return doWatch(ee,null,{flush:"sync"})}function watch(ee,ne,oe){return doWatch(ee,ne,oe)}function doWatch(ee,ne,oe=EMPTY_OBJ){const{immediate:ae,deep:ie,flush:se,once:de}=oe,fe=extend$2({},oe),ve=ne&&ae||!ne&&se!=="post";let be;if(isInSSRComponentSetup){if(se==="sync"){const Ee=useSSRContext();be=Ee.__watcherHandles||(Ee.__watcherHandles=[])}else if(!ve){const Ee=()=>{};return Ee.stop=NOOP,Ee.resume=NOOP,Ee.pause=NOOP,Ee}}const ye=currentInstance;fe.call=(Ee,_e,Ce)=>callWithAsyncErrorHandling(Ee,ye,_e,Ce);let $e=!1;se==="post"?fe.scheduler=Ee=>{queuePostRenderEffect(Ee,ye&&ye.suspense)}:se!=="sync"&&($e=!0,fe.scheduler=(Ee,_e)=>{_e?Ee():queueJob(Ee)}),fe.augmentJob=Ee=>{ne&&(Ee.flags|=4),$e&&(Ee.flags|=2,ye&&(Ee.id=ye.uid,Ee.i=ye))};const we=watch$1(ee,ne,fe);return isInSSRComponentSetup&&(be?be.push(we):ve&&we()),we}function instanceWatch(ee,ne,oe){const ae=this.proxy,ie=isString$4(ee)?ee.includes(".")?createPathGetter(ae,ee):()=>ae[ee]:ee.bind(ae,ae);let se;isFunction$6(ne)?se=ne:(se=ne.handler,oe=ne);const de=setCurrentInstance(this),fe=doWatch(ie,se.bind(ae),oe);return de(),fe}function createPathGetter(ee,ne){const oe=ne.split(".");return()=>{let ae=ee;for(let ie=0;ie{let ye,$e=EMPTY_OBJ,we;return watchSyncEffect(()=>{const Ee=ee[ie];hasChanged(ye,Ee)&&(ye=Ee,be())}),{get(){return ve(),oe.get?oe.get(ye):ye},set(Ee){const _e=oe.set?oe.set(Ee):Ee;if(!hasChanged(_e,ye)&&!($e!==EMPTY_OBJ&&hasChanged(Ee,$e)))return;const Ce=ae.vnode.props;Ce&&(ne in Ce||ie in Ce||se in Ce)&&(`onUpdate:${ne}`in Ce||`onUpdate:${ie}`in Ce||`onUpdate:${se}`in Ce)||(ye=Ee,be()),ae.emit(`update:${ne}`,_e),hasChanged(Ee,_e)&&hasChanged(Ee,$e)&&!hasChanged(_e,we)&&be(),$e=Ee,we=_e}}});return fe[Symbol.iterator]=()=>{let ve=0;return{next(){return ve<2?{value:ve++?de||EMPTY_OBJ:fe,done:!1}:{done:!0}}}},fe}const getModelModifiers=(ee,ne)=>ne==="modelValue"||ne==="model-value"?ee.modelModifiers:ee[`${ne}Modifiers`]||ee[`${camelize$1(ne)}Modifiers`]||ee[`${hyphenate(ne)}Modifiers`];function emit(ee,ne,...oe){if(ee.isUnmounted)return;const ae=ee.vnode.props||EMPTY_OBJ;let ie=oe;const se=ne.startsWith("update:"),de=se&&getModelModifiers(ae,ne.slice(7));de&&(de.trim&&(ie=oe.map(ye=>isString$4(ye)?ye.trim():ye)),de.number&&(ie=oe.map(looseToNumber)));let fe,ve=ae[fe=toHandlerKey(ne)]||ae[fe=toHandlerKey(camelize$1(ne))];!ve&&se&&(ve=ae[fe=toHandlerKey(hyphenate(ne))]),ve&&callWithAsyncErrorHandling(ve,ee,6,ie);const be=ae[fe+"Once"];if(be){if(!ee.emitted)ee.emitted={};else if(ee.emitted[fe])return;ee.emitted[fe]=!0,callWithAsyncErrorHandling(be,ee,6,ie)}}function normalizeEmitsOptions(ee,ne,oe=!1){const ae=ne.emitsCache,ie=ae.get(ee);if(ie!==void 0)return ie;const se=ee.emits;let de={},fe=!1;if(!isFunction$6(ee)){const ve=be=>{const ye=normalizeEmitsOptions(be,ne,!0);ye&&(fe=!0,extend$2(de,ye))};!oe&&ne.mixins.length&&ne.mixins.forEach(ve),ee.extends&&ve(ee.extends),ee.mixins&&ee.mixins.forEach(ve)}return!se&&!fe?(isObject$8(ee)&&ae.set(ee,null),null):(isArray$5(se)?se.forEach(ve=>de[ve]=null):extend$2(de,se),isObject$8(ee)&&ae.set(ee,de),de)}function isEmitListener(ee,ne){return!ee||!isOn(ne)?!1:(ne=ne.slice(2).replace(/Once$/,""),hasOwn$1(ee,ne[0].toLowerCase()+ne.slice(1))||hasOwn$1(ee,hyphenate(ne))||hasOwn$1(ee,ne))}function markAttrsAccessed(){}function renderComponentRoot(ee){const{type:ne,vnode:oe,proxy:ae,withProxy:ie,propsOptions:[se],slots:de,attrs:fe,emit:ve,render:be,renderCache:ye,props:$e,data:we,setupState:Ee,ctx:_e,inheritAttrs:Ce}=ee,Pe=setCurrentRenderingInstance(ee);let Ae,ke;try{if(oe.shapeFlag&4){const Oe=ie||ae,Re=Oe;Ae=normalizeVNode(be.call(Re,Oe,ye,$e,Ee,we,_e)),ke=fe}else{const Oe=ne;Ae=normalizeVNode(Oe.length>1?Oe($e,{attrs:fe,slots:de,emit:ve}):Oe($e,null)),ke=ne.props?fe:getFunctionalFallthrough(fe)}}catch(Oe){blockStack.length=0,handleError(Oe,ee,1),Ae=createVNode(Comment$1)}let Ne=Ae;if(ke&&Ce!==!1){const Oe=Object.keys(ke),{shapeFlag:Re}=Ne;Oe.length&&Re&7&&(se&&Oe.some(isModelListener)&&(ke=filterModelListeners(ke,se)),Ne=cloneVNode(Ne,ke,!1,!0))}return oe.dirs&&(Ne=cloneVNode(Ne,null,!1,!0),Ne.dirs=Ne.dirs?Ne.dirs.concat(oe.dirs):oe.dirs),oe.transition&&setTransitionHooks(Ne,oe.transition),Ae=Ne,setCurrentRenderingInstance(Pe),Ae}const getFunctionalFallthrough=ee=>{let ne;for(const oe in ee)(oe==="class"||oe==="style"||isOn(oe))&&((ne||(ne={}))[oe]=ee[oe]);return ne},filterModelListeners=(ee,ne)=>{const oe={};for(const ae in ee)(!isModelListener(ae)||!(ae.slice(9)in ne))&&(oe[ae]=ee[ae]);return oe};function shouldUpdateComponent(ee,ne,oe){const{props:ae,children:ie,component:se}=ee,{props:de,children:fe,patchFlag:ve}=ne,be=se.emitsOptions;if(ne.dirs||ne.transition)return!0;if(oe&&ve>=0){if(ve&1024)return!0;if(ve&16)return ae?hasPropsChanged(ae,de,be):!!de;if(ve&8){const ye=ne.dynamicProps;for(let $e=0;$eee.__isSuspense;function queueEffectWithSuspense(ee,ne){ne&&ne.pendingBranch?isArray$5(ee)?ne.effects.push(...ee):ne.effects.push(ee):queuePostFlushCb(ee)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment$1=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(ee=!1){blockStack.push(currentBlock=ee?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(ee,ne=!1){isBlockTreeEnabled+=ee,ee<0&¤tBlock&&ne&&(currentBlock.hasOnce=!0)}function setupBlock(ee){return ee.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(ee),ee}function createElementBlock(ee,ne,oe,ae,ie,se){return setupBlock(createBaseVNode(ee,ne,oe,ae,ie,se,!0))}function createBlock(ee,ne,oe,ae,ie){return setupBlock(createVNode(ee,ne,oe,ae,ie,!0))}function isVNode$1(ee){return ee?ee.__v_isVNode===!0:!1}function isSameVNodeType(ee,ne){return ee.type===ne.type&&ee.key===ne.key}const normalizeKey=({key:ee})=>ee??null,normalizeRef=({ref:ee,ref_key:ne,ref_for:oe})=>(typeof ee=="number"&&(ee=""+ee),ee!=null?isString$4(ee)||isRef(ee)||isFunction$6(ee)?{i:currentRenderingInstance,r:ee,k:ne,f:!!oe}:ee:null);function createBaseVNode(ee,ne=null,oe=null,ae=0,ie=null,se=ee===Fragment?0:1,de=!1,fe=!1){const ve={__v_isVNode:!0,__v_skip:!0,type:ee,props:ne,key:ne&&normalizeKey(ne),ref:ne&&normalizeRef(ne),scopeId:currentScopeId,slotScopeIds:null,children:oe,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:se,patchFlag:ae,dynamicProps:ie,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return fe?(normalizeChildren(ve,oe),se&128&&ee.normalize(ve)):oe&&(ve.shapeFlag|=isString$4(oe)?8:16),isBlockTreeEnabled>0&&!de&¤tBlock&&(ve.patchFlag>0||se&6)&&ve.patchFlag!==32&¤tBlock.push(ve),ve}const createVNode=_createVNode;function _createVNode(ee,ne=null,oe=null,ae=0,ie=null,se=!1){if((!ee||ee===NULL_DYNAMIC_COMPONENT)&&(ee=Comment$1),isVNode$1(ee)){const fe=cloneVNode(ee,ne,!0);return oe&&normalizeChildren(fe,oe),isBlockTreeEnabled>0&&!se&¤tBlock&&(fe.shapeFlag&6?currentBlock[currentBlock.indexOf(ee)]=fe:currentBlock.push(fe)),fe.patchFlag=-2,fe}if(isClassComponent(ee)&&(ee=ee.__vccOpts),ne){ne=guardReactiveProps(ne);let{class:fe,style:ve}=ne;fe&&!isString$4(fe)&&(ne.class=normalizeClass(fe)),isObject$8(ve)&&(isProxy(ve)&&!isArray$5(ve)&&(ve=extend$2({},ve)),ne.style=normalizeStyle(ve))}const de=isString$4(ee)?1:isSuspense(ee)?128:isTeleport(ee)?64:isObject$8(ee)?4:isFunction$6(ee)?2:0;return createBaseVNode(ee,ne,oe,ae,ie,de,se,!0)}function guardReactiveProps(ee){return ee?isProxy(ee)||isInternalObject(ee)?extend$2({},ee):ee:null}function cloneVNode(ee,ne,oe=!1,ae=!1){const{props:ie,ref:se,patchFlag:de,children:fe,transition:ve}=ee,be=ne?mergeProps(ie||{},ne):ie,ye={__v_isVNode:!0,__v_skip:!0,type:ee.type,props:be,key:be&&normalizeKey(be),ref:ne&&ne.ref?oe&&se?isArray$5(se)?se.concat(normalizeRef(ne)):[se,normalizeRef(ne)]:normalizeRef(ne):se,scopeId:ee.scopeId,slotScopeIds:ee.slotScopeIds,children:fe,target:ee.target,targetStart:ee.targetStart,targetAnchor:ee.targetAnchor,staticCount:ee.staticCount,shapeFlag:ee.shapeFlag,patchFlag:ne&&ee.type!==Fragment?de===-1?16:de|16:de,dynamicProps:ee.dynamicProps,dynamicChildren:ee.dynamicChildren,appContext:ee.appContext,dirs:ee.dirs,transition:ve,component:ee.component,suspense:ee.suspense,ssContent:ee.ssContent&&cloneVNode(ee.ssContent),ssFallback:ee.ssFallback&&cloneVNode(ee.ssFallback),el:ee.el,anchor:ee.anchor,ctx:ee.ctx,ce:ee.ce};return ve&&ae&&setTransitionHooks(ye,ve.clone(ye)),ye}function createTextVNode(ee=" ",ne=0){return createVNode(Text,null,ee,ne)}function createCommentVNode(ee="",ne=!1){return ne?(openBlock(),createBlock(Comment$1,null,ee)):createVNode(Comment$1,null,ee)}function normalizeVNode(ee){return ee==null||typeof ee=="boolean"?createVNode(Comment$1):isArray$5(ee)?createVNode(Fragment,null,ee.slice()):isVNode$1(ee)?cloneIfMounted(ee):createVNode(Text,null,String(ee))}function cloneIfMounted(ee){return ee.el===null&&ee.patchFlag!==-1||ee.memo?ee:cloneVNode(ee)}function normalizeChildren(ee,ne){let oe=0;const{shapeFlag:ae}=ee;if(ne==null)ne=null;else if(isArray$5(ne))oe=16;else if(typeof ne=="object")if(ae&65){const ie=ne.default;ie&&(ie._c&&(ie._d=!1),normalizeChildren(ee,ie()),ie._c&&(ie._d=!0));return}else{oe=32;const ie=ne._;!ie&&!isInternalObject(ne)?ne._ctx=currentRenderingInstance:ie===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?ne._=1:(ne._=2,ee.patchFlag|=1024))}else isFunction$6(ne)?(ne={default:ne,_ctx:currentRenderingInstance},oe=32):(ne=String(ne),ae&64?(oe=16,ne=[createTextVNode(ne)]):oe=8);ee.children=ne,ee.shapeFlag|=oe}function mergeProps(...ee){const ne={};for(let oe=0;oecurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const ee=getGlobalThis$1(),ne=(oe,ae)=>{let ie;return(ie=ee[oe])||(ie=ee[oe]=[]),ie.push(ae),se=>{ie.length>1?ie.forEach(de=>de(se)):ie[0](se)}};internalSetCurrentInstance=ne("__VUE_INSTANCE_SETTERS__",oe=>currentInstance=oe),setInSSRSetupState=ne("__VUE_SSR_SETTERS__",oe=>isInSSRComponentSetup=oe)}const setCurrentInstance=ee=>{const ne=currentInstance;return internalSetCurrentInstance(ee),ee.scope.on(),()=>{ee.scope.off(),internalSetCurrentInstance(ne)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(ee){return ee.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(ee,ne=!1,oe=!1){ne&&setInSSRSetupState(ne);const{props:ae,children:ie}=ee.vnode,se=isStatefulComponent(ee);initProps(ee,ae,se,ne),initSlots(ee,ie,oe);const de=se?setupStatefulComponent(ee,ne):void 0;return ne&&setInSSRSetupState(!1),de}function setupStatefulComponent(ee,ne){const oe=ee.type;ee.accessCache=Object.create(null),ee.proxy=new Proxy(ee.ctx,PublicInstanceProxyHandlers);const{setup:ae}=oe;if(ae){pauseTracking();const ie=ee.setupContext=ae.length>1?createSetupContext(ee):null,se=setCurrentInstance(ee),de=callWithErrorHandling(ae,ee,0,[ee.props,ie]),fe=isPromise$2(de);if(resetTracking(),se(),(fe||ee.sp)&&!isAsyncWrapper(ee)&&markAsyncBoundary(ee),fe){if(de.then(unsetCurrentInstance,unsetCurrentInstance),ne)return de.then(ve=>{handleSetupResult(ee,ve,ne)}).catch(ve=>{handleError(ve,ee,0)});ee.asyncDep=de}else handleSetupResult(ee,de,ne)}else finishComponentSetup(ee,ne)}function handleSetupResult(ee,ne,oe){isFunction$6(ne)?ee.type.__ssrInlineRender?ee.ssrRender=ne:ee.render=ne:isObject$8(ne)&&(ee.setupState=proxyRefs(ne)),finishComponentSetup(ee,oe)}let compile$1;function finishComponentSetup(ee,ne,oe){const ae=ee.type;if(!ee.render){if(!ne&&compile$1&&!ae.render){const ie=ae.template||resolveMergedOptions(ee).template;if(ie){const{isCustomElement:se,compilerOptions:de}=ee.appContext.config,{delimiters:fe,compilerOptions:ve}=ae,be=extend$2(extend$2({isCustomElement:se,delimiters:fe},de),ve);ae.render=compile$1(ie,be)}}ee.render=ae.render||NOOP}{const ie=setCurrentInstance(ee);pauseTracking();try{applyOptions(ee)}finally{resetTracking(),ie()}}}const attrsProxyHandlers={get(ee,ne){return track(ee,"get",""),ee[ne]}};function createSetupContext(ee){const ne=oe=>{ee.exposed=oe||{}};return{attrs:new Proxy(ee.attrs,attrsProxyHandlers),slots:ee.slots,emit:ee.emit,expose:ne}}function getComponentPublicInstance(ee){return ee.exposed?ee.exposeProxy||(ee.exposeProxy=new Proxy(proxyRefs(markRaw(ee.exposed)),{get(ne,oe){if(oe in ne)return ne[oe];if(oe in publicPropertiesMap)return publicPropertiesMap[oe](ee)},has(ne,oe){return oe in ne||oe in publicPropertiesMap}})):ee.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=ee=>ee.replace(classifyRE,ne=>ne.toUpperCase()).replace(/[-_]/g,"");function getComponentName(ee,ne=!0){return isFunction$6(ee)?ee.displayName||ee.name:ee.name||ne&&ee.__name}function formatComponentName(ee,ne,oe=!1){let ae=getComponentName(ne);if(!ae&&ne.__file){const ie=ne.__file.match(/([^/\\]+)\.\w+$/);ie&&(ae=ie[1])}if(!ae&&ee&&ee.parent){const ie=se=>{for(const de in se)if(se[de]===ne)return de};ae=ie(ee.components||ee.parent.type.components)||ie(ee.appContext.components)}return ae?classify(ae):oe?"App":"Anonymous"}function isClassComponent(ee){return isFunction$6(ee)&&"__vccOpts"in ee}const computed=(ee,ne)=>computed$1(ee,ne,isInSSRComponentSetup);function h$2(ee,ne,oe){const ae=arguments.length;return ae===2?isObject$8(ne)&&!isArray$5(ne)?isVNode$1(ne)?createVNode(ee,null,[ne]):createVNode(ee,ne):createVNode(ee,null,ne):(ae>3?oe=Array.prototype.slice.call(arguments,2):ae===3&&isVNode$1(oe)&&(oe=[oe]),createVNode(ee,ne,oe))}const version$1="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let policy;const tt$1=typeof window<"u"&&window.trustedTypes;if(tt$1)try{policy=tt$1.createPolicy("vue",{createHTML:ee=>ee})}catch{}const unsafeToTrustedHTML=policy?ee=>policy.createHTML(ee):ee=>ee,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(ee,ne,oe)=>{ne.insertBefore(ee,oe||null)},remove:ee=>{const ne=ee.parentNode;ne&&ne.removeChild(ee)},createElement:(ee,ne,oe,ae)=>{const ie=ne==="svg"?doc.createElementNS(svgNS,ee):ne==="mathml"?doc.createElementNS(mathmlNS,ee):oe?doc.createElement(ee,{is:oe}):doc.createElement(ee);return ee==="select"&&ae&&ae.multiple!=null&&ie.setAttribute("multiple",ae.multiple),ie},createText:ee=>doc.createTextNode(ee),createComment:ee=>doc.createComment(ee),setText:(ee,ne)=>{ee.nodeValue=ne},setElementText:(ee,ne)=>{ee.textContent=ne},parentNode:ee=>ee.parentNode,nextSibling:ee=>ee.nextSibling,querySelector:ee=>doc.querySelector(ee),setScopeId(ee,ne){ee.setAttribute(ne,"")},insertStaticContent(ee,ne,oe,ae,ie,se){const de=oe?oe.previousSibling:ne.lastChild;if(ie&&(ie===se||ie.nextSibling))for(;ne.insertBefore(ie.cloneNode(!0),oe),!(ie===se||!(ie=ie.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(ae==="svg"?`${ee}`:ae==="mathml"?`${ee}`:ee);const fe=templateContainer.content;if(ae==="svg"||ae==="mathml"){const ve=fe.firstChild;for(;ve.firstChild;)fe.appendChild(ve.firstChild);fe.removeChild(ve)}ne.insertBefore(fe,oe)}return[de?de.nextSibling:ne.firstChild,oe?oe.previousSibling:ne.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=ee=>(ee.displayName="Transition",ee.props=TransitionPropsValidators,ee),Transition=decorate$1((ee,{slots:ne})=>h$2(BaseTransition,resolveTransitionProps(ee),ne)),callHook=(ee,ne=[])=>{isArray$5(ee)?ee.forEach(oe=>oe(...ne)):ee&&ee(...ne)},hasExplicitCallback=ee=>ee?isArray$5(ee)?ee.some(ne=>ne.length>1):ee.length>1:!1;function resolveTransitionProps(ee){const ne={};for(const je in ee)je in DOMTransitionPropsValidators||(ne[je]=ee[je]);if(ee.css===!1)return ne;const{name:oe="v",type:ae,duration:ie,enterFromClass:se=`${oe}-enter-from`,enterActiveClass:de=`${oe}-enter-active`,enterToClass:fe=`${oe}-enter-to`,appearFromClass:ve=se,appearActiveClass:be=de,appearToClass:ye=fe,leaveFromClass:$e=`${oe}-leave-from`,leaveActiveClass:we=`${oe}-leave-active`,leaveToClass:Ee=`${oe}-leave-to`}=ee,_e=normalizeDuration(ie),Ce=_e&&_e[0],Pe=_e&&_e[1],{onBeforeEnter:Ae,onEnter:ke,onEnterCancelled:Ne,onLeave:Oe,onLeaveCancelled:Re,onBeforeAppear:Be=Ae,onAppear:Me=ke,onAppearCancelled:Le=Ne}=ne,Xe=(je,He,qe,ze)=>{je._enterCancelled=ze,removeTransitionClass(je,He?ye:fe),removeTransitionClass(je,He?be:de),qe&&qe()},Ke=(je,He)=>{je._isLeaving=!1,removeTransitionClass(je,$e),removeTransitionClass(je,Ee),removeTransitionClass(je,we),He&&He()},De=je=>(He,qe)=>{const ze=je?Me:ke,Fe=()=>Xe(He,je,qe);callHook(ze,[He,Fe]),nextFrame(()=>{removeTransitionClass(He,je?ve:se),addTransitionClass(He,je?ye:fe),hasExplicitCallback(ze)||whenTransitionEnds(He,ae,Ce,Fe)})};return extend$2(ne,{onBeforeEnter(je){callHook(Ae,[je]),addTransitionClass(je,se),addTransitionClass(je,de)},onBeforeAppear(je){callHook(Be,[je]),addTransitionClass(je,ve),addTransitionClass(je,be)},onEnter:De(!1),onAppear:De(!0),onLeave(je,He){je._isLeaving=!0;const qe=()=>Ke(je,He);addTransitionClass(je,$e),je._enterCancelled?(addTransitionClass(je,we),forceReflow()):(forceReflow(),addTransitionClass(je,we)),nextFrame(()=>{je._isLeaving&&(removeTransitionClass(je,$e),addTransitionClass(je,Ee),hasExplicitCallback(Oe)||whenTransitionEnds(je,ae,Pe,qe))}),callHook(Oe,[je,qe])},onEnterCancelled(je){Xe(je,!1,void 0,!0),callHook(Ne,[je])},onAppearCancelled(je){Xe(je,!0,void 0,!0),callHook(Le,[je])},onLeaveCancelled(je){Ke(je),callHook(Re,[je])}})}function normalizeDuration(ee){if(ee==null)return null;if(isObject$8(ee))return[NumberOf(ee.enter),NumberOf(ee.leave)];{const ne=NumberOf(ee);return[ne,ne]}}function NumberOf(ee){return toNumber(ee)}function addTransitionClass(ee,ne){ne.split(/\s+/).forEach(oe=>oe&&ee.classList.add(oe)),(ee[vtcKey]||(ee[vtcKey]=new Set)).add(ne)}function removeTransitionClass(ee,ne){ne.split(/\s+/).forEach(ae=>ae&&ee.classList.remove(ae));const oe=ee[vtcKey];oe&&(oe.delete(ne),oe.size||(ee[vtcKey]=void 0))}function nextFrame(ee){requestAnimationFrame(()=>{requestAnimationFrame(ee)})}let endId=0;function whenTransitionEnds(ee,ne,oe,ae){const ie=ee._endId=++endId,se=()=>{ie===ee._endId&&ae()};if(oe!=null)return setTimeout(se,oe);const{type:de,timeout:fe,propCount:ve}=getTransitionInfo(ee,ne);if(!de)return ae();const be=de+"end";let ye=0;const $e=()=>{ee.removeEventListener(be,we),se()},we=Ee=>{Ee.target===ee&&++ye>=ve&&$e()};setTimeout(()=>{ye(oe[_e]||"").split(", "),ie=ae(`${TRANSITION}Delay`),se=ae(`${TRANSITION}Duration`),de=getTimeout(ie,se),fe=ae(`${ANIMATION}Delay`),ve=ae(`${ANIMATION}Duration`),be=getTimeout(fe,ve);let ye=null,$e=0,we=0;ne===TRANSITION?de>0&&(ye=TRANSITION,$e=de,we=se.length):ne===ANIMATION?be>0&&(ye=ANIMATION,$e=be,we=ve.length):($e=Math.max(de,be),ye=$e>0?de>be?TRANSITION:ANIMATION:null,we=ye?ye===TRANSITION?se.length:ve.length:0);const Ee=ye===TRANSITION&&/\b(transform|all)(,|$)/.test(ae(`${TRANSITION}Property`).toString());return{type:ye,timeout:$e,propCount:we,hasTransform:Ee}}function getTimeout(ee,ne){for(;ee.lengthtoMs(oe)+toMs(ee[ae])))}function toMs(ee){return ee==="auto"?0:Number(ee.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(ee,ne,oe){const ae=ee[vtcKey];ae&&(ne=(ne?[ne,...ae]:[...ae]).join(" ")),ne==null?ee.removeAttribute("class"):oe?ee.setAttribute("class",ne):ee.className=ne}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(ee,{value:ne},{transition:oe}){ee[vShowOriginalDisplay]=ee.style.display==="none"?"":ee.style.display,oe&&ne?oe.beforeEnter(ee):setDisplay(ee,ne)},mounted(ee,{value:ne},{transition:oe}){oe&&ne&&oe.enter(ee)},updated(ee,{value:ne,oldValue:oe},{transition:ae}){!ne!=!oe&&(ae?ne?(ae.beforeEnter(ee),setDisplay(ee,!0),ae.enter(ee)):ae.leave(ee,()=>{setDisplay(ee,!1)}):setDisplay(ee,ne))},beforeUnmount(ee,{value:ne}){setDisplay(ee,ne)}};function setDisplay(ee,ne){ee.style.display=ne?ee[vShowOriginalDisplay]:"none",ee[vShowHidden]=!ne}const CSS_VAR_TEXT=Symbol("");function useCssVars(ee){const ne=getCurrentInstance();if(!ne)return;const oe=ne.ut=(ie=ee(ne.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${ne.uid}"]`)).forEach(se=>setVarsOnNode(se,ie))},ae=()=>{const ie=ee(ne.proxy);ne.ce?setVarsOnNode(ne.ce,ie):setVarsOnVNode(ne.subTree,ie),oe(ie)};onBeforeUpdate(()=>{queuePostFlushCb(ae)}),onMounted(()=>{watch(ae,NOOP,{flush:"post"});const ie=new MutationObserver(ae);ie.observe(ne.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ie.disconnect())})}function setVarsOnVNode(ee,ne){if(ee.shapeFlag&128){const oe=ee.suspense;ee=oe.activeBranch,oe.pendingBranch&&!oe.isHydrating&&oe.effects.push(()=>{setVarsOnVNode(oe.activeBranch,ne)})}for(;ee.component;)ee=ee.component.subTree;if(ee.shapeFlag&1&&ee.el)setVarsOnNode(ee.el,ne);else if(ee.type===Fragment)ee.children.forEach(oe=>setVarsOnVNode(oe,ne));else if(ee.type===Static){let{el:oe,anchor:ae}=ee;for(;oe&&(setVarsOnNode(oe,ne),oe!==ae);)oe=oe.nextSibling}}function setVarsOnNode(ee,ne){if(ee.nodeType===1){const oe=ee.style;let ae="";for(const ie in ne)oe.setProperty(`--${ie}`,ne[ie]),ae+=`--${ie}: ${ne[ie]};`;oe[CSS_VAR_TEXT]=ae}}const displayRE=/(^|;)\s*display\s*:/;function patchStyle(ee,ne,oe){const ae=ee.style,ie=isString$4(oe);let se=!1;if(oe&&!ie){if(ne)if(isString$4(ne))for(const de of ne.split(";")){const fe=de.slice(0,de.indexOf(":")).trim();oe[fe]==null&&setStyle(ae,fe,"")}else for(const de in ne)oe[de]==null&&setStyle(ae,de,"");for(const de in oe)de==="display"&&(se=!0),setStyle(ae,de,oe[de])}else if(ie){if(ne!==oe){const de=ae[CSS_VAR_TEXT];de&&(oe+=";"+de),ae.cssText=oe,se=displayRE.test(oe)}}else ne&&ee.removeAttribute("style");vShowOriginalDisplay in ee&&(ee[vShowOriginalDisplay]=se?ae.display:"",ee[vShowHidden]&&(ae.display="none"))}const importantRE=/\s*!important$/;function setStyle(ee,ne,oe){if(isArray$5(oe))oe.forEach(ae=>setStyle(ee,ne,ae));else if(oe==null&&(oe=""),ne.startsWith("--"))ee.setProperty(ne,oe);else{const ae=autoPrefix(ee,ne);importantRE.test(oe)?ee.setProperty(hyphenate(ae),oe.replace(importantRE,""),"important"):ee[ae]=oe}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(ee,ne){const oe=prefixCache[ne];if(oe)return oe;let ae=camelize$1(ne);if(ae!=="filter"&&ae in ee)return prefixCache[ne]=ae;ae=capitalize$1(ae);for(let ie=0;iecachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(ee,ne){const oe=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=oe.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,oe.value),ne,5,[ae])};return oe.value=ee,oe.attached=getNow(),oe}function patchStopImmediatePropagation(ee,ne){if(isArray$5(ne)){const oe=ee.stopImmediatePropagation;return ee.stopImmediatePropagation=()=>{oe.call(ee),ee._stopped=!0},ne.map(ae=>ie=>!ie._stopped&&ae&&ae(ie))}else return ne}const isNativeOn=ee=>ee.charCodeAt(0)===111&&ee.charCodeAt(1)===110&&ee.charCodeAt(2)>96&&ee.charCodeAt(2)<123,patchProp=(ee,ne,oe,ae,ie,se)=>{const de=ie==="svg";ne==="class"?patchClass(ee,ae,de):ne==="style"?patchStyle(ee,oe,ae):isOn(ne)?isModelListener(ne)||patchEvent(ee,ne,oe,ae,se):(ne[0]==="."?(ne=ne.slice(1),!0):ne[0]==="^"?(ne=ne.slice(1),!1):shouldSetAsProp(ee,ne,ae,de))?(patchDOMProp(ee,ne,ae),!ee.tagName.includes("-")&&(ne==="value"||ne==="checked"||ne==="selected")&&patchAttr(ee,ne,ae,de,se,ne!=="value")):ee._isVueCE&&(/[A-Z]/.test(ne)||!isString$4(ae))?patchDOMProp(ee,camelize$1(ne),ae,se,ne):(ne==="true-value"?ee._trueValue=ae:ne==="false-value"&&(ee._falseValue=ae),patchAttr(ee,ne,ae,de))};function shouldSetAsProp(ee,ne,oe,ae){if(ae)return!!(ne==="innerHTML"||ne==="textContent"||ne in ee&&isNativeOn(ne)&&isFunction$6(oe));if(ne==="spellcheck"||ne==="draggable"||ne==="translate"||ne==="form"||ne==="list"&&ee.tagName==="INPUT"||ne==="type"&&ee.tagName==="TEXTAREA")return!1;if(ne==="width"||ne==="height"){const ie=ee.tagName;if(ie==="IMG"||ie==="VIDEO"||ie==="CANVAS"||ie==="SOURCE")return!1}return isNativeOn(ne)&&isString$4(oe)?!1:ne in ee}const getModelAssigner=ee=>{const ne=ee.props["onUpdate:modelValue"]||!1;return isArray$5(ne)?oe=>invokeArrayFns(ne,oe):ne};function onCompositionStart(ee){ee.target.composing=!0}function onCompositionEnd(ee){const ne=ee.target;ne.composing&&(ne.composing=!1,ne.dispatchEvent(new Event("input")))}const assignKey$1=Symbol("_assign"),vModelText={created(ee,{modifiers:{lazy:ne,trim:oe,number:ae}},ie){ee[assignKey$1]=getModelAssigner(ie);const se=ae||ie.props&&ie.props.type==="number";addEventListener$1(ee,ne?"change":"input",de=>{if(de.target.composing)return;let fe=ee.value;oe&&(fe=fe.trim()),se&&(fe=looseToNumber(fe)),ee[assignKey$1](fe)}),oe&&addEventListener$1(ee,"change",()=>{ee.value=ee.value.trim()}),ne||(addEventListener$1(ee,"compositionstart",onCompositionStart),addEventListener$1(ee,"compositionend",onCompositionEnd),addEventListener$1(ee,"change",onCompositionEnd))},mounted(ee,{value:ne}){ee.value=ne??""},beforeUpdate(ee,{value:ne,oldValue:oe,modifiers:{lazy:ae,trim:ie,number:se}},de){if(ee[assignKey$1]=getModelAssigner(de),ee.composing)return;const fe=(se||ee.type==="number")&&!/^0\d/.test(ee.value)?looseToNumber(ee.value):ee.value,ve=ne??"";fe!==ve&&(document.activeElement===ee&&ee.type!=="range"&&(ae&&ne===oe||ie&&ee.value.trim()===ve)||(ee.value=ve))}},systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:ee=>ee.stopPropagation(),prevent:ee=>ee.preventDefault(),self:ee=>ee.target!==ee.currentTarget,ctrl:ee=>!ee.ctrlKey,shift:ee=>!ee.shiftKey,alt:ee=>!ee.altKey,meta:ee=>!ee.metaKey,left:ee=>"button"in ee&&ee.button!==0,middle:ee=>"button"in ee&&ee.button!==1,right:ee=>"button"in ee&&ee.button!==2,exact:(ee,ne)=>systemModifiers.some(oe=>ee[`${oe}Key`]&&!ne.includes(oe))},withModifiers=(ee,ne)=>{const oe=ee._withMods||(ee._withMods={}),ae=ne.join(".");return oe[ae]||(oe[ae]=(ie,...se)=>{for(let de=0;de{const oe=ee._withKeys||(ee._withKeys={}),ae=ne.join(".");return oe[ae]||(oe[ae]=ie=>{if(!("key"in ie))return;const se=hyphenate(ie.key);if(ne.some(de=>de===se||keyNames[de]===se))return ee(ie)})},rendererOptions=extend$2({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render$1=(...ee)=>{ensureRenderer().render(...ee)},createApp=(...ee)=>{const ne=ensureRenderer().createApp(...ee),{mount:oe}=ne;return ne.mount=ae=>{const ie=normalizeContainer(ae);if(!ie)return;const se=ne._component;!isFunction$6(se)&&!se.render&&!se.template&&(se.template=ie.innerHTML),ie.nodeType===1&&(ie.textContent="");const de=oe(ie,!1,resolveRootNamespace(ie));return ie instanceof Element&&(ie.removeAttribute("v-cloak"),ie.setAttribute("data-v-app","")),de},ne};function resolveRootNamespace(ee){if(ee instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&ee instanceof MathMLElement)return"mathml"}function normalizeContainer(ee){return isString$4(ee)?document.querySelector(ee):ee}var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(ee,ne,oe)=>ne in ee?__defProp(ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[ne]=oe,__spreadValues=(ee,ne)=>{for(var oe in ne||(ne={}))__hasOwnProp.call(ne,oe)&&__defNormalProp(ee,oe,ne[oe]);if(__getOwnPropSymbols)for(var oe of __getOwnPropSymbols(ne))__propIsEnum.call(ne,oe)&&__defNormalProp(ee,oe,ne[oe]);return ee},__spreadProps=(ee,ne)=>__defProps(ee,__getOwnPropDescs(ne));const icons={},addIcon$1=function(ee,ne){icons[ee]=ne},Icon$2=defineComponent({name:"Icon",props:{name:String,color:String},computed:{svg(){if(this.name)return icons[this.name]}},render(ee){const ne=this.svg;if(!ne)return console.warn(`The name of '${this.name}' could not be found.`),createVNode("span",{class:"m-svg-icon"},null);const oe={color:this.color?this.color:ne.fill?ne.fill:null};return createVNode("span",{class:["m-svg-icon","m-svg-icon--"+this.name]},[createVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:ne.viewBox,style:oe,class:ne.class},[ne.defs&&createVNode("defs",{innerHTML:ne.defs},null),ne.path&&createVNode("path",{fill:"currentColor",d:ne.path},null),ne.html&&createVNode("g",{innerHTML:ne.html},null),this.$slots.default])])}});Icon$2.add=addIcon$1;const error={name:"error",fill:"#F56C6C",viewBox:"0 0 1024 1024",path:"M512,952C269,952,72,755,72,512S269,72,512,72s440,197,440,440S755,952,512,952z M579.7,512l101.6-101.6 c18.7-18.7,18.7-49,0-67.7c-18.7-18.7-49-18.7-67.7,0l0,0L512,444.3L410.4,342.7c-18.7-18.7-49-18.7-67.7,0s-18.7,49,0,67.7 L444.3,512L342.7,613.6c-18.7,18.7-18.7,49,0,67.7c18.7,18.7,49,18.7,67.7,0L512,579.7l101.6,101.6c18.7,18.7,49,18.7,67.7,0 c18.7-18.7,18.7-49,0-67.7L579.7,512z"},info={name:"info",fill:"#1CADF2",viewBox:"0 0 1024 1024",path:"M512,72C269,72,72,269,72,512s197,440,440,440s440-197,440-440S755,72,512,72z M581,673.9 c-33.2,49.9-67,88.3-123.8,88.3c-38.8-6.3-54.7-34.1-46.3-62.4L484,457.6c1.8-5.9-1.2-12.3-6.6-14.2c-5.4-1.9-15.9,5.1-25.1,15.1 l-44.2,53.2c-1.2-8.9-0.1-23.7-0.1-29.6c33.2-49.9,87.8-89.2,124.8-89.2c35.2,3.6,51.8,31.7,45.7,62.6l-73.6,243.3 c-1,5.5,1.9,11.1,6.9,12.8c5.4,1.9,16.8-5.1,26-15.1l44.2-53.1C583,652.3,581,667.9,581,673.9z M571.2,357.6 c-28,0-50.6-20.4-50.6-50.4c0-30,22.7-50.3,50.6-50.3c28,0,50.6,20.4,50.6,50.3C621.8,337.3,599.1,357.6,571.2,357.6z"},success={name:"success",fill:"#17B77E",viewBox:"0 0 1024 1024",path:"M512,72C269,72,72,269,72,512s197,440,440,440s440-197,440-440S755,72,512,72L512,72z M758.9,374 c-48.5,48.6-81.2,76.9-172.3,186.8c-52.6,63.4-102.3,131.5-102.7,132L462.1,720c-4.6,6.1-13.5,6.8-19.1,1.6L267.9,558.9 c-17.8-16.5-18.8-44.4-2.3-62.2s44.4-18.8,62.2-2.3l104.9,97.5c5.5,5.1,14.1,4.5,18.9-1.3c16.2-20.1,38.4-44.5,62.4-68.6 c90.2-90.9,145.6-139.7,175.2-161.3c36-26.2,77.3-48.6,87.3-36.2C792,343.9,782.5,350.3,758.9,374L758.9,374z"},warning={name:"warning",fill:"#FFC603",viewBox:"0 0 1024 1024",path:"M512,952C269,952,72,755,72,512S269,72,512,72s440,197,440,440S755,952,512,952z M510,770.8 c30.4,0,55-24.6,55-55s-24.6-55-55-55s-55,24.6-55,55S479.6,770.8,510,770.8z M509.8,255.3c-39.3,0-71.2,31.9-71.2,71.2 c0,3.1,0.2,6.2,0.6,9.3L472.4,588c2.5,19.3,18.9,33.7,38.4,33.7c19.4,0,35.8-14.4,38.2-33.7l31.8-252.2c5-39.2-22.8-75-62-79.9 C515.9,255.5,512.8,255.3,509.8,255.3z"},loading={name:"loading",viewBox:"0 0 50 50",html:''};Icon$2.add(error.name,error);Icon$2.add(info.name,info);Icon$2.add(success.name,success);Icon$2.add(warning.name,warning);Icon$2.add(loading.name,loading);var _export_sfc$1=(ee,ne)=>{const oe=ee.__vccOpts||ee;for(const[ae,ie]of ne)oe[ae]=ie;return oe};function useTimeout(ee,ne){const oe=ref(0);return oe.value=window.setTimeout(ee,ne),{stop(){window.clearTimeout(oe.value)}}}const _sfc_main$a=defineComponent({components:{Icon:Icon$2},name:"m-message",emits:["close","destroy","collapsed"],props:{id:String,type:{type:String,default:"info"},title:String,message:String,iconURL:String,duration:{type:Number,default:3e3},isCollapsed:Boolean,collapsable:Boolean,supportHTML:Boolean,width:String,className:String,wrapperClassName:String,closable:Boolean,stopTimerOnHover:{type:Boolean,default:!0}},setup(ee,{expose:ne,emit:oe}){const ae=reactive({visible:!0,collapsed:ee.isCollapsed,timer:null});let ie;const se=()=>{ee.duration<0||({stop:ie}=useTimeout(()=>{fe()},ee.duration))},de=()=>{ie==null||ie()},fe=()=>{ae.visible=!1},ve=()=>{ae.collapsed=!ae.collapsed,oe("collapsed",ae.collapsed)},be=()=>{ae.visible=!1},ye=()=>{ee.stopTimerOnHover&&de()},$e=()=>{ee.stopTimerOnHover&&se()};return onBeforeMount(()=>{de()}),onMounted(()=>{se()}),ne({close:fe}),{state:ae,handleClearTimer:ye,handleStartTimer:$e,triggerCollapse:ve,handleClose:be}}}),_hoisted_1$7=["id"],_hoisted_2$5={key:0,class:"m-message-icons"},_hoisted_3$1=["src"],_hoisted_4$1={class:"m-message-content"},_hoisted_5$1={key:0,class:"m-message--title"},_hoisted_6$1=["innerHTML"],_hoisted_7$1={key:0,class:"m-message--description"},_hoisted_8$1={class:"m-message--control"},_hoisted_9$1=createBaseVNode("svg",{viewBox:"0 0 35 35",width:"20",height:"20",version:"1.1",fill:"currentColor"},[createBaseVNode("path",{d:"M9.4,13.9c-0.2,0.2-0.2,0.6,0,0.8l8.1,8.1l0,0l0,0l8.1-8.1c0.2-0.2,0.2-0.6,0-0.8l-1.3-1.3 c-0.2-0.2-0.6-0.2-0.8,0l-5.5,5.5c-0.2,0.2-0.6,0.2-0.8,0l-5.5-5.5c-0.2-0.2-0.6-0.2-0.8,0L9.4,13.9z"})],-1),_hoisted_10$1=[_hoisted_9$1],_hoisted_11$1=createBaseVNode("svg",{viewBox:"0 0 35 35",width:"20",height:"20",version:"1.1",fill:"currentColor"},[createBaseVNode("path",{d:"M19.5,17.5l5.1,5.1l-2,2l-5.1-5.1l-5.1,5.1l-2-2l5.1-5.1l-5.1-5.1l2-2l5.1,5.1l5.1-5.1l2,2L19.5,17.5z"})],-1),_hoisted_12$1=[_hoisted_11$1];function _sfc_render(ee,ne,oe,ae,ie,se){const de=resolveComponent("icon");return openBlock(),createBlock(Transition,{name:"m-message-fade",appear:"",mode:"in-out",onBeforeLeave:ne[4]||(ne[4]=fe=>ee.$emit("close")),onAfterLeave:ne[5]||(ne[5]=fe=>ee.$emit("destroy"))},{default:withCtx(()=>[ee.state.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["m-message-wrapper",ee.wrapperClassName]),id:ee.id,style:normalizeStyle({width:ee.width})},[createBaseVNode("div",{class:normalizeClass(["m-message",ee.className]),onMouseenter:ne[2]||(ne[2]=(...fe)=>ee.handleClearTimer&&ee.handleClearTimer(...fe)),onMouseleave:ne[3]||(ne[3]=(...fe)=>ee.handleStartTimer&&ee.handleStartTimer(...fe))},[ee.iconURL||ee.type?(openBlock(),createElementBlock("div",_hoisted_2$5,[ee.iconURL?(openBlock(),createElementBlock("img",{key:0,src:ee.iconURL,class:"m-message--icon"},null,8,_hoisted_3$1)):ee.type?(openBlock(),createBlock(de,{key:1,name:ee.type,class:"m-message--icon"},null,8,["name"])):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$1,[ee.title||ee.$slots.title?(openBlock(),createElementBlock("div",_hoisted_5$1,[renderSlot(ee.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ee.title),1)])])):createCommentVNode("",!0),ee.supportHTML&&ee.message?(openBlock(),createElementBlock(Fragment,{key:1},[ee.state.collapsed?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:"m-message--description",innerHTML:ee.message},null,8,_hoisted_6$1))],64)):(openBlock(),createElementBlock(Fragment,{key:2},[ee.state.collapsed?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_7$1,[renderSlot(ee.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ee.message),1)])]))],64))]),createBaseVNode("div",_hoisted_8$1,[ee.collapsable&&(ee.title||ee.$slots.title)?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["m-message--button m-message--arrow-down",{"is-collapsed":ee.state.collapsed}]),onClick:ne[0]||(ne[0]=(...fe)=>ee.triggerCollapse&&ee.triggerCollapse(...fe))},_hoisted_10$1,2)):createCommentVNode("",!0),ee.closable?(openBlock(),createElementBlock("button",{key:1,class:"m-message--button m-message--close",onClick:ne[1]||(ne[1]=(...fe)=>ee.handleClose&&ee.handleClose(...fe))},_hoisted_12$1)):createCommentVNode("",!0)])],34)],14,_hoisted_1$7)):createCommentVNode("",!0)]),_:3})}var MessageComponent=_export_sfc$1(_sfc_main$a,[["render",_sfc_render]]);const instances=[];let seed=0;const containers={};let globalsOptions={};const defaultOptions$1={stopTimerOnHover:!0,duration:3e3},message=ee=>{const ne="m-message-"+seed++,oe=__spreadProps(__spreadValues(__spreadValues(__spreadValues({},defaultOptions$1),globalsOptions),ee),{id:ne});delete oe.hasMask,delete oe.position,delete oe.zIndex;const ae=ee.position||"top-center",ie=ee.hasMask||!1,se=ae+(ie?"-mask":"");let de=containers[se];de?de.count++:(de=containers[se]={el:document.createElement("div"),count:1},de.el.className=["m-message-container","is-"+ae,ie?"has-mask":""].filter(function($e){return!!$e}).join(" "),document.body.appendChild(de.el)),ee.zIndex&&(de.el.style.zIndex=String(ee.zIndex));let fe=null;isVNode$1(ee.message)?(fe={default:()=>ee.message},oe.message=""):typeof ee.message=="function"&&(fe={default:ee.message},oe.message="");const ve=createVNode(MessageComponent,oe,fe),be=document.createElement("div");ve.appContext=ee.ctx||message._context||null,ve.props.onClose=ee.onClose,ve.props.onDestroy=()=>{de.count--,de.count===0&&(delete containers[se],de.el.remove()),render$1(null,be)},render$1(ve,be),ae.indexOf("bottom")===0&&de.el.firstChild?de.el.insertBefore(be.firstElementChild,de.el.firstChild):de.el.appendChild(be.firstElementChild);const ye={id:ne,close(){var $e,we;(we=($e=ve==null?void 0:ve.component)==null?void 0:$e.exposed)==null||we.close()}};return instances.push(ye),ye};message.success=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"success",message:ee}));message.info=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"info",message:ee}));message.warning=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"warning",message:ee}));message.error=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"error",message:ee}));message.loading=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"loading",message:ee}));message.closeAll=function(){for(let ee=instances.length-1;ee>=0;ee--)instances[ee].close()};message.setDefault=ee=>{globalsOptions=__spreadValues({},ee)};const withInstall$1=(ee,ne)=>(ee.install=ne,ee);var index=withInstall$1(message,function(ee,ne={}){message._context=ee._context,ee.config.globalProperties["$"+(ne.name||"mmessage")]=message,ne.defaultOptions&&message.setDefault(ne.defaultOptions)});const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(ee,ne,oe,ae="")=>{const ie=ee.split(":");if(ee.slice(0,1)==="@"){if(ie.length<2||ie.length>3)return null;ae=ie.shift().slice(1)}if(ie.length>3||!ie.length)return null;if(ie.length>1){const fe=ie.pop(),ve=ie.pop(),be={provider:ie.length>0?ie[0]:ae,prefix:ve,name:fe};return ne&&!validateIconName(be)?null:be}const se=ie[0],de=se.split("-");if(de.length>1){const fe={provider:ae,prefix:de.shift(),name:de.join("-")};return ne&&!validateIconName(fe)?null:fe}if(oe&&ae===""){const fe={provider:ae,prefix:"",name:se};return ne&&!validateIconName(fe,oe)?null:fe}return null},validateIconName=(ee,ne)=>ee?!!((ee.provider===""||ee.provider.match(matchIconName))&&(ne&&ee.prefix===""||ee.prefix.match(matchIconName))&&ee.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(ee,ne){const oe={};!ee.hFlip!=!ne.hFlip&&(oe.hFlip=!0),!ee.vFlip!=!ne.vFlip&&(oe.vFlip=!0);const ae=((ee.rotate||0)+(ne.rotate||0))%4;return ae&&(oe.rotate=ae),oe}function mergeIconData(ee,ne){const oe=mergeIconTransformations(ee,ne);for(const ae in defaultExtendedIconProps)ae in defaultIconTransformations?ae in ee&&!(ae in oe)&&(oe[ae]=defaultIconTransformations[ae]):ae in ne?oe[ae]=ne[ae]:ae in ee&&(oe[ae]=ee[ae]);return oe}function getIconsTree(ee,ne){const oe=ee.icons,ae=ee.aliases||Object.create(null),ie=Object.create(null);function se(de){if(oe[de])return ie[de]=[];if(!(de in ie)){ie[de]=null;const fe=ae[de]&&ae[de].parent,ve=fe&&se(fe);ve&&(ie[de]=[fe].concat(ve))}return ie[de]}return Object.keys(oe).concat(Object.keys(ae)).forEach(se),ie}function internalGetIconData(ee,ne,oe){const ae=ee.icons,ie=ee.aliases||Object.create(null);let se={};function de(fe){se=mergeIconData(ae[fe]||ie[fe],se)}return de(ne),oe.forEach(de),mergeIconData(ee,se)}function parseIconSet(ee,ne){const oe=[];if(typeof ee!="object"||typeof ee.icons!="object")return oe;ee.not_found instanceof Array&&ee.not_found.forEach(ie=>{ne(ie,null),oe.push(ie)});const ae=getIconsTree(ee);for(const ie in ae){const se=ae[ie];se&&(ne(ie,internalGetIconData(ee,ie,se)),oe.push(ie))}return oe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(ee,ne){for(const oe in ne)if(oe in ee&&typeof ee[oe]!=typeof ne[oe])return!1;return!0}function quicklyValidateIconSet(ee){if(typeof ee!="object"||ee===null)return null;const ne=ee;if(typeof ne.prefix!="string"||!ee.icons||typeof ee.icons!="object"||!checkOptionalProps(ee,optionalPropertyDefaults))return null;const oe=ne.icons;for(const ie in oe){const se=oe[ie];if(!ie.match(matchIconName)||typeof se.body!="string"||!checkOptionalProps(se,defaultExtendedIconProps))return null}const ae=ne.aliases||Object.create(null);for(const ie in ae){const se=ae[ie],de=se.parent;if(!ie.match(matchIconName)||typeof de!="string"||!oe[de]&&!ae[de]||!checkOptionalProps(se,defaultExtendedIconProps))return null}return ne}const dataStorage=Object.create(null);function newStorage(ee,ne){return{provider:ee,prefix:ne,icons:Object.create(null),missing:new Set}}function getStorage(ee,ne){const oe=dataStorage[ee]||(dataStorage[ee]=Object.create(null));return oe[ne]||(oe[ne]=newStorage(ee,ne))}function addIconSet(ee,ne){return quicklyValidateIconSet(ne)?parseIconSet(ne,(oe,ae)=>{ae?ee.icons[oe]=ae:ee.missing.add(oe)}):[]}function addIconToStorage(ee,ne,oe){try{if(typeof oe.body=="string")return ee.icons[ne]={...oe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(ee){return typeof ee=="boolean"&&(simpleNames=ee),simpleNames}function getIconData(ee){const ne=typeof ee=="string"?stringToIcon(ee,!0,simpleNames):ee;if(ne){const oe=getStorage(ne.provider,ne.prefix),ae=ne.name;return oe.icons[ae]||(oe.missing.has(ae)?null:void 0)}}function addIcon(ee,ne){const oe=stringToIcon(ee,!0,simpleNames);if(!oe)return!1;const ae=getStorage(oe.provider,oe.prefix);return addIconToStorage(ae,oe.name,ne)}function addCollection(ee,ne){if(typeof ee!="object")return!1;if(typeof ne!="string"&&(ne=ee.provider||""),simpleNames&&!ne&&!ee.prefix){let ie=!1;return quicklyValidateIconSet(ee)&&(ee.prefix="",parseIconSet(ee,(se,de)=>{de&&addIcon(se,de)&&(ie=!0)})),ie}const oe=ee.prefix;if(!validateIconName({provider:ne,prefix:oe,name:"a"}))return!1;const ae=getStorage(ne,oe);return!!addIconSet(ae,ee)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(ee,ne,oe){if(ne===1)return ee;if(oe=oe||100,typeof ee=="number")return Math.ceil(ee*ne*oe)/oe;if(typeof ee!="string")return ee;const ae=ee.split(unitsSplit);if(ae===null||!ae.length)return ee;const ie=[];let se=ae.shift(),de=unitsTest.test(se);for(;;){if(de){const fe=parseFloat(se);isNaN(fe)?ie.push(se):ie.push(Math.ceil(fe*ne*oe)/oe)}else ie.push(se);if(se=ae.shift(),se===void 0)return ie.join("");de=!de}}function splitSVGDefs(ee,ne="defs"){let oe="";const ae=ee.indexOf("<"+ne);for(;ae>=0;){const ie=ee.indexOf(">",ae),se=ee.indexOf("",se);if(de===-1)break;oe+=ee.slice(ie+1,se).trim(),ee=ee.slice(0,ae).trim()+ee.slice(de+1)}return{defs:oe,content:ee}}function mergeDefsAndContent(ee,ne){return ee?""+ee+""+ne:ne}function wrapSVGContent(ee,ne,oe){const ae=splitSVGDefs(ee);return mergeDefsAndContent(ae.defs,ne+ae.content+oe)}const isUnsetKeyword=ee=>ee==="unset"||ee==="undefined"||ee==="none";function iconToSVG(ee,ne){const oe={...defaultIconProps,...ee},ae={...defaultIconCustomisations,...ne},ie={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let se=oe.body;[oe,ae].forEach(Ce=>{const Pe=[],Ae=Ce.hFlip,ke=Ce.vFlip;let Ne=Ce.rotate;Ae?ke?Ne+=2:(Pe.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),Pe.push("scale(-1 1)"),ie.top=ie.left=0):ke&&(Pe.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),Pe.push("scale(1 -1)"),ie.top=ie.left=0);let Oe;switch(Ne<0&&(Ne-=Math.floor(Ne/4)*4),Ne=Ne%4,Ne){case 1:Oe=ie.height/2+ie.top,Pe.unshift("rotate(90 "+Oe.toString()+" "+Oe.toString()+")");break;case 2:Pe.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:Oe=ie.width/2+ie.left,Pe.unshift("rotate(-90 "+Oe.toString()+" "+Oe.toString()+")");break}Ne%2===1&&(ie.left!==ie.top&&(Oe=ie.left,ie.left=ie.top,ie.top=Oe),ie.width!==ie.height&&(Oe=ie.width,ie.width=ie.height,ie.height=Oe)),Pe.length&&(se=wrapSVGContent(se,'',""))});const de=ae.width,fe=ae.height,ve=ie.width,be=ie.height;let ye,$e;de===null?($e=fe===null?"1em":fe==="auto"?be:fe,ye=calculateSize($e,ve/be)):(ye=de==="auto"?ve:de,$e=fe===null?calculateSize(ye,be/ve):fe==="auto"?be:fe);const we={},Ee=(Ce,Pe)=>{isUnsetKeyword(Pe)||(we[Ce]=Pe.toString())};Ee("width",ye),Ee("height",$e);const _e=[ie.left,ie.top,ve,be];return we.viewBox=_e.join(" "),{attributes:we,viewBox:_e,body:se}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(ee,ne=randomPrefix){const oe=[];let ae;for(;ae=regex.exec(ee);)oe.push(ae[1]);if(!oe.length)return ee;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(se=>{const de=typeof ne=="function"?ne(se):ne+(counter++).toString(),fe=se.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ee=ee.replace(new RegExp('([#;"])('+fe+')([")]|\\.[a-z])',"g"),"$1"+de+ie+"$3")}),ee=ee.replace(new RegExp(ie,"g"),""),ee}const storage$1=Object.create(null);function setAPIModule(ee,ne){storage$1[ee]=ne}function getAPIModule(ee){return storage$1[ee]||storage$1[""]}function createAPIConfig(ee){let ne;if(typeof ee.resources=="string")ne=[ee.resources];else if(ne=ee.resources,!(ne instanceof Array)||!ne.length)return null;return{resources:ne,path:ee.path||"/",maxURL:ee.maxURL||500,rotate:ee.rotate||750,timeout:ee.timeout||5e3,random:ee.random===!0,index:ee.index||0,dataAfterTimeout:ee.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(ee,ne){const oe=createAPIConfig(ne);return oe===null?!1:(configStorage[ee]=oe,!0)}function getAPIConfig(ee){return configStorage[ee]}const detectFetch=()=>{let ee;try{if(ee=fetch,typeof ee=="function")return ee}catch{}};let fetchModule=detectFetch();function calculateMaxLength(ee,ne){const oe=getAPIConfig(ee);if(!oe)return 0;let ae;if(!oe.maxURL)ae=0;else{let ie=0;oe.resources.forEach(de=>{ie=Math.max(ie,de.length)});const se=ne+".json?icons=";ae=oe.maxURL-ie-oe.path.length-se.length}return ae}function shouldAbort(ee){return ee===404}const prepare=(ee,ne,oe)=>{const ae=[],ie=calculateMaxLength(ee,ne),se="icons";let de={type:se,provider:ee,prefix:ne,icons:[]},fe=0;return oe.forEach((ve,be)=>{fe+=ve.length+1,fe>=ie&&be>0&&(ae.push(de),de={type:se,provider:ee,prefix:ne,icons:[]},fe=ve.length),de.icons.push(ve)}),ae.push(de),ae};function getPath$1(ee){if(typeof ee=="string"){const ne=getAPIConfig(ee);if(ne)return ne.path}return"/"}const send=(ee,ne,oe)=>{if(!fetchModule){oe("abort",424);return}let ae=getPath$1(ne.provider);switch(ne.type){case"icons":{const se=ne.prefix,fe=ne.icons.join(","),ve=new URLSearchParams({icons:fe});ae+=se+".json?"+ve.toString();break}case"custom":{const se=ne.uri;ae+=se.slice(0,1)==="/"?se.slice(1):se;break}default:oe("abort",400);return}let ie=503;fetchModule(ee+ae).then(se=>{const de=se.status;if(de!==200){setTimeout(()=>{oe(shouldAbort(de)?"abort":"next",de)});return}return ie=501,se.json()}).then(se=>{if(typeof se!="object"||se===null){setTimeout(()=>{se===404?oe("abort",se):oe("next",ie)});return}setTimeout(()=>{oe("success",se)})}).catch(()=>{oe("next",ie)})},fetchAPIModule={prepare,send};function sortIcons(ee){const ne={loaded:[],missing:[],pending:[]},oe=Object.create(null);ee.sort((ie,se)=>ie.provider!==se.provider?ie.provider.localeCompare(se.provider):ie.prefix!==se.prefix?ie.prefix.localeCompare(se.prefix):ie.name.localeCompare(se.name));let ae={provider:"",prefix:"",name:""};return ee.forEach(ie=>{if(ae.name===ie.name&&ae.prefix===ie.prefix&&ae.provider===ie.provider)return;ae=ie;const se=ie.provider,de=ie.prefix,fe=ie.name,ve=oe[se]||(oe[se]=Object.create(null)),be=ve[de]||(ve[de]=getStorage(se,de));let ye;fe in be.icons?ye=ne.loaded:de===""||be.missing.has(fe)?ye=ne.missing:ye=ne.pending;const $e={provider:se,prefix:de,name:fe};ye.push($e)}),ne}function removeCallback(ee,ne){ee.forEach(oe=>{const ae=oe.loaderCallbacks;ae&&(oe.loaderCallbacks=ae.filter(ie=>ie.id!==ne))})}function updateCallbacks(ee){ee.pendingCallbacksFlag||(ee.pendingCallbacksFlag=!0,setTimeout(()=>{ee.pendingCallbacksFlag=!1;const ne=ee.loaderCallbacks?ee.loaderCallbacks.slice(0):[];if(!ne.length)return;let oe=!1;const ae=ee.provider,ie=ee.prefix;ne.forEach(se=>{const de=se.icons,fe=de.pending.length;de.pending=de.pending.filter(ve=>{if(ve.prefix!==ie)return!0;const be=ve.name;if(ee.icons[be])de.loaded.push({provider:ae,prefix:ie,name:be});else if(ee.missing.has(be))de.missing.push({provider:ae,prefix:ie,name:be});else return oe=!0,!0;return!1}),de.pending.length!==fe&&(oe||removeCallback([ee],se.id),se.callback(de.loaded.slice(0),de.missing.slice(0),de.pending.slice(0),se.abort))})}))}let idCounter=0;function storeCallback(ee,ne,oe){const ae=idCounter++,ie=removeCallback.bind(null,oe,ae);if(!ne.pending.length)return ie;const se={id:ae,icons:ne,callback:ee,abort:ie};return oe.forEach(de=>{(de.loaderCallbacks||(de.loaderCallbacks=[])).push(se)}),ie}function listToIcons(ee,ne=!0,oe=!1){const ae=[];return ee.forEach(ie=>{const se=typeof ie=="string"?stringToIcon(ie,ne,oe):ie;se&&ae.push(se)}),ae}var defaultConfig$1={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(ee,ne,oe,ae){const ie=ee.resources.length,se=ee.random?Math.floor(Math.random()*ie):ee.index;let de;if(ee.random){let Be=ee.resources.slice(0);for(de=[];Be.length>1;){const Me=Math.floor(Math.random()*Be.length);de.push(Be[Me]),Be=Be.slice(0,Me).concat(Be.slice(Me+1))}de=de.concat(Be)}else de=ee.resources.slice(se).concat(ee.resources.slice(0,se));const fe=Date.now();let ve="pending",be=0,ye,$e=null,we=[],Ee=[];typeof ae=="function"&&Ee.push(ae);function _e(){$e&&(clearTimeout($e),$e=null)}function Ce(){ve==="pending"&&(ve="aborted"),_e(),we.forEach(Be=>{Be.status==="pending"&&(Be.status="aborted")}),we=[]}function Pe(Be,Me){Me&&(Ee=[]),typeof Be=="function"&&Ee.push(Be)}function Ae(){return{startTime:fe,payload:ne,status:ve,queriesSent:be,queriesPending:we.length,subscribe:Pe,abort:Ce}}function ke(){ve="failed",Ee.forEach(Be=>{Be(void 0,ye)})}function Ne(){we.forEach(Be=>{Be.status==="pending"&&(Be.status="aborted")}),we=[]}function Oe(Be,Me,Le){const Xe=Me!=="success";switch(we=we.filter(Ke=>Ke!==Be),ve){case"pending":break;case"failed":if(Xe||!ee.dataAfterTimeout)return;break;default:return}if(Me==="abort"){ye=Le,ke();return}if(Xe){ye=Le,we.length||(de.length?Re():ke());return}if(_e(),Ne(),!ee.random){const Ke=ee.resources.indexOf(Be.resource);Ke!==-1&&Ke!==ee.index&&(ee.index=Ke)}ve="completed",Ee.forEach(Ke=>{Ke(Le)})}function Re(){if(ve!=="pending")return;_e();const Be=de.shift();if(Be===void 0){if(we.length){$e=setTimeout(()=>{_e(),ve==="pending"&&(Ne(),ke())},ee.timeout);return}ke();return}const Me={status:"pending",resource:Be,callback:(Le,Xe)=>{Oe(Me,Le,Xe)}};we.push(Me),be++,$e=setTimeout(Re,ee.rotate),oe(Be,ne,Me.callback)}return setTimeout(Re),Ae}function initRedundancy(ee){const ne={...defaultConfig$1,...ee};let oe=[];function ae(){oe=oe.filter(fe=>fe().status==="pending")}function ie(fe,ve,be){const ye=sendQuery(ne,fe,ve,($e,we)=>{ae(),be&&be($e,we)});return oe.push(ye),ye}function se(fe){return oe.find(ve=>fe(ve))||null}return{query:ie,find:se,setIndex:fe=>{ne.index=fe},getIndex:()=>ne.index,cleanup:ae}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(ee){if(!redundancyCache[ee]){const ne=getAPIConfig(ee);if(!ne)return;const oe=initRedundancy(ne),ae={config:ne,redundancy:oe};redundancyCache[ee]=ae}return redundancyCache[ee]}function sendAPIQuery(ee,ne,oe){let ae,ie;if(typeof ee=="string"){const se=getAPIModule(ee);if(!se)return oe(void 0,424),emptyCallback$1;ie=se.send;const de=getRedundancyCache(ee);de&&(ae=de.redundancy)}else{const se=createAPIConfig(ee);if(se){ae=initRedundancy(se);const de=ee.resources?ee.resources[0]:"",fe=getAPIModule(de);fe&&(ie=fe.send)}}return!ae||!ie?(oe(void 0,424),emptyCallback$1):ae.query(ne,ie,oe)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168,browserStorageLimit=50;function getStoredItem(ee,ne){try{return ee.getItem(ne)}catch{}}function setStoredItem(ee,ne,oe){try{return ee.setItem(ne,oe),!0}catch{}}function removeStoredItem(ee,ne){try{ee.removeItem(ne)}catch{}}function setBrowserStorageItemsCount(ee,ne){return setStoredItem(ee,browserCacheCountKey,ne.toString())}function getBrowserStorageItemsCount(ee){return parseInt(getStoredItem(ee,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(ee){browserStorageStatus=ee}let _window=typeof window>"u"?{}:window;function getBrowserStorage(ee){const ne=ee+"Storage";try{if(_window&&_window[ne]&&typeof _window[ne].length=="number")return _window[ne]}catch{}browserStorageConfig[ee]=!1}function iterateBrowserStorage(ee,ne){const oe=getBrowserStorage(ee);if(!oe)return;const ae=getStoredItem(oe,browserCacheVersionKey);if(ae!==browserCacheVersion){if(ae){const fe=getBrowserStorageItemsCount(oe);for(let ve=0;ve{const ve=browserCachePrefix+fe.toString(),be=getStoredItem(oe,ve);if(typeof be=="string"){try{const ye=JSON.parse(be);if(typeof ye=="object"&&typeof ye.cached=="number"&&ye.cached>ie&&typeof ye.provider=="string"&&typeof ye.data=="object"&&typeof ye.data.prefix=="string"&&ne(ye,fe))return!0}catch{}removeStoredItem(oe,ve)}};let de=getBrowserStorageItemsCount(oe);for(let fe=de-1;fe>=0;fe--)se(fe)||(fe===de-1?(de--,setBrowserStorageItemsCount(oe,de)):browserStorageEmptyItems[ee].add(fe))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const ee in browserStorageConfig)iterateBrowserStorage(ee,ne=>{const oe=ne.data,ae=ne.provider,ie=oe.prefix,se=getStorage(ae,ie);if(!addIconSet(se,oe).length)return!1;const de=oe.lastModified||-1;return se.lastModifiedCached=se.lastModifiedCached?Math.min(se.lastModifiedCached,de):de,!0})}}function updateLastModified(ee,ne){const oe=ee.lastModifiedCached;if(oe&&oe>=ne)return oe===ne;if(ee.lastModifiedCached=ne,oe)for(const ae in browserStorageConfig)iterateBrowserStorage(ae,ie=>{const se=ie.data;return ie.provider!==ee.provider||se.prefix!==ee.prefix||se.lastModified===ne});return!0}function storeInBrowserStorage(ee,ne){browserStorageStatus||initBrowserStorage();function oe(ae){let ie;if(!browserStorageConfig[ae]||!(ie=getBrowserStorage(ae)))return;const se=browserStorageEmptyItems[ae];let de;if(se.size)se.delete(de=Array.from(se).shift());else if(de=getBrowserStorageItemsCount(ie),de>=browserStorageLimit||!setBrowserStorageItemsCount(ie,de+1))return;const fe={cached:Math.floor(Date.now()/browserStorageHour),provider:ee.provider,data:ne};return setStoredItem(ie,browserCachePrefix+de.toString(),JSON.stringify(fe))}ne.lastModified&&!updateLastModified(ee,ne.lastModified)||Object.keys(ne.icons).length&&(ne.not_found&&(ne=Object.assign({},ne),delete ne.not_found),oe("local")||oe("session"))}function emptyCallback(){}function loadedNewIcons(ee){ee.iconsLoaderFlag||(ee.iconsLoaderFlag=!0,setTimeout(()=>{ee.iconsLoaderFlag=!1,updateCallbacks(ee)}))}function loadNewIcons(ee,ne){ee.iconsToLoad?ee.iconsToLoad=ee.iconsToLoad.concat(ne).sort():ee.iconsToLoad=ne,ee.iconsQueueFlag||(ee.iconsQueueFlag=!0,setTimeout(()=>{ee.iconsQueueFlag=!1;const{provider:oe,prefix:ae}=ee,ie=ee.iconsToLoad;delete ee.iconsToLoad;let se;if(!ie||!(se=getAPIModule(oe)))return;se.prepare(oe,ae,ie).forEach(fe=>{sendAPIQuery(oe,fe,ve=>{if(typeof ve!="object")fe.icons.forEach(be=>{ee.missing.add(be)});else try{const be=addIconSet(ee,ve);if(!be.length)return;const ye=ee.pendingIcons;ye&&be.forEach($e=>{ye.delete($e)}),storeInBrowserStorage(ee,ve)}catch(be){console.error(be)}loadedNewIcons(ee)})})}))}const loadIcons=(ee,ne)=>{const oe=listToIcons(ee,!0,allowSimpleNames()),ae=sortIcons(oe);if(!ae.pending.length){let ve=!0;return ne&&setTimeout(()=>{ve&&ne(ae.loaded,ae.missing,ae.pending,emptyCallback)}),()=>{ve=!1}}const ie=Object.create(null),se=[];let de,fe;return ae.pending.forEach(ve=>{const{provider:be,prefix:ye}=ve;if(ye===fe&&be===de)return;de=be,fe=ye,se.push(getStorage(be,ye));const $e=ie[be]||(ie[be]=Object.create(null));$e[ye]||($e[ye]=[])}),ae.pending.forEach(ve=>{const{provider:be,prefix:ye,name:$e}=ve,we=getStorage(be,ye),Ee=we.pendingIcons||(we.pendingIcons=new Set);Ee.has($e)||(Ee.add($e),ie[be][ye].push($e))}),se.forEach(ve=>{const{provider:be,prefix:ye}=ve;ie[be][ye].length&&loadNewIcons(ve,ie[be][ye])}),ne?storeCallback(ne,ae,se):emptyCallback};function mergeCustomisations(ee,ne){const oe={...ee};for(const ae in ne){const ie=ne[ae],se=typeof ie;ae in defaultIconSizeCustomisations?(ie===null||ie&&(se==="string"||se==="number"))&&(oe[ae]=ie):se===typeof oe[ae]&&(oe[ae]=ae==="rotate"?ie%4:ie)}return oe}const separator=/[\s,]+/;function flipFromString(ee,ne){ne.split(separator).forEach(oe=>{switch(oe.trim()){case"horizontal":ee.hFlip=!0;break;case"vertical":ee.vFlip=!0;break}})}function rotateFromString(ee,ne=0){const oe=ee.replace(/^-?[0-9.]*/,"");function ae(ie){for(;ie<0;)ie+=4;return ie%4}if(oe===""){const ie=parseInt(ee);return isNaN(ie)?0:ae(ie)}else if(oe!==ee){let ie=0;switch(oe){case"%":ie=25;break;case"deg":ie=90}if(ie){let se=parseFloat(ee.slice(0,ee.length-oe.length));return isNaN(se)?0:(se=se/ie,se%1===0?ae(se):0)}}return ne}function iconToHTML(ee,ne){let oe=ee.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in ne)oe+=" "+ae+'="'+ne[ae]+'"';return'"+ee+""}function encodeSVGforURL(ee){return ee.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(ee){return"data:image/svg+xml,"+encodeSVGforURL(ee)}function svgToURL(ee){return'url("'+svgToData(ee)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const ee in propsToAddTo){const ne=propsToAddTo[ee];for(const oe in propsToAdd)ne[ee+oe]=propsToAdd[oe]}const customisationAliases={};["horizontal","vertical"].forEach(ee=>{const ne=ee.slice(0,1)+"Flip";customisationAliases[ee+"-flip"]=ne,customisationAliases[ee.slice(0,1)+"-flip"]=ne,customisationAliases[ee+"Flip"]=ne});function fixSize(ee){return ee+(ee.match(/^[-0-9.]+$/)?"px":"")}const render=(ee,ne)=>{const oe=mergeCustomisations(defaultExtendedIconCustomisations,ne),ae={...svgDefaults},ie=ne.mode||"svg",se={},de=ne.style,fe=typeof de=="object"&&!(de instanceof Array)?de:{};for(let Ce in ne){const Pe=ne[Ce];if(Pe!==void 0)switch(Ce){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[Ce]=Pe===!0||Pe==="true"||Pe===1;break;case"flip":typeof Pe=="string"&&flipFromString(oe,Pe);break;case"color":se.color=Pe;break;case"rotate":typeof Pe=="string"?oe[Ce]=rotateFromString(Pe):typeof Pe=="number"&&(oe[Ce]=Pe);break;case"ariaHidden":case"aria-hidden":Pe!==!0&&Pe!=="true"&&delete ae["aria-hidden"];break;default:{const Ae=customisationAliases[Ce];Ae?(Pe===!0||Pe==="true"||Pe===1)&&(oe[Ae]=!0):defaultExtendedIconCustomisations[Ce]===void 0&&(ae[Ce]=Pe)}}}const ve=iconToSVG(ee,oe),be=ve.attributes;if(oe.inline&&(se.verticalAlign="-0.125em"),ie==="svg"){ae.style={...se,...fe},Object.assign(ae,be);let Ce=0,Pe=ne.id;return typeof Pe=="string"&&(Pe=Pe.replace(/-/g,"_")),ae.innerHTML=replaceIDs(ve.body,Pe?()=>Pe+"ID"+Ce++:"iconifyVue"),h$2("svg",ae)}const{body:ye,width:$e,height:we}=ee,Ee=ie==="mask"||(ie==="bg"?!1:ye.indexOf("currentColor")!==-1),_e=iconToHTML(ye,{...be,width:$e+"",height:we+""});return ae.style={...se,"--svg":svgToURL(_e),width:fixSize(be.width),height:fixSize(be.height),...commonProps,...Ee?monotoneProps:coloredProps,...fe},h$2("span",ae)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const ee=window;if(ee.IconifyPreload!==void 0){const ne=ee.IconifyPreload,oe="Invalid IconifyPreload syntax.";typeof ne=="object"&&ne!==null&&(ne instanceof Array?ne:[ne]).forEach(ae=>{try{(typeof ae!="object"||ae===null||ae instanceof Array||typeof ae.icons!="object"||typeof ae.prefix!="string"||!addCollection(ae))&&console.error(oe)}catch{console.error(oe)}})}if(ee.IconifyProviders!==void 0){const ne=ee.IconifyProviders;if(typeof ne=="object"&&ne!==null)for(let oe in ne){const ae="IconifyProviders["+oe+"] is invalid.";try{const ie=ne[oe];if(typeof ie!="object"||!ie||ie.resources===void 0)continue;addAPIProvider(oe,ie)||console.error(ae)}catch{console.error(ae)}}}}const emptyIcon={...defaultIconProps,body:""},Icon$1=defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(ee,ne){if(typeof ee=="object"&&ee!==null&&typeof ee.body=="string")return this._name="",this.abortLoading(),{data:ee};let oe;if(typeof ee!="string"||(oe=stringToIcon(ee,!1,!0))===null)return this.abortLoading(),null;const ae=getIconData(oe);if(!ae)return(!this._loadingIcon||this._loadingIcon.name!==ee)&&(this.abortLoading(),this._name="",ae!==null&&(this._loadingIcon={name:ee,abort:loadIcons([oe],()=>{this.counter++})})),null;this.abortLoading(),this._name!==ee&&(this._name=ee,ne&&ne(ee));const ie=["iconify"];return oe.prefix!==""&&ie.push("iconify--"+oe.prefix),oe.provider!==""&&ie.push("iconify--"+oe.provider),{data:ae,classes:ie}}},render(){this.counter;const ee=this.$attrs,ne=this.iconMounted||ee.ssr?this.getIcon(ee.icon,ee.onLoad):null;if(!ne)return render(emptyIcon,ee);let oe=ee;return ne.classes&&(oe={...ee,class:(typeof ee.class=="string"?ee.class+" ":"")+ne.classes.join(" ")}),render({...defaultIconProps,...ne.data},oe)}});var isVue2=!1;function tryOnScopeDispose(ee){return getCurrentScope()?(onScopeDispose(ee),!0):!1}function toValue(ee){return typeof ee=="function"?ee():unref(ee)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$1=Object.prototype.toString,isObject$7=ee=>toString$1.call(ee)==="[object Object]",noop$5=()=>{},isIOS$2=getIsIOS();function getIsIOS(){var ee,ne;return isClient&&((ee=window==null?void 0:window.navigator)==null?void 0:ee.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((ne=window==null?void 0:window.navigator)==null?void 0:ne.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function promiseTimeout(ee,ne=!1,oe="Timeout"){return new Promise((ae,ie)=>{setTimeout(ne?()=>ie(oe):ae,ee)})}function createSingletonPromise(ee){let ne;function oe(){return ne||(ne=ee()),ne}return oe.reset=async()=>{const ae=ne;ne=void 0,ae&&await ae},oe}function getLifeCycleTarget(ee){return getCurrentInstance()}function toRef(...ee){if(ee.length!==1)return toRef$1(...ee);const ne=ee[0];return typeof ne=="function"?readonly(customRef(()=>({get:ne,set:noop$5}))):ref(ne)}function tryOnMounted(ee,ne=!0,oe){getLifeCycleTarget()?onMounted(ee,oe):ne?ee():nextTick(ee)}function createUntil(ee,ne=!1){function oe($e,{flush:we="sync",deep:Ee=!1,timeout:_e,throwOnTimeout:Ce}={}){let Pe=null;const ke=[new Promise(Ne=>{Pe=watch(ee,Oe=>{$e(Oe)!==ne&&(Pe?Pe():nextTick(()=>Pe==null?void 0:Pe()),Ne(Oe))},{flush:we,deep:Ee,immediate:!0})})];return _e!=null&&ke.push(promiseTimeout(_e,Ce).then(()=>toValue(ee)).finally(()=>Pe==null?void 0:Pe())),Promise.race(ke)}function ae($e,we){if(!isRef($e))return oe(Oe=>Oe===$e,we);const{flush:Ee="sync",deep:_e=!1,timeout:Ce,throwOnTimeout:Pe}=we??{};let Ae=null;const Ne=[new Promise(Oe=>{Ae=watch([ee,$e],([Re,Be])=>{ne!==(Re===Be)&&(Ae?Ae():nextTick(()=>Ae==null?void 0:Ae()),Oe(Re))},{flush:Ee,deep:_e,immediate:!0})})];return Ce!=null&&Ne.push(promiseTimeout(Ce,Pe).then(()=>toValue(ee)).finally(()=>(Ae==null||Ae(),toValue(ee)))),Promise.race(Ne)}function ie($e){return oe(we=>!!we,$e)}function se($e){return ae(null,$e)}function de($e){return ae(void 0,$e)}function fe($e){return oe(Number.isNaN,$e)}function ve($e,we){return oe(Ee=>{const _e=Array.from(Ee);return _e.includes($e)||_e.includes(toValue($e))},we)}function be($e){return ye(1,$e)}function ye($e=1,we){let Ee=-1;return oe(()=>(Ee+=1,Ee>=$e),we)}return Array.isArray(toValue(ee))?{toMatch:oe,toContains:ve,changed:be,changedTimes:ye,get not(){return createUntil(ee,!ne)}}:{toMatch:oe,toBe:ae,toBeTruthy:ie,toBeNull:se,toBeNaN:fe,toBeUndefined:de,changed:be,changedTimes:ye,get not(){return createUntil(ee,!ne)}}}function until(ee){return createUntil(ee)}function useTimeoutFn(ee,ne,oe={}){const{immediate:ae=!0}=oe,ie=ref(!1);let se=null;function de(){se&&(clearTimeout(se),se=null)}function fe(){ie.value=!1,de()}function ve(...be){de(),ie.value=!0,se=setTimeout(()=>{ie.value=!1,se=null,ee(...be)},toValue(ne))}return ae&&(ie.value=!0,isClient&&ve()),tryOnScopeDispose(fe),{isPending:readonly(ie),start:ve,stop:fe}}const defaultWindow$1=isClient?window:void 0,defaultNavigator=isClient?window.navigator:void 0;function unrefElement$1(ee){var ne;const oe=toValue(ee);return(ne=oe==null?void 0:oe.$el)!=null?ne:oe}function useEventListener$2(...ee){let ne,oe,ae,ie;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([oe,ae,ie]=ee,ne=defaultWindow$1):[ne,oe,ae,ie]=ee,!ne)return noop$5;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const se=[],de=()=>{se.forEach(ye=>ye()),se.length=0},fe=(ye,$e,we,Ee)=>(ye.addEventListener($e,we,Ee),()=>ye.removeEventListener($e,we,Ee)),ve=watch(()=>[unrefElement$1(ne),toValue(ie)],([ye,$e])=>{if(de(),!ye)return;const we=isObject$7($e)?{...$e}:$e;se.push(...oe.flatMap(Ee=>ae.map(_e=>fe(ye,Ee,_e,we))))},{immediate:!0,flush:"post"}),be=()=>{ve(),de()};return tryOnScopeDispose(be),be}function useMounted(){const ee=ref(!1),ne=getCurrentInstance();return ne&&onMounted(()=>{ee.value=!0},ne),ee}function useSupported(ee){const ne=useMounted();return computed(()=>(ne.value,!!ee()))}function usePermission(ee,ne={}){const{controls:oe=!1,navigator:ae=defaultNavigator}=ne,ie=useSupported(()=>ae&&"permissions"in ae),se=shallowRef(),de=typeof ee=="string"?{name:ee}:ee,fe=shallowRef(),ve=()=>{var ye,$e;fe.value=($e=(ye=se.value)==null?void 0:ye.state)!=null?$e:"prompt"};useEventListener$2(se,"change",ve);const be=createSingletonPromise(async()=>{if(ie.value){if(!se.value)try{se.value=await ae.permissions.query(de)}catch{se.value=void 0}finally{ve()}if(oe)return toRaw(se.value)}});return be(),oe?{state:fe,isSupported:ie,query:be}:fe}function useClipboard(ee={}){const{navigator:ne=defaultNavigator,read:oe=!1,source:ae,copiedDuring:ie=1500,legacy:se=!1}=ee,de=useSupported(()=>ne&&"clipboard"in ne),fe=usePermission("clipboard-read"),ve=usePermission("clipboard-write"),be=computed(()=>de.value||se),ye=ref(""),$e=ref(!1),we=useTimeoutFn(()=>$e.value=!1,ie);function Ee(){de.value&&Ae(fe.value)?ne.clipboard.readText().then(ke=>{ye.value=ke}):ye.value=Pe()}be.value&&oe&&useEventListener$2(["copy","cut"],Ee);async function _e(ke=toValue(ae)){be.value&&ke!=null&&(de.value&&Ae(ve.value)?await ne.clipboard.writeText(ke):Ce(ke),ye.value=ke,$e.value=!0,we.start())}function Ce(ke){const Ne=document.createElement("textarea");Ne.value=ke??"",Ne.style.position="absolute",Ne.style.opacity="0",document.body.appendChild(Ne),Ne.select(),document.execCommand("copy"),Ne.remove()}function Pe(){var ke,Ne,Oe;return(Oe=(Ne=(ke=document==null?void 0:document.getSelection)==null?void 0:ke.call(document))==null?void 0:Ne.toString())!=null?Oe:""}function Ae(ke){return ke==="granted"||ke==="prompt"}return{isSupported:be,text:ye,copied:$e,copy:_e}}function useResizeObserver(ee,ne,oe={}){const{window:ae=defaultWindow$1,...ie}=oe;let se;const de=useSupported(()=>ae&&"ResizeObserver"in ae),fe=()=>{se&&(se.disconnect(),se=void 0)},ve=computed(()=>{const $e=toValue(ee);return Array.isArray($e)?$e.map(we=>unrefElement$1(we)):[unrefElement$1($e)]}),be=watch(ve,$e=>{if(fe(),de.value&&ae){se=new ResizeObserver(ne);for(const we of $e)we&&se.observe(we,ie)}},{immediate:!0,flush:"post"}),ye=()=>{fe(),be()};return tryOnScopeDispose(ye),{isSupported:de,stop:ye}}function useElementSize(ee,ne={width:0,height:0},oe={}){const{window:ae=defaultWindow$1,box:ie="content-box"}=oe,se=computed(()=>{var $e,we;return(we=($e=unrefElement$1(ee))==null?void 0:$e.namespaceURI)==null?void 0:we.includes("svg")}),de=ref(ne.width),fe=ref(ne.height),{stop:ve}=useResizeObserver(ee,([$e])=>{const we=ie==="border-box"?$e.borderBoxSize:ie==="content-box"?$e.contentBoxSize:$e.devicePixelContentBoxSize;if(ae&&se.value){const Ee=unrefElement$1(ee);if(Ee){const _e=Ee.getBoundingClientRect();de.value=_e.width,fe.value=_e.height}}else if(we){const Ee=Array.isArray(we)?we:[we];de.value=Ee.reduce((_e,{inlineSize:Ce})=>_e+Ce,0),fe.value=Ee.reduce((_e,{blockSize:Ce})=>_e+Ce,0)}else de.value=$e.contentRect.width,fe.value=$e.contentRect.height},oe);tryOnMounted(()=>{const $e=unrefElement$1(ee);$e&&(de.value="offsetWidth"in $e?$e.offsetWidth:ne.width,fe.value="offsetHeight"in $e?$e.offsetHeight:ne.height)});const be=watch(()=>unrefElement$1(ee),$e=>{de.value=$e?ne.width:0,fe.value=$e?ne.height:0});function ye(){ve(),be()}return{width:de,height:fe,stop:ye}}const defaultWindow=isClient?window:void 0;function unrefElement(ee){var ne;const oe=toValue(ee);return(ne=oe==null?void 0:oe.$el)!=null?ne:oe}function useEventListener$1(...ee){let ne,oe,ae,ie;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([oe,ae,ie]=ee,ne=defaultWindow):[ne,oe,ae,ie]=ee,!ne)return noop$5;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const se=[],de=()=>{se.forEach(ye=>ye()),se.length=0},fe=(ye,$e,we,Ee)=>(ye.addEventListener($e,we,Ee),()=>ye.removeEventListener($e,we,Ee)),ve=watch(()=>[unrefElement(ne),toValue(ie)],([ye,$e])=>{if(de(),!ye)return;const we=isObject$7($e)?{...$e}:$e;se.push(...oe.flatMap(Ee=>ae.map(_e=>fe(ye,Ee,_e,we))))},{immediate:!0,flush:"post"}),be=()=>{ve(),de()};return tryOnScopeDispose(be),be}function useAsyncState(ee,ne,oe){const{immediate:ae=!0,delay:ie=0,onError:se=noop$5,onSuccess:de=noop$5,resetOnExecute:fe=!0,shallow:ve=!0,throwError:be}=oe??{},ye=ve?shallowRef(ne):ref(ne),$e=ref(!1),we=ref(!1),Ee=shallowRef(void 0);async function _e(Ae=0,...ke){fe&&(ye.value=ne),Ee.value=void 0,$e.value=!1,we.value=!0,Ae>0&&await promiseTimeout(Ae);const Ne=typeof ee=="function"?ee(...ke):ee;try{const Oe=await Ne;ye.value=Oe,$e.value=!0,de(Oe)}catch(Oe){if(Ee.value=Oe,se(Oe),be)throw Oe}finally{we.value=!1}return ye.value}ae&&_e(ie);const Ce={state:ye,isReady:$e,isLoading:we,error:Ee,execute:_e};function Pe(){return new Promise((Ae,ke)=>{until(we).toBe(!1).then(()=>Ae(Ce)).catch(ke)})}return{...Ce,then(Ae,ke){return Pe().then(Ae,ke)}}}async function loadImage$1(ee){return new Promise((ne,oe)=>{const ae=new Image,{src:ie,srcset:se,sizes:de,class:fe,loading:ve,crossorigin:be,referrerPolicy:ye}=ee;ae.src=ie,se&&(ae.srcset=se),de&&(ae.sizes=de),fe&&(ae.className=fe),ve&&(ae.loading=ve),be&&(ae.crossOrigin=be),ye&&(ae.referrerPolicy=ye),ae.onload=()=>ne(ae),ae.onerror=oe})}function useImage(ee,ne={}){const oe=useAsyncState(()=>loadImage$1(toValue(ee)),void 0,{resetOnExecute:!0,...ne});return watch(()=>toValue(ee),()=>oe.execute(ne.delay),{deep:!0}),oe}const UseImage=defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(ee,{slots:ne}){const oe=reactive(useImage(ee));return()=>oe.isLoading&&ne.loading?ne.loading(oe):oe.error&&ne.error?ne.error(oe.error):ne.default?ne.default(oe):h$2(ee.as||"img",ee)}});function resolveElement(ee){return typeof Window<"u"&&ee instanceof Window?ee.document.documentElement:typeof Document<"u"&&ee instanceof Document?ee.documentElement:ee}function checkOverflowScroll(ee){const ne=window.getComputedStyle(ee);if(ne.overflowX==="scroll"||ne.overflowY==="scroll"||ne.overflowX==="auto"&&ee.clientWidth1?!0:(ne.preventDefault&&ne.preventDefault(),!1)}const elInitialOverflow=new WeakMap;function useScrollLock(ee,ne=!1){const oe=ref(ne);let ae=null,ie="";watch(toRef(ee),fe=>{const ve=resolveElement(toValue(fe));if(ve){const be=ve;if(elInitialOverflow.get(be)||elInitialOverflow.set(be,be.style.overflow),be.style.overflow!=="hidden"&&(ie=be.style.overflow),be.style.overflow==="hidden")return oe.value=!0;if(oe.value)return be.style.overflow="hidden"}},{immediate:!0});const se=()=>{const fe=resolveElement(toValue(ee));!fe||oe.value||(isIOS$2&&(ae=useEventListener$1(fe,"touchmove",ve=>{preventDefault$2(ve)},{passive:!1})),fe.style.overflow="hidden",oe.value=!0)},de=()=>{const fe=resolveElement(toValue(ee));!fe||!oe.value||(isIOS$2&&(ae==null||ae()),fe.style.overflow=ie,elInitialOverflow.delete(fe),oe.value=!1)};return tryOnScopeDispose(de),computed({get(){return oe.value},set(fe){fe?se():de()}})}function onScrollLock(){let ee=!1;const ne=ref(!1);return(oe,ae)=>{if(ne.value=ae.value,ee)return;ee=!0;const ie=useScrollLock(oe,ae.value);watch(ne,se=>ie.value=se)}}onScrollLock();const _hoisted_1$6={key:2,class:"h-[1em] w-[1em]","aria-hidden":"true"},_hoisted_2$4=["xlink:href"],_sfc_main$9=defineComponent({name:"SvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{}},setup(ee){const ne=ee,oe=computed(()=>{const ie=se=>/^\.{1,2}\//.test(se)||se.startsWith("/")||se.includes("/");return/^https?:\/\//.test(ne.name)||ie(ne.name)||!ne.name?"img":/i-[^:]+:[^:]+/.test(ne.name)?"unocss":ne.name.includes(":")?"iconify":"svg"}),ae=computed(()=>{const ie=[];if(ne.flip)switch(ne.flip){case"horizontal":ie.push("rotateY(180deg)");break;case"vertical":ie.push("rotateX(180deg)");break;case"both":ie.push("rotateX(180deg)"),ie.push("rotateY(180deg)");break}return ne.rotate&&ie.push(`rotate(${ne.rotate%360}deg)`),{...ne.color&&{color:ne.color},...ne.size&&{fontSize:typeof ne.size=="number"?`${ne.size}px`:ne.size},...ie.length&&{transform:ie.join(" ")}}});return(ie,se)=>(openBlock(),createElementBlock("i",{class:"relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em]",style:normalizeStyle(unref(ae))},[unref(oe)==="unocss"?(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(["h-[1em] w-[1em]",ie.name])},null,2)):unref(oe)==="iconify"?(openBlock(),createBlock(unref(Icon$1),{key:1,icon:ie.name},null,8,["icon"])):unref(oe)==="svg"?(openBlock(),createElementBlock("svg",_hoisted_1$6,[createBaseVNode("use",{"xlink:href":`#icon-${ie.name}`},null,8,_hoisted_2$4)])):unref(oe)==="img"?(openBlock(),createBlock(unref(UseImage),{key:3,src:ie.name,class:"h-[1em] w-[1em]"},{loading:withCtx(()=>se[0]||(se[0]=[createBaseVNode("i",{class:"i-line-md:loading-loop h-[1em] w-[1em]"},null,-1)])),error:withCtx(()=>se[1]||(se[1]=[createBaseVNode("i",{class:"i-tdesign:image-error h-[1em] w-[1em]"},null,-1)])),_:1},8,["src"])):createCommentVNode("",!0)],4))}});function d$7(ee,ne,oe){let ae=ref(oe==null?void 0:oe.value),ie=computed(()=>ee.value!==void 0);return[computed(()=>ie.value?ee.value:ae.value),function(se){return ie.value||(ae.value=se),ne==null?void 0:ne(se)}]}function t$r(ee){typeof queueMicrotask=="function"?queueMicrotask(ee):Promise.resolve().then(ee).catch(ne=>setTimeout(()=>{throw ne}))}function o$4(){let ee=[],ne={addEventListener(oe,ae,ie,se){return oe.addEventListener(ae,ie,se),ne.add(()=>oe.removeEventListener(ae,ie,se))},requestAnimationFrame(...oe){let ae=requestAnimationFrame(...oe);ne.add(()=>cancelAnimationFrame(ae))},nextFrame(...oe){ne.requestAnimationFrame(()=>{ne.requestAnimationFrame(...oe)})},setTimeout(...oe){let ae=setTimeout(...oe);ne.add(()=>clearTimeout(ae))},microTask(...oe){let ae={current:!0};return t$r(()=>{ae.current&&oe[0]()}),ne.add(()=>{ae.current=!1})},style(oe,ae,ie){let se=oe.style.getPropertyValue(ae);return Object.assign(oe.style,{[ae]:ie}),this.add(()=>{Object.assign(oe.style,{[ae]:se})})},group(oe){let ae=o$4();return oe(ae),this.add(()=>ae.dispose())},add(oe){return ee.push(oe),()=>{let ae=ee.indexOf(oe);if(ae>=0)for(let ie of ee.splice(ae,1))ie()}},dispose(){for(let oe of ee.splice(0))oe()}};return ne}var r$2;let n$5=Symbol("headlessui.useid"),o$3=0;const i$6=(r$2=useId$1)!=null?r$2:function(){return inject(n$5,()=>`${++o$3}`)()};function o$2(ee){var ne;if(ee==null||ee.value==null)return null;let oe=(ne=ee.value.$el)!=null?ne:ee.value;return oe instanceof Node?oe:null}function u$6(ee,ne,...oe){if(ee in ne){let ie=ne[ee];return typeof ie=="function"?ie(...oe):ie}let ae=new Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(ne).map(ie=>`"${ie}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(ae,u$6),ae}var i$5=Object.defineProperty,d$6=(ee,ne,oe)=>ne in ee?i$5(ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[ne]=oe,n$4=(ee,ne,oe)=>(d$6(ee,typeof ne!="symbol"?ne+"":ne,oe),oe);let s$5=class{constructor(){n$4(this,"current",this.detect()),n$4(this,"currentId",0)}set(ne){this.current!==ne&&(this.currentId=0,this.current=ne)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},c$3=new s$5;function i$4(ee){if(c$3.isServer)return null;if(ee instanceof Node)return ee.ownerDocument;if(ee!=null&&ee.hasOwnProperty("value")){let ne=o$2(ee);if(ne)return ne.ownerDocument}return document}let c$2=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var N$5=(ee=>(ee[ee.First=1]="First",ee[ee.Previous=2]="Previous",ee[ee.Next=4]="Next",ee[ee.Last=8]="Last",ee[ee.WrapAround=16]="WrapAround",ee[ee.NoScroll=32]="NoScroll",ee))(N$5||{}),T$3=(ee=>(ee[ee.Error=0]="Error",ee[ee.Overflow=1]="Overflow",ee[ee.Success=2]="Success",ee[ee.Underflow=3]="Underflow",ee))(T$3||{}),F$2=(ee=>(ee[ee.Previous=-1]="Previous",ee[ee.Next=1]="Next",ee))(F$2||{});function E$4(ee=document.body){return ee==null?[]:Array.from(ee.querySelectorAll(c$2)).sort((ne,oe)=>Math.sign((ne.tabIndex||Number.MAX_SAFE_INTEGER)-(oe.tabIndex||Number.MAX_SAFE_INTEGER)))}var h$1=(ee=>(ee[ee.Strict=0]="Strict",ee[ee.Loose=1]="Loose",ee))(h$1||{});function w$5(ee,ne=0){var oe;return ee===((oe=i$4(ee))==null?void 0:oe.body)?!1:u$6(ne,{0(){return ee.matches(c$2)},1(){let ae=ee;for(;ae!==null;){if(ae.matches(c$2))return!0;ae=ae.parentElement}return!1}})}var y$3=(ee=>(ee[ee.Keyboard=0]="Keyboard",ee[ee.Mouse=1]="Mouse",ee))(y$3||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{ee.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:ee.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function S$2(ee){ee==null||ee.focus({preventScroll:!0})}let H$3=["textarea","input"].join(",");function I$1(ee){var ne,oe;return(oe=(ne=ee==null?void 0:ee.matches)==null?void 0:ne.call(ee,H$3))!=null?oe:!1}function O$1(ee,ne=oe=>oe){return ee.slice().sort((oe,ae)=>{let ie=ne(oe),se=ne(ae);if(ie===null||se===null)return 0;let de=ie.compareDocumentPosition(se);return de&Node.DOCUMENT_POSITION_FOLLOWING?-1:de&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function P$2(ee,ne,{sorted:oe=!0,relativeTo:ae=null,skipElements:ie=[]}={}){var se;let de=(se=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee==null?void 0:ee.ownerDocument)!=null?se:document,fe=Array.isArray(ee)?oe?O$1(ee):ee:E$4(ee);ie.length>0&&fe.length>1&&(fe=fe.filter(_e=>!ie.includes(_e))),ae=ae??de.activeElement;let ve=(()=>{if(ne&5)return 1;if(ne&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),be=(()=>{if(ne&1)return 0;if(ne&2)return Math.max(0,fe.indexOf(ae))-1;if(ne&4)return Math.max(0,fe.indexOf(ae))+1;if(ne&8)return fe.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ye=ne&32?{preventScroll:!0}:{},$e=0,we=fe.length,Ee;do{if($e>=we||$e+we<=0)return 0;let _e=be+$e;if(ne&16)_e=(_e+we)%we;else{if(_e<0)return 3;if(_e>=we)return 1}Ee=fe[_e],Ee==null||Ee.focus(ye),$e+=ve}while(Ee!==de.activeElement);return ne&6&&I$1(Ee)&&Ee.select(),2}function t$q(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i$3(){return/Android/gi.test(window.navigator.userAgent)}function n$3(){return t$q()||i$3()}function u$5(ee,ne,oe){c$3.isServer||watchEffect(ae=>{document.addEventListener(ee,ne,oe),ae(()=>document.removeEventListener(ee,ne,oe))})}function w$4(ee,ne,oe){c$3.isServer||watchEffect(ae=>{window.addEventListener(ee,ne,oe),ae(()=>window.removeEventListener(ee,ne,oe))})}function w$3(ee,ne,oe=computed(()=>!0)){function ae(se,de){if(!oe.value||se.defaultPrevented)return;let fe=de(se);if(fe===null||!fe.getRootNode().contains(fe))return;let ve=function be(ye){return typeof ye=="function"?be(ye()):Array.isArray(ye)||ye instanceof Set?ye:[ye]}(ee);for(let be of ve){if(be===null)continue;let ye=be instanceof HTMLElement?be:o$2(be);if(ye!=null&&ye.contains(fe)||se.composed&&se.composedPath().includes(ye))return}return!w$5(fe,h$1.Loose)&&fe.tabIndex!==-1&&se.preventDefault(),ne(se,fe)}let ie=ref(null);u$5("pointerdown",se=>{var de,fe;oe.value&&(ie.value=((fe=(de=se.composedPath)==null?void 0:de.call(se))==null?void 0:fe[0])||se.target)},!0),u$5("mousedown",se=>{var de,fe;oe.value&&(ie.value=((fe=(de=se.composedPath)==null?void 0:de.call(se))==null?void 0:fe[0])||se.target)},!0),u$5("click",se=>{n$3()||ie.value&&(ae(se,()=>ie.value),ie.value=null)},!0),u$5("touchend",se=>ae(se,()=>se.target instanceof HTMLElement?se.target:null),!0),w$4("blur",se=>ae(se,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function r$1(ee,ne){if(ee)return ee;let oe=ne??"button";if(typeof oe=="string"&&oe.toLowerCase()==="button")return"button"}function s$4(ee,ne){let oe=ref(r$1(ee.value.type,ee.value.as));return onMounted(()=>{oe.value=r$1(ee.value.type,ee.value.as)}),watchEffect(()=>{var ae;oe.value||o$2(ne)&&o$2(ne)instanceof HTMLButtonElement&&!((ae=o$2(ne))!=null&&ae.hasAttribute("type"))&&(oe.value="button")}),oe}var N$4=(ee=>(ee[ee.None=0]="None",ee[ee.RenderStrategy=1]="RenderStrategy",ee[ee.Static=2]="Static",ee))(N$4||{}),S$1=(ee=>(ee[ee.Unmount=0]="Unmount",ee[ee.Hidden=1]="Hidden",ee))(S$1||{});function A$3({visible:ee=!0,features:ne=0,ourProps:oe,theirProps:ae,...ie}){var se;let de=j$1(ae,oe),fe=Object.assign(ie,{props:de});if(ee||ne&2&&de.static)return y$2(fe);if(ne&1){let ve=(se=de.unmount)==null||se?0:1;return u$6(ve,{0(){return null},1(){return y$2({...ie,props:{...de,hidden:!0,style:{display:"none"}}})}})}return y$2(fe)}function y$2({props:ee,attrs:ne,slots:oe,slot:ae,name:ie}){var se,de;let{as:fe,...ve}=T$2(ee,["unmount","static"]),be=(se=oe.default)==null?void 0:se.call(oe,ae),ye={};if(ae){let $e=!1,we=[];for(let[Ee,_e]of Object.entries(ae))typeof _e=="boolean"&&($e=!0),_e===!0&&we.push(Ee);$e&&(ye["data-headlessui-state"]=we.join(" "))}if(fe==="template"){if(be=b$1(be??[]),Object.keys(ve).length>0||Object.keys(ne).length>0){let[$e,...we]=be??[];if(!v$1($e)||we.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${ie} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(ve).concat(Object.keys(ne)).map(Ce=>Ce.trim()).filter((Ce,Pe,Ae)=>Ae.indexOf(Ce)===Pe).sort((Ce,Pe)=>Ce.localeCompare(Pe)).map(Ce=>` - ${Ce}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(Ce=>` - ${Ce}`).join(` +`)].join(` +`));let Ee=j$1((de=$e.props)!=null?de:{},ve,ye),_e=cloneVNode($e,Ee,!0);for(let Ce in Ee)Ce.startsWith("on")&&(_e.props||(_e.props={}),_e.props[Ce]=Ee[Ce]);return _e}return Array.isArray(be)&&be.length===1?be[0]:be}return h$2(fe,Object.assign({},ve,ye),{default:()=>be})}function b$1(ee){return ee.flatMap(ne=>ne.type===Fragment?b$1(ne.children):[ne])}function j$1(...ee){if(ee.length===0)return{};if(ee.length===1)return ee[0];let ne={},oe={};for(let ae of ee)for(let ie in ae)ie.startsWith("on")&&typeof ae[ie]=="function"?(oe[ie]!=null||(oe[ie]=[]),oe[ie].push(ae[ie])):ne[ie]=ae[ie];if(ne.disabled||ne["aria-disabled"])return Object.assign(ne,Object.fromEntries(Object.keys(oe).map(ae=>[ae,void 0])));for(let ae in oe)Object.assign(ne,{[ae](ie,...se){let de=oe[ae];for(let fe of de){if(ie instanceof Event&&ie.defaultPrevented)return;fe(ie,...se)}}});return ne}function E$3(ee){let ne=Object.assign({},ee);for(let oe in ne)ne[oe]===void 0&&delete ne[oe];return ne}function T$2(ee,ne=[]){let oe=Object.assign({},ee);for(let ae of ne)ae in oe&&delete oe[ae];return oe}function v$1(ee){return ee==null?!1:typeof ee.type=="string"||typeof ee.type=="object"||typeof ee.type=="function"}var u$4=(ee=>(ee[ee.None=1]="None",ee[ee.Focusable=2]="Focusable",ee[ee.Hidden=4]="Hidden",ee))(u$4||{});let f$2=defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(ee,{slots:ne,attrs:oe}){return()=>{var ae;let{features:ie,...se}=ee,de={"aria-hidden":(ie&2)===2?!0:(ae=se["aria-hidden"])!=null?ae:void 0,hidden:(ie&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(ie&4)===4&&(ie&2)!==2&&{display:"none"}}};return A$3({ourProps:de,theirProps:se,slot:{},attrs:oe,slots:ne,name:"Hidden"})}}}),n$2=Symbol("Context");var i$2=(ee=>(ee[ee.Open=1]="Open",ee[ee.Closed=2]="Closed",ee[ee.Closing=4]="Closing",ee[ee.Opening=8]="Opening",ee))(i$2||{});function s$3(){return l$3()!==null}function l$3(){return inject(n$2,null)}function t$p(ee){provide(n$2,ee)}var o$1=(ee=>(ee.Space=" ",ee.Enter="Enter",ee.Escape="Escape",ee.Backspace="Backspace",ee.Delete="Delete",ee.ArrowLeft="ArrowLeft",ee.ArrowUp="ArrowUp",ee.ArrowRight="ArrowRight",ee.ArrowDown="ArrowDown",ee.Home="Home",ee.End="End",ee.PageUp="PageUp",ee.PageDown="PageDown",ee.Tab="Tab",ee))(o$1||{});function t$o(ee){function ne(){document.readyState!=="loading"&&(ee(),document.removeEventListener("DOMContentLoaded",ne))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",ne),ne())}let t$n=[];t$o(()=>{function ee(ne){ne.target instanceof HTMLElement&&ne.target!==document.body&&t$n[0]!==ne.target&&(t$n.unshift(ne.target),t$n=t$n.filter(oe=>oe!=null&&oe.isConnected),t$n.splice(10))}window.addEventListener("click",ee,{capture:!0}),window.addEventListener("mousedown",ee,{capture:!0}),window.addEventListener("focus",ee,{capture:!0}),document.body.addEventListener("click",ee,{capture:!0}),document.body.addEventListener("mousedown",ee,{capture:!0}),document.body.addEventListener("focus",ee,{capture:!0})});function p$1(ee){var ne,oe;let ae=(ne=ee==null?void 0:ee.form)!=null?ne:ee.closest("form");if(ae){for(let ie of ae.elements)if(ie!==ee&&(ie.tagName==="INPUT"&&ie.type==="submit"||ie.tagName==="BUTTON"&&ie.type==="submit"||ie.nodeName==="INPUT"&&ie.type==="image")){ie.click();return}(oe=ae.requestSubmit)==null||oe.call(ae)}}function E$2(ee,ne,oe,ae){c$3.isServer||watchEffect(ie=>{ee=ee??window,ee.addEventListener(ne,oe,ae),ie(()=>ee.removeEventListener(ne,oe,ae))})}var d$5=(ee=>(ee[ee.Forwards=0]="Forwards",ee[ee.Backwards=1]="Backwards",ee))(d$5||{});function n$1(){let ee=ref(0);return w$4("keydown",ne=>{ne.key==="Tab"&&(ee.value=ne.shiftKey?1:0)}),ee}function B$1(ee){if(!ee)return new Set;if(typeof ee=="function")return new Set(ee());let ne=new Set;for(let oe of ee.value){let ae=o$2(oe);ae instanceof HTMLElement&&ne.add(ae)}return ne}var A$2=(ee=>(ee[ee.None=1]="None",ee[ee.InitialFocus=2]="InitialFocus",ee[ee.TabLock=4]="TabLock",ee[ee.FocusLock=8]="FocusLock",ee[ee.RestoreFocus=16]="RestoreFocus",ee[ee.All=30]="All",ee))(A$2||{});let ue$1=Object.assign(defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:ref(new Set)}},inheritAttrs:!1,setup(ee,{attrs:ne,slots:oe,expose:ae}){let ie=ref(null);ae({el:ie,$el:ie});let se=computed(()=>i$4(ie)),de=ref(!1);onMounted(()=>de.value=!0),onUnmounted(()=>de.value=!1),$$2({ownerDocument:se},computed(()=>de.value&&!!(ee.features&16)));let fe=z$2({ownerDocument:se,container:ie,initialFocus:computed(()=>ee.initialFocus)},computed(()=>de.value&&!!(ee.features&2)));J$1({ownerDocument:se,container:ie,containers:ee.containers,previousActiveElement:fe},computed(()=>de.value&&!!(ee.features&8)));let ve=n$1();function be(Ee){let _e=o$2(ie);_e&&(Ce=>Ce())(()=>{u$6(ve.value,{[d$5.Forwards]:()=>{P$2(_e,N$5.First,{skipElements:[Ee.relatedTarget]})},[d$5.Backwards]:()=>{P$2(_e,N$5.Last,{skipElements:[Ee.relatedTarget]})}})})}let ye=ref(!1);function $e(Ee){Ee.key==="Tab"&&(ye.value=!0,requestAnimationFrame(()=>{ye.value=!1}))}function we(Ee){if(!de.value)return;let _e=B$1(ee.containers);o$2(ie)instanceof HTMLElement&&_e.add(o$2(ie));let Ce=Ee.relatedTarget;Ce instanceof HTMLElement&&Ce.dataset.headlessuiFocusGuard!=="true"&&(N$3(_e,Ce)||(ye.value?P$2(o$2(ie),u$6(ve.value,{[d$5.Forwards]:()=>N$5.Next,[d$5.Backwards]:()=>N$5.Previous})|N$5.WrapAround,{relativeTo:Ee.target}):Ee.target instanceof HTMLElement&&S$2(Ee.target)))}return()=>{let Ee={},_e={ref:ie,onKeydown:$e,onFocusout:we},{features:Ce,initialFocus:Pe,containers:Ae,...ke}=ee;return h$2(Fragment,[!!(Ce&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:be,features:u$4.Focusable}),A$3({ourProps:_e,theirProps:{...ne,...ke},slot:Ee,attrs:ne,slots:oe,name:"FocusTrap"}),!!(Ce&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:be,features:u$4.Focusable})])}}}),{features:A$2});function W$2(ee){let ne=ref(t$n.slice());return watch([ee],([oe],[ae])=>{ae===!0&&oe===!1?t$r(()=>{ne.value.splice(0)}):ae===!1&&oe===!0&&(ne.value=t$n.slice())},{flush:"post"}),()=>{var oe;return(oe=ne.value.find(ae=>ae!=null&&ae.isConnected))!=null?oe:null}}function $$2({ownerDocument:ee},ne){let oe=W$2(ne);onMounted(()=>{watchEffect(()=>{var ae,ie;ne.value||((ae=ee.value)==null?void 0:ae.activeElement)===((ie=ee.value)==null?void 0:ie.body)&&S$2(oe())},{flush:"post"})}),onUnmounted(()=>{ne.value&&S$2(oe())})}function z$2({ownerDocument:ee,container:ne,initialFocus:oe},ae){let ie=ref(null),se=ref(!1);return onMounted(()=>se.value=!0),onUnmounted(()=>se.value=!1),onMounted(()=>{watch([ne,oe,ae],(de,fe)=>{if(de.every((be,ye)=>(fe==null?void 0:fe[ye])===be)||!ae.value)return;let ve=o$2(ne);ve&&t$r(()=>{var be,ye;if(!se.value)return;let $e=o$2(oe),we=(be=ee.value)==null?void 0:be.activeElement;if($e){if($e===we){ie.value=we;return}}else if(ve.contains(we)){ie.value=we;return}$e?S$2($e):P$2(ve,N$5.First|N$5.NoScroll)===T$3.Error&&console.warn("There are no focusable elements inside the "),ie.value=(ye=ee.value)==null?void 0:ye.activeElement})},{immediate:!0,flush:"post"})}),ie}function J$1({ownerDocument:ee,container:ne,containers:oe,previousActiveElement:ae},ie){var se;E$2((se=ee.value)==null?void 0:se.defaultView,"focus",de=>{if(!ie.value)return;let fe=B$1(oe);o$2(ne)instanceof HTMLElement&&fe.add(o$2(ne));let ve=ae.value;if(!ve)return;let be=de.target;be&&be instanceof HTMLElement?N$3(fe,be)?(ae.value=be,S$2(be)):(de.preventDefault(),de.stopPropagation(),S$2(ve)):S$2(ae.value)},!0)}function N$3(ee,ne){for(let oe of ee)if(oe.contains(ne))return!0;return!1}function m$3(ee){let ne=shallowRef(ee.getSnapshot());return onUnmounted(ee.subscribe(()=>{ne.value=ee.getSnapshot()})),ne}function a$2(ee,ne){let oe=ee(),ae=new Set;return{getSnapshot(){return oe},subscribe(ie){return ae.add(ie),()=>ae.delete(ie)},dispatch(ie,...se){let de=ne[ie].call(oe,...se);de&&(oe=de,ae.forEach(fe=>fe()))}}}function c$1(){let ee;return{before({doc:ne}){var oe;let ae=ne.documentElement;ee=((oe=ne.defaultView)!=null?oe:window).innerWidth-ae.clientWidth},after({doc:ne,d:oe}){let ae=ne.documentElement,ie=ae.clientWidth-ae.offsetWidth,se=ee-ie;oe.style(ae,"paddingRight",`${se}px`)}}}function w$2(){return t$q()?{before({doc:ee,d:ne,meta:oe}){function ae(ie){return oe.containers.flatMap(se=>se()).some(se=>se.contains(ie))}ne.microTask(()=>{var ie;if(window.getComputedStyle(ee.documentElement).scrollBehavior!=="auto"){let fe=o$4();fe.style(ee.documentElement,"scrollBehavior","auto"),ne.add(()=>ne.microTask(()=>fe.dispose()))}let se=(ie=window.scrollY)!=null?ie:window.pageYOffset,de=null;ne.addEventListener(ee,"click",fe=>{if(fe.target instanceof HTMLElement)try{let ve=fe.target.closest("a");if(!ve)return;let{hash:be}=new URL(ve.href),ye=ee.querySelector(be);ye&&!ae(ye)&&(de=ye)}catch{}},!0),ne.addEventListener(ee,"touchstart",fe=>{if(fe.target instanceof HTMLElement)if(ae(fe.target)){let ve=fe.target;for(;ve.parentElement&&ae(ve.parentElement);)ve=ve.parentElement;ne.style(ve,"overscrollBehavior","contain")}else ne.style(fe.target,"touchAction","none")}),ne.addEventListener(ee,"touchmove",fe=>{if(fe.target instanceof HTMLElement){if(fe.target.tagName==="INPUT")return;if(ae(fe.target)){let ve=fe.target;for(;ve.parentElement&&ve.dataset.headlessuiPortal!==""&&!(ve.scrollHeight>ve.clientHeight||ve.scrollWidth>ve.clientWidth);)ve=ve.parentElement;ve.dataset.headlessuiPortal===""&&fe.preventDefault()}else fe.preventDefault()}},{passive:!1}),ne.add(()=>{var fe;let ve=(fe=window.scrollY)!=null?fe:window.pageYOffset;se!==ve&&window.scrollTo(0,se),de&&de.isConnected&&(de.scrollIntoView({block:"nearest"}),de=null)})})}}:{}}function l$2(){return{before({doc:ee,d:ne}){ne.style(ee.documentElement,"overflow","hidden")}}}function m$2(ee){let ne={};for(let oe of ee)Object.assign(ne,oe(ne));return ne}let a$1=a$2(()=>new Map,{PUSH(ee,ne){var oe;let ae=(oe=this.get(ee))!=null?oe:{doc:ee,count:0,d:o$4(),meta:new Set};return ae.count++,ae.meta.add(ne),this.set(ee,ae),this},POP(ee,ne){let oe=this.get(ee);return oe&&(oe.count--,oe.meta.delete(ne)),this},SCROLL_PREVENT({doc:ee,d:ne,meta:oe}){let ae={doc:ee,d:ne,meta:m$2(oe)},ie=[w$2(),c$1(),l$2()];ie.forEach(({before:se})=>se==null?void 0:se(ae)),ie.forEach(({after:se})=>se==null?void 0:se(ae))},SCROLL_ALLOW({d:ee}){ee.dispose()},TEARDOWN({doc:ee}){this.delete(ee)}});a$1.subscribe(()=>{let ee=a$1.getSnapshot(),ne=new Map;for(let[oe]of ee)ne.set(oe,oe.documentElement.style.overflow);for(let oe of ee.values()){let ae=ne.get(oe.doc)==="hidden",ie=oe.count!==0;(ie&&!ae||!ie&&ae)&&a$1.dispatch(oe.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",oe),oe.count===0&&a$1.dispatch("TEARDOWN",oe)}});function d$4(ee,ne,oe){let ae=m$3(a$1),ie=computed(()=>{let se=ee.value?ae.value.get(ee.value):void 0;return se?se.count>0:!1});return watch([ee,ne],([se,de],[fe],ve)=>{if(!se||!de)return;a$1.dispatch("PUSH",se,oe);let be=!1;ve(()=>{be||(a$1.dispatch("POP",fe??se,oe),be=!0)})},{immediate:!0}),ie}let i$1=new Map,t$m=new Map;function E$1(ee,ne=ref(!0)){watchEffect(oe=>{var ae;if(!ne.value)return;let ie=o$2(ee);if(!ie)return;oe(function(){var de;if(!ie)return;let fe=(de=t$m.get(ie))!=null?de:1;if(fe===1?t$m.delete(ie):t$m.set(ie,fe-1),fe!==1)return;let ve=i$1.get(ie);ve&&(ve["aria-hidden"]===null?ie.removeAttribute("aria-hidden"):ie.setAttribute("aria-hidden",ve["aria-hidden"]),ie.inert=ve.inert,i$1.delete(ie))});let se=(ae=t$m.get(ie))!=null?ae:0;t$m.set(ie,se+1),se===0&&(i$1.set(ie,{"aria-hidden":ie.getAttribute("aria-hidden"),inert:ie.inert}),ie.setAttribute("aria-hidden","true"),ie.inert=!0)})}function N$2({defaultContainers:ee=[],portals:ne,mainTreeNodeRef:oe}={}){let ae=ref(null),ie=i$4(ae);function se(){var de,fe,ve;let be=[];for(let ye of ee)ye!==null&&(ye instanceof HTMLElement?be.push(ye):"value"in ye&&ye.value instanceof HTMLElement&&be.push(ye.value));if(ne!=null&&ne.value)for(let ye of ne.value)be.push(ye);for(let ye of(de=ie==null?void 0:ie.querySelectorAll("html > *, body > *"))!=null?de:[])ye!==document.body&&ye!==document.head&&ye instanceof HTMLElement&&ye.id!=="headlessui-portal-root"&&(ye.contains(o$2(ae))||ye.contains((ve=(fe=o$2(ae))==null?void 0:fe.getRootNode())==null?void 0:ve.host)||be.some($e=>ye.contains($e))||be.push(ye));return be}return{resolveContainers:se,contains(de){return se().some(fe=>fe.contains(de))},mainTreeNodeRef:ae,MainTreeNode(){return oe!=null?null:h$2(f$2,{features:u$4.Hidden,ref:ae})}}}let e$1=Symbol("ForcePortalRootContext");function s$2(){return inject(e$1,!1)}let u$3=defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(ee,{slots:ne,attrs:oe}){return provide(e$1,ee.force),()=>{let{force:ae,...ie}=ee;return A$3({theirProps:ie,ourProps:{},slot:{},slots:ne,attrs:oe,name:"ForcePortalRoot"})}}}),u$2=Symbol("StackContext");var s$1=(ee=>(ee[ee.Add=0]="Add",ee[ee.Remove=1]="Remove",ee))(s$1||{});function y$1(){return inject(u$2,()=>{})}function R$2({type:ee,enabled:ne,element:oe,onUpdate:ae}){let ie=y$1();function se(...de){ae==null||ae(...de),ie(...de)}onMounted(()=>{watch(ne,(de,fe)=>{de?se(0,ee,oe):fe===!0&&se(1,ee,oe)},{immediate:!0,flush:"sync"})}),onUnmounted(()=>{ne.value&&se(1,ee,oe)}),provide(u$2,se)}let u$1=Symbol("DescriptionContext");function w$1(){let ee=inject(u$1,null);if(ee===null)throw new Error("Missing parent");return ee}function k$1({slot:ee=ref({}),name:ne="Description",props:oe={}}={}){let ae=ref([]);function ie(se){return ae.value.push(se),()=>{let de=ae.value.indexOf(se);de!==-1&&ae.value.splice(de,1)}}return provide(u$1,{register:ie,slot:ee,name:ne,props:oe}),computed(()=>ae.value.length>0?ae.value.join(" "):void 0)}let K$1=defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe}){var ae;let ie=(ae=ee.id)!=null?ae:`headlessui-description-${i$6()}`,se=w$1();return onMounted(()=>onUnmounted(se.register(ie))),()=>{let{name:de="Description",slot:fe=ref({}),props:ve={}}=se,{...be}=ee,ye={...Object.entries(ve).reduce(($e,[we,Ee])=>Object.assign($e,{[we]:unref(Ee)}),{}),id:ie};return A$3({ourProps:ye,theirProps:be,slot:fe.value,attrs:ne,slots:oe,name:de})}}});function x$2(ee){let ne=i$4(ee);if(!ne){if(ee===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${ee}`)}let oe=ne.getElementById("headlessui-portal-root");if(oe)return oe;let ae=ne.createElement("div");return ae.setAttribute("id","headlessui-portal-root"),ne.body.appendChild(ae)}const f$1=new WeakMap;function U$2(ee){var ne;return(ne=f$1.get(ee))!=null?ne:0}function M$1(ee,ne){let oe=ne(U$2(ee));return oe<=0?f$1.delete(ee):f$1.set(ee,oe),oe}let $$1=defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(ee,{slots:ne,attrs:oe}){let ae=ref(null),ie=computed(()=>i$4(ae)),se=s$2(),de=inject(H$2,null),fe=ref(se===!0||de==null?x$2(ae.value):de.resolveTarget());fe.value&&M$1(fe.value,we=>we+1);let ve=ref(!1);onMounted(()=>{ve.value=!0}),watchEffect(()=>{se||de!=null&&(fe.value=de.resolveTarget())});let be=inject(d$3,null),ye=!1,$e=getCurrentInstance();return watch(ae,()=>{if(ye||!be)return;let we=o$2(ae);we&&(onUnmounted(be.register(we),$e),ye=!0)}),onUnmounted(()=>{var we,Ee;let _e=(we=ie.value)==null?void 0:we.getElementById("headlessui-portal-root");!_e||fe.value!==_e||M$1(fe.value,Ce=>Ce-1)||fe.value.children.length>0||(Ee=fe.value.parentElement)==null||Ee.removeChild(fe.value)}),()=>{if(!ve.value||fe.value===null)return null;let we={ref:ae,"data-headlessui-portal":""};return h$2(Teleport,{to:fe.value},A$3({ourProps:we,theirProps:ee,slot:{},attrs:oe,slots:ne,name:"Portal"}))}}}),d$3=Symbol("PortalParentContext");function q$1(){let ee=inject(d$3,null),ne=ref([]);function oe(se){return ne.value.push(se),ee&&ee.register(se),()=>ae(se)}function ae(se){let de=ne.value.indexOf(se);de!==-1&&ne.value.splice(de,1),ee&&ee.unregister(se)}let ie={register:oe,unregister:ae,portals:ne};return[ne,defineComponent({name:"PortalWrapper",setup(se,{slots:de}){return provide(d$3,ie),()=>{var fe;return(fe=de.default)==null?void 0:fe.call(de)}}})]}let H$2=Symbol("PortalGroupContext"),z$1=defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(ee,{attrs:ne,slots:oe}){let ae=reactive({resolveTarget(){return ee.target}});return provide(H$2,ae),()=>{let{target:ie,...se}=ee;return A$3({theirProps:se,ourProps:{},slot:{},attrs:ne,slots:oe,name:"PortalGroup"})}}});var Te$1=(ee=>(ee[ee.Open=0]="Open",ee[ee.Closed=1]="Closed",ee))(Te$1||{});let H$1=Symbol("DialogContext");function T$1(ee){let ne=inject(H$1,null);if(ne===null){let oe=new Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(oe,T$1),oe}return ne}let A$1="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ye=defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:A$1},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:ee=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){var se,de;let fe=(se=ee.id)!=null?se:`headlessui-dialog-${i$6()}`,ve=ref(!1);onMounted(()=>{ve.value=!0});let be=!1,ye=computed(()=>ee.role==="dialog"||ee.role==="alertdialog"?ee.role:(be||(be=!0,console.warn(`Invalid role [${ye}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),$e=ref(0),we=l$3(),Ee=computed(()=>ee.open===A$1&&we!==null?(we.value&i$2.Open)===i$2.Open:ee.open),_e=ref(null),Ce=computed(()=>i$4(_e));if(ie({el:_e,$el:_e}),!(ee.open!==A$1||we!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof Ee.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${Ee.value===A$1?void 0:ee.open}`);let Pe=computed(()=>ve.value&&Ee.value?0:1),Ae=computed(()=>Pe.value===0),ke=computed(()=>$e.value>1),Ne=inject(H$1,null)!==null,[Oe,Re]=q$1(),{resolveContainers:Be,mainTreeNodeRef:Me,MainTreeNode:Le}=N$2({portals:Oe,defaultContainers:[computed(()=>{var Ue;return(Ue=Ze.panelRef.value)!=null?Ue:_e.value})]}),Xe=computed(()=>ke.value?"parent":"leaf"),Ke=computed(()=>we!==null?(we.value&i$2.Closing)===i$2.Closing:!1),De=computed(()=>Ne||Ke.value?!1:Ae.value),je=computed(()=>{var Ue,Pt,Dt;return(Dt=Array.from((Pt=(Ue=Ce.value)==null?void 0:Ue.querySelectorAll("body > *"))!=null?Pt:[]).find(Ut=>Ut.id==="headlessui-portal-root"?!1:Ut.contains(o$2(Me))&&Ut instanceof HTMLElement))!=null?Dt:null});E$1(je,De);let He=computed(()=>ke.value?!0:Ae.value),qe=computed(()=>{var Ue,Pt,Dt;return(Dt=Array.from((Pt=(Ue=Ce.value)==null?void 0:Ue.querySelectorAll("[data-headlessui-portal]"))!=null?Pt:[]).find(Ut=>Ut.contains(o$2(Me))&&Ut instanceof HTMLElement))!=null?Dt:null});E$1(qe,He),R$2({type:"Dialog",enabled:computed(()=>Pe.value===0),element:_e,onUpdate:(Ue,Pt)=>{if(Pt==="Dialog")return u$6(Ue,{[s$1.Add]:()=>$e.value+=1,[s$1.Remove]:()=>$e.value-=1})}});let ze=k$1({name:"DialogDescription",slot:computed(()=>({open:Ee.value}))}),Fe=ref(null),Ze={titleId:Fe,panelRef:ref(null),dialogState:Pe,setTitleId(Ue){Fe.value!==Ue&&(Fe.value=Ue)},close(){ne("close",!1)}};provide(H$1,Ze);let ot=computed(()=>!(!Ae.value||ke.value));w$3(Be,(Ue,Pt)=>{Ue.preventDefault(),Ze.close(),nextTick(()=>Pt==null?void 0:Pt.focus())},ot);let Nt=computed(()=>!(ke.value||Pe.value!==0));E$2((de=Ce.value)==null?void 0:de.defaultView,"keydown",Ue=>{Nt.value&&(Ue.defaultPrevented||Ue.key===o$1.Escape&&(Ue.preventDefault(),Ue.stopPropagation(),Ze.close()))});let Mt=computed(()=>!(Ke.value||Pe.value!==0||Ne));return d$4(Ce,Mt,Ue=>{var Pt;return{containers:[...(Pt=Ue.containers)!=null?Pt:[],Be]}}),watchEffect(Ue=>{if(Pe.value!==0)return;let Pt=o$2(_e);if(!Pt)return;let Dt=new ResizeObserver(Ut=>{for(let Rt of Ut){let Wt=Rt.target.getBoundingClientRect();Wt.x===0&&Wt.y===0&&Wt.width===0&&Wt.height===0&&Ze.close()}});Dt.observe(Pt),Ue(()=>Dt.disconnect())}),()=>{let{open:Ue,initialFocus:Pt,...Dt}=ee,Ut={...oe,ref:_e,id:fe,role:ye.value,"aria-modal":Pe.value===0?!0:void 0,"aria-labelledby":Fe.value,"aria-describedby":ze.value},Rt={open:Pe.value===0};return h$2(u$3,{force:!0},()=>[h$2($$1,()=>h$2(z$1,{target:_e.value},()=>h$2(u$3,{force:!1},()=>h$2(ue$1,{initialFocus:Pt,containers:Be,features:Ae.value?u$6(Xe.value,{parent:ue$1.features.RestoreFocus,leaf:ue$1.features.All&~ue$1.features.FocusLock}):ue$1.features.None},()=>h$2(Re,{},()=>A$3({ourProps:Ut,theirProps:{...Dt,...oe},slot:Rt,attrs:oe,slots:ae,visible:Pe.value===0,features:N$4.RenderStrategy|N$4.Static,name:"Dialog"})))))),h$2(Le)])}}}),Ge=defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe,expose:ae}){var ie;let se=(ie=ee.id)!=null?ie:`headlessui-dialog-panel-${i$6()}`,de=T$1("DialogPanel");ae({el:de.panelRef,$el:de.panelRef});function fe(ve){ve.stopPropagation()}return()=>{let{...ve}=ee,be={id:se,ref:de.panelRef,onClick:fe};return A$3({ourProps:be,theirProps:ve,slot:{open:de.dialogState.value===0},attrs:ne,slots:oe,name:"DialogPanel"})}}}),Ve=defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe}){var ae;let ie=(ae=ee.id)!=null?ae:`headlessui-dialog-title-${i$6()}`,se=T$1("DialogTitle");return onMounted(()=>{se.setTitleId(ie),onUnmounted(()=>se.setTitleId(null))}),()=>{let{...de}=ee;return A$3({ourProps:{id:ie},theirProps:de,slot:{open:se.dialogState.value===0},attrs:ne,slots:oe,name:"DialogTitle"})}}}),Je=K$1,C$2=Symbol("GroupContext"),ue=defineComponent({name:"Switch",emits:{"update:modelValue":ee=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){var se;let de=(se=ee.id)!=null?se:`headlessui-switch-${i$6()}`,fe=inject(C$2,null),[ve,be]=d$7(computed(()=>ee.modelValue),ke=>ne("update:modelValue",ke),computed(()=>ee.defaultChecked));function ye(){be(!ve.value)}let $e=ref(null),we=fe===null?$e:fe.switchRef,Ee=s$4(computed(()=>({as:ee.as,type:oe.type})),we);ie({el:we,$el:we});function _e(ke){ke.preventDefault(),ye()}function Ce(ke){ke.key===o$1.Space?(ke.preventDefault(),ye()):ke.key===o$1.Enter&&p$1(ke.currentTarget)}function Pe(ke){ke.preventDefault()}let Ae=computed(()=>{var ke,Ne;return(Ne=(ke=o$2(we))==null?void 0:ke.closest)==null?void 0:Ne.call(ke,"form")});return onMounted(()=>{watch([Ae],()=>{if(!Ae.value||ee.defaultChecked===void 0)return;function ke(){be(ee.defaultChecked)}return Ae.value.addEventListener("reset",ke),()=>{var Ne;(Ne=Ae.value)==null||Ne.removeEventListener("reset",ke)}},{immediate:!0})}),()=>{let{name:ke,value:Ne,form:Oe,tabIndex:Re,...Be}=ee,Me={checked:ve.value},Le={id:de,ref:we,role:"switch",type:Ee.value,tabIndex:Re===-1?0:Re,"aria-checked":ve.value,"aria-labelledby":fe==null?void 0:fe.labelledby.value,"aria-describedby":fe==null?void 0:fe.describedby.value,onClick:_e,onKeyup:Ce,onKeypress:Pe};return h$2(Fragment,[ke!=null&&ve.value!=null?h$2(f$2,E$3({features:u$4.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:ve.value,form:Oe,disabled:Be.disabled,name:ke,value:Ne})):null,A$3({ourProps:Le,theirProps:{...oe,...T$2(Be,["modelValue","defaultChecked"])},slot:Me,attrs:oe,slots:ae,name:"Switch"})])}}}),d$2=defineComponent({props:{onFocus:{type:Function,required:!0}},setup(ee){let ne=ref(!0);return()=>ne.value?h$2(f$2,{as:"button",type:"button",features:u$4.Focusable,onFocus(oe){oe.preventDefault();let ae,ie=50;function se(){var de;if(ie--<=0){ae&&cancelAnimationFrame(ae);return}if((de=ee.onFocus)!=null&&de.call(ee)){ne.value=!1,cancelAnimationFrame(ae);return}ae=requestAnimationFrame(se)}ae=requestAnimationFrame(se)}}):null}});var te=(ee=>(ee[ee.Forwards=0]="Forwards",ee[ee.Backwards=1]="Backwards",ee))(te||{}),le=(ee=>(ee[ee.Less=-1]="Less",ee[ee.Equal=0]="Equal",ee[ee.Greater=1]="Greater",ee))(le||{});let U$1=Symbol("TabsContext");function C$1(ee){let ne=inject(U$1,null);if(ne===null){let oe=new Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(oe,C$1),oe}return ne}let G$1=Symbol("TabsSSRContext"),me$1=defineComponent({name:"TabGroup",emits:{change:ee=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(ee,{slots:ne,attrs:oe,emit:ae}){var ie;let se=ref((ie=ee.selectedIndex)!=null?ie:ee.defaultIndex),de=ref([]),fe=ref([]),ve=computed(()=>ee.selectedIndex!==null),be=computed(()=>ve.value?ee.selectedIndex:se.value);function ye(Ce){var Pe;let Ae=O$1($e.tabs.value,o$2),ke=O$1($e.panels.value,o$2),Ne=Ae.filter(Oe=>{var Re;return!((Re=o$2(Oe))!=null&&Re.hasAttribute("disabled"))});if(Ce<0||Ce>Ae.length-1){let Oe=u$6(se.value===null?0:Math.sign(Ce-se.value),{[-1]:()=>1,0:()=>u$6(Math.sign(Ce),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),Re=u$6(Oe,{0:()=>Ae.indexOf(Ne[0]),1:()=>Ae.indexOf(Ne[Ne.length-1])});Re!==-1&&(se.value=Re),$e.tabs.value=Ae,$e.panels.value=ke}else{let Oe=Ae.slice(0,Ce),Re=[...Ae.slice(Ce),...Oe].find(Me=>Ne.includes(Me));if(!Re)return;let Be=(Pe=Ae.indexOf(Re))!=null?Pe:$e.selectedIndex.value;Be===-1&&(Be=$e.selectedIndex.value),se.value=Be,$e.tabs.value=Ae,$e.panels.value=ke}}let $e={selectedIndex:computed(()=>{var Ce,Pe;return(Pe=(Ce=se.value)!=null?Ce:ee.defaultIndex)!=null?Pe:null}),orientation:computed(()=>ee.vertical?"vertical":"horizontal"),activation:computed(()=>ee.manual?"manual":"auto"),tabs:de,panels:fe,setSelectedIndex(Ce){be.value!==Ce&&ae("change",Ce),ve.value||ye(Ce)},registerTab(Ce){var Pe;if(de.value.includes(Ce))return;let Ae=de.value[se.value];if(de.value.push(Ce),de.value=O$1(de.value,o$2),!ve.value){let ke=(Pe=de.value.indexOf(Ae))!=null?Pe:se.value;ke!==-1&&(se.value=ke)}},unregisterTab(Ce){let Pe=de.value.indexOf(Ce);Pe!==-1&&de.value.splice(Pe,1)},registerPanel(Ce){fe.value.includes(Ce)||(fe.value.push(Ce),fe.value=O$1(fe.value,o$2))},unregisterPanel(Ce){let Pe=fe.value.indexOf(Ce);Pe!==-1&&fe.value.splice(Pe,1)}};provide(U$1,$e);let we=ref({tabs:[],panels:[]}),Ee=ref(!1);onMounted(()=>{Ee.value=!0}),provide(G$1,computed(()=>Ee.value?null:we.value));let _e=computed(()=>ee.selectedIndex);return onMounted(()=>{watch([_e],()=>{var Ce;return ye((Ce=ee.selectedIndex)!=null?Ce:ee.defaultIndex)},{immediate:!0})}),watchEffect(()=>{if(!ve.value||be.value==null||$e.tabs.value.length<=0)return;let Ce=O$1($e.tabs.value,o$2);Ce.some((Pe,Ae)=>o$2($e.tabs.value[Ae])!==o$2(Pe))&&$e.setSelectedIndex(Ce.findIndex(Pe=>o$2(Pe)===o$2($e.tabs.value[be.value])))}),()=>{let Ce={selectedIndex:se.value};return h$2(Fragment,[de.value.length<=0&&h$2(d$2,{onFocus:()=>{for(let Pe of de.value){let Ae=o$2(Pe);if((Ae==null?void 0:Ae.tabIndex)===0)return Ae.focus(),!0}return!1}}),A$3({theirProps:{...oe,...T$2(ee,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:Ce,slots:ne,attrs:oe,name:"TabGroup"})])}}}),pe$1=defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(ee,{attrs:ne,slots:oe}){let ae=C$1("TabList");return()=>{let ie={selectedIndex:ae.selectedIndex.value},se={role:"tablist","aria-orientation":ae.orientation.value};return A$3({ourProps:se,theirProps:ee,slot:ie,attrs:ne,slots:oe,name:"TabList"})}}}),xe=defineComponent({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe,expose:ae}){var ie;let se=(ie=ee.id)!=null?ie:`headlessui-tabs-tab-${i$6()}`,de=C$1("Tab"),fe=ref(null);ae({el:fe,$el:fe}),onMounted(()=>de.registerTab(fe)),onUnmounted(()=>de.unregisterTab(fe));let ve=inject(G$1),be=computed(()=>{if(ve.value){let ke=ve.value.tabs.indexOf(se);return ke===-1?ve.value.tabs.push(se)-1:ke}return-1}),ye=computed(()=>{let ke=de.tabs.value.indexOf(fe);return ke===-1?be.value:ke}),$e=computed(()=>ye.value===de.selectedIndex.value);function we(ke){var Ne;let Oe=ke();if(Oe===T$3.Success&&de.activation.value==="auto"){let Re=(Ne=i$4(fe))==null?void 0:Ne.activeElement,Be=de.tabs.value.findIndex(Me=>o$2(Me)===Re);Be!==-1&&de.setSelectedIndex(Be)}return Oe}function Ee(ke){let Ne=de.tabs.value.map(Oe=>o$2(Oe)).filter(Boolean);if(ke.key===o$1.Space||ke.key===o$1.Enter){ke.preventDefault(),ke.stopPropagation(),de.setSelectedIndex(ye.value);return}switch(ke.key){case o$1.Home:case o$1.PageUp:return ke.preventDefault(),ke.stopPropagation(),we(()=>P$2(Ne,N$5.First));case o$1.End:case o$1.PageDown:return ke.preventDefault(),ke.stopPropagation(),we(()=>P$2(Ne,N$5.Last))}if(we(()=>u$6(de.orientation.value,{vertical(){return ke.key===o$1.ArrowUp?P$2(Ne,N$5.Previous|N$5.WrapAround):ke.key===o$1.ArrowDown?P$2(Ne,N$5.Next|N$5.WrapAround):T$3.Error},horizontal(){return ke.key===o$1.ArrowLeft?P$2(Ne,N$5.Previous|N$5.WrapAround):ke.key===o$1.ArrowRight?P$2(Ne,N$5.Next|N$5.WrapAround):T$3.Error}}))===T$3.Success)return ke.preventDefault()}let _e=ref(!1);function Ce(){var ke;_e.value||(_e.value=!0,!ee.disabled&&((ke=o$2(fe))==null||ke.focus({preventScroll:!0}),de.setSelectedIndex(ye.value),t$r(()=>{_e.value=!1})))}function Pe(ke){ke.preventDefault()}let Ae=s$4(computed(()=>({as:ee.as,type:ne.type})),fe);return()=>{var ke,Ne;let Oe={selected:$e.value,disabled:(ke=ee.disabled)!=null?ke:!1},{...Re}=ee,Be={ref:fe,onKeydown:Ee,onMousedown:Pe,onClick:Ce,id:se,role:"tab",type:Ae.value,"aria-controls":(Ne=o$2(de.panels.value[ye.value]))==null?void 0:Ne.id,"aria-selected":$e.value,tabIndex:$e.value?0:-1,disabled:ee.disabled?!0:void 0};return A$3({ourProps:Be,theirProps:Re,slot:Oe,attrs:ne,slots:oe,name:"Tab"})}}});function l$1(ee){let ne={called:!1};return(...oe)=>{if(!ne.called)return ne.called=!0,ee(...oe)}}function m$1(ee,...ne){ee&&ne.length>0&&ee.classList.add(...ne)}function d$1(ee,...ne){ee&&ne.length>0&&ee.classList.remove(...ne)}var g$3=(ee=>(ee.Finished="finished",ee.Cancelled="cancelled",ee))(g$3||{});function F$1(ee,ne){let oe=o$4();if(!ee)return oe.dispose;let{transitionDuration:ae,transitionDelay:ie}=getComputedStyle(ee),[se,de]=[ae,ie].map(fe=>{let[ve=0]=fe.split(",").filter(Boolean).map(be=>be.includes("ms")?parseFloat(be):parseFloat(be)*1e3).sort((be,ye)=>ye-be);return ve});return se!==0?oe.setTimeout(()=>ne("finished"),se+de):ne("finished"),oe.add(()=>ne("cancelled")),oe.dispose}function L$2(ee,ne,oe,ae,ie,se){let de=o$4(),fe=se!==void 0?l$1(se):()=>{};return d$1(ee,...ie),m$1(ee,...ne,...oe),de.nextFrame(()=>{d$1(ee,...oe),m$1(ee,...ae),de.add(F$1(ee,ve=>(d$1(ee,...ae,...ne),m$1(ee,...ie),fe(ve))))}),de.add(()=>d$1(ee,...ne,...oe,...ae,...ie)),de.add(()=>fe("cancelled")),de.dispose}function g$2(ee=""){return ee.split(/\s+/).filter(ne=>ne.length>1)}let R$1=Symbol("TransitionContext");var pe=(ee=>(ee.Visible="visible",ee.Hidden="hidden",ee))(pe||{});function me(){return inject(R$1,null)!==null}function Te(){let ee=inject(R$1,null);if(ee===null)throw new Error("A is used but it is missing a parent .");return ee}function ge(){let ee=inject(N$1,null);if(ee===null)throw new Error("A is used but it is missing a parent .");return ee}let N$1=Symbol("NestingContext");function L$1(ee){return"children"in ee?L$1(ee.children):ee.value.filter(({state:ne})=>ne==="visible").length>0}function Q$1(ee){let ne=ref([]),oe=ref(!1);onMounted(()=>oe.value=!0),onUnmounted(()=>oe.value=!1);function ae(se,de=S$1.Hidden){let fe=ne.value.findIndex(({id:ve})=>ve===se);fe!==-1&&(u$6(de,{[S$1.Unmount](){ne.value.splice(fe,1)},[S$1.Hidden](){ne.value[fe].state="hidden"}}),!L$1(ne)&&oe.value&&(ee==null||ee()))}function ie(se){let de=ne.value.find(({id:fe})=>fe===se);return de?de.state!=="visible"&&(de.state="visible"):ne.value.push({id:se,state:"visible"}),()=>ae(se,S$1.Unmount)}return{children:ne,register:ie,unregister:ae}}let W$1=N$4.RenderStrategy,he=defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){let se=ref(0);function de(){se.value|=i$2.Opening,ne("beforeEnter")}function fe(){se.value&=~i$2.Opening,ne("afterEnter")}function ve(){se.value|=i$2.Closing,ne("beforeLeave")}function be(){se.value&=~i$2.Closing,ne("afterLeave")}if(!me()&&s$3())return()=>h$2(Se,{...ee,onBeforeEnter:de,onAfterEnter:fe,onBeforeLeave:ve,onAfterLeave:be},ae);let ye=ref(null),$e=computed(()=>ee.unmount?S$1.Unmount:S$1.Hidden);ie({el:ye,$el:ye});let{show:we,appear:Ee}=Te(),{register:_e,unregister:Ce}=ge(),Pe=ref(we.value?"visible":"hidden"),Ae={value:!0},ke=i$6(),Ne={value:!1},Oe=Q$1(()=>{!Ne.value&&Pe.value!=="hidden"&&(Pe.value="hidden",Ce(ke),be())});onMounted(()=>{let He=_e(ke);onUnmounted(He)}),watchEffect(()=>{if($e.value===S$1.Hidden&&ke){if(we.value&&Pe.value!=="visible"){Pe.value="visible";return}u$6(Pe.value,{hidden:()=>Ce(ke),visible:()=>_e(ke)})}});let Re=g$2(ee.enter),Be=g$2(ee.enterFrom),Me=g$2(ee.enterTo),Le=g$2(ee.entered),Xe=g$2(ee.leave),Ke=g$2(ee.leaveFrom),De=g$2(ee.leaveTo);onMounted(()=>{watchEffect(()=>{if(Pe.value==="visible"){let He=o$2(ye);if(He instanceof Comment&&He.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function je(He){let qe=Ae.value&&!Ee.value,ze=o$2(ye);!ze||!(ze instanceof HTMLElement)||qe||(Ne.value=!0,we.value&&de(),we.value||ve(),He(we.value?L$2(ze,Re,Be,Me,Le,Fe=>{Ne.value=!1,Fe===g$3.Finished&&fe()}):L$2(ze,Xe,Ke,De,Le,Fe=>{Ne.value=!1,Fe===g$3.Finished&&(L$1(Oe)||(Pe.value="hidden",Ce(ke),be()))})))}return onMounted(()=>{watch([we],(He,qe,ze)=>{je(ze),Ae.value=!1},{immediate:!0})}),provide(N$1,Oe),t$p(computed(()=>u$6(Pe.value,{visible:i$2.Open,hidden:i$2.Closed})|se.value)),()=>{let{appear:He,show:qe,enter:ze,enterFrom:Fe,enterTo:Ze,entered:ot,leave:Nt,leaveFrom:Mt,leaveTo:Ue,...Pt}=ee,Dt={ref:ye},Ut={...Pt,...Ee.value&&we.value&&c$3.isServer?{class:normalizeClass([oe.class,Pt.class,...Re,...Be])}:{}};return A$3({theirProps:Ut,ourProps:Dt,slot:{},slots:ae,attrs:oe,features:W$1,visible:Pe.value==="visible",name:"TransitionChild"})}}}),ce=he,Se=defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae}){let ie=l$3(),se=computed(()=>ee.show===null&&ie!==null?(ie.value&i$2.Open)===i$2.Open:ee.show);watchEffect(()=>{if(![!0,!1].includes(se.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let de=ref(se.value?"visible":"hidden"),fe=Q$1(()=>{de.value="hidden"}),ve=ref(!0),be={show:se,appear:computed(()=>ee.appear||!ve.value)};return onMounted(()=>{watchEffect(()=>{ve.value=!1,se.value?de.value="visible":L$1(fe)||(de.value="hidden")})}),provide(N$1,fe),provide(R$1,be),()=>{let ye=T$2(ee,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),$e={unmount:ee.unmount};return A$3({ourProps:{...$e,as:"template"},theirProps:{},slot:{},slots:{...ae,default:()=>[h$2(ce,{onBeforeEnter:()=>ne("beforeEnter"),onAfterEnter:()=>ne("afterEnter"),onBeforeLeave:()=>ne("beforeLeave"),onAfterLeave:()=>ne("afterLeave"),...oe,...$e,...ye},ae.default)]},attrs:{},features:W$1,visible:de.value==="visible",name:"Transition"})}}});/*! + * OverlayScrollbars + * Version: 2.10.0 + * + * Copyright (c) Rene Haas | KingSora. + * https://github.com/KingSora + * + * Released under the MIT license. + */const createCache=(ee,ne)=>{const{o:oe,i:ae,u:ie}=ee;let se=oe,de;const fe=(ye,$e)=>{const we=se,Ee=ye,_e=$e||(ae?!ae(we,Ee):we!==Ee);return(_e||ie)&&(se=Ee,de=we),[se,_e,de]};return[ne?ye=>fe(ne(se,de),ye):fe,ye=>[se,!!ye,de]]},t$l=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,n=t$l?window:{},o=Math.max,s=Math.min,e=Math.round,c=Math.abs,r=Math.sign,l=n.cancelAnimationFrame,i=n.requestAnimationFrame,a=n.setTimeout,u=n.clearTimeout,getApi=ee=>typeof n[ee]<"u"?n[ee]:void 0,_=getApi("MutationObserver"),d=getApi("IntersectionObserver"),f=getApi("ResizeObserver"),v=getApi("ScrollTimeline"),isUndefined$2=ee=>ee===void 0,isNull=ee=>ee===null,isNumber$2=ee=>typeof ee=="number",isString$3=ee=>typeof ee=="string",isBoolean$2=ee=>typeof ee=="boolean",isFunction$5=ee=>typeof ee=="function",isArray$4=ee=>Array.isArray(ee),isObject$6=ee=>typeof ee=="object"&&!isArray$4(ee)&&!isNull(ee),isArrayLike$1=ee=>{const ne=!!ee&&ee.length,oe=isNumber$2(ne)&&ne>-1&&ne%1==0;return isArray$4(ee)||!isFunction$5(ee)&&oe?ne>0&&isObject$6(ee)?ne-1 in ee:!0:!1},isPlainObject$4=ee=>!!ee&&ee.constructor===Object,isHTMLElement$1=ee=>ee instanceof HTMLElement,isElement$2=ee=>ee instanceof Element;function each(ee,ne){if(isArrayLike$1(ee))for(let oe=0;oene(ee[oe],oe,ee));return ee}const inArray=(ee,ne)=>ee.indexOf(ne)>=0,concat=(ee,ne)=>ee.concat(ne),push=(ee,ne,oe)=>(!isString$3(ne)&&isArrayLike$1(ne)?Array.prototype.push.apply(ee,ne):ee.push(ne),ee),from=ee=>Array.from(ee||[]),createOrKeepArray=ee=>isArray$4(ee)?ee:!isString$3(ee)&&isArrayLike$1(ee)?from(ee):[ee],isEmptyArray=ee=>!!ee&&!ee.length,deduplicateArray=ee=>from(new Set(ee)),runEachAndClear=(ee,ne,oe)=>{each(ee,ie=>ie?ie.apply(void 0,ne||[]):!0),!oe&&(ee.length=0)},p="paddingTop",h="paddingRight",g$1="paddingLeft",b="paddingBottom",w="marginLeft",y="marginRight",S="marginBottom",m="overflowX",O="overflowY",$="width",C="height",x$1="visible",H="hidden",E="scroll",capitalizeFirstLetter=ee=>{const ne=String(ee||"");return ne?ne[0].toUpperCase()+ne.slice(1):""},equal=(ee,ne,oe,ae)=>{if(ee&&ne){let ie=!0;return each(oe,se=>{const de=ee[se],fe=ne[se];de!==fe&&(ie=!1)}),ie}return!1},equalWH=(ee,ne)=>equal(ee,ne,["w","h"]),equalXY=(ee,ne)=>equal(ee,ne,["x","y"]),equalTRBL=(ee,ne)=>equal(ee,ne,["t","r","b","l"]),noop$4=()=>{},bind$1=(ee,...ne)=>ee.bind(0,...ne),selfClearTimeout=ee=>{let ne;const oe=ee?a:i,ae=ee?u:l;return[ie=>{ae(ne),ne=oe(()=>ie(),isFunction$5(ee)?ee():ee)},()=>ae(ne)]},debounce$1=(ee,ne)=>{const{_:oe,v:ae,p:ie,S:se}=ne||{};let de,fe,ve,be,ye=noop$4;const $e=function(Pe){ye(),u(de),be=de=fe=void 0,ye=noop$4,ee.apply(this,Pe)},we=Ce=>se&&fe?se(fe,Ce):Ce,Ee=()=>{ye!==noop$4&&$e(we(ve)||ve)},_e=function(){const Pe=from(arguments),Ae=isFunction$5(oe)?oe():oe;if(isNumber$2(Ae)&&Ae>=0){const Ne=isFunction$5(ae)?ae():ae,Oe=isNumber$2(Ne)&&Ne>=0,Re=Ae>0?a:i,Be=Ae>0?u:l,Le=we(Pe)||Pe,Xe=$e.bind(0,Le);let Ke;ye(),ie&&!be?(Xe(),be=!0,Ke=Re(()=>be=void 0,Ae)):(Ke=Re(Xe,Ae),Oe&&!de&&(de=a(Ee,Ne))),ye=()=>Be(Ke),fe=ve=Le}else $e(Pe)};return _e.m=Ee,_e},hasOwnProperty$e=(ee,ne)=>Object.prototype.hasOwnProperty.call(ee,ne),keys$1=ee=>ee?Object.keys(ee):[],assignDeep=(ee,ne,oe,ae,ie,se,de)=>{const fe=[ne,oe,ae,ie,se,de];return(typeof ee!="object"||isNull(ee))&&!isFunction$5(ee)&&(ee={}),each(fe,ve=>{each(ve,(be,ye)=>{const $e=ve[ye];if(ee===$e)return!0;const we=isArray$4($e);if($e&&isPlainObject$4($e)){const Ee=ee[ye];let _e=Ee;we&&!isArray$4(Ee)?_e=[]:!we&&!isPlainObject$4(Ee)&&(_e={}),ee[ye]=assignDeep(_e,$e)}else ee[ye]=we?$e.slice():$e})}),ee},removeUndefinedProperties=(ee,ne)=>each(assignDeep({},ee),(oe,ae,ie)=>{oe===void 0?delete ie[ae]:oe&&isPlainObject$4(oe)&&(ie[ae]=removeUndefinedProperties(oe))}),isEmptyObject$1=ee=>!keys$1(ee).length,capNumber=(ee,ne,oe)=>o(ee,s(ne,oe)),getDomTokensArray=ee=>deduplicateArray((isArray$4(ee)?ee:(ee||"").split(" ")).filter(ne=>ne)),getAttr=(ee,ne)=>ee&&ee.getAttribute(ne),hasAttr=(ee,ne)=>ee&&ee.hasAttribute(ne),setAttrs=(ee,ne,oe)=>{each(getDomTokensArray(ne),ae=>{ee&&ee.setAttribute(ae,String(oe||""))})},removeAttrs=(ee,ne)=>{each(getDomTokensArray(ne),oe=>ee&&ee.removeAttribute(oe))},domTokenListAttr=(ee,ne)=>{const oe=getDomTokensArray(getAttr(ee,ne)),ae=bind$1(setAttrs,ee,ne),ie=(se,de)=>{const fe=new Set(oe);return each(getDomTokensArray(se),ve=>{fe[de](ve)}),from(fe).join(" ")};return{O:se=>ae(ie(se,"delete")),$:se=>ae(ie(se,"add")),C:se=>{const de=getDomTokensArray(se);return de.reduce((fe,ve)=>fe&&oe.includes(ve),de.length>0)}}},removeAttrClass=(ee,ne,oe)=>(domTokenListAttr(ee,ne).O(oe),bind$1(addAttrClass,ee,ne,oe)),addAttrClass=(ee,ne,oe)=>(domTokenListAttr(ee,ne).$(oe),bind$1(removeAttrClass,ee,ne,oe)),addRemoveAttrClass=(ee,ne,oe,ae)=>(ae?addAttrClass:removeAttrClass)(ee,ne,oe),hasAttrClass=(ee,ne,oe)=>domTokenListAttr(ee,ne).C(oe),createDomTokenListClass=ee=>domTokenListAttr(ee,"class"),removeClass=(ee,ne)=>{createDomTokenListClass(ee).O(ne)},addClass=(ee,ne)=>(createDomTokenListClass(ee).$(ne),bind$1(removeClass,ee,ne)),find=(ee,ne)=>{const oe=ne?isElement$2(ne)&&ne:document;return oe?from(oe.querySelectorAll(ee)):[]},findFirst=(ee,ne)=>{const oe=ne?isElement$2(ne)&&ne:document;return oe&&oe.querySelector(ee)},is=(ee,ne)=>isElement$2(ee)&&ee.matches(ne),isBodyElement=ee=>is(ee,"body"),contents=ee=>ee?from(ee.childNodes):[],parent=ee=>ee&&ee.parentElement,closest$1=(ee,ne)=>isElement$2(ee)&&ee.closest(ne),getFocusedElement=ee=>document.activeElement,liesBetween=(ee,ne,oe)=>{const ae=closest$1(ee,ne),ie=ee&&findFirst(oe,ae),se=closest$1(ie,ne)===ae;return ae&&ie?ae===ee||ie===ee||se&&closest$1(closest$1(ee,oe),ne)!==ae:!1},removeElements=ee=>{each(createOrKeepArray(ee),ne=>{const oe=parent(ne);ne&&oe&&oe.removeChild(ne)})},appendChildren=(ee,ne)=>bind$1(removeElements,ee&&ne&&each(createOrKeepArray(ne),oe=>{oe&&ee.appendChild(oe)})),createDiv=ee=>{const ne=document.createElement("div");return setAttrs(ne,"class",ee),ne},createDOM=ee=>{const ne=createDiv();return ne.innerHTML=ee.trim(),each(contents(ne),oe=>removeElements(oe))},getCSSVal=(ee,ne)=>ee.getPropertyValue(ne)||ee[ne]||"",validFiniteNumber=ee=>{const ne=ee||0;return isFinite(ne)?ne:0},parseToZeroOrNumber=ee=>validFiniteNumber(parseFloat(ee||"")),roundCssNumber=ee=>Math.round(ee*1e4)/1e4,numberToCssPx=ee=>`${roundCssNumber(validFiniteNumber(ee))}px`;function setStyles(ee,ne){ee&&ne&&each(ne,(oe,ae)=>{try{const ie=ee.style,se=isNull(oe)||isBoolean$2(oe)?"":isNumber$2(oe)?numberToCssPx(oe):oe;ae.indexOf("--")===0?ie.setProperty(ae,se):ie[ae]=se}catch{}})}function getStyles(ee,ne,oe){const ae=isString$3(ne);let ie=ae?"":{};if(ee){const se=n.getComputedStyle(ee,oe)||ee.style;ie=ae?getCSSVal(se,ne):from(ne).reduce((de,fe)=>(de[fe]=getCSSVal(se,fe),de),ie)}return ie}const topRightBottomLeft=(ee,ne,oe)=>{const ae=ne?`${ne}-`:"",ie=oe?`-${oe}`:"",se=`${ae}top${ie}`,de=`${ae}right${ie}`,fe=`${ae}bottom${ie}`,ve=`${ae}left${ie}`,be=getStyles(ee,[se,de,fe,ve]);return{t:parseToZeroOrNumber(be[se]),r:parseToZeroOrNumber(be[de]),b:parseToZeroOrNumber(be[fe]),l:parseToZeroOrNumber(be[ve])}},getTrasformTranslateValue=(ee,ne)=>`translate${isObject$6(ee)?`(${ee.x},${ee.y})`:`Y(${ee})`}`,elementHasDimensions=ee=>!!(ee.offsetWidth||ee.offsetHeight||ee.getClientRects().length),z={w:0,h:0},getElmWidthHeightProperty=(ee,ne)=>ne?{w:ne[`${ee}Width`],h:ne[`${ee}Height`]}:z,getWindowSize=ee=>getElmWidthHeightProperty("inner",ee||n),I=bind$1(getElmWidthHeightProperty,"offset"),A=bind$1(getElmWidthHeightProperty,"client"),D=bind$1(getElmWidthHeightProperty,"scroll"),getFractionalSize=ee=>{const ne=parseFloat(getStyles(ee,$))||0,oe=parseFloat(getStyles(ee,C))||0;return{w:ne-e(ne),h:oe-e(oe)}},getBoundingClientRect$1=ee=>ee.getBoundingClientRect(),hasDimensions=ee=>!!ee&&elementHasDimensions(ee),domRectHasDimensions=ee=>!!(ee&&(ee[C]||ee[$])),domRectAppeared=(ee,ne)=>{const oe=domRectHasDimensions(ee);return!domRectHasDimensions(ne)&&oe},removeEventListener=(ee,ne,oe,ae)=>{each(getDomTokensArray(ne),ie=>{ee&&ee.removeEventListener(ie,oe,ae)})},addEventListener=(ee,ne,oe,ae)=>{var ie;const se=(ie=ae&&ae.H)!=null?ie:!0,de=ae&&ae.I||!1,fe=ae&&ae.A||!1,ve={passive:se,capture:de};return bind$1(runEachAndClear,getDomTokensArray(ne).map(be=>{const ye=fe?$e=>{removeEventListener(ee,be,ye,de),oe&&oe($e)}:oe;return ee&&ee.addEventListener(be,ye,ve),bind$1(removeEventListener,ee,be,ye,de)}))},stopPropagation$1=ee=>ee.stopPropagation(),preventDefault$1=ee=>ee.preventDefault(),stopAndPrevent=ee=>stopPropagation$1(ee)||preventDefault$1(ee),scrollElementTo=(ee,ne)=>{const{x:oe,y:ae}=isNumber$2(ne)?{x:ne,y:ne}:ne||{};isNumber$2(oe)&&(ee.scrollLeft=oe),isNumber$2(ae)&&(ee.scrollTop=ae)},getElementScroll=ee=>({x:ee.scrollLeft,y:ee.scrollTop}),getZeroScrollCoordinates=()=>({D:{x:0,y:0},M:{x:0,y:0}}),sanitizeScrollCoordinates=(ee,ne)=>{const{D:oe,M:ae}=ee,{w:ie,h:se}=ne,de=($e,we,Ee)=>{let _e=r($e)*Ee,Ce=r(we)*Ee;if(_e===Ce){const Pe=c($e),Ae=c(we);Ce=Pe>Ae?0:Ce,_e=Pe{const oe=(ae,ie)=>ae===0&&ae<=ie;return{x:oe(ee.x,ne.x),y:oe(ee.y,ne.y)}},getScrollCoordinatesPercent=({D:ee,M:ne},oe)=>{const ae=(ie,se,de)=>capNumber(0,1,(ie-de)/(ie-se)||0);return{x:ae(ee.x,ne.x,oe.x),y:ae(ee.y,ne.y,oe.y)}},focusElement=ee=>{ee&&ee.focus&&ee.focus({preventScroll:!0})},manageListener=(ee,ne)=>{each(createOrKeepArray(ne),ee)},createEventListenerHub=ee=>{const ne=new Map,oe=(se,de)=>{if(se){const fe=ne.get(se);manageListener(ve=>{fe&&fe[ve?"delete":"clear"](ve)},de)}else ne.forEach(fe=>{fe.clear()}),ne.clear()},ae=(se,de)=>{if(isString$3(se)){const be=ne.get(se)||new Set;return ne.set(se,be),manageListener(ye=>{isFunction$5(ye)&&be.add(ye)},de),bind$1(oe,se,de)}isBoolean$2(de)&&de&&oe();const fe=keys$1(se),ve=[];return each(fe,be=>{const ye=se[be];ye&&push(ve,ae(be,ye))}),bind$1(runEachAndClear,ve)},ie=(se,de)=>{each(from(ne.get(se)),fe=>{de&&!isEmptyArray(de)?fe.apply(0,de):fe()})};return ae(ee||{}),[ae,oe,ie]},opsStringify=ee=>JSON.stringify(ee,(ne,oe)=>{if(isFunction$5(oe))throw 0;return oe}),getPropByPath=(ee,ne)=>ee?`${ne}`.split(".").reduce((oe,ae)=>oe&&hasOwnProperty$e(oe,ae)?oe[ae]:void 0,ee):void 0,M={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},getOptionsDiff=(ee,ne)=>{const oe={},ae=concat(keys$1(ne),keys$1(ee));return each(ae,ie=>{const se=ee[ie],de=ne[ie];if(isObject$6(se)&&isObject$6(de))assignDeep(oe[ie]={},getOptionsDiff(se,de)),isEmptyObject$1(oe[ie])&&delete oe[ie];else if(hasOwnProperty$e(ne,ie)&&de!==se){let fe=!0;if(isArray$4(se)||isArray$4(de))try{opsStringify(se)===opsStringify(de)&&(fe=!1)}catch{}fe&&(oe[ie]=de)}}),oe},createOptionCheck=(ee,ne,oe)=>ae=>[getPropByPath(ee,ae),oe||getPropByPath(ne,ae)!==void 0],T="data-overlayscrollbars",k="os-environment",R=`${k}-scrollbar-hidden`,V=`${T}-initialize`,L="noClipping",U=`${T}-body`,P$1=T,N="host",q=`${T}-viewport`,B=m,F=O,j="arrange",X="measuring",Y="scrolling",W="scrollbarHidden",J="noContent",G=`${T}-padding`,K=`${T}-content`,Q="os-size-observer",Z=`${Q}-appear`,tt=`${Q}-listener`,et="os-trinsic-observer",ct="os-theme-none",rt="os-scrollbar",lt=`${rt}-rtl`,it=`${rt}-horizontal`,at=`${rt}-vertical`,ut=`${rt}-track`,_t=`${rt}-handle`,dt=`${rt}-visible`,ft=`${rt}-cornerless`,vt=`${rt}-interaction`,pt=`${rt}-unusable`,ht=`${rt}-auto-hide`,gt=`${ht}-hidden`,bt=`${rt}-wheel`,wt=`${ut}-interactive`,yt=`${_t}-interactive`;let St;const getNonce=()=>St,setNonce=ee=>{St=ee};let mt;const createEnvironment=()=>{const ee=(Oe,Re,Be)=>{appendChildren(document.body,Oe),appendChildren(document.body,Oe);const Me=A(Oe),Le=I(Oe),Xe=getFractionalSize(Re);return Be&&removeElements(Oe),{x:Le.h-Me.h+Xe.h,y:Le.w-Me.w+Xe.w}},ne=Oe=>{let Re=!1;const Be=addClass(Oe,R);try{Re=getStyles(Oe,"scrollbar-width")==="none"||getStyles(Oe,"display","::-webkit-scrollbar")==="none"}catch{}return Be(),Re},oe=`.${k}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${k} div{width:200%;height:200%;margin:10px 0}.${R}{scrollbar-width:none!important}.${R}::-webkit-scrollbar,.${R}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,ie=createDOM(`
`)[0],se=ie.firstChild,de=ie.lastChild,fe=getNonce();fe&&(de.nonce=fe);const[ve,,be]=createEventListenerHub(),[ye,$e]=createCache({o:ee(ie,se),i:equalXY},bind$1(ee,ie,se,!0)),[we]=$e(),Ee=ne(ie),_e={x:we.x===0,y:we.y===0},Ce={elements:{host:null,padding:!Ee,viewport:Oe=>Ee&&isBodyElement(Oe)&&Oe,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},Pe=assignDeep({},M),Ae=bind$1(assignDeep,{},Pe),ke=bind$1(assignDeep,{},Ce),Ne={T:we,k:_e,R:Ee,V:!!v,L:bind$1(ve,"r"),U:ke,P:Oe=>assignDeep(Ce,Oe)&&ke(),N:Ae,q:Oe=>assignDeep(Pe,Oe)&&Ae(),B:assignDeep({},Ce),F:assignDeep({},Pe)};if(removeAttrs(ie,"style"),removeElements(ie),addEventListener(n,"resize",()=>{be("r",[])}),isFunction$5(n.matchMedia)&&!Ee&&(!_e.x||!_e.y)){const Oe=Re=>{const Be=n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);addEventListener(Be,"change",()=>{Re(),Oe(Re)},{A:!0})};Oe(()=>{const[Re,Be]=ye();assignDeep(Ne.T,Re),be("r",[Be])})}return Ne},getEnvironment=()=>(mt||(mt=createEnvironment()),mt),resolveInitialization=(ee,ne)=>isFunction$5(ne)?ne.apply(0,ee):ne,staticInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$2(ae)?oe:ae;return resolveInitialization(ee,ie)||ne.apply(0,ee)},dynamicInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$2(ae)?oe:ae,se=resolveInitialization(ee,ie);return!!se&&(isHTMLElement$1(se)?se:ne.apply(0,ee))},cancelInitialization=(ee,ne)=>{const{nativeScrollbarsOverlaid:oe,body:ae}=ne||{},{k:ie,R:se,U:de}=getEnvironment(),{nativeScrollbarsOverlaid:fe,body:ve}=de().cancel,be=oe??fe,ye=isUndefined$2(ae)?ve:ae,$e=(ie.x||ie.y)&&be,we=ee&&(isNull(ye)?!se:ye);return!!$e||!!we},Ot=new WeakMap,addInstance=(ee,ne)=>{Ot.set(ee,ne)},removeInstance=ee=>{Ot.delete(ee)},getInstance$1=ee=>Ot.get(ee),createEventContentChange=(ee,ne,oe)=>{let ae=!1;const ie=oe?new WeakMap:!1,se=()=>{ae=!0},de=fe=>{if(ie&&oe){const ve=oe.map(be=>{const[ye,$e]=be||[];return[$e&&ye?(fe||find)(ye,ee):[],$e]});each(ve,be=>each(be[0],ye=>{const $e=be[1],we=ie.get(ye)||[];if(ee.contains(ye)&&$e){const _e=addEventListener(ye,$e,Ce=>{ae?(_e(),ie.delete(ye)):ne(Ce)});ie.set(ye,push(we,_e))}else runEachAndClear(we),ie.delete(ye)}))}};return de(),[se,de]},createDOMObserver=(ee,ne,oe,ae)=>{let ie=!1;const{j:se,X:de,Y:fe,W:ve,J:be,G:ye}=ae||{},$e=debounce$1(()=>ie&&oe(!0),{_:33,v:99}),[we,Ee]=createEventContentChange(ee,$e,fe),_e=se||[],Ce=de||[],Pe=concat(_e,Ce),Ae=(Ne,Oe)=>{if(!isEmptyArray(Oe)){const Re=be||noop$4,Be=ye||noop$4,Me=[],Le=[];let Xe=!1,Ke=!1;if(each(Oe,De=>{const{attributeName:je,target:He,type:qe,oldValue:ze,addedNodes:Fe,removedNodes:Ze}=De,ot=qe==="attributes",Nt=qe==="childList",Mt=ee===He,Ue=ot&&je,Pt=Ue&&getAttr(He,je||""),Dt=isString$3(Pt)?Pt:null,Ut=Ue&&ze!==Dt,Rt=inArray(Ce,je)&&Ut;if(ne&&(Nt||!Mt)){const Wt=ot&&Ut,Qe=Wt&&ve&&is(He,ve),Ft=(Qe?!Re(He,je,ze,Dt):!ot||Wt)&&!Be(De,!!Qe,ee,ae);each(Fe,jt=>push(Me,jt)),each(Ze,jt=>push(Me,jt)),Ke=Ke||Ft}!ne&&Mt&&Ut&&!Re(He,je,ze,Dt)&&(push(Le,je),Xe=Xe||Rt)}),Ee(De=>deduplicateArray(Me).reduce((je,He)=>(push(je,find(De,He)),is(He,De)?push(je,He):je),[])),ne)return!Ne&&Ke&&oe(!1),[!1];if(!isEmptyArray(Le)||Xe){const De=[deduplicateArray(Le),Xe];return!Ne&&oe.apply(0,De),De}}},ke=new _(bind$1(Ae,!1));return[()=>(ke.observe(ee,{attributes:!0,attributeOldValue:!0,attributeFilter:Pe,subtree:ne,childList:ne,characterData:ne}),ie=!0,()=>{ie&&(we(),ke.disconnect(),ie=!1)}),()=>{if(ie)return $e.m(),Ae(!0,ke.takeRecords())}]},$t$1={},Ct={},addPlugins=ee=>{each(ee,ne=>each(ne,(oe,ae)=>{$t$1[ae]=ne[ae]}))},registerPluginModuleInstances=(ee,ne,oe)=>keys$1(ee).map(ae=>{const{static:ie,instance:se}=ee[ae],[de,fe,ve]=oe||[],be=oe?se:ie;if(be){const ye=oe?be(de,fe,ne):be(ne);return(ve||Ct)[ae]=ye}}),getStaticPluginModuleInstance=ee=>Ct[ee],xt="__osOptionsValidationPlugin",Ht="__osSizeObserverPlugin",getShowNativeOverlaidScrollbars=(ee,ne)=>{const{k:oe}=ne,[ae,ie]=ee("showNativeOverlaidScrollbars");return[ae&&oe.x&&oe.y,ie]},overflowIsVisible=ee=>ee.indexOf(x$1)===0,createViewportOverflowState=(ee,ne)=>{const oe=(ie,se,de,fe)=>{const ve=ie===x$1?H:ie.replace(`${x$1}-`,""),be=overflowIsVisible(ie),ye=overflowIsVisible(de);return!se&&!fe?H:be&&ye?x$1:be?se&&fe?ve:se?x$1:H:se?ve:ye&&fe?x$1:H},ae={x:oe(ne.x,ee.x,ne.y,ee.y),y:oe(ne.y,ee.y,ne.x,ee.x)};return{K:ae,Z:{x:ae.x===E,y:ae.y===E}}},zt="__osScrollbarsHidingPlugin",At="__osClickScrollPlugin",createSizeObserver=(ee,ne,oe)=>{const{dt:ae}=oe||{},ie=getStaticPluginModuleInstance(Ht),[se]=createCache({o:!1,u:!0});return()=>{const de=[],ve=createDOM(`
`)[0],be=ve.firstChild,ye=$e=>{const we=$e instanceof ResizeObserverEntry;let Ee=!1,_e=!1;if(we){const[Ce,,Pe]=se($e.contentRect),Ae=domRectHasDimensions(Ce);_e=domRectAppeared(Ce,Pe),Ee=!_e&&!Ae}else _e=$e===!0;Ee||ne({ft:!0,dt:_e})};if(f){const $e=new f(we=>ye(we.pop()));$e.observe(be),push(de,()=>{$e.disconnect()})}else if(ie){const[$e,we]=ie(be,ye,ae);push(de,concat([addClass(ve,Z),addEventListener(ve,"animationstart",$e)],we))}else return noop$4;return bind$1(runEachAndClear,push(de,appendChildren(ee,ve)))}},createTrinsicObserver=(ee,ne)=>{let oe;const ae=ve=>ve.h===0||ve.isIntersecting||ve.intersectionRatio>0,ie=createDiv(et),[se]=createCache({o:!1}),de=(ve,be)=>{if(ve){const ye=se(ae(ve)),[,$e]=ye;return $e&&!be&&ne(ye)&&[ye]}},fe=(ve,be)=>de(be.pop(),ve);return[()=>{const ve=[];if(d)oe=new d(bind$1(fe,!1),{root:ee}),oe.observe(ie),push(ve,()=>{oe.disconnect()});else{const be=()=>{const ye=I(ie);de(ye)};push(ve,createSizeObserver(ie,be)()),be()}return bind$1(runEachAndClear,push(ve,appendChildren(ee,ie)))},()=>oe&&fe(!0,oe.takeRecords())]},createObserversSetup=(ee,ne,oe,ae)=>{let ie,se,de,fe,ve,be;const ye=`[${P$1}]`,$e=`[${q}]`,we=["id","class","style","open","wrap","cols","rows"],{vt:Ee,ht:_e,ot:Ce,gt:Pe,bt:Ae,nt:ke,wt:Ne,yt:Oe,St:Re,Ot:Be}=ee,Me=Rt=>getStyles(Rt,"direction")==="rtl",Le={$t:!1,ct:Me(Ee)},Xe=getEnvironment(),Ke=getStaticPluginModuleInstance(zt),[De]=createCache({i:equalWH,o:{w:0,h:0}},()=>{const Rt=Ke&&Ke.tt(ee,ne,Le,Xe,oe).ut,Qe=!(Ne&&ke)&&hasAttrClass(_e,P$1,L),It=!ke&&Oe(j),Ft=It&&getElementScroll(Pe),jt=Ft&&Be(),tn=Re(X,Qe),Zt=It&&Rt&&Rt()[0],nt=D(Ce),Et=getFractionalSize(Ce);return Zt&&Zt(),scrollElementTo(Pe,Ft),jt&&jt(),Qe&&tn(),{w:nt.w+Et.w,h:nt.h+Et.h}}),je=debounce$1(ae,{_:()=>ie,v:()=>se,S(Rt,Wt){const[Qe]=Rt,[It]=Wt;return[concat(keys$1(Qe),keys$1(It)).reduce((Ft,jt)=>(Ft[jt]=Qe[jt]||It[jt],Ft),{})]}}),He=Rt=>{const Wt=Me(Ee);assignDeep(Rt,{Ct:be!==Wt}),assignDeep(Le,{ct:Wt}),be=Wt},qe=(Rt,Wt)=>{const[Qe,It]=Rt,Ft={xt:It};return assignDeep(Le,{$t:Qe}),!Wt&&ae(Ft),Ft},ze=({ft:Rt,dt:Wt})=>{const It=!(Rt&&!Wt)&&Xe.R?je:ae,Ft={ft:Rt||Wt,dt:Wt};He(Ft),It(Ft)},Fe=(Rt,Wt)=>{const[,Qe]=De(),It={Ht:Qe};return He(It),Qe&&!Wt&&(Rt?ae:je)(It),It},Ze=(Rt,Wt,Qe)=>{const It={Et:Wt};return He(It),Wt&&!Qe&&je(It),It},[ot,Nt]=Ae?createTrinsicObserver(_e,qe):[],Mt=!ke&&createSizeObserver(_e,ze,{dt:!0}),[Ue,Pt]=createDOMObserver(_e,!1,Ze,{X:we,j:we}),Dt=ke&&f&&new f(Rt=>{const Wt=Rt[Rt.length-1].contentRect;ze({ft:!0,dt:domRectAppeared(Wt,ve)}),ve=Wt}),Ut=debounce$1(()=>{const[,Rt]=De();ae({Ht:Rt})},{_:222,p:!0});return[()=>{Dt&&Dt.observe(_e);const Rt=Mt&&Mt(),Wt=ot&&ot(),Qe=Ue(),It=Xe.L(Ft=>{Ft?je({zt:Ft}):Ut()});return()=>{Dt&&Dt.disconnect(),Rt&&Rt(),Wt&&Wt(),fe&&fe(),Qe(),It()}},({It:Rt,At:Wt,Dt:Qe})=>{const It={},[Ft]=Rt("update.ignoreMutation"),[jt,tn]=Rt("update.attributes"),[Zt,nt]=Rt("update.elementEvents"),[Et,Bt]=Rt("update.debounce"),Xt=nt||tn,Yt=Wt||Qe,st=Tt=>isFunction$5(Ft)&&Ft(Tt);if(Xt){de&&de(),fe&&fe();const[Tt,Vt]=createDOMObserver(Ae||Ce,!0,Fe,{j:concat(we,jt||[]),Y:Zt,W:ye,G:(Kt,Gt)=>{const{target:Qt,attributeName:Lt}=Kt;return(!Gt&&Lt&&!ke?liesBetween(Qt,ye,$e):!1)||!!closest$1(Qt,`.${rt}`)||!!st(Kt)}});fe=Tt(),de=Vt}if(Bt)if(je.m(),isArray$4(Et)){const Tt=Et[0],Vt=Et[1];ie=isNumber$2(Tt)&&Tt,se=isNumber$2(Vt)&&Vt}else isNumber$2(Et)?(ie=Et,se=!1):(ie=!1,se=!1);if(Yt){const Tt=Pt(),Vt=Nt&&Nt(),Kt=de&&de();Tt&&assignDeep(It,Ze(Tt[0],Tt[1],Yt)),Vt&&assignDeep(It,qe(Vt[0],Yt)),Kt&&assignDeep(It,Fe(Kt[0],Yt))}return He(It),It},Le]},createScrollbarsSetupElements=(ee,ne,oe,ae)=>{const ie="--os-viewport-percent",se="--os-scroll-percent",de="--os-scroll-direction",{U:fe}=getEnvironment(),{scrollbars:ve}=fe(),{slot:be}=ve,{vt:ye,ht:$e,ot:we,Mt:Ee,gt:_e,wt:Ce,nt:Pe}=ne,{scrollbars:Ae}=Ee?{}:ee,{slot:ke}=Ae||{},Ne=[],Oe=[],Re=[],Be=dynamicInitializationElement([ye,$e,we],()=>Pe&&Ce?ye:$e,be,ke),Me=Ue=>{if(v){const Pt=new v({source:_e,axis:Ue});return{kt:Ut=>{const Rt=Ut.Tt.animate({clear:["left"],[se]:[0,1]},{timeline:Pt});return()=>Rt.cancel()}}}},Le={x:Me("x"),y:Me("y")},Xe=()=>{const{Rt:Ue,Vt:Pt}=oe,Dt=(Ut,Rt)=>capNumber(0,1,Ut/(Ut+Rt)||0);return{x:Dt(Pt.x,Ue.x),y:Dt(Pt.y,Ue.y)}},Ke=(Ue,Pt,Dt)=>{const Ut=Dt?addClass:removeClass;each(Ue,Rt=>{Ut(Rt.Tt,Pt)})},De=(Ue,Pt)=>{each(Ue,Dt=>{const[Ut,Rt]=Pt(Dt);setStyles(Ut,Rt)})},je=(Ue,Pt,Dt)=>{const Ut=isBoolean$2(Dt),Rt=Ut?Dt:!0,Wt=Ut?!Dt:!0;Rt&&Ke(Oe,Ue,Pt),Wt&&Ke(Re,Ue,Pt)},He=()=>{const Ue=Xe(),Pt=Dt=>Ut=>[Ut.Tt,{[ie]:roundCssNumber(Dt)+""}];De(Oe,Pt(Ue.x)),De(Re,Pt(Ue.y))},qe=()=>{if(!v){const{Lt:Ue}=oe,Pt=getScrollCoordinatesPercent(Ue,getElementScroll(_e)),Dt=Ut=>Rt=>[Rt.Tt,{[se]:roundCssNumber(Ut)+""}];De(Oe,Dt(Pt.x)),De(Re,Dt(Pt.y))}},ze=()=>{const{Lt:Ue}=oe,Pt=isDefaultDirectionScrollCoordinates(Ue),Dt=Ut=>Rt=>[Rt.Tt,{[de]:Ut?"0":"1"}];De(Oe,Dt(Pt.x)),De(Re,Dt(Pt.y))},Fe=()=>{if(Pe&&!Ce){const{Rt:Ue,Lt:Pt}=oe,Dt=isDefaultDirectionScrollCoordinates(Pt),Ut=getScrollCoordinatesPercent(Pt,getElementScroll(_e)),Rt=Wt=>{const{Tt:Qe}=Wt,It=parent(Qe)===we&&Qe,Ft=(jt,tn,Zt)=>{const nt=tn*jt;return numberToCssPx(Zt?nt:-nt)};return[It,It&&{transform:getTrasformTranslateValue({x:Ft(Ut.x,Ue.x,Dt.x),y:Ft(Ut.y,Ue.y,Dt.y)})}]};De(Oe,Rt),De(Re,Rt)}},Ze=Ue=>{const Pt=Ue?"x":"y",Ut=createDiv(`${rt} ${Ue?it:at}`),Rt=createDiv(ut),Wt=createDiv(_t),Qe={Tt:Ut,Ut:Rt,Pt:Wt},It=Le[Pt];return push(Ue?Oe:Re,Qe),push(Ne,[appendChildren(Ut,Rt),appendChildren(Rt,Wt),bind$1(removeElements,Ut),It&&It.kt(Qe),ae(Qe,je,Ue)]),Qe},ot=bind$1(Ze,!0),Nt=bind$1(Ze,!1),Mt=()=>(appendChildren(Be,Oe[0].Tt),appendChildren(Be,Re[0].Tt),bind$1(runEachAndClear,Ne));return ot(),Nt(),[{Nt:He,qt:qe,Bt:ze,Ft:Fe,jt:je,Xt:{Yt:Oe,Wt:ot,Jt:bind$1(De,Oe)},Gt:{Yt:Re,Wt:Nt,Jt:bind$1(De,Re)}},Mt]},createScrollbarsSetupEvents=(ee,ne,oe,ae)=>(ie,se,de)=>{const{ht:fe,ot:ve,nt:be,gt:ye,Kt:$e,Ot:we}=ne,{Tt:Ee,Ut:_e,Pt:Ce}=ie,[Pe,Ae]=selfClearTimeout(333),[ke,Ne]=selfClearTimeout(444),Oe=Me=>{isFunction$5(ye.scrollBy)&&ye.scrollBy({behavior:"smooth",left:Me.x,top:Me.y})},Re=()=>{const Me="pointerup pointercancel lostpointercapture",Le=`client${de?"X":"Y"}`,Xe=de?$:C,Ke=de?"left":"top",De=de?"w":"h",je=de?"x":"y",He=(ze,Fe)=>Ze=>{const{Rt:ot}=oe,Nt=I(_e)[De]-I(Ce)[De],Ue=Fe*Ze/Nt*ot[je];scrollElementTo(ye,{[je]:ze+Ue})},qe=[];return addEventListener(_e,"pointerdown",ze=>{const Fe=closest$1(ze.target,`.${_t}`)===Ce,Ze=Fe?Ce:_e,ot=ee.scrollbars,Nt=ot[Fe?"dragScroll":"clickScroll"],{button:Mt,isPrimary:Ue,pointerType:Pt}=ze,{pointers:Dt}=ot;if(Mt===0&&Ue&&Nt&&(Dt||[]).includes(Pt)){runEachAndClear(qe),Ne();const Rt=!Fe&&(ze.shiftKey||Nt==="instant"),Wt=bind$1(getBoundingClientRect$1,Ce),Qe=bind$1(getBoundingClientRect$1,_e),It=(Gt,Qt)=>(Gt||Wt())[Ke]-(Qt||Qe())[Ke],Ft=e(getBoundingClientRect$1(ye)[Xe])/I(ye)[De]||1,jt=He(getElementScroll(ye)[je],1/Ft),tn=ze[Le],Zt=Wt(),nt=Qe(),Et=Zt[Xe],Bt=It(Zt,nt)+Et/2,Xt=tn-nt[Ke],Yt=Fe?0:Xt-Bt,st=Gt=>{runEachAndClear(Kt),Ze.releasePointerCapture(Gt.pointerId)},Tt=Fe||Rt,Vt=we(),Kt=[addEventListener($e,Me,st),addEventListener($e,"selectstart",Gt=>preventDefault$1(Gt),{H:!1}),addEventListener(_e,Me,st),Tt&&addEventListener(_e,"pointermove",Gt=>jt(Yt+(Gt[Le]-tn))),Tt&&(()=>{const Gt=getElementScroll(ye);Vt();const Qt=getElementScroll(ye),Lt={x:Qt.x-Gt.x,y:Qt.y-Gt.y};(c(Lt.x)>3||c(Lt.y)>3)&&(we(),scrollElementTo(ye,Gt),Oe(Lt),ke(Vt))})];if(Ze.setPointerCapture(ze.pointerId),Rt)jt(Yt);else if(!Fe){const Gt=getStaticPluginModuleInstance(At);if(Gt){const Qt=Gt(jt,Yt,Et,Lt=>{Lt?Vt():push(Kt,Vt)});push(Kt,Qt),push(qe,bind$1(Qt,!0))}}}})};let Be=!0;return bind$1(runEachAndClear,[addEventListener(Ce,"pointermove pointerleave",ae),addEventListener(Ee,"pointerenter",()=>{se(vt,!0)}),addEventListener(Ee,"pointerleave pointercancel",()=>{se(vt,!1)}),!be&&addEventListener(Ee,"mousedown",()=>{const Me=getFocusedElement();(hasAttr(Me,q)||hasAttr(Me,P$1)||Me===document.body)&&a(bind$1(focusElement,ve),25)}),addEventListener(Ee,"wheel",Me=>{const{deltaX:Le,deltaY:Xe,deltaMode:Ke}=Me;Be&&Ke===0&&parent(Ee)===fe&&Oe({x:Le,y:Xe}),Be=!1,se(bt,!0),Pe(()=>{Be=!0,se(bt)}),preventDefault$1(Me)},{H:!1,I:!0}),addEventListener(Ee,"pointerdown",bind$1(addEventListener,$e,"click",stopAndPrevent,{A:!0,I:!0,H:!1}),{I:!0}),Re(),Ae,Ne])},createScrollbarsSetup=(ee,ne,oe,ae,ie,se)=>{let de,fe,ve,be,ye,$e=noop$4,we=0;const Ee=Ue=>Ue.pointerType==="mouse",[_e,Ce]=selfClearTimeout(),[Pe,Ae]=selfClearTimeout(100),[ke,Ne]=selfClearTimeout(100),[Oe,Re]=selfClearTimeout(()=>we),[Be,Me]=createScrollbarsSetupElements(ee,ie,ae,createScrollbarsSetupEvents(ne,ie,ae,Ue=>Ee(Ue)&&Ze())),{ht:Le,Qt:Xe,wt:Ke}=ie,{jt:De,Nt:je,qt:He,Bt:qe,Ft:ze}=Be,Fe=(Ue,Pt)=>{if(Re(),Ue)De(gt);else{const Dt=bind$1(De,gt,!0);we>0&&!Pt?Oe(Dt):Dt()}},Ze=()=>{(ve?!de:!be)&&(Fe(!0),Pe(()=>{Fe(!1)}))},ot=Ue=>{De(ht,Ue,!0),De(ht,Ue,!1)},Nt=Ue=>{Ee(Ue)&&(de=ve,ve&&Fe(!0))},Mt=[Re,Ae,Ne,Ce,()=>$e(),addEventListener(Le,"pointerover",Nt,{A:!0}),addEventListener(Le,"pointerenter",Nt),addEventListener(Le,"pointerleave",Ue=>{Ee(Ue)&&(de=!1,ve&&Fe(!1))}),addEventListener(Le,"pointermove",Ue=>{Ee(Ue)&&fe&&Ze()}),addEventListener(Xe,"scroll",Ue=>{_e(()=>{He(),Ze()}),se(Ue),ze()})];return[()=>bind$1(runEachAndClear,push(Mt,Me())),({It:Ue,Dt:Pt,Zt:Dt,tn:Ut})=>{const{nn:Rt,sn:Wt,en:Qe,cn:It}=Ut||{},{Ct:Ft,dt:jt}=Dt||{},{ct:tn}=oe,{k:Zt}=getEnvironment(),{K:nt,rn:Et}=ae,[Bt,Xt]=Ue("showNativeOverlaidScrollbars"),[Yt,st]=Ue("scrollbars.theme"),[Tt,Vt]=Ue("scrollbars.visibility"),[Kt,Gt]=Ue("scrollbars.autoHide"),[Qt,Lt]=Ue("scrollbars.autoHideSuspend"),[qt]=Ue("scrollbars.autoHideDelay"),[nn,on]=Ue("scrollbars.dragScroll"),[un,cn]=Ue("scrollbars.clickScroll"),[fn,mn]=Ue("overflow"),gn=jt&&!Pt,hn=Et.x||Et.y,yn=Rt||Wt||It||Ft||Pt,bn=Qe||Vt||mn,pn=Bt&&Zt.x&&Zt.y,vn=(wn,$n,Cn)=>{const _n=wn.includes(E)&&(Tt===x$1||Tt==="auto"&&$n===E);return De(dt,_n,Cn),_n};if(we=qt,gn&&(Qt&&hn?(ot(!1),$e(),ke(()=>{$e=addEventListener(Xe,"scroll",bind$1(ot,!0),{A:!0})})):ot(!0)),Xt&&De(ct,pn),st&&(De(ye),De(Yt,!0),ye=Yt),Lt&&!Qt&&ot(!0),Gt&&(fe=Kt==="move",ve=Kt==="leave",be=Kt==="never",Fe(be,!0)),on&&De(yt,nn),cn&&De(wt,!!un),bn){const wn=vn(fn.x,nt.x,!0),$n=vn(fn.y,nt.y,!1);De(ft,!(wn&&$n))}yn&&(He(),je(),ze(),It&&qe(),De(pt,!Et.x,!0),De(pt,!Et.y,!1),De(lt,tn&&!Ke))},{},Be]},createStructureSetupElements=ee=>{const ne=getEnvironment(),{U:oe,R:ae}=ne,{elements:ie}=oe(),{padding:se,viewport:de,content:fe}=ie,ve=isHTMLElement$1(ee),be=ve?{}:ee,{elements:ye}=be,{padding:$e,viewport:we,content:Ee}=ye||{},_e=ve?ee:be.target,Ce=isBodyElement(_e),Pe=_e.ownerDocument,Ae=Pe.documentElement,ke=()=>Pe.defaultView||n,Ne=bind$1(staticInitializationElement,[_e]),Oe=bind$1(dynamicInitializationElement,[_e]),Re=bind$1(createDiv,""),Be=bind$1(Ne,Re,de),Me=bind$1(Oe,Re,fe),Le=Et=>{const Bt=I(Et),Xt=D(Et),Yt=getStyles(Et,m),st=getStyles(Et,O);return Xt.w-Bt.w>0&&!overflowIsVisible(Yt)||Xt.h-Bt.h>0&&!overflowIsVisible(st)},Xe=Be(we),Ke=Xe===_e,De=Ke&&Ce,je=!Ke&&Me(Ee),He=!Ke&&Xe===je,qe=De?Ae:Xe,ze=De?qe:_e,Fe=!Ke&&Oe(Re,se,$e),Ze=!He&&je,ot=[Ze,qe,Fe,ze].map(Et=>isHTMLElement$1(Et)&&!parent(Et)&&Et),Nt=Et=>Et&&inArray(ot,Et),Mt=!Nt(qe)&&Le(qe)?qe:_e,Ue=De?Ae:qe,Dt={vt:_e,ht:ze,ot:qe,ln:Fe,bt:Ze,gt:Ue,Qt:De?Pe:qe,an:Ce?Ae:Mt,Kt:Pe,wt:Ce,Mt:ve,nt:Ke,un:ke,yt:Et=>hasAttrClass(qe,q,Et),St:(Et,Bt)=>addRemoveAttrClass(qe,q,Et,Bt),Ot:()=>addRemoveAttrClass(Ue,q,Y,!0)},{vt:Ut,ht:Rt,ln:Wt,ot:Qe,bt:It}=Dt,Ft=[()=>{removeAttrs(Rt,[P$1,V]),removeAttrs(Ut,V),Ce&&removeAttrs(Ae,[V,P$1])}];let jt=contents([It,Qe,Wt,Rt,Ut].find(Et=>Et&&!Nt(Et)));const tn=De?Ut:It||Qe,Zt=bind$1(runEachAndClear,Ft);return[Dt,()=>{const Et=ke(),Bt=getFocusedElement(),Xt=Kt=>{appendChildren(parent(Kt),contents(Kt)),removeElements(Kt)},Yt=Kt=>addEventListener(Kt,"focusin focusout focus blur",stopAndPrevent,{I:!0,H:!1}),st="tabindex",Tt=getAttr(Qe,st),Vt=Yt(Bt);return setAttrs(Rt,P$1,Ke?"":N),setAttrs(Wt,G,""),setAttrs(Qe,q,""),setAttrs(It,K,""),Ke||(setAttrs(Qe,st,Tt||"-1"),Ce&&setAttrs(Ae,U,"")),appendChildren(tn,jt),appendChildren(Rt,Wt),appendChildren(Wt||Rt,!Ke&&Qe),appendChildren(Qe,It),push(Ft,[Vt,()=>{const Kt=getFocusedElement(),Gt=Nt(Qe),Qt=Gt&&Kt===Qe?Ut:Kt,Lt=Yt(Qt);removeAttrs(Wt,G),removeAttrs(It,K),removeAttrs(Qe,q),Ce&&removeAttrs(Ae,U),Tt?setAttrs(Qe,st,Tt):removeAttrs(Qe,st),Nt(It)&&Xt(It),Gt&&Xt(Qe),Nt(Wt)&&Xt(Wt),focusElement(Qt),Lt()}]),ae&&!Ke&&(addAttrClass(Qe,q,W),push(Ft,bind$1(removeAttrs,Qe,q))),focusElement(!Ke&&Ce&&Bt===Ut&&Et.top===Et?Qe:Bt),Vt(),jt=0,Zt},Zt]},createTrinsicUpdateSegment=({bt:ee})=>({Zt:ne,_n:oe,Dt:ae})=>{const{xt:ie}=ne||{},{$t:se}=oe;ee&&(ie||ae)&&setStyles(ee,{[C]:se&&"100%"})},createPaddingUpdateSegment=({ht:ee,ln:ne,ot:oe,nt:ae},ie)=>{const[se,de]=createCache({i:equalTRBL,o:topRightBottomLeft()},bind$1(topRightBottomLeft,ee,"padding",""));return({It:fe,Zt:ve,_n:be,Dt:ye})=>{let[$e,we]=de(ye);const{R:Ee}=getEnvironment(),{ft:_e,Ht:Ce,Ct:Pe}=ve||{},{ct:Ae}=be,[ke,Ne]=fe("paddingAbsolute");(_e||we||(ye||Ce))&&([$e,we]=se(ye));const Re=!ae&&(Ne||Pe||we);if(Re){const Be=!ke||!ne&&!Ee,Me=$e.r+$e.l,Le=$e.t+$e.b,Xe={[y]:Be&&!Ae?-Me:0,[S]:Be?-Le:0,[w]:Be&&Ae?-Me:0,top:Be?-$e.t:0,right:Be?Ae?-$e.r:"auto":0,left:Be?Ae?"auto":-$e.l:0,[$]:Be&&`calc(100% + ${Me}px)`},Ke={[p]:Be?$e.t:0,[h]:Be?$e.r:0,[b]:Be?$e.b:0,[g$1]:Be?$e.l:0};setStyles(ne||oe,Xe),setStyles(oe,Ke),assignDeep(ie,{ln:$e,dn:!Be,rt:ne?Ke:assignDeep({},Xe,Ke)})}return{fn:Re}}},createOverflowUpdateSegment=(ee,ne)=>{const oe=getEnvironment(),{ht:ae,ln:ie,ot:se,nt:de,Qt:fe,gt:ve,wt:be,St:ye,un:$e}=ee,{R:we}=oe,Ee=be&&de,_e=bind$1(o,0),Ce={display:()=>!1,direction:Pt=>Pt!=="ltr",flexDirection:Pt=>Pt.endsWith("-reverse"),writingMode:Pt=>Pt!=="horizontal-tb"},Pe=keys$1(Ce),Ae={i:equalWH,o:{w:0,h:0}},ke={i:equalXY,o:{}},Ne=Pt=>{ye(X,!Ee&&Pt)},Oe=Pt=>{if(!Pe.some(tn=>{const Zt=Pt[tn];return Zt&&Ce[tn](Zt)}))return{D:{x:0,y:0},M:{x:1,y:1}};Ne(!0);const Ut=getElementScroll(ve),Rt=ye(J,!0),Wt=addEventListener(fe,E,tn=>{const Zt=getElementScroll(ve);tn.isTrusted&&Zt.x===Ut.x&&Zt.y===Ut.y&&stopPropagation$1(tn)},{I:!0,A:!0});scrollElementTo(ve,{x:0,y:0}),Rt();const Qe=getElementScroll(ve),It=D(ve);scrollElementTo(ve,{x:It.w,y:It.h});const Ft=getElementScroll(ve);scrollElementTo(ve,{x:Ft.x-Qe.x<1&&-It.w,y:Ft.y-Qe.y<1&&-It.h});const jt=getElementScroll(ve);return scrollElementTo(ve,Ut),i(()=>Wt()),{D:Qe,M:jt}},Re=(Pt,Dt)=>{const Ut=n.devicePixelRatio%1!==0?1:0,Rt={w:_e(Pt.w-Dt.w),h:_e(Pt.h-Dt.h)};return{w:Rt.w>Ut?Rt.w:0,h:Rt.h>Ut?Rt.h:0}},[Be,Me]=createCache(Ae,bind$1(getFractionalSize,se)),[Le,Xe]=createCache(Ae,bind$1(D,se)),[Ke,De]=createCache(Ae),[je]=createCache(ke),[He,qe]=createCache(Ae),[ze]=createCache(ke),[Fe]=createCache({i:(Pt,Dt)=>equal(Pt,Dt,Pe),o:{}},()=>hasDimensions(se)?getStyles(se,Pe):{}),[Ze,ot]=createCache({i:(Pt,Dt)=>equalXY(Pt.D,Dt.D)&&equalXY(Pt.M,Dt.M),o:getZeroScrollCoordinates()}),Nt=getStaticPluginModuleInstance(zt),Mt=(Pt,Dt)=>`${Dt?B:F}${capitalizeFirstLetter(Pt)}`,Ue=Pt=>{const Dt=Rt=>[x$1,H,E].map(Wt=>Mt(Wt,Rt)),Ut=Dt(!0).concat(Dt()).join(" ");ye(Ut),ye(keys$1(Pt).map(Rt=>Mt(Pt[Rt],Rt==="x")).join(" "),!0)};return({It:Pt,Zt:Dt,_n:Ut,Dt:Rt},{fn:Wt})=>{const{ft:Qe,Ht:It,Ct:Ft,dt:jt,zt:tn}=Dt||{},Zt=Nt&&Nt.tt(ee,ne,Ut,oe,Pt),{it:nt,ut:Et,_t:Bt}=Zt||{},[Xt,Yt]=getShowNativeOverlaidScrollbars(Pt,oe),[st,Tt]=Pt("overflow"),Vt=overflowIsVisible(st.x),Kt=overflowIsVisible(st.y),Gt=!0;let Qt=Me(Rt),Lt=Xe(Rt),qt=De(Rt),nn=qe(Rt);Yt&&we&&ye(W,!Xt);{hasAttrClass(ae,P$1,L)&&Ne(!0);const[An]=Et?Et():[],[sn]=Qt=Be(Rt),[Sn]=Lt=Le(Rt),xn=A(se),kn=Ee&&getWindowSize($e()),Un={w:_e(Sn.w+sn.w),h:_e(Sn.h+sn.h)},Ln={w:_e((kn?kn.w:xn.w+_e(xn.w-Sn.w))+sn.w),h:_e((kn?kn.h:xn.h+_e(xn.h-Sn.h))+sn.h)};An&&An(),nn=He(Ln),qt=Ke(Re(Un,Ln),Rt)}const[on,un]=nn,[cn,fn]=qt,[mn,gn]=Lt,[hn,yn]=Qt,[bn,pn]=je({x:cn.w>0,y:cn.h>0}),vn=Vt&&Kt&&(bn.x||bn.y)||Vt&&bn.x&&!bn.y||Kt&&bn.y&&!bn.x,wn=Wt||Ft||tn||yn||gn||un||fn||Tt||Yt||Gt,$n=createViewportOverflowState(bn,st),[Cn,_n]=ze($n.K),[Rn,In]=Fe(Rt),Tn=Ft||jt||In||pn||Rt,[Pn,Dn]=Tn?Ze(Oe(Rn),Rt):ot();return wn&&(_n&&Ue($n.K),Bt&&nt&&setStyles(se,Bt($n,Ut,nt($n,mn,hn)))),Ne(!1),addRemoveAttrClass(ae,P$1,L,vn),addRemoveAttrClass(ie,G,L,vn),assignDeep(ne,{K:Cn,Vt:{x:on.w,y:on.h},Rt:{x:cn.w,y:cn.h},rn:bn,Lt:sanitizeScrollCoordinates(Pn,cn)}),{en:_n,nn:un,sn:fn,cn:Dn||fn,vn:Tn}}},createStructureSetup=ee=>{const[ne,oe,ae]=createStructureSetupElements(ee),ie={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[y]:0,[S]:0,[w]:0,[p]:0,[h]:0,[b]:0,[g$1]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:H,y:H},rn:{x:!1,y:!1},Lt:getZeroScrollCoordinates()},{vt:se,gt:de,nt:fe,Ot:ve}=ne,{R:be,k:ye}=getEnvironment(),$e=!be&&(ye.x||ye.y),we=[createTrinsicUpdateSegment(ne),createPaddingUpdateSegment(ne,ie),createOverflowUpdateSegment(ne,ie)];return[oe,Ee=>{const _e={},Pe=$e&&getElementScroll(de),Ae=Pe&&ve();return each(we,ke=>{assignDeep(_e,ke(Ee,_e)||{})}),scrollElementTo(de,Pe),Ae&&Ae(),!fe&&scrollElementTo(se,0),_e},ie,ne,ae]},createSetups=(ee,ne,oe,ae,ie)=>{let se=!1;const de=createOptionCheck(ne,{}),[fe,ve,be,ye,$e]=createStructureSetup(ee),[we,Ee,_e]=createObserversSetup(ye,be,de,Oe=>{Ne({},Oe)}),[Ce,Pe,,Ae]=createScrollbarsSetup(ee,ne,_e,be,ye,ie),ke=Oe=>keys$1(Oe).some(Re=>!!Oe[Re]),Ne=(Oe,Re)=>{if(oe())return!1;const{pn:Be,Dt:Me,At:Le,hn:Xe}=Oe,Ke=Be||{},De=!!Me||!se,je={It:createOptionCheck(ne,Ke,De),pn:Ke,Dt:De};if(Xe)return Pe(je),!1;const He=Re||Ee(assignDeep({},je,{At:Le})),qe=ve(assignDeep({},je,{_n:_e,Zt:He}));Pe(assignDeep({},je,{Zt:He,tn:qe}));const ze=ke(He),Fe=ke(qe),Ze=ze||Fe||!isEmptyObject$1(Ke)||De;return se=!0,Ze&&ae(Oe,{Zt:He,tn:qe}),Ze};return[()=>{const{an:Oe,gt:Re,Ot:Be}=ye,Me=getElementScroll(Oe),Le=[we(),fe(),Ce()],Xe=Be();return scrollElementTo(Re,Me),Xe(),bind$1(runEachAndClear,Le)},Ne,()=>({gn:_e,bn:be}),{wn:ye,yn:Ae},$e]},OverlayScrollbars=(ee,ne,oe)=>{const{N:ae}=getEnvironment(),ie=isHTMLElement$1(ee),se=ie?ee:ee.target,de=getInstance$1(se);if(ne&&!de){let fe=!1;const ve=[],be={},ye=Ke=>{const De=removeUndefinedProperties(Ke),je=getStaticPluginModuleInstance(xt);return je?je(De,!0):De},$e=assignDeep({},ae(),ye(ne)),[we,Ee,_e]=createEventListenerHub(),[Ce,Pe,Ae]=createEventListenerHub(oe),ke=(Ke,De)=>{Ae(Ke,De),_e(Ke,De)},[Ne,Oe,Re,Be,Me]=createSetups(ee,$e,()=>fe,({pn:Ke,Dt:De},{Zt:je,tn:He})=>{const{ft:qe,Ct:ze,xt:Fe,Ht:Ze,Et:ot,dt:Nt}=je,{nn:Mt,sn:Ue,en:Pt,cn:Dt}=He;ke("updated",[Xe,{updateHints:{sizeChanged:!!qe,directionChanged:!!ze,heightIntrinsicChanged:!!Fe,overflowEdgeChanged:!!Mt,overflowAmountChanged:!!Ue,overflowStyleChanged:!!Pt,scrollCoordinatesChanged:!!Dt,contentMutation:!!Ze,hostMutation:!!ot,appear:!!Nt},changedOptions:Ke||{},force:!!De}])},Ke=>ke("scroll",[Xe,Ke])),Le=Ke=>{removeInstance(se),runEachAndClear(ve),fe=!0,ke("destroyed",[Xe,Ke]),Ee(),Pe()},Xe={options(Ke,De){if(Ke){const je=De?ae():{},He=getOptionsDiff($e,assignDeep(je,ye(Ke)));isEmptyObject$1(He)||(assignDeep($e,He),Oe({pn:He}))}return assignDeep({},$e)},on:Ce,off:(Ke,De)=>{Ke&&De&&Pe(Ke,De)},state(){const{gn:Ke,bn:De}=Re(),{ct:je}=Ke,{Vt:He,Rt:qe,K:ze,rn:Fe,ln:Ze,dn:ot,Lt:Nt}=De;return assignDeep({},{overflowEdge:He,overflowAmount:qe,overflowStyle:ze,hasOverflow:Fe,scrollCoordinates:{start:Nt.D,end:Nt.M},padding:Ze,paddingAbsolute:ot,directionRTL:je,destroyed:fe})},elements(){const{vt:Ke,ht:De,ln:je,ot:He,bt:qe,gt:ze,Qt:Fe}=Be.wn,{Xt:Ze,Gt:ot}=Be.yn,Nt=Ue=>{const{Pt,Ut:Dt,Tt:Ut}=Ue;return{scrollbar:Ut,track:Dt,handle:Pt}},Mt=Ue=>{const{Yt:Pt,Wt:Dt}=Ue,Ut=Nt(Pt[0]);return assignDeep({},Ut,{clone:()=>{const Rt=Nt(Dt());return Oe({hn:!0}),Rt}})};return assignDeep({},{target:Ke,host:De,padding:je||He,viewport:He,content:qe||He,scrollOffsetElement:ze,scrollEventElement:Fe,scrollbarHorizontal:Mt(Ze),scrollbarVertical:Mt(ot)})},update:Ke=>Oe({Dt:Ke,At:!0}),destroy:bind$1(Le,!1),plugin:Ke=>be[keys$1(Ke)[0]]};return push(ve,[Me]),addInstance(se,Xe),registerPluginModuleInstances($t$1,OverlayScrollbars,[Xe,we,be]),cancelInitialization(Be.wn.wt,!ie&&ee.cancel)?(Le(!0),Xe):(push(ve,Ne()),ke("initialized",[Xe]),Xe.update(),Xe)}return de};OverlayScrollbars.plugin=ee=>{const ne=isArray$4(ee),oe=ne?ee:[ee],ae=oe.map(ie=>registerPluginModuleInstances(ie,OverlayScrollbars)[0]);return addPlugins(oe),ne?ae:ae[0]};OverlayScrollbars.valid=ee=>{const ne=ee&&ee.elements,oe=isFunction$5(ne)&&ne();return isPlainObject$4(oe)&&!!getInstance$1(oe.target)};OverlayScrollbars.env=()=>{const{T:ee,k:ne,R:oe,V:ae,B:ie,F:se,U:de,P:fe,N:ve,q:be}=getEnvironment();return assignDeep({},{scrollbarsSize:ee,scrollbarsOverlaid:ne,scrollbarsHiding:oe,scrollTimeline:ae,staticDefaultInitialization:ie,staticDefaultOptions:se,getDefaultInitialization:de,setDefaultInitialization:fe,getDefaultOptions:ve,setDefaultOptions:be})};OverlayScrollbars.nonce=setNonce;const g=()=>{if(typeof window>"u"){const be=()=>{};return[be,be]}let ee,ne;const oe=window,ae=typeof oe.requestIdleCallback=="function",ie=oe.requestAnimationFrame,se=oe.cancelAnimationFrame,de=ae?oe.requestIdleCallback:ie,fe=ae?oe.cancelIdleCallback:se,ve=()=>{fe(ee),se(ne)};return[(be,ye)=>{ve(),ee=de(ae?()=>{ve(),ne=ie(be)}:be,typeof ye=="object"?ye:{timeout:2233})},ve]},x=ee=>{let ne=null,oe,ae,ie;const se=shallowRef(ee||{}),[de,fe]=g();return watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.defer)},ve=>{ie=ve},{deep:!0,immediate:!0}),watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.options)},ve=>{oe=ve,OverlayScrollbars.valid(ne)&&ne.options(oe||{},!0)},{deep:!0,immediate:!0}),watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.events)},ve=>{ae=ve,OverlayScrollbars.valid(ne)&&ne.on(ae||{},!0)},{deep:!0,immediate:!0}),onUnmounted(()=>{fe(),ne==null||ne.destroy()}),[ve=>{if(OverlayScrollbars.valid(ne))return ne;const be=()=>ne=OverlayScrollbars(ve,oe||{},ae||{});ie?de(be,ie):be()},()=>ne]},P=defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:[String,Object],default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(ee,{expose:ne,emit:oe}){const ae=ee,ie={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:se,options:de,events:fe,defer:ve}=toRefs(ae),be=shallowRef(null),ye=shallowRef(null),$e=ref(),[we,Ee]=x({options:de,events:$e,defer:ve});return ne({osInstance:Ee,getElement:()=>be.value}),watchPostEffect(_e=>{const{value:Ce}=be,{value:Pe}=ye;Ce&&(we(se.value==="body"?{target:Ce,cancel:{body:null}}:{target:Ce,elements:{viewport:Pe,content:Pe}}),_e(()=>{var Ae;return(Ae=Ee())==null?void 0:Ae.destroy()}))}),watch(()=>unref(fe),_e=>{const Ce=_e||{};$e.value=Object.keys(ie).reduce((Pe,Ae)=>{const ke=Ce[Ae];return Pe[Ae]=[(...Ne)=>oe(ie[Ae],...Ne),...(Array.isArray(ke)?ke:[ke]).filter(Boolean)],Pe},{})},{deep:!0,immediate:!0}),(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(unref(se)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:be},{default:withCtx(()=>[unref(se)==="body"?renderSlot(_e.$slots,"default",{key:0}):(openBlock(),createElementBlock("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:ye},[renderSlot(_e.$slots,"default")],512))]),_:3},512))}}),_hoisted_1$5={flex:"~ items-center justify-between","p-4":"","border-b":"~ solid stone/15","text-6":""},_hoisted_2$3={key:0,flex:"~ items-center justify-end","px-3":"","py-2":"","border-t":"~ solid stone/15"},_sfc_main$8=defineComponent({__name:"HSlideover",props:mergeModels({appear:{type:Boolean,default:!1},side:{default:"right"},title:{},preventClose:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:mergeModels(["close"],["update:modelValue"]),setup(ee,{emit:ne}){const oe=ee,ae=ne,ie=useModel(ee,"modelValue"),se=useSlots(),de=ref({enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}),fe=computed(()=>({enter:"transform transition ease-in-out duration-300",leave:"transform transition ease-in-out duration-200",enterFrom:oe.side==="left"?"-translate-x-full":"translate-x-full",enterTo:"translate-x-0",leaveFrom:"translate-x-0",leaveTo:oe.side==="left"?"-translate-x-full":"translate-x-full"}));function ve(){ie.value=!1,ae("close")}return(be,ye)=>{const $e=_sfc_main$9;return openBlock(),createBlock(unref(Se),{as:"template",appear:be.appear,show:ie.value},{default:withCtx(()=>[createVNode(unref(Ye),{class:"fixed inset-0 z-2000 flex justify-end",onClose:ye[0]||(ye[0]=we=>!be.preventClose&&ve())},{default:withCtx(()=>[createVNode(unref(he),mergeProps({as:"template",appear:be.appear},unref(de)),{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["fixed inset-0 bg-stone-2/75 transition-opacity dark-bg-stone-8/75",{"backdrop-blur-sm":be.overlay}])},null,2)]),_:1},16,["appear"]),(openBlock(),createBlock(unref(he),mergeProps(unref(fe),{key:JSON.stringify(unref(fe)),as:"template",appear:be.appear}),{default:withCtx(()=>[createVNode(unref(Ge),{relative:"","max-w-md":"","w-full":"","w-screen":"",flex:"","flex-1":"","flex-col":"","bg-white":"","dark-bg-stone-8":"","focus-outline-none":""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$5,[createVNode(unref(Ve),{"m-0":"","text-lg":"","text-dark":"","dark-text-white":""},{default:withCtx(()=>[createTextVNode(toDisplayString$1(be.title),1)]),_:1}),createVNode($e,{name:"i-carbon:close","cursor-pointer":"",onClick:ve})]),createVNode(unref(Je),{"m-0":"","flex-1":"","of-y-hidden":""},{default:withCtx(()=>[createVNode(unref(P),{options:{scrollbars:{autoHide:"leave",autoHideDelay:300}},defer:"",class:"h-full p-4"},{default:withCtx(()=>[renderSlot(be.$slots,"default")]),_:3})]),_:3}),unref(se).footer?(openBlock(),createElementBlock("div",_hoisted_2$3,[renderSlot(be.$slots,"footer")])):createCommentVNode("",!0)]),_:3})]),_:3},16,["appear"]))]),_:3})]),_:3},8,["appear","show"])}}}),_hoisted_1$4=["disabled"],_sfc_main$7=defineComponent({__name:"HButton",props:{block:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(ee){const ne=ee,oe=computed(()=>["focus-outline-none focus-visible-outline-0 cursor-pointer disabled-cursor-not-allowed disabled-opacity-75 flex-shrink-0 gap-x-1.5 px-2.5 py-1.5 border-size-0 font-medium text-sm rounded-md select-none",ne.block?"w-full flex justify-center items-center":"inline-flex items-center",ne.outline?"shadow-sm ring-1 ring-inset ring-ui-primary text-ui-primary bg-white dark-bg-dark hover-not-disabled-bg-ui-primary/10 dark-hover-not-disabled-bg-ui-primary/10 focus-visible-ring-2":"shadow-sm text-ui-text bg-ui-primary hover-bg-ui-primary/75 disabled-bg-ui-primary/90 focus-visible-ring-inset focus-visible-ring-2"]);return(ae,ie)=>(openBlock(),createElementBlock("button",{disabled:ae.disabled,class:normalizeClass(unref(oe))},[renderSlot(ae.$slots,"default")],10,_hoisted_1$4))}}),_hoisted_1$3={class:"relative w-full"},_hoisted_2$2=["placeholder","disabled"],_sfc_main$6=defineComponent({__name:"HInput",props:mergeModels({placeholder:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(ee,{expose:ne}){const oe=useModel(ee,"modelValue"),ae=useTemplateRef("inputRef");return ne({ref:ae}),(ie,se)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[withDirectives(createBaseVNode("input",{ref_key:"inputRef",ref:ae,"onUpdate:modelValue":se[0]||(se[0]=de=>oe.value=de),type:"text",placeholder:ie.placeholder,disabled:ie.disabled,class:"relative block w-full border-0 rounded-md bg-white px-2.5 py-1.5 text-sm shadow-sm ring-1 ring-stone-2 ring-inset disabled-cursor-not-allowed dark-bg-dark disabled-opacity-50 focus-outline-none focus-ring-2 dark-ring-stone-8 focus-ring-ui-primary placeholder-stone-4 dark-placeholder-stone-5"},null,8,_hoisted_2$2),[[vModelText,oe.value]])]))}}),_hoisted_1$2={class:"absolute inset-0 h-full w-full flex items-center justify-center"},_sfc_main$5=defineComponent({__name:"HToggle",props:mergeModels({disabled:{type:Boolean,default:!1},onIcon:{},offIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(ee){const ne=useModel(ee,"modelValue");return(oe,ae)=>{const ie=_sfc_main$9;return openBlock(),createBlock(unref(ue),{modelValue:ne.value,"onUpdate:modelValue":ae[0]||(ae[0]=se=>ne.value=se),disabled:oe.disabled,class:normalizeClass(["relative h-5 w-10 inline-flex flex-shrink-0 cursor-pointer border-2 border-transparent rounded-full p-0 vertical-middle disabled-cursor-not-allowed disabled-opacity-50 focus-outline-none focus-visible-ring-2 focus-visible-ring-offset-2 focus-visible-ring-offset-white dark-focus-visible-ring-offset-gray-900",[ne.value?"bg-ui-primary":"bg-stone-3 dark-bg-stone-7"]])},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["pointer-events-none relative inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition-margin duration-200 ease-in-out dark-bg-dark",[ne.value?"ms-5":"ms-0"]])},[createBaseVNode("span",_hoisted_1$2,[ne.value&&oe.onIcon||!ne.value&&oe.offIcon?(openBlock(),createBlock(ie,{key:0,name:ne.value?oe.onIcon:oe.offIcon,class:"h-3 w-3 text-stone-7 dark-text-stone-3"},null,8,["name"])):createCommentVNode("",!0)])],2)]),_:1},8,["modelValue","disabled","class"])}}}),_sfc_main$4=defineComponent({__name:"HTabList",props:mergeModels({options:{}},{modelValue:{},modelModifiers:{}}),emits:mergeModels(["change"],["update:modelValue"]),setup(ee,{emit:ne}){const oe=ee,ae=ne,ie=useModel(ee,"modelValue"),se=computed({get(){return oe.options.findIndex(fe=>fe.value===ie.value)},set(fe){ie.value=oe.options[fe].value}});watch(ie,fe=>{fe&&ae("change",fe)});function de(fe){ie.value=oe.options[fe].value}return(fe,ve)=>{const be=_sfc_main$9;return openBlock(),createBlock(unref(me$1),{"selected-index":unref(se),onChange:de},{default:withCtx(()=>[createVNode(unref(pe$1),{class:"inline-flex select-none items-center justify-center rounded-md bg-stone-1 p-1 ring-1 ring-stone-2 dark-bg-stone-9 dark-ring-stone-8"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(fe.options,(ye,$e)=>(openBlock(),createBlock(unref(xe),{key:$e,as:"template"},{default:withCtx(({selected:we})=>[createBaseVNode("button",{class:normalizeClass(["w-full inline-flex items-center justify-center gap-1 break-keep border-size-0 rounded-md bg-inherit px-2 py-1.5 text-sm text-dark ring-stone-2 ring-inset dark-text-white focus-outline-none focus-ring-2 dark-ring-stone-8",{"cursor-default bg-white dark-bg-dark-9":we,"cursor-pointer opacity-50 hover-opacity-100":!we}])},[ye.icon?(openBlock(),createBlock(be,{key:0,name:ye.icon,class:"flex-shrink-0"},null,8,["name"])):createCommentVNode("",!0),createTextVNode(" "+toDisplayString$1(ye.label),1)],2)]),_:2},1024))),128))]),_:1})]),_:1},8,["selected-index"])}}}),globalSettingsDefault={app:{lightTheme:"light",darkTheme:"dark",colorScheme:"light",enableMournMode:!1,enableColorAmblyopiaMode:!1,defaultLang:"",enablePermission:!1,enableProgress:!0,enableDynamicTitle:!1,enableBackTop:!0,storagePrefix:"fm_",enableWatermark:!1,enableErrorLog:!1},navbar:{enable:!1,mode:"static"},tabbar:{enable:!1,list:[]},mainPage:{enableTransition:!0,transitionMode:"fade"},copyright:{enable:!1,dates:"",company:"",website:"",beian:""}},isObject$5=ee=>ee&&typeof ee=="object"&&!Array.isArray(ee),mergeDeep=(ee,...ne)=>{if(!ne.length)return ee;const oe=ne.shift();if(isObject$5(ee)&&isObject$5(oe))for(const ae in oe)isObject$5(oe[ae])?(ee[ae]||Object.assign(ee,{[ae]:{}}),mergeDeep(ee[ae],oe[ae])):Object.assign(ee,{[ae]:oe[ae]});return mergeDeep(ee,...ne)},messages$1=mergeDeep({},{"en-us":{pages:{navbar:{root:{t:0,b:{t:2,i:[{t:3}],s:"Navbar"}},default:{t:0,b:{t:2,i:[{t:3}],s:"Default navbar"}},none:{t:0,b:{t:2,i:[{t:3}],s:"No navbar"}},preset:{t:0,b:{t:2,i:[{t:3}],s:"Preset button"}},mode:{t:0,b:{t:2,i:[{t:3}],s:"Navbar mode"}},"title-no-center":{t:0,b:{t:2,i:[{t:3}],s:"Title not centered"}},"custom-title":{t:0,b:{t:2,i:[{t:3}],s:"Custom title"}},"custom-area":{t:0,b:{t:2,i:[{t:3}],s:"Custom area"}},"custom-navbar":{t:0,b:{t:2,i:[{t:3}],s:"Custom navbar"}}},tabbar:{root:{t:0,b:{t:2,i:[{t:3}],s:"Tabbar"}},default:{t:0,b:{t:2,i:[{t:3}],s:"Default tabbar"}},multi:{t:0,b:{t:2,i:[{t:3}],s:"Multiple sets of tabbars"}},badge:{t:0,b:{t:2,i:[{t:3}],s:"Badge"}},"custom-area":{t:0,b:{t:2,i:[{t:3}],s:"Custom area"}}},permission:{root:{t:0,b:{t:2,i:[{t:3}],s:"Permission validation"}}},function:{root:{t:0,b:{t:2,i:[{t:3}],s:"Function"}},errorLog:{t:0,b:{t:2,i:[{t:3}],s:"Error log"}},font:{t:0,b:{t:2,i:[{t:3}],s:"Costom Font"}},i18n:{t:0,b:{t:2,i:[{t:3}],s:"Internationalization"}},icon:{t:0,b:{t:2,i:[{t:3}],s:"Icon"}},keepAlive:{t:0,b:{t:2,i:[{t:3}],s:"Page cache"}},watermark:{t:0,b:{t:2,i:[{t:3}],s:"Watermark"}},zoomable:{t:0,b:{t:2,i:[{t:3}],s:"Zoomable"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Dynamic title"}},scroll:{t:0,b:{t:2,i:[{t:3}],s:"Saved posotion"}}}},tabbar:{default:{feature:{t:0,b:{t:2,i:[{t:3}],s:"Feature"}},index:{t:0,b:{t:2,i:[{t:3}],s:"Index"}},user:{t:0,b:{t:2,i:[{t:3}],s:"User"}}},second:{flower:{t:0,b:{t:2,i:[{t:3}],s:"Flower"}},grass:{t:0,b:{t:2,i:[{t:3}],s:"Grass"}}},third:{dot:{t:0,b:{t:2,i:[{t:3}],s:"Dot"}},number:{t:0,b:{t:2,i:[{t:3}],s:"Number"}},text:{t:0,b:{t:2,i:[{t:3}],s:"Text"}}}}}},{"zh-cn":{pages:{navbar:{root:{t:0,b:{t:2,i:[{t:3}],s:"导航栏"}},default:{t:0,b:{t:2,i:[{t:3}],s:"默认导航栏"}},none:{t:0,b:{t:2,i:[{t:3}],s:"无导航栏"}},preset:{t:0,b:{t:2,i:[{t:3}],s:"预设按钮"}},mode:{t:0,b:{t:2,i:[{t:3}],s:"导航栏模式"}},"title-no-center":{t:0,b:{t:2,i:[{t:3}],s:"标题非居中"}},"custom-title":{t:0,b:{t:2,i:[{t:3}],s:"自定义标题"}},"custom-area":{t:0,b:{t:2,i:[{t:3}],s:"自定义区域"}},"custom-navbar":{t:0,b:{t:2,i:[{t:3}],s:"自定义导航栏"}}},tabbar:{root:{t:0,b:{t:2,i:[{t:3}],s:"标签栏"}},default:{t:0,b:{t:2,i:[{t:3}],s:"默认标签栏"}},multi:{t:0,b:{t:2,i:[{t:3}],s:"多套标签栏"}},badge:{t:0,b:{t:2,i:[{t:3}],s:"角标"}},"custom-area":{t:0,b:{t:2,i:[{t:3}],s:"自定义区域"}}},permission:{root:{t:0,b:{t:2,i:[{t:3}],s:"权限验证"}}},function:{root:{t:0,b:{t:2,i:[{t:3}],s:"功能"}},errorLog:{t:0,b:{t:2,i:[{t:3}],s:"错误日志"}},font:{t:0,b:{t:2,i:[{t:3}],s:"自定义字体"}},i18n:{t:0,b:{t:2,i:[{t:3}],s:"国际化"}},icon:{t:0,b:{t:2,i:[{t:3}],s:"图标"}},keepAlive:{t:0,b:{t:2,i:[{t:3}],s:"页面缓存"}},watermark:{t:0,b:{t:2,i:[{t:3}],s:"水印"}},zoomable:{t:0,b:{t:2,i:[{t:3}],s:"图片预览"}},title:{t:0,b:{t:2,i:[{t:3}],s:"动态标题"}},scroll:{t:0,b:{t:2,i:[{t:3}],s:"记录滚动位置"}}}},tabbar:{default:{feature:{t:0,b:{t:2,i:[{t:3}],s:"特色"}},index:{t:0,b:{t:2,i:[{t:3}],s:"主页"}},user:{t:0,b:{t:2,i:[{t:3}],s:"我的"}}},second:{flower:{t:0,b:{t:2,i:[{t:3}],s:"花花"}},grass:{t:0,b:{t:2,i:[{t:3}],s:"草草"}}},third:{dot:{t:0,b:{t:2,i:[{t:3}],s:"点"}},number:{t:0,b:{t:2,i:[{t:3}],s:"数字"}},text:{t:0,b:{t:2,i:[{t:3}],s:"文本"}}}}}});var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$d=Object.prototype,hasOwnProperty$d=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(ee){var ne=hasOwnProperty$d.call(ee,symToStringTag$1),oe=ee[symToStringTag$1];try{ee[symToStringTag$1]=void 0;var ae=!0}catch{}var ie=nativeObjectToString$1.call(ee);return ae&&(ne?ee[symToStringTag$1]=oe:delete ee[symToStringTag$1]),ie}var objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(ee){return nativeObjectToString.call(ee)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(ee){return ee==null?ee===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(ee)?getRawTag(ee):objectToString$1(ee)}function isObjectLike(ee){return ee!=null&&typeof ee=="object"}var isArray$3=Array.isArray;function isObject$4(ee){var ne=typeof ee;return ee!=null&&(ne=="object"||ne=="function")}function identity(ee){return ee}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$4(ee){if(!isObject$4(ee))return!1;var ne=baseGetTag(ee);return ne==funcTag$2||ne==genTag$1||ne==asyncTag||ne==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var ee=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return ee?"Symbol(src)_1."+ee:""}();function isMasked(ee){return!!maskSrcKey&&maskSrcKey in ee}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(ee){if(ee!=null){try{return funcToString$2.call(ee)}catch{}try{return ee+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$c=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(ee){if(!isObject$4(ee)||isMasked(ee))return!1;var ne=isFunction$4(ee)?reIsNative:reIsHostCtor;return ne.test(toSource(ee))}function getValue$2(ee,ne){return ee==null?void 0:ee[ne]}function getNative(ee,ne){var oe=getValue$2(ee,ne);return baseIsNative(oe)?oe:void 0}var WeakMap$1=getNative(root,"WeakMap"),objectCreate=Object.create,baseCreate=function(){function ee(){}return function(ne){if(!isObject$4(ne))return{};if(objectCreate)return objectCreate(ne);ee.prototype=ne;var oe=new ee;return ee.prototype=void 0,oe}}();function apply$1(ee,ne,oe){switch(oe.length){case 0:return ee.call(ne);case 1:return ee.call(ne,oe[0]);case 2:return ee.call(ne,oe[0],oe[1]);case 3:return ee.call(ne,oe[0],oe[1],oe[2])}return ee.apply(ne,oe)}function copyArray(ee,ne){var oe=-1,ae=ee.length;for(ne||(ne=Array(ae));++oe0){if(++ne>=HOT_COUNT)return arguments[0]}else ne=0;return ee.apply(void 0,arguments)}}function constant(ee){return function(){return ee}}var defineProperty=function(){try{var ee=getNative(Object,"defineProperty");return ee({},"",{}),ee}catch{}}(),baseSetToString=defineProperty?function(ee,ne){return defineProperty(ee,"toString",{configurable:!0,enumerable:!1,value:constant(ne),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(ee,ne){for(var oe=-1,ae=ee==null?0:ee.length;++oe-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=MAX_SAFE_INTEGER}function isArrayLike(ee){return ee!=null&&isLength(ee.length)&&!isFunction$4(ee)}function isIterateeCall(ee,ne,oe){if(!isObject$4(oe))return!1;var ae=typeof ne;return(ae=="number"?isArrayLike(oe)&&isIndex(ne,oe.length):ae=="string"&&ne in oe)?eq(oe[ne],ee):!1}function createAssigner(ee){return baseRest(function(ne,oe){var ae=-1,ie=oe.length,se=ie>1?oe[ie-1]:void 0,de=ie>2?oe[2]:void 0;for(se=ee.length>3&&typeof se=="function"?(ie--,se):void 0,de&&isIterateeCall(oe[0],oe[1],de)&&(se=ie<3?void 0:se,ie=1),ne=Object(ne);++ae-1}function listCacheSet(ee,ne){var oe=this.__data__,ae=assocIndexOf(oe,ee);return ae<0?(++this.size,oe.push([ee,ne])):oe[ae][1]=ne,this}function ListCache(ee){var ne=-1,oe=ee==null?0:ee.length;for(this.clear();++nene?Symbol.for(ee):Symbol(ee),generateFormatCacheKey=(ee,ne,oe)=>friendlyJSONstringify({l:ee,k:ne,s:oe}),friendlyJSONstringify=ee=>JSON.stringify(ee).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$1=ee=>typeof ee=="number"&&isFinite(ee),isDate$2=ee=>toTypeString(ee)==="[object Date]",isRegExp$1=ee=>toTypeString(ee)==="[object RegExp]",isEmptyObject=ee=>isPlainObject$2(ee)&&Object.keys(ee).length===0,assign$2=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(ee){return ee.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$2=Object.prototype.hasOwnProperty;function hasOwn(ee,ne){return hasOwnProperty$2.call(ee,ne)}const isArray$2=Array.isArray,isFunction$3=ee=>typeof ee=="function",isString$2=ee=>typeof ee=="string",isBoolean$1=ee=>typeof ee=="boolean",isObject$3=ee=>ee!==null&&typeof ee=="object",isPromise$1=ee=>isObject$3(ee)&&isFunction$3(ee.then)&&isFunction$3(ee.catch),objectToString=Object.prototype.toString,toTypeString=ee=>objectToString.call(ee),isPlainObject$2=ee=>toTypeString(ee)==="[object Object]",toDisplayString=ee=>ee==null?"":isArray$2(ee)||isPlainObject$2(ee)&&ee.toString===objectToString?JSON.stringify(ee,null,2):String(ee);function join(ee,ne=""){return ee.reduce((oe,ae,ie)=>ie===0?oe+ae:oe+ne+ae,"")}function warn(ee,ne){typeof console<"u"&&(console.warn("[intlify] "+ee),ne&&console.warn(ne.stack))}const isNotObjectOrIsArray=ee=>!isObject$3(ee)||isArray$2(ee);function deepCopy(ee,ne){if(isNotObjectOrIsArray(ee)||isNotObjectOrIsArray(ne))throw new Error("Invalid value");const oe=[{src:ee,des:ne}];for(;oe.length;){const{src:ae,des:ie}=oe.pop();Object.keys(ae).forEach(se=>{isObject$3(ae[se])&&!isObject$3(ie[se])&&(ie[se]=Array.isArray(ae[se])?[]:{}),isNotObjectOrIsArray(ie[se])||isNotObjectOrIsArray(ae[se])?ie[se]=ae[se]:oe.push({src:ae[se],des:ie[se]})})}}/*! + * message-compiler v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function createPosition(ee,ne,oe){return{line:ee,column:ne,offset:oe}}function createLocation(ee,ne,oe){return{start:ee,end:ne}}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},COMPILE_ERROR_CODES_EXTEND_POINT=17;function createCompileError(ee,ne,oe={}){const{domain:ae,messages:ie,args:se}=oe,de=ee,fe=new SyntaxError(String(de));return fe.code=ee,ne&&(fe.location=ne),fe.domain=ae,fe}function defaultOnError(ee){throw ee}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=` +`,CHAR_LS="\u2028",CHAR_PS="\u2029";function createScanner(ee){const ne=ee;let oe=0,ae=1,ie=1,se=0;const de=Me=>ne[Me]===CHAR_CR&&ne[Me+1]===CHAR_LF,fe=Me=>ne[Me]===CHAR_LF,ve=Me=>ne[Me]===CHAR_PS,be=Me=>ne[Me]===CHAR_LS,ye=Me=>de(Me)||fe(Me)||ve(Me)||be(Me),$e=()=>oe,we=()=>ae,Ee=()=>ie,_e=()=>se,Ce=Me=>de(Me)||ve(Me)||be(Me)?CHAR_LF:ne[Me],Pe=()=>Ce(oe),Ae=()=>Ce(oe+se);function ke(){return se=0,ye(oe)&&(ae++,ie=0),de(oe)&&oe++,oe++,ie++,ne[oe]}function Ne(){return de(oe+se)&&se++,se++,ne[oe+se]}function Oe(){oe=0,ae=1,ie=1,se=0}function Re(Me=0){se=Me}function Be(){const Me=oe+se;for(;Me!==oe;)ke();se=0}return{index:$e,line:we,column:Ee,peekOffset:_e,charAt:Ce,currentChar:Pe,currentPeek:Ae,next:ke,peek:Ne,reset:Oe,resetPeek:Re,skipToPeek:Be}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(ee,ne={}){const oe=ne.location!==!1,ae=createScanner(ee),ie=()=>ae.index(),se=()=>createPosition(ae.line(),ae.column(),ae.index()),de=se(),fe=ie(),ve={currentType:13,offset:fe,startLoc:de,endLoc:de,lastType:13,lastOffset:fe,lastStartLoc:de,lastEndLoc:de,braceNest:0,inLinked:!1,text:""},be=()=>ve,{onError:ye}=ne;function $e(st,Tt,Vt,...Kt){const Gt=be();if(Tt.column+=Vt,Tt.offset+=Vt,ye){const Qt=oe?createLocation(Gt.startLoc,Tt):null,Lt=createCompileError(st,Qt,{domain:ERROR_DOMAIN$3,args:Kt});ye(Lt)}}function we(st,Tt,Vt){st.endLoc=se(),st.currentType=Tt;const Kt={type:Tt};return oe&&(Kt.loc=createLocation(st.startLoc,st.endLoc)),Vt!=null&&(Kt.value=Vt),Kt}const Ee=st=>we(st,13);function _e(st,Tt){return st.currentChar()===Tt?(st.next(),Tt):($e(CompileErrorCodes.EXPECTED_TOKEN,se(),0,Tt),"")}function Ce(st){let Tt="";for(;st.currentPeek()===CHAR_SP||st.currentPeek()===CHAR_LF;)Tt+=st.currentPeek(),st.peek();return Tt}function Pe(st){const Tt=Ce(st);return st.skipToPeek(),Tt}function Ae(st){if(st===EOF)return!1;const Tt=st.charCodeAt(0);return Tt>=97&&Tt<=122||Tt>=65&&Tt<=90||Tt===95}function ke(st){if(st===EOF)return!1;const Tt=st.charCodeAt(0);return Tt>=48&&Tt<=57}function Ne(st,Tt){const{currentType:Vt}=Tt;if(Vt!==2)return!1;Ce(st);const Kt=Ae(st.currentPeek());return st.resetPeek(),Kt}function Oe(st,Tt){const{currentType:Vt}=Tt;if(Vt!==2)return!1;Ce(st);const Kt=st.currentPeek()==="-"?st.peek():st.currentPeek(),Gt=ke(Kt);return st.resetPeek(),Gt}function Re(st,Tt){const{currentType:Vt}=Tt;if(Vt!==2)return!1;Ce(st);const Kt=st.currentPeek()===LITERAL_DELIMITER;return st.resetPeek(),Kt}function Be(st,Tt){const{currentType:Vt}=Tt;if(Vt!==7)return!1;Ce(st);const Kt=st.currentPeek()===".";return st.resetPeek(),Kt}function Me(st,Tt){const{currentType:Vt}=Tt;if(Vt!==8)return!1;Ce(st);const Kt=Ae(st.currentPeek());return st.resetPeek(),Kt}function Le(st,Tt){const{currentType:Vt}=Tt;if(!(Vt===7||Vt===11))return!1;Ce(st);const Kt=st.currentPeek()===":";return st.resetPeek(),Kt}function Xe(st,Tt){const{currentType:Vt}=Tt;if(Vt!==9)return!1;const Kt=()=>{const Qt=st.currentPeek();return Qt==="{"?Ae(st.peek()):Qt==="@"||Qt==="|"||Qt===":"||Qt==="."||Qt===CHAR_SP||!Qt?!1:Qt===CHAR_LF?(st.peek(),Kt()):De(st,!1)},Gt=Kt();return st.resetPeek(),Gt}function Ke(st){Ce(st);const Tt=st.currentPeek()==="|";return st.resetPeek(),Tt}function De(st,Tt=!0){const Vt=(Gt=!1,Qt="")=>{const Lt=st.currentPeek();return Lt==="{"||Lt==="@"||!Lt?Gt:Lt==="|"?!(Qt===CHAR_SP||Qt===CHAR_LF):Lt===CHAR_SP?(st.peek(),Vt(!0,CHAR_SP)):Lt===CHAR_LF?(st.peek(),Vt(!0,CHAR_LF)):!0},Kt=Vt();return Tt&&st.resetPeek(),Kt}function je(st,Tt){const Vt=st.currentChar();return Vt===EOF?EOF:Tt(Vt)?(st.next(),Vt):null}function He(st){const Tt=st.charCodeAt(0);return Tt>=97&&Tt<=122||Tt>=65&&Tt<=90||Tt>=48&&Tt<=57||Tt===95||Tt===36}function qe(st){return je(st,He)}function ze(st){const Tt=st.charCodeAt(0);return Tt>=97&&Tt<=122||Tt>=65&&Tt<=90||Tt>=48&&Tt<=57||Tt===95||Tt===36||Tt===45}function Fe(st){return je(st,ze)}function Ze(st){const Tt=st.charCodeAt(0);return Tt>=48&&Tt<=57}function ot(st){return je(st,Ze)}function Nt(st){const Tt=st.charCodeAt(0);return Tt>=48&&Tt<=57||Tt>=65&&Tt<=70||Tt>=97&&Tt<=102}function Mt(st){return je(st,Nt)}function Ue(st){let Tt="",Vt="";for(;Tt=ot(st);)Vt+=Tt;return Vt}function Pt(st){let Tt="";for(;;){const Vt=st.currentChar();if(Vt==="{"||Vt==="}"||Vt==="@"||Vt==="|"||!Vt)break;if(Vt===CHAR_SP||Vt===CHAR_LF)if(De(st))Tt+=Vt,st.next();else{if(Ke(st))break;Tt+=Vt,st.next()}else Tt+=Vt,st.next()}return Tt}function Dt(st){Pe(st);let Tt="",Vt="";for(;Tt=Fe(st);)Vt+=Tt;return st.currentChar()===EOF&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Vt}function Ut(st){Pe(st);let Tt="";return st.currentChar()==="-"?(st.next(),Tt+=`-${Ue(st)}`):Tt+=Ue(st),st.currentChar()===EOF&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Tt}function Rt(st){return st!==LITERAL_DELIMITER&&st!==CHAR_LF}function Wt(st){Pe(st),_e(st,"'");let Tt="",Vt="";for(;Tt=je(st,Rt);)Tt==="\\"?Vt+=Qe(st):Vt+=Tt;const Kt=st.currentChar();return Kt===CHAR_LF||Kt===EOF?($e(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,se(),0),Kt===CHAR_LF&&(st.next(),_e(st,"'")),Vt):(_e(st,"'"),Vt)}function Qe(st){const Tt=st.currentChar();switch(Tt){case"\\":case"'":return st.next(),`\\${Tt}`;case"u":return It(st,Tt,4);case"U":return It(st,Tt,6);default:return $e(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,se(),0,Tt),""}}function It(st,Tt,Vt){_e(st,Tt);let Kt="";for(let Gt=0;Gt{const Kt=st.currentChar();return Kt==="{"||Kt==="@"||Kt==="|"||Kt==="("||Kt===")"||!Kt||Kt===CHAR_SP?Vt:(Vt+=Kt,st.next(),Tt(Vt))};return Tt("")}function nt(st){Pe(st);const Tt=_e(st,"|");return Pe(st),Tt}function Et(st,Tt){let Vt=null;switch(st.currentChar()){case"{":return Tt.braceNest>=1&&$e(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,se(),0),st.next(),Vt=we(Tt,2,"{"),Pe(st),Tt.braceNest++,Vt;case"}":return Tt.braceNest>0&&Tt.currentType===2&&$e(CompileErrorCodes.EMPTY_PLACEHOLDER,se(),0),st.next(),Vt=we(Tt,3,"}"),Tt.braceNest--,Tt.braceNest>0&&Pe(st),Tt.inLinked&&Tt.braceNest===0&&(Tt.inLinked=!1),Vt;case"@":return Tt.braceNest>0&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Vt=Bt(st,Tt)||Ee(Tt),Tt.braceNest=0,Vt;default:{let Gt=!0,Qt=!0,Lt=!0;if(Ke(st))return Tt.braceNest>0&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Vt=we(Tt,1,nt(st)),Tt.braceNest=0,Tt.inLinked=!1,Vt;if(Tt.braceNest>0&&(Tt.currentType===4||Tt.currentType===5||Tt.currentType===6))return $e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Tt.braceNest=0,Xt(st,Tt);if(Gt=Ne(st,Tt))return Vt=we(Tt,4,Dt(st)),Pe(st),Vt;if(Qt=Oe(st,Tt))return Vt=we(Tt,5,Ut(st)),Pe(st),Vt;if(Lt=Re(st,Tt))return Vt=we(Tt,6,Wt(st)),Pe(st),Vt;if(!Gt&&!Qt&&!Lt)return Vt=we(Tt,12,jt(st)),$e(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,se(),0,Vt.value),Pe(st),Vt;break}}return Vt}function Bt(st,Tt){const{currentType:Vt}=Tt;let Kt=null;const Gt=st.currentChar();switch((Vt===7||Vt===8||Vt===11||Vt===9)&&(Gt===CHAR_LF||Gt===CHAR_SP)&&$e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),Gt){case"@":return st.next(),Kt=we(Tt,7,"@"),Tt.inLinked=!0,Kt;case".":return Pe(st),st.next(),we(Tt,8,".");case":":return Pe(st),st.next(),we(Tt,9,":");default:return Ke(st)?(Kt=we(Tt,1,nt(st)),Tt.braceNest=0,Tt.inLinked=!1,Kt):Be(st,Tt)||Le(st,Tt)?(Pe(st),Bt(st,Tt)):Me(st,Tt)?(Pe(st),we(Tt,11,tn(st))):Xe(st,Tt)?(Pe(st),Gt==="{"?Et(st,Tt)||Kt:we(Tt,10,Zt(st))):(Vt===7&&$e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),Tt.braceNest=0,Tt.inLinked=!1,Xt(st,Tt))}}function Xt(st,Tt){let Vt={type:13};if(Tt.braceNest>0)return Et(st,Tt)||Ee(Tt);if(Tt.inLinked)return Bt(st,Tt)||Ee(Tt);switch(st.currentChar()){case"{":return Et(st,Tt)||Ee(Tt);case"}":return $e(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,se(),0),st.next(),we(Tt,3,"}");case"@":return Bt(st,Tt)||Ee(Tt);default:{if(Ke(st))return Vt=we(Tt,1,nt(st)),Tt.braceNest=0,Tt.inLinked=!1,Vt;if(De(st))return we(Tt,0,Pt(st));break}}return Vt}function Yt(){const{currentType:st,offset:Tt,startLoc:Vt,endLoc:Kt}=ve;return ve.lastType=st,ve.lastOffset=Tt,ve.lastStartLoc=Vt,ve.lastEndLoc=Kt,ve.offset=ie(),ve.startLoc=se(),ae.currentChar()===EOF?we(ve,13):Xt(ae,ve)}return{nextToken:Yt,currentOffset:ie,currentPosition:se,context:be}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(ee,ne,oe){switch(ee){case"\\\\":return"\\";case"\\'":return"'";default:{const ae=parseInt(ne||oe,16);return ae<=55295||ae>=57344?String.fromCodePoint(ae):"�"}}}function createParser(ee={}){const ne=ee.location!==!1,{onError:oe}=ee;function ae(Ae,ke,Ne,Oe,...Re){const Be=Ae.currentPosition();if(Be.offset+=Oe,Be.column+=Oe,oe){const Me=ne?createLocation(Ne,Be):null,Le=createCompileError(ke,Me,{domain:ERROR_DOMAIN$2,args:Re});oe(Le)}}function ie(Ae,ke,Ne){const Oe={type:Ae};return ne&&(Oe.start=ke,Oe.end=ke,Oe.loc={start:Ne,end:Ne}),Oe}function se(Ae,ke,Ne,Oe){ne&&(Ae.end=ke,Ae.loc&&(Ae.loc.end=Ne))}function de(Ae,ke){const Ne=Ae.context(),Oe=ie(3,Ne.offset,Ne.startLoc);return Oe.value=ke,se(Oe,Ae.currentOffset(),Ae.currentPosition()),Oe}function fe(Ae,ke){const Ne=Ae.context(),{lastOffset:Oe,lastStartLoc:Re}=Ne,Be=ie(5,Oe,Re);return Be.index=parseInt(ke,10),Ae.nextToken(),se(Be,Ae.currentOffset(),Ae.currentPosition()),Be}function ve(Ae,ke){const Ne=Ae.context(),{lastOffset:Oe,lastStartLoc:Re}=Ne,Be=ie(4,Oe,Re);return Be.key=ke,Ae.nextToken(),se(Be,Ae.currentOffset(),Ae.currentPosition()),Be}function be(Ae,ke){const Ne=Ae.context(),{lastOffset:Oe,lastStartLoc:Re}=Ne,Be=ie(9,Oe,Re);return Be.value=ke.replace(KNOWN_ESCAPES,fromEscapeSequence),Ae.nextToken(),se(Be,Ae.currentOffset(),Ae.currentPosition()),Be}function ye(Ae){const ke=Ae.nextToken(),Ne=Ae.context(),{lastOffset:Oe,lastStartLoc:Re}=Ne,Be=ie(8,Oe,Re);return ke.type!==11?(ae(Ae,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,Ne.lastStartLoc,0),Be.value="",se(Be,Oe,Re),{nextConsumeToken:ke,node:Be}):(ke.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(ke)),Be.value=ke.value||"",se(Be,Ae.currentOffset(),Ae.currentPosition()),{node:Be})}function $e(Ae,ke){const Ne=Ae.context(),Oe=ie(7,Ne.offset,Ne.startLoc);return Oe.value=ke,se(Oe,Ae.currentOffset(),Ae.currentPosition()),Oe}function we(Ae){const ke=Ae.context(),Ne=ie(6,ke.offset,ke.startLoc);let Oe=Ae.nextToken();if(Oe.type===8){const Re=ye(Ae);Ne.modifier=Re.node,Oe=Re.nextConsumeToken||Ae.nextToken()}switch(Oe.type!==9&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Oe)),Oe=Ae.nextToken(),Oe.type===2&&(Oe=Ae.nextToken()),Oe.type){case 10:Oe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Oe)),Ne.key=$e(Ae,Oe.value||"");break;case 4:Oe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Oe)),Ne.key=ve(Ae,Oe.value||"");break;case 5:Oe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Oe)),Ne.key=fe(Ae,Oe.value||"");break;case 6:Oe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Oe)),Ne.key=be(Ae,Oe.value||"");break;default:{ae(Ae,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,ke.lastStartLoc,0);const Re=Ae.context(),Be=ie(7,Re.offset,Re.startLoc);return Be.value="",se(Be,Re.offset,Re.startLoc),Ne.key=Be,se(Ne,Re.offset,Re.startLoc),{nextConsumeToken:Oe,node:Ne}}}return se(Ne,Ae.currentOffset(),Ae.currentPosition()),{node:Ne}}function Ee(Ae){const ke=Ae.context(),Ne=ke.currentType===1?Ae.currentOffset():ke.offset,Oe=ke.currentType===1?ke.endLoc:ke.startLoc,Re=ie(2,Ne,Oe);Re.items=[];let Be=null;do{const Xe=Be||Ae.nextToken();switch(Be=null,Xe.type){case 0:Xe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Xe)),Re.items.push(de(Ae,Xe.value||""));break;case 5:Xe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Xe)),Re.items.push(fe(Ae,Xe.value||""));break;case 4:Xe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Xe)),Re.items.push(ve(Ae,Xe.value||""));break;case 6:Xe.value==null&&ae(Ae,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Xe)),Re.items.push(be(Ae,Xe.value||""));break;case 7:{const Ke=we(Ae);Re.items.push(Ke.node),Be=Ke.nextConsumeToken||null;break}}}while(ke.currentType!==13&&ke.currentType!==1);const Me=ke.currentType===1?ke.lastOffset:Ae.currentOffset(),Le=ke.currentType===1?ke.lastEndLoc:Ae.currentPosition();return se(Re,Me,Le),Re}function _e(Ae,ke,Ne,Oe){const Re=Ae.context();let Be=Oe.items.length===0;const Me=ie(1,ke,Ne);Me.cases=[],Me.cases.push(Oe);do{const Le=Ee(Ae);Be||(Be=Le.items.length===0),Me.cases.push(Le)}while(Re.currentType!==13);return Be&&ae(Ae,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,Ne,0),se(Me,Ae.currentOffset(),Ae.currentPosition()),Me}function Ce(Ae){const ke=Ae.context(),{offset:Ne,startLoc:Oe}=ke,Re=Ee(Ae);return ke.currentType===13?Re:_e(Ae,Ne,Oe,Re)}function Pe(Ae){const ke=createTokenizer(Ae,assign$2({},ee)),Ne=ke.context(),Oe=ie(0,Ne.offset,Ne.startLoc);return ne&&Oe.loc&&(Oe.loc.source=Ae),Oe.body=Ce(ke),ee.onCacheKey&&(Oe.cacheKey=ee.onCacheKey(Ae)),Ne.currentType!==13&&ae(ke,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,Ae[Ne.offset]||""),se(Oe,ke.currentOffset(),ke.currentPosition()),Oe}return{parse:Pe}}function getTokenCaption(ee){if(ee.type===13)return"EOF";const ne=(ee.value||"").replace(/\r?\n/gu,"\\n");return ne.length>10?ne.slice(0,9)+"…":ne}function createTransformer(ee,ne={}){const oe={ast:ee,helpers:new Set};return{context:()=>oe,helper:se=>(oe.helpers.add(se),se)}}function traverseNodes(ee,ne){for(let oe=0;oeoptimizeMessageNode(oe)),ee}function optimizeMessageNode(ee){if(ee.items.length===1){const ne=ee.items[0];(ne.type===3||ne.type===9)&&(ee.static=ne.value,delete ne.value)}else{const ne=[];for(let oe=0;oefe;function be(Pe,Ae){fe.code+=Pe}function ye(Pe,Ae=!0){const ke=Ae?ie:"";be(se?ke+" ".repeat(Pe):ke)}function $e(Pe=!0){const Ae=++fe.indentLevel;Pe&&ye(Ae)}function we(Pe=!0){const Ae=--fe.indentLevel;Pe&&ye(Ae)}function Ee(){ye(fe.indentLevel)}return{context:ve,push:be,indent:$e,deindent:we,newline:Ee,helper:Pe=>`_${Pe}`,needIndent:()=>fe.needIndent}}function generateLinkedNode(ee,ne){const{helper:oe}=ee;ee.push(`${oe("linked")}(`),generateNode(ee,ne.key),ne.modifier?(ee.push(", "),generateNode(ee,ne.modifier),ee.push(", _type")):ee.push(", undefined, _type"),ee.push(")")}function generateMessageNode(ee,ne){const{helper:oe,needIndent:ae}=ee;ee.push(`${oe("normalize")}([`),ee.indent(ae());const ie=ne.items.length;for(let se=0;se1){ee.push(`${oe("plural")}([`),ee.indent(ae());const ie=ne.cases.length;for(let se=0;se{const oe=isString$2(ne.mode)?ne.mode:"normal",ae=isString$2(ne.filename)?ne.filename:"message.intl",ie=!!ne.sourceMap,se=ne.breakLineCode!=null?ne.breakLineCode:oe==="arrow"?";":` +`,de=ne.needIndent?ne.needIndent:oe!=="arrow",fe=ee.helpers||[],ve=createCodeGenerator(ee,{mode:oe,filename:ae,sourceMap:ie,breakLineCode:se,needIndent:de});ve.push(oe==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),ve.indent(de),fe.length>0&&(ve.push(`const { ${join(fe.map($e=>`${$e}: _${$e}`),", ")} } = ctx`),ve.newline()),ve.push("return "),generateNode(ve,ee),ve.deindent(de),ve.push("}"),delete ee.helpers;const{code:be,map:ye}=ve.context();return{ast:ee,code:be,map:ye?ye.toJSON():void 0}};function baseCompile$1(ee,ne={}){const oe=assign$2({},ne),ae=!!oe.jit,ie=!!oe.minify,se=oe.optimize==null?!0:oe.optimize,fe=createParser(oe).parse(ee);return ae?(se&&optimize(fe),ie&&minify(fe),{ast:fe,code:""}):(transform(fe,oe),generate(fe,oe))}/*! + * core-base v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}function format$2(ee){return oe=>formatParts(oe,ee)}function formatParts(ee,ne){const oe=ne.b||ne.body;if((oe.t||oe.type)===1){const ae=oe,ie=ae.c||ae.cases;return ee.plural(ie.reduce((se,de)=>[...se,formatMessageParts(ee,de)],[]))}else return formatMessageParts(ee,oe)}function formatMessageParts(ee,ne){const oe=ne.s||ne.static;if(oe!=null)return ee.type==="text"?oe:ee.normalize([oe]);{const ae=(ne.i||ne.items).reduce((ie,se)=>[...ie,formatMessagePart(ee,se)],[]);return ee.normalize(ae)}}function formatMessagePart(ee,ne){const oe=ne.t||ne.type;switch(oe){case 3:{const ae=ne;return ae.v||ae.value}case 9:{const ae=ne;return ae.v||ae.value}case 4:{const ae=ne;return ee.interpolate(ee.named(ae.k||ae.key))}case 5:{const ae=ne;return ee.interpolate(ee.list(ae.i!=null?ae.i:ae.index))}case 6:{const ae=ne,ie=ae.m||ae.modifier;return ee.linked(formatMessagePart(ee,ae.k||ae.key),ie?formatMessagePart(ee,ie):void 0,ee.type)}case 7:{const ae=ne;return ae.v||ae.value}case 8:{const ae=ne;return ae.v||ae.value}default:throw new Error(`unhandled node type on format message part: ${oe}`)}}const defaultOnCacheKey=ee=>ee;let compileCache=Object.create(null);const isMessageAST=ee=>isObject$3(ee)&&(ee.t===0||ee.type===0)&&("b"in ee||"body"in ee);function baseCompile(ee,ne={}){let oe=!1;const ae=ne.onError||defaultOnError;return ne.onError=ie=>{oe=!0,ae(ie)},{...baseCompile$1(ee,ne),detectError:oe}}function compile(ee,ne){if(isString$2(ee)){isBoolean$1(ne.warnHtmlMessage)&&ne.warnHtmlMessage;const ae=(ne.onCacheKey||defaultOnCacheKey)(ee),ie=compileCache[ae];if(ie)return ie;const{ast:se,detectError:de}=baseCompile(ee,{...ne,location:!1,jit:!0}),fe=format$2(se);return de?fe:compileCache[ae]=fe}else{const oe=ee.cacheKey;if(oe){const ae=compileCache[oe];return ae||(compileCache[oe]=format$2(ee))}else return format$2(ee)}}let devtools=null;function setDevToolsHook(ee){devtools=ee}function initI18nDevTools(ee,ne,oe){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:ee,version:ne,meta:oe})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(ee){return ne=>devtools&&devtools.emit(ee,ne)}const CoreErrorCodes={INVALID_ARGUMENT:COMPILE_ERROR_CODES_EXTEND_POINT,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},CORE_ERROR_CODES_EXTEND_POINT=24;function createCoreError(ee){return createCompileError(ee,null,void 0)}function getLocale(ee,ne){return ne.locale!=null?resolveLocale(ne.locale):resolveLocale(ee.locale)}let _resolveLocale;function resolveLocale(ee){if(isString$2(ee))return ee;if(isFunction$3(ee)){if(ee.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(ee.constructor.name==="Function"){const ne=ee();if(isPromise$1(ne))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=ne}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(ee,ne,oe){return[...new Set([oe,...isArray$2(ne)?ne:isObject$3(ne)?Object.keys(ne):isString$2(ne)?[ne]:[oe]])]}function fallbackWithLocaleChain(ee,ne,oe){const ae=isString$2(oe)?oe:DEFAULT_LOCALE,ie=ee;ie.__localeChainCache||(ie.__localeChainCache=new Map);let se=ie.__localeChainCache.get(ae);if(!se){se=[];let de=[oe];for(;isArray$2(de);)de=appendBlockToChain(se,de,ne);const fe=isArray$2(ne)||!isPlainObject$2(ne)?ne:ne.default?ne.default:null;de=isString$2(fe)?[fe]:fe,isArray$2(de)&&appendBlockToChain(se,de,!1),ie.__localeChainCache.set(ae,se)}return se}function appendBlockToChain(ee,ne,oe){let ae=!0;for(let ie=0;ie{de===void 0?de=fe:de+=fe},we[1]=()=>{de!==void 0&&(ne.push(de),de=void 0)},we[2]=()=>{we[0](),ie++},we[3]=()=>{if(ie>0)ie--,ae=4,we[0]();else{if(ie=0,de===void 0||(de=formatSubPath(de),de===!1))return!1;we[1]()}};function Ee(){const _e=ee[oe+1];if(ae===5&&_e==="'"||ae===6&&_e==='"')return oe++,fe="\\"+_e,we[0](),!0}for(;ae!==null;)if(oe++,se=ee[oe],!(se==="\\"&&Ee())){if(ve=getPathCharType(se),$e=pathStateMachine[ae],be=$e[ve]||$e.l||8,be===8||(ae=be[0],be[1]!==void 0&&(ye=we[be[1]],ye&&(fe=se,ye()===!1))))return;if(ae===7)return ne}}const cache=new Map;function resolveWithKeyValue(ee,ne){return isObject$3(ee)?ee[ne]:null}function resolveValue(ee,ne){if(!isObject$3(ee))return null;let oe=cache.get(ne);if(oe||(oe=parse(ne),oe&&cache.set(ne,oe)),!oe)return null;const ae=oe.length;let ie=ee,se=0;for(;se`${ee.charAt(0).toLocaleUpperCase()}${ee.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(ee,ne)=>ne==="text"&&isString$2(ee)?ee.toUpperCase():ne==="vnode"&&isObject$3(ee)&&"__v_isVNode"in ee?ee.children.toUpperCase():ee,lower:(ee,ne)=>ne==="text"&&isString$2(ee)?ee.toLowerCase():ne==="vnode"&&isObject$3(ee)&&"__v_isVNode"in ee?ee.children.toLowerCase():ee,capitalize:(ee,ne)=>ne==="text"&&isString$2(ee)?capitalize(ee):ne==="vnode"&&isObject$3(ee)&&"__v_isVNode"in ee?capitalize(ee.children):ee}}let _compiler;function registerMessageCompiler(ee){_compiler=ee}let _resolver;function registerMessageResolver(ee){_resolver=ee}let _fallbacker;function registerLocaleFallbacker(ee){_fallbacker=ee}let _additionalMeta=null;const setAdditionalMeta=ee=>{_additionalMeta=ee},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=ee=>{_fallbackContext=ee},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(ee={}){const ne=isFunction$3(ee.onWarn)?ee.onWarn:warn,oe=isString$2(ee.version)?ee.version:VERSION$2,ae=isString$2(ee.locale)||isFunction$3(ee.locale)?ee.locale:DEFAULT_LOCALE,ie=isFunction$3(ae)?DEFAULT_LOCALE:ae,se=isArray$2(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||isString$2(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:ie,de=isPlainObject$2(ee.messages)?ee.messages:{[ie]:{}},fe=isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[ie]:{}},ve=isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[ie]:{}},be=assign$2({},ee.modifiers||{},getDefaultLinkedModifiers()),ye=ee.pluralRules||{},$e=isFunction$3(ee.missing)?ee.missing:null,we=isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,Ee=isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,_e=!!ee.fallbackFormat,Ce=!!ee.unresolving,Pe=isFunction$3(ee.postTranslation)?ee.postTranslation:null,Ae=isPlainObject$2(ee.processor)?ee.processor:null,ke=isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,Ne=!!ee.escapeParameter,Oe=isFunction$3(ee.messageCompiler)?ee.messageCompiler:_compiler,Re=isFunction$3(ee.messageResolver)?ee.messageResolver:_resolver||resolveWithKeyValue,Be=isFunction$3(ee.localeFallbacker)?ee.localeFallbacker:_fallbacker||fallbackWithSimple,Me=isObject$3(ee.fallbackContext)?ee.fallbackContext:void 0,Le=ee,Xe=isObject$3(Le.__datetimeFormatters)?Le.__datetimeFormatters:new Map,Ke=isObject$3(Le.__numberFormatters)?Le.__numberFormatters:new Map,De=isObject$3(Le.__meta)?Le.__meta:{};_cid++;const je={version:oe,cid:_cid,locale:ae,fallbackLocale:se,messages:de,modifiers:be,pluralRules:ye,missing:$e,missingWarn:we,fallbackWarn:Ee,fallbackFormat:_e,unresolving:Ce,postTranslation:Pe,processor:Ae,warnHtmlMessage:ke,escapeParameter:Ne,messageCompiler:Oe,messageResolver:Re,localeFallbacker:Be,fallbackContext:Me,onWarn:ne,__meta:De};return je.datetimeFormats=fe,je.numberFormats=ve,je.__datetimeFormatters=Xe,je.__numberFormatters=Ke,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(je,oe,De),je}function handleMissing(ee,ne,oe,ae,ie){const{missing:se,onWarn:de}=ee;if(se!==null){const fe=se(ee,oe,ne,ie);return isString$2(fe)?fe:ne}else return ne}function updateFallbackLocale(ee,ne,oe){const ae=ee;ae.__localeChainCache=new Map,ee.localeFallbacker(ee,oe,ne)}function isAlmostSameLocale(ee,ne){return ee===ne?!1:ee.split("-")[0]===ne.split("-")[0]}function isImplicitFallback(ee,ne){const oe=ne.indexOf(ee);if(oe===-1)return!1;for(let ae=oe+1;ae{DATETIME_FORMAT_OPTIONS_KEYS.includes(ve)?de[ve]=oe[ve]:se[ve]=oe[ve]}),isString$2(ae)?se.locale=ae:isPlainObject$2(ae)&&(de=ae),isPlainObject$2(ie)&&(de=ie),[se.key||"",fe,se,de]}function clearDateTimeFormat(ee,ne,oe){const ae=ee;for(const ie in oe){const se=`${ne}__${ie}`;ae.__datetimeFormatters.has(se)&&ae.__datetimeFormatters.delete(se)}}function number(ee,...ne){const{numberFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:se,localeFallbacker:de}=ee,{__numberFormatters:fe}=ee,[ve,be,ye,$e]=parseNumberArgs(...ne),we=isBoolean$1(ye.missingWarn)?ye.missingWarn:ee.missingWarn;isBoolean$1(ye.fallbackWarn)?ye.fallbackWarn:ee.fallbackWarn;const Ee=!!ye.part,_e=getLocale(ee,ye),Ce=de(ee,ie,_e);if(!isString$2(ve)||ve==="")return new Intl.NumberFormat(_e,$e).format(be);let Pe={},Ae,ke=null;const Ne="number format";for(let Be=0;Be{NUMBER_FORMAT_OPTIONS_KEYS.includes(ve)?de[ve]=oe[ve]:se[ve]=oe[ve]}),isString$2(ae)?se.locale=ae:isPlainObject$2(ae)&&(de=ae),isPlainObject$2(ie)&&(de=ie),[se.key||"",fe,se,de]}function clearNumberFormat(ee,ne,oe){const ae=ee;for(const ie in oe){const se=`${ne}__${ie}`;ae.__numberFormatters.has(se)&&ae.__numberFormatters.delete(se)}}const DEFAULT_MODIFIER=ee=>ee,DEFAULT_MESSAGE=ee=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=ee=>ee.length===0?"":join(ee),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(ee,ne){return ee=Math.abs(ee),ne===2?ee?ee>1?1:0:1:ee?Math.min(ee,2):0}function getPluralIndex(ee){const ne=isNumber$1(ee.pluralIndex)?ee.pluralIndex:-1;return ee.named&&(isNumber$1(ee.named.count)||isNumber$1(ee.named.n))?isNumber$1(ee.named.count)?ee.named.count:isNumber$1(ee.named.n)?ee.named.n:ne:ne}function normalizeNamed(ee,ne){ne.count||(ne.count=ee),ne.n||(ne.n=ee)}function createMessageContext(ee={}){const ne=ee.locale,oe=getPluralIndex(ee),ae=isObject$3(ee.pluralRules)&&isString$2(ne)&&isFunction$3(ee.pluralRules[ne])?ee.pluralRules[ne]:pluralDefault,ie=isObject$3(ee.pluralRules)&&isString$2(ne)&&isFunction$3(ee.pluralRules[ne])?pluralDefault:void 0,se=Ae=>Ae[ae(oe,Ae.length,ie)],de=ee.list||[],fe=Ae=>de[Ae],ve=ee.named||{};isNumber$1(ee.pluralIndex)&&normalizeNamed(oe,ve);const be=Ae=>ve[Ae];function ye(Ae,ke){const Ne=isFunction$3(ee.messages)?ee.messages(Ae,!!ke):isObject$3(ee.messages)?ee.messages[Ae]:!1;return Ne||(ee.parent?ee.parent.message(Ae):DEFAULT_MESSAGE)}const $e=Ae=>ee.modifiers?ee.modifiers[Ae]:DEFAULT_MODIFIER,we=isPlainObject$2(ee.processor)&&isFunction$3(ee.processor.normalize)?ee.processor.normalize:DEFAULT_NORMALIZE,Ee=isPlainObject$2(ee.processor)&&isFunction$3(ee.processor.interpolate)?ee.processor.interpolate:DEFAULT_INTERPOLATE,_e=isPlainObject$2(ee.processor)&&isString$2(ee.processor.type)?ee.processor.type:DEFAULT_MESSAGE_DATA_TYPE,Pe={list:fe,named:be,plural:se,linked:(Ae,...ke)=>{const[Ne,Oe]=ke;let Re="text",Be="";ke.length===1?isObject$3(Ne)?(Be=Ne.modifier||Be,Re=Ne.type||Re):isString$2(Ne)&&(Be=Ne||Be):ke.length===2&&(isString$2(Ne)&&(Be=Ne||Be),isString$2(Oe)&&(Re=Oe||Re));const Me=ye(Ae,!0)(Pe),Le=Re==="vnode"&&isArray$2(Me)&&Be?Me[0]:Me;return Be?$e(Be)(Le,Re):Le},message:ye,type:_e,interpolate:Ee,normalize:we,values:assign$2({},de,ve)};return Pe}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=ee=>isFunction$3(ee);function translate(ee,...ne){const{fallbackFormat:oe,postTranslation:ae,unresolving:ie,messageCompiler:se,fallbackLocale:de,messages:fe}=ee,[ve,be]=parseTranslateArgs(...ne),ye=isBoolean$1(be.missingWarn)?be.missingWarn:ee.missingWarn,$e=isBoolean$1(be.fallbackWarn)?be.fallbackWarn:ee.fallbackWarn,we=isBoolean$1(be.escapeParameter)?be.escapeParameter:ee.escapeParameter,Ee=!!be.resolvedMessage,_e=isString$2(be.default)||isBoolean$1(be.default)?isBoolean$1(be.default)?se?ve:()=>ve:be.default:oe?se?ve:()=>ve:null,Ce=oe||_e!=null&&(isString$2(_e)||isFunction$3(_e)),Pe=getLocale(ee,be);we&&escapeParams(be);let[Ae,ke,Ne]=Ee?[ve,Pe,fe[Pe]||{}]:resolveMessageFormat(ee,ve,Pe,de,$e,ye),Oe=Ae,Re=ve;if(!Ee&&!(isString$2(Oe)||isMessageAST(Oe)||isMessageFunction(Oe))&&Ce&&(Oe=_e,Re=Oe),!Ee&&(!(isString$2(Oe)||isMessageAST(Oe)||isMessageFunction(Oe))||!isString$2(ke)))return ie?NOT_REOSLVED:ve;let Be=!1;const Me=()=>{Be=!0},Le=isMessageFunction(Oe)?Oe:compileMessageFormat(ee,ve,ke,Oe,Re,Me);if(Be)return Oe;const Xe=getMessageContextOptions(ee,ke,Ne,be),Ke=createMessageContext(Xe),De=evaluateMessage(ee,Le,Ke),je=ae?ae(De,ve):De;if(__INTLIFY_PROD_DEVTOOLS__){const He={timestamp:Date.now(),key:isString$2(ve)?ve:isMessageFunction(Oe)?Oe.key:"",locale:ke||(isMessageFunction(Oe)?Oe.locale:""),format:isString$2(Oe)?Oe:isMessageFunction(Oe)?Oe.source:"",message:je};He.meta=assign$2({},ee.__meta,getAdditionalMeta()||{}),translateDevTools(He)}return je}function escapeParams(ee){isArray$2(ee.list)?ee.list=ee.list.map(ne=>isString$2(ne)?escapeHtml(ne):ne):isObject$3(ee.named)&&Object.keys(ee.named).forEach(ne=>{isString$2(ee.named[ne])&&(ee.named[ne]=escapeHtml(ee.named[ne]))})}function resolveMessageFormat(ee,ne,oe,ae,ie,se){const{messages:de,onWarn:fe,messageResolver:ve,localeFallbacker:be}=ee,ye=be(ee,ae,oe);let $e={},we,Ee=null;const _e="translate";for(let Ce=0;Ceae;return be.locale=oe,be.key=ne,be}const ve=de(ae,getCompileContext(ee,oe,ie,ae,fe,se));return ve.locale=oe,ve.key=ne,ve.source=ae,ve}function evaluateMessage(ee,ne,oe){return ne(oe)}function parseTranslateArgs(...ee){const[ne,oe,ae]=ee,ie={};if(!isString$2(ne)&&!isNumber$1(ne)&&!isMessageFunction(ne)&&!isMessageAST(ne))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const se=isNumber$1(ne)?String(ne):(isMessageFunction(ne),ne);return isNumber$1(oe)?ie.plural=oe:isString$2(oe)?ie.default=oe:isPlainObject$2(oe)&&!isEmptyObject(oe)?ie.named=oe:isArray$2(oe)&&(ie.list=oe),isNumber$1(ae)?ie.plural=ae:isString$2(ae)?ie.default=ae:isPlainObject$2(ae)&&assign$2(ie,ae),[se,ie]}function getCompileContext(ee,ne,oe,ae,ie,se){return{locale:ne,key:oe,warnHtmlMessage:ie,onError:de=>{throw se&&se(de),de},onCacheKey:de=>generateFormatCacheKey(ne,oe,de)}}function getMessageContextOptions(ee,ne,oe,ae){const{modifiers:ie,pluralRules:se,messageResolver:de,fallbackLocale:fe,fallbackWarn:ve,missingWarn:be,fallbackContext:ye}=ee,we={locale:ne,modifiers:ie,pluralRules:se,messages:(Ee,_e)=>{let Ce=de(oe,Ee);if(Ce==null&&(ye||_e)){const[,,Pe]=resolveMessageFormat(ye||ee,Ee,ne,fe,ve,be);Ce=de(Pe,Ee)}if(isString$2(Ce)||isMessageAST(Ce)){let Pe=!1;const ke=compileMessageFormat(ee,Ee,ne,Ce,Ee,()=>{Pe=!0});return Pe?NOOP_MESSAGE_FUNCTION:ke}else return isMessageFunction(Ce)?Ce:NOOP_MESSAGE_FUNCTION}};return ee.processor&&(we.processor=ee.processor),ae.list&&(we.list=ae.list),ae.named&&(we.named=ae.named),isNumber$1(ae.plural)&&(we.pluralIndex=ae.plural),we}initFeatureFlags$1();/*! + * vue-i18n v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const VERSION$1="10.0.4";function initFeatureFlags(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const I18nErrorCodes={UNEXPECTED_RETURN_TYPE:CORE_ERROR_CODES_EXTEND_POINT,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function createI18nError(ee,...ne){return createCompileError(ee,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(ee){if(!isObject$3(ee))return ee;for(const ne in ee)if(hasOwn(ee,ne))if(!ne.includes("."))isObject$3(ee[ne])&&handleFlatJson(ee[ne]);else{const oe=ne.split("."),ae=oe.length-1;let ie=ee,se=!1;for(let de=0;de{if("locale"in fe&&"resource"in fe){const{locale:ve,resource:be}=fe;ve?(de[ve]=de[ve]||{},deepCopy(be,de[ve])):deepCopy(be,de)}else isString$2(fe)&&deepCopy(JSON.parse(fe),de)}),ie==null&&se)for(const fe in de)hasOwn(de,fe)&&handleFlatJson(de[fe]);return de}function getComponentOptions(ee){return ee.type}function adjustI18nResources(ee,ne,oe){let ae=isObject$3(ne.messages)?ne.messages:{};"__i18nGlobal"in oe&&(ae=getLocaleMessages(ee.locale.value,{messages:ae,__i18n:oe.__i18nGlobal}));const ie=Object.keys(ae);ie.length&&ie.forEach(se=>{ee.mergeLocaleMessage(se,ae[se])});{if(isObject$3(ne.datetimeFormats)){const se=Object.keys(ne.datetimeFormats);se.length&&se.forEach(de=>{ee.mergeDateTimeFormat(de,ne.datetimeFormats[de])})}if(isObject$3(ne.numberFormats)){const se=Object.keys(ne.numberFormats);se.length&&se.forEach(de=>{ee.mergeNumberFormat(de,ne.numberFormats[de])})}}}function createTextNode(ee){return createVNode(Text,null,ee,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(ee){return(ne,oe,ae,ie)=>ee(oe,ae,getCurrentInstance()||void 0,ie)}const getMetaInfo=()=>{const ee=getCurrentInstance();let ne=null;return ee&&(ne=getComponentOptions(ee)[DEVTOOLS_META])?{[DEVTOOLS_META]:ne}:null};function createComposer(ee={}){const{__root:ne,__injectWithOption:oe}=ee,ae=ne===void 0,ie=ee.flatJson,se=inBrowser$2?ref:shallowRef;let de=isBoolean$1(ee.inheritLocale)?ee.inheritLocale:!0;const fe=se(ne&&de?ne.locale.value:isString$2(ee.locale)?ee.locale:DEFAULT_LOCALE),ve=se(ne&&de?ne.fallbackLocale.value:isString$2(ee.fallbackLocale)||isArray$2(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:fe.value),be=se(getLocaleMessages(fe.value,ee)),ye=se(isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[fe.value]:{}}),$e=se(isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[fe.value]:{}});let we=ne?ne.missingWarn:isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,Ee=ne?ne.fallbackWarn:isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,_e=ne?ne.fallbackRoot:isBoolean$1(ee.fallbackRoot)?ee.fallbackRoot:!0,Ce=!!ee.fallbackFormat,Pe=isFunction$3(ee.missing)?ee.missing:null,Ae=isFunction$3(ee.missing)?defineCoreMissingHandler(ee.missing):null,ke=isFunction$3(ee.postTranslation)?ee.postTranslation:null,Ne=ne?ne.warnHtmlMessage:isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,Oe=!!ee.escapeParameter;const Re=ne?ne.modifiers:isPlainObject$2(ee.modifiers)?ee.modifiers:{};let Be=ee.pluralRules||ne&&ne.pluralRules,Me;Me=(()=>{ae&&setFallbackContext(null);const Lt={version:VERSION$1,locale:fe.value,fallbackLocale:ve.value,messages:be.value,modifiers:Re,pluralRules:Be,missing:Ae===null?void 0:Ae,missingWarn:we,fallbackWarn:Ee,fallbackFormat:Ce,unresolving:!0,postTranslation:ke===null?void 0:ke,warnHtmlMessage:Ne,escapeParameter:Oe,messageResolver:ee.messageResolver,messageCompiler:ee.messageCompiler,__meta:{framework:"vue"}};Lt.datetimeFormats=ye.value,Lt.numberFormats=$e.value,Lt.__datetimeFormatters=isPlainObject$2(Me)?Me.__datetimeFormatters:void 0,Lt.__numberFormatters=isPlainObject$2(Me)?Me.__numberFormatters:void 0;const qt=createCoreContext(Lt);return ae&&setFallbackContext(qt),qt})(),updateFallbackLocale(Me,fe.value,ve.value);function Xe(){return[fe.value,ve.value,be.value,ye.value,$e.value]}const Ke=computed({get:()=>fe.value,set:Lt=>{fe.value=Lt,Me.locale=fe.value}}),De=computed({get:()=>ve.value,set:Lt=>{ve.value=Lt,Me.fallbackLocale=ve.value,updateFallbackLocale(Me,fe.value,Lt)}}),je=computed(()=>be.value),He=computed(()=>ye.value),qe=computed(()=>$e.value);function ze(){return isFunction$3(ke)?ke:null}function Fe(Lt){ke=Lt,Me.postTranslation=Lt}function Ze(){return Pe}function ot(Lt){Lt!==null&&(Ae=defineCoreMissingHandler(Lt)),Pe=Lt,Me.missing=Ae}const Nt=(Lt,qt,nn,on,un,cn)=>{Xe();let fn;try{__INTLIFY_PROD_DEVTOOLS__,ae||(Me.fallbackContext=ne?getFallbackContext():void 0),fn=Lt(Me)}finally{__INTLIFY_PROD_DEVTOOLS__,ae||(Me.fallbackContext=void 0)}if(nn!=="translate exists"&&isNumber$1(fn)&&fn===NOT_REOSLVED||nn==="translate exists"&&!fn){const[mn,gn]=qt();return ne&&_e?on(ne):un(mn)}else{if(cn(fn))return fn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Mt(...Lt){return Nt(qt=>Reflect.apply(translate,null,[qt,...Lt]),()=>parseTranslateArgs(...Lt),"translate",qt=>Reflect.apply(qt.t,qt,[...Lt]),qt=>qt,qt=>isString$2(qt))}function Ue(...Lt){const[qt,nn,on]=Lt;if(on&&!isObject$3(on))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Mt(qt,nn,assign$2({resolvedMessage:!0},on||{}))}function Pt(...Lt){return Nt(qt=>Reflect.apply(datetime,null,[qt,...Lt]),()=>parseDateTimeArgs(...Lt),"datetime format",qt=>Reflect.apply(qt.d,qt,[...Lt]),()=>MISSING_RESOLVE_VALUE,qt=>isString$2(qt))}function Dt(...Lt){return Nt(qt=>Reflect.apply(number,null,[qt,...Lt]),()=>parseNumberArgs(...Lt),"number format",qt=>Reflect.apply(qt.n,qt,[...Lt]),()=>MISSING_RESOLVE_VALUE,qt=>isString$2(qt))}function Ut(Lt){return Lt.map(qt=>isString$2(qt)||isNumber$1(qt)||isBoolean$1(qt)?createTextNode(String(qt)):qt)}const Wt={normalize:Ut,interpolate:Lt=>Lt,type:"vnode"};function Qe(...Lt){return Nt(qt=>{let nn;const on=qt;try{on.processor=Wt,nn=Reflect.apply(translate,null,[on,...Lt])}finally{on.processor=null}return nn},()=>parseTranslateArgs(...Lt),"translate",qt=>qt[TranslateVNodeSymbol](...Lt),qt=>[createTextNode(qt)],qt=>isArray$2(qt))}function It(...Lt){return Nt(qt=>Reflect.apply(number,null,[qt,...Lt]),()=>parseNumberArgs(...Lt),"number format",qt=>qt[NumberPartsSymbol](...Lt),NOOP_RETURN_ARRAY,qt=>isString$2(qt)||isArray$2(qt))}function Ft(...Lt){return Nt(qt=>Reflect.apply(datetime,null,[qt,...Lt]),()=>parseDateTimeArgs(...Lt),"datetime format",qt=>qt[DatetimePartsSymbol](...Lt),NOOP_RETURN_ARRAY,qt=>isString$2(qt)||isArray$2(qt))}function jt(Lt){Be=Lt,Me.pluralRules=Be}function tn(Lt,qt){return Nt(()=>{if(!Lt)return!1;const nn=isString$2(qt)?qt:fe.value,on=Et(nn),un=Me.messageResolver(on,Lt);return isMessageAST(un)||isMessageFunction(un)||isString$2(un)},()=>[Lt],"translate exists",nn=>Reflect.apply(nn.te,nn,[Lt,qt]),NOOP_RETURN_FALSE,nn=>isBoolean$1(nn))}function Zt(Lt){let qt=null;const nn=fallbackWithLocaleChain(Me,ve.value,fe.value);for(let on=0;on{de&&(fe.value=Lt,Me.locale=Lt,updateFallbackLocale(Me,fe.value,ve.value))}),watch(ne.fallbackLocale,Lt=>{de&&(ve.value=Lt,Me.fallbackLocale=Lt,updateFallbackLocale(Me,fe.value,ve.value))}));const Qt={id:composerID,locale:Ke,fallbackLocale:De,get inheritLocale(){return de},set inheritLocale(Lt){de=Lt,Lt&&ne&&(fe.value=ne.locale.value,ve.value=ne.fallbackLocale.value,updateFallbackLocale(Me,fe.value,ve.value))},get availableLocales(){return Object.keys(be.value).sort()},messages:je,get modifiers(){return Re},get pluralRules(){return Be||{}},get isGlobal(){return ae},get missingWarn(){return we},set missingWarn(Lt){we=Lt,Me.missingWarn=we},get fallbackWarn(){return Ee},set fallbackWarn(Lt){Ee=Lt,Me.fallbackWarn=Ee},get fallbackRoot(){return _e},set fallbackRoot(Lt){_e=Lt},get fallbackFormat(){return Ce},set fallbackFormat(Lt){Ce=Lt,Me.fallbackFormat=Ce},get warnHtmlMessage(){return Ne},set warnHtmlMessage(Lt){Ne=Lt,Me.warnHtmlMessage=Lt},get escapeParameter(){return Oe},set escapeParameter(Lt){Oe=Lt,Me.escapeParameter=Lt},t:Mt,getLocaleMessage:Et,setLocaleMessage:Bt,mergeLocaleMessage:Xt,getPostTranslationHandler:ze,setPostTranslationHandler:Fe,getMissingHandler:Ze,setMissingHandler:ot,[SetPluralRulesSymbol]:jt};return Qt.datetimeFormats=He,Qt.numberFormats=qe,Qt.rt=Ue,Qt.te=tn,Qt.tm=nt,Qt.d=Pt,Qt.n=Dt,Qt.getDateTimeFormat=Yt,Qt.setDateTimeFormat=st,Qt.mergeDateTimeFormat=Tt,Qt.getNumberFormat=Vt,Qt.setNumberFormat=Kt,Qt.mergeNumberFormat=Gt,Qt[InejctWithOptionSymbol]=oe,Qt[TranslateVNodeSymbol]=Qe,Qt[DatetimePartsSymbol]=Ft,Qt[NumberPartsSymbol]=It,Qt}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:ee=>ee==="parent"||ee==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:ee},ne){return ne.length===1&&ne[0]==="default"?(ee.default?ee.default():[]).reduce((ae,ie)=>[...ae,...ie.type===Fragment?ie.children:[ie]],[]):ne.reduce((oe,ae)=>{const ie=ee[ae];return ie&&(oe[ae]=ie()),oe},{})}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:ee=>isNumber$1(ee)||!isNaN(ee)}},baseFormatProps),setup(ee,ne){const{slots:oe,attrs:ae}=ne,ie=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return()=>{const se=Object.keys(oe).filter($e=>$e!=="_"),de={};ee.locale&&(de.locale=ee.locale),ee.plural!==void 0&&(de.plural=isString$2(ee.plural)?+ee.plural:ee.plural);const fe=getInterpolateArg(ne,se),ve=ie[TranslateVNodeSymbol](ee.keypath,fe,de),be=assign$2({},ae),ye=isString$2(ee.tag)||isObject$3(ee.tag)?ee.tag:getFragmentableTag();return h$2(ye,be,ve)}}}),Translation=TranslationImpl;function isVNode(ee){return isArray$2(ee)&&!isString$2(ee[0])}function renderFormatter(ee,ne,oe,ae){const{slots:ie,attrs:se}=ne;return()=>{const de={part:!0};let fe={};ee.locale&&(de.locale=ee.locale),isString$2(ee.format)?de.key=ee.format:isObject$3(ee.format)&&(isString$2(ee.format.key)&&(de.key=ee.format.key),fe=Object.keys(ee.format).reduce((we,Ee)=>oe.includes(Ee)?assign$2({},we,{[Ee]:ee.format[Ee]}):we,{}));const ve=ae(ee.value,de,fe);let be=[de.key];isArray$2(ve)?be=ve.map((we,Ee)=>{const _e=ie[we.type],Ce=_e?_e({[we.type]:we.value,index:Ee,parts:ve}):[we.value];return isVNode(Ce)&&(Ce[0].key=`${we.type}-${Ee}`),Ce}):isString$2(ve)&&(be=[ve]);const ye=assign$2({},se),$e=isString$2(ee.tag)||isObject$3(ee.tag)?ee.tag:getFragmentableTag();return h$2($e,ye,be)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(ee,ne){const oe=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return renderFormatter(ee,ne,NUMBER_FORMAT_OPTIONS_KEYS,(...ae)=>oe[NumberPartsSymbol](...ae))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(ee,ne){const oe=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return renderFormatter(ee,ne,DATETIME_FORMAT_OPTIONS_KEYS,(...ae)=>oe[DatetimePartsSymbol](...ae))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$1(ee,ne){const oe=ee;if(ee.mode==="composition")return oe.__getInstance(ne)||ee.global;{const ae=oe.__getInstance(ne);return ae!=null?ae.__composer:ee.global.__composer}}function vTDirective(ee){const ne=de=>{const{instance:fe,value:ve}=de;if(!fe||!fe.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const be=getComposer$1(ee,fe.$),ye=parseValue(ve);return[Reflect.apply(be.t,be,[...makeParams(ye)]),be]};return{created:(de,fe)=>{const[ve,be]=ne(fe);inBrowser$2&&ee.global===be&&(de.__i18nWatcher=watch(be.locale,()=>{fe.instance&&fe.instance.$forceUpdate()})),de.__composer=be,de.textContent=ve},unmounted:de=>{inBrowser$2&&de.__i18nWatcher&&(de.__i18nWatcher(),de.__i18nWatcher=void 0,delete de.__i18nWatcher),de.__composer&&(de.__composer=void 0,delete de.__composer)},beforeUpdate:(de,{value:fe})=>{if(de.__composer){const ve=de.__composer,be=parseValue(fe);de.textContent=Reflect.apply(ve.t,ve,[...makeParams(be)])}},getSSRProps:de=>{const[fe]=ne(de);return{textContent:fe}}}}function parseValue(ee){if(isString$2(ee))return{path:ee};if(isPlainObject$2(ee)){if(!("path"in ee))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return ee}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(ee){const{path:ne,locale:oe,args:ae,choice:ie,plural:se}=ee,de={},fe=ae||{};return isString$2(oe)&&(de.locale=oe),isNumber$1(ie)&&(de.plural=ie),isNumber$1(se)&&(de.plural=se),[ne,fe,de]}function apply(ee,ne,...oe){const ae=isPlainObject$2(oe[0])?oe[0]:{};(isBoolean$1(ae.globalInstall)?ae.globalInstall:!0)&&([Translation.name,"I18nT"].forEach(se=>ee.component(se,Translation)),[NumberFormat.name,"I18nN"].forEach(se=>ee.component(se,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(se=>ee.component(se,DatetimeFormat))),ee.directive("t",vTDirective(ne))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(ee={},ne){const oe=isBoolean$1(ee.globalInjection)?ee.globalInjection:!0,ae=new Map,[ie,se]=createGlobal(ee),de=makeSymbol("");function fe($e){return ae.get($e)||null}function ve($e,we){ae.set($e,we)}function be($e){ae.delete($e)}const ye={get mode(){return"composition"},async install($e,...we){if($e.__VUE_I18N_SYMBOL__=de,$e.provide($e.__VUE_I18N_SYMBOL__,ye),isPlainObject$2(we[0])){const Ce=we[0];ye.__composerExtend=Ce.__composerExtend,ye.__vueI18nExtend=Ce.__vueI18nExtend}let Ee=null;oe&&(Ee=injectGlobalFields($e,ye.global)),apply($e,ye,...we);const _e=$e.unmount;$e.unmount=()=>{Ee&&Ee(),ye.dispose(),_e()}},get global(){return se},dispose(){ie.stop()},__instances:ae,__getInstance:fe,__setInstance:ve,__deleteInstance:be};return ye}function useI18n(ee={}){const ne=getCurrentInstance();if(ne==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!ne.isCE&&ne.appContext.app!=null&&!ne.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const oe=getI18nInstance(ne),ae=getGlobalComposer(oe),ie=getComponentOptions(ne),se=getScope(ee,ie);if(se==="global")return adjustI18nResources(ae,ee,ie),ae;if(se==="parent"){let ve=getComposer(oe,ne,ee.__useComponent);return ve==null&&(ve=ae),ve}const de=oe;let fe=de.__getInstance(ne);if(fe==null){const ve=assign$2({},ee);"__i18n"in ie&&(ve.__i18n=ie.__i18n),ae&&(ve.__root=ae),fe=createComposer(ve),de.__composerExtend&&(fe[DisposeSymbol]=de.__composerExtend(fe)),setupLifeCycle(de,ne,fe),de.__setInstance(ne,fe)}return fe}function createGlobal(ee,ne,oe){const ae=effectScope(),ie=ae.run(()=>createComposer(ee));if(ie==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ae,ie]}function getI18nInstance(ee){const ne=inject(ee.isCE?I18nInjectionKey:ee.appContext.app.__VUE_I18N_SYMBOL__);if(!ne)throw createI18nError(ee.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return ne}function getScope(ee,ne){return isEmptyObject(ee)?"__i18n"in ne?"local":"global":ee.useScope?ee.useScope:"local"}function getGlobalComposer(ee){return ee.mode==="composition"?ee.global:ee.global.__composer}function getComposer(ee,ne,oe=!1){let ae=null;const ie=ne.root;let se=getParentComponentInstance(ne,oe);for(;se!=null;){const de=ee;if(ee.mode==="composition"&&(ae=de.__getInstance(se)),ae!=null||ie===se)break;se=se.parent}return ae}function getParentComponentInstance(ee,ne=!1){return ee==null?null:ne&&ee.vnode.ctx||ee.parent}function setupLifeCycle(ee,ne,oe){onMounted(()=>{},ne),onUnmounted(()=>{const ae=oe;ee.__deleteInstance(ne);const ie=ae[DisposeSymbol];ie&&(ie(),delete ae[DisposeSymbol])},ne)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(ee,ne){const oe=Object.create(null);return globalExportProps.forEach(ie=>{const se=Object.getOwnPropertyDescriptor(ne,ie);if(!se)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const de=isRef(se.value)?{get(){return se.value.value},set(fe){se.value.value=fe}}:{get(){return se.get&&se.get()}};Object.defineProperty(oe,ie,de)}),ee.config.globalProperties.$i18n=oe,globalExportMethods.forEach(ie=>{const se=Object.getOwnPropertyDescriptor(ne,ie);if(!se||!se.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(ee.config.globalProperties,`$${ie}`,se)}),()=>{delete ee.config.globalProperties.$i18n,globalExportMethods.forEach(ie=>{delete ee.config.globalProperties[`$${ie}`]})}}initFeatureFlags();registerMessageCompiler(compile);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(__INTLIFY_PROD_DEVTOOLS__){const ee=getGlobalThis();ee.__INTLIFY__=!0,setDevToolsHook(ee.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function setupI18n(){const ee=useSettingsStore();return createI18n({legacy:!1,locale:ee.lang,flatJson:!0,fallbackLocale:"zh-cn",messages:messages$1})}function getLocales(){return cloneDeep(messages$1)}const localesName={};for(const ee in messages$1)switch(ee){case"zh-cn":localesName[ee]="中文";break;case"en-us":localesName[ee]="English";break}function $t(ee){return ee}/*! + * pinia v2.2.6 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let activePinia;const setActivePinia=ee=>activePinia=ee,piniaSymbol=Symbol();function isPlainObject$1(ee){return ee&&typeof ee=="object"&&Object.prototype.toString.call(ee)==="[object Object]"&&typeof ee.toJSON!="function"}var MutationType;(function(ee){ee.direct="direct",ee.patchObject="patch object",ee.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const ee=effectScope(!0),ne=ee.run(()=>ref({}));let oe=[],ae=[];const ie=markRaw({install(se){setActivePinia(ie),ie._a=se,se.provide(piniaSymbol,ie),se.config.globalProperties.$pinia=ie,ae.forEach(de=>oe.push(de)),ae=[]},use(se){return!this._a&&!isVue2?ae.push(se):oe.push(se),this},_p:oe,_a:null,_e:ee,_s:new Map,state:ne});return ie}const noop$3=()=>{};function addSubscription(ee,ne,oe,ae=noop$3){ee.push(ne);const ie=()=>{const se=ee.indexOf(ne);se>-1&&(ee.splice(se,1),ae())};return!oe&&getCurrentScope()&&onScopeDispose(ie),ie}function triggerSubscriptions(ee,...ne){ee.slice().forEach(oe=>{oe(...ne)})}const fallbackRunWithContext=ee=>ee(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(ee,ne){ee instanceof Map&&ne instanceof Map?ne.forEach((oe,ae)=>ee.set(ae,oe)):ee instanceof Set&&ne instanceof Set&&ne.forEach(ee.add,ee);for(const oe in ne){if(!ne.hasOwnProperty(oe))continue;const ae=ne[oe],ie=ee[oe];isPlainObject$1(ie)&&isPlainObject$1(ae)&&ee.hasOwnProperty(oe)&&!isRef(ae)&&!isReactive(ae)?ee[oe]=mergeReactiveObjects(ie,ae):ee[oe]=ae}return ee}const skipHydrateSymbol=Symbol();function shouldHydrate(ee){return!isPlainObject$1(ee)||!ee.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(ee){return!!(isRef(ee)&&ee.effect)}function createOptionsStore(ee,ne,oe,ae){const{state:ie,actions:se,getters:de}=ne,fe=oe.state.value[ee];let ve;function be(){fe||(oe.state.value[ee]=ie?ie():{});const ye=toRefs(oe.state.value[ee]);return assign$1(ye,se,Object.keys(de||{}).reduce(($e,we)=>($e[we]=markRaw(computed(()=>{setActivePinia(oe);const Ee=oe._s.get(ee);return de[we].call(Ee,Ee)})),$e),{}))}return ve=createSetupStore(ee,be,ne,oe,ae,!0),ve}function createSetupStore(ee,ne,oe={},ae,ie,se){let de;const fe=assign$1({actions:{}},oe),ve={deep:!0};let be,ye,$e=[],we=[],Ee;const _e=ae.state.value[ee];!se&&!_e&&(ae.state.value[ee]={}),ref({});let Ce;function Pe(Le){let Xe;be=ye=!1,typeof Le=="function"?(Le(ae.state.value[ee]),Xe={type:MutationType.patchFunction,storeId:ee,events:Ee}):(mergeReactiveObjects(ae.state.value[ee],Le),Xe={type:MutationType.patchObject,payload:Le,storeId:ee,events:Ee});const Ke=Ce=Symbol();nextTick().then(()=>{Ce===Ke&&(be=!0)}),ye=!0,triggerSubscriptions($e,Xe,ae.state.value[ee])}const Ae=se?function(){const{state:Xe}=oe,Ke=Xe?Xe():{};this.$patch(De=>{assign$1(De,Ke)})}:noop$3;function ke(){de.stop(),$e=[],we=[],ae._s.delete(ee)}const Ne=(Le,Xe="")=>{if(ACTION_MARKER in Le)return Le[ACTION_NAME]=Xe,Le;const Ke=function(){setActivePinia(ae);const De=Array.from(arguments),je=[],He=[];function qe(Ze){je.push(Ze)}function ze(Ze){He.push(Ze)}triggerSubscriptions(we,{args:De,name:Ke[ACTION_NAME],store:Re,after:qe,onError:ze});let Fe;try{Fe=Le.apply(this&&this.$id===ee?this:Re,De)}catch(Ze){throw triggerSubscriptions(He,Ze),Ze}return Fe instanceof Promise?Fe.then(Ze=>(triggerSubscriptions(je,Ze),Ze)).catch(Ze=>(triggerSubscriptions(He,Ze),Promise.reject(Ze))):(triggerSubscriptions(je,Fe),Fe)};return Ke[ACTION_MARKER]=!0,Ke[ACTION_NAME]=Xe,Ke},Oe={_p:ae,$id:ee,$onAction:addSubscription.bind(null,we),$patch:Pe,$reset:Ae,$subscribe(Le,Xe={}){const Ke=addSubscription($e,Le,Xe.detached,()=>De()),De=de.run(()=>watch(()=>ae.state.value[ee],je=>{(Xe.flush==="sync"?ye:be)&&Le({storeId:ee,type:MutationType.direct,events:Ee},je)},assign$1({},ve,Xe)));return Ke},$dispose:ke},Re=reactive(Oe);ae._s.set(ee,Re);const Me=(ae._a&&ae._a.runWithContext||fallbackRunWithContext)(()=>ae._e.run(()=>(de=effectScope()).run(()=>ne({action:Ne}))));for(const Le in Me){const Xe=Me[Le];if(isRef(Xe)&&!isComputed(Xe)||isReactive(Xe))se||(_e&&shouldHydrate(Xe)&&(isRef(Xe)?Xe.value=_e[Le]:mergeReactiveObjects(Xe,_e[Le])),ae.state.value[ee][Le]=Xe);else if(typeof Xe=="function"){const Ke=Ne(Xe,Le);Me[Le]=Ke,fe.actions[Le]=Xe}}return assign$1(Re,Me),assign$1(toRaw(Re),Me),Object.defineProperty(Re,"$state",{get:()=>ae.state.value[ee],set:Le=>{Pe(Xe=>{assign$1(Xe,Le)})}}),ae._p.forEach(Le=>{assign$1(Re,de.run(()=>Le({store:Re,app:ae._a,pinia:ae,options:fe})))}),_e&&se&&oe.hydrate&&oe.hydrate(Re.$state,_e),be=!0,ye=!0,Re}/*! #__NO_SIDE_EFFECTS__ */function defineStore(ee,ne,oe){let ae,ie;const se=typeof ne=="function";typeof ee=="string"?(ae=ee,ie=se?oe:ne):(ie=ee,ae=ee.id);function de(fe,ve){const be=hasInjectionContext();return fe=fe||(be?inject(piniaSymbol,null):null),fe&&setActivePinia(fe),fe=activePinia,fe._s.has(ae)||(se?createSetupStore(ae,ne,ie,fe):createOptionsStore(ae,ie,fe)),fe._s.get(ae)}return de.$id=ae,de}const pinia=createPinia(),useTabbarBadgeStore=defineStore("tabbarBadge",()=>{const ee=ref(!0),ne=ref(10),oe=ref("热门");function ae(){ee.value=!ee.value}function ie(de){ne.value=de}function se(de){oe.value=de}return{dot:ee,number:ne,text:oe,switchDot:ae,setNumber:ie,setText:se}}),tabbarBadgeStore=useTabbarBadgeStore(pinia),globalSettings={app:{enablePermission:!0,enableDynamicTitle:!0,enableErrorLog:!0},navbar:{mode:"fixed"},tabbar:{list:[{name:"default",list:[{path:"/feature",icon:"i-ic:sharp-auto-awesome",activeIcon:"i-ic:twotone-auto-awesome",text:"tabbar.default.feature"},{path:"/",icon:"i-ic:sharp-home",activeIcon:"i-ic:twotone-home",text:"tabbar.default.index"},{path:"/user",icon:"i-ic:baseline-person",activeIcon:"i-ic:twotone-person",text:"tabbar.default.user"}]},{name:"second",list:[{path:"/",icon:"i-mdi:flower",text:"tabbar.second.flower"},{path:"/",icon:"i-mdi:grass",text:"tabbar.second.grass"}]},{name:"third",list:[{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.dot",badge:()=>tabbarBadgeStore.dot},{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.number",badge:()=>tabbarBadgeStore.number},{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.text",badge:()=>tabbarBadgeStore.text}]}]},copyright:{dates:"2024-present",company:"Fantastic-mobile",website:"https://fantastic-mobile.hurui.me"}},settingsDefault=defaultsDeep(globalSettings,globalSettingsDefault),useSettingsStore=defineStore("settings",()=>{const ee=ref(settingsDefault),ne=window.matchMedia("(prefers-color-scheme: dark)"),oe=ref();watch(()=>ee.value.app.colorScheme,we=>{we===""?ne.addEventListener("change",ae):ne.removeEventListener("change",ae)},{immediate:!0}),watch([()=>ee.value.app.colorScheme,()=>ee.value.app.lightTheme,()=>ee.value.app.darkTheme],ae,{immediate:!0});function ae(){let we=ee.value.app.colorScheme;switch(we===""&&(we=ne.matches?"dark":"light"),oe.value=we,we){case"light":document.documentElement.classList.remove("dark"),document.body.setAttribute("data-theme",ee.value.app.lightTheme);break;case"dark":document.documentElement.classList.add("dark"),document.body.setAttribute("data-theme",ee.value.app.darkTheme);break}}watch([()=>ee.value.app.enableMournMode,()=>ee.value.app.enableColorAmblyopiaMode],we=>{document.documentElement.style.removeProperty("filter"),we[0]&&we[1]?document.documentElement.style.setProperty("filter","grayscale(100%) invert(80%)"):we[0]?document.documentElement.style.setProperty("filter","grayscale(100%)"):we[1]&&document.documentElement.style.setProperty("filter","invert(80%)")},{immediate:!0});const ie=ref("");function se(we){ie.value=we}const de=ref([]);function fe(we,Ee){const _e=de.value.findIndex(Ce=>Ce.fullPath===we);_e>-1?de.value[_e].title=Ee:de.value.push({fullPath:we,title:Ee})}function ve(we){const Ee=de.value.findIndex(_e=>_e.fullPath===we);Ee>-1&&de.value.splice(Ee,1)}const be=computed(()=>{if(ee.value.app.defaultLang===""){const we=navigator.language.toLowerCase(),Ee=getLocales();if(Ee!=null&&Ee[we])return we}return ee.value.app.defaultLang||"zh-cn"});function ye(we){ee.value.app.defaultLang=we}function $e(we){ee.value.app.colorScheme=we}return{settings:ee,currentColorScheme:oe,title:ie,setTitle:se,customTitleList:de,setCustomTitle:fe,resetCustomTitle:ve,lang:be,setDefaultLang:ye,setColorScheme:$e}});function isObject$2(ee){return typeof ee=="object"&&!Array.isArray(ee)}function getTwoObjectDiff(ee,ne){if(!isObject$2(ee)||!isObject$2(ne))return ne;const oe={};for(const ae in ne){const ie=ee[ae],se=ne[ae];if(JSON.stringify(ie)!==JSON.stringify(se))if(isObject$2(ie)&&isObject$2(se)){const de=getTwoObjectDiff(ie,se);Object.keys(de).length>0&&(oe[ae]=de)}else oe[ae]=se}return oe}function mitt(ee){return{all:ee=ee||new Map,on:function(ne,oe){var ae=ee.get(ne);ae?ae.push(oe):ee.set(ne,[oe])},off:function(ne,oe){var ae=ee.get(ne);ae&&(oe?ae.splice(ae.indexOf(oe)>>>0,1):ee.set(ne,[]))},emit:function(ne,oe){var ae=ee.get(ne);ae&&ae.slice().map(function(ie){ie(oe)}),(ae=ee.get("*"))&&ae.slice().map(function(ie){ie(ne,oe)})}}}const eventBus=mitt();function escapeRegExp(ee){return ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var sourcemapCodec_umd={exports:{}};(function(ee,ne){(function(oe,ae){ae(ne)})(commonjsGlobal,function(oe){const se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=new Uint8Array(64),fe=new Uint8Array(128);for(let De=0;De>>=1,Fe&&(He=-2147483648|-He),je+He}function be(De,je,He){let qe=je-He;qe=qe<0?-qe<<1|1:qe<<1;do{let ze=qe&31;qe>>>=5,qe>0&&(ze|=32),De.write(de[ze])}while(qe>0);return je}function ye(De,je){return De.pos>=je?!1:De.peek()!==44}const $e=1024*16,we=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(De){return Buffer.from(De.buffer,De.byteOffset,De.byteLength).toString()}}:{decode(De){let je="";for(let He=0;He0?He+we.decode(je.subarray(0,qe)):He}}class _e{constructor(je){this.pos=0,this.buffer=je}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(je){const{buffer:He,pos:qe}=this,ze=He.indexOf(je,qe);return ze===-1?He.length:ze}}const Ce=[];function Pe(De){const{length:je}=De,He=new _e(De),qe=[],ze=[];let Fe=0;for(;He.pos0&&He.write(44),qe[0]=be(He,Fe,qe[0]),be(He,Ze,0),be(He,Mt,0);const Pt=ze.length===6?1:0;be(He,Pt,0),ze.length===6&&be(He,ze[5],0);for(const Dt of Ue)be(He,Dt,0);for(je++;jeot||Ut===ot&&Rt>=Nt)break;je=ke(De,je,He,qe)}return He.write(44),qe[0]=be(He,ot,qe[0]),be(He,Nt,0),je}function Ne(De){const{length:je}=De,He=new _e(De),qe=[],ze=[];let Fe=0,Ze=0,ot=0,Nt=0,Mt=0,Ue=0,Pt=0,Dt=0;do{const Ut=He.indexOf(";");let Rt=0;for(;He.posnt;Bt--){const Xt=Pt;Pt=ve(He,Pt),Dt=ve(He,Pt===Xt?Dt:0);const Yt=ve(He,0);Et.push([Yt,Pt,Dt])}}else Et=[[nt]];tn.push(Et)}while(ye(He,Ut))}Zt.bindings=tn,qe.push(Zt),ze.push(Zt)}Fe++,He.pos=Ut+1}while(He.pos0&&He.write(44),qe[1]=be(He,ze[1],qe[1]);const Dt=(ze.length===6?1:0)|(Ue?2:0)|(Mt?4:0);if(be(He,Dt,0),ze.length===6){const{4:Ut,5:Rt}=ze;Ut!==qe[2]&&(qe[3]=0),qe[2]=be(He,Ut,qe[2]),qe[3]=be(He,Rt,qe[3])}if(Ue){const{0:Ut,1:Rt,2:Wt}=ze.callsite;Ut!==qe[4]?(qe[5]=0,qe[6]=0):Rt!==qe[5]&&(qe[6]=0),qe[4]=be(He,Ut,qe[4]),qe[5]=be(He,Rt,qe[5]),qe[6]=be(He,Wt,qe[6])}if(Pt)for(const Ut of Pt){Ut.length>1&&be(He,-Ut.length,0);const Rt=Ut[0][0];be(He,Rt,0);let Wt=Fe,Qe=Ze;for(let It=1;Itot||Rt===ot&&Wt>=Nt)break;je=Re(De,je,He,qe)}return qe[0]0&&je.write(59),ot.length===0)continue;let Nt=0;for(let Mt=0;Mt0&&je.write(44),Nt=be(je,Ue[0],Nt),Ue.length!==1&&(He=be(je,Ue[1],He),qe=be(je,Ue[2],qe),ze=be(je,Ue[3],ze),Ue.length!==4&&(Fe=be(je,Ue[4],Fe)))}}return je.flush()}oe.decode=Me,oe.decodeGeneratedRanges=Ne,oe.decodeOriginalScopes=Pe,oe.encode=Ke,oe.encodeGeneratedRanges=Oe,oe.encodeOriginalScopes=Ae,Object.defineProperty(oe,"__esModule",{value:!0})})})(sourcemapCodec_umd,sourcemapCodec_umd.exports);const alphaPlaceholders=["%alpha",""];new RegExp(alphaPlaceholders.map(ee=>escapeRegExp(ee)).join("|"));function hex2rgba(ee=""){const ne=parseHexColor(ee);if(ne!=null){const{components:oe,alpha:ae}=ne;return ae==null?oe:[...oe,ae]}}function parseHexColor(ee){const[,ne]=ee.match(/^#([\da-f]+)$/i)||[];if(ne)switch(ne.length){case 3:case 4:const oe=Array.from(ne,ie=>Number.parseInt(ie,16)).map(ie=>ie<<4|ie);return{type:"rgb",components:oe.slice(0,3),alpha:ne.length===3?void 0:Math.round(oe[3]/255*100)/100};case 6:case 8:const ae=Number.parseInt(ne,16);return{type:"rgb",components:ne.length===6?[ae>>16&255,ae>>8&255,ae&255]:[ae>>24&255,ae>>16&255,ae>>8&255],alpha:ne.length===6?void 0:Math.round((ae&255)/255*100)/100}}}const themes={light:{"color-scheme":"light","--ui-primary":hex2rgba("#0f0f0f").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#0f0f0f","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#0f0f0f"},classic:{"color-scheme":"light","--ui-primary":hex2rgba("#409eff").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#409eff","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#409eff"},naive:{"color-scheme":"light","--ui-primary":hex2rgba("#18a058").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#18a058","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#18a058"},barbie:{"color-scheme":"light","--ui-primary":hex2rgba("#ff43bc").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#ff43bc","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#ff43bc"},winter:{"color-scheme":"light","--ui-primary":hex2rgba("#a6e4f8").join(" "),"--ui-text":hex2rgba("#3e4e68").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#3e4e68","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#3e4e68"},cyberpunk:{"color-scheme":"light","--ui-primary":hex2rgba("#dbcb00").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#dbcb00","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#dbcb00"},dark:{"color-scheme":"dark","--ui-primary":hex2rgba("#e5e5e5").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#0a0a0a","--g-container-bg":"#141414","--g-border-color":"#15191e","--g-navbar-bg":"#141414","--g-navbar-color":"#e5e5e5","--g-tabbar-bg":"#141414","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#e5e5e5"},dracula:{"color-scheme":"dark","--ui-primary":hex2rgba("#a6adbb").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#272935","--g-container-bg":"#1d232a","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#a6adbb","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#a6adbb"},night:{"color-scheme":"dark","--ui-primary":hex2rgba("#0ca6e9").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#0f1729","--g-container-bg":"#1d283a","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#0ca6e9","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#0ca6e9"},luxury:{"color-scheme":"dark","--ui-primary":hex2rgba("#dca54c").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#09090b","--g-container-bg":"#171618","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#dca54c","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#dca54c"},synthwave:{"color-scheme":"dark","--ui-primary":hex2rgba("#58c7f3").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#1a103c","--g-container-bg":"#221551","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#58c7f3","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#58c7f3"},stone:{"color-scheme":"dark","--ui-primary":hex2rgba("#68d1bf").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#1b1917","--g-container-bg":"#282524","--g-border-color":"#43403c","--g-navbar-bg":"#141414","--g-navbar-color":"#68d1bf","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#68d1bf"}},_hoisted_1$1={class:"flex items-center justify-center pb-4"},_hoisted_2$1={class:"flex flex-wrap items-center justify-center gap-4 pb-4"},_hoisted_3=["onClick"],_hoisted_4={class:"flex items-center justify-center pb-4"},_hoisted_5={key:0,class:"flex items-center justify-center gap-4 pb-4"},_hoisted_6={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_7={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_8={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_9={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_10={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_11={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_12={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_13={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_14={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_15={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_16={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_17={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_18={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_sfc_main$3=defineComponent({name:"AppSetting",__name:"index",setup(ee){const ne=useSettingsStore(),oe=ref(!1);onMounted(()=>{eventBus.on("global-app-setting-toggle",()=>{oe.value=!oe.value})});const ae=computed(()=>Object.keys(themes).map(ve=>({label:ve,value:themes[ve]})).filter(ve=>ve.value["color-scheme"]===ne.currentColorScheme)),{copy:ie,copied:se,isSupported:de}=useClipboard();watch(se,ve=>{ve&&index.success("复制成功,请粘贴到 src/settings.ts 文件中!",{zIndex:2e3})});function fe(){ie(JSON.stringify(getTwoObjectDiff(globalSettingsDefault,ne.settings),null,2))}return(ve,be)=>{const ye=_sfc_main$4,$e=_sfc_main$5,we=_sfc_main$6,Ee=_sfc_main$9,_e=_sfc_main$7,Ce=_sfc_main$8;return openBlock(),createBlock(Ce,{modelValue:unref(oe),"onUpdate:modelValue":be[20]||(be[20]=Pe=>isRef(oe)?oe.value=Pe:null),title:"应用配置"},createSlots({default:withCtx(()=>[be[39]||(be[39]=createBaseVNode("div",{class:"rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose"},[createBaseVNode("p",{class:"my-1"}," 应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。 "),createBaseVNode("p",{class:"my-1"}," 注意:在生产环境中应关闭该模块。 ")],-1)),createBaseVNode("div",null,[be[21]||(be[21]=createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 颜色主题风格 ",-1)),createBaseVNode("div",_hoisted_1$1,[createVNode(ye,{modelValue:unref(ne).settings.app.colorScheme,"onUpdate:modelValue":be[0]||(be[0]=Pe=>unref(ne).settings.app.colorScheme=Pe),options:[{icon:"i-ri:sun-line",label:"明亮",value:"light"},{icon:"i-ri:moon-line",label:"暗黑",value:"dark"},{icon:"i-codicon:color-mode",label:"系统",value:""}],class:"w-60"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ae),Pe=>(openBlock(),createElementBlock("div",{key:Pe.label,class:normalizeClass(["h-12 w-12 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 transition dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme===Pe.label:unref(ne).settings.app.lightTheme===Pe.label}]),onClick:Ae=>unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme=Pe.label:unref(ne).settings.app.lightTheme=Pe.label},[createBaseVNode("div",{class:normalizeClass(["h-4 w-6 rounded-1/2 transition -rotate-45",{"rotate-0!":unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme===Pe.label:unref(ne).settings.app.lightTheme===Pe.label}]),style:normalizeStyle(`background-color: rgb(${Pe.value["--ui-primary"]});`)},null,6)],10,_hoisted_3))),128))])]),createBaseVNode("div",null,[be[22]||(be[22]=createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 页面切换动画 ",-1)),createBaseVNode("div",_hoisted_4,[createVNode($e,{modelValue:unref(ne).settings.mainPage.enableTransition,"onUpdate:modelValue":be[1]||(be[1]=Pe=>unref(ne).settings.mainPage.enableTransition=Pe)},null,8,["modelValue"])]),unref(ne).settings.mainPage.enableTransition?(openBlock(),createElementBlock("div",_hoisted_5,[createBaseVNode("div",{class:normalizeClass(["mode mode-fade relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="fade"}]),onClick:be[2]||(be[2]=Pe=>unref(ne).settings.mainPage.transitionMode="fade")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-left relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-left"}]),onClick:be[3]||(be[3]=Pe=>unref(ne).settings.mainPage.transitionMode="slide-left")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-right relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-right"}]),onClick:be[4]||(be[4]=Pe=>unref(ne).settings.mainPage.transitionMode="slide-right")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-top relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-top"}]),onClick:be[5]||(be[5]=Pe=>unref(ne).settings.mainPage.transitionMode="slide-top")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-bottom relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-bottom"}]),onClick:be[6]||(be[6]=Pe=>unref(ne).settings.mainPage.transitionMode="slide-bottom")},null,2)])):createCommentVNode("",!0)]),createBaseVNode("div",null,[be[28]||(be[28]=createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 底部版权 ",-1)),createBaseVNode("div",_hoisted_6,[be[23]||(be[23]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用 ",-1)),createVNode($e,{modelValue:unref(ne).settings.copyright.enable,"onUpdate:modelValue":be[7]||(be[7]=Pe=>unref(ne).settings.copyright.enable=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_7,[be[24]||(be[24]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 日期 ",-1)),createVNode(we,{modelValue:unref(ne).settings.copyright.dates,"onUpdate:modelValue":be[8]||(be[8]=Pe=>unref(ne).settings.copyright.dates=Pe),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_8,[be[25]||(be[25]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 公司 ",-1)),createVNode(we,{modelValue:unref(ne).settings.copyright.company,"onUpdate:modelValue":be[9]||(be[9]=Pe=>unref(ne).settings.copyright.company=Pe),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_9,[be[26]||(be[26]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 网址 ",-1)),createVNode(we,{modelValue:unref(ne).settings.copyright.website,"onUpdate:modelValue":be[10]||(be[10]=Pe=>unref(ne).settings.copyright.website=Pe),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_10,[be[27]||(be[27]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 备案 ",-1)),createVNode(we,{modelValue:unref(ne).settings.copyright.beian,"onUpdate:modelValue":be[11]||(be[11]=Pe=>unref(ne).settings.copyright.beian=Pe),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])])]),createBaseVNode("div",null,[be[37]||(be[37]=createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 其它 ",-1)),createBaseVNode("div",_hoisted_11,[be[29]||(be[29]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用权限 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enablePermission,"onUpdate:modelValue":be[12]||(be[12]=Pe=>unref(ne).settings.app.enablePermission=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_12,[be[30]||(be[30]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 载入进度条 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableProgress,"onUpdate:modelValue":be[13]||(be[13]=Pe=>unref(ne).settings.app.enableProgress=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_13,[be[31]||(be[31]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 哀悼模式 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableMournMode,"onUpdate:modelValue":be[14]||(be[14]=Pe=>unref(ne).settings.app.enableMournMode=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_14,[be[32]||(be[32]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 色弱模式 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableColorAmblyopiaMode,"onUpdate:modelValue":be[15]||(be[15]=Pe=>unref(ne).settings.app.enableColorAmblyopiaMode=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_15,[be[33]||(be[33]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 返回顶部 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableBackTop,"onUpdate:modelValue":be[16]||(be[16]=Pe=>unref(ne).settings.app.enableBackTop=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_16,[be[34]||(be[34]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 动态标题 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableDynamicTitle,"onUpdate:modelValue":be[17]||(be[17]=Pe=>unref(ne).settings.app.enableDynamicTitle=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_17,[be[35]||(be[35]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," Storage 前缀 ",-1)),createVNode(we,{modelValue:unref(ne).settings.app.storagePrefix,"onUpdate:modelValue":be[18]||(be[18]=Pe=>unref(ne).settings.app.storagePrefix=Pe)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_18,[be[36]||(be[36]=createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 页面水印 ",-1)),createVNode($e,{modelValue:unref(ne).settings.app.enableWatermark,"onUpdate:modelValue":be[19]||(be[19]=Pe=>unref(ne).settings.app.enableWatermark=Pe)},null,8,["modelValue"])])])]),_:2},[unref(de)?{name:"footer",fn:withCtx(()=>[createVNode(_e,{block:"",onClick:fe},{default:withCtx(()=>[createVNode(Ee,{name:"i-ep:document-copy"}),be[38]||(be[38]=createTextVNode(" 复制配置 "))]),_:1})]),key:"0"}:void 0]),1032,["modelValue"])}}}),_export_sfc=(ee,ne)=>{const oe=ee.__vccOpts||ee;for(const[ae,ie]of ne)oe[ae]=ie;return oe},__unplugin_components_2=_export_sfc(_sfc_main$3,[["__scopeId","data-v-b2ea229c"]]);/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const isBrowser=typeof document<"u";function isRouteComponent(ee){return typeof ee=="object"||"displayName"in ee||"props"in ee||"__vccOpts"in ee}function isESModule(ee){return ee.__esModule||ee[Symbol.toStringTag]==="Module"||ee.default&&isRouteComponent(ee.default)}const assign=Object.assign;function applyToParams(ee,ne){const oe={};for(const ae in ne){const ie=ne[ae];oe[ae]=isArray$1(ie)?ie.map(ee):ee(ie)}return oe}const noop$2=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(ee){return encodeURI(""+ee).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(ee){return commonEncode(ee).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(ee){return commonEncode(ee).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(ee){return encodeQueryValue(ee).replace(EQUAL_RE,"%3D")}function encodePath(ee){return commonEncode(ee).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(ee){return ee==null?"":encodePath(ee).replace(SLASH_RE,"%2F")}function decode(ee){try{return decodeURIComponent(""+ee)}catch{}return""+ee}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=ee=>ee.replace(TRAILING_SLASH_RE,"");function parseURL(ee,ne,oe="/"){let ae,ie={},se="",de="";const fe=ne.indexOf("#");let ve=ne.indexOf("?");return fe=0&&(ve=-1),ve>-1&&(ae=ne.slice(0,ve),se=ne.slice(ve+1,fe>-1?fe:ne.length),ie=ee(se)),fe>-1&&(ae=ae||ne.slice(0,fe),de=ne.slice(fe,ne.length)),ae=resolveRelativePath(ae??ne,oe),{fullPath:ae+(se&&"?")+se+de,path:ae,query:ie,hash:decode(de)}}function stringifyURL(ee,ne){const oe=ne.query?ee(ne.query):"";return ne.path+(oe&&"?")+oe+(ne.hash||"")}function stripBase(ee,ne){return!ne||!ee.toLowerCase().startsWith(ne.toLowerCase())?ee:ee.slice(ne.length)||"/"}function isSameRouteLocation(ee,ne,oe){const ae=ne.matched.length-1,ie=oe.matched.length-1;return ae>-1&&ae===ie&&isSameRouteRecord(ne.matched[ae],oe.matched[ie])&&isSameRouteLocationParams(ne.params,oe.params)&&ee(ne.query)===ee(oe.query)&&ne.hash===oe.hash}function isSameRouteRecord(ee,ne){return(ee.aliasOf||ee)===(ne.aliasOf||ne)}function isSameRouteLocationParams(ee,ne){if(Object.keys(ee).length!==Object.keys(ne).length)return!1;for(const oe in ee)if(!isSameRouteLocationParamsValue(ee[oe],ne[oe]))return!1;return!0}function isSameRouteLocationParamsValue(ee,ne){return isArray$1(ee)?isEquivalentArray(ee,ne):isArray$1(ne)?isEquivalentArray(ne,ee):ee===ne}function isEquivalentArray(ee,ne){return isArray$1(ne)?ee.length===ne.length&&ee.every((oe,ae)=>oe===ne[ae]):ee.length===1&&ee[0]===ne}function resolveRelativePath(ee,ne){if(ee.startsWith("/"))return ee;if(!ee)return ne;const oe=ne.split("/"),ae=ee.split("/"),ie=ae[ae.length-1];(ie===".."||ie===".")&&ae.push("");let se=oe.length-1,de,fe;for(de=0;de1&&se--;else break;return oe.slice(0,se).join("/")+"/"+ae.slice(de).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(ee){ee.pop="pop",ee.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(ee){ee.back="back",ee.forward="forward",ee.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(ee){if(!ee)if(isBrowser){const ne=document.querySelector("base");ee=ne&&ne.getAttribute("href")||"/",ee=ee.replace(/^\w+:\/\/[^\/]+/,"")}else ee="/";return ee[0]!=="/"&&ee[0]!=="#"&&(ee="/"+ee),removeTrailingSlash(ee)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(ee,ne){return ee.replace(BEFORE_HASH_RE,"#")+ne}function getElementPosition(ee,ne){const oe=document.documentElement.getBoundingClientRect(),ae=ee.getBoundingClientRect();return{behavior:ne.behavior,left:ae.left-oe.left-(ne.left||0),top:ae.top-oe.top-(ne.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(ee){let ne;if("el"in ee){const oe=ee.el,ae=typeof oe=="string"&&oe.startsWith("#"),ie=typeof oe=="string"?ae?document.getElementById(oe.slice(1)):document.querySelector(oe):oe;if(!ie)return;ne=getElementPosition(ie,ee)}else ne=ee;"scrollBehavior"in document.documentElement.style?window.scrollTo(ne):window.scrollTo(ne.left!=null?ne.left:window.scrollX,ne.top!=null?ne.top:window.scrollY)}function getScrollKey(ee,ne){return(history.state?history.state.position-ne:-1)+ee}const scrollPositions=new Map;function saveScrollPosition(ee,ne){scrollPositions.set(ee,ne)}function getSavedScrollPosition(ee){const ne=scrollPositions.get(ee);return scrollPositions.delete(ee),ne}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(ee,ne){const{pathname:oe,search:ae,hash:ie}=ne,se=ee.indexOf("#");if(se>-1){let fe=ie.includes(ee.slice(se))?ee.slice(se).length:1,ve=ie.slice(fe);return ve[0]!=="/"&&(ve="/"+ve),stripBase(ve,"")}return stripBase(oe,ee)+ae+ie}function useHistoryListeners(ee,ne,oe,ae){let ie=[],se=[],de=null;const fe=({state:we})=>{const Ee=createCurrentLocation(ee,location),_e=oe.value,Ce=ne.value;let Pe=0;if(we){if(oe.value=Ee,ne.value=we,de&&de===_e){de=null;return}Pe=Ce?we.position-Ce.position:0}else ae(Ee);ie.forEach(Ae=>{Ae(oe.value,_e,{delta:Pe,type:NavigationType.pop,direction:Pe?Pe>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function ve(){de=oe.value}function be(we){ie.push(we);const Ee=()=>{const _e=ie.indexOf(we);_e>-1&&ie.splice(_e,1)};return se.push(Ee),Ee}function ye(){const{history:we}=window;we.state&&we.replaceState(assign({},we.state,{scroll:computeScrollPosition()}),"")}function $e(){for(const we of se)we();se=[],window.removeEventListener("popstate",fe),window.removeEventListener("beforeunload",ye)}return window.addEventListener("popstate",fe),window.addEventListener("beforeunload",ye,{passive:!0}),{pauseListeners:ve,listen:be,destroy:$e}}function buildState(ee,ne,oe,ae=!1,ie=!1){return{back:ee,current:ne,forward:oe,replaced:ae,position:window.history.length,scroll:ie?computeScrollPosition():null}}function useHistoryStateNavigation(ee){const{history:ne,location:oe}=window,ae={value:createCurrentLocation(ee,oe)},ie={value:ne.state};ie.value||se(ae.value,{back:null,current:ae.value,forward:null,position:ne.length-1,replaced:!0,scroll:null},!0);function se(ve,be,ye){const $e=ee.indexOf("#"),we=$e>-1?(oe.host&&document.querySelector("base")?ee:ee.slice($e))+ve:createBaseLocation()+ee+ve;try{ne[ye?"replaceState":"pushState"](be,"",we),ie.value=be}catch(Ee){console.error(Ee),oe[ye?"replace":"assign"](we)}}function de(ve,be){const ye=assign({},ne.state,buildState(ie.value.back,ve,ie.value.forward,!0),be,{position:ie.value.position});se(ve,ye,!0),ae.value=ve}function fe(ve,be){const ye=assign({},ie.value,ne.state,{forward:ve,scroll:computeScrollPosition()});se(ye.current,ye,!0);const $e=assign({},buildState(ae.value,ve,null),{position:ye.position+1},be);se(ve,$e,!1),ae.value=ve}return{location:ae,state:ie,push:fe,replace:de}}function createWebHistory(ee){ee=normalizeBase(ee);const ne=useHistoryStateNavigation(ee),oe=useHistoryListeners(ee,ne.state,ne.location,ne.replace);function ae(se,de=!0){de||oe.pauseListeners(),history.go(se)}const ie=assign({location:"",base:ee,go:ae,createHref:createHref.bind(null,ee)},ne,oe);return Object.defineProperty(ie,"location",{enumerable:!0,get:()=>ne.location.value}),Object.defineProperty(ie,"state",{enumerable:!0,get:()=>ne.state.value}),ie}function createWebHashHistory(ee){return ee=location.host?ee||location.pathname+location.search:"",ee.includes("#")||(ee+="#"),createWebHistory(ee)}function isRouteLocation(ee){return typeof ee=="string"||ee&&typeof ee=="object"}function isRouteName(ee){return typeof ee=="string"||typeof ee=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(ee){ee[ee.aborted=4]="aborted",ee[ee.cancelled=8]="cancelled",ee[ee.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(ee,ne){return assign(new Error,{type:ee,[NavigationFailureSymbol]:!0},ne)}function isNavigationFailure(ee,ne){return ee instanceof Error&&NavigationFailureSymbol in ee&&(ne==null||!!(ee.type&ne))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(ee,ne){const oe=assign({},BASE_PATH_PARSER_OPTIONS,ne),ae=[];let ie=oe.start?"^":"";const se=[];for(const be of ee){const ye=be.length?[]:[90];oe.strict&&!be.length&&(ie+="/");for(let $e=0;$ene.length?ne.length===1&&ne[0]===80?1:-1:0}function comparePathParserScore(ee,ne){let oe=0;const ae=ee.score,ie=ne.score;for(;oe0&&ne[ne.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(ee){if(!ee)return[[]];if(ee==="/")return[[ROOT_TOKEN]];if(!ee.startsWith("/"))throw new Error(`Invalid path "${ee}"`);function ne(Ee){throw new Error(`ERR (${oe})/"${be}": ${Ee}`)}let oe=0,ae=oe;const ie=[];let se;function de(){se&&ie.push(se),se=[]}let fe=0,ve,be="",ye="";function $e(){be&&(oe===0?se.push({type:0,value:be}):oe===1||oe===2||oe===3?(se.length>1&&(ve==="*"||ve==="+")&&ne(`A repeatable param (${be}) must be alone in its segment. eg: '/:ids+.`),se.push({type:1,value:be,regexp:ye,repeatable:ve==="*"||ve==="+",optional:ve==="*"||ve==="?"})):ne("Invalid state to consume buffer"),be="")}function we(){be+=ve}for(;fe{de(Ne)}:noop$2}function de($e){if(isRouteName($e)){const we=ae.get($e);we&&(ae.delete($e),oe.splice(oe.indexOf(we),1),we.children.forEach(de),we.alias.forEach(de))}else{const we=oe.indexOf($e);we>-1&&(oe.splice(we,1),$e.record.name&&ae.delete($e.record.name),$e.children.forEach(de),$e.alias.forEach(de))}}function fe(){return oe}function ve($e){const we=findInsertionIndex($e,oe);oe.splice(we,0,$e),$e.record.name&&!isAliasRecord($e)&&ae.set($e.record.name,$e)}function be($e,we){let Ee,_e={},Ce,Pe;if("name"in $e&&$e.name){if(Ee=ae.get($e.name),!Ee)throw createRouterError(1,{location:$e});Pe=Ee.record.name,_e=assign(paramsFromLocation(we.params,Ee.keys.filter(Ne=>!Ne.optional).concat(Ee.parent?Ee.parent.keys.filter(Ne=>Ne.optional):[]).map(Ne=>Ne.name)),$e.params&¶msFromLocation($e.params,Ee.keys.map(Ne=>Ne.name))),Ce=Ee.stringify(_e)}else if($e.path!=null)Ce=$e.path,Ee=oe.find(Ne=>Ne.re.test(Ce)),Ee&&(_e=Ee.parse(Ce),Pe=Ee.record.name);else{if(Ee=we.name?ae.get(we.name):oe.find(Ne=>Ne.re.test(we.path)),!Ee)throw createRouterError(1,{location:$e,currentLocation:we});Pe=Ee.record.name,_e=assign({},we.params,$e.params),Ce=Ee.stringify(_e)}const Ae=[];let ke=Ee;for(;ke;)Ae.unshift(ke.record),ke=ke.parent;return{name:Pe,path:Ce,params:_e,matched:Ae,meta:mergeMetaFields(Ae)}}ee.forEach($e=>se($e));function ye(){oe.length=0,ae.clear()}return{addRoute:se,resolve:be,removeRoute:de,clearRoutes:ye,getRoutes:fe,getRecordMatcher:ie}}function paramsFromLocation(ee,ne){const oe={};for(const ae of ne)ae in ee&&(oe[ae]=ee[ae]);return oe}function normalizeRouteRecord(ee){const ne={path:ee.path,redirect:ee.redirect,name:ee.name,meta:ee.meta||{},aliasOf:ee.aliasOf,beforeEnter:ee.beforeEnter,props:normalizeRecordProps(ee),children:ee.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in ee?ee.components||null:ee.component&&{default:ee.component}};return Object.defineProperty(ne,"mods",{value:{}}),ne}function normalizeRecordProps(ee){const ne={},oe=ee.props||!1;if("component"in ee)ne.default=oe;else for(const ae in ee.components)ne[ae]=typeof oe=="object"?oe[ae]:oe;return ne}function isAliasRecord(ee){for(;ee;){if(ee.record.aliasOf)return!0;ee=ee.parent}return!1}function mergeMetaFields(ee){return ee.reduce((ne,oe)=>assign(ne,oe.meta),{})}function mergeOptions(ee,ne){const oe={};for(const ae in ee)oe[ae]=ae in ne?ne[ae]:ee[ae];return oe}function findInsertionIndex(ee,ne){let oe=0,ae=ne.length;for(;oe!==ae;){const se=oe+ae>>1;comparePathParserScore(ee,ne[se])<0?ae=se:oe=se+1}const ie=getInsertionAncestor(ee);return ie&&(ae=ne.lastIndexOf(ie,ae-1)),ae}function getInsertionAncestor(ee){let ne=ee;for(;ne=ne.parent;)if(isMatchable(ne)&&comparePathParserScore(ee,ne)===0)return ne}function isMatchable({record:ee}){return!!(ee.name||ee.components&&Object.keys(ee.components).length||ee.redirect)}function parseQuery(ee){const ne={};if(ee===""||ee==="?")return ne;const ae=(ee[0]==="?"?ee.slice(1):ee).split("&");for(let ie=0;iese&&encodeQueryValue(se)):[ae&&encodeQueryValue(ae)]).forEach(se=>{se!==void 0&&(ne+=(ne.length?"&":"")+oe,se!=null&&(ne+="="+se))})}return ne}function normalizeQuery(ee){const ne={};for(const oe in ee){const ae=ee[oe];ae!==void 0&&(ne[oe]=isArray$1(ae)?ae.map(ie=>ie==null?null:""+ie):ae==null?ae:""+ae)}return ne}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let ee=[];function ne(ae){return ee.push(ae),()=>{const ie=ee.indexOf(ae);ie>-1&&ee.splice(ie,1)}}function oe(){ee=[]}return{add:ne,list:()=>ee.slice(),reset:oe}}function registerGuard(ee,ne,oe){const ae=()=>{ee[ne].delete(oe)};onUnmounted(ae),onDeactivated(ae),onActivated(()=>{ee[ne].add(oe)}),ee[ne].add(oe)}function onBeforeRouteLeave(ee){const ne=inject(matchedRouteKey,{}).value;ne&®isterGuard(ne,"leaveGuards",ee)}function guardToPromiseFn(ee,ne,oe,ae,ie,se=de=>de()){const de=ae&&(ae.enterCallbacks[ie]=ae.enterCallbacks[ie]||[]);return()=>new Promise((fe,ve)=>{const be=we=>{we===!1?ve(createRouterError(4,{from:oe,to:ne})):we instanceof Error?ve(we):isRouteLocation(we)?ve(createRouterError(2,{from:ne,to:we})):(de&&ae.enterCallbacks[ie]===de&&typeof we=="function"&&de.push(we),fe())},ye=se(()=>ee.call(ae&&ae.instances[ie],ne,oe,be));let $e=Promise.resolve(ye);ee.length<3&&($e=$e.then(be)),$e.catch(we=>ve(we))})}function extractComponentsGuards(ee,ne,oe,ae,ie=se=>se()){const se=[];for(const de of ee)for(const fe in de.components){let ve=de.components[fe];if(!(ne!=="beforeRouteEnter"&&!de.instances[fe]))if(isRouteComponent(ve)){const ye=(ve.__vccOpts||ve)[ne];ye&&se.push(guardToPromiseFn(ye,oe,ae,de,fe,ie))}else{let be=ve();se.push(()=>be.then(ye=>{if(!ye)throw new Error(`Couldn't resolve component "${fe}" at "${de.path}"`);const $e=isESModule(ye)?ye.default:ye;de.mods[fe]=ye,de.components[fe]=$e;const Ee=($e.__vccOpts||$e)[ne];return Ee&&guardToPromiseFn(Ee,oe,ae,de,fe,ie)()}))}}return se}function useLink(ee){const ne=inject(routerKey),oe=inject(routeLocationKey),ae=computed(()=>{const ve=unref(ee.to);return ne.resolve(ve)}),ie=computed(()=>{const{matched:ve}=ae.value,{length:be}=ve,ye=ve[be-1],$e=oe.matched;if(!ye||!$e.length)return-1;const we=$e.findIndex(isSameRouteRecord.bind(null,ye));if(we>-1)return we;const Ee=getOriginalPath(ve[be-2]);return be>1&&getOriginalPath(ye)===Ee&&$e[$e.length-1].path!==Ee?$e.findIndex(isSameRouteRecord.bind(null,ve[be-2])):we}),se=computed(()=>ie.value>-1&&includesParams(oe.params,ae.value.params)),de=computed(()=>ie.value>-1&&ie.value===oe.matched.length-1&&isSameRouteLocationParams(oe.params,ae.value.params));function fe(ve={}){return guardEvent(ve)?ne[unref(ee.replace)?"replace":"push"](unref(ee.to)).catch(noop$2):Promise.resolve()}return{route:ae,href:computed(()=>ae.value.href),isActive:se,isExactActive:de,navigate:fe}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(ee,{slots:ne}){const oe=reactive(useLink(ee)),{options:ae}=inject(routerKey),ie=computed(()=>({[getLinkClass(ee.activeClass,ae.linkActiveClass,"router-link-active")]:oe.isActive,[getLinkClass(ee.exactActiveClass,ae.linkExactActiveClass,"router-link-exact-active")]:oe.isExactActive}));return()=>{const se=ne.default&&ne.default(oe);return ee.custom?se:h$2("a",{"aria-current":oe.isExactActive?ee.ariaCurrentValue:null,href:oe.href,onClick:oe.navigate,class:ie.value},se)}}}),RouterLink=RouterLinkImpl;function guardEvent(ee){if(!(ee.metaKey||ee.altKey||ee.ctrlKey||ee.shiftKey)&&!ee.defaultPrevented&&!(ee.button!==void 0&&ee.button!==0)){if(ee.currentTarget&&ee.currentTarget.getAttribute){const ne=ee.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(ne))return}return ee.preventDefault&&ee.preventDefault(),!0}}function includesParams(ee,ne){for(const oe in ne){const ae=ne[oe],ie=ee[oe];if(typeof ae=="string"){if(ae!==ie)return!1}else if(!isArray$1(ie)||ie.length!==ae.length||ae.some((se,de)=>se!==ie[de]))return!1}return!0}function getOriginalPath(ee){return ee?ee.aliasOf?ee.aliasOf.path:ee.path:""}const getLinkClass=(ee,ne,oe)=>ee??ne??oe,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(ee,{attrs:ne,slots:oe}){const ae=inject(routerViewLocationKey),ie=computed(()=>ee.route||ae.value),se=inject(viewDepthKey,0),de=computed(()=>{let be=unref(se);const{matched:ye}=ie.value;let $e;for(;($e=ye[be])&&!$e.components;)be++;return be}),fe=computed(()=>ie.value.matched[de.value]);provide(viewDepthKey,computed(()=>de.value+1)),provide(matchedRouteKey,fe),provide(routerViewLocationKey,ie);const ve=ref();return watch(()=>[ve.value,fe.value,ee.name],([be,ye,$e],[we,Ee,_e])=>{ye&&(ye.instances[$e]=be,Ee&&Ee!==ye&&be&&be===we&&(ye.leaveGuards.size||(ye.leaveGuards=Ee.leaveGuards),ye.updateGuards.size||(ye.updateGuards=Ee.updateGuards))),be&&ye&&(!Ee||!isSameRouteRecord(ye,Ee)||!we)&&(ye.enterCallbacks[$e]||[]).forEach(Ce=>Ce(be))},{flush:"post"}),()=>{const be=ie.value,ye=ee.name,$e=fe.value,we=$e&&$e.components[ye];if(!we)return normalizeSlot(oe.default,{Component:we,route:be});const Ee=$e.props[ye],_e=Ee?Ee===!0?be.params:typeof Ee=="function"?Ee(be):Ee:null,Pe=h$2(we,assign({},_e,ne,{onVnodeUnmounted:Ae=>{Ae.component.isUnmounted&&($e.instances[ye]=null)},ref:ve}));return normalizeSlot(oe.default,{Component:Pe,route:be})||Pe}}});function normalizeSlot(ee,ne){if(!ee)return null;const oe=ee(ne);return oe.length===1?oe[0]:oe}const RouterView=RouterViewImpl;function createRouter$1(ee){const ne=createRouterMatcher(ee.routes,ee),oe=ee.parseQuery||parseQuery,ae=ee.stringifyQuery||stringifyQuery,ie=ee.history,se=useCallbacks(),de=useCallbacks(),fe=useCallbacks(),ve=shallowRef(START_LOCATION_NORMALIZED);let be=START_LOCATION_NORMALIZED;isBrowser&&ee.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const ye=applyToParams.bind(null,Qe=>""+Qe),$e=applyToParams.bind(null,encodeParam),we=applyToParams.bind(null,decode);function Ee(Qe,It){let Ft,jt;return isRouteName(Qe)?(Ft=ne.getRecordMatcher(Qe),jt=It):jt=Qe,ne.addRoute(jt,Ft)}function _e(Qe){const It=ne.getRecordMatcher(Qe);It&&ne.removeRoute(It)}function Ce(){return ne.getRoutes().map(Qe=>Qe.record)}function Pe(Qe){return!!ne.getRecordMatcher(Qe)}function Ae(Qe,It){if(It=assign({},It||ve.value),typeof Qe=="string"){const Et=parseURL(oe,Qe,It.path),Bt=ne.resolve({path:Et.path},It),Xt=ie.createHref(Et.fullPath);return assign(Et,Bt,{params:we(Bt.params),hash:decode(Et.hash),redirectedFrom:void 0,href:Xt})}let Ft;if(Qe.path!=null)Ft=assign({},Qe,{path:parseURL(oe,Qe.path,It.path).path});else{const Et=assign({},Qe.params);for(const Bt in Et)Et[Bt]==null&&delete Et[Bt];Ft=assign({},Qe,{params:$e(Et)}),It.params=$e(It.params)}const jt=ne.resolve(Ft,It),tn=Qe.hash||"";jt.params=ye(we(jt.params));const Zt=stringifyURL(ae,assign({},Qe,{hash:encodeHash(tn),path:jt.path})),nt=ie.createHref(Zt);return assign({fullPath:Zt,hash:tn,query:ae===stringifyQuery?normalizeQuery(Qe.query):Qe.query||{}},jt,{redirectedFrom:void 0,href:nt})}function ke(Qe){return typeof Qe=="string"?parseURL(oe,Qe,ve.value.path):assign({},Qe)}function Ne(Qe,It){if(be!==Qe)return createRouterError(8,{from:It,to:Qe})}function Oe(Qe){return Me(Qe)}function Re(Qe){return Oe(assign(ke(Qe),{replace:!0}))}function Be(Qe){const It=Qe.matched[Qe.matched.length-1];if(It&&It.redirect){const{redirect:Ft}=It;let jt=typeof Ft=="function"?Ft(Qe):Ft;return typeof jt=="string"&&(jt=jt.includes("?")||jt.includes("#")?jt=ke(jt):{path:jt},jt.params={}),assign({query:Qe.query,hash:Qe.hash,params:jt.path!=null?{}:Qe.params},jt)}}function Me(Qe,It){const Ft=be=Ae(Qe),jt=ve.value,tn=Qe.state,Zt=Qe.force,nt=Qe.replace===!0,Et=Be(Ft);if(Et)return Me(assign(ke(Et),{state:typeof Et=="object"?assign({},tn,Et.state):tn,force:Zt,replace:nt}),It||Ft);const Bt=Ft;Bt.redirectedFrom=It;let Xt;return!Zt&&isSameRouteLocation(ae,jt,Ft)&&(Xt=createRouterError(16,{to:Bt,from:jt}),Ue(jt,jt,!0,!1)),(Xt?Promise.resolve(Xt):Ke(Bt,jt)).catch(Yt=>isNavigationFailure(Yt)?isNavigationFailure(Yt,2)?Yt:Mt(Yt):ot(Yt,Bt,jt)).then(Yt=>{if(Yt){if(isNavigationFailure(Yt,2))return Me(assign({replace:nt},ke(Yt.to),{state:typeof Yt.to=="object"?assign({},tn,Yt.to.state):tn,force:Zt}),It||Bt)}else Yt=je(Bt,jt,!0,nt,tn);return De(Bt,jt,Yt),Yt})}function Le(Qe,It){const Ft=Ne(Qe,It);return Ft?Promise.reject(Ft):Promise.resolve()}function Xe(Qe){const It=Ut.values().next().value;return It&&typeof It.runWithContext=="function"?It.runWithContext(Qe):Qe()}function Ke(Qe,It){let Ft;const[jt,tn,Zt]=extractChangingRecords(Qe,It);Ft=extractComponentsGuards(jt.reverse(),"beforeRouteLeave",Qe,It);for(const Et of jt)Et.leaveGuards.forEach(Bt=>{Ft.push(guardToPromiseFn(Bt,Qe,It))});const nt=Le.bind(null,Qe,It);return Ft.push(nt),Wt(Ft).then(()=>{Ft=[];for(const Et of se.list())Ft.push(guardToPromiseFn(Et,Qe,It));return Ft.push(nt),Wt(Ft)}).then(()=>{Ft=extractComponentsGuards(tn,"beforeRouteUpdate",Qe,It);for(const Et of tn)Et.updateGuards.forEach(Bt=>{Ft.push(guardToPromiseFn(Bt,Qe,It))});return Ft.push(nt),Wt(Ft)}).then(()=>{Ft=[];for(const Et of Zt)if(Et.beforeEnter)if(isArray$1(Et.beforeEnter))for(const Bt of Et.beforeEnter)Ft.push(guardToPromiseFn(Bt,Qe,It));else Ft.push(guardToPromiseFn(Et.beforeEnter,Qe,It));return Ft.push(nt),Wt(Ft)}).then(()=>(Qe.matched.forEach(Et=>Et.enterCallbacks={}),Ft=extractComponentsGuards(Zt,"beforeRouteEnter",Qe,It,Xe),Ft.push(nt),Wt(Ft))).then(()=>{Ft=[];for(const Et of de.list())Ft.push(guardToPromiseFn(Et,Qe,It));return Ft.push(nt),Wt(Ft)}).catch(Et=>isNavigationFailure(Et,8)?Et:Promise.reject(Et))}function De(Qe,It,Ft){fe.list().forEach(jt=>Xe(()=>jt(Qe,It,Ft)))}function je(Qe,It,Ft,jt,tn){const Zt=Ne(Qe,It);if(Zt)return Zt;const nt=It===START_LOCATION_NORMALIZED,Et=isBrowser?history.state:{};Ft&&(jt||nt?ie.replace(Qe.fullPath,assign({scroll:nt&&Et&&Et.scroll},tn)):ie.push(Qe.fullPath,tn)),ve.value=Qe,Ue(Qe,It,Ft,nt),Mt()}let He;function qe(){He||(He=ie.listen((Qe,It,Ft)=>{if(!Rt.listening)return;const jt=Ae(Qe),tn=Be(jt);if(tn){Me(assign(tn,{replace:!0}),jt).catch(noop$2);return}be=jt;const Zt=ve.value;isBrowser&&saveScrollPosition(getScrollKey(Zt.fullPath,Ft.delta),computeScrollPosition()),Ke(jt,Zt).catch(nt=>isNavigationFailure(nt,12)?nt:isNavigationFailure(nt,2)?(Me(nt.to,jt).then(Et=>{isNavigationFailure(Et,20)&&!Ft.delta&&Ft.type===NavigationType.pop&&ie.go(-1,!1)}).catch(noop$2),Promise.reject()):(Ft.delta&&ie.go(-Ft.delta,!1),ot(nt,jt,Zt))).then(nt=>{nt=nt||je(jt,Zt,!1),nt&&(Ft.delta&&!isNavigationFailure(nt,8)?ie.go(-Ft.delta,!1):Ft.type===NavigationType.pop&&isNavigationFailure(nt,20)&&ie.go(-1,!1)),De(jt,Zt,nt)}).catch(noop$2)}))}let ze=useCallbacks(),Fe=useCallbacks(),Ze;function ot(Qe,It,Ft){Mt(Qe);const jt=Fe.list();return jt.length?jt.forEach(tn=>tn(Qe,It,Ft)):console.error(Qe),Promise.reject(Qe)}function Nt(){return Ze&&ve.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Qe,It)=>{ze.add([Qe,It])})}function Mt(Qe){return Ze||(Ze=!Qe,qe(),ze.list().forEach(([It,Ft])=>Qe?Ft(Qe):It()),ze.reset()),Qe}function Ue(Qe,It,Ft,jt){const{scrollBehavior:tn}=ee;if(!isBrowser||!tn)return Promise.resolve();const Zt=!Ft&&getSavedScrollPosition(getScrollKey(Qe.fullPath,0))||(jt||!Ft)&&history.state&&history.state.scroll||null;return nextTick().then(()=>tn(Qe,It,Zt)).then(nt=>nt&&scrollToPosition(nt)).catch(nt=>ot(nt,Qe,It))}const Pt=Qe=>ie.go(Qe);let Dt;const Ut=new Set,Rt={currentRoute:ve,listening:!0,addRoute:Ee,removeRoute:_e,clearRoutes:ne.clearRoutes,hasRoute:Pe,getRoutes:Ce,resolve:Ae,options:ee,push:Oe,replace:Re,go:Pt,back:()=>Pt(-1),forward:()=>Pt(1),beforeEach:se.add,beforeResolve:de.add,afterEach:fe.add,onError:Fe.add,isReady:Nt,install(Qe){const It=this;Qe.component("RouterLink",RouterLink),Qe.component("RouterView",RouterView),Qe.config.globalProperties.$router=It,Object.defineProperty(Qe.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(ve)}),isBrowser&&!Dt&&ve.value===START_LOCATION_NORMALIZED&&(Dt=!0,Oe(ie.location).catch(tn=>{}));const Ft={};for(const tn in START_LOCATION_NORMALIZED)Object.defineProperty(Ft,tn,{get:()=>ve.value[tn],enumerable:!0});Qe.provide(routerKey,It),Qe.provide(routeLocationKey,shallowReactive(Ft)),Qe.provide(routerViewLocationKey,ve);const jt=Qe.unmount;Ut.add(Qe),Qe.unmount=function(){Ut.delete(Qe),Ut.size<1&&(be=START_LOCATION_NORMALIZED,He&&He(),He=null,ve.value=START_LOCATION_NORMALIZED,Dt=!1,Ze=!1),jt()}}};function Wt(Qe){return Qe.reduce((It,Ft)=>It.then(()=>Xe(Ft)),Promise.resolve())}return Rt}function extractChangingRecords(ee,ne){const oe=[],ae=[],ie=[],se=Math.max(ne.matched.length,ee.matched.length);for(let de=0;deisSameRouteRecord(be,fe))?ae.push(fe):oe.push(fe));const ve=ee.matched[de];ve&&(ne.matched.find(be=>isSameRouteRecord(be,ve))||ie.push(ve))}return[oe,ae,ie]}function useRouter(){return inject(routerKey)}function useRoute$1(ee){return inject(routeLocationKey)}const _hoisted_1={class:"min-h-screen flex flex-col items-center justify-center"},_hoisted_2={class:"flex flex-col items-center gap-4"},_sfc_main$2=defineComponent({name:"NotAllowed",__name:"index",setup(ee){const ne=useRouter(),oe=ref({inter:Number.NaN,countdown:5});onUnmounted(()=>{oe.value.inter&&window.clearInterval(oe.value.inter)}),onMounted(()=>{oe.value.inter=window.setInterval(()=>{oe.value.countdown--,oe.value.countdown===0&&(oe.value.inter&&window.clearInterval(oe.value.inter),ae())},1e3)});function ae(){ne.push("/")}return(ie,se)=>{const de=_sfc_main$9,fe=_sfc_main$7;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(de,{name:"403",class:"text-[300px] -mt-9xl"}),createBaseVNode("div",_hoisted_2,[se[0]||(se[0]=createBaseVNode("h1",{class:"m-0 text-6xl font-sans"}," 403 ",-1)),se[1]||(se[1]=createBaseVNode("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你无权访问该页面 ",-1)),createBaseVNode("div",null,[createVNode(fe,{onClick:ae},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe).countdown)+" 秒后,返回首页 ",1)]),_:1})])])])}}}),useKeepAliveStore=defineStore("keepAlive",()=>{const ee=ref([]);function ne(ie){typeof ie=="string"?!ee.value.includes(ie)&&ee.value.push(ie):ie.forEach(se=>{se&&!ee.value.includes(se)&&ee.value.push(se)})}function oe(ie){typeof ie=="string"?ee.value=ee.value.filter(se=>se!==ie):ee.value=ee.value.filter(se=>!ie.includes(se))}function ae(){ee.value=[]}return{list:ee,add:ne,remove:oe,clean:ae}});/*! + * watermark-js-plus v1.5.7 + * (c) 2022-2024 Michael Sun + * Released under the MIT License. + */function styleInject$1(ee,ne){ne===void 0&&(ne={});var oe=ne.insertAt;if(!(typeof document>"u")){var ae=document.head||document.getElementsByTagName("head")[0],ie=document.createElement("style");ie.type="text/css",oe==="top"&&ae.firstChild?ae.insertBefore(ie,ae.firstChild):ae.appendChild(ie),ie.styleSheet?ie.styleSheet.cssText=ee:ie.appendChild(document.createTextNode(ee))}}var css_248z="@keyframes watermark{0%{background-position:0 0}25%{background-position:100% 100%}50%{background-position:0 0}75%{background-position:100% -100%}to{background-position:0 0}}";styleInject$1(css_248z);var extendStatics=function(ee,ne){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ae){oe.__proto__=ae}||function(oe,ae){for(var ie in ae)Object.prototype.hasOwnProperty.call(ae,ie)&&(oe[ie]=ae[ie])},extendStatics(ee,ne)};function __extends(ee,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");extendStatics(ee,ne);function oe(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(oe.prototype=ne.prototype,new oe)}var __assign=function(){return __assign=Object.assign||function(ne){for(var oe,ae=1,ie=arguments.length;ae0&&se[se.length-1])&&(be[0]===6||be[0]===2)){oe=0;continue}if(be[0]===3&&(!se||be[1]>se[0]&&be[1]oe&&(ae.push(ie.substring(0,ie.length-1)),ie="",de--)}return ae.push(ie),ae},createCustomContentSVG=function(ee,ne){return __awaiter(void 0,void 0,void 0,function(){var oe,ae,ie,se,de,fe,ve,be,ye;return __generator(this,function($e){switch($e.label){case 0:return oe=createSVGElement("svg",{xmlns:"http://www.w3.org/2000/svg"}),ae=document.createElement("div"),ae.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),ae.style.cssText=` + text-align: center; + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + font: `.concat(ee.font,`; + color: `).concat(ne.fontColor,`; +`),ae.innerHTML="
".concat(ne.content,"
"),document.body.appendChild(ae),[4,convertImgToBase64(ae)];case 1:return $e.sent(),ie=(ye=ae.querySelector(".rich-text-content"))===null||ye===void 0?void 0:ye.getBoundingClientRect(),se=ie==null?void 0:ie.width,de=ie==null?void 0:ie.height,document.body.removeChild(ae),fe=ne.richTextWidth||se||ne.width,ve=ne.richTextHeight||de||ne.height,oe.setAttribute("width",fe.toString()),oe.setAttribute("height",ve.toString()),be=createSVGElement("foreignObject",{width:fe.toString(),height:ve.toString()}),be.appendChild(ae),oe.appendChild(be),[2,{element:oe,width:fe,height:ve}]}})})};function convertImgToBase64(ee){return __awaiter(this,void 0,void 0,function(){var ne,oe,ae,ie,se;return __generator(this,function(de){switch(de.label){case 0:ne=ee.querySelectorAll("img"),oe=function(fe){var ve,be,ye,$e,we;return __generator(this,function(Ee){switch(Ee.label){case 0:if(ve=fe.getAttribute("src"),!ve)return[3,6];Ee.label=1;case 1:return Ee.trys.push([1,5,,6]),[4,fetch(ve)];case 2:return be=Ee.sent(),[4,be.blob()];case 3:return ye=Ee.sent(),[4,new Promise(function(_e,Ce){var Pe=new FileReader;Pe.onloadend=function(){return _e(Pe.result)},Pe.onerror=Ce,Pe.readAsDataURL(ye)})];case 4:return $e=Ee.sent(),isString$1($e)&&fe.setAttribute("src",$e),[3,6];case 5:return we=Ee.sent(),console.error("Error converting ".concat(ve," to base64:"),we),[3,6];case 6:return[2]}})},ae=0,ie=Array.from(ne),de.label=1;case 1:return ae/g,"<$1$2/>").replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");return"data:image/svg+xml;charset=utf-8,".concat(ne)},getValue$1=function(ee,ne){return isUndefined$1(ee)?ne:ee},loadImage=function(ee,ne,oe){ne===void 0&&(ne=void 0),oe===void 0&&(oe=void 0);var ae=new Image;return ae.setAttribute("crossOrigin","Anonymous"),!isUndefined$1(ne)&&(ae.width=ne),!isUndefined$1(oe)&&(ae.height=oe),ae.src=ee,new Promise(function(ie){ae.onload=function(){ie(ae)}})},generateMatrix=function(ee,ne,oe){return Array.from({length:ee},function(){return new Array(ne).fill(oe)})},initialOptions={width:300,height:300,rotate:45,layout:"default",auxiliaryLine:!1,translatePlacement:"middle",contentType:"text",content:"hello watermark-js-plus",textType:"fill",imageWidth:0,imageHeight:0,lineHeight:30,zIndex:2147483647,backgroundPosition:"0 0",backgroundRepeat:"repeat",fontSize:"20px",fontFamily:"sans-serif",fontStyle:"",fontVariant:"",fontColor:"#000",fontWeight:"normal",filter:"none",letterSpacing:"0px",wordSpacing:"0px",globalAlpha:.5,mode:"default",mutationObserve:!0,monitorProtection:!1,movable:!1,parent:"body",onSuccess:function(){},onBeforeDestroy:function(){},onDestroyed:function(){},onObserveError:function(){}},generateRecommendOptions=function(ee,ne,oe){var ae=ee.getContext("2d");if(ae===null)throw new Error("get context error");ae.font="".concat(ne.fontStyle," ").concat(ne.fontVariant," ").concat(ne.fontWeight," ").concat(ne.fontSize," ").concat(ne.fontFamily),ae.filter=ne.filter,ae.letterSpacing=ne.letterSpacing,ae.wordSpacing=ne.wordSpacing,ne!=null&&ne.rotate&&(ne.rotate=(360-ne.rotate%360)*(Math.PI/180)),isUndefined$1(oe.textRowMaxWidth)&&(ne.textRowMaxWidth=ne.width);var ie={image:{rect:{width:ne.imageWidth,height:ne.imageHeight},position:{x:0,y:0}},textLine:{data:[],yOffsetValue:0},advancedStyleParams:{linear:{x0:0,x1:0},radial:{x0:0,y0:0,r0:0,x1:0,y1:0,r1:0},conic:{x:0,y:0,startAngle:0},pattern:{}}};switch(ne.contentType){case"text":ie.textLine.data=[ne.content];break;case"multi-line-text":ie.textLine.data=getMultiLineData(ae,ne.content,ne.textRowMaxWidth);break}var se=ne.width/2,de=ne.height/2,fe="middle",ve="center";switch(!isUndefined$1(oe==null?void 0:oe.translateX)&&!isUndefined$1(oe==null?void 0:oe.translateY)?(se=oe==null?void 0:oe.translateX,de=oe==null?void 0:oe.translateY,fe="top",ve="left"):(ie.advancedStyleParams.linear.x0=-ne.width/2,ie.advancedStyleParams.linear.x1=ne.width/2,ie.advancedStyleParams.radial.r0=0,ie.advancedStyleParams.radial.r1=ne.width/2),oe.translatePlacement){case"top":se=ne.width/2,de=0,fe="top",ie.advancedStyleParams.linear.x0=-ne.width/2,ie.advancedStyleParams.linear.x1=ne.width/2,ie.advancedStyleParams.radial.y0=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.y1=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.y=ie.textLine.data.length*ne.lineHeight/2;break;case"top-start":se=0,de=0,fe="top",ve="start",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=ne.width,ie.advancedStyleParams.radial.x0=ne.width/2,ie.advancedStyleParams.radial.y0=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.x1=ne.width/2,ie.advancedStyleParams.radial.y1=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.x=ne.width/2,ie.advancedStyleParams.conic.y=ie.textLine.data.length*ne.lineHeight/2;break;case"top-end":se=ne.width,de=0,fe="top",ve="end",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=-ne.width,ie.advancedStyleParams.radial.x0=-ne.width/2,ie.advancedStyleParams.radial.y0=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.x1=-ne.width/2,ie.advancedStyleParams.radial.y1=ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.x=-ne.width/2,ie.advancedStyleParams.conic.y=ie.textLine.data.length*ne.lineHeight/2;break;case"bottom":se=ne.width/2,de=ne.height,fe="bottom",ie.advancedStyleParams.linear.x0=-ne.width/2,ie.advancedStyleParams.linear.x1=ne.width/2,ie.advancedStyleParams.radial.y0=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.y1=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.x=0,ie.advancedStyleParams.conic.y=-ie.textLine.data.length*ne.lineHeight/2;break;case"bottom-start":se=0,de=ne.height,fe="bottom",ve="start",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=ne.width,ie.advancedStyleParams.radial.x0=ne.width/2,ie.advancedStyleParams.radial.y0=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.x1=ne.width/2,ie.advancedStyleParams.radial.y1=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.x=ne.width/2,ie.advancedStyleParams.conic.y=-ie.textLine.data.length*ne.lineHeight/2;break;case"bottom-end":se=ne.width,de=ne.height,fe="bottom",ve="end",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=-ne.width,ie.advancedStyleParams.radial.x0=-ne.width/2,ie.advancedStyleParams.radial.y0=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.radial.x1=-ne.width/2,ie.advancedStyleParams.radial.y1=-ie.textLine.data.length*ne.lineHeight/2,ie.advancedStyleParams.conic.x=-ne.width/2,ie.advancedStyleParams.conic.y=-ie.textLine.data.length*ne.lineHeight/2;break;case"left":se=0,de=ne.height/2,ve="start",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=ne.width,ie.advancedStyleParams.radial.x0=ne.width/2,ie.advancedStyleParams.radial.x1=ne.width/2,ie.advancedStyleParams.conic.x=ne.width/2,ie.advancedStyleParams.conic.y=0;break;case"right":se=ne.width,de=ne.height/2,ve="end",ie.advancedStyleParams.linear.x0=0,ie.advancedStyleParams.linear.x1=-ne.width,ie.advancedStyleParams.radial.x0=-ne.width/2,ie.advancedStyleParams.radial.x1=-ne.width/2,ie.advancedStyleParams.conic.x=-ne.width/2,ie.advancedStyleParams.conic.y=0;break}if(ne.translateX=se,ne.translateY=de,isUndefined$1(oe==null?void 0:oe.textBaseline)&&(ne.textBaseline=fe),isUndefined$1(oe==null?void 0:oe.textAlign)&&(ne.textAlign=ve),["text","multi-line-text"].includes(ne.contentType))switch(ne.textBaseline){case"middle":ie.textLine.yOffsetValue=(ie.textLine.data.length-1)*ne.lineHeight/2;break;case"bottom":case"alphabetic":case"ideographic":ie.textLine.yOffsetValue=(ie.textLine.data.length-1)*ne.lineHeight+(ne.lineHeight-parseInt(ne.fontSize))/2;break;case"top":case"hanging":ie.textLine.yOffsetValue=-ne.lineHeight/2+parseInt(ne.fontSize)/2;break}return ie},protection=function(ee){typeof window>"u"||ee&&(Object.defineProperty(window,"MutationObserver",{writable:!1,configurable:!1}),Object.defineProperty(window,"requestAnimationFrame",{writable:!1,configurable:!1}))},WatermarkCanvas=function(){function ee(ne,oe){this.props=ne,this.options=oe,this.canvas=ee.createCanvas(this.options.width,this.options.height),this.recommendOptions=generateRecommendOptions(this.canvas,this.options,this.props)}return ee.createCanvas=function(ne,oe){var ae,ie=window.devicePixelRatio||1,se=document.createElement("canvas");return se.width=ne*ie,se.height=oe*ie,se.style.width="".concat(ne,"px"),se.style.height="".concat(oe,"px"),(ae=se.getContext("2d"))===null||ae===void 0||ae.setTransform(ie,0,0,ie,0,0),se},ee.clearCanvas=function(ne){var oe=ne.getContext("2d");if(oe===null)throw new Error("get context error");oe.restore(),oe.resetTransform(),oe.clearRect(0,0,ne.width,ne.height);var ae=window.devicePixelRatio||1;oe.setTransform(ae,0,0,ae,0,0)},ee.prototype.getCanvas=function(){return this.canvas},ee.prototype.clear=function(){ee.clearCanvas(this.canvas)},ee.prototype.draw=function(){var ne=this,oe=this.canvas.getContext("2d");if(oe===null)throw new Error("get context error");return this.options.auxiliaryLine&&(oe.beginPath(),oe.rect(0,0,this.options.width,this.options.height),oe.lineWidth=1,oe.strokeStyle="#000",oe.stroke(),oe.closePath(),oe.beginPath(),oe.rect(this.options.translateX,this.options.translateY,1,1),oe.lineWidth=1,oe.strokeStyle="#f00",oe.stroke(),oe.closePath()),this.setStyle(oe),oe.save(),oe.translate(this.options.translateX,this.options.translateY),oe.rotate(this.options.rotate),new Promise(function(ae){switch(ne.options.contentType){case"text":ne.drawText(oe,ae);break;case"image":ne.drawImage(oe,ae);break;case"multi-line-text":ne.drawMultiLineText(oe,ae);break;case"rich-text":ne.drawRichText(oe,ae);break}})},ee.prototype.setStyle=function(ne){var oe,ae="fillStyle";this.options.textType==="stroke"&&(ae="strokeStyle");var ie=this.options.fontColor;if(!((oe=this.options)===null||oe===void 0)&&oe.advancedStyle)switch(this.options.advancedStyle.type){case"linear":ie=this.createLinearGradient(ne);break;case"radial":ie=this.createRadialGradient(ne);break;case"conic":ie=this.createConicGradient(ne);break;case"pattern":ie=this.createPattern(ne);break}ne[ae]&&ie&&(ne[ae]=ie),this.options.textAlign&&(ne.textAlign=this.options.textAlign),this.options.textBaseline&&(ne.textBaseline=this.options.textBaseline),ne.globalAlpha=this.options.globalAlpha,this.options.shadowStyle&&(ne.shadowBlur=getValue$1(this.options.shadowStyle.shadowBlur,0),ne.shadowColor=getValue$1(this.options.shadowStyle.shadowColor,"#00000000"),ne.shadowOffsetX=getValue$1(this.options.shadowStyle.shadowOffsetX,0),ne.shadowOffsetY=getValue$1(this.options.shadowStyle.shadowOffsetY,0)),isFunction$2(this.options.extraDrawFunc)&&this.options.extraDrawFunc(ne)},ee.prototype.createLinearGradient=function(ne){var oe,ae,ie,se,de,fe,ve,be,ye,$e,we,Ee,_e,Ce,Pe,Ae=ne.createLinearGradient(getValue$1((ie=(ae=(oe=this.options.advancedStyle)===null||oe===void 0?void 0:oe.params)===null||ae===void 0?void 0:ae.linear)===null||ie===void 0?void 0:ie.x0,this.recommendOptions.advancedStyleParams.linear.x0),getValue$1((fe=(de=(se=this.options.advancedStyle)===null||se===void 0?void 0:se.params)===null||de===void 0?void 0:de.linear)===null||fe===void 0?void 0:fe.y0,0),getValue$1((ye=(be=(ve=this.options.advancedStyle)===null||ve===void 0?void 0:ve.params)===null||be===void 0?void 0:be.linear)===null||ye===void 0?void 0:ye.x1,this.recommendOptions.advancedStyleParams.linear.x1),getValue$1((Ee=(we=($e=this.options.advancedStyle)===null||$e===void 0?void 0:$e.params)===null||we===void 0?void 0:we.linear)===null||Ee===void 0?void 0:Ee.y1,0));return(Pe=(Ce=(_e=this.options)===null||_e===void 0?void 0:_e.advancedStyle)===null||Ce===void 0?void 0:Ce.colorStops)===null||Pe===void 0||Pe.forEach(function(ke){Ae.addColorStop(ke.offset,ke.color)}),Ae},ee.prototype.createConicGradient=function(ne){var oe,ae,ie,se,de,fe,ve,be,ye,$e,we,Ee,_e,Ce,Pe,Ae=ne.createConicGradient(getValue$1((se=(ie=(ae=(oe=this.options)===null||oe===void 0?void 0:oe.advancedStyle)===null||ae===void 0?void 0:ae.params)===null||ie===void 0?void 0:ie.conic)===null||se===void 0?void 0:se.startAngle,0),getValue$1((be=(ve=(fe=(de=this.options)===null||de===void 0?void 0:de.advancedStyle)===null||fe===void 0?void 0:fe.params)===null||ve===void 0?void 0:ve.conic)===null||be===void 0?void 0:be.x,this.recommendOptions.advancedStyleParams.conic.x),getValue$1((Ee=(we=($e=(ye=this.options)===null||ye===void 0?void 0:ye.advancedStyle)===null||$e===void 0?void 0:$e.params)===null||we===void 0?void 0:we.conic)===null||Ee===void 0?void 0:Ee.y,this.recommendOptions.advancedStyleParams.conic.y));return(Pe=(Ce=(_e=this.options)===null||_e===void 0?void 0:_e.advancedStyle)===null||Ce===void 0?void 0:Ce.colorStops)===null||Pe===void 0||Pe.forEach(function(ke){Ae.addColorStop(ke.offset,ke.color)}),Ae},ee.prototype.createRadialGradient=function(ne){var oe,ae,ie,se,de,fe,ve,be,ye,$e,we,Ee,_e,Ce,Pe,Ae,ke,Ne,Oe,Re,Be,Me,Le,Xe,Ke,De,je,He=ne.createRadialGradient(getValue$1((se=(ie=(ae=(oe=this.options)===null||oe===void 0?void 0:oe.advancedStyle)===null||ae===void 0?void 0:ae.params)===null||ie===void 0?void 0:ie.radial)===null||se===void 0?void 0:se.x0,this.recommendOptions.advancedStyleParams.radial.x0),getValue$1((be=(ve=(fe=(de=this.options)===null||de===void 0?void 0:de.advancedStyle)===null||fe===void 0?void 0:fe.params)===null||ve===void 0?void 0:ve.radial)===null||be===void 0?void 0:be.y0,this.recommendOptions.advancedStyleParams.radial.y0),getValue$1((Ee=(we=($e=(ye=this.options)===null||ye===void 0?void 0:ye.advancedStyle)===null||$e===void 0?void 0:$e.params)===null||we===void 0?void 0:we.radial)===null||Ee===void 0?void 0:Ee.r0,this.recommendOptions.advancedStyleParams.radial.r0),getValue$1((Ae=(Pe=(Ce=(_e=this.options)===null||_e===void 0?void 0:_e.advancedStyle)===null||Ce===void 0?void 0:Ce.params)===null||Pe===void 0?void 0:Pe.radial)===null||Ae===void 0?void 0:Ae.x1,this.recommendOptions.advancedStyleParams.radial.x1),getValue$1((Re=(Oe=(Ne=(ke=this.options)===null||ke===void 0?void 0:ke.advancedStyle)===null||Ne===void 0?void 0:Ne.params)===null||Oe===void 0?void 0:Oe.radial)===null||Re===void 0?void 0:Re.y1,this.recommendOptions.advancedStyleParams.radial.y1),getValue$1((Xe=(Le=(Me=(Be=this.options)===null||Be===void 0?void 0:Be.advancedStyle)===null||Me===void 0?void 0:Me.params)===null||Le===void 0?void 0:Le.radial)===null||Xe===void 0?void 0:Xe.r1,this.recommendOptions.advancedStyleParams.radial.r1));return(je=(De=(Ke=this.options)===null||Ke===void 0?void 0:Ke.advancedStyle)===null||De===void 0?void 0:De.colorStops)===null||je===void 0||je.forEach(function(qe){He.addColorStop(qe.offset,qe.color)}),He},ee.prototype.createPattern=function(ne){var oe,ae,ie,se,de,fe,ve,be;return ne.createPattern((se=(ie=(ae=(oe=this.options)===null||oe===void 0?void 0:oe.advancedStyle)===null||ae===void 0?void 0:ae.params)===null||ie===void 0?void 0:ie.pattern)===null||se===void 0?void 0:se.image,((be=(ve=(fe=(de=this.options)===null||de===void 0?void 0:de.advancedStyle)===null||fe===void 0?void 0:fe.params)===null||ve===void 0?void 0:ve.pattern)===null||be===void 0?void 0:be.repetition)||"")},ee.prototype.setText=function(ne,oe){var ae="fillText";this.options.textType==="stroke"&&(ae="strokeText"),ne[ae]&&ne[ae](oe.text,oe.x,oe.y,oe.maxWidth)},ee.prototype.drawText=function(ne,oe){this.setText(ne,{text:this.options.content,x:0,y:0-this.recommendOptions.textLine.yOffsetValue,maxWidth:this.options.textRowMaxWidth||this.options.width}),oe(ne.canvas)},ee.prototype.drawImage=function(ne,oe){var ae=this;loadImage(this.options.image).then(function(ie){var se=ae.getImageRect(ie),de=se.width,fe=se.height,ve=ae.getDrawImagePosition(de,fe);ne.drawImage(ie,ve.x,ve.y,de,fe),oe(ne.canvas)})},ee.prototype.drawMultiLineText=function(ne,oe){var ae=this,ie=this.recommendOptions.textLine.data,se=this.recommendOptions.textLine.yOffsetValue;ie.forEach(function(de,fe){ae.setText(ne,{text:de,x:0,y:ae.options.lineHeight*fe-se,maxWidth:ae.options.textRowMaxWidth||ae.options.width})}),oe(ne.canvas)},ee.prototype.drawRichText=function(ne,oe){return __awaiter(this,void 0,void 0,function(){var ae,ie=this;return __generator(this,function(se){switch(se.label){case 0:return[4,createCustomContentSVG(ne,this.options)];case 1:return ae=se.sent(),loadImage(convertSVGToImage(ae.element),ae.width,ae.height).then(function(de){var fe=ie.getDrawImagePosition(de.width,de.height);ne.drawImage(de,fe.x,fe.y,de.width,de.height),oe(ne.canvas)}),[2]}})})},ee.prototype.getImageRect=function(ne){var oe={width:this.options.imageWidth||0,height:this.options.imageHeight||0};switch(!0){case(oe.width!==0&&oe.height===0):oe.height=oe.width*ne.height/ne.width;break;case(oe.width===0&&oe.height!==0):oe.width=oe.height*ne.width/ne.height;break;case(oe.width===0&&oe.height===0):oe.width=ne.width,oe.height=ne.height;break}return oe},ee.prototype.getDrawImagePosition=function(ne,oe){var ae,ie,se={x:-ne/2,y:-oe/2};switch(this.options.translatePlacement){case"top":se.x=-ne/2,se.y=0;break;case"top-start":se.x=0,se.y=0;break;case"top-end":se.x=-ne,se.y=0;break;case"bottom":se.x=-ne/2,se.y=-oe;break;case"bottom-start":se.x=0,se.y=-oe;break;case"bottom-end":se.x=-ne,se.y=-oe;break;case"left":se.x=0,se.y=-oe/2;break;case"right":se.x=-ne,se.y=-oe/2;break}return!isUndefined$1((ae=this.props)===null||ae===void 0?void 0:ae.translateX)&&(se.x=0),!isUndefined$1((ie=this.props)===null||ie===void 0?void 0:ie.translateY)&&(se.y=0),se},ee}(),GridLayout=function(){function ee(ne,oe){var ae,ie,se,de;this.options=ne,this.partialWidth=this.options.width,this.partialHeight=this.options.height,this.rows=((ae=this.options.gridLayoutOptions)===null||ae===void 0?void 0:ae.rows)||1,this.cols=((ie=this.options.gridLayoutOptions)===null||ie===void 0?void 0:ie.cols)||1,this.matrix=((se=this.options.gridLayoutOptions)===null||se===void 0?void 0:se.matrix)||generateMatrix(this.rows,this.cols,1),this.gap=((de=this.options.gridLayoutOptions)===null||de===void 0?void 0:de.gap)||[0,0],this.partialCanvas=oe}return ee.prototype.draw=function(){var ne,oe,ae,ie,se,de,fe,ve,be=WatermarkCanvas.createCanvas(((ne=this.options.gridLayoutOptions)===null||ne===void 0?void 0:ne.width)||this.partialWidth*this.cols+this.gap[0]*this.cols,((oe=this.options.gridLayoutOptions)===null||oe===void 0?void 0:oe.height)||this.partialHeight*this.rows+this.gap[1]*this.rows),ye=be.getContext("2d");!((ae=this.options.gridLayoutOptions)===null||ae===void 0)&&ae.backgroundImage&&(ye==null||ye.drawImage((ie=this.options.gridLayoutOptions)===null||ie===void 0?void 0:ie.backgroundImage,0,0,(se=this.options.gridLayoutOptions)===null||se===void 0?void 0:se.width,(de=this.options.gridLayoutOptions)===null||de===void 0?void 0:de.height));for(var $e=0;$e0}},ee.prototype.checkParentElementType=function(){return["html","body"].includes(this.parentElement.tagName.toLocaleLowerCase())?"root":"custom"},ee.prototype.checkWatermarkElement=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ne){switch(ne.label){case 0:return this.parentElement.contains(this.watermarkDom)?[3,2]:(this.remove(),[4,this.create()]);case 1:ne.sent(),ne.label=2;case 2:return this.bindCheckWatermarkElementEvent(),[2]}})})},ee.prototype.bindMutationObserve=function(){var ne=this;this.watermarkDom&&(this.bindCheckWatermarkElementEvent(),this.observer=new MutationObserver(function(oe){return __awaiter(ne,void 0,void 0,function(){return __generator(this,function(ae){switch(ae.label){case 0:return oe.length>0?(this.remove(),[4,this.create()]):[3,2];case 1:ae.sent(),ae.label=2;case 2:return[2]}})})}),this.observer.observe(this.watermarkDom,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),this.parentObserve=new MutationObserver(function(oe){return __awaiter(ne,void 0,void 0,function(){var ae,ie,se,de;return __generator(this,function(fe){switch(fe.label){case 0:ae=0,ie=oe,fe.label=1;case 1:return aene=>{const oe=toString.call(ne);return ee[oe]||(ee[oe]=oe.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=ee=>(ee=ee.toLowerCase(),ne=>kindOf(ne)===ee),typeOfTest=ee=>ne=>typeof ne===ee,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(ee){return ee!==null&&!isUndefined(ee)&&ee.constructor!==null&&!isUndefined(ee.constructor)&&isFunction$1(ee.constructor.isBuffer)&&ee.constructor.isBuffer(ee)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(ee){let ne;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ne=ArrayBuffer.isView(ee):ne=ee&&ee.buffer&&isArrayBuffer(ee.buffer),ne}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$1=ee=>ee!==null&&typeof ee=="object",isBoolean=ee=>ee===!0||ee===!1,isPlainObject=ee=>{if(kindOf(ee)!=="object")return!1;const ne=getPrototypeOf(ee);return(ne===null||ne===Object.prototype||Object.getPrototypeOf(ne)===null)&&!(Symbol.toStringTag in ee)&&!(Symbol.iterator in ee)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=ee=>isObject$1(ee)&&isFunction$1(ee.pipe),isFormData=ee=>{let ne;return ee&&(typeof FormData=="function"&&ee instanceof FormData||isFunction$1(ee.append)&&((ne=kindOf(ee))==="formdata"||ne==="object"&&isFunction$1(ee.toString)&&ee.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=ee=>ee.trim?ee.trim():ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(ee,ne,{allOwnKeys:oe=!1}={}){if(ee===null||typeof ee>"u")return;let ae,ie;if(typeof ee!="object"&&(ee=[ee]),isArray(ee))for(ae=0,ie=ee.length;ae0;)if(ie=oe[ae],ne===ie.toLowerCase())return ie;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=ee=>!isUndefined(ee)&&ee!==_global;function merge(){const{caseless:ee}=isContextDefined(this)&&this||{},ne={},oe=(ae,ie)=>{const se=ee&&findKey(ne,ie)||ie;isPlainObject(ne[se])&&isPlainObject(ae)?ne[se]=merge(ne[se],ae):isPlainObject(ae)?ne[se]=merge({},ae):isArray(ae)?ne[se]=ae.slice():ne[se]=ae};for(let ae=0,ie=arguments.length;ae(forEach(ne,(ie,se)=>{oe&&isFunction$1(ie)?ee[se]=bind(ie,oe):ee[se]=ie},{allOwnKeys:ae}),ee),stripBOM=ee=>(ee.charCodeAt(0)===65279&&(ee=ee.slice(1)),ee),inherits=(ee,ne,oe,ae)=>{ee.prototype=Object.create(ne.prototype,ae),ee.prototype.constructor=ee,Object.defineProperty(ee,"super",{value:ne.prototype}),oe&&Object.assign(ee.prototype,oe)},toFlatObject=(ee,ne,oe,ae)=>{let ie,se,de;const fe={};if(ne=ne||{},ee==null)return ne;do{for(ie=Object.getOwnPropertyNames(ee),se=ie.length;se-- >0;)de=ie[se],(!ae||ae(de,ee,ne))&&!fe[de]&&(ne[de]=ee[de],fe[de]=!0);ee=oe!==!1&&getPrototypeOf(ee)}while(ee&&(!oe||oe(ee,ne))&&ee!==Object.prototype);return ne},endsWith=(ee,ne,oe)=>{ee=String(ee),(oe===void 0||oe>ee.length)&&(oe=ee.length),oe-=ne.length;const ae=ee.indexOf(ne,oe);return ae!==-1&&ae===oe},toArray$1=ee=>{if(!ee)return null;if(isArray(ee))return ee;let ne=ee.length;if(!isNumber(ne))return null;const oe=new Array(ne);for(;ne-- >0;)oe[ne]=ee[ne];return oe},isTypedArray=(ee=>ne=>ee&&ne instanceof ee)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(ee,ne)=>{const ae=(ee&&ee[Symbol.iterator]).call(ee);let ie;for(;(ie=ae.next())&&!ie.done;){const se=ie.value;ne.call(ee,se[0],se[1])}},matchAll=(ee,ne)=>{let oe;const ae=[];for(;(oe=ee.exec(ne))!==null;)ae.push(oe);return ae},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=ee=>ee.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(oe,ae,ie){return ae.toUpperCase()+ie}),hasOwnProperty$1=(({hasOwnProperty:ee})=>(ne,oe)=>ee.call(ne,oe))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(ee,ne)=>{const oe=Object.getOwnPropertyDescriptors(ee),ae={};forEach(oe,(ie,se)=>{let de;(de=ne(ie,se,ee))!==!1&&(ae[se]=de||ie)}),Object.defineProperties(ee,ae)},freezeMethods=ee=>{reduceDescriptors(ee,(ne,oe)=>{if(isFunction$1(ee)&&["arguments","caller","callee"].indexOf(oe)!==-1)return!1;const ae=ee[oe];if(isFunction$1(ae)){if(ne.enumerable=!1,"writable"in ne){ne.writable=!1;return}ne.set||(ne.set=()=>{throw Error("Can not rewrite read-only method '"+oe+"'")})}})},toObjectSet=(ee,ne)=>{const oe={},ae=ie=>{ie.forEach(se=>{oe[se]=!0})};return isArray(ee)?ae(ee):ae(String(ee).split(ne)),oe},noop$1=()=>{},toFiniteNumber=(ee,ne)=>ee!=null&&Number.isFinite(ee=+ee)?ee:ne,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(ee=16,ne=ALPHABET.ALPHA_DIGIT)=>{let oe="";const{length:ae}=ne;for(;ee--;)oe+=ne[Math.random()*ae|0];return oe};function isSpecCompliantForm(ee){return!!(ee&&isFunction$1(ee.append)&&ee[Symbol.toStringTag]==="FormData"&&ee[Symbol.iterator])}const toJSONObject=ee=>{const ne=new Array(10),oe=(ae,ie)=>{if(isObject$1(ae)){if(ne.indexOf(ae)>=0)return;if(!("toJSON"in ae)){ne[ie]=ae;const se=isArray(ae)?[]:{};return forEach(ae,(de,fe)=>{const ve=oe(de,ie+1);!isUndefined(ve)&&(se[fe]=ve)}),ne[ie]=void 0,se}}return ae};return oe(ee,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=ee=>ee&&(isObject$1(ee)||isFunction$1(ee))&&isFunction$1(ee.then)&&isFunction$1(ee.catch),_setImmediate=((ee,ne)=>ee?setImmediate:ne?((oe,ae)=>(_global.addEventListener("message",({source:ie,data:se})=>{ie===_global&&se===oe&&ae.length&&ae.shift()()},!1),ie=>{ae.push(ie),_global.postMessage(oe,"*")}))(`axios@${Math.random()}`,[]):oe=>setTimeout(oe))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$1,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend:extend$1,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(ee,ne,oe,ae,ie){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=ee,this.name="AxiosError",ne&&(this.code=ne),oe&&(this.config=oe),ae&&(this.request=ae),ie&&(this.response=ie,this.status=ie.status?ie.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function ee(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(ee=>{descriptors[ee]={value:ee}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(ee,ne,oe,ae,ie,se)=>{const de=Object.create(prototype$1);return utils$1.toFlatObject(ee,de,function(ve){return ve!==Error.prototype},fe=>fe!=="isAxiosError"),AxiosError.call(de,ee.message,ne,oe,ae,ie),de.cause=ee,de.name=ee.name,se&&Object.assign(de,se),de};const httpAdapter=null;function isVisitable(ee){return utils$1.isPlainObject(ee)||utils$1.isArray(ee)}function removeBrackets(ee){return utils$1.endsWith(ee,"[]")?ee.slice(0,-2):ee}function renderKey(ee,ne,oe){return ee?ee.concat(ne).map(function(ie,se){return ie=removeBrackets(ie),!oe&&se?"["+ie+"]":ie}).join(oe?".":""):ne}function isFlatArray(ee){return utils$1.isArray(ee)&&!ee.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function ee(ne){return/^is[A-Z]/.test(ne)});function toFormData(ee,ne,oe){if(!utils$1.isObject(ee))throw new TypeError("target must be an object");ne=ne||new FormData,oe=utils$1.toFlatObject(oe,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ce,Pe){return!utils$1.isUndefined(Pe[Ce])});const ae=oe.metaTokens,ie=oe.visitor||ye,se=oe.dots,de=oe.indexes,ve=(oe.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(ne);if(!utils$1.isFunction(ie))throw new TypeError("visitor must be a function");function be(_e){if(_e===null)return"";if(utils$1.isDate(_e))return _e.toISOString();if(!ve&&utils$1.isBlob(_e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(_e)||utils$1.isTypedArray(_e)?ve&&typeof Blob=="function"?new Blob([_e]):Buffer.from(_e):_e}function ye(_e,Ce,Pe){let Ae=_e;if(_e&&!Pe&&typeof _e=="object"){if(utils$1.endsWith(Ce,"{}"))Ce=ae?Ce:Ce.slice(0,-2),_e=JSON.stringify(_e);else if(utils$1.isArray(_e)&&isFlatArray(_e)||(utils$1.isFileList(_e)||utils$1.endsWith(Ce,"[]"))&&(Ae=utils$1.toArray(_e)))return Ce=removeBrackets(Ce),Ae.forEach(function(Ne,Oe){!(utils$1.isUndefined(Ne)||Ne===null)&&ne.append(de===!0?renderKey([Ce],Oe,se):de===null?Ce:Ce+"[]",be(Ne))}),!1}return isVisitable(_e)?!0:(ne.append(renderKey(Pe,Ce,se),be(_e)),!1)}const $e=[],we=Object.assign(predicates,{defaultVisitor:ye,convertValue:be,isVisitable});function Ee(_e,Ce){if(!utils$1.isUndefined(_e)){if($e.indexOf(_e)!==-1)throw Error("Circular reference detected in "+Ce.join("."));$e.push(_e),utils$1.forEach(_e,function(Ae,ke){(!(utils$1.isUndefined(Ae)||Ae===null)&&ie.call(ne,Ae,utils$1.isString(ke)?ke.trim():ke,Ce,we))===!0&&Ee(Ae,Ce?Ce.concat(ke):[ke])}),$e.pop()}}if(!utils$1.isObject(ee))throw new TypeError("data must be an object");return Ee(ee),ne}function encode$1(ee){const ne={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ee).replace(/[!'()~]|%20|%00/g,function(ae){return ne[ae]})}function AxiosURLSearchParams(ee,ne){this._pairs=[],ee&&toFormData(ee,this,ne)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function ee(ne,oe){this._pairs.push([ne,oe])};prototype.toString=function ee(ne){const oe=ne?function(ae){return ne.call(this,ae,encode$1)}:encode$1;return this._pairs.map(function(ie){return oe(ie[0])+"="+oe(ie[1])},"").join("&")};function encode(ee){return encodeURIComponent(ee).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(ee,ne,oe){if(!ne)return ee;const ae=oe&&oe.encode||encode,ie=oe&&oe.serialize;let se;if(ie?se=ie(ne,oe):se=utils$1.isURLSearchParams(ne)?ne.toString():new AxiosURLSearchParams(ne,oe).toString(ae),se){const de=ee.indexOf("#");de!==-1&&(ee=ee.slice(0,de)),ee+=(ee.indexOf("?")===-1?"?":"&")+se}return ee}class InterceptorManager{constructor(){this.handlers=[]}use(ne,oe,ae){return this.handlers.push({fulfilled:ne,rejected:oe,synchronous:ae?ae.synchronous:!1,runWhen:ae?ae.runWhen:null}),this.handlers.length-1}eject(ne){this.handlers[ne]&&(this.handlers[ne]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ne){utils$1.forEach(this.handlers,function(ae){ae!==null&&ne(ae)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(ee,ne){return toFormData(ee,new platform.classes.URLSearchParams,Object.assign({visitor:function(oe,ae,ie,se){return platform.isNode&&utils$1.isBuffer(oe)?(this.append(ae,oe.toString("base64")),!1):se.defaultVisitor.apply(this,arguments)}},ne))}function parsePropPath(ee){return utils$1.matchAll(/\w+|\[(\w*)]/g,ee).map(ne=>ne[0]==="[]"?"":ne[1]||ne[0])}function arrayToObject(ee){const ne={},oe=Object.keys(ee);let ae;const ie=oe.length;let se;for(ae=0;ae=oe.length;return de=!de&&utils$1.isArray(ie)?ie.length:de,ve?(utils$1.hasOwnProp(ie,de)?ie[de]=[ie[de],ae]:ie[de]=ae,!fe):((!ie[de]||!utils$1.isObject(ie[de]))&&(ie[de]=[]),ne(oe,ae,ie[de],se)&&utils$1.isArray(ie[de])&&(ie[de]=arrayToObject(ie[de])),!fe)}if(utils$1.isFormData(ee)&&utils$1.isFunction(ee.entries)){const oe={};return utils$1.forEachEntry(ee,(ae,ie)=>{ne(parsePropPath(ae),ie,oe,0)}),oe}return null}function stringifySafely(ee,ne,oe){if(utils$1.isString(ee))try{return(ne||JSON.parse)(ee),utils$1.trim(ee)}catch(ae){if(ae.name!=="SyntaxError")throw ae}return(0,JSON.stringify)(ee)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function ee(ne,oe){const ae=oe.getContentType()||"",ie=ae.indexOf("application/json")>-1,se=utils$1.isObject(ne);if(se&&utils$1.isHTMLForm(ne)&&(ne=new FormData(ne)),utils$1.isFormData(ne))return ie?JSON.stringify(formDataToJSON(ne)):ne;if(utils$1.isArrayBuffer(ne)||utils$1.isBuffer(ne)||utils$1.isStream(ne)||utils$1.isFile(ne)||utils$1.isBlob(ne)||utils$1.isReadableStream(ne))return ne;if(utils$1.isArrayBufferView(ne))return ne.buffer;if(utils$1.isURLSearchParams(ne))return oe.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ne.toString();let fe;if(se){if(ae.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(ne,this.formSerializer).toString();if((fe=utils$1.isFileList(ne))||ae.indexOf("multipart/form-data")>-1){const ve=this.env&&this.env.FormData;return toFormData(fe?{"files[]":ne}:ne,ve&&new ve,this.formSerializer)}}return se||ie?(oe.setContentType("application/json",!1),stringifySafely(ne)):ne}],transformResponse:[function ee(ne){const oe=this.transitional||defaults.transitional,ae=oe&&oe.forcedJSONParsing,ie=this.responseType==="json";if(utils$1.isResponse(ne)||utils$1.isReadableStream(ne))return ne;if(ne&&utils$1.isString(ne)&&(ae&&!this.responseType||ie)){const de=!(oe&&oe.silentJSONParsing)&&ie;try{return JSON.parse(ne)}catch(fe){if(de)throw fe.name==="SyntaxError"?AxiosError.from(fe,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):fe}}return ne}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function ee(ne){return ne>=200&&ne<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],ee=>{defaults.headers[ee]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=ee=>{const ne={};let oe,ae,ie;return ee&&ee.split(` +`).forEach(function(de){ie=de.indexOf(":"),oe=de.substring(0,ie).trim().toLowerCase(),ae=de.substring(ie+1).trim(),!(!oe||ne[oe]&&ignoreDuplicateOf[oe])&&(oe==="set-cookie"?ne[oe]?ne[oe].push(ae):ne[oe]=[ae]:ne[oe]=ne[oe]?ne[oe]+", "+ae:ae)}),ne},$internals=Symbol("internals");function normalizeHeader(ee){return ee&&String(ee).trim().toLowerCase()}function normalizeValue(ee){return ee===!1||ee==null?ee:utils$1.isArray(ee)?ee.map(normalizeValue):String(ee)}function parseTokens(ee){const ne=Object.create(null),oe=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ae;for(;ae=oe.exec(ee);)ne[ae[1]]=ae[2];return ne}const isValidHeaderName=ee=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(ee.trim());function matchHeaderValue(ee,ne,oe,ae,ie){if(utils$1.isFunction(ae))return ae.call(this,ne,oe);if(ie&&(ne=oe),!!utils$1.isString(ne)){if(utils$1.isString(ae))return ne.indexOf(ae)!==-1;if(utils$1.isRegExp(ae))return ae.test(ne)}}function formatHeader(ee){return ee.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(ne,oe,ae)=>oe.toUpperCase()+ae)}function buildAccessors(ee,ne){const oe=utils$1.toCamelCase(" "+ne);["get","set","has"].forEach(ae=>{Object.defineProperty(ee,ae+oe,{value:function(ie,se,de){return this[ae].call(this,ne,ie,se,de)},configurable:!0})})}class AxiosHeaders{constructor(ne){ne&&this.set(ne)}set(ne,oe,ae){const ie=this;function se(fe,ve,be){const ye=normalizeHeader(ve);if(!ye)throw new Error("header name must be a non-empty string");const $e=utils$1.findKey(ie,ye);(!$e||ie[$e]===void 0||be===!0||be===void 0&&ie[$e]!==!1)&&(ie[$e||ve]=normalizeValue(fe))}const de=(fe,ve)=>utils$1.forEach(fe,(be,ye)=>se(be,ye,ve));if(utils$1.isPlainObject(ne)||ne instanceof this.constructor)de(ne,oe);else if(utils$1.isString(ne)&&(ne=ne.trim())&&!isValidHeaderName(ne))de(parseHeaders(ne),oe);else if(utils$1.isHeaders(ne))for(const[fe,ve]of ne.entries())se(ve,fe,ae);else ne!=null&&se(oe,ne,ae);return this}get(ne,oe){if(ne=normalizeHeader(ne),ne){const ae=utils$1.findKey(this,ne);if(ae){const ie=this[ae];if(!oe)return ie;if(oe===!0)return parseTokens(ie);if(utils$1.isFunction(oe))return oe.call(this,ie,ae);if(utils$1.isRegExp(oe))return oe.exec(ie);throw new TypeError("parser must be boolean|regexp|function")}}}has(ne,oe){if(ne=normalizeHeader(ne),ne){const ae=utils$1.findKey(this,ne);return!!(ae&&this[ae]!==void 0&&(!oe||matchHeaderValue(this,this[ae],ae,oe)))}return!1}delete(ne,oe){const ae=this;let ie=!1;function se(de){if(de=normalizeHeader(de),de){const fe=utils$1.findKey(ae,de);fe&&(!oe||matchHeaderValue(ae,ae[fe],fe,oe))&&(delete ae[fe],ie=!0)}}return utils$1.isArray(ne)?ne.forEach(se):se(ne),ie}clear(ne){const oe=Object.keys(this);let ae=oe.length,ie=!1;for(;ae--;){const se=oe[ae];(!ne||matchHeaderValue(this,this[se],se,ne,!0))&&(delete this[se],ie=!0)}return ie}normalize(ne){const oe=this,ae={};return utils$1.forEach(this,(ie,se)=>{const de=utils$1.findKey(ae,se);if(de){oe[de]=normalizeValue(ie),delete oe[se];return}const fe=ne?formatHeader(se):String(se).trim();fe!==se&&delete oe[se],oe[fe]=normalizeValue(ie),ae[fe]=!0}),this}concat(...ne){return this.constructor.concat(this,...ne)}toJSON(ne){const oe=Object.create(null);return utils$1.forEach(this,(ae,ie)=>{ae!=null&&ae!==!1&&(oe[ie]=ne&&utils$1.isArray(ae)?ae.join(", "):ae)}),oe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([ne,oe])=>ne+": "+oe).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(ne){return ne instanceof this?ne:new this(ne)}static concat(ne,...oe){const ae=new this(ne);return oe.forEach(ie=>ae.set(ie)),ae}static accessor(ne){const ae=(this[$internals]=this[$internals]={accessors:{}}).accessors,ie=this.prototype;function se(de){const fe=normalizeHeader(de);ae[fe]||(buildAccessors(ie,de),ae[fe]=!0)}return utils$1.isArray(ne)?ne.forEach(se):se(ne),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:ee},ne)=>{let oe=ne[0].toUpperCase()+ne.slice(1);return{get:()=>ee,set(ae){this[oe]=ae}}});utils$1.freezeMethods(AxiosHeaders);function transformData(ee,ne){const oe=this||defaults,ae=ne||oe,ie=AxiosHeaders.from(ae.headers);let se=ae.data;return utils$1.forEach(ee,function(fe){se=fe.call(oe,se,ie.normalize(),ne?ne.status:void 0)}),ie.normalize(),se}function isCancel(ee){return!!(ee&&ee.__CANCEL__)}function CanceledError(ee,ne,oe){AxiosError.call(this,ee??"canceled",AxiosError.ERR_CANCELED,ne,oe),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(ee,ne,oe){const ae=oe.config.validateStatus;!oe.status||!ae||ae(oe.status)?ee(oe):ne(new AxiosError("Request failed with status code "+oe.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(oe.status/100)-4],oe.config,oe.request,oe))}function parseProtocol(ee){const ne=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ee);return ne&&ne[1]||""}function speedometer(ee,ne){ee=ee||10;const oe=new Array(ee),ae=new Array(ee);let ie=0,se=0,de;return ne=ne!==void 0?ne:1e3,function(ve){const be=Date.now(),ye=ae[se];de||(de=be),oe[ie]=ve,ae[ie]=be;let $e=se,we=0;for(;$e!==ie;)we+=oe[$e++],$e=$e%ee;if(ie=(ie+1)%ee,ie===se&&(se=(se+1)%ee),be-de{oe=ye,ie=null,se&&(clearTimeout(se),se=null),ee.apply(null,be)};return[(...be)=>{const ye=Date.now(),$e=ye-oe;$e>=ae?de(be,ye):(ie=be,se||(se=setTimeout(()=>{se=null,de(ie)},ae-$e)))},()=>ie&&de(ie)]}const progressEventReducer=(ee,ne,oe=3)=>{let ae=0;const ie=speedometer(50,250);return throttle$1(se=>{const de=se.loaded,fe=se.lengthComputable?se.total:void 0,ve=de-ae,be=ie(ve),ye=de<=fe;ae=de;const $e={loaded:de,total:fe,progress:fe?de/fe:void 0,bytes:ve,rate:be||void 0,estimated:be&&fe&&ye?(fe-de)/be:void 0,event:se,lengthComputable:fe!=null,[ne?"download":"upload"]:!0};ee($e)},oe)},progressEventDecorator=(ee,ne)=>{const oe=ee!=null;return[ae=>ne[0]({lengthComputable:oe,total:ee,loaded:ae}),ne[1]]},asyncDecorator=ee=>(...ne)=>utils$1.asap(()=>ee(...ne)),isURLSameOrigin=platform.hasStandardBrowserEnv?function ee(){const ne=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),oe=document.createElement("a");let ae;function ie(se){let de=se;return ne&&(oe.setAttribute("href",de),de=oe.href),oe.setAttribute("href",de),{href:oe.href,protocol:oe.protocol?oe.protocol.replace(/:$/,""):"",host:oe.host,search:oe.search?oe.search.replace(/^\?/,""):"",hash:oe.hash?oe.hash.replace(/^#/,""):"",hostname:oe.hostname,port:oe.port,pathname:oe.pathname.charAt(0)==="/"?oe.pathname:"/"+oe.pathname}}return ae=ie(window.location.href),function(de){const fe=utils$1.isString(de)?ie(de):de;return fe.protocol===ae.protocol&&fe.host===ae.host}}():function ee(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(ee,ne,oe,ae,ie,se){const de=[ee+"="+encodeURIComponent(ne)];utils$1.isNumber(oe)&&de.push("expires="+new Date(oe).toGMTString()),utils$1.isString(ae)&&de.push("path="+ae),utils$1.isString(ie)&&de.push("domain="+ie),se===!0&&de.push("secure"),document.cookie=de.join("; ")},read(ee){const ne=document.cookie.match(new RegExp("(^|;\\s*)("+ee+")=([^;]*)"));return ne?decodeURIComponent(ne[3]):null},remove(ee){this.write(ee,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(ee){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ee)}function combineURLs(ee,ne){return ne?ee.replace(/\/?\/$/,"")+"/"+ne.replace(/^\/+/,""):ee}function buildFullPath(ee,ne){return ee&&!isAbsoluteURL(ne)?combineURLs(ee,ne):ne}const headersToObject=ee=>ee instanceof AxiosHeaders?{...ee}:ee;function mergeConfig(ee,ne){ne=ne||{};const oe={};function ae(be,ye,$e){return utils$1.isPlainObject(be)&&utils$1.isPlainObject(ye)?utils$1.merge.call({caseless:$e},be,ye):utils$1.isPlainObject(ye)?utils$1.merge({},ye):utils$1.isArray(ye)?ye.slice():ye}function ie(be,ye,$e){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(be))return ae(void 0,be,$e)}else return ae(be,ye,$e)}function se(be,ye){if(!utils$1.isUndefined(ye))return ae(void 0,ye)}function de(be,ye){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(be))return ae(void 0,be)}else return ae(void 0,ye)}function fe(be,ye,$e){if($e in ne)return ae(be,ye);if($e in ee)return ae(void 0,be)}const ve={url:se,method:se,data:se,baseURL:de,transformRequest:de,transformResponse:de,paramsSerializer:de,timeout:de,timeoutMessage:de,withCredentials:de,withXSRFToken:de,adapter:de,responseType:de,xsrfCookieName:de,xsrfHeaderName:de,onUploadProgress:de,onDownloadProgress:de,decompress:de,maxContentLength:de,maxBodyLength:de,beforeRedirect:de,transport:de,httpAgent:de,httpsAgent:de,cancelToken:de,socketPath:de,responseEncoding:de,validateStatus:fe,headers:(be,ye)=>ie(headersToObject(be),headersToObject(ye),!0)};return utils$1.forEach(Object.keys(Object.assign({},ee,ne)),function(ye){const $e=ve[ye]||ie,we=$e(ee[ye],ne[ye],ye);utils$1.isUndefined(we)&&$e!==fe||(oe[ye]=we)}),oe}const resolveConfig=ee=>{const ne=mergeConfig({},ee);let{data:oe,withXSRFToken:ae,xsrfHeaderName:ie,xsrfCookieName:se,headers:de,auth:fe}=ne;ne.headers=de=AxiosHeaders.from(de),ne.url=buildURL(buildFullPath(ne.baseURL,ne.url),ee.params,ee.paramsSerializer),fe&&de.set("Authorization","Basic "+btoa((fe.username||"")+":"+(fe.password?unescape(encodeURIComponent(fe.password)):"")));let ve;if(utils$1.isFormData(oe)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)de.setContentType(void 0);else if((ve=de.getContentType())!==!1){const[be,...ye]=ve?ve.split(";").map($e=>$e.trim()).filter(Boolean):[];de.setContentType([be||"multipart/form-data",...ye].join("; "))}}if(platform.hasStandardBrowserEnv&&(ae&&utils$1.isFunction(ae)&&(ae=ae(ne)),ae||ae!==!1&&isURLSameOrigin(ne.url))){const be=ie&&se&&cookies.read(se);be&&de.set(ie,be)}return ne},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(ee){return new Promise(function(oe,ae){const ie=resolveConfig(ee);let se=ie.data;const de=AxiosHeaders.from(ie.headers).normalize();let{responseType:fe,onUploadProgress:ve,onDownloadProgress:be}=ie,ye,$e,we,Ee,_e;function Ce(){Ee&&Ee(),_e&&_e(),ie.cancelToken&&ie.cancelToken.unsubscribe(ye),ie.signal&&ie.signal.removeEventListener("abort",ye)}let Pe=new XMLHttpRequest;Pe.open(ie.method.toUpperCase(),ie.url,!0),Pe.timeout=ie.timeout;function Ae(){if(!Pe)return;const Ne=AxiosHeaders.from("getAllResponseHeaders"in Pe&&Pe.getAllResponseHeaders()),Re={data:!fe||fe==="text"||fe==="json"?Pe.responseText:Pe.response,status:Pe.status,statusText:Pe.statusText,headers:Ne,config:ee,request:Pe};settle(function(Me){oe(Me),Ce()},function(Me){ae(Me),Ce()},Re),Pe=null}"onloadend"in Pe?Pe.onloadend=Ae:Pe.onreadystatechange=function(){!Pe||Pe.readyState!==4||Pe.status===0&&!(Pe.responseURL&&Pe.responseURL.indexOf("file:")===0)||setTimeout(Ae)},Pe.onabort=function(){Pe&&(ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,ee,Pe)),Pe=null)},Pe.onerror=function(){ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ee,Pe)),Pe=null},Pe.ontimeout=function(){let Oe=ie.timeout?"timeout of "+ie.timeout+"ms exceeded":"timeout exceeded";const Re=ie.transitional||transitionalDefaults;ie.timeoutErrorMessage&&(Oe=ie.timeoutErrorMessage),ae(new AxiosError(Oe,Re.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,ee,Pe)),Pe=null},se===void 0&&de.setContentType(null),"setRequestHeader"in Pe&&utils$1.forEach(de.toJSON(),function(Oe,Re){Pe.setRequestHeader(Re,Oe)}),utils$1.isUndefined(ie.withCredentials)||(Pe.withCredentials=!!ie.withCredentials),fe&&fe!=="json"&&(Pe.responseType=ie.responseType),be&&([we,_e]=progressEventReducer(be,!0),Pe.addEventListener("progress",we)),ve&&Pe.upload&&([$e,Ee]=progressEventReducer(ve),Pe.upload.addEventListener("progress",$e),Pe.upload.addEventListener("loadend",Ee)),(ie.cancelToken||ie.signal)&&(ye=Ne=>{Pe&&(ae(!Ne||Ne.type?new CanceledError(null,ee,Pe):Ne),Pe.abort(),Pe=null)},ie.cancelToken&&ie.cancelToken.subscribe(ye),ie.signal&&(ie.signal.aborted?ye():ie.signal.addEventListener("abort",ye)));const ke=parseProtocol(ie.url);if(ke&&platform.protocols.indexOf(ke)===-1){ae(new AxiosError("Unsupported protocol "+ke+":",AxiosError.ERR_BAD_REQUEST,ee));return}Pe.send(se||null)})},composeSignals=(ee,ne)=>{const{length:oe}=ee=ee?ee.filter(Boolean):[];if(ne||oe){let ae=new AbortController,ie;const se=function(be){if(!ie){ie=!0,fe();const ye=be instanceof Error?be:this.reason;ae.abort(ye instanceof AxiosError?ye:new CanceledError(ye instanceof Error?ye.message:ye))}};let de=ne&&setTimeout(()=>{de=null,se(new AxiosError(`timeout ${ne} of ms exceeded`,AxiosError.ETIMEDOUT))},ne);const fe=()=>{ee&&(de&&clearTimeout(de),de=null,ee.forEach(be=>{be.unsubscribe?be.unsubscribe(se):be.removeEventListener("abort",se)}),ee=null)};ee.forEach(be=>be.addEventListener("abort",se));const{signal:ve}=ae;return ve.unsubscribe=()=>utils$1.asap(fe),ve}},streamChunk=function*(ee,ne){let oe=ee.byteLength;if(oe{const ie=readBytes(ee,ne);let se=0,de,fe=ve=>{de||(de=!0,ae&&ae(ve))};return new ReadableStream({async pull(ve){try{const{done:be,value:ye}=await ie.next();if(be){fe(),ve.close();return}let $e=ye.byteLength;if(oe){let we=se+=$e;oe(we)}ve.enqueue(new Uint8Array(ye))}catch(be){throw fe(be),be}},cancel(ve){return fe(ve),ie.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(ee=>ne=>ee.encode(ne))(new TextEncoder):async ee=>new Uint8Array(await new Response(ee).arrayBuffer())),test=(ee,...ne)=>{try{return!!ee(...ne)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let ee=!1;const ne=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return ee=!0,"half"}}).headers.has("Content-Type");return ee&&!ne}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(ee=>ee.body)};isFetchSupported&&(ee=>{["text","arrayBuffer","blob","formData","stream"].forEach(ne=>{!resolvers[ne]&&(resolvers[ne]=utils$1.isFunction(ee[ne])?oe=>oe[ne]():(oe,ae)=>{throw new AxiosError(`Response type '${ne}' is not supported`,AxiosError.ERR_NOT_SUPPORT,ae)})})})(new Response);const getBodyLength=async ee=>{if(ee==null)return 0;if(utils$1.isBlob(ee))return ee.size;if(utils$1.isSpecCompliantForm(ee))return(await new Request(platform.origin,{method:"POST",body:ee}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(ee)||utils$1.isArrayBuffer(ee))return ee.byteLength;if(utils$1.isURLSearchParams(ee)&&(ee=ee+""),utils$1.isString(ee))return(await encodeText(ee)).byteLength},resolveBodyLength=async(ee,ne)=>{const oe=utils$1.toFiniteNumber(ee.getContentLength());return oe??getBodyLength(ne)},fetchAdapter=isFetchSupported&&(async ee=>{let{url:ne,method:oe,data:ae,signal:ie,cancelToken:se,timeout:de,onDownloadProgress:fe,onUploadProgress:ve,responseType:be,headers:ye,withCredentials:$e="same-origin",fetchOptions:we}=resolveConfig(ee);be=be?(be+"").toLowerCase():"text";let Ee=composeSignals([ie,se&&se.toAbortSignal()],de),_e;const Ce=Ee&&Ee.unsubscribe&&(()=>{Ee.unsubscribe()});let Pe;try{if(ve&&supportsRequestStream&&oe!=="get"&&oe!=="head"&&(Pe=await resolveBodyLength(ye,ae))!==0){let Re=new Request(ne,{method:"POST",body:ae,duplex:"half"}),Be;if(utils$1.isFormData(ae)&&(Be=Re.headers.get("content-type"))&&ye.setContentType(Be),Re.body){const[Me,Le]=progressEventDecorator(Pe,progressEventReducer(asyncDecorator(ve)));ae=trackStream(Re.body,DEFAULT_CHUNK_SIZE,Me,Le)}}utils$1.isString($e)||($e=$e?"include":"omit");const Ae="credentials"in Request.prototype;_e=new Request(ne,{...we,signal:Ee,method:oe.toUpperCase(),headers:ye.normalize().toJSON(),body:ae,duplex:"half",credentials:Ae?$e:void 0});let ke=await fetch(_e);const Ne=supportsResponseStream&&(be==="stream"||be==="response");if(supportsResponseStream&&(fe||Ne&&Ce)){const Re={};["status","statusText","headers"].forEach(Xe=>{Re[Xe]=ke[Xe]});const Be=utils$1.toFiniteNumber(ke.headers.get("content-length")),[Me,Le]=fe&&progressEventDecorator(Be,progressEventReducer(asyncDecorator(fe),!0))||[];ke=new Response(trackStream(ke.body,DEFAULT_CHUNK_SIZE,Me,()=>{Le&&Le(),Ce&&Ce()}),Re)}be=be||"text";let Oe=await resolvers[utils$1.findKey(resolvers,be)||"text"](ke,ee);return!Ne&&Ce&&Ce(),await new Promise((Re,Be)=>{settle(Re,Be,{data:Oe,headers:AxiosHeaders.from(ke.headers),status:ke.status,statusText:ke.statusText,config:ee,request:_e})})}catch(Ae){throw Ce&&Ce(),Ae&&Ae.name==="TypeError"&&/fetch/i.test(Ae.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ee,_e),{cause:Ae.cause||Ae}):AxiosError.from(Ae,Ae&&Ae.code,ee,_e)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(ee,ne)=>{if(ee){try{Object.defineProperty(ee,"name",{value:ne})}catch{}Object.defineProperty(ee,"adapterName",{value:ne})}});const renderReason=ee=>`- ${ee}`,isResolvedHandle=ee=>utils$1.isFunction(ee)||ee===null||ee===!1,adapters={getAdapter:ee=>{ee=utils$1.isArray(ee)?ee:[ee];const{length:ne}=ee;let oe,ae;const ie={};for(let se=0;se`adapter ${fe} `+(ve===!1?"is not supported by the environment":"is not available in the build"));let de=ne?se.length>1?`since : +`+se.map(renderReason).join(` +`):" "+renderReason(se[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+de,"ERR_NOT_SUPPORT")}return ae},adapters:knownAdapters};function throwIfCancellationRequested(ee){if(ee.cancelToken&&ee.cancelToken.throwIfRequested(),ee.signal&&ee.signal.aborted)throw new CanceledError(null,ee)}function dispatchRequest(ee){return throwIfCancellationRequested(ee),ee.headers=AxiosHeaders.from(ee.headers),ee.data=transformData.call(ee,ee.transformRequest),["post","put","patch"].indexOf(ee.method)!==-1&&ee.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(ee.adapter||defaults.adapter)(ee).then(function(ae){return throwIfCancellationRequested(ee),ae.data=transformData.call(ee,ee.transformResponse,ae),ae.headers=AxiosHeaders.from(ae.headers),ae},function(ae){return isCancel(ae)||(throwIfCancellationRequested(ee),ae&&ae.response&&(ae.response.data=transformData.call(ee,ee.transformResponse,ae.response),ae.response.headers=AxiosHeaders.from(ae.response.headers))),Promise.reject(ae)})}const VERSION="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((ee,ne)=>{validators$1[ee]=function(ae){return typeof ae===ee||"a"+(ne<1?"n ":" ")+ee}});const deprecatedWarnings={};validators$1.transitional=function ee(ne,oe,ae){function ie(se,de){return"[Axios v"+VERSION+"] Transitional option '"+se+"'"+de+(ae?". "+ae:"")}return(se,de,fe)=>{if(ne===!1)throw new AxiosError(ie(de," has been removed"+(oe?" in "+oe:"")),AxiosError.ERR_DEPRECATED);return oe&&!deprecatedWarnings[de]&&(deprecatedWarnings[de]=!0,console.warn(ie(de," has been deprecated since v"+oe+" and will be removed in the near future"))),ne?ne(se,de,fe):!0}};function assertOptions(ee,ne,oe){if(typeof ee!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ae=Object.keys(ee);let ie=ae.length;for(;ie-- >0;){const se=ae[ie],de=ne[se];if(de){const fe=ee[se],ve=fe===void 0||de(fe,se,ee);if(ve!==!0)throw new AxiosError("option "+se+" must be "+ve,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(oe!==!0)throw new AxiosError("Unknown option "+se,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(ne){this.defaults=ne,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(ne,oe){try{return await this._request(ne,oe)}catch(ae){if(ae instanceof Error){let ie;Error.captureStackTrace?Error.captureStackTrace(ie={}):ie=new Error;const se=ie.stack?ie.stack.replace(/^.+\n/,""):"";try{ae.stack?se&&!String(ae.stack).endsWith(se.replace(/^.+\n.+\n/,""))&&(ae.stack+=` +`+se):ae.stack=se}catch{}}throw ae}}_request(ne,oe){typeof ne=="string"?(oe=oe||{},oe.url=ne):oe=ne||{},oe=mergeConfig(this.defaults,oe);const{transitional:ae,paramsSerializer:ie,headers:se}=oe;ae!==void 0&&validator.assertOptions(ae,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ie!=null&&(utils$1.isFunction(ie)?oe.paramsSerializer={serialize:ie}:validator.assertOptions(ie,{encode:validators.function,serialize:validators.function},!0)),oe.method=(oe.method||this.defaults.method||"get").toLowerCase();let de=se&&utils$1.merge(se.common,se[oe.method]);se&&utils$1.forEach(["delete","get","head","post","put","patch","common"],_e=>{delete se[_e]}),oe.headers=AxiosHeaders.concat(de,se);const fe=[];let ve=!0;this.interceptors.request.forEach(function(Ce){typeof Ce.runWhen=="function"&&Ce.runWhen(oe)===!1||(ve=ve&&Ce.synchronous,fe.unshift(Ce.fulfilled,Ce.rejected))});const be=[];this.interceptors.response.forEach(function(Ce){be.push(Ce.fulfilled,Ce.rejected)});let ye,$e=0,we;if(!ve){const _e=[dispatchRequest.bind(this),void 0];for(_e.unshift.apply(_e,fe),_e.push.apply(_e,be),we=_e.length,ye=Promise.resolve(oe);$e{if(!ae._listeners)return;let se=ae._listeners.length;for(;se-- >0;)ae._listeners[se](ie);ae._listeners=null}),this.promise.then=ie=>{let se;const de=new Promise(fe=>{ae.subscribe(fe),se=fe}).then(ie);return de.cancel=function(){ae.unsubscribe(se)},de},ne(function(se,de,fe){ae.reason||(ae.reason=new CanceledError(se,de,fe),oe(ae.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(ne){if(this.reason){ne(this.reason);return}this._listeners?this._listeners.push(ne):this._listeners=[ne]}unsubscribe(ne){if(!this._listeners)return;const oe=this._listeners.indexOf(ne);oe!==-1&&this._listeners.splice(oe,1)}toAbortSignal(){const ne=new AbortController,oe=ae=>{ne.abort(ae)};return this.subscribe(oe),ne.signal.unsubscribe=()=>this.unsubscribe(oe),ne.signal}static source(){let ne;return{token:new CancelToken(function(ie){ne=ie}),cancel:ne}}}function spread(ee){return function(oe){return ee.apply(null,oe)}}function isAxiosError(ee){return utils$1.isObject(ee)&&ee.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([ee,ne])=>{HttpStatusCode[ne]=ee});function createInstance$1(ee){const ne=new Axios(ee),oe=bind(Axios.prototype.request,ne);return utils$1.extend(oe,Axios.prototype,ne,{allOwnKeys:!0}),utils$1.extend(oe,ne,null,{allOwnKeys:!0}),oe.create=function(ie){return createInstance$1(mergeConfig(ee,ie))},oe}const axios=createInstance$1(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function ee(ne){return Promise.all(ne)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=ee=>formDataToJSON(utils$1.isHTMLForm(ee)?new FormData(ee):ee);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const api=axios.create({baseURL:"/",timeout:1e3*60,responseType:"json"});api.interceptors.request.use(ee=>{const ne=useSettingsStore(),oe=useUserStore();return ee.headers&&(ee.headers["Accept-Language"]=ne.lang,oe.isLogin&&(ee.headers.Token=oe.token)),ee.method,ee});api.interceptors.response.use(ee=>{if(ee.data.status===1){if(ee.data.error!=="")return index.error(ee.data.error,{zIndex:2e3}),Promise.reject(ee.data)}else useUserStore().logout();return Promise.resolve(ee.data)},ee=>{let ne=ee.message;return ne==="Network Error"?ne="后端网络故障":ne.includes("timeout")?ne="接口请求超时":ne.includes("Request failed with status code")&&(ne=`接口${ne.substr(ne.length-3)}异常`),index.error(ne,{zIndex:2e3}),Promise.reject(ee)});const apiUser={login:ee=>api.post("user/login",ee,{baseURL:"/mock/"}),permission:()=>api.get("user/permission",{baseURL:"/mock/"})};function assertPath(ee){if(typeof ee!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,ne){for(var oe="",ae=0,ie=-1,se=0,de,fe=0;fe<=ee.length;++fe){if(fe2){var ve=oe.lastIndexOf("/");if(ve!==oe.length-1){ve===-1?(oe="",ae=0):(oe=oe.slice(0,ve),ae=oe.length-1-oe.lastIndexOf("/")),ie=fe,se=0;continue}}else if(oe.length===2||oe.length===1){oe="",ae=0,ie=fe,se=0;continue}}ne&&(oe.length>0?oe+="/..":oe="..",ae=2)}else oe.length>0?oe+="/"+ee.slice(ie+1,fe):oe=ee.slice(ie+1,fe),ae=fe-ie-1;ie=fe,se=0}else de===46&&se!==-1?++se:se=-1}return oe}function _format(ee,ne){var oe=ne.dir||ne.root,ae=ne.base||(ne.name||"")+(ne.ext||"");return oe?oe===ne.root?oe+ae:oe+ee+ae:ae}var posix={resolve:function ee(){for(var ne="",oe=!1,ae,ie=arguments.length-1;ie>=-1&&!oe;ie--){var se;ie>=0?se=arguments[ie]:(ae===void 0&&(ae=process.cwd()),se=ae),assertPath(se),se.length!==0&&(ne=se+"/"+ne,oe=se.charCodeAt(0)===47)}return ne=normalizeStringPosix(ne,!oe),oe?ne.length>0?"/"+ne:"/":ne.length>0?ne:"."},normalize:function ee(ne){if(assertPath(ne),ne.length===0)return".";var oe=ne.charCodeAt(0)===47,ae=ne.charCodeAt(ne.length-1)===47;return ne=normalizeStringPosix(ne,!oe),ne.length===0&&!oe&&(ne="."),ne.length>0&&ae&&(ne+="/"),oe?"/"+ne:ne},isAbsolute:function ee(ne){return assertPath(ne),ne.length>0&&ne.charCodeAt(0)===47},join:function ee(){if(arguments.length===0)return".";for(var ne,oe=0;oe0&&(ne===void 0?ne=ae:ne+="/"+ae)}return ne===void 0?".":posix.normalize(ne)},relative:function ee(ne,oe){if(assertPath(ne),assertPath(oe),ne===oe||(ne=posix.resolve(ne),oe=posix.resolve(oe),ne===oe))return"";for(var ae=1;aebe){if(oe.charCodeAt(de+$e)===47)return oe.slice(de+$e+1);if($e===0)return oe.slice(de+$e)}else se>be&&(ne.charCodeAt(ae+$e)===47?ye=$e:$e===0&&(ye=0));break}var we=ne.charCodeAt(ae+$e),Ee=oe.charCodeAt(de+$e);if(we!==Ee)break;we===47&&(ye=$e)}var _e="";for($e=ae+ye+1;$e<=ie;++$e)($e===ie||ne.charCodeAt($e)===47)&&(_e.length===0?_e+="..":_e+="/..");return _e.length>0?_e+oe.slice(de+ye):(de+=ye,oe.charCodeAt(de)===47&&++de,oe.slice(de))},_makeLong:function ee(ne){return ne},dirname:function ee(ne){if(assertPath(ne),ne.length===0)return".";for(var oe=ne.charCodeAt(0),ae=oe===47,ie=-1,se=!0,de=ne.length-1;de>=1;--de)if(oe=ne.charCodeAt(de),oe===47){if(!se){ie=de;break}}else se=!1;return ie===-1?ae?"/":".":ae&&ie===1?"//":ne.slice(0,ie)},basename:function ee(ne,oe){if(oe!==void 0&&typeof oe!="string")throw new TypeError('"ext" argument must be a string');assertPath(ne);var ae=0,ie=-1,se=!0,de;if(oe!==void 0&&oe.length>0&&oe.length<=ne.length){if(oe.length===ne.length&&oe===ne)return"";var fe=oe.length-1,ve=-1;for(de=ne.length-1;de>=0;--de){var be=ne.charCodeAt(de);if(be===47){if(!se){ae=de+1;break}}else ve===-1&&(se=!1,ve=de+1),fe>=0&&(be===oe.charCodeAt(fe)?--fe===-1&&(ie=de):(fe=-1,ie=ve))}return ae===ie?ie=ve:ie===-1&&(ie=ne.length),ne.slice(ae,ie)}else{for(de=ne.length-1;de>=0;--de)if(ne.charCodeAt(de)===47){if(!se){ae=de+1;break}}else ie===-1&&(se=!1,ie=de+1);return ie===-1?"":ne.slice(ae,ie)}},extname:function ee(ne){assertPath(ne);for(var oe=-1,ae=0,ie=-1,se=!0,de=0,fe=ne.length-1;fe>=0;--fe){var ve=ne.charCodeAt(fe);if(ve===47){if(!se){ae=fe+1;break}continue}ie===-1&&(se=!1,ie=fe+1),ve===46?oe===-1?oe=fe:de!==1&&(de=1):oe!==-1&&(de=-1)}return oe===-1||ie===-1||de===0||de===1&&oe===ie-1&&oe===ae+1?"":ne.slice(oe,ie)},format:function ee(ne){if(ne===null||typeof ne!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ne);return _format("/",ne)},parse:function ee(ne){assertPath(ne);var oe={root:"",dir:"",base:"",ext:"",name:""};if(ne.length===0)return oe;var ae=ne.charCodeAt(0),ie=ae===47,se;ie?(oe.root="/",se=1):se=0;for(var de=-1,fe=0,ve=-1,be=!0,ye=ne.length-1,$e=0;ye>=se;--ye){if(ae=ne.charCodeAt(ye),ae===47){if(!be){fe=ye+1;break}continue}ve===-1&&(be=!1,ve=ye+1),ae===46?de===-1?de=ye:$e!==1&&($e=1):de!==-1&&($e=-1)}return de===-1||ve===-1||$e===0||$e===1&&de===ve-1&&de===fe+1?ve!==-1&&(fe===0&&ie?oe.base=oe.name=ne.slice(1,ve):oe.base=oe.name=ne.slice(fe,ve)):(fe===0&&ie?(oe.name=ne.slice(1,de),oe.base=ne.slice(1,ve)):(oe.name=ne.slice(fe,de),oe.base=ne.slice(fe,ve)),oe.ext=ne.slice(de,ve)),fe>0?oe.dir=ne.slice(0,fe-1):ie&&(oe.dir="/"),oe},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix;const path=getDefaultExportFromCjs(pathBrowserify);function _mergeRouteRecord(ee,...ne){return ne.reduce((oe,ae)=>{const ie=Object.assign({},oe.meta,ae.meta),se=[].concat(oe.alias||[],ae.alias||[]);return Object.assign(oe,ae),oe.meta=ie,oe.alias=se,oe},ee)}function createRouter(ee){const{extendRoutes:ne,routes:oe}=ee;return ne&&console.warn('"extendRoutes()" is deprecated, please modify the routes directly. See https://uvr.esm.is/guide/extending-routes.html#extending-routes-at-runtime for an alternative.'),createRouter$1(Object.assign(ee,{routes:typeof ne=="function"&&ne(oe)||oe}))}const scriptRel="modulepreload",assetsURL=function(ee,ne){return new URL(ee,ne).href},seen={},__vitePreload=function ee(ne,oe,ae){let ie=Promise.resolve();if(oe&&oe.length>0){const de=document.getElementsByTagName("link"),fe=document.querySelector("meta[property=csp-nonce]"),ve=(fe==null?void 0:fe.nonce)||(fe==null?void 0:fe.getAttribute("nonce"));ie=Promise.allSettled(oe.map(be=>{if(be=assetsURL(be,ae),be in seen)return;seen[be]=!0;const ye=be.endsWith(".css"),$e=ye?'[rel="stylesheet"]':"";if(!!ae)for(let _e=de.length-1;_e>=0;_e--){const Ce=de[_e];if(Ce.href===be&&(!ye||Ce.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${be}"]${$e}`))return;const Ee=document.createElement("link");if(Ee.rel=ye?"stylesheet":scriptRel,ye||(Ee.as="script"),Ee.crossOrigin="",Ee.href=be,ve&&Ee.setAttribute("nonce",ve),document.head.appendChild(Ee),ye)return new Promise((_e,Ce)=>{Ee.addEventListener("load",_e),Ee.addEventListener("error",()=>Ce(new Error(`Unable to preload CSS for ${be}`)))})}))}function se(de){const fe=new Event("vite:preloadError",{cancelable:!0});if(fe.payload=de,window.dispatchEvent(fe),!fe.defaultPrevented)throw de}return ie.then(de=>{for(const fe of de||[])fe.status==="rejected"&&se(fe.reason);return ne().catch(se)})},_definePage_default_0={meta:{title:"找不到页面"}},_definePage_default_2={meta:{title:"tabbar.default.feature",cache:!0}},_definePage_default_3={meta:{title:"基础组件"}},_definePage_default_4={meta:{title:"内建组件"}},_definePage_default_5={meta:{title:"复合组件"}},_definePage_default_6={meta:{title:"PageMain"}},_definePage_default_7={meta:{title:"Spartline"}},_definePage_default_8={meta:{title:"Trend"}},_definePage_default_9={meta:{title:"pages.function.errorLog"}},_definePage_default_10={meta:{title:"pages.function.font"}},_definePage_default_11={meta:{title:"pages.function.i18n"}},_definePage_default_12={meta:{title:"pages.function.icon"}},_definePage_default_13={meta:{title:"pages.function.keepAlive",cache:!0}},_definePage_default_14={meta:{title:"pages.function.scroll",cache:"/feature/function/scroll2"}},_definePage_default_15={meta:{title:"pages.function.scroll"}},_definePage_default_16={meta:{title:"pages.function.title"}},_definePage_default_17={meta:{title:"UnoCSS"}},_definePage_default_18={meta:{title:"pages.function.watermark"}},_definePage_default_19={meta:{title:"pages.function.zoomable"}},_definePage_default_20={meta:{title:"pages.navbar.custom-area"}},_definePage_default_21={meta:{title:"pages.navbar.custom-navbar"}},_definePage_default_22={meta:{title:"pages.navbar.custom-title"}},_definePage_default_23={meta:{title:"pages.navbar.default"}},_definePage_default_24={meta:{title:"pages.navbar.mode"}},_definePage_default_25={meta:{title:"pages.navbar.preset"}},_definePage_default_26={meta:{title:"pages.navbar.title-no-center"}},_definePage_default_27={meta:{title:"加载更多"}},_definePage_default_28={meta:{title:"商品列表"}},_definePage_default_29={meta:{title:"日程表"}},_definePage_default_30={meta:{title:"权限验证",auth:!0}},_definePage_default_31={meta:{title:"权限验证",auth:"permission.browse"}},_definePage_default_32={meta:{title:"过渡动画"}},_definePage_default_33={meta:{title:"ECharts"}},_definePage_default_34={meta:{title:"电子签名"}},_definePage_default_35={meta:{title:"二维码"}},_definePage_default_36={meta:{title:"轮播动画"}},_definePage_default_37={meta:{title:"VChart"}},_definePage_default_38={meta:{title:"pages.tabbar.badge"}},_definePage_default_39={meta:{title:"pages.tabbar.custom-area"}},_definePage_default_40={meta:{title:"pages.tabbar.default"}},_definePage_default_41={meta:{title:"pages.tabbar.multi"}},_definePage_default_42={name:"login",meta:{title:"登录"}},_definePage_default_43={name:"reload",meta:{title:"刷新页面",navbar:{enable:!1}}},_definePage_default_44={meta:{title:"tabbar.default.user",auth:!0}},routes=[{path:"/",name:"/",component:()=>__vitePreload(()=>import("./index-BvYIJUVG.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},_mergeRouteRecord({path:"/:all(.*)",name:"/[...all]",component:()=>__vitePreload(()=>import("./_...all_-Cmya1G6w.js"),[],import.meta.url)},_definePage_default_0),{path:"/feature",children:[_mergeRouteRecord({path:"",name:"/feature/",component:()=>__vitePreload(()=>import("./index-DYpkv-NC.js"),__vite__mapDeps([4,1,2]),import.meta.url)},_definePage_default_2),{path:"component",children:[_mergeRouteRecord({path:"basic",name:"/feature/component/basic",component:()=>__vitePreload(()=>import("./basic-WFbbQgFw.js"),__vite__mapDeps([5,1,2,6]),import.meta.url)},_definePage_default_3),_mergeRouteRecord({path:"built-in",name:"/feature/component/built-in",component:()=>__vitePreload(()=>import("./built-in-CuZuocYO.js"),__vite__mapDeps([7,1,2,6,8]),import.meta.url)},_definePage_default_4),_mergeRouteRecord({path:"composite",name:"/feature/component/composite",component:()=>__vitePreload(()=>import("./composite-BsubK0y6.js"),__vite__mapDeps([9,1,2,6]),import.meta.url)},_definePage_default_5),_mergeRouteRecord({path:"pagemain-demo",name:"/feature/component/pagemain-demo",component:()=>__vitePreload(()=>import("./pagemain-demo-CyFB3cuM.js"),__vite__mapDeps([10,1,2,6,3]),import.meta.url)},_definePage_default_6),_mergeRouteRecord({path:"sparkline-demo",name:"/feature/component/sparkline-demo",component:()=>__vitePreload(()=>import("./sparkline-demo-CSoPib9O.js"),__vite__mapDeps([11,1,2,6,12]),import.meta.url)},_definePage_default_7),_mergeRouteRecord({path:"trend-demo",name:"/feature/component/trend-demo",component:()=>__vitePreload(()=>import("./trend-demo-C3tL53JI.js"),__vite__mapDeps([13,1,2,6]),import.meta.url)},_definePage_default_8)]},{path:"function",children:[_mergeRouteRecord({path:"errorLog",name:"/feature/function/errorLog",component:()=>__vitePreload(()=>import("./errorLog-CuSmrDsI.js"),__vite__mapDeps([14,1,2]),import.meta.url)},_definePage_default_9),_mergeRouteRecord({path:"font",name:"/feature/function/font",component:()=>__vitePreload(()=>import("./font-Dq7rX39F.js"),__vite__mapDeps([15,1,2,6,16]),import.meta.url)},_definePage_default_10),_mergeRouteRecord({path:"i18n",name:"/feature/function/i18n",component:()=>__vitePreload(()=>import("./i18n-DA_O80-w.js"),__vite__mapDeps([17,1,2,6]),import.meta.url)},_definePage_default_11),_mergeRouteRecord({path:"icon",name:"/feature/function/icon",component:()=>__vitePreload(()=>import("./icon-DZdN6GCF.js"),__vite__mapDeps([18,1,2,6]),import.meta.url)},_definePage_default_12),_mergeRouteRecord({path:"keepAlive",name:"/feature/function/keepAlive",component:()=>__vitePreload(()=>import("./keepAlive-CUSTFduS.js"),__vite__mapDeps([19,1,2,6]),import.meta.url)},_definePage_default_13),_mergeRouteRecord({path:"scroll",name:"/feature/function/scroll",component:()=>__vitePreload(()=>import("./scroll-C6m3hgBj.js"),__vite__mapDeps([20,1,2]),import.meta.url)},_definePage_default_14),_mergeRouteRecord({path:"scroll2",name:"/feature/function/scroll2",component:()=>__vitePreload(()=>import("./scroll2-BTV6JlN9.js"),__vite__mapDeps([21,1,2]),import.meta.url)},_definePage_default_15),_mergeRouteRecord({path:"title",name:"/feature/function/title",component:()=>__vitePreload(()=>import("./title-CqP7FtSA.js"),__vite__mapDeps([22,1,2,6]),import.meta.url)},_definePage_default_16),_mergeRouteRecord({path:"unocss",name:"/feature/function/unocss",component:()=>__vitePreload(()=>import("./unocss-D0FABVcL.js"),__vite__mapDeps([23,1,2]),import.meta.url)},_definePage_default_17),_mergeRouteRecord({path:"watermark",name:"/feature/function/watermark",component:()=>__vitePreload(()=>import("./watermark-CaopLkAC.js"),__vite__mapDeps([24,1,2]),import.meta.url)},_definePage_default_18),_mergeRouteRecord({path:"zoomable",name:"/feature/function/zoomable",component:()=>__vitePreload(()=>import("./zoomable-B52EiMgA.js"),__vite__mapDeps([25,1,2,6]),import.meta.url)},_definePage_default_19)]},{path:"navbar",children:[_mergeRouteRecord({path:"custom-area",name:"/feature/navbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-D9KoYE4K.js"),__vite__mapDeps([26,1,2]),import.meta.url)},_definePage_default_20),_mergeRouteRecord({path:"custom-navbar",name:"/feature/navbar/custom-navbar",component:()=>__vitePreload(()=>import("./custom-navbar-BfY0vt2s.js"),__vite__mapDeps([27,1,2,28]),import.meta.url)},_definePage_default_21),_mergeRouteRecord({path:"custom-title",name:"/feature/navbar/custom-title",component:()=>__vitePreload(()=>import("./custom-title-D_2cdcAs.js"),__vite__mapDeps([29,1,2]),import.meta.url)},_definePage_default_22),_mergeRouteRecord({path:"default",name:"/feature/navbar/default",component:()=>__vitePreload(()=>import("./default-BU1r84Lk.js"),__vite__mapDeps([30,1,2]),import.meta.url)},_definePage_default_23),_mergeRouteRecord({path:"mode",name:"/feature/navbar/mode",component:()=>__vitePreload(()=>import("./mode-Dhiktx0f.js"),__vite__mapDeps([31,1,2]),import.meta.url)},_definePage_default_24),{path:"none",name:"/feature/navbar/none",component:()=>__vitePreload(()=>import("./none-jtoQ-Isj.js"),__vite__mapDeps([32,1,2]),import.meta.url)},_mergeRouteRecord({path:"preset",name:"/feature/navbar/preset",component:()=>__vitePreload(()=>import("./preset-Fg5pq6Iu.js"),__vite__mapDeps([33,1,2]),import.meta.url)},_definePage_default_25),_mergeRouteRecord({path:"title-no-center",name:"/feature/navbar/title-no-center",component:()=>__vitePreload(()=>import("./title-no-center-CWQNR54Q.js"),__vite__mapDeps([34,1,2]),import.meta.url)},_definePage_default_26)]},{path:"page",children:[_mergeRouteRecord({path:"loadmore",name:"/feature/page/loadmore",component:()=>__vitePreload(()=>import("./loadmore-Du2nnSXd.js"),__vite__mapDeps([35,1,2]),import.meta.url)},_definePage_default_27),_mergeRouteRecord({path:"productlist",name:"/feature/page/productlist",component:()=>__vitePreload(()=>import("./productlist-3LgwzsxM.js"),__vite__mapDeps([36,1,2,37]),import.meta.url)},_definePage_default_28),_mergeRouteRecord({path:"schedule",name:"/feature/page/schedule",component:()=>__vitePreload(()=>import("./schedule-DFRsQdUX.js"),__vite__mapDeps([38,1,2,39]),import.meta.url)},_definePage_default_29)]},{path:"permission",children:[_mergeRouteRecord({path:"",name:"/feature/permission/",component:()=>__vitePreload(()=>import("./index-DHgij77Y.js"),__vite__mapDeps([40,1,2,6,41]),import.meta.url)},_definePage_default_30),_mergeRouteRecord({path:"test",name:"/feature/permission/test",component:()=>__vitePreload(()=>import("./test-BN4ihABe.js"),__vite__mapDeps([42,1,2,6]),import.meta.url)},_definePage_default_31)]},{path:"plugin",children:[_mergeRouteRecord({path:"animation",name:"/feature/plugin/animation",component:()=>__vitePreload(()=>import("./animation-bGlipfm8.js"),__vite__mapDeps([43,1,2,6,44]),import.meta.url)},_definePage_default_32),_mergeRouteRecord({path:"echarts",name:"/feature/plugin/echarts",component:()=>__vitePreload(()=>import("./echarts-D7CAfsfQ.js"),__vite__mapDeps([45,1,2,6]),import.meta.url)},_definePage_default_33),_mergeRouteRecord({path:"esign",name:"/feature/plugin/esign",component:()=>__vitePreload(()=>import("./esign-CwjgP7-h.js"),__vite__mapDeps([46,1,2,6,41,47]),import.meta.url)},_definePage_default_34),_mergeRouteRecord({path:"qrcode",name:"/feature/plugin/qrcode",component:()=>__vitePreload(()=>import("./qrcode-BeogybRM.js"),__vite__mapDeps([48,1,2,6]),import.meta.url)},_definePage_default_35),_mergeRouteRecord({path:"swiper",name:"/feature/plugin/swiper",component:()=>__vitePreload(()=>import("./swiper-CJ0otCO6.js"),__vite__mapDeps([49,1,2,6,50]),import.meta.url)},_definePage_default_36),_mergeRouteRecord({path:"vchart",name:"/feature/plugin/vchart",component:()=>__vitePreload(()=>import("./vchart-DbIrQOOZ.js"),__vite__mapDeps([51,1,2,6]),import.meta.url)},_definePage_default_37)]},{path:"tabbar",children:[_mergeRouteRecord({path:"badge",name:"/feature/tabbar/badge",component:()=>__vitePreload(()=>import("./badge-BdyfrbV2.js"),__vite__mapDeps([52,1,2,6]),import.meta.url)},_definePage_default_38),_mergeRouteRecord({path:"custom-area",name:"/feature/tabbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-BOQUSC5t.js"),__vite__mapDeps([53,1,2]),import.meta.url)},_definePage_default_39),_mergeRouteRecord({path:"default",name:"/feature/tabbar/default",component:()=>__vitePreload(()=>import("./default-CmtT-dUy.js"),__vite__mapDeps([54,1,2]),import.meta.url)},_definePage_default_40),_mergeRouteRecord({path:"multi",name:"/feature/tabbar/multi",component:()=>__vitePreload(()=>import("./multi-CVm3yxcv.js"),__vite__mapDeps([55,1,2]),import.meta.url)},_definePage_default_41)]}]},_mergeRouteRecord({path:"/login",name:"login",component:()=>__vitePreload(()=>import("./login-DT8IGGTc.js"),__vite__mapDeps([56,1,2,3,57]),import.meta.url)},_definePage_default_42),_mergeRouteRecord({path:"/reload",name:"reload",component:()=>__vitePreload(()=>import("./reload-Dw2qFPDr.js"),[],import.meta.url)},_definePage_default_43),{path:"/user",children:[_mergeRouteRecord({path:"",name:"/user/",component:()=>__vitePreload(()=>import("./index-BjDFbG3z.js"),__vite__mapDeps([58,1,2,6]),import.meta.url)},_definePage_default_44)]}];var nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){var oe={};oe.version="0.2.0";var ae=oe.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};oe.configure=function(_e){var Ce,Pe;for(Ce in _e)Pe=_e[Ce],Pe!==void 0&&_e.hasOwnProperty(Ce)&&(ae[Ce]=Pe);return this},oe.status=null,oe.set=function(_e){var Ce=oe.isStarted();_e=ie(_e,ae.minimum,1),oe.status=_e===1?null:_e;var Pe=oe.render(!Ce),Ae=Pe.querySelector(ae.barSelector),ke=ae.speed,Ne=ae.easing;return Pe.offsetWidth,fe(function(Oe){ae.positionUsing===""&&(ae.positionUsing=oe.getPositioningCSS()),ve(Ae,de(_e,ke,Ne)),_e===1?(ve(Pe,{transition:"none",opacity:1}),Pe.offsetWidth,setTimeout(function(){ve(Pe,{transition:"all "+ke+"ms linear",opacity:0}),setTimeout(function(){oe.remove(),Oe()},ke)},ke)):setTimeout(Oe,ke)}),this},oe.isStarted=function(){return typeof oe.status=="number"},oe.start=function(){oe.status||oe.set(0);var _e=function(){setTimeout(function(){oe.status&&(oe.trickle(),_e())},ae.trickleSpeed)};return ae.trickle&&_e(),this},oe.done=function(_e){return!_e&&!oe.status?this:oe.inc(.3+.5*Math.random()).set(1)},oe.inc=function(_e){var Ce=oe.status;return Ce?(typeof _e!="number"&&(_e=(1-Ce)*ie(Math.random()*Ce,.1,.95)),Ce=ie(Ce+_e,0,.994),oe.set(Ce)):oe.start()},oe.trickle=function(){return oe.inc(Math.random()*ae.trickleRate)},function(){var _e=0,Ce=0;oe.promise=function(Pe){return!Pe||Pe.state()==="resolved"?this:(Ce===0&&oe.start(),_e++,Ce++,Pe.always(function(){Ce--,Ce===0?(_e=0,oe.done()):oe.set((_e-Ce)/_e)}),this)}}(),oe.render=function(_e){if(oe.isRendered())return document.getElementById("nprogress");ye(document.documentElement,"nprogress-busy");var Ce=document.createElement("div");Ce.id="nprogress",Ce.innerHTML=ae.template;var Pe=Ce.querySelector(ae.barSelector),Ae=_e?"-100":se(oe.status||0),ke=document.querySelector(ae.parent),Ne;return ve(Pe,{transition:"all 0 linear",transform:"translate3d("+Ae+"%,0,0)"}),ae.showSpinner||(Ne=Ce.querySelector(ae.spinnerSelector),Ne&&Ee(Ne)),ke!=document.body&&ye(ke,"nprogress-custom-parent"),ke.appendChild(Ce),Ce},oe.remove=function(){$e(document.documentElement,"nprogress-busy"),$e(document.querySelector(ae.parent),"nprogress-custom-parent");var _e=document.getElementById("nprogress");_e&&Ee(_e)},oe.isRendered=function(){return!!document.getElementById("nprogress")},oe.getPositioningCSS=function(){var _e=document.body.style,Ce="WebkitTransform"in _e?"Webkit":"MozTransform"in _e?"Moz":"msTransform"in _e?"ms":"OTransform"in _e?"O":"";return Ce+"Perspective"in _e?"translate3d":Ce+"Transform"in _e?"translate":"margin"};function ie(_e,Ce,Pe){return _ePe?Pe:_e}function se(_e){return(-1+_e)*100}function de(_e,Ce,Pe){var Ae;return ae.positionUsing==="translate3d"?Ae={transform:"translate3d("+se(_e)+"%,0,0)"}:ae.positionUsing==="translate"?Ae={transform:"translate("+se(_e)+"%,0)"}:Ae={"margin-left":se(_e)+"%"},Ae.transition="all "+Ce+"ms "+Pe,Ae}var fe=function(){var _e=[];function Ce(){var Pe=_e.shift();Pe&&Pe(Ce)}return function(Pe){_e.push(Pe),_e.length==1&&Ce()}}(),ve=function(){var _e=["Webkit","O","Moz","ms"],Ce={};function Pe(Oe){return Oe.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Re,Be){return Be.toUpperCase()})}function Ae(Oe){var Re=document.body.style;if(Oe in Re)return Oe;for(var Be=_e.length,Me=Oe.charAt(0).toUpperCase()+Oe.slice(1),Le;Be--;)if(Le=_e[Be]+Me,Le in Re)return Le;return Oe}function ke(Oe){return Oe=Pe(Oe),Ce[Oe]||(Ce[Oe]=Ae(Oe))}function Ne(Oe,Re,Be){Re=ke(Re),Oe.style[Re]=Be}return function(Oe,Re){var Be=arguments,Me,Le;if(Be.length==2)for(Me in Re)Le=Re[Me],Le!==void 0&&Re.hasOwnProperty(Me)&&Ne(Oe,Me,Le);else Ne(Oe,Be[1],Be[2])}}();function be(_e,Ce){var Pe=typeof _e=="string"?_e:we(_e);return Pe.indexOf(" "+Ce+" ")>=0}function ye(_e,Ce){var Pe=we(_e),Ae=Pe+Ce;be(Pe,Ce)||(_e.className=Ae.substring(1))}function $e(_e,Ce){var Pe=we(_e),Ae;be(_e,Ce)&&(Ae=Pe.replace(" "+Ce+" "," "),_e.className=Ae.substring(1,Ae.length-1))}function we(_e){return(" "+(_e.className||"")+" ").replace(/\s+/gi," ")}function Ee(_e){_e&&_e.parentNode&&_e.parentNode.removeChild(_e)}return oe})})(nprogress$1);var nprogressExports=nprogress$1.exports;const nprogress=getDefaultExportFromCjs(nprogressExports);function useNProgress(ee=null,ne){const oe=ref(ee),ae=computed({set:se=>se?nprogress.start():nprogress.done(),get:()=>typeof oe.value=="number"&&oe.value<1});ne&&nprogress.configure(ne);const ie=nprogress.set;return nprogress.set=se=>(oe.value=se,ie.call(nprogress,se)),watchEffect(()=>{typeof oe.value=="number"&&isClient&&ie.call(nprogress,oe.value)}),tryOnScopeDispose(nprogress.remove),{isLoading:ae,progress:oe,start:nprogress.start,done:nprogress.done,remove:()=>{oe.value=null,nprogress.remove()}}}function setupAuth(ee){ee.beforeEach(async(ne,oe,ae)=>{const ie=useSettingsStore(),se=useUserStore();ne.meta.auth?se.isLogin?(ie.settings.app.enablePermission&&!se.isGetPermissions&&await se.getPermissions(),ae()):ae({name:"login",query:{redirect:ne.fullPath}}):ae()})}function setupProgress(ee){const{isLoading:ne}=useNProgress(null,{showSpinner:!1,parent:"#app"});ee.beforeEach((oe,ae,ie)=>{useSettingsStore().settings.app.enableProgress&&(ne.value=!0),ie()}),ee.afterEach(()=>{useSettingsStore().settings.app.enableProgress&&(ne.value=!1)})}function setupTitle(ee){ee.afterEach(ne=>{useSettingsStore().setTitle(ne.meta.title??"")})}function setupKeepAlive(ee){ee.afterEach((ne,oe)=>{var ie,se,de,fe;const ae=useKeepAliveStore();if(ne.fullPath!==oe.fullPath){if(ne.meta.cache){const ve=(se=(ie=ne.matched.at(-1))==null?void 0:ie.components)==null?void 0:se.default.name;ve?ae.add(ve):console.warn("[Fantastic-mobile] 该页面组件未设置组件名,会导致缓存失效,请检查")}if(oe.meta.cache){const ve=(fe=(de=oe.matched.at(-1))==null?void 0:de.components)==null?void 0:fe.default.name;if(ve){switch(typeof oe.meta.cache){case"string":oe.meta.cache!==ne.name&&ae.remove(ve);break;case"object":oe.meta.cache.includes(ne.name)||ae.remove(ve);break}if(oe.meta.noCache)switch(typeof oe.meta.noCache){case"string":oe.meta.noCache===ne.name&&ae.remove(ve);break;case"object":oe.meta.noCache.includes(ne.name)&&ae.remove(ve);break}}}}})}function setupOther(ee){ee.afterEach(()=>{document.documentElement.scrollTop=0})}function setupGuards(ee){setupAuth(ee),setupProgress(ee),setupTitle(ee),setupKeepAlive(ee),setupOther(ee)}function resolveRoutePath(ee,ne){return ee?path.resolve(ee,ne??""):ne??""}function flatRoutesRecursive(ee,ne=""){const oe=[];for(const ae of ee)ae.children?oe.push(...flatRoutesRecursive(ae.children,resolveRoutePath(ne,ae.path))):oe.push({...ae,path:resolveRoutePath(ne,ae.path)});return oe}const router=createRouter({history:createWebHashHistory(),routes:flatRoutesRecursive(routes)});setupGuards(router);const settingsStore=useSettingsStore(pinia),storage={local:{has:ee=>{var ne;return Object.prototype.hasOwnProperty.call(localStorage,`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},get:ee=>{var ne;return localStorage.getItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},set:(ee,ne)=>{var oe;localStorage.setItem(`${(oe=settingsStore.settings.app)==null?void 0:oe.storagePrefix}${ee}`,ne)},remove:ee=>{var ne;localStorage.removeItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},clear:()=>{localStorage.clear()}},session:{has:ee=>{var ne;return Object.prototype.hasOwnProperty.call(sessionStorage,`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},get:ee=>{var ne;return sessionStorage.getItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},set:(ee,ne)=>{var oe;sessionStorage.setItem(`${(oe=settingsStore.settings.app)==null?void 0:oe.storagePrefix}${ee}`,ne)},remove:ee=>{var ne;sessionStorage.removeItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},clear:()=>{sessionStorage.clear()}}},useUserStore=defineStore("user",()=>{const ee=ref(storage.local.get("account")??""),ne=ref(storage.local.get("token")??""),oe=ref(storage.local.get("avatar")??""),ae=ref(!1),ie=ref([]),se=computed(()=>!!ne.value);function de(be){return new Promise((ye,$e)=>{apiUser.login(be).then(we=>{storage.local.set("account",we.data.account),storage.local.set("token",we.data.token),storage.local.set("avatar",we.data.avatar),ee.value=we.data.account,ne.value=we.data.token,oe.value=we.data.avatar,ye(we)}).catch(we=>{$e(we)})})}function fe(){storage.local.remove("account"),storage.local.remove("token"),storage.local.remove("avatar"),ee.value="",ne.value="",oe.value="",router.push("/")}async function ve(){const be=await apiUser.permission();ie.value=be.data.permissions,ae.value=!0}return{account:ee,token:ne,avatar:oe,isLogin:se,isGetPermissions:ae,permissions:ie,login:de,logout:fe,getPermissions:ve}}),useWatermarkStore=defineStore("watermark",()=>{const ee=useSettingsStore(),ne=useUserStore(),oe=ref(),ae=computed({get(){return Object.assign({contentType:"multi-line-text",content:`Fantastic-mobile +当前用户:${ne.account}`,fontColor:ee.currentColorScheme==="light"?"#000":"#fff",globalAlpha:.2,width:200,height:200},oe.value)},set(de){se(de)}}),ie=new Watermark$1(ae.value);watch(ae,async()=>{ee.settings.app.enableWatermark&&await ie.check()&&ie.changeOptions(ae.value)},{deep:!0}),watch(()=>ee.settings.app.enableWatermark,de=>{de?ie.create():ie.destroy()},{immediate:!0}),watch(()=>ee.currentColorScheme,async()=>{ee.settings.app.enableWatermark&&await ie.check()&&ie.changeOptions(ae.value)});function se(de={}){oe.value=de}return{update:se}});var dayjs_min={exports:{}},hasRequiredDayjs_min;function requireDayjs_min(){return hasRequiredDayjs_min||(hasRequiredDayjs_min=1,function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){var oe=1e3,ae=6e4,ie=36e5,se="millisecond",de="second",fe="minute",ve="hour",be="day",ye="week",$e="month",we="quarter",Ee="year",_e="date",Ce="Invalid Date",Pe=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ae=/\[([^\]]+)]|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,ke={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(qe){var ze=["th","st","nd","rd"],Fe=qe%100;return"["+qe+(ze[(Fe-20)%10]||ze[Fe]||ze[0])+"]"}},Ne=function(qe,ze,Fe){var Ze=String(qe);return!Ze||Ze.length>=ze?qe:""+Array(ze+1-Ze.length).join(Fe)+qe},Oe={s:Ne,z:function(qe){var ze=-qe.utcOffset(),Fe=Math.abs(ze),Ze=Math.floor(Fe/60),ot=Fe%60;return(ze<=0?"+":"-")+Ne(Ze,2,"0")+":"+Ne(ot,2,"0")},m:function qe(ze,Fe){if(ze.date()1)return qe(Mt[0])}else{var Ue=ze.name;Be[Ue]=ze,ot=Ue}return!Ze&&ot&&(Re=ot),ot||!Ze&&Re},Ke=function(qe,ze){if(Le(qe))return qe.clone();var Fe=typeof ze=="object"?ze:{};return Fe.date=qe,Fe.args=arguments,new je(Fe)},De=Oe;De.l=Xe,De.i=Le,De.w=function(qe,ze){return Ke(qe,{locale:ze.$L,utc:ze.$u,x:ze.$x,$offset:ze.$offset})};var je=function(){function qe(Fe){this.$L=Xe(Fe.locale,null,!0),this.parse(Fe),this.$x=this.$x||Fe.x||{},this[Me]=!0}var ze=qe.prototype;return ze.parse=function(Fe){this.$d=function(Ze){var ot=Ze.date,Nt=Ze.utc;if(ot===null)return new Date(NaN);if(De.u(ot))return new Date;if(ot instanceof Date)return new Date(ot);if(typeof ot=="string"&&!/Z$/i.test(ot)){var Mt=ot.match(Pe);if(Mt){var Ue=Mt[2]-1||0,Pt=(Mt[7]||"0").substring(0,3);return Nt?new Date(Date.UTC(Mt[1],Ue,Mt[3]||1,Mt[4]||0,Mt[5]||0,Mt[6]||0,Pt)):new Date(Mt[1],Ue,Mt[3]||1,Mt[4]||0,Mt[5]||0,Mt[6]||0,Pt)}}return new Date(ot)}(Fe),this.init()},ze.init=function(){var Fe=this.$d;this.$y=Fe.getFullYear(),this.$M=Fe.getMonth(),this.$D=Fe.getDate(),this.$W=Fe.getDay(),this.$H=Fe.getHours(),this.$m=Fe.getMinutes(),this.$s=Fe.getSeconds(),this.$ms=Fe.getMilliseconds()},ze.$utils=function(){return De},ze.isValid=function(){return this.$d.toString()!==Ce},ze.isSame=function(Fe,Ze){var ot=Ke(Fe);return this.startOf(Ze)<=ot&&ot<=this.endOf(Ze)},ze.isAfter=function(Fe,Ze){return Ke(Fe)ee!==null&&typeof ee=="object",isDef=ee=>ee!=null,isFunction=ee=>typeof ee=="function",isPromise=ee=>isObject(ee)&&isFunction(ee.then)&&isFunction(ee.catch),isDate=ee=>Object.prototype.toString.call(ee)==="[object Date]"&&!Number.isNaN(ee.getTime());function isMobile(ee){return ee=ee.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(ee)||/^0[0-9-]{10,13}$/.test(ee)}const isNumeric=ee=>typeof ee=="number"||/^\d+(\.\d+)?$/.test(ee),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(ee,ne){const oe=ne.split(".");let ae=ee;return oe.forEach(ie=>{var se;ae=isObject(ae)&&(se=ae[ie])!=null?se:""}),ae}function pick(ee,ne,oe){return ne.reduce((ae,ie)=>((!oe||ee[ie]!==void 0)&&(ae[ie]=ee[ie]),ae),{})}const isSameValue=(ee,ne)=>JSON.stringify(ee)===JSON.stringify(ne),toArray=ee=>Array.isArray(ee)?ee:[ee],flat=ee=>ee.reduce((ne,oe)=>ne.concat(oe),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=ee=>({type:ee,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumberProp=ee=>({type:Number,default:ee}),makeNumericProp=ee=>({type:numericProp,default:ee}),makeStringProp=ee=>({type:String,default:ee});var inBrowser=typeof window<"u";function raf(ee){return inBrowser?requestAnimationFrame(ee):-1}function cancelRaf(ee){inBrowser&&cancelAnimationFrame(ee)}function doubleRaf(ee){raf(()=>raf(ee))}var isWindow=ee=>ee===window,makeDOMRect=(ee,ne)=>({top:0,left:0,right:ee,bottom:ne,width:ee,height:ne}),useRect=ee=>{const ne=unref(ee);if(isWindow(ne)){const oe=ne.innerWidth,ae=ne.innerHeight;return makeDOMRect(oe,ae)}return ne!=null&&ne.getBoundingClientRect?ne.getBoundingClientRect():makeDOMRect(0,0)};function useToggle(ee=!1){const ne=ref(ee);return[ne,(ae=!ne.value)=>{ne.value=ae}]}function useParent(ee){const ne=inject(ee,null);if(ne){const oe=getCurrentInstance(),{link:ae,unlink:ie,internalChildren:se}=ne;ae(oe),onUnmounted(()=>ie(oe));const de=computed(()=>se.indexOf(oe));return{parent:ne,index:de}}return{parent:null,index:ref(-1)}}function flattenVNodes(ee){const ne=[],oe=ae=>{Array.isArray(ae)&&ae.forEach(ie=>{var se;isVNode$1(ie)&&(ne.push(ie),(se=ie.component)!=null&&se.subTree&&(ne.push(ie.component.subTree),oe(ie.component.subTree.children)),ie.children&&oe(ie.children))})};return oe(ee),ne}var findVNodeIndex=(ee,ne)=>{const oe=ee.indexOf(ne);return oe===-1?ee.findIndex(ae=>ne.key!==void 0&&ne.key!==null&&ae.type===ne.type&&ae.key===ne.key):oe};function sortChildren(ee,ne,oe){const ae=flattenVNodes(ee.subTree.children);oe.sort((se,de)=>findVNodeIndex(ae,se.vnode)-findVNodeIndex(ae,de.vnode));const ie=oe.map(se=>se.proxy);ne.sort((se,de)=>{const fe=ie.indexOf(se),ve=ie.indexOf(de);return fe-ve})}function useChildren(ee){const ne=reactive([]),oe=reactive([]),ae=getCurrentInstance();return{children:ne,linkChildren:se=>{provide(ee,Object.assign({link:ve=>{ve.proxy&&(oe.push(ve),ne.push(ve.proxy),sortChildren(ae,ne,oe))},unlink:ve=>{const be=oe.indexOf(ve);ne.splice(be,1),oe.splice(be,1)},children:ne,internalChildren:oe},se))}}}var SECOND=1e3,MINUTE=60*SECOND,HOUR=60*MINUTE,DAY=24*HOUR;function parseTime(ee){const ne=Math.floor(ee/DAY),oe=Math.floor(ee%DAY/HOUR),ae=Math.floor(ee%HOUR/MINUTE),ie=Math.floor(ee%MINUTE/SECOND),se=Math.floor(ee%SECOND);return{total:ee,days:ne,hours:oe,minutes:ae,seconds:ie,milliseconds:se}}function isSameSecond(ee,ne){return Math.floor(ee/1e3)===Math.floor(ne/1e3)}function useCountDown(ee){let ne,oe,ae,ie;const se=ref(ee.time),de=computed(()=>parseTime(se.value)),fe=()=>{ae=!1,cancelRaf(ne)},ve=()=>Math.max(oe-Date.now(),0),be=Ce=>{var Pe,Ae;se.value=Ce,(Pe=ee.onChange)==null||Pe.call(ee,de.value),Ce===0&&(fe(),(Ae=ee.onFinish)==null||Ae.call(ee))},ye=()=>{ne=raf(()=>{ae&&(be(ve()),se.value>0&&ye())})},$e=()=>{ne=raf(()=>{if(ae){const Ce=ve();(!isSameSecond(Ce,se.value)||Ce===0)&&be(Ce),se.value>0&&$e()}})},we=()=>{inBrowser&&(ee.millisecond?ye():$e())},Ee=()=>{ae||(oe=Date.now()+se.value,ae=!0,we())},_e=(Ce=ee.time)=>{fe(),se.value=Ce};return onBeforeUnmount(fe),onActivated(()=>{ie&&(ae=!0,ie=!1,we())}),onDeactivated(()=>{ae&&(fe(),ie=!0)}),{start:Ee,pause:fe,reset:_e,current:de}}function onMountedOrActivated(ee){let ne;onMounted(()=>{ee(),nextTick(()=>{ne=!0})}),onActivated(()=>{ne&&ee()})}function useEventListener(ee,ne,oe={}){if(!inBrowser)return;const{target:ae=window,passive:ie=!1,capture:se=!1}=oe;let de=!1,fe;const ve=$e=>{if(de)return;const we=unref($e);we&&!fe&&(we.addEventListener(ee,ne,{capture:se,passive:ie}),fe=!0)},be=$e=>{if(de)return;const we=unref($e);we&&fe&&(we.removeEventListener(ee,ne,se),fe=!1)};onUnmounted(()=>be(ae)),onDeactivated(()=>be(ae)),onMountedOrActivated(()=>ve(ae));let ye;return isRef(ae)&&(ye=watch(ae,($e,we)=>{be(we),ve($e)})),()=>{ye==null||ye(),be(ae),de=!0}}function useClickAway(ee,ne,oe={}){if(!inBrowser)return;const{eventName:ae="click"}=oe;useEventListener(ae,se=>{(Array.isArray(ee)?ee:[ee]).every(ve=>{const be=unref(ve);return be&&!be.contains(se.target)})&&ne(se)},{target:document})}var width,height;function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser)){const ee=()=>{width.value=window.innerWidth,height.value=window.innerHeight};ee(),window.addEventListener("resize",ee,{passive:!0}),window.addEventListener("orientationchange",ee,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement$1(ee){return ee.tagName!=="HTML"&&ee.tagName!=="BODY"&&ee.nodeType===1}function getScrollParent$1(ee,ne=defaultRoot){let oe=ee;for(;oe&&oe!==ne&&isElement$1(oe);){const{overflowY:ae}=window.getComputedStyle(oe);if(overflowScrollReg.test(ae))return oe;oe=oe.parentNode}return ne}function useScrollParent(ee,ne=defaultRoot){const oe=ref();return onMounted(()=>{ee.value&&(oe.value=getScrollParent$1(ee.value,ne))}),oe}var visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){const ee=()=>{visibility.value=document.hidden?"hidden":"visible"};ee(),window.addEventListener("visibilitychange",ee)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(ee){const ne=inject(CUSTOM_FIELD_INJECTION_KEY,null);ne&&!ne.customValue.value&&(ne.customValue.value=ee,watch(ee,()=>{ne.resetValidation(),ne.validateWithTrigger("onChange")}))}function getScrollTop(ee){const ne="scrollTop"in ee?ee.scrollTop:ee.pageYOffset;return Math.max(ne,0)}function setScrollTop(ee,ne){"scrollTop"in ee?ee.scrollTop=ne:ee.scrollTo(ee.scrollX,ne)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(ee){setScrollTop(window,ee),setScrollTop(document.body,ee)}function getElementTop(ee,ne){if(ee===window)return 0;const oe=ne?getScrollTop(ne):getRootScrollTop();return useRect(ee).top+oe}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=ee=>ee.stopPropagation();function preventDefault(ee,ne){(typeof ee.cancelable!="boolean"||ee.cancelable)&&ee.preventDefault(),ne&&stopPropagation(ee)}function isHidden(ee){const ne=unref(ee);if(!ne)return!1;const oe=window.getComputedStyle(ne),ae=oe.display==="none",ie=ne.offsetParent===null&&oe.position!=="fixed";return ae||ie}const{width:windowWidth,height:windowHeight}=useWindowSize();function isContainingBlock(ee){const ne=window.getComputedStyle(ee);return ne.transform!=="none"||ne.perspective!=="none"||["transform","perspective","filter"].some(oe=>(ne.willChange||"").includes(oe))}function getContainingBlock$1(ee){let ne=ee.parentElement;for(;ne;){if(ne&&ne.tagName!=="HTML"&&ne.tagName!=="BODY"&&isContainingBlock(ne))return ne;ne=ne.parentElement}return null}function addUnit(ee){if(isDef(ee))return isNumeric(ee)?`${ee}px`:String(ee)}function getSizeStyle(ee){if(isDef(ee)){if(Array.isArray(ee))return{width:addUnit(ee[0]),height:addUnit(ee[1])};const ne=addUnit(ee);return{width:ne,height:ne}}}function getZIndexStyle(ee){const ne={};return ee!==void 0&&(ne.zIndex=+ee),ne}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const ee=document.documentElement,ne=ee.style.fontSize||window.getComputedStyle(ee).fontSize;rootFontSize=parseFloat(ne)}return rootFontSize}function convertRem(ee){return ee=ee.replace(/rem/g,""),+ee*getRootFontSize()}function convertVw(ee){return ee=ee.replace(/vw/g,""),+ee*windowWidth.value/100}function convertVh(ee){return ee=ee.replace(/vh/g,""),+ee*windowHeight.value/100}function unitToPx(ee){if(typeof ee=="number")return ee;if(inBrowser$1){if(ee.includes("rem"))return convertRem(ee);if(ee.includes("vw"))return convertVw(ee);if(ee.includes("vh"))return convertVh(ee)}return parseFloat(ee)}const camelizeRE=/-(\w)/g,camelize=ee=>ee.replace(camelizeRE,(ne,oe)=>oe.toUpperCase()),kebabCase=ee=>ee.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(ee,ne=2){let oe=ee+"";for(;oe.lengthMath.min(Math.max(ee,ne),oe);function trimExtraChar(ee,ne,oe){const ae=ee.indexOf(ne);return ae===-1?ee:ne==="-"&&ae!==0?ee.slice(0,ae):ee.slice(0,ae+1)+ee.slice(ae).replace(oe,"")}function formatNumber(ee,ne=!0,oe=!0){ne?ee=trimExtraChar(ee,".",/\./g):ee=ee.split(".")[0],oe?ee=trimExtraChar(ee,"-",/-/g):ee=ee.replace(/-/,"");const ae=ne?/[^-0-9.]/g:/[^-0-9]/g;return ee.replace(ae,"")}function addNumber(ee,ne){return Math.round((ee+ne)*1e10)/1e10}const{hasOwnProperty}=Object.prototype;function assignKey(ee,ne,oe){const ae=ne[oe];isDef(ae)&&(!hasOwnProperty.call(ee,oe)||!isObject(ae)?ee[oe]=ae:ee[oe]=deepAssign(Object(ee[oe]),ae))}function deepAssign(ee,ne){return Object.keys(ne).forEach(oe=>{assignKey(ee,ne,oe)}),ee}var stdin_default$1U={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(ee,ne)=>`${ee}年${ne}月`,rangePrompt:ee=>`最多选择 ${ee} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:ee=>`${ee}折`,condition:ee=>`满${ee}元可用`},vanCouponCell:{title:"优惠券",count:ee=>`${ee}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=ref("zh-CN"),messages=reactive({"zh-CN":stdin_default$1U}),Locale={messages(){return messages[lang.value]},use(ee,ne){lang.value=ee,this.add({[ee]:ne})},add(ee={}){deepAssign(messages,ee)}};var stdin_default$1T=Locale;function createTranslate(ee){const ne=camelize(ee)+".";return(oe,...ae)=>{const ie=stdin_default$1T.messages(),se=get(ie,ne+oe)||get(ie,oe);return isFunction(se)?se(...ae):se}}function genBem(ee,ne){return ne?typeof ne=="string"?` ${ee}--${ne}`:Array.isArray(ne)?ne.reduce((oe,ae)=>oe+genBem(ee,ae),""):Object.keys(ne).reduce((oe,ae)=>oe+(ne[ae]?genBem(ee,ae):""),""):""}function createBEM(ee){return(ne,oe)=>(ne&&typeof ne!="string"&&(oe=ne,ne=""),ne=ne?`${ee}__${ne}`:ee,`${ne}${genBem(ne,oe)}`)}function createNamespace(ee){const ne=`van-${ee}`;return[ne,createBEM(ne),createTranslate(ne)]}const BORDER="van-hairline",BORDER_TOP=`${BORDER}--top`,BORDER_LEFT=`${BORDER}--left`,BORDER_RIGHT=`${BORDER}--right`,BORDER_BOTTOM=`${BORDER}--bottom`,BORDER_SURROUND=`${BORDER}--surround`,BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),LONG_PRESS_START_TIME=500,TAP_OFFSET=5;function callInterceptor(ee,{args:ne=[],done:oe,canceled:ae,error:ie}){if(ee){const se=ee.apply(null,ne);isPromise(se)?se.then(de=>{de?oe():ae&&ae()}).catch(ie||noop):se?oe():ae&&ae()}else oe()}function withInstall(ee){return ee.install=ne=>{const{name:oe}=ee;oe&&(ne.component(oe,ee),ne.component(camelize(`-${oe}`),ee))},ee}function closest(ee,ne){return ee.reduce((oe,ae)=>Math.abs(oe-ne){oe&&ee()})}const useHeight=(ee,ne)=>{const oe=ref(),ae=()=>{oe.value=useRect(ee).height};return onMounted(()=>{if(nextTick(ae),ne)for(let ie=1;ie<=3;ie++)setTimeout(ae,100*ie)}),onPopupReopen(()=>nextTick(ae)),watch([windowWidth,windowHeight],ae),oe};function usePlaceholder(ee,ne){const oe=useHeight(ee,!0);return ae=>createVNode("div",{class:ne("placeholder"),style:{height:oe.value?`${oe.value}px`:void 0}},[ae()])}const[name$1K,bem$1F]=createNamespace("action-bar"),ACTION_BAR_KEY=Symbol(name$1K),actionBarProps={placeholder:Boolean,safeAreaInsetBottom:truthProp};var stdin_default$1S=defineComponent({name:name$1K,props:actionBarProps,setup(ee,{slots:ne}){const oe=ref(),ae=usePlaceholder(oe,bem$1F),{linkChildren:ie}=useChildren(ACTION_BAR_KEY);ie();const se=()=>{var de;return createVNode("div",{ref:oe,class:[bem$1F(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[(de=ne.default)==null?void 0:de.call(ne)])};return()=>ee.placeholder?ae(se):se()}});const ActionBar=withInstall(stdin_default$1S);function useExpose(ee){const ne=getCurrentInstance();ne&&extend(ne.proxy,ee)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:ee,url:ne,replace:oe,$router:ae}){ee&&ae?ae[oe?"replace":"push"](ee):ne&&(oe?location.replace(ne):location.href=ne)}function useRoute(){const ee=getCurrentInstance().proxy;return()=>route(ee)}const[name$1J,bem$1E]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$1R=defineComponent({name:name$1J,props:badgeProps,setup(ee,{slots:ne}){const oe=()=>{if(ne.content)return!0;const{content:fe,showZero:ve}=ee;return isDef(fe)&&fe!==""&&(ve||fe!==0&&fe!=="0")},ae=()=>{const{dot:fe,max:ve,content:be}=ee;if(!fe&&oe())return ne.content?ne.content():isDef(ve)&&isNumeric(be)&&+be>+ve?`${ve}+`:be},ie=fe=>fe.startsWith("-")?fe.replace("-",""):`-${fe}`,se=computed(()=>{const fe={background:ee.color};if(ee.offset){const[ve,be]=ee.offset,{position:ye}=ee,[$e,we]=ye.split("-");ne.default?(typeof be=="number"?fe[$e]=addUnit($e==="top"?be:-be):fe[$e]=$e==="top"?addUnit(be):ie(be),typeof ve=="number"?fe[we]=addUnit(we==="left"?ve:-ve):fe[we]=we==="left"?addUnit(ve):ie(ve)):(fe.marginTop=addUnit(be),fe.marginLeft=addUnit(ve))}return fe}),de=()=>{if(oe()||ee.dot)return createVNode("div",{class:bem$1E([ee.position,{dot:ee.dot,fixed:!!ne.default}]),style:se.value},[ae()])};return()=>{if(ne.default){const{tag:fe}=ee;return createVNode(fe,{class:bem$1E("wrapper")},{default:()=>[ne.default(),de()]})}return de()}}});const Badge=withInstall(stdin_default$1R);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=ee=>{globalZIndex=ee},[name$1I,bem$1D]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$1I),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(ee){return ee.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(ee){const ne={};return Object.keys(ee).forEach(oe=>{const ae=insertDash(kebabCase(oe));ne[`--van-${ae}`]=ee[oe]}),ne}function syncThemeVarsOnRoot(ee={},ne={}){Object.keys(ee).forEach(oe=>{ee[oe]!==ne[oe]&&document.documentElement.style.setProperty(oe,ee[oe])}),Object.keys(ne).forEach(oe=>{ee[oe]||document.documentElement.style.removeProperty(oe)})}var stdin_default$1Q=defineComponent({name:name$1I,props:configProviderProps,setup(ee,{slots:ne}){const oe=computed(()=>mapThemeVarsToCSSVars(extend({},ee.themeVars,ee.theme==="dark"?ee.themeVarsDark:ee.themeVarsLight)));if(inBrowser$1){const ae=()=>{document.documentElement.classList.add(`van-theme-${ee.theme}`)},ie=(se=ee.theme)=>{document.documentElement.classList.remove(`van-theme-${se}`)};watch(()=>ee.theme,(se,de)=>{de&&ie(de),ae()},{immediate:!0}),onActivated(ae),onDeactivated(ie),onBeforeUnmount(ie),watch(oe,(se,de)=>{ee.themeVarsScope==="global"&&syncThemeVarsOnRoot(se,de)}),watch(()=>ee.themeVarsScope,(se,de)=>{de==="global"&&syncThemeVarsOnRoot({},oe.value),se==="global"&&syncThemeVarsOnRoot(oe.value,{})}),ee.themeVarsScope==="global"&&syncThemeVarsOnRoot(oe.value,{})}return provide(CONFIG_PROVIDER_KEY,ee),watchEffect(()=>{ee.zIndex!==void 0&&setGlobalZIndex(ee.zIndex)}),()=>createVNode(ee.tag,{class:bem$1D(),style:ee.themeVarsScope==="local"?oe.value:void 0},{default:()=>{var ae;return[(ae=ne.default)==null?void 0:ae.call(ne)]}})}});const[name$1H,bem$1C]=createNamespace("icon"),isImage$1=ee=>ee==null?void 0:ee.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$1P=defineComponent({name:name$1H,props:iconProps,setup(ee,{slots:ne}){const oe=inject(CONFIG_PROVIDER_KEY,null),ae=computed(()=>ee.classPrefix||(oe==null?void 0:oe.iconPrefix)||bem$1C());return()=>{const{tag:ie,dot:se,name:de,size:fe,badge:ve,color:be}=ee,ye=isImage$1(de);return createVNode(Badge,mergeProps({dot:se,tag:ie,class:[ae.value,ye?"":`${ae.value}-${de}`],style:{color:be,fontSize:addUnit(fe)},content:ve},ee.badgeProps),{default:()=>{var $e;return[($e=ne.default)==null?void 0:$e.call(ne),ye&&createVNode("img",{class:bem$1C("image"),src:de},null)]}})}}});const Icon=withInstall(stdin_default$1P);var stdin_default$1O=Icon;const[name$1G,bem$1B]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((ee,ne)=>createVNode("i",{class:bem$1B("line",String(ne+1))},null)),CircularIcon=createVNode("svg",{class:bem$1B("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$1N=defineComponent({name:name$1G,props:loadingProps,setup(ee,{slots:ne}){const oe=computed(()=>extend({color:ee.color},getSizeStyle(ee.size))),ae=()=>{const se=ee.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$1B("spinner",ee.type),style:oe.value},[ne.icon?ne.icon():se])},ie=()=>{var se;if(ne.default)return createVNode("span",{class:bem$1B("text"),style:{fontSize:addUnit(ee.textSize),color:(se=ee.textColor)!=null?se:ee.color}},[ne.default()])};return()=>{const{type:se,vertical:de}=ee;return createVNode("div",{class:bem$1B([se,{vertical:de}]),"aria-live":"polite","aria-busy":!0},[ae(),ie()])}}});const Loading=withInstall(stdin_default$1N),[name$1F,bem$1A]=createNamespace("button"),buttonProps=extend({},routeProps,{tag:makeStringProp("button"),text:String,icon:String,type:makeStringProp("default"),size:makeStringProp("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:makeStringProp("button"),loadingSize:numericProp,loadingText:String,loadingType:String,iconPosition:makeStringProp("left")});var stdin_default$1M=defineComponent({name:name$1F,props:buttonProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),ie=()=>oe.loading?oe.loading():createVNode(Loading,{size:ee.loadingSize,type:ee.loadingType,class:bem$1A("loading")},null),se=()=>{if(ee.loading)return ie();if(oe.icon)return createVNode("div",{class:bem$1A("icon")},[oe.icon()]);if(ee.icon)return createVNode(Icon,{name:ee.icon,class:bem$1A("icon"),classPrefix:ee.iconPrefix},null)},de=()=>{let be;if(ee.loading?be=ee.loadingText:be=oe.default?oe.default():ee.text,be)return createVNode("span",{class:bem$1A("text")},[be])},fe=()=>{const{color:be,plain:ye}=ee;if(be){const $e={color:ye?be:"white"};return ye||($e.background=be),be.includes("gradient")?$e.border=0:$e.borderColor=be,$e}},ve=be=>{ee.loading?preventDefault(be):ee.disabled||(ne("click",be),ae())};return()=>{const{tag:be,type:ye,size:$e,block:we,round:Ee,plain:_e,square:Ce,loading:Pe,disabled:Ae,hairline:ke,nativeType:Ne,iconPosition:Oe}=ee,Re=[bem$1A([ye,$e,{plain:_e,block:we,round:Ee,square:Ce,loading:Pe,disabled:Ae,hairline:ke}]),{[BORDER_SURROUND]:ke}];return createVNode(be,{type:Ne,class:Re,style:fe(),disabled:Ae,onClick:ve},{default:()=>[createVNode("div",{class:bem$1A("content")},[Oe==="left"&&se(),de(),Oe==="right"&&se()])]})}}});const Button=withInstall(stdin_default$1M),[name$1E,bem$1z]=createNamespace("action-bar-button"),actionBarButtonProps=extend({},routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var stdin_default$1L=defineComponent({name:name$1E,props:actionBarButtonProps,setup(ee,{slots:ne}){const oe=useRoute(),{parent:ae,index:ie}=useParent(ACTION_BAR_KEY),se=computed(()=>{if(ae){const fe=ae.children[ie.value-1];return!(fe&&"isButton"in fe)}}),de=computed(()=>{if(ae){const fe=ae.children[ie.value+1];return!(fe&&"isButton"in fe)}});return useExpose({isButton:!0}),()=>{const{type:fe,icon:ve,text:be,color:ye,loading:$e,disabled:we}=ee;return createVNode(Button,{class:bem$1z([fe,{last:de.value,first:se.value}]),size:"large",type:fe,icon:ve,color:ye,loading:$e,disabled:we,onClick:oe},{default:()=>[ne.default?ne.default():be]})}}});const ActionBarButton=withInstall(stdin_default$1L),[name$1D,bem$1y]=createNamespace("action-bar-icon"),actionBarIconProps=extend({},routeProps,{dot:Boolean,text:String,icon:String,color:String,badge:numericProp,iconClass:unknownProp,badgeProps:Object,iconPrefix:String});var stdin_default$1K=defineComponent({name:name$1D,props:actionBarIconProps,setup(ee,{slots:ne}){const oe=useRoute();useParent(ACTION_BAR_KEY);const ae=()=>{const{dot:ie,badge:se,icon:de,color:fe,iconClass:ve,badgeProps:be,iconPrefix:ye}=ee;return ne.icon?createVNode(Badge,mergeProps({dot:ie,class:bem$1y("icon"),content:se},be),{default:ne.icon}):createVNode(Icon,{tag:"div",dot:ie,name:de,badge:se,color:fe,class:[bem$1y("icon"),ve],badgeProps:be,classPrefix:ye},null)};return()=>createVNode("div",{role:"button",class:bem$1y(),tabindex:0,onClick:oe},[ae(),ne.default?ne.default():ee.text])}});const ActionBarIcon=withInstall(stdin_default$1K),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp},popupSharedPropKeys=Object.keys(popupSharedProps);function getDirection(ee,ne){return ee>ne?"horizontal":ne>ee?"vertical":""}function useTouch(){const ee=ref(0),ne=ref(0),oe=ref(0),ae=ref(0),ie=ref(0),se=ref(0),de=ref(""),fe=ref(!0),ve=()=>de.value==="vertical",be=()=>de.value==="horizontal",ye=()=>{oe.value=0,ae.value=0,ie.value=0,se.value=0,de.value="",fe.value=!0};return{move:Ee=>{const _e=Ee.touches[0];oe.value=(_e.clientX<0?0:_e.clientX)-ee.value,ae.value=_e.clientY-ne.value,ie.value=Math.abs(oe.value),se.value=Math.abs(ae.value);const Ce=10;(!de.value||ie.valueTAP_OFFSET||se.value>TAP_OFFSET)&&(fe.value=!1)},start:Ee=>{ye(),ee.value=Ee.touches[0].clientX,ne.value=Ee.touches[0].clientY},reset:ye,startX:ee,startY:ne,deltaX:oe,deltaY:ae,offsetX:ie,offsetY:se,direction:de,isVertical:ve,isHorizontal:be,isTap:fe}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(ee,ne){const oe=useTouch(),ae="01",ie="10",se=ye=>{oe.move(ye);const $e=oe.deltaY.value>0?ie:ae,we=getScrollParent$1(ye.target,ee.value),{scrollHeight:Ee,offsetHeight:_e,scrollTop:Ce}=we;let Pe="11";Ce===0?Pe=_e>=Ee?"00":"01":Ce+_e>=Ee&&(Pe="10"),Pe!=="11"&&oe.isVertical()&&!(parseInt(Pe,2)&parseInt($e,2))&&preventDefault(ye,!0)},de=()=>{document.addEventListener("touchstart",oe.start),document.addEventListener("touchmove",se,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},fe=()=>{totalLockCount&&(document.removeEventListener("touchstart",oe.start),document.removeEventListener("touchmove",se),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},ve=()=>ne()&&de(),be=()=>ne()&&fe();onMountedOrActivated(ve),onDeactivated(be),onBeforeUnmount(be),watch(ne,ye=>{ye?de():fe()})}function useLazyRender(ee){const ne=ref(!1);return watch(ee,oe=>{oe&&(ne.value=oe)},{immediate:!0}),oe=>()=>ne.value?oe():null}const useScopeId=()=>{var ee;const{scopeId:ne}=((ee=getCurrentInstance())==null?void 0:ee.vnode)||{};return ne?{[ne]:""}:null},[name$1C,bem$1x]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$1J=defineComponent({name:name$1C,props:overlayProps,setup(ee,{slots:ne}){const oe=ref(),ae=useLazyRender(()=>ee.show||!ee.lazyRender),ie=de=>{ee.lockScroll&&preventDefault(de,!0)},se=ae(()=>{var de;const fe=extend(getZIndexStyle(ee.zIndex),ee.customStyle);return isDef(ee.duration)&&(fe.animationDuration=`${ee.duration}s`),withDirectives(createVNode("div",{ref:oe,style:fe,class:[bem$1x(),ee.className]},[(de=ne.default)==null?void 0:de.call(ne)]),[[vShow,ee.show]])});return useEventListener("touchmove",ie,{target:oe}),()=>{const de=createVNode(Transition,{name:"van-fade",appear:!0},{default:se});return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[de]}):de}}});const Overlay=withInstall(stdin_default$1J),popupProps$2=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$1B,bem$1w]=createNamespace("popup");var stdin_default$1I=defineComponent({name:name$1B,inheritAttrs:!1,props:popupProps$2,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(ee,{emit:ne,attrs:oe,slots:ae}){let ie,se;const de=ref(),fe=ref(),ve=useLazyRender(()=>ee.show||!ee.lazyRender),be=computed(()=>{const Be={zIndex:de.value};if(isDef(ee.duration)){const Me=ee.position==="center"?"animationDuration":"transitionDuration";Be[Me]=`${ee.duration}s`}return Be}),ye=()=>{ie||(ie=!0,de.value=ee.zIndex!==void 0?+ee.zIndex:useGlobalZIndex(),ne("open"))},$e=()=>{ie&&callInterceptor(ee.beforeClose,{done(){ie=!1,ne("close"),ne("update:show",!1)}})},we=Be=>{ne("clickOverlay",Be),ee.closeOnClickOverlay&&$e()},Ee=()=>{if(ee.overlay)return createVNode(Overlay,mergeProps({show:ee.show,class:ee.overlayClass,zIndex:de.value,duration:ee.duration,customStyle:ee.overlayStyle,role:ee.closeOnClickOverlay?"button":void 0,tabindex:ee.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:we}),{default:ae["overlay-content"]})},_e=Be=>{ne("clickCloseIcon",Be),$e()},Ce=()=>{if(ee.closeable)return createVNode(Icon,{role:"button",tabindex:0,name:ee.closeIcon,class:[bem$1w("close-icon",ee.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:ee.iconPrefix,onClick:_e},null)};let Pe;const Ae=()=>{Pe&&clearTimeout(Pe),Pe=setTimeout(()=>{ne("opened")})},ke=()=>ne("closed"),Ne=Be=>ne("keydown",Be),Oe=ve(()=>{var Be;const{round:Me,position:Le,safeAreaInsetTop:Xe,safeAreaInsetBottom:Ke}=ee;return withDirectives(createVNode("div",mergeProps({ref:fe,style:be.value,role:"dialog",tabindex:0,class:[bem$1w({round:Me,[Le]:Le}),{"van-safe-area-top":Xe,"van-safe-area-bottom":Ke}],onKeydown:Ne},oe,useScopeId()),[(Be=ae.default)==null?void 0:Be.call(ae),Ce()]),[[vShow,ee.show]])}),Re=()=>{const{position:Be,transition:Me,transitionAppear:Le}=ee,Xe=Be==="center"?"van-fade":`van-popup-slide-${Be}`;return createVNode(Transition,{name:Me||Xe,appear:Le,onAfterEnter:Ae,onAfterLeave:ke},{default:Oe})};return watch(()=>ee.show,Be=>{Be&&!ie&&(ye(),oe.tabindex===0&&nextTick(()=>{var Me;(Me=fe.value)==null||Me.focus()})),!Be&&ie&&(ie=!1,ne("close"))}),useExpose({popupRef:fe}),useLockScroll(fe,()=>ee.show&&ee.lockScroll),useEventListener("popstate",()=>{ee.closeOnPopstate&&($e(),se=!1)}),onMounted(()=>{ee.show&&ye()}),onActivated(()=>{se&&(ne("update:show",!0),se=!1)}),onDeactivated(()=>{ee.show&&ee.teleport&&($e(),se=!0)}),provide(POPUP_TOGGLE_KEY,()=>ee.show),()=>ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ee(),Re()]}):createVNode(Fragment,null,[Ee(),Re()])}});const Popup=withInstall(stdin_default$1I),[name$1A,bem$1v]=createNamespace("action-sheet"),actionSheetProps=extend({},popupSharedProps,{title:String,round:truthProp,actions:makeArrayProp(),closeIcon:makeStringProp("cross"),closeable:truthProp,cancelText:String,description:String,closeOnPopstate:truthProp,closeOnClickAction:Boolean,safeAreaInsetBottom:truthProp}),popupInheritKeys$2=[...popupSharedPropKeys,"round","closeOnPopstate","safeAreaInsetBottom"];var stdin_default$1H=defineComponent({name:name$1A,props:actionSheetProps,emits:["select","cancel","update:show"],setup(ee,{slots:ne,emit:oe}){const ae=$e=>oe("update:show",$e),ie=()=>{ae(!1),oe("cancel")},se=()=>{if(ee.title)return createVNode("div",{class:bem$1v("header")},[ee.title,ee.closeable&&createVNode(Icon,{name:ee.closeIcon,class:[bem$1v("close"),HAPTICS_FEEDBACK],onClick:ie},null)])},de=()=>{if(ne.cancel||ee.cancelText)return[createVNode("div",{class:bem$1v("gap")},null),createVNode("button",{type:"button",class:bem$1v("cancel"),onClick:ie},[ne.cancel?ne.cancel():ee.cancelText])]},fe=$e=>{if($e.icon)return createVNode(Icon,{class:bem$1v("item-icon"),name:$e.icon},null)},ve=($e,we)=>$e.loading?createVNode(Loading,{class:bem$1v("loading-icon")},null):ne.action?ne.action({action:$e,index:we}):[createVNode("span",{class:bem$1v("name")},[$e.name]),$e.subname&&createVNode("div",{class:bem$1v("subname")},[$e.subname])],be=($e,we)=>{const{color:Ee,loading:_e,callback:Ce,disabled:Pe,className:Ae}=$e,ke=()=>{Pe||_e||(Ce&&Ce($e),ee.closeOnClickAction&&ae(!1),nextTick(()=>oe("select",$e,we)))};return createVNode("button",{type:"button",style:{color:Ee},class:[bem$1v("item",{loading:_e,disabled:Pe}),Ae],onClick:ke},[fe($e),ve($e,we)])},ye=()=>{if(ee.description||ne.description){const $e=ne.description?ne.description():ee.description;return createVNode("div",{class:bem$1v("description")},[$e])}};return()=>createVNode(Popup,mergeProps({class:bem$1v(),position:"bottom","onUpdate:show":ae},pick(ee,popupInheritKeys$2)),{default:()=>{var $e;return[se(),ye(),createVNode("div",{class:bem$1v("content")},[ee.actions.map(be),($e=ne.default)==null?void 0:$e.call(ne)]),de()]}})}});const ActionSheet=withInstall(stdin_default$1H),[name$1z,bem$1u,t$k]=createNamespace("picker"),getFirstEnabledOption=ee=>ee.find(ne=>!ne.disabled)||ee[0];function getColumnsType(ee,ne){const oe=ee[0];if(oe){if(Array.isArray(oe))return"multiple";if(ne.children in oe)return"cascade"}return"default"}function findIndexOfEnabledOption(ee,ne){ne=clamp(ne,0,ee.length);for(let oe=ne;oe=0;oe--)if(!ee[oe].disabled)return oe;return 0}const isOptionExist=(ee,ne,oe)=>ne!==void 0&&!!ee.find(ae=>ae[oe.value]===ne);function findOptionByValue(ee,ne,oe){const ae=ee.findIndex(se=>se[oe.value]===ne),ie=findIndexOfEnabledOption(ee,ae);return ee[ie]}function formatCascadeColumns(ee,ne,oe){const ae=[];let ie={[ne.children]:ee},se=0;for(;ie&&ie[ne.children];){const de=ie[ne.children],fe=oe.value[se];if(ie=isDef(fe)?findOptionByValue(de,fe,ne):void 0,!ie&&de.length){const ve=getFirstEnabledOption(de)[ne.value];ie=findOptionByValue(de,ve,ne)}se++,ae.push(de)}return ae}function getElementTranslateY(ee){const{transform:ne}=window.getComputedStyle(ee),oe=ne.slice(7,ne.length-1).split(", ")[5];return Number(oe)}function assignDefaultFields(ee){return extend({text:"text",value:"value",children:"children"},ee)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$1y,bem$1t]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$1y);var stdin_default$1G=defineComponent({name:name$1y,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de,fe;const ve=ref(),be=ref(),ye=ref(0),$e=ref(0),we=useTouch(),Ee=()=>ee.options.length,_e=()=>ee.optionHeight*(+ee.visibleOptionNum-1)/2,Ce=Ke=>{let De=findIndexOfEnabledOption(ee.options,Ke);const je=-De*ee.optionHeight,He=()=>{De>Ee()-1&&(De=findIndexOfEnabledOption(ee.options,Ke));const qe=ee.options[De][ee.fields.value];qe!==ee.value&&ne("change",qe)};ae&&je!==ye.value?fe=He:He(),ye.value=je},Pe=()=>ee.readonly||!ee.options.length,Ae=Ke=>{ae||Pe()||(fe=null,$e.value=DEFAULT_DURATION,Ce(Ke),ne("clickOption",ee.options[Ke]))},ke=Ke=>clamp(Math.round(-Ke/ee.optionHeight),0,Ee()-1),Ne=computed(()=>ke(ye.value)),Oe=(Ke,De)=>{const je=Math.abs(Ke/De);Ke=ye.value+je/.003*(Ke<0?-1:1);const He=ke(Ke);$e.value=+ee.swipeDuration,Ce(He)},Re=()=>{ae=!1,$e.value=0,fe&&(fe(),fe=null)},Be=Ke=>{if(!Pe()){if(we.start(Ke),ae){const De=getElementTranslateY(be.value);ye.value=Math.min(0,De-_e())}$e.value=0,ie=ye.value,se=Date.now(),de=ie,fe=null}},Me=Ke=>{if(Pe())return;we.move(Ke),we.isVertical()&&(ae=!0,preventDefault(Ke,!0));const De=clamp(ie+we.deltaY.value,-(Ee()*ee.optionHeight),ee.optionHeight),je=ke(De);je!==Ne.value&&ne("scrollInto",ee.options[je]),ye.value=De;const He=Date.now();He-se>MOMENTUM_TIME&&(se=He,de=De)},Le=()=>{if(Pe())return;const Ke=ye.value-de,De=Date.now()-se;if(DeMOMENTUM_DISTANCE){Oe(Ke,De);return}const He=ke(ye.value);$e.value=DEFAULT_DURATION,Ce(He),setTimeout(()=>{ae=!1},0)},Xe=()=>{const Ke={height:`${ee.optionHeight}px`};return ee.options.map((De,je)=>{const He=De[ee.fields.text],{disabled:qe}=De,ze=De[ee.fields.value],Fe={role:"button",style:Ke,tabindex:qe?-1:0,class:[bem$1t("item",{disabled:qe,selected:ze===ee.value}),De.className],onClick:()=>Ae(je)},Ze={class:"van-ellipsis",[ee.allowHtml?"innerHTML":"textContent"]:He};return createVNode("li",Fe,[oe.option?oe.option(De,je):createVNode("div",Ze,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Re}),watchEffect(()=>{const Ke=ae?Math.floor(-ye.value/ee.optionHeight):ee.options.findIndex(He=>He[ee.fields.value]===ee.value),De=findIndexOfEnabledOption(ee.options,Ke),je=-De*ee.optionHeight;ae&&DecreateVNode("div",{ref:ve,class:bem$1t(),onTouchstartPassive:Be,onTouchend:Le,onTouchcancel:Le},[createVNode("ul",{ref:be,style:{transform:`translate3d(0, ${ye.value+_e()}px, 0)`,transitionDuration:`${$e.value}ms`,transitionProperty:$e.value?"all":"none"},class:bem$1t("wrapper"),onTransitionend:Re},[Xe()])])}});const[name$1x]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$1F=defineComponent({name:name$1x,props:pickerToolbarProps,emits:["confirm","cancel"],setup(ee,{emit:ne,slots:oe}){const ae=()=>{if(oe.title)return oe.title();if(ee.title)return createVNode("div",{class:[bem$1u("title"),"van-ellipsis"]},[ee.title])},ie=()=>ne("cancel"),se=()=>ne("confirm"),de=()=>{var ve;const be=(ve=ee.cancelButtonText)!=null?ve:t$k("cancel");if(!(!oe.cancel&&!be))return createVNode("button",{type:"button",class:[bem$1u("cancel"),HAPTICS_FEEDBACK],onClick:ie},[oe.cancel?oe.cancel():be])},fe=()=>{var ve;const be=(ve=ee.confirmButtonText)!=null?ve:t$k("confirm");if(!(!oe.confirm&&!be))return createVNode("button",{type:"button",class:[bem$1u("confirm"),HAPTICS_FEEDBACK],onClick:se},[oe.confirm?oe.confirm():be])};return()=>createVNode("div",{class:bem$1u("toolbar")},[oe.toolbar?oe.toolbar():[de(),ae(),fe()]])}});const useSyncPropRef=(ee,ne)=>{const oe=ref(ee());return watch(ee,ae=>{ae!==oe.value&&(oe.value=ae)}),watch(oe,ae=>{ae!==ee()&&ne(ae)}),oe};function scrollLeftTo(ee,ne,oe){let ae,ie=0;const se=ee.scrollLeft,de=oe===0?1:Math.round(oe*1e3/16);let fe=se;function ve(){cancelRaf(ae)}function be(){fe+=(ne-se)/de,ee.scrollLeft=fe,++iene||!de&&sene?ie=raf(ye):ae&&(ie=raf(ae))}return ye(),be}let current=0;function useId(){const ee=getCurrentInstance(),{name:ne="unknown"}=(ee==null?void 0:ee.type)||{};return`${ne}-${++current}`}function useRefs(){const ee=ref([]),ne=[];return onBeforeUpdate(()=>{ee.value=[]}),[ee,ae=>(ne[ae]||(ne[ae]=ie=>{ee.value[ae]=ie}),ne[ae])]}function useVisibilityChange(ee,ne){if(!inBrowser$1||!window.IntersectionObserver)return;const oe=new IntersectionObserver(se=>{ne(se[0].intersectionRatio>0)},{root:document.body}),ae=()=>{ee.value&&oe.observe(ee.value)},ie=()=>{ee.value&&oe.unobserve(ee.value)};onDeactivated(ie),onBeforeUnmount(ie),onMountedOrActivated(ae)}const[name$1w,bem$1s]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$1E=defineComponent({name:name$1w,props:stickyProps,emits:["scroll","change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=useScrollParent(ae),se=reactive({fixed:!1,width:0,height:0,transform:0}),de=ref(!1),fe=computed(()=>unitToPx(ee.position==="top"?ee.offsetTop:ee.offsetBottom)),ve=computed(()=>{if(de.value)return;const{fixed:we,height:Ee,width:_e}=se;if(we)return{width:`${_e}px`,height:`${Ee}px`}}),be=computed(()=>{if(!se.fixed||de.value)return;const we=extend(getZIndexStyle(ee.zIndex),{width:`${se.width}px`,height:`${se.height}px`,[ee.position]:`${fe.value}px`});return se.transform&&(we.transform=`translate3d(0, ${se.transform}px, 0)`),we}),ye=we=>ne("scroll",{scrollTop:we,isFixed:se.fixed}),$e=()=>{if(!ae.value||isHidden(ae))return;const{container:we,position:Ee}=ee,_e=useRect(ae),Ce=getScrollTop(window);if(se.width=_e.width,se.height=_e.height,Ee==="top")if(we){const Pe=useRect(we),Ae=Pe.bottom-fe.value-se.height;se.fixed=fe.value>_e.top&&Pe.bottom>0,se.transform=Ae<0?Ae:0}else se.fixed=fe.value>_e.top;else{const{clientHeight:Pe}=document.documentElement;if(we){const Ae=useRect(we),ke=Pe-Ae.top-fe.value-se.height;se.fixed=Pe-fe.value<_e.bottom&&Pe>Ae.top,se.transform=ke<0?-ke:0}else se.fixed=Pe-fe.value<_e.bottom}ye(Ce)};return watch(()=>se.fixed,we=>ne("change",we)),useEventListener("scroll",$e,{target:ie,passive:!0}),useVisibilityChange(ae,$e),watch([windowWidth,windowHeight],()=>{!ae.value||isHidden(ae)||!se.fixed||(de.value=!0,nextTick(()=>{const we=useRect(ae);se.width=we.width,se.height=we.height,de.value=!1}))}),()=>{var we;return createVNode("div",{ref:ae,style:ve.value},[createVNode("div",{class:bem$1s({fixed:se.fixed&&!de.value}),style:be.value},[(we=oe.default)==null?void 0:we.call(oe)])])}}});const Sticky=withInstall(stdin_default$1E),[name$1v,bem$1r]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$1v);var stdin_default$1D=defineComponent({name:name$1v,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let de=!1;const fe=useTouch(),{children:ve,linkChildren:be}=useChildren(SWIPE_KEY),ye=computed(()=>ve.length),$e=computed(()=>se[ee.vertical?"height":"width"]),we=computed(()=>ee.vertical?fe.deltaY.value:fe.deltaX.value),Ee=computed(()=>se.rect?(ee.vertical?se.rect.height:se.rect.width)-$e.value*ye.value:0),_e=computed(()=>$e.value?Math.ceil(Math.abs(Ee.value)/$e.value):ye.value),Ce=computed(()=>ye.value*$e.value),Pe=computed(()=>(se.active+ye.value)%ye.value),Ae=computed(()=>{const Ue=ee.vertical?"vertical":"horizontal";return fe.direction.value===Ue}),ke=computed(()=>{const Ue={transitionDuration:`${se.swiping?0:ee.duration}ms`,transform:`translate${ee.vertical?"Y":"X"}(${+se.offset.toFixed(2)}px)`};if($e.value){const Pt=ee.vertical?"height":"width",Dt=ee.vertical?"width":"height";Ue[Pt]=`${Ce.value}px`,Ue[Dt]=ee[Dt]?`${ee[Dt]}px`:""}return Ue}),Ne=Ue=>{const{active:Pt}=se;return Ue?ee.loop?clamp(Pt+Ue,-1,ye.value):clamp(Pt+Ue,0,_e.value):Pt},Oe=(Ue,Pt=0)=>{let Dt=Ue*$e.value;ee.loop||(Dt=Math.min(Dt,-Ee.value));let Ut=Pt-Dt;return ee.loop||(Ut=clamp(Ut,Ee.value,0)),Ut},Re=({pace:Ue=0,offset:Pt=0,emitChange:Dt})=>{if(ye.value<=1)return;const{active:Ut}=se,Rt=Ne(Ue),Wt=Oe(Rt,Pt);if(ee.loop){if(ve[0]&&Wt!==Ee.value){const Qe=Wt0;ve[ye.value-1].setOffset(Qe?-Ce.value:0)}}se.active=Rt,se.offset=Wt,Dt&&Rt!==Ut&&ne("change",Pe.value)},Be=()=>{se.swiping=!0,se.active<=-1?Re({pace:ye.value}):se.active>=ye.value&&Re({pace:-ye.value})},Me=()=>{Be(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:-1,emitChange:!0})})},Le=()=>{Be(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:1,emitChange:!0})})};let Xe;const Ke=()=>clearTimeout(Xe),De=()=>{Ke(),+ee.autoplay>0&&ye.value>1&&(Xe=setTimeout(()=>{Le(),De()},+ee.autoplay))},je=(Ue=+ee.initialSwipe)=>{if(!ae.value)return;const Pt=()=>{var Dt,Ut;if(!isHidden(ae)){const Rt={width:ae.value.offsetWidth,height:ae.value.offsetHeight};se.rect=Rt,se.width=+((Dt=ee.width)!=null?Dt:Rt.width),se.height=+((Ut=ee.height)!=null?Ut:Rt.height)}ye.value&&(Ue=Math.min(ye.value-1,Ue),Ue===-1&&(Ue=ye.value-1)),se.active=Ue,se.swiping=!0,se.offset=Oe(Ue),ve.forEach(Rt=>{Rt.setOffset(0)}),De()};isHidden(ae)?nextTick().then(Pt):Pt()},He=()=>je(se.active);let qe;const ze=Ue=>{!ee.touchable||Ue.touches.length>1||(fe.start(Ue),de=!1,qe=Date.now(),Ke(),Be())},Fe=Ue=>{ee.touchable&&se.swiping&&(fe.move(Ue),Ae.value&&(!ee.loop&&(se.active===0&&we.value>0||se.active===ye.value-1&&we.value<0)||(preventDefault(Ue,ee.stopPropagation),Re({offset:we.value}),de||(ne("dragStart",{index:Pe.value}),de=!0))))},Ze=()=>{if(!ee.touchable||!se.swiping)return;const Ue=Date.now()-qe,Pt=we.value/Ue;if((Math.abs(Pt)>.25||Math.abs(we.value)>$e.value/2)&&Ae.value){const Ut=ee.vertical?fe.offsetY.value:fe.offsetX.value;let Rt=0;ee.loop?Rt=Ut>0?we.value>0?-1:1:0:Rt=-Math[we.value>0?"ceil":"floor"](we.value/$e.value),Re({pace:Rt,emitChange:!0})}else we.value&&Re({pace:0});de=!1,se.swiping=!1,ne("dragEnd",{index:Pe.value}),De()},ot=(Ue,Pt={})=>{Be(),fe.reset(),doubleRaf(()=>{let Dt;ee.loop&&Ue===ye.value?Dt=se.active===0?0:Ue:Dt=Ue%ye.value,Pt.immediate?doubleRaf(()=>{se.swiping=!1}):se.swiping=!1,Re({pace:Dt-se.active,emitChange:!0})})},Nt=(Ue,Pt)=>{const Dt=Pt===Pe.value,Ut=Dt?{backgroundColor:ee.indicatorColor}:void 0;return createVNode("i",{style:Ut,class:bem$1r("indicator",{active:Dt})},null)},Mt=()=>{if(oe.indicator)return oe.indicator({active:Pe.value,total:ye.value});if(ee.showIndicators&&ye.value>1)return createVNode("div",{class:bem$1r("indicators",{vertical:ee.vertical})},[Array(ye.value).fill("").map(Nt)])};return useExpose({prev:Me,next:Le,state:se,resize:He,swipeTo:ot}),be({size:$e,props:ee,count:ye,activeIndicator:Pe}),watch(()=>ee.initialSwipe,Ue=>je(+Ue)),watch(ye,()=>je(se.active)),watch(()=>ee.autoplay,De),watch([windowWidth,windowHeight,()=>ee.width,()=>ee.height],He),watch(usePageVisibility(),Ue=>{Ue==="visible"?De():Ke()}),onMounted(je),onActivated(()=>je(se.active)),onPopupReopen(()=>je(se.active)),onDeactivated(Ke),onBeforeUnmount(Ke),useEventListener("touchmove",Fe,{target:ie}),()=>{var Ue;return createVNode("div",{ref:ae,class:bem$1r()},[createVNode("div",{ref:ie,style:ke.value,class:bem$1r("track",{vertical:ee.vertical}),onTouchstartPassive:ze,onTouchend:Ze,onTouchcancel:Ze},[(Ue=oe.default)==null?void 0:Ue.call(oe)]),Mt()])}}});const Swipe=withInstall(stdin_default$1D),[name$1u,bem$1q]=createNamespace("tabs");var stdin_default$1C=defineComponent({name:name$1u,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=fe=>ne("change",fe),se=()=>{var fe;const ve=(fe=oe.default)==null?void 0:fe.call(oe);return ee.animated||ee.swipeable?createVNode(Swipe,{ref:ae,loop:!1,class:bem$1q("track"),duration:+ee.duration*1e3,touchable:ee.swipeable,lazyRender:ee.lazyRender,showIndicators:!1,onChange:ie},{default:()=>[ve]}):ve},de=fe=>{const ve=ae.value;ve&&ve.state.active!==fe&&ve.swipeTo(fe,{immediate:!ee.inited})};return watch(()=>ee.currentIndex,de),onMounted(()=>{de(ee.currentIndex)}),useExpose({swipeRef:ae}),()=>createVNode("div",{class:bem$1q("content",{animated:ee.animated||ee.swipeable})},[se()])}});const[name$1t,bem$1p]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$1t);var stdin_default$1B=defineComponent({name:name$1t,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de,fe;const ve=ref(),be=ref(),ye=ref(),$e=ref(),we=useId(),Ee=useScrollParent(ve),[_e,Ce]=useRefs(),{children:Pe,linkChildren:Ae}=useChildren(TABS_KEY),ke=reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),Ne=computed(()=>Pe.length>+ee.swipeThreshold||!ee.ellipsis||ee.shrink),Oe=computed(()=>({borderColor:ee.color,background:ee.background})),Re=(Rt,Wt)=>{var Qe;return(Qe=Rt.name)!=null?Qe:Wt},Be=computed(()=>{const Rt=Pe[ke.currentIndex];if(Rt)return Re(Rt,ke.currentIndex)}),Me=computed(()=>unitToPx(ee.offsetTop)),Le=computed(()=>ee.sticky?Me.value+ae:0),Xe=Rt=>{const Wt=be.value,Qe=_e.value;if(!Ne.value||!Wt||!Qe||!Qe[ke.currentIndex])return;const It=Qe[ke.currentIndex].$el,Ft=It.offsetLeft-(Wt.offsetWidth-It.offsetWidth)/2;de&&de(),de=scrollLeftTo(Wt,Ft,Rt?0:+ee.duration)},Ke=()=>{const Rt=ke.inited;nextTick(()=>{const Wt=_e.value;if(!Wt||!Wt[ke.currentIndex]||ee.type!=="line"||isHidden(ve.value))return;const Qe=Wt[ke.currentIndex].$el,{lineWidth:It,lineHeight:Ft}=ee,jt=Qe.offsetLeft+Qe.offsetWidth/2,tn={width:addUnit(It),backgroundColor:ee.color,transform:`translateX(${jt}px) translateX(-50%)`};if(Rt&&(tn.transitionDuration=`${ee.duration}s`),isDef(Ft)){const Zt=addUnit(Ft);tn.height=Zt,tn.borderRadius=Zt}ke.lineStyle=tn})},De=Rt=>{const Wt=Rt=0&&Rt{const Qe=De(Rt);if(!isDef(Qe))return;const It=Pe[Qe],Ft=Re(It,Qe),jt=ke.currentIndex!==null;ke.currentIndex!==Qe&&(ke.currentIndex=Qe,Wt||Xe(),Ke()),Ft!==ee.active&&(ne("update:active",Ft),jt&&ne("change",Ft,It.title)),se&&!ee.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(ve.value)-Me.value))},He=(Rt,Wt)=>{const Qe=Pe.find((Ft,jt)=>Re(Ft,jt)===Rt),It=Qe?Pe.indexOf(Qe):0;je(It,Wt)},qe=(Rt=!1)=>{if(ee.scrollspy){const Wt=Pe[ke.currentIndex].$el;if(Wt&&Ee.value){const Qe=getElementTop(Wt,Ee.value)-Le.value;ie=!0,fe&&fe(),fe=scrollTopTo(Ee.value,Qe,Rt?0:+ee.duration,()=>{ie=!1})}}},ze=(Rt,Wt,Qe)=>{const{title:It,disabled:Ft}=Pe[Wt],jt=Re(Pe[Wt],Wt);Ft||(callInterceptor(ee.beforeChange,{args:[jt],done:()=>{je(Wt),qe()}}),route(Rt)),ne("clickTab",{name:jt,title:It,event:Qe,disabled:Ft})},Fe=Rt=>{se=Rt.isFixed,ne("scroll",Rt)},Ze=Rt=>{nextTick(()=>{He(Rt),qe(!0)})},ot=()=>{for(let Rt=0;RtLe.value)return Rt===0?0:Rt-1}return Pe.length-1},Nt=()=>{if(ee.scrollspy&&!ie){const Rt=ot();je(Rt)}},Mt=()=>{if(ee.type==="line"&&Pe.length)return createVNode("div",{class:bem$1p("line"),style:ke.lineStyle},null)},Ue=()=>{var Rt,Wt,Qe;const{type:It,border:Ft,sticky:jt}=ee,tn=[createVNode("div",{ref:jt?void 0:ye,class:[bem$1p("wrap"),{[BORDER_TOP_BOTTOM]:It==="line"&&Ft}]},[createVNode("div",{ref:be,role:"tablist",class:bem$1p("nav",[It,{shrink:ee.shrink,complete:Ne.value}]),style:Oe.value,"aria-orientation":"horizontal"},[(Rt=oe["nav-left"])==null?void 0:Rt.call(oe),Pe.map(Zt=>Zt.renderTitle(ze)),Mt(),(Wt=oe["nav-right"])==null?void 0:Wt.call(oe)])]),(Qe=oe["nav-bottom"])==null?void 0:Qe.call(oe)];return jt?createVNode("div",{ref:ye},[tn]):tn},Pt=()=>{Ke(),nextTick(()=>{var Rt,Wt;Xe(!0),(Wt=(Rt=$e.value)==null?void 0:Rt.swipeRef.value)==null||Wt.resize()})};watch(()=>[ee.color,ee.duration,ee.lineWidth,ee.lineHeight],Ke),watch(windowWidth,Pt),watch(()=>ee.active,Rt=>{Rt!==Be.value&&He(Rt)}),watch(()=>Pe.length,()=>{ke.inited&&(He(ee.active),Ke(),nextTick(()=>{Xe(!0)}))});const Dt=()=>{He(ee.active,!0),nextTick(()=>{ke.inited=!0,ye.value&&(ae=useRect(ye.value).height),Xe(!0)})},Ut=(Rt,Wt)=>ne("rendered",Rt,Wt);return useExpose({resize:Pt,scrollTo:Ze}),onActivated(Ke),onPopupReopen(Ke),onMountedOrActivated(Dt),useVisibilityChange(ve,Ke),useEventListener("scroll",Nt,{target:Ee,passive:!0}),Ae({id:we,props:ee,setLine:Ke,scrollable:Ne,onRendered:Ut,currentName:Be,setTitleRefs:Ce,scrollIntoView:Xe}),()=>createVNode("div",{ref:ve,class:bem$1p([ee.type])},[ee.showHeader?ee.sticky?createVNode(Sticky,{container:ve.value,offsetTop:Me.value,onScroll:Fe},{default:()=>[Ue()]}):Ue():null,createVNode(stdin_default$1C,{ref:$e,count:Pe.length,inited:ke.inited,animated:ee.animated,duration:ee.duration,swipeable:ee.swipeable,lazyRender:ee.lazyRender,currentIndex:ke.currentIndex,onChange:je},{default:()=>{var Rt;return[(Rt=oe.default)==null?void 0:Rt.call(oe)]}})])}});const TAB_STATUS_KEY=Symbol(),useTabStatus=()=>inject(TAB_STATUS_KEY,null),[name$1s,bem$1o]=createNamespace("tab"),TabTitle=defineComponent({name:name$1s,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(ee,{slots:ne}){const oe=computed(()=>{const ie={},{type:se,color:de,disabled:fe,isActive:ve,activeColor:be,inactiveColor:ye}=ee;de&&se==="card"&&(ie.borderColor=de,fe||(ve?ie.backgroundColor=de:ie.color=de));const we=ve?be:ye;return we&&(ie.color=we),ie}),ae=()=>{const ie=createVNode("span",{class:bem$1o("text",{ellipsis:!ee.scrollable})},[ne.title?ne.title():ee.title]);return ee.dot||isDef(ee.badge)&&ee.badge!==""?createVNode(Badge,{dot:ee.dot,content:ee.badge,showZero:ee.showZeroBadge},{default:()=>[ie]}):ie};return()=>createVNode("div",{id:ee.id,role:"tab",class:[bem$1o([ee.type,{grow:ee.scrollable&&!ee.shrink,shrink:ee.shrink,active:ee.isActive,disabled:ee.disabled}])],style:oe.value,tabindex:ee.disabled?void 0:ee.isActive?0:-1,"aria-selected":ee.isActive,"aria-disabled":ee.disabled||void 0,"aria-controls":ee.controls,"data-allow-mismatch":"attribute"},[ae()])}}),[name$1r,bem$1n]=createNamespace("swipe-item");var stdin_default$1A=defineComponent({name:name$1r,setup(ee,{slots:ne}){let oe;const ae=reactive({offset:0,inited:!1,mounted:!1}),{parent:ie,index:se}=useParent(SWIPE_KEY);if(!ie)return;const de=computed(()=>{const be={},{vertical:ye}=ie.props;return ie.size.value&&(be[ye?"height":"width"]=`${ie.size.value}px`),ae.offset&&(be.transform=`translate${ye?"Y":"X"}(${ae.offset}px)`),be}),fe=computed(()=>{const{loop:be,lazyRender:ye}=ie.props;if(!ye||oe)return!0;if(!ae.mounted)return!1;const $e=ie.activeIndicator.value,we=ie.count.value-1,Ee=$e===0&&be?we:$e-1,_e=$e===we&&be?0:$e+1;return oe=se.value===$e||se.value===Ee||se.value===_e,oe}),ve=be=>{ae.offset=be};return onMounted(()=>{nextTick(()=>{ae.mounted=!0})}),useExpose({setOffset:ve}),()=>{var be;return createVNode("div",{class:bem$1n(),style:de.value},[fe.value?(be=ne.default)==null?void 0:be.call(ne):null])}}});const SwipeItem=withInstall(stdin_default$1A),[name$1q,bem$1m]=createNamespace("tab"),tabProps=extend({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$1z=defineComponent({name:name$1q,props:tabProps,setup(ee,{slots:ne}){const oe=useId(),ae=ref(!1),ie=getCurrentInstance(),{parent:se,index:de}=useParent(TABS_KEY);if(!se)return;const fe=()=>{var _e;return(_e=ee.name)!=null?_e:de.value},ve=()=>{ae.value=!0,se.props.lazyRender&&nextTick(()=>{se.onRendered(fe(),ee.title)})},be=computed(()=>{const _e=fe()===se.currentName.value;return _e&&!ae.value&&ve(),_e}),ye=ref(""),$e=ref("");watchEffect(()=>{const{titleClass:_e,titleStyle:Ce}=ee;ye.value=_e?normalizeClass(_e):"",$e.value=Ce&&typeof Ce!="string"?stringifyStyle(normalizeStyle(Ce)):Ce});const we=_e=>createVNode(TabTitle,mergeProps({key:oe,id:`${se.id}-${de.value}`,ref:se.setTitleRefs(de.value),style:$e.value,class:ye.value,isActive:be.value,controls:oe,scrollable:se.scrollable.value,activeColor:se.props.titleActiveColor,inactiveColor:se.props.titleInactiveColor,onClick:Ce=>_e(ie.proxy,de.value,Ce)},pick(se.props,["type","color","shrink"]),pick(ee,["dot","badge","title","disabled","showZeroBadge"])),{title:ne.title}),Ee=ref(!be.value);return watch(be,_e=>{_e?Ee.value=!1:doubleRaf(()=>{Ee.value=!0})}),watch(()=>ee.title,()=>{se.setLine(),se.scrollIntoView()}),provide(TAB_STATUS_KEY,be),useExpose({id:oe,renderTitle:we}),()=>{var _e;const Ce=`${se.id}-${de.value}`,{animated:Pe,swipeable:Ae,scrollspy:ke,lazyRender:Ne}=se.props;if(!ne.default&&!Pe)return;const Oe=ke||be.value;if(Pe||Ae)return createVNode(SwipeItem,{id:oe,role:"tabpanel",class:bem$1m("panel-wrapper",{inactive:Ee.value}),tabindex:be.value?0:-1,"aria-hidden":!be.value,"aria-labelledby":Ce,"data-allow-mismatch":"attribute"},{default:()=>{var Me;return[createVNode("div",{class:bem$1m("panel")},[(Me=ne.default)==null?void 0:Me.call(ne)])]}});const Be=ae.value||ke||!Ne?(_e=ne.default)==null?void 0:_e.call(ne):null;return withDirectives(createVNode("div",{id:oe,role:"tabpanel",class:bem$1m("panel"),tabindex:Oe?0:-1,"aria-labelledby":Ce,"data-allow-mismatch":"attribute"},[Be]),[[vShow,Oe]])}}});const Tab=withInstall(stdin_default$1z),Tabs=withInstall(stdin_default$1B),[name$1p,bem$1l]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1p),pickerGroupProps=extend({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$1y=defineComponent({name:name$1p,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(ee,{emit:ne,slots:oe}){const ae=useSyncPropRef(()=>ee.activeTab,be=>ne("update:activeTab",be)),{children:ie,linkChildren:se}=useChildren(PICKER_GROUP_KEY);se();const de=()=>+ae.value{de()?ae.value=+ae.value+1:ne("confirm",ie.map(be=>be.confirm()))},ve=()=>ne("cancel");return()=>{var be,ye;let $e=(ye=(be=oe.default)==null?void 0:be.call(oe))==null?void 0:ye.filter(Ee=>Ee.type!==Comment$1).map(Ee=>Ee.type===Fragment?Ee.children:Ee);$e&&($e=flat($e));const we=de()?ee.nextStepText:ee.confirmButtonText;return createVNode("div",{class:bem$1l()},[ee.showToolbar?createVNode(stdin_default$1F,{title:ee.title,cancelButtonText:ee.cancelButtonText,confirmButtonText:we,onConfirm:fe,onCancel:ve},pick(oe,pickerToolbarSlots)):null,createVNode(Tabs,{active:ae.value,"onUpdate:active":Ee=>ae.value=Ee,class:bem$1l("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[ee.tabs.map((Ee,_e)=>createVNode(Tab,{title:Ee,titleClass:bem$1l("tab-title")},{default:()=>[$e==null?void 0:$e[_e]]}))]})])}}});const pickerSharedProps=extend({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1x=defineComponent({name:name$1z,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(ee.modelValue.slice(0)),{parent:se}=useParent(PICKER_GROUP_KEY),{children:de,linkChildren:fe}=useChildren(PICKER_KEY);fe();const ve=computed(()=>assignDefaultFields(ee.columnsFieldNames)),be=computed(()=>unitToPx(ee.optionHeight)),ye=computed(()=>getColumnsType(ee.columns,ve.value)),$e=computed(()=>{const{columns:De}=ee;switch(ye.value){case"multiple":return De;case"cascade":return formatCascadeColumns(De,ve.value,ie);default:return[De]}}),we=computed(()=>$e.value.some(De=>De.length)),Ee=computed(()=>$e.value.map((De,je)=>findOptionByValue(De,ie.value[je],ve.value))),_e=computed(()=>$e.value.map((De,je)=>De.findIndex(He=>He[ve.value.value]===ie.value[je]))),Ce=(De,je)=>{if(ie.value[De]!==je){const He=ie.value.slice(0);He[De]=je,ie.value=He}},Pe=()=>({selectedValues:ie.value.slice(0),selectedOptions:Ee.value,selectedIndexes:_e.value}),Ae=(De,je)=>{Ce(je,De),ye.value==="cascade"&&ie.value.forEach((He,qe)=>{const ze=$e.value[qe];isOptionExist(ze,He,ve.value)||Ce(qe,ze.length?ze[0][ve.value.value]:void 0)}),nextTick(()=>{ne("change",extend({columnIndex:je},Pe()))})},ke=(De,je)=>{const He={columnIndex:je,currentOption:De};ne("clickOption",extend(Pe(),He)),ne("scrollInto",He)},Ne=()=>{de.forEach(je=>je.stopMomentum());const De=Pe();return nextTick(()=>{ne("confirm",De)}),De},Oe=()=>ne("cancel",Pe()),Re=()=>$e.value.map((De,je)=>createVNode(stdin_default$1G,{value:ie.value[je],fields:ve.value,options:De,readonly:ee.readonly,allowHtml:ee.allowHtml,optionHeight:be.value,swipeDuration:ee.swipeDuration,visibleOptionNum:ee.visibleOptionNum,onChange:He=>Ae(He,je),onClickOption:He=>ke(He,je),onScrollInto:He=>{ne("scrollInto",{currentOption:He,columnIndex:je})}},{option:oe.option})),Be=De=>{if(we.value){const je={height:`${be.value}px`},He={backgroundSize:`100% ${(De-be.value)/2}px`};return[createVNode("div",{class:bem$1u("mask"),style:He},null),createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$1u("frame")],style:je},null)]}},Me=()=>{const De=be.value*+ee.visibleOptionNum,je={height:`${De}px`};return createVNode("div",{ref:ae,class:bem$1u("columns"),style:je},[Re(),Be(De)])},Le=()=>{if(ee.showToolbar&&!se)return createVNode(stdin_default$1F,mergeProps(pick(ee,pickerToolbarPropKeys),{onConfirm:Ne,onCancel:Oe}),pick(oe,pickerToolbarSlots))};watch($e,De=>{De.forEach((je,He)=>{je.length&&!isOptionExist(je,ie.value[He],ve.value)&&Ce(He,getFirstEnabledOption(je)[ve.value.value])})},{immediate:!0});let Xe;return watch(()=>ee.modelValue,De=>{!isSameValue(De,ie.value)&&!isSameValue(De,Xe)&&(ie.value=De.slice(0),Xe=De.slice(0))},{deep:!0}),watch(ie,De=>{isSameValue(De,ee.modelValue)||(Xe=De.slice(0),ne("update:modelValue",Xe))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:ae}),useExpose({confirm:Ne,getSelectedOptions:()=>Ee.value}),()=>{var De,je;return createVNode("div",{class:bem$1u()},[ee.toolbarPosition==="top"?Le():null,ee.loading?createVNode(Loading,{class:bem$1u("loading")},null):null,(De=oe["columns-top"])==null?void 0:De.call(oe),Me(),(je=oe["columns-bottom"])==null?void 0:je.call(oe),ee.toolbarPosition==="bottom"?Le():null])}}});const AREA_EMPTY_CODE="000000",INHERIT_SLOTS=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],INHERIT_PROPS=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],makeOption=(ee="",ne=AREA_EMPTY_CODE,oe=void 0)=>({text:ee,value:ne,children:oe});function formatDataForCascade({areaList:ee,columnsNum:ne,columnsPlaceholder:oe}){const{city_list:ae={},county_list:ie={},province_list:se={}}=ee,de=+ne>1,fe=+ne>2,ve=()=>{if(de)return oe.length>1?[makeOption(oe[1],AREA_EMPTY_CODE,fe?[]:void 0)]:[]},be=new Map;Object.keys(se).forEach(we=>{be.set(we.slice(0,2),makeOption(se[we],we,ve()))});const ye=new Map;if(de){const we=()=>{if(fe)return oe.length>2?[makeOption(oe[2])]:[]};Object.keys(ae).forEach(Ee=>{const _e=makeOption(ae[Ee],Ee,we());ye.set(Ee.slice(0,4),_e);const Ce=be.get(Ee.slice(0,2));Ce&&Ce.children.push(_e)})}fe&&Object.keys(ie).forEach(we=>{const Ee=ye.get(we.slice(0,4));Ee&&Ee.children.push(makeOption(ie[we],we))});const $e=Array.from(be.values());if(oe.length){const we=fe?[makeOption(oe[2])]:void 0,Ee=de?[makeOption(oe[1],AREA_EMPTY_CODE,we)]:void 0;$e.unshift(makeOption(oe[0],AREA_EMPTY_CODE,Ee))}return $e}const Picker=withInstall(stdin_default$1x),[name$1o,bem$1k]=createNamespace("area"),areaProps=extend({},pick(pickerSharedProps,INHERIT_PROPS),{modelValue:String,columnsNum:makeNumericProp(3),columnsPlaceholder:makeArrayProp(),areaList:{type:Object,default:()=>({})}});var stdin_default$1w=defineComponent({name:name$1o,props:areaProps,emits:["change","confirm","cancel","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref([]),ie=ref(),se=computed(()=>formatDataForCascade(ee)),de=(...be)=>ne("change",...be),fe=(...be)=>ne("cancel",...be),ve=(...be)=>ne("confirm",...be);return watch(ae,be=>{const ye=be.length?be[be.length-1]:"";ye&&ye!==ee.modelValue&&ne("update:modelValue",ye)},{deep:!0}),watch(()=>ee.modelValue,be=>{if(be){const ye=ae.value.length?ae.value[ae.value.length-1]:"";be!==ye&&(ae.value=[`${be.slice(0,2)}0000`,`${be.slice(0,4)}00`,be].slice(0,+ee.columnsNum))}else ae.value=[]},{immediate:!0}),useExpose({confirm:()=>{var be;return(be=ie.value)==null?void 0:be.confirm()},getSelectedOptions:()=>{var be;return((be=ie.value)==null?void 0:be.getSelectedOptions())||[]}}),()=>createVNode(Picker,mergeProps({ref:ie,modelValue:ae.value,"onUpdate:modelValue":be=>ae.value=be,class:bem$1k(),columns:se.value,onChange:de,onCancel:fe,onConfirm:ve},pick(ee,INHERIT_PROPS)),pick(oe,INHERIT_SLOTS))}});const Area=withInstall(stdin_default$1w),[name$1n,bem$1j]=createNamespace("cell"),cellSharedProps={tag:makeStringProp("div"),icon:String,size:String,title:numericProp,value:numericProp,label:numericProp,center:Boolean,isLink:Boolean,border:truthProp,iconPrefix:String,valueClass:unknownProp,labelClass:unknownProp,titleClass:unknownProp,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},cellProps=extend({},cellSharedProps,routeProps);var stdin_default$1v=defineComponent({name:name$1n,props:cellProps,setup(ee,{slots:ne}){const oe=useRoute(),ae=()=>{if(ne.label||isDef(ee.label))return createVNode("div",{class:[bem$1j("label"),ee.labelClass]},[ne.label?ne.label():ee.label])},ie=()=>{var ve;if(ne.title||isDef(ee.title)){const be=(ve=ne.title)==null?void 0:ve.call(ne);return Array.isArray(be)&&be.length===0?void 0:createVNode("div",{class:[bem$1j("title"),ee.titleClass],style:ee.titleStyle},[be||createVNode("span",null,[ee.title]),ae()])}},se=()=>{const ve=ne.value||ne.default;if(ve||isDef(ee.value))return createVNode("div",{class:[bem$1j("value"),ee.valueClass]},[ve?ve():createVNode("span",null,[ee.value])])},de=()=>{if(ne.icon)return ne.icon();if(ee.icon)return createVNode(Icon,{name:ee.icon,class:bem$1j("left-icon"),classPrefix:ee.iconPrefix},null)},fe=()=>{if(ne["right-icon"])return ne["right-icon"]();if(ee.isLink){const ve=ee.arrowDirection&&ee.arrowDirection!=="right"?`arrow-${ee.arrowDirection}`:"arrow";return createVNode(Icon,{name:ve,class:bem$1j("right-icon")},null)}};return()=>{var ve;const{tag:be,size:ye,center:$e,border:we,isLink:Ee,required:_e}=ee,Ce=(ve=ee.clickable)!=null?ve:Ee,Pe={center:$e,required:!!_e,clickable:Ce,borderless:!we};return ye&&(Pe[ye]=!!ye),createVNode(be,{class:bem$1j(Pe),role:Ce?"button":void 0,tabindex:Ce?0:void 0,onClick:oe},{default:()=>{var Ae;return[de(),ie(),se(),fe(),(Ae=ne.extra)==null?void 0:Ae.call(ne)]}})}}});const Cell=withInstall(stdin_default$1v),[name$1m,bem$1i]=createNamespace("form"),formProps={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:numericProp,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:truthProp,showErrorMessage:truthProp,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var stdin_default$1u=defineComponent({name:name$1m,props:formProps,emits:["submit","failed"],setup(ee,{emit:ne,slots:oe}){const{children:ae,linkChildren:ie}=useChildren(FORM_KEY),se=Pe=>Pe?ae.filter(Ae=>Pe.includes(Ae.name)):ae,de=Pe=>new Promise((Ae,ke)=>{const Ne=[];se(Pe).reduce((Re,Be)=>Re.then(()=>{if(!Ne.length)return Be.validate().then(Me=>{Me&&Ne.push(Me)})}),Promise.resolve()).then(()=>{Ne.length?ke(Ne):Ae()})}),fe=Pe=>new Promise((Ae,ke)=>{const Ne=se(Pe);Promise.all(Ne.map(Oe=>Oe.validate())).then(Oe=>{Oe=Oe.filter(Boolean),Oe.length?ke(Oe):Ae()})}),ve=Pe=>{const Ae=ae.find(ke=>ke.name===Pe);return Ae?new Promise((ke,Ne)=>{Ae.validate().then(Oe=>{Oe?Ne(Oe):ke()})}):Promise.reject()},be=Pe=>typeof Pe=="string"?ve(Pe):ee.validateFirst?de(Pe):fe(Pe),ye=Pe=>{typeof Pe=="string"&&(Pe=[Pe]),se(Pe).forEach(ke=>{ke.resetValidation()})},$e=()=>ae.reduce((Pe,Ae)=>(Pe[Ae.name]=Ae.getValidationStatus(),Pe),{}),we=(Pe,Ae)=>{ae.some(ke=>ke.name===Pe?(ke.$el.scrollIntoView(Ae),!0):!1)},Ee=()=>ae.reduce((Pe,Ae)=>(Ae.name!==void 0&&(Pe[Ae.name]=Ae.formValue.value),Pe),{}),_e=()=>{const Pe=Ee();be().then(()=>ne("submit",Pe)).catch(Ae=>{ne("failed",{values:Pe,errors:Ae});const{scrollToError:ke,scrollToErrorPosition:Ne}=ee;ke&&Ae[0].name&&we(Ae[0].name,Ne?{block:Ne}:void 0)})},Ce=Pe=>{preventDefault(Pe),_e()};return ie({props:ee}),useExpose({submit:_e,validate:be,getValues:Ee,scrollToField:we,resetValidation:ye,getValidationStatus:$e}),()=>{var Pe;return createVNode("form",{class:bem$1i(),onSubmit:Ce},[(Pe=oe.default)==null?void 0:Pe.call(oe)])}}});const Form=withInstall(stdin_default$1u);function isEmptyValue(ee){return Array.isArray(ee)?!ee.length:ee===0?!1:!ee}function runSyncRule(ee,ne){if(isEmptyValue(ee)){if(ne.required)return!1;if(ne.validateEmpty===!1)return!0}return!(ne.pattern&&!ne.pattern.test(String(ee)))}function runRuleValidator(ee,ne){return new Promise(oe=>{const ae=ne.validator(ee,ne);if(isPromise(ae)){ae.then(oe);return}oe(ae)})}function getRuleMessage(ee,ne){const{message:oe}=ne;return isFunction(oe)?oe(ee,ne):oe||""}function startComposing({target:ee}){ee.composing=!0}function endComposing({target:ee}){ee.composing&&(ee.composing=!1,ee.dispatchEvent(new Event("input")))}function resizeTextarea(ee,ne){const oe=getRootScrollTop();ee.style.height="auto";let ae=ee.scrollHeight;if(isObject(ne)){const{maxHeight:ie,minHeight:se}=ne;ie!==void 0&&(ae=Math.min(ae,ie)),se!==void 0&&(ae=Math.max(ae,se))}ae&&(ee.style.height=`${ae}px`,setRootScrollTop(oe))}function mapInputType(ee,ne){return ee==="number"&&(ee="text",ne??(ne="decimal")),ee==="digit"&&(ee="tel",ne??(ne="numeric")),{type:ee,inputmode:ne}}function getStringLength(ee){return[...ee].length}function cutString(ee,ne){return[...ee].slice(0,ne).join("")}const[name$1l,bem$1h]=createNamespace("field"),fieldSharedProps={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:numericProp,max:Number,min:Number,formatter:Function,clearIcon:makeStringProp("clear"),modelValue:makeNumericProp(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:makeStringProp("focus"),formatTrigger:makeStringProp("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},fieldProps=extend({},cellSharedProps,fieldSharedProps,{rows:numericProp,type:makeStringProp("text"),rules:Array,autosize:[Boolean,Object],labelWidth:numericProp,labelClass:unknownProp,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var stdin_default$1t=defineComponent({name:name$1l,props:fieldProps,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=useId(),ie=reactive({status:"unvalidated",focused:!1,validateMessage:""}),se=ref(),de=ref(),fe=ref(),{parent:ve}=useParent(FORM_KEY),be=()=>{var Qe;return String((Qe=ee.modelValue)!=null?Qe:"")},ye=Qe=>{if(isDef(ee[Qe]))return ee[Qe];if(ve&&isDef(ve.props[Qe]))return ve.props[Qe]},$e=computed(()=>{const Qe=ye("readonly");if(ee.clearable&&!Qe){const It=be()!=="",Ft=ee.clearTrigger==="always"||ee.clearTrigger==="focus"&&ie.focused;return It&&Ft}return!1}),we=computed(()=>fe.value&&oe.input?fe.value():ee.modelValue),Ee=computed(()=>{var Qe;const It=ye("required");return It==="auto"?(Qe=ee.rules)==null?void 0:Qe.some(Ft=>Ft.required):It}),_e=Qe=>Qe.reduce((It,Ft)=>It.then(()=>{if(ie.status==="failed")return;let{value:jt}=we;if(Ft.formatter&&(jt=Ft.formatter(jt,Ft)),!runSyncRule(jt,Ft)){ie.status="failed",ie.validateMessage=getRuleMessage(jt,Ft);return}if(Ft.validator)return isEmptyValue(jt)&&Ft.validateEmpty===!1?void 0:runRuleValidator(jt,Ft).then(tn=>{tn&&typeof tn=="string"?(ie.status="failed",ie.validateMessage=tn):tn===!1&&(ie.status="failed",ie.validateMessage=getRuleMessage(jt,Ft))})}),Promise.resolve()),Ce=()=>{ie.status="unvalidated",ie.validateMessage=""},Pe=()=>ne("endValidate",{status:ie.status,message:ie.validateMessage}),Ae=(Qe=ee.rules)=>new Promise(It=>{Ce(),Qe?(ne("startValidate"),_e(Qe).then(()=>{ie.status==="failed"?(It({name:ee.name,message:ie.validateMessage}),Pe()):(ie.status="passed",It(),Pe())})):It()}),ke=Qe=>{if(ve&&ee.rules){const{validateTrigger:It}=ve.props,Ft=toArray(It).includes(Qe),jt=ee.rules.filter(tn=>tn.trigger?toArray(tn.trigger).includes(Qe):Ft);jt.length&&Ae(jt)}},Ne=Qe=>{var It;const{maxlength:Ft}=ee;if(isDef(Ft)&&getStringLength(Qe)>+Ft){const jt=be();if(jt&&getStringLength(jt)===+Ft)return jt;const tn=(It=se.value)==null?void 0:It.selectionEnd;if(ie.focused&&tn){const Zt=[...Qe],nt=Zt.length-+Ft;return Zt.splice(tn-nt,nt),Zt.join("")}return cutString(Qe,+Ft)}return Qe},Oe=(Qe,It="onChange")=>{var Ft,jt;const tn=Qe;Qe=Ne(Qe);const Zt=getStringLength(tn)-getStringLength(Qe);if(ee.type==="number"||ee.type==="digit"){const Et=ee.type==="number";Qe=formatNumber(Qe,Et,Et),It==="onBlur"&&Qe!==""&&(ee.min!==void 0||ee.max!==void 0)&&(Qe=clamp(+Qe,(Ft=ee.min)!=null?Ft:-1/0,(jt=ee.max)!=null?jt:1/0).toString())}let nt=0;if(ee.formatter&&It===ee.formatTrigger){const{formatter:Et,maxlength:Bt}=ee;if(Qe=Et(Qe),isDef(Bt)&&getStringLength(Qe)>+Bt&&(Qe=cutString(Qe,+Bt)),se.value&&ie.focused){const{selectionEnd:Xt}=se.value,Yt=cutString(tn,Xt);nt=getStringLength(Et(Yt))-getStringLength(Yt)}}if(se.value&&se.value.value!==Qe)if(ie.focused){let{selectionStart:Et,selectionEnd:Bt}=se.value;if(se.value.value=Qe,isDef(Et)&&isDef(Bt)){const Xt=getStringLength(Qe);Zt?(Et-=Zt,Bt-=Zt):nt&&(Et+=nt,Bt+=nt),se.value.setSelectionRange(Math.min(Et,Xt),Math.min(Bt,Xt))}}else se.value.value=Qe;Qe!==ee.modelValue&&ne("update:modelValue",Qe)},Re=Qe=>{Qe.target.composing||Oe(Qe.target.value)},Be=()=>{var Qe;return(Qe=se.value)==null?void 0:Qe.blur()},Me=()=>{var Qe;return(Qe=se.value)==null?void 0:Qe.focus()},Le=()=>{const Qe=se.value;ee.type==="textarea"&&ee.autosize&&Qe&&resizeTextarea(Qe,ee.autosize)},Xe=Qe=>{ie.focused=!0,ne("focus",Qe),nextTick(Le),ye("readonly")&&Be()},Ke=Qe=>{ie.focused=!1,Oe(be(),"onBlur"),ne("blur",Qe),!ye("readonly")&&(ke("onBlur"),nextTick(Le),resetScroll())},De=Qe=>ne("clickInput",Qe),je=Qe=>ne("clickLeftIcon",Qe),He=Qe=>ne("clickRightIcon",Qe),qe=Qe=>{preventDefault(Qe),ne("update:modelValue",""),ne("clear",Qe)},ze=computed(()=>{if(typeof ee.error=="boolean")return ee.error;if(ve&&ve.props.showError&&ie.status==="failed")return!0}),Fe=computed(()=>{const Qe=ye("labelWidth"),It=ye("labelAlign");if(Qe&&It!=="top")return{width:addUnit(Qe)}}),Ze=Qe=>{Qe.keyCode===13&&(!(ve&&ve.props.submitOnEnter)&&ee.type!=="textarea"&&preventDefault(Qe),ee.type==="search"&&Be()),ne("keypress",Qe)},ot=()=>ee.id||`${ae}-input`,Nt=()=>ie.status,Mt=()=>{const Qe=bem$1h("control",[ye("inputAlign"),{error:ze.value,custom:!!oe.input,"min-height":ee.type==="textarea"&&!ee.autosize}]);if(oe.input)return createVNode("div",{class:Qe,onClick:De},[oe.input()]);const It={id:ot(),ref:se,name:ee.name,rows:ee.rows!==void 0?+ee.rows:void 0,class:Qe,disabled:ye("disabled"),readonly:ye("readonly"),autofocus:ee.autofocus,placeholder:ee.placeholder,autocomplete:ee.autocomplete,autocapitalize:ee.autocapitalize,autocorrect:ee.autocorrect,enterkeyhint:ee.enterkeyhint,spellcheck:ee.spellcheck,"aria-labelledby":ee.label?`${ae}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:Ke,onFocus:Xe,onInput:Re,onClick:De,onChange:endComposing,onKeypress:Ze,onCompositionend:endComposing,onCompositionstart:startComposing};return ee.type==="textarea"?createVNode("textarea",mergeProps(It,{inputmode:ee.inputmode}),null):createVNode("input",mergeProps(mapInputType(ee.type,ee.inputmode),It),null)},Ue=()=>{const Qe=oe["left-icon"];if(ee.leftIcon||Qe)return createVNode("div",{class:bem$1h("left-icon"),onClick:je},[Qe?Qe():createVNode(Icon,{name:ee.leftIcon,classPrefix:ee.iconPrefix},null)])},Pt=()=>{const Qe=oe["right-icon"];if(ee.rightIcon||Qe)return createVNode("div",{class:bem$1h("right-icon"),onClick:He},[Qe?Qe():createVNode(Icon,{name:ee.rightIcon,classPrefix:ee.iconPrefix},null)])},Dt=()=>{if(ee.showWordLimit&&ee.maxlength){const Qe=getStringLength(be());return createVNode("div",{class:bem$1h("word-limit")},[createVNode("span",{class:bem$1h("word-num")},[Qe]),createTextVNode("/"),ee.maxlength])}},Ut=()=>{if(ve&&ve.props.showErrorMessage===!1)return;const Qe=ee.errorMessage||ie.validateMessage;if(Qe){const It=oe["error-message"],Ft=ye("errorMessageAlign");return createVNode("div",{class:bem$1h("error-message",Ft)},[It?It({message:Qe}):Qe])}},Rt=()=>{const Qe=ye("labelWidth"),It=ye("labelAlign"),Ft=ye("colon")?":":"";if(oe.label)return[oe.label(),Ft];if(ee.label)return createVNode("label",{id:`${ae}-label`,for:oe.input?void 0:ot(),"data-allow-mismatch":"attribute",onClick:jt=>{preventDefault(jt),Me()},style:It==="top"&&Qe?{width:addUnit(Qe)}:void 0},[ee.label+Ft])},Wt=()=>[createVNode("div",{class:bem$1h("body")},[Mt(),$e.value&&createVNode(Icon,{ref:de,name:ee.clearIcon,class:bem$1h("clear")},null),Pt(),oe.button&&createVNode("div",{class:bem$1h("button")},[oe.button()])]),Dt(),Ut()];return useExpose({blur:Be,focus:Me,validate:Ae,formValue:we,resetValidation:Ce,getValidationStatus:Nt}),provide(CUSTOM_FIELD_INJECTION_KEY,{customValue:fe,resetValidation:Ce,validateWithTrigger:ke}),watch(()=>ee.modelValue,()=>{Oe(be()),Ce(),ke("onChange"),nextTick(Le)}),onMounted(()=>{Oe(be(),ee.formatTrigger),nextTick(Le)}),useEventListener("touchstart",qe,{target:computed(()=>{var Qe;return(Qe=de.value)==null?void 0:Qe.$el})}),()=>{const Qe=ye("disabled"),It=ye("labelAlign"),Ft=Ue(),jt=()=>{const tn=Rt();return It==="top"?[Ft,tn].filter(Boolean):tn||[]};return createVNode(Cell,{size:ee.size,class:bem$1h({error:ze.value,disabled:Qe,[`label-${It}`]:It}),center:ee.center,border:ee.border,isLink:ee.isLink,clickable:ee.clickable,titleStyle:Fe.value,valueClass:bem$1h("value"),titleClass:[bem$1h("label",[It,{required:Ee.value}]),ee.labelClass],arrowDirection:ee.arrowDirection},{icon:Ft&&It!=="top"?()=>Ft:null,title:jt,value:Wt,extra:oe.extra})}}});const Field=withInstall(stdin_default$1t);let lockCount=0;function lockClick(ee){ee?(lockCount||document.body.classList.add("van-toast--unclickable"),lockCount++):lockCount&&(lockCount--,lockCount||document.body.classList.remove("van-toast--unclickable"))}const[name$1k,bem$1g]=createNamespace("toast"),popupInheritProps$1=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],toastProps={icon:String,show:Boolean,type:makeStringProp("text"),overlay:Boolean,message:numericProp,iconSize:numericProp,duration:makeNumberProp(2e3),position:makeStringProp("middle"),teleport:[String,Object],wordBreak:String,className:unknownProp,iconPrefix:String,transition:makeStringProp("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:numericProp};var stdin_default$1s=defineComponent({name:name$1k,props:toastProps,emits:["update:show"],setup(ee,{emit:ne,slots:oe}){let ae,ie=!1;const se=()=>{const $e=ee.show&&ee.forbidClick;ie!==$e&&(ie=$e,lockClick(ie))},de=$e=>ne("update:show",$e),fe=()=>{ee.closeOnClick&&de(!1)},ve=()=>clearTimeout(ae),be=()=>{const{icon:$e,type:we,iconSize:Ee,iconPrefix:_e,loadingType:Ce}=ee;if($e||we==="success"||we==="fail")return createVNode(Icon,{name:$e||we,size:Ee,class:bem$1g("icon"),classPrefix:_e},null);if(we==="loading")return createVNode(Loading,{class:bem$1g("loading"),size:Ee,type:Ce},null)},ye=()=>{const{type:$e,message:we}=ee;if(oe.message)return createVNode("div",{class:bem$1g("text")},[oe.message()]);if(isDef(we)&&we!=="")return $e==="html"?createVNode("div",{key:0,class:bem$1g("text"),innerHTML:String(we)},null):createVNode("div",{class:bem$1g("text")},[we])};return watch(()=>[ee.show,ee.forbidClick],se),watch(()=>[ee.show,ee.type,ee.message,ee.duration],()=>{ve(),ee.show&&ee.duration>0&&(ae=setTimeout(()=>{de(!1)},ee.duration))}),onMounted(se),onUnmounted(se),()=>createVNode(Popup,mergeProps({class:[bem$1g([ee.position,ee.wordBreak==="normal"?"break-normal":ee.wordBreak,{[ee.type]:!ee.icon}]),ee.className],lockScroll:!1,onClick:fe,onClosed:ve,"onUpdate:show":de},pick(ee,popupInheritProps$1)),{default:()=>[be(),ye()]})}});function usePopupState(){const ee=reactive({show:!1}),ne=ie=>{ee.show=ie},oe=ie=>{extend(ee,ie,{transitionAppear:!0}),ne(!0)},ae=()=>ne(!1);return useExpose({open:oe,close:ae,toggle:ne}),{open:oe,close:ae,state:ee,toggle:ne}}function mountComponent(ee){const ne=createApp(ee),oe=document.createElement("div");return document.body.appendChild(oe),{instance:ne.mount(oe),unmount(){ne.unmount(),document.body.removeChild(oe)}}}const defaultOptions={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let queue=[],allowMultiple=!1,currentOptions=extend({},defaultOptions);const defaultOptionsMap=new Map;function parseOptions(ee){return isObject(ee)?ee:{message:ee}}function createInstance(){const{instance:ee,unmount:ne}=mountComponent({setup(){const oe=ref(""),{open:ae,state:ie,close:se,toggle:de}=usePopupState(),fe=()=>{},ve=()=>createVNode(stdin_default$1s,mergeProps(ie,{onClosed:fe,"onUpdate:show":de}),null);return watch(oe,be=>{ie.message=be}),getCurrentInstance().render=ve,{open:ae,close:se,message:oe}}});return ee}function getInstance(){if(!queue.length||allowMultiple){const ee=createInstance();queue.push(ee)}return queue[queue.length-1]}function showToast(ee={}){if(!inBrowser$1)return{};const ne=getInstance(),oe=parseOptions(ee);return ne.open(extend({},currentOptions,defaultOptionsMap.get(oe.type||currentOptions.type),oe)),ne}const Toast=withInstall(stdin_default$1s),[name$1j,bem$1f]=createNamespace("switch"),switchProps={size:numericProp,loading:Boolean,disabled:Boolean,modelValue:unknownProp,activeColor:String,inactiveColor:String,activeValue:{type:unknownProp,default:!0},inactiveValue:{type:unknownProp,default:!1}};var stdin_default$1r=defineComponent({name:name$1j,props:switchProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=()=>ee.modelValue===ee.activeValue,ie=()=>{if(!ee.disabled&&!ee.loading){const de=ae()?ee.inactiveValue:ee.activeValue;ne("update:modelValue",de),ne("change",de)}},se=()=>{if(ee.loading){const de=ae()?ee.activeColor:ee.inactiveColor;return createVNode(Loading,{class:bem$1f("loading"),color:de},null)}if(oe.node)return oe.node()};return useCustomFieldValue(()=>ee.modelValue),()=>{var de;const{size:fe,loading:ve,disabled:be,activeColor:ye,inactiveColor:$e}=ee,we=ae(),Ee={fontSize:addUnit(fe),backgroundColor:we?ye:$e};return createVNode("div",{role:"switch",class:bem$1f({on:we,loading:ve,disabled:be}),style:Ee,tabindex:be?void 0:0,"aria-checked":we,onClick:ie},[createVNode("div",{class:bem$1f("node")},[se()]),(de=oe.background)==null?void 0:de.call(oe)])}}});const Switch=withInstall(stdin_default$1r),[name$1i,bem$1e]=createNamespace("address-edit-detail"),t$j=createNamespace("address-edit")[2];var stdin_default$1q=defineComponent({name:name$1i,props:{show:Boolean,rows:numericProp,value:String,rules:Array,focused:Boolean,maxlength:numericProp,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(ee,{emit:ne}){const oe=ref(),ae=()=>ee.focused&&ee.searchResult&&ee.showSearchResult,ie=be=>{ne("selectSearch",be),ne("input",`${be.address||""} ${be.name||""}`.trim())},se=()=>{if(!ae())return;const{searchResult:be}=ee;return be.map(ye=>createVNode(Cell,{clickable:!0,key:(ye.name||"")+(ye.address||""),icon:"location-o",title:ye.name,label:ye.address,class:bem$1e("search-item"),border:!1,onClick:()=>ie(ye)},null))},de=be=>ne("blur",be),fe=be=>ne("focus",be),ve=be=>ne("input",be);return()=>{if(ee.show)return createVNode(Fragment,null,[createVNode(Field,{autosize:!0,clearable:!0,ref:oe,class:bem$1e(),rows:ee.rows,type:"textarea",rules:ee.rules,label:t$j("addressDetail"),border:!ae(),maxlength:ee.maxlength,modelValue:ee.value,placeholder:t$j("addressDetail"),onBlur:de,onFocus:fe,"onUpdate:modelValue":ve},null),se()])}}});const[name$1h,bem$1d,t$i]=createNamespace("address-edit"),DEFAULT_DATA={name:"",tel:"",city:"",county:"",country:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},addressEditProps={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:truthProp,showDetail:truthProp,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:numericProp,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:makeNumericProp(1),detailMaxlength:makeNumericProp(200),areaColumnsPlaceholder:makeArrayProp(),addressInfo:{type:Object,default:()=>extend({},DEFAULT_DATA)},telValidator:{type:Function,default:isMobile}};var stdin_default$1p=defineComponent({name:name$1h,props:addressEditProps,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=reactive({}),se=ref(!1),de=ref(!1),fe=computed(()=>isObject(ee.areaList)&&Object.keys(ee.areaList).length),ve=computed(()=>{const{province:Be,city:Me,county:Le,areaCode:Xe}=ie;if(Xe){const Ke=[Be,Me,Le];return Be&&Be===Me&&Ke.splice(1,1),Ke.filter(Boolean).join("/")}return""}),be=computed(()=>{var Be;return((Be=ee.searchResult)==null?void 0:Be.length)&&de.value}),ye=Be=>{de.value=Be==="addressDetail",ne("focus",Be)},$e=(Be,Me)=>{ne("change",{key:Be,value:Me})},we=computed(()=>{const{validator:Be,telValidator:Me}=ee,Le=(Xe,Ke)=>({validator:De=>{if(Be){const je=Be(Xe,De);if(je)return je}return De?!0:Ke}});return{name:[Le("name",t$i("nameEmpty"))],tel:[Le("tel",t$i("telInvalid")),{validator:Me,message:t$i("telInvalid")}],areaCode:[Le("areaCode",t$i("areaEmpty"))],addressDetail:[Le("addressDetail",t$i("addressEmpty"))]}}),Ee=()=>ne("save",ie),_e=Be=>{ie.addressDetail=Be,ne("changeDetail",Be)},Ce=Be=>{ie.province=Be[0].text,ie.city=Be[1].text,ie.county=Be[2].text},Pe=({selectedValues:Be,selectedOptions:Me})=>{Be.some(Le=>Le===AREA_EMPTY_CODE)?showToast(t$i("areaEmpty")):(se.value=!1,Ce(Me),ne("changeArea",Me))},Ae=()=>ne("delete",ie),ke=Be=>{ie.areaCode=Be||""},Ne=()=>{setTimeout(()=>{de.value=!1})},Oe=Be=>{ie.addressDetail=Be},Re=()=>{if(ee.showSetDefault){const Be={"right-icon":()=>createVNode(Switch,{modelValue:ie.isDefault,"onUpdate:modelValue":Me=>ie.isDefault=Me,onChange:Me=>ne("changeDefault",Me)},null)};return withDirectives(createVNode(Cell,{center:!0,border:!1,title:t$i("defaultAddress"),class:bem$1d("default")},Be),[[vShow,!be.value]])}};return useExpose({setAreaCode:ke,setAddressDetail:Oe}),watch(()=>ee.addressInfo,Be=>{extend(ie,DEFAULT_DATA,Be),nextTick(()=>{var Me;const Le=(Me=ae.value)==null?void 0:Me.getSelectedOptions();Le&&Le.every(Xe=>Xe&&Xe.value!==AREA_EMPTY_CODE)&&Ce(Le)})},{deep:!0,immediate:!0}),()=>{const{disableArea:Be}=ee;return createVNode(Form,{class:bem$1d(),onSubmit:Ee},{default:()=>{var Me;return[createVNode("div",{class:bem$1d("fields")},[createVNode(Field,{modelValue:ie.name,"onUpdate:modelValue":[Le=>ie.name=Le,Le=>$e("name",Le)],clearable:!0,label:t$i("name"),rules:we.value.name,placeholder:t$i("name"),onFocus:()=>ye("name")},null),createVNode(Field,{modelValue:ie.tel,"onUpdate:modelValue":[Le=>ie.tel=Le,Le=>$e("tel",Le)],clearable:!0,type:"tel",label:t$i("tel"),rules:we.value.tel,maxlength:ee.telMaxlength,placeholder:t$i("tel"),onFocus:()=>ye("tel")},null),withDirectives(createVNode(Field,{readonly:!0,label:t$i("area"),"is-link":!Be,modelValue:ve.value,rules:ee.showArea?we.value.areaCode:void 0,placeholder:ee.areaPlaceholder||t$i("area"),onFocus:()=>ye("areaCode"),onClick:()=>{ne("clickArea"),se.value=!Be}},null),[[vShow,ee.showArea]]),createVNode(stdin_default$1q,{show:ee.showDetail,rows:ee.detailRows,rules:we.value.addressDetail,value:ie.addressDetail,focused:de.value,maxlength:ee.detailMaxlength,searchResult:ee.searchResult,showSearchResult:ee.showSearchResult,onBlur:Ne,onFocus:()=>ye("addressDetail"),onInput:_e,onSelectSearch:Le=>ne("selectSearch",Le)},null),(Me=oe.default)==null?void 0:Me.call(oe)]),Re(),withDirectives(createVNode("div",{class:bem$1d("buttons")},[createVNode(Button,{block:!0,round:!0,type:"primary",text:ee.saveButtonText||t$i("save"),class:bem$1d("button"),loading:ee.isSaving,nativeType:"submit"},null),ee.showDelete&&createVNode(Button,{block:!0,round:!0,class:bem$1d("button"),loading:ee.isDeleting,text:ee.deleteButtonText||t$i("delete"),onClick:Ae},null)]),[[vShow,!be.value]]),createVNode(Popup,{show:se.value,"onUpdate:show":Le=>se.value=Le,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[createVNode(Area,{modelValue:ie.areaCode,"onUpdate:modelValue":Le=>ie.areaCode=Le,ref:ae,loading:!fe.value,areaList:ee.areaList,columnsPlaceholder:ee.areaColumnsPlaceholder,onConfirm:Pe,onCancel:()=>{se.value=!1}},null)]})]}})}}});const AddressEdit=withInstall(stdin_default$1p),[name$1g,bem$1c]=createNamespace("radio-group"),radioGroupProps={shape:String,disabled:Boolean,iconSize:numericProp,direction:String,modelValue:unknownProp,checkedColor:String},RADIO_KEY=Symbol(name$1g);var stdin_default$1o=defineComponent({name:name$1g,props:radioGroupProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(RADIO_KEY),ie=se=>ne("update:modelValue",se);return watch(()=>ee.modelValue,se=>ne("change",se)),ae({props:ee,updateValue:ie}),useCustomFieldValue(()=>ee.modelValue),()=>{var se;return createVNode("div",{class:bem$1c([ee.direction]),role:"radiogroup"},[(se=oe.default)==null?void 0:se.call(oe)])}}});const RadioGroup=withInstall(stdin_default$1o),[name$1f,bem$1b]=createNamespace("checkbox-group"),checkboxGroupProps={max:numericProp,shape:makeStringProp("round"),disabled:Boolean,iconSize:numericProp,direction:String,modelValue:makeArrayProp(),checkedColor:String},CHECKBOX_GROUP_KEY=Symbol(name$1f);var stdin_default$1n=defineComponent({name:name$1f,props:checkboxGroupProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{children:ae,linkChildren:ie}=useChildren(CHECKBOX_GROUP_KEY),se=fe=>ne("update:modelValue",fe),de=(fe={})=>{typeof fe=="boolean"&&(fe={checked:fe});const{checked:ve,skipDisabled:be}=fe,$e=ae.filter(we=>we.props.bindGroup?we.props.disabled&&be?we.checked.value:ve??!we.checked.value:!1).map(we=>we.name);se($e)};return watch(()=>ee.modelValue,fe=>ne("change",fe)),useExpose({toggleAll:de}),useCustomFieldValue(()=>ee.modelValue),ie({props:ee,updateValue:se}),()=>{var fe;return createVNode("div",{class:bem$1b([ee.direction])},[(fe=oe.default)==null?void 0:fe.call(oe)])}}});const CheckboxGroup=withInstall(stdin_default$1n),[name$1e,bem$1a]=createNamespace("tag"),tagProps={size:String,mark:Boolean,show:truthProp,type:makeStringProp("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var stdin_default$1m=defineComponent({name:name$1e,props:tagProps,emits:["close"],setup(ee,{slots:ne,emit:oe}){const ae=de=>{de.stopPropagation(),oe("close",de)},ie=()=>ee.plain?{color:ee.textColor||ee.color,borderColor:ee.color}:{color:ee.textColor,background:ee.color},se=()=>{var de;const{type:fe,mark:ve,plain:be,round:ye,size:$e,closeable:we}=ee,Ee={mark:ve,plain:be,round:ye};$e&&(Ee[$e]=$e);const _e=we&&createVNode(Icon,{name:"cross",class:[bem$1a("close"),HAPTICS_FEEDBACK],onClick:ae},null);return createVNode("span",{style:ie(),class:bem$1a([Ee,fe])},[(de=ne.default)==null?void 0:de.call(ne),_e])};return()=>createVNode(Transition,{name:ee.closeable?"van-fade":void 0},{default:()=>[ee.show?se():null]})}});const Tag=withInstall(stdin_default$1m),checkerProps={name:unknownProp,disabled:Boolean,iconSize:numericProp,modelValue:unknownProp,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var stdin_default$1l=defineComponent({props:extend({},checkerProps,{bem:makeRequiredProp(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:truthProp,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=we=>{if(ee.parent&&ee.bindGroup)return ee.parent.props[we]},se=computed(()=>{if(ee.parent&&ee.bindGroup){const we=ie("disabled")||ee.disabled;if(ee.role==="checkbox"){const Ee=ie("modelValue").length,_e=ie("max"),Ce=_e&&Ee>=+_e;return we||Ce&&!ee.checked}return we}return ee.disabled}),de=computed(()=>ie("direction")),fe=computed(()=>{const we=ee.checkedColor||ie("checkedColor");if(we&&ee.checked&&!se.value)return{borderColor:we,backgroundColor:we}}),ve=computed(()=>ee.shape||ie("shape")||"round"),be=we=>{const{target:Ee}=we,_e=ae.value,Ce=_e===Ee||(_e==null?void 0:_e.contains(Ee));!se.value&&(Ce||!ee.labelDisabled)&&ne("toggle"),ne("click",we)},ye=()=>{var we,Ee;const{bem:_e,checked:Ce,indeterminate:Pe}=ee,Ae=ee.iconSize||ie("iconSize");return createVNode("div",{ref:ae,class:_e("icon",[ve.value,{disabled:se.value,checked:Ce,indeterminate:Pe}]),style:ve.value!=="dot"?{fontSize:addUnit(Ae)}:{width:addUnit(Ae),height:addUnit(Ae),borderColor:(we=fe.value)==null?void 0:we.borderColor}},[oe.icon?oe.icon({checked:Ce,disabled:se.value}):ve.value!=="dot"?createVNode(Icon,{name:Pe?"minus":"success",style:fe.value},null):createVNode("div",{class:_e("icon--dot__icon"),style:{backgroundColor:(Ee=fe.value)==null?void 0:Ee.backgroundColor}},null)])},$e=()=>{const{checked:we}=ee;if(oe.default)return createVNode("span",{class:ee.bem("label",[ee.labelPosition,{disabled:se.value}])},[oe.default({checked:we,disabled:se.value})])};return()=>{const we=ee.labelPosition==="left"?[$e(),ye()]:[ye(),$e()];return createVNode("div",{role:ee.role,class:ee.bem([{disabled:se.value,"label-disabled":ee.labelDisabled},de.value]),tabindex:se.value?void 0:0,"aria-checked":ee.checked,onClick:be},[we])}}});const radioProps=extend({},checkerProps,{shape:String}),[name$1d,bem$19]=createNamespace("radio");var stdin_default$1k=defineComponent({name:name$1d,props:radioProps,emits:["update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{parent:ae}=useParent(RADIO_KEY),ie=()=>(ae?ae.props.modelValue:ee.modelValue)===ee.name,se=()=>{ae?ae.updateValue(ee.name):ne("update:modelValue",ee.name)};return()=>createVNode(stdin_default$1l,mergeProps({bem:bem$19,role:"radio",parent:ae,checked:ie(),onToggle:se},ee),pick(oe,["default","icon"]))}});const Radio=withInstall(stdin_default$1k),[name$1c,bem$18]=createNamespace("checkbox"),checkboxProps=extend({},checkerProps,{shape:String,bindGroup:truthProp,indeterminate:{type:Boolean,default:null}});var stdin_default$1j=defineComponent({name:name$1c,props:checkboxProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{parent:ae}=useParent(CHECKBOX_GROUP_KEY),ie=fe=>{const{name:ve}=ee,{max:be,modelValue:ye}=ae.props,$e=ye.slice();if(fe)!(be&&$e.length>=+be)&&!$e.includes(ve)&&($e.push(ve),ee.bindGroup&&ae.updateValue($e));else{const we=$e.indexOf(ve);we!==-1&&($e.splice(we,1),ee.bindGroup&&ae.updateValue($e))}},se=computed(()=>ae&&ee.bindGroup?ae.props.modelValue.indexOf(ee.name)!==-1:!!ee.modelValue),de=(fe=!se.value)=>{ae&&ee.bindGroup?ie(fe):ne("update:modelValue",fe),ee.indeterminate!==null&&ne("change",fe)};return watch(()=>ee.modelValue,fe=>{ee.indeterminate===null&&ne("change",fe)}),useExpose({toggle:de,props:ee,checked:se}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode(stdin_default$1l,mergeProps({bem:bem$18,role:"checkbox",parent:ae,checked:se.value,onToggle:de},ee),pick(oe,["default","icon"]))}});const Checkbox=withInstall(stdin_default$1j),[name$1b,bem$17]=createNamespace("address-item");var stdin_default$1i=defineComponent({name:name$1b,props:{address:makeRequiredProp(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:makeStringProp("edit")},emits:["edit","click","select"],setup(ee,{slots:ne,emit:oe}){const ae=fe=>{ee.switchable&&oe("select"),oe("click",fe)},ie=()=>createVNode(Icon,{name:ee.rightIcon,class:bem$17("edit"),onClick:fe=>{fe.stopPropagation(),oe("edit"),oe("click",fe)}},null),se=()=>{if(ne.tag)return ne.tag(ee.address);if(ee.address.isDefault&&ee.defaultTagText)return createVNode(Tag,{type:"primary",round:!0,class:bem$17("tag")},{default:()=>[ee.defaultTagText]})},de=()=>{const{address:fe,disabled:ve,switchable:be,singleChoice:ye}=ee,$e=[createVNode("div",{class:bem$17("name")},[`${fe.name} ${fe.tel}`,se()]),createVNode("div",{class:bem$17("address")},[fe.address])];return be&&!ve?ye?createVNode(Radio,{name:fe.id,iconSize:18},{default:()=>[$e]}):createVNode(Checkbox,{name:fe.id,iconSize:18},{default:()=>[$e]}):$e};return()=>{var fe;const{disabled:ve}=ee;return createVNode("div",{class:bem$17({disabled:ve}),onClick:ae},[createVNode(Cell,{border:!1,titleClass:bem$17("title")},{title:de,"right-icon":ie}),(fe=ne.bottom)==null?void 0:fe.call(ne,extend({},ee.address,{disabled:ve}))])}}});const[name$1a,bem$16,t$h]=createNamespace("address-list"),addressListProps={list:makeArrayProp(),modelValue:[...numericProp,Array],switchable:truthProp,disabledText:String,disabledList:makeArrayProp(),showAddButton:truthProp,addButtonText:String,defaultTagText:String,rightIcon:makeStringProp("edit")};var stdin_default$1h=defineComponent({name:name$1a,props:addressListProps,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(ee,{slots:ne,emit:oe}){const ae=computed(()=>!Array.isArray(ee.modelValue)),ie=(fe,ve,be)=>{const ye=()=>oe(be?"editDisabled":"edit",fe,ve),$e=Ee=>oe("clickItem",fe,ve,{event:Ee}),we=()=>{if(oe(be?"selectDisabled":"select",fe,ve),!be)if(ae.value)oe("update:modelValue",fe.id);else{const Ee=ee.modelValue;Ee.includes(fe.id)?oe("update:modelValue",Ee.filter(_e=>_e!==fe.id)):oe("update:modelValue",[...Ee,fe.id])}};return createVNode(stdin_default$1i,{key:fe.id,address:fe,disabled:be,switchable:ee.switchable,singleChoice:ae.value,defaultTagText:ee.defaultTagText,rightIcon:ee.rightIcon,onEdit:ye,onClick:$e,onSelect:we},{bottom:ne["item-bottom"],tag:ne.tag})},se=(fe,ve)=>{if(fe)return fe.map((be,ye)=>ie(be,ye,ve))},de=()=>ee.showAddButton?createVNode("div",{class:[bem$16("bottom"),"van-safe-area-bottom"]},[createVNode(Button,{round:!0,block:!0,type:"primary",text:ee.addButtonText||t$h("add"),class:bem$16("add"),onClick:()=>oe("add")},null)]):void 0;return()=>{var fe,ve;const be=se(ee.list),ye=se(ee.disabledList,!0),$e=ee.disabledText&&createVNode("div",{class:bem$16("disabled-text")},[ee.disabledText]);return createVNode("div",{class:bem$16()},[(fe=ne.top)==null?void 0:fe.call(ne),!ae.value&&Array.isArray(ee.modelValue)?createVNode(CheckboxGroup,{modelValue:ee.modelValue},{default:()=>[be]}):createVNode(RadioGroup,{modelValue:ee.modelValue},{default:()=>[be]}),$e,ye,(ve=ne.default)==null?void 0:ve.call(ne),de()])}}});const AddressList=withInstall(stdin_default$1h);function throttle(ee,ne){let oe=null,ae=0;return function(...ie){if(oe)return;const se=Date.now()-ae,de=()=>{ae=Date.now(),oe=!1,ee.apply(this,ie)};se>=ne?de():oe=setTimeout(de,ne)}}const[name$19,bem$15]=createNamespace("back-top"),backTopProps={right:numericProp,bottom:numericProp,zIndex:numericProp,target:[String,Object],offset:makeNumericProp(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var stdin_default$1g=defineComponent({name:name$19,inheritAttrs:!1,props:backTopProps,emits:["click"],setup(ee,{emit:ne,slots:oe,attrs:ae}){let ie=!1;const se=ref(!1),de=ref(),fe=ref(),ve=computed(()=>extend(getZIndexStyle(ee.zIndex),{right:addUnit(ee.right),bottom:addUnit(ee.bottom)})),be=Ee=>{var _e;ne("click",Ee),(_e=fe.value)==null||_e.scrollTo({top:0,behavior:ee.immediate?"auto":"smooth"})},ye=()=>{se.value=fe.value?getScrollTop(fe.value)>=+ee.offset:!1},$e=()=>{const{target:Ee}=ee;if(typeof Ee=="string"){const _e=document.querySelector(Ee);if(_e)return _e}else return Ee},we=()=>{inBrowser$1&&nextTick(()=>{fe.value=ee.target?$e():getScrollParent$1(de.value),ye()})};return useEventListener("scroll",throttle(ye,100),{target:fe}),onMounted(we),onActivated(()=>{ie&&(se.value=!0,ie=!1)}),onDeactivated(()=>{se.value&&ee.teleport&&(se.value=!1,ie=!0)}),watch(()=>ee.target,we),()=>{const Ee=createVNode("div",mergeProps({ref:ee.teleport?void 0:de,class:bem$15({active:se.value}),style:ve.value,onClick:be},ae),[oe.default?oe.default():createVNode(Icon,{name:"back-top",class:bem$15("icon")},null)]);return ee.teleport?[createVNode("div",{ref:de,class:bem$15("placeholder")},null),createVNode(Teleport,{to:ee.teleport},{default:()=>[Ee]})]:Ee}}});const BackTop=withInstall(stdin_default$1g);var __async=(ee,ne,oe)=>new Promise((ae,ie)=>{var se=ve=>{try{fe(oe.next(ve))}catch(be){ie(be)}},de=ve=>{try{fe(oe.throw(ve))}catch(be){ie(be)}},fe=ve=>ve.done?ae(ve.value):Promise.resolve(ve.value).then(se,de);fe((oe=oe.apply(ee,ne)).next())});const barrageProps={top:makeNumericProp(10),rows:makeNumericProp(4),duration:makeNumericProp(4e3),autoPlay:truthProp,delay:makeNumberProp(300),modelValue:makeArrayProp()},[name$18,bem$14]=createNamespace("barrage");var stdin_default$1f=defineComponent({name:name$18,props:barrageProps,emits:["update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=bem$14("item"),se=ref(0),de=[],fe=(Ce,Pe=ee.delay)=>{const Ae=document.createElement("span");return Ae.className=ie,Ae.innerText=String(Ce),Ae.style.animationDuration=`${ee.duration}ms`,Ae.style.animationDelay=`${Pe}ms`,Ae.style.animationName="van-barrage",Ae.style.animationTimingFunction="linear",Ae},ve=ref(!0),be=ref(ee.autoPlay),ye=({id:Ce,text:Pe},Ae)=>{var ke;const Ne=fe(Pe,ve.value?Ae*ee.delay:void 0);!ee.autoPlay&&be.value===!1&&(Ne.style.animationPlayState="paused"),(ke=ae.value)==null||ke.append(Ne),se.value++;const Oe=(se.value-1)%+ee.rows*Ne.offsetHeight+ +ee.top;Ne.style.top=`${Oe}px`,Ne.dataset.id=String(Ce),de.push(Ne),Ne.addEventListener("animationend",()=>{ne("update:modelValue",[...ee.modelValue].filter(Re=>String(Re.id)!==Ne.dataset.id))})},$e=(Ce,Pe)=>{const Ae=new Map(Pe.map(ke=>[ke.id,ke]));Ce.forEach((ke,Ne)=>{Ae.has(ke.id)?Ae.delete(ke.id):ye(ke,Ne)}),Ae.forEach(ke=>{const Ne=de.findIndex(Oe=>Oe.dataset.id===String(ke.id));Ne>-1&&(de[Ne].remove(),de.splice(Ne,1))}),ve.value=!1};watch(()=>ee.modelValue.slice(),(Ce,Pe)=>$e(Ce??[],Pe??[]),{deep:!0});const we=ref({});return onMounted(()=>__async(this,null,function*(){var Ce;we.value["--move-distance"]=`-${(Ce=ae.value)==null?void 0:Ce.offsetWidth}px`,yield nextTick(),$e(ee.modelValue,[])})),useExpose({play:()=>{be.value=!0,de.forEach(Ce=>{Ce.style.animationPlayState="running"})},pause:()=>{be.value=!1,de.forEach(Ce=>{Ce.style.animationPlayState="paused"})}}),()=>{var Ce;return createVNode("div",{class:bem$14(),ref:ae,style:we.value},[(Ce=oe.default)==null?void 0:Ce.call(oe)])}}});const Barrage=withInstall(stdin_default$1f),[name$17,bem$13,t$g]=createNamespace("calendar"),formatMonthTitle=ee=>t$g("monthTitle",ee.getFullYear(),ee.getMonth()+1);function compareMonth(ee,ne){const oe=ee.getFullYear(),ae=ne.getFullYear();if(oe===ae){const ie=ee.getMonth(),se=ne.getMonth();return ie===se?0:ie>se?1:-1}return oe>ae?1:-1}function compareDay(ee,ne){const oe=compareMonth(ee,ne);if(oe===0){const ae=ee.getDate(),ie=ne.getDate();return ae===ie?0:ae>ie?1:-1}return oe}const cloneDate=ee=>new Date(ee),cloneDates=ee=>Array.isArray(ee)?ee.map(cloneDate):cloneDate(ee);function getDayByOffset(ee,ne){const oe=cloneDate(ee);return oe.setDate(oe.getDate()+ne),oe}function getMonthByOffset(ee,ne){const oe=cloneDate(ee);return oe.setMonth(oe.getMonth()+ne),oe.getDate()!==ee.getDate()&&oe.setDate(0),oe}function getYearByOffset(ee,ne){const oe=cloneDate(ee);return oe.setFullYear(oe.getFullYear()+ne),oe.getDate()!==ee.getDate()&&oe.setDate(0),oe}const getPrevDay=ee=>getDayByOffset(ee,-1),getNextDay=ee=>getDayByOffset(ee,1),getPrevMonth=ee=>getMonthByOffset(ee,-1),getNextMonth=ee=>getMonthByOffset(ee,1),getPrevYear=ee=>getYearByOffset(ee,-1),getNextYear=ee=>getYearByOffset(ee,1),getToday=()=>{const ee=new Date;return ee.setHours(0,0,0,0),ee};function calcDateNum(ee){const ne=ee[0].getTime();return(ee[1].getTime()-ne)/(1e3*60*60*24)+1}const sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(ee,ne)=>ne}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(ee,ne){if(ee<0)return[];const oe=Array(ee);let ae=-1;for(;++ae32-new Date(ee,ne-1,32).getDate(),genOptions=(ee,ne,oe,ae,ie,se)=>{const de=times(ne-ee+1,fe=>{const ve=padZero(ee+fe);return ae(oe,{text:ve,value:ve})});return ie?ie(oe,de,se):de},formatValueRange=(ee,ne)=>ee.map((oe,ae)=>{const ie=ne[ae];if(ie.length){const se=+ie[0].value,de=+ie[ie.length-1].value;return padZero(clamp(+oe,se,de))}return oe}),[name$16]=createNamespace("calendar-day");var stdin_default$1e=defineComponent({name:name$16,props:{item:makeRequiredProp(Object),color:String,index:Number,offset:makeNumberProp(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>{var be;const{item:ye,index:$e,color:we,offset:Ee,rowHeight:_e}=ee,Ce={height:_e};if(ye.type==="placeholder")return Ce.width="100%",Ce;if($e===0&&(Ce.marginLeft=`${100*Ee/7}%`),we)switch(ye.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":Ce.background=we;break;case"middle":Ce.color=we;break}return Ee+(((be=ye.date)==null?void 0:be.getDate())||1)>28&&(Ce.marginBottom=0),Ce}),ie=()=>{ee.item.type!=="disabled"?ne("click",ee.item):ne("clickDisabledDate",ee.item)},se=()=>{const{topInfo:be}=ee.item;if(be||oe["top-info"])return createVNode("div",{class:bem$13("top-info")},[oe["top-info"]?oe["top-info"](ee.item):be])},de=()=>{const{bottomInfo:be}=ee.item;if(be||oe["bottom-info"])return createVNode("div",{class:bem$13("bottom-info")},[oe["bottom-info"]?oe["bottom-info"](ee.item):be])},fe=()=>oe.text?oe.text(ee.item):ee.item.text,ve=()=>{const{item:be,color:ye,rowHeight:$e}=ee,{type:we}=be,Ee=[se(),fe(),de()];return we==="selected"?createVNode("div",{class:bem$13("selected-day"),style:{width:$e,height:$e,background:ye}},[Ee]):Ee};return()=>{const{type:be,className:ye}=ee.item;return be==="placeholder"?createVNode("div",{class:bem$13("day"),style:ae.value},null):createVNode("div",{role:"gridcell",style:ae.value,class:[bem$13("day",be),ye],tabindex:be==="disabled"?void 0:-1,onClick:ie},[ve()])}}});const[name$15]=createNamespace("calendar-month"),calendarMonthProps={date:makeRequiredProp(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:numericProp,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var stdin_default$1d=defineComponent({name:name$15,props:calendarMonthProps,emits:["click","clickDisabledDate"],setup(ee,{emit:ne,slots:oe}){const[ae,ie]=useToggle(),se=ref(),de=ref(),fe=useHeight(de),ve=computed(()=>formatMonthTitle(ee.date)),be=computed(()=>addUnit(ee.rowHeight)),ye=computed(()=>{const Ke=ee.date.getDate(),je=(ee.date.getDay()-Ke%7+8)%7;return ee.firstDayOfWeek?(je+7-ee.firstDayOfWeek)%7:je}),$e=computed(()=>getMonthEndDay(ee.date.getFullYear(),ee.date.getMonth()+1)),we=computed(()=>ae.value||!ee.lazyRender),Ee=()=>ve.value,_e=Ke=>{const De=je=>ee.currentDate.some(He=>compareDay(He,je)===0);if(De(Ke)){const je=getPrevDay(Ke),He=getNextDay(Ke),qe=De(je),ze=De(He);return qe&&ze?"multiple-middle":qe?"end":ze?"start":"multiple-selected"}return""},Ce=Ke=>{const[De,je]=ee.currentDate;if(!De)return"";const He=compareDay(Ke,De);if(!je)return He===0?"start":"";const qe=compareDay(Ke,je);return ee.allowSameDay&&He===0&&qe===0?"start-end":He===0?"start":qe===0?"end":He>0&&qe<0?"middle":""},Pe=Ke=>{const{type:De,minDate:je,maxDate:He,currentDate:qe}=ee;if(je&&compareDay(Ke,je)<0||He&&compareDay(Ke,He)>0)return"disabled";if(qe===null)return"";if(Array.isArray(qe)){if(De==="multiple")return _e(Ke);if(De==="range")return Ce(Ke)}else if(De==="single")return compareDay(Ke,qe)===0?"selected":"";return""},Ae=Ke=>{if(ee.type==="range"){if(Ke==="start"||Ke==="end")return t$g(Ke);if(Ke==="start-end")return`${t$g("start")}/${t$g("end")}`}},ke=()=>{if(ee.showMonthTitle)return createVNode("div",{class:bem$13("month-title")},[oe["month-title"]?oe["month-title"]({date:ee.date,text:ve.value}):ve.value])},Ne=()=>{if(ee.showMark&&we.value)return createVNode("div",{class:bem$13("month-mark")},[ee.date.getMonth()+1])},Oe=computed(()=>{const Ke=Math.ceil(($e.value+ye.value)/7);return Array(Ke).fill({type:"placeholder"})}),Re=computed(()=>{const Ke=[],De=ee.date.getFullYear(),je=ee.date.getMonth();for(let He=1;He<=$e.value;He++){const qe=new Date(De,je,He),ze=Pe(qe);let Fe={date:qe,type:ze,text:He,bottomInfo:Ae(ze)};ee.formatter&&(Fe=ee.formatter(Fe)),Ke.push(Fe)}return Ke}),Be=computed(()=>Re.value.filter(Ke=>Ke.type==="disabled")),Me=(Ke,De)=>{if(se.value){const je=useRect(se.value),He=Oe.value.length,ze=(Math.ceil((De.getDate()+ye.value)/7)-1)*je.height/He;setScrollTop(Ke,je.top+ze+Ke.scrollTop-useRect(Ke).top)}},Le=(Ke,De)=>createVNode(stdin_default$1e,{item:Ke,index:De,color:ee.color,offset:ye.value,rowHeight:be.value,onClick:je=>ne("click",je),onClickDisabledDate:je=>ne("clickDisabledDate",je)},pick(oe,["top-info","bottom-info","text"])),Xe=()=>createVNode("div",{ref:se,role:"grid",class:bem$13("days")},[Ne(),(we.value?Re:Oe).value.map(Le)]);return useExpose({getTitle:Ee,getHeight:()=>fe.value,setVisible:ie,scrollToDate:Me,disabledDays:Be}),()=>createVNode("div",{class:bem$13("month"),ref:de},[ke(),Xe()])}});const[name$14]=createNamespace("calendar-header");var stdin_default$1c=defineComponent({name:name$14,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:makeStringProp("none")},emits:["clickSubtitle","panelChange"],setup(ee,{slots:ne,emit:oe}){const ae=computed(()=>ee.date&&ee.minDate&&compareMonth(getPrevMonth(ee.date),ee.minDate)<0),ie=computed(()=>ee.date&&ee.minDate&&compareMonth(getPrevYear(ee.date),ee.minDate)<0),se=computed(()=>ee.date&&ee.maxDate&&compareMonth(getNextMonth(ee.date),ee.maxDate)>0),de=computed(()=>ee.date&&ee.maxDate&&compareMonth(getNextYear(ee.date),ee.maxDate)>0),fe=()=>{if(ee.showTitle){const Ee=ee.title||t$g("title"),_e=ne.title?ne.title():Ee;return createVNode("div",{class:bem$13("header-title")},[_e])}},ve=Ee=>oe("clickSubtitle",Ee),be=Ee=>oe("panelChange",Ee),ye=Ee=>{const _e=ee.switchMode==="year-month",Ce=ne[Ee?"next-month":"prev-month"],Pe=ne[Ee?"next-year":"prev-year"],Ae=Ee?se.value:ae.value,ke=Ee?de.value:ie.value,Ne=Ee?"arrow":"arrow-left",Oe=Ee?"arrow-double-right":"arrow-double-left",Re=()=>be((Ee?getNextMonth:getPrevMonth)(ee.date)),Be=()=>be((Ee?getNextYear:getPrevYear)(ee.date)),Me=createVNode("view",{class:bem$13("header-action",{disabled:Ae}),onClick:Ae?void 0:Re},[Ce?Ce({disabled:Ae}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!Ae},name:Ne},null)]),Le=_e&&createVNode("view",{class:bem$13("header-action",{disabled:ke}),onClick:ke?void 0:Be},[Pe?Pe({disabled:ke}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!ke},name:Oe},null)]);return Ee?[Me,Le]:[Le,Me]},$e=()=>{if(ee.showSubtitle){const Ee=ne.subtitle?ne.subtitle({date:ee.date,text:ee.subtitle}):ee.subtitle,_e=ee.switchMode!=="none";return createVNode("div",{class:bem$13("header-subtitle",{"with-switch":_e}),onClick:ve},[_e?[ye(),createVNode("div",{class:bem$13("header-subtitle-text")},[Ee]),ye(!0)]:Ee])}},we=()=>{const{firstDayOfWeek:Ee}=ee,_e=t$g("weekdays"),Ce=[..._e.slice(Ee,7),..._e.slice(0,Ee)];return createVNode("div",{class:bem$13("weekdays")},[Ce.map(Pe=>createVNode("span",{class:bem$13("weekday")},[Pe]))])};return()=>createVNode("div",{class:bem$13("header")},[fe(),$e(),we()])}});const calendarProps={show:Boolean,type:makeStringProp("single"),switchMode:makeStringProp("none"),title:String,color:String,round:truthProp,readonly:Boolean,poppable:truthProp,maxRange:makeNumericProp(null),position:makeStringProp("bottom"),teleport:[String,Object],showMark:truthProp,showTitle:truthProp,formatter:Function,rowHeight:numericProp,confirmText:String,rangePrompt:String,lazyRender:truthProp,showConfirm:truthProp,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:truthProp,closeOnPopstate:truthProp,showRangePrompt:truthProp,confirmDisabledText:String,closeOnClickOverlay:truthProp,safeAreaInsetTop:Boolean,safeAreaInsetBottom:truthProp,minDate:{type:Date,validator:isDate},maxDate:{type:Date,validator:isDate},firstDayOfWeek:{type:numericProp,default:0,validator:ee=>ee>=0&&ee<=6}};var stdin_default$1b=defineComponent({name:name$17,props:calendarProps,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","panelChange"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>ee.switchMode!=="none"),ie=computed(()=>!ee.minDate&&!ae.value?getToday():ee.minDate),se=computed(()=>!ee.maxDate&&!ae.value?getMonthByOffset(getToday(),6):ee.maxDate),de=(Ue,Pt=ie.value,Dt=se.value)=>Pt&&compareDay(Ue,Pt)===-1?Pt:Dt&&compareDay(Ue,Dt)===1?Dt:Ue,fe=(Ue=ee.defaultDate)=>{const{type:Pt,allowSameDay:Dt}=ee;if(Ue===null)return Ue;const Ut=getToday();if(Pt==="range"){Array.isArray(Ue)||(Ue=[]),Ue.length===1&&compareDay(Ue[0],Ut)===1&&(Ue=[]);const Rt=ie.value,Wt=se.value,Qe=de(Ue[0]||Ut,Rt,Wt?Dt?Wt:getPrevDay(Wt):void 0),It=de(Ue[1]||(Dt?Ut:getNextDay(Ut)),Rt?Dt?Rt:getNextDay(Rt):void 0);return[Qe,It]}return Pt==="multiple"?Array.isArray(Ue)?Ue.map(Rt=>de(Rt)):[de(Ut)]:((!Ue||Array.isArray(Ue))&&(Ue=Ut),de(Ue))},ve=()=>{const Ue=Array.isArray($e.value)?$e.value[0]:$e.value;return Ue||de(getToday())};let be;const ye=ref(),$e=ref(fe()),we=ref(ve()),Ee=ref(),[_e,Ce]=useRefs(),Pe=computed(()=>ee.firstDayOfWeek?+ee.firstDayOfWeek%7:0),Ae=computed(()=>{const Ue=[];if(!ie.value||!se.value)return Ue;const Pt=new Date(ie.value);Pt.setDate(1);do Ue.push(new Date(Pt)),Pt.setMonth(Pt.getMonth()+1);while(compareMonth(Pt,se.value)!==1);return Ue}),ke=computed(()=>{if($e.value){if(ee.type==="range")return!$e.value[0]||!$e.value[1];if(ee.type==="multiple")return!$e.value.length}return!$e.value}),Ne=()=>$e.value,Oe=()=>{const Ue=getScrollTop(ye.value),Pt=Ue+be,Dt=Ae.value.map((It,Ft)=>_e.value[Ft].getHeight()),Ut=Dt.reduce((It,Ft)=>It+Ft,0);if(Pt>Ut&&Ue>0)return;let Rt=0,Wt;const Qe=[-1,-1];for(let It=0;It=Ue&&(Qe[1]=It,Wt||(Wt=Ft,Qe[0]=It),_e.value[It].showed||(_e.value[It].showed=!0,ne("monthShow",{date:Ft.date,title:Ft.getTitle()}))),Rt+=Dt[It]}Ae.value.forEach((It,Ft)=>{const jt=Ft>=Qe[0]-1&&Ft<=Qe[1]+1;_e.value[Ft].setVisible(jt)}),Wt&&(Ee.value=Wt)},Re=Ue=>{ae.value?we.value=Ue:raf(()=>{Ae.value.some((Pt,Dt)=>compareMonth(Pt,Ue)===0?(ye.value&&_e.value[Dt].scrollToDate(ye.value,Ue),!0):!1),Oe()})},Be=()=>{if(!(ee.poppable&&!ee.show))if($e.value){const Ue=ee.type==="single"?$e.value:$e.value[0];isDate(Ue)&&Re(Ue)}else ae.value||raf(Oe)},Me=()=>{ee.poppable&&!ee.show||(ae.value||raf(()=>{be=Math.floor(useRect(ye).height)}),Be())},Le=(Ue=fe())=>{$e.value=Ue,Be()},Xe=Ue=>{const{maxRange:Pt,rangePrompt:Dt,showRangePrompt:Ut}=ee;return Pt&&calcDateNum(Ue)>+Pt?(Ut&&showToast(Dt||t$g("rangePrompt",Pt)),ne("overRange"),!1):!0},Ke=Ue=>{we.value=Ue,ne("panelChange",{date:Ue})},De=()=>{var Ue;return ne("confirm",(Ue=$e.value)!=null?Ue:cloneDates($e.value))},je=(Ue,Pt)=>{const Dt=Ut=>{$e.value=Ut,ne("select",cloneDates(Ut))};if(Pt&&ee.type==="range"&&!Xe(Ue)){Dt([Ue[0],getDayByOffset(Ue[0],+ee.maxRange-1)]);return}Dt(Ue),Pt&&!ee.showConfirm&&De()},He=(Ue,Pt,Dt)=>{var Ut;return(Ut=Ue.find(Rt=>compareDay(Pt,Rt.date)===-1&&compareDay(Rt.date,Dt)===-1))==null?void 0:Ut.date},qe=computed(()=>_e.value.reduce((Ue,Pt)=>{var Dt,Ut;return Ue.push(...(Ut=(Dt=Pt.disabledDays)==null?void 0:Dt.value)!=null?Ut:[]),Ue},[])),ze=Ue=>{if(ee.readonly||!Ue.date)return;const{date:Pt}=Ue,{type:Dt}=ee;if(Dt==="range"){if(!$e.value){je([Pt]);return}const[Ut,Rt]=$e.value;if(Ut&&!Rt){const Wt=compareDay(Pt,Ut);if(Wt===1){const Qe=He(qe.value,Ut,Pt);if(Qe){const It=getPrevDay(Qe);compareDay(Ut,It)===-1?je([Ut,It]):je([Pt])}else je([Ut,Pt],!0)}else Wt===-1?je([Pt]):ee.allowSameDay&&je([Pt,Pt],!0)}else je([Pt])}else if(Dt==="multiple"){if(!$e.value){je([Pt]);return}const Ut=$e.value,Rt=Ut.findIndex(Wt=>compareDay(Wt,Pt)===0);if(Rt!==-1){const[Wt]=Ut.splice(Rt,1);ne("unselect",cloneDate(Wt))}else ee.maxRange&&Ut.length>=+ee.maxRange?showToast(ee.rangePrompt||t$g("rangePrompt",ee.maxRange)):je([...Ut,Pt])}else je(Pt,!0)},Fe=Ue=>ne("update:show",Ue),Ze=(Ue,Pt)=>{const Dt=Pt!==0||!ee.showSubtitle;return createVNode(stdin_default$1d,mergeProps({ref:ae.value?Ee:Ce(Pt),date:Ue,currentDate:$e.value,showMonthTitle:Dt,firstDayOfWeek:Pe.value,lazyRender:ae.value?!1:ee.lazyRender,maxDate:se.value,minDate:ie.value},pick(ee,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:ze,onClickDisabledDate:Ut=>ne("clickDisabledDate",Ut)}),pick(oe,["top-info","bottom-info","month-title","text"]))},ot=()=>{if(oe.footer)return oe.footer();if(ee.showConfirm){const Ue=oe["confirm-text"],Pt=ke.value,Dt=Pt?ee.confirmDisabledText:ee.confirmText;return createVNode(Button,{round:!0,block:!0,type:"primary",color:ee.color,class:bem$13("confirm"),disabled:Pt,nativeType:"button",onClick:De},{default:()=>[Ue?Ue({disabled:Pt}):Dt||t$g("confirm")]})}},Nt=()=>createVNode("div",{class:[bem$13("footer"),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[ot()]),Mt=()=>{var Ue,Pt;return createVNode("div",{class:bem$13()},[createVNode(stdin_default$1c,{date:(Ue=Ee.value)==null?void 0:Ue.date,maxDate:se.value,minDate:ie.value,title:ee.title,subtitle:(Pt=Ee.value)==null?void 0:Pt.getTitle(),showTitle:ee.showTitle,showSubtitle:ee.showSubtitle,switchMode:ee.switchMode,firstDayOfWeek:Pe.value,onClickSubtitle:Dt=>ne("clickSubtitle",Dt),onPanelChange:Ke},pick(oe,["title","subtitle","prev-month","prev-year","next-month","next-year"])),createVNode("div",{ref:ye,class:bem$13("body"),onScroll:ae.value?void 0:Oe},[ae.value?Ze(we.value,0):Ae.value.map(Ze)]),Nt()])};return watch(()=>ee.show,Me),watch(()=>[ee.type,ee.minDate,ee.maxDate,ee.switchMode],()=>Le(fe($e.value))),watch(()=>ee.defaultDate,Ue=>{Le(Ue)}),useExpose({reset:Le,scrollToDate:Re,getSelectedDate:Ne}),onMountedOrActivated(Me),()=>ee.poppable?createVNode(Popup,{show:ee.show,class:bem$13("popup"),round:ee.round,position:ee.position,closeable:ee.showTitle||ee.showSubtitle,teleport:ee.teleport,closeOnPopstate:ee.closeOnPopstate,safeAreaInsetTop:ee.safeAreaInsetTop,closeOnClickOverlay:ee.closeOnClickOverlay,"onUpdate:show":Fe},{default:Mt}):Mt()}});const Calendar=withInstall(stdin_default$1b),[name$13,bem$12]=createNamespace("image"),imageProps={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:numericProp,height:numericProp,radius:numericProp,lazyLoad:Boolean,iconSize:numericProp,showError:truthProp,errorIcon:makeStringProp("photo-fail"),iconPrefix:String,showLoading:truthProp,loadingIcon:makeStringProp("photo"),crossorigin:String,referrerpolicy:String};var stdin_default$1a=defineComponent({name:name$13,props:imageProps,emits:["load","error"],setup(ee,{emit:ne,slots:oe}){const ae=ref(!1),ie=ref(!0),se=ref(),{$Lazyload:de}=getCurrentInstance().proxy,fe=computed(()=>{const Pe={width:addUnit(ee.width),height:addUnit(ee.height)};return isDef(ee.radius)&&(Pe.overflow="hidden",Pe.borderRadius=addUnit(ee.radius)),Pe});watch(()=>ee.src,()=>{ae.value=!1,ie.value=!0});const ve=Pe=>{ie.value&&(ie.value=!1,ne("load",Pe))},be=()=>{const Pe=new Event("load");Object.defineProperty(Pe,"target",{value:se.value,enumerable:!0}),ve(Pe)},ye=Pe=>{ae.value=!0,ie.value=!1,ne("error",Pe)},$e=(Pe,Ae,ke)=>ke?ke():createVNode(Icon,{name:Pe,size:ee.iconSize,class:Ae,classPrefix:ee.iconPrefix},null),we=()=>{if(ie.value&&ee.showLoading)return createVNode("div",{class:bem$12("loading")},[$e(ee.loadingIcon,bem$12("loading-icon"),oe.loading)]);if(ae.value&&ee.showError)return createVNode("div",{class:bem$12("error")},[$e(ee.errorIcon,bem$12("error-icon"),oe.error)])},Ee=()=>{if(ae.value||!ee.src)return;const Pe={alt:ee.alt,class:bem$12("img"),style:{objectFit:ee.fit,objectPosition:ee.position},crossorigin:ee.crossorigin,referrerpolicy:ee.referrerpolicy};return ee.lazyLoad?withDirectives(createVNode("img",mergeProps({ref:se},Pe),null),[[resolveDirective("lazy"),ee.src]]):createVNode("img",mergeProps({ref:se,src:ee.src,onLoad:ve,onError:ye},Pe),null)},_e=({el:Pe})=>{const Ae=()=>{Pe===se.value&&ie.value&&be()};se.value?Ae():nextTick(Ae)},Ce=({el:Pe})=>{Pe===se.value&&!ae.value&&ye()};return de&&inBrowser$1&&(de.$on("loaded",_e),de.$on("error",Ce),onBeforeUnmount(()=>{de.$off("loaded",_e),de.$off("error",Ce)})),onMounted(()=>{nextTick(()=>{var Pe;(Pe=se.value)!=null&&Pe.complete&&!ee.lazyLoad&&be()})}),()=>{var Pe;return createVNode("div",{class:bem$12({round:ee.round,block:ee.block}),style:fe.value},[Ee(),we(),(Pe=oe.default)==null?void 0:Pe.call(oe)])}}});const Image$1=withInstall(stdin_default$1a),[name$12,bem$11]=createNamespace("card"),cardProps={tag:String,num:numericProp,desc:String,thumb:String,title:String,price:numericProp,centered:Boolean,lazyLoad:Boolean,currency:makeStringProp("¥"),thumbLink:String,originPrice:numericProp};var stdin_default$19=defineComponent({name:name$12,props:cardProps,emits:["clickThumb"],setup(ee,{slots:ne,emit:oe}){const ae=()=>{if(ne.title)return ne.title();if(ee.title)return createVNode("div",{class:[bem$11("title"),"van-multi-ellipsis--l2"]},[ee.title])},ie=()=>{if(ne.tag||ee.tag)return createVNode("div",{class:bem$11("tag")},[ne.tag?ne.tag():createVNode(Tag,{mark:!0,type:"primary"},{default:()=>[ee.tag]})])},se=()=>ne.thumb?ne.thumb():createVNode(Image$1,{src:ee.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:ee.lazyLoad},null),de=()=>{if(ne.thumb||ee.thumb)return createVNode("a",{href:ee.thumbLink,class:bem$11("thumb"),onClick:be=>oe("clickThumb",be)},[se(),ie()])},fe=()=>{if(ne.desc)return ne.desc();if(ee.desc)return createVNode("div",{class:[bem$11("desc"),"van-ellipsis"]},[ee.desc])},ve=()=>{const be=ee.price.toString().split(".");return createVNode("div",null,[createVNode("span",{class:bem$11("price-currency")},[ee.currency]),createVNode("span",{class:bem$11("price-integer")},[be[0]]),be.length>1&&createVNode(Fragment,null,[createTextVNode("."),createVNode("span",{class:bem$11("price-decimal")},[be[1]])])])};return()=>{var be,ye,$e;const we=ne.num||isDef(ee.num),Ee=ne.price||isDef(ee.price),_e=ne["origin-price"]||isDef(ee.originPrice),Ce=we||Ee||_e||ne.bottom,Pe=Ee&&createVNode("div",{class:bem$11("price")},[ne.price?ne.price():ve()]),Ae=_e&&createVNode("div",{class:bem$11("origin-price")},[ne["origin-price"]?ne["origin-price"]():`${ee.currency} ${ee.originPrice}`]),ke=we&&createVNode("div",{class:bem$11("num")},[ne.num?ne.num():`x${ee.num}`]),Ne=ne.footer&&createVNode("div",{class:bem$11("footer")},[ne.footer()]),Oe=Ce&&createVNode("div",{class:bem$11("bottom")},[(be=ne["price-top"])==null?void 0:be.call(ne),Pe,Ae,ke,(ye=ne.bottom)==null?void 0:ye.call(ne)]);return createVNode("div",{class:bem$11()},[createVNode("div",{class:bem$11("header")},[de(),createVNode("div",{class:bem$11("content",{centered:ee.centered})},[createVNode("div",null,[ae(),fe(),($e=ne.tags)==null?void 0:$e.call(ne)]),Oe])]),Ne])}}});const Card=withInstall(stdin_default$19),[name$11,bem$10,t$f]=createNamespace("cascader"),cascaderProps={title:String,options:makeArrayProp(),closeable:truthProp,swipeable:truthProp,closeIcon:makeStringProp("cross"),showHeader:truthProp,modelValue:numericProp,fieldNames:Object,placeholder:String,activeColor:String};var stdin_default$18=defineComponent({name:name$11,props:cascaderProps,emits:["close","change","finish","clickTab","update:modelValue"],setup(ee,{slots:ne,emit:oe}){const ae=ref([]),ie=ref(0),[se,de]=useRefs(),{text:fe,value:ve,children:be}=extend({text:"text",value:"value",children:"children"},ee.fieldNames),ye=(Re,Be)=>{for(const Me of Re){if(Me[ve]===Be)return[Me];if(Me[be]){const Le=ye(Me[be],Be);if(Le)return[Me,...Le]}}},$e=()=>{const{options:Re,modelValue:Be}=ee;if(Be!==void 0){const Me=ye(Re,Be);if(Me){let Le=Re;ae.value=Me.map(Xe=>{const Ke={options:Le,selected:Xe},De=Le.find(je=>je[ve]===Xe[ve]);return De&&(Le=De[be]),Ke}),Le&&ae.value.push({options:Le,selected:null}),nextTick(()=>{ie.value=ae.value.length-1});return}}ae.value=[{options:Re,selected:null}]},we=(Re,Be)=>{if(Re.disabled)return;if(ae.value[Be].selected=Re,ae.value.length>Be+1&&(ae.value=ae.value.slice(0,Be+1)),Re[be]){const Xe={options:Re[be],selected:null};ae.value[Be+1]?ae.value[Be+1]=Xe:ae.value.push(Xe),nextTick(()=>{ie.value++})}const Me=ae.value.map(Xe=>Xe.selected).filter(Boolean);oe("update:modelValue",Re[ve]);const Le={value:Re[ve],tabIndex:Be,selectedOptions:Me};oe("change",Le),Re[be]||oe("finish",Le)},Ee=()=>oe("close"),_e=({name:Re,title:Be})=>oe("clickTab",Re,Be),Ce=()=>ee.showHeader?createVNode("div",{class:bem$10("header")},[createVNode("h2",{class:bem$10("title")},[ne.title?ne.title():ee.title]),ee.closeable?createVNode(Icon,{name:ee.closeIcon,class:[bem$10("close-icon"),HAPTICS_FEEDBACK],onClick:Ee},null):null]):null,Pe=(Re,Be,Me)=>{const{disabled:Le}=Re,Xe=!!(Be&&Re[ve]===Be[ve]),Ke=Re.color||(Xe?ee.activeColor:void 0),De=ne.option?ne.option({option:Re,selected:Xe}):createVNode("span",null,[Re[fe]]);return createVNode("li",{ref:Xe?de(Me):void 0,role:"menuitemradio",class:[bem$10("option",{selected:Xe,disabled:Le}),Re.className],style:{color:Ke},tabindex:Le?void 0:Xe?0:-1,"aria-checked":Xe,"aria-disabled":Le||void 0,onClick:()=>we(Re,Me)},[De,Xe?createVNode(Icon,{name:"success",class:bem$10("selected-icon")},null):null])},Ae=(Re,Be,Me)=>createVNode("ul",{role:"menu",class:bem$10("options")},[Re.map(Le=>Pe(Le,Be,Me))]),ke=(Re,Be)=>{const{options:Me,selected:Le}=Re,Xe=ee.placeholder||t$f("select"),Ke=Le?Le[fe]:Xe;return createVNode(Tab,{title:Ke,titleClass:bem$10("tab",{unselected:!Le})},{default:()=>{var De,je;return[(De=ne["options-top"])==null?void 0:De.call(ne,{tabIndex:Be}),Ae(Me,Le,Be),(je=ne["options-bottom"])==null?void 0:je.call(ne,{tabIndex:Be})]}})},Ne=()=>createVNode(Tabs,{active:ie.value,"onUpdate:active":Re=>ie.value=Re,shrink:!0,animated:!0,class:bem$10("tabs"),color:ee.activeColor,swipeable:ee.swipeable,onClickTab:_e},{default:()=>[ae.value.map(ke)]}),Oe=Re=>{const Be=Re.parentElement;Be&&(Be.scrollTop=Re.offsetTop-(Be.offsetHeight-Re.offsetHeight)/2)};return $e(),watch(ie,Re=>{const Be=se.value[Re];Be&&Oe(Be)}),watch(()=>ee.options,$e,{deep:!0}),watch(()=>ee.modelValue,Re=>{Re!==void 0&&ae.value.map(Me=>{var Le;return(Le=Me.selected)==null?void 0:Le[ve]}).includes(Re)||$e()}),()=>createVNode("div",{class:bem$10()},[Ce(),Ne()])}});const Cascader=withInstall(stdin_default$18),[name$10,bem$$]=createNamespace("cell-group"),cellGroupProps={title:String,inset:Boolean,border:truthProp};var stdin_default$17=defineComponent({name:name$10,inheritAttrs:!1,props:cellGroupProps,setup(ee,{slots:ne,attrs:oe}){const ae=()=>{var se;return createVNode("div",mergeProps({class:[bem$$({inset:ee.inset}),{[BORDER_TOP_BOTTOM]:ee.border&&!ee.inset}]},oe,useScopeId()),[(se=ne.default)==null?void 0:se.call(ne)])},ie=()=>createVNode("div",{class:bem$$("title",{inset:ee.inset})},[ne.title?ne.title():ee.title]);return()=>ee.title||ne.title?createVNode(Fragment,null,[ie(),ae()]):ae()}});const CellGroup=withInstall(stdin_default$17),[name$$,bem$_]=createNamespace("circle");let uid=0;const format$1=ee=>Math.min(Math.max(+ee,0),100);function getPath(ee,ne){const oe=ee?1:0;return`M ${ne/2} ${ne/2} m 0, -500 a 500, 500 0 1, ${oe} 0, 1000 a 500, 500 0 1, ${oe} 0, -1000`}const circleProps={text:String,size:numericProp,fill:makeStringProp("none"),rate:makeNumericProp(100),speed:makeNumericProp(0),color:[String,Object],clockwise:truthProp,layerColor:String,currentRate:makeNumberProp(0),strokeWidth:makeNumericProp(40),strokeLinecap:String,startPosition:makeStringProp("top")};var stdin_default$16=defineComponent({name:name$$,props:circleProps,emits:["update:currentRate"],setup(ee,{emit:ne,slots:oe}){const ae=`van-circle-${uid++}`,ie=computed(()=>+ee.strokeWidth+1e3),se=computed(()=>getPath(ee.clockwise,ie.value)),de=computed(()=>{const we={top:0,right:90,bottom:180,left:270}[ee.startPosition];if(we)return{transform:`rotate(${we}deg)`}});watch(()=>ee.rate,$e=>{let we;const Ee=Date.now(),_e=ee.currentRate,Ce=format$1($e),Pe=Math.abs((_e-Ce)*1e3/+ee.speed),Ae=()=>{const ke=Date.now(),Oe=Math.min((ke-Ee)/Pe,1)*(Ce-_e)+_e;ne("update:currentRate",format$1(parseFloat(Oe.toFixed(1)))),(Ce>_e?OeCe)&&(we=raf(Ae))};ee.speed?(we&&cancelRaf(we),we=raf(Ae)):ne("update:currentRate",Ce)},{immediate:!0});const fe=()=>{const{strokeWidth:we,currentRate:Ee,strokeLinecap:_e}=ee,Ce=3140*Ee/100,Pe=isObject(ee.color)?`url(#${ae})`:ee.color,Ae={stroke:Pe,strokeWidth:`${+we+1}px`,strokeLinecap:_e,strokeDasharray:`${Ce}px 3140px`};return createVNode("path",{d:se.value,style:Ae,class:bem$_("hover"),stroke:Pe},null)},ve=()=>{const $e={fill:ee.fill,stroke:ee.layerColor,strokeWidth:`${ee.strokeWidth}px`};return createVNode("path",{class:bem$_("layer"),style:$e,d:se.value},null)},be=()=>{const{color:$e}=ee;if(!isObject($e))return;const we=Object.keys($e).sort((Ee,_e)=>parseFloat(Ee)-parseFloat(_e)).map((Ee,_e)=>createVNode("stop",{key:_e,offset:Ee,"stop-color":$e[Ee]},null));return createVNode("defs",null,[createVNode("linearGradient",{id:ae,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[we])])},ye=()=>{if(oe.default)return oe.default();if(ee.text)return createVNode("div",{class:bem$_("text")},[ee.text])};return()=>createVNode("div",{class:bem$_(),style:getSizeStyle(ee.size)},[createVNode("svg",{viewBox:`0 0 ${ie.value} ${ie.value}`,style:de.value},[be(),ve(),fe()]),ye()])}});const Circle=withInstall(stdin_default$16),[name$_,bem$Z]=createNamespace("row"),ROW_KEY=Symbol(name$_),rowProps={tag:makeStringProp("div"),wrap:truthProp,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var stdin_default$15=defineComponent({name:name$_,props:rowProps,setup(ee,{slots:ne}){const{children:oe,linkChildren:ae}=useChildren(ROW_KEY),ie=computed(()=>{const fe=[[]];let ve=0;return oe.forEach((be,ye)=>{ve+=Number(be.span),ve>24?(fe.push([ye]),ve-=24):fe[fe.length-1].push(ye)}),fe}),se=computed(()=>{let fe=0;Array.isArray(ee.gutter)?fe=Number(ee.gutter[0])||0:fe=Number(ee.gutter);const ve=[];return fe&&ie.value.forEach(be=>{const ye=fe*(be.length-1)/be.length;be.forEach(($e,we)=>{if(we===0)ve.push({right:ye});else{const Ee=fe-ve[$e-1].right,_e=ye-Ee;ve.push({left:Ee,right:_e})}})}),ve}),de=computed(()=>{const{gutter:fe}=ee,ve=[];if(Array.isArray(fe)&&fe.length>1){const be=Number(fe[1])||0;if(be<=0)return ve;ie.value.forEach((ye,$e)=>{$e!==ie.value.length-1&&ye.forEach(()=>{ve.push({bottom:be})})})}return ve});return ae({spaces:se,verticalSpaces:de}),()=>{const{tag:fe,wrap:ve,align:be,justify:ye}=ee;return createVNode(fe,{class:bem$Z({[`align-${be}`]:be,[`justify-${ye}`]:ye,nowrap:!ve})},{default:()=>{var $e;return[($e=ne.default)==null?void 0:$e.call(ne)]}})}}});const[name$Z,bem$Y]=createNamespace("col"),colProps={tag:makeStringProp("div"),span:makeNumericProp(0),offset:numericProp};var stdin_default$14=defineComponent({name:name$Z,props:colProps,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(ROW_KEY),ie=computed(()=>{if(!oe)return;const{spaces:se,verticalSpaces:de}=oe;let fe={};if(se&&se.value&&se.value[ae.value]){const{left:be,right:ye}=se.value[ae.value];fe={paddingLeft:be?`${be}px`:null,paddingRight:ye?`${ye}px`:null}}const{bottom:ve}=de.value[ae.value]||{};return extend(fe,{marginBottom:ve?`${ve}px`:null})});return()=>{const{tag:se,span:de,offset:fe}=ee;return createVNode(se,{style:ie.value,class:bem$Y({[de]:de,[`offset-${fe}`]:fe})},{default:()=>{var ve;return[(ve=ne.default)==null?void 0:ve.call(ne)]}})}}});const Col=withInstall(stdin_default$14),[name$Y,bem$X]=createNamespace("collapse"),COLLAPSE_KEY=Symbol(name$Y),collapseProps={border:truthProp,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var stdin_default$13=defineComponent({name:name$Y,props:collapseProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae,children:ie}=useChildren(COLLAPSE_KEY),se=be=>{ne("change",be),ne("update:modelValue",be)},de=(be,ye)=>{const{accordion:$e,modelValue:we}=ee;se($e?be===we?"":be:ye?we.concat(be):we.filter(Ee=>Ee!==be))},fe=(be={})=>{if(ee.accordion)return;typeof be=="boolean"&&(be={expanded:be});const{expanded:ye,skipDisabled:$e}=be,Ee=ie.filter(_e=>_e.disabled&&$e?_e.expanded.value:ye??!_e.expanded.value).map(_e=>_e.itemName.value);se(Ee)},ve=be=>{const{accordion:ye,modelValue:$e}=ee;return ye?$e===be:$e.includes(be)};return useExpose({toggleAll:fe}),ae({toggle:de,isExpanded:ve}),()=>{var be;return createVNode("div",{class:[bem$X(),{[BORDER_TOP_BOTTOM]:ee.border}]},[(be=oe.default)==null?void 0:be.call(oe)])}}});const Collapse=withInstall(stdin_default$13),[name$X,bem$W]=createNamespace("collapse-item"),CELL_SLOTS=["icon","title","value","label","right-icon"],collapseItemProps=extend({},cellSharedProps,{name:numericProp,isLink:truthProp,disabled:Boolean,readonly:Boolean,lazyRender:truthProp});var stdin_default$12=defineComponent({name:name$X,props:collapseItemProps,setup(ee,{slots:ne}){const oe=ref(),ae=ref(),{parent:ie,index:se}=useParent(COLLAPSE_KEY);if(!ie)return;const de=computed(()=>{var Ce;return(Ce=ee.name)!=null?Ce:se.value}),fe=computed(()=>ie.isExpanded(de.value)),ve=ref(fe.value),be=useLazyRender(()=>ve.value||!ee.lazyRender),ye=()=>{fe.value?oe.value&&(oe.value.style.height=""):ve.value=!1};watch(fe,(Ce,Pe)=>{if(Pe===null)return;Ce&&(ve.value=!0),(Ce?nextTick:raf)(()=>{if(!ae.value||!oe.value)return;const{offsetHeight:ke}=ae.value;if(ke){const Ne=`${ke}px`;oe.value.style.height=Ce?"0":Ne,doubleRaf(()=>{oe.value&&(oe.value.style.height=Ce?Ne:"0")})}else ye()})});const $e=(Ce=!fe.value)=>{ie.toggle(de.value,Ce)},we=()=>{!ee.disabled&&!ee.readonly&&$e()},Ee=()=>{const{border:Ce,disabled:Pe,readonly:Ae}=ee,ke=pick(ee,Object.keys(cellSharedProps));return Ae&&(ke.isLink=!1),(Pe||Ae)&&(ke.clickable=!1),createVNode(Cell,mergeProps({role:"button",class:bem$W("title",{disabled:Pe,expanded:fe.value,borderless:!Ce}),"aria-expanded":String(fe.value),onClick:we},ke),pick(ne,CELL_SLOTS))},_e=be(()=>{var Ce;return withDirectives(createVNode("div",{ref:oe,class:bem$W("wrapper"),onTransitionend:ye},[createVNode("div",{ref:ae,class:bem$W("content")},[(Ce=ne.default)==null?void 0:Ce.call(ne)])]),[[vShow,ve.value]])});return useExpose({toggle:$e,expanded:fe,itemName:de}),()=>createVNode("div",{class:[bem$W({border:se.value&&ee.border})]},[Ee(),_e()])}});const CollapseItem=withInstall(stdin_default$12),ConfigProvider=withInstall(stdin_default$1Q),[name$W,bem$V,t$e]=createNamespace("contact-card"),contactCardProps={tel:String,name:String,type:makeStringProp("add"),addText:String,editable:truthProp};var stdin_default$11=defineComponent({name:name$W,props:contactCardProps,emits:["click"],setup(ee,{emit:ne}){const oe=ie=>{ee.editable&&ne("click",ie)},ae=()=>ee.type==="add"?ee.addText||t$e("addContact"):[createVNode("div",null,[`${t$e("name")}:${ee.name}`]),createVNode("div",null,[`${t$e("tel")}:${ee.tel}`])];return()=>createVNode(Cell,{center:!0,icon:ee.type==="edit"?"contact":"add-square",class:bem$V([ee.type]),border:!1,isLink:ee.editable,titleClass:bem$V("title"),onClick:oe},{title:ae})}});const ContactCard=withInstall(stdin_default$11),[name$V,bem$U,t$d]=createNamespace("contact-edit"),DEFAULT_CONTACT={tel:"",name:""},contactEditProps={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>extend({},DEFAULT_CONTACT)},telValidator:{type:Function,default:isMobile}};var stdin_default$10=defineComponent({name:name$V,props:contactEditProps,emits:["save","delete","changeDefault"],setup(ee,{emit:ne}){const oe=reactive(extend({},DEFAULT_CONTACT,ee.contactInfo)),ae=()=>{ee.isSaving||ne("save",oe)},ie=()=>ne("delete",oe),se=()=>createVNode("div",{class:bem$U("buttons")},[createVNode(Button,{block:!0,round:!0,type:"primary",text:t$d("save"),class:bem$U("button"),loading:ee.isSaving,nativeType:"submit"},null),ee.isEdit&&createVNode(Button,{block:!0,round:!0,text:t$d("delete"),class:bem$U("button"),loading:ee.isDeleting,onClick:ie},null)]),de=()=>createVNode(Switch,{modelValue:oe.isDefault,"onUpdate:modelValue":ve=>oe.isDefault=ve,onChange:ve=>ne("changeDefault",ve)},null),fe=()=>{if(ee.showSetDefault)return createVNode(Cell,{title:ee.setDefaultLabel,class:bem$U("switch-cell"),border:!1},{"right-icon":de})};return watch(()=>ee.contactInfo,ve=>extend(oe,DEFAULT_CONTACT,ve)),()=>createVNode(Form,{class:bem$U(),onSubmit:ae},{default:()=>[createVNode("div",{class:bem$U("fields")},[createVNode(Field,{modelValue:oe.name,"onUpdate:modelValue":ve=>oe.name=ve,clearable:!0,label:t$d("name"),rules:[{required:!0,message:t$d("nameEmpty")}],maxlength:"30",placeholder:t$d("name")},null),createVNode(Field,{modelValue:oe.tel,"onUpdate:modelValue":ve=>oe.tel=ve,clearable:!0,type:"tel",label:t$d("tel"),rules:[{validator:ee.telValidator,message:t$d("telInvalid")}],placeholder:t$d("tel")},null)]),fe(),se()]})}});const ContactEdit=withInstall(stdin_default$10),[name$U,bem$T,t$c]=createNamespace("contact-list"),contactListProps={list:Array,addText:String,modelValue:unknownProp,defaultTagText:String};var stdin_default$$=defineComponent({name:name$U,props:contactListProps,emits:["add","edit","select","update:modelValue"],setup(ee,{emit:ne}){const oe=(ae,ie)=>{const se=()=>{ne("update:modelValue",ae.id),ne("select",ae,ie)},de=()=>createVNode(Radio,{class:bem$T("radio"),name:ae.id,iconSize:18},null),fe=()=>createVNode(Icon,{name:"edit",class:bem$T("edit"),onClick:be=>{be.stopPropagation(),ne("edit",ae,ie)}},null),ve=()=>{const be=[`${ae.name},${ae.tel}`];return ae.isDefault&&ee.defaultTagText&&be.push(createVNode(Tag,{type:"primary",round:!0,class:bem$T("item-tag")},{default:()=>[ee.defaultTagText]})),be};return createVNode(Cell,{key:ae.id,isLink:!0,center:!0,class:bem$T("item"),titleClass:bem$T("item-title"),onClick:se},{icon:fe,title:ve,"right-icon":de})};return()=>createVNode("div",{class:bem$T()},[createVNode(RadioGroup,{modelValue:ee.modelValue,class:bem$T("group")},{default:()=>[ee.list&&ee.list.map(oe)]}),createVNode("div",{class:[bem$T("bottom"),"van-safe-area-bottom"]},[createVNode(Button,{round:!0,block:!0,type:"primary",class:bem$T("add"),text:ee.addText||t$c("addContact"),onClick:()=>ne("add")},null)])])}});const ContactList=withInstall(stdin_default$$);function parseFormat(ee,ne){const{days:oe}=ne;let{hours:ae,minutes:ie,seconds:se,milliseconds:de}=ne;if(ee.includes("DD")?ee=ee.replace("DD",padZero(oe)):ae+=oe*24,ee.includes("HH")?ee=ee.replace("HH",padZero(ae)):ie+=ae*60,ee.includes("mm")?ee=ee.replace("mm",padZero(ie)):se+=ie*60,ee.includes("ss")?ee=ee.replace("ss",padZero(se)):de+=se*1e3,ee.includes("S")){const fe=padZero(de,3);ee.includes("SSS")?ee=ee.replace("SSS",fe):ee.includes("SS")?ee=ee.replace("SS",fe.slice(0,2)):ee=ee.replace("S",fe.charAt(0))}return ee}const[name$T,bem$S]=createNamespace("count-down"),countDownProps={time:makeNumericProp(0),format:makeStringProp("HH:mm:ss"),autoStart:truthProp,millisecond:Boolean};var stdin_default$_=defineComponent({name:name$T,props:countDownProps,emits:["change","finish"],setup(ee,{emit:ne,slots:oe}){const{start:ae,pause:ie,reset:se,current:de}=useCountDown({time:+ee.time,millisecond:ee.millisecond,onChange:be=>ne("change",be),onFinish:()=>ne("finish")}),fe=computed(()=>parseFormat(ee.format,de.value)),ve=()=>{se(+ee.time),ee.autoStart&&ae()};return watch(()=>ee.time,ve,{immediate:!0}),useExpose({start:ae,pause:ie,reset:ve}),()=>createVNode("div",{role:"timer",class:bem$S()},[oe.default?oe.default(de.value):fe.value])}});const CountDown=withInstall(stdin_default$_);function getDate(ee){const ne=new Date(ee*1e3);return`${ne.getFullYear()}.${padZero(ne.getMonth()+1)}.${padZero(ne.getDate())}`}const formatDiscount=ee=>(ee/10).toFixed(ee%10===0?0:1),formatAmount=ee=>(ee/100).toFixed(ee%100===0?0:ee%10===0?1:2),[name$S,bem$R,t$b]=createNamespace("coupon");var stdin_default$Z=defineComponent({name:name$S,props:{chosen:Boolean,coupon:makeRequiredProp(Object),disabled:Boolean,currency:makeStringProp("¥")},setup(ee){const ne=computed(()=>{const{startAt:ie,endAt:se}=ee.coupon;return`${getDate(ie)} - ${getDate(se)}`}),oe=computed(()=>{const{coupon:ie,currency:se}=ee;if(ie.valueDesc)return[ie.valueDesc,createVNode("span",null,[ie.unitDesc||""])];if(ie.denominations){const de=formatAmount(ie.denominations);return[createVNode("span",null,[se]),` ${de}`]}return ie.discount?t$b("discount",formatDiscount(ie.discount)):""}),ae=computed(()=>{const ie=formatAmount(ee.coupon.originCondition||0);return ie==="0"?t$b("unlimited"):t$b("condition",ie)});return()=>{const{chosen:ie,coupon:se,disabled:de}=ee,fe=de&&se.reason||se.description;return createVNode("div",{class:bem$R({disabled:de})},[createVNode("div",{class:bem$R("content")},[createVNode("div",{class:bem$R("head")},[createVNode("h2",{class:bem$R("amount")},[oe.value]),createVNode("p",{class:bem$R("condition")},[se.condition||ae.value])]),createVNode("div",{class:bem$R("body")},[createVNode("p",{class:bem$R("name")},[se.name]),createVNode("p",{class:bem$R("valid")},[ne.value]),!de&&createVNode(Checkbox,{class:bem$R("corner"),modelValue:ie},null)])]),fe&&createVNode("p",{class:bem$R("description")},[fe])])}}});const Coupon=withInstall(stdin_default$Z),[name$R,bem$Q,t$a]=createNamespace("coupon-cell"),couponCellProps={title:String,border:truthProp,editable:truthProp,coupons:makeArrayProp(),currency:makeStringProp("¥"),chosenCoupon:{type:[Number,Array],default:-1}},getValue=ee=>{const{value:ne,denominations:oe}=ee;return isDef(ne)?ne:isDef(oe)?oe:0};function formatValue({coupons:ee,chosenCoupon:ne,currency:oe}){let ae=0,ie=!1;return(Array.isArray(ne)?ne:[ne]).forEach(se=>{const de=ee[+se];de&&(ie=!0,ae+=getValue(de))}),ie?`-${oe} ${(ae/100).toFixed(2)}`:ee.length===0?t$a("noCoupon"):t$a("count",ee.length)}var stdin_default$Y=defineComponent({name:name$R,props:couponCellProps,setup(ee){return()=>{const ne=Array.isArray(ee.chosenCoupon)?ee.chosenCoupon.length:ee.coupons[+ee.chosenCoupon];return createVNode(Cell,{class:bem$Q(),value:formatValue(ee),title:ee.title||t$a("title"),border:ee.border,isLink:ee.editable,valueClass:bem$Q("value",{selected:ne})},null)}}});const CouponCell=withInstall(stdin_default$Y),[name$Q,bem$P]=createNamespace("empty"),emptyProps={image:makeStringProp("default"),imageSize:[Number,String,Array],description:String};var stdin_default$X=defineComponent({name:name$Q,props:emptyProps,setup(ee,{slots:ne}){const oe=()=>{const Ae=ne.description?ne.description():ee.description;if(Ae)return createVNode("p",{class:bem$P("description")},[Ae])},ae=()=>{if(ne.default)return createVNode("div",{class:bem$P("bottom")},[ne.default()])},ie=useId(),se=Ae=>`${ie}-${Ae}`,de=Ae=>`url(#${se(Ae)})`,fe=(Ae,ke,Ne)=>createVNode("stop",{"stop-color":Ae,offset:`${ke}%`,"stop-opacity":Ne},null),ve=(Ae,ke)=>[fe(Ae,0),fe(ke,100)],be=Ae=>[createVNode("defs",null,[createVNode("radialGradient",{id:se(Ae),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[fe("#EBEDF0",0),fe("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:de(Ae),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],ye=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:se("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[fe("#FFF",0,.5),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:de("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:de("a")},null)])],$e=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:se("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[fe("#F2F3F5",0,.3),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:de("b")},null),createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:de("b")},null)])],we=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",{"data-allow-mismatch":"children"},[createVNode("linearGradient",{id:se(1),x1:"64%",y1:"100%",x2:"64%"},[fe("#FFF",0,.5),fe("#F2F3F5",100)]),createVNode("linearGradient",{id:se(2),x1:"50%",x2:"50%",y2:"84%"},[fe("#EBEDF0",0),fe("#DCDEE0",100,0)]),createVNode("linearGradient",{id:se(3),x1:"100%",x2:"100%",y2:"100%"},[ve("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:se(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[fe("#EBEDF0",0),fe("#FFF",100,0)])]),createVNode("g",{fill:"none"},[ye(),createVNode("path",{fill:de(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:de(2),"data-allow-mismatch":"attribute"},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:de(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:de(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:de(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:de(3)},null)]),createVNode("g",{transform:"translate(31 105)"},[createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),Ee=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",{"data-allow-mismatch":"children"},[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(5)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:se(6)},[ve("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:se(7)},[ve("#EAEDF1","#DCDEE0")])]),ye(),$e(),createVNode("g",{transform:"translate(36 50)",fill:"none"},[createVNode("g",{transform:"translate(8)"},[createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),createVNode("rect",{fill:de(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),createVNode("g",{transform:"translate(15 17)",fill:de(6),"data-allow-mismatch":"attribute"},[createVNode("rect",{width:"34",height:"6",rx:"1"},null),createVNode("path",{d:"M0 14h34v6H0z"},null),createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),createVNode("rect",{fill:de(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_e=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(8),"data-allow-mismatch":"attribute"},[ve("#EAEDF1","#DCDEE0")])]),ye(),$e(),be("c"),createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:de(8),"data-allow-mismatch":"attribute"},null)]),Ce=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",{"data-allow-mismatch":"children"},[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:se(9)},[ve("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:se(10)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(11)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(12)},[ve("#FFF","#F7F8FA")])]),ye(),$e(),be("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[createVNode("rect",{fill:de(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:de(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:de(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:de(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:de(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),Pe=()=>{var Ae;if(ne.image)return ne.image();const ke={error:_e,search:Ce,network:we,default:Ee};return((Ae=ke[ee.image])==null?void 0:Ae.call(ke))||createVNode("img",{src:ee.image},null)};return()=>createVNode("div",{class:bem$P()},[createVNode("div",{class:bem$P("image"),style:getSizeStyle(ee.imageSize)},[Pe()]),oe(),ae()])}});const Empty=withInstall(stdin_default$X),[name$P,bem$O,t$9]=createNamespace("coupon-list"),couponListProps={code:makeStringProp(""),coupons:makeArrayProp(),currency:makeStringProp("¥"),showCount:truthProp,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:makeArrayProp(),showExchangeBar:truthProp,showCloseButton:truthProp,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:makeNumberProp(1),exchangeButtonText:String,displayedCouponIndex:makeNumberProp(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};var stdin_default$W=defineComponent({name:name$P,props:couponListProps,emits:["change","exchange","update:code"],setup(ee,{emit:ne,slots:oe}){const[ae,ie]=useRefs(),se=ref(),de=ref(),fe=ref(0),ve=ref(0),be=ref(ee.code),ye=computed(()=>!ee.exchangeButtonLoading&&(ee.exchangeButtonDisabled||!be.value||be.value.length{const Ne=useRect(se).height,Oe=useRect(de).height+44;ve.value=(Ne>Oe?Ne:windowHeight.value)-Oe},we=()=>{ne("exchange",be.value),ee.code||(be.value="")},Ee=ke=>{nextTick(()=>{var Ne;return(Ne=ae.value[ke])==null?void 0:Ne.scrollIntoView()})},_e=()=>createVNode(Empty,{image:ee.emptyImage},{default:()=>[createVNode("p",{class:bem$O("empty-tip")},[t$9("noCoupon")])]}),Ce=()=>{if(ee.showExchangeBar)return createVNode("div",{ref:de,class:bem$O("exchange-bar")},[createVNode(Field,{modelValue:be.value,"onUpdate:modelValue":ke=>be.value=ke,clearable:!0,border:!1,class:bem$O("field"),placeholder:ee.inputPlaceholder||t$9("placeholder"),maxlength:"20"},null),createVNode(Button,{plain:!0,type:"primary",class:bem$O("exchange"),text:ee.exchangeButtonText||t$9("exchange"),loading:ee.exchangeButtonLoading,disabled:ye.value,onClick:we},null)])},Pe=()=>{const{coupons:ke,chosenCoupon:Ne}=ee,Oe=ee.showCount?` (${ke.length})`:"",Re=(ee.enabledTitle||t$9("enable"))+Oe,Be=(Me=[],Le=0)=>Me.includes(Le)?Me.filter(Xe=>Xe!==Le):[...Me,Le];return createVNode(Tab,{title:Re},{default:()=>{var Me;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${ve.value}px`}},[ke.map((Le,Xe)=>createVNode(Coupon,{key:Le.id,ref:ie(Xe),coupon:Le,chosen:Array.isArray(Ne)?Ne.includes(Xe):Xe===Ne,currency:ee.currency,onClick:()=>ne("change",Array.isArray(Ne)?Be(Ne,Xe):Xe)},null)),!ke.length&&_e(),(Me=oe["list-footer"])==null?void 0:Me.call(oe)])]}})},Ae=()=>{const{disabledCoupons:ke}=ee,Ne=ee.showCount?` (${ke.length})`:"",Oe=(ee.disabledTitle||t$9("disabled"))+Ne;return createVNode(Tab,{title:Oe},{default:()=>{var Re;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${ve.value}px`}},[ke.map(Be=>createVNode(Coupon,{disabled:!0,key:Be.id,coupon:Be,currency:ee.currency},null)),!ke.length&&_e(),(Re=oe["disabled-list-footer"])==null?void 0:Re.call(oe)])]}})};return watch(()=>ee.code,ke=>{be.value=ke}),watch(windowHeight,$e),watch(be,ke=>ne("update:code",ke)),watch(()=>ee.displayedCouponIndex,Ee),onMounted(()=>{$e(),Ee(ee.displayedCouponIndex)}),()=>createVNode("div",{ref:se,class:bem$O()},[Ce(),createVNode(Tabs,{active:fe.value,"onUpdate:active":ke=>fe.value=ke,class:bem$O("tab")},{default:()=>[Pe(),Ae()]}),createVNode("div",{class:bem$O("bottom")},[oe["list-button"]?oe["list-button"]():withDirectives(createVNode(Button,{round:!0,block:!0,type:"primary",class:bem$O("close"),text:ee.closeButtonText||t$9("close"),onClick:()=>ne("change",Array.isArray(ee.chosenCoupon)?[]:-1)},null),[[vShow,ee.showCloseButton]])])])}});const CouponList=withInstall(stdin_default$W),currentYear=new Date().getFullYear(),[name$O]=createNamespace("date-picker"),datePickerProps=extend({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate}});var stdin_default$V=defineComponent({name:name$O,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.modelValue),ie=ref(!1),se=ref(),de=computed(()=>ie.value?ee.modelValue:ae.value),fe=Re=>Re===ee.minDate.getFullYear(),ve=Re=>Re===ee.maxDate.getFullYear(),be=Re=>Re===ee.minDate.getMonth()+1,ye=Re=>Re===ee.maxDate.getMonth()+1,$e=Re=>{const{minDate:Be,columnsType:Me}=ee,Le=Me.indexOf(Re),Xe=de.value[Le];if(Xe)return+Xe;switch(Re){case"year":return Be.getFullYear();case"month":return Be.getMonth()+1;case"day":return Be.getDate()}},we=()=>{const Re=ee.minDate.getFullYear(),Be=ee.maxDate.getFullYear();return genOptions(Re,Be,"year",ee.formatter,ee.filter,de.value)},Ee=()=>{const Re=$e("year"),Be=fe(Re)?ee.minDate.getMonth()+1:1,Me=ve(Re)?ee.maxDate.getMonth()+1:12;return genOptions(Be,Me,"month",ee.formatter,ee.filter,de.value)},_e=()=>{const Re=$e("year"),Be=$e("month"),Me=fe(Re)&&be(Be)?ee.minDate.getDate():1,Le=ve(Re)&&ye(Be)?ee.maxDate.getDate():getMonthEndDay(Re,Be);return genOptions(Me,Le,"day",ee.formatter,ee.filter,de.value)},Ce=()=>{var Re;return(Re=se.value)==null?void 0:Re.confirm()},Pe=()=>ae.value,Ae=computed(()=>ee.columnsType.map(Re=>{switch(Re){case"year":return we();case"month":return Ee();case"day":return _e();default:return[]}}));watch(ae,Re=>{isSameValue(Re,ee.modelValue)||ne("update:modelValue",Re)}),watch(()=>ee.modelValue,(Re,Be)=>{ie.value=isSameValue(Be,ae.value),Re=formatValueRange(Re,Ae.value),isSameValue(Re,ae.value)||(ae.value=Re),ie.value=!1},{immediate:!0});const ke=(...Re)=>ne("change",...Re),Ne=(...Re)=>ne("cancel",...Re),Oe=(...Re)=>ne("confirm",...Re);return useExpose({confirm:Ce,getSelectedDate:Pe}),()=>createVNode(Picker,mergeProps({ref:se,modelValue:ae.value,"onUpdate:modelValue":Re=>ae.value=Re,columns:Ae.value,onChange:ke,onCancel:Ne,onConfirm:Oe},pick(ee,pickerInheritKeys)),oe)}});const DatePicker=withInstall(stdin_default$V),[name$N,bem$N,t$8]=createNamespace("dialog"),dialogProps=extend({},popupSharedProps,{title:String,theme:String,width:numericProp,message:[String,Function],callback:Function,allowHtml:Boolean,className:unknownProp,transition:makeStringProp("van-dialog-bounce"),messageAlign:String,closeOnPopstate:truthProp,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:truthProp,closeOnClickOverlay:Boolean,keyboardEnabled:truthProp}),popupInheritKeys$1=[...popupSharedPropKeys,"transition","closeOnPopstate"];var stdin_default$U=defineComponent({name:name$N,props:dialogProps,emits:["confirm","cancel","keydown","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=reactive({confirm:!1,cancel:!1}),se=Ae=>ne("update:show",Ae),de=Ae=>{var ke;se(!1),(ke=ee.callback)==null||ke.call(ee,Ae)},fe=Ae=>()=>{ee.show&&(ne(Ae),ee.beforeClose?(ie[Ae]=!0,callInterceptor(ee.beforeClose,{args:[Ae],done(){de(Ae),ie[Ae]=!1},canceled(){ie[Ae]=!1}})):de(Ae))},ve=fe("cancel"),be=fe("confirm"),ye=withKeys(Ae=>{var ke,Ne;if(!ee.keyboardEnabled||Ae.target!==((Ne=(ke=ae.value)==null?void 0:ke.popupRef)==null?void 0:Ne.value))return;({Enter:ee.showConfirmButton?be:noop,Escape:ee.showCancelButton?ve:noop})[Ae.key](),ne("keydown",Ae)},["enter","esc"]),$e=()=>{const Ae=oe.title?oe.title():ee.title;if(Ae)return createVNode("div",{class:bem$N("header",{isolated:!ee.message&&!oe.default})},[Ae])},we=Ae=>{const{message:ke,allowHtml:Ne,messageAlign:Oe}=ee,Re=bem$N("message",{"has-title":Ae,[Oe]:Oe}),Be=isFunction(ke)?ke():ke;return Ne&&typeof Be=="string"?createVNode("div",{class:Re,innerHTML:Be},null):createVNode("div",{class:Re},[Be])},Ee=()=>{if(oe.default)return createVNode("div",{class:bem$N("content")},[oe.default()]);const{title:Ae,message:ke,allowHtml:Ne}=ee;if(ke){const Oe=!!(Ae||oe.title);return createVNode("div",{key:Ne?1:0,class:bem$N("content",{isolated:!Oe})},[we(Oe)])}},_e=()=>createVNode("div",{class:[BORDER_TOP,bem$N("footer")]},[ee.showCancelButton&&createVNode(Button,{size:"large",text:ee.cancelButtonText||t$8("cancel"),class:bem$N("cancel"),style:{color:ee.cancelButtonColor},loading:ie.cancel,disabled:ee.cancelButtonDisabled,onClick:ve},null),ee.showConfirmButton&&createVNode(Button,{size:"large",text:ee.confirmButtonText||t$8("confirm"),class:[bem$N("confirm"),{[BORDER_LEFT]:ee.showCancelButton}],style:{color:ee.confirmButtonColor},loading:ie.confirm,disabled:ee.confirmButtonDisabled,onClick:be},null)]),Ce=()=>createVNode(ActionBar,{class:bem$N("footer")},{default:()=>[ee.showCancelButton&&createVNode(ActionBarButton,{type:"warning",text:ee.cancelButtonText||t$8("cancel"),class:bem$N("cancel"),color:ee.cancelButtonColor,loading:ie.cancel,disabled:ee.cancelButtonDisabled,onClick:ve},null),ee.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:ee.confirmButtonText||t$8("confirm"),class:bem$N("confirm"),color:ee.confirmButtonColor,loading:ie.confirm,disabled:ee.confirmButtonDisabled,onClick:be},null)]}),Pe=()=>oe.footer?oe.footer():ee.theme==="round-button"?Ce():_e();return()=>{const{width:Ae,title:ke,theme:Ne,message:Oe,className:Re}=ee;return createVNode(Popup,mergeProps({ref:ae,role:"dialog",class:[bem$N([Ne]),Re],style:{width:addUnit(Ae)},tabindex:0,"aria-labelledby":ke||Oe,onKeydown:ye,"onUpdate:show":se},pick(ee,popupInheritKeys$1)),{default:()=>[$e(),Ee(),Pe()]})}}});const Dialog=withInstall(stdin_default$U),[name$M,bem$M]=createNamespace("divider"),dividerProps={dashed:Boolean,hairline:truthProp,vertical:Boolean,contentPosition:makeStringProp("center")};var stdin_default$T=defineComponent({name:name$M,props:dividerProps,setup(ee,{slots:ne}){return()=>{var oe;return createVNode("div",{role:"separator",class:bem$M({dashed:ee.dashed,hairline:ee.hairline,vertical:ee.vertical,[`content-${ee.contentPosition}`]:!!ne.default&&!ee.vertical})},[!ee.vertical&&((oe=ne.default)==null?void 0:oe.call(ne))])}}});const Divider=withInstall(stdin_default$T),[name$L,bem$L]=createNamespace("dropdown-menu"),dropdownMenuProps={overlay:truthProp,zIndex:numericProp,duration:makeNumericProp(.2),direction:makeStringProp("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:truthProp,closeOnClickOverlay:truthProp,swipeThreshold:numericProp},DROPDOWN_KEY=Symbol(name$L);var stdin_default$S=defineComponent({name:name$L,props:dropdownMenuProps,setup(ee,{slots:ne}){const oe=useId(),ae=ref(),ie=ref(),se=ref(0),{children:de,linkChildren:fe}=useChildren(DROPDOWN_KEY),ve=useScrollParent(ae),be=computed(()=>de.some(ke=>ke.state.showWrapper)),ye=computed(()=>ee.swipeThreshold&&de.length>+ee.swipeThreshold),$e=computed(()=>{if(be.value&&isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),we=()=>{de.forEach(ke=>{ke.toggle(!1)})},Ee=()=>{ee.closeOnClickOutside&&we()},_e=()=>{if(ie.value){const ke=useRect(ie);ee.direction==="down"?se.value=ke.bottom:se.value=windowHeight.value-ke.top}},Ce=()=>{be.value&&_e()},Pe=ke=>{de.forEach((Ne,Oe)=>{Oe===ke?Ne.toggle():Ne.state.showPopup&&Ne.toggle(!1,{immediate:!0})})},Ae=(ke,Ne)=>{const{showPopup:Oe}=ke.state,{disabled:Re,titleClass:Be}=ke;return createVNode("div",{id:`${oe}-${Ne}`,role:"button",tabindex:Re?void 0:0,"data-allow-mismatch":"attribute",class:[bem$L("item",{disabled:Re,grow:ye.value}),{[HAPTICS_FEEDBACK]:!Re}],onClick:()=>{Re||Pe(Ne)}},[createVNode("span",{class:[bem$L("title",{down:Oe===(ee.direction==="down"),active:Oe}),Be],style:{color:Oe?ee.activeColor:""}},[createVNode("div",{class:"van-ellipsis"},[ke.renderTitle()])])])};return useExpose({close:we}),fe({id:oe,props:ee,offset:se,updateOffset:_e}),useClickAway(ae,Ee),useEventListener("scroll",Ce,{target:ve,passive:!0}),()=>{var ke;return createVNode("div",{ref:ae,class:bem$L()},[createVNode("div",{ref:ie,style:$e.value,class:bem$L("bar",{opened:be.value,scrollable:ye.value})},[de.map(Ae)]),(ke=ne.default)==null?void 0:ke.call(ne)])}}});const[name$K,bem$K]=createNamespace("dropdown-item"),dropdownItemProps={title:String,options:makeArrayProp(),disabled:Boolean,teleport:[String,Object],lazyRender:truthProp,modelValue:unknownProp,titleClass:unknownProp};var stdin_default$R=defineComponent({name:name$K,inheritAttrs:!1,props:dropdownItemProps,emits:["open","opened","close","closed","change","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=reactive({showPopup:!1,transition:!0,showWrapper:!1}),se=ref(),{parent:de,index:fe}=useParent(DROPDOWN_KEY);if(!de)return;const ve=ke=>()=>ne(ke),be=ve("open"),ye=ve("close"),$e=ve("opened"),we=()=>{ie.showWrapper=!1,ne("closed")},Ee=ke=>{ee.teleport&&ke.stopPropagation()},_e=(ke=!ie.showPopup,Ne={})=>{ke!==ie.showPopup&&(ie.showPopup=ke,ie.transition=!Ne.immediate,ke&&(de.updateOffset(),ie.showWrapper=!0))},Ce=()=>{if(oe.title)return oe.title();if(ee.title)return ee.title;const ke=ee.options.find(Ne=>Ne.value===ee.modelValue);return ke?ke.text:""},Pe=ke=>{const{activeColor:Ne}=de.props,{disabled:Oe}=ke,Re=ke.value===ee.modelValue,Be=()=>{Oe||(ie.showPopup=!1,ke.value!==ee.modelValue&&(ne("update:modelValue",ke.value),ne("change",ke.value)))},Me=()=>{if(Re)return createVNode(Icon,{class:bem$K("icon"),color:Oe?void 0:Ne,name:"success"},null)};return createVNode(Cell,{role:"menuitem",key:String(ke.value),icon:ke.icon,title:ke.text,class:bem$K("option",{active:Re,disabled:Oe}),style:{color:Re?Ne:""},tabindex:Re?0:-1,clickable:!Oe,onClick:Be},{value:Me})},Ae=()=>{const{offset:ke}=de,{autoLocate:Ne,zIndex:Oe,overlay:Re,duration:Be,direction:Me,closeOnClickOverlay:Le}=de.props,Xe=getZIndexStyle(Oe);let Ke=ke.value;if(Ne&&se.value){const De=getContainingBlock$1(se.value);De&&(Ke-=useRect(De).top)}return Me==="down"?Xe.top=`${Ke}px`:Xe.bottom=`${Ke}px`,withDirectives(createVNode("div",mergeProps({ref:se,style:Xe,class:bem$K([Me]),onClick:Ee},ae),[createVNode(Popup,{show:ie.showPopup,"onUpdate:show":De=>ie.showPopup=De,role:"menu",class:bem$K("content"),overlay:Re,position:Me==="down"?"top":"bottom",duration:ie.transition?Be:0,lazyRender:ee.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${de.id}-${fe.value}`,"data-allow-mismatch":"attribute",closeOnClickOverlay:Le,onOpen:be,onClose:ye,onOpened:$e,onClosed:we},{default:()=>{var De;return[ee.options.map(Pe),(De=oe.default)==null?void 0:De.call(oe)]}})]),[[vShow,ie.showWrapper]])};return useExpose({state:ie,toggle:_e,renderTitle:Ce}),()=>ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ae()]}):Ae()}});const DropdownItem=withInstall(stdin_default$R),DropdownMenu=withInstall(stdin_default$S),floatingBubbleProps={gap:makeNumberProp(24),icon:String,axis:makeStringProp("y"),magnetic:String,offset:{type:Object,default:()=>({x:-1,y:-1})},teleport:{type:[String,Object],default:"body"}},[name$J,bem$J]=createNamespace("floating-bubble");var stdin_default$Q=defineComponent({name:name$J,inheritAttrs:!1,props:floatingBubbleProps,emits:["click","update:offset","offsetChange"],setup(ee,{slots:ne,emit:oe,attrs:ae}){const ie=ref(),se=ref({x:0,y:0,width:0,height:0}),de=computed(()=>({top:ee.gap,right:windowWidth.value-se.value.width-ee.gap,bottom:windowHeight.value-se.value.height-ee.gap,left:ee.gap})),fe=ref(!1);let ve=!1;const be=computed(()=>{const Ne={},Oe=addUnit(se.value.x),Re=addUnit(se.value.y);return Ne.transform=`translate3d(${Oe}, ${Re}, 0)`,(fe.value||!ve)&&(Ne.transition="none"),Ne}),ye=()=>{if(!ke.value)return;const{width:Ne,height:Oe}=useRect(ie.value),{offset:Re}=ee;se.value={x:Re.x>-1?Re.x:windowWidth.value-Ne-ee.gap,y:Re.y>-1?Re.y:windowHeight.value-Oe-ee.gap,width:Ne,height:Oe}},$e=useTouch();let we=0,Ee=0;const _e=Ne=>{$e.start(Ne),fe.value=!0,we=se.value.x,Ee=se.value.y};useEventListener("touchmove",Ne=>{if(Ne.preventDefault(),$e.move(Ne),ee.axis!=="lock"&&!$e.isTap.value){if(ee.axis==="x"||ee.axis==="xy"){let Re=we+$e.deltaX.value;Rede.value.right&&(Re=de.value.right),se.value.x=Re}if(ee.axis==="y"||ee.axis==="xy"){let Re=Ee+$e.deltaY.value;Rede.value.bottom&&(Re=de.value.bottom),se.value.y=Re}const Oe=pick(se.value,["x","y"]);oe("update:offset",Oe)}},{target:ie});const Pe=()=>{fe.value=!1,nextTick(()=>{if(ee.magnetic==="x"){const Ne=closest([de.value.left,de.value.right],se.value.x);se.value.x=Ne}if(ee.magnetic==="y"){const Ne=closest([de.value.top,de.value.bottom],se.value.y);se.value.y=Ne}if(!$e.isTap.value){const Ne=pick(se.value,["x","y"]);oe("update:offset",Ne),(we!==Ne.x||Ee!==Ne.y)&&oe("offsetChange",Ne)}})},Ae=Ne=>{$e.isTap.value?oe("click",Ne):Ne.stopPropagation()};onMounted(()=>{ye(),nextTick(()=>{ve=!0})}),watch([windowWidth,windowHeight,()=>ee.gap,()=>ee.offset],ye,{deep:!0});const ke=ref(!0);return onActivated(()=>{ke.value=!0}),onDeactivated(()=>{ee.teleport&&(ke.value=!1)}),()=>{const Ne=withDirectives(createVNode("div",mergeProps({class:bem$J(),ref:ie,onTouchstartPassive:_e,onTouchend:Pe,onTouchcancel:Pe,onClickCapture:Ae,style:be.value},ae),[ne.default?ne.default():createVNode(stdin_default$1O,{name:ee.icon,class:bem$J("icon")},null)]),[[vShow,ke.value]]);return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ne]}):Ne}}});const FloatingBubble=withInstall(stdin_default$Q),floatingPanelProps={height:makeNumericProp(0),anchors:makeArrayProp(),duration:makeNumericProp(.3),contentDraggable:truthProp,lockScroll:Boolean,safeAreaInsetBottom:truthProp},[name$I,bem$I]=createNamespace("floating-panel");var stdin_default$P=defineComponent({name:name$I,props:floatingPanelProps,emits:["heightChange","update:height"],setup(ee,{emit:ne,slots:oe}){const ie=ref(),se=ref(),de=useSyncPropRef(()=>+ee.height,Ne=>ne("update:height",Ne)),fe=computed(()=>{var Ne,Oe;return{min:(Ne=ee.anchors[0])!=null?Ne:100,max:(Oe=ee.anchors[ee.anchors.length-1])!=null?Oe:Math.round(windowHeight.value*.6)}}),ve=computed(()=>ee.anchors.length>=2?ee.anchors:[fe.value.min,fe.value.max]),be=ref(!1),ye=computed(()=>({height:addUnit(fe.value.max),transform:`translateY(calc(100% + ${addUnit(-de.value)}))`,transition:be.value?"none":`transform ${ee.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),$e=Ne=>{const Oe=Math.abs(Ne),{min:Re,max:Be}=fe.value;return Oe>Be?-(Be+(Oe-Be)*.2):Oe{_e.start(Ne),be.value=!0,we=-de.value,Ee=-1},Pe=Ne=>{var Oe;_e.move(Ne);const Re=Ne.target;if(se.value===Re||(Oe=se.value)!=null&&Oe.contains(Re)){const{scrollTop:Me}=se.value;if(Ee=Math.max(Ee,Me),!ee.contentDraggable)return;if(-we0)||Ee>0)return}const Be=_e.deltaY.value+we;de.value=-$e(Be)},Ae=()=>{Ee=-1,be.value=!1,de.value=closest(ve.value,de.value),de.value!==-we&&ne("heightChange",{height:de.value})};watch(fe,()=>{de.value=closest(ve.value,de.value)},{immediate:!0}),useLockScroll(ie,()=>ee.lockScroll||be.value),useEventListener("touchmove",Pe,{target:ie});const ke=()=>oe.header?oe.header():createVNode("div",{class:bem$I("header")},[createVNode("div",{class:bem$I("header-bar")},null)]);return()=>{var Ne;return createVNode("div",{class:[bem$I(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}],ref:ie,style:ye.value,onTouchstartPassive:Ce,onTouchend:Ae,onTouchcancel:Ae},[ke(),createVNode("div",{class:bem$I("content"),ref:se},[(Ne=oe.default)==null?void 0:Ne.call(oe)])])}}});const FloatingPanel=withInstall(stdin_default$P),[name$H,bem$H]=createNamespace("grid"),gridProps={square:Boolean,center:truthProp,border:truthProp,gutter:numericProp,reverse:Boolean,iconSize:numericProp,direction:String,clickable:Boolean,columnNum:makeNumericProp(4)},GRID_KEY=Symbol(name$H);var stdin_default$O=defineComponent({name:name$H,props:gridProps,setup(ee,{slots:ne}){const{linkChildren:oe}=useChildren(GRID_KEY);return oe({props:ee}),()=>{var ae;return createVNode("div",{style:{paddingLeft:addUnit(ee.gutter)},class:[bem$H(),{[BORDER_TOP]:ee.border&&!ee.gutter}]},[(ae=ne.default)==null?void 0:ae.call(ne)])}}});const Grid=withInstall(stdin_default$O),[name$G,bem$G]=createNamespace("grid-item"),gridItemProps=extend({},routeProps,{dot:Boolean,text:String,icon:String,badge:numericProp,iconColor:String,iconPrefix:String,badgeProps:Object});var stdin_default$N=defineComponent({name:name$G,props:gridItemProps,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(GRID_KEY),ie=useRoute();if(!oe)return;const se=computed(()=>{const{square:ye,gutter:$e,columnNum:we}=oe.props,Ee=`${100/+we}%`,_e={flexBasis:Ee};if(ye)_e.paddingTop=Ee;else if($e){const Ce=addUnit($e);_e.paddingRight=Ce,ae.value>=+we&&(_e.marginTop=Ce)}return _e}),de=computed(()=>{const{square:ye,gutter:$e}=oe.props;if(ye&&$e){const we=addUnit($e);return{right:we,bottom:we,height:"auto"}}}),fe=()=>{if(ne.icon)return createVNode(Badge,mergeProps({dot:ee.dot,content:ee.badge},ee.badgeProps),{default:ne.icon});if(ee.icon)return createVNode(Icon,{dot:ee.dot,name:ee.icon,size:oe.props.iconSize,badge:ee.badge,class:bem$G("icon"),color:ee.iconColor,badgeProps:ee.badgeProps,classPrefix:ee.iconPrefix},null)},ve=()=>{if(ne.text)return ne.text();if(ee.text)return createVNode("span",{class:bem$G("text")},[ee.text])},be=()=>ne.default?ne.default():[fe(),ve()];return()=>{const{center:ye,border:$e,square:we,gutter:Ee,reverse:_e,direction:Ce,clickable:Pe}=oe.props,Ae=[bem$G("content",[Ce,{center:ye,square:we,reverse:_e,clickable:Pe,surround:$e&&Ee}]),{[BORDER]:$e}];return createVNode("div",{class:[bem$G({square:we})],style:se.value},[createVNode("div",{role:Pe?"button":void 0,class:Ae,style:de.value,tabindex:Pe?0:void 0,onClick:ie},[be()])])}}});const GridItem=withInstall(stdin_default$N),[name$F,bem$F]=createNamespace("highlight"),highlightProps={autoEscape:truthProp,caseSensitive:Boolean,highlightClass:String,highlightTag:makeStringProp("span"),keywords:makeRequiredProp([String,Array]),sourceString:makeStringProp(""),tag:makeStringProp("div"),unhighlightClass:String,unhighlightTag:makeStringProp("span")};var stdin_default$M=defineComponent({name:name$F,props:highlightProps,setup(ee){const ne=computed(()=>{const{autoEscape:ae,caseSensitive:ie,keywords:se,sourceString:de}=ee,fe=ie?"g":"gi";let be=(Array.isArray(se)?se:[se]).filter($e=>$e).reduce(($e,we)=>{ae&&(we=we.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const Ee=new RegExp(we,fe);let _e;for(;_e=Ee.exec(de);){const Ce=_e.index,Pe=Ee.lastIndex;if(Ce>=Pe){Ee.lastIndex++;continue}$e.push({start:Ce,end:Pe,highlight:!0})}return $e},[]);be=be.sort(($e,we)=>$e.start-we.start).reduce(($e,we)=>{const Ee=$e[$e.length-1];if(!Ee||we.start>Ee.end){const _e=Ee?Ee.end:0,Ce=we.start;_e!==Ce&&$e.push({start:_e,end:Ce,highlight:!1}),$e.push(we)}else Ee.end=Math.max(Ee.end,we.end);return $e},[]);const ye=be[be.length-1];return ye||be.push({start:0,end:de.length,highlight:!1}),ye&&ye.end{const{sourceString:ae,highlightClass:ie,unhighlightClass:se,highlightTag:de,unhighlightTag:fe}=ee;return ne.value.map(ve=>{const{start:be,end:ye,highlight:$e}=ve,we=ae.slice(be,ye);return $e?createVNode(de,{class:[bem$F("tag"),ie]},{default:()=>[we]}):createVNode(fe,{class:se},{default:()=>[we]})})};return()=>{const{tag:ae}=ee;return createVNode(ae,{class:bem$F()},{default:()=>[oe()]})}}});const Highlight=withInstall(stdin_default$M),getDistance=ee=>Math.sqrt((ee[0].clientX-ee[1].clientX)**2+(ee[0].clientY-ee[1].clientY)**2),getCenter=ee=>({x:(ee[0].clientX+ee[1].clientX)/2,y:(ee[0].clientY+ee[1].clientY)/2}),bem$E=createNamespace("image-preview")[1],longImageRatio=2.6,imagePreviewItemProps={src:String,show:Boolean,active:Number,minZoom:makeRequiredProp(numericProp),maxZoom:makeRequiredProp(numericProp),rootWidth:makeRequiredProp(Number),rootHeight:makeRequiredProp(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var stdin_default$L=defineComponent({props:imagePreviewItemProps,emits:["scale","close","longPress"],setup(ee,{emit:ne,slots:oe}){const ae=reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),ie=useTouch(),se=ref(),de=ref(),fe=ref(!1),ve=ref(!1);let be=0;const ye=computed(()=>{const{scale:Fe,moveX:Ze,moveY:ot,moving:Nt,zooming:Mt,initializing:Ue}=ae,Pt={transitionDuration:Mt||Nt||Ue?"0s":".3s"};return(Fe!==1||ve.value)&&(Pt.transform=`matrix(${Fe}, 0, 0, ${Fe}, ${Ze}, ${ot})`),Pt}),$e=computed(()=>{if(ae.imageRatio){const{rootWidth:Fe,rootHeight:Ze}=ee,ot=fe.value?Ze/ae.imageRatio:Fe;return Math.max(0,(ae.scale*ot-Fe)/2)}return 0}),we=computed(()=>{if(ae.imageRatio){const{rootWidth:Fe,rootHeight:Ze}=ee,ot=fe.value?Ze:Fe*ae.imageRatio;return Math.max(0,(ae.scale*ot-Ze)/2)}return 0}),Ee=(Fe,Ze)=>{var ot;if(Fe=clamp(Fe,+ee.minZoom,+ee.maxZoom+1),Fe!==ae.scale){const Nt=Fe/ae.scale;if(ae.scale=Fe,Ze){const Mt=useRect((ot=se.value)==null?void 0:ot.$el),Ue={x:Mt.width*.5,y:Mt.height*.5},Pt=ae.moveX-(Ze.x-Mt.left-Ue.x)*(Nt-1),Dt=ae.moveY-(Ze.y-Mt.top-Ue.y)*(Nt-1);ae.moveX=clamp(Pt,-$e.value,$e.value),ae.moveY=clamp(Dt,-we.value,we.value)}else ae.moveX=0,ae.moveY=ve.value?be:0;ne("scale",{scale:Fe,index:ee.active})}},_e=()=>{Ee(1)},Ce=()=>{const Fe=ae.scale>1?1:2;Ee(Fe,Fe===2||ve.value?{x:ie.startX.value,y:ie.startY.value}:void 0)};let Pe,Ae,ke,Ne,Oe,Re,Be,Me,Le=!1;const Xe=Fe=>{const{touches:Ze}=Fe;if(Pe=Ze.length,Pe===2&&ee.disableZoom)return;const{offsetX:ot}=ie;ie.start(Fe),Ae=ae.moveX,ke=ae.moveY,Me=Date.now(),Le=!1,ae.moving=Pe===1&&(ae.scale!==1||ve.value),ae.zooming=Pe===2&&!ot.value,ae.zooming&&(Ne=ae.scale,Oe=getDistance(Ze))},Ke=Fe=>{const{touches:Ze}=Fe;if(ie.move(Fe),ae.moving){const{deltaX:ot,deltaY:Nt}=ie,Mt=ot.value+Ae,Ue=Nt.value+ke;if((ee.vertical?ie.isVertical()&&Math.abs(Ue)>we.value:ie.isHorizontal()&&Math.abs(Mt)>$e.value)&&!Le){ae.moving=!1;return}Le=!0,preventDefault(Fe,!0),ae.moveX=clamp(Mt,-$e.value,$e.value),ae.moveY=clamp(Ue,-we.value,we.value)}if(ae.zooming&&(preventDefault(Fe,!0),Ze.length===2)){const ot=getDistance(Ze),Nt=Ne*ot/Oe;Re=getCenter(Ze),Ee(Nt,Re)}},De=Fe=>{var Ze;const ot=(Ze=de.value)==null?void 0:Ze.$el;if(!ot)return;const Nt=ot.firstElementChild,Mt=Fe.target===ot,Ue=Nt==null?void 0:Nt.contains(Fe.target);!ee.closeOnClickImage&&Ue||!ee.closeOnClickOverlay&&Mt||ne("close")},je=Fe=>{if(Pe>1)return;const Ze=Date.now()-Me,ot=250;ie.isTap.value&&(Ze{De(Fe),Be=null},ot):De(Fe):Ze>LONG_PRESS_START_TIME&&ne("longPress"))},He=Fe=>{let Ze=!1;if((ae.moving||ae.zooming)&&(Ze=!0,ae.moving&&Ae===ae.moveX&&ke===ae.moveY&&(Ze=!1),!Fe.touches.length)){ae.zooming&&(ae.moveX=clamp(ae.moveX,-$e.value,$e.value),ae.moveY=clamp(ae.moveY,-we.value,we.value),ae.zooming=!1),ae.moving=!1,Ae=0,ke=0,Ne=1,ae.scale<1&&_e();const ot=+ee.maxZoom;ae.scale>ot&&Ee(ot,Re)}preventDefault(Fe,Ze),je(Fe),ie.reset()},qe=()=>{const{rootWidth:Fe,rootHeight:Ze}=ee,ot=Ze/Fe,{imageRatio:Nt}=ae;fe.value=ae.imageRatio>ot&&Ntot&&Nt>=longImageRatio,ve.value&&(be=(Nt*Fe-Ze)/2,ae.moveY=be,ae.initializing=!0,raf(()=>{ae.initializing=!1})),_e()},ze=Fe=>{const{naturalWidth:Ze,naturalHeight:ot}=Fe.target;ae.imageRatio=ot/Ze,qe()};return watch(()=>ee.active,_e),watch(()=>ee.show,Fe=>{Fe||_e()}),watch(()=>[ee.rootWidth,ee.rootHeight],qe),useEventListener("touchmove",Ke,{target:computed(()=>{var Fe;return(Fe=de.value)==null?void 0:Fe.$el})}),useExpose({resetScale:_e}),()=>{const Fe={loading:()=>createVNode(Loading,{type:"spinner"},null)};return createVNode(SwipeItem,{ref:de,class:bem$E("swipe-item"),onTouchstartPassive:Xe,onTouchend:He,onTouchcancel:He},{default:()=>[oe.image?createVNode("div",{class:bem$E("image-wrap")},[oe.image({src:ee.src,onLoad:ze,style:ye.value})]):createVNode(Image$1,{ref:se,src:ee.src,fit:"contain",class:bem$E("image",{vertical:fe.value}),style:ye.value,onLoad:ze},Fe)]})}}});const[name$E,bem$D]=createNamespace("image-preview"),popupProps$1=["show","teleport","transition","overlayStyle","closeOnPopstate"],imagePreviewProps={show:Boolean,loop:truthProp,images:makeArrayProp(),minZoom:makeNumericProp(1/3),maxZoom:makeNumericProp(3),overlay:truthProp,vertical:Boolean,closeable:Boolean,showIndex:truthProp,className:unknownProp,closeIcon:makeStringProp("clear"),transition:String,beforeClose:Function,doubleScale:truthProp,overlayClass:unknownProp,overlayStyle:Object,swipeDuration:makeNumericProp(300),startPosition:makeNumericProp(0),showIndicators:Boolean,closeOnPopstate:truthProp,closeOnClickImage:truthProp,closeOnClickOverlay:truthProp,closeIconPosition:makeStringProp("top-right"),teleport:[String,Object]};var stdin_default$K=defineComponent({name:name$E,props:imagePreviewProps,emits:["scale","close","closed","change","longPress","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=reactive({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),de=()=>{if(ae.value){const Ne=useRect(ae.value.$el);se.rootWidth=Ne.width,se.rootHeight=Ne.height,ae.value.resize()}},fe=Ne=>ne("scale",Ne),ve=Ne=>ne("update:show",Ne),be=()=>{callInterceptor(ee.beforeClose,{args:[se.active],done:()=>ve(!1)})},ye=Ne=>{Ne!==se.active&&(se.active=Ne,ne("change",Ne))},$e=()=>{if(ee.showIndex)return createVNode("div",{class:bem$D("index")},[oe.index?oe.index({index:se.active}):`${se.active+1} / ${ee.images.length}`])},we=()=>{if(oe.cover)return createVNode("div",{class:bem$D("cover")},[oe.cover()])},Ee=()=>{se.disableZoom=!0},_e=()=>{se.disableZoom=!1},Ce=()=>createVNode(Swipe,{ref:ae,lazyRender:!0,loop:ee.loop,class:bem$D("swipe"),vertical:ee.vertical,duration:ee.swipeDuration,initialSwipe:ee.startPosition,showIndicators:ee.showIndicators,indicatorColor:"white",onChange:ye,onDragEnd:_e,onDragStart:Ee},{default:()=>[ee.images.map((Ne,Oe)=>createVNode(stdin_default$L,{ref:Re=>{Oe===se.active&&(ie.value=Re)},src:Ne,show:ee.show,active:se.active,maxZoom:ee.maxZoom,minZoom:ee.minZoom,rootWidth:se.rootWidth,rootHeight:se.rootHeight,disableZoom:se.disableZoom,doubleScale:ee.doubleScale,closeOnClickImage:ee.closeOnClickImage,closeOnClickOverlay:ee.closeOnClickOverlay,vertical:ee.vertical,onScale:fe,onClose:be,onLongPress:()=>ne("longPress",{index:Oe})},{image:oe.image}))]}),Pe=()=>{if(ee.closeable)return createVNode(Icon,{role:"button",name:ee.closeIcon,class:[bem$D("close-icon",ee.closeIconPosition),HAPTICS_FEEDBACK],onClick:be},null)},Ae=()=>ne("closed"),ke=(Ne,Oe)=>{var Re;return(Re=ae.value)==null?void 0:Re.swipeTo(Ne,Oe)};return useExpose({resetScale:()=>{var Ne;(Ne=ie.value)==null||Ne.resetScale()},swipeTo:ke}),onMounted(de),watch([windowWidth,windowHeight],de),watch(()=>ee.startPosition,Ne=>ye(+Ne)),watch(()=>ee.show,Ne=>{const{images:Oe,startPosition:Re}=ee;Ne?(ye(+Re),nextTick(()=>{de(),ke(+Re,{immediate:!0})})):ne("close",{index:se.active,url:Oe[se.active]})}),()=>createVNode(Popup,mergeProps({class:[bem$D(),ee.className],overlayClass:[bem$D("overlay"),ee.overlayClass],onClosed:Ae,"onUpdate:show":ve},pick(ee,popupProps$1)),{default:()=>[Pe(),Ce(),$e(),we()]})}});let instance;const defaultConfig={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function initInstance(){({instance}=mountComponent({setup(){const{state:ee,toggle:ne}=usePopupState(),oe=()=>{ee.images=[]};return()=>createVNode(stdin_default$K,mergeProps(ee,{onClosed:oe,"onUpdate:show":ne}),null)}}))}const showImagePreview=(ee,ne=0)=>{if(inBrowser$1)return instance||initInstance(),ee=Array.isArray(ee)?{images:ee,startPosition:ne}:ee,instance.open(extend({},defaultConfig,ee)),instance},ImagePreview=withInstall(stdin_default$K);function genAlphabet(){return Array(26).fill("").map((oe,ae)=>String.fromCharCode(65+ae))}const[name$D,bem$C]=createNamespace("index-bar"),indexBarProps={sticky:truthProp,zIndex:numericProp,teleport:[String,Object],highlightColor:String,stickyOffsetTop:makeNumberProp(0),indexList:{type:Array,default:genAlphabet}},INDEX_BAR_KEY=Symbol(name$D);var stdin_default$J=defineComponent({name:name$D,props:indexBarProps,emits:["select","change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=ref(""),de=useTouch(),fe=useScrollParent(ae),{children:ve,linkChildren:be}=useChildren(INDEX_BAR_KEY);let ye;be({props:ee});const $e=computed(()=>{if(isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),we=computed(()=>{if(ee.highlightColor)return{color:ee.highlightColor}}),Ee=(Le,Xe)=>{for(let Ke=ve.length-1;Ke>=0;Ke--){const De=Ke>0?Xe[Ke-1].height:0,je=ee.sticky?De+ee.stickyOffsetTop:0;if(Le+je>=Xe[Ke].top)return Ke}return-1},_e=Le=>ve.find(Xe=>String(Xe.index)===Le),Ce=()=>{if(isHidden(ae))return;const{sticky:Le,indexList:Xe}=ee,Ke=getScrollTop(fe.value),De=useRect(fe),je=ve.map(qe=>qe.getRect(fe.value,De));let He=-1;if(ye){const qe=_e(ye);if(qe){const ze=qe.getRect(fe.value,De);ee.sticky&&ee.stickyOffsetTop?He=Ee(ze.top-ee.stickyOffsetTop,je):He=Ee(ze.top,je)}}else He=Ee(Ke,je);se.value=Xe[He],Le&&ve.forEach((qe,ze)=>{const{state:Fe,$el:Ze}=qe;if(ze===He||ze===He-1){const ot=Ze.getBoundingClientRect();Fe.left=ot.left,Fe.width=ot.width}else Fe.left=null,Fe.width=null;if(ze===He)Fe.active=!0,Fe.top=Math.max(ee.stickyOffsetTop,je[ze].top-Ke)+De.top;else if(ze===He-1&&ye===""){const ot=je[He].top-Ke;Fe.active=ot>0,Fe.top=ot+De.top-je[ze].height}else Fe.active=!1}),ye=""},Pe=()=>{nextTick(Ce)};useEventListener("scroll",Ce,{target:fe,passive:!0}),onMounted(Pe),watch(()=>ee.indexList,Pe),watch(se,Le=>{Le&&ne("change",Le)});const Ae=()=>ee.indexList.map(Le=>{const Xe=Le===se.value;return createVNode("span",{class:bem$C("index",{active:Xe}),style:Xe?we.value:void 0,"data-index":Le},[Le])}),ke=Le=>{ye=String(Le);const Xe=_e(ye);if(Xe){const Ke=getScrollTop(fe.value),De=useRect(fe),{offsetHeight:je}=document.documentElement;if(Xe.$el.scrollIntoView(),Ke===je-De.height){Ce();return}ee.sticky&&ee.stickyOffsetTop&&(getRootScrollTop()===je-De.height?setRootScrollTop(getRootScrollTop()):setRootScrollTop(getRootScrollTop()-ee.stickyOffsetTop)),ne("select",Xe.index)}},Ne=Le=>{const{index:Xe}=Le.dataset;Xe&&ke(Xe)},Oe=Le=>{Ne(Le.target)};let Re;const Be=Le=>{if(de.move(Le),de.isVertical()){preventDefault(Le);const{clientX:Xe,clientY:Ke}=Le.touches[0],De=document.elementFromPoint(Xe,Ke);if(De){const{index:je}=De.dataset;je&&Re!==je&&(Re=je,Ne(De))}}},Me=()=>createVNode("div",{ref:ie,class:bem$C("sidebar"),style:$e.value,onClick:Oe,onTouchstartPassive:de.start},[Ae()]);return useExpose({scrollTo:ke}),useEventListener("touchmove",Be,{target:ie}),()=>{var Le;return createVNode("div",{ref:ae,class:bem$C()},[ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Me()]}):Me(),(Le=oe.default)==null?void 0:Le.call(oe)])}}});const[name$C,bem$B]=createNamespace("index-anchor"),indexAnchorProps={index:numericProp};var stdin_default$I=defineComponent({name:name$C,props:indexAnchorProps,setup(ee,{slots:ne}){const oe=reactive({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),ae=ref(),{parent:ie}=useParent(INDEX_BAR_KEY);if(!ie)return;const se=()=>oe.active&&ie.props.sticky,de=computed(()=>{const{zIndex:ve,highlightColor:be}=ie.props;if(se())return extend(getZIndexStyle(ve),{left:oe.left?`${oe.left}px`:void 0,width:oe.width?`${oe.width}px`:void 0,transform:oe.top?`translate3d(0, ${oe.top}px, 0)`:void 0,color:be})});return useExpose({state:oe,getRect:(ve,be)=>{const ye=useRect(ae);return oe.rect.height=ye.height,ve===window||ve===document.body?oe.rect.top=ye.top+getRootScrollTop():oe.rect.top=ye.top+getScrollTop(ve)-be.top,oe.rect}}),()=>{const ve=se();return createVNode("div",{ref:ae,style:{height:ve?`${oe.rect.height}px`:void 0}},[createVNode("div",{style:de.value,class:[bem$B({sticky:ve}),{[BORDER_BOTTOM]:ve}]},[ne.default?ne.default():ee.index])])}}});const IndexAnchor=withInstall(stdin_default$I),IndexBar=withInstall(stdin_default$J),[name$B,bem$A,t$7]=createNamespace("list"),listProps={error:Boolean,offset:makeNumericProp(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:makeStringProp("down"),loadingText:String,finishedText:String,immediateCheck:truthProp};var stdin_default$H=defineComponent({name:name$B,props:listProps,emits:["load","update:error","update:loading"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.loading),ie=ref(),se=ref(),de=useTabStatus(),fe=useScrollParent(ie),ve=computed(()=>ee.scroller||fe.value),be=()=>{nextTick(()=>{if(ae.value||ee.finished||ee.disabled||ee.error||(de==null?void 0:de.value)===!1)return;const{direction:_e}=ee,Ce=+ee.offset,Pe=useRect(ve);if(!Pe.height||isHidden(ie))return;let Ae=!1;const ke=useRect(se);_e==="up"?Ae=Pe.top-ke.top<=Ce:Ae=ke.bottom-Pe.bottom<=Ce,Ae&&(ae.value=!0,ne("update:loading",!0),ne("load"))})},ye=()=>{if(ee.finished){const _e=oe.finished?oe.finished():ee.finishedText;if(_e)return createVNode("div",{class:bem$A("finished-text")},[_e])}},$e=()=>{ne("update:error",!1),be()},we=()=>{if(ee.error){const _e=oe.error?oe.error():ee.errorText;if(_e)return createVNode("div",{role:"button",class:bem$A("error-text"),tabindex:0,onClick:$e},[_e])}},Ee=()=>{if(ae.value&&!ee.finished&&!ee.disabled)return createVNode("div",{class:bem$A("loading")},[oe.loading?oe.loading():createVNode(Loading,{class:bem$A("loading-icon")},{default:()=>[ee.loadingText||t$7("loading")]})])};return watch(()=>[ee.loading,ee.finished,ee.error],be),de&&watch(de,_e=>{_e&&be()}),onUpdated(()=>{ae.value=ee.loading}),onMounted(()=>{ee.immediateCheck&&be()}),useExpose({check:be}),useEventListener("scroll",be,{target:ve,passive:!0}),()=>{var _e;const Ce=(_e=oe.default)==null?void 0:_e.call(oe),Pe=createVNode("div",{ref:se,class:bem$A("placeholder")},null);return createVNode("div",{ref:ie,role:"feed",class:bem$A(),"aria-busy":ae.value},[ee.direction==="down"?Ce:Pe,Ee(),ye(),we(),ee.direction==="up"?Ce:Pe])}}});const List=withInstall(stdin_default$H),[name$A,bem$z]=createNamespace("nav-bar"),navBarProps={title:String,fixed:Boolean,zIndex:numericProp,border:truthProp,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:truthProp};var stdin_default$G=defineComponent({name:name$A,props:navBarProps,emits:["clickLeft","clickRight"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=usePlaceholder(ae,bem$z),se=ye=>{ee.leftDisabled||ne("clickLeft",ye)},de=ye=>{ee.rightDisabled||ne("clickRight",ye)},fe=()=>oe.left?oe.left():[ee.leftArrow&&createVNode(Icon,{class:bem$z("arrow"),name:"arrow-left"},null),ee.leftText&&createVNode("span",{class:bem$z("text")},[ee.leftText])],ve=()=>oe.right?oe.right():createVNode("span",{class:bem$z("text")},[ee.rightText]),be=()=>{const{title:ye,fixed:$e,border:we,zIndex:Ee}=ee,_e=getZIndexStyle(Ee),Ce=ee.leftArrow||ee.leftText||oe.left,Pe=ee.rightText||oe.right;return createVNode("div",{ref:ae,style:_e,class:[bem$z({fixed:$e}),{[BORDER_BOTTOM]:we,"van-safe-area-top":ee.safeAreaInsetTop}]},[createVNode("div",{class:bem$z("content")},[Ce&&createVNode("div",{class:[bem$z("left",{disabled:ee.leftDisabled}),ee.clickable&&!ee.leftDisabled?HAPTICS_FEEDBACK:""],onClick:se},[fe()]),createVNode("div",{class:[bem$z("title"),"van-ellipsis"]},[oe.title?oe.title():ye]),Pe&&createVNode("div",{class:[bem$z("right",{disabled:ee.rightDisabled}),ee.clickable&&!ee.rightDisabled?HAPTICS_FEEDBACK:""],onClick:de},[ve()])])])};return()=>ee.fixed&&ee.placeholder?ie(be):be()}});const NavBar=withInstall(stdin_default$G),[name$z,bem$y]=createNamespace("notice-bar"),noticeBarProps={text:String,mode:String,color:String,delay:makeNumericProp(1),speed:makeNumericProp(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var stdin_default$F=defineComponent({name:name$z,props:noticeBarProps,emits:["close","replay"],setup(ee,{emit:ne,slots:oe}){let ae=0,ie=0,se;const de=ref(),fe=ref(),ve=reactive({show:!0,offset:0,duration:0}),be=()=>{if(oe["left-icon"])return oe["left-icon"]();if(ee.leftIcon)return createVNode(Icon,{class:bem$y("left-icon"),name:ee.leftIcon},null)},ye=()=>{if(ee.mode==="closeable")return"cross";if(ee.mode==="link")return"arrow"},$e=Pe=>{ee.mode==="closeable"&&(ve.show=!1,ne("close",Pe))},we=()=>{if(oe["right-icon"])return oe["right-icon"]();const Pe=ye();if(Pe)return createVNode(Icon,{name:Pe,class:bem$y("right-icon"),onClick:$e},null)},Ee=()=>{ve.offset=ae,ve.duration=0,raf(()=>{doubleRaf(()=>{ve.offset=-ie,ve.duration=(ie+ae)/+ee.speed,ne("replay")})})},_e=()=>{const Pe=ee.scrollable===!1&&!ee.wrapable,Ae={transform:ve.offset?`translateX(${ve.offset}px)`:"",transitionDuration:`${ve.duration}s`};return createVNode("div",{ref:de,role:"marquee",class:bem$y("wrap")},[createVNode("div",{ref:fe,style:Ae,class:[bem$y("content"),{"van-ellipsis":Pe}],onTransitionend:Ee},[oe.default?oe.default():ee.text])])},Ce=()=>{const{delay:Pe,speed:Ae,scrollable:ke}=ee,Ne=isDef(Pe)?+Pe*1e3:0;ae=0,ie=0,ve.offset=0,ve.duration=0,clearTimeout(se),se=setTimeout(()=>{if(!de.value||!fe.value||ke===!1)return;const Oe=useRect(de).width,Re=useRect(fe).width;(ke||Re>Oe)&&doubleRaf(()=>{ae=Oe,ie=Re,ve.offset=-ie,ve.duration=ie/+Ae})},Ne)};return onPopupReopen(Ce),onMountedOrActivated(Ce),useEventListener("pageshow",Ce),useExpose({reset:Ce}),watch(()=>[ee.text,ee.scrollable],Ce),()=>{const{color:Pe,wrapable:Ae,background:ke}=ee;return withDirectives(createVNode("div",{role:"alert",class:bem$y({wrapable:Ae}),style:{color:Pe,background:ke}},[be(),_e(),we()]),[[vShow,ve.show]])}}});const NoticeBar=withInstall(stdin_default$F),[name$y,bem$x]=createNamespace("notify"),popupInheritProps=["lockScroll","position","show","teleport","zIndex"],notifyProps=extend({},popupSharedProps,{type:makeStringProp("danger"),color:String,message:numericProp,position:makeStringProp("top"),className:unknownProp,background:String,lockScroll:Boolean});var stdin_default$E=defineComponent({name:name$y,props:notifyProps,emits:["update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ie=>ne("update:show",ie);return()=>createVNode(Popup,mergeProps({class:[bem$x([ee.type]),ee.className],style:{color:ee.color,background:ee.background},overlay:!1,duration:.2,"onUpdate:show":ae},pick(ee,popupInheritProps)),{default:()=>[oe.default?oe.default():ee.message]})}});const Notify=withInstall(stdin_default$E),[name$x,bem$w]=createNamespace("key"),CollapseIcon=createVNode("svg",{class:bem$w("collapse-icon"),viewBox:"0 0 30 24"},[createVNode("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),DeleteIcon=createVNode("svg",{class:bem$w("delete-icon"),viewBox:"0 0 32 22"},[createVNode("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var stdin_default$D=defineComponent({name:name$x,props:{type:String,text:numericProp,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(ee,{emit:ne,slots:oe}){const ae=ref(!1),ie=useTouch(),se=be=>{ie.start(be),ae.value=!0},de=be=>{ie.move(be),ie.direction.value&&(ae.value=!1)},fe=be=>{ae.value&&(oe.default||preventDefault(be),ae.value=!1,ne("press",ee.text,ee.type))},ve=()=>{if(ee.loading)return createVNode(Loading,{class:bem$w("loading-icon")},null);const be=oe.default?oe.default():ee.text;switch(ee.type){case"delete":return be||DeleteIcon;case"extra":return be||CollapseIcon;default:return be}};return()=>createVNode("div",{class:bem$w("wrapper",{wider:ee.wider}),onTouchstartPassive:se,onTouchmovePassive:de,onTouchend:fe,onTouchcancel:fe},[createVNode("div",{role:"button",tabindex:0,class:bem$w([ee.color,{large:ee.large,active:ae.value,delete:ee.type==="delete"}])},[ve()])])}});const[name$w,bem$v]=createNamespace("number-keyboard"),numberKeyboardProps={show:Boolean,title:String,theme:makeStringProp("default"),zIndex:numericProp,teleport:[String,Object],maxlength:makeNumericProp(1/0),modelValue:makeStringProp(""),transition:truthProp,blurOnClose:truthProp,showDeleteKey:truthProp,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:truthProp,safeAreaInsetBottom:truthProp,extraKey:{type:[String,Array],default:""}};function shuffle(ee){for(let ne=ee.length-1;ne>0;ne--){const oe=Math.floor(Math.random()*(ne+1)),ae=ee[ne];ee[ne]=ee[oe],ee[oe]=ae}return ee}var stdin_default$C=defineComponent({name:name$w,inheritAttrs:!1,props:numberKeyboardProps,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=ref(),se=()=>{const Pe=Array(9).fill("").map((Ae,ke)=>({text:ke+1}));return ee.randomKeyOrder&&shuffle(Pe),Pe},de=()=>[...se(),{text:ee.extraKey,type:"extra"},{text:0},{text:ee.showDeleteKey?ee.deleteButtonText:"",type:ee.showDeleteKey?"delete":""}],fe=()=>{const Pe=se(),{extraKey:Ae}=ee,ke=Array.isArray(Ae)?Ae:[Ae];return ke.length===0?Pe.push({text:0,wider:!0}):ke.length===1?Pe.push({text:0,wider:!0},{text:ke[0],type:"extra"}):ke.length===2&&Pe.push({text:ke[0],type:"extra"},{text:0},{text:ke[1],type:"extra"}),Pe},ve=computed(()=>ee.theme==="custom"?fe():de()),be=()=>{ee.show&&ne("blur")},ye=()=>{ne("close"),ee.blurOnClose&&be()},$e=()=>ne(ee.show?"show":"hide"),we=(Pe,Ae)=>{if(Pe===""){Ae==="extra"&&be();return}const ke=ee.modelValue;Ae==="delete"?(ne("delete"),ne("update:modelValue",ke.slice(0,ke.length-1))):Ae==="close"?ye():ke.length<+ee.maxlength&&(ne("input",Pe),ne("update:modelValue",ke+Pe))},Ee=()=>{const{title:Pe,theme:Ae,closeButtonText:ke}=ee,Ne=oe["title-left"],Oe=ke&&Ae==="default";if(Pe||Oe||Ne)return createVNode("div",{class:bem$v("header")},[Ne&&createVNode("span",{class:bem$v("title-left")},[Ne()]),Pe&&createVNode("h2",{class:bem$v("title")},[Pe]),Oe&&createVNode("button",{type:"button",class:[bem$v("close"),HAPTICS_FEEDBACK],onClick:ye},[ke])])},_e=()=>ve.value.map(Pe=>{const Ae={};return Pe.type==="delete"&&(Ae.default=oe.delete),Pe.type==="extra"&&(Ae.default=oe["extra-key"]),createVNode(stdin_default$D,{key:Pe.text,text:Pe.text,type:Pe.type,wider:Pe.wider,color:Pe.color,onPress:we},Ae)}),Ce=()=>{if(ee.theme==="custom")return createVNode("div",{class:bem$v("sidebar")},[ee.showDeleteKey&&createVNode(stdin_default$D,{large:!0,text:ee.deleteButtonText,type:"delete",onPress:we},{default:oe.delete}),createVNode(stdin_default$D,{large:!0,text:ee.closeButtonText,type:"close",color:"blue",loading:ee.closeButtonLoading,onPress:we},null)])};return watch(()=>ee.show,Pe=>{ee.transition||ne(Pe?"show":"hide")}),ee.hideOnClickOutside&&useClickAway(ie,be,{eventName:"touchstart"}),()=>{const Pe=Ee(),Ae=createVNode(Transition,{name:ee.transition?"van-slide-up":""},{default:()=>[withDirectives(createVNode("div",mergeProps({ref:ie,style:getZIndexStyle(ee.zIndex),class:bem$v({unfit:!ee.safeAreaInsetBottom,"with-title":!!Pe}),onAnimationend:$e,onTouchstartPassive:stopPropagation},ae),[Pe,createVNode("div",{class:bem$v("body")},[createVNode("div",{class:bem$v("keys")},[_e()]),Ce()])]),[[vShow,ee.show]])]});return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ae]}):Ae}}});const NumberKeyboard=withInstall(stdin_default$C),[name$v,bem$u,t$6]=createNamespace("pagination"),makePage=(ee,ne,oe)=>({number:ee,text:ne,active:oe}),paginationProps={mode:makeStringProp("multi"),prevText:String,nextText:String,pageCount:makeNumericProp(0),modelValue:makeNumberProp(0),totalItems:makeNumericProp(0),showPageSize:makeNumericProp(5),itemsPerPage:makeNumericProp(10),forceEllipses:Boolean,showPrevButton:truthProp,showNextButton:truthProp};var stdin_default$B=defineComponent({name:name$v,props:paginationProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>{const{pageCount:ye,totalItems:$e,itemsPerPage:we}=ee,Ee=+ye||Math.ceil(+$e/+we);return Math.max(1,Ee)}),ie=computed(()=>{const ye=[],$e=ae.value,we=+ee.showPageSize,{modelValue:Ee,forceEllipses:_e}=ee;let Ce=1,Pe=$e;const Ae=we<$e;Ae&&(Ce=Math.max(Ee-Math.floor(we/2),1),Pe=Ce+we-1,Pe>$e&&(Pe=$e,Ce=Pe-we+1));for(let ke=Ce;ke<=Pe;ke++){const Ne=makePage(ke,ke,ke===Ee);ye.push(Ne)}if(Ae&&we>0&&_e){if(Ce>1){const ke=makePage(Ce-1,"...");ye.unshift(ke)}if(Pe<$e){const ke=makePage(Pe+1,"...");ye.push(ke)}}return ye}),se=(ye,$e)=>{ye=clamp(ye,1,ae.value),ee.modelValue!==ye&&(ne("update:modelValue",ye),$e&&ne("change",ye))};watchEffect(()=>se(ee.modelValue));const de=()=>createVNode("li",{class:bem$u("page-desc")},[oe.pageDesc?oe.pageDesc():`${ee.modelValue}/${ae.value}`]),fe=()=>{const{mode:ye,modelValue:$e,showPrevButton:we}=ee;if(!we)return;const Ee=oe["prev-text"],_e=$e===1;return createVNode("li",{class:[bem$u("item",{disabled:_e,border:ye==="simple",prev:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:_e,onClick:()=>se($e-1,!0)},[Ee?Ee():ee.prevText||t$6("prev")])])},ve=()=>{const{mode:ye,modelValue:$e,showNextButton:we}=ee;if(!we)return;const Ee=oe["next-text"],_e=$e===ae.value;return createVNode("li",{class:[bem$u("item",{disabled:_e,border:ye==="simple",next:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:_e,onClick:()=>se($e+1,!0)},[Ee?Ee():ee.nextText||t$6("next")])])},be=()=>ie.value.map(ye=>createVNode("li",{class:[bem$u("item",{active:ye.active,page:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button","aria-current":ye.active||void 0,onClick:()=>se(ye.number,!0)},[oe.page?oe.page(ye):ye.text])]));return()=>createVNode("nav",{role:"navigation",class:bem$u()},[createVNode("ul",{class:bem$u("items")},[fe(),ee.mode==="simple"?de():be(),ve()])])}});const Pagination=withInstall(stdin_default$B),[name$u,bem$t]=createNamespace("password-input"),passwordInputProps={info:String,mask:truthProp,value:makeStringProp(""),gutter:numericProp,length:makeNumericProp(6),focused:Boolean,errorInfo:String};var stdin_default$A=defineComponent({name:name$u,props:passwordInputProps,emits:["focus"],setup(ee,{emit:ne}){const oe=ie=>{ie.stopPropagation(),ne("focus",ie)},ae=()=>{const ie=[],{mask:se,value:de,gutter:fe,focused:ve}=ee,be=+ee.length;for(let ye=0;ye{const ie=ee.errorInfo||ee.info;return createVNode("div",{class:bem$t()},[createVNode("ul",{class:[bem$t("security"),{[BORDER_SURROUND]:!ee.gutter}],onTouchstartPassive:oe},[ae()]),ie&&createVNode("div",{class:bem$t(ee.errorInfo?"error-info":"info")},[ie])])}}});const PasswordInput=withInstall(stdin_default$A),PickerGroup=withInstall(stdin_default$1y);function getWindow(ee){if(ee==null)return window;if(ee.toString()!=="[object Window]"){var ne=ee.ownerDocument;return ne&&ne.defaultView||window}return ee}function isElement(ee){var ne=getWindow(ee).Element;return ee instanceof ne||ee instanceof Element}function isHTMLElement(ee){var ne=getWindow(ee).HTMLElement;return ee instanceof ne||ee instanceof HTMLElement}function isShadowRoot(ee){if(typeof ShadowRoot>"u")return!1;var ne=getWindow(ee).ShadowRoot;return ee instanceof ne||ee instanceof ShadowRoot}var round=Math.round;function getUAString(){var ee=navigator.userAgentData;return ee!=null&&ee.brands?ee.brands.map(function(ne){return ne.brand+"/"+ne.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,ne,oe){ne===void 0&&(ne=!1),oe===void 0&&(oe=!1);var ae=ee.getBoundingClientRect(),ie=1,se=1;ne&&isHTMLElement(ee)&&(ie=ee.offsetWidth>0&&round(ae.width)/ee.offsetWidth||1,se=ee.offsetHeight>0&&round(ae.height)/ee.offsetHeight||1);var de=isElement(ee)?getWindow(ee):window,fe=de.visualViewport,ve=!isLayoutViewport()&&oe,be=(ae.left+(ve&&fe?fe.offsetLeft:0))/ie,ye=(ae.top+(ve&&fe?fe.offsetTop:0))/se,$e=ae.width/ie,we=ae.height/se;return{width:$e,height:we,top:ye,right:be+$e,bottom:ye+we,left:be,x:be,y:ye}}function getWindowScroll(ee){var ne=getWindow(ee),oe=ne.pageXOffset,ae=ne.pageYOffset;return{scrollLeft:oe,scrollTop:ae}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee===getWindow(ee)||!isHTMLElement(ee)?getWindowScroll(ee):getHTMLElementScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle$1(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var ne=getComputedStyle$1(ee),oe=ne.overflow,ae=ne.overflowX,ie=ne.overflowY;return/auto|scroll|overlay|hidden/.test(oe+ie+ae)}function isElementScaled(ee){var ne=ee.getBoundingClientRect(),oe=round(ne.width)/ee.offsetWidth||1,ae=round(ne.height)/ee.offsetHeight||1;return oe!==1||ae!==1}function getCompositeRect(ee,ne,oe){oe===void 0&&(oe=!1);var ae=isHTMLElement(ne),ie=isHTMLElement(ne)&&isElementScaled(ne),se=getDocumentElement(ne),de=getBoundingClientRect(ee,ie,oe),fe={scrollLeft:0,scrollTop:0},ve={x:0,y:0};return(ae||!ae&&!oe)&&((getNodeName(ne)!=="body"||isScrollParent(se))&&(fe=getNodeScroll(ne)),isHTMLElement(ne)?(ve=getBoundingClientRect(ne,!0),ve.x+=ne.clientLeft,ve.y+=ne.clientTop):se&&(ve.x=getWindowScrollBarX(se))),{x:de.left+fe.scrollLeft-ve.x,y:de.top+fe.scrollTop-ve.y,width:de.width,height:de.height}}function getLayoutRect(ee){var ne=getBoundingClientRect(ee),oe=ee.offsetWidth,ae=ee.offsetHeight;return Math.abs(ne.width-oe)<=1&&(oe=ne.width),Math.abs(ne.height-ae)<=1&&(ae=ne.height),{x:ee.offsetLeft,y:ee.offsetTop,width:oe,height:ae}}function getParentNode(ee){return getNodeName(ee)==="html"?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,ne){var oe;ne===void 0&&(ne=[]);var ae=getScrollParent(ee),ie=ae===((oe=ee.ownerDocument)==null?void 0:oe.body),se=getWindow(ae),de=ie?[se].concat(se.visualViewport||[],isScrollParent(ae)?ae:[]):ae,fe=ne.concat(de);return ie?fe:fe.concat(listScrollParents(getParentNode(de)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return!isHTMLElement(ee)||getComputedStyle$1(ee).position==="fixed"?null:ee.offsetParent}function getContainingBlock(ee){var ne=/firefox/i.test(getUAString()),oe=/Trident/i.test(getUAString());if(oe&&isHTMLElement(ee)){var ae=getComputedStyle$1(ee);if(ae.position==="fixed")return null}var ie=getParentNode(ee);for(isShadowRoot(ie)&&(ie=ie.host);isHTMLElement(ie)&&["html","body"].indexOf(getNodeName(ie))<0;){var se=getComputedStyle$1(ie);if(se.transform!=="none"||se.perspective!=="none"||se.contain==="paint"||["transform","perspective"].indexOf(se.willChange)!==-1||ne&&se.willChange==="filter"||ne&&se.filter&&se.filter!=="none")return ie;ie=ie.parentNode}return null}function getOffsetParent(ee){for(var ne=getWindow(ee),oe=getTrueOffsetParent(ee);oe&&isTableElement(oe)&&getComputedStyle$1(oe).position==="static";)oe=getTrueOffsetParent(oe);return oe&&(getNodeName(oe)==="html"||getNodeName(oe)==="body"&&getComputedStyle$1(oe).position==="static")?ne:oe||getContainingBlock(ee)||ne}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",placements=[].concat(basePlacements,[auto]).reduce(function(ee,ne){return ee.concat([ne,ne+"-"+start,ne+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(ee){var ne=new Map,oe=new Set,ae=[];ee.forEach(function(se){ne.set(se.name,se)});function ie(se){oe.add(se.name);var de=[].concat(se.requires||[],se.requiresIfExists||[]);de.forEach(function(fe){if(!oe.has(fe)){var ve=ne.get(fe);ve&&ie(ve)}}),ae.push(se)}return ee.forEach(function(se){oe.has(se.name)||ie(se)}),ae}function orderModifiers(ee){var ne=order(ee);return modifierPhases.reduce(function(oe,ae){return oe.concat(ne.filter(function(ie){return ie.phase===ae}))},[])}function debounce(ee){var ne;return function(){return ne||(ne=new Promise(function(oe){Promise.resolve().then(function(){ne=void 0,oe(ee())})})),ne}}function format(ee){for(var ne=arguments.length,oe=new Array(ne>1?ne-1:0),ae=1;ae=0?"x":"y"}function computeOffsets(ee){var ne=ee.reference,oe=ee.element,ae=ee.placement,ie=ae?getBasePlacement(ae):null,se=ae?getVariation(ae):null,de=ne.x+ne.width/2-oe.width/2,fe=ne.y+ne.height/2-oe.height/2,ve;switch(ie){case top:ve={x:de,y:ne.y-oe.height};break;case bottom:ve={x:de,y:ne.y+ne.height};break;case right:ve={x:ne.x+ne.width,y:fe};break;case left:ve={x:ne.x-oe.width,y:fe};break;default:ve={x:ne.x,y:ne.y}}var be=ie?getMainAxisFromPlacement(ie):null;if(be!=null){var ye=be==="y"?"height":"width";switch(se){case start:ve[be]=ve[be]-(ne[ye]/2-oe[ye]/2);break;case end:ve[be]=ve[be]+(ne[ye]/2-oe[ye]/2);break}}return ve}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,ne=new Array(ee),oe=0;oe100){console.error(INFINITE_LOOP_ERROR);break}if(ye.reset===!0){ye.reset=!1,Re=-1;continue}var Be=ye.orderedModifiers[Re],Me=Be.fn,Le=Be.options,Xe=Le===void 0?{}:Le,Ke=Be.name;typeof Me=="function"&&(ye=Me({state:ye,options:Xe,name:Ke,instance:Ee})||ye)}}},update:debounce(function(){return new Promise(function(Pe){Ee.forceUpdate(),Pe(ye)})}),destroy:function(){Ce(),we=!0}};if(!areValidElements(fe,ve))return console.error(INVALID_ELEMENT_ERROR),Ee;Ee.setOptions(be).then(function(Pe){!we&&be.onFirstUpdate&&be.onFirstUpdate(Pe)});function _e(){ye.orderedModifiers.forEach(function(Pe){var Ae=Pe.name,ke=Pe.options,Ne=ke===void 0?{}:ke,Oe=Pe.effect;if(typeof Oe=="function"){var Re=Oe({state:ye,name:Ae,instance:Ee,options:Ne}),Be=function(){};$e.push(Re||Be)}})}function Ce(){$e.forEach(function(Pe){return Pe()}),$e=[]}return Ee}}var passive={passive:!0};function effect(ee){var ne=ee.state,oe=ee.instance,ae=ee.options,ie=ae.scroll,se=ie===void 0?!0:ie,de=ae.resize,fe=de===void 0?!0:de,ve=getWindow(ne.elements.popper),be=[].concat(ne.scrollParents.reference,ne.scrollParents.popper);return se&&be.forEach(function(ye){ye.addEventListener("scroll",oe.update,passive)}),fe&&ve.addEventListener("resize",oe.update,passive),function(){se&&be.forEach(function(ye){ye.removeEventListener("scroll",oe.update,passive)}),fe&&ve.removeEventListener("resize",oe.update,passive)}}var eventListeners_default={name:"eventListeners",enabled:!0,phase:"write",fn:function ee(){},effect,data:{}};function popperOffsets(ee){var ne=ee.state,oe=ee.name;ne.modifiersData[oe]=computeOffsets({reference:ne.rects.reference,element:ne.rects.popper,strategy:"absolute",placement:ne.placement})}var popperOffsets_default={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}},unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee){var ne=ee.x,oe=ee.y,ae=window,ie=ae.devicePixelRatio||1;return{x:round(ne*ie)/ie||0,y:round(oe*ie)/ie||0}}function mapToStyles(ee){var ne,oe=ee.popper,ae=ee.popperRect,ie=ee.placement,se=ee.variation,de=ee.offsets,fe=ee.position,ve=ee.gpuAcceleration,be=ee.adaptive,ye=ee.roundOffsets,$e=ee.isFixed,we=de.x,Ee=we===void 0?0:we,_e=de.y,Ce=_e===void 0?0:_e,Pe=typeof ye=="function"?ye({x:Ee,y:Ce}):{x:Ee,y:Ce};Ee=Pe.x,Ce=Pe.y;var Ae=de.hasOwnProperty("x"),ke=de.hasOwnProperty("y"),Ne=left,Oe=top,Re=window;if(be){var Be=getOffsetParent(oe),Me="clientHeight",Le="clientWidth";if(Be===getWindow(oe)&&(Be=getDocumentElement(oe),getComputedStyle$1(Be).position!=="static"&&fe==="absolute"&&(Me="scrollHeight",Le="scrollWidth")),Be=Be,ie===top||(ie===left||ie===right)&&se===end){Oe=bottom;var Xe=$e&&Be===Re&&Re.visualViewport?Re.visualViewport.height:Be[Me];Ce-=Xe-ae.height,Ce*=ve?1:-1}if(ie===left||(ie===top||ie===bottom)&&se===end){Ne=right;var Ke=$e&&Be===Re&&Re.visualViewport?Re.visualViewport.width:Be[Le];Ee-=Ke-ae.width,Ee*=ve?1:-1}}var De=Object.assign({position:fe},be&&unsetSides),je=ye===!0?roundOffsetsByDPR({x:Ee,y:Ce}):{x:Ee,y:Ce};if(Ee=je.x,Ce=je.y,ve){var He;return Object.assign({},De,(He={},He[Oe]=ke?"0":"",He[Ne]=Ae?"0":"",He.transform=(Re.devicePixelRatio||1)<=1?"translate("+Ee+"px, "+Ce+"px)":"translate3d("+Ee+"px, "+Ce+"px, 0)",He))}return Object.assign({},De,(ne={},ne[Oe]=ke?Ce+"px":"",ne[Ne]=Ae?Ee+"px":"",ne.transform="",ne))}function computeStyles(ee){var ne=ee.state,oe=ee.options,ae=oe.gpuAcceleration,ie=ae===void 0?!0:ae,se=oe.adaptive,de=se===void 0?!0:se,fe=oe.roundOffsets,ve=fe===void 0?!0:fe;{var be=getComputedStyle$1(ne.elements.popper).transitionProperty||"";de&&["transform","top","right","bottom","left"].some(function($e){return be.indexOf($e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` + +`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` + +`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var ye={placement:getBasePlacement(ne.placement),variation:getVariation(ne.placement),popper:ne.elements.popper,popperRect:ne.rects.popper,gpuAcceleration:ie,isFixed:ne.options.strategy==="fixed"};ne.modifiersData.popperOffsets!=null&&(ne.styles.popper=Object.assign({},ne.styles.popper,mapToStyles(Object.assign({},ye,{offsets:ne.modifiersData.popperOffsets,position:ne.options.strategy,adaptive:de,roundOffsets:ve})))),ne.modifiersData.arrow!=null&&(ne.styles.arrow=Object.assign({},ne.styles.arrow,mapToStyles(Object.assign({},ye,{offsets:ne.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ve})))),ne.attributes.popper=Object.assign({},ne.attributes.popper,{"data-popper-placement":ne.placement})}var computeStyles_default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(ee){var ne=ee.state;Object.keys(ne.elements).forEach(function(oe){var ae=ne.styles[oe]||{},ie=ne.attributes[oe]||{},se=ne.elements[oe];!isHTMLElement(se)||!getNodeName(se)||(Object.assign(se.style,ae),Object.keys(ie).forEach(function(de){var fe=ie[de];fe===!1?se.removeAttribute(de):se.setAttribute(de,fe===!0?"":fe)}))})}function effect2(ee){var ne=ee.state,oe={popper:{position:ne.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ne.elements.popper.style,oe.popper),ne.styles=oe,ne.elements.arrow&&Object.assign(ne.elements.arrow.style,oe.arrow),function(){Object.keys(ne.elements).forEach(function(ae){var ie=ne.elements[ae],se=ne.attributes[ae]||{},de=Object.keys(ne.styles.hasOwnProperty(ae)?ne.styles[ae]:oe[ae]),fe=de.reduce(function(ve,be){return ve[be]="",ve},{});!isHTMLElement(ie)||!getNodeName(ie)||(Object.assign(ie.style,fe),Object.keys(se).forEach(function(ve){ie.removeAttribute(ve)}))})}}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect2,requires:["computeStyles"]},defaultModifiers=[eventListeners_default,popperOffsets_default,computeStyles_default,applyStyles_default],createPopper=popperGenerator({defaultModifiers});function distanceAndSkiddingToXY(ee,ne,oe){var ae=getBasePlacement(ee),ie=[left,top].indexOf(ae)>=0?-1:1,se=typeof oe=="function"?oe(Object.assign({},ne,{placement:ee})):oe,de=se[0],fe=se[1];return de=de||0,fe=(fe||0)*ie,[left,right].indexOf(ae)>=0?{x:fe,y:de}:{x:de,y:fe}}function offset(ee){var ne=ee.state,oe=ee.options,ae=ee.name,ie=oe.offset,se=ie===void 0?[0,0]:ie,de=placements.reduce(function(ye,$e){return ye[$e]=distanceAndSkiddingToXY($e,ne.rects,se),ye},{}),fe=de[ne.placement],ve=fe.x,be=fe.y;ne.modifiersData.popperOffsets!=null&&(ne.modifiersData.popperOffsets.x+=ve,ne.modifiersData.popperOffsets.y+=be),ne.modifiersData[ae]=de}var offset_default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};const[name$t,bem$s]=createNamespace("popover"),popupProps=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],popoverProps={show:Boolean,theme:makeStringProp("light"),overlay:Boolean,actions:makeArrayProp(),actionsDirection:makeStringProp("vertical"),trigger:makeStringProp("click"),duration:numericProp,showArrow:truthProp,placement:makeStringProp("bottom"),iconPrefix:String,overlayClass:unknownProp,overlayStyle:Object,closeOnClickAction:truthProp,closeOnClickOverlay:truthProp,closeOnClickOutside:truthProp,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var stdin_default$z=defineComponent({name:name$t,props:popoverProps,emits:["select","touchstart","update:show"],setup(ee,{emit:ne,slots:oe,attrs:ae}){let ie;const se=ref(),de=ref(),fe=ref(),ve=useSyncPropRef(()=>ee.show,ke=>ne("update:show",ke)),be=()=>({placement:ee.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},extend({},offset_default,{options:{offset:ee.offset}})]}),ye=()=>de.value&&fe.value?createPopper(de.value,fe.value.popupRef.value,be()):null,$e=()=>{nextTick(()=>{ve.value&&(ie?ie.setOptions(be()):(ie=ye(),inBrowser$1&&(window.addEventListener("animationend",$e),window.addEventListener("transitionend",$e))))})},we=ke=>{ve.value=ke},Ee=()=>{ee.trigger==="click"&&(ve.value=!ve.value)},_e=(ke,Ne)=>{ke.disabled||(ne("select",ke,Ne),ee.closeOnClickAction&&(ve.value=!1))},Ce=()=>{ve.value&&ee.closeOnClickOutside&&(!ee.overlay||ee.closeOnClickOverlay)&&(ve.value=!1)},Pe=(ke,Ne)=>oe.action?oe.action({action:ke,index:Ne}):[ke.icon&&createVNode(Icon,{name:ke.icon,classPrefix:ee.iconPrefix,class:bem$s("action-icon")},null),createVNode("div",{class:[bem$s("action-text"),{[BORDER_BOTTOM]:ee.actionsDirection==="vertical"}]},[ke.text])],Ae=(ke,Ne)=>{const{icon:Oe,color:Re,disabled:Be,className:Me}=ke;return createVNode("div",{role:"menuitem",class:[bem$s("action",{disabled:Be,"with-icon":Oe}),{[BORDER_RIGHT]:ee.actionsDirection==="horizontal"},Me],style:{color:Re},tabindex:Be?void 0:0,"aria-disabled":Be||void 0,onClick:()=>_e(ke,Ne)},[Pe(ke,Ne)])};return onMounted(()=>{$e(),watchEffect(()=>{var ke;se.value=(ke=fe.value)==null?void 0:ke.popupRef.value})}),onBeforeUnmount(()=>{ie&&(inBrowser$1&&(window.removeEventListener("animationend",$e),window.removeEventListener("transitionend",$e)),ie.destroy(),ie=null)}),watch(()=>[ve.value,ee.offset,ee.placement],$e),useClickAway([de,se],Ce,{eventName:"touchstart"}),()=>{var ke;return createVNode(Fragment,null,[createVNode("span",{ref:de,class:bem$s("wrapper"),onClick:Ee},[(ke=oe.reference)==null?void 0:ke.call(oe)]),createVNode(Popup,mergeProps({ref:fe,show:ve.value,class:bem$s([ee.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":we},ae,useScopeId(),pick(ee,popupProps)),{default:()=>[ee.showArrow&&createVNode("div",{class:bem$s("arrow")},null),createVNode("div",{role:"menu",class:bem$s("content",ee.actionsDirection)},[oe.default?oe.default():ee.actions.map(Ae)])]})])}}});const Popover=withInstall(stdin_default$z),[name$s,bem$r]=createNamespace("progress"),progressProps={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:truthProp,pivotColor:String,trackColor:String,strokeWidth:numericProp,percentage:{type:numericProp,default:0,validator:ee=>+ee>=0&&+ee<=100}};var stdin_default$y=defineComponent({name:name$s,props:progressProps,setup(ee){const ne=computed(()=>ee.inactive?void 0:ee.color),oe=()=>{const{textColor:ae,pivotText:ie,pivotColor:se,percentage:de}=ee,fe=ie??`${de}%`;if(ee.showPivot&&fe){const ve={color:ae,left:`${+de}%`,transform:`translate(-${+de}%,-50%)`,background:se||ne.value};return createVNode("span",{style:ve,class:bem$r("pivot",{inactive:ee.inactive})},[fe])}};return()=>{const{trackColor:ae,percentage:ie,strokeWidth:se}=ee,de={background:ae,height:addUnit(se)},fe={width:`${ie}%`,background:ne.value};return createVNode("div",{class:bem$r(),style:de},[createVNode("span",{class:bem$r("portion",{inactive:ee.inactive}),style:fe},null),oe()])}}});const Progress=withInstall(stdin_default$y),[name$r,bem$q,t$5]=createNamespace("pull-refresh"),DEFAULT_HEAD_HEIGHT=50,TEXT_STATUS=["pulling","loosing","success"],pullRefreshProps={disabled:Boolean,modelValue:Boolean,headHeight:makeNumericProp(DEFAULT_HEAD_HEIGHT),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:numericProp,successDuration:makeNumericProp(500),animationDuration:makeNumericProp(300)};var stdin_default$x=defineComponent({name:name$r,props:pullRefreshProps,emits:["change","refresh","update:modelValue"],setup(ee,{emit:ne,slots:oe}){let ae;const ie=ref(),se=ref(),de=useScrollParent(ie),fe=reactive({status:"normal",distance:0,duration:0}),ve=useTouch(),be=()=>{if(ee.headHeight!==DEFAULT_HEAD_HEIGHT)return{height:`${ee.headHeight}px`}},ye=()=>fe.status!=="loading"&&fe.status!=="success"&&!ee.disabled,$e=Oe=>{const Re=+(ee.pullDistance||ee.headHeight);return Oe>Re&&(Oe{const Be=+(ee.pullDistance||ee.headHeight);fe.distance=Oe,Re?fe.status="loading":Oe===0?fe.status="normal":Oe{const{status:Oe}=fe;return Oe==="normal"?"":ee[`${Oe}Text`]||t$5(Oe)},_e=()=>{const{status:Oe,distance:Re}=fe;if(oe[Oe])return oe[Oe]({distance:Re});const Be=[];return TEXT_STATUS.includes(Oe)&&Be.push(createVNode("div",{class:bem$q("text")},[Ee()])),Oe==="loading"&&Be.push(createVNode(Loading,{class:bem$q("loading")},{default:Ee})),Be},Ce=()=>{fe.status="success",setTimeout(()=>{we(0)},+ee.successDuration)},Pe=Oe=>{ae=getScrollTop(de.value)===0,ae&&(fe.duration=0,ve.start(Oe))},Ae=Oe=>{ye()&&Pe(Oe)},ke=Oe=>{if(ye()){ae||Pe(Oe);const{deltaY:Re}=ve;ve.move(Oe),ae&&Re.value>=0&&ve.isVertical()&&(preventDefault(Oe),we($e(Re.value)))}},Ne=()=>{ae&&ve.deltaY.value&&ye()&&(fe.duration=+ee.animationDuration,fe.status==="loosing"?(we(+ee.headHeight,!0),ne("update:modelValue",!0),nextTick(()=>ne("refresh"))):we(0))};return watch(()=>ee.modelValue,Oe=>{fe.duration=+ee.animationDuration,Oe?we(+ee.headHeight,!0):oe.success||ee.successText?Ce():we(0,!1)}),useEventListener("touchmove",ke,{target:se}),()=>{var Oe;const Re={transitionDuration:`${fe.duration}ms`,transform:fe.distance?`translate3d(0,${fe.distance}px, 0)`:""};return createVNode("div",{ref:ie,class:bem$q()},[createVNode("div",{ref:se,class:bem$q("track"),style:Re,onTouchstartPassive:Ae,onTouchend:Ne,onTouchcancel:Ne},[createVNode("div",{class:bem$q("head"),style:be()},[_e()]),(Oe=oe.default)==null?void 0:Oe.call(oe)])])}}});const PullRefresh=withInstall(stdin_default$x),[name$q,bem$p]=createNamespace("rate");function getRateStatus(ee,ne,oe,ae){return ee>=ne?{status:"full",value:1}:ee+.5>=ne&&oe&&!ae?{status:"half",value:.5}:ee+1>=ne&&oe&&ae?{status:"half",value:Math.round((ee-ne+1)*1e10)/1e10}:{status:"void",value:0}}const rateProps={size:numericProp,icon:makeStringProp("star"),color:String,count:makeNumericProp(5),gutter:numericProp,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:makeStringProp("star-o"),allowHalf:Boolean,voidColor:String,touchable:truthProp,iconPrefix:String,modelValue:makeNumberProp(0),disabledColor:String};var stdin_default$w=defineComponent({name:name$q,props:rateProps,emits:["change","update:modelValue"],setup(ee,{emit:ne}){const oe=useTouch(),[ae,ie]=useRefs(),se=ref(),de=computed(()=>ee.readonly||ee.disabled),fe=computed(()=>de.value||!ee.touchable),ve=computed(()=>Array(+ee.count).fill("").map((Ne,Oe)=>getRateStatus(ee.modelValue,Oe+1,ee.allowHalf,ee.readonly)));let be,ye,$e=Number.MAX_SAFE_INTEGER,we=Number.MIN_SAFE_INTEGER;const Ee=()=>{ye=useRect(se);const Ne=ae.value.map(useRect);be=[],Ne.forEach((Oe,Re)=>{$e=Math.min(Oe.top,$e),we=Math.max(Oe.top,we),ee.allowHalf?be.push({score:Re+.5,left:Oe.left,top:Oe.top,height:Oe.height},{score:Re+1,left:Oe.left+Oe.width/2,top:Oe.top,height:Oe.height}):be.push({score:Re+1,left:Oe.left,top:Oe.top,height:Oe.height})})},_e=(Ne,Oe)=>{for(let Re=be.length-1;Re>0;Re--)if(Oe>=ye.top&&Oe<=ye.bottom){if(Ne>be[Re].left&&Oe>=be[Re].top&&Oe<=be[Re].top+be[Re].height)return be[Re].score}else{const Be=Oebe[Re].left&&be[Re].top===Be)return be[Re].score}return ee.allowHalf?.5:1},Ce=Ne=>{de.value||Ne===ee.modelValue||(ne("update:modelValue",Ne),ne("change",Ne))},Pe=Ne=>{fe.value||(oe.start(Ne),Ee())},Ae=Ne=>{if(!fe.value&&(oe.move(Ne),oe.isHorizontal()&&!oe.isTap.value)){const{clientX:Oe,clientY:Re}=Ne.touches[0];preventDefault(Ne),Ce(_e(Oe,Re))}},ke=(Ne,Oe)=>{const{icon:Re,size:Be,color:Me,count:Le,gutter:Xe,voidIcon:Ke,disabled:De,voidColor:je,allowHalf:He,iconPrefix:qe,disabledColor:ze}=ee,Fe=Oe+1,Ze=Ne.status==="full",ot=Ne.status==="void",Nt=He&&Ne.value>0&&Ne.value<1;let Mt;Xe&&Fe!==+Le&&(Mt={paddingRight:addUnit(Xe)});const Ue=Pt=>{Ee();let Dt=He?_e(Pt.clientX,Pt.clientY):Fe;ee.clearable&&oe.isTap.value&&Dt===ee.modelValue&&(Dt=0),Ce(Dt)};return createVNode("div",{key:Oe,ref:ie(Oe),role:"radio",style:Mt,class:bem$p("item"),tabindex:De?void 0:0,"aria-setsize":Le,"aria-posinset":Fe,"aria-checked":!ot,onClick:Ue},[createVNode(Icon,{size:Be,name:Ze?Re:Ke,class:bem$p("icon",{disabled:De,full:Ze}),color:De?ze:Ze?Me:je,classPrefix:qe},null),Nt&&createVNode(Icon,{size:Be,style:{width:Ne.value+"em"},name:ot?Ke:Re,class:bem$p("icon",["half",{disabled:De,full:!ot}]),color:De?ze:ot?je:Me,classPrefix:qe},null)])};return useCustomFieldValue(()=>ee.modelValue),useEventListener("touchmove",Ae,{target:se}),()=>createVNode("div",{ref:se,role:"radiogroup",class:bem$p({readonly:ee.readonly,disabled:ee.disabled}),tabindex:ee.disabled?void 0:0,"aria-disabled":ee.disabled,"aria-readonly":ee.readonly,onTouchstartPassive:Pe},[ve.value.map(ke)])}});const Rate=withInstall(stdin_default$w),props={figureArr:makeArrayProp(),delay:Number,duration:makeNumberProp(2),isStart:Boolean,direction:makeStringProp("down"),height:makeNumberProp(40)},[name$p,bem$o]=createNamespace("rolling-text-item");var stdin_default$v=defineComponent({name:name$p,props,setup(ee){const ne=computed(()=>ee.direction==="down"?ee.figureArr.slice().reverse():ee.figureArr),oe=computed(()=>`-${ee.height*(ee.figureArr.length-1)}px`),ae=computed(()=>({lineHeight:addUnit(ee.height)})),ie=computed(()=>({height:addUnit(ee.height),"--van-translate":oe.value,"--van-duration":ee.duration+"s","--van-delay":ee.delay+"s"}));return()=>createVNode("div",{class:bem$o([ee.direction]),style:ie.value},[createVNode("div",{class:bem$o("box",{animate:ee.isStart})},[Array.isArray(ne.value)&&ne.value.map(se=>createVNode("div",{class:bem$o("item"),style:ae.value},[se]))])])}});const[name$o,bem$n]=createNamespace("rolling-text"),rollingTextProps={startNum:makeNumberProp(0),targetNum:Number,textList:makeArrayProp(),duration:makeNumberProp(2),autoStart:truthProp,direction:makeStringProp("down"),stopOrder:makeStringProp("ltr"),height:makeNumberProp(40)},CIRCLE_NUM=2;var stdin_default$u=defineComponent({name:name$o,props:rollingTextProps,setup(ee){const ne=computed(()=>Array.isArray(ee.textList)&&ee.textList.length),oe=computed(()=>ne.value?ee.textList[0].length:`${Math.max(ee.startNum,ee.targetNum)}`.length),ae=$e=>{const we=[];for(let Ee=0;Eene.value?new Array(oe.value).fill(""):padZero(ee.targetNum,oe.value).split("")),se=computed(()=>padZero(ee.startNum,oe.value).split("")),de=$e=>{const we=+se.value[$e],Ee=+ie.value[$e],_e=[];for(let Ce=we;Ce<=9;Ce++)_e.push(Ce);for(let Ce=0;Ce<=CIRCLE_NUM;Ce++)for(let Pe=0;Pe<=9;Pe++)_e.push(Pe);for(let Ce=0;Ce<=Ee;Ce++)_e.push(Ce);return _e},fe=($e,we)=>ee.stopOrder==="ltr"?.2*$e:.2*(we-1-$e),ve=ref(ee.autoStart),be=()=>{ve.value=!0},ye=()=>{ve.value=!1,ee.autoStart&&raf(()=>be())};return watch(()=>ee.autoStart,$e=>{$e&&be()}),useExpose({start:be,reset:ye}),()=>createVNode("div",{class:bem$n()},[ie.value.map(($e,we)=>createVNode(stdin_default$v,{figureArr:ne.value?ae(we):de(we),duration:ee.duration,direction:ee.direction,isStart:ve.value,height:ee.height,delay:fe(we,oe.value)},null))])}});const RollingText=withInstall(stdin_default$u),Row=withInstall(stdin_default$15),[name$n,bem$m,t$4]=createNamespace("search"),searchProps=extend({},fieldSharedProps,{label:String,shape:makeStringProp("square"),leftIcon:makeStringProp("search"),clearable:truthProp,actionText:String,background:String,showAction:Boolean});var stdin_default$t=defineComponent({name:name$n,props:searchProps,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=useId(),se=ref(),de=()=>{oe.action||(ne("update:modelValue",""),ne("cancel"))},fe=Re=>{Re.keyCode===13&&(preventDefault(Re),ne("search",ee.modelValue))},ve=()=>ee.id||`${ie}-input`,be=()=>{if(oe.label||ee.label)return createVNode("label",{class:bem$m("label"),for:ve(),"data-allow-mismatch":"attribute"},[oe.label?oe.label():ee.label])},ye=()=>{if(ee.showAction){const Re=ee.actionText||t$4("cancel");return createVNode("div",{class:bem$m("action"),role:"button",tabindex:0,onClick:de},[oe.action?oe.action():Re])}},$e=()=>{var Re;return(Re=se.value)==null?void 0:Re.blur()},we=()=>{var Re;return(Re=se.value)==null?void 0:Re.focus()},Ee=Re=>ne("blur",Re),_e=Re=>ne("focus",Re),Ce=Re=>ne("clear",Re),Pe=Re=>ne("clickInput",Re),Ae=Re=>ne("clickLeftIcon",Re),ke=Re=>ne("clickRightIcon",Re),Ne=Object.keys(fieldSharedProps),Oe=()=>{const Re=extend({},ae,pick(ee,Ne),{id:ve()}),Be=Me=>ne("update:modelValue",Me);return createVNode(Field,mergeProps({ref:se,type:"search",class:bem$m("field",{"with-message":Re.errorMessage}),border:!1,onBlur:Ee,onFocus:_e,onClear:Ce,onKeypress:fe,onClickInput:Pe,onClickLeftIcon:Ae,onClickRightIcon:ke,"onUpdate:modelValue":Be},Re),pick(oe,["left-icon","right-icon"]))};return useExpose({focus:we,blur:$e}),()=>{var Re;return createVNode("div",{class:bem$m({"show-action":ee.showAction}),style:{background:ee.background}},[(Re=oe.left)==null?void 0:Re.call(oe),createVNode("div",{class:bem$m("content",ee.shape)},[be(),Oe()]),ye()])}}});const Search=withInstall(stdin_default$t),isImage=ee=>ee==null?void 0:ee.includes("/"),popupInheritKeys=[...popupSharedPropKeys,"round","closeOnPopstate","safeAreaInsetBottom"],iconMap={qq:"qq",link:"link-o",weibo:"weibo",qrcode:"qr",poster:"photo-o",wechat:"wechat","weapp-qrcode":"miniprogram-o","wechat-moments":"wechat-moments"},[name$m,bem$l,t$3]=createNamespace("share-sheet"),shareSheetProps=extend({},popupSharedProps,{title:String,round:truthProp,options:makeArrayProp(),cancelText:String,description:String,closeOnPopstate:truthProp,safeAreaInsetBottom:truthProp});var stdin_default$s=defineComponent({name:name$m,props:shareSheetProps,emits:["cancel","select","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=we=>ne("update:show",we),ie=()=>{ae(!1),ne("cancel")},se=(we,Ee)=>ne("select",we,Ee),de=()=>{const we=oe.title?oe.title():ee.title,Ee=oe.description?oe.description():ee.description;if(we||Ee)return createVNode("div",{class:bem$l("header")},[we&&createVNode("h2",{class:bem$l("title")},[we]),Ee&&createVNode("span",{class:bem$l("description")},[Ee])])},fe=we=>isImage(we)?createVNode("img",{src:we,class:bem$l("image-icon")},null):createVNode("div",{class:bem$l("icon",[we])},[createVNode(Icon,{name:iconMap[we]||we},null)]),ve=(we,Ee)=>{const{name:_e,icon:Ce,className:Pe,description:Ae}=we;return createVNode("div",{role:"button",tabindex:0,class:[bem$l("option"),Pe,HAPTICS_FEEDBACK],onClick:()=>se(we,Ee)},[fe(Ce),_e&&createVNode("span",{class:bem$l("name")},[_e]),Ae&&createVNode("span",{class:bem$l("option-description")},[Ae])])},be=(we,Ee)=>createVNode("div",{class:bem$l("options",{border:Ee})},[we.map(ve)]),ye=()=>{const{options:we}=ee;return Array.isArray(we[0])?we.map((Ee,_e)=>be(Ee,_e!==0)):be(we)},$e=()=>{var we;const Ee=(we=ee.cancelText)!=null?we:t$3("cancel");if(oe.cancel||Ee)return createVNode("button",{type:"button",class:bem$l("cancel"),onClick:ie},[oe.cancel?oe.cancel():Ee])};return()=>createVNode(Popup,mergeProps({class:bem$l(),position:"bottom","onUpdate:show":ae},pick(ee,popupInheritKeys)),{default:()=>[de(),ye(),$e()]})}});const ShareSheet=withInstall(stdin_default$s),[name$l,bem$k]=createNamespace("sidebar"),SIDEBAR_KEY=Symbol(name$l),sidebarProps={modelValue:makeNumericProp(0)};var stdin_default$r=defineComponent({name:name$l,props:sidebarProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(SIDEBAR_KEY),ie=()=>+ee.modelValue;return ae({getActive:ie,setActive:de=>{de!==ie()&&(ne("update:modelValue",de),ne("change",de))}}),()=>{var de;return createVNode("div",{role:"tablist",class:bem$k()},[(de=oe.default)==null?void 0:de.call(oe)])}}});const Sidebar=withInstall(stdin_default$r),[name$k,bem$j]=createNamespace("sidebar-item"),sidebarItemProps=extend({},routeProps,{dot:Boolean,title:String,badge:numericProp,disabled:Boolean,badgeProps:Object});var stdin_default$q=defineComponent({name:name$k,props:sidebarItemProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),{parent:ie,index:se}=useParent(SIDEBAR_KEY);if(!ie)return;const de=()=>{ee.disabled||(ne("click",se.value),ie.setActive(se.value),ae())};return()=>{const{dot:fe,badge:ve,title:be,disabled:ye}=ee,$e=se.value===ie.getActive();return createVNode("div",{role:"tab",class:bem$j({select:$e,disabled:ye}),tabindex:ye?void 0:0,"aria-selected":$e,onClick:de},[createVNode(Badge,mergeProps({dot:fe,class:bem$j("text"),content:ve},ee.badgeProps),{default:()=>[oe.title?oe.title():be]})])}}});const SidebarItem=withInstall(stdin_default$q),[name$j,bem$i,t$2]=createNamespace("signature"),signatureProps={tips:String,type:makeStringProp("png"),penColor:makeStringProp("#000"),lineWidth:makeNumberProp(3),clearButtonText:String,backgroundColor:makeStringProp(""),confirmButtonText:String},hasCanvasSupport=()=>{var ee;const ne=document.createElement("canvas");return!!((ee=ne.getContext)!=null&&ee.call(ne,"2d"))};var stdin_default$p=defineComponent({name:name$j,props:signatureProps,emits:["submit","clear","start","end","signing"],setup(ee,{emit:ne}){const oe=ref(),ae=ref(),ie=computed(()=>oe.value?oe.value.getContext("2d"):null),se=inBrowser$1?hasCanvasSupport():!0;let de=0,fe=0,ve;const be=()=>{if(!ie.value)return!1;ie.value.beginPath(),ie.value.lineWidth=ee.lineWidth,ie.value.strokeStyle=ee.penColor,ve=useRect(oe),ne("start")},ye=ke=>{if(!ie.value)return!1;preventDefault(ke);const Ne=ke.touches[0],Oe=Ne.clientX-((ve==null?void 0:ve.left)||0),Re=Ne.clientY-((ve==null?void 0:ve.top)||0);ie.value.lineCap="round",ie.value.lineJoin="round",ie.value.lineTo(Oe,Re),ie.value.stroke(),ne("signing",ke)},$e=ke=>{preventDefault(ke),ne("end")},we=ke=>{const Ne=document.createElement("canvas");if(Ne.width=ke.width,Ne.height=ke.height,ee.backgroundColor){const Oe=Ne.getContext("2d");Ee(Oe)}return ke.toDataURL()===Ne.toDataURL()},Ee=ke=>{ke&&ee.backgroundColor&&(ke.fillStyle=ee.backgroundColor,ke.fillRect(0,0,de,fe))},_e=()=>{var ke,Ne;const Oe=oe.value;if(!Oe)return;const Be=we(Oe)?"":((Ne=(ke={jpg:()=>Oe.toDataURL("image/jpeg",.8),jpeg:()=>Oe.toDataURL("image/jpeg",.8)})[ee.type])==null?void 0:Ne.call(ke))||Oe.toDataURL(`image/${ee.type}`);ne("submit",{image:Be,canvas:Oe})},Ce=()=>{ie.value&&(ie.value.clearRect(0,0,de,fe),ie.value.closePath(),Ee(ie.value)),ne("clear")},Pe=()=>{var ke,Ne,Oe;if(se&&oe.value){const Re=oe.value,Be=inBrowser$1?window.devicePixelRatio:1;de=Re.width=(((ke=ae.value)==null?void 0:ke.offsetWidth)||0)*Be,fe=Re.height=(((Ne=ae.value)==null?void 0:Ne.offsetHeight)||0)*Be,(Oe=ie.value)==null||Oe.scale(Be,Be),Ee(ie.value)}},Ae=()=>{if(ie.value){const ke=ie.value.getImageData(0,0,de,fe);Pe(),ie.value.putImageData(ke,0,0)}};return watch(windowWidth,Ae),onMounted(Pe),useExpose({resize:Ae,clear:Ce,submit:_e}),()=>createVNode("div",{class:bem$i()},[createVNode("div",{class:bem$i("content"),ref:ae},[se?createVNode("canvas",{ref:oe,onTouchstartPassive:be,onTouchmove:ye,onTouchend:$e},null):createVNode("p",null,[ee.tips])]),createVNode("div",{class:bem$i("footer")},[createVNode(Button,{size:"small",onClick:Ce},{default:()=>[ee.clearButtonText||t$2("clear")]}),createVNode(Button,{type:"primary",size:"small",onClick:_e},{default:()=>[ee.confirmButtonText||t$2("confirm")]})])])}});const Signature=withInstall(stdin_default$p),[name$i,bem$h]=createNamespace("skeleton-title"),skeletonTitleProps={round:Boolean,titleWidth:numericProp};var stdin_default$o=defineComponent({name:name$i,props:skeletonTitleProps,setup(ee){return()=>createVNode("h3",{class:bem$h([{round:ee.round}]),style:{width:addUnit(ee.titleWidth)}},null)}});const SkeletonTitle=withInstall(stdin_default$o);var stdin_default$n=SkeletonTitle;const[name$h,bem$g]=createNamespace("skeleton-avatar"),skeletonAvatarProps={avatarSize:numericProp,avatarShape:makeStringProp("round")};var stdin_default$m=defineComponent({name:name$h,props:skeletonAvatarProps,setup(ee){return()=>createVNode("div",{class:bem$g([ee.avatarShape]),style:getSizeStyle(ee.avatarSize)},null)}});const SkeletonAvatar=withInstall(stdin_default$m);var stdin_default$l=SkeletonAvatar;const DEFAULT_ROW_WIDTH="100%",skeletonParagraphProps={round:Boolean,rowWidth:{type:numericProp,default:DEFAULT_ROW_WIDTH}},[name$g,bem$f]=createNamespace("skeleton-paragraph");var stdin_default$k=defineComponent({name:name$g,props:skeletonParagraphProps,setup(ee){return()=>createVNode("div",{class:bem$f([{round:ee.round}]),style:{width:ee.rowWidth}},null)}});const SkeletonParagraph=withInstall(stdin_default$k);var stdin_default$j=SkeletonParagraph;const[name$f,bem$e]=createNamespace("skeleton"),DEFAULT_LAST_ROW_WIDTH="60%",skeletonProps={row:makeNumericProp(0),round:Boolean,title:Boolean,titleWidth:numericProp,avatar:Boolean,avatarSize:numericProp,avatarShape:makeStringProp("round"),loading:truthProp,animate:truthProp,rowWidth:{type:[Number,String,Array],default:DEFAULT_ROW_WIDTH}};var stdin_default$i=defineComponent({name:name$f,inheritAttrs:!1,props:skeletonProps,setup(ee,{slots:ne,attrs:oe}){const ae=()=>{if(ee.avatar)return createVNode(stdin_default$l,{avatarShape:ee.avatarShape,avatarSize:ee.avatarSize},null)},ie=()=>{if(ee.title)return createVNode(stdin_default$n,{round:ee.round,titleWidth:ee.titleWidth},null)},se=ve=>{const{rowWidth:be}=ee;return be===DEFAULT_ROW_WIDTH&&ve===+ee.row-1?DEFAULT_LAST_ROW_WIDTH:Array.isArray(be)?be[ve]:be},de=()=>Array(+ee.row).fill("").map((ve,be)=>createVNode(stdin_default$j,{key:be,round:ee.round,rowWidth:addUnit(se(be))},null)),fe=()=>ne.template?ne.template():createVNode(Fragment,null,[ae(),createVNode("div",{class:bem$e("content")},[ie(),de()])]);return()=>{var ve;return ee.loading?createVNode("div",mergeProps({class:bem$e({animate:ee.animate,round:ee.round})},oe),[fe()]):(ve=ne.default)==null?void 0:ve.call(ne)}}});const Skeleton=withInstall(stdin_default$i),[name$e,bem$d]=createNamespace("skeleton-image"),skeletonImageProps={imageSize:numericProp,imageShape:makeStringProp("square")};var stdin_default$h=defineComponent({name:name$e,props:skeletonImageProps,setup(ee){return()=>createVNode("div",{class:bem$d([ee.imageShape]),style:getSizeStyle(ee.imageSize)},[createVNode(Icon,{name:"photo",class:bem$d("icon")},null)])}});const SkeletonImage=withInstall(stdin_default$h),[name$d,bem$c]=createNamespace("slider"),sliderProps={min:makeNumericProp(0),max:makeNumericProp(100),step:makeNumericProp(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:numericProp,buttonSize:numericProp,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var stdin_default$g=defineComponent({name:name$d,props:sliderProps,emits:["change","dragEnd","dragStart","update:modelValue"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se;const de=ref(),fe=[ref(),ref()],ve=ref(),be=useTouch(),ye=computed(()=>Number(ee.max)-Number(ee.min)),$e=computed(()=>{const De=ee.vertical?"width":"height";return{background:ee.inactiveColor,[De]:addUnit(ee.barHeight)}}),we=De=>ee.range&&Array.isArray(De),Ee=()=>{const{modelValue:De,min:je}=ee;return we(De)?`${(De[1]-De[0])*100/ye.value}%`:`${(De-Number(je))*100/ye.value}%`},_e=()=>{const{modelValue:De,min:je}=ee;return we(De)?`${(De[0]-Number(je))*100/ye.value}%`:"0%"},Ce=computed(()=>{const je={[ee.vertical?"height":"width"]:Ee(),background:ee.activeColor};ve.value&&(je.transition="none");const He=()=>ee.vertical?ee.reverse?"bottom":"top":ee.reverse?"right":"left";return je[He()]=_e(),je}),Pe=De=>{const je=+ee.min,He=+ee.max,qe=+ee.step;De=clamp(De,je,He);const ze=Math.round((De-je)/qe)*qe;return addNumber(je,ze)},Ae=()=>{const De=ee.modelValue;we(De)?se=De.map(Pe):se=Pe(De)},ke=De=>{var je,He;const qe=(je=De[0])!=null?je:Number(ee.min),ze=(He=De[1])!=null?He:Number(ee.max);return qe>ze?[ze,qe]:[qe,ze]},Ne=(De,je)=>{we(De)?De=ke(De).map(Pe):De=Pe(De),isSameValue(De,ee.modelValue)||ne("update:modelValue",De),je&&!isSameValue(De,se)&&ne("change",De)},Oe=De=>{if(De.stopPropagation(),ee.disabled||ee.readonly)return;Ae();const{min:je,reverse:He,vertical:qe,modelValue:ze}=ee,Fe=useRect(de),Ze=()=>qe?He?Fe.bottom-De.clientY:De.clientY-Fe.top:He?Fe.right-De.clientX:De.clientX-Fe.left,ot=qe?Fe.height:Fe.width,Nt=Number(je)+Ze()/ot*ye.value;if(we(ze)){const[Mt,Ue]=ze,Pt=(Mt+Ue)/2;Nt<=Pt?Ne([Nt,Ue],!0):Ne([Mt,Nt],!0)}else Ne(Nt,!0)},Re=De=>{ee.disabled||ee.readonly||(be.start(De),ie=ee.modelValue,Ae(),ve.value="start")},Be=De=>{if(ee.disabled||ee.readonly)return;ve.value==="start"&&ne("dragStart",De),preventDefault(De,!0),be.move(De),ve.value="dragging";const je=useRect(de),He=ee.vertical?be.deltaY.value:be.deltaX.value,qe=ee.vertical?je.height:je.width;let ze=He/qe*ye.value;if(ee.reverse&&(ze=-ze),we(se)){const Fe=ee.reverse?1-ae:ae;ie[Fe]=se[Fe]+ze}else ie=se+ze;Ne(ie)},Me=De=>{ee.disabled||ee.readonly||(ve.value==="dragging"&&(Ne(ie,!0),ne("dragEnd",De)),ve.value="")},Le=De=>typeof De=="number"?bem$c("button-wrapper",["left","right"][De]):bem$c("button-wrapper",ee.reverse?"left":"right"),Xe=(De,je)=>{const He=ve.value==="dragging";if(typeof je=="number"){const qe=oe[je===0?"left-button":"right-button"];let ze;if(He&&Array.isArray(ie)&&(ze=ie[0]>ie[1]?ae^1:ae),qe)return qe({value:De,dragging:He,dragIndex:ze})}return oe.button?oe.button({value:De,dragging:He}):createVNode("div",{class:bem$c("button"),style:getSizeStyle(ee.buttonSize)},null)},Ke=De=>{const je=typeof De=="number"?ee.modelValue[De]:ee.modelValue;return createVNode("div",{ref:fe[De??0],role:"slider",class:Le(De),tabindex:ee.disabled?void 0:0,"aria-valuemin":ee.min,"aria-valuenow":je,"aria-valuemax":ee.max,"aria-disabled":ee.disabled||void 0,"aria-readonly":ee.readonly||void 0,"aria-orientation":ee.vertical?"vertical":"horizontal",onTouchstartPassive:He=>{typeof De=="number"&&(ae=De),Re(He)},onTouchend:Me,onTouchcancel:Me,onClick:stopPropagation},[Xe(je,De)])};return Ne(ee.modelValue),useCustomFieldValue(()=>ee.modelValue),fe.forEach(De=>{useEventListener("touchmove",Be,{target:De})}),()=>createVNode("div",{ref:de,style:$e.value,class:bem$c({vertical:ee.vertical,disabled:ee.disabled}),onClick:Oe},[createVNode("div",{class:bem$c("bar"),style:Ce.value},[ee.range?[Ke(0),Ke(1)]:Ke()])])}});const Slider=withInstall(stdin_default$g),[name$c,bem$b]=createNamespace("space"),spaceProps={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function filterEmpty(ee=[]){const ne=[];return ee.forEach(oe=>{Array.isArray(oe)?ne.push(...oe):oe.type===Fragment?ne.push(...filterEmpty(oe.children)):ne.push(oe)}),ne.filter(oe=>{var ae;return!(oe&&(oe.type===Comment$1||oe.type===Fragment&&((ae=oe.children)==null?void 0:ae.length)===0||oe.type===Text&&oe.children.trim()===""))})}var stdin_default$f=defineComponent({name:name$c,props:spaceProps,setup(ee,{slots:ne}){const oe=computed(()=>{var se;return(se=ee.align)!=null?se:ee.direction==="horizontal"?"center":""}),ae=se=>typeof se=="number"?se+"px":se,ie=se=>{const de={},fe=`${ae(Array.isArray(ee.size)?ee.size[0]:ee.size)}`,ve=`${ae(Array.isArray(ee.size)?ee.size[1]:ee.size)}`;return se?ee.wrap?{marginBottom:ve}:{}:(ee.direction==="horizontal"&&(de.marginRight=fe),(ee.direction==="vertical"||ee.wrap)&&(de.marginBottom=ve),de)};return()=>{var se;const de=filterEmpty((se=ne.default)==null?void 0:se.call(ne));return createVNode("div",{class:[bem$b({[ee.direction]:ee.direction,[`align-${oe.value}`]:oe.value,wrap:ee.wrap,fill:ee.fill})]},[de.map((fe,ve)=>createVNode("div",{key:`item-${ve}`,class:`${name$c}-item`,style:ie(ve===de.length-1)},[fe]))])}}});const Space=withInstall(stdin_default$f),[name$b,bem$a]=createNamespace("steps"),stepsProps={active:makeNumericProp(0),direction:makeStringProp("horizontal"),activeIcon:makeStringProp("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},STEPS_KEY=Symbol(name$b);var stdin_default$e=defineComponent({name:name$b,props:stepsProps,emits:["clickStep"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(STEPS_KEY);return ae({props:ee,onClickStep:se=>ne("clickStep",se)}),()=>{var se;return createVNode("div",{class:bem$a([ee.direction])},[createVNode("div",{class:bem$a("items")},[(se=oe.default)==null?void 0:se.call(oe)])])}}});const[name$a,bem$9]=createNamespace("step");var stdin_default$d=defineComponent({name:name$a,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(STEPS_KEY);if(!oe)return;const ie=oe.props,se=()=>{const $e=+ie.active;return ae.value<$e?"finish":ae.value===$e?"process":"waiting"},de=()=>se()==="process",fe=computed(()=>({background:se()==="finish"?ie.activeColor:ie.inactiveColor})),ve=computed(()=>{if(de())return{color:ie.activeColor};if(se()==="waiting")return{color:ie.inactiveColor}}),be=()=>oe.onClickStep(ae.value),ye=()=>{const{iconPrefix:$e,finishIcon:we,activeIcon:Ee,activeColor:_e,inactiveIcon:Ce}=ie;return de()?ne["active-icon"]?ne["active-icon"]():createVNode(Icon,{class:bem$9("icon","active"),name:Ee,color:_e,classPrefix:$e},null):se()==="finish"&&(we||ne["finish-icon"])?ne["finish-icon"]?ne["finish-icon"]():createVNode(Icon,{class:bem$9("icon","finish"),name:we,color:_e,classPrefix:$e},null):ne["inactive-icon"]?ne["inactive-icon"]():Ce?createVNode(Icon,{class:bem$9("icon"),name:Ce,classPrefix:$e},null):createVNode("i",{class:bem$9("circle"),style:fe.value},null)};return()=>{var $e;const we=se();return createVNode("div",{class:[BORDER,bem$9([ie.direction,{[we]:we}])]},[createVNode("div",{class:bem$9("title",{active:de()}),style:ve.value,onClick:be},[($e=ne.default)==null?void 0:$e.call(ne)]),createVNode("div",{class:bem$9("circle-container"),onClick:be},[ye()]),createVNode("div",{class:bem$9("line"),style:fe.value},null)])}}});const Step=withInstall(stdin_default$d),[name$9,bem$8]=createNamespace("stepper"),LONG_PRESS_INTERVAL=200,isEqual=(ee,ne)=>String(ee)===String(ne),stepperProps={min:makeNumericProp(1),max:makeNumericProp(1/0),name:makeNumericProp(""),step:makeNumericProp(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:truthProp,showMinus:truthProp,showInput:truthProp,longPress:truthProp,autoFixed:truthProp,allowEmpty:Boolean,modelValue:numericProp,inputWidth:numericProp,buttonSize:numericProp,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:makeNumericProp(1),decimalLength:numericProp};var stdin_default$c=defineComponent({name:name$9,props:stepperProps,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(ee,{emit:ne}){const oe=(Le,Xe=!0)=>{const{min:Ke,max:De,allowEmpty:je,decimalLength:He}=ee;return je&&Le===""||(Le=formatNumber(String(Le),!ee.integer),Le=Le===""?0:+Le,Le=Number.isNaN(Le)?+Ke:Le,Le=Xe?Math.max(Math.min(+De,Le),+Ke):Le,isDef(He)&&(Le=Le.toFixed(+He))),Le},ae=()=>{var Le;const Xe=(Le=ee.modelValue)!=null?Le:ee.defaultValue,Ke=oe(Xe);return isEqual(Ke,ee.modelValue)||ne("update:modelValue",Ke),Ke};let ie;const se=ref(),de=ref(ae()),fe=computed(()=>ee.disabled||ee.disableMinus||+de.value<=+ee.min),ve=computed(()=>ee.disabled||ee.disablePlus||+de.value>=+ee.max),be=computed(()=>({width:addUnit(ee.inputWidth),height:addUnit(ee.buttonSize)})),ye=computed(()=>getSizeStyle(ee.buttonSize)),$e=()=>{const Le=oe(de.value);isEqual(Le,de.value)||(de.value=Le)},we=Le=>{ee.beforeChange?callInterceptor(ee.beforeChange,{args:[Le],done(){de.value=Le}}):de.value=Le},Ee=()=>{if(ie==="plus"&&ve.value||ie==="minus"&&fe.value){ne("overlimit",ie);return}const Le=ie==="minus"?-ee.step:+ee.step,Xe=oe(addNumber(+de.value,Le));we(Xe),ne(ie)},_e=Le=>{const Xe=Le.target,{value:Ke}=Xe,{decimalLength:De}=ee;let je=formatNumber(String(Ke),!ee.integer);if(isDef(De)&&je.includes(".")){const qe=je.split(".");je=`${qe[0]}.${qe[1].slice(0,+De)}`}ee.beforeChange?Xe.value=String(de.value):isEqual(Ke,je)||(Xe.value=je);const He=je===String(+je);we(He?+je:je)},Ce=Le=>{var Xe;ee.disableInput?(Xe=se.value)==null||Xe.blur():ne("focus",Le)},Pe=Le=>{const Xe=Le.target,Ke=oe(Xe.value,ee.autoFixed);Xe.value=String(Ke),de.value=Ke,nextTick(()=>{ne("blur",Le),resetScroll()})};let Ae,ke;const Ne=()=>{ke=setTimeout(()=>{Ee(),Ne()},LONG_PRESS_INTERVAL)},Oe=()=>{ee.longPress&&(Ae=!1,clearTimeout(ke),ke=setTimeout(()=>{Ae=!0,Ee(),Ne()},LONG_PRESS_START_TIME))},Re=Le=>{ee.longPress&&(clearTimeout(ke),Ae&&preventDefault(Le))},Be=Le=>{ee.disableInput&&preventDefault(Le)},Me=Le=>({onClick:Xe=>{preventDefault(Xe),ie=Le,Ee()},onTouchstartPassive:()=>{ie=Le,Oe()},onTouchend:Re,onTouchcancel:Re});return watch(()=>[ee.max,ee.min,ee.integer,ee.decimalLength],$e),watch(()=>ee.modelValue,Le=>{isEqual(Le,de.value)||(de.value=oe(Le))}),watch(de,Le=>{ne("update:modelValue",Le),ne("change",Le,{name:ee.name})}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode("div",{role:"group",class:bem$8([ee.theme])},[withDirectives(createVNode("button",mergeProps({type:"button",style:ye.value,class:[bem$8("minus",{disabled:fe.value}),{[HAPTICS_FEEDBACK]:!fe.value}],"aria-disabled":fe.value||void 0},Me("minus")),null),[[vShow,ee.showMinus]]),withDirectives(createVNode("input",{ref:se,type:ee.integer?"tel":"text",role:"spinbutton",class:bem$8("input"),value:de.value,style:be.value,disabled:ee.disabled,readonly:ee.disableInput,inputmode:ee.integer?"numeric":"decimal",placeholder:ee.placeholder,autocomplete:"off","aria-valuemax":ee.max,"aria-valuemin":ee.min,"aria-valuenow":de.value,onBlur:Pe,onInput:_e,onFocus:Ce,onMousedown:Be},null),[[vShow,ee.showInput]]),withDirectives(createVNode("button",mergeProps({type:"button",style:ye.value,class:[bem$8("plus",{disabled:ve.value}),{[HAPTICS_FEEDBACK]:!ve.value}],"aria-disabled":ve.value||void 0},Me("plus")),null),[[vShow,ee.showPlus]])])}});const Stepper=withInstall(stdin_default$c),Steps=withInstall(stdin_default$e),[name$8,bem$7,t$1]=createNamespace("submit-bar"),submitBarProps={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:makeStringProp("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:makeStringProp("danger"),buttonColor:String,suffixLabel:String,placeholder:Boolean,decimalLength:makeNumericProp(2),safeAreaInsetBottom:truthProp};var stdin_default$b=defineComponent({name:name$8,props:submitBarProps,emits:["submit"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=usePlaceholder(ae,bem$7),se=()=>{const{price:ye,label:$e,currency:we,textAlign:Ee,suffixLabel:_e,decimalLength:Ce}=ee;if(typeof ye=="number"){const Pe=(ye/100).toFixed(+Ce).split("."),Ae=Ce?`.${Pe[1]}`:"";return createVNode("div",{class:bem$7("text"),style:{textAlign:Ee}},[createVNode("span",null,[$e||t$1("label")]),createVNode("span",{class:bem$7("price")},[we,createVNode("span",{class:bem$7("price-integer")},[Pe[0]]),Ae]),_e&&createVNode("span",{class:bem$7("suffix-label")},[_e])])}},de=()=>{var ye;const{tip:$e,tipIcon:we}=ee;if(oe.tip||$e)return createVNode("div",{class:bem$7("tip")},[we&&createVNode(Icon,{class:bem$7("tip-icon"),name:we},null),$e&&createVNode("span",{class:bem$7("tip-text")},[$e]),(ye=oe.tip)==null?void 0:ye.call(oe)])},fe=()=>ne("submit"),ve=()=>oe.button?oe.button():createVNode(Button,{round:!0,type:ee.buttonType,text:ee.buttonText,class:bem$7("button",ee.buttonType),color:ee.buttonColor,loading:ee.loading,disabled:ee.disabled,onClick:fe},null),be=()=>{var ye,$e;return createVNode("div",{ref:ae,class:[bem$7(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[(ye=oe.top)==null?void 0:ye.call(oe),de(),createVNode("div",{class:bem$7("bar")},[($e=oe.default)==null?void 0:$e.call(oe),se(),ve()])])};return()=>ee.placeholder?ie(be):be()}});const SubmitBar=withInstall(stdin_default$b),[name$7,bem$6]=createNamespace("swipe-cell"),swipeCellProps={name:makeNumericProp(""),disabled:Boolean,leftWidth:numericProp,rightWidth:numericProp,beforeClose:Function,stopPropagation:Boolean};var stdin_default$a=defineComponent({name:name$7,props:swipeCellProps,emits:["open","close","click"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de;const fe=ref(),ve=ref(),be=ref(),ye=reactive({offset:0,dragging:!1}),$e=useTouch(),we=Le=>Le.value?useRect(Le).width:0,Ee=computed(()=>isDef(ee.leftWidth)?+ee.leftWidth:we(ve)),_e=computed(()=>isDef(ee.rightWidth)?+ee.rightWidth:we(be)),Ce=Le=>{ye.offset=Le==="left"?Ee.value:-_e.value,ae||(ae=!0,ne("open",{name:ee.name,position:Le}))},Pe=Le=>{ye.offset=0,ae&&(ae=!1,ne("close",{name:ee.name,position:Le}))},Ae=Le=>{const Xe=Math.abs(ye.offset),Ke=.15,De=ae?1-Ke:Ke,je=Le==="left"?Ee.value:_e.value;je&&Xe>je*De?Ce(Le):Pe(Le)},ke=Le=>{ee.disabled||(se=ye.offset,$e.start(Le))},Ne=Le=>{if(ee.disabled)return;const{deltaX:Xe}=$e;$e.move(Le),$e.isHorizontal()&&(ie=!0,ye.dragging=!0,(!ae||Xe.value*se<0)&&preventDefault(Le,ee.stopPropagation),ye.offset=clamp(Xe.value+se,-_e.value,Ee.value))},Oe=()=>{ye.dragging&&(ye.dragging=!1,Ae(ye.offset>0?"left":"right"),setTimeout(()=>{ie=!1},0))},Re=(Le="outside",Xe)=>{de||(ne("click",Le),ae&&!ie&&(de=!0,callInterceptor(ee.beforeClose,{args:[{event:Xe,name:ee.name,position:Le}],done:()=>{de=!1,Pe(Le)},canceled:()=>de=!1,error:()=>de=!1})))},Be=(Le,Xe)=>Ke=>{Xe&&Ke.stopPropagation(),!ie&&Re(Le,Ke)},Me=(Le,Xe)=>{const Ke=oe[Le];if(Ke)return createVNode("div",{ref:Xe,class:bem$6(Le),onClick:Be(Le,!0)},[Ke()])};return useExpose({open:Ce,close:Pe}),useClickAway(fe,Le=>Re("outside",Le),{eventName:"touchstart"}),useEventListener("touchmove",Ne,{target:fe}),()=>{var Le;const Xe={transform:`translate3d(${ye.offset}px, 0, 0)`,transitionDuration:ye.dragging?"0s":".6s"};return createVNode("div",{ref:fe,class:bem$6(),onClick:Be("cell",ie),onTouchstartPassive:ke,onTouchend:Oe,onTouchcancel:Oe},[createVNode("div",{class:bem$6("wrapper"),style:Xe},[Me("left",ve),(Le=oe.default)==null?void 0:Le.call(oe),Me("right",be)])])}}});const SwipeCell=withInstall(stdin_default$a),[name$6,bem$5]=createNamespace("tabbar"),tabbarProps={route:Boolean,fixed:truthProp,border:truthProp,zIndex:numericProp,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:makeNumericProp(0),safeAreaInsetBottom:{type:Boolean,default:null}},TABBAR_KEY=Symbol(name$6);var stdin_default$9=defineComponent({name:name$6,props:tabbarProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),{linkChildren:ie}=useChildren(TABBAR_KEY),se=usePlaceholder(ae,bem$5),de=()=>{var be;return(be=ee.safeAreaInsetBottom)!=null?be:ee.fixed},fe=()=>{var be;const{fixed:ye,zIndex:$e,border:we}=ee;return createVNode("div",{ref:ae,role:"tablist",style:getZIndexStyle($e),class:[bem$5({fixed:ye}),{[BORDER_TOP_BOTTOM]:we,"van-safe-area-bottom":de()}]},[(be=oe.default)==null?void 0:be.call(oe)])};return ie({props:ee,setActive:(be,ye)=>{callInterceptor(ee.beforeChange,{args:[be],done(){ne("update:modelValue",be),ne("change",be),ye()}})}}),()=>ee.fixed&&ee.placeholder?se(fe):fe()}});const Tabbar=withInstall(stdin_default$9),[name$5,bem$4]=createNamespace("tabbar-item"),tabbarItemProps=extend({},routeProps,{dot:Boolean,icon:String,name:numericProp,badge:numericProp,badgeProps:Object,iconPrefix:String});var stdin_default$8=defineComponent({name:name$5,props:tabbarItemProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),ie=getCurrentInstance().proxy,{parent:se,index:de}=useParent(TABBAR_KEY);if(!se)return;const fe=computed(()=>{var ye;const{route:$e,modelValue:we}=se.props;if($e&&"$route"in ie){const{$route:Ee}=ie,{to:_e}=ee,Ce=isObject(_e)?_e:{path:_e};return!!Ee.matched.find(Pe=>{const Ae="path"in Ce&&Ce.path===Pe.path,ke="name"in Ce&&Ce.name===Pe.name;return Ae||ke})}return((ye=ee.name)!=null?ye:de.value)===we}),ve=ye=>{var $e;fe.value||se.setActive(($e=ee.name)!=null?$e:de.value,ae),ne("click",ye)},be=()=>{if(oe.icon)return oe.icon({active:fe.value});if(ee.icon)return createVNode(Icon,{name:ee.icon,classPrefix:ee.iconPrefix},null)};return()=>{var ye;const{dot:$e,badge:we}=ee,{activeColor:Ee,inactiveColor:_e}=se.props,Ce=fe.value?Ee:_e;return createVNode("div",{role:"tab",class:bem$4({active:fe.value}),style:{color:Ce},tabindex:0,"aria-selected":fe.value,onClick:ve},[createVNode(Badge,mergeProps({dot:$e,class:bem$4("icon"),content:we},ee.badgeProps),{default:be}),createVNode("div",{class:bem$4("text")},[(ye=oe.default)==null?void 0:ye.call(oe,{active:fe.value})])])}}});const TabbarItem=withInstall(stdin_default$8),[name$4,bem$3]=createNamespace("text-ellipsis"),textEllipsisProps={rows:makeNumericProp(1),dots:makeStringProp("..."),content:makeStringProp(""),expandText:makeStringProp(""),collapseText:makeStringProp(""),position:makeStringProp("end")};var stdin_default$7=defineComponent({name:name$4,props:textEllipsisProps,emits:["clickAction"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.content),ie=ref(!1),se=ref(!1),de=ref(),fe=ref();let ve=!1;const be=computed(()=>ie.value?ee.collapseText:ee.expandText),ye=Ae=>{if(!Ae)return 0;const ke=Ae.match(/^\d*(\.\d*)?/);return ke?Number(ke[0]):0},$e=()=>{if(!de.value||!de.value.isConnected)return;const Ae=window.getComputedStyle(de.value),ke=document.createElement("div");return Array.prototype.slice.apply(Ae).forEach(Oe=>{ke.style.setProperty(Oe,Ae.getPropertyValue(Oe))}),ke.style.position="fixed",ke.style.zIndex="-9999",ke.style.top="-9999px",ke.style.height="auto",ke.style.minHeight="auto",ke.style.maxHeight="auto",ke.innerText=ee.content,document.body.appendChild(ke),ke},we=(Ae,ke)=>{var Ne,Oe;const{content:Re,position:Be,dots:Me}=ee,Le=Re.length,Xe=0+Le>>1,Ke=oe.action?(Oe=(Ne=fe.value)==null?void 0:Ne.outerHTML)!=null?Oe:"":ee.expandText,De=()=>{const He=(qe,ze)=>{if(ze-qe<=1)return Be==="end"?Re.slice(0,qe)+Me:Me+Re.slice(ze,Le);const Fe=Math.round((qe+ze)/2);return Be==="end"?Ae.innerText=Re.slice(0,Fe)+Me:Ae.innerText=Me+Re.slice(Fe,Le),Ae.innerHTML+=Ke,Ae.offsetHeight>ke?Be==="end"?He(qe,Fe):He(Fe,ze):Be==="end"?He(Fe,ze):He(qe,Fe)};return He(0,Le)},je=(He,qe)=>{if(He[1]-He[0]<=1&&qe[1]-qe[0]<=1)return Re.slice(0,He[0])+Me+Re.slice(qe[1],Le);const ze=Math.floor((He[0]+He[1])/2),Fe=Math.ceil((qe[0]+qe[1])/2);return Ae.innerText=ee.content.slice(0,ze)+ee.dots+ee.content.slice(Fe,Le),Ae.innerHTML+=Ke,Ae.offsetHeight>=ke?je([He[0],ze],[Fe,qe[1]]):je([ze,He[1]],[qe[0],Fe])};return ee.position==="middle"?je([0,Xe],[Xe,Le]):De()},Ee=()=>{const Ae=$e();if(!Ae){ve=!0;return}const{paddingBottom:ke,paddingTop:Ne,lineHeight:Oe}=Ae.style,Re=Math.ceil((Number(ee.rows)+.5)*ye(Oe)+ye(Ne)+ye(ke));Re{ie.value=Ae},Ce=Ae=>{_e(),ne("clickAction",Ae)},Pe=()=>{const Ae=oe.action?oe.action({expanded:ie.value}):be.value;return createVNode("span",{ref:fe,class:bem$3("action"),onClick:Ce},[Ae])};return onMounted(()=>{Ee(),oe.action&&nextTick(Ee)}),onActivated(()=>{ve&&(ve=!1,Ee())}),watch([windowWidth,()=>[ee.content,ee.rows,ee.position]],Ee),useExpose({toggle:_e}),()=>createVNode("div",{ref:de,class:bem$3()},[ie.value?ee.content:ae.value,se.value?Pe():null])}});const TextEllipsis=withInstall(stdin_default$7),[name$3]=createNamespace("time-picker"),validateTime=ee=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(ee),fullColumns=["hour","minute","second"],timePickerProps=extend({},sharedProps,{minHour:makeNumericProp(0),maxHour:makeNumericProp(23),minMinute:makeNumericProp(0),maxMinute:makeNumericProp(59),minSecond:makeNumericProp(0),maxSecond:makeNumericProp(59),minTime:{type:String,validator:validateTime},maxTime:{type:String,validator:validateTime},columnsType:{type:Array,default:()=>["hour","minute"]}});var stdin_default$6=defineComponent({name:name$3,props:timePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.modelValue),ie=ref(),se=we=>{const Ee=we.split(":");return fullColumns.map((_e,Ce)=>ee.columnsType.includes(_e)?Ee[Ce]:"00")},de=()=>{var we;return(we=ie.value)==null?void 0:we.confirm()},fe=()=>ae.value,ve=computed(()=>{let{minHour:we,maxHour:Ee,minMinute:_e,maxMinute:Ce,minSecond:Pe,maxSecond:Ae}=ee;if(ee.minTime||ee.maxTime){const ke={hour:0,minute:0,second:0};ee.columnsType.forEach((Re,Be)=>{var Me;ke[Re]=(Me=ae.value[Be])!=null?Me:0});const{hour:Ne,minute:Oe}=ke;if(ee.minTime){const[Re,Be,Me]=se(ee.minTime);we=Re,_e=+Ne<=+we?Be:"00",Pe=+Ne<=+we&&+Oe<=+_e?Me:"00"}if(ee.maxTime){const[Re,Be,Me]=se(ee.maxTime);Ee=Re,Ce=+Ne>=+Ee?Be:"59",Ae=+Ne>=+Ee&&+Oe>=+Ce?Me:"59"}}return ee.columnsType.map(ke=>{const{filter:Ne,formatter:Oe}=ee;switch(ke){case"hour":return genOptions(+we,+Ee,ke,Oe,Ne,ae.value);case"minute":return genOptions(+_e,+Ce,ke,Oe,Ne,ae.value);case"second":return genOptions(+Pe,+Ae,ke,Oe,Ne,ae.value);default:return[]}})});watch(ae,we=>{isSameValue(we,ee.modelValue)||ne("update:modelValue",we)}),watch(()=>ee.modelValue,we=>{we=formatValueRange(we,ve.value),isSameValue(we,ae.value)||(ae.value=we)},{immediate:!0});const be=(...we)=>ne("change",...we),ye=(...we)=>ne("cancel",...we),$e=(...we)=>ne("confirm",...we);return useExpose({confirm:de,getSelectedTime:fe}),()=>createVNode(Picker,mergeProps({ref:ie,modelValue:ae.value,"onUpdate:modelValue":we=>ae.value=we,columns:ve.value,onChange:be,onCancel:ye,onConfirm:$e},pick(ee,pickerInheritKeys)),oe)}});const TimePicker=withInstall(stdin_default$6),[name$2,bem$2]=createNamespace("tree-select"),treeSelectProps={max:makeNumericProp(1/0),items:makeArrayProp(),height:makeNumericProp(300),selectedIcon:makeStringProp("success"),mainActiveIndex:makeNumericProp(0),activeId:{type:[Number,String,Array],default:0}};var stdin_default$5=defineComponent({name:name$2,props:treeSelectProps,emits:["clickNav","clickItem","update:activeId","update:mainActiveIndex"],setup(ee,{emit:ne,slots:oe}){const ae=be=>Array.isArray(ee.activeId)?ee.activeId.includes(be):ee.activeId===be,ie=be=>{const ye=()=>{if(be.disabled)return;let $e;if(Array.isArray(ee.activeId)){$e=ee.activeId.slice();const we=$e.indexOf(be.id);we!==-1?$e.splice(we,1):$e.length<+ee.max&&$e.push(be.id)}else $e=be.id;ne("update:activeId",$e),ne("clickItem",be)};return createVNode("div",{key:be.id,class:["van-ellipsis",bem$2("item",{active:ae(be.id),disabled:be.disabled})],onClick:ye},[be.text,ae(be.id)&&createVNode(Icon,{name:ee.selectedIcon,class:bem$2("selected")},null)])},se=be=>{ne("update:mainActiveIndex",be)},de=be=>ne("clickNav",be),fe=()=>{const be=ee.items.map(ye=>createVNode(SidebarItem,{dot:ye.dot,badge:ye.badge,class:[bem$2("nav-item"),ye.className],disabled:ye.disabled,onClick:de},{title:()=>oe["nav-text"]?oe["nav-text"](ye):ye.text}));return createVNode(Sidebar,{class:bem$2("nav"),modelValue:ee.mainActiveIndex,onChange:se},{default:()=>[be]})},ve=()=>{if(oe.content)return oe.content();const be=ee.items[+ee.mainActiveIndex]||{};if(be.children)return be.children.map(ie)};return()=>createVNode("div",{class:bem$2(),style:{height:addUnit(ee.height)}},[fe(),createVNode("div",{class:bem$2("content")},[ve()])])}});const TreeSelect=withInstall(stdin_default$5),[name$1,bem$1,t]=createNamespace("uploader");function readFileContent(ee,ne){return new Promise(oe=>{if(ne==="file"){oe();return}const ae=new FileReader;ae.onload=ie=>{oe(ie.target.result)},ne==="dataUrl"?ae.readAsDataURL(ee):ne==="text"&&ae.readAsText(ee)})}function isOversize(ee,ne){return toArray(ee).some(oe=>oe.file?isFunction(ne)?ne(oe.file):oe.file.size>+ne:!1)}function filterFiles(ee,ne){const oe=[],ae=[];return ee.forEach(ie=>{isOversize(ie,ne)?ae.push(ie):oe.push(ie)}),{valid:oe,invalid:ae}}const IMAGE_REGEXP=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i,isImageUrl=ee=>IMAGE_REGEXP.test(ee);function isImageFile(ee){return ee.isImage?!0:ee.file&&ee.file.type?ee.file.type.indexOf("image")===0:ee.url?isImageUrl(ee.url):typeof ee.content=="string"?ee.content.indexOf("data:image")===0:!1}var stdin_default$4=defineComponent({props:{name:numericProp,item:makeRequiredProp(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,reupload:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview","reupload"],setup(ee,{emit:ne,slots:oe}){const ae=()=>{const{status:ye,message:$e}=ee.item;if(ye==="uploading"||ye==="failed"){const we=ye==="failed"?createVNode(Icon,{name:"close",class:bem$1("mask-icon")},null):createVNode(Loading,{class:bem$1("loading")},null),Ee=isDef($e)&&$e!=="";return createVNode("div",{class:bem$1("mask")},[we,Ee&&createVNode("div",{class:bem$1("mask-message")},[$e])])}},ie=ye=>{const{name:$e,item:we,index:Ee,beforeDelete:_e}=ee;ye.stopPropagation(),callInterceptor(_e,{args:[we,{name:$e,index:Ee}],done:()=>ne("delete")})},se=()=>ne("preview"),de=()=>ne("reupload"),fe=()=>{if(ee.deletable&&ee.item.status!=="uploading"){const ye=oe["preview-delete"];return createVNode("div",{role:"button",class:bem$1("preview-delete",{shadow:!ye}),tabindex:0,"aria-label":t("delete"),onClick:ie},[ye?ye():createVNode(Icon,{name:"cross",class:bem$1("preview-delete-icon")},null)])}},ve=()=>{if(oe["preview-cover"]){const{index:ye,item:$e}=ee;return createVNode("div",{class:bem$1("preview-cover")},[oe["preview-cover"](extend({index:ye},$e))])}},be=()=>{const{item:ye,lazyLoad:$e,imageFit:we,previewSize:Ee,reupload:_e}=ee;return isImageFile(ye)?createVNode(Image$1,{fit:we,src:ye.objectUrl||ye.content||ye.url,class:bem$1("preview-image"),width:Array.isArray(Ee)?Ee[0]:Ee,height:Array.isArray(Ee)?Ee[1]:Ee,lazyLoad:$e,onClick:_e?de:se},{default:ve}):createVNode("div",{class:bem$1("file"),style:getSizeStyle(ee.previewSize)},[createVNode(Icon,{class:bem$1("file-icon"),name:"description"},null),createVNode("div",{class:[bem$1("file-name"),"van-ellipsis"]},[ye.file?ye.file.name:ye.url]),ve()])};return()=>createVNode("div",{class:bem$1("preview")},[be(),ae(),fe()])}});const uploaderProps={name:makeNumericProp(""),accept:makeStringProp("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:makeNumericProp(1/0),imageFit:makeStringProp("cover"),resultType:makeStringProp("dataUrl"),uploadIcon:makeStringProp("photograph"),uploadText:String,deletable:truthProp,reupload:Boolean,afterRead:Function,showUpload:truthProp,modelValue:makeArrayProp(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:truthProp,previewOptions:Object,previewFullImage:truthProp,maxSize:{type:[Number,String,Function],default:1/0}};var stdin_default$3=defineComponent({name:name$1,props:uploaderProps,emits:["delete","oversize","clickUpload","closePreview","clickPreview","clickReupload","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=[],se=ref(-1),de=ref(!1),fe=(Le=ee.modelValue.length)=>({name:ee.name,index:Le}),ve=()=>{ae.value&&(ae.value.value="")},be=Le=>{if(ve(),isOversize(Le,ee.maxSize))if(Array.isArray(Le)){const Xe=filterFiles(Le,ee.maxSize);if(Le=Xe.valid,ne("oversize",Xe.invalid,fe()),!Le.length)return}else{ne("oversize",Le,fe());return}if(Le=reactive(Le),se.value>-1){const Xe=[...ee.modelValue];Xe.splice(se.value,1,Le),ne("update:modelValue",Xe),se.value=-1}else ne("update:modelValue",[...ee.modelValue,...toArray(Le)]);ee.afterRead&&ee.afterRead(Le,fe())},ye=Le=>{const{maxCount:Xe,modelValue:Ke,resultType:De}=ee;if(Array.isArray(Le)){const je=+Xe-Ke.length;Le.length>je&&(Le=Le.slice(0,je)),Promise.all(Le.map(He=>readFileContent(He,De))).then(He=>{const qe=Le.map((ze,Fe)=>{const Ze={file:ze,status:"",message:"",objectUrl:URL.createObjectURL(ze)};return He[Fe]&&(Ze.content=He[Fe]),Ze});be(qe)})}else readFileContent(Le,De).then(je=>{const He={file:Le,status:"",message:"",objectUrl:URL.createObjectURL(Le)};je&&(He.content=je),be(He)})},$e=Le=>{const{files:Xe}=Le.target;if(ee.disabled||!Xe||!Xe.length)return;const Ke=Xe.length===1?Xe[0]:[].slice.call(Xe);if(ee.beforeRead){const De=ee.beforeRead(Ke,fe());if(!De){ve();return}if(isPromise(De)){De.then(je=>{ye(je||Ke)}).catch(ve);return}}ye(Ke)};let we;const Ee=()=>ne("closePreview"),_e=Le=>{if(ee.previewFullImage){const Xe=ee.modelValue.filter(isImageFile),Ke=Xe.map(De=>(De.objectUrl&&!De.url&&De.status!=="failed"&&(De.url=De.objectUrl,ie.push(De.url)),De.url)).filter(Boolean);we=showImagePreview(extend({images:Ke,startPosition:Xe.indexOf(Le),onClose:Ee},ee.previewOptions))}},Ce=()=>{we&&we.close()},Pe=(Le,Xe)=>{const Ke=ee.modelValue.slice(0);Ke.splice(Xe,1),ne("update:modelValue",Ke),ne("delete",Le,fe(Xe))},Ae=Le=>{de.value=!0,se.value=Le,nextTick(()=>Me())},ke=()=>{de.value||(se.value=-1),de.value=!1},Ne=(Le,Xe)=>{const Ke=["imageFit","deletable","reupload","previewSize","beforeDelete"],De=extend(pick(ee,Ke),pick(Le,Ke,!0));return createVNode(stdin_default$4,mergeProps({item:Le,index:Xe,onClick:()=>ne(ee.reupload?"clickReupload":"clickPreview",Le,fe(Xe)),onDelete:()=>Pe(Le,Xe),onPreview:()=>_e(Le),onReupload:()=>Ae(Xe)},pick(ee,["name","lazyLoad"]),De),pick(oe,["preview-cover","preview-delete"]))},Oe=()=>{if(ee.previewImage)return ee.modelValue.map(Ne)},Re=Le=>ne("clickUpload",Le),Be=()=>{const Le=ee.modelValue.length<+ee.maxCount,Xe=ee.readonly?null:createVNode("input",{ref:ae,type:"file",class:bem$1("input"),accept:ee.accept,capture:ee.capture,multiple:ee.multiple&&se.value===-1,disabled:ee.disabled,onChange:$e,onClick:ke},null);return oe.default?withDirectives(createVNode("div",{class:bem$1("input-wrapper"),onClick:Re},[oe.default(),Xe]),[[vShow,Le]]):withDirectives(createVNode("div",{class:bem$1("upload",{readonly:ee.readonly}),style:getSizeStyle(ee.previewSize),onClick:Re},[createVNode(Icon,{name:ee.uploadIcon,class:bem$1("upload-icon")},null),ee.uploadText&&createVNode("span",{class:bem$1("upload-text")},[ee.uploadText]),Xe]),[[vShow,ee.showUpload&&Le]])},Me=()=>{ae.value&&!ee.disabled&&ae.value.click()};return onBeforeUnmount(()=>{ie.forEach(Le=>URL.revokeObjectURL(Le))}),useExpose({chooseFile:Me,reuploadFile:Ae,closeImagePreview:Ce}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode("div",{class:bem$1()},[createVNode("div",{class:bem$1("wrapper",{disabled:ee.disabled})},[Oe(),Be()])])}});const Uploader=withInstall(stdin_default$3),[name,bem]=createNamespace("watermark"),watermarkProps={gapX:makeNumberProp(0),gapY:makeNumberProp(0),image:String,width:makeNumberProp(100),height:makeNumberProp(100),rotate:makeNumericProp(-22),zIndex:numericProp,content:String,opacity:numericProp,fullPage:truthProp,textColor:makeStringProp("#dcdee0")};var stdin_default$2=defineComponent({name,props:watermarkProps,setup(ee,{slots:ne}){const oe=ref(),ae=ref(""),ie=ref(""),se=()=>{const ve={transformOrigin:"center",transform:`rotate(${ee.rotate}deg)`},be=()=>ee.image&&!ne.content?createVNode("image",{href:ie.value,"xlink:href":ie.value,x:"0",y:"0",width:ee.width,height:ee.height,style:ve},null):createVNode("foreignObject",{x:"0",y:"0",width:ee.width,height:ee.height},[createVNode("div",{xmlns:"http://www.w3.org/1999/xhtml",style:ve},[ne.content?ne.content():createVNode("span",{style:{color:ee.textColor}},[ee.content])])]),ye=ee.width+ee.gapX,$e=ee.height+ee.gapY;return createVNode("svg",{viewBox:`0 0 ${ye} ${$e}`,width:ye,height:$e,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{padding:`0 ${ee.gapX}px ${ee.gapY}px 0`,opacity:ee.opacity}},[be()])},de=ve=>{const be=document.createElement("canvas"),ye=new Image;ye.crossOrigin="anonymous",ye.referrerPolicy="no-referrer",ye.onload=()=>{be.width=ye.naturalWidth,be.height=ye.naturalHeight;const $e=be.getContext("2d");$e==null||$e.drawImage(ye,0,0),ie.value=be.toDataURL()},ye.src=ve},fe=ve=>{const be=new Blob([ve],{type:"image/svg+xml"});return URL.createObjectURL(be)};return watchEffect(()=>{ee.image&&de(ee.image)}),watch(()=>[ie.value,ee.content,ee.textColor,ee.height,ee.width,ee.rotate,ee.gapX,ee.gapY],()=>{nextTick(()=>{oe.value&&(ae.value&&URL.revokeObjectURL(ae.value),ae.value=fe(oe.value.innerHTML))})},{immediate:!0}),onUnmounted(()=>{ae.value&&URL.revokeObjectURL(ae.value)}),()=>{const ve=extend({backgroundImage:`url(${ae.value})`},getZIndexStyle(ee.zIndex));return createVNode("div",{class:bem({full:ee.fullPage}),style:ve},[createVNode("div",{class:bem("wrapper"),ref:oe},[se()])])}}});const Watermark=withInstall(stdin_default$2),version="4.9.9";function install$1(ee){[ActionBar,ActionBarButton,ActionBarIcon,ActionSheet,AddressEdit,AddressList,Area,BackTop,Badge,Barrage,Button,Calendar,Card,Cascader,Cell,CellGroup,Checkbox,CheckboxGroup,Circle,Col,Collapse,CollapseItem,ConfigProvider,ContactCard,ContactEdit,ContactList,CountDown,Coupon,CouponCell,CouponList,DatePicker,Dialog,Divider,DropdownItem,DropdownMenu,Empty,Field,FloatingBubble,FloatingPanel,Form,Grid,GridItem,Highlight,Icon,Image$1,ImagePreview,IndexAnchor,IndexBar,List,Loading,Locale,NavBar,NoticeBar,Notify,NumberKeyboard,Overlay,Pagination,PasswordInput,Picker,PickerGroup,Popover,Popup,Progress,PullRefresh,Radio,RadioGroup,Rate,RollingText,Row,Search,ShareSheet,Sidebar,SidebarItem,Signature,Skeleton,SkeletonAvatar,SkeletonImage,SkeletonParagraph,SkeletonTitle,Slider,Space,Step,Stepper,Steps,Sticky,SubmitBar,Swipe,SwipeCell,SwipeItem,Switch,Tab,Tabbar,TabbarItem,Tabs,Tag,TextEllipsis,TimePicker,Toast,TreeSelect,Uploader,Watermark].forEach(oe=>{oe.install?ee.use(oe):oe.name&&ee.component(oe.name,oe)})}var stdin_default$1={install:install$1,version},stdin_default={name:"Name",tel:"Phone",save:"Save",clear:"Clear",cancel:"Cancel",confirm:"Confirm",delete:"Delete",loading:"Loading...",noCoupon:"No coupons",nameEmpty:"Please fill in the name",addContact:"Add contact",telInvalid:"Malformed phone number",vanCalendar:{end:"End",start:"Start",title:"Calendar",weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthTitle:(ee,ne)=>`${ee}/${ne}`,rangePrompt:ee=>`Choose no more than ${ee} days`},vanCascader:{select:"Select"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Unlimited",discount:ee=>`${ee*10}% off`,condition:ee=>`At least ${ee}`},vanCouponCell:{title:"Coupon",count:ee=>`You have ${ee} coupons`},vanCouponList:{exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",addressDetail:"Address",defaultAddress:"Set as the default address"},vanAddressList:{add:"Add new address"}};(function(){if(typeof window>"u")return;var ee,ne="ontouchstart"in window;document.createTouch||(document.createTouch=function(ye,$e,we,Ee,_e,Ce,Pe){return new oe($e,we,{pageX:Ee,pageY:_e,screenX:Ce,screenY:Pe,clientX:Ee-window.pageXOffset,clientY:_e-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var ye=ae(),$e=0;$ene.lang,()=>{Locale.use(ne.lang,locales[ne.lang])}),(oe,ae)=>{const ie=resolveComponent("VanConfigProvider");return openBlock(),createBlock(ie,{theme:unref(ne).currentColorScheme,class:"min-h-vh supports-[(min-height:100dvh)]:min-h-dvh"},{default:withCtx(()=>[renderSlot(oe.$slots,"default")]),_:3},8,["theme"])}}});var en={exports:{}};(function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){return{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(oe){var ae=["th","st","nd","rd"],ie=oe%100;return"["+oe+(ae[(ie-20)%10]||ae[ie]||ae[0])+"]"}}})})(en);var zhCn={exports:{}};(function(ee,ne){(function(oe,ae){ee.exports=ae(requireDayjs_min())})(commonjsGlobal,function(oe){function ae(de){return de&&typeof de=="object"&&"default"in de?de:{default:de}}var ie=ae(oe),se={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(de,fe){return fe==="W"?de+"周":de+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(de,fe){var ve=100*de+fe;return ve<600?"凌晨":ve<900?"早上":ve<1100?"上午":ve<1300?"中午":ve<1800?"下午":"晚上"}};return ie.default.locale(se,null,!0),se})})(zhCn);function useAuth(){function ee(ae){const ie=useSettingsStore(),se=useUserStore();return ie.settings.app.enablePermission?se.permissions.includes(ae):!0}function ne(ae){let ie;return typeof ae=="string"?ie=ae!==""?ee(ae):!0:ie=ae.length>0?ae.some(se=>ee(se)):!0,ie}function oe(ae){return ae.length>0?ae.every(ie=>ee(ie)):!0}return{auth:ne,authAll:oe}}const _sfc_main=defineComponent({__name:"App",setup(ee){const ne=useRoute$1(),oe=useSettingsStore(),ae=useKeepAliveStore();useWatermarkStore();const{auth:ie}=useAuth(),se=computed(()=>ne.matched.every(ye=>ye.meta.auth?ye.meta.auth===!0?!0:ie(ye.meta.auth):!0)),{t:de,te:fe,locale:ve}=useI18n();watch(()=>oe.lang,()=>{ve.value=oe.lang}),watch([()=>oe.settings.app.enableDynamicTitle,()=>oe.title,()=>oe.customTitleList,()=>oe.lang],()=>{nextTick(()=>{var ye;if(oe.settings.app.enableDynamicTitle&&oe.title){const $e=((ye=oe.customTitleList.find(we=>we.fullPath===ne.fullPath))==null?void 0:ye.title)||oe.title&&(fe(oe.title)?de(oe.title):oe.title);document.title=$e??"Fantastic-mobile 专业版"}else document.title="Fantastic-mobile 专业版"})},{immediate:!0,deep:!0}),watch(()=>oe.lang,()=>{switch(oe.lang){case"zh-cn":dayjs.locale("zh-cn");break;case"en-us":dayjs.locale("en");break}},{immediate:!0});const be=!0;return(ye,$e)=>{const we=_sfc_main$2,Ee=resolveComponent("RouterView"),_e=_sfc_main$9,Ce=__unplugin_components_2;return openBlock(),createBlock(_sfc_main$1,null,{default:withCtx(()=>[createVNode(Ee,null,{default:withCtx(({Component:Pe})=>[createVNode(Transition,{name:unref(oe).settings.mainPage.enableTransition?unref(oe).settings.mainPage.transitionMode:"",mode:"out-in",appear:""},{default:withCtx(()=>[(openBlock(),createBlock(KeepAlive,{include:unref(ae).list},[unref(se)?(openBlock(),createBlock(resolveDynamicComponent(Pe),{key:unref(ne).fullPath})):(openBlock(),createBlock(we,{key:1}))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),be?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",{class:"app-setting",onClick:$e[0]||($e[0]=Pe=>unref(eventBus).emit("global-app-setting-toggle"))},[createVNode(_e,{name:"i-uiw:setting-o",class:"icon"})]),createVNode(Ce)],64)):createCommentVNode("",!0)]),_:1})}}}),App=_export_sfc(_sfc_main,[["__scopeId","data-v-7a97f5ed"]]);(function(){var oe;const ee=document.createElement("script");ee.src="https://hm.baidu.com/hm.js?d7f6dd1733b48011a6bf797914549256";const ne=document.getElementsByTagName("script")[0];(oe=ne.parentNode)==null||oe.insertBefore(ee,ne)})();{const ee="font-size: 14px; margin-bottom: 2px; padding: 6px 8px; color: #fff;",ne=`${ee} background: #e24329;`,oe=`${ee} background: #707070;`;navigator.language.toLowerCase()==="zh-cn"?console.info("%c由%cFantastic-mobile%c驱动",oe,ne,oe,` +https://fantastic-mobile.hurui.me`):console.info("%cPowered by%cFantastic-mobile",oe,ne,` +https://fantastic-mobile.hurui.me`)}/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var _extends=Object.assign||function(ee){for(var ne=1;ne1&&arguments[1]!==void 0?arguments[1]:{},ae=window.Promise||function(je){function He(){}je(He,He)},ie=function(je){var He=je.target;if(He===Xe){_e();return}Ne.indexOf(He)!==-1&&Ce({target:He})},se=function(){if(!(Re||!Le.original)){var je=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(Be-je)>Me.scrollOffset&&setTimeout(_e,150)}},de=function(je){var He=je.key||je.keyCode;(He==="Escape"||He==="Esc"||He===27)&&_e()},fe=function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=je;if(je.background&&(Xe.style.background=je.background),je.container&&je.container instanceof Object&&(He.container=_extends({},Me.container,je.container)),je.template){var qe=isNode(je.template)?je.template:document.querySelector(je.template);He.template=qe}return Me=_extends({},Me,He),Ne.forEach(function(ze){ze.dispatchEvent(createCustomEvent("medium-zoom:update",{detail:{zoom:Ke}}))}),Ke},ve=function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ee(_extends({},Me,je))},be=function(){for(var je=arguments.length,He=Array(je),qe=0;qe0?He.reduce(function(Fe,Ze){return[].concat(Fe,getImagesFromSelector(Ze))},[]):Ne;return ze.forEach(function(Fe){Fe.classList.remove("medium-zoom-image"),Fe.dispatchEvent(createCustomEvent("medium-zoom:detach",{detail:{zoom:Ke}}))}),Ne=Ne.filter(function(Fe){return ze.indexOf(Fe)===-1}),Ke},$e=function(je,He){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.forEach(function(ze){ze.addEventListener("medium-zoom:"+je,He,qe)}),Oe.push({type:"medium-zoom:"+je,listener:He,options:qe}),Ke},we=function(je,He){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.forEach(function(ze){ze.removeEventListener("medium-zoom:"+je,He,qe)}),Oe=Oe.filter(function(ze){return!(ze.type==="medium-zoom:"+je&&ze.listener.toString()===He.toString())}),Ke},Ee=function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=je.target,qe=function(){var Fe={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Ze=void 0,ot=void 0;if(Me.container)if(Me.container instanceof Object)Fe=_extends({},Fe,Me.container),Ze=Fe.width-Fe.left-Fe.right-Me.margin*2,ot=Fe.height-Fe.top-Fe.bottom-Me.margin*2;else{var Nt=isNode(Me.container)?Me.container:document.querySelector(Me.container),Mt=Nt.getBoundingClientRect(),Ue=Mt.width,Pt=Mt.height,Dt=Mt.left,Ut=Mt.top;Fe=_extends({},Fe,{width:Ue,height:Pt,left:Dt,top:Ut})}Ze=Ze||Fe.width-Me.margin*2,ot=ot||Fe.height-Me.margin*2;var Rt=Le.zoomedHd||Le.original,Wt=isSvg(Rt)?Ze:Rt.naturalWidth||Ze,Qe=isSvg(Rt)?ot:Rt.naturalHeight||ot,It=Rt.getBoundingClientRect(),Ft=It.top,jt=It.left,tn=It.width,Zt=It.height,nt=Math.min(Math.max(tn,Wt),Ze)/tn,Et=Math.min(Math.max(Zt,Qe),ot)/Zt,Bt=Math.min(nt,Et),Xt=(-jt+(Ze-tn)/2+Me.margin+Fe.left)/Bt,Yt=(-Ft+(ot-Zt)/2+Me.margin+Fe.top)/Bt,st="scale("+Bt+") translate3d("+Xt+"px, "+Yt+"px, 0)";Le.zoomed.style.transform=st,Le.zoomedHd&&(Le.zoomedHd.style.transform=st)};return new ae(function(ze){if(He&&Ne.indexOf(He)===-1){ze(Ke);return}var Fe=function Ue(){Re=!1,Le.zoomed.removeEventListener("transitionend",Ue),Le.original.dispatchEvent(createCustomEvent("medium-zoom:opened",{detail:{zoom:Ke}})),ze(Ke)};if(Le.zoomed){ze(Ke);return}if(He)Le.original=He;else if(Ne.length>0){var Ze=Ne;Le.original=Ze[0]}else{ze(Ke);return}if(Le.original.dispatchEvent(createCustomEvent("medium-zoom:open",{detail:{zoom:Ke}})),Be=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Re=!0,Le.zoomed=cloneTarget(Le.original),document.body.appendChild(Xe),Me.template){var ot=isNode(Me.template)?Me.template:document.querySelector(Me.template);Le.template=document.createElement("div"),Le.template.appendChild(ot.content.cloneNode(!0)),document.body.appendChild(Le.template)}if(Le.original.parentElement&&Le.original.parentElement.tagName==="PICTURE"&&Le.original.currentSrc&&(Le.zoomed.src=Le.original.currentSrc),document.body.appendChild(Le.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),Le.original.classList.add("medium-zoom-image--hidden"),Le.zoomed.classList.add("medium-zoom-image--opened"),Le.zoomed.addEventListener("click",_e),Le.zoomed.addEventListener("transitionend",Fe),Le.original.getAttribute("data-zoom-src")){Le.zoomedHd=Le.zoomed.cloneNode(),Le.zoomedHd.removeAttribute("srcset"),Le.zoomedHd.removeAttribute("sizes"),Le.zoomedHd.removeAttribute("loading"),Le.zoomedHd.src=Le.zoomed.getAttribute("data-zoom-src"),Le.zoomedHd.onerror=function(){clearInterval(Nt),console.warn("Unable to reach the zoom image target "+Le.zoomedHd.src),Le.zoomedHd=null,qe()};var Nt=setInterval(function(){Le.zoomedHd.complete&&(clearInterval(Nt),Le.zoomedHd.classList.add("medium-zoom-image--opened"),Le.zoomedHd.addEventListener("click",_e),document.body.appendChild(Le.zoomedHd),qe())},10)}else if(Le.original.hasAttribute("srcset")){Le.zoomedHd=Le.zoomed.cloneNode(),Le.zoomedHd.removeAttribute("sizes"),Le.zoomedHd.removeAttribute("loading");var Mt=Le.zoomedHd.addEventListener("load",function(){Le.zoomedHd.removeEventListener("load",Mt),Le.zoomedHd.classList.add("medium-zoom-image--opened"),Le.zoomedHd.addEventListener("click",_e),document.body.appendChild(Le.zoomedHd),qe()})}else qe()})},_e=function(){return new ae(function(je){if(Re||!Le.original){je(Ke);return}var He=function qe(){Le.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(Le.zoomed),Le.zoomedHd&&document.body.removeChild(Le.zoomedHd),document.body.removeChild(Xe),Le.zoomed.classList.remove("medium-zoom-image--opened"),Le.template&&document.body.removeChild(Le.template),Re=!1,Le.zoomed.removeEventListener("transitionend",qe),Le.original.dispatchEvent(createCustomEvent("medium-zoom:closed",{detail:{zoom:Ke}})),Le.original=null,Le.zoomed=null,Le.zoomedHd=null,Le.template=null,je(Ke)};Re=!0,document.body.classList.remove("medium-zoom--opened"),Le.zoomed.style.transform="",Le.zoomedHd&&(Le.zoomedHd.style.transform=""),Le.template&&(Le.template.style.transition="opacity 150ms",Le.template.style.opacity=0),Le.original.dispatchEvent(createCustomEvent("medium-zoom:close",{detail:{zoom:Ke}})),Le.zoomed.addEventListener("transitionend",He)})},Ce=function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=je.target;return Le.original?_e():Ee({target:He})},Pe=function(){return Me},Ae=function(){return Ne},ke=function(){return Le.original},Ne=[],Oe=[],Re=!1,Be=0,Me=oe,Le={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(ne)==="[object Object]"?Me=ne:(ne||typeof ne=="string")&&be(ne),Me=_extends({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},Me);var Xe=createOverlay(Me.background);document.addEventListener("click",ie),document.addEventListener("keyup",de),document.addEventListener("scroll",se),window.addEventListener("resize",_e);var Ke={open:Ee,close:_e,toggle:Ce,update:fe,clone:ve,attach:be,detach:ye,on:$e,off:we,getOptions:Pe,getImages:Ae,getZoomedImage:ke};return Ke};function styleInject(ee,ne){ne===void 0&&(ne={});var oe=ne.insertAt;if(!(typeof document>"u")){var ae=document.head||document.getElementsByTagName("head")[0],ie=document.createElement("style");ie.type="text/css",oe==="top"&&ae.firstChild?ae.insertBefore(ie,ae.firstChild):ae.appendChild(ie),ie.styleSheet?ie.styleSheet.cssText=ee:ie.appendChild(document.createTextNode(ee))}}var css=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";styleInject(css);function directive(ee){ee.directive("auth",(ne,oe)=>{(oe.modifiers.all?useAuth().authAll(oe.value):useAuth().auth(oe.value))?ne.style.display="":ne.style.display="none"}),ee.directive("zoomable",{mounted:ne=>{mediumZoom(ne,{background:"var(--g-bg)"})}})}function errorLog(ee){useSettingsStore().settings.app.enableErrorLog&&(ee.config.errorHandler=(oe,ae,ie)=>{const se={url:location.href,err:{message:oe.message,stack:oe.stack},info:ie,datetime:dayjs().format("YYYY-MM-DD HH:mm:ss")};sessionStorage.setItem("errorLog",JSON.stringify(se))})}if(typeof window<"u"){let ee=function(){var ne=document.body,oe=document.getElementById("__svg__icons__dom__");oe||(oe=document.createElementNS("http://www.w3.org/2000/svg","svg"),oe.style.position="absolute",oe.style.width="0",oe.style.height="0",oe.id="__svg__icons__dom__",oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),oe.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),oe.innerHTML='',ne.insertBefore(oe,ne.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ee):ee()}const app=createApp(App);app.use(index);app.use(pinia);app.use(router);app.use(ui);app.use(setupI18n());directive(app);errorLog(app);app.mount("#app");export{$t as $,isObjectLike as A,baseGetTag as B,isArray$3 as C,isArguments as D,arrayPush as E,Fragment as F,setToString as G,overRest as H,isLength as I,isIndex as J,isObject$4 as K,assignValue as L,MapCache as M,mergeModels as N,computed as O,useModel as P,dayjs as Q,mergeProps as R,Symbol$1 as S,useCssVars as T,useTemplateRef as U,withDirectives as V,vShow as W,normalizeStyle as X,useSettingsStore as Y,nextTick as Z,_sfc_main$9 as _,createBaseVNode as a,watch as a0,setupI18n as a1,getLocales as a2,useRoute$1 as a3,useWatermarkStore as a4,resolveDirective as a5,showToast as a6,withModifiers as a7,api as a8,renderSlot as a9,h$2 as aA,onBeforeUpdate as aB,getDefaultExportFromCjs as aC,useTabbarBadgeStore as aD,normalizeProps as aa,guardReactiveProps as ab,Transition as ac,useSlots as ad,Ye as ae,he as af,Ge as ag,Ve as ah,Je as ai,Se as aj,localesName as ak,resolveDynamicComponent as al,onActivated as am,useElementSize as an,onBeforeRouteLeave as ao,useAuth as ap,useUserStore as aq,inBrowser$1 as ar,extend as as,isObject as at,mountComponent as au,usePopupState as av,stdin_default$E as aw,onUpdated as ax,provide as ay,onBeforeUnmount as az,createVNode as b,createBlock as c,defineComponent as d,createTextVNode as e,_sfc_main$7 as f,onUnmounted as g,onMounted as h,isRef as i,createElementBlock as j,useRouter as k,useI18n as l,resolveComponent as m,renderList as n,openBlock as o,createCommentVNode as p,normalizeClass as q,ref as r,_sfc_main$6 as s,toDisplayString$1 as t,unref as u,_sfc_main$8 as v,withCtx as w,_sfc_main$4 as x,_sfc_main$5 as y,_export_sfc as z}; diff --git a/assets/index-DD358c5I.js.br b/assets/index-DD358c5I.js.br new file mode 100644 index 0000000..59b5e81 Binary files /dev/null and b/assets/index-DD358c5I.js.br differ diff --git a/assets/index-DD358c5I.js.gz b/assets/index-DD358c5I.js.gz new file mode 100644 index 0000000..1177f63 Binary files /dev/null and b/assets/index-DD358c5I.js.gz differ diff --git a/assets/index-DHgij77Y.js b/assets/index-DHgij77Y.js new file mode 100644 index 0000000..5a00e49 --- /dev/null +++ b/assets/index-DHgij77Y.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as P}from"./index-DkxdnFkg.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as A,a9 as $,ap as T,aq as U,c as j,w as s,k as q,m as B,a5 as E,o as m,b as o,a as t,u as C,t as H,e as n,V as b,j as w,x as M}from"./index-DD358c5I.js";import{s as y}from"./function-call-BVTb5Ux6.js";const R=A({name:"Auth",__name:"index",props:{value:{},all:{type:Boolean}},setup(x){const l=x,i=T();function g(){return l.all?i.authAll(typeof l.value=="string"?[l.value]:l.value):i.auth(l.value)}return(d,V)=>g()?$(d.$slots,"default",{key:0}):$(d.$slots,"no-auth",{key:1})}}),F={class:"flex flex-col gap-2"},G={class:"flex-col-start gap-2"},I={class:"flex flex-col gap-2"},W=A({__name:"index",setup(x){const l=q(),i=U(),{auth:g,authAll:d}=T();async function V(a){await i.login({account:a,password:""}),await i.getPermissions()}function _(){l.push({path:"/feature/permission/test"})}function k(a){g(a)?y({type:"success",message:"校验通过"}):y({type:"danger",message:"校验不通过"})}function z(a){d(a)?y({type:"success",message:"校验通过"}):y({type:"danger",message:"校验不通过"})}return(a,e)=>{const N=M,u=B("VanButton"),r=B("VanTag"),f=R,S=L,D=P,v=E("auth");return m(),j(D,{navbar:"","navbar-start-side":"back"},{default:s(()=>[o(S,null,{default:s(()=>[e[22]||(e[22]=t("h3",null,"切换帐号",-1)),o(N,{modelValue:C(i).account,"onUpdate:modelValue":e[0]||(e[0]=p=>C(i).account=p),options:[{label:"admin",value:"admin"},{label:"test",value:"test"},{label:"hooray(无权限)",value:"hooray"}],onChange:V},null,8,["modelValue"]),e[23]||(e[23]=t("h3",null,"帐号权限",-1)),t("div",null,H(C(i).permissions),1),e[24]||(e[24]=t("h3",null,"访问鉴权页面",-1)),t("div",null,[o(u,{onClick:_},{default:s(()=>e[5]||(e[5]=[n(" 点击访问 ")])),_:1})]),e[25]||(e[25]=t("h3",null,"鉴权指令(请对照代码查看)",-1)),t("div",F,[b((m(),w("div",null,e[6]||(e[6]=[n(" 如果你有 permission.browse 权限则能看到这句话 ")]))),[[v,"permission.browse"]]),b((m(),w("div",null,e[7]||(e[7]=[n(" 如果你有 permission.create 权限则能看到这句话 ")]))),[[v,"permission.create"]]),b((m(),w("div",null,e[8]||(e[8]=[n(" 如果你有 permission.browse 或 permission.create 权限则能看到这句话 ")]))),[[v,["permission.browse","permission.create"]]]),b((m(),w("div",null,e[9]||(e[9]=[n(" 如果你有 permission.browse 和 permission.create 权限则能看到这句话 ")]))),[[v,["permission.browse","permission.create"],void 0,{all:!0}]])]),e[26]||(e[26]=t("h3",null,"鉴权组件(请对照代码查看)",-1)),t("div",G,[o(f,{value:"permission.browse"},{"no-auth":s(()=>[o(r,{type:"danger"},{default:s(()=>e[11]||(e[11]=[n(" 你没有 permission.browse 权限 ")])),_:1})]),default:s(()=>[o(r,{type:"primary"},{default:s(()=>e[10]||(e[10]=[n(" 你有 permission.browse 权限 ")])),_:1})]),_:1}),o(f,{value:"permission.create"},{"no-auth":s(()=>[o(r,{type:"danger"},{default:s(()=>e[13]||(e[13]=[n(" 你没有 permission.create 权限 ")])),_:1})]),default:s(()=>[o(r,{type:"primary"},{default:s(()=>e[12]||(e[12]=[n(" 你有 permission.create 权限 ")])),_:1})]),_:1}),o(f,{value:["permission.browse","permission.create"]},{"no-auth":s(()=>[o(r,{type:"danger"},{default:s(()=>e[15]||(e[15]=[n(" 你没有 permission.browse 或 permission.create 权限 ")])),_:1})]),default:s(()=>[o(r,{type:"primary"},{default:s(()=>e[14]||(e[14]=[n(" 你有 permission.browse 或 permission.create 权限 ")])),_:1})]),_:1}),o(f,{value:["permission.browse","permission.create"],all:""},{"no-auth":s(()=>[o(r,{type:"danger"},{default:s(()=>e[17]||(e[17]=[n(" 你没有 permission.browse 和 permission.create 权限 ")])),_:1})]),default:s(()=>[o(r,{type:"primary"},{default:s(()=>e[16]||(e[16]=[n(" 你有 permission.browse 和 permission.create 权限 ")])),_:1})]),_:1})]),e[27]||(e[27]=t("h3",null,"鉴权函数(请对照代码查看)",-1)),t("div",null,[t("div",I,[t("div",null,[o(u,{size:"small",onClick:e[1]||(e[1]=p=>k("permission.browse"))},{default:s(()=>e[18]||(e[18]=[n(" 校验 permission.browse 权限 ")])),_:1})]),t("div",null,[o(u,{size:"small",onClick:e[2]||(e[2]=p=>k("permission.create"))},{default:s(()=>e[19]||(e[19]=[n(" 校验 permission.create 权限 ")])),_:1})]),t("div",null,[o(u,{size:"small",onClick:e[3]||(e[3]=p=>k(["permission.browse","permission.create"]))},{default:s(()=>e[20]||(e[20]=[n(" 校验 permission.browse 或 permission.create 权限 ")])),_:1})]),t("div",null,[o(u,{size:"small",onClick:e[4]||(e[4]=p=>z(["permission.browse","permission.create"]))},{default:s(()=>e[21]||(e[21]=[n(" 校验 permission.browse 和 permission.create 权限 ")])),_:1})])])])]),_:1})]),_:1})}}});export{W as default}; diff --git a/assets/index-DHgij77Y.js.br b/assets/index-DHgij77Y.js.br new file mode 100644 index 0000000..a636224 Binary files /dev/null and b/assets/index-DHgij77Y.js.br differ diff --git a/assets/index-DHgij77Y.js.gz b/assets/index-DHgij77Y.js.gz new file mode 100644 index 0000000..5bc6de0 Binary files /dev/null and b/assets/index-DHgij77Y.js.gz differ diff --git a/assets/index-DYpkv-NC.js b/assets/index-DYpkv-NC.js new file mode 100644 index 0000000..4e2ba15 --- /dev/null +++ b/assets/index-DYpkv-NC.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as k}from"./index-DkxdnFkg.js";import{d as y,l as w,c as i,w as f,m as z,o as a,a as n,j as s,n as b,F as d,p as c,t as m,u as o,q as g,b as C,$ as t,_ as S}from"./index-DD358c5I.js";const B={class:"p-4"},L={class:"inline-flex items-center gap-2 text-gray-7 dark-text-gray-3"},V={class:"relative z-0 inline-block text-2xl font-bold after:absolute after:bottom-0 after:left-0 after:h-2 after:w-full after:bg-yellow after:content-[''] after:-z-1 after:dark-bg-yellow-9"},q={class:"grid grid-cols-2 mt-4 gap-3"},F={key:1,class:"z-1 flex-center b-r-1 b-r-[var(--g-bg)] b-r-solid px-3 py-2 pe-2"},P=y({name:"Feature",__name:"index",setup(N){const{t:p,te:u}=w(),h=[{title:t("pages.navbar.root"),icon:"i-fluent:document-header-16-regular",routes:[{path:"/feature/navbar/default",title:t("pages.navbar.default")},{path:"/feature/navbar/none",title:t("pages.navbar.none")},{path:"/feature/navbar/preset",title:t("pages.navbar.preset"),pro:!0},{path:"/feature/navbar/mode",title:t("pages.navbar.mode"),pro:!0},{path:"/feature/navbar/title-no-center",title:t("pages.navbar.title-no-center"),pro:!0},{path:"/feature/navbar/custom-title",title:t("pages.navbar.custom-title"),pro:!0},{path:"/feature/navbar/custom-area",title:t("pages.navbar.custom-area")},{path:"/feature/navbar/custom-navbar",title:t("pages.navbar.custom-navbar")}]},{title:t("pages.tabbar.root"),icon:"i-fluent:document-footer-16-regular",routes:[{path:"/feature/tabbar/default",title:t("pages.tabbar.default")},{path:"/feature/tabbar/multi",title:t("pages.tabbar.multi"),pro:!0},{path:"/feature/tabbar/badge",title:t("pages.tabbar.badge"),pro:!0},{path:"/feature/tabbar/custom-area",title:t("pages.tabbar.custom-area")}]},{title:t("pages.function.root"),icon:"i-ri:function-add-line",routes:[{path:"/feature/function/unocss",title:"UnoCSS",icon:"i-logos:unocss"},{path:"/feature/function/icon",title:t("pages.function.icon"),icon:"i-ri:remixicon-line"},{path:"/feature/function/i18n",title:t("pages.function.i18n"),icon:"i-ri:earth-line",pro:!0},{path:"/feature/function/keepAlive",title:t("pages.function.keepAlive"),icon:"i-cil:window-restore"},{path:"/feature/function/font",title:t("pages.function.font"),icon:"i-ri:font-size",pro:!0},{path:"/feature/function/watermark",title:t("pages.function.watermark"),icon:"i-icon-park-outline:mosaic",pro:!0},{path:"/feature/function/errorLog",title:t("pages.function.errorLog"),icon:"i-ri:bug-line",pro:!0},{path:"/feature/function/zoomable",title:t("pages.function.zoomable"),icon:"i-mingcute:zoom-in-line",pro:!0},{path:"/feature/function/title",title:t("pages.function.title"),icon:"i-mdi:format-title",pro:!0},{path:"/feature/function/scroll",title:t("pages.function.scroll"),icon:"i-carbon:auto-scroll",pro:!0}]},{title:t("pages.permission.root"),icon:"i-ri:shield-keyhole-line",routes:[{path:"/feature/permission",title:"权限验证"}]},{title:"基础组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/basic",title:"基础组件"},{path:"/feature/component/composite",title:"复合组件"}]},{title:"内建组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/built-in",title:"内建组件"}]},{title:"扩展组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/pagemain-demo",title:"PageMain"},{path:"/feature/component/trend-demo",title:"Trend"},{path:"/feature/component/sparkline-demo",title:"Sparkline",pro:!0}]},{title:"插件",icon:"i-clarity:plugin-outline-alerted",routes:[{path:"/feature/plugin/qrcode",title:"二维码",icon:"i-material-symbols:qr-code"},{path:"/feature/plugin/esign",title:"电子签名",icon:"i-mdi:draw"},{path:"/feature/plugin/animation",title:"过渡动画",icon:"i-clarity:animation-line"},{path:"/feature/plugin/swiper",title:"轮播动画",icon:"i-carbon:carousel-horizontal"},{path:"/feature/plugin/echarts",title:"ECharts",icon:"i-ri:bar-chart-2-line"},{path:"/feature/plugin/vchart",title:"VChart",icon:"i-ri:bar-chart-2-line"}]},{title:"页面",icon:"i-ri:pages-line",routes:[{path:"/feature/page/loadmore",title:"加载更多"},{path:"/feature/page/schedule",title:"日程表",pro:!0},{path:"/feature/page/productlist",title:"商品列表",pro:!0}]}];return($,A)=>{const l=S,v=z("router-link"),_=k;return a(),i(_,{navbar:!1,tabbar:"","saved-position":""},{default:f(()=>[n("div",B,[(a(),s(d,null,b(h,(r,x)=>n("div",{key:x,class:"mb-4"},[n("div",L,[r.icon?(a(),i(l,{key:0,name:r.icon,class:"text-6"},null,8,["name"])):c("",!0),n("div",V,m(o(u)(r.title)?o(p)(r.title):r.title),1)]),n("div",q,[(a(!0),s(d,null,b(r.routes,e=>(a(),i(v,{key:e.path,to:e.path,class:g(["relative flex of-hidden rounded-lg bg-[var(--g-container-bg)] text-sm text-gray-6 shadow-sm dark-text-gray-4",{"bg-gradient-to-r from-transparent to-[#ffd700] dark-to-[#ffd70030] b-1 b-solid b-[#d4af37]":e.pro}])},{default:f(()=>[e.pro?(a(),i(l,{key:0,name:"i-mdi:professional-hexagon",class:"right-[-12px] top--3 z-0 rotate-30 text-6xl c-[#d4af37] absolute! dark-c-[#d4af3730]"})):c("",!0),e.icon?(a(),s("div",F,[C(l,{name:e.icon},null,8,["name"])])):c("",!0),n("div",{class:g(["z-1 flex-1 truncate px-3 py-2",{"ps-2":e.icon}])},m(o(u)(e.title)?o(p)(e.title):e.title),3)]),_:2},1032,["to","class"]))),128))])])),64))])]),_:1})}}});export{P as default}; diff --git a/assets/index-DYpkv-NC.js.br b/assets/index-DYpkv-NC.js.br new file mode 100644 index 0000000..42e6968 Binary files /dev/null and b/assets/index-DYpkv-NC.js.br differ diff --git a/assets/index-DYpkv-NC.js.gz b/assets/index-DYpkv-NC.js.gz new file mode 100644 index 0000000..b0c2da5 Binary files /dev/null and b/assets/index-DYpkv-NC.js.gz differ diff --git a/assets/index-DkxdnFkg.js b/assets/index-DkxdnFkg.js new file mode 100644 index 0000000..39f1c0e --- /dev/null +++ b/assets/index-DkxdnFkg.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{d as C,O as R,r as y,o as r,j as p,a9 as S,b as v,w as m,u as e,q as x,t as w,p as _,aa as O,ab as E,ac as U,k as D,_ as B,Y as W,N as ae,P as he,ad as me,c as I,ae as ye,af as se,R as oe,a as b,ag as xe,ah as _e,e as fe,ai as ke,aj as we,ak as ne,F as P,n as J,i as Ce,al as Se,l as Te,U as F,h as le,am as re,an as ie,a0 as z,ao as $e,V as ce,W as ue,X as de,a3 as Be,m as Re,Z as Me,z as He}from"./index-DD358c5I.js";const Pe={class:"relative inline-flex"},Le=C({__name:"HBadge",props:{value:{type:[String,Number,Boolean]}},setup(l){const n=l,u=R(()=>{switch(typeof n.value){case"string":return n.value.length>0;case"number":return n.value>0;case"boolean":return n.value;default:return n.value!==void 0&&n.value!==null}}),s=y({enterActiveClass:"ease-in-out duration-500",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in-out duration-500",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"});return(o,i)=>(r(),p("div",Pe,[S(o.$slots,"default"),v(U,O(E(e(s))),{default:m(()=>[e(u)?(r(),p("span",{key:0,class:x(["absolute start-[50%] top-0 z-20 whitespace-nowrap rounded-full bg-ui-primary px-1.5 text-xs text-ui-text ring-1 ring-light -translate-y-[50%] dark-ring-dark",{"-indent-9999 w-1.5 h-1.5 px-0! start-[100%]! -translate-x-[50%] rtl:translate-x-[50%] before:content-empty before:block before:bg-ui-primary before:w-full before:h-full before:rounded-full before:absolute before:start-0 before:top-0 before:animate-ping":o.value===!0}])},w(o.value),3)):_("",!0)]),_:1},16)]))}}),Fe=C({__name:"index",setup(l){const n=D();return(u,s)=>{const o=B;return r(),p("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).back())},[v(o,{name:"i-ic:round-arrow-back-ios",class:"text-4"})])}}}),Ie=C({__name:"index",setup(l){const n=W();return(u,s)=>{const o=B;return r(),p("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).currentColorScheme&&e(n).setColorScheme(e(n).currentColorScheme==="dark"?"light":"dark"))},[v(o,{name:{light:"i-ri:sun-line",dark:"i-ri:moon-line","":"i-codicon:color-mode"}[e(n).settings.app.colorScheme],class:"text-4"},null,8,["name"])])}}}),je=C({__name:"index",setup(l){const n=D();return(u,s)=>{const o=B;return r(),p("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).forward())},[v(o,{name:"i-ic:round-arrow-forward-ios",class:"text-4"})])}}}),Ae=C({__name:"index",setup(l){const n=D();return(u,s)=>{const o=B;return r(),p("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).push("/"))},[v(o,{name:"i-ic:baseline-home",class:"text-4"})])}}}),Ne={class:"fixed inset-0 overflow-y-auto"},Ve={class:"min-h-full flex items-end justify-center p-4 text-center lg-items-center"},ze={key:0,flex:"~ items-center justify-between","px-4":"","py-3":"","border-b":"~ solid stone/15","text-6":""},Oe={key:1,flex:"~ items-center justify-end","px-4":"","py-3":"","border-t":"~ solid stone/15"},Ee=C({__name:"HDialog",props:ae({appear:{type:Boolean,default:!1},title:{},noTitle:{type:Boolean,default:!1},preventClose:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:ae(["close"],["update:modelValue"]),setup(l,{emit:n}){const u=n,s=he(l,"modelValue"),o=me(),i=y({enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}),a=R(()=>({enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 lg-translate-y-0 lg-scale-95",enterTo:"opacity-100 translate-y-0 lg-scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 lg-scale-100",leaveTo:"opacity-0 translate-y-4 lg-translate-y-0 lg-scale-95"}));function h(){s.value=!1,u("close")}return(f,c)=>{const M=B;return r(),I(e(we),{as:"template",appear:f.appear,show:s.value},{default:m(()=>[v(e(ye),{class:"fixed inset-0 z-2000 flex",onClose:c[0]||(c[0]=j=>!f.preventClose&&h())},{default:m(()=>[v(e(se),oe({as:"template",appear:f.appear},e(i)),{default:m(()=>[b("div",{class:x(["fixed inset-0 bg-stone-2/75 transition-opacity dark-bg-stone-8/75",{"backdrop-blur-sm":f.overlay}])},null,2)]),_:1},16,["appear"]),b("div",Ne,[b("div",Ve,[v(e(se),oe({as:"template",appear:f.appear},e(a)),{default:m(()=>[v(e(xe),{class:"relative w-full flex flex-col overflow-hidden rounded-xl bg-white text-left shadow-xl lg-my-8 lg-max-w-lg dark-bg-stone-8"},{default:m(()=>[f.noTitle?_("",!0):(r(),p("div",ze,[v(e(_e),{"m-0":"","text-lg":"","text-dark":"","dark-text-white":""},{default:m(()=>[fe(w(f.title),1)]),_:1}),v(M,{name:"i-carbon:close","cursor-pointer":"",onClick:h})])),v(e(ke),{"m-0":"","overflow-y-auto":"","p-4":"","text-start":""},{default:m(()=>[S(f.$slots,"default")]),_:3}),e(o).footer?(r(),p("div",Oe,[S(f.$slots,"footer")])):_("",!0)]),_:3})]),_:3},16,["appear"])])])]),_:3})]),_:3},8,["appear","show"])}}}),Ue={class:"flex-col-center gap-2"},De=["onClick"],We=C({__name:"index",setup(l){const n=W(),u=y(!1),s=R(()=>Object.keys(ne).map(o=>({label:ne[o],disabled:n.lang===o,handle:()=>{n.lang!==o&&(n.setDefaultLang(o),u.value=!1)}})));return(o,i)=>{const a=B,h=Ee;return r(),p(P,null,[b("div",{class:"h-full flex-center px-1",onClick:i[0]||(i[0]=f=>u.value=!0)},[v(a,{name:"i-ri:translate",class:"text-4"})]),v(h,{modelValue:e(u),"onUpdate:modelValue":i[1]||(i[1]=f=>Ce(u)?u.value=f:null),"no-title":""},{default:m(()=>[b("div",Ue,[(r(!0),p(P,null,J(e(s),(f,c)=>(r(),p("div",{key:c,class:x(["w-full flex-center rounded-md px-3 py-2",f.disabled?"text-ui-primary/30":"text-ui-primary"]),onClick:f.handle},w(f.label),11,De))),128))])]),_:1},8,["modelValue"])],64)}}}),Je=/\d/,Ye=["-","_","/","."];function qe(l=""){if(!Je.test(l))return l!==l.toLowerCase()}function Ge(l,n){const u=Ye,s=[];if(!l||typeof l!="string")return s;let o="",i,a;for(const h of l){const f=u.includes(h);if(f===!0){s.push(o),o="",i=void 0;continue}const c=qe(h);if(a===!1){if(i===!1&&c===!0){s.push(o),o=h,i=c;continue}if(i===!0&&c===!1&&o.length>1){const M=o.at(-1);s.push(o.slice(0,Math.max(0,o.length-1))),o=M+h,i=c;continue}}o+=h,i=c,a=f}return s.push(o),s}function Xe(l){return l?l[0].toUpperCase()+l.slice(1):""}function Ze(l,n){return l?(Array.isArray(l)?l:Ge(l)).map(u=>Xe(n!=null&&n.normalize?u.toLowerCase():u)).join(""):""}const pe=C({name:"HeaderSide",__name:"index",props:{side:{}},setup(l){const n=l,u=Object.assign({"./Back/index.vue":Fe,"./ColorScheme/index.vue":Ie,"./Forward/index.vue":je,"./Home/index.vue":Ae,"./I18n/index.vue":We}),s=R(()=>n.side?typeof n.side=="string"?[n.side]:n.side:[]);return(o,i)=>(r(!0),p(P,null,J(e(s),a=>(r(),I(Se(e(u)[`./${e(Ze)(a)}/index.vue`]),{key:a}))),128))}}),Ke={class:"h-full flex-center whitespace-nowrap px-2"},Qe={class:"truncate"},et={class:"h-full flex-center whitespace-nowrap px-2"},tt={key:0,class:"copyright relative flex flex-wrap items-center justify-center p-4 text-sm text-stone-5 mix-blend-difference"},at={key:0,class:"px-1"},st=["href"],ot={key:1,class:"px-1"},nt={key:2,href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},lt={class:"h-full flex-center px-4"},rt={key:1,class:"text-xs"},it=C({name:"PageLayout",__name:"index",props:{titleCenter:{type:Boolean,default:!0},navbar:{type:Boolean,default:void 0},navbarMode:{},navbarStartSide:{},navbarEndSide:{},tabbar:{type:Boolean,default:void 0},tabbarName:{},copyright:{type:Boolean,default:void 0},backTop:{type:Boolean,default:void 0},savedPosition:{type:Boolean},scrollTop:{},scrollLeft:{},scrollWithAnimation:{type:Boolean}},emits:["scroll","reachTop","reachBottom"],setup(l,{expose:n,emit:u}){const s=l,o=u,i=Be(),a=W(),{t:h,te:f}=Te(),c=F("layoutRef");n({ref:c});function M(t){A(),N(),V(),o("scroll",t),t.target.scrollTop===0&&o("reachTop"),Math.ceil(t.target.scrollTop+t.target.clientHeight)>=t.target.scrollHeight&&o("reachBottom")}le(()=>{A(),N(),V()}),re(()=>{A(),N(),V()});const j=F("startSideRef"),Y=F("endSideRef"),H=y(0);le(()=>{const{width:t}=ie(j,void 0,{box:"border-box"}),{width:g}=ie(Y,void 0,{box:"border-box"});z([t,g],k=>{H.value=Math.max(...k)},{immediate:!0})});const q=F("navbarRef"),L=y(0),G=y(!1),X=R(()=>{var t;return s.navbar??a.settings.navbar.enable?((t=q.value)==null?void 0:t.clientHeight)??0:0});function A(){var t;L.value=((t=c.value)==null?void 0:t.scrollTop)??0}z(L,(t,g)=>{G.value=(s.navbarMode??a.settings.navbar.mode)==="sticky"&&t>g&&t>X.value});const Z=y(!1);function N(){var T,$,d;const t=((T=c.value)==null?void 0:T.scrollTop)??0,g=(($=c.value)==null?void 0:$.clientHeight)??0,k=((d=c.value)==null?void 0:d.scrollHeight)??0;Z.value=Math.ceil(t+g){var t;return a.settings.tabbar.list.length>0?Object.prototype.hasOwnProperty.call(a.settings.tabbar.list[0],"name")?((t=a.settings.tabbar.list.find(g=>g.name===s.tabbarName))==null?void 0:t.list)??a.settings.tabbar.list[0].list??[]:a.settings.tabbar.list:[]});function K(t){return i.fullPath===t.path?t.activeIcon??t.icon??void 0:t.icon??void 0}const Q=y(0);function V(){var t;Q.value=((t=c.value)==null?void 0:t.scrollTop)??0}function be(){var t;(t=c.value)==null||t.scrollTo({top:0,behavior:"smooth"})}z([()=>s.scrollTop,()=>s.scrollLeft],t=>{setTimeout(()=>{var g;(g=c.value)==null||g.scrollTo({top:t[0],left:t[1],behavior:s.scrollWithAnimation?"smooth":"auto"})},0)},{immediate:!0});const ee=y(0),te=y(0);return re(()=>{s.savedPosition&&Me(()=>{var t;(t=c.value)==null||t.scrollTo({top:ee.value,left:te.value,behavior:"auto"})})}),$e((t,g,k)=>{var T,$;s.savedPosition&&(ee.value=((T=c.value)==null?void 0:T.scrollTop)??0,te.value=(($=c.value)==null?void 0:$.scrollLeft)??0),k()}),(t,g)=>{const k=B,T=Le,$=Re("RouterLink");return r(),p("div",{ref_key:"layoutRef",ref:c,class:"relative h-vh flex flex-col overflow-auto overscroll-none supports-[(height:100dvh)]:h-dvh",onScroll:g[0]||(g[0]=d=>M(d))},[ce(b("header",{ref_key:"navbarRef",ref:q,class:x(["navbar w-full flex-center bg-[var(--g-navbar-bg)] text-[var(--g-navbar-color)] transition-all pt-safe h+safe-t-[var(--g-navbar-height)]",{"navbar-static":(t.navbarMode??e(a).settings.navbar.mode)==="static","navbar-fixed":(t.navbarMode??e(a).settings.navbar.mode)!=="static",...(t.navbarMode??e(a).settings.navbar.mode)==="show-hide-fixed"&&{"-top-[var(--g-navbar-height)]!":e(L)[v(pe,{side:t.navbarStartSide},null,8,["side"])],!0)])],512)],4),b("div",{class:x(["min-w-0 flex-1 text-sm",{"text-center":t.titleCenter}])},[b("div",Qe,[S(t.$slots,"navbar",{},()=>{var d;return[fe(w(((d=e(a).customTitleList.find(ge=>ge.fullPath===e(i).fullPath))==null?void 0:d.title)||e(a).title&&(e(f)(e(a).title)?e(h)(e(a).title):e(a).title)),1)]},!0)])],2),b("div",{class:"h-full flex items-center justify-end",style:de({...t.titleCenter&&e(H)&&{width:`${e(H)}px`}})},[b("div",{ref_key:"endSideRef",ref:Y,class:"h-full flex-center whitespace-nowrap"},[b("div",et,[S(t.$slots,"navbar-end",{},()=>[v(pe,{side:t.navbarEndSide},null,8,["side"])],!0)])],512)],4)],2),[[ue,t.navbar??e(a).settings.navbar.enable]]),b("div",{class:x(["relative flex flex-1 flex-col transition-margin",{...(t.navbar??e(a).settings.navbar.enable)&&{"mt-safe":(t.navbarMode??e(a).settings.navbar.mode)==="show-hide-fixed","mt+safe-[var(--g-navbar-height)]":(t.navbarMode??e(a).settings.navbar.mode)!=="show-hide-fixed"},"mb+safe-[var(--g-tabbar-height)]":t.tabbar??e(a).settings.tabbar.enable}])},[S(t.$slots,"default",{},void 0,!0),v(U,O(E({enterActiveClass:"ease-out",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"})),{default:m(()=>[t.copyright??e(a).settings.copyright.enable?(r(),p("div",tt,[g[1]||(g[1]=b("span",{class:"px-1"},"Copyright",-1)),v(k,{name:"i-ri:copyright-line",class:"text-lg"}),e(a).settings.copyright.dates?(r(),p("span",at,w(e(a).settings.copyright.dates),1)):_("",!0),e(a).settings.copyright.company?(r(),p(P,{key:1},[e(a).settings.copyright.website?(r(),p("a",{key:0,href:e(a).settings.copyright.website,target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},w(e(a).settings.copyright.company),9,st)):(r(),p("span",ot,w(e(a).settings.copyright.company),1))],64)):_("",!0),e(a).settings.copyright.beian?(r(),p("a",nt,w(e(a).settings.copyright.beian),1)):_("",!0)])):_("",!0)]),_:1},16)],2),ce(b("footer",{class:x(["tabbar w-full bg-[var(--g-tabbar-bg)] transition-all pb-safe h+safe-b-[calc(var(--g-tabbar-height))]",{"shadow-bottom":e(Z)}])},[b("div",lt,[S(t.$slots,"tabbar",{},()=>[(r(!0),p(P,null,J(e(ve),d=>(r(),I($,{key:JSON.stringify(d),class:x(["flex flex-1 flex-col items-center text-[var(--g-tabbar-color)] no-underline transition-all",{"text-[var(--g-tabbar-active-color)]!":e(i).fullPath===d.path}]),to:d.path,replace:""},{default:m(()=>[v(T,{value:d.badge?typeof d.badge=="boolean"?d.badge:typeof d.badge=="function"?d.badge():d.badge:!1,class:"flex-1 flex-col items-center gap-[2px]"},{default:m(()=>[K(d)?(r(),I(k,{key:0,name:K(d)??"",class:x(d.text?"text-6":"text-8")},null,8,["name","class"])):_("",!0),d.text?(r(),p("div",rt,w(e(h)(d.text)),1)):_("",!0)]),_:2},1032,["value"])]),_:2},1032,["class","to"]))),128))],!0)])],2),[[ue,t.tabbar??e(a).settings.tabbar.enable]]),v(U,O(E({enterActiveClass:"ease-out duration-300",enterFromClass:"opacity-0 translate-y-4",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"ease-in duration-200",leaveFromClass:"opacity-100 scale-100",leaveToClass:"opacity-0 scale-50"})),{default:m(()=>[(t.backTop??e(a).settings.app.enableBackTop)&&e(Q)>=200?(r(),p("div",{key:0,class:x(["backtop h-12 w-12 flex cursor-pointer items-center justify-center rounded-full bg-white shadow-lg ring-1 ring-stone-3 ring-inset active:bg-stone-1 dark-bg-dark dark-ring-stone-7 dark-active:bg-stone-9",{"bottom+safe-[calc(var(--g-tabbar-height)+16px)]!":t.tabbar??e(a).settings.tabbar.enable}]),onClick:be},[v(k,{name:"i-icon-park-outline:to-top-one",class:"text-6"})],2)):_("",!0)]),_:1},16)],544)}}}),ut=He(it,[["__scopeId","data-v-5350d342"]]);export{ut as _,Ee as a,Le as b}; diff --git a/assets/index-DkxdnFkg.js.br b/assets/index-DkxdnFkg.js.br new file mode 100644 index 0000000..e16ba0c Binary files /dev/null and b/assets/index-DkxdnFkg.js.br differ diff --git a/assets/index-DkxdnFkg.js.gz b/assets/index-DkxdnFkg.js.gz new file mode 100644 index 0000000..d2b5715 Binary files /dev/null and b/assets/index-DkxdnFkg.js.gz differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js new file mode 100644 index 0000000..50d6733 --- /dev/null +++ b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{d as m,ad as u,r as b,o,j as a,a9 as n,e as f,t as g,p as r,a as h,u as s,b as v,q as _,X as y,_ as k}from"./index-DD358c5I.js";const C={key:0,class:"title-container border-b-1 border-b-[var(--g-bg)] border-b-solid px-4 py-3 transition-border-color-300"},S={class:"main-container p-4"},N=m({name:"PageMain",__name:"index",props:{title:{default:""},collaspe:{type:Boolean,default:!1},height:{default:""}},setup(l){const i=l,c=!!u().title,t=b(i.collaspe);function p(){t.value=!1}return(e,x)=>{const d=k;return o(),a("div",{class:_(["page-main relative m-4 flex flex-col bg-[var(--g-container-bg)] transition-background-color-300",{"of-hidden":s(t)}]),style:y({height:s(t)?e.height:""})},[c||e.title?(o(),a("div",C,[n(e.$slots,"title",{},()=>[f(g(e.title),1)])])):r("",!0),h("div",S,[n(e.$slots,"default")]),s(t)?(o(),a("div",{key:1,class:"collaspe absolute bottom-0 w-full cursor-pointer from-transparent to-[var(--g-container-bg)] bg-gradient-to-b pb-2 pt-10 text-center",onClick:p},[v(d,{name:"i-ep:arrow-down",class:"text-xl op-30 transition-opacity hover-op-100"})])):r("",!0)],6)}}});export{N as _}; diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.br b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.br new file mode 100644 index 0000000..546cdd8 Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.br differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.gz b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.gz new file mode 100644 index 0000000..9231a98 Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js.gz differ diff --git a/assets/keepAlive-CUSTFduS.js b/assets/keepAlive-CUSTFduS.js new file mode 100644 index 0000000..d8495b8 --- /dev/null +++ b/assets/keepAlive-CUSTFduS.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_}from"./index-DkxdnFkg.js";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as m,r as u,c,w as n,m as i,o as d,b as o,u as f,i as v}from"./index-DD358c5I.js";const C=m({name:"FeatureStandardKeepAlive",__name:"keepAlive",setup(b){const e=u(1);return(k,a)=>{const t=i("van-stepper"),s=p,r=_;return d(),c(r,{navbar:"","navbar-start-side":"back"},{default:n(()=>[o(s,null,{default:n(()=>[o(t,{modelValue:f(e),"onUpdate:modelValue":a[0]||(a[0]=l=>v(e)?e.value=l:null)},null,8,["modelValue"])]),_:1})]),_:1})}}});export{C as default}; diff --git a/assets/keepAlive-CUSTFduS.js.br b/assets/keepAlive-CUSTFduS.js.br new file mode 100644 index 0000000..b91389f Binary files /dev/null and b/assets/keepAlive-CUSTFduS.js.br differ diff --git a/assets/keepAlive-CUSTFduS.js.gz b/assets/keepAlive-CUSTFduS.js.gz new file mode 100644 index 0000000..ccaa357 Binary files /dev/null and b/assets/keepAlive-CUSTFduS.js.gz differ diff --git a/assets/loadmore-Du2nnSXd.js b/assets/loadmore-Du2nnSXd.js new file mode 100644 index 0000000..c8e030b --- /dev/null +++ b/assets/loadmore-Du2nnSXd.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as x}from"./index-DkxdnFkg.js";import{d as k,U as y,r as n,h as w,c as R,w as B,a8 as H,Z as L,o as f,a as _,j as h,n as T,u,F as j,t as v}from"./index-DD358c5I.js";const C={class:"m-4 flex flex-col gap-4"},F={class:"flex items-center justify-between gap-4 whitespace-nowrap text-sm text-stone-4 font-500 after:h-[1px] after:w-full before:h-[1px] before:w-full after:bg-stone-2 before:bg-stone-2 dark-text-stone-6 after:content-empty before:content-empty after:dark-bg-stone-6 before:dark-bg-stone-6"},U=k({__name:"loadmore",setup(M){const s=y("layoutRef"),i=n(0),p=n(10),t=n(0),e=n([]);function l(){H.get("page/loadmore",{baseURL:"/mock",params:{from:i.value*p.value,limit:p.value}}).then(r=>{e.value.push(...r.data.list),i.value+=1,t.value=r.data.total,L(()=>{var a,o,m,d;const g=((o=(a=s.value)==null?void 0:a.ref)==null?void 0:o.clientHeight)??0,c=((d=(m=s.value)==null?void 0:m.ref)==null?void 0:d.scrollHeight)??0;g===c&&e.value.length{l()}),(r,g)=>{const c=x;return f(),R(c,{ref_key:"layoutRef",ref:s,navbar:"","navbar-start-side":"back",onReachBottom:b},{default:B(()=>[_("div",C,[(f(!0),h(j,null,T(u(e),(a,o)=>(f(),h("div",{key:o,class:"bg-[var(--g-container-bg)] p-4"},v(a),1))),128)),_("div",F,v(u(e).length{_.replace(y.value)})}function p(c){o.value.account=c,o.value.password="123456",d()}return(c,e)=>{const f=l("van-field"),w=l("van-cell-group"),u=l("van-button"),C=l("van-divider"),b=l("van-form"),k=V;return z(),B(k,{navbar:!1,copyright:""},{default:s(()=>[t("div",N,[e[8]||(e[8]=t("img",{src:L,class:"mx-auto h-24 w-24"},null,-1)),n(b,{onSubmit:d},{default:s(()=>[n(w,{inset:""},{default:s(()=>[n(f,{modelValue:r(o).account,"onUpdate:modelValue":e[0]||(e[0]=a=>r(o).account=a),name:"用户名",label:"用户名",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),n(f,{modelValue:r(o).password,"onUpdate:modelValue":e[1]||(e[1]=a=>r(o).password=a),type:"password",name:"密码",label:"密码",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue"])]),_:1}),t("div",U,[n(u,{round:"",block:"",type:"primary","native-type":"submit"},{default:s(()=>e[4]||(e[4]=[i(" 登录 ")])),_:1}),n(C,null,{default:s(()=>e[5]||(e[5]=[i(" 演示账号一键登录 ")])),_:1}),t("div",E,[n(u,{type:"primary",size:"small",plain:"",onClick:e[2]||(e[2]=a=>p("admin"))},{default:s(()=>e[6]||(e[6]=[i(" admin ")])),_:1}),n(u,{size:"small",plain:"",onClick:e[3]||(e[3]=a=>p("test"))},{default:s(()=>e[7]||(e[7]=[i(" test ")])),_:1})])])]),_:1})]),e[9]||(e[9]=t("svg",{width:"100%",viewBox:"0 0 1440 590",xmlns:"http://www.w3.org/2000/svg",class:"svg pointer-events-none transition duration-300 delay-150 ease-in-out"},[t("defs",null,[t("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[t("stop",{offset:"5%","stop-color":"#F78DA7"}),t("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),t("path",{d:"M 0,600 L 0,150 C 154.10714285714283,165.39285714285714 308.21428571428567,180.78571428571428 424,163 C 539.7857142857143,145.21428571428572 617.2500000000001,94.25 735,94 C 852.7499999999999,93.75 1010.7857142857142,144.21428571428572 1135,162 C 1259.2142857142858,179.78571428571428 1349.607142857143,164.89285714285714 1440,150 L 1440,600 L 0,600 Z",stroke:"none","stroke-width":"0",fill:"url(#gradient)","fill-opacity":"0.53",class:"path-1 transition-all duration-300 delay-150 ease-in-out"}),t("defs",null,[t("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[t("stop",{offset:"5%","stop-color":"#F78DA7"}),t("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),t("path",{d:"M 0,600 L 0,350 C 144.10714285714286,333.7857142857143 288.2142857142857,317.57142857142856 389,313 C 489.7857142857143,308.42857142857144 547.25,315.5 657,321 C 766.75,326.5 928.7857142857142,330.42857142857144 1068,335 C 1207.2142857142858,339.57142857142856 1323.607142857143,344.7857142857143 1440,350 L 1440,600 L 0,600 Z",stroke:"none","stroke-width":"0",fill:"url(#gradient)","fill-opacity":"1",class:"path-2 transition-all duration-300 delay-150 ease-in-out"})],-1))]),_:1})}}}),j=A(G,[["__scopeId","data-v-9358c44b"]]);export{j as default}; diff --git a/assets/login-DT8IGGTc.js.br b/assets/login-DT8IGGTc.js.br new file mode 100644 index 0000000..feb8ea1 Binary files /dev/null and b/assets/login-DT8IGGTc.js.br differ diff --git a/assets/login-DT8IGGTc.js.gz b/assets/login-DT8IGGTc.js.gz new file mode 100644 index 0000000..0fc1581 Binary files /dev/null and b/assets/login-DT8IGGTc.js.gz differ diff --git a/assets/logo-CvGq432t.png b/assets/logo-CvGq432t.png new file mode 100644 index 0000000..cec3101 Binary files /dev/null and b/assets/logo-CvGq432t.png differ diff --git a/assets/logo-DvfkIia2.js b/assets/logo-DvfkIia2.js new file mode 100644 index 0000000..cabee31 --- /dev/null +++ b/assets/logo-DvfkIia2.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +const o=""+new URL("logo-CvGq432t.png",import.meta.url).href;export{o as _}; diff --git a/assets/mode-Dhiktx0f.js b/assets/mode-Dhiktx0f.js new file mode 100644 index 0000000..01f27a6 --- /dev/null +++ b/assets/mode-Dhiktx0f.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{d as m,r as c,c as p,w as s,u as o,k as _,m as f,o as n,a as l,b as r,i as v,e as b,j as x,n as k,F as V,x as g,t as w}from"./index-DD358c5I.js";import{_ as B}from"./index-DkxdnFkg.js";const C={class:"flex flex-col gap-4 p-4"},R=m({__name:"mode",setup(y){const u=_(),t=c("fixed");return(N,e)=>{const d=g,i=f("van-button");return n(),p(B,{navbar:"","navbar-mode":o(t)},{default:s(()=>[l("div",C,[r(d,{modelValue:o(t),"onUpdate:modelValue":e[0]||(e[0]=a=>v(t)?t.value=a:null),options:[{label:"静止",value:"static"},{label:"固定",value:"fixed"},{label:"显隐固定",value:"show-hide-fixed"},{label:"粘性",value:"sticky"}],class:"w-full"},null,8,["modelValue"]),r(i,{onClick:e[1]||(e[1]=a=>o(u).back())},{default:s(()=>e[2]||(e[2]=[b(" 返回 ")])),_:1}),(n(),x(V,null,k(50,a=>l("div",{key:a,class:"text-center"},w(a),1)),64))])]),_:1},8,["navbar-mode"])}}});export{R as default}; diff --git a/assets/mode-Dhiktx0f.js.br b/assets/mode-Dhiktx0f.js.br new file mode 100644 index 0000000..cde4a6d Binary files /dev/null and b/assets/mode-Dhiktx0f.js.br differ diff --git a/assets/mode-Dhiktx0f.js.gz b/assets/mode-Dhiktx0f.js.gz new file mode 100644 index 0000000..4529235 Binary files /dev/null and b/assets/mode-Dhiktx0f.js.gz differ diff --git a/assets/multi-CVm3yxcv.js b/assets/multi-CVm3yxcv.js new file mode 100644 index 0000000..bf731a2 --- /dev/null +++ b/assets/multi-CVm3yxcv.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as r}from"./index-DkxdnFkg.js";import{d as u,c as l,w as t,k as _,m as p,o as m,a as o,b as c,e as d,u as f}from"./index-DD358c5I.js";const i={class:"flex flex-col gap-4 p-4"},g=u({__name:"multi",setup(b){const n=_();return(v,e)=>{const a=p("van-button"),s=r;return m(),l(s,{navbar:!1,tabbar:"","tabbar-name":"second"},{default:t(()=>[o("div",i,[e[2]||(e[2]=o("div",null,"可以配置多套底部导航,并在不同页面选择启用某一套。",-1)),c(a,{onClick:e[0]||(e[0]=x=>f(n).back())},{default:t(()=>e[1]||(e[1]=[d(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/multi-CVm3yxcv.js.br b/assets/multi-CVm3yxcv.js.br new file mode 100644 index 0000000..b888dc1 Binary files /dev/null and b/assets/multi-CVm3yxcv.js.br differ diff --git a/assets/multi-CVm3yxcv.js.gz b/assets/multi-CVm3yxcv.js.gz new file mode 100644 index 0000000..9698489 Binary files /dev/null and b/assets/multi-CVm3yxcv.js.gz differ diff --git a/assets/none-jtoQ-Isj.js b/assets/none-jtoQ-Isj.js new file mode 100644 index 0000000..c16580d --- /dev/null +++ b/assets/none-jtoQ-Isj.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as s}from"./index-DkxdnFkg.js";import{d as r,c as _,w as o,k as u,m as c,o as p,a as l,b as m,e as f,u as d}from"./index-DD358c5I.js";const i={class:"flex flex-col gap-4 p-4"},g=r({__name:"none",setup(v){const t=u();return(x,e)=>{const n=c("van-button"),a=s;return p(),_(a,{navbar:!1},{default:o(()=>[l("div",i,[m(n,{onClick:e[0]||(e[0]=b=>d(t).back())},{default:o(()=>e[1]||(e[1]=[f(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/none-jtoQ-Isj.js.br b/assets/none-jtoQ-Isj.js.br new file mode 100644 index 0000000..3b88164 Binary files /dev/null and b/assets/none-jtoQ-Isj.js.br differ diff --git a/assets/none-jtoQ-Isj.js.gz b/assets/none-jtoQ-Isj.js.gz new file mode 100644 index 0000000..a9b5451 Binary files /dev/null and b/assets/none-jtoQ-Isj.js.gz differ diff --git a/assets/pagemain-demo-CyFB3cuM.js b/assets/pagemain-demo-CyFB3cuM.js new file mode 100644 index 0000000..542eb2d --- /dev/null +++ b/assets/pagemain-demo-CyFB3cuM.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as r}from"./index-DkxdnFkg.js";import{_ as m}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{_}from"./logo-DvfkIia2.js";import{z as f,c as u,w as e,m as p,o as d,b as o,e as n,a}from"./index-DD358c5I.js";const b={},c={class:"flex items-center justify-between"};function g(v,t){const s=m,i=p("van-button"),l=r;return d(),u(l,{navbar:"","navbar-start-side":"back"},{default:e(()=>[o(s,null,{default:e(()=>t[0]||(t[0]=[n(" PageMain 是最常用的页面组件,几乎所有页面都会使用到 ")])),_:1}),o(s,{title:"你可以设置一个自定义的标题"},{default:e(()=>t[1]||(t[1]=[n(" 这里放页面内容 ")])),_:1}),o(s,null,{title:e(()=>[a("div",c,[t[3]||(t[3]=n(" 通过 slot 设置标题 ")),o(i,{size:"mini"},{default:e(()=>t[2]||(t[2]=[n(" 还可以放置自定义按钮 ")])),_:1})])]),default:e(()=>[t[4]||(t[4]=n(" 这里放页面内容 "))]),_:1}),o(s,{title:"带展开功能",collaspe:"",height:"20vh"},{default:e(()=>t[5]||(t[5]=[a("h1",{class:"mt-0"}," Fantastic-mobile ",-1),a("img",{src:_},null,-1)])),_:1})]),_:1})}const N=f(b,[["render",g]]);export{N as default}; diff --git a/assets/pagemain-demo-CyFB3cuM.js.br b/assets/pagemain-demo-CyFB3cuM.js.br new file mode 100644 index 0000000..6d5097e Binary files /dev/null and b/assets/pagemain-demo-CyFB3cuM.js.br differ diff --git a/assets/pagemain-demo-CyFB3cuM.js.gz b/assets/pagemain-demo-CyFB3cuM.js.gz new file mode 100644 index 0000000..d8cc31d Binary files /dev/null and b/assets/pagemain-demo-CyFB3cuM.js.gz differ diff --git a/assets/polyfills-BDcNpMO2.js b/assets/polyfills-BDcNpMO2.js new file mode 100644 index 0000000..2b3c615 --- /dev/null +++ b/assets/polyfills-BDcNpMO2.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math===Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={},o=function(t){try{return!!t()}catch(e){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,a=Function.prototype.call,f=c?a.bind(a):function(){return a.apply(a,arguments)},l={},p={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,y=s&&!p.call({1:2},1);l.f=y?function(t){var e=s(this,t);return!!e&&e.enumerable}:p;var b,v,g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h=u,d=Function.prototype,m=d.call,w=h&&d.bind.bind(m,m),O=h?w:function(t){return function(){return m.apply(t,arguments)}},S=O,j=S({}.toString),P=S("".slice),E=o,T=function(t){return P(j(t),8,-1)},F=Object,C=O("".split),I=E((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?C(t,""):F(t)}:F,M=function(t){return null==t},k=M,x=TypeError,A=function(t){if(k(t))throw new x("Can't call method on "+t);return t},L=I,_=A,z=function(t){return L(_(t))},D="object"==typeof document&&document.all,N=void 0===D&&void 0!==D?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},R=N,W=function(t){return"object"==typeof t?null!==t:R(t)},G=n,B=N,U=function(t,e){return arguments.length<2?(n=G[t],B(n)?n:void 0):G[t]&&G[t][e];var n},X=O({}.isPrototypeOf),$=n.navigator,q=$&&$.userAgent,K=n,V=q?String(q):"",Y=K.process,H=K.Deno,J=Y&&Y.versions||H&&H.version,Q=J&&J.v8;Q&&(v=(b=Q.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!v&&V&&(!(b=V.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=V.match(/Chrome\/(\d+)/))&&(v=+b[1]);var Z=v,tt=o,et=n.String,nt=!!Object.getOwnPropertySymbols&&!tt((function(){var t=Symbol("symbol detection");return!et(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),rt=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=U,it=N,ut=X,ct=Object,at=rt?function(t){return"symbol"==typeof t}:function(t){var e=ot("Symbol");return it(e)&&ut(e.prototype,ct(t))},ft=String,lt=N,pt=function(t){try{return ft(t)}catch(e){return"Object"}},st=TypeError,yt=function(t){if(lt(t))return t;throw new st(pt(t)+" is not a function")},bt=M,vt=f,gt=N,ht=W,dt=TypeError,mt={exports:{}},wt=n,Ot=Object.defineProperty,St=function(t,e){try{Ot(wt,t,{value:e,configurable:!0,writable:!0})}catch(n){wt[t]=e}return e},jt=n,Pt=St,Et="__core-js_shared__",Tt=mt.exports=jt[Et]||Pt(Et,{});(Tt.versions||(Tt.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=mt.exports,Ct=Ft,It=function(t,e){return Ct[t]||(Ct[t]=e||{})},Mt=A,kt=Object,xt=function(t){return kt(Mt(t))},At=xt,Lt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,e){return Lt(At(t),e)},zt=O,Dt=0,Nt=Math.random(),Rt=zt(1..toString),Wt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Rt(++Dt+Nt,36)},Gt=It,Bt=_t,Ut=Wt,Xt=nt,$t=rt,qt=n.Symbol,Kt=Gt("wks"),Vt=$t?qt.for||qt:qt&&qt.withoutSetter||Ut,Yt=function(t){return Bt(Kt,t)||(Kt[t]=Xt&&Bt(qt,t)?qt[t]:Vt("Symbol."+t)),Kt[t]},Ht=f,Jt=W,Qt=at,Zt=function(t,e){var n=t[e];return bt(n)?void 0:yt(n)},te=function(t,e){var n,r;if("string"===e&>(n=t.toString)&&!ht(r=vt(n,t)))return r;if(gt(n=t.valueOf)&&!ht(r=vt(n,t)))return r;if("string"!==e&>(n=t.toString)&&!ht(r=vt(n,t)))return r;throw new dt("Can't convert object to primitive value")},ee=TypeError,ne=Yt("toPrimitive"),re=function(t,e){if(!Jt(t)||Qt(t))return t;var n,r=Zt(t,ne);if(r){if(void 0===e&&(e="default"),n=Ht(r,t,e),!Jt(n)||Qt(n))return n;throw new ee("Can't convert object to primitive value")}return void 0===e&&(e="number"),te(t,e)},oe=at,ie=function(t){var e=re(t,"string");return oe(e)?e:e+""},ue=W,ce=n.document,ae=ue(ce)&&ue(ce.createElement),fe=function(t){return ae?ce.createElement(t):{}},le=fe,pe=!i&&!o((function(){return 7!==Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),se=i,ye=f,be=l,ve=g,ge=z,he=ie,de=_t,me=pe,we=Object.getOwnPropertyDescriptor;r.f=se?we:function(t,e){if(t=ge(t),e=he(e),me)try{return we(t,e)}catch(n){}if(de(t,e))return ve(!ye(be.f,t,e),t[e])};var Oe={},Se=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),je=W,Pe=String,Ee=TypeError,Te=function(t){if(je(t))return t;throw new Ee(Pe(t)+" is not an object")},Fe=i,Ce=pe,Ie=Se,Me=Te,ke=ie,xe=TypeError,Ae=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,_e="enumerable",ze="configurable",De="writable";Oe.f=Fe?Ie?function(t,e,n){if(Me(t),e=ke(e),Me(n),"function"==typeof t&&"prototype"===e&&"value"in n&&De in n&&!n[De]){var r=Le(t,e);r&&r[De]&&(t[e]=n.value,n={configurable:ze in n?n[ze]:r[ze],enumerable:_e in n?n[_e]:r[_e],writable:!1})}return Ae(t,e,n)}:Ae:function(t,e,n){if(Me(t),e=ke(e),Me(n),Ce)try{return Ae(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new xe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ne=Oe,Re=g,We=i?function(t,e,n){return Ne.f(t,e,Re(1,n))}:function(t,e,n){return t[e]=n,t},Ge={exports:{}},Be=i,Ue=_t,Xe=Function.prototype,$e=Be&&Object.getOwnPropertyDescriptor,qe=Ue(Xe,"name"),Ke={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!Be||Be&&$e(Xe,"name").configurable)},Ve=N,Ye=Ft,He=O(Function.toString);Ve(Ye.inspectSource)||(Ye.inspectSource=function(t){return He(t)});var Je,Qe,Ze,tn=Ye.inspectSource,en=N,nn=n.WeakMap,rn=en(nn)&&/native code/.test(String(nn)),on=Wt,un=It("keys"),cn=function(t){return un[t]||(un[t]=on(t))},an={},fn=rn,ln=n,pn=W,sn=We,yn=_t,bn=Ft,vn=cn,gn=an,hn="Object already initialized",dn=ln.TypeError,mn=ln.WeakMap;if(fn||bn.state){var wn=bn.state||(bn.state=new mn);wn.get=wn.get,wn.has=wn.has,wn.set=wn.set,Je=function(t,e){if(wn.has(t))throw new dn(hn);return e.facade=t,wn.set(t,e),e},Qe=function(t){return wn.get(t)||{}},Ze=function(t){return wn.has(t)}}else{var On=vn("state");gn[On]=!0,Je=function(t,e){if(yn(t,On))throw new dn(hn);return e.facade=t,sn(t,On,e),e},Qe=function(t){return yn(t,On)?t[On]:{}},Ze=function(t){return yn(t,On)}}var Sn={set:Je,get:Qe,has:Ze,enforce:function(t){return Ze(t)?Qe(t):Je(t,{})},getterFor:function(t){return function(e){var n;if(!pn(e)||(n=Qe(e)).type!==t)throw new dn("Incompatible receiver, "+t+" required");return n}}},jn=O,Pn=o,En=N,Tn=_t,Fn=i,Cn=Ke.CONFIGURABLE,In=tn,Mn=Sn.enforce,kn=Sn.get,xn=String,An=Object.defineProperty,Ln=jn("".slice),_n=jn("".replace),zn=jn([].join),Dn=Fn&&!Pn((function(){return 8!==An((function(){}),"length",{value:8}).length})),Nn=String(String).split("String"),Rn=Ge.exports=function(t,e,n){"Symbol("===Ln(xn(e),0,7)&&(e="["+_n(xn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Tn(t,"name")||Cn&&t.name!==e)&&(Fn?An(t,"name",{value:e,configurable:!0}):t.name=e),Dn&&n&&Tn(n,"arity")&&t.length!==n.arity&&An(t,"length",{value:n.arity});try{n&&Tn(n,"constructor")&&n.constructor?Fn&&An(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=Mn(t);return Tn(r,"source")||(r.source=zn(Nn,"string"==typeof e?e:"")),t};Function.prototype.toString=Rn((function(){return En(this)&&kn(this).source||In(this)}),"toString");var Wn=Ge.exports,Gn=N,Bn=Oe,Un=Wn,Xn=St,$n={},qn=Math.ceil,Kn=Math.floor,Vn=Math.trunc||function(t){var e=+t;return(e>0?Kn:qn)(e)},Yn=function(t){var e=+t;return e!=e||0===e?0:Vn(e)},Hn=Yn,Jn=Math.max,Qn=Math.min,Zn=Yn,tr=Math.min,er=function(t){var e=Zn(t);return e>0?tr(e,9007199254740991):0},nr=function(t){return er(t.length)},rr=z,or=function(t,e){var n=Hn(t);return n<0?Jn(n+e,0):Qn(n,e)},ir=nr,ur=function(t){return function(e,n,r){var o=rr(e),i=ir(o);if(0===i)return!t&&-1;var u,c=or(r,i);if(t&&n!=n){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},ar=_t,fr=z,lr=cr.indexOf,pr=an,sr=O([].push),yr=function(t,e){var n,r=fr(t),o=0,i=[];for(n in r)!ar(pr,n)&&ar(r,n)&&sr(i,n);for(;e.length>o;)ar(r,n=e[o++])&&(~lr(i,n)||sr(i,n));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vr=yr,gr=br.concat("length","prototype");$n.f=Object.getOwnPropertyNames||function(t){return vr(t,gr)};var hr={};hr.f=Object.getOwnPropertySymbols;var dr=U,mr=$n,wr=hr,Or=Te,Sr=O([].concat),jr=dr("Reflect","ownKeys")||function(t){var e=mr.f(Or(t)),n=wr.f;return n?Sr(e,n(t)):e},Pr=_t,Er=jr,Tr=r,Fr=Oe,Cr=o,Ir=N,Mr=/#|\.prototype\./,kr=function(t,e){var n=Ar[xr(t)];return n===_r||n!==Lr&&(Ir(e)?Cr(e):!!e)},xr=kr.normalize=function(t){return String(t).replace(Mr,".").toLowerCase()},Ar=kr.data={},Lr=kr.NATIVE="N",_r=kr.POLYFILL="P",zr=kr,Dr=n,Nr=r.f,Rr=We,Wr=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Gn(n)&&Un(n,i,r),r.global)o?t[e]=n:Xn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(u){}o?t[e]=n:Bn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Gr=St,Br=function(t,e,n){for(var r=Er(e),o=Fr.f,i=Tr.f,u=0;uu;)Hr.f(t,n=o[u++],r[n]);return t};var to,eo=U("document","documentElement"),no=Te,ro=Xr,oo=br,io=an,uo=eo,co=fe,ao="prototype",fo="script",lo=cn("IE_PROTO"),po=function(){},so=function(t){return"<"+fo+">"+t+""},yo=function(t){t.write(so("")),t.close();var e=t.parentWindow.Object;return t=null,e},bo=function(){try{to=new ActiveXObject("htmlfile")}catch(o){}var t,e,n;bo="undefined"!=typeof document?document.domain&&to?yo(to):(e=co("iframe"),n="java"+fo+":",e.style.display="none",uo.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(so("document.F=Object")),t.close(),t.F):yo(to);for(var r=oo.length;r--;)delete bo[ao][oo[r]];return bo()};io[lo]=!0;var vo=Yt,go=Object.create||function(t,e){var n;return null!==t?(po[ao]=no(t),n=new po,po[ao]=null,n[lo]=t):n=bo(),void 0===e?n:ro.f(n,e)},ho=Oe.f,mo=vo("unscopables"),wo=Array.prototype;void 0===wo[mo]&&ho(wo,mo,{configurable:!0,value:go(null)});var Oo=xt,So=nr,jo=Yn,Po=function(t){wo[mo][t]=!0};(function(t,e){var n,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(n=a?Dr:f?Dr[c]||Gr(c,{}):Dr[c]&&Dr[c].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Nr(n,r))&&u.value:n[r],!Ur(a?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Br(i,o)}(t.sham||o&&o.sham)&&Rr(i,"sham",!0),Wr(n,r,i,t)}})({target:"Array",proto:!0},{at:function(t){var e=Oo(this),n=So(e),r=jo(t),o=r>=0?r:n+r;return o<0||o>=n?void 0:e[o]}}),Po("at"); diff --git a/assets/polyfills-BDcNpMO2.js.br b/assets/polyfills-BDcNpMO2.js.br new file mode 100644 index 0000000..0491974 Binary files /dev/null and b/assets/polyfills-BDcNpMO2.js.br differ diff --git a/assets/polyfills-BDcNpMO2.js.gz b/assets/polyfills-BDcNpMO2.js.gz new file mode 100644 index 0000000..2c9d8b9 Binary files /dev/null and b/assets/polyfills-BDcNpMO2.js.gz differ diff --git a/assets/preset-Fg5pq6Iu.js b/assets/preset-Fg5pq6Iu.js new file mode 100644 index 0000000..2626ac7 --- /dev/null +++ b/assets/preset-Fg5pq6Iu.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as T}from"./index-DkxdnFkg.js";import{d as $,r as b,c as h,w as s,u as i,k as F,m as r,o as c,a as u,b as n,j as k,n as x,F as g,i as C,e as O,a7 as V}from"./index-DD358c5I.js";const R={class:"flex flex-col gap-4 p-4"},U={class:"flex gap-4"},j={class:"flex-1"},E={class:"flex-1"},z=$({__name:"preset",setup(M){const S=F(),v=[{label:"主页",value:"home"},{label:"返回",value:"back"},{label:"前进",value:"forward"},{label:"语言",value:"i18n"},{label:"明暗模式",value:"colorScheme"}],o=b(["home"]);function w(t){o.value.includes(t)?o.value.splice(o.value.indexOf(t),1):o.value.push(t)}const a=b(["i18n"]);function B(t){a.value.includes(t)?a.value.splice(a.value.indexOf(t),1):a.value.push(t)}return(t,e)=>{const p=r("van-checkbox"),_=r("van-cell"),m=r("van-cell-group"),f=r("van-checkbox-group"),y=r("van-button"),L=T;return c(),h(L,{navbar:"","navbar-start-side":i(o),"navbar-end-side":i(a)},{default:s(()=>[u("div",R,[u("div",U,[u("div",j,[e[5]||(e[5]=u("div",{class:"mb-2 text-center"}," 左侧 ",-1)),n(f,{modelValue:i(o),"onUpdate:modelValue":e[1]||(e[1]=l=>C(o)?o.value=l:null)},{default:s(()=>[n(m,null,{default:s(()=>[(c(),k(g,null,x(v,(l,d)=>n(_,{key:d,clickable:"",title:l.label,onClick:N=>w(l.value)},{"right-icon":s(()=>[n(p,{name:l.value,onClick:e[0]||(e[0]=V(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])]),u("div",E,[e[6]||(e[6]=u("div",{class:"mb-2 text-center"}," 右侧 ",-1)),n(f,{modelValue:i(a),"onUpdate:modelValue":e[3]||(e[3]=l=>C(a)?a.value=l:null)},{default:s(()=>[n(m,null,{default:s(()=>[(c(),k(g,null,x(v,(l,d)=>n(_,{key:d,clickable:"",title:l.label,onClick:N=>B(l.value)},{"right-icon":s(()=>[n(p,{name:l.value,onClick:e[2]||(e[2]=V(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])])]),n(y,{onClick:e[4]||(e[4]=l=>i(S).back())},{default:s(()=>e[7]||(e[7]=[O(" 返回 ")])),_:1})])]),_:1},8,["navbar-start-side","navbar-end-side"])}}});export{z as default}; diff --git a/assets/preset-Fg5pq6Iu.js.br b/assets/preset-Fg5pq6Iu.js.br new file mode 100644 index 0000000..68efc00 Binary files /dev/null and b/assets/preset-Fg5pq6Iu.js.br differ diff --git a/assets/preset-Fg5pq6Iu.js.gz b/assets/preset-Fg5pq6Iu.js.gz new file mode 100644 index 0000000..1be6949 Binary files /dev/null and b/assets/preset-Fg5pq6Iu.js.gz differ diff --git a/assets/productlist-3LgwzsxM.js b/assets/productlist-3LgwzsxM.js new file mode 100644 index 0000000..b88808f --- /dev/null +++ b/assets/productlist-3LgwzsxM.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as g}from"./index-DkxdnFkg.js";import{d as f,r,c as v,w as x,o as a,a as e,j as l,n as i,u as c,F as m,q as b,t as y,e as d,b as k,_ as h,z as w}from"./index-DD358c5I.js";const C={class:"category-list w-[80px] of-auto overscroll-none"},B=["onClick"],F={class:"truncate"},I={class:"product-list ml-[80px] flex flex-col gap-4 of-auto overscroll-none bg-[var(--g-container-bg)] p-4"},N={class:"flex flex-col gap-1"},P={class:"flex items-baseline justify-between"},V={class:"flex-center rounded-md bg-red p-1 c-white"},j=f({name:"FeaturePageProductlist",__name:"productlist",setup(z){const n=r(0),p=r([{name:"为你推荐"},{name:"超低折扣"},{name:"新品上架"},{name:"分类1"},{name:"分类2"},{name:"分类3"},{name:"分类4"},{name:"分类5"},{name:"分类6"},{name:"分类7"},{name:"分类8"},{name:"分类9"},{name:"分类10"},{name:"分类11"},{name:"分类12"},{name:"分类13"},{name:"分类14"},{name:"分类15"}]);return(L,t)=>{const u=h,_=g;return a(),v(_,{navbar:"","navbar-start-side":"back",copyright:!1},{default:x(()=>[e("div",C,[(a(!0),l(m,null,i(c(p),(o,s)=>(a(),l("div",{key:s,class:b(["relative w-full px-2 py-4 text-center text-xs",{"active-item bg-[var(--g-container-bg)]":c(n)===s,"cursor-pointer":c(n)!==s}]),onClick:S=>n.value=s},[e("div",F,y(o.name),1)],10,B))),128))]),e("div",I,[(a(),l(m,null,i(20,o=>e("div",{key:o,class:"flex gap-2"},[t[3]||(t[3]=e("img",{src:"https://fakeimg.pl/80/282828/?retina=1",class:"block h-[80px] w-[80px]"},null,-1)),e("div",N,[t[1]||(t[1]=e("div",{class:"line-clamp-2 font-bold leading-tight"}," 大红番茄500g,大红番茄500g,大红番茄500g ",-1)),t[2]||(t[2]=e("div",{class:"text-xs c-stone"}," 大山里的美味 | 番茄味浓郁 ",-1)),e("div",P,[t[0]||(t[0]=e("div",{class:"flex items-baseline gap-2"},[e("div",{class:"text-xs c-red font-bold"},[d(" ¥"),e("span",{class:"text-lg"},"8"),d(".99 ")]),e("div",{class:"text-xs c-stone/50 line-through"}," ¥12.99 ")],-1)),e("div",V,[k(u,{name:"i-typcn:plus"})])])])])),64))])]),_:1})}}}),A=w(j,[["__scopeId","data-v-c91ee0aa"]]);export{A as default}; diff --git a/assets/productlist-3LgwzsxM.js.br b/assets/productlist-3LgwzsxM.js.br new file mode 100644 index 0000000..fee537c Binary files /dev/null and b/assets/productlist-3LgwzsxM.js.br differ diff --git a/assets/productlist-3LgwzsxM.js.gz b/assets/productlist-3LgwzsxM.js.gz new file mode 100644 index 0000000..3dcbf58 Binary files /dev/null and b/assets/productlist-3LgwzsxM.js.gz differ diff --git a/assets/productlist-CROuibJ0.css b/assets/productlist-CROuibJ0.css new file mode 100644 index 0000000..ecb4cdd --- /dev/null +++ b/assets/productlist-CROuibJ0.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +.category-list[data-v-c91ee0aa]{position:absolute;top:0;bottom:0;left:0}.category-list .active-item[data-v-c91ee0aa]:before,.category-list .active-item[data-v-c91ee0aa]:after{position:absolute;right:0;width:min(5.333vw,32px);height:min(5.333vw,32px);content:"";border-radius:100%;box-shadow:0 0 0 min(5.333vw,32px) var(--g-container-bg);transition:box-shadow .3s}.category-list .active-item[data-v-c91ee0aa]:before{top:max(-5.333vw,-32px);clip-path:inset(50% max(-2.667vw,-16px) 0 50%)}.category-list .active-item[data-v-c91ee0aa]:after{bottom:max(-5.333vw,-32px);clip-path:inset(0 max(-2.667vw,-16px) 50% 50%)}.product-list[data-v-c91ee0aa]{position:absolute;top:0;right:0;bottom:0;left:0} diff --git a/assets/productlist-CROuibJ0.css.br b/assets/productlist-CROuibJ0.css.br new file mode 100644 index 0000000..45e43d9 Binary files /dev/null and b/assets/productlist-CROuibJ0.css.br differ diff --git a/assets/productlist-CROuibJ0.css.gz b/assets/productlist-CROuibJ0.css.gz new file mode 100644 index 0000000..967cf78 Binary files /dev/null and b/assets/productlist-CROuibJ0.css.gz differ diff --git a/assets/qrcode-BeogybRM.js b/assets/qrcode-BeogybRM.js new file mode 100644 index 0000000..101125b --- /dev/null +++ b/assets/qrcode-BeogybRM.js @@ -0,0 +1,15 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as kt}from"./index-DkxdnFkg.js";import{_ as Ft}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as zt,r as Y,U as Vt,h as Ht,c as Kt,w as P,m as mt,o as Jt,a as S,b as L,e as wt,u as O,i as $t,_ as Yt}from"./index-DD358c5I.js";var U={},Ot=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ct={},N={};let lt;const jt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return jt[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};N.isKanjiModeEnabled=function(){return typeof lt<"u"};N.toSJIS=function(t){return lt(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(W);function Bt(){this.buffer=[],this.length=0}Bt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Gt=Bt;function $(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}$.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};$.prototype.get=function(e,t){return this.data[e*this.size+t]};$.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};$.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var qt=$,At={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let u=1;u=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,a=0,u=0,c=null,l=null;for(let E=0;E=5&&(s+=t.N1+(a-5)),c=f,a=1),f=n.get(h,E),f===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=f,u=1)}a>=5&&(s+=t.N1+(a-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|n.get(l,c),l>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let u=0;u=0;){const s=r[0];for(let u=0;u0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var Wt=ft,Mt={},v={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var M={};const _t="[0-9]+",Zt="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Xt="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r +]))+`;M.KANJI=new RegExp(J,"g");M.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");M.BYTE=new RegExp(Xt,"g");M.NUMERIC=new RegExp(_t,"g");M.ALPHANUMERIC=new RegExp(Zt,"g");const xt=new RegExp("^"+J+"$"),te=new RegExp("^"+_t+"$"),ee=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");M.testKanji=function(t){return xt.test(t)};M.testNumeric=function(t){return te.test(t)};M.testAlphanumeric=function(t){return ee.test(t)};(function(e){const t=dt,i=M;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch{return s}}})(v);(function(e){const t=N,i=Z,o=W,n=v,r=dt,s=7973,a=t.getBCHDigit(s);function u(h,f,w){for(let y=1;y<=40;y++)if(f<=e.getCapacity(y,w,h))return y}function c(h,f){return n.getCharCountIndicator(h,f)+4}function l(h,f){let w=0;return h.forEach(function(y){const T=c(y.mode,f);w+=T+y.getBitsLength()}),w}function E(h,f){for(let w=1;w<=40;w++)if(l(h,w)<=e.getCapacity(w,f,n.MIXED))return w}e.from=function(f,w){return r.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,y){if(!r.isValid(f))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=n.BYTE);const T=t.getSymbolTotalCodewords(f),m=i.getTotalCodewordsCount(f,w),p=(T-m)*8;if(y===n.MIXED)return p;const g=p-c(y,f);switch(y){case n.NUMERIC:return Math.floor(g/10*3);case n.ALPHANUMERIC:return Math.floor(g/11*2);case n.KANJI:return Math.floor(g/13);case n.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let y;const T=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,T);if(f.length===0)return 1;y=f[0]}else y=f;return u(y.mode,y.getLength(),T)},e.getEncodedBits=function(f){if(!r.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-a>=0;)w^=s<=0;)n^=St<0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var re=k;const ie=v,et=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(e){this.mode=ie.ALPHANUMERIC,this.data=e}F.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=et.indexOf(this.data[i])*45;o+=et.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(et.indexOf(this.data[i]),6)};var se=F;const ae=v;function z(e){this.mode=ae.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}z.getBitsLength=function(t){return t*8};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(e){for(let t=0,i=this.data.length;t=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var fe=V,Lt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,n){var r={},s={};s[o]=0;var a=t.PriorityQueue.make();a.push(o,0);for(var u,c,l,E,h,f,w,y,T;!a.empty();){u=a.pop(),c=u.value,E=u.cost,h=i[c]||{};for(l in h)h.hasOwnProperty(l)&&(f=h[l],w=E+f,y=s[l],T=typeof s[l]>"u",(T||y>w)&&(s[l]=w,a.push(l,w),r[l]=c))}if(typeof n<"u"&&typeof s[n]>"u"){var m=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(i,o){for(var n=[],r=o;r;)n.push(r),i[r],r=i[r];return n.reverse(),n},find_path:function(i,o,n){var r=t.single_source_shortest_paths(i,o,n);return t.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,n={},r;i=i||{};for(r in o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=i.sorter||o.default_sorter,n},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var n={value:i,cost:o};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Lt);var de=Lt.exports;(function(e){const t=v,i=re,o=se,n=ue,r=fe,s=M,a=N,u=de;function c(m){return unescape(encodeURIComponent(m)).length}function l(m,p,g){const d=[];let C;for(;(C=m.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:p,length:C[0].length});return d}function E(m){const p=l(s.NUMERIC,t.NUMERIC,m),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,m);let d,C;return a.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,m),C=l(s.KANJI,t.KANJI,m)):(d=l(s.BYTE_KANJI,t.BYTE,m),C=[]),p.concat(g,d,C).sort(function(A,I){return A.index-I.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function h(m,p){switch(p){case t.NUMERIC:return i.getBitsLength(m);case t.ALPHANUMERIC:return o.getBitsLength(m);case t.KANJI:return r.getBitsLength(m);case t.BYTE:return n.getBitsLength(m)}}function f(m){return m.reduce(function(p,g){const d=p.length-1>=0?p[p.length-1]:null;return d&&d.mode===g.mode?(p[p.length-1].data+=g.data,p):(p.push(g),p)},[])}function w(m){const p=[];for(let g=0;g=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?e.set(r+a,s+u,!0,!0):e.set(r+a,s+u,!1,!0))}}function Be(e){const t=e.size;for(let i=8;i>a&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function rt(e,t,i){const o=e.size,n=pe.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,a-u)){let c=!1;s>>r&1)===1),e.set(n,a-u,c),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function Ie(e,t,i){const o=new ge;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),Ee.getCharCountIndicator(u.mode,e)),u.write(o)});const n=x.getSymbolTotalCodewords(e),r=ut.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let u=0;u=7&&Te(u,t),Ne(u,s),isNaN(o)&&(o=at.getBestMask(u,rt.bind(null,u,i))),at.applyMask(o,u),rt(u,i,o),{modules:u,version:t,errorCorrectionLevel:i,maskPattern:o,segments:n}}Ct.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=nt.M,n,r;return typeof i<"u"&&(o=nt.from(i.errorCorrectionLevel,nt.M),n=Q.from(i.version),r=at.from(i.maskPattern),i.toSJISFunc&&x.setToSJISFunction(i.toSJISFunc)),Me(t,n,o,r)};var Ut={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(r){return[r,r]}))),o.length===6&&o.push("F","F");const n=parseInt(o.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,r=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:r,scale:r?4:s,margin:n,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,n){return n.width&&n.width>=o+n.margin*2?n.width/(o+n.margin*2):n.scale},e.getImageWidth=function(o,n){const r=e.getScale(o,n);return Math.floor((o+n.margin*2)*r)},e.qrToImageData=function(o,n,r){const s=n.modules.size,a=n.modules.data,u=e.getScale(s,r),c=Math.floor((s+r.margin*2)*u),l=r.margin*u,E=[r.color.light,r.color.dark];for(let h=0;h=l&&f>=l&&h"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(c=o()),u=t.getOptions(u);const l=t.getImageWidth(r.modules.size,u),E=c.getContext("2d"),h=E.createImageData(l,l);return t.qrToImageData(h.data,r,u),i(E,c,l),E.putImageData(h,0,0),c},e.renderToDataURL=function(r,s,a){let u=a;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const c=e.render(r,s,u),l=u.type||"image/png",E=u.rendererOpts||{};return c.toDataURL(l,E.quality)}})(Ut);var Dt={};const _e=gt;function Et(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function it(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Pe(e,t,i){let o="",n=0,r=!1,s=0;for(let a=0;a0&&u>0&&e[a-1]||(o+=r?it("M",u+i,.5+c+i):it("m",n,0),n=0,r=!1),u+1':"",c="',l='viewBox="0 0 '+a+" "+a+'"',h=''+u+c+` +`;return typeof o=="function"&&o(null,h),h};const Se=Ot,ct=Ct,vt=Ut,Re=Dt;function ht(e,t,i,o,n){const r=[].slice.call(arguments,1),s=r.length,a=typeof r[s-1]=="function";if(!a&&!Se())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(n=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof n>"u"?(n=o,o=void 0):(n=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(u,c){try{const l=ct.create(i,o);u(e(l,t,o))}catch(l){c(l)}})}try{const u=ct.create(i,o);n(null,e(u,t,o))}catch(u){n(u)}}U.create=ct.create;U.toCanvas=ht.bind(null,vt.render);U.toDataURL=ht.bind(null,vt.renderToDataURL);U.toString=ht.bind(null,function(e,t,i){return Re.render(e,i)});const Le={class:"whitespace-break-spaces p-4 space-y-2"},Ue={class:"space-x-2"},De=["src"],ve=["src"],ke=["src"],He=zt({__name:"qrcode",setup(e){const t=Y(!1),i=Y(""),o=Y(""),n=Y(""),r=Vt("canvasRef");return Ht(()=>{U.toDataURL("Fantastic-mobile 真棒!").then(s=>{i.value=s}).catch(s=>{console.log(s)}),U.toCanvas(r.value,"Fantastic-mobile 真棒!").then(()=>{}).catch(s=>{console.log(s)}),U.toDataURL("Fantastic-mobile 真棒!",{color:{dark:"#5482EE",light:"#E8E8E8"}}).then(s=>{o.value=s}).catch(s=>{console.log(s)}),U.toDataURL("Fantastic-mobile 真棒!",{width:100}).then(s=>{n.value=s}).catch(s=>{console.log(s)})}),(s,a)=>{const u=Yt,c=mt("van-tag"),l=mt("van-action-sheet"),E=Ft,h=kt;return Jt(),Kt(h,{navbar:"","navbar-start-side":"back"},{"navbar-end":P(()=>[S("div",{class:"h-full flex-center px-1",onClick:a[0]||(a[0]=f=>t.value=!0)},[L(u,{name:"i-mdi:information",class:"text-4"})]),L(l,{show:O(t),"onUpdate:show":a[1]||(a[1]=f=>$t(t)?t.value=f:null),teleport:"body"},{default:P(()=>[S("div",Le,[a[4]||(a[4]=S("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),a[5]||(a[5]=S("div",null,"安装命令:",-1)),S("div",Ue,[L(c,{type:"primary",plain:""},{default:P(()=>a[2]||(a[2]=[wt(" pnpm add qrcode ")])),_:1}),L(c,{type:"primary",plain:""},{default:P(()=>a[3]||(a[3]=[wt(" pnpm add @types/qrcode -D ")])),_:1})])])]),_:1},8,["show"])]),default:P(()=>[L(E,{title:"渲染成 img 标签"},{default:P(()=>[S("img",{src:O(i)},null,8,De)]),_:1}),L(E,{title:"渲染成 canvas 标签"},{default:P(()=>[S("canvas",{ref_key:"canvasRef",ref:r},null,512)]),_:1}),L(E,{title:"自定义颜色"},{default:P(()=>[S("img",{src:O(o)},null,8,ve)]),_:1}),L(E,{title:"指定宽度"},{default:P(()=>[S("img",{src:O(n)},null,8,ke)]),_:1})]),_:1})}}});export{He as default}; diff --git a/assets/qrcode-BeogybRM.js.br b/assets/qrcode-BeogybRM.js.br new file mode 100644 index 0000000..cdebf30 Binary files /dev/null and b/assets/qrcode-BeogybRM.js.br differ diff --git a/assets/qrcode-BeogybRM.js.gz b/assets/qrcode-BeogybRM.js.gz new file mode 100644 index 0000000..47464b5 Binary files /dev/null and b/assets/qrcode-BeogybRM.js.gz differ diff --git a/assets/reload-Dw2qFPDr.js b/assets/reload-Dw2qFPDr.js new file mode 100644 index 0000000..8ec239c --- /dev/null +++ b/assets/reload-Dw2qFPDr.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{d as o,h as t,j as n,k as r,o as a}from"./index-DD358c5I.js";const p=o({__name:"reload",setup(s){const e=r();return t(()=>{e.go(-1)}),(c,u)=>(a(),n("div"))}});export{p as default}; diff --git a/assets/reload-Dw2qFPDr.js.br b/assets/reload-Dw2qFPDr.js.br new file mode 100644 index 0000000..974e24c Binary files /dev/null and b/assets/reload-Dw2qFPDr.js.br differ diff --git a/assets/reload-Dw2qFPDr.js.gz b/assets/reload-Dw2qFPDr.js.gz new file mode 100644 index 0000000..4db9a74 Binary files /dev/null and b/assets/reload-Dw2qFPDr.js.gz differ diff --git a/assets/schedule-DFRsQdUX.js b/assets/schedule-DFRsQdUX.js new file mode 100644 index 0000000..c012e5a --- /dev/null +++ b/assets/schedule-DFRsQdUX.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as z}from"./index-DkxdnFkg.js";import{d as I,r as p,c as b,w as _,m as L,o as t,a as n,j as l,n as f,u,F as m,t as v,e as k,b as N,z as V}from"./index-DD358c5I.js";const D={class:"absolute left-0 top-0 h-full w-full of-auto overscroll-none"},F={key:0,class:"flex flex-col items-center gap-2"},$=I({__name:"schedule",setup(j){const x=p(["01/01","01/02","01/03","01/04","01/05","01/06","01/07","01/08","01/09","01/10","01/11","01/12","01/13","01/14","01/15","01/16","01/17","01/18","01/19","01/20","01/21","01/22","01/23","01/24","01/25","01/26","01/27","01/28","01/29","01/30","01/31"]),y=p(["09:00-10:00","10:00-11:00","11:00-12:00","14:00-15:00","15:00-16:00","16:00-17:00"]),r=p([{row:"01/05",col:"11:00-12:00",content:"张三"},{row:"01/08",col:"09:00-10:00",content:"李四"},{row:"01/15",col:"16:00-17:00",content:"王五"},{row:"01/26",col:"15:00-16:00",content:"某某"}]);function d(s,e){return r.value.findIndex(a=>a.row===s&&a.col===e)}function h(s,e){r.value.push({row:s,col:e,content:"某某"})}function C(s){r.value.splice(s,1)}return(s,e)=>{const a=L("van-button"),g=z;return t(),b(g,{navbar:"","navbar-start-side":"back"},{default:_(()=>[n("div",D,[n("table",null,[n("thead",null,[n("tr",null,[e[0]||(e[0]=n("th",null,[n("span",{class:"col"},"时段"),n("span",{class:"row"},"日期")],-1)),(t(!0),l(m,null,f(u(y),(o,i)=>(t(),l("th",{key:i},v(o),1))),128))])]),n("tbody",null,[(t(!0),l(m,null,f(u(x),(o,i)=>(t(),l("tr",{key:i},[n("td",null,v(o),1),(t(!0),l(m,null,f(u(y),(c,w)=>(t(),l("td",{key:w},[d(o,c)>=0?(t(),l("div",F,[k(v(u(r)[d(o,c)].content)+" ",1),N(a,{type:"danger",size:"mini",onClick:B=>C(d(o,c))},{default:_(()=>e[1]||(e[1]=[k(" 取消预约 ")])),_:2},1032,["onClick"])])):(t(),b(a,{key:1,type:"primary",size:"mini",onClick:B=>h(o,c)},{default:_(()=>e[2]||(e[2]=[k(" 预约 ")])),_:2},1032,["onClick"]))]))),128))]))),128))])])])]),_:1})}}}),P=V($,[["__scopeId","data-v-a4dde5e7"]]);export{P as default}; diff --git a/assets/schedule-DFRsQdUX.js.br b/assets/schedule-DFRsQdUX.js.br new file mode 100644 index 0000000..7f53b1f Binary files /dev/null and b/assets/schedule-DFRsQdUX.js.br differ diff --git a/assets/schedule-DFRsQdUX.js.gz b/assets/schedule-DFRsQdUX.js.gz new file mode 100644 index 0000000..81045d8 Binary files /dev/null and b/assets/schedule-DFRsQdUX.js.gz differ diff --git a/assets/schedule-DSaUVl66.css b/assets/schedule-DSaUVl66.css new file mode 100644 index 0000000..ebc7c3b --- /dev/null +++ b/assets/schedule-DSaUVl66.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +table[data-v-a4dde5e7]{border-collapse:collapse}table th[data-v-a4dde5e7],table td[data-v-a4dde5e7]{border-right-width:1px;border-bottom-width:1px;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(221 221 221 / var(--un-border-right-opacity));--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(221 221 221 / var(--un-border-bottom-opacity));border-right-style:solid;border-bottom-style:solid;padding:12px;text-align:center}.dark table th[data-v-a4dde5e7],.dark table td[data-v-a4dde5e7]{--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(51 51 51 / var(--un-border-right-opacity));--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(51 51 51 / var(--un-border-bottom-opacity))}table th[data-v-a4dde5e7]{position:sticky;top:0;z-index:1;min-width:200px;--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity));font-size:16px;line-height:24px}.dark table th[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}table th[data-v-a4dde5e7]:first-child{left:0;z-index:2;min-width:120px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cline x2='100%25' y2='100%25' stroke='%23ddd'/%3E%3C/svg%3E")}.dark table th[data-v-a4dde5e7]:first-child{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cline x2='100%25' y2='100%25' stroke='%23333'/%3E%3C/svg%3E")}table th:first-child .col[data-v-a4dde5e7]{position:absolute;top:4px;right:4px}table th:first-child .row[data-v-a4dde5e7]{position:absolute;bottom:4px;left:4px}table td[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));font-size:16px;line-height:24px}.dark table td[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}table td[data-v-a4dde5e7]:first-child{position:sticky;left:0;z-index:1;--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity))}.dark table td[data-v-a4dde5e7]:first-child{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}table td[data-v-a4dde5e7]:last-child{border-right-style:none}table tr:last-child td[data-v-a4dde5e7]{border-bottom-style:none} diff --git a/assets/schedule-DSaUVl66.css.br b/assets/schedule-DSaUVl66.css.br new file mode 100644 index 0000000..919be22 Binary files /dev/null and b/assets/schedule-DSaUVl66.css.br differ diff --git a/assets/schedule-DSaUVl66.css.gz b/assets/schedule-DSaUVl66.css.gz new file mode 100644 index 0000000..82c86a4 Binary files /dev/null and b/assets/schedule-DSaUVl66.css.gz differ diff --git a/assets/scroll-C6m3hgBj.js b/assets/scroll-C6m3hgBj.js new file mode 100644 index 0000000..bbf65e1 --- /dev/null +++ b/assets/scroll-C6m3hgBj.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as u}from"./index-DkxdnFkg.js";import{d,c as i,w as a,k as p,m,o,b as c,e as _,u as f,a as t,j as v,n as b,F as k,t as x}from"./index-DD358c5I.js";const g={class:"flex flex-col gap-4 p-4"},N=d({name:"FeatureStandardScroll",__name:"scroll",setup(B){const s=p();return(C,e)=>{const r=m("van-button"),l=u;return o(),i(l,{navbar:"","navbar-start-side":"back","saved-position":""},{"navbar-end":a(()=>[c(r,{size:"small",onClick:e[0]||(e[0]=n=>f(s).push("/feature/function/scroll2"))},{default:a(()=>e[1]||(e[1]=[_(" 下一页 ")])),_:1})]),default:a(()=>[t("div",g,[e[2]||(e[2]=t("div",null,"随意滚动当前页面到任意位置并点击右上角的「下一页」按钮,再次返回页面时会定位在离开时的位置。",-1)),e[3]||(e[3]=t("div",null,"注意:这个特性需要当前页面设置页面缓存,当前页面是否被缓存直接影响滚动位置是否会被记录。例如当前页面,只有在进入下一页时才会被缓存,返回上一页则不会。",-1)),(o(),v(k,null,b(50,n=>t("div",{key:n,class:"text-center"},x(n),1)),64))])]),_:1})}}});export{N as default}; diff --git a/assets/scroll-C6m3hgBj.js.br b/assets/scroll-C6m3hgBj.js.br new file mode 100644 index 0000000..11ca933 Binary files /dev/null and b/assets/scroll-C6m3hgBj.js.br differ diff --git a/assets/scroll-C6m3hgBj.js.gz b/assets/scroll-C6m3hgBj.js.gz new file mode 100644 index 0000000..836215a Binary files /dev/null and b/assets/scroll-C6m3hgBj.js.gz differ diff --git a/assets/scroll2-BTV6JlN9.js b/assets/scroll2-BTV6JlN9.js new file mode 100644 index 0000000..2080982 --- /dev/null +++ b/assets/scroll2-BTV6JlN9.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as r}from"./index-DkxdnFkg.js";import{d as u,c as l,w as o,k as _,m as p,o as c,a as t,b as d,e as m,u as i}from"./index-DD358c5I.js";const f={class:"flex flex-col gap-4 p-4"},g=u({__name:"scroll2",setup(v){const n=_();return(b,e)=>{const a=p("van-button"),s=r;return c(),l(s,{navbar:"","navbar-start-side":"back"},{default:o(()=>[t("div",f,[e[2]||(e[2]=t("div",null,"现在你可以返回上一页查看效果。",-1)),d(a,{onClick:e[0]||(e[0]=k=>i(n).back())},{default:o(()=>e[1]||(e[1]=[m(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/scroll2-BTV6JlN9.js.br b/assets/scroll2-BTV6JlN9.js.br new file mode 100644 index 0000000..6f7b46d Binary files /dev/null and b/assets/scroll2-BTV6JlN9.js.br differ diff --git a/assets/scroll2-BTV6JlN9.js.gz b/assets/scroll2-BTV6JlN9.js.gz new file mode 100644 index 0000000..53ad9e8 Binary files /dev/null and b/assets/scroll2-BTV6JlN9.js.gz differ diff --git a/assets/sparkline-demo-BLfZO1aJ.css b/assets/sparkline-demo-BLfZO1aJ.css new file mode 100644 index 0000000..ee382e4 --- /dev/null +++ b/assets/sparkline-demo-BLfZO1aJ.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +.sparkline[data-v-00e5a4a3]{position:relative}.sparkline[data-v-00e5a4a3] .sparkline--cursor{stroke:var(--43244542)}.sparkline[data-v-00e5a4a3] .sparkline--spot{fill:var(--66a22754);stroke:var(--66a22754)}.sparkline .tooltip[data-v-00e5a4a3]{position:absolute;z-index:9999;padding:min(.533vw,3.2px) min(1.333vw,8px);font-size:min(3.2vw,19.2px);color:#fff;white-space:nowrap;background:rgba(0,0,0,.7)} diff --git a/assets/sparkline-demo-BLfZO1aJ.css.br b/assets/sparkline-demo-BLfZO1aJ.css.br new file mode 100644 index 0000000..11f68e2 Binary files /dev/null and b/assets/sparkline-demo-BLfZO1aJ.css.br differ diff --git a/assets/sparkline-demo-BLfZO1aJ.css.gz b/assets/sparkline-demo-BLfZO1aJ.css.gz new file mode 100644 index 0000000..d854ff2 Binary files /dev/null and b/assets/sparkline-demo-BLfZO1aJ.css.gz differ diff --git a/assets/sparkline-demo-CSoPib9O.js b/assets/sparkline-demo-CSoPib9O.js new file mode 100644 index 0000000..f2fe939 --- /dev/null +++ b/assets/sparkline-demo-CSoPib9O.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as q}from"./index-DkxdnFkg.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{d as P,T as U,U as Z,r as E,h as G,o as C,j as A,V as J,W as K,u as i,X as Q,t as tt,p as et,z as ot,c as at,w as R,b as _}from"./index-DD358c5I.js";function W(t,e,o,a){return Number.parseFloat((e-a*e/t+o).toFixed(2))}function lt(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function st(t){return t.value}function k(t,e){const o=document.createElementNS("http://www.w3.org/2000/svg",t);for(const a in e)o.setAttribute(a,e[a]);return o}function nt(t,e,o){if(lt(t),e.length<=1)return;o=o||{},typeof e[0]=="number"&&(e=e.map(s=>({value:s})));const a=o.onmousemove,l=o.onmouseout,n="interactive"in o?o.interactive:!!a,f=o.spotRadius||2,u=f*2,V=o.cursorWidth||2,y=Number.parseFloat(t.attributes["stroke-width"].value),B=o.fetch||st,b=e.map(s=>B(s)),M=Number.parseFloat(t.attributes.width.value)-u*2,w=Number.parseFloat(t.attributes.height.value),N=w-y*2-u,D=Math.max(...b),c=-1e3,F=b.length-1,X=M/F,h=[],I=W(D,N,y+f,b[0]);let g=`M${u} ${I}`;b.forEach((s,d)=>{const r=d*X+u,p=W(D,N,y+f,s);h.push(Object.assign({},e[d],{index:d,x:r,y:p})),g+=` L ${r} ${p}`});const Y=k("path",{class:"sparkline--line",d:g,fill:"none"}),j=`${g} V ${w} L ${u} ${w} Z`,z=k("path",{class:"sparkline--fill",d:j,stroke:"none"});if(t.appendChild(z),t.appendChild(Y),!n)return;const m=k("line",{class:"sparkline--cursor",x1:c,x2:c,y1:0,y2:w,"stroke-width":V}),x=k("circle",{class:"sparkline--spot",cx:c,cy:c,r:f});t.appendChild(m),t.appendChild(x);const $=k("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild($),$.addEventListener("mouseout",s=>{m.setAttribute("x1",c.toString()),m.setAttribute("x2",c.toString()),x.setAttribute("cx",c.toString()),l&&l(s)}),$.addEventListener("mousemove",s=>{const d=s.offsetX;let r=h.find(T=>T.x>=d);r||(r=h[F]);const p=h[h.indexOf(r)-1];let v,L;p?(L=p.x+(r.x-p.x)/2,v=d>=L?r:p):v=r;const S=v.x,O=v.y;x.setAttribute("cx",S),x.setAttribute("cy",O),m.setAttribute("x1",S),m.setAttribute("x2",S),a&&a(s,v)})}const rt={class:"sparkline"},it=["width","height","stroke-width","stroke","fill"],ut=P({name:"Sparkline",__name:"index",props:{value:{},width:{default:100},height:{default:30},strokeWidth:{default:3},strokeColor:{default:"#dc2b33"},fillColor:{default:"transparent"},cursorColor:{default:"#dc2b33"},spotColor:{default:"#dc2b33"},tooltip:{type:Boolean,default:!1}},setup(t){U(l=>({43244542:l.cursorColor,"66a22754":l.spotColor}));const e=t,o=Z("sparklineRef"),a=E({show:!1,content:"",top:0,left:0});return G(()=>{nt(o.value,e.value,e.tooltip&&{onmousemove:(l,n)=>{a.value.show=!0,a.value.content=n.tooltip,a.value.top=l.offsetY,a.value.left=l.offsetX+20},onmouseout:()=>{a.value.show=!1}})}),(l,n)=>(C(),A("div",rt,[(C(),A("svg",{ref_key:"sparklineRef",ref:o,width:l.width,height:l.height,"stroke-width":l.strokeWidth,stroke:l.strokeColor,fill:l.fillColor},null,8,it)),l.tooltip?J((C(),A("span",{key:0,class:"tooltip",style:Q([`left: ${i(a).left}px`,`top: ${i(a).top}px`])},tt(i(a).content),5)),[[K,i(a).show]]):et("",!0)]))}}),ct=ot(ut,[["__scopeId","data-v-00e5a4a3"]]),ht=P({__name:"sparkline-demo",setup(t){const e=E([1,5,2,4,8,3,7]),o=E([{tooltip:"值:1",value:1},{tooltip:"值:3",value:3},{tooltip:"值:5",value:5},{tooltip:"值:8",value:8},{tooltip:"值:4",value:4},{tooltip:"值:6",value:6},{tooltip:"值:9",value:9}]);return(a,l)=>{const n=ct,f=H,u=q;return C(),at(u,{navbar:"","navbar-start-side":"back"},{default:R(()=>[_(f,null,{default:R(()=>[_(n,{value:i(e)},null,8,["value"]),_(n,{value:i(e),"stroke-color":"#409eff","fill-color":"#b3d8ff"},null,8,["value"]),_(n,{value:i(o),tooltip:""},null,8,["value"]),_(n,{value:i(o),tooltip:"","stroke-color":"#409eff","fill-color":"#b3d8ff","cursor-color":"#e6a23c","spot-color":"#909399"},null,8,["value"])]),_:1})]),_:1})}}});export{ht as default}; diff --git a/assets/sparkline-demo-CSoPib9O.js.br b/assets/sparkline-demo-CSoPib9O.js.br new file mode 100644 index 0000000..2cbdc94 Binary files /dev/null and b/assets/sparkline-demo-CSoPib9O.js.br differ diff --git a/assets/sparkline-demo-CSoPib9O.js.gz b/assets/sparkline-demo-CSoPib9O.js.gz new file mode 100644 index 0000000..b308972 Binary files /dev/null and b/assets/sparkline-demo-CSoPib9O.js.gz differ diff --git a/assets/swiper-CJ0otCO6.js b/assets/swiper-CJ0otCO6.js new file mode 100644 index 0000000..cebdf2e --- /dev/null +++ b/assets/swiper-CJ0otCO6.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as Qe}from"./index-DkxdnFkg.js";import{_ as et}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{r as H,ax as ke,ay as Ne,a0 as tt,Z as it,h as _e,az as $e,aA as W,aB as st,O as nt,d as rt,c as at,w as I,m as Ie,o as lt,a as re,b as O,e as D,u as z,i as ot,_ as dt,z as ut}from"./index-DD358c5I.js";function Oe(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Pe(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Oe(e[i])&&Oe(t[i])&&Object.keys(e[i]).length>0&&Pe(t[i],e[i])})}const Ve={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function X(){const t=typeof document<"u"?document:{};return Pe(t,Ve),t}const ft={document:Ve,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function j(){const t=typeof window<"u"?window:{};return Pe(t,ft),t}function Q(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function ct(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ce(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function pe(){return Date.now()}function pt(t){const e=j();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function mt(t,e){e===void 0&&(e="x");const i=j();let s,n,r;const l=pt(t);return i.WebKitCSSMatrix?(n=l.transform||l.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix(n==="none"?"":n)):(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function de(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function gt(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function q(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(r)<0);for(let r=0,l=n.length;rr?"next":"prev",d=(v,m)=>c==="next"&&v>=m||c==="prev"&&v<=m,u=()=>{o=new Date().getTime(),l===null&&(l=o);const v=Math.max(Math.min((o-l)/a,1),0),m=.5-Math.cos(v*Math.PI)/2;let g=r+m*(i-r);if(d(g,i)&&(g=i),e.wrapperEl.scrollTo({[s]:g}),d(g,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:g})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(u)};u()}function Y(t,e){e===void 0&&(e="");const i=[...t.children];return t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(s=>s.matches(e)):i}function vt(t,e){const i=e.contains(t);return!i&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(t):i}function me(t){try{console.warn(t);return}catch{}}function ne(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Q(e)),i}function ht(t){const e=j(),i=X(),s=t.getBoundingClientRect(),n=i.body,r=t.clientTop||n.clientTop||0,l=t.clientLeft||n.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:s.top+o-r,left:s.left+a-l}}function wt(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function St(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function ee(t,e){return j().getComputedStyle(t,null).getPropertyValue(e)}function ae(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fe(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function Te(t,e,i){const s=j();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function V(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Me(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&i.auto===!0){let r=Y(t.el,`.${s[n]}`)[0];r||(r=ne("div",s[n]),r.className=s[n],t.el.append(r)),i[n]=r,e[n]=r}}),i}function bt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function r(g){let h;return g&&typeof g=="string"&&e.isElement&&(h=e.el.querySelector(g)||e.hostEl.querySelector(g),h)?h:(g&&(typeof g=="string"&&(h=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&h&&h.length>1&&e.el.querySelectorAll(g).length===1?h=e.el.querySelector(g):h&&h.length===1&&(h=h[0])),g&&!h?g:h)}function l(g,h){const M=e.params.navigation;g=V(g),g.forEach(b=>{b&&(b.classList[h?"add":"remove"](...M.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=h),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](M.lockClass))})}function o(){const{nextEl:g,prevEl:h}=e.navigation;if(e.params.loop){l(h,!1),l(g,!1);return}l(h,e.isBeginning&&!e.params.rewind),l(g,e.isEnd&&!e.params.rewind)}function a(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function c(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function d(){const g=e.params.navigation;if(e.params.navigation=Me(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let h=r(g.nextEl),M=r(g.prevEl);Object.assign(e.navigation,{nextEl:h,prevEl:M}),h=V(h),M=V(M);const b=(f,p)=>{f&&f.addEventListener("click",p==="next"?c:a),!e.enabled&&f&&f.classList.add(...g.lockClass.split(" "))};h.forEach(f=>b(f,"next")),M.forEach(f=>b(f,"prev"))}function u(){let{nextEl:g,prevEl:h}=e.navigation;g=V(g),h=V(h);const M=(b,f)=>{b.removeEventListener("click",f==="next"?c:a),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(b=>M(b,"next")),h.forEach(b=>M(b,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?m():(d(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{u()}),s("enable disable",()=>{let{nextEl:g,prevEl:h}=e.navigation;if(g=V(g),h=V(h),e.enabled){o();return}[...g,...h].filter(M=>!!M).forEach(M=>M.classList.add(e.params.navigation.lockClass))}),s("click",(g,h)=>{let{nextEl:M,prevEl:b}=e.navigation;M=V(M),b=V(b);const f=h.target;let p=b.includes(f)||M.includes(f);if(e.isElement&&!p){const S=h.path||h.composedPath&&h.composedPath();S&&(p=S.find(y=>M.includes(y)||b.includes(y)))}if(e.params.navigation.hideOnClick&&!p){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===f||e.pagination.el.contains(f)))return;let S;M.length?S=M[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(S=b[0].classList.contains(e.params.navigation.hiddenClass)),n(S===!0?"navigationShow":"navigationHide"),[...M,...b].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),o()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:v,disable:m,update:o,init:d,destroy:u})}function K(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function yt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:f=>f,formatFractionTotal:f=>f,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,bullets:[]};let l,o=0;function a(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(f,p){const{bulletActiveClass:S}=e.params.pagination;f&&(f=f[`${p==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${S}-${p}`),f=f[`${p==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${S}-${p}-${p}`)))}function d(f,p,S){if(f=f%S,p=p%S,p===f+1)return"next";if(p===f-1)return"previous"}function u(f){const p=f.target.closest(K(e.params.pagination.bulletClass));if(!p)return;f.preventDefault();const S=ae(p)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===S)return;const y=d(e.realIndex,S,e.slides.length);y==="next"?e.slideNext():y==="previous"?e.slidePrev():e.slideToLoop(S)}else e.slideTo(S)}function v(){const f=e.rtl,p=e.params.pagination;if(a())return;let S=e.pagination.el;S=V(S);let y,G;const R=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,N=e.params.loop?Math.ceil(R/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(G=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(y=e.snapIndex,G=e.previousSnapIndex):(G=e.previousIndex||0,y=e.activeIndex||0),p.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const T=e.pagination.bullets;let C,A,E;if(p.dynamicBullets&&(l=Te(T[0],e.isHorizontal()?"width":"height"),S.forEach(x=>{x.style[e.isHorizontal()?"width":"height"]=`${l*(p.dynamicMainBullets+4)}px`}),p.dynamicMainBullets>1&&G!==void 0&&(o+=y-(G||0),o>p.dynamicMainBullets-1?o=p.dynamicMainBullets-1:o<0&&(o=0)),C=Math.max(y-o,0),A=C+(Math.min(T.length,p.dynamicMainBullets)-1),E=(A+C)/2),T.forEach(x=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(B=>`${p.bulletActiveClass}${B}`)].map(B=>typeof B=="string"&&B.includes(" ")?B.split(" "):B).flat();x.classList.remove(...P)}),S.length>1)T.forEach(x=>{const P=ae(x);P===y?x.classList.add(...p.bulletActiveClass.split(" ")):e.isElement&&x.setAttribute("part","bullet"),p.dynamicBullets&&(P>=C&&P<=A&&x.classList.add(...`${p.bulletActiveClass}-main`.split(" ")),P===C&&c(x,"prev"),P===A&&c(x,"next"))});else{const x=T[y];if(x&&x.classList.add(...p.bulletActiveClass.split(" ")),e.isElement&&T.forEach((P,B)=>{P.setAttribute("part",B===y?"bullet-active":"bullet")}),p.dynamicBullets){const P=T[C],B=T[A];for(let $=C;$<=A;$+=1)T[$]&&T[$].classList.add(...`${p.bulletActiveClass}-main`.split(" "));c(P,"prev"),c(B,"next")}}if(p.dynamicBullets){const x=Math.min(T.length,p.dynamicMainBullets+4),P=(l*x-l)/2-E*l,B=f?"right":"left";T.forEach($=>{$.style[e.isHorizontal()?B:"top"]=`${P}px`})}}S.forEach((T,C)=>{if(p.type==="fraction"&&(T.querySelectorAll(K(p.currentClass)).forEach(A=>{A.textContent=p.formatFractionCurrent(y+1)}),T.querySelectorAll(K(p.totalClass)).forEach(A=>{A.textContent=p.formatFractionTotal(N)})),p.type==="progressbar"){let A;p.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const E=(y+1)/N;let x=1,P=1;A==="horizontal"?x=E:P=E,T.querySelectorAll(K(p.progressbarFillClass)).forEach(B=>{B.style.transform=`translate3d(0,0,0) scaleX(${x}) scaleY(${P})`,B.style.transitionDuration=`${e.params.speed}ms`})}p.type==="custom"&&p.renderCustom?(T.innerHTML=p.renderCustom(e,y+1,N),C===0&&n("paginationRender",T)):(C===0&&n("paginationRender",T),n("paginationUpdate",T)),e.params.watchOverflow&&e.enabled&&T.classList[e.isLocked?"add":"remove"](p.lockClass)})}function m(){const f=e.params.pagination;if(a())return;const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let S=e.pagination.el;S=V(S);let y="";if(f.type==="bullets"){let G=e.params.loop?Math.ceil(p/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&G>p&&(G=p);for(let R=0;R`}f.type==="fraction"&&(f.renderFraction?y=f.renderFraction.call(e,f.currentClass,f.totalClass):y=` / `),f.type==="progressbar"&&(f.renderProgressbar?y=f.renderProgressbar.call(e,f.progressbarFillClass):y=``),e.pagination.bullets=[],S.forEach(G=>{f.type!=="custom"&&(G.innerHTML=y||""),f.type==="bullets"&&e.pagination.bullets.push(...G.querySelectorAll(K(f.bulletClass)))}),f.type!=="custom"&&n("paginationRender",S[0])}function g(){e.params.pagination=Me(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const f=e.params.pagination;if(!f.el)return;let p;typeof f.el=="string"&&e.isElement&&(p=e.el.querySelector(f.el)),!p&&typeof f.el=="string"&&(p=[...document.querySelectorAll(f.el)]),p||(p=f.el),!(!p||p.length===0)&&(e.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(p)&&p.length>1&&(p=[...e.el.querySelectorAll(f.el)],p.length>1&&(p=p.filter(S=>Fe(S,".swiper")[0]===e.el)[0])),Array.isArray(p)&&p.length===1&&(p=p[0]),Object.assign(e.pagination,{el:p}),p=V(p),p.forEach(S=>{f.type==="bullets"&&f.clickable&&S.classList.add(...(f.clickableClass||"").split(" ")),S.classList.add(f.modifierClass+f.type),S.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(S.classList.add(`${f.modifierClass}${f.type}-dynamic`),o=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&S.classList.add(f.progressbarOppositeClass),f.clickable&&S.addEventListener("click",u),e.enabled||S.classList.add(f.lockClass)}))}function h(){const f=e.params.pagination;if(a())return;let p=e.pagination.el;p&&(p=V(p),p.forEach(S=>{S.classList.remove(f.hiddenClass),S.classList.remove(f.modifierClass+f.type),S.classList.remove(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(S.classList.remove(...(f.clickableClass||"").split(" ")),S.removeEventListener("click",u))})),e.pagination.bullets&&e.pagination.bullets.forEach(S=>S.classList.remove(...f.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const f=e.params.pagination;let{el:p}=e.pagination;p=V(p),p.forEach(S=>{S.classList.remove(f.horizontalClass,f.verticalClass),S.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?b():(g(),m(),v())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&v()}),s("snapIndexChange",()=>{v()}),s("snapGridLengthChange",()=>{m(),v()}),s("destroy",()=>{h()}),s("enable disable",()=>{let{el:f}=e.pagination;f&&(f=V(f),f.forEach(p=>p.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{v()}),s("click",(f,p)=>{const S=p.target,y=V(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!S.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&S===e.navigation.nextEl||e.navigation.prevEl&&S===e.navigation.prevEl))return;const G=y[0].classList.contains(e.params.pagination.hiddenClass);n(G===!0?"paginationShow":"paginationHide"),y.forEach(R=>R.classList.toggle(e.params.pagination.hiddenClass))}});const M=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=V(f),f.forEach(p=>p.classList.remove(e.params.pagination.paginationDisabledClass))),g(),m(),v()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=V(f),f.forEach(p=>p.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:M,disable:b,render:m,update:v,init:g,destroy:h})}function xt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=X();let l=!1,o=null,a=null,c,d,u,v;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:E,rtlTranslate:x}=e,{dragEl:P,el:B}=E,$=e.params.scrollbar,w=e.params.loop?e.progressLoop:e.progress;let L=d,_=(u-d)*w;x?(_=-_,_>0?(L=d-_,_=0):-_+d>u&&(L=u+_)):_<0?(L=d+_,_=0):_+d>u&&(L=u-_),e.isHorizontal()?(P.style.transform=`translate3d(${_}px, 0, 0)`,P.style.width=`${L}px`):(P.style.transform=`translate3d(0px, ${_}px, 0)`,P.style.height=`${L}px`),$.hide&&(clearTimeout(o),B.style.opacity=1,o=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function g(E){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${E}ms`)}function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:E}=e,{dragEl:x,el:P}=E;x.style.width="",x.style.height="",u=e.isHorizontal()?P.offsetWidth:P.offsetHeight,v=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=u*v:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?x.style.width=`${d}px`:x.style.height=`${d}px`,v>=1?P.style.display="none":P.style.display="",e.params.scrollbar.hide&&(P.style.opacity=0),e.params.watchOverflow&&e.enabled&&E.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function M(E){return e.isHorizontal()?E.clientX:E.clientY}function b(E){const{scrollbar:x,rtlTranslate:P}=e,{el:B}=x;let $;$=(M(E)-ht(B)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(u-d),$=Math.max(Math.min($,1),0),P&&($=1-$);const w=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*$;e.updateProgress(w),e.setTranslate(w),e.updateActiveIndex(),e.updateSlidesClasses()}function f(E){const x=e.params.scrollbar,{scrollbar:P,wrapperEl:B}=e,{el:$,dragEl:w}=P;l=!0,c=E.target===w?M(E)-E.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,E.preventDefault(),E.stopPropagation(),B.style.transitionDuration="100ms",w.style.transitionDuration="100ms",b(E),clearTimeout(a),$.style.transitionDuration="0ms",x.hide&&($.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",E)}function p(E){const{scrollbar:x,wrapperEl:P}=e,{el:B,dragEl:$}=x;l&&(E.preventDefault&&E.cancelable?E.preventDefault():E.returnValue=!1,b(E),P.style.transitionDuration="0ms",B.style.transitionDuration="0ms",$.style.transitionDuration="0ms",n("scrollbarDragMove",E))}function S(E){const x=e.params.scrollbar,{scrollbar:P,wrapperEl:B}=e,{el:$}=P;l&&(l=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),x.hide&&(clearTimeout(a),a=ce(()=>{$.style.opacity=0,$.style.transitionDuration="400ms"},1e3)),n("scrollbarDragEnd",E),x.snapOnRelease&&e.slideToClosest())}function y(E){const{scrollbar:x,params:P}=e,B=x.el;if(!B)return;const $=B,w=P.passiveListeners?{passive:!1,capture:!1}:!1,L=P.passiveListeners?{passive:!0,capture:!1}:!1;if(!$)return;const _=E==="on"?"addEventListener":"removeEventListener";$[_]("pointerdown",f,w),r[_]("pointermove",p,w),r[_]("pointerup",S,L)}function G(){!e.params.scrollbar.el||!e.scrollbar.el||y("on")}function R(){!e.params.scrollbar.el||!e.scrollbar.el||y("off")}function N(){const{scrollbar:E,el:x}=e;e.params.scrollbar=Me(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const P=e.params.scrollbar;if(!P.el)return;let B;if(typeof P.el=="string"&&e.isElement&&(B=e.el.querySelector(P.el)),!B&&typeof P.el=="string"){if(B=r.querySelectorAll(P.el),!B.length)return}else B||(B=P.el);e.params.uniqueNavElements&&typeof P.el=="string"&&B.length>1&&x.querySelectorAll(P.el).length===1&&(B=x.querySelector(P.el)),B.length>0&&(B=B[0]),B.classList.add(e.isHorizontal()?P.horizontalClass:P.verticalClass);let $;B&&($=B.querySelector(K(e.params.scrollbar.dragClass)),$||($=ne("div",e.params.scrollbar.dragClass),B.append($))),Object.assign(E,{el:B,dragEl:$}),P.draggable&&G(),B&&B.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}function T(){const E=e.params.scrollbar,x=e.scrollbar.el;x&&x.classList.remove(...Q(e.isHorizontal()?E.horizontalClass:E.verticalClass)),R()}s("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const E=e.params.scrollbar;let{el:x}=e.scrollbar;x=V(x),x.forEach(P=>{P.classList.remove(E.horizontalClass,E.verticalClass),P.classList.add(e.isHorizontal()?E.horizontalClass:E.verticalClass)})}),s("init",()=>{e.params.scrollbar.enabled===!1?A():(N(),h(),m())}),s("update resize observerUpdate lock unlock changeDirection",()=>{h()}),s("setTranslate",()=>{m()}),s("setTransition",(E,x)=>{g(x)}),s("enable disable",()=>{const{el:E}=e.scrollbar;E&&E.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}),s("destroy",()=>{T()});const C=()=>{e.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),N(),h(),m()},A=()=>{e.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:C,disable:A,updateSize:h,setTranslate:m,init:N,destroy:T})}function Tt(t){let{swiper:e,extendParams:i,on:s}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let n=null,r,l,o=new Date().getTime();function a(w){const L=n;L.length!==0&&(L.innerHTML="",L.innerHTML=w)}function c(w){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(w).replace(/x/g,L)}function d(w){w=V(w),w.forEach(L=>{L.setAttribute("tabIndex","0")})}function u(w){w=V(w),w.forEach(L=>{L.setAttribute("tabIndex","-1")})}function v(w,L){w=V(w),w.forEach(_=>{_.setAttribute("role",L)})}function m(w,L){w=V(w),w.forEach(_=>{_.setAttribute("aria-roledescription",L)})}function g(w,L){w=V(w),w.forEach(_=>{_.setAttribute("aria-controls",L)})}function h(w,L){w=V(w),w.forEach(_=>{_.setAttribute("aria-label",L)})}function M(w,L){w=V(w),w.forEach(_=>{_.setAttribute("id",L)})}function b(w,L){w=V(w),w.forEach(_=>{_.setAttribute("aria-live",L)})}function f(w){w=V(w),w.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function p(w){w=V(w),w.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function S(w){if(w.keyCode!==13&&w.keyCode!==32)return;const L=e.params.a11y,_=w.target;if(!(e.pagination&&e.pagination.el&&(_===e.pagination.el||e.pagination.el.contains(w.target))&&!w.target.matches(K(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const F=V(e.navigation.prevEl);V(e.navigation.nextEl).includes(_)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?a(L.lastSlideMessage):a(L.nextSlideMessage)),F.includes(_)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?a(L.firstSlideMessage):a(L.prevSlideMessage))}e.pagination&&_.matches(K(e.params.pagination.bulletClass))&&_.click()}}function y(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:w,prevEl:L}=e.navigation;L&&(e.isBeginning?(f(L),u(L)):(p(L),d(L))),w&&(e.isEnd?(f(w),u(w)):(p(w),d(w)))}function G(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function R(){return G()&&e.params.pagination.clickable}function N(){const w=e.params.a11y;G()&&e.pagination.bullets.forEach(L=>{e.params.pagination.clickable&&(d(L),e.params.pagination.renderBullet||(v(L,"button"),h(L,w.paginationBulletMessage.replace(/\{\{index\}\}/,ae(L)+1)))),L.matches(K(e.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const T=(w,L,_)=>{d(w),w.tagName!=="BUTTON"&&(v(w,"button"),w.addEventListener("keydown",S)),h(w,_),g(w,L)},C=w=>{l&&l!==w.target&&!l.contains(w.target)&&(r=!0),e.a11y.clicked=!0},A=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},E=w=>{o=new Date().getTime()},x=w=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const L=w.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!L||!e.slides.includes(L))return;l=L;const _=e.slides.indexOf(L)===e.activeIndex,F=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(L);_||F||w.sourceCapabilities&&w.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(parseInt(L.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(L),0),r=!1)}))},P=()=>{const w=e.params.a11y;w.itemRoleDescriptionMessage&&m(e.slides,w.itemRoleDescriptionMessage),w.slideRole&&v(e.slides,w.slideRole);const L=e.slides.length;w.slideLabelMessage&&e.slides.forEach((_,F)=>{const Z=e.params.loop?parseInt(_.getAttribute("data-swiper-slide-index"),10):F,J=w.slideLabelMessage.replace(/\{\{index\}\}/,Z+1).replace(/\{\{slidesLength\}\}/,L);h(_,J)})},B=()=>{const w=e.params.a11y;e.el.append(n);const L=e.el;w.containerRoleDescriptionMessage&&m(L,w.containerRoleDescriptionMessage),w.containerMessage&&h(L,w.containerMessage),w.containerRole&&v(L,w.containerRole);const _=e.wrapperEl,F=w.id||_.getAttribute("id")||`swiper-wrapper-${c(16)}`,Z=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";M(_,F),b(_,Z),P();let{nextEl:J,prevEl:le}=e.navigation?e.navigation:{};J=V(J),le=V(le),J&&J.forEach(oe=>T(oe,F,w.nextSlideMessage)),le&&le.forEach(oe=>T(oe,F,w.prevSlideMessage)),R()&&V(e.pagination.el).forEach(Je=>{Je.addEventListener("keydown",S)}),X().addEventListener("visibilitychange",E),e.el.addEventListener("focus",x,!0),e.el.addEventListener("focus",x,!0),e.el.addEventListener("pointerdown",C,!0),e.el.addEventListener("pointerup",A,!0)};function $(){n&&n.remove();let{nextEl:w,prevEl:L}=e.navigation?e.navigation:{};w=V(w),L=V(L),w&&w.forEach(F=>F.removeEventListener("keydown",S)),L&&L.forEach(F=>F.removeEventListener("keydown",S)),R()&&V(e.pagination.el).forEach(Z=>{Z.removeEventListener("keydown",S)}),X().removeEventListener("visibilitychange",E),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",x,!0),e.el.removeEventListener("pointerdown",C,!0),e.el.removeEventListener("pointerup",A,!0))}s("beforeInit",()=>{n=ne("span",e.params.a11y.notificationClass),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true")}),s("afterInit",()=>{e.params.a11y.enabled&&B()}),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&P()}),s("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&y()}),s("paginationUpdate",()=>{e.params.a11y.enabled&&N()}),s("destroy",()=>{e.params.a11y.enabled&&$()})}let ge;function Et(){const t=j(),e=X();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function He(){return ge||(ge=Et()),ge}let ve;function Ct(t){let{userAgent:e}=t===void 0?{}:t;const i=He(),s=j(),n=s.navigator.platform,r=e||s.navigator.userAgent,l={ios:!1,android:!1},o=s.screen.width,a=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),v=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=n==="Win32";let g=n==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&i.touch&&h.indexOf(`${o}x${a}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),c&&!m&&(l.os="android",l.android=!0),(d||v||u)&&(l.os="ios",l.ios=!0),l}function je(t){return t===void 0&&(t={}),ve||(ve=Ct(t)),ve}let he;function Pt(){const t=j(),e=je();let i=!1;function s(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[a,c]=o.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=a<16||a===16&&c<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s(),l=r||n&&e.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:l,isWebView:n}}function Mt(){return he||(he=Pt()),he}function Lt(t){let{swiper:e,on:i,emit:s}=t;const n=j();let r=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(u=>{l=n.requestAnimationFrame(()=>{const{width:v,height:m}=e;let g=v,h=m;u.forEach(M=>{let{contentBoxSize:b,contentRect:f,target:p}=M;p&&p!==e.el||(g=f?f.width:(b[0]||b).inlineSize,h=f?f.height:(b[0]||b).blockSize)}),(g!==v||h!==m)&&o()})}),r.observe(e.el))},c=()=>{l&&n.cancelAnimationFrame(l),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){a();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",d)}),i("destroy",()=>{c(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",d)})}function It(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const r=[],l=j(),o=function(d,u){u===void 0&&(u={});const v=l.MutationObserver||l.WebkitMutationObserver,m=new v(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const h=function(){n("observerUpdate",g[0])};l.requestAnimationFrame?l.requestAnimationFrame(h):l.setTimeout(h,0)});m.observe(d,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:e.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),r.push(m)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fe(e.hostEl);for(let u=0;u{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",c)}var Ot={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,l=new Array(r),o=0;o=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(r,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,r=new Array(n),l=0;l{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(s,i)})}),t}};function zt(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ee(s,"padding-left")||0,10)-parseInt(ee(s,"padding-right")||0,10),i=i-parseInt(ee(s,"padding-top")||0,10)-parseInt(ee(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function At(){const t=this;function e(C,A){return parseFloat(C.getPropertyValue(t.getDirectionLabel(A))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:l,wrongRTL:o}=t,a=t.virtual&&i.virtual.enabled,c=a?t.virtual.slides.length:t.slides.length,d=Y(n,`.${t.params.slideClass}, swiper-slide`),u=a?t.virtual.slides.length:d.length;let v=[];const m=[],g=[];let h=i.slidesOffsetBefore;typeof h=="function"&&(h=i.slidesOffsetBefore.call(t));let M=i.slidesOffsetAfter;typeof M=="function"&&(M=i.slidesOffsetAfter.call(t));const b=t.snapGrid.length,f=t.slidesGrid.length;let p=i.spaceBetween,S=-h,y=0,G=0;if(typeof r>"u")return;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*r:typeof p=="string"&&(p=parseFloat(p)),t.virtualSize=-p,d.forEach(C=>{l?C.style.marginLeft="":C.style.marginRight="",C.style.marginBottom="",C.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(ue(s,"--swiper-centered-offset-before",""),ue(s,"--swiper-centered-offset-after",""));const R=i.grid&&i.grid.rows>1&&t.grid;R?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let N;const T=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(C=>typeof i.breakpoints[C].slidesPerView<"u").length>0;for(let C=0;C1&&v.push(t.virtualSize-r)}if(a&&i.loop){const C=g[0]+p;if(i.slidesPerGroup>1){const A=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),E=C*i.slidesPerGroup;for(let x=0;x!i.cssMode||i.loop?!0:E!==d.length-1).forEach(A=>{A.style[C]=`${p}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let C=0;g.forEach(E=>{C+=E+(p||0)}),C-=p;const A=C>r?C-r:0;v=v.map(E=>E<=0?-h:E>A?A+M:E)}if(i.centerInsufficientSlides){let C=0;g.forEach(E=>{C+=E+(p||0)}),C-=p;const A=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(C+A{v[P]=x-E}),m.forEach((x,P)=>{m[P]=x+E})}}if(Object.assign(t,{slides:d,snapGrid:v,slidesGrid:m,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ue(s,"--swiper-centered-offset-before",`${-v[0]}px`),ue(s,"--swiper-centered-offset-after",`${t.size/2-g[g.length-1]/2}px`);const C=-t.snapGrid[0],A=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(E=>E+C),t.slidesGrid=t.slidesGrid.map(E=>E+A)}if(u!==c&&t.emit("slidesLengthChange"),v.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==f&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const C=`${i.containerModifierClass}backface-hidden`,A=t.el.classList.contains(C);u<=i.maxBackfaceHiddenSlides?A||t.el.classList.add(C):A&&t.el.classList.remove(C)}}function Bt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const l=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{i.push(o)});else for(r=0;re.slides.length&&!s)break;i.push(l(o))}else i.push(l(e.activeIndex));for(r=0;rn?o:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Dt(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Gt(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:r}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-t;n&&(l=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let a=0;a=0&&m<=e.size-e.slidesSizesGrid[a],M=m>=0&&m1&&g<=e.size||m<=0&&g>=e.size;M&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a)),ze(c,M,i.slideVisibleClass),ze(c,h,i.slideFullyVisibleClass),c.progress=n?-u:u,c.originalProgress=n?-v:v}}function kt(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:l,progressLoop:o}=e;const a=r,c=l;if(s===0)n=0,r=!0,l=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,u=Math.abs(t-e.maxTranslate())<1;r=d||n<=0,l=u||n>=1,d&&(n=0),u&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),u=e.getSlideIndexByData(e.slides.length-1),v=e.slidesGrid[d],m=e.slidesGrid[u],g=e.slidesGrid[e.slidesGrid.length-1],h=Math.abs(t);h>=v?o=(h-v)/g:o=(h+g-m)/g,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:r,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!a&&e.emit("reachBeginning toEdge"),l&&!c&&e.emit("reachEnd toEdge"),(a&&!r||c&&!l)&&e.emit("fromEdge"),e.emit("progress",n)}const we=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nt(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,r=t.virtual&&i.virtual.enabled,l=t.grid&&i.grid&&i.grid.rows>1,o=u=>Y(s,`.${i.slideClass}${u}, swiper-slide${u}`)[0];let a,c,d;if(r)if(i.loop){let u=n-t.virtual.slidesBefore;u<0&&(u=t.virtual.slides.length+u),u>=t.virtual.slides.length&&(u-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${u}"]`)}else a=o(`[data-swiper-slide-index="${n}"]`);else l?(a=e.filter(u=>u.column===n)[0],d=e.filter(u=>u.column===n+1)[0],c=e.filter(u=>u.column===n-1)[0]):a=e[n];a&&(l||(d=St(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=wt(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(u=>{we(u,u===a,i.slideActiveClass),we(u,u===d,i.slideNextClass),we(u,u===c,i.slidePrevClass)}),t.emitSlidesClasses()}const fe=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},Se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Ee=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const l=n,o=[l-e];o.push(...Array.from({length:e}).map((a,c)=>l+s+c)),t.slides.forEach((a,c)=>{o.includes(a.column)&&Se(t,c)});return}const r=n+s-1;if(t.params.rewind||t.params.loop)for(let l=n-e;l<=r+e;l+=1){const o=(l%i+i)%i;(or)&&Se(t,o)}else for(let l=Math.max(n-e,0);l<=Math.min(r+e,i-1);l+=1)l!==n&&(l>r||l=e[r]&&s=e[r]&&s=e[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function $t(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:l,snapIndex:o}=e;let a=t,c;const d=m=>{let g=m-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof a>"u"&&(a=_t(e)),s.indexOf(i)>=0)c=s.indexOf(i);else{const m=Math.min(n.slidesPerGroupSkip,a);c=m+Math.floor((a-m)/n.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===r&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(a===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const u=e.grid&&n.grid&&n.grid.rows>1;let v;if(e.virtual&&n.virtual.enabled&&n.loop)v=d(a);else if(u){const m=e.slides.filter(h=>h.column===a)[0];let g=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(m),0)),v=Math.floor(g/n.grid.rows)}else if(e.slides[a]){const m=e.slides[a].getAttribute("data-swiper-slide-index");m?v=parseInt(m,10):v=a}else v=a;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:l,realIndex:v,previousIndex:r,activeIndex:a}),e.initialized&&Ee(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==v&&e.emit("realIndexChange"),e.emit("slideChange"))}function Vt(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!n&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(n=o)});let r=!1,l;if(n){for(let o=0;oa?d=a:s&&tl?o="next":r"u"&&(e=r.params.speed);const h=Math.min(r.params.slidesPerGroupSkip,l);let M=h+Math.floor((l-h)/r.params.slidesPerGroup);M>=a.length&&(M=a.length-1);const b=-a[M];if(o.normalizeSlideIndex)for(let y=0;y=R&&G=R&&G=R&&(l=y)}if(r.initialized&&l!==u&&(!r.allowSlideNext&&(v?b>r.translate&&b>r.minTranslate():br.translate&&b>r.maxTranslate()&&(u||0)!==l))return!1;l!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(b);let f;l>u?f="next":l0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[y?"scrollLeft":"scrollTop"]=G})):m[y?"scrollLeft":"scrollTop"]=G,p&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Re({swiper:r,targetPosition:G,side:y?"left":"top"}),!0;m.scrollTo({[y?"left":"top"]:G,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(b),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(i,f),e===0?r.transitionEnd(i,f):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(G){!r||r.destroyed||G.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,f))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Qt(t,e,i,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let l=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)l=l+n.virtual.slidesBefore;else{let o;if(r){const v=l*n.params.grid.rows;o=n.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===v)[0].column}else o=n.getSlideIndexByData(l);const a=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:c}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let u=a-om.getAttribute("data-swiper-slide-index")*1===v)[0].column}else l=n.getSlideIndexByData(l)}return requestAnimationFrame(()=>{n.slideTo(l,e,i,s)}),n}function ei(t,e,i){e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:l}=s;if(!n||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let o=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex{s.slideTo(s.activeIndex+a,t,e,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+a,t,e,i)}function ti(t,e,i){e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:l,rtlTranslate:o,enabled:a,animating:c}=s;if(!a||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const u=o?s.translate:-s.translate;function v(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const m=v(u),g=r.map(b=>v(b));let h=r[g.indexOf(m)-1];if(typeof h>"u"&&n.cssMode){let b;r.forEach((f,p)=>{m>=f&&(b=p)}),typeof b<"u"&&(h=r[b>0?b-1:b])}let M=0;if(typeof h<"u"&&(M=l.indexOf(h),M<0&&(M=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(M=M-s.slidesPerViewDynamic("previous",!0)+1,M=Math.max(M,0))),n.rewind&&s.isBeginning){const b=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(b,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(M,t,e,i)}),!0;return s.slideTo(M,t,e,i)}function ii(t,e,i){e===void 0&&(e=!0);const s=this;if(!s.destroyed)return typeof t>"u"&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,i)}function si(t,e,i,s){e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);let r=n.activeIndex;const l=Math.min(n.params.slidesPerGroupSkip,r),o=l+Math.floor((r-l)/n.params.slidesPerGroup),a=n.rtlTranslate?n.translate:-n.translate;if(a>=n.snapGrid[o]){const c=n.snapGrid[o],d=n.snapGrid[o+1];a-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{const c=n.snapGrid[o-1],d=n.snapGrid[o];a-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)}function ni(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,r;const l=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(Y(i,`${l}[data-swiper-slide-index="${r}"]`)[0]),ce(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(Y(i,`${l}[data-swiper-slide-index="${r}"]`)[0]),ce(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var ri={slideTo:Jt,slideToLoop:Qt,slideNext:ei,slidePrev:ti,slideReset:ii,slideToClosest:si,slideToClickedSlide:ni};function ai(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{Y(s,`.${i.slideClass}, swiper-slide`).forEach((u,v)=>{u.setAttribute("data-swiper-slide-index",v)})},r=e.grid&&i.grid&&i.grid.rows>1,l=i.slidesPerGroup*(r?i.grid.rows:1),o=e.slides.length%l!==0,a=r&&e.slides.length%i.grid.rows!==0,c=d=>{for(let u=0;u1;c.length"u"?r=a.getSlideIndex(c.filter(x=>x.classList.contains(m.slideActiveClass))[0]):y=r;const G=s==="next"||!s,R=s==="prev"||!s;let N=0,T=0;const C=f?Math.ceil(c.length/m.grid.rows):c.length,E=(f?c[r].column:r)+(g&&typeof n>"u"?-h/2+.5:0);if(E=0;$-=1)c[$].column===B&&p.push($)}else p.push(C-P-1)}}else if(E+h>C-b){T=Math.max(E-(C-b*2),M);for(let x=0;x{B.column===P&&S.push($)}):S.push(P)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),R&&p.forEach(x=>{c[x].swiperLoopMoveDOM=!0,v.prepend(c[x]),c[x].swiperLoopMoveDOM=!1}),G&&S.forEach(x=>{c[x].swiperLoopMoveDOM=!0,v.append(c[x]),c[x].swiperLoopMoveDOM=!1}),a.recalcSlides(),m.slidesPerView==="auto"?a.updateSlides():f&&(p.length>0&&R||S.length>0&&G)&&a.slides.forEach((x,P)=>{a.grid.updateSlide(P,x,a.slides)}),m.watchSlidesProgress&&a.updateSlidesOffset(),i){if(p.length>0&&R){if(typeof e>"u"){const x=a.slidesGrid[y],B=a.slidesGrid[y+N]-x;o?a.setTranslate(a.translate-B):(a.slideTo(y+Math.ceil(N),0,!1,!0),n&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else if(n){const x=f?p.length/m.grid.rows:p.length;a.slideTo(a.activeIndex+x,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(S.length>0&&G)if(typeof e>"u"){const x=a.slidesGrid[y],B=a.slidesGrid[y-T]-x;o?a.setTranslate(a.translate-B):(a.slideTo(y-T,0,!1,!0),n&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-B,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-B))}else{const x=f?S.length/m.grid.rows:S.length;a.slideTo(a.activeIndex-x,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=u,a.controller&&a.controller.control&&!l){const x={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(P=>{!P.destroyed&&P.params.loop&&P.loopFix({...x,slideTo:P.params.slidesPerView===m.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...x,slideTo:a.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}a.emit("loopFix")}function oi(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var di={loopCreate:ai,loopFix:li,loopDestroy:oi};function ui(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function fi(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var ci={setGrabCursor:ui,unsetGrabCursor:fi};function pi(t,e){e===void 0&&(e=this);function i(s){if(!s||s===X()||s===j())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function Ae(t,e,i){const s=j(),{params:n}=t,r=n.edgeSwipeDetection,l=n.edgeSwipeThreshold;return r&&(i<=l||i>=s.innerWidth-l)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function mi(t){const e=this,i=X();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){Ae(e,s,s.targetTouches[0].pageX);return}const{params:r,touches:l,enabled:o}=e;if(!o||!r.simulateTouch&&s.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let a=s.target;if(r.touchEventsTarget==="wrapper"&&!vt(a,e.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(a=d[0]);const u=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,v=!!(s.target&&s.target.shadowRoot);if(r.noSwiping&&(v?pi(u,a):a.closest(u))){e.allowClick=!0;return}if(r.swipeHandler&&!a.closest(r.swipeHandler))return;l.currentX=s.pageX,l.currentY=s.pageY;const m=l.currentX,g=l.currentY;if(!Ae(e,s,m))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=m,l.startY=g,n.touchStartTime=pe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let h=!0;a.matches(n.focusableElements)&&(h=!1,a.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==a&&(s.pointerType==="mouse"||s.pointerType!=="mouse"&&!a.matches(n.focusableElements))&&i.activeElement.blur();const M=h&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||M)&&!a.isContentEditable&&s.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function gi(t){const e=X(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:l,enabled:o}=i;if(!o||!n.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(s.touchId!==null||a.pointerId!==s.pointerId))return;let c;if(a.type==="touchmove"){if(c=[...a.changedTouches].filter(G=>G.identifier===s.touchId)[0],!c||c.identifier!==s.touchId)return}else c=a;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=c.pageX,u=c.pageY;if(a.preventedByNestedSwiper){r.startX=d,r.startY=u;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u}),s.touchStartTime=pe());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(ur.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(dr.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==a.target&&a.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",a),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=u;const v=r.currentX-r.startX,m=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(v**2+m**2)"u"){let G;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:v*v+m*m>=25&&(G=Math.atan2(Math.abs(m),Math.abs(v))*180/Math.PI,s.isScrolling=i.isHorizontal()?G>n.touchAngle:90-G>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling||a.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&a.cancelable&&a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation();let g=i.isHorizontal()?v:m,h=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),h=Math.abs(h)*(l?1:-1)),r.diff=g,g*=n.touchRatio,l&&(g=-g,h=-h);const M=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=h>0?"prev":"next";const b=i.params.loop&&!n.cssMode,f=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(b&&f&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const G=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(G)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let p;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&M!==i.touchesDirection&&b&&f&&Math.abs(g)>=1){Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let S=!0,y=n.resistanceRatio;if(n.touchReleaseOnEdges&&(y=0),g>0?(b&&f&&!p&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(S=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+g)**y))):g<0&&(b&&f&&!p&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(g)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function vi(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(y=>y.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:l,touches:o,rtlTranslate:a,slidesGrid:c,enabled:d}=e;if(!d||!l.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&l.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}l.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=pe(),v=u-i.touchStartTime;if(e.allowClick){const y=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(y&&y[0]||s.target,y),e.emit("tap click",s),v<300&&u-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=pe(),ce(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(l.followFinger?m=a?e.translate:-e.translate:m=-i.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const g=m>=-e.maxTranslate()&&!e.params.loop;let h=0,M=e.slidesSizesGrid[0];for(let y=0;y=c[y]&&m=c[y])&&(h=y,M=c[c.length-1]-c[c.length-2])}let b=null,f=null;l.rewind&&(e.isBeginning?f=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(b=0));const p=(m-c[h])/M,S=hl.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(p>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?b:h+S):e.slideTo(h)),e.swipeDirection==="prev"&&(p>1-l.longSwipesRatio?e.slideTo(h+S):f!==null&&p<0&&Math.abs(p)>l.longSwipesRatio?e.slideTo(f):e.slideTo(h))}else{if(!l.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(h+S):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(b!==null?b:h+S),e.swipeDirection==="prev"&&e.slideTo(f!==null?f:h))}}function Be(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=t,l=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=l&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!l?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function hi(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function wi(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const r=t.maxTranslate()-t.minTranslate();r===0?n=0:n=(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Si(t){const e=this;fe(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function bi(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const We=(t,e)=>{const i=X(),{params:s,el:n,wrapperEl:r,device:l}=t,o=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;!n||typeof n=="string"||(i[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[a]("touchstart",t.onTouchStart,{passive:!1}),n[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[a]("touchend",t.onTouchEnd,{passive:!0}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("touchcancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[a]("click",t.onClick,!0),s.cssMode&&r[a]("scroll",t.onScroll),s.updateOnWindowResize?t[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Be,!0):t[c]("observerUpdate",Be,!0),n[a]("load",t.onLoad,{capture:!0}))};function yi(){const t=this,{params:e}=t;t.onTouchStart=mi.bind(t),t.onTouchMove=gi.bind(t),t.onTouchEnd=vi.bind(t),t.onDocumentTouchStart=bi.bind(t),e.cssMode&&(t.onScroll=wi.bind(t)),t.onClick=hi.bind(t),t.onLoad=Si.bind(t),We(t,"on")}function xi(){We(this,"off")}var Ti={attachEvents:yi,detachEvents:xi};const De=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ei(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const l=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!l||t.currentBreakpoint===l)return;const a=(l in r?r[l]:void 0)||t.originalParams,c=De(t,s),d=De(t,a),u=t.params.grabCursor,v=a.grabCursor,m=s.enabled;c&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),u&&!v?t.unsetGrabCursor():!u&&v&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof a[p]>"u")return;const S=s[p]&&s[p].enabled,y=a[p]&&a[p].enabled;S&&!y&&t[p].disable(),!S&&y&&t[p].enable()});const g=a.direction&&a.direction!==s.direction,h=s.loop&&(a.slidesPerView!==s.slidesPerView||g),M=s.loop;g&&i&&t.changeDirection(),q(t.params,a);const b=t.params.enabled,f=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!b?t.disable():!m&&b&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",a),i&&(h?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!M&&f?(t.loopCreate(e),t.updateSlides()):M&&!f&&t.loopDestroy()),t.emit("breakpoint",a)}function Ci(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=j(),r=e==="window"?n.innerHeight:i.clientHeight,l=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:r*a,point:o}}return{value:o,point:o}});l.sort((o,a)=>parseInt(o.value,10)-parseInt(a.value,10));for(let o=0;o{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function Li(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:r}=t,l=Mi(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...l),n.classList.add(...e),t.emitContainerClasses()}function Ii(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Oi={addClasses:Li,removeClasses:Ii};function zi(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,r=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Ai={checkOverflow:zi},Ce={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Bi(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){q(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in r)){q(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),q(e,s)}}const be={eventsEmitter:Ot,update:Rt,translate:Yt,transition:Zt,slide:ri,loop:di,grabCursor:ci,events:Ti,breakpoints:Pi,checkOverflow:Ai,classes:Oi},ye={};let Le=class U{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),r=0;r1){const d=[];return l.querySelectorAll(i.el).forEach(u=>{const v=q({},i,{el:u});d.push(new U(v))}),d}const o=this;o.__swiper__=!0,o.support=He(),o.device=je({userAgent:i.userAgent}),o.browser=Mt(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const a={};o.modules.forEach(d=>{d({params:i,swiper:o,extendParams:Bi(i,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=q({},Ce,a);return o.params=q({},c,ye,i),o.originalParams=q({},o.params),o.passedParams=q({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=Y(i,`.${s.slideClass}, swiper-slide`),r=ae(n[0]);return ae(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=Y(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),l=(s.maxTranslate()-n)*e+n;s.translateTo(l,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:r,slidesGrid:l,slidesSizesGrid:o,size:a,activeIndex:c}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let u=r[c]?Math.ceil(r[c].swiperSlideSize):0,v;for(let m=c+1;ma&&(v=!0));for(let m=c-1;m>=0;m-=1)r[m]&&!v&&(u+=r[m].swiperSlideSize,d+=1,u>a&&(v=!0))}else if(e==="current")for(let u=c+1;u=0;u-=1)l[c]-l[u]{l.complete&&fe(e,l)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const l=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const l=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(l.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):Y(s,n())[0];return!l&&i.params.createElements&&(l=ne("div",i.params.wrapperClass),s.append(l),Y(s,`.${i.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(i,{el:s,wrapperEl:l,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:l,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||ee(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||ee(s,"direction")==="rtl"),wrongRTL:ee(l,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?fe(i,r):r.addEventListener("load",l=>{fe(i,l.target)})}),Ee(i),i.initialized=!0,Ee(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:r,wrapperEl:l,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),l&&l.removeAttribute("style"),o&&o.length&&o.forEach(a=>{a.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),ct(s)),s.destroyed=!0),null}static extendDefaults(e){q(ye,e)}static get extendedDefaults(){return ye}static get defaults(){return Ce}static installModule(e){U.prototype.__modules__||(U.prototype.__modules__=[]);const i=U.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>U.installModule(i)),U):(U.installModule(e),U)}};Object.keys(be).forEach(t=>{Object.keys(be[t]).forEach(e=>{Le.prototype[e]=be[t][e]})});Le.use([Lt,It]);const Ye=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function te(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function se(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:te(e[s])&&te(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:se(t[s],e[s]):t[s]=e[s]})}function Xe(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Ue(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ke(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Ze(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function Di(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Gi(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:r,prevEl:l,scrollbarEl:o,paginationEl:a}=t;const c=n.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:d,pagination:u,navigation:v,scrollbar:m,virtual:g,thumbs:h}=e;let M,b,f,p,S,y,G,R;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&!s.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(M=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(b=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||a)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(f=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(p=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||l)&&(s.navigation.nextEl||r)&&(d.navigation||d.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(S=!0);const N=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),d[T].prevEl=void 0,d[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),d[T].el=void 0,e[T].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?y=!0:!d.loop&&s.loop?G=!0:R=!0),c.forEach(T=>{if(te(d[T])&&te(s[T]))Object.assign(d[T],s[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in s[T]&&!s[T].enabled&&N(T);else{const C=s[T];(C===!0||C===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?C===!1&&N(T):d[T]=s[T]}}),c.includes("controller")&&!b&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&g&&d.virtual.enabled?(g.slides=i,g.update(!0)):n.includes("virtual")&&g&&d.virtual.enabled&&(i&&(g.slides=i),g.update(!0)),n.includes("children")&&i&&d.loop&&(R=!0),M&&h.init()&&h.update(!0),b&&(e.controller.control=d.controller.control),f&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),e.el.appendChild(a)),a&&(d.pagination.el=a),u.init(),u.render(),u.update()),p&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),m.init(),m.updateSize(),m.setTranslate()),S&&(e.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=e.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),e.el.appendChild(r)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),l.innerHTML=e.hostEl.constructor.prevButtonSvg,l.part.add("button-prev"),e.el.appendChild(l))),r&&(d.navigation.nextEl=r),l&&(d.navigation.prevEl=l),v.init(),v.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(y||R)&&e.loopDestroy(),(G||R)&&e.loopCreate(),e.update()}function Ge(t,e){t===void 0&&(t={});const i={on:{}},s={},n={};se(i,Ce),i._emitClasses=!0,i.init=!1;const r={},l=Ye.map(a=>a.replace(/_/,"")),o=Object.assign({},t);return Object.keys(o).forEach(a=>{typeof t[a]>"u"||(l.indexOf(a)>=0?te(t[a])?(i[a]={},n[a]={},se(i[a],t[a]),se(n[a],t[a])):(i[a]=t[a],n[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:r[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{i[a]===!0&&(i[a]={}),i[a]===!1&&delete i[a]}),{params:i,passedParams:n,rest:r,events:s}}function ki(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:r,scrollbarEl:l,swiper:o}=t;Xe(e)&&s&&n&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),Ue(e)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),Ke(e)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(i)}function Ni(t,e,i,s,n){const r=[];if(!e)return r;const l=a=>{r.indexOf(a)<0&&r.push(a)};if(i&&s){const a=s.map(n),c=i.map(n);a.join("")!==c.join("")&&l("children"),s.length!==i.length&&l("children")}return Ye.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in e)if(te(t[a])&&te(e[a])){const c=Object.keys(t[a]),d=Object.keys(e[a]);c.length!==d.length?l(a):(c.forEach(u=>{t[a][u]!==e[a][u]&&l(a)}),d.forEach(u=>{t[a][u]!==e[a][u]&&l(a)}))}else t[a]!==e[a]&&l(a)}),r}const _i=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function xe(t,e,i){t===void 0&&(t={});const s=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},r=(l,o)=>{Array.isArray(l)&&l.forEach(a=>{const c=typeof a.type=="symbol";o==="default"&&(o="container-end"),c&&a.children?r(a.children,o):a.type&&(a.type.name==="SwiperSlide"||a.type.name==="AsyncComponentWrapper")||a.componentOptions&&a.componentOptions.tag==="SwiperSlide"?s.push(a):n[o]&&n[o].push(a)})};return Object.keys(t).forEach(l=>{if(typeof t[l]!="function")return;const o=t[l]();r(o,l)}),i.value=e.value,e.value=s,{slides:s,slots:n}}function $i(t,e,i){if(!i)return null;const s=d=>{let u=d;return d<0?u=e.length+d:u>=e.length&&(u=u-e.length),u},n=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:l}=i,o=t.value.params.loop?-e.length:0,a=t.value.params.loop?e.length*2:e.length,c=[];for(let d=o;d=r&&d<=l&&c.length{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=t,d.props.style=n,d.type)return W(d.type,{...d.props},d.children);if(d.componentOptions)return W(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}const ie={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:i,emit:s}=e;const{tag:n,wrapperTag:r}=t,l=H("swiper"),o=H(null),a=H(!1),c=H(!1),d=H(null),u=H(null),v=H(null),m={value:[]},g={value:[]},h=H(null),M=H(null),b=H(null),f=H(null),{params:p,passedParams:S}=Ge(t);xe(i,m,g),v.value=S,g.value=m.value;const y=()=>{xe(i,m,g),a.value=!0};p.onAny=function(N){for(var T=arguments.length,C=new Array(T>1?T-1:0),A=1;A{o.value=T},renderExternalUpdate:!1};se(u.value.params.virtual,N),se(u.value.originalParams.virtual,N)}ke(()=>{!c.value&&u.value&&(u.value.emitSlidesClasses(),c.value=!0);const{passedParams:N}=Ge(t),T=Ni(N,v.value,m.value,g.value,C=>C.props&&C.props.key);v.value=N,(T.length||a.value)&&u.value&&!u.value.destroyed&&Gi({swiper:u.value,slides:m.value,passedParams:N,changedParams:T,nextEl:h.value,prevEl:M.value,scrollbarEl:f.value,paginationEl:b.value}),a.value=!1}),Ne("swiper",u),tt(o,()=>{it(()=>{_i(u.value)})}),_e(()=>{d.value&&(ki({el:d.value,nextEl:h.value,prevEl:M.value,paginationEl:b.value,scrollbarEl:f.value,swiper:u.value},p),s("swiper",u.value))}),$e(()=>{u.value&&!u.value.destroyed&&u.value.destroy(!0,!1)});function R(N){return p.virtual?$i(u,N,o.value):(N.forEach((T,C)=>{T.props||(T.props={}),T.props.swiperRef=u,T.props.swiperSlideIndex=C}),N)}return()=>{const{slides:N,slots:T}=xe(i,m,g);return W(n,{ref:d,class:Ze(l.value)},[T["container-start"],W(r,{class:Di(p.wrapperClass)},[T["wrapper-start"],R(N),T["wrapper-end"]]),Xe(t)&&[W("div",{ref:M,class:"swiper-button-prev"}),W("div",{ref:h,class:"swiper-button-next"})],Ke(t)&&W("div",{ref:f,class:"swiper-scrollbar"}),Ue(t)&&W("div",{ref:b,class:"swiper-pagination"}),T["container-end"]])}}},k={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:i}=e,s=!1;const{swiperRef:n}=t,r=H(null),l=H("swiper-slide"),o=H(!1);function a(u,v,m){v===r.value&&(l.value=m)}_e(()=>{!n||!n.value||(n.value.on("_slideClass",a),s=!0)}),st(()=>{s||!n||!n.value||(n.value.on("_slideClass",a),s=!0)}),ke(()=>{!r.value||!n||!n.value||(typeof t.swiperSlideIndex<"u"&&(r.value.swiperSlideIndex=t.swiperSlideIndex),n.value.destroyed&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),$e(()=>{!n||!n.value||n.value.off("_slideClass",a)});const c=nt(()=>({isActive:l.value.indexOf("swiper-slide-active")>=0,isVisible:l.value.indexOf("swiper-slide-visible")>=0,isPrev:l.value.indexOf("swiper-slide-prev")>=0,isNext:l.value.indexOf("swiper-slide-next")>=0}));Ne("swiperSlide",c);const d=()=>{o.value=!0};return()=>W(t.tag,{class:Ze(`${l.value}`),ref:r,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&n&&n.value&&n.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:d},t.zoom?W("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[i.default&&i.default(c.value),t.lazy&&!o.value&&W("div",{class:"swiper-lazy-preloader"})]):[i.default&&i.default(c.value),t.lazy&&!o.value&&W("div",{class:"swiper-lazy-preloader"})])}},Vi={class:"whitespace-break-spaces p-4 space-y-2"},Ri={class:"space-x-2"},Fi=rt({__name:"swiper",setup(t){const e=H(!1),i=[bt,yt,xt,Tt];return(s,n)=>{const r=dt,l=Ie("van-tag"),o=Ie("van-action-sheet"),a=et,c=Qe;return lt(),at(c,{navbar:"","navbar-start-side":"back"},{"navbar-end":I(()=>[re("div",{class:"h-full flex-center px-1",onClick:n[0]||(n[0]=d=>e.value=!0)},[O(r,{name:"i-mdi:information",class:"text-4"})]),O(o,{show:z(e),"onUpdate:show":n[1]||(n[1]=d=>ot(e)?e.value=d:null),teleport:"body"},{default:I(()=>[re("div",Vi,[n[3]||(n[3]=re("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),n[4]||(n[4]=re("div",null,"安装命令:",-1)),re("div",Ri,[O(l,{type:"primary",plain:""},{default:I(()=>n[2]||(n[2]=[D(" pnpm add swiper ")])),_:1})])])]),_:1},8,["show"])]),default:I(()=>[O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",autoplay:""},{default:I(()=>[O(z(k),null,{default:I(()=>n[5]||(n[5]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[6]||(n[6]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[7]||(n[7]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[8]||(n[8]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[9]||(n[9]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[10]||(n[10]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[11]||(n[11]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[12]||(n[12]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[13]||(n[13]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[14]||(n[14]=[D("Slide 10")])),_:1})]),_:1})]),_:1}),O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",pagination:{clickable:!0}},{default:I(()=>[O(z(k),null,{default:I(()=>n[15]||(n[15]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[16]||(n[16]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[17]||(n[17]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[18]||(n[18]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[19]||(n[19]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[20]||(n[20]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[21]||(n[21]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[22]||(n[22]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[23]||(n[23]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[24]||(n[24]=[D("Slide 10")])),_:1})]),_:1})]),_:1}),O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",navigation:""},{default:I(()=>[O(z(k),null,{default:I(()=>n[25]||(n[25]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[26]||(n[26]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[27]||(n[27]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[28]||(n[28]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[29]||(n[29]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[30]||(n[30]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[31]||(n[31]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[32]||(n[32]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[33]||(n[33]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[34]||(n[34]=[D("Slide 10")])),_:1})]),_:1})]),_:1}),O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",pagination:{dynamicBullets:!0}},{default:I(()=>[O(z(k),null,{default:I(()=>n[35]||(n[35]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[36]||(n[36]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[37]||(n[37]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[38]||(n[38]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[39]||(n[39]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[40]||(n[40]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[41]||(n[41]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[42]||(n[42]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[43]||(n[43]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[44]||(n[44]=[D("Slide 10")])),_:1})]),_:1})]),_:1}),O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",pagination:{type:"fraction"}},{default:I(()=>[O(z(k),null,{default:I(()=>n[45]||(n[45]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[46]||(n[46]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[47]||(n[47]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[48]||(n[48]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[49]||(n[49]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[50]||(n[50]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[51]||(n[51]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[52]||(n[52]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[53]||(n[53]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[54]||(n[54]=[D("Slide 10")])),_:1})]),_:1})]),_:1}),O(a,null,{default:I(()=>[O(z(ie),{modules:i,class:"swiper",scrollbar:{draggable:!0}},{default:I(()=>[O(z(k),null,{default:I(()=>n[55]||(n[55]=[D("Slide 1")])),_:1}),O(z(k),null,{default:I(()=>n[56]||(n[56]=[D("Slide 2")])),_:1}),O(z(k),null,{default:I(()=>n[57]||(n[57]=[D("Slide 3")])),_:1}),O(z(k),null,{default:I(()=>n[58]||(n[58]=[D("Slide 4")])),_:1}),O(z(k),null,{default:I(()=>n[59]||(n[59]=[D("Slide 5")])),_:1}),O(z(k),null,{default:I(()=>n[60]||(n[60]=[D("Slide 6")])),_:1}),O(z(k),null,{default:I(()=>n[61]||(n[61]=[D("Slide 7")])),_:1}),O(z(k),null,{default:I(()=>n[62]||(n[62]=[D("Slide 8")])),_:1}),O(z(k),null,{default:I(()=>n[63]||(n[63]=[D("Slide 9")])),_:1}),O(z(k),null,{default:I(()=>n[64]||(n[64]=[D("Slide 10")])),_:1})]),_:1})]),_:1})]),_:1})}}}),Yi=ut(Fi,[["__scopeId","data-v-488af924"]]);export{Yi as default}; diff --git a/assets/swiper-CJ0otCO6.js.br b/assets/swiper-CJ0otCO6.js.br new file mode 100644 index 0000000..325d5c0 Binary files /dev/null and b/assets/swiper-CJ0otCO6.js.br differ diff --git a/assets/swiper-CJ0otCO6.js.gz b/assets/swiper-CJ0otCO6.js.gz new file mode 100644 index 0000000..a7f2eaa Binary files /dev/null and b/assets/swiper-CJ0otCO6.js.gz differ diff --git a/assets/swiper-Coapw6G4.css b/assets/swiper-Coapw6G4.css new file mode 100644 index 0000000..42ec6a5 --- /dev/null +++ b/assets/swiper-Coapw6G4.css @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:min(320vw,1920px)}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:min(320vw,1920px)}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:min(.267vw,1.6px);width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:min(.267vw,1.6px);height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:min(11.2vw,67.2px);height:min(11.2vw,67.2px);position:absolute;left:50%;top:50%;margin-left:max(-5.6vw,-33.6px);margin-top:max(-5.6vw,-33.6px);z-index:10;transform-origin:50%;box-sizing:border-box;border:min(1.067vw,6.4px) solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: min(11.733vw, 70.4px)}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, min(2.667vw, 16px));right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, min(2.667vw, 16px));left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, min(2.133vw, 12.8px));top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, min(2.133vw, 12.8px)));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, min(2.133vw, 12.8px)));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, min(2.133vw, 12.8px));left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, min(1.6vw, 9.6px)) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:min(2.133vw,12.8px)}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, min(1.067vw, 6.4px))}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, min(1.067vw, 6.4px));left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, min(1.067vw, 6.4px));height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, min(2.667vw, 16px));position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, min(1.067vw, 6.4px));top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, min(1.067vw, 6.4px));width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, min(1.067vw, 6.4px));top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, min(1.067vw, 6.4px));height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, min(2.667vw, 16px));left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper[data-v-488af924]{width:100%;height:min(80vw,480px)}.swiper .swiper-slide[data-v-488af924]{display:flex;align-items:center;justify-content:center;font-size:min(9.6vw,57.6px);font-weight:700;text-align:center;background-color:#fff} diff --git a/assets/swiper-Coapw6G4.css.br b/assets/swiper-Coapw6G4.css.br new file mode 100644 index 0000000..70344f6 Binary files /dev/null and b/assets/swiper-Coapw6G4.css.br differ diff --git a/assets/swiper-Coapw6G4.css.gz b/assets/swiper-Coapw6G4.css.gz new file mode 100644 index 0000000..3b4c3a7 Binary files /dev/null and b/assets/swiper-Coapw6G4.css.gz differ diff --git a/assets/test-BN4ihABe.js b/assets/test-BN4ihABe.js new file mode 100644 index 0000000..ba665e3 --- /dev/null +++ b/assets/test-BN4ihABe.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as n}from"./index-DkxdnFkg.js";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{z as r,c as _,w as e,o as c,b as f,e as m}from"./index-DD358c5I.js";const i={};function p(u,t){const a=s,o=n;return c(),_(o,{navbar:"","navbar-start-side":"back"},{default:e(()=>[f(a,null,{default:e(()=>t[0]||(t[0]=[m(" 你能看到这个页面,说明你有访问权限。 ")])),_:1})]),_:1})}const b=r(i,[["render",p]]);export{b as default}; diff --git a/assets/test-BN4ihABe.js.br b/assets/test-BN4ihABe.js.br new file mode 100644 index 0000000..37dc987 Binary files /dev/null and b/assets/test-BN4ihABe.js.br differ diff --git a/assets/test-BN4ihABe.js.gz b/assets/test-BN4ihABe.js.gz new file mode 100644 index 0000000..1d9f3b3 Binary files /dev/null and b/assets/test-BN4ihABe.js.gz differ diff --git a/assets/title-CqP7FtSA.js b/assets/title-CqP7FtSA.js new file mode 100644 index 0000000..5134a8b --- /dev/null +++ b/assets/title-CqP7FtSA.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_}from"./index-DkxdnFkg.js";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{Y as p,a3 as d,k as C,d as g,c as T,w as s,m as k,o as P,b as r,e as l}from"./index-DD358c5I.js";function b(){const a=d(),e=C(),o=p();function u(){e.push({name:"reload"})}function i(n){o.setCustomTitle(a.fullPath,n)}function t(){o.resetCustomTitle(a.fullPath)}return{reload:u,setCustomTitle:i,resetCustomTitle:t}}const v=g({__name:"title",setup(a){const e=b();function o(){e.setCustomTitle("测试标题")}function u(){e.resetCustomTitle()}return(i,t)=>{const n=k("VanButton"),c=f,m=_;return P(),T(m,{navbar:"","navbar-start-side":"back"},{default:s(()=>[r(c,null,{default:s(()=>[r(n,{onClick:o},{default:s(()=>t[0]||(t[0]=[l(" 标题设置为「 测试标题 」 ")])),_:1}),r(n,{onClick:u},{default:s(()=>t[1]||(t[1]=[l(" 标题重置 ")])),_:1})]),_:1})]),_:1})}}});export{v as default}; diff --git a/assets/title-CqP7FtSA.js.br b/assets/title-CqP7FtSA.js.br new file mode 100644 index 0000000..a18ba0a Binary files /dev/null and b/assets/title-CqP7FtSA.js.br differ diff --git a/assets/title-CqP7FtSA.js.gz b/assets/title-CqP7FtSA.js.gz new file mode 100644 index 0000000..b4d91c9 Binary files /dev/null and b/assets/title-CqP7FtSA.js.gz differ diff --git a/assets/title-no-center-CWQNR54Q.js b/assets/title-no-center-CWQNR54Q.js new file mode 100644 index 0000000..8a12c5e --- /dev/null +++ b/assets/title-no-center-CWQNR54Q.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as s}from"./index-DkxdnFkg.js";import{d as r,c as _,w as t,k as c,m as u,o as l,a as p,b as m,e as f,u as i}from"./index-DD358c5I.js";const d={class:"flex flex-col gap-4 p-4"},g=r({__name:"title-no-center",setup(v){const o=c();return(x,e)=>{const n=u("van-button"),a=s;return l(),_(a,{"title-center":!1,navbar:""},{default:t(()=>[p("div",d,[m(n,{onClick:e[0]||(e[0]=b=>i(o).back())},{default:t(()=>e[1]||(e[1]=[f(" 返回 ")])),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/title-no-center-CWQNR54Q.js.br b/assets/title-no-center-CWQNR54Q.js.br new file mode 100644 index 0000000..d2eae0f Binary files /dev/null and b/assets/title-no-center-CWQNR54Q.js.br differ diff --git a/assets/title-no-center-CWQNR54Q.js.gz b/assets/title-no-center-CWQNR54Q.js.gz new file mode 100644 index 0000000..3bf2437 Binary files /dev/null and b/assets/title-no-center-CWQNR54Q.js.gz differ diff --git a/assets/trend-demo-C3tL53JI.js b/assets/trend-demo-C3tL53JI.js new file mode 100644 index 0000000..9faa7c7 --- /dev/null +++ b/assets/trend-demo-C3tL53JI.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as d}from"./index-DkxdnFkg.js";import{d as m,O as v,o as r,j as l,t as u,p as i,a as s,b as t,u as f,q as x,_ as y,z as g,c as k,w as o,e as B}from"./index-DD358c5I.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";const b={key:0,class:"prefix"},h={class:"text"},w={key:1,class:"suffix"},C=m({name:"Trend",__name:"index",props:{value:{},type:{default:"up"},prefix:{default:""},suffix:{default:""},reverse:{type:Boolean,default:!1}},setup(p){const n=p,a=v(()=>{let e=n.type==="up";return n.reverse&&(e=!e),e});return(e,c)=>{const _=y;return r(),l("div",{class:x(["flex items-center transition",`${f(a)?"c-green":"c-red"}`])},[e.prefix?(r(),l("span",b,u(e.prefix),1)):i("",!0),s("span",h,u(e.value),1),e.suffix?(r(),l("span",w,u(e.suffix),1)):i("",!0),t(_,{name:"i-ep:caret-top",rotate:f(a)?0:180,class:"ml-1 transition"},null,8,["rotate"])],2)}}}),N={};function V(p,n){const a=$,e=C,c=d;return r(),k(c,{navbar:"","navbar-start-side":"back"},{default:o(()=>[t(a,null,{default:o(()=>n[0]||(n[0]=[B(" 标记上升和下降趋势。通常用绿色代表“好”,红色代表“不好”,股票涨跌场景除外 ")])),_:1}),t(a,{title:"基础用法"},{default:o(()=>[s("p",null,[t(e,{value:"12.3"})]),s("p",null,[t(e,{value:"12.3",type:"down"})])]),_:1}),t(a,{title:"颜色反转"},{default:o(()=>[s("p",null,[t(e,{value:"12.3",reverse:""})]),s("p",null,[t(e,{value:"12.3",type:"down",reverse:""})])]),_:1}),t(a,{title:"前缀后缀"},{default:o(()=>[s("p",null,[t(e,{value:"12.3",prefix:"$"})]),s("p",null,[t(e,{value:"12.3",suffix:"%"})])]),_:1})]),_:1})}const P=g(N,[["render",V]]);export{P as default}; diff --git a/assets/trend-demo-C3tL53JI.js.br b/assets/trend-demo-C3tL53JI.js.br new file mode 100644 index 0000000..4d2d574 Binary files /dev/null and b/assets/trend-demo-C3tL53JI.js.br differ diff --git a/assets/trend-demo-C3tL53JI.js.gz b/assets/trend-demo-C3tL53JI.js.gz new file mode 100644 index 0000000..345f6d7 Binary files /dev/null and b/assets/trend-demo-C3tL53JI.js.gz differ diff --git a/assets/unocss-D0FABVcL.js b/assets/unocss-D0FABVcL.js new file mode 100644 index 0000000..01a9ad4 --- /dev/null +++ b/assets/unocss-D0FABVcL.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as a}from"./index-DkxdnFkg.js";import{z as o,c as s,w as c,o as r,a as t}from"./index-DD358c5I.js";const i={};function l(_,e){const n=a;return r(),s(n,{navbar:"","navbar-start-side":"back"},{default:c(()=>e[0]||(e[0]=[t("div",{flex:"","flex-1":"","flex-col":"","select-none":"","text-center":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"animate-bounce-alt":"","animate-duration-1s":"","animate-count-infinite":"","text-5xl":"",fw100:""}," UnoCSS ")])],-1)])),_:1})}const u=o(i,[["render",l]]);export{u as default}; diff --git a/assets/unocss-D0FABVcL.js.br b/assets/unocss-D0FABVcL.js.br new file mode 100644 index 0000000..079b8b2 Binary files /dev/null and b/assets/unocss-D0FABVcL.js.br differ diff --git a/assets/unocss-D0FABVcL.js.gz b/assets/unocss-D0FABVcL.js.gz new file mode 100644 index 0000000..2a34140 Binary files /dev/null and b/assets/unocss-D0FABVcL.js.gz differ diff --git a/assets/vchart-DbIrQOOZ.js b/assets/vchart-DbIrQOOZ.js new file mode 100644 index 0000000..af5a80f --- /dev/null +++ b/assets/vchart-DbIrQOOZ.js @@ -0,0 +1,71 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as XD}from"./index-DkxdnFkg.js";import{_ as KD}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{aC as sP,d as qD,r as ZD,U as Eu,h as JD,c as QD,w as Er,m as HS,o as t2,a as Gs,b as Fa,e as e2,u as i2,i as n2,_ as s2}from"./index-DD358c5I.js";const rP=n=>n;var Ue;(function(n){n["desktop-browser"]="desktop-browser",n["mobile-browser"]="mobile-browser",n.node="node",n.worker="worker",n.miniApp="miniApp",n.wx="wx",n.tt="tt",n.harmony="harmony",n["desktop-miniApp"]="desktop-miniApp",n.lynx="lynx"})(Ue||(Ue={}));var X;(function(n){n.cartesianAxis="cartesianAxis",n.cartesianBandAxis="cartesianAxis-band",n.cartesianLinearAxis="cartesianAxis-linear",n.cartesianTimeAxis="cartesianAxis-time",n.cartesianLogAxis="cartesianAxis-log",n.cartesianSymlogAxis="cartesianAxis-symlog",n.polarAxis="polarAxis",n.polarBandAxis="polarAxis-band",n.polarLinearAxis="polarAxis-linear",n.crosshair="crosshair",n.cartesianCrosshair="cartesianCrosshair",n.polarCrosshair="polarCrosshair",n.dataZoom="dataZoom",n.geoCoordinate="geoCoordinate",n.indicator="indicator",n.discreteLegend="discreteLegend",n.continuousLegend="continuousLegend",n.colorLegend="colorLegend",n.sizeLegend="sizeLegend",n.mapLabel="mapLabel",n.markLine="markLine",n.markArea="markArea",n.markPoint="markPoint",n.polarMarkLine="polarMarkLine",n.polarMarkArea="polarMarkArea",n.polarMarkPoint="polarMarkPoint",n.geoMarkPoint="geoMarkPoint",n.tooltip="tooltip",n.title="title",n.player="player",n.scrollBar="scrollBar",n.label="label",n.totalLabel="totalLabel",n.brush="brush",n.poptip="poptip",n.customMark="customMark"})(X||(X={}));var aP={exports:{}};(function(n){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function s(l,h,d){this.fn=l,this.context=h,this.once=d||!1}function r(l,h,d,c,u){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,c||l,u),p=e?e+h:h;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],g]:l._events[p].push(g):(l._events[p]=g,l._eventsCount++),l}function a(l,h){--l._eventsCount===0?l._events=new i:delete l._events[h]}function o(){this._events=new i,this._eventsCount=0}o.prototype.eventNames=function(){var h=[],d,c;if(this._eventsCount===0)return h;for(c in d=this._events)t.call(d,c)&&h.push(e?c.slice(1):c);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},o.prototype.listeners=function(h){var d=e?e+h:h,c=this._events[d];if(!c)return[];if(c.fn)return[c.fn];for(var u=0,g=c.length,p=new Array(g);uObject.prototype.toString.call(n)===`[object ${t}]`,Me=(n,t=!1)=>t?typeof n=="boolean":n===!0||n===!1||vh(n,"Boolean"),N=n=>typeof n=="function",P=n=>n==null,C=n=>n!=null,yt=n=>{const t=typeof n;return n!==null&&t==="object"||t==="function"},a2=n=>typeof n=="object"&&n!==null,Ls=function(n){if(!a2(n)||!vh(n,"Object"))return!1;if(Object.getPrototypeOf(n)===null)return!0;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t},Ae=n=>n===void 0,tt=(n,t=!1)=>{const e=typeof n;return t?e==="string":e==="string"||vh(n,"String")},U=n=>Array.isArray?Array.isArray(n):vh(n,"Array"),bb=function(n){return n!==null&&typeof n!="function"&&Number.isFinite(n.length)},o2=n=>vh(n,"Date"),J=(n,t=!1)=>{const e=typeof n;return t?e==="number":e==="number"||vh(n,"Number")},l2=n=>typeof n=="string"&&!isNaN(Number(n))&&!isNaN(parseFloat(n)),H=n=>J(n)&&Number.isFinite(n),oP=n=>new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(n),lP=n=>new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(n),h2=n=>({}).toString.call(n).replace(/^\[object /,"").replace(/]$/,""),d2=Object.prototype,c2=function(n){const t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||d2)},u2=Object.prototype.hasOwnProperty;function ht(n){if(P(n))return!0;if(bb(n))return!n.length;const t=h2(n);if(t==="Map"||t==="Set")return!n.size;if(c2(n))return!Object.keys(n).length;for(const e in n)if(u2.call(n,e))return!1;return!0}const wt=(n,t,e)=>{const i=tt(t)?t.split("."):t;for(let s=0;sn!=null&&g2.call(n,t);function xn(n,t,e){let i;if(!C(n)||typeof n!="object"||t)return n;const s=U(n),r=n.length;i=s?new Array(r):typeof n=="object"?{}:Me(n)||J(n)||tt(n)?n:o2(n)?new Date(+n):void 0;const a=s?void 0:Object.keys(Object(n));let o=-1;if(i)for(;++o<(a||n).length;){const l=a?a[o]:o,h=n[l];i[l]=xn(h,t)}return i}function xb(n,t,e=!1,i=!1){if(t){if(n===t)return;if(C(t)&&typeof t=="object"){const s=Object(t),r=[];for(const l in s)r.push(l);let{length:a}=r,o=-1;for(;a--;){const l=r[++o];!C(s[l])||typeof s[l]!="object"||i&&U(n[l])?hP(n,l,s[l]):p2(n,t,l,e,i)}}}}function p2(n,t,e,i=!1,s=!1){const r=n[e],a=t[e];let o=t[e],l=!0;if(U(a)){if(i)o=[];else if(U(r))o=r;else if(bb(r)){o=new Array(r.length);let h=-1;const d=r.length;for(;++h{const s=n[i];let r=!1;t.forEach(a=>{(tt(a)&&a===i||a instanceof RegExp&&i.match(a))&&(r=!0)}),r||(e[i]=s)}),e}function VS(n){return Object.prototype.toString.call(n)}function WS(n){return Object.keys(n)}function Jt(n,t,e){if(n===t)return!0;if(typeof n!=typeof t||n==null||t==null)return!1;if(Number.isNaN(n)&&Number.isNaN(t))return!0;if(VS(n)!==VS(t)||N(n)||typeof n!="object")return!1;if(U(n)){if(n.length!==t.length)return!1;for(let r=n.length-1;r>=0;r--)if(!Jt(n[r],t[r]))return!1;return!0}if(!Ls(n))return!1;const i=WS(n),s=WS(t);if(i.length!==s.length)return!1;i.sort(),s.sort();for(let r=i.length-1;r>=0;r--)if(i[r]!=s[r])return!1;for(let r=i.length-1;r>=0;r--){const a=i[r];if(!Jt(n[a],t[a]))return!1}return!0}function f2(n){if(!n)return[];if(Object.keys)return Object.keys(n);const t=[];for(const e in n)n.hasOwnProperty(e)&&t.push(e);return t}function m2(n,t,e){const i=f2(t);for(let s=0;s{var e;if(n.length===0)return;let i=n[0];for(let s=1;s0)&&(i=r)}return i},Ze=(n,t)=>{var e;if(n.length===0)return;let i=n[0];for(let s=1;st?1:n>=t?0:NaN}function Ps(n){return Number(n)}function y2(n,t,e=Ps){const i=n.length;if(!i)return;if(i<2)return e(n[0],0,n);const s=(i-1)*t,r=Math.floor(s),a=e(n[r],r,n);return a+(e(n[r+1],r+1,n)-a)*(s-r)}const b2=typeof console<"u";function Ou(n,t,e){const i=[t].concat([].slice.call(e));b2&&console[n].apply(console,i)}var pn;(function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Warn=2]="Warn",n[n.Info=3]="Info",n[n.Debug=4]="Debug"})(pn||(pn={}));class Ot{static getInstance(t,e){return Ot._instance&&J(t)?Ot._instance.level(t):Ot._instance||(Ot._instance=new Ot(t,e)),Ot._instance}static setInstance(t){return Ot._instance=t}static setInstanceLevel(t){Ot._instance?Ot._instance.level(t):Ot._instance=new Ot(t)}static clearInstance(){Ot._instance=null}constructor(t=pn.None,e){this._onErrorHandler=[],this._level=t,this._method=e}addErrorHandler(t){this._onErrorHandler.find(e=>e===t)||this._onErrorHandler.push(t)}removeErrorHandler(t){const e=this._onErrorHandler.findIndex(i=>i===t);e<0||this._onErrorHandler.splice(e,1)}callErrorHandler(...t){this._onErrorHandler.forEach(e=>e(...t))}canLogInfo(){return this._level>=pn.Info}canLogDebug(){return this._level>=pn.Debug}canLogError(){return this._level>=pn.Error}canLogWarn(){return this._level>=pn.Warn}level(t){return arguments.length?(this._level=+t,this):this._level}error(...t){var e;return this._level>=pn.Error&&(this._onErrorHandler.length?this.callErrorHandler(...t):Ou((e=this._method)!==null&&e!==void 0?e:"error","ERROR",t)),this}warn(...t){return this._level>=pn.Warn&&Ou(this._method||"warn","WARN",t),this}info(...t){return this._level>=pn.Info&&Ou(this._method||"log","INFO",t),this}debug(...t){return this._level>=pn.Debug&&Ou(this._method||"log","DEBUG",t),this}}Ot._instance=null;function gP(n,t,e=0,i){for(P(i)&&(i=n.length);e>>1;uP(n[s],t)>0?i=s:e=s+1}return e}const GS=(n,t)=>pP(0,n.length,e=>t(n[e])),pP=(n,t,e)=>{let i=n,s=t;for(;i=0?s=r:i=r+1}return i},x2=(n,t)=>{let e=n;return e=n.sort(uP),y2(e,.5)},S2=1e-10,A2=1e-10;function Ge(n,t,e=A2,i=S2){const s=i,r=e*Math.max(n,t);return Math.abs(n-t)<=Math.max(s,r)}function Zs(n,t,e,i){return n>t&&!Ge(n,t,e,i)}function bs(n,t,e,i){return n{let t=null,e=null;return(...i)=>(t&&i.every((s,r)=>s===t[r])||(t=i,e=n(...i)),e)},be=function(n,t,e){return ne?e:n},Ga=(n,t,e)=>{let[i,s]=n;s=e-t?[t,e]:(i=Math.min(Math.max(i,t),e-r),[i,i+r])};function Gl(n,t){let e;return n>t&&(e=n,n=t,t=e),i=>Math.max(n,Math.min(t,i))}let Og=!1;try{Og=typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"}catch{Og=!1}function wa(n,t,e){let i,s,r,a,o,l,h=0,d=!1,c=!1,u=!0;const g=!t&&t!==0&&Og;if(typeof n!="function")throw new TypeError("Expected a function");function p(b){const x=i,S=s;return i=s=void 0,h=b,a=n.apply(S,x),a}function _(b,x){return g?(cancelAnimationFrame(o),requestAnimationFrame(b)):setTimeout(b,x)}function f(b){const x=b-l;return l===void 0||x>=t||x<0||c&&b-h>=r}function m(){const b=Date.now();if(f(b))return v(b);o=_(m,function(x){const S=x-h,A=t-(x-l);return c?Math.min(A,r-S):A}(b))}function v(b){return o=void 0,u&&i?p(b):(i=s=void 0,a)}function y(...b){const x=Date.now(),S=f(x);if(i=b,s=this,l=x,S){if(o===void 0)return function(A){return h=A,o=_(m,t),d?p(A):a}(l);if(c)return o=_(m,t),p(l)}return o===void 0&&(o=_(m,t)),a}return t=+t||0,yt(e)&&(d=!!e.leading,c="maxWait"in e,c&&(r=Math.max(H(e.maxWait)?e.maxWait:0,t)),u="trailing"in e?!!e.trailing:u),y.cancel=function(){o!==void 0&&function(b){if(g)return cancelAnimationFrame(b);clearTimeout(b)}(o),h=0,i=l=s=o=void 0},y.flush=function(){return o===void 0?a:v(Date.now())},y.pending=function(){return o!==void 0},y}Og=!1;function yr(n,t,e){let i=!0,s=!0;if(typeof n!="function")throw new TypeError("Expected a function");return yt(e)&&(i="leading"in e?!!e.leading:i,s="trailing"in e?!!e.trailing:s),wa(n,t,{leading:i,trailing:s,maxWait:t})}function od(n,t){return e=>n*(1-e)+t*e}function k2(n,t){return function(e){return Math.round(n*(1-e)+t*e)}}function T2(n,t){const e=n.valueOf(),i=t.valueOf(),s=new Date;return r=>(s.setTime(e*(1-r)+i*r),s)}const $0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jm=new RegExp($0.source,"g");function M2(n){return function(){return n}}function w2(n){return function(t){return n(t)+""}}function C2(n,t){let e,i,s,r=$0.lastIndex=jm.lastIndex=0,a=-1;const o=[],l=[];for(n+="",t+="";(e=$0.exec(n))&&(i=jm.exec(t));)(s=i.index)>r&&(s=t.slice(r,s),o[a]?o[a]+=s:o[++a]=s),(e=e[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:od(e,i)})),r=jm.lastIndex;return r1?0:n<-1?oe:Math.acos(n)}function NS(n){return n>=1?In:n<=-1?-In:Math.asin(n)}function US(n,t,e,i,s){let r=e,a=i;return typeof n=="number"&&typeof e=="number"&&(r=(1-s)*n+s*e),typeof t=="number"&&typeof i=="number"&&(a=(1-s)*t+s*i),{x:r,y:a}}function Y0(n,t){return n[0]*t[1]-n[1]*t[0]}function R2(n,t){return Wt(n[0]-t[0])+Wt(n[1]-t[1])<1e-12}function _P(n,t=10){return Math.round(n*t)/t}function Nl(n){const t=n.toString().split(/[eE]/),e=(t[0].split(".")[1]||"").length-(+t[1]||0);return e>0?e:0}function es(n,t){return _P(n+t,10**Math.max(Nl(n),Nl(t)))}function X0(n,t){return _P(n-t,10**Math.max(Nl(n),Nl(t)))}class Ie{constructor(t=0,e=0,i,s){this.x=0,this.y=0,this.x=t,this.y=e,this.x1=i,this.y1=s}clone(){return new Ie(this.x,this.y)}copyFrom(t){return this.x=t.x,this.y=t.y,this.x1=t.x1,this.y1=t.y1,this.defined=t.defined,this.context=t.context,this}set(t,e){return this.x=t,this.y=e,this}add(t){return J(t)?(this.x+=t,void(this.y+=t)):(this.x+=t.x,this.y+=t.y,this)}sub(t){return J(t)?(this.x-=t,void(this.y-=t)):(this.x-=t.x,this.y-=t.y,this)}multi(t){throw new Error("暂不支持")}div(t){throw new Error("暂不支持")}}class Ke{static distancePP(t,e){return Wn($o(t.x-e.x,2)+$o(t.y-e.y,2))}static distanceNN(t,e,i,s){return Wn($o(t-i,2)+$o(e-s,2))}static distancePN(t,e,i){return Wn($o(e-t.x,2)+$o(i-t.y,2))}static pointAtPP(t,e,i){return new Ie((e.x-t.x)*i+t.x,(e.y-t.y)*i+t.y)}}function te(n){return n*(Math.PI/180)}function Ul(n){return 180*n/Math.PI}const O2=(n=0)=>{if(n<0)for(;n<-ki;)n+=ki;else if(n>0)for(;n>ki;)n-=ki;return n},B2=O2;function ue(n,t,e){return t?{x:n.x+t*Math.cos(e),y:n.y+t*Math.sin(e)}:{x:n.x,y:n.y}}function ec(n,t={x:0,y:0},e=0,i=2*Math.PI){const{x:s,y:r}=n,{x:a,y:o}=t;let l=s-a,h=r-o;const d=Math.sqrt(l*l+h*h);if(d===0)return{radius:0,angle:0};l/=d,h/=d;let c=Math.atan2(h,l);if(ci)for(;c>=i;)c-=2*Math.PI;return{radius:d,angle:c}}function fP(n,t){return Math.atan2(t.y-n.y,t.x-n.x)}function va(n){for(;n<0;)n+=2*Math.PI;for(;n>=2*Math.PI;)n-=2*Math.PI;return n}function L2(n,t){const e=Math.abs(t-n);if(e>=2*Math.PI||2*Math.PI-e<1e-6)return[0,Math.PI/2,Math.PI,1.5*Math.PI];const i=va(Math.min(n,t)),s=i+e,r=[i,s];let a=Math.floor(i/Math.PI)*Math.PI/2;for(;ai&&r.push(a),a+=Math.PI/2;return r}function I2(n,t,e,i){const{x:s,y:r}=t,a=L2(e,i),{width:o,height:l}=n,h=[];return a.forEach(d=>{const c=Math.sin(d),u=Math.cos(d);c===1?h.push(l-r):c===-1?h.push(r):u===1?h.push(o-s):u===-1?h.push(s):(c>0?h.push(Math.abs((l-r)/c)):h.push(Math.abs(r/c)),u>0?h.push(Math.abs((o-s)/u)):h.push(Math.abs(s/u)))}),Math.min.apply(null,h)}function mP(n){return(n=va(n))>0&&n<=Math.PI/2?2:n>Math.PI/2&&n<=Math.PI?3:n>Math.PI&&n<=3*Math.PI/2?4:1}function Hm(n,t,e){n[0]=t[0]-e[0],n[1]=t[1]-e[1]}function vP(n,t,e,i){let s=n[0],r=t[0],a=e[0],o=i[0];return r=0&&o<=1&&[n[0]+s[0]*o,n[1]+s[1]*o]}function yP(n,t,e){if(n===null)return t;if(t===null)return n;const{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}=Sb(n,t,e);return i>=l||s<=o||r>=d||a<=h?{x1:0,y1:0,x2:0,y2:0}:{x1:Math.max(i,o),y1:Math.max(r,h),x2:Math.min(s,l),y2:Math.min(a,d)}}var ll;(function(n){n[n.NONE=0]="NONE",n[n.BBOX1=1]="BBOX1",n[n.BBOX2=2]="BBOX2"})(ll||(ll={}));const Sb=(n,t,e)=>{let i=n.x1,s=n.x2,r=n.y1,a=n.y2,o=t.x1,l=t.x2,h=t.y1,d=t.y2;return e&&(i>s&&([i,s]=[s,i]),r>a&&([r,a]=[a,r]),o>l&&([o,l]=[l,o]),h>d&&([h,d]=[d,h])),{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}};function F2(n,t,e){if(!n||!t)return ll.NONE;const{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}=Sb(n,t,e);return i>o&&sh&&ai&&lr&&dt.x2||n.x2t.y2||n.y2l||sd||a=t.x1&&n.x<=t.x2&&n.y>=t.y1&&n.y<=t.y2;let i=t.x1,s=t.x2,r=t.y1,a=t.y2;return i>s&&([i,s]=[s,i]),r>a&&([r,a]=[a,r]),n.x>=i&&n.x<=s&&n.y>=r&&n.y<=a}function Vm(n,t){return Math.abs(t[0]*n[0]+t[1]*n[1])}function hl({x:n,y:t},e,i={x:0,y:0}){return{x:(n-i.x)*Math.cos(e)-(t-i.y)*Math.sin(e)+i.x,y:(n-i.x)*Math.sin(e)+(t-i.y)*Math.cos(e)+i.y}}function K0(n){return{x:(n.x1+n.x2)/2,y:(n.y1+n.y2)/2}}function $S(n,t){const e=t?te(n.angle):n.angle,i=K0(n);return[hl({x:n.x1,y:n.y1},e,i),hl({x:n.x2,y:n.y1},e,i),hl({x:n.x2,y:n.y2},e,i),hl({x:n.x1,y:n.y2},e,i)]}function bP(n,t,e=!1,i){const s=$S(n,e),r=$S(t,e),a=(y,b)=>[b.x-y.x,b.y-y.y],o=K0(n),l=K0(t),h=a(o,l),d=a(s[0],s[1]),c=a(s[1],s[2]),u=a(r[0],r[1]),g=a(r[1],r[2]),p=e?te(n.angle):n.angle;let _=e?te(90-n.angle):n.angle+In;const f=e?te(t.angle):t.angle;let m=e?te(90-t.angle):t.angle+In;_>jt&&(_-=jt),m>jt&&(m-=jt);const v=(y,b,x,S)=>{const A=[Math.cos(b),Math.sin(b)];return y+(Vm(A,x)+Vm(A,S))/2>Vm(A,h)};return v((n.x2-n.x1)/2,p,u,g)&&v((n.y2-n.y1)/2,_,u,g)&&v((t.x2-t.x1)/2,f,d,c)&&v((t.y2-t.y1)/2,m,d,c)}let Bu,Lu,Iu,Du;function z2(n){return Bu=1/0,Lu=1/0,Iu=-1/0,Du=-1/0,n.forEach(t=>{Bu>t.x&&(Bu=t.x),Iut.y&&(Lu=t.y),Dut&&r>i||rs?o:0}function XS(n,t){return Math.abs(n-t)0&&H2(t[e-1].x,t[e-1].y,t[e].x,t[e].y,n))return!0;return!1}const qS=n=>{let t=n.charCodeAt(0),e=n.length===2?n.charCodeAt(1):0,i=t;return 55296<=t&&t<=56319&&56320<=e&&e<=57343&&(t&=1023,e&=1023,i=t<<10|e,i+=65536),i===12288||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":i===8361||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||i===172||i===175||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":i===161||i===164||167<=i&&i<=168||i===170||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||i===198||i===208||215<=i&&i<=216||222<=i&&i<=225||i===230||232<=i&&i<=234||236<=i&&i<=237||i===240||242<=i&&i<=243||247<=i&&i<=250||i===252||i===254||i===257||i===273||i===275||i===283||294<=i&&i<=295||i===299||305<=i&&i<=307||i===312||319<=i&&i<=322||i===324||328<=i&&i<=331||i===333||338<=i&&i<=339||358<=i&&i<=359||i===363||i===462||i===464||i===466||i===468||i===470||i===472||i===474||i===476||i===593||i===609||i===708||i===711||713<=i&&i<=715||i===717||i===720||728<=i&&i<=731||i===733||i===735||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||i===1025||1040<=i&&i<=1103||i===1105||i===8208||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||i===8240||8242<=i&&i<=8243||i===8245||i===8251||i===8254||i===8308||i===8319||8321<=i&&i<=8324||i===8364||i===8451||i===8453||i===8457||i===8467||i===8470||8481<=i&&i<=8482||i===8486||i===8491||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||i===8585||8592<=i&&i<=8601||8632<=i&&i<=8633||i===8658||i===8660||i===8679||i===8704||8706<=i&&i<=8707||8711<=i&&i<=8712||i===8715||i===8719||i===8721||i===8725||i===8730||8733<=i&&i<=8736||i===8739||i===8741||8743<=i&&i<=8748||i===8750||8756<=i&&i<=8759||8764<=i&&i<=8765||i===8776||i===8780||i===8786||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||i===8853||i===8857||i===8869||i===8895||i===8978||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||i===9675||9678<=i&&i<=9681||9698<=i&&i<=9701||i===9711||9733<=i&&i<=9734||i===9737||9742<=i&&i<=9743||9748<=i&&i<=9749||i===9756||i===9758||i===9792||i===9794||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||i===9839||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||i===9955||9960<=i&&i<=9983||i===10045||i===10071||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||i===65533||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"};function Bg(n,t={},e){e||(e=1);const{fontStyle:i=t.fontStyle,fontVariant:s=t.fontVariant,fontWeight:r=t.fontWeight,fontSize:a=t.fontSize,fontFamily:o=t.fontFamily}=n;return(i?i+" ":"")+(s?s+" ":"")+(r?r+" ":"")+a*e+"px "+(o||"sans-serif")}class Fi{constructor(t,e){this._numberCharSize=null,this._fullCharSize=null,this._letterCharSize=null,this._specialCharSizeMap={},this._canvas=null,this._context=null,this._contextSaved=!1,this._notSupportCanvas=!1,this._notSupportVRender=!1,this._userSpec={},this.specialCharSet=`-/: .,@%'"~`,this._option=t,this._userSpec=e??{},this.textSpec=this._initSpec(),C(t.specialCharSet)&&(this.specialCharSet=t.specialCharSet),this._standardMethod=C(t.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(P(this._canvas)&&(C(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),P(this._canvas)&&typeof window<"u"&&window.document!==void 0&&globalThis&&C(globalThis.document)&&(this._canvas=globalThis.document.createElement("canvas"))),P(this._context)&&C(this._canvas)){const t=this._canvas.getContext("2d");C(t)&&(t.save(),t.font=Bg(this.textSpec),this._contextSaved=!0,this._context=t)}return!P(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){var t,e,i;const{defaultFontParams:s={}}=this._option,{fontStyle:r=s.fontStyle,fontVariant:a=s.fontVariant,fontWeight:o=(t=s.fontWeight)!==null&&t!==void 0?t:"normal",fontSize:l=(e=s.fontSize)!==null&&e!==void 0?e:12,fontFamily:h=(i=s.fontFamily)!==null&&i!==void 0?i:"sans-serif",align:d,textAlign:c=d??"center",baseline:u,textBaseline:g=u??"middle",ellipsis:p,limit:_}=this._userSpec;let{lineHeight:f=l}=this._userSpec;if(tt(f)&&f[f.length-1]==="%"){const m=Number.parseFloat(f.substring(0,f.length-1))/100;f=l*m}return{fontStyle:r,fontVariant:a,fontFamily:h,fontSize:l,fontWeight:o,textAlign:c,textBaseline:g,ellipsis:p,limit:_,lineHeight:f}}measure(t,e){switch(e){case"vrender":case"canopus":return this.fullMeasure(t);case"canvas":return this.measureWithNaiveCanvas(t);case"simple":return this.quickMeasureWithoutCanvas(t);default:return this.quickMeasure(t)}}fullMeasure(t){if(P(t))return{width:0,height:0};if(P(this._option.getTextBounds)||!this._notSupportVRender)return this.measureWithNaiveCanvas(t);const{fontFamily:e,fontSize:i,fontWeight:s,textAlign:r,textBaseline:a,ellipsis:o,limit:l,lineHeight:h}=this.textSpec;let d;try{const c=this._option.getTextBounds({text:t,fontFamily:e,fontSize:i,fontWeight:s,textAlign:r,textBaseline:a,ellipsis:!!o,maxLineWidth:l||1/0,lineHeight:h});d={width:c.width(),height:c.height()}}catch{this._notSupportVRender=!0,d=this.measureWithNaiveCanvas(t)}return d}measureWithNaiveCanvas(t){return this._measureReduce(t,this._measureWithNaiveCanvas.bind(this))}_measureWithNaiveCanvas(t){var e;if(!this.initContext())return this._quickMeasureWithoutCanvas(t);const i=this._context.measureText(t),{fontSize:s,lineHeight:r}=this.textSpec;return{width:i.width,height:(e=r)!==null&&e!==void 0?e:s}}quickMeasure(t){return this._measureReduce(t,this._quickMeasure.bind(this))}_quickMeasure(t){const e={width:0,height:0};for(let i=0;il.toString());return o.length===0?a:o.length===1?e(o[0]):{width:o.reduce((l,h)=>Math.max(l,e(h).width),0),height:o.length*(((i=r)!==null&&i!==void 0?i:s)+1)+1}}return e(t.toString())}_measureNumberChar(){if(P(this._numberCharSize)){const t=this._standardMethod(Fi.NUMBERS_CHAR_SET);this._numberCharSize={width:t.width/Fi.NUMBERS_CHAR_SET.length,height:t.height}}return this._numberCharSize}_measureFullSizeChar(){return P(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(Fi.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(P(this._letterCharSize)){const t=this._standardMethod(Fi.ALPHABET_CHAR_SET);this._letterCharSize={width:t.width/Fi.ALPHABET_CHAR_SET.length,height:t.height}}return this._letterCharSize}_measureSpecialChar(t){return C(this._specialCharSizeMap[t])?this._specialCharSizeMap[t]:this.specialCharSet.includes(t)?(this._specialCharSizeMap[t]=this._standardMethod(t),this._specialCharSizeMap[t]):null}release(){C(this._canvas)&&(this._canvas=null),C(this._context)&&(this._contextSaved&&(this._context.restore(),this._contextSaved=!1),this._context=null)}}Fi.ALPHABET_CHAR_SET="abcdefghijklmnopqrstuvwxyz",Fi.NUMBERS_CHAR_SET="0123456789",Fi.FULL_SIZE_CHAR="字";const xP=(n,t)=>{const{x1:e,x2:i,y1:s,y2:r}=n,a=Math.abs(i-e),o=Math.abs(r-s);let l=(e+i)/2,h=(s+r)/2,d=0,c=0;switch(t){case"top":case"inside-top":c=-.5;break;case"bottom":case"inside-bottom":c=.5;break;case"left":case"inside-left":d=-.5;break;case"right":case"inside-right":d=.5;break;case"top-right":d=.5,c=-.5;break;case"top-left":d=-.5,c=-.5;break;case"bottom-right":d=.5,c=.5;break;case"bottom-left":d=-.5,c=.5}return l+=d*a,h+=c*o,{x:l,y:h}};function kb(n,t,e){const{x1:i,y1:s,x2:r,y2:a}=t;return e.onlyTranslate()?(n!==t&&n.setValue(t.x1,t.y1,t.x2,t.y2),n.translate(e.e,e.f),t):(n.clear(),n.add(e.a*i+e.c*s+e.e,e.b*i+e.d*s+e.f),n.add(e.a*r+e.c*s+e.e,e.b*r+e.d*s+e.f),n.add(e.a*r+e.c*a+e.e,e.b*r+e.d*a+e.f),n.add(e.a*i+e.c*a+e.e,e.b*i+e.d*a+e.f),t)}class wi{constructor(t){t?this.setValue(t.x1,t.y1,t.x2,t.y2):this.clear()}clone(){return new wi(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}setValue(t=0,e=0,i=0,s=0){return this.x1=t,this.y1=e,this.x2=i,this.y2=s,this}set(t=0,e=0,i=0,s=0){return ithis.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this}expand(t=0){return U(t)?(this.y1-=t[0],this.x2+=t[1],this.y2+=t[2],this.x1-=t[3]):(this.x1-=t,this.y1-=t,this.x2+=t,this.y2+=t),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(t=0,e=0){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this}rotate(t=0,e=0,i=0){const s=this.rotatedPoints(t,e,i);return this.clear().add(s[0],s[1]).add(s[2],s[3]).add(s[4],s[5]).add(s[6],s[7])}scale(t=0,e=0,i=0,s=0){const r=this.scalePoints(t,e,i,s);return this.clear().add(r[0],r[1]).add(r[2],r[3])}union(t){return t.x1this.x2&&(this.x2=t.x2),t.y2>this.y2&&(this.y2=t.y2),this}intersect(t){return t.x1>this.x1&&(this.x1=t.x1),t.y1>this.y1&&(this.y1=t.y1),t.x2=t.x2&&this.y1<=t.y1&&this.y2>=t.y2}alignsWith(t){return t&&(this.x1===t.x1||this.x2===t.x2||this.y1===t.y1||this.y2===t.y2)}intersects(t){return t&&!(this.x2t.x2||this.y2t.y2)}contains(t=0,e=0){return!(tthis.x2||ethis.y2)}containsPoint(t){return!(t.xthis.x2||t.ythis.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(t=0){return this.x1*=t,this.x2*=t,this}scaleY(t=0){return this.y1*=t,this.y2*=t,this}transformWithMatrix(t){return kb(this,this,t),this}copy(t){return this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2,this}rotatedPoints(t,e,i){const{x1:s,y1:r,x2:a,y2:o}=this,l=Math.cos(t),h=Math.sin(t),d=e-e*l+i*h,c=i-e*h-i*l;return[l*s-h*r+d,h*s+l*r+c,l*s-h*o+d,h*s+l*o+c,l*a-h*r+d,h*a+l*r+c,l*a-h*o+d,h*a+l*o+c]}scalePoints(t,e,i,s){const{x1:r,y1:a,x2:o,y2:l}=this;return[t*r+(1-t)*i,e*a+(1-e)*s,t*o+(1-t)*i,e*l+(1-e)*s]}}class Oe extends wi{}class V2 extends wi{constructor(t,e=0){super(t),t&&(this.angle=e)}intersects(t){return bP(this,t)}setValue(t=0,e=0,i=0,s=0,r=0){return super.setValue(t,e,i,s),this.angle=r,this}}class Ee{constructor(t=1,e=0,i=0,s=1,r=0,a=0){this.a=t,this.b=e,this.c=i,this.d=s,this.e=r,this.f=a}equalToMatrix(t){return!(this.e!==t.e||this.f!==t.f||this.a!==t.a||this.d!==t.d||this.b!==t.b||this.c!==t.c)}equalTo(t,e,i,s,r,a){return!(this.e!==r||this.f!==a||this.a!==t||this.d!==s||this.b!==e||this.c!==i)}setValue(t,e,i,s,r,a){return this.a=t,this.b=e,this.c=i,this.d=s,this.e=r,this.f=a,this}reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this}getInverse(){const t=this.a,e=this.b,i=this.c,s=this.d,r=this.e,a=this.f,o=new Ee,l=t*s-e*i;return o.a=s/l,o.b=-e/l,o.c=-i/l,o.d=t/l,o.e=(i*a-s*r)/l,o.f=-(t*a-e*r)/l,o}rotate(t){const e=Math.cos(t),i=Math.sin(t),s=this.a*e+this.c*i,r=this.b*e+this.d*i,a=this.a*-i+this.c*e,o=this.b*-i+this.d*e;return this.a=s,this.b=r,this.c=a,this.d=o,this}rotateByCenter(t,e,i){const s=Math.cos(t),r=Math.sin(t),a=(1-s)*e+r*i,o=(1-s)*i-r*e,l=s*this.a-r*this.b,h=r*this.a+s*this.b,d=s*this.c-r*this.d,c=r*this.c+s*this.d,u=s*this.e-r*this.f+a,g=r*this.e+s*this.f+o;return this.a=l,this.b=h,this.c=d,this.d=c,this.e=u,this.f=g,this}scale(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this}setScale(t,e){return this.b=this.b/this.a*t,this.c=this.c/this.d*e,this.a=t,this.d=e,this}transform(t,e,i,s,r,a){return this.multiply(t,e,i,s,r,a),this}translate(t,e){return this.e+=this.a*t+this.c*e,this.f+=this.b*t+this.d*e,this}transpose(){const{a:t,b:e,c:i,d:s,e:r,f:a}=this;return this.a=e,this.b=t,this.c=s,this.d=i,this.e=a,this.f=r,this}multiply(t,e,i,s,r,a){const o=this.a,l=this.b,h=this.c,d=this.d,c=o*t+h*e,u=l*t+d*e,g=o*i+h*s,p=l*i+d*s,_=o*r+h*a+this.e,f=l*r+d*a+this.f;return this.a=c,this.b=u,this.c=g,this.d=p,this.e=_,this.f=f,this}interpolate(t,e){const i=new Ee;return i.a=this.a+(t.a-this.a)*e,i.b=this.b+(t.b-this.b)*e,i.c=this.c+(t.c-this.c)*e,i.d=this.d+(t.d-this.d)*e,i.e=this.e+(t.e-this.e)*e,i.f=this.f+(t.f-this.f)*e,i}transformPoint(t,e){const{a:i,b:s,c:r,d:a,e:o,f:l}=this,h=i*a-s*r,d=a/h,c=-s/h,u=-r/h,g=i/h,p=(r*l-a*o)/h,_=-(i*l-s*o)/h,{x:f,y:m}=t;e.x=f*d+m*u+p,e.y=f*c+m*g+_}onlyTranslate(t=1){return this.a===t&&this.b===0&&this.c===0&&this.d===t}clone(){return new Ee(this.a,this.b,this.c,this.d,this.e,this.f)}toTransformAttrs(){const t=this.a,e=this.b,i=this.c,s=this.d,r=t*s-e*i,a={x:this.e,y:this.f,rotateDeg:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!==0||e!==0){const o=Math.sqrt(t*t+e*e);a.rotateDeg=e>0?Math.acos(t/o):-Math.acos(t/o),a.scaleX=o,a.scaleY=r/o,a.skewX=(t*i+e*s)/r,a.skewY=0}else if(i!==0||s!==0){const o=Math.sqrt(i*i+s*s);a.rotateDeg=Math.PI/2-(s>0?Math.acos(-i/o):-Math.acos(i/o)),a.scaleX=r/o,a.scaleY=o,a.skewX=0,a.skewY=(t*i+e*s)/r}return a.rotateDeg=Ul(a.rotateDeg),a}}function W2(n,t,e,i,s,r,a,o){const l=t.a,h=t.b,d=t.c,c=t.d,u=t.e,g=t.f,p=fe(a),_=le(a);let f,m;o?(f=o[0],m=o[1]):(f=e,m=i);const v=f-e,y=m-i,b=l*p+d*_,x=h*p+c*_,S=d*p-l*_,A=c*p-h*_;n.a=s*b,n.b=s*x,n.c=r*S,n.d=r*A,n.e=u+l*f+d*m-b*v-S*y,n.f=g+h*f+c*m-x*v-A*y}class G2{constructor(){this.CLEAN_THRESHOLD=1e3,this.L_TIME=1e3,this.R_COUNT=1,this.R_TIMESTAMP_MAX_SIZE=20}clearCache(t,e){const{CLEAN_THRESHOLD:i=this.CLEAN_THRESHOLD,L_TIME:s=this.L_TIME,R_COUNT:r=this.R_COUNT}=e;if(t.size{a++,t.delete(h)},l=Date.now();return t.forEach((h,d)=>{if(h.timestamp.length=r)););if(cs;)h.timestamp.shift()}),a}addLimitedTimestamp(t,e,i){const{R_TIMESTAMP_MAX_SIZE:s=this.R_TIMESTAMP_MAX_SIZE}=i;t.timestamp.length>s&&t.timestamp.shift(),t.timestamp.push(e)}clearTimeStamp(t,e){const{L_TIME:i=this.L_TIME}=e,s=Date.now();t.forEach(r=>{for(;s-r.timestamp[0]>i;)r.timestamp.shift()})}clearItemTimestamp(t,e){const{L_TIME:i=this.L_TIME}=e,s=Date.now();for(;s-t.timestamp[0]>i;)t.timestamp.shift()}}function Lg(n,t,e){t/=100,e/=100;const i=(1-Math.abs(2*e-1))*t,s=i*(1-Math.abs(n/60%2-1)),r=e-i/2;let a=0,o=0,l=0;return 0<=n&&n<60?(a=i,o=s,l=0):60<=n&&n<120?(a=s,o=i,l=0):120<=n&&n<180?(a=0,o=i,l=s):180<=n&&n<240?(a=0,o=s,l=i):240<=n&&n<300?(a=s,o=0,l=i):300<=n&&n<360&&(a=i,o=0,l=s),a=Math.round(255*(a+r)),o=Math.round(255*(o+r)),l=Math.round(255*(l+r)),{r:a,g:o,b:l}}function uf(n,t,e){n/=255,t/=255,e/=255;const i=Math.min(n,t,e),s=Math.max(n,t,e),r=s-i;let a=0,o=0,l=0;return a=r===0?0:s===n?(t-e)/r%6:s===t?(e-n)/r+2:(n-t)/r+4,a=Math.round(60*a),a<0&&(a+=360),l=(s+i)/2,o=r===0?0:r/(1-Math.abs(2*l-1)),o=+(100*o).toFixed(1),l=+(100*l).toFixed(1),{h:a,s:o,l}}const N2=/^#([0-9a-f]{3,8})$/,ZS={transparent:4294967040},vg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function SP(n){return J(n)?new $i(n>>16,n>>8&255,255&n,1):U(n)?new $i(n[0],n[1],n[2]):new $i(255,255,255)}function U2(n){return J(n)?new $i(n>>>24,n>>>16&255,n>>>8&255,255&n):U(n)?new $i(n[0],n[1],n[2],n[3]):new $i(255,255,255,1)}function Wm(n){return n<.04045?.0773993808*n:Math.pow(.9478672986*n+.0521327014,2.4)}function Gm(n){return n<.0031308?12.92*n:1.055*Math.pow(n,.41666)-.055}const JS=(n,t)=>{const e=N2.exec(n);if(t||e){const i=parseInt(e[1],16),s=e[1].length;return s===3?new $i((i>>8&15)+((i>>8&15)<<4),(i>>4&15)+((i>>4&15)<<4),(15&i)+((15&i)<<4),1):s===6?SP(i):s===8?new $i(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):null}};class Xe{static Brighter(t,e=1){return e===1?t:new Xe(t).brighter(e).toRGBA()}static SetOpacity(t,e=1){return e===1?t:new Xe(t).setOpacity(e).toRGBA()}static getColorBrightness(t,e="hsl"){const i=t instanceof Xe?t:new Xe(t);switch(e){case"hsv":default:return i.getHSVBrightness();case"hsl":return i.getHSLBrightness();case"lum":return i.getLuminance();case"lum2":return i.getLuminance2();case"lum3":return i.getLuminance3()}}static parseColorString(t){if(C(ZS[t]))return U2(ZS[t]);if(C(vg[t]))return SP(vg[t]);const e=`${t}`.trim().toLowerCase(),i=JS(e);if(i!==void 0)return i;if(/^(rgb|RGB|rgba|RGBA)/.test(e)){const s=e.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,"").split(",");return new $i(parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10),parseFloat(s[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(e)){const s=e.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,"").split(","),r=Lg(parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10));return new $i(r.r,r.g,r.b,parseFloat(s[3]))}}constructor(t){const e=Xe.parseColorString(t);e?this.color=e:(console.warn(`Warn: 传入${t}无法解析为Color`),this.color=new $i(255,255,255))}toRGBA(){return this.color.formatRgb()}toString(){return this.color.formatRgb()}toHex(){return this.color.formatHex()}toHsl(){return this.color.formatHsl()}brighter(t){const{r:e,g:i,b:s}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(e*t))),this.color.g=Math.max(0,Math.min(255,Math.floor(i*t))),this.color.b=Math.max(0,Math.min(255,Math.floor(s*t))),this}add(t){const{r:e,g:i,b:s}=this.color;return this.color.r+=Math.min(255,e+t.color.r),this.color.g+=Math.min(255,i+t.color.g),this.color.b+=Math.min(255,s+t.color.b),this}sub(t){return this.color.r=Math.max(0,this.color.r-t.color.r),this.color.g=Math.max(0,this.color.g-t.color.g),this.color.b=Math.max(0,this.color.b-t.color.b),this}multiply(t){const{r:e,g:i,b:s}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(e*t.color.r))),this.color.g=Math.max(0,Math.min(255,Math.floor(i*t.color.g))),this.color.b=Math.max(0,Math.min(255,Math.floor(s*t.color.b))),this}getHSVBrightness(){return Math.max(this.color.r,this.color.g,this.color.b)/255}getHSLBrightness(){return .5*(Math.max(this.color.r,this.color.g,this.color.b)/255+Math.min(this.color.r,this.color.g,this.color.b)/255)}setHsl(t,e,i){const s=this.color.opacity,r=uf(this.color.r,this.color.g,this.color.b),a=Lg(P(t)?r.h:be(t,0,360),P(e)?r.s:e>=0&&e<=1?100*e:e,P(i)?r.l:i<=1&&i>=0?100*i:i);return this.color=new $i(a.r,a.g,a.b,s),this}setRGB(t,e,i){return!P(t)&&(this.color.r=t),!P(e)&&(this.color.g=e),!P(i)&&(this.color.b=i),this}setHex(t){const e=`${t}`.trim().toLowerCase(),i=JS(e,!0);return i??this}setColorName(t){const e=vg[t.toLowerCase()];return e!==void 0?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}setScalar(t){return this.color.r=t,this.color.g=t,this.color.b=t,this}setOpacity(t=1){return this.color.opacity=t,this}getLuminance(){return(.2126*this.color.r+.7152*this.color.g+.0722*this.color.b)/255}getLuminance2(){return(.2627*this.color.r+.678*this.color.g+.0593*this.color.b)/255}getLuminance3(){return(.299*this.color.r+.587*this.color.g+.114*this.color.b)/255}clone(){return new Xe(this.color.toString())}copyGammaToLinear(t,e=2){return this.color.r=Math.pow(t.color.r,e),this.color.g=Math.pow(t.color.g,e),this.color.b=Math.pow(t.color.b,e),this}copyLinearToGamma(t,e=2){const i=e>0?1/e:1;return this.color.r=Math.pow(t.color.r,i),this.color.g=Math.pow(t.color.g,i),this.color.b=Math.pow(t.color.b,i),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.color.r=Wm(t.color.r),this.color.g=Wm(t.color.g),this.color.b=Wm(t.color.b),this}copyLinearToSRGB(t){return this.color.r=Gm(t.color.r),this.color.g=Gm(t.color.g),this.color.b=Gm(t.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}}class $i{constructor(t,e,i,s){this.r=isNaN(+t)?255:Math.max(0,Math.min(255,+t)),this.g=isNaN(+e)?255:Math.max(0,Math.min(255,+e)),this.b=isNaN(+i)?255:Math.max(0,Math.min(255,+i)),C(s)?this.opacity=isNaN(+s)?1:Math.max(0,Math.min(1,+s)):this.opacity=1}formatHex(){return`#${Fu(this.r)+Fu(this.g)+Fu(this.b)+(this.opacity===1?"":Fu(255*this.opacity))}`}formatRgb(){const t=this.opacity;return`${t===1?"rgb(":"rgba("}${this.r},${this.g},${this.b}${t===1?")":`,${t})`}`}formatHsl(){const t=this.opacity,{h:e,s:i,l:s}=uf(this.r,this.g,this.b);return`${t===1?"hsl(":"hsla("}${e},${i}%,${s}%${t===1?")":`,${t})`}`}toString(){return this.formatHex()}}function AP(n){let t="",e="",i="";const s=n[0]==="#"?1:0;for(let r=s;r{const c=Math.round(e*(1-d)+i*d),u=Math.round(s*(1-d)+r*d),g=Math.round(a*(1-d)+o*d);return new $i(c,u,g,l*(1-d)+h*d)}}const X2=Object.freeze(Object.defineProperty({__proto__:null,Color:Xe,DEFAULT_COLORS:vg,RGB:$i,hexToRgb:AP,hslToRgb:Lg,interpolateRgb:Y2,rgbToHex:$2,rgbToHsl:uf},Symbol.toStringTag,{value:"Module"}));function Yi(n){if(H(n))return[n,n,n,n];if(U(n)){const t=n.length;if(t===1){const e=n[0];return[e,e,e,e]}if(t===2){const[e,i]=n;return[e,i,e,i]}if(t===3){const[e,i,s]=n;return[e,i,s,i]}if(t===4)return n}if(yt(n)){const{top:t=0,right:e=0,bottom:i=0,left:s=0}=n;return[t,e,i,s]}return[0,0,0,0]}function q0(n,t=0,e=0){if(!n)return{width:t,height:e};let i;try{i=window==null?void 0:window.getComputedStyle}catch{i=()=>({})}const s=i(n);if(/^(\d*\.?\d+)(px)$/.exec(s.width)){const r=parseFloat(s.width)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)||n.clientWidth-1,a=parseFloat(s.height)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)||n.clientHeight-1;return{width:r<=0?t:r,height:a<=0?e:a}}return{width:t,height:e}}function K2(n){const{x:t,y:e}=n.getBoundingClientRect();return{x:t,y:e}}const q2=(n="")=>{const t={};return n.split(";").forEach(e=>{if(e){const i=e.split(":");if(i.length===2){const s=i[0].trim(),r=i[1].trim();s&&r&&(t[s]=r)}}}),t},QS=n=>n.replace(/([A-Z])/g,"-$1").toLowerCase();var Zi=63710088e-1,Z2={centimeters:Zi*100,centimetres:Zi*100,degrees:Zi/111325,feet:Zi*3.28084,inches:Zi*39.37,kilometers:Zi/1e3,kilometres:Zi/1e3,meters:Zi,metres:Zi,miles:Zi/1609.344,millimeters:Zi*1e3,millimetres:Zi*1e3,nauticalmiles:Zi/1852,radians:1,yards:Zi*1.0936};function t1(n,t,e){e===void 0&&(e={});var i={type:"Feature"};return(e.id===0||e.id)&&(i.id=e.id),e.bbox&&(i.bbox=e.bbox),i.properties=t||{},i.geometry=n,i}function kP(n,t){t===void 0&&(t={});var e={type:"FeatureCollection"};return t.id&&(e.id=t.id),t.bbox&&(e.bbox=t.bbox),e.features=n,e}function J2(n,t){t===void 0&&(t="kilometers");var e=Z2[t];if(!e)throw new Error(t+" units is invalid");return n/e}function Q2(n){return!!n&&n.constructor===Object}function tF(n){return n.type==="Feature"?n.geometry:n}function eF(n,t){if(!n||!t)return!1;const e=tF(t),i=e.type,s=t.bbox;let r=e.coordinates;if(s&&mg(n,{x1:s[0],x2:s[1],y1:s[1],y2:s[3]},!0)===!0)return!1;i==="Polygon"&&(r=[r]);let a=!1;for(let o=0;o({x:h[0],y:h[1]})),n.x,n.y))return a=!0,a;return a}function iF(n,t,e,i={}){const s=te(n[0]),r=te(n[1]),a=te(e),o=J2(t,i.units),l=Math.asin(Math.sin(r)*Math.cos(o)+Math.cos(r)*Math.sin(o)*Math.cos(a)),h=s+Math.atan2(Math.sin(a)*Math.sin(o)*Math.cos(r),Math.cos(o)-Math.sin(r)*Math.sin(l));return{x:Ul(h),y:Ul(l)}}class ns{static getInstance(){return ns.instance||(ns.instance=new ns),ns.instance}constructor(){this.locale_shortWeekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.locale_periods=["AM","PM"],this.locale_weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.locale_shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.numberRe=/^\s*\d+/,this.pads={"-":"",_:" ",0:"0"},this.requoteRe=/[\\^$*+?|[\]().{}]/g,this.locale_months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.formatShortWeekday=t=>this.locale_shortWeekdays[t.getDay()],this.formatWeekday=t=>this.locale_weekdays[t.getDay()],this.formatShortMonth=t=>this.locale_shortMonths[t.getMonth()],this.formatMonth=t=>this.locale_months[t.getMonth()],this.formatDayOfMonth=(t,e)=>this.pad(t.getDate(),e,2),this.formatHour24=(t,e)=>this.pad(t.getHours(),e,2),this.formatHour12=(t,e)=>this.pad(t.getHours()%12||12,e,2),this.formatMilliseconds=(t,e)=>this.pad(t.getMilliseconds(),e,3),this.formatMonthNumber=(t,e)=>this.pad(t.getMonth()+1,e,2),this.formatMinutes=(t,e)=>this.pad(t.getMinutes(),e,2),this.formatPeriod=t=>this.locale_periods[+(t.getHours()>=12)],this.formatSeconds=(t,e)=>this.pad(t.getSeconds(),e,2),this.formatFullYear=(t,e)=>this.pad(t.getFullYear()%1e4,e,4),this.formatUTCShortWeekday=t=>this.locale_shortWeekdays[t.getUTCDay()],this.formatUTCWeekday=t=>this.locale_weekdays[t.getUTCDay()],this.formatUTCShortMonth=t=>this.locale_shortMonths[t.getUTCMonth()],this.formatUTCMonth=t=>this.locale_months[t.getUTCMonth()],this.formatUTCDayOfMonth=(t,e)=>this.pad(t.getUTCDate(),e,2),this.formatUTCHour24=(t,e)=>this.pad(t.getUTCHours(),e,2),this.formatUTCHour12=(t,e)=>this.pad(t.getUTCHours()%12||12,e,2),this.formatUTCMilliseconds=(t,e)=>this.pad(t.getUTCMilliseconds(),e,3),this.formatUTCMonthNumber=(t,e)=>this.pad(t.getUTCMonth()+1,e,2),this.formatUTCMinutes=(t,e)=>this.pad(t.getUTCMinutes(),e,2),this.formatUTCPeriod=t=>this.locale_periods[+(t.getUTCHours()>=12)],this.formatUTCSeconds=(t,e)=>this.pad(t.getUTCSeconds(),e,2),this.formatUTCFullYear=(t,e)=>this.pad(t.getUTCFullYear()%1e4,e,4),this.formats={a:this.formatShortWeekday,A:this.formatWeekday,b:this.formatShortMonth,B:this.formatMonth,d:this.formatDayOfMonth,e:this.formatDayOfMonth,H:this.formatHour24,I:this.formatHour12,L:this.formatMilliseconds,m:this.formatMonthNumber,M:this.formatMinutes,p:this.formatPeriod,S:this.formatSeconds,Y:this.formatFullYear},this.utcFormats={a:this.formatUTCShortWeekday,A:this.formatUTCWeekday,b:this.formatUTCShortMonth,B:this.formatUTCMonth,d:this.formatUTCDayOfMonth,e:this.formatUTCDayOfMonth,H:this.formatUTCHour24,I:this.formatUTCHour12,L:this.formatUTCMilliseconds,m:this.formatUTCMonthNumber,M:this.formatUTCMinutes,p:this.formatUTCPeriod,S:this.formatUTCSeconds,Y:this.formatUTCFullYear},this.parseShortWeekday=(t,e,i)=>{const s=this.shortWeekdayRe.exec(e.slice(i));return s?(t.w=this.shortWeekdayLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseWeekday=(t,e,i)=>{const s=this.weekdayRe.exec(e.slice(i));return s?(t.w=this.weekdayLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseShortMonth=(t,e,i)=>{const s=this.shortMonthRe.exec(e.slice(i));return s?(t.m=this.shortMonthLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseMonth=(t,e,i)=>{const s=this.monthRe.exec(e.slice(i));return s?(t.m=this.monthLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseDayOfMonth=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.d=+s[0],i+s[0].length):-1},this.parseHour24=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.H=+s[0],i+s[0].length):-1},this.parseMilliseconds=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+3));return s?(t.L=+s[0],i+s[0].length):-1},this.parseMonthNumber=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.m=s-1,i+s[0].length):-1},this.parseMinutes=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.M=+s[0],i+s[0].length):-1},this.parsePeriod=(t,e,i)=>{const s=this.periodRe.exec(e.slice(i));return s?(t.p=this.periodLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseSeconds=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.S=+s[0],i+s[0].length):-1},this.parseFullYear=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+4));return s?(t.y=+s[0],i+s[0].length):-1},this.parses={a:this.parseShortWeekday,A:this.parseWeekday,b:this.parseShortMonth,B:this.parseMonth,d:this.parseDayOfMonth,e:this.parseDayOfMonth,H:this.parseHour24,I:this.parseHour24,L:this.parseMilliseconds,m:this.parseMonthNumber,M:this.parseMinutes,p:this.parsePeriod,S:this.parseSeconds,Y:this.parseFullYear},this.timeFormat=(t,e)=>this.newFormat(t,this.formats)(new Date(this.getFullTimeStamp(e))),this.timeUTCFormat=(t,e)=>this.newFormat(t,this.utcFormats)(new Date(this.getFullTimeStamp(e))),this.timeParse=(t,e)=>this.newParse(t,!1)(e+""),this.requoteF=this.requote.bind(this),this.periodRe=this.formatRe(this.locale_periods),this.periodLookup=this.formatLookup(this.locale_periods),this.weekdayRe=this.formatRe(this.locale_weekdays),this.weekdayLookup=this.formatLookup(this.locale_weekdays),this.shortWeekdayRe=this.formatRe(this.locale_shortWeekdays),this.shortWeekdayLookup=this.formatLookup(this.locale_shortWeekdays),this.monthRe=this.formatRe(this.locale_months),this.monthLookup=this.formatLookup(this.locale_months),this.shortMonthRe=this.formatRe(this.locale_shortMonths),this.shortMonthLookup=this.formatLookup(this.locale_shortMonths)}requote(t){return t.replace(this.requoteRe,"\\$&")}localDate(t){if(0<=t.y&&t.y<100){const e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}utcDate(t){if(0<=t.y&&t.y<100){const e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}newDate(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}formatRe(t){return new RegExp("^(?:"+t.map(this.requoteF).join("|")+")","i")}formatLookup(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}pad(t,e,i){const s=t<0?"-":"",r=(s?-t:t)+"",a=r.length;return s+(a=o)return-1;if(l=e.charCodeAt(r++),l===37){if(l=e.charAt(r++),h=this.parses[l in this.pads?e.charAt(r++):l],!h||(s=h(t,i,s))<0)return-1}else if(l!==i.charCodeAt(s++))return-1}return s}newParse(t,e){const i=this;return function(s){const r=i.newDate(1900,void 0,1);return i.parseSpecifier(r,t,s+="",0)!==s.length?null:"Q"in r?new Date(r.Q):"s"in r?new Date(1e3*r.s+("L"in r?r.L:0)):(e&&!("Z"in r)&&(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),r.m===void 0&&(r.m="q"in r?r.q:0),"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,i.utcDate(r)):i.localDate(r))}}newFormat(t,e){const i=this;return function(s){const r=[];let a=-1,o=0;const l=t.length;let h,d,c;for(s instanceof Date||(s=new Date(+s));++a=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function Ig(n,t){const e=t?n.toExponential(t-1):n.toExponential(),i=e.indexOf("e");if(i<0)return null;const s=e.slice(0,i);return[s.length>1?s[0]+s.slice(2):s,+e.slice(i+1)]}function sF(n,t){return function(e,i){let s=e.length;const r=[];let a=0,o=n[0],l=0;for(;s>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),r.push(e.substring(s-=o,s+o)),!((l+=o+1)>i));)o=n[a=(a+1)%n.length];return r.reverse().join(t)}}let TP;function rF(n,t){const e=Ig(n,t);if(!e)return n+"";const i=e[0],s=e[1],r=s-(TP=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,a=i.length;return r===a?i:r>a?i+new Array(r-a+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+Ig(n,Math.max(0,t+r-1))[0]}function e1(n,t){const e=Ig(n,t);if(!e)return n+"";const i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}function aF(n){const t=n.length;let e,i=-1;t:for(let s=1;s0&&(i=0)}return i>0?n.slice(0,i)+n.slice(e+1):n}class oF{constructor(t={}){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}toString(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}}const MP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i1(n){let t;if(t=MP.exec(n))return new oF({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]});Ot.getInstance().error("invalid format: "+n)}const n1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];class Ka{constructor(){this.locale={thousands:",",grouping:[3],currency:["$",""]},this.group=this.locale.grouping===void 0||this.locale.thousands===void 0?t=>t:sF([...this.locale.grouping].map(Number),`${this.locale.thousands}`),this.currencyPrefix=this.locale.currency===void 0?"":this.locale.currency[0]+"",this.currencySuffix=this.locale.currency===void 0?"":this.locale.currency[1]+"",this.decimal=this.locale.decimal===void 0?".":this.locale.decimal+"",this.numerals=this.locale.numerals===void 0?t=>t:hF([...this.locale.numerals].map(String)),this.percent=this.locale.percent===void 0?"%":this.locale.percent+"",this.minus=this.locale.minus===void 0?"−":this.locale.minus+"",this.nan=this.locale.nan===void 0?"NaN":this.locale.nan+"",this.formatter=t=>this.newFormat(t),this.format=(t,e)=>this.formatter(t)(e),this.formatPrefix=(t,e)=>this._formatPrefix(t,e)}static getInstance(){return Ka.instance||(Ka.instance=new Ka),Ka.instance}newFormat(t){const e=i1(t);let i=e.fill,s=e.align;const r=e.sign,a=e.symbol;let o=e.zero;const l=e.width;let h=e.comma,d=e.precision,c=e.trim,u=e.type;u==="n"?(h=!0,u="g"):s1[u]||(d===void 0&&(d=12),c=!0,u="g"),(o||i==="0"&&s==="=")&&(o=!0,i="0",s="=");const g=a==="$"?this.currencyPrefix:a==="#"&&/[boxX]/.test(u)?"0"+u.toLowerCase():"",p=a==="$"?this.currencySuffix:/[%p]/.test(u)?this.percent:"",_=s1[u],f=/[defgprstz%]/.test(u);d=d===void 0?6:/[gprs]/.test(u)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d));const{nan:m,minus:v,decimal:y,group:b,numerals:x}=this;function S(A){let k,T,w,M=g,R=p,O=A;if(u==="c")R=_(O)+R,O="";else{O=+O;let B=O<0||1/O<0;if(O=isNaN(O)?m:_(Math.abs(O),d),c&&(O=aF(O)),B&&+O==0&&r!=="+"&&(B=!1),M=(B?r==="("?r:v:r==="-"||r==="("?"":r)+M,R=(u==="s"?n1[8+TP/3]:"")+R+(B&&r==="("?")":""),f){for(k=-1,T=O.length;++kw||w>57){R=(w===46?y+O.slice(k+1):O.slice(k))+R,O=O.slice(0,k);break}}}h&&!o&&(O=b(O,1/0));let L=M.length+O.length+R.length,E=L>1)+M+O+R+E.slice(L);break;default:O=E+M+O+R}return x(O)}return S.toString=function(){return t+""},S}_formatPrefix(t,e){const i=i1(t);i.type="f";const s=this.newFormat(i.toString()),r=3*Math.max(-8,Math.min(8,Math.floor(lF(e)/3))),a=Math.pow(10,-r),o=n1[8+r/3];return function(l){return s(a*l)+o}}}const s1={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:nF,f:(n,t)=>n.toFixed(t),e:(n,t)=>n.toExponential(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>e1(100*n,t),r:e1,s:rF,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16),t:(n,t)=>Number.isInteger(n)?n.toFixed(2):Math.floor(n*Math.pow(10,t))/Math.pow(10,t)+"",z:(n,t)=>n%1==0?n+"":n.toFixed(t)};function lF(n){const t=Ig(Math.abs(n));return t?t[1]:NaN}function hF(n){return function(t){return t.replace(/[0-9]/g,e=>n[+e])}}const dF=(n,t)=>{const{callback:e}=t;return e&&(n=n.filter(e)),n};function gf(){return new Dg}function Dg(){this.reset()}Dg.prototype={constructor:Dg,reset:function(){this.s=this.t=0},add:function(n){r1(zu,n,this.t),r1(this,zu.s,this.s),this.s?this.t+=zu.t:this.s=zu.t},valueOf:function(){return this.s}};var zu=new Dg;function r1(n,t,e){var i=n.s=t+e,s=i-t,r=i-s;n.t=t-r+(e-s)}var zt=1e-6,cF=1e-12,Xt=Math.PI,qe=Xt/2,a1=Xt/4,Sn=Xt*2,Oi=180/Xt,Ve=Xt/180,me=Math.abs,yh=Math.atan,_r=Math.atan2,Yt=Math.cos,wP=Math.exp,Fg=Math.log,Nm=Math.pow,Ht=Math.sin,zn=Math.sign||function(n){return n>0?1:n<0?-1:0},an=Math.sqrt,Tb=Math.tan;function CP(n){return n>1?0:n<-1?Xt:Math.acos(n)}function Gn(n){return n>1?qe:n<-1?-qe:Math.asin(n)}function jn(){}function zg(n,t){n&&l1.hasOwnProperty(n.type)&&l1[n.type](n,t)}var o1={Feature:function(n,t){zg(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,i=-1,s=e.length;++iXt?n+Math.round(-n/Sn)*Sn:n,t]}ev.invert=ev;function PP(n,t,e){return(n%=Sn)?t||e?tv(c1(n),u1(t,e)):c1(n):t||e?u1(t,e):ev}function d1(n){return function(t,e){return t+=n,[t>Xt?t-Sn:t<-Xt?t+Sn:t,e]}}function c1(n){var t=d1(n);return t.invert=d1(-n),t}function u1(n,t){var e=Yt(n),i=Ht(n),s=Yt(t),r=Ht(t);function a(o,l){var h=Yt(l),d=Yt(o)*h,c=Ht(o)*h,u=Ht(l),g=u*e+d*i;return[_r(c*s-g*r,d*e-u*i),Gn(g*s+c*r)]}return a.invert=function(o,l){var h=Yt(l),d=Yt(o)*h,c=Ht(o)*h,u=Ht(l),g=u*s-c*r;return[_r(c*s+u*r,d*e+g*i),Gn(g*e-d*i)]},a}function uF(n){n=PP(n[0]*Ve,n[1]*Ve,n.length>2?n[2]*Ve:0);function t(e){return e=n(e[0]*Ve,e[1]*Ve),e[0]*=Oi,e[1]*=Oi,e}return t.invert=function(e){return e=n.invert(e[0]*Ve,e[1]*Ve),e[0]*=Oi,e[1]*=Oi,e},t}function gF(n,t,e,i,s,r){if(e){var a=Yt(t),o=Ht(t),l=i*e;s==null?(s=t+i*Sn,r=t-l/2):(s=g1(a,s),r=g1(a,r),(i>0?sr)&&(s+=i*Sn));for(var h,d=s;i>0?d>r:d1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function yg(n,t){return me(n[0]-t[0])=0;--o)s.point((c=d[o])[0],c[1]);else i(u.x,u.p.x,-1,s);u=u.p}u=u.o,d=u.z,g=!g}while(!u.v);s.lineEnd()}}}function p1(n){if(t=n.length){for(var t,e=0,i=n[0],s;++e=0?1:-1,T=k*A,w=T>Xt,M=_*x;if($m.add(_r(M*k*Ht(T),f*S+M*Yt(T))),a+=w?A+k*Sn:A,w^g>=e^y>=e){var R=jg($l(u),$l(v));Q0(R);var O=jg(r,R);Q0(O);var L=(w^A>=0?-1:1)*Gn(O[2]);(i>L||i===L&&(R[0]||R[1]))&&(o+=w^A>=0?1:-1)}}return(a<-zt||at?1:n>=t?0:NaN}function _F(n){return n.length===1&&(n=fF(n)),{left:function(t,e,i,s){for(i==null&&(i=0),s==null&&(s=t.length);i>>1;n(t[r],e)<0?i=r+1:s=r}return i},right:function(t,e,i,s){for(i==null&&(i=0),s==null&&(s=t.length);i>>1;n(t[r],e)>0?s=r:i=r+1}return i}}}function fF(n){return function(t,e){return OP(n(t),e)}}_F(OP);function BP(n){for(var t=n.length,e,i=-1,s=0,r,a;++i=0;)for(a=n[t],e=a.length;--e>=0;)r[--s]=a[e];return r}function LP(n,t,e,i){return function(s){var r=t(s),a=EP(),o=t(a),l=!1,h,d,c,u={point:g,lineStart:_,lineEnd:f,polygonStart:function(){u.point=m,u.lineStart=v,u.lineEnd=y,d=[],h=[]},polygonEnd:function(){u.point=g,u.lineStart=_,u.lineEnd=f,d=BP(d);var b=pF(h,i);d.length?(l||(s.polygonStart(),l=!0),RP(d,vF,b,e,s)):b&&(l||(s.polygonStart(),l=!0),s.lineStart(),e(null,null,1,s),s.lineEnd()),l&&(s.polygonEnd(),l=!1),d=h=null},sphere:function(){s.polygonStart(),s.lineStart(),e(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function g(b,x){n(b,x)&&s.point(b,x)}function p(b,x){r.point(b,x)}function _(){u.point=p,r.lineStart()}function f(){u.point=g,r.lineEnd()}function m(b,x){c.push([b,x]),o.point(b,x)}function v(){o.lineStart(),c=[]}function y(){m(c[0][0],c[0][1]),o.lineEnd();var b=o.clean(),x=a.result(),S,A=x.length,k,T,w;if(c.pop(),h.push(c),c=null,!!A){if(b&1){if(T=x[0],(k=T.length-1)>0){for(l||(s.polygonStart(),l=!0),s.lineStart(),S=0;S1&&b&2&&x.push(x.pop().concat(x.shift())),d.push(x.filter(mF))}}return u}}function mF(n){return n.length>1}function vF(n,t){return((n=n.x)[0]<0?n[1]-qe-zt:qe-n[1])-((t=t.x)[0]<0?t[1]-qe-zt:qe-t[1])}const _1=LP(function(){return!0},yF,xF,[-Xt,-qe]);function yF(n){var t=NaN,e=NaN,i=NaN,s;return{lineStart:function(){n.lineStart(),s=1},point:function(r,a){var o=r>0?Xt:-Xt,l=me(r-t);me(l-Xt)0?qe:-qe),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(o,e),n.point(r,e),s=0):i!==o&&l>=Xt&&(me(t-i)zt?yh((Ht(t)*(r=Yt(i))*Ht(e)-Ht(i)*(s=Yt(t))*Ht(n))/(s*r*a)):(t+i)/2}function xF(n,t,e,i){var s;if(n==null)s=e*qe,i.point(-Xt,s),i.point(0,s),i.point(Xt,s),i.point(Xt,0),i.point(Xt,-s),i.point(0,-s),i.point(-Xt,-s),i.point(-Xt,0),i.point(-Xt,s);else if(me(n[0]-t[0])>zt){var r=n[0]0,s=me(t)>zt;function r(d,c,u,g){gF(g,n,e,u,d,c)}function a(d,c){return Yt(d)*Yt(c)>t}function o(d){var c,u,g,p,_;return{lineStart:function(){p=g=!1,_=1},point:function(f,m){var v=[f,m],y,b=a(f,m),x=i?b?0:h(f,m):b?h(f+(f<0?Xt:-Xt),m):0;if(!c&&(p=g=b)&&d.lineStart(),b!==g&&(y=l(c,v),(!y||yg(c,y)||yg(v,y))&&(v[2]=1)),b!==g)_=0,b?(d.lineStart(),y=l(v,c),d.point(y[0],y[1])):(y=l(c,v),d.point(y[0],y[1],2),d.lineEnd()),c=y;else if(s&&c&&i^b){var S;!(x&u)&&(S=l(v,c,!0))&&(_=0,i?(d.lineStart(),d.point(S[0][0],S[0][1]),d.point(S[1][0],S[1][1]),d.lineEnd()):(d.point(S[1][0],S[1][1]),d.lineEnd(),d.lineStart(),d.point(S[0][0],S[0][1],3)))}b&&(!c||!yg(c,v))&&d.point(v[0],v[1]),c=v,g=b,u=x},lineEnd:function(){g&&d.lineEnd(),c=null},clean:function(){return _|(p&&g)<<1}}}function l(d,c,u){var g=$l(d),p=$l(c),_=[1,0,0],f=jg(g,p),m=ju(f,f),v=f[0],y=m-v*v;if(!y)return!u&&d;var b=t*m/y,x=-t*v/y,S=jg(_,f),A=Hu(_,b),k=Hu(f,x);Um(A,k);var T=S,w=ju(A,T),M=ju(T,T),R=w*w-M*(ju(A,A)-1);if(!(R<0)){var O=an(R),L=Hu(T,(-w-O)/M);if(Um(L,A),L=J0(L),!u)return L;var E=d[0],B=c[0],I=d[1],F=c[1],z;B0^L[1]<(me(L[0]-E)Xt^(E<=L[0]&&L[0]<=B)){var ot=Hu(T,(-w+O)/M);return Um(ot,A),[L,J0(ot)]}}}function h(d,c){var u=i?n:Xt-n,g=0;return d<-u?g|=1:d>u&&(g|=2),c<-u?g|=4:c>u&&(g|=8),g}return LP(a,o,r,i?[0,-n]:[-Xt,n-Xt])}function AF(n,t,e,i,s,r){var a=n[0],o=n[1],l=t[0],h=t[1],d=0,c=1,u=l-a,g=h-o,p;if(p=e-a,!(!u&&p>0)){if(p/=u,u<0){if(p0){if(p>c)return;p>d&&(d=p)}if(p=s-a,!(!u&&p<0)){if(p/=u,u<0){if(p>c)return;p>d&&(d=p)}else if(u>0){if(p0)){if(p/=g,g<0){if(p0){if(p>c)return;p>d&&(d=p)}if(p=r-o,!(!g&&p<0)){if(p/=g,g<0){if(p>c)return;p>d&&(d=p)}else if(g>0){if(p0&&(n[0]=a+d*u,n[1]=o+d*g),c<1&&(t[0]=a+c*u,t[1]=o+c*g),!0}}}}}var Yh=1e9,Wu=-Yh;function IP(n,t,e,i){function s(h,d){return n<=h&&h<=e&&t<=d&&d<=i}function r(h,d,c,u){var g=0,p=0;if(h==null||(g=a(h,c))!==(p=a(d,c))||l(h,d)<0^c>0)do u.point(g===0||g===3?n:e,g>1?i:t);while((g=(g+c+4)%4)!==p);else u.point(d[0],d[1])}function a(h,d){return me(h[0]-n)0?0:3:me(h[0]-e)0?2:1:me(h[1]-t)0?1:0:d>0?3:2}function o(h,d){return l(h.x,d.x)}function l(h,d){var c=a(h,1),u=a(d,1);return c!==u?c-u:c===0?d[1]-h[1]:c===1?h[0]-d[0]:c===2?h[1]-d[1]:d[0]-h[0]}return function(h){var d=h,c=EP(),u,g,p,_,f,m,v,y,b,x,S,A={point:k,lineStart:R,lineEnd:O,polygonStart:w,polygonEnd:M};function k(E,B){s(E,B)&&d.point(E,B)}function T(){for(var E=0,B=0,I=g.length;Bi&&(dt-at)*(i-ot)>(nt-ot)*(n-at)&&++E:nt<=i&&(dt-at)*(i-ot)<(nt-ot)*(n-at)&&--E;return E}function w(){d=c,u=[],g=[],S=!0}function M(){var E=T(),B=S&&E,I=(u=BP(u)).length;(B||I)&&(h.polygonStart(),B&&(h.lineStart(),r(null,null,1,h),h.lineEnd()),I&&RP(u,o,E,r,h),h.polygonEnd()),d=h,u=g=p=null}function R(){A.point=L,g&&g.push(p=[]),x=!0,b=!1,v=y=NaN}function O(){u&&(L(_,f),m&&b&&c.rejoin(),u.push(c.result())),A.point=k,b&&d.lineEnd()}function L(E,B){var I=s(E,B);if(g&&p.push([E,B]),x)_=E,f=B,m=I,x=!1,I&&(d.lineStart(),d.point(E,B));else if(I&&b)d.point(E,B);else{var F=[v=Math.max(Wu,Math.min(Yh,v)),y=Math.max(Wu,Math.min(Yh,y))],z=[E=Math.max(Wu,Math.min(Yh,E)),B=Math.max(Wu,Math.min(Yh,B))];AF(F,z,n,t,e,i)?(b||(d.lineStart(),d.point(F[0],F[1])),d.point(z[0],z[1]),I||d.lineEnd(),S=!1):I&&(d.lineStart(),d.point(E,B),S=!1)}v=E,y=B,b=I}return A}}function nc(n){return n}var Xm=gf(),iv=gf(),DP,FP,nv,sv,nr={point:jn,lineStart:jn,lineEnd:jn,polygonStart:function(){nr.lineStart=kF,nr.lineEnd=MF},polygonEnd:function(){nr.lineStart=nr.lineEnd=nr.point=jn,Xm.add(me(iv)),iv.reset()},result:function(){var n=Xm/2;return Xm.reset(),n}};function kF(){nr.point=TF}function TF(n,t){nr.point=zP,DP=nv=n,FP=sv=t}function zP(n,t){iv.add(sv*n-nv*t),nv=n,sv=t}function MF(){zP(DP,FP)}var Yl=1/0,Hg=Yl,sc=-Yl,Vg=sc,Wg={point:wF,lineStart:jn,lineEnd:jn,polygonStart:jn,polygonEnd:jn,result:function(){var n=[[Yl,Hg],[sc,Vg]];return sc=Vg=-(Hg=Yl=1/0),n}};function wF(n,t){nsc&&(sc=n),tVg&&(Vg=t)}var rv=0,av=0,Xh=0,Gg=0,Ng=0,dl=0,ov=0,lv=0,Kh=0,jP,HP,Ts,Ms,Dn={point:po,lineStart:f1,lineEnd:m1,polygonStart:function(){Dn.lineStart=EF,Dn.lineEnd=RF},polygonEnd:function(){Dn.point=po,Dn.lineStart=f1,Dn.lineEnd=m1},result:function(){var n=Kh?[ov/Kh,lv/Kh]:dl?[Gg/dl,Ng/dl]:Xh?[rv/Xh,av/Xh]:[NaN,NaN];return rv=av=Xh=Gg=Ng=dl=ov=lv=Kh=0,n}};function po(n,t){rv+=n,av+=t,++Xh}function f1(){Dn.point=CF}function CF(n,t){Dn.point=PF,po(Ts=n,Ms=t)}function PF(n,t){var e=n-Ts,i=t-Ms,s=an(e*e+i*i);Gg+=s*(Ts+n)/2,Ng+=s*(Ms+t)/2,dl+=s,po(Ts=n,Ms=t)}function m1(){Dn.point=po}function EF(){Dn.point=OF}function RF(){VP(jP,HP)}function OF(n,t){Dn.point=VP,po(jP=Ts=n,HP=Ms=t)}function VP(n,t){var e=n-Ts,i=t-Ms,s=an(e*e+i*i);Gg+=s*(Ts+n)/2,Ng+=s*(Ms+t)/2,dl+=s,s=Ms*n-Ts*t,ov+=s*(Ts+n),lv+=s*(Ms+t),Kh+=s*3,po(Ts=n,Ms=t)}function WP(n){this._context=n}WP.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:{this._context.moveTo(n,t),this._point=1;break}case 1:{this._context.lineTo(n,t);break}default:{this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,Sn);break}}},result:jn};var hv=gf(),Km,GP,NP,qh,Zh,rc={point:jn,lineStart:function(){rc.point=BF},lineEnd:function(){Km&&UP(GP,NP),rc.point=jn},polygonStart:function(){Km=!0},polygonEnd:function(){Km=null},result:function(){var n=+hv;return hv.reset(),n}};function BF(n,t){rc.point=UP,GP=qh=n,NP=Zh=t}function UP(n,t){qh-=n,Zh-=t,hv.add(an(qh*qh+Zh*Zh)),qh=n,Zh=t}function $P(){this._string=[]}$P.prototype={_radius:4.5,_circle:v1(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,t){switch(this._point){case 0:{this._string.push("M",n,",",t),this._point=1;break}case 1:{this._string.push("L",n,",",t);break}default:{this._circle==null&&(this._circle=v1(this._radius)),this._string.push("M",n,",",t,this._circle);break}}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}else return null}};function v1(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Mb(n,t){var e=4.5,i,s;function r(a){return a&&(typeof e=="function"&&s.pointRadius(+e.apply(this,arguments)),el(a,i(s))),s.result()}return r.area=function(a){return el(a,i(nr)),nr.result()},r.measure=function(a){return el(a,i(rc)),rc.result()},r.bounds=function(a){return el(a,i(Wg)),Wg.result()},r.centroid=function(a){return el(a,i(Dn)),Dn.result()},r.projection=function(a){return arguments.length?(i=a==null?(n=null,nc):(n=a).stream,r):n},r.context=function(a){return arguments.length?(s=a==null?(t=null,new $P):new WP(t=a),typeof e!="function"&&s.pointRadius(e),r):t},r.pointRadius=function(a){return arguments.length?(e=typeof a=="function"?a:(s.pointRadius(+a),+a),r):e},r.projection(n).context(t)}function pf(n){return function(t){var e=new dv;for(var i in n)e[i]=n[i];return e.stream=t,e}}function dv(){}dv.prototype={constructor:dv,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function wb(n,t,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),i!=null&&n.clipExtent(null),el(e,n.stream(Wg)),t(Wg.result()),i!=null&&n.clipExtent(i),n}function _f(n,t,e){return wb(n,function(i){var s=t[1][0]-t[0][0],r=t[1][1]-t[0][1],a=Math.min(s/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),o=+t[0][0]+(s-a*(i[1][0]+i[0][0]))/2,l=+t[0][1]+(r-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([o,l])},e)}function Cb(n,t,e){return _f(n,[[0,0],t],e)}function Pb(n,t,e){return wb(n,function(i){var s=+t,r=s/(i[1][0]-i[0][0]),a=(s-r*(i[1][0]+i[0][0]))/2,o=-r*i[0][1];n.scale(150*r).translate([a,o])},e)}function Eb(n,t,e){return wb(n,function(i){var s=+t,r=s/(i[1][1]-i[0][1]),a=-r*i[0][0],o=(s-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([a,o])},e)}var y1=16,LF=Yt(30*Ve);function b1(n,t){return+t?DF(n,t):IF(n)}function IF(n){return pf({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}})}function DF(n,t){function e(i,s,r,a,o,l,h,d,c,u,g,p,_,f){var m=h-i,v=d-s,y=m*m+v*v;if(y>4*t&&_--){var b=a+u,x=o+g,S=l+p,A=an(b*b+x*x+S*S),k=Gn(S/=A),T=me(me(S)-1)t||me((m*O+v*L)/y-.5)>.3||a*u+o*g+l*p2?E[2]%360*Ve:0,O()):[o*Oi,l*Oi,h*Oi]},M.angle=function(E){return arguments.length?(c=E%360*Ve,O()):c*Oi},M.reflectX=function(E){return arguments.length?(u=E?-1:1,O()):u<0},M.reflectY=function(E){return arguments.length?(g=E?-1:1,O()):g<0},M.precision=function(E){return arguments.length?(S=b1(A,x=E*E),L()):an(x)},M.fitExtent=function(E,B){return _f(M,E,B)},M.fitSize=function(E,B){return Cb(M,E,B)},M.fitWidth=function(E,B){return Pb(M,E,B)},M.fitHeight=function(E,B){return Eb(M,E,B)};function O(){var E=x1(e,0,0,u,g,c).apply(null,t(r,a)),B=(c?x1:jF)(e,i-E[0],s-E[1],u,g,c);return d=PP(o,l,h),A=tv(t,B),k=tv(d,A),S=b1(A,x),L()}function L(){return T=w=null,M}return function(){return t=n.apply(this,arguments),M.invert=t.invert&&R,O()}}function Rb(n){var t=0,e=Xt/3,i=YP(n),s=i(t,e);return s.parallels=function(r){return arguments.length?i(t=r[0]*Ve,e=r[1]*Ve):[t*Oi,e*Oi]},s}function HF(n){var t=Yt(n);function e(i,s){return[i*t,Ht(s)/t]}return e.invert=function(i,s){return[i/t,Gn(s*t)]},e}function VF(n,t){var e=Ht(n),i=(e+Ht(t))/2;if(me(i)=.12&&f<.234&&_>=-.425&&_<-.214?s:f>=.166&&f<.234&&_>=-.214&&_<-.115?a:e).invert(u)},d.stream=function(u){return n&&t===u?n:n=WF([e.stream(t=u),s.stream(u),a.stream(u)])},d.precision=function(u){return arguments.length?(e.precision(u),s.precision(u),a.precision(u),c()):e.precision()},d.scale=function(u){return arguments.length?(e.scale(u),s.scale(u*.35),a.scale(u),d.translate(e.translate())):e.scale()},d.translate=function(u){if(!arguments.length)return e.translate();var g=e.scale(),p=+u[0],_=+u[1];return i=e.translate(u).clipExtent([[p-.455*g,_-.238*g],[p+.455*g,_+.238*g]]).stream(h),r=s.translate([p-.307*g,_+.201*g]).clipExtent([[p-.425*g+zt,_+.12*g+zt],[p-.214*g-zt,_+.234*g-zt]]).stream(h),o=a.translate([p-.205*g,_+.212*g]).clipExtent([[p-.214*g+zt,_+.166*g+zt],[p-.115*g-zt,_+.234*g-zt]]).stream(h),c()},d.fitExtent=function(u,g){return _f(d,u,g)},d.fitSize=function(u,g){return Cb(d,u,g)},d.fitWidth=function(u,g){return Pb(d,u,g)},d.fitHeight=function(u,g){return Eb(d,u,g)};function c(){return n=t=null,d}return d.scale(1070)}function KP(n){return function(t,e){var i=Yt(t),s=Yt(e),r=n(i*s);return[r*s*Ht(t),r*Ht(e)]}}function iu(n){return function(t,e){var i=an(t*t+e*e),s=n(i),r=Ht(s),a=Yt(s);return[_r(t*r,i*a),Gn(i&&e*r/i)]}}var qP=KP(function(n){return an(2/(1+n))});qP.invert=iu(function(n){return 2*Gn(n/2)});function NF(){return br(qP).scale(124.75).clipAngle(180-.001)}var ZP=KP(function(n){return(n=CP(n))&&n/Ht(n)});ZP.invert=iu(function(n){return n});function UF(){return br(ZP).scale(79.4188).clipAngle(180-.001)}function ff(n,t){return[n,Fg(Tb((qe+t)/2))]}ff.invert=function(n,t){return[n,2*yh(wP(t))-qe]};function $F(){return JP(ff).scale(961/Sn)}function JP(n){var t=br(n),e=t.center,i=t.scale,s=t.translate,r=t.clipExtent,a=null,o,l,h;t.scale=function(c){return arguments.length?(i(c),d()):i()},t.translate=function(c){return arguments.length?(s(c),d()):s()},t.center=function(c){return arguments.length?(e(c),d()):e()},t.clipExtent=function(c){return arguments.length?(c==null?a=o=l=h=null:(a=+c[0][0],o=+c[0][1],l=+c[1][0],h=+c[1][1]),d()):a==null?null:[[a,o],[l,h]]};function d(){var c=Xt*i(),u=t(uF(t.rotate()).invert([0,0]));return r(a==null?[[u[0]-c,u[1]-c],[u[0]+c,u[1]+c]]:n===ff?[[Math.max(u[0]-c,a),o],[Math.min(u[0]+c,l),h]]:[[a,Math.max(u[1]-c,o)],[l,Math.min(u[1]+c,h)]])}return d()}function Gu(n){return Tb((qe+n)/2)}function YF(n,t){var e=Yt(n),i=n===t?Ht(n):Fg(e/Yt(t))/Fg(Gu(t)/Gu(n)),s=e*Nm(Gu(n),i)/i;if(!i)return ff;function r(a,o){s>0?o<-qe+zt&&(o=-qe+zt):o>qe-zt&&(o=qe-zt);var l=s/Nm(Gu(o),i);return[l*Ht(i*a),s-l*Yt(i*a)]}return r.invert=function(a,o){var l=s-o,h=zn(i)*an(a*a+l*l),d=_r(a,me(l))*zn(l);return l*i<0&&(d-=Xt*zn(a)*zn(l)),[d/i,2*yh(Nm(s/h,1/i))-qe]},r}function XF(){return Rb(YF).scale(109.5).parallels([30,30])}function $g(n,t){return[n,t]}$g.invert=$g;function KF(){return br($g).scale(152.63)}function qF(n,t){var e=Yt(n),i=n===t?Ht(n):(e-Yt(t))/(t-n),s=e/i+n;if(me(i)zt&&--i>0);return[n/(.8707+(r=e*e)*(-.131979+r*(-.013791+r*r*r*(.003971-.001529*r)))),e]};function iz(){return br(eE).scale(175.295)}function iE(n,t){return[Yt(t)*Ht(n),Ht(t)]}iE.invert=iu(Gn);function nz(){return br(iE).scale(249.5).clipAngle(90+zt)}function nE(n,t){var e=Yt(t),i=1+Yt(n)*e;return[e*Ht(n)/i,Ht(t)/i]}nE.invert=iu(function(n){return 2*yh(n)});function sz(){return br(nE).scale(250).clipAngle(142)}function sE(n,t){return[Fg(Tb((qe+t)/2)),-n]}sE.invert=function(n,t){return[-t,2*yh(wP(n))-qe]};function rz(){var n=JP(sE),t=n.center,e=n.rotate;return n.center=function(i){return arguments.length?t([-i[1],i[0]]):(i=t(),[i[1],-i[0]])},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):(i=e(),[i[0],i[1],i[2]-90])},e([0,0,90]).scale(159.155)}function az(n){return n}function oz(n){if(n==null)return az;var t,e,i=n.scale[0],s=n.scale[1],r=n.translate[0],a=n.translate[1];return function(o,l){l||(t=e=0);var h=2,d=o.length,c=new Array(d);for(c[0]=(t+=o[0])*i+r,c[1]=(e+=o[1])*s+a;he&&(i=s,e=r)}if(e>t)var a=cv(n.slice(0,i),t),o=cv(n.slice(i,n.length),t),l=a.concat(o);else n.length>1?l=[n[0],n[n.length-1]]:l=[n[0]];return l},gz=cv;(function(n){var t=gz;n.exports=function(s,r,a){return a||(s=JSON.parse(JSON.stringify(s))),s.features?i(s,r):s.type&&s.type==="Feature"?e(s,r):new Error("FeatureCollection or individual Feature required")},n.exports.simplify=function(s,r){return t(s,r)};function e(s,r){var a=s.geometry,o=a.type;if(o==="LineString")a.coordinates=n.exports.simplify(a.coordinates,r);else if(o==="Polygon"||o==="MultiLineString")for(var l=0;l{const e=mf(vz,t),{tolerance:i}=e;return _z(n,i)};var _o;(function(n){n.DSV="dsv",n.TREE="tree",n.GEO="geo",n.BYTE="bytejson",n.HEX="hex",n.GRAPH="graph",n.TABLE="table",n.GEO_GRATICULE="geo-graticule"})(_o||(_o={}));const bz=(n,t)=>{const{fields:e,key:i,value:s,retains:r}=t,a=[];for(let o=0;o{const h={};if(h[i]=l,h[s]=n[o][l],r)r.forEach(d=>{h[d]=n[o][d]});else for(const d in n[o])e.indexOf(d)===-1&&(h[d]=n[o][d]);a.push(h)});return a},oE=(n,t)=>{var e,i;if(!(t!=null&&t.fields)||n.length===0)return n;const s=t.fields,r=n[0],a={},o=[];for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const h=s[l];if(!h.type){let c=r;l in r||(c=(e=n.find(u=>l in u))!==null&&e!==void 0?e:r),h.type=typeof c[l]=="number"?"linear":"ordinal"}let d;if(typeof h.sortIndex=="number"&&(d={key:l,type:h.type,index:h.sortIndex,sortIndex:{},sortIndexCount:0,sortReverse:h.sortReverse===!0},o.push(d)),((i=h.domain)===null||i===void 0?void 0:i.length)>0)if(h.type==="ordinal"){h._domainCache={},a[l]=h;const c={};h.domain.forEach((u,g)=>{c[u]=g,h._domainCache[u]=g}),d&&(d.sortIndex=c,d.sortIndexCount=h.domain.length)}else h.domain.length>=2&&(a[l]=h)}return Object.keys(a).length>0&&(n=n.filter(l=>{for(const h in a){const d=a[h];if(d.type==="ordinal"){if(!(l[h]in d._domainCache))return!1}else if(d.domain[0]>l[h]||d.domain[1]l.index-h.index),n.sort((l,h)=>xz(l,h,o)),n};function xz(n,t,e){for(let i=0;i9999?"+"+Ji(n,6):Ji(n,4)}function kz(n){var t=n.getUTCHours(),e=n.getUTCMinutes(),i=n.getUTCSeconds(),s=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":Az(n.getUTCFullYear())+"-"+Ji(n.getUTCMonth()+1,2)+"-"+Ji(n.getUTCDate(),2)+(s?"T"+Ji(t,2)+":"+Ji(e,2)+":"+Ji(i,2)+"."+Ji(s,3)+"Z":i?"T"+Ji(t,2)+":"+Ji(e,2)+":"+Ji(i,2)+"Z":e||t?"T"+Ji(t,2)+":"+Ji(e,2)+"Z":"")}function Ob(n){var t=new RegExp('["'+n+` +\r]`),e=n.charCodeAt(0);function i(c,u){var g,p,_=s(c,function(f,m){if(g)return g(f,m-1);p=f,g=u?Sz(f,u):lE(f)});return _.columns=p||[],_}function s(c,u){var g=[],p=c.length,_=0,f=0,m,v=p<=0,y=!1;c.charCodeAt(p-1)===Oh&&--p,c.charCodeAt(p-1)===Jm&&--p;function b(){if(v)return qm;if(y)return y=!1,A1;var S,A=_,k;if(c.charCodeAt(A)===Zm){for(;_++=p?v=!0:(k=c.charCodeAt(_++))===Oh?y=!0:k===Jm&&(y=!0,c.charCodeAt(_)===Oh&&++_),c.slice(A+1,S-1).replace(/""/g,'"')}for(;_{e.type=_o.DSV;const i=mf(Pz,t),{delimiter:s}=i;if(!tt(s))throw new TypeError("Invalid delimiter: must be a string!");return Ob(s).parse(n)},dE=(n,t={},e)=>(e.type=_o.DSV,Mz(n)),cE=(n,t={},e)=>(e.type=_o.DSV,Cz(n));function Ez(n){if(!n)throw new Error("geojson is required");switch(n.type){case"Feature":return uE(n);case"FeatureCollection":return Rz(n);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Bb(n);default:throw new Error("unknown GeoJSON type")}}function uE(n){var t={type:"Feature"};return Object.keys(n).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:t[e]=n[e]}}),t.properties=gE(n.properties),t.geometry=Bb(n.geometry),t}function gE(n){var t={};return n&&Object.keys(n).forEach(function(e){var i=n[e];typeof i=="object"?i===null?t[e]=null:Array.isArray(i)?t[e]=i.map(function(s){return s}):t[e]=gE(i):t[e]=i}),t}function Rz(n){var t={type:"FeatureCollection"};return Object.keys(n).forEach(function(e){switch(e){case"type":case"features":return;default:t[e]=n[e]}}),t.features=n.features.map(function(e){return uE(e)}),t}function Bb(n){var t={type:n.type};return n.bbox&&(t.bbox=n.bbox),n.type==="GeometryCollection"?(t.geometries=n.geometries.map(function(e){return Bb(e)}),t):(t.coordinates=pE(n.coordinates),t)}function pE(n){var t=n;return typeof t[0]!="object"?t.slice():t.map(function(e){return pE(e)})}function Jh(n){if(Array.isArray(n))return n;if(n.type==="Feature"){if(n.geometry!==null)return n.geometry.coordinates}else if(n.coordinates)return n.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function uv(n){for(var t=Jh(n),e=0,i=1,s,r;i0}function T1(n,t){if(n.type==="Feature")t(n,0);else if(n.type==="FeatureCollection")for(var e=0;e is required");if(typeof e!="boolean")throw new Error(" must be a boolean");if(typeof i!="boolean")throw new Error(" must be a boolean");i===!1&&(n=Ez(n));var s=[];switch(n.type){case"GeometryCollection":return Lb(n,function(r){bg(r,e)}),n;case"FeatureCollection":return T1(n,function(r){T1(bg(r,e),function(a){s.push(a)})}),kP(s)}return bg(n,e)}function bg(n,t){var e=n.type==="Feature"?n.geometry.type:n.type;switch(e){case"GeometryCollection":return Lb(n,function(i){bg(i,t)}),n;case"LineString":return M1(Jh(n),t),n;case"Polygon":return w1(Jh(n),t),n;case"MultiLineString":return Jh(n).forEach(function(i){M1(i,t)}),n;case"MultiPolygon":return Jh(n).forEach(function(i){w1(i,t)}),n;case"Point":case"MultiPoint":return n}}function M1(n,t){uv(n)===t&&n.reverse()}function w1(n,t){uv(n[0])!==t&&n[0].reverse();for(var e=1;e{if(n.geometry.type.startsWith("Multi")){const t=Lz(n).features[0];return Object.assign(Object.assign({},t),t.properties)}return Object.assign(Object.assign({},n),n.properties)},Iz=n=>{const t=[];return n.forEach(e=>{e.type==="FeatureCollection"?e.features.forEach(i=>{t.push(P1(i))}):t.push(P1(e))}),t},fE=(n,t={},e)=>{e.type=_o.GEO;const i=mf(_E,t),{centroid:s,name:r,bbox:a,rewind:o}=i;if(Array.isArray(n))return Iz(n);let l=n.features;return o&&(l=Bz(n,{reverse:!yt(o)||o.reverse}).features),l.forEach(h=>{if(s){const d=C1.centroid(h);h.centroidX=d[0],h.centroidY=d[1]}if(r&&(h.name=h.properties.name),a){const d=C1.bounds(h);h.bbox=d}}),n.features=l,n},Dz={},Fz=(n,t,e)=>{e.type=_o.GEO;const i=mf(_E,Dz,t),{object:s}=i;if(!tt(s))throw new TypeError("Invalid object: must be a string!");const r=hz(n,n.objects[s]);return fE(r,i,e)},vf=(n,t,e)=>{const i=!Me(t==null?void 0:t.dependencyUpdate)||(t==null?void 0:t.dependencyUpdate);if(!n||!U(n))throw new TypeError("Invalid data: must be DataView array!");return U(e.rawData)&&e.rawData.forEach(s=>{s.target&&(s.target.removeListener("change",e.reRunAllTransform),s.target.removeListener("markRunning",e.markRunning))}),i&&n.forEach(s=>{s.target.addListener("change",e.reRunAllTransform),s.target.addListener("markRunning",e.markRunning)}),n};let Qm=0;const zz=1e8;function mE(n="dataset"){return Qm>zz&&(Qm=0),n+"_"+Qm++}class ya{constructor(t){var e;let i;this.options=t,this.isDataSet=!0,this.transformMap={},this.parserMap={},this.dataViewMap={},this.target=new Io,i=t!=null&&t.name?t.name:mE("dataset"),this.name=i,this._logger=(e=t==null?void 0:t.logger)!==null&&e!==void 0?e:Ot.getInstance()}setLogger(t){this._logger=t}getDataView(t){return this.dataViewMap[t]}setDataView(t,e){var i;this.dataViewMap[t]&&((i=this._logger)===null||i===void 0||i.error(`Error: dataView ${t} 之前已存在,请重新命名`)),this.dataViewMap[t]=e}removeDataView(t){this.dataViewMap[t]=null,delete this.dataViewMap[t]}registerParser(t,e){var i;this.parserMap[t]&&((i=this._logger)===null||i===void 0||i.warn(`Warn: transform ${t} 之前已注册,执行覆盖逻辑`)),this.parserMap[t]=e}removeParser(t){this.parserMap[t]=null,delete this.parserMap[t]}getParser(t){return this.parserMap[t]||this.parserMap.default}registerTransform(t,e){var i;this.transformMap[t]&&((i=this._logger)===null||i===void 0||i.warn(`Warn: transform ${t} 之前已注册,执行覆盖逻辑`)),this.transformMap[t]=e}removeTransform(t){this.transformMap[t]=null,delete this.transformMap[t]}getTransform(t){return this.transformMap[t]}multipleDataViewAddListener(t,e,i){this._callMap||(this._callMap=new Map);let s=this._callMap.get(i);s||(s=()=>{t.some(r=>r.isRunning)||i()}),t.forEach(r=>{r.target.addListener(e,s)}),this._callMap.set(i,s)}allDataViewAddListener(t,e){this.multipleDataViewAddListener(Object.values(this.dataViewMap),t,e)}multipleDataViewRemoveListener(t,e,i){if(this._callMap){const s=this._callMap.get(i);s&&t.forEach(r=>{r.target.removeListener(e,s)}),this._callMap.delete(i)}}multipleDataViewUpdateInParse(t){t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.markRunning()}),t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.parseNewData(e.data,e.options)})}multipleDataViewUpdateInRawData(t){t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.markRunning()}),t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.updateRawData(e.data,e.options)})}destroy(){this.transformMap=null,this.parserMap=null,this.dataViewMap=null,this._callMap=null,this.target.removeAllListeners()}}const t0="_data-view-diff-rank";class Gt{constructor(t,e){let i;this.dataSet=t,this.options=e,this.isDataView=!0,this.target=new Io,this.parseOption=null,this.transformsArr=[],this.isRunning=!1,this.rawData={},this.history=!1,this.parserData={},this.latestData={},this._fields=null,this.reRunAllTransform=(s={pushHistory:!0,emitMessage:!0})=>(this.isRunning=!0,this.resetTransformData(),this.transformsArr.forEach(r=>{this.executeTransform(r,{pushHistory:s.pushHistory,emitMessage:!1}),this.isLastTransform(r)&&this.diffLastData()}),this.isRunning=!1,s.emitMessage!==!1&&this.target.emit("change",[]),this),this.markRunning=()=>{this.isRunning=!0,this.target.emit("markRunning",[])},i=e!=null&&e.name?e.name:mE("dataview"),this.name=i,e!=null&&e.history&&(this.history=e.history,this.historyData=[]),this.dataSet.setDataView(i,this),this.setFields(e==null?void 0:e.fields)}parse(t,e,i=!1){var s;this.isRunning=!0,i&&this.target.emit("beforeParse",[]),e&&(this.parseOption=e);const r=this.cloneParseData(t,e);if(e!=null&&e.type){const a=((s=this.dataSet.getParser(e.type))!==null&&s!==void 0?s:this.dataSet.getParser("bytejson"))(r,e.options,this);this.rawData=r,this.parserData=a,this.history&&this.historyData.push(r,a),this.latestData=a}else this.parserData=r,this.rawData=r,this.history&&this.historyData.push(r),this.latestData=r;return this.isRunning=!1,i&&this.target.emit("afterParse",[]),this}transform(t,e=!0){if(this.isRunning=!0,t&&t.type){let i=!0;if(t.type==="fields"){this._fields=t.options.fields;const s=this.transformsArr.findIndex(r=>r.type===t.type);s>=0&&(i=!1,this.transformsArr[s].options.fields=this._fields)}if(i&&this.transformsArr.push(t),e){const s=this.isLastTransform(t);this.executeTransform(t),s&&this.diffLastData()}}return this.sortTransform(),this.isRunning=!1,this}isLastTransform(t){return this.transformsArr[this.transformsArr.length-1]===t}sortTransform(){this.transformsArr.length>=2&&this.transformsArr.sort((t,e)=>{var i,s;return((i=t.level)!==null&&i!==void 0?i:0)-((s=e.level)!==null&&s!==void 0?s:0)})}executeTransform(t,e={pushHistory:!0,emitMessage:!0}){const{pushHistory:i,emitMessage:s}=e,r=this.dataSet.getTransform(t.type)(this.latestData,t.options);this.history&&i!==!1&&this.historyData.push(r),this.latestData=r,s!==!1&&this.target.emit("change",[])}resetTransformData(){this.latestData=this.parserData,this.history&&(this.historyData.length=0,this.historyData.push(this.rawData,this.parserData))}enableDiff(t){this._diffData=!0,this._diffKeys=t,this._diffMap=new Map,this._diffRank=0}disableDiff(){this._diffData=!1,this._diffMap=null,this._diffRank=null}resetDiff(){this._diffMap=new Map,this._diffRank=0}diffLastData(){var t;if(!this._diffData||!this.latestData.forEach||!(!((t=this._diffKeys)===null||t===void 0)&&t.length))return;const e=this._diffRank+1;if(this._diffRank===0)this.latestData.forEach(i=>{i[t0]=e,this._diffMap.set(this._diffKeys.reduce((s,r)=>s+i[r],""),i)}),this.latestDataAUD={add:Array.from(this.latestData),del:[],update:[]};else{let i;this.latestDataAUD={add:[],del:[],update:[]},this.latestData.forEach(s=>{s[t0]=e,i=this._diffKeys.reduce((r,a)=>r+s[a],""),this._diffMap.get(i)?this.latestDataAUD.update.push(s):this.latestDataAUD.add.push(s),this._diffMap.set(i,s)}),this._diffMap.forEach((s,r)=>{s[t0]s.type==="fields");!P(this._fields)&&P(i)?(this.dataSet.registerTransform("fields",oE),this.transform({type:"fields",options:{fields:this._fields}},!1)):i&&(i.options.fields=this._fields)}destroy(){this.dataSet.removeDataView(this.name),this._diffMap=null,this._diffRank=null,this.latestData=null,this.rawData=null,this.parserData=null,this.transformsArr=null,this.target=null}}class Je{static GenAutoIncrementId(){return Je.auto_increment_id++}}Je.auto_increment_id=0;class kt{constructor(t){this.id=Je.GenAutoIncrementId(),this.registry=t}}const yf="named",vE="inject",yE="multi_inject",bE="inversify:tagged",xE="inversify:paramtypes";class Ib{constructor(t,e){this.key=t,this.value=e}toString(){return this.key===yf?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}}const Ol=function(n){var t;return function(e){const i=typeof Symbol=="function",s=i&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",r=Object.getPrototypeOf(Function),a=Map,o=new WeakMap;function l(E,B,I,F){if(!S(I))throw new TypeError;return m(E,B,I,F)}function h(E,B,I){if(!S(B))throw new TypeError;return y(I)||(I=M(I)),g(E,B,I)}function d(E,B,I){if(!S(B))throw new TypeError;return y(I)||(I=M(I)),p(E,B,I)}function c(E,B,I){if(!S(B))throw new TypeError;return y(I)||(I=M(I)),_(E,B,I)}function u(E,B,I){let F=o.get(E);if(y(F)){if(!I)return;F=new a,o.set(E,F)}let z=F.get(B);if(y(z)){if(!I)return;z=new a,F.set(B,z)}return z}function g(E,B,I){if(p(E,B,I))return!0;const F=L(B);return!b(F)&&g(E,F,I)}function p(E,B,I){const F=u(B,I,!1);return!y(F)&&T(F.has(E))}function _(E,B,I){if(p(E,B,I))return f(E,B,I);const F=L(B);return b(F)?void 0:_(E,F,I)}function f(E,B,I){const F=u(B,I,!1);if(!y(F))return F.get(E)}function m(E,B,I,F){u(I,F,!0).set(E,B)}function v(E){if(E===null)return 1;switch(typeof E){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return E===null?1:6;default:return 6}}function y(E){return E===void 0}function b(E){return E===null}function x(E){return typeof E=="symbol"}function S(E){return typeof E=="object"?E!==null:typeof E=="function"}function A(E,B){switch(v(E)){case 0:case 1:case 2:case 3:case 4:case 5:return E}const I="string",F=O(E,s);if(F!==void 0){const z=F.call(E,I);if(S(z))throw new TypeError;return z}return k(E)}function k(E,B){{const I=E.toString;if(R(I)){const z=I.call(E);if(!S(z))return z}const F=E.valueOf;if(R(F)){const z=F.call(E);if(!S(z))return z}}throw new TypeError}function T(E){return!!E}function w(E){return""+E}function M(E){const B=A(E);return x(B)?B:w(B)}function R(E){return typeof E=="function"}function O(E,B){const I=E[B];if(I!=null){if(!R(I))throw new TypeError;return I}}function L(E){const B=Object.getPrototypeOf(E);if(typeof E!="function"||E===r||B!==r)return B;const I=E.prototype,F=I&&Object.getPrototypeOf(I);if(F==null||F===Object.prototype)return B;const z=F.constructor;return typeof z!="function"||z===E?B:z}e("defineMetadata",l),e("hasMetadata",h),e("hasOwnMetadata",d),e("getMetadata",c)}((t=n,function(e,i){typeof t[e]!="function"&&Object.defineProperty(t,e,{configurable:!0,writable:!0,value:i})})),n}({});function jz(n,t,e,i){const s=[i];let r={};Ol.hasOwnMetadata(n,t)&&(r=Ol.getMetadata(n,t));let a=r[e];a===void 0&&(a=[]),a.push(...s),r[e]=a,Ol.defineMetadata(n,r,t)}function Hz(n,t,e,i){jz(bE,n,e.toString(),i)}function SE(n){return(t,e,i)=>{Hz(t,e,i,n)}}function AE(n){return t=>(e,i,s)=>SE(new Ib(n,t))(e,i,s)}const Rt=AE(vE),kE=AE(yE);function pt(){return function(n){return Ol.defineMetadata(xE,null,n),n}}function ci(n){return SE(new Ib(yf,n))}const fo={Singleton:"Singleton",Transient:"Transient"},Vr={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};class Db{constructor(t,e){this.id=Je.GenAutoIncrementId(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=Vr.Invalid,this.constraint=i=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.dynamicValue=null}clone(){const t=new Db(this.serviceIdentifier,this.scope);return t.activated=t.scope===fo.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.provider=this.provider,t.constraint=this.constraint,t.cache=this.cache,t}}class Vz{getConstructorMetadata(t){return{compilerGeneratedMetadata:Ol.getMetadata(xE,t),userGeneratedMetadata:Ol.getMetadata(bE,t)||{}}}getPropertiesMetadata(t){throw new Error("暂未实现")}}const Wz=n=>t=>{const e=i=>{if(i==null)return!1;if(i.key===n&&i.value===t)return!0;if(i.constructorArgsMetadata==null)return!1;const s=i.constructorArgsMetadata;for(let r=0;re.container.get(t))}}class Uz{constructor(t){const e=t||{};e.defaultScope=e.defaultScope||fo.Transient,this.options=e,this.id=Je.GenAutoIncrementId(),this._bindingDictionary=new Map,this._metadataReader=new Vz}load(t){const e=this._getContainerModuleHelpersFactory()(t.id);t.registry(e.bindFunction,e.unbindFunction,e.isboundFunction,e.rebindFunction)}get(t){const e=this._getNotAllArgs(t,!1);return this._get(e)}getAll(t){const e=this._getAllArgs(t);return this._get(e)}getTagged(t,e,i){const s=this._getNotAllArgs(t,!1,e,i);return this._get(s)}getNamed(t,e){return this.getTagged(t,yf,e)}isBound(t){return this._bindingDictionary.has(t)}bind(t){const e=this.options.defaultScope,i=new Db(t,e),s=this._bindingDictionary.get(t)||[];return s.push(i),this._bindingDictionary.set(t,s),new Nz(i)}unbind(t){this._bindingDictionary.delete(t)}rebind(t){return this.unbind(t),this.bind(t)}_getContainerModuleHelpersFactory(){const t=(a,o)=>{a._binding.moduleId=o},e=a=>o=>{const l=this.bind(o);return t(l,a),l},i=()=>a=>this.unbind(a),s=()=>a=>this.isBound(a),r=a=>o=>{const l=this.rebind(o);return t(l,a),l};return a=>({bindFunction:e(a),isboundFunction:s(),rebindFunction:r(a),unbindFunction:i(),unbindAsyncFunction:o=>null})}_getNotAllArgs(t,e,i,s){return{avoidConstraints:!1,isMultiInject:e,serviceIdentifier:t,key:i,value:s}}_getAllArgs(t){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:t}}_get(t){const e=[];return this._bindingDictionary.get(t.serviceIdentifier).filter(i=>i.constraint(t)).forEach(i=>{e.push(this._resolveFromBinding(i))}),t.isMultiInject||e.length!==1?e:e[0]}_getChildRequest(t){const e=t.implementationType,{userGeneratedMetadata:i}=this._metadataReader.getConstructorMetadata(e),s=Object.keys(i),r=[];for(let a=0;a{l[g.key]=g.value});const h={inject:l[vE],multiInject:l[yE]},d=h.inject||h.multiInject,c={serviceIdentifier:d,constructorArgsMetadata:o},u={injectIdentifier:d,metadata:o,bindings:this._bindingDictionary.get(d).filter(g=>g.constraint(c))};r.push(u)}return r}_resolveFromBinding(t){const e=this._getResolvedFromBinding(t);return this._saveToScope(t,e),e}_getResolvedFromBinding(t){let e;switch(t.type){case Vr.ConstantValue:case Vr.Function:e=t.cache;break;case Vr.Instance:e=this._resolveInstance(t,t.implementationType);break;default:e=t.dynamicValue({container:this})}return e}_resolveInstance(t,e){if(t.activated)return t.cache;const i=this._getChildRequest(t);return this._createInstance(e,i)}_createInstance(t,e){return e.length?new t(...this._resolveRequests(e)):new t}_resolveRequests(t){return t.map(e=>e.bindings.length>1?e.bindings.map(i=>this._resolveFromBinding(i)):this._resolveFromBinding(e.bindings[0]))}_saveToScope(t,e){t.scope===fo.Singleton&&(t.cache=e,t.activated=!0)}}const ii=Symbol("ContributionProvider");class TE{constructor(t,e){this.serviceIdentifier=t,this.container=e}getContributions(){return this.caches||(this.caches=[],this.container&&this.container.isBound(this.serviceIdentifier)&&this.caches.push(...this.container.getAll(this.serviceIdentifier))),this.caches}}function Ti(n,t){n(ii).toDynamicValue(({container:e})=>new TE(t,e)).inSingletonScope().whenTargetNamed(t)}function $z(n,t){n(ii).toDynamicValue(({container:e})=>new TE(t,e)).whenTargetNamed(t)}class Yz{constructor(t,e){this._args=t,this.name=e,this.taps=[]}tap(t,e){this._tap("sync",t,e)}unTap(t,e){const i=typeof t=="string"?t.trim():t.name;i&&(this.taps=this.taps.filter(s=>!(s.name===i&&(!e||s.fn===e))))}_parseOptions(t,e,i){let s;if(typeof e=="string")s={name:e.trim()};else if(typeof e!="object"||e===null)throw new Error("Invalid tap options");if(typeof s.name!="string"||s.name==="")throw new Error("Missing name for tap");return s=Object.assign({type:t,fn:i},s),s}_tap(t,e,i){this._insert(this._parseOptions(t,e,i))}_insert(t){let e;typeof t.before=="string"?e=new Set([t.before]):Array.isArray(t.before)&&(e=new Set(t.before));let i=0;typeof t.stage=="number"&&(i=t.stage);let s=this.taps.length;for(;s>0;){s--;const r=this.taps[s];this.taps[s+1]=r;const a=r.stage||0;if(e){if(e.has(r.name)){e.delete(r.name);continue}if(e.size>0)continue}if(!(a>i)){s++;break}}this.taps[s]=t}}class _n extends Yz{call(...t){this.taps.map(e=>e.fn).forEach(e=>e(...t))}}const bf=Symbol.for("EnvContribution"),Fb=Symbol.for("VGlobal");var Xz=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},Kz=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},E1=function(n,t){return function(e,i){t(e,i,n)}};let gv=class{get env(){return this._env}get devicePixelRatio(){return this._env||this.setEnv("browser"),this.envContribution.getDevicePixelRatio()}get supportEvent(){return this._env||this.setEnv("browser"),this.envContribution.supportEvent}set supportEvent(n){this._env||this.setEnv("browser"),this.envContribution.supportEvent=n}get supportsTouchEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents}set supportsTouchEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents=n}get supportsPointerEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents}set supportsPointerEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents=n}get supportsMouseEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents}set supportsMouseEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents=n}get applyStyles(){return this._env||this.setEnv("browser"),this.envContribution.applyStyles}set applyStyles(n){this._env||this.setEnv("browser"),this.envContribution.applyStyles=n}constructor(n){this.contributions=n,this.id=Je.GenAutoIncrementId(),this.hooks={onSetEnv:new _n(["lastEnv","env","global"])},this.measureTextMethod="native",this.optimizeVisible=!1}bindContribution(n){const t=[];if(this.contributions.getContributions().forEach(e=>{const i=e.configure(this,n);i&&i.then&&t.push(i)}),t.length)return Promise.all(t)}getDynamicCanvasCount(){return this._env||this.setEnv("browser"),this.envContribution.getDynamicCanvasCount()}getStaticCanvasCount(){return this._env||this.setEnv("browser"),this.envContribution.getStaticCanvasCount()}setEnv(n,t){if(t&&t.force===!0||this._env!==n)return this.deactiveCurrentEnv(),this.activeEnv(n,t)}deactiveCurrentEnv(){this.envContribution&&this.envContribution.release()}activeEnv(n,t){const e=this._env;this._env=n;const i=this.bindContribution(t);if(i&&i.then)return i.then(()=>{this.envParams=t,this.hooks.onSetEnv.call(e,n,this)});this.envParams=t,this.hooks.onSetEnv.call(e,n,this)}setActiveEnvContribution(n){this.envContribution=n}createCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.createCanvas(n)}createOffscreenCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.createOffscreenCanvas(n)}releaseCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.releaseCanvas(n)}addEventListener(n,t,e){return this._env||this.setEnv("browser"),this.envContribution.addEventListener(n,t,e)}removeEventListener(n,t,e){return this._env||this.setEnv("browser"),this.envContribution.removeEventListener(n,t,e)}dispatchEvent(n){return this._env||this.setEnv("browser"),this.envContribution.dispatchEvent(n)}getRequestAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getRequestAnimationFrame()}getCancelAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getCancelAnimationFrame()}getElementById(n){return this._env||this.setEnv("browser"),this.envContribution.getElementById?this.envContribution.getElementById(n):null}getRootElement(){return this._env||this.setEnv("browser"),this.envContribution.getRootElement?this.envContribution.getRootElement():null}getDocument(){return this._env||this.setEnv("browser"),this.envContribution.getDocument?this.envContribution.getDocument():null}mapToCanvasPoint(n,t){return this._env||this.setEnv("browser"),this.envContribution.mapToCanvasPoint?this.envContribution.mapToCanvasPoint(n,t):null}loadImage(n){return this._env||this.setEnv("browser"),this.envContribution.loadImage(n)}loadSvg(n){return this._env||this.setEnv("browser"),this.envContribution.loadSvg(n)}loadJson(n){return this._env||this.setEnv("browser"),this.envContribution.loadJson(n)}loadArrayBuffer(n){return this._env||this.setEnv("browser"),this.envContribution.loadArrayBuffer(n)}loadBlob(n){return this._env||this.setEnv("browser"),this.envContribution.loadBlob(n)}isChrome(){return this._isChrome!=null||(this._env||this.setEnv("browser"),this._isChrome=this._env==="browser"&&navigator.userAgent.indexOf("Chrome")>-1),this._isChrome}isSafari(){return this._isSafari!=null||(this._env||this.setEnv("browser"),this._isSafari=this._env==="browser"&&/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)),this._isSafari}getNativeAABBBounds(n){return this._env||this.setEnv("browser"),this.envContribution.getNativeAABBBounds(n)}removeDom(n){return this._env||this.setEnv("browser"),this.envContribution.removeDom(n)}createDom(n){return this._env||this.setEnv("browser"),this.envContribution.createDom(n)}updateDom(n,t){return this._env||this.setEnv("browser"),this.envContribution.updateDom(n,t)}getElementTop(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTop(n,t)}getElementLeft(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementLeft(n,t)}getElementTopLeft(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTopLeft(n,t)}};gv=Xz([pt(),E1(0,Rt(ii)),E1(0,ci(bf)),Kz("design:paramtypes",[Object])],gv);const qz=ki-1e-8;class zb{constructor(t){this.init(t)}init(t){this.bounds=t}arc(t,e,i,s,r,a){if(Math.abs(r-s)>qz)return this.bounds.add(t-i,e-i),void this.bounds.add(t+i,e+i);let o,l,h,d,c=1/0,u=-1/0,g=1/0,p=-1/0;function _(f){h=i*Math.cos(f),d=i*Math.sin(f),hu&&(u=h),dp&&(p=d)}if(_(s),_(r),r!==s)if((s%=ki)<0&&(s+=ki),(r%=ki)<0&&(r+=ki),rr;++l,o-=In)_(o);else for(o=s-s%In+In,l=0;l<4&&ot.getLength())}getPointAt(t){return{x:0,y:0}}getLength(){return 0}getBounds(){return this.bounds}}const Jz=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,Qz={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7},re={A:0,AT:1,C:2,Z:3,E:4,L:5,M:6,Q:7,R:8};let e0,R1,Uu,O1,i0,$u;function t3(n){if(!n)return[];const t=n.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);if(t===null)return[];let e,i;const s=[];for(let r=0,a=t.length;r$u){let o,l=Uu;for(let h=1,d=e.length;h1&&(p=Math.sqrt(p),e*=p,i*=p);const _=c/e,f=d/e,m=-d/i,v=c/i,y=_*o+f*l,b=m*o+v*l,x=_*n+f*t,S=m*n+v*t;let A=1/((x-y)*(x-y)+(S-b)*(S-b))-.25;A<0&&(A=0);let k=Math.sqrt(A);r===s&&(k=-k);const T=.5*(y+x)-k*(S-b),w=.5*(b+S)+k*(x-y),M=Math.atan2(b-w,y-T);let R=Math.atan2(S-w,x-T)-M;R<0&&r===1?R+=ki:R>0&&r===0&&(R-=ki);const O=Math.ceil(Math.abs(R/(In+.001))),L=[];for(let E=0;E{const o=Math.abs(e-t),l=o>.5*Math.PI?Math.ceil(2*o/Math.PI):1,h=(e-t)/l;for(let d=0;dt.arc(n[1]*s+e,n[2]*r+i,n[3]*(s+r)/2,n[4],n[5],n[6],a),(n,t,e,i,s,r,a)=>t.arcTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,n[5]*(s+r)/2,a),(n,t,e,i,s,r,a)=>t.bezierCurveTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,n[5]*s+e,n[6]*r+i,a),(n,t,e,i)=>t.closePath(),(n,t,e,i,s,r)=>t.ellipse(n[1]*s+e,n[2]*r+i,n[3]*s,n[4]*r,n[5],n[6],n[7],n[8]),(n,t,e,i,s,r,a)=>t.lineTo(n[1]*s+e,n[2]*r+i,a),(n,t,e,i,s,r,a)=>t.moveTo(n[1]*s+e,n[2]*r+i,a),(n,t,e,i,s,r,a)=>t.quadraticCurveTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,a),(n,t,e,i,s,r,a)=>t.rect(n[1]*s+e,n[2]*r+i,n[3]*s,n[4]*r,a)];function ba(n,t,e=0,i=0,s=1,r=1,a){for(let o=0;os+r.getLength(),0)),this.length}}class o3 extends jb{bezierCurveTo(t,e,i,s,r,a,o,l){return super.bezierCurveTo(e,t,s,i,a,r,o,l)}lineTo(t,e,i,s){return super.lineTo(e,t,i,s)}moveTo(t,e,i){return super.moveTo(e,t,i)}clear(){return super.clear()}}function Do(n,t,e=1){let i=!1;for(let s=0,r=t.length;s<=r;s++)s>=r===i&&((i=!i)?n.lineStart():n.lineEnd()),i&&n.point(t[s])}function bh(n,t,e){const i=t??(Wt(e[e.length-1].x-e[0].x)>Wt(e[e.length-1].y-e[0].y)?_e.ROW:_e.COLUMN);return n==="monotoneY"?new o3(n,i):new jb(n,i)}class CE{constructor(t,e){this.context=t,e&&(this.startPoint=e)}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;default:this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t)}this._lastDefined=t.defined}tryUpdateLength(){return this.context.tryUpdateLength()}}function nu(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;const s=bh("linear",e,n);return l3(new CE(s,i),n),s}function l3(n,t){return Do(n,t,1)}function D1(n,t,e,i,s){n.context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+e)/6,i,n.lastPoint1)}class h3{constructor(t,e){this.context=t,this.startPoint=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){this._point===2&&D1(this,6*this._x1-(this._x0+4*this._x1),6*this._y1-(this._y0+4*this._y1),this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1),(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;break;default:D1(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}function d3(n,t){return Do(n,t,2)}function c3(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return nu(n,t);const s=bh("basis",e,n);return d3(new h3(s,i),n),s}function F1(n){return n<0?-1:1}function z1(n,t,e){const i=n._x1-n._x0,s=t-n._x1,r=(n._y1-n._y0)/(i||Number(s<0&&-0)),a=(e-n._y1)/(s||Number(i<0&&-0)),o=(r*s+a*i)/(i+s);return(F1(r)+F1(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(o))||0}function j1(n,t){const e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-t)/2:t}function n0(n,t,e,i,s){const r=n._x0,a=n._y0,o=n._x1,l=n._y1,h=(o-r)/3;n.context.bezierCurveTo(r+h,a+h*t,o-h,l-h*e,o,l,i,n.lastPoint1)}class PE{constructor(t,e){this.context=t,this.startPoint=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x1,this._y1,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1);break;case 3:n0(this,this._t0,j1(this,this._t0),this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1)}(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){let e=NaN;const i=t.x,s=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(i,s,this._lastDefined1!==!1&&this._lastDefined2!==!1,t):this.context.moveTo(i,s,t);break;case 1:this._point=2;break;case 2:this._point=3,n0(this,j1(this,e=z1(this,i,s)),e,this._lastDefined1!==!1&&this._lastDefined2!==!1);break;default:n0(this,this._t0,e=z1(this,i,s),this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=s,this._t0=e,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined!==!1,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}class u3 extends PE{constructor(t,e){super(t,e)}point(t){return super.point({y:t.x,x:t.y,defined:t.defined})}}function g3(n,t){return Do(n,t,2)}function p3(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return nu(n,t);const s=bh("monotoneX",e,n);return g3(new PE(s,i),n),s}function _3(n,t){return Do(n,t,2)}function f3(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return nu(n,t);const s=bh("monotoneY",e,n);return _3(new u3(s,i),n),s}let m3=class{constructor(t,e=.5,i){this.context=t,this._t=e,this.startPoint=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x=this._y=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){0=0&&(this._t=1-this._t,this._line=1-this._line)}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;default:if(this._t<=0)this.context.lineTo(this._x,i,this._lastDefined!==!1&&t.defined!==!1,this.lastPoint),this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t);else{const s=this._x*(1-this._t)+e*this._t;this.context.lineTo(s,this._y,this._lastDefined!==!1&&t.defined!==!1,this.lastPoint),this.context.lineTo(s,i,this._lastDefined!==!1&&t.defined!==!1,t)}}this._lastDefined=t.defined,this._x=e,this._y=i,this.lastPoint=t}tryUpdateLength(){return this.context.tryUpdateLength()}};function s0(n,t,e={}){const{direction:i,startPoint:s}=e;if(n.length<2-+!!s)return null;const r=new jb("step",i??(Wt(n[n.length-1].x-n[0].x)>Wt(n[n.length-1].y-n[0].y)?_e.ROW:_e.COLUMN));return v3(new m3(r,t,s),n),r}function v3(n,t){return Do(n,t,1)}class y3 extends CE{lineEnd(){this.context.closePath()}}function b3(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;const s=bh("linear",e,n);return x3(new y3(s,i),n),s}function x3(n,t){return Do(n,t,1)}function EE(n,t,e,i,s){let r=n._x1,a=n._y1,o=n._x2,l=n._y2;if(n._l01_a>Kt){const h=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,d=3*n._l01_a*(n._l01_a+n._l12_a);r=(r*h-n._x0*n._l12_2a+n._x2*n._l01_2a)/d,a=(a*h-n._y0*n._l12_2a+n._y2*n._l01_2a)/d}if(n._l23_a>Kt){const h=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,d=3*n._l23_a*(n._l23_a+n._l12_a);o=(o*h+n._x1*n._l23_2a-t*n._l12_2a)/d,l=(l*h+n._y1*n._l23_2a-e*n._l12_2a)/d}n.context.bezierCurveTo(r,a,o,l,n._x2,n._y2,i,n.lastPoint1)}class S3{constructor(t,e=.5,i){this.context=t,this.startPoint=i,this._alpha=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x2,this._y2,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1);break;case 3:this.point({x:this._x2,y:this._y2})}(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const{x:e,y:i}=t;if(this._point){const s=this._x2-e,r=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1):this.context.moveTo(e,i);break;case 1:this._point=2;break;case 2:this._point=3;default:EE(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}function RE(n,t){return function(e,i,s={}){const{direction:r,startPoint:a}=s;if(e.length<2-+!!a)return null;if(e.length<3-+!!a)return nu(e,s);const o=bh(n,r,e),l=new t(o,i,a);return Do(l,e,2),o}}const A3=RE("catmullRom",S3);class k3{constructor(t,e=.5,i){this.context=t,this.startPoint=i,this._alpha=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 1:this.context.moveTo(this._x3,this._y3,this.lastPoint1),this.context.closePath();break;case 2:this.context.lineTo(this._x3,this._y3,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1),this.context.closePath();break;case 3:this.point({x:this._x3,y:this._y3}),this.point({x:this._x4,y:this._y4}),this.point({x:this._x5,y:this._y5})}}point(t){const{x:e,y:i}=t;if(this._point){const s=this._x2-e,r=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=i;break;case 1:this._point=2,this.context.moveTo(this._x4=e,this._y4=i,t);break;case 2:this._point=3,this._x5=e,this._y5=i;break;default:EE(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}const T3=RE("catmullRomClosed",k3);function qa(n,t,e){var i,s;switch(t){case"linear":default:return nu(n,e);case"basis":return c3(n,e);case"monotoneX":return p3(n,e);case"monotoneY":return f3(n,e);case"step":return s0(n,.5,e);case"stepBefore":return s0(n,0,e);case"stepAfter":return s0(n,1,e);case"catmullRom":return A3(n,(i=e==null?void 0:e.curveTension)!==null&&i!==void 0?i:.5,e);case"catmullRomClosed":return T3(n,(s=e==null?void 0:e.curveTension)!==null&&s!==void 0?s:.5,e);case"linearClosed":return b3(n,e)}}class ei extends Zz{constructor(t){super(),this.commandList=[],t&&(this._ctx=t),this._boundsContext=new zb(this.bounds)}setCtx(t){this._ctx=t}moveTo(t,e){return this.commandList.push([re.M,t,e]),this._ctx&&this._ctx.moveTo(t,e),this}lineTo(t,e){return this.commandList.push([re.L,t,e]),this._ctx&&this._ctx.lineTo(t,e),this}quadraticCurveTo(t,e,i,s){return this.commandList.push([re.Q,t,e,i,s]),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,s),this}bezierCurveTo(t,e,i,s,r,a){return this.commandList.push([re.C,t,e,i,s,r,a]),this._ctx&&this._ctx.bezierCurveTo(t,e,i,s,r,a),this}arcTo(t,e,i,s,r){return this.commandList.push([re.AT,t,e,i,s,r]),this._ctx&&this._ctx.arcTo(t,e,i,s,r),this}ellipse(t,e,i,s,r,a,o,l){return this.commandList.push([re.E,t,e,i,s,r,a,o,l]),this._ctx&&this._ctx.ellipse(t,e,i,s,r,a,o,l),this}rect(t,e,i,s){return this.commandList.push([re.R,t,e,i,s]),this._ctx&&this._ctx.rect(t,e,i,s),this}arc(t,e,i,s,r,a){return this.commandList.push([re.A,t,e,i,s,r,a]),this._ctx&&this._ctx.arc(t,e,i,s,r,a),this}closePath(){return this.commandList.push([re.Z]),this._ctx&&this._ctx.closePath(),this}addCurve(t){this.curves.push(t)}clear(){this.transformCbList=null,this.commandList.length=0,this.curves.length=0}beginPath(){this.clear()}toString(){if(!this.toStringCbList){const i=[];i[re.M]=s=>`M${s[1]} ${s[2]}`,i[re.L]=s=>`L${s[1]} ${s[2]}`,i[re.Q]=s=>`Q${s[1]} ${s[2]} ${s[3]} ${s[4]}`,i[re.C]=s=>`C${s[1]} ${s[2]} ${s[3]} ${s[4]} ${s[5]} ${s[6]}`,i[re.A]=s=>{const r=[];n3(r,s[4],s[5],s[1],s[2],s[3],s[3]);let a="";for(let o=0;o`M${s[1]} ${s[2]} h${s[3]} v${s[4]} H${s[1]}Z`,i[re.Z]=s=>"Z",this.toStringCbList=i}const t=this.toStringCbList;let e="";return this.commandList.forEach(i=>{e+=t[i[0]](i)}),e}fromString(t,e,i,s,r){this.clear();const a=t3(t);return this._runCommandStrList(a,e,i,s,r),this._updateBounds(),this}fromLine(t){const{points:e,curveType:i,clipRangeByDimension:s}=t.attribute;if(!e)return;const r=qa(e,i);s==="x"?this.direction=_e.ROW:s==="y"?this.direction=_e.COLUMN:s==="auto"&&(this.direction=r.direction),this.curves=r.curves}fromCustomPath2D(t,e,i,s,r){return this.clear(),this._runCommandList(t.commandList,e,i,s,r),this._updateBounds(),this}transform(t,e,i,s){const r=this.commandList;if(!this.transformCbList){const a=[];a[re.M]=this.moveToTransform,a[re.L]=this.lineToTransform,a[re.Q]=this.quadraticCurveToTransform,a[re.C]=this.bezierCurveToTransform,a[re.AT]=this.arcToTransform,a[re.E]=this.ellipseTransform,a[re.R]=this.rectTransform,a[re.A]=this.arcTransform,a[re.Z]=this.closePathTransform,this.transformCbList=a}r.forEach(a=>{this.transformCbList[a[0]](a,t,e,i,s)}),this._updateBounds()}moveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i}lineToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i}quadraticCurveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i}bezierCurveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i,t[5]=t[5]*s+e,t[6]=t[6]*r+i}arcToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i,t[5]=t[5]*(s+r)/2}ellipseTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s,t[4]=t[4]*r}rectTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s,t[4]=t[4]*r}arcTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*(s+r)/2}closePathTransform(){}_runCommandStrList(t,e=0,i=0,s=1,r=1){let a,o,l,h,d,c=null,u=0,g=0,p=0,_=0;for(let f=0,m=t.length;fa.slice())}_updateBounds(){this.bounds.clear(),ba(this.commandList,this._boundsContext)}release(){this.commandList=[],this._boundsContext=null,this._ctx=null}getLength(){if(this.direction===_e.COLUMN){if(!this.curves.length)return 0;const t=this.curves[0],e=this.curves[this.curves.length-1];return Wt(t.p0.y-e.p1.y)}if(this.direction===_e.ROW){if(!this.curves.length)return 0;const t=this.curves[0],e=this.curves[this.curves.length-1];return Wt(t.p0.x-e.p1.x)}return this.curves.reduce((t,e)=>t+e.getLength(),0)}getAttrAt(t){if(!this.curves)return{pos:{x:0,y:0},angle:0};let e,i=0;for(let r=0;r=t)break;i+=a}const s=(t-i)/e.getLength(this.direction);return{pos:e.getPointAt(s),angle:e.getAngleAt(s)}}}const wn=["l",0,0,0,0,0,0,0];function M3(n,t,e){const i=wn[0]=n[0];if(i==="a"||i==="A")wn[1]=t*n[1],wn[2]=e*n[2],wn[3]=n[3],wn[4]=n[4],wn[5]=n[5],wn[6]=t*n[6],wn[7]=e*n[7];else if(i==="h"||i==="H")wn[1]=t*n[1];else if(i==="v"||i==="V")wn[1]=e*n[1];else for(let s=1,r=n.length;s{Ot.getInstance().warn("空函数")}}),z3=Object.assign(Object.assign({},Re),{points:[],cornerRadius:0,closePath:!0}),j3=Object.assign(Object.assign({},Re),{width:0,height:0,x1:0,y1:0,strokeBoundsBuffer:0,cornerRadius:0});Object.assign(Object.assign({},Re),{width:0,height:0,x1:0,y1:0,cornerRadius:0,length:0});const H3=Object.assign(Object.assign({},Re),{symbolType:"circle",size:10,keepDirIn3d:!0}),IE=Object.assign(Object.assign(Object.assign({},Re),Is),{strokeBoundsBuffer:0,keepDirIn3d:!0}),Ys=Object.assign(Object.assign(Object.assign({},Re),Is),{editable:!1,width:300,height:300,ellipsis:!0,wordBreak:"break-word",verticalDirection:"top",textAlign:"left",textBaseline:"top",layoutDirection:"horizontal",textConfig:[],disableAutoWrapLine:!1,maxHeight:void 0,maxWidth:void 0,singleLine:!1}),ac=Object.assign(Object.assign({repeatX:"no-repeat",repeatY:"no-repeat",image:"",width:0,height:0},Re),{fill:!0,cornerRadius:0}),V3=Object.assign(Object.assign({},ac),{backgroundShowMode:"never",backgroundWidth:0,backgroundHeight:0,textAlign:"left",textBaseline:"middle",direction:"horizontal",margin:0,id:"",width:20,height:20,backgroundFill:"rgba(101, 117, 168, 0.1)",backgroundFillOpacity:1,backgroundStroke:!1,backgroundStrokeOpacity:1,backgroundRadius:4,opacity:1});class W3{}const q=new W3,Hb={horizontal:{width:"width",height:"height",left:"left",top:"top",x:"x",y:"y",bottom:"bottom"},vertical:{width:"height",height:"width",left:"top",top:"left",x:"y",y:"x",bottom:"right"}},DE={fontSize:16,fontFamily:"sans-serif",fill:!0,stroke:!1,fontWeight:"normal",lineHeight:"normal",fontStyle:"normal",textDecoration:"none",textAlign:"left",script:"normal"},Kg=/\w|\(|\)|-/,FE=/[.?!,;:/,。?!、;:]/,G3=/\S/,zE=(n,t)=>{let e=t.fontSize||16;switch(t.script){case"super":case"sub":e*=.8}n.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:e,fontFamily:t.fontFamily||"sans-serif"})};function N3(n,t){const e=t&&t.fill||DE.fill;if(!e)return void(n.globalAlpha=0);const{fillOpacity:i=1,opacity:s=1}=t;n.globalAlpha=i*s,n.fillStyle=e,zE(n,t)}function U3(n,t){const e=t&&t.stroke||DE.stroke;if(!e)return void(n.globalAlpha=0);const{strokeOpacity:i=1,opacity:s=1}=t;n.globalAlpha=i*s,n.lineWidth=t&&typeof t.lineWidth=="number"?t.lineWidth:1,n.strokeStyle=e,zE(n,t)}function mv(n,t,e,i,s){if(!t||t<=0)return 0;const r=q.graphicUtil.textMeasure;let a=i,o=n.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=n.slice(0,a+1),d=Math.floor(r.measureText(h,e).width);for(;l>t||d<=t;){if(l>t?a--:a++,a>n.length){a=n.length;break}if(a<0){a=0;break}o=n.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=n.slice(0,a+1),d=Math.floor(r.measureText(h,e).width)}return s&&(a=xg(n,a)),a}function xg(n,t,e=!1){let i=t;for(;Kg.test(n[i-1])&&Kg.test(n[i])||FE.test(n[i]);)if(i--,i<=0)return e?$3(n,t):t;return i}function $3(n,t){let e=t;for(;Kg.test(n[e-1])&&Kg.test(n[e])||FE.test(n[e]);)if(e++,e>=n.length)return e;return e}function ul(n,t){const e=q.graphicUtil.textMeasure.measureText(n,t),i={ascent:0,height:0,descent:0,width:0};return typeof e.actualBoundingBoxAscent!="number"||typeof e.actualBoundingBoxDescent!="number"?(i.width=Math.floor(e.width),i.height=t.fontSize||0,i.ascent=i.height,i.descent=0):(i.width=Math.floor(e.width),i.height=Math.floor(e.actualBoundingBoxAscent+e.actualBoundingBoxDescent),i.ascent=Math.floor(e.actualBoundingBoxAscent),i.descent=i.height-i.ascent),i}var Y3=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let vv=class{configure(n,t){this.canvas=n.canvas,this.context=n.context,n.bindTextMeasure(this)}measureTextWidth(n,t){return this.context?(this.context.setTextStyleWithoutAlignBaseline(t),this.context.measureText(n).width):this.estimate(n,t).width}estimate(n,{fontSize:t=IE.fontSize}){let e=0,i=0;for(let s=0;s{l.width=l.direction===0?s:this.measureTextWidth(l.text,t)});const r=[];let a=0,o=0;for(;o1){const l=this._clipText(n[o].text,t,e-a,0,n[o].text.length-1,"end",!1);if(i&&l.str!==n[o].text){let h="",d=0;for(let g=0;ge)return{str:"",width:0};const a=this._clipText(n,t,e,0,n.length-1,"end",!1);if(i&&a.str!==n){let o=xg(n,a.str.length,s);o!==a.str.length&&(o>a.str.length&&(a.wordBreaked=o,o=a.str.length),a.str=n.substring(0,o),a.width=this.measureTextWidth(a.str,t))}return a}_clipText(n,t,e,i,s,r,a){let o;if(r==="start")o=this._clipTextStart(n,t,e,i,s),a&&(o.result=a+o.str);else if(r==="middle"){const l=this._clipTextMiddle(n,t,e,"","",0,0,1);o={str:"none",width:l.width,result:l.left+a+l.right}}else o=this._clipTextEnd(n,t,e,i,s),a&&(o.result=o.str+a);return o}_clipTextEnd(n,t,e,i,s){if(i===s){Ot.getInstance().warn(`【_clipTextEnd】不应该走到这里${n}, ${i}, ${s}`);const h=n.substring(0,s+1);return{str:h,width:this.measureTextWidth(h,t)}}const r=Math.floor((i+s)/2),a=n.substring(0,r+1),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=n.substring(0,r);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextEnd(n,t,e,i,r)}if(o=n.length-1)return{str:n,width:this.measureTextWidth(n,t)};const h=n.substring(0,r+2);return l=this.measureTextWidth(h,t),l>=e?{str:a,width:o}:this._clipTextEnd(n,t,e,r,s)}return{str:a,width:o}}_clipTextStart(n,t,e,i,s){const r=Math.ceil((i+s)/2),a=n.substring(r-1,n.length),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=n.substring(r,n.length);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextStart(n,t,e,r,n.length)}if(o=e?{str:a,width:o}:this._clipTextStart(n,t,e,i,r)}return{str:a,width:o}}_clipTextMiddle(n,t,e,i,s,r,a,o){const l=n.substring(0,o),h=this.measureTextWidth(l,t);if(h+a>e)return{left:i,right:s,width:r+a};const d=n.substring(n.length-o,n.length),c=this.measureTextWidth(d,t);return h+c>e?{left:l,right:s,width:h+a}:this._clipTextMiddle(n,t,e,l,d,h,c,o+1)}clipTextWithSuffixVertical(n,t,e,i,s,r){if(i==="")return this.clipTextVertical(n,t,e,s);if(n.length===0)return{verticalList:n,width:0};const a=this.clipTextVertical(n,t,e,s);if(a.verticalList.length===n.length&&a.verticalList[a.verticalList.length-1].width===n[n.length-1].width)return a;const o=this.measureTextWidth(i,t);if(o>e)return a;let l;if(e-=o,r==="start"){const h=this.revertVerticalList(n);l=this.clipTextVertical(h,t,e,s);const d=this.revertVerticalList(l.verticalList);d.unshift({text:i,direction:1,width:o}),l.verticalList=d}else if(r==="middle"){const h=this.clipTextVertical(n,t,e/2,s),d=this.revertVerticalList(n),c=this.clipTextVertical(d,t,e/2,s);h.verticalList.push({text:i,direction:1,width:o}),this.revertVerticalList(c.verticalList).forEach(u=>h.verticalList.push(u)),l={verticalList:h.verticalList,width:h.width+c.width}}else l=this.clipTextVertical(n,t,e,s),l.verticalList.push({text:i,direction:1,width:o});return l.width+=o,l}revertVerticalList(n){return n.reverse().map(t=>{const e=t.text.split("").reverse().join("");return Object.assign(Object.assign({},t),{text:e})})}clipTextWithSuffix(n,t,e,i,s,r,a=!1){if(i==="")return this.clipText(n,t,e,s);if(n.length===0)return{str:"",width:0};const o=this.measureTextWidth(n,t);if(!a&&o<=e)return{str:n,width:o};const l=this.measureTextWidth(i,t);if(l>e)return{str:"",width:0};if(a&&o+l<=e)return{str:n+i,width:o+l};e-=l;const h=this._clipText(n,t,e,0,n.length-1,r,i);if(s&&h.str!==n){const d=xg(n,h.str.length);d!==h.str.length&&(h.result=n.substring(0,d),h.width=this.measureTextWidth(h.str,t))}else a&&h.str===n&&(h.result=n+i);return h.str=h.result,h.width+=l,h}};vv=Y3([pt()],vv);var X3=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const yv=Symbol.for("TextMeasureContribution");let bv=class extends vv{};bv=X3([pt()],bv);const At=new Uz,jE=Symbol.for("CanvasFactory"),K3=Symbol.for("Context2dFactory");function xv(n){return At.getNamed(jE,q.global.env)(n)}class q3{constructor(){this.pools=[],this.allocatedCanvas=[]}shareCanvas(){return this.allocatedCanvas.length?this.allocatedCanvas[0]:this.getCommonCanvas()}getCommonCanvas(){return this._commonCanvas||(this._commonCanvas=this.allocate({width:100,height:100,dpr:2})),this._commonCanvas}allocate(t){if(!this.pools.length){const i=xv(Object.assign({nativeCanvas:q.global.createCanvas(t)},t));return this.allocatedCanvas.push(i),i}const e=this.pools.pop();return e.resize(t.width,t.height),e.dpr=t.dpr,e}allocateByObj(t){if(!this.pools.length){const i={width:t.width/t.dpr,height:t.height/t.dpr,dpr:t.dpr},s=xv(Object.assign({nativeCanvas:q.global.createCanvas(i)},i));return this.allocatedCanvas.push(s),s}const e=this.pools.pop();return e.width=t.width,e.height=t.height,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}const ql=new q3;var Z3=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},J3=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const qg=Symbol.for("VWindow"),Vb=Symbol.for("WindowHandlerContribution");let Sv=class{get width(){if(this._handler){const n=this._handler.getWH();return this._width=n.width}return this._width}get height(){if(this._handler){const n=this._handler.getWH();return this._height=n.height}return this._height}get dpr(){return this._handler.getDpr()}constructor(){this.hooks={onChange:new _n(["x","y","width","height"])},this.active=()=>{const n=this.global;!n.env||this.actived||(At.getNamed(Vb,n.env).configure(this,n),this.actived=!0)},this._uid=Je.GenAutoIncrementId(),this.global=q.global,this.postInit()}postInit(){this.global.hooks.onSetEnv.tap("window",this.active),this.active()}get style(){var n;return(n=this._handler.getStyle())!==null&&n!==void 0?n:{}}set style(n){this._handler.setStyle(n)}create(n){var t,e;this._handler.createWindow(n);const i=this._handler.getWH();this._width=i.width,this._height=i.height,n.viewBox?this.setViewBox(n.viewBox):n.canvasControled!==!1?this.setViewBox({x1:0,y1:0,x2:this._width,y2:this._height}):this.setViewBox({x1:0,y1:0,x2:(t=n.width)!==null&&t!==void 0?t:this._width,y2:(e=n.height)!==null&&e!==void 0?e:this._height}),this.title=this._handler.getTitle(),this.resizable=!0}setWindowHandler(n){this._handler=n}setDpr(n){return this._handler.setDpr(n)}resize(n,t){return this._handler.resizeWindow(n,t)}configure(){throw new Error("暂不支持")}release(){return this.global.hooks.onSetEnv.unTap("window",this.active),this._handler.releaseWindow()}getContext(){return this._handler.getContext()}getNativeHandler(){return this._handler.getNativeHandler()}getImageBuffer(n){return this._handler.getImageBuffer?this._handler.getImageBuffer(n):null}addEventListener(n,t,e){return this._handler.addEventListener(n,t,e)}removeEventListener(n,t,e){return this._handler.removeEventListener(n,t,e)}dispatchEvent(n){return this._handler.dispatchEvent(n)}getBoundingClientRect(){return this._handler.getBoundingClientRect()}getContainer(){return this._handler.container}clearViewBox(n){this._handler.clearViewBox(n)}setViewBox(n){this._handler.setViewBox(n)}setViewBoxTransform(n,t,e,i,s,r){this._handler.setViewBoxTransform(n,t,e,i,s,r)}getViewBox(){return this._handler.getViewBox()}getViewBoxTransform(){return this._handler.getViewBoxTransform()}pointTransform(n,t){const e=this._handler.getViewBox(),i={x:n,y:t};return this._handler.getViewBoxTransform().transformPoint({x:n,y:t},i),i.x-=e.x1,i.y-=e.y1,i}hasSubView(){const n=this._handler.getViewBox();return!(n.x1===0&&n.y1===0&&Ge(this.width,n.width())&&Ge(this.height,n.height()))}isVisible(n){return this._handler.isVisible(n)}onVisibleChange(n){return this._handler.onVisibleChange(n)}getTopLeft(n){return this._handler.getTopLeft(n)}};Sv=Z3([pt(),J3("design:paramtypes",[])],Sv);var HE=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},VE=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},H1=function(n,t){return function(e,i){t(e,i,n)}};let Av=class{get canvas(){return this.tryInitCanvas(),this._canvas}get context(){return this.tryInitCanvas(),this._context}constructor(n){this.contributions=n,this.configured=!1,this.global=q.global,this.global.hooks.onSetEnv.tap("graphic-util",(t,e,i)=>{this.configured=!1,this.configure(i,e)})}get textMeasure(){return this._textMeasure||this.configure(this.global,this.global.env),this._textMeasure}configure(n,t){this.configured||(this.contributions.getContributions().forEach(e=>{e.configure(this,t)}),this.configured=!0)}tryInitCanvas(){if(!this._canvas){const n=ql.shareCanvas();this._canvas=n,this._context=n.getContext("2d")}}bindTextMeasure(n){this._textMeasure=n}measureText(n,t,e="native"){var i;this.configure(this.global,this.global.env);const s=this.global.measureTextMethod;this.global.measureTextMethod=e;const r={width:this._textMeasure.measureTextWidth(n,t),height:(i=t.fontSize)!==null&&i!==void 0?i:Is.fontSize};return this.global.measureTextMethod=s,r}createTextMeasureInstance(n,t,e){return this.configure(this.global,this.global.env),new Fi(Object.assign({defaultFontParams:{fontFamily:Is.fontFamily,fontSize:Is.fontSize},getCanvasForMeasure:e||(()=>this.canvas),getTextBounds:void 0,specialCharSet:`-/: .,@%'"~`+Fi.ALPHABET_CHAR_SET+Fi.ALPHABET_CHAR_SET.toUpperCase()},t??{}),n)}drawGraphicToCanvas(n,t,e){if(!t.defaultLayer)return null;const i=At.get(qg),s=n.AABBBounds,r=s.width(),a=s.height(),o=-s.x1,l=-s.y1;i.create({viewBox:{x1:o,y1:l,x2:s.x2,y2:s.y2},width:r,height:a,canvas:e,dpr:t.window.dpr,canvasControled:!0,offscreen:!0,title:""});const h=t.params.optimize.disableCheckGraphicWidthOutRange;t.params.optimize.disableCheckGraphicWidthOutRange=!0,t.defaultLayer.getNativeHandler().drawTo(i,[n],{transMatrix:i.getViewBoxTransform(),viewBox:i.getViewBox(),stage:t,layer:t.defaultLayer,renderService:t.renderService,background:"transparent",clear:!0,updateBounds:!1}),t.params.optimize.disableCheckGraphicWidthOutRange=h;const d=i.getNativeHandler();return d.nativeCanvas?d.nativeCanvas:null}};Av=HE([pt(),H1(0,Rt(ii)),H1(0,ci(yv)),VE("design:paramtypes",[Object])],Av);var Ir;(function(n){n[n.transform=0]="transform",n[n.matrix=1]="matrix"})(Ir||(Ir={}));const ti=new Ee;let kv=class{constructor(){this.matrix=new Ee}init(n){return this.mode=Ir.transform,this.originTransform=n,this.matrix.reset(),this}fromMatrix(n,t){return this.mode=Ir.matrix,this.outSourceMatrix=n,this.outTargetMatrix=t,this}scaleMatrix(n,t,e){const i=this.outSourceMatrix;if(ti.setValue(i.a,i.b,i.c,i.d,i.e,i.f),this.outTargetMatrix.reset(),e){const{x:s,y:r}=e;this.outTargetMatrix.translate(s,r),this.outTargetMatrix.scale(n,t),this.outTargetMatrix.translate(-s,-r)}else this.outTargetMatrix.scale(n,t);return this.outTargetMatrix.multiply(ti.a,ti.b,ti.c,ti.d,ti.e,ti.f),this}rotateMatrix(n,t){const e=this.outSourceMatrix;if(ti.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),t){const{x:i,y:s}=t;this.outTargetMatrix.translate(i,s),this.outTargetMatrix.rotate(n),this.outTargetMatrix.translate(-i,-s)}else this.outTargetMatrix.rotate(n);return this.outTargetMatrix.multiply(ti.a,ti.b,ti.c,ti.d,ti.e,ti.f),this}scale(n,t,e){return this.mode===Ir.matrix?this.scaleMatrix(n,t,e):this}rotate(n,t){return this.mode===Ir.matrix?this.rotateMatrix(n,t):this}translateMatrix(n,t){const e=this.outSourceMatrix;return ti.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),this.outTargetMatrix.translate(n,t),this.outTargetMatrix.multiply(ti.a,ti.b,ti.c,ti.d,ti.e,ti.f),this}translate(n,t){return this.mode===Ir.matrix?this.translateMatrix(n,t):this}simplify(n){return this.mode===Ir.matrix?this.simplifyMatrix(n):this}simplifyMatrix(n){return this}};kv=HE([pt(),VE("design:paramtypes",[])],kv);const Gi={arc:R3,area:O3,circle:B3,line:D3,path:F3,symbol:H3,text:IE,rect:j3,polygon:z3,richtext:Ys,richtextIcon:V3,image:ac,group:L3,glyph:I3},a0=Object.keys(Gi);function Q3(){return{arc:Object.assign({},Gi.arc),area:Object.assign({},Gi.area),circle:Object.assign({},Gi.circle),line:Object.assign({},Gi.line),path:Object.assign({},Gi.path),symbol:Object.assign({},Gi.symbol),text:Object.assign({},Gi.text),rect:Object.assign({},Gi.rect),polygon:Object.assign({},Gi.polygon),richtext:Object.assign({},Gi.richtext),richtextIcon:Object.assign({},Gi.richtextIcon),image:Object.assign({},Gi.image),group:Object.assign({},Gi.group),glyph:Object.assign({},Gi.glyph)}}function Yu(n,t){Object.keys(t).forEach(e=>{n[e]=t[e]})}const V1=Q3();class oc{constructor(){this.initTheme(),this.dirty=!1}initTheme(){this._defaultTheme={},a0.forEach(t=>{this._defaultTheme[t]=Object.create(V1[t])}),this.combinedTheme=this._defaultTheme}getTheme(t){if(!t)return this.combinedTheme;if(!this.dirty)return this.combinedTheme;let e={};const i=this.getParentWithTheme(t);return i&&(e=i.theme),this.applyTheme(t,e),this.combinedTheme}getParentWithTheme(t){for(;t.parent;)if((t=t.parent).theme)return t;return null}applyTheme(t,e,i=!1){if(this.dirty){const s=this.getParentWithTheme(t);if(s){const r=s.theme;(r.dirty||i)&&r.applyTheme(s,e,!0)}this.userTheme?this.doCombine(s&&s.theme.combinedTheme):(s?this.combinedTheme=s.theme.combinedTheme:(this.combinedTheme=this._defaultTheme,Ot.getInstance().warn("未知错误,走到不应该走的区域里")),this.dirty=!1)}return this.combinedTheme}doCombine(t){const e=this.userTheme,i=this.combinedTheme;a0.forEach(s=>{const r=Object.create(V1[s]);t&&t[s]&&Yu(r,t[s]),i[s]&&Yu(r,i[s]),e[s]&&Yu(r,e[s]),this.combinedTheme[s]=r}),e.common&&a0.forEach(s=>{Yu(this.combinedTheme[s],e.common)}),this.dirty=!1}setTheme(t,e){let i=this.userTheme;i?Object.keys(t).forEach(s=>{i[s]?Object.assign(i[s],t[s]):i[s]=Object.assign({},t[s])}):i=t,this.userTheme=i,this.dirty=!0,this.dirtyChildren(e)}resetTheme(t,e){this.userTheme=t,this.dirty=!0,this.dirtyChildren(e)}dirtyChildren(t){t.forEachChildren(e=>{e.isContainer&&(e.theme&&(e.theme.dirty=!0),this.dirtyChildren(e))})}}const WE=new oc;function Mt(n,t){return n.glyphHost?Mt(n.glyphHost):t?(n.isContainer,t):tj(n)||n.attachedThemeGraphic&&Mt(n.attachedThemeGraphic)||WE.getTheme()}function tj(n){let t;if(t=n.isContainer?n:n.parent,t){for(;t&&!t.theme;)t=t.parent;return t?(t.theme||t.createTheme(),t.theme.getTheme(t)):WE.getTheme()}return null}var ej=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};class ij extends Io{get previousSibling(){return this._prev}get nextSibling(){return this._next}get children(){return this.getChildren()}get firstChild(){return this._firstChild}get lastChild(){return this._lastChild}get count(){return this._count}get childrenCount(){return this._idMap?this._idMap.size:0}constructor(){super(),this._uid=Je.GenAutoIncrementId(),this._firstChild=null,this._lastChild=null,this.parent=null,this._count=1}forEachChildren(t,e=!1){if(e){let i=this._lastChild,s=0;for(;i;){if(t(i,s++))return;i=i._prev}}else{let i=this._firstChild,s=0;for(;i;){if(t(i,s++))return;i=i._next}}}forEachChildrenAsync(t,e=!1){return ej(this,void 0,void 0,function*(){if(e){let i=this._lastChild,s=0;for(;i;){let r=t(i,s++);if(r.then&&(r=yield r),r)return;i=i._prev}}else{let i=this._firstChild,s=0;for(;i;){let r=t(i,s++);if(r.then&&(r=yield r),r)return;i=i._next}}})}forEach(t){return this.forEachChildren(t)}appendChild(t,e=!0){if(this._uid===t._uid)return null;if(!e&&t.isAncestorsOf(this))throw new Error("【Node::appendChild】不能将父辈元素append为子元素");return t.parent&&t.parent.removeChild(t),t.parent=this,this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild,this._lastChild=t):(this._firstChild=this._lastChild=t,t._prev=t._next=null),this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this.setCount(t.count),this._structEdit=!0,t}appendChildArrHighPerformance(t,e=!1){return console.error("暂不支持该函数"),t}insertBefore(t,e){if(!e)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");return e.parent!==this?null:(t.parent&&t.parent.removeChild(t),t.parent=this,t._prev=e._prev,e._prev?e._prev._next=t:this._firstChild=t,e._prev=t,t._next=e,this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t)}insertAfter(t,e){if(!e)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertAfter】不能将父辈元素insert为子元素");return e.parent!==this?null:(t.parent&&t.parent.removeChild(t),t.parent=this,e._next?(e._next._prev=t,t._next=e._next):this._lastChild=t,e._next=t,t._prev=e,this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t)}insertInto(t,e){if(!this._ignoreWarn&&this._nodeList&&Ot.getInstance().warn("insertIntoKeepIdx和insertInto混用可能会存在错误"),e>=this.childrenCount)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");if(t.parent&&t.parent.removeChild(t),t.parent=this,e===0)t._next=this._firstChild,this._firstChild&&(this._firstChild._prev=t),t._prev=null,this._firstChild=t;else{let i=this._firstChild;for(let s=0;s0&&(i=i._next)}if(!i)return null;t._next=i._next,t._prev=i,i._next=t,t._next&&(t._next._prev=t)}return this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t}insertIntoKeepIdx(t,e){if(this._nodeList||(this._nodeList=this.children),this._nodeList[e]){const r=this._nodeList[e];return this._nodeList.splice(e,0,t),this.insertBefore(t,r)}let i;this._nodeList[e]=t;for(let r=e-1;r>=0&&(i=this._nodeList[r],!i);r--);if(i)return i._next?this.insertBefore(t,i._next):this.appendChild(t);this._ignoreWarn=!0;const s=this.insertInto(t,0);return this._ignoreWarn=!1,s}removeChild(t){if(!this._idMap||!this._idMap.has(t._uid))return null;if(this._idMap.delete(t._uid),this._nodeList){const e=this._nodeList.findIndex(i=>i===t);e>=0&&this._nodeList.splice(e,1)}return t._prev?t._prev._next=t._next:this._firstChild=t._next,t._next?t._next._prev=t._prev:this._lastChild=t._prev,t.parent=null,t._prev=null,t._next=null,this._structEdit=!0,this.setCount(-t.count),t}delete(){this.parent&&this.parent.removeChild(this)}removeAllChild(t){if(!this._idMap)return;this._nodeList&&(this._nodeList.length=0);let e=this._firstChild;for(;e;){const i=e._next;e.parent=null,e._prev=null,e._next=null,e=e._next,e=i}this._firstChild=null,this._lastChild=null,this._idMap.clear(),this._structEdit=!0,this.setCount(1-this._count)}replaceChild(t,e){throw new Error("暂不支持")}find(t,e=!1){let i=null;return this.forEachChildren((s,r)=>!(s===this||!t(s,r))&&(i=s,!0)),e&&this.forEachChildren(s=>{if(s.isContainer){const r=s.find(t,!0);if(r)return i=r,!0}return!1}),i}findAll(t,e=!1){let i=[];return this.forEachChildren((s,r)=>{s!==this&&t(s,r)&&i.push(s)}),e&&this.forEachChildren(s=>{if(s.isContainer){const r=s.findAll(t,!0);r.length&&(i=i.concat(r))}}),i}getElementById(t){return this.find(e=>e.id===t,!0)}findChildById(t){return this.getElementById(t)}findChildByUid(t){return this._idMap&&this._idMap.get(t)||null}getElementsByName(t){return this.findAll(e=>e.name===t,!0)}findChildrenByName(t){return this.getElementsByName(t)}getElementsByType(t){return this.findAll(e=>e.type===t,!0)}getChildByName(t,e=!1){return this.find(i=>i.name===t,e)}getChildAt(t){let e=this._firstChild;if(!e)return null;for(let i=0;i{if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.createPointerEvent(i,i.type,s);if(this.dispatchEvent(r,"pointerdown"),r.pointerType==="touch")this.dispatchEvent(r,"touchstart");else if(Rr(r.pointerType)){const a=r.button===2;this.dispatchEvent(r,a?"rightdown":"mousedown")}this.trackingData(i.pointerId).pressTargetsByButton[i.button]=r.composedPath(),this.freeEvent(r)},this.onPointerMove=(i,s)=>{var r,a;if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const o=this.createPointerEvent(i,i.type,s),l=Rr(o.pointerType),h=this.trackingData(i.pointerId),d=this.findMountedTarget(h.overTargets);if(h.overTargets&&d&&d!==this.rootTarget&&d!==o.target){const c=i.type==="mousemove"?"mouseout":"pointerout",u=this.createPointerEvent(i,c,d||void 0);if(this.dispatchEvent(u,"pointerout"),l&&this.dispatchEvent(u,"mouseout"),!o.composedPath().includes(d)){const g=this.createPointerEvent(i,"pointerleave",d||void 0);for(g.eventPhase=g.AT_TARGET;g.target&&!o.composedPath().includes(g.target);)g.currentTarget=g.target,this.notifyTarget(g),l&&this.notifyTarget(g,"mouseleave"),g.target=g.target.parent;this.freeEvent(g)}this.freeEvent(u)}if(d!==o.target){const c=i.type==="mousemove"?"mouseover":"pointerover",u=this.clonePointerEvent(o,c);this.dispatchEvent(u,"pointerover"),l&&this.dispatchEvent(u,"mouseover");let g=d==null?void 0:d.parent;for(;g&&g!==this.rootTarget.parent&&g!==o.target;)g=g.parent;if(!g||g===this.rootTarget.parent){const p=this.clonePointerEvent(o,"pointerenter");p.eventPhase=p.AT_TARGET;let _=p.target;const f=new Set;let m=d;for(;m&&m!==this.rootTarget;)f.add(m),m=m.parent;for(;_&&_!==d&&_!==this.rootTarget.parent;)f.has(_)||(p.currentTarget=_,this.notifyTarget(p),l&&this.notifyTarget(p,"mouseenter")),_=_.parent;this.freeEvent(p)}this.freeEvent(u)}this.dispatchEvent(o,"pointermove"),o.pointerType==="touch"&&this.dispatchEvent(o,"touchmove"),l&&(this.dispatchEvent(o,"mousemove"),this.cursorTarget=o.target,this.cursor=((a=(r=o.target)===null||r===void 0?void 0:r.attribute)===null||a===void 0?void 0:a.cursor)||this.rootTarget.getCursor()),h.overTargets=o.composedPath(),this.freeEvent(o)},this.onPointerOver=(i,s)=>{var r,a;if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const o=this.trackingData(i.pointerId),l=this.createPointerEvent(i,i.type,s),h=Rr(l.pointerType);this.dispatchEvent(l,"pointerover"),h&&this.dispatchEvent(l,"mouseover"),l.pointerType==="mouse"&&(this.cursorTarget=l.target,this.cursor=((a=(r=l.target)===null||r===void 0?void 0:r.attribute)===null||a===void 0?void 0:a.cursor)||this.rootTarget.getCursor());const d=this.clonePointerEvent(l,"pointerenter");for(d.eventPhase=d.AT_TARGET;d.target&&d.target!==this.rootTarget.parent;)d.currentTarget=d.target,this.notifyTarget(d),h&&this.notifyTarget(d,"mouseenter"),d.target=d.target.parent;o.overTargets=l.composedPath(),this.freeEvent(l),this.freeEvent(d)},this.onPointerOut=(i,s)=>{if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.trackingData(i.pointerId);if(r.overTargets){const a=Rr(i.pointerType),o=this.findMountedTarget(r.overTargets),l=this.createPointerEvent(i,"pointerout",o||void 0);this.dispatchEvent(l),a&&this.dispatchEvent(l,"mouseout");const h=this.createPointerEvent(i,"pointerleave",o||void 0);for(h.eventPhase=h.AT_TARGET;h.target&&h.target!==this.rootTarget.parent;)h.currentTarget=h.target,this.notifyTarget(h),a&&this.notifyTarget(h,"mouseleave"),h.target=h.target.parent;r.overTargets=[],this.freeEvent(l),this.freeEvent(h)}this.cursorTarget=null,this.cursor=""},this.onPointerUp=(i,s)=>{var r;if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const a=Za.now(),o=this.createPointerEvent(i,i.type,s);if(this.dispatchEvent(o,"pointerup"),o.pointerType==="touch")this.dispatchEvent(o,"touchend");else if(Rr(o.pointerType)){const c=o.button===2;this.dispatchEvent(o,c?"rightup":"mouseup")}const l=this.trackingData(i.pointerId),h=this.findMountedTarget(l.pressTargetsByButton[i.button]);let d=h;if(h&&!o.composedPath().includes(h)){let c=h;for(;c&&!o.composedPath().includes(c);){if(o.currentTarget=c,this.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch")this.notifyTarget(o,"touchendoutside");else if(Rr(o.pointerType)){const u=o.button===2;this.notifyTarget(o,u?"rightupoutside":"mouseupoutside")}c=c.parent}delete l.pressTargetsByButton[i.button],d=c}if(d){const c=this.clonePointerEvent(o,"click");c.target=d,c.path=[],c.detailPath=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:c.target,timeStamp:a});const u=l.clicksByButton[i.button];u.target===c.target&&a-u.timeStamp<((r=this._config.clickInterval)!==null&&r!==void 0?r:200)?++u.clickCount:u.clickCount=1,u.target=c.target,u.timeStamp=a,c.detail=u.clickCount,Rr(c.pointerType)?(this.dispatchEvent(c,"click"),u.clickCount===2&&this.dispatchEvent(c,"dblclick")):c.pointerType==="touch"&&this._config.supportsTouchEvents&&(this.dispatchEvent(c,"tap"),u.clickCount===2&&this.dispatchEvent(c,"dbltap")),this.dispatchEvent(c,"pointertap"),this.freeEvent(c)}this.freeEvent(o)},this.onPointerUpOutside=(i,s)=>{if(!(i instanceof gn))return void Ot.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.trackingData(i.pointerId),a=this.findMountedTarget(r.pressTargetsByButton[i.button]),o=this.createPointerEvent(i,i.type,s);if(a){let l=a;for(;l;)o.currentTarget=l,this.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch"?this.notifyTarget(o,"touchendoutside"):Rr(o.pointerType)&&this.notifyTarget(o,o.button===2?"rightupoutside":"mouseupoutside"),l=l.parent;delete r.pressTargetsByButton[i.button]}this.freeEvent(o)},this.onWheel=(i,s)=>{if(!(i instanceof Jr))return void Ot.getInstance().warn("EventManager cannot map a non-wheel event as a wheel event");const r=this.createWheelEvent(i,s);this.dispatchEvent(r),this.freeEvent(r)},this.rootTarget=t,this.mappingTable={},this._config=Object.assign({clickInterval:200},e),this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel)}addEventMapping(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort((i,s)=>i.priority-s.priority)}dispatchEvent(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.dispatch.emit(e||t.type,t)}mapEvent(t){var e,i,s,r,a,o,l;if(!this.rootTarget)return;const h=this.mappingTable[t.type];let d;const c=`${t.canvasX}-${t.canvasY}`;if(!((e=this._prePointTargetCache)===null||e===void 0)&&e[c]&&(!((s=(i=this._prePointTargetCache)===null||i===void 0?void 0:i[c])===null||s===void 0)&&s.stage)&&((a=(r=this._prePointTargetCache)===null||r===void 0?void 0:r[c])===null||a===void 0?void 0:a.stage.renderCount)===((o=this._prePointTargetCache)===null||o===void 0?void 0:o.stageRenderCount)?d=this._prePointTargetCache[c]:(d=this.pickTarget(t.viewX,t.viewY,t),t.pickParams||(this._prePointTargetCache={[c]:d,stageRenderCount:(l=d==null?void 0:d.stage.renderCount)!==null&&l!==void 0?l:-1})),h)for(let u=0,g=h.length;u=0;s--)if(t.currentTarget=i[s],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}propagationPath(t){const e=[t];for(let i=0;i<2048&&t!==this.rootTarget&&t.parent;i++){if(!t.parent)throw new Error("Cannot find propagation path to disconnected target");e.push(t.parent),t=t.parent}return e.reverse(),e}notifyTarget(t,e){if(this.pauseNotify)return;e=e??t.type;const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${e}capture`:e;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)}findMountedTarget(t){if(!t)return null;let e=t[0];for(let i=1;i{e[i].x=t[i].x,e[i].y=t[i].y}))}copyData(t,e){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=Za.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.which=t.which,e.layer.x=t.layer.x,e.layer.y=t.layer.y,e.page.x=t.page.x,e.page.y=t.page.y,e.pickParams=t.pickParams}trackingData(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]}allocateEvent(t){var e;this.eventPool.has(t)||this.eventPool.set(t,[]);const i=((e=this.eventPool.get(t))===null||e===void 0?void 0:e.pop())||new t(this);return i.eventPhase=i.NONE,i.currentTarget=null,i.path=[],i.detailPath=[],i.target=null,i}freeEvent(t){var e;if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventManager!");const i=t.constructor;this.eventPool.has(i)||this.eventPool.set(i,[]),(e=this.eventPool.get(i))===null||e===void 0||e.push(t)}notifyListeners(t,e){const i=t.currentTarget._events[e];if(i)if("fn"in i)i.once&&t.currentTarget.removeEventListener(e,i.fn,{once:!0}),i.fn.call(i.context,t);else for(let s=0,r=i.length;s{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.normalizeToPointerData(d);this.autoPreventDefault&&c[0].isNormalized&&(d.cancelable||!("cancelable"in d))&&d.preventDefault();for(let u=0,g=c.length;u{if(this.supportsTouchEvents&&d.pointerType==="touch"||this.isEventOutsideOfTargetElement(d))return;const c=this.normalizeToPointerData(d);for(let u=0,g=c.length;u{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.isEventOutsideOfTargetViewPort(d)?"outside":"",u=this.normalizeToPointerData(d);for(let g=0,p=u.length;g{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.normalizeToPointerData(d);for(let u=0,g=c.length;u{const c=this.normalizeWheelEvent(d);this.manager.mapEvent(c)};const{targetElement:e,resolution:i,rootNode:s,global:r,autoPreventDefault:a=!1,clickInterval:o,supportsTouchEvents:l=r.supportsTouchEvents,supportsPointerEvents:h=r.supportsPointerEvents}=t;this.manager=new nj(s,{clickInterval:o,supportsTouchEvents:l}),this.globalObj=r,this.supportsPointerEvents=h,this.supportsTouchEvents=l,this.supportsMouseEvents=r.supportsMouseEvents,this.applyStyles=r.applyStyles,this.autoPreventDefault=a,this.eventsAdded=!1,this.rootPointerEvent=new gn,this.rootWheelEvent=new Jr,this.cursorStyles={default:"inherit",pointer:"pointer"},this.resolution=i,this.setTargetElement(e)}release(){this.removeEvents(),this.manager&&this.manager.release(),this.domElement=null,this.manager=null,this.globalObj=null}setCursor(t,e){if(!e&&!this.manager.rootTarget.window._handler.canvas.controled)return;t||(t="default");const{applyStyles:i,domElement:s}=this;if(this.currentCursor===t)return;this.currentCursor=t;const r=this.cursorStyles[t];r?typeof r=="string"&&i?s.style.cursor=r:typeof r=="function"?r(t):typeof r=="object"&&i&&Object.assign(s.style,r):i&&tt(t)&&!On(this.cursorStyles,t)&&(s.style.cursor=t)}setTargetElement(t){this.removeEvents(),this.domElement=t,this.addEvents()}addEvents(){if(this.eventsAdded||!this.domElement)return;const{globalObj:t,domElement:e}=this;this.supportsPointerEvents?(t.getDocument()?(t.getDocument().addEventListener("pointermove",this.onPointerMove,!0),t.getDocument().addEventListener("pointerup",this.onPointerUp,!0)):(e.addEventListener("pointermove",this.onPointerMove,!0),e.addEventListener("pointerup",this.onPointerUp,!0)),e.addEventListener("pointerdown",this.onPointerDown,!0),e.addEventListener("pointerleave",this.onPointerOverOut,!0),e.addEventListener("pointerover",this.onPointerOverOut,!0)):(t.getDocument()?(t.getDocument().addEventListener("mousemove",this.onPointerMove,!0),t.getDocument().addEventListener("mouseup",this.onPointerUp,!0)):(e.addEventListener("mousemove",this.onPointerMove,!0),e.addEventListener("mouseup",this.onPointerUp,!0)),e.addEventListener("mousedown",this.onPointerDown,!0),e.addEventListener("mouseout",this.onPointerOverOut,!0),e.addEventListener("mouseover",this.onPointerOverOut,!0)),this.supportsTouchEvents&&(e.addEventListener("touchstart",this.onPointerDown,!0),e.addEventListener("touchend",this.onPointerUp,!0),e.addEventListener("touchmove",this.onPointerMove,!0)),e.addEventListener("wheel",this.onWheel,{capture:!0}),this.eventsAdded=!0}removeEvents(){if(!this.eventsAdded||!this.domElement)return;const{globalObj:t,domElement:e}=this;this.supportsPointerEvents?(t.getDocument()?(t.getDocument().removeEventListener("pointermove",this.onPointerMove,!0),t.getDocument().removeEventListener("pointerup",this.onPointerUp,!0)):(e.removeEventListener("pointermove",this.onPointerMove,!0),e.removeEventListener("pointerup",this.onPointerUp,!0)),e.removeEventListener("pointerdown",this.onPointerDown,!0),e.removeEventListener("pointerleave",this.onPointerOverOut,!0),e.removeEventListener("pointerover",this.onPointerOverOut,!0)):(t.getDocument()?(t.getDocument().removeEventListener("mousemove",this.onPointerMove,!0),t.getDocument().removeEventListener("mouseup",this.onPointerUp,!0)):(e.removeEventListener("mousemove",this.onPointerMove,!0),e.removeEventListener("mouseup",this.onPointerUp,!0)),e.removeEventListener("mousedown",this.onPointerDown,!0),e.removeEventListener("mouseout",this.onPointerOverOut,!0),e.removeEventListener("mouseover",this.onPointerOverOut,!0)),this.supportsTouchEvents&&(e.removeEventListener("touchstart",this.onPointerDown,!0),e.removeEventListener("touchend",this.onPointerUp,!0),e.removeEventListener("touchmove",this.onPointerMove,!0)),e.removeEventListener("wheel",this.onWheel,!0),this.domElement=null,this.eventsAdded=!1}mapToViewportPoint(t){return this.domElement.pointTransform?this.domElement.pointTransform(t.x,t.y):t}mapToCanvasPoint(t){var e,i;const s=(e=this.globalObj)===null||e===void 0?void 0:e.mapToCanvasPoint(t,this.domElement);if(s)return s;let r=0,a=0;if(t.changedTouches){const l=(i=t.changedTouches[0])!==null&&i!==void 0?i:{};r=l.clientX||0,a=l.clientY||0}else r=t.clientX||0,a=t.clientY||0;const o=this.domElement.getBoundingClientRect();return{x:r-o.left,y:a-o.top}}normalizeToPointerData(t){const e=[];if(this.supportsTouchEvents&&t.changedTouches&&t.changedTouches.length)for(let i=0,s=t.changedTouches.length;i0&&e.y>0)}return!1}isEventOutsideOfTargetElement(t){let e=t.target;return t.composedPath&&t.composedPath().length>0&&(e=t.composedPath()[0]),e!==(this.domElement.getNativeHandler?this.domElement.getNativeHandler().nativeCanvas:this.domElement)}pauseTriggerEvent(){this.manager.pauseNotify=!0}resumeTriggerEvent(){this.manager.pauseNotify=!1}}var En;(function(n){n[n.INITIAL=0]="INITIAL",n[n.RUNNING=1]="RUNNING",n[n.PAUSE=2]="PAUSE"})(En||(En={}));class ud{static Avaliable(){return!!q.global.getRequestAnimationFrame()}avaliable(){return ud.Avaliable()}tick(t,e){q.global.getRequestAnimationFrame()(()=>{this.released||e(this)})}release(){this.released=!0}getTime(){return Date.now()}}class Jg{static Avaliable(){return!0}avaliable(){return Jg.Avaliable()}tick(t,e){this.timerId=setTimeout(()=>{e(this)},t)}release(){this.timerId>0&&(clearTimeout(this.timerId),this.timerId=-1)}getTime(){return Date.now()}}class oj{set mode(t){this._mode!==t&&(this._mode=t,this.setupTickHandler())}get mode(){return this._mode}constructor(t=[]){this.handleTick=(e,i)=>{const{once:s=!1}=i??{};this.ifCanStop()?this.stop():(this._handlerTick(e),s||e.tick(this.interval,this.handleTick))},this._handlerTick=e=>{const i=this.tickerHandler.getTime();let s=0;this.lastFrameTime>=0&&(s=i-this.lastFrameTime),this.lastFrameTime=i,this.status===En.RUNNING&&(this.tickCounts++,this.timelines.forEach(r=>{r.tick(s)}))},this.init(),this.lastFrameTime=-1,this.tickCounts=0,this.timelines=t,this.autoStop=!0}init(){this.interval=NaN,this.status=En.INITIAL,q.global.hooks.onSetEnv.tap("default-ticker",()=>{this.initHandler()}),q.global.env&&this.initHandler()}addTimeline(t){this.timelines.push(t)}remTimeline(t){this.timelines=this.timelines.filter(e=>e!==t)}initHandler(){if(this._mode)return null;const t=[{mode:"raf",cons:ud},{mode:"timeout",cons:Jg}];for(let e=0;e{this.handleTick(e,{once:!0})})}tickTo(t){this.tickerHandler.tickTo&&this.tickerHandler.tickTo(t,e=>{this.handleTick(e,{once:!0})})}pause(){return this.status!==En.INITIAL&&(this.status=En.PAUSE,!0)}resume(){return this.status!==En.INITIAL&&(this.status=En.RUNNING,!0)}ifCanStop(){return!!(this.autoStop&&(!this.timelines.length||this.timelines.reduce((t,e)=>t+e.animateCount,0)===0))}start(t=!1){return this.status===En.RUNNING||!this.tickerHandler||!t&&(this.status===En.PAUSE||!this.timelines.length||this.timelines.reduce((e,i)=>e+i.animateCount,0)===0)?!1:(this.status=En.RUNNING,this.tickerHandler.tick(0,this.handleTick),!0)}stop(){this.status=En.INITIAL,this.setupTickHandler(),this.lastFrameTime=-1}}class Ft{constructor(){}static linear(t){return t}static none(){return this.linear}static get(t){return t<-1?t=-1:t>1&&(t=1),function(e){return t===0?e:t<0?e*(e*-t+1+t):e*((2-e)*t+(1-t))}}static getPowIn(t){return function(e){return Math.pow(e,t)}}static getPowOut(t){return function(e){return 1-Math.pow(1-e,t)}}static getPowInOut(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}}static getBackIn(t){return function(e){return e*e*((t+1)*e-t)}}static getBackOut(t){return function(e){return--e*e*((t+1)*e+t)+1}}static getBackInOut(t){return t*=1.525,function(e){return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}}static sineIn(t){return 1-Math.cos(t*Math.PI/2)}static sineOut(t){return Math.sin(t*Math.PI/2)}static sineInOut(t){return-(Math.cos(Math.PI*t)-1)/2}static expoIn(t){return t===0?0:Math.pow(2,10*t-10)}static expoOut(t){return t===1?1:1-Math.pow(2,-10*t)}static expoInOut(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}static circIn(t){return-(Math.sqrt(1-t*t)-1)}static circOut(t){return Math.sqrt(1- --t*t)}static circInOut(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}static bounceOut(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}static bounceIn(t){return 1-Ft.bounceOut(1-t)}static bounceInOut(t){return t<.5?.5*Ft.bounceIn(2*t):.5*Ft.bounceOut(2*t-1)+.5}static getElasticIn(t,e){return function(i){if(i===0||i===1)return i;const s=e/jt*Math.asin(1/t);return-t*Math.pow(2,10*(i-=1))*Math.sin((i-s)*jt/e)}}static getElasticOut(t,e){return function(i){if(i===0||i===1)return i;const s=e/jt*Math.asin(1/t);return t*Math.pow(2,-10*i)*Math.sin((i-s)*jt/e)+1}}static getElasticInOut(t,e){return function(i){const s=e/jt*Math.asin(1/t);return(i*=2)<1?t*Math.pow(2,10*(i-=1))*Math.sin((i-s)*jt/e)*-.5:t*Math.pow(2,-10*(i-=1))*Math.sin((i-s)*jt/e)*.5+1}}}Ft.quadIn=Ft.getPowIn(2),Ft.quadOut=Ft.getPowOut(2),Ft.quadInOut=Ft.getPowInOut(2),Ft.cubicIn=Ft.getPowIn(3),Ft.cubicOut=Ft.getPowOut(3),Ft.cubicInOut=Ft.getPowInOut(3),Ft.quartIn=Ft.getPowIn(4),Ft.quartOut=Ft.getPowOut(4),Ft.quartInOut=Ft.getPowInOut(4),Ft.quintIn=Ft.getPowIn(5),Ft.quintOut=Ft.getPowOut(5),Ft.quintInOut=Ft.getPowInOut(5),Ft.backIn=Ft.getBackIn(1.7),Ft.backOut=Ft.getBackOut(1.7),Ft.backInOut=Ft.getBackInOut(1.7),Ft.elasticIn=Ft.getElasticIn(1,.3),Ft.elasticOut=Ft.getElasticOut(1,.3),Ft.elasticInOut=Ft.getElasticInOut(1,.3*1.5);class NE{constructor(){this.id=Je.GenAutoIncrementId(),this.animateHead=null,this.animateTail=null,this.animateCount=0,this.paused=!1}addAnimate(t){this.animateTail?(this.animateTail.nextAnimate=t,t.prevAnimate=this.animateTail,this.animateTail=t,t.nextAnimate=null):(this.animateHead=t,this.animateTail=t),this.animateCount++}pause(){this.paused=!0}resume(){this.paused=!1}tick(t){if(this.paused)return;let e=this.animateHead;for(this.animateCount=0;e;)e.status===Ri.END?this.removeAnimate(e):e.status===Ri.RUNNING||e.status===Ri.INITIAL?(this.animateCount++,e.advance(t)):e.status===Ri.PAUSED&&this.animateCount++,e=e.nextAnimate}clear(){let t=this.animateHead;for(;t;)t.release(),t=t.nextAnimate;this.animateHead=null,this.animateTail=null,this.animateCount=0}removeAnimate(t,e=!0){t._onRemove&&t._onRemove.forEach(i=>i()),t===this.animateHead?(this.animateHead=t.nextAnimate,t===this.animateTail?this.animateTail=null:this.animateHead.prevAnimate=null):t===this.animateTail?(this.animateTail=t.prevAnimate,this.animateTail.nextAnimate=null):(t.prevAnimate.nextAnimate=t.nextAnimate,t.nextAnimate.prevAnimate=t.prevAnimate),e&&t.release()}}const UE=new NE;class Mn{constructor(t,e,i,s,r){this.from=t,this.to=e,this.duration=i,this.easing=s,this.params=r,this.updateCount=0}bind(t,e){this.target=t,this.subAnimate=e,this.onBind()}onBind(){}onFirstRun(){}onStart(){}onEnd(){}getEndProps(){return this.to}getFromProps(){return this.from}getMergedEndProps(){var t;const e=this.getEndProps();return e?this._endProps===e?this._mergedEndProps:(this._endProps=e,void(this._mergedEndProps=Object.assign({},(t=this.step.prev.getLastProps())!==null&&t!==void 0?t:{},e))):this.step.prev?this.step.prev.getLastProps():e}update(t,e,i){if(this.updateCount===0){this.onFirstRun();const s=this.step.getLastProps();Object.keys(s).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=s[r])})}this.updateCount+=1,this.onUpdate(t,e,i),t&&this.onEnd()}}class lj extends Mn{constructor(t){super(null,null,0,"linear"),this.cb=t}onUpdate(t,e,i){}onStart(){this.cb()}}let Qg=class Qh{constructor(t=Je.GenAutoIncrementId(),e=UE,i){this.id=t,this.timeline=e,this.status=Ri.INITIAL,this.tailAnimate=new W1(this),this.subAnimates=[this.tailAnimate],this.timeScale=1,this.rawPosition=-1,this._startTime=0,this._duringTime=0,this.timeline.addAnimate(this),this.slience=i}setTimeline(t){t!==this.timeline&&(this.timeline.removeAnimate(this,!1),t.addAnimate(this))}getStartTime(){return this._startTime}getDuration(){return this.subAnimates.reduce((t,e)=>t+e.totalDuration,0)}after(t){const e=t.getDuration();return this._startTime=e,this}afterAll(t){let e=-1/0;return t.forEach(i=>{e=Ui(i.getDuration(),e)}),this._startTime=e,this}parallel(t){return this._startTime=t.getStartTime(),this}static AddInterpolate(t,e){Qh.interpolateMap.set(t,e)}play(t){if(this.tailAnimate.play(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this.subAnimates.length===1&&this.tailAnimate.totalDuration===t.duration&&this.trySetAttribute(t.getFromProps(),t.mode),this}trySetAttribute(t,e=Qh.mode){t&&e&Kl.SET_ATTR_IMMEDIATELY&&this.target.setAttributes&&this.target.setAttributes(t,!1,{type:He.ANIMATE_PLAY})}runCb(t){const e=new lj(()=>{t(this,e.step.prev)});return this.tailAnimate.play(e),this}customInterpolate(t,e,i,s,r,a){const o=Qh.interpolateMap.get(t)||Qh.interpolateMap.get("");return!!o&&o(t,e,i,s,r,a)}pause(){this.status===Ri.RUNNING&&(this.status=Ri.PAUSED)}resume(){this.status===Ri.PAUSED&&(this.status=Ri.RUNNING)}to(t,e,i,s){if(this.tailAnimate.to(t,e,i,s),this.target){const r=this.target.stage;r&&r.renderNextFrame()}return this}from(t,e,i,s){if(this.tailAnimate.from(t,e,i,s),this.target){const r=this.target.stage;r&&r.renderNextFrame()}return this}wait(t){if(this.tailAnimate.wait(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}startAt(t){if(this.tailAnimate.startAt(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}loop(t){if(this.tailAnimate.loop=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}reversed(t){if(this.tailAnimate.reversed=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}bounce(t){if(this.tailAnimate.bounce=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}subAnimate(){const t=new W1(this,this.tailAnimate);return this.tailAnimate=t,this.subAnimates.push(t),t.bind(this.target),this}getStartProps(){return this.subAnimates[0].getStartProps()}getEndProps(){return this.tailAnimate.getEndProps()}depreventAttr(t){this._preventAttrs&&this._preventAttrs.delete(t)}preventAttr(t){this._preventAttrs||(this._preventAttrs=new Set),this._preventAttrs.add(t)}preventAttrs(t){t.forEach(e=>this.preventAttr(e))}validAttr(t){return!this._preventAttrs||!this._preventAttrs.has(t)}bind(t){return this.target=t,this.target.onAnimateBind&&!this.slience&&this.target.onAnimateBind(this),this.subAnimates.forEach(e=>{e.bind(t)}),this}advance(t){if(this._duringTimee())),this.setPosition(Math.max(this.rawPosition,0)+t*this.timeScale)&&this.status===Ri.RUNNING&&(this.status=Ri.END,this._onEnd&&this._onEnd.forEach(e=>e()))}setPosition(t){let e,i=0;const s=this.rawPosition,r=this.subAnimates.reduce((o,l)=>o+l.totalDuration,0);t<0&&(t=0);const a=t>=r;if(a&&(t=r),t===s)return a;for(let o=0;o=t));o++)i+=e.totalDuration,e=void 0;return this.rawPosition=t,e.setPosition(t-i),a}onStart(t){this._onStart||(this._onStart=[]),this._onStart.push(t)}onEnd(t){this._onEnd||(this._onEnd=[]),this._onEnd.push(t)}onRemove(t){this._onRemove||(this._onRemove=[]),this._onRemove.push(t)}onFrame(t){this._onFrame||(this._onFrame=[]),this._onFrame.push(t)}release(){this.status=Ri.END}stop(t){t||this.target.onStop(),t==="start"?this.target.onStop(this.getStartProps()):t==="end"?this.target.onStop(this.getEndProps()):this.target.onStop(t),this.release()}};Qg.mode=Kl.NORMAL,Qg.interpolateMap=new Map;class W1{get totalDuration(){return this.calcAttr(),this._totalDuration+this._startAt}constructor(t,e){this.rawPosition=-1,this.position=0,this.loop=0,this.duration=0,this.animate=t,this.stepHead=new G1(0,0,e?Object.assign({},e.stepTail.props):{}),this.stepTail=this.stepHead,this.dirty=!0,this._startAt=0}calcAttr(){this.dirty&&(this._totalDuration=this.duration*(this.loop+1))}bind(t){return this.target=t,this}play(t){let e=t.duration;(e==null||e<0)&&(e=0);const i=t.easing,s=typeof i=="string"?Ft[i]:i,r=this._addStep(e,null,s);return r.type=cl.customAnimate,this._appendProps(t.getEndProps(),r,!1),this._appendCustomAnimate(t,r),this}to(t,e,i,s){(e==null||e<0)&&(e=0);const r=typeof i=="string"?Ft[i]:i,a=this._addStep(e,null,r);return a.type=cl.to,this._appendProps(t,a,!!s&&s.tempProps),a.propKeys||(a.propKeys=Object.keys(a.props)),s&&s.noPreventAttrs||this.target.animates.forEach(o=>{o.id!==this.animate.id&&o.preventAttrs(a.propKeys)}),this}from(t,e,i,s){this.to(t,0,i,s);const r={};this.stepTail.propKeys||(this.stepTail.propKeys=Object.keys(this.stepTail.props)),this.stepTail.propKeys.forEach(a=>{r[a]=this.getLastPropByName(a,this.stepTail)}),this.to(r,e,i,s),this.stepTail.type=cl.from}startAt(t){return t<0&&(t=0),this._startAt=t,this}getStartProps(){var t;return(t=this.stepHead)===null||t===void 0?void 0:t.props}getEndProps(){return this.stepTail.props}getLastStep(){return this._lastStep}wait(t){if(t>0){const e=this._addStep(+t,null);e.type=cl.wait,e.prev.customAnimate?e.props=e.prev.customAnimate.getEndProps():e.props=e.prev.props,this.target.onAddStep&&this.target.onAddStep(e)}return this}_addStep(t,e,i){const s=new G1(this.duration,t,e,i);return this.duration+=t,this.stepTail.append(s),this.stepTail=s,s}_appendProps(t,e,i){e.props=i?t:Object.assign({},t);let s=e.prev;const r=e.props;for(e.propKeys||(e.propKeys=Object.keys(e.props)),e.propKeys.forEach(o=>{e.props[o]===void 0&&(e.props[o]=this.target.getDefaultAttribute(o))});s.prev;)s.props&&(s.propKeys||(s.propKeys=Object.keys(s.props)),s.propKeys.forEach(o=>{r[o]===void 0&&(r[o]=s.props[o])})),e.propKeys=Object.keys(e.props),s=s.prev;const a=this.stepHead.props;e.propKeys||(e.propKeys=Object.keys(r)),e.propKeys.forEach(o=>{if(a[o]===void 0){const l=this.animate.getStartProps();a[o]=l[o]=this.target.getComputedAttribute(o)}}),this.target.onAddStep&&this.target.onAddStep(e)}_appendCustomAnimate(t,e){e.customAnimate=t,t.step=e,t.bind(this.target,this)}setPosition(t){var e;const i=this.duration,s=this.loop,r=this.rawPosition;let a,o,l=!1;const h=(e=this._startAt)!==null&&e!==void 0?e:0;if(t<0&&(t=0),t=s*i+i,l&&(o=i,a=s,t=o*a+i),t===r))return l;const d=!this.reversed!=!(this.bounce&&a%2);return d&&(o=i-o),this._deltaPosition=o-this.position,this.position=o,this.rawPosition=t+h,this.updatePosition(l,d),l}updatePosition(t,e){if(!this.stepHead)return;let i=this.stepHead.next;const s=this.position,r=this.duration;if(this.target&&i){let a=i.next;for(;a&&a.position<=s;)i=a,a=i.next;let o=t?r===0?1:s/r:(s-i.position)/i.duration;i.easing&&(o=i.easing(o)),this.tryCallCustomAnimateLifeCycle(i,this._lastStep||(e?this.stepTail:this.stepHead),e),this.updateTarget(i,o,t),this._lastStep=i,this.animate._onFrame&&this.animate._onFrame.forEach(l=>l(i,o))}}tryCallCustomAnimateLifeCycle(t,e,i){if(t!==e)if(i){let s=e.prev;for(;s&&s!==t;)s.customAnimate&&(s.customAnimate.onStart&&s.customAnimate.onStart(),s.customAnimate.onEnd&&s.customAnimate.onEnd()),s=t.prev;e&&e.customAnimate&&e.customAnimate.onEnd&&e.customAnimate.onEnd(),t&&t.customAnimate&&t.customAnimate.onStart&&t.customAnimate.onStart()}else{let s=e.next;for(;s&&s!==t;)s.customAnimate&&(s.customAnimate.onStart&&s.customAnimate.onStart(),s.customAnimate.onEnd&&s.customAnimate.onEnd()),s=s.next;e&&e.customAnimate&&e.customAnimate.onEnd&&e.customAnimate.onEnd(),t&&t.customAnimate&&t.customAnimate.onStart&&t.customAnimate.onStart()}}getLastPropByName(t,e){let i=e.prev;for(;i;){if(i.props&&i.props[t]!==void 0)return i.props[t];if(i.customAnimate){const s=i.customAnimate.getEndProps()[t];if(s!==void 0)return s}i=i.prev}return Ot.getInstance().warn("未知错误,step中找不到属性"),e.props[t]}updateTarget(t,e,i){t.props==null&&t.customAnimate==null||this.target.onStep(this,this.animate,t,e,i)}}class G1{constructor(t,e,i,s){this.duration=e,this.position=t,this.props=i,this.easing=s}append(t){t.prev=this,t.next=this.next,this.next=t}getLastProps(){let t=this.prev;for(;t;){if(t.props)return t.props;if(t.customAnimate)return t.customAnimate.getMergedEndProps();t=t.prev}return null}}const N1={duration:200,easing:"cubicOut"};var U1;(function(n){n[n.Top=1]="Top",n[n.Right=2]="Right",n[n.Bottom=4]="Bottom",n[n.Left=8]="Left",n[n.ALL=15]="ALL"})(U1||(U1={}));const Ns=[!1,!1,!1,!1],hj=n=>{var t;let e=!0;if(Me(n,!0)){for(let i=0;i<4;i++)Ns[i]=n,e&&(e=!((t=Ns[i])!==null&&t!==void 0&&!t));e=n}else if(Array.isArray(n))for(let i=0;i<4;i++)Ns[i]=!!n[i],e&&(e=!!Ns[i]);else Ns[0]=!1,Ns[1]=!1,Ns[2]=!1,Ns[3]=!1;return{isFullStroke:e,stroke:Ns}},Bh=[0,0,0,0],tp=n=>n?U(n)?n.length===0?0:n.length===1?n[0]:n.length===2?(Bh[0]=n[0],Bh[2]=n[0],Bh[1]=n[1],Bh[3]=n[1],Bh):n:n:0,Yo=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}],Xu=[1,2,3,0,1,2,3,0];function Tv(n,t,e,i){for(;n>=jt;)n-=jt;for(;n<0;)n+=jt;for(;n>t;)t+=jt;Yo[0].x=e,Yo[1].y=e,Yo[2].x=-e,Yo[3].y=-e;const s=Math.ceil(n/In)%4,r=Math.ceil(t/In)%4;if(i.add(fe(n)*e,le(n)*e),i.add(fe(t)*e,le(t)*e),s!==r||t-n>oe){let a=!1;for(let o=0;ot.length){i=t.map(s=>{const r=new Ie(s.x,s.y,s.x1,s.y1);return r.defined=s.defined,r});for(let s=0;s{const r=new Ie(s.x,s.y,s.x1,s.y1);return r.defined=s.defined,r});for(let s=0;s{this.appendDuration(Date.now()-this.lastDate),t(0)},this.timeout,!0)}clear(t){clearTimeout(t)}appendDuration(t){this.durations.push(t),this.durations.length>this.durationsListThreshold&&this.durations.shift(),this.timeout=Math.min(Math.max(this.durations.reduce((e,i)=>e+i,0)/this.durations.length,1e3/60),1e3/30)}}Sf.TimeOut=1e3/60;const $1=new Sf,sr=(n,t)=>tt(n)&&n[n.length-1]==="%"?t*(Number.parseFloat(n.substring(0,n.length-1))/100):n;class dj extends Mn{constructor(t,e,i,s,r){super(t,e,i,s,r)}getEndProps(){return this.valid===!1?{}:{text:this.to}}onBind(){var t,e,i,s,r,a,o,l;this.fromNumber=J((t=this.from)===null||t===void 0?void 0:t.text)?(e=this.from)===null||e===void 0?void 0:e.text:Number.parseFloat((i=this.from)===null||i===void 0?void 0:i.text),this.toNumber=J((s=this.to)===null||s===void 0?void 0:s.text)?(r=this.to)===null||r===void 0?void 0:r.text:Number.parseFloat((a=this.to)===null||a===void 0?void 0:a.text),Number.isFinite(this.toNumber)||(this.fromNumber=0),Number.isFinite(this.toNumber)||(this.valid=!1),this.valid!==!1&&(this.decimalLength=(l=(o=this.params)===null||o===void 0?void 0:o.fixed)!==null&&l!==void 0?l:Math.max(Nl(this.fromNumber),Nl(this.toNumber)))}onEnd(){}onUpdate(t,e,i){this.valid!==!1&&(i.text=t?this.toNumber:(this.fromNumber+(this.toNumber-this.fromNumber)*e).toFixed(this.decimalLength))}}var Y1;(function(n){n[n.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",n[n.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT",n[n.TOP_TO_BOTTOM=2]="TOP_TO_BOTTOM",n[n.BOTTOM_TO_TOP=3]="BOTTOM_TO_TOP",n[n.STROKE=4]="STROKE"})(Y1||(Y1={}));class $E extends Mn{constructor(t,e,i,s,r){var a,o;super(t,e,i,s,r),this.newPointAnimateType=(a=r==null?void 0:r.newPointAnimateType)!==null&&a!==void 0?a:"grow",this.clipRangeByDimension=(o=r==null?void 0:r.clipRangeByDimension)!==null&&o!==void 0?o:"x"}getPoints(t,e=!1){if(t.points)return t.points;if(t.segments){const i=[];return this.segmentsCache||(this.segmentsCache=[]),t.segments.map(s=>{var r,a;s.points&&i.push(...s.points),e&&this.segmentsCache.push((a=(r=s.points)===null||r===void 0?void 0:r.length)!==null&&a!==void 0?a:0)}),i}return[]}onBind(){const t=this.getPoints(this.from),e=this.getPoints(this.to,!0);this.fromPoints=t?Array.isArray(t)?t:[t]:[],this.toPoints=e?Array.isArray(e)?e:[e]:[];const i=new Map;this.fromPoints.forEach(h=>{h.context&&i.set(h.context,h)});let s,r,a=1/0,o=-1/0;for(let h=0;h=0;h-=1)if(i.has(this.toPoints[h].context)){o=h,r=i.get(this.toPoints[h].context);break}this.newPointAnimateType==="clip"&&this.toPoints.length!==0&&(Number.isFinite(o)?(this.clipRange=this.toPoints[o][this.clipRangeByDimension]/this.toPoints[this.toPoints.length-1][this.clipRangeByDimension],H(this.clipRange)?this.clipRange=be(this.clipRange,0,1):this.clipRange=0):this.clipRange=0);let l=this.toPoints[0];this.interpolatePoints=this.toPoints.map((h,d)=>{const c=i.get(h.context);return c?(l=c,[c,h]):this.newPointAnimateType==="appear"||this.newPointAnimateType==="clip"?[h,h]:do&&r?[r,h]:[l,h]}),this.points=this.interpolatePoints.map(h=>{const d=h[0],c=h[1],u=new Ie(d.x,d.y,d.x1,d.y1);return u.defined=c.defined,u.context=c.context,u})}onUpdate(t,e,i){if(this.points=this.points.map((s,r)=>{const a=Mv(this.interpolatePoints[r][0],this.interpolatePoints[r][1],e);return a.context=s.context,a}),this.clipRange&&(i.clipRange=this.clipRange+(1-this.clipRange)*e),this.segmentsCache&&this.to.segments){let s=0;i.segments=this.to.segments.map((r,a)=>{const o=s+this.segmentsCache[a],l=this.points.slice(s,o);return s=o,Object.assign(Object.assign({},r),{points:l})})}else i.points=this.points}}class YE extends Mn{constructor(t,e,i,s,r){super(null,null,i,s,r),this.clipFromAttribute=t,this.clipToAttribute=e,this._group=r==null?void 0:r.group,this._clipGraphic=r==null?void 0:r.clipGraphic}onBind(){this._group&&this._clipGraphic&&(this._lastClip=this._group.attribute.clip,this._lastPath=this._group.attribute.path,this._group.setAttributes({clip:!0,path:[this._clipGraphic]},!1,{type:He.ANIMATE_BIND}))}onEnd(){this._group&&this._group.setAttributes({clip:this._lastClip,path:this._lastPath},!1,{type:He.ANIMATE_END})}onUpdate(t,e,i){if(!this._clipGraphic)return;const s={};Object.keys(this.clipFromAttribute).forEach(r=>{s[r]=this.clipFromAttribute[r]+(this.clipToAttribute[r]-this.clipFromAttribute[r])*e}),this._clipGraphic.setAttributes(s,!1,{type:He.ANIMATE_UPDATE,animationState:{ratio:e,end:t}})}}class cj extends YE{constructor(t,e,i,s,r){var a,o,l,h,d,c,u,g,p,_,f,m;const v=(o=(a=r==null?void 0:r.group)===null||a===void 0?void 0:a.attribute)!==null&&o!==void 0?o:{},y=(l=v.width)!==null&&l!==void 0?l:0,b=(h=v.height)!==null&&h!==void 0?h:0,x=(d=r==null?void 0:r.animationType)!==null&&d!==void 0?d:"in",S=(c=r==null?void 0:r.startAngle)!==null&&c!==void 0?c:0,A=(u=r==null?void 0:r.orient)!==null&&u!==void 0?u:"clockwise";let k=0,T=0;A==="anticlockwise"?(T=x==="in"?S+2*Math.PI:S,T=S+2*Math.PI):(k=S,T=x==="out"?S+2*Math.PI:S);const w=q.graphicService.creator.arc({x:(p=(g=r==null?void 0:r.center)===null||g===void 0?void 0:g.x)!==null&&p!==void 0?p:y/2,y:(f=(_=r==null?void 0:r.center)===null||_===void 0?void 0:_.y)!==null&&f!==void 0?f:b/2,outerRadius:(m=r==null?void 0:r.radius)!==null&&m!==void 0?m:(y+b)/2,innerRadius:0,startAngle:k,endAngle:T,fill:!0});let M,R;A==="anticlockwise"?(M={startAngle:S+2*Math.PI},R={startAngle:S}):(M={endAngle:S},R={endAngle:S+2*Math.PI}),super(x==="in"?M:R,x==="in"?R:M,i,s,{group:r==null?void 0:r.group,clipGraphic:w})}}class X1 extends YE{constructor(t,e,i,s,r){var a,o,l,h,d,c,u,g,p;const _=(o=(a=r==null?void 0:r.group)===null||a===void 0?void 0:a.attribute)!==null&&o!==void 0?o:{},f=(h=(l=r==null?void 0:r.width)!==null&&l!==void 0?l:_.width)!==null&&h!==void 0?h:0,m=(c=(d=r==null?void 0:r.height)!==null&&d!==void 0?d:_.height)!==null&&c!==void 0?c:0,v=(u=r==null?void 0:r.animationType)!==null&&u!==void 0?u:"in",y=(g=r==null?void 0:r.direction)!==null&&g!==void 0?g:"x",b=(p=r==null?void 0:r.orient)!==null&&p!==void 0?p:"positive",x=q.graphicService.creator.rect({x:0,y:0,width:v==="in"&&y==="x"?0:f,height:v==="in"&&y==="y"?0:m,fill:!0});let S={},A={};y==="y"?b==="negative"?(S={y:m,height:0},A={y:0,height:m}):(S={height:0},A={height:m}):b==="negative"?(S={x:f,width:0},A={x:0,width:f}):(S={width:0},A={width:f}),super(v==="in"?S:A,v==="in"?A:S,i,s,{group:r==null?void 0:r.group,clipGraphic:x})}}class uj extends Mn{onStart(){const{center:t,r:e}=typeof this.params=="function"?this.params():this.params,i=this.target.getComputedAttribute("x"),s=this.target.getComputedAttribute("y"),r=this.target.getComputedAttribute("z"),a=Math.acos((s-t.y)/e);let o=Math.acos((i-t.x)/e/Math.sin(a));r-t.z<0&&(o=jt-o),this.theta=o,this.phi=a}onBind(){}onEnd(){}onUpdate(t,e,i){if(this.phi==null||this.theta==null)return;const{center:s,r,cb:a}=typeof this.params=="function"?this.params():this.params,o=2*Math.PI*e,l=this.theta+o,h=this.phi,d=r*Math.sin(h)*Math.cos(l)+s.x,c=r*Math.cos(h)+s.y,u=r*Math.sin(h)*Math.sin(l)+s.z;for(i.x=d,i.y=c,i.z=u,i.alpha=l+oe/2;i.alpha>jt;)i.alpha-=jt;i.alpha=jt-i.alpha,i.zIndex=-1e4*i.z,a&&a(i)}}class gj extends Mn{constructor(t,e){super(null,null,t,"linear"),this.customAnimates=e}initAnimates(){this.customAnimates.forEach(t=>{t.step=this.step,t.subAnimate=this.subAnimate,t.target=this.target})}getEndProps(){const t={};return this.customAnimates.forEach(e=>{Object.assign(t,e.getEndProps())}),t}onBind(){this.initAnimates(),this.customAnimates.forEach(t=>{t.onBind()})}onEnd(){this.customAnimates.forEach(t=>{t.onEnd()})}onStart(){this.customAnimates.forEach(t=>{t.onStart()})}onUpdate(t,e,i){this.updating||(this.updating=!0,this.customAnimates.forEach(s=>{const r=s.easing;e=(typeof r=="string"?Ft[r]:r)(e),s.onUpdate(t,e,i)}),this.updating=!1)}}const pj=n=>{if(!n)return{x:0,y:0,width:0,height:0};let t=P(n.width)?n.x1-n.x:n.width,e=P(n.height)?n.y1-n.y:n.height,i=0,s=0;return t<0?(i=t,t=-t):Number.isNaN(t)&&(t=0),e<0?(s=e,e=-e):Number.isNaN(e)&&(e=0),{x:i,y:s,width:t,height:e}};var yn;(function(n){n[n.Color255=0]="Color255",n[n.Color1=1]="Color1"})(yn||(yn={}));class je{static Get(t,e=yn.Color1,i=[0,0,0,1]){if(e===yn.Color1){const a=je.store1[t];if(a)return i[0]=a[0],i[1]=a[1],i[2]=a[2],i[3]=a[3],i;const o=Xe.parseColorString(t);if(o){const l=[o.r/255,o.g/255,o.b/255,o.opacity];je.store1[t]=l,je.store255[t]=[o.r,o.g,o.b,o.opacity],i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3]}return i}const s=je.store255[t];if(s)return i[0]=s[0],i[1]=s[1],i[2]=s[2],i[3]=s[3],i;const r=Xe.parseColorString(t);return r&&(je.store1[t]=[r.r/255,r.g/255,r.b/255,r.opacity],je.store255[t]=[r.r,r.g,r.b,r.opacity],i[0]=r.r,i[1]=r.g,i[2]=r.b,i[3]=r.opacity),i}static Set(t,e,i){if(e===yn.Color1){if(je.store1[t])return;je.store1[t]=i,je.store255[t]=[Math.floor(255*i[0]),Math.floor(255*i[1]),Math.floor(255*i[2]),Math.floor(255*i[3])]}else{if(je.store255[t])return;je.store255[t]=i,je.store1[t]=[i[0]/255,i[1]/255,i[2]/255,i[3]]}}}je.store255={},je.store1={};function qu(n,t=!1){return Array.isArray(n)&&J(n[0])?t?`rgb(${Math.round(n[0])},${Math.round(n[1])},${Math.round(n[2])},${n[3].toFixed(2)})`:`rgb(${Math.round(n[0])},${Math.round(n[1])},${Math.round(n[2])})`:n}function Bl(n,t,e,i,s){return Array.isArray(n)&&!J(n[0])||Array.isArray(t)&&!J(t[0])?new Array(4).fill(0).map((r,a)=>K1(U(n)?n[a]:n,U(t)?t[a]:t,e,i)):K1(n,t,e,i,s)}function K1(n,t,e,i,s){if(!n||!t)return n&&qu(n)||t&&qu(t)||!1;let r,a,o=!1,l=!1;if(Array.isArray(n)?r=n:typeof n=="string"?r=je.Get(n,yn.Color255):o=!0,Array.isArray(t)?a=t:typeof t=="string"?a=je.Get(t,yn.Color255):l=!0,o!==l){const h=o?n:t,d=o?t:n,c=Object.assign(Object.assign({},h),{stops:h.stops.map(u=>Object.assign(Object.assign({},u),{color:qu(d)}))});return o?Bl(h,c,e,i,s):Bl(c,h,e,i,s)}if(o){if(n.gradient===t.gradient){const h=n,d=t,c=h.stops,u=d.stops;if(c.length!==u.length)return!1;if(h.gradient==="linear")return _j(h,d,e);if(h.gradient==="radial")return fj(h,d,e);if(h.gradient==="conical")return mj(h,d,e)}return!1}return s&&s(r,a),qu(vj(r,a,e),i)}function _j(n,t,e){const i=n.stops,s=t.stops;return{gradient:"linear",x0:n.x0+(t.x0-n.x0)*e,x1:n.x1+(t.x1-n.x1)*e,y0:n.y0+(t.y0-n.y0)*e,y1:n.y1+(t.y1-n.y1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:Gb(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function fj(n,t,e){const i=n.stops,s=t.stops;return{gradient:"radial",x0:n.x0+(t.x0-n.x0)*e,x1:n.x1+(t.x1-n.x1)*e,y0:n.y0+(t.y0-n.y0)*e,y1:n.y1+(t.y1-n.y1)*e,r0:n.r0+(t.r0-n.r0)*e,r1:n.r1+(t.r1-n.r1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:Gb(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function mj(n,t,e){const i=n.stops,s=t.stops;return{gradient:"conical",startAngle:n.startAngle+(t.startAngle-n.startAngle)*e,endAngle:n.endAngle+(t.endAngle-n.endAngle)*e,x:n.x+(t.x-n.x)*e,y:n.y+(t.y-n.y)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:Gb(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function vj(n,t,e){return[n[0]+(t[0]-n[0])*e,n[1]+(t[1]-n[1])*e,n[2]+(t[2]-n[2])*e,n[3]+(t[3]-n[3])*e]}const Us=[0,0,0,0],Lh=[0,0,0,0];function Gb(n,t,e){return je.Get(n,yn.Color255,Us),je.Get(t,yn.Color255,Lh),`rgba(${Math.round(Us[0]+(Lh[0]-Us[0])*e)},${Math.round(Us[1]+(Lh[1]-Us[1])*e)},${Math.round(Us[2]+(Lh[2]-Us[2])*e)},${Us[3]+(Lh[3]-Us[3])*e})`}class yj extends Mn{getEndProps(){return{}}onBind(){this.target.setTheme({common:{opacity:0}})}onEnd(){this.target.setTheme({common:{opacity:1}})}onUpdate(t,e,i){this.target.setTheme({common:{opacity:e}})}}class bj extends Mn{getEndProps(){return{}}onBind(){this.target.setTheme({common:{opacity:1}})}onEnd(){this.target.setTheme({common:{opacity:0}})}onUpdate(t,e,i){this.target.setTheme({common:{opacity:1-e}})}}class ge{static GetImage(t,e){var i;const s=ge.cache.get(t);s?s.loadState==="fail"?q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):s.loadState==="init"||s.loadState==="loading"?(i=s.waitingMark)===null||i===void 0||i.push(e):e&&e.imageLoadSuccess(t,s.data):ge.loadImage(t,e)}static GetSvg(t,e){var i;let s=ge.cache.get(t);s?s.loadState==="fail"?q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):s.loadState==="init"||s.loadState==="loading"?(i=s.waitingMark)===null||i===void 0||i.push(e):e&&e.imageLoadSuccess(t,s.data):(s={type:"image",loadState:"init"},ge.cache.set(t,s),s.dataPromise=q.global.loadSvg(t),s.dataPromise?(s.waitingMark=[e],s.dataPromise.then(r=>{var a;s.loadState=r!=null&&r.data?"success":"fail",s.data=r==null?void 0:r.data,(a=s.waitingMark)===null||a===void 0||a.map((o,l)=>{r!=null&&r.data?(s.loadState="success",s.data=r.data,o.imageLoadSuccess(t,r.data)):(s.loadState="fail",o.imageLoadFail(t))}),s.waitingMark&&(s.waitingMark=[])})):(s.loadState="fail",e.imageLoadFail(t)))}static GetFile(t,e){let i=ge.cache.get(t);return i?i.loadState==="init"||i.loadState==="fail"?Promise.reject():i.loadState==="loading"?i.dataPromise.then(s=>s.data):Promise.resolve(i.data):(i={type:e,loadState:"init"},ge.cache.set(t,i),e==="arrayBuffer"?i.dataPromise=q.global.loadArrayBuffer(t):e==="blob"?i.dataPromise=q.global.loadBlob(t):e==="json"&&(i.dataPromise=q.global.loadJson(t)),i.dataPromise.then(s=>s.data))}static loading(){setTimeout(()=>{if(!ge.isLoading&&ge.toLoadAueue.length){ge.isLoading=!0;const t=ge.toLoadAueue.splice(0,10),e=[];t.forEach(i=>{const{url:s,marks:r}=i,a={type:"image",loadState:"init"};if(ge.cache.set(s,a),a.dataPromise=q.global.loadImage(s),a.dataPromise){a.waitingMark=r;const o=a.dataPromise.then(l=>{var h;a.loadState=l!=null&&l.data?"success":"fail",a.data=l==null?void 0:l.data,(h=a.waitingMark)===null||h===void 0||h.map((d,c)=>{l!=null&&l.data?(a.loadState="success",a.data=l.data,d.imageLoadSuccess(s,l.data)):(a.loadState="fail",d.imageLoadFail(s))}),a.waitingMark&&(a.waitingMark=[])});e.push(o)}else a.loadState="fail",r.forEach(o=>o.imageLoadFail(s))}),Promise.all(e).then(()=>{ge.isLoading=!1,this.onLoadSuccessCb.forEach(i=>i()),ge.loading()}).catch(i=>{console.error(i),ge.isLoading=!1,this.onLoadSuccessCb.forEach(s=>s()),ge.loading()})}},0)}static loadImage(t,e){const i=q1(t,ge.toLoadAueue);if(i!==-1)return ge.toLoadAueue[i].marks.push(e),void ge.loading();ge.toLoadAueue.push({url:t,marks:[e]}),ge.loading()}static improveImageLoading(t){const e=q1(t,ge.toLoadAueue);if(e!==-1){const i=ge.toLoadAueue.splice(e,1);ge.toLoadAueue.unshift(i[0])}}static onLoadSuccess(t){this.onLoadSuccessCb.push(t)}}function q1(n,t){for(let e=0;e{this.animates.delete(e.id)}),e}onAttributeUpdate(t){t&&t.skipUpdateCallback||(q.graphicService.onAttributeUpdate(this),this._emitCustomEvent("afterAttributeUpdate",t))}update(t){t?(t.bounds&&this.tryUpdateAABBBounds(this.attribute.boundsMode==="imprecise"),t.trans&&this.tryUpdateLocalTransMatrix()):(this.tryUpdateAABBBounds(this.attribute.boundsMode==="imprecise"),this.tryUpdateLocalTransMatrix())}hasState(t){return!(!this.currentStates||!this.currentStates.length)&&(!!P(t)||this.currentStates.includes(t))}getState(t){var e;return(e=this.states)===null||e===void 0?void 0:e[t]}applyStateAttrs(t,e,i,s){var r,a,o,l;if(i){const h=Object.keys(t),d=this.getNoWorkAnimateAttr(),c={};let u;h.forEach(p=>{d[p]?(u||(u={}),u[p]=t[p]):c[p]=s&&t[p]===void 0?this.getDefaultAttribute(p):t[p]});const g=this.animate({slience:!0});g.stateNames=e,g.to(c,(a=(r=this.stateAnimateConfig)===null||r===void 0?void 0:r.duration)!==null&&a!==void 0?a:N1.duration,(l=(o=this.stateAnimateConfig)===null||o===void 0?void 0:o.easing)!==null&&l!==void 0?l:N1.easing),u&&this.setAttributes(u,!1,{type:He.STATE})}else this.stopStateAnimates(),this.setAttributes(t,!1,{type:He.STATE})}updateNormalAttrs(t){const e={};this.normalAttrs?(Object.keys(t).forEach(i=>{i in this.normalAttrs?(e[i]=this.normalAttrs[i],delete this.normalAttrs[i]):e[i]=this.getNormalAttribute(i)}),Object.keys(this.normalAttrs).forEach(i=>{t[i]=this.normalAttrs[i]})):Object.keys(t).forEach(i=>{e[i]=this.getNormalAttribute(i)}),this.normalAttrs=e}stopStateAnimates(t="end"){this.animates&&this.animates.forEach(e=>{e.stateNames&&(e.stop(t),this.animates.delete(e.id))})}getNormalAttribute(t){let e=this.attribute[t];return this.animates&&this.animates.forEach(i=>{if(i.stateNames){const s=i.getEndProps();On(s,t)&&(e=s[t])}}),e}clearStates(t){this.hasState()&&this.normalAttrs?(this.currentStates=[],this.applyStateAttrs(this.normalAttrs,this.currentStates,t,!0)):this.currentStates=[],this.normalAttrs=null}removeState(t,e){if((this.currentStates?this.currentStates.indexOf(t):-1)>=0){const i=this.currentStates.filter(s=>s!==t);this.useStates(i,e)}}toggleState(t,e){if(this.hasState(t))this.removeState(t,e);else if((this.currentStates?this.currentStates.indexOf(t):-1)<0){const i=this.currentStates?this.currentStates.slice():[];i.push(t),this.useStates(i,e)}}addState(t,e,i){var s;if(this.currentStates&&this.currentStates.includes(t)&&(e||this.currentStates.length===1))return;const r=e&&(!((s=this.currentStates)===null||s===void 0)&&s.length)?this.currentStates.concat([t]):[t];this.useStates(r,i)}useStates(t,e){var i;if(!t.length)return void this.clearStates(e);if(!(((i=this.currentStates)===null||i===void 0?void 0:i.length)!==t.length||t.some((r,a)=>this.currentStates[a]!==r)))return;const s={};t.forEach(r=>{var a;const o=this.stateProxy?this.stateProxy(r,t):(a=this.states)===null||a===void 0?void 0:a[r];o&&Object.assign(s,o)}),this.updateNormalAttrs(s),this.currentStates=t,this.applyStateAttrs(s,t,e)}addUpdateBoundTag(){this._updateTag|=ce.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}addUpdateShapeTag(){this._updateTag|=ce.UPDATE_SHAPE}addUpdateShapeAndBoundsTag(){this._updateTag|=ce.UPDATE_SHAPE_AND_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}updateShapeAndBoundsTagSetted(){return(this._updateTag&ce.UPDATE_SHAPE_AND_BOUNDS)===ce.UPDATE_SHAPE_AND_BOUNDS}clearUpdateBoundTag(){this._updateTag&=ce.CLEAR_BOUNDS}addUpdatePositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=ce.UPDATE_GLOBAL_LOCAL_MATRIX}addUpdateGlobalPositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=ce.UPDATE_GLOBAL_MATRIX}clearUpdateLocalPositionTag(){this._updateTag&=ce.CLEAR_LOCAL_MATRIX}clearUpdateGlobalPositionTag(){this._updateTag&=ce.CLEAR_GLOBAL_MATRIX}addUpdateLayoutTag(){this._updateTag|=ce.UPDATE_LAYOUT}clearUpdateLayoutTag(){this._updateTag&=ce.CLEAR_LAYOUT}needUpdateLayout(){return!!(this._updateTag&ce.UPDATE_LAYOUT)}getAnchor(t,e){const i=[0,0],s=()=>{if(e.b)return e.b;const{scaleX:r,scaleY:a,angle:o}=this.attribute;return Z1.copy(this._AABBBounds),this.setAttributes({scaleX:1,scaleY:1,angle:0}),e.b=this.AABBBounds.clone(),this._AABBBounds.copy(Z1),this.setAttributes({scaleX:r,scaleY:a,angle:o}),e.b};if(typeof t[0]=="string"){const r=parseFloat(t[0])/100,a=s();i[0]=a.x1+(a.x2-a.x1)*r}else i[0]=t[0];if(typeof t[1]=="string"){const r=parseFloat(t[1])/100,a=s();i[1]=a.y1+(a.y2-a.y1)*r}else i[1]=t[1];return i}doUpdateLocalMatrix(){const{x:t=di.x,y:e=di.y,scaleX:i=di.scaleX,scaleY:s=di.scaleY,angle:r=di.angle,scaleCenter:a,anchor:o,postMatrix:l}=this.attribute;let h=[0,0];const d={};if(o&&(h=this.getAnchor(o,d)),!a||i===1&&s===1)W2(this._transMatrix,this._transMatrix.reset(),t,e,i,s,r,o&&h);else{const u=this._transMatrix;u.reset(),u.translate(h[0],h[1]),u.rotate(r),u.translate(-h[0],-h[1]),u.translate(t,e),h=this.getAnchor(a,d),q.transformUtil.fromMatrix(u,u).scale(i,s,{x:h[0],y:h[1]})}const c=this.getOffsetXY(di);if(this._transMatrix.e+=c.x,this._transMatrix.f+=c.y,l){const u=xj.setValue(l.a,l.b,l.c,l.d,l.e,l.f),g=this._transMatrix;u.multiply(g.a,g.b,g.c,g.d,g.e,g.f),g.setValue(u.a,u.b,u.c,u.d,u.e,u.f)}}doUpdateGlobalMatrix(){if(this.parent){this._globalTransMatrix.multiply(this.transMatrix.a,this.transMatrix.b,this.transMatrix.c,this.transMatrix.d,this.transMatrix.e,this.transMatrix.f);const{scrollX:t=0,scrollY:e=0}=this.parent.attribute;this._globalTransMatrix.translate(t,e)}}setStage(t,e){if(this.stage!==t){if(this.stage=t,this.layer=e,this.setStageToShadowRoot(t,e),this.animates&&this.animates.size){const i=t.getTimeline();this.animates.forEach(s=>{s.setTimeline(i)})}this._onSetStage&&this._onSetStage(this,t,e),q.graphicService.onSetStage(this,t)}}setStageToShadowRoot(t,e){this.shadowRoot&&this.shadowRoot.setStage(t,e)}onAddStep(t){}onStop(t){t&&this.setAttributes(t,!1,{type:He.ANIMATE_END})}onStep(t,e,i,s,r){const a={};if(i.customAnimate)i.customAnimate.update(r,s,a);else{const o=i.props,l=i.parsedProps,h=i.propKeys;this.stepInterpolate(t,e,a,i,s,r,o,void 0,l,h)}this.setAttributes(a,!1,{type:He.ANIMATE_UPDATE,animationState:{ratio:s,end:r,step:i,isFirstFrameOfStep:t.getLastStep()!==i}}),this.stage&&this.stage.renderNextFrame()}stepInterpolate(t,e,i,s,r,a,o,l,h,d){d||(d=Object.keys(o),s.propKeys=d),a?s.propKeys.forEach(c=>{e.validAttr(c)&&(i[c]=o[c])}):d.forEach(c=>{var u;if(!e.validAttr(c))return;const g=o[c],p=(u=l&&l[c])!==null&&u!==void 0?u:t.getLastPropByName(c,s);if(g==null||p==null||g===p)return void(i[c]=g);let _;_=e.interpolateFunc&&e.interpolateFunc(c,r,p,g,i),_||(_=e.customInterpolate(c,r,p,g,this,i),_||this.defaultInterpolate(g,p,c,i,h,r)||this._interpolate(c,r,p,g,i))}),s.parsedProps=h}defaultInterpolate(t,e,i,s,r,a){if(Number.isFinite(t))return s[i]=e+(t-e)*a,!0;if(i==="fill"){r||(r={});const o=r.fillColorArray,l=Bl(e,o??t,a,!1,(h,d)=>{r.fillColorArray=d});return l&&(s[i]=l),!0}if(i==="stroke"){r||(r={});const o=r.strokeColorArray,l=Bl(e,o??t,a,!1,(h,d)=>{r.strokeColorArray=d});return l&&(s[i]=l),!0}if(i==="shadowColor"){r||(r={});const o=r.shadowColorArray,l=Bl(e,o??t,a,!0,(h,d)=>{r.shadowColorArray=d});return l&&(s[i]=l),!0}return!1}_interpolate(t,e,i,s,r){}getDefaultAttribute(t){return this.getGraphicTheme()[t]}getComputedAttribute(t){var e;return(e=this.attribute[t])!==null&&e!==void 0?e:this.getDefaultAttribute(t)}onSetStage(t,e=!1){this._onSetStage=t,e&&this.stage&&t(this,this.stage)}attachShadow(t){return t&&(t.shadowHost=this),this.shadowRoot=t??q.graphicService.creator.shadowRoot(this),this.addUpdateBoundTag(),this.shadowRoot.setStage(this.stage,this.layer),this.shadowRoot}detachShadow(){this.shadowRoot&&(this.addUpdateBoundTag(),this.shadowRoot=null)}toJson(){return{attribute:this.attribute,_uid:this._uid,type:this.type,name:this.name,children:this.children.map(t=>t.toJson())}}createPathProxy(t){return tt(t,!0)?this.pathProxy=new ei().fromString(t):this.pathProxy=new ei,this.pathProxy}loadImage(t,e=!1){if(!t||e&&Sj(t))return;const i=t;this.resources||(this.resources=new Map);const s={data:"init",state:null};this.resources.set(i,s),typeof t=="string"?(s.state="loading",t.startsWith("{e.stop()})}stopAnimates(t=!1){this._stopAnimates(this.animates),this.shadowRoot&&this.shadowRoot.stopAnimates(!0),this.isContainer&&t&&this.forEachChildren(e=>{e.stopAnimates(t)})}release(){this.releaseStatus="released",q.graphicService.onRelease(this)}_emitCustomEvent(t,e){var i,s;if(this._events&&t in this._events){const r=new xf(t,e);r.bubbles=!1,r.manager=(s=(i=this.stage)===null||i===void 0?void 0:i.eventSystem)===null||s===void 0?void 0:s.manager,this.dispatchEvent(r)}}}function Sj(n){return!(!n.fill&&!n.stroke)}zi.mixin(sj);function Aj(n,t){const e=[];let i=t.exec(n);for(;i;){const s=[];s.startIndex=t.lastIndex-i[0].length;const r=i.length;for(let a=0;a0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}function eA(n,t,e,i){const s=n.indexOf(t,e);if(s===-1)throw new Error(i);return s+t.length-1}function kj(n,t,e=">"){let i,s="";for(let r=t;r",a,"Closing Tag is not closed."),l=r.lastIndexOf(".");r=r.substring(0,l),i=this.tagsNodeStack.pop(),i&&i.child&&s&&i.child[i.child.length-1][":@"]&&(i.child[i.child.length-1][":@"].text=s),s="",a=o}else if(t[a+1]==="?")a=iA(t,a,!1,"?>").closeIndex+1;else if(t.substr(a+1,3)==="!--")a=eA(t,"-->",a+4,"Comment is not closed.");else{const o=iA(t,a);let l=o.tagName,h=o.tagExp;const d=o.attrExpPresent,c=o.closeIndex;if(l!==e.tagname&&(r+=r?"."+l:l),h.length>0&&h.lastIndexOf("/")===h.length-1){l[l.length-1]==="/"?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),h=l):h=h.substr(0,h.length-1);const u=new o0(l);l!==h&&d&&(u[":@"]=this.buildAttributesMap(h,r,l)),this.addChild(i,u,r),r=r.substr(0,r.lastIndexOf("."))}else{const u=new o0(l);this.tagsNodeStack.push(i),l!==h&&d&&(u[":@"]=this.buildAttributesMap(h,r,l)),this.addChild(i,u,r),i=u}s="",a=c}else s+=t[a];return e.child}}function wj(n,t){return XE(n)}function XE(n,t){const e={};for(let i=0;i{q.global.getRequestAnimationFrame()(()=>{i(null)})}),e.forEach(i=>{i.subLayers.size&&i.subLayers.forEach(s=>{s.drawContribution&&s.drawContribution.hooks&&s.drawContribution.rendering&&t.push(new Promise(r=>{s.drawContribution.hooks.completeDraw.tap("outWait",()=>{s.drawContribution.hooks.completeDraw.taps=s.drawContribution.hooks.completeDraw.taps.filter(a=>a.name!=="outWait"),r(null)})}))})}),yield Promise.all(t)})}function ep(n,t,e,i=0){return n.expand(t+(i/2+(e?Lj(e,t):0))),n}function Lj(n,t){return n?t:0}let Ij=0;function ji(){return Ij++}var no;(function(n){n[n.HORIZONTAL=0]="HORIZONTAL",n[n.VERTICAL=1]="VERTICAL"})(no||(no={}));function nA(n){const t=[];let e=0,i="";for(let s=0;sKE.set(n,!0));const Fj=[""],qE=new Map;function zj(n){if(KE.has(n))return!0;if(qE.has(n))return!1;let t=!1;return n.codePointAt(0)<256&&(t=!0),t}Fj.forEach(n=>qE.set(n,!0));const kf=ji(),Tf=ji(),ru=ji(),Mf=ji(),Nb=ji(),Ub=ji(),wf=ji(),au=ji(),Cf=ji(),Pf=ji(),$b=ji(),Yb=ji(),Xb=ji(),Kb=ji(),Ef=ji(),Rf=ji(),ZE=Symbol.for("GraphicService"),JE=Symbol.for("GraphicCreator"),QE={"stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-width":"lineWidth","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity",stroke:"stroke",fill:"fill"},jj=Object.keys(QE);var sA;(function(n){n[n.LESS_GROUP=0]="LESS_GROUP",n[n.MORE_GROUP=1]="MORE_GROUP"})(sA||(sA={}));let xh=class wv extends zi{constructor(t){super(t),this.type="group",this.parent=null,this.isContainer=!0,this.numberType=Ub,this._childUpdateTag=ce.UPDATE_BOUNDS}setMode(t){t==="3d"?this.set3dMode():this.set2dMode()}set3dMode(){this.in3dMode=!0}set2dMode(){this.in3dMode=!1}setTheme(t){return this.theme||(this.theme=new oc),this.theme.setTheme(t,this)}createTheme(){this.theme||(this.theme=new oc)}visibleAll(t){this.setAttribute("visible",t),this.forEachChildren(e=>{e.isContainer&&e.visibleAll?e.visibleAll(t):e.setAttribute("visible",t)})}hideAll(){this.visibleAll(!1)}showAll(){this.visibleAll(!0)}containsPoint(t,e,i){if(i===Xl.GLOBAL){const s=new Ie(t,e);return this.parent&&this.parent.globalTransMatrix.transformPoint(s,s),this.AABBBounds.contains(s.x,s.y)}return this.AABBBounds.contains(t,e)}shouldUpdateAABBBounds(){return!!super.shouldUpdateAABBBounds()||!!(this._childUpdateTag&ce.UPDATE_BOUNDS)}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;q.graphicService.beforeUpdateAABBBounds(this,this.stage,!0,this._AABBBounds);const t=this.shouldSelfChangeUpdateAABBBounds(),e=this.doUpdateAABBBounds();return this.addUpdateLayoutTag(),q.graphicService.afterUpdateAABBBounds(this,this.stage,this._AABBBounds,this,t),e}doUpdateLocalMatrix(){const{x:t=di.x,y:e=di.y,dx:i=di.dx,dy:s=di.dy,scaleX:r=di.scaleX,scaleY:a=di.scaleY,angle:o=di.angle,postMatrix:l}=this.attribute;if(t!==0||e!==0||i!==0||s!==0||r!==1||a!==1||o!==0||l)return super.doUpdateLocalMatrix();this._transMatrix.reset()}getGraphicTheme(){return Mt(this).group}updateAABBBounds(t,e,i){const s=i;i=i.clone();const{width:r,height:a,path:o,clip:l=e.clip,display:h}=t;return o&&o.length?o.forEach(d=>{i.union(d.AABBBounds)}):r!=null&&a!=null&&i.set(0,0,Math.max(0,r),Math.max(0,a)),l||this.forEachChildren(d=>{i.union(d.AABBBounds)}),q.graphicService.updateTempAABBBounds(i),q.graphicService.transformAABBBounds(t,i,e,!1,this),s.copy(i),s}doUpdateAABBBounds(){this.updateAABBBoundsStamp++;const t=super.doUpdateAABBBounds();return this.parent&&this.parent.addChildUpdateBoundTag(),this._emitCustomEvent("AAABBBoundsChange"),t}clearUpdateBoundTag(){this._updateTag&=ce.CLEAR_BOUNDS,this._childUpdateTag&=ce.CLEAR_BOUNDS}addUpdateBoundTag(){this._updateTag|=ce.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag()}addChildUpdateBoundTag(){this._childUpdateTag&ce.UPDATE_BOUNDS||(this._childUpdateTag|=ce.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag())}getTheme(){return this.theme.getTheme(this)}incrementalAppendChild(t){const e=super.appendChild(t);return this.stage&&e&&(e.stage=this.stage,e.layer=this.layer),this.addUpdateBoundTag(),q.graphicService.onAddIncremental(t,this,this.stage),e}incrementalClearChild(){super.removeAllChild(),this.addUpdateBoundTag(),q.graphicService.onClearIncremental(this,this.stage)}_updateChildToStage(t){return this.stage&&t&&t.setStage(this.stage,this.layer),this.addUpdateBoundTag(),t}appendChild(t,e=!0){const i=super.appendChild(t);return e&&this.stage&&i&&i.setStage(this.stage,this.layer),this.addUpdateBoundTag(),i}insertBefore(t,e){return this._updateChildToStage(super.insertBefore(t,e))}insertAfter(t,e){return this._updateChildToStage(super.insertAfter(t,e))}insertInto(t,e){return this._updateChildToStage(super.insertInto(t,e))}removeChild(t){const e=super.removeChild(t);return t.stage=null,q.graphicService.onRemove(t),this.addUpdateBoundTag(),e}removeAllChild(t=!1){this.forEachChildren(e=>{q.graphicService.onRemove(e),t&&e.isContainer&&e.removeAllChild(t)}),super.removeAllChild(),this.addUpdateBoundTag()}setStage(t,e){this.stage!==t&&(this.stage=t,this.layer=e,this.setStageToShadowRoot(t,e),this._onSetStage&&this._onSetStage(this,t,e),q.graphicService.onSetStage(this,t),this.forEachChildren(i=>{i.setStage(t,this.layer)}))}addUpdatePositionTag(){super.addUpdatePositionTag(),this.forEachChildren(t=>{t.isContainer&&t.addUpdateGlobalPositionTag()})}addUpdateGlobalPositionTag(){super.addUpdateGlobalPositionTag(),this.forEachChildren(t=>{t.isContainer&&t.addUpdateGlobalPositionTag()})}tryUpdateGlobalTransMatrix(t=!0){if(this.shouldUpdateGlobalMatrix()){if(this._globalTransMatrix){if(this.parent){const e=this.parent.globalTransMatrix;this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f)}}else this._globalTransMatrix=this.parent?this.parent.globalTransMatrix.clone():this.transMatrix.clone();this.doUpdateGlobalMatrix(),t&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}shouldUpdateGlobalMatrix(){return!!(this._updateTag&ce.UPDATE_GLOBAL_MATRIX)}_getChildByName(t,e){return this.find(i=>i.name===t,e)}createOrUpdateChild(t,e,i){let s=this._getChildByName(t);return s?s.setAttributes(e):(s=q.graphicService.creator[i](e),s.name=t,this.add(s)),s}clone(){return new wv(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return wv.NOWORK_ANIMATE_ATTR}};xh.NOWORK_ANIMATE_ATTR=Pi;function qb(n){return new xh(n)}class Hj extends xh{get offscreen(){return this.layerHandler.offscreen}get layerMode(){return this.layerHandler.type}get width(){return this.stage?this.stage.width:0}get height(){return this.stage?this.stage.height:0}get viewWidth(){return this.stage?this.stage.viewWidth:0}get viewHeight(){return this.stage?this.stage.viewHeight:0}get dirtyBound(){throw new Error("暂不支持")}get dpr(){return this._dpr}constructor(t,e,i,s){var r;super({}),this.stage=t,this.global=e,this.window=i,this.main=s.main,this.layerHandler=s.layerHandler,this.layerHandler.init(this,i,{main:s.main,canvasId:s.canvasId,width:this.viewWidth,height:this.viewHeight,zIndex:(r=s.zIndex)!==null&&r!==void 0?r:0}),this.layer=this,this.subLayers=new Map,this.theme=new oc,this.background="rgba(0, 0, 0, 0)",this.afterDrawCbs=[]}combineSubLayer(t=!0){const e=Array.from(this.subLayers.values()).sort((i,s)=>i.zIndex-s.zIndex);this.layerHandler.merge(e.map(i=>(i.layer.subLayers.size&&i.layer.combineSubLayer(t),i.layer.getNativeHandler()))),t&&e.forEach(i=>{i.group&&(i.group.incremental=0)}),e.forEach(i=>{q.layerService.releaseLayer(this.stage,i.layer)}),this.subLayers.clear()}getNativeHandler(){return this.layerHandler}setStage(t,e){super.setStage(t,this)}pick(t,e){throw new Error("暂不支持")}tryRenderSecondaryLayer(t,e){this.layerHandler.secondaryHandlers&&this.layerHandler.secondaryHandlers.length&&this.layerHandler.secondaryHandlers.forEach(i=>{i.layer.renderCount=this.renderCount,i.layer.render(t,e)})}render(t,e){var i;this.layerHandler.render([this],{renderService:t.renderService,stage:this.stage,layer:this,viewBox:t.viewBox,transMatrix:t.transMatrix,background:(i=t.background)!==null&&i!==void 0?i:this.background,updateBounds:t.updateBounds},e),this.afterDrawCbs.forEach(s=>s(this)),this.tryRenderSecondaryLayer(t,e)}resize(t,e){this.layerHandler.resize(t,e)}resizeView(t,e){this.layerHandler.resizeView(t,e)}setDpr(t){this.layerHandler.setDpr(t)}afterDraw(t){this.afterDrawCbs.push(t)}startAnimate(t){throw new Error("暂不支持")}setToFrame(t){throw new Error("暂不支持")}prepare(t,e){}release(){super.release(),this.layerHandler.release(),this.subLayers&&this.subLayers.forEach(t=>{q.layerService.releaseLayer(this.stage,t.layer)})}drawTo(t,e){var i;this.layerHandler.drawTo(t,[this],Object.assign({background:(i=e.background)!==null&&i!==void 0?i:this.background,renderService:e.renderService,viewBox:e.viewBox,transMatrix:e.transMatrix,stage:this.stage,layer:this},e)),this.afterDrawCbs.forEach(s=>s(this))}}const tR=Symbol.for("TransformUtil"),eR=Symbol.for("GraphicUtil"),Zb=Symbol.for("LayerService"),iR=Symbol.for("StaticLayerHandlerContribution"),Vj=Symbol.for("DynamicLayerHandlerContribution"),Wj=Symbol.for("VirtualLayerHandlerContribution");var td,Gj=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},Nj=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let ed=td=class{static GenerateLayerId(){return`${td.idprefix}_${td.prefix_count++}`}constructor(){this.layerMap=new Map,this.global=q.global}tryInit(){this.inited||(this.staticLayerCountInEnv=this.global.getStaticCanvasCount(),this.dynamicLayerCountInEnv=this.global.getDynamicCanvasCount(),this.inited=!0)}getStageLayer(n){return this.layerMap.get(n)}getRecommendedLayerType(n){return n||(this.staticLayerCountInEnv!==0?"static":this.dynamicLayerCountInEnv!==0?"dynamic":"virtual")}getLayerHandler(n){let t;return t=n==="static"?At.get(iR):n==="dynamic"?At.get(Vj):At.get(Wj),t}createLayer(n,t={main:!1}){var e;this.tryInit();let i=this.getRecommendedLayerType(t.layerMode);i=t.main||t.canvasId?"static":i;const s=this.getLayerHandler(i),r=new Hj(n,this.global,n.window,Object.assign(Object.assign({main:!1},t),{layerMode:i,canvasId:(e=t.canvasId)!==null&&e!==void 0?e:td.GenerateLayerId(),layerHandler:s})),a=this.layerMap.get(n)||[];return a.push(r),this.layerMap.set(n,a),this.staticLayerCountInEnv--,r}prepareStageLayer(n){let t;n.forEachChildren(e=>{const i=e.getNativeHandler();i.type==="virtual"?(i.mainHandler=t,t.secondaryHandlers.push(i)):(t=i,t.secondaryHandlers=[])})}releaseLayer(n,t){t.release();const e=this.layerMap.get(n)||[];this.layerMap.set(n,e.filter(i=>i!==t))}layerCount(n){return(this.layerMap.get(n)||[]).length}restLayerCount(n){return this.global.env==="browser"?10:0}releaseStage(n){this.layerMap.delete(n)}};ed.idprefix="visactor_layer",ed.prefix_count=0,ed=td=Gj([pt(),Nj("design:paramtypes",[])],ed);const Uj=new kt(n=>{n(Fb).to(gv).inSingletonScope(),n(qg).to(Sv),n(eR).to(Av).inSingletonScope(),n(tR).to(kv).inSingletonScope(),n(Zb).to(ed).inSingletonScope()});function Fo(n,t){return!(!n&&!t)}function Sh(n,t){let e;return e=U(n)?n.some(i=>i||i===void 0):!!n,e&&t>0}function mo(n,t,e){return e&&n*t>0}function Jb(n,t,e,i,s){return s&&n*t>0&&e!==0&&i!==0}function Qb(n,t){return n*t>0}function tx(n,t,e,i){return n*t>0&&e!==0&&i!==0}function $j(n,t,e,i,s,r,a,o){if(!n.pathProxy)return!1;const l=Mt(n,r==null?void 0:r.theme)[n.type.replace("3d","")],{fill:h=l.fill,stroke:d=l.stroke,opacity:c=l.opacity,fillOpacity:u=l.fillOpacity,lineWidth:g=l.lineWidth,strokeOpacity:p=l.strokeOpacity,visible:_=l.visible,x:f=l.x,y:m=l.y}=n.attribute,v=mo(c,u,h),y=Qb(c,p),b=Fo(h),x=Sh(d,g);if(!_||!b&&!x||!(v||y||a||o))return!0;t.beginPath();const S=typeof n.pathProxy=="function"?n.pathProxy(n.attribute):n.pathProxy;return ba(S.commandList,t,e,i),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),x&&y&&(t.setStrokeStyle(n,n.attribute,e-f,i-m,l),t.stroke()),b&&v&&(t.setCommonStyle(n,n.attribute,e-f,i-m,l),t.fill()),!0}function Yj(n,t,e,i,s,r,a,o){const l=e-n,h=i-t,d=a-s,c=o-r;let u=c*l-d*h;return u*uL*L+E*E&&(k=w,T=M),{cx:k,cy:T,x01:-d,y01:-c,x11:k*(s/x-1),y11:T*(s/x-1)}}function nR(n,t,e,i,s){const r=Wt(e-t),a=n.getParsedCornerRadius(),o=U(a),{outerDeltaAngle:l,innerDeltaAngle:h,outerStartAngle:d,outerEndAngle:c,innerEndAngle:u,innerStartAngle:g}=n.getParsePadAngle(t,e),p=o?a[0]:a,_=o?a[1]:a,f=o?a[2]:a,m=o?a[3]:a,v=Math.max(_,p),y=Math.max(f,m);let b=v,x=y;const S=s*fe(d),A=s*le(d),k=i*fe(u),T=i*le(u);let w,M,R,O;if((y>Kt||v>Kt)&&(w=s*fe(c),M=s*le(c),R=i*fe(g),O=i*le(g),ro;let c=!1;if(s=jt-Kt)t.moveTo(e+s*fe(o),i+s*le(o)),t.arc(e,i,s,o,l,!d),r>Kt&&(t.moveTo(e+r*fe(l),i+r*le(l)),t.arc(e,i,r,l,o,d));else{const{outerDeltaAngle:u,xors:g,yors:p,xirs:_,yirs:f,limitedOcr:m,outerCornerRadiusStart:v,outerCornerRadiusEnd:y,maxOuterCornerRadius:b,xore:x,yore:S,xire:A,yire:k,outerStartAngle:T,outerEndAngle:w,limitedIcr:M,innerDeltaAngle:R,innerEndAngle:O,innerStartAngle:L,innerCornerRadiusStart:E,innerCornerRadiusEnd:B,maxInnerCornerRadius:I}=nR(n,o,l,r,s);if(u<.001)a&&(a[3]||a[1])&&t.moveTo(e+g,i+p),c=!0;else if(m>Kt){const F=_i(v,m),z=_i(y,m),V=Wr(_,f,g,p,s,F,Number(d)),W=Wr(x,S,A,k,s,z,Number(d));m0&&t.arc(e+V.cx,i+V.cy,F,ae(V.y01,V.x01),ae(V.y11,V.x11),!d),t.arc(e,i,s,ae(V.cy+V.y11,V.cx+V.x11),ae(W.cy+W.y11,W.cx+W.x11),!d),z>0&&t.arc(e+W.cx,i+W.cy,z,ae(W.y11,W.x11),ae(W.y01,W.x01),!d)):z>0?t.moveTo(e+W.cx+z*fe(ae(W.y01,W.x01)),i+W.cy+z*le(ae(W.y01,W.x01))):t.moveTo(e+x,i+s*le(w))}else!a||a[0]?(t.moveTo(e+g,i+p),t.arc(e,i,s,T,w,!d)):t.moveTo(e+s*fe(w),i+s*le(w));if(!(r>Kt)||R<.001)!a||a[1]?t.lineTo(e+A,i+k):t.moveTo(e+A,i+k),c=!0;else if(M>Kt){const F=_i(E,M),z=_i(B,M),V=Wr(A,k,x,S,r,-z,Number(d)),W=Wr(g,p,_,f,r,-F,Number(d));if(!a||a[1]?t.lineTo(e+V.cx+V.x01,i+V.cy+V.y01):t.moveTo(e+V.cx+V.x01,i+V.cy+V.y01),M0&&t.arc(e+V.cx,i+V.cy,z,ae(V.y01,V.x01),ae(V.y11,V.x11),!d),t.arc(e,i,r,ae(V.cy+V.y11,V.cx+V.x11),ae(W.cy+W.y11,W.cx+W.x11),d),F>0&&t.arc(e+W.cx,i+W.cy,F,ae(W.y11,W.x11),ae(W.y01,W.x01),!d)):F>0?t.moveTo(e+W.cx+F*fe(ae(W.y01,W.x01)),i+W.cy+F*le(ae(W.y01,W.x01))):t.moveTo(e+_,i+f)}else!a||a[1]?t.lineTo(e+A,i+k):t.moveTo(e+A,i+k),!a||a[2]?t.arc(e,i,r,O,L,d):t.moveTo(e+r*fe(L),i+r*le(L))}return a?a[3]&&t.lineTo(e+s*fe(o),i+s*le(o)):t.closePath(),c}class Rn{static GetCanvas(){try{return Rn.canvas||(Rn.canvas=q.global.createCanvas({})),Rn.canvas}catch{return null}}static GetCtx(){if(!Rn.ctx){const t=Rn.GetCanvas();Rn.ctx=t.getContext("2d")}return Rn.ctx}}class Ya extends G2{static getInstance(){return Ya._instance||(Ya._instance=new Ya),Ya._instance}constructor(t=[],e=100){super(),this.cacheParams={CLEAN_THRESHOLD:100,L_TIME:1e3},this.dataMap=new Map;const i=Rn.GetCanvas(),s=Rn.GetCtx();if(i.width=e,i.height=1,!s)return;if(s.translate(0,0),!s)throw new Error("获取ctx发生错误");const r=s.createLinearGradient(0,0,e,0);t.forEach(a=>{r.addColorStop(a[0],a[1])}),s.fillStyle=r,s.fillRect(0,0,e,1),this.rgbaSet=s.getImageData(0,0,e,1).data}getColor(t){const e=this.rgbaSet.slice(4*t,4*t+4);return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]/255})`}GetOrCreate(t,e,i,s,r=[],a=100){let o=`${t}${e}${i}${s}`;r.forEach(h=>o+=h.join()),o+=a;let l=this.dataMap.get(o);return l||(l={data:new Ya(r,a),timestamp:[]},this.addLimitedTimestamp(l,Date.now(),{}),this.dataMap.set(o,l)),this.clearCache(this.dataMap,this.cacheParams),l.data}}class Bi{static GetSize(t){for(let e=0;e=t)return Bi.ImageSize[e];return t}static Get(t,e,i,s,r,a,o){const l=Bi.GenKey(t,e,i,s,r),h=Bi.cache[l];if(!h||h.length===0)return null;for(let d=0;d=a&&h[d].height>=o)return h[d].pattern;return null}static Set(t,e,i,s,r,a,o,l){const h=Bi.GenKey(t,e,i,s,r);Bi.cache[h]?Bi.cache[h].push({width:o,height:l,pattern:a}):Bi.cache[h]=[{width:o,height:l,pattern:a}]}static GenKey(t,e,i,s,r){return`${e},${i},${s},${r},${t.join()}`}}Bi.cache={},Bi.ImageSize=[20,40,80,160,320,640,1280,2560];function Xj(n,t,e,i){const{stops:s,startAngle:r,endAngle:a}=i;for(;e<0;)e+=jt;for(;e>jt;)e-=jt;if(ea)return s[0].color;let o,l,h=(e-r)/(a-r);for(let d=0;d=h){o=s[d-1],l=s[d];break}return h=(h-o.offset)/(l.offset-o.offset),Bl(o.color,l.color,h,!1)}function Kj(n,t,e,i,s,r,a,o,l){const h=Math.floor(180*s/Math.PI),d=Rn.GetCanvas(),c=Rn.GetCtx();if(!c)return null;const u=Bi.GetSize(o),g=Bi.GetSize(l);let p=Bi.Get(t,e,i,r,a,u,g);if(p)return p;const _=Math.sqrt(Math.max(Math.max(Math.pow(e,2)+Math.pow(i,2),Math.pow(u-e,2)+Math.pow(i,2)),Math.max(Math.pow(u-e,2)+Math.pow(g-i,2),Math.pow(e,2)+Math.pow(g-i,2)))),f=h+1,m=s/Math.max(1,f-1),v=Ya.getInstance().GetOrCreate(e,i,u,g,t,f),y=2*Math.PI*_/360;d.width=u,d.height=g,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,u,g),c.translate(e,i),c.rotate(r);for(let x=0,S=f-1;xa);x++){const A=v.getColor(x);c.beginPath(),c.rotate(m),c.moveTo(0,0),c.lineTo(_,-2*y),c.lineTo(_,0),c.fillStyle=A,c.closePath(),c.fill()}const b=c.getImageData(0,0,u,g);return d.width=b.width,d.height=b.height,c.putImageData(b,0,0),p=n.createPattern(d,"no-repeat"),p&&Bi.Set(t,e,i,r,a,p,u,g),p}const Pv=Symbol.for("ArcRenderContribution"),Ev=Symbol.for("AreaRenderContribution"),Rv=Symbol.for("CircleRenderContribution"),sR=Symbol.for("GroupRenderContribution"),Ov=Symbol.for("ImageRenderContribution"),Bv=Symbol.for("PathRenderContribution"),Lv=Symbol.for("PolygonRenderContribution"),id=Symbol.for("RectRenderContribution"),Iv=Symbol.for("SymbolRenderContribution"),Dv=Symbol.for("TextRenderContribution"),ex=Symbol.for("InteractiveSubRenderContribution");function qj(n,t){return n==="top"?Math.ceil(.79*t):n==="middle"?Math.round(.3*t):n==="bottom"?Math.round(-.21*t):0}function Qs(n,t){return n==="end"||n==="right"?-t:n==="center"?-t/2:0}function tr(n,t,e,i=0){return n==="middle"?-t/2:n==="top"?0:n==="bottom"?i-t:n&&n!=="alphabetic"?0:(e||(e=t),-(t-e)/2-.79*e)}function Zj(n){const t={},e=i=>/^\d+(\.\d+)?$/.test(`${i}`)?`${i}px`:`${i}`;return["textAlign","fontFamily","fontVariant","fontStyle","fontWeight"].forEach(i=>{n[i]&&(t[QS(i)]=n[i])}),["fontSize","lineHeight"].forEach(i=>{const s=QS(i);P(n[i])||(t[s]=e(n[i]))}),C(n.maxLineWidth)&&(t["max-width"]=e(n.maxLineWidth)),n.underline?t["text-decoration"]="underline":n.lineThrough&&(t["text-decoration"]="line-through"),n.fill&&tt(n.fill)&&(t.color=n.fill),t}function ix(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function Jj(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[4],a=t[5],o=t[6],l=t[7],h=t[8],d=t[9],c=t[10],u=t[11];return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[4]=r*s+h*i,n[5]=a*s+d*i,n[6]=o*s+c*i,n[7]=l*s+u*i,n[8]=h*s-r*i,n[9]=d*s-a*i,n[10]=c*s-o*i,n[11]=u*s-l*i,n}function Qj(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[0],a=t[1],o=t[2],l=t[3],h=t[8],d=t[9],c=t[10],u=t[11];return t!==n&&(n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=r*s-h*i,n[1]=a*s-d*i,n[2]=o*s-c*i,n[3]=l*s-u*i,n[8]=r*i+h*s,n[9]=a*i+d*s,n[10]=o*i+c*s,n[11]=l*i+u*s,n}function tH(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[0],a=t[1],o=t[2],l=t[3],h=t[4],d=t[5],c=t[6],u=t[7];return t!==n&&(n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=r*s+h*i,n[1]=a*s+d*i,n[2]=o*s+c*i,n[3]=l*s+u*i,n[4]=h*s-r*i,n[5]=d*s-a*i,n[6]=c*s-o*i,n[7]=u*s-l*i,n}function Dh(n,t,e){const i=e[0],s=e[1],r=e[2];let a,o,l,h,d,c,u,g,p,_,f,m;return t===n?(n[12]=t[0]*i+t[4]*s+t[8]*r+t[12],n[13]=t[1]*i+t[5]*s+t[9]*r+t[13],n[14]=t[2]*i+t[6]*s+t[10]*r+t[14],n[15]=t[3]*i+t[7]*s+t[11]*r+t[15]):(a=t[0],o=t[1],l=t[2],h=t[3],d=t[4],c=t[5],u=t[6],g=t[7],p=t[8],_=t[9],f=t[10],m=t[11],n[0]=a,n[1]=o,n[2]=l,n[3]=h,n[4]=d,n[5]=c,n[6]=u,n[7]=g,n[8]=p,n[9]=_,n[10]=f,n[11]=m,n[12]=a*i+d*s+p*r+t[12],n[13]=o*i+c*s+_*r+t[13],n[14]=l*i+u*s+f*r+t[14],n[15]=h*i+g*s+m*r+t[15]),n}function Fv(n,t){n[0]=t.a,n[1]=t.b,n[2]=0,n[3]=0,n[4]=t.c,n[5]=t.d,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=t.e,n[13]=t.f,n[14]=0,n[15]=1}function eH(n,t,e){const i=e[0],s=e[1],r=e[2];return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=t[3]*i,n[4]=t[4]*s,n[5]=t[5]*s,n[6]=t[6]*s,n[7]=t[7]*s,n[8]=t[8]*r,n[9]=t[9]*r,n[10]=t[10]*r,n[11]=t[11]*r,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function vo(n,t,e){const i=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],d=t[7],c=t[8],u=t[9],g=t[10],p=t[11],_=t[12],f=t[13],m=t[14],v=t[15];let y=e[0],b=e[1],x=e[2],S=e[3];return n[0]=y*i+b*o+x*c+S*_,n[1]=y*s+b*l+x*u+S*f,n[2]=y*r+b*h+x*g+S*m,n[3]=y*a+b*d+x*p+S*v,y=e[4],b=e[5],x=e[6],S=e[7],n[4]=y*i+b*o+x*c+S*_,n[5]=y*s+b*l+x*u+S*f,n[6]=y*r+b*h+x*g+S*m,n[7]=y*a+b*d+x*p+S*v,y=e[8],b=e[9],x=e[10],S=e[11],n[8]=y*i+b*o+x*c+S*_,n[9]=y*s+b*l+x*u+S*f,n[10]=y*r+b*h+x*g+S*m,n[11]=y*a+b*d+x*p+S*v,y=e[12],b=e[13],x=e[14],S=e[15],n[12]=y*i+b*o+x*c+S*_,n[13]=y*s+b*l+x*u+S*f,n[14]=y*r+b*h+x*g+S*m,n[15]=y*a+b*d+x*p+S*v,n}function iH(n,t,e,i){let s,r,a,o,l,h,d,c,u,g;const p=t[0],_=t[1],f=t[2],m=i[0],v=i[1],y=i[2],b=e[0],x=e[1],S=e[2];return Math.abs(p-b)=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},aH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},oH=function(n,t){return function(e,i){t(e,i,n)}};function rR(n,t,e){var i;const{x:s=e.x,y:r=e.y,z:a=e.z,dx:o=e.dx,dy:l=e.dy,dz:h=e.dz,scaleX:d=e.scaleX,scaleY:c=e.scaleY,scaleZ:u=e.scaleZ,alpha:g=e.alpha,beta:p=e.beta,angle:_=e.angle,anchor3d:f=t.attribute.anchor,anchor:m}=t.attribute,v=[0,0,0];if(f){if(typeof f[0]=="string"){const y=parseFloat(f[0])/100,b=t.AABBBounds;v[0]=b.x1+(b.x2-b.x1)*y}else v[0]=f[0];if(typeof f[1]=="string"){const y=parseFloat(f[1])/100,b=t.AABBBounds;v[1]=b.x1+(b.x2-b.x1)*y}else v[1]=f[1];v[2]=(i=f[2])!==null&&i!==void 0?i:0}if(ix(n),Dh(n,n,[s+o,r+l,a+h]),Dh(n,n,[v[0],v[1],v[2]]),Jj(n,n,p),Qj(n,n,g),Dh(n,n,[-v[0],-v[1],v[2]]),eH(n,n,[d,c,u]),_){const y=xe.allocate(),b=[0,0];if(m){if(typeof f[0]=="string"){const x=parseFloat(f[0])/100,S=t.AABBBounds;b[0]=S.x1+(S.x2-S.x1)*x}else b[0]=f[0];if(typeof f[1]=="string"){const x=parseFloat(f[1])/100,S=t.AABBBounds;b[1]=S.x1+(S.x2-S.x1)*x}else b[1]=f[1]}Dh(y,y,[b[0],b[1],0]),tH(y,y,_),Dh(y,y,[-b[0],-b[1],0]),vo(n,n,y)}}function lH(n){const{alpha:t,beta:e}=n.attribute;return t||e}let zv=class{constructor(n){this.creator=n,this.hooks={onAttributeUpdate:new _n(["graphic"]),onSetStage:new _n(["graphic","stage"]),onRemove:new _n(["graphic"]),onRelease:new _n(["graphic"]),onAddIncremental:new _n(["graphic","group","stage"]),onClearIncremental:new _n(["graphic","group","stage"]),beforeUpdateAABBBounds:new _n(["graphic","stage","willUpdate","aabbBounds"]),afterUpdateAABBBounds:new _n(["graphic","stage","aabbBounds","globalAABBBounds","selfChange"])},this.tempAABBBounds1=new Oe,this.tempAABBBounds2=new Oe}onAttributeUpdate(n){this.hooks.onAttributeUpdate.taps.length&&this.hooks.onAttributeUpdate.call(n)}onSetStage(n,t){this.hooks.onSetStage.taps.length&&this.hooks.onSetStage.call(n,t)}onRemove(n){this.hooks.onRemove.taps.length&&this.hooks.onRemove.call(n)}onRelease(n){this.hooks.onRelease.taps.length&&this.hooks.onRelease.call(n)}onAddIncremental(n,t,e){this.hooks.onAddIncremental.taps.length&&this.hooks.onAddIncremental.call(n,t,e)}onClearIncremental(n,t){this.hooks.onClearIncremental.taps.length&&this.hooks.onClearIncremental.call(n,t)}beforeUpdateAABBBounds(n,t,e,i){this.hooks.beforeUpdateAABBBounds.taps.length&&this.hooks.beforeUpdateAABBBounds.call(n,t,e,i)}afterUpdateAABBBounds(n,t,e,i,s){this.hooks.afterUpdateAABBBounds.taps.length&&this.hooks.afterUpdateAABBBounds.call(n,t,e,i,s)}updatePathProxyAABBBounds(n,t){const e=typeof t.pathProxy=="function"?t.pathProxy(t.attribute):t.pathProxy;if(!e)return!1;const i=new zb(n);return ba(e.commandList,i,0,0),!0}updateHTMLTextAABBBounds(n,t,e,i){const{textAlign:s,textBaseline:r}=n;if(n.forceBoundsHeight!=null){const a=J(n.forceBoundsHeight)?n.forceBoundsHeight:n.forceBoundsHeight(),o=tr(r,a,a);e.set(e.x1,o,e.x2,o+a)}if(n.forceBoundsWidth!=null){const a=J(n.forceBoundsWidth)?n.forceBoundsWidth:n.forceBoundsWidth(),o=Qs(s,a);e.set(o,e.y1,o+a,e.y2)}}combindShadowAABBBounds(n,t){if(t&&t.shadowRoot){const e=t.shadowRoot.AABBBounds;n.union(e)}}transformAABBBounds(n,t,e,i,s){if(!t.empty()){const{scaleX:o=e.scaleX,scaleY:l=e.scaleY,stroke:h=e.stroke,shadowBlur:d=e.shadowBlur,lineWidth:c=e.lineWidth,pickStrokeBuffer:u=e.pickStrokeBuffer,strokeBoundsBuffer:g=e.strokeBoundsBuffer}=n,p=this.tempAABBBounds1,_=this.tempAABBBounds2;if(h&&c){const f=(c+u)/Math.abs(o+l);ep(p,f,i,g),t.union(p),p.setValue(_.x1,_.y1,_.x2,_.y2)}if(d){const{shadowOffsetX:f=e.shadowOffsetX,shadowOffsetY:m=e.shadowOffsetY}=n,v=d/Math.abs(o+l)*2;ep(p,v,!1,g+1),p.translate(f,m),t.union(p)}}if(this.combindShadowAABBBounds(t,s),t.empty())return;let r=!0;const a=s.transMatrix;s&&s.isContainer&&(r=!(a.a===1&&a.b===0&&a.c===0&&a.d===1&&a.e===0&&a.f===0)),r&&kb(t,t,a)}validCheck(n,t,e,i){if(!i||n.forceBoundsHeight!=null||n.forceBoundsWidth!=null||i.shadowRoot)return!0;if(!i.valid)return e.clear(),!1;const{visible:s=t.visible}=n;return!!s||(e.clear(),!1)}updateTempAABBBounds(n){const t=this.tempAABBBounds1,e=this.tempAABBBounds2;return t.setValue(n.x1,n.y1,n.x2,n.y2),e.setValue(n.x1,n.y1,n.x2,n.y2),{tb1:t,tb2:e}}};zv=rH([pt(),oH(0,Rt(JE)),aH("design:paramtypes",[Object])],zv);const Ne={x:0,y:0,z:0,lastModelMatrix:null};class Ki{init(t){t&&(this._renderContribitions=t.getContributions()),this._renderContribitions||(this._renderContribitions=[]),this.builtinContributions&&this.builtinContributions.forEach(e=>this._renderContribitions.push(e)),this._renderContribitions.length&&(this._renderContribitions.sort((e,i)=>i.order-e.order),this._beforeRenderContribitions=this._renderContribitions.filter(e=>e.time===oi.beforeFillStroke),this._afterRenderContribitions=this._renderContribitions.filter(e=>e.time===oi.afterFillStroke))}beforeRenderStep(t,e,i,s,r,a,o,l,h,d,c,u,g){this._beforeRenderContribitions&&this._beforeRenderContribitions.forEach(p=>{p.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(p.supportedAppName)?p.supportedAppName:[p.supportedAppName]).includes(t.stage.params.context.appName)||p.drawShape(t,e,i,s,r,a,o,l,h,d,c,u,g)})}afterRenderStep(t,e,i,s,r,a,o,l,h,d,c,u,g){this._afterRenderContribitions&&this._afterRenderContribitions.forEach(p=>{p.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(p.supportedAppName)?p.supportedAppName:[p.supportedAppName]).includes(t.stage.params.context.appName)||p.drawShape(t,e,i,s,r,a,o,l,h,d,c,u,g)})}valid(t,e,i,s){const{fill:r=e.fill,background:a,stroke:o=e.stroke,opacity:l=e.opacity,fillOpacity:h=e.fillOpacity,lineWidth:d=e.lineWidth,strokeOpacity:c=e.strokeOpacity,visible:u=e.visible}=t.attribute,g=mo(l,h,r),p=Qb(l,c),_=Fo(r,a),f=Sh(o,d);return!(!t.valid||!u)&&!(!_&&!f)&&!!(g||p||i||s||a)&&{fVisible:g,sVisible:p,doFill:_,doStroke:f}}transform(t,e,i,s=!1){const{x:r=e.x,y:a=e.y,z:o=e.z,scaleX:l=e.scaleX,scaleY:h=e.scaleY,angle:d=e.angle,postMatrix:c}=t.attribute,u=i.modelMatrix,g=i.camera;Ne.x=r,Ne.y=a,Ne.z=o,Ne.lastModelMatrix=u;const p=g&&(s||lH(t)),_=p?t.transMatrix.onlyTranslate()&&!c:l===1&&h===1&&d===0&&!c;if(p){const f=xe.allocate(),m=xe.allocate();rR(m,t,e),vo(f,u||f,m),Ne.x=0,Ne.y=0,Ne.z=0,i.modelMatrix=f,i.setTransform(1,0,0,1,0,0,!0),xe.free(m)}if(_&&!u){const f=t.getOffsetXY(e);Ne.x+=f.x,Ne.y+=f.y,Ne.z=o,i.setTransformForCurrent()}else if(p)Ne.x=0,Ne.y=0,Ne.z=0,i.setTransform(1,0,0,1,0,0,!0);else if(g&&i.project){const f=t.getOffsetXY(e);Ne.x+=f.x,Ne.y+=f.y,this.transformWithoutTranslate(i,Ne.x,Ne.y,Ne.z,l,h,d)}else i.transformFromMatrix(t.transMatrix,!0),Ne.x=0,Ne.y=0,Ne.z=0;return Ne}transformUseContext2d(t,e,i,s){const r=s.camera;if(this.camera=r,r){const a=t.AABBBounds,o=a.x2-a.x1,l=a.y2-a.y1,h=s.project(0,0,i),d=s.project(o,0,i),c=s.project(o,l,i),u={x:0,y:0},g={x:o,y:0},p={x:o,y:l};s.camera=null;const _=1/(u.x*(p.y-g.y)-g.x*p.y+p.x*g.y+(g.x-p.x)*u.y),f=-(u.y*(c.x-d.x)-g.y*c.x+p.y*d.x+(g.y-p.y)*h.x)*_,m=(g.y*c.y+u.y*(d.y-c.y)-p.y*d.y+(p.y-g.y)*h.y)*_,v=(u.x*(c.x-d.x)-g.x*c.x+p.x*d.x+(g.x-p.x)*h.x)*_,y=-(g.x*c.y+u.x*(d.y-c.y)-p.x*d.y+(p.x-g.x)*h.y)*_,b=(u.x*(p.y*d.x-g.y*c.x)+u.y*(g.x*c.x-p.x*d.x)+(p.x*g.y-g.x*p.y)*h.x)*_,x=(u.x*(p.y*d.y-g.y*c.y)+u.y*(g.x*c.y-p.x*d.y)+(p.x*g.y-g.x*p.y)*h.y)*_;s.setTransform(f,m,v,y,b,x,!0)}}restoreTransformUseContext2d(t,e,i,s){this.camera&&(s.camera=this.camera)}transformWithoutTranslate(t,e,i,s,r,a,o){const l=t.project(e,i,s);t.translate(l.x,l.y,!1),t.scale(r,a,!1),t.rotate(o,!1),t.translate(-l.x,-l.y,!1),t.setTransformForCurrent()}_draw(t,e,i,s,r){const{context:a}=s;if(!a)return;const{renderable:o}=t.attribute;if(o===!1)return;a.highPerformanceSave();const l=this.transform(t,e,a,i),{x:h,y:d,z:c,lastModelMatrix:u}=l;this.z=c,$j(t,a,h,d,s,r)||(this.drawShape(t,a,h,d,s,r),this.z=0,a.modelMatrix!==u&&xe.free(a.modelMatrix),a.modelMatrix=u),a.highPerformanceRestore()}}const hH=function(){const n={linearGradient:/^(linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,fromAngleValue:/^from\s*(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/(^\#[0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^(rgb\(\d{1,3},\s*\d{1,3},\s*\d{1,3}\))/i,rgbaColor:/^(rgba\(\d{1,3},\s*\d{1,3},\s*\d{1,3},\s*((\d\.\d+)|\d{1,3})\))/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};let t="";function e(b){const x=new Error(t+": "+b);throw x.source=t,x}function i(){const b=g(s);return t.length>0&&e("Invalid input not EOF"),b}function s(){return r("linear",n.linearGradient,a)||r("radial",n.radialGradient,l)||r("conic",n.conicGradient,o)}function r(b,x,S){return function(A,k){const T=v(A);if(T){v(n.startCall)||e("Missing (");const w=k(T);return v(n.endCall)||e("Missing )"),w}}(x,function(A){const k=S();return k&&(v(n.comma)||e("Missing comma before color stops")),{type:b,orientation:k,colorStops:g(p)}})}function a(){return m("directional",n.sideOrCorner,1)||m("angular",n.angleValue,1)}function o(){return m("angular",n.fromAngleValue,1)}function l(){let b,x,S=h();return S&&(b=[],b.push(S),x=t,v(n.comma)&&(S=h(),S?b.push(S):t=x)),b}function h(){let b=function(){const x=m("shape",/^(circle)/i,0);return x&&(x.style=f()||d()),x}()||function(){const x=m("shape",/^(ellipse)/i,0);return x&&(x.style=_()||d()),x}();if(b)b.at=c();else{const x=d();if(x){b=x;const S=c();S&&(b.at=S)}else{const S=u();S&&(b={type:"default-radial",at:S})}}return b}function d(){return m("extent-keyword",n.extentKeywords,1)}function c(){if(m("position",/^at/,0)){const b=u();return b||e("Missing positioning value"),b}}function u(){const b={x:_(),y:_()};if(b.x||b.y)return{type:"position",value:b}}function g(b){let x=b();const S=[];if(x)for(S.push(x);v(n.comma);)x=b(),x?S.push(x):e("One extra comma");return S}function p(){const b=m("hex",n.hexColor,1)||m("rgba",n.rgbaColor,1)||m("rgb",n.rgbColor,1)||m("literal",n.literalColor,0);return b||e("Expected color definition"),b.length=_(),b}function _(){return m("%",n.percentageValue,1)||m("position-keyword",n.positionKeywords,1)||f()}function f(){return m("px",n.pixelValue,1)||m("em",n.emValue,1)}function m(b,x,S){const A=v(x);if(A)return{type:b,value:A[S]}}function v(b){const x=/^[\n\r\t\s]+/.exec(t);x&&y(x[0].length);const S=b.exec(t);return S&&y(S[0].length),S}function y(b){t=t.substr(b)}return function(b){return t=b.toString(),i()}}();class gl{static IsGradient(t){return!(typeof t=="string"&&!t.includes("gradient"))}static IsGradientStr(t){return typeof t=="string"&&t.includes("gradient")}static Parse(t){if(gl.IsGradientStr(t))try{const e=hH(t)[0];if(e){if(e.type==="linear")return gl.ParseLinear(e);if(e.type==="radial")return gl.ParseRadial(e);if(e.type==="conic")return gl.ParseConic(e)}}catch{return t}return t}static ParseConic(t){const{orientation:e,colorStops:i=[]}=t,s=oe/2,r=parseFloat(e.value)/180*oe-s;return{gradient:"conical",x:.5,y:.5,startAngle:r,endAngle:r+jt,stops:i.map(a=>({color:a.value,offset:parseFloat(a.length.value)/100}))}}static ParseRadial(t){const{colorStops:e=[]}=t;return{gradient:"radial",x0:.5,y0:.5,x1:.5,y1:.5,r0:0,r1:1,stops:e.map(i=>({color:i.value,offset:parseFloat(i.length.value)/100}))}}static ParseLinear(t){const{orientation:e,colorStops:i=[]}=t,s=oe/2;let r=e.type==="angular"?parseFloat(e.value)/180*oe:0;for(;r<0;)r+=jt;for(;r>jt;)r-=jt;let a=0,o=0,l=0,h=0;return r({color:d.value,offset:parseFloat(d.length.value)/100}))}}}function xr(n,t,e){let i=t;const{a:s,b:r,c:a,d:o}=n.currentMatrix,l=Math.sign(s)*Math.sqrt(s*s+r*r),h=Math.sign(o)*Math.sqrt(a*a+o*o);return l+h===0?0:(i=i/Math.abs(l+h)*2*e,i)}function jv(n,t,e,i=0,s=0){if(!t||t===!0)return"black";let r,a;if(U(t))for(let o=0;o{d.addColorStop(c.offset,c.color)}),d}function cH(n,t,e,i,s,r){var a,o,l,h,d,c;const u=n.createRadialGradient(e+((a=t.x0)!==null&&a!==void 0?a:.5)*s,i+((o=t.y0)!==null&&o!==void 0?o:.5)*r,Math.max(s,r)*((l=t.r0)!==null&&l!==void 0?l:0),e+((h=t.x1)!==null&&h!==void 0?h:.5)*s,i+((d=t.y1)!==null&&d!==void 0?d:.5)*r,Math.max(s,r)*((c=t.r1)!==null&&c!==void 0?c:.5));return t.stops.forEach(g=>{u.addColorStop(g.offset,g.color)}),u}function uH(n,t,e,i,s,r){var a,o;const l=n.createConicGradient(e+((a=t.x)!==null&&a!==void 0?a:0)*s,i+((o=t.y)!==null&&o!==void 0?o:0)*r,t.startAngle,t.endAngle);return t.stops.forEach(h=>{l.addColorStop(h.offset,h.color)}),l.GetPattern(s+e,r+i,void 0)}var gH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},pH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},aA=function(n,t){return function(e,i){t(e,i,n)}};class ou{constructor(){this.time=oi.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,g){var p;const{background:_,backgroundOpacity:f=(p=t.attribute.fillOpacity)!==null&&p!==void 0?p:h.backgroundOpacity,opacity:m=h.opacity,backgroundMode:v=h.backgroundMode,backgroundFit:y=h.backgroundFit}=t.attribute;if(_)if(t.backgroundImg&&t.resources){const b=t.resources.get(_);if(b.state!=="success"||!b.data)return;if(e.save(),t.parent&&!t.transMatrix.onlyTranslate()){const S=Mt(t.parent).group,{scrollX:A=S.scrollX,scrollY:k=S.scrollY}=t.parent.attribute;e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.translate(A,k)}e.clip();const x=t.AABBBounds;e.setCommonStyle(t,t.attribute,i,s,h),e.globalAlpha=f*m,this.doDrawImage(e,b.data,x,v,y),e.restore(),t.transMatrix.onlyTranslate()||e.setTransformForCurrent()}else e.highPerformanceSave(),e.setCommonStyle(t,t.attribute,i,s,h),e.globalAlpha=f*m,e.fillStyle=_,e.fill(),e.highPerformanceRestore()}doDrawImage(t,e,i,s,r){if(s==="no-repeat")t.drawImage(e,i.x1,i.y1,i.width(),i.height());else{const a=i.width(),o=i.height();let l=a,h=o;if(r&&s!=="repeat"&&(e.width||e.height)){const u=e.width,g=e.height;s==="repeat-x"?(l=u*(o/g),h=o):s==="repeat-y"&&(h=g*(a/u),l=a);const p=t.dpr,_=ql.allocate({width:l,height:h,dpr:p}),f=_.getContext("2d");f&&(f.inuse=!0,f.clearMatrix(),f.setTransformForCurrent(!0),f.clearRect(0,0,l,h),f.drawImage(e,0,0,l,h),e=_.nativeCanvas),ql.free(_)}const d=t.dpr,c=t.createPattern(e,s);c.setTransform&&c.setTransform(new DOMMatrix([1/d,0,0,1/d,0,0])),t.fillStyle=c,t.translate(i.x1,i.y1),t.fillRect(0,0,a,o),t.translate(-i.x1,-i.y1)}}}const zo=new ou;let Nn=class{constructor(n){this.subRenderContribitions=n,this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c,u){this._subRenderContribitions||(this._subRenderContribitions=this.subRenderContribitions.getContributions()),this._subRenderContribitions.forEach(g=>{g.render(n,t,e,i,s,r,a,o,l,h,d,c,u)})}};Nn=gH([pt(),aA(0,Rt(ii)),aA(0,ci(ex)),pH("design:paramtypes",[Object])],Nn);class sx{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=10}createCommonPattern(t,e,i,s,r){const a=(t-2*e)/2,o=s.dpr,l=ql.allocate({width:t,height:t,dpr:o}),h=l.getContext("2d");if(!h)return null;h.inuse=!0,h.clearMatrix(),h.setTransformForCurrent(!0),h.clearRect(0,0,t,t),r(a,h);const d=s.createPattern(l.nativeCanvas,"repeat");return d.setTransform&&d.setTransform(new DOMMatrix([1/o,0,0,1/o,0,0])),ql.free(l),d}createCirclePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.fillStyle=i,a.arc(r,r,r,0,jt),a.fill()})}createDiamondPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=t/2,l=o;a.fillStyle=i,a.moveTo(o,l-r),a.lineTo(r+o,l),a.lineTo(o,l+r),a.lineTo(o-r,l),a.closePath(),a.fill()})}createRectPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e,l=o;a.fillStyle=i,a.fillRect(o,l,2*r,2*r)})}createVerticalLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(o,0,2*r,t)})}createHorizontalLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(0,o,t,2*r)})}createBiasLRLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.strokeStyle=i,a.lineWidth=r,a.moveTo(0,0),a.lineTo(t,t);const o=t/2,l=-o;a.moveTo(o,l),a.lineTo(o+t,l+t),a.moveTo(-o,-l),a.lineTo(-o+t,-l+t),a.stroke()})}createBiasRLLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.strokeStyle=i,a.lineWidth=r,a.moveTo(t,0),a.lineTo(0,t);const o=t/2,l=o;a.moveTo(t+o,l),a.lineTo(o,l+t),a.moveTo(t-o,-l),a.lineTo(-o,-l+t),a.stroke()})}createGridPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e,l=o;a.fillStyle=i,a.fillRect(o,l,r,r),a.fillRect(o+r,l+r,r,r)})}initTextureMap(t,e){this.textureMap=new Map}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,g){this.textureMap||this.initTextureMap(e,t.stage);const{texture:p=h.texture,textureColor:_=h.textureColor,textureSize:f=h.textureSize,texturePadding:m=h.texturePadding}=t.attribute;p&&this.drawTexture(p,t,e,i,s,h,_,f,m)}drawTexture(t,e,i,s,r,a,o,l,h){let d=this.textureMap.get(t);if(!d)switch(t){case"circle":d=this.createCirclePattern(l,h,o,i);break;case"diamond":d=this.createDiamondPattern(l,h,o,i);break;case"rect":d=this.createRectPattern(l,h,o,i);break;case"vertical-line":d=this.createVerticalLinePattern(l,h,o,i);break;case"horizontal-line":d=this.createHorizontalLinePattern(l,h,o,i);break;case"bias-lr":d=this.createBiasLRLinePattern(l,h,o,i);break;case"bias-rl":d=this.createBiasRLLinePattern(l,h,o,i);break;case"grid":d=this.createGridPattern(l,h,o,i)}d&&(i.highPerformanceSave(),i.setCommonStyle(e,e.attribute,s,r,a),i.fillStyle=d,i.fill(),i.highPerformanceRestore())}}const Ah=new sx;class _H{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:g,innerBorder:p}=t.attribute,_=g&&g.visible!==!1,f=p&&p.visible!==!1;if(!_&&!f)return;const{innerPadding:m=h.innerPadding,outerPadding:v=h.outerPadding,startAngle:y=h.startAngle,endAngle:b=h.endAngle,opacity:x=h.opacity,x:S=h.x,y:A=h.y,scaleX:k=h.scaleX,scaleY:T=h.scaleY,keepStrokeScale:w=h.keepStrokeScale}=t.attribute;let{innerRadius:M=h.innerRadius,outerRadius:R=h.outerRadius}=t.attribute;R+=v,M-=m;const O=(L,E)=>{const B=!(!L||!L.stroke),{distance:I=h[E].distance}=L,F=w?I:xr(e,I,e.dpr),z=I/R,V=E==="outerBorder"?1:-1;if(t.setAttributes({outerRadius:R+V*F,innerRadius:M-V*F,startAngle:y-V*z,endAngle:b+V*z}),e.beginPath(),Cv(t,e,i,s,R+V*F,M-V*F),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,L,h[E]);else if(B){const W=h[E].opacity;h[E].opacity=x,e.setStrokeStyle(t,L,(S-i)/k,(A-s)/T,h[E]),h[E].opacity=W,e.stroke()}};_&&O(g,"outerBorder"),f&&O(p,"innerBorder"),t.setAttributes({outerRadius:R,innerRadius:M,startAngle:y,endAngle:b})}}const fH=new _H,mH=Ah,vH=zo;class yH{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:g,innerBorder:p}=t.attribute,_=g&&g.visible!==!1,f=p&&p.visible!==!1;if(!_&&!f)return;const{radius:m=h.radius,startAngle:v=h.startAngle,endAngle:y=h.endAngle,opacity:b=h.opacity,x=h.x,y:S=h.y,scaleX:A=h.scaleX,scaleY:k=h.scaleY,keepStrokeScale:T=h.keepStrokeScale}=t.attribute,w=(M,R)=>{const O=!(!M||!M.stroke),{distance:L=h[R].distance}=M,E=T?L:xr(e,L,e.dpr),B=R==="outerBorder"?1:-1;if(e.beginPath(),e.arc(i,s,m+B*E,v,y),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,M,h[R]);else if(O){const I=h[R].opacity;h[R].opacity=b,e.setStrokeStyle(t,M,(x-i)/A,(S-s)/k,h[R]),h[R].opacity=I,e.stroke()}};_&&w(g,"outerBorder"),f&&w(p,"innerBorder")}}const bH=new yH,xH=Ah,SH=zo;class AH extends ou{constructor(){super(...arguments),this.time=oi.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{background:g,backgroundMode:p=h.backgroundMode,backgroundFit:_=h.backgroundFit}=t.attribute;if(g)if(t.backgroundImg&&t.resources){const f=t.resources.get(g);if(f.state!=="success"||!f.data)return;e.highPerformanceSave(),e.setTransformFromMatrix(t.parent.globalTransMatrix,!0);const m=t.AABBBounds;this.doDrawImage(e,f.data,m,p,_),e.highPerformanceRestore(),e.setTransformForCurrent()}else e.highPerformanceSave(),e.fillStyle=g,e.fill(),e.highPerformanceRestore()}}const kH=new AH,Zu=oe/2;function Ca(n,t,e,i,s,r,a){let o;if(i<0&&(t+=i,i=-i),s<0&&(e+=s,s=-s),J(r,!0))o=[r=Wt(r),r,r,r];else if(Array.isArray(r)){const S=r;let A,k;switch(S.length){case 0:o=[0,0,0,0];break;case 1:A=Wt(S[0]),o=[A,A,A,A];break;case 2:case 3:A=Wt(S[0]),k=Wt(S[1]),o=[A,k,A,k];break;default:o=S,o[0]=Wt(o[0]),o[1]=Wt(o[1]),o[2]=Wt(o[2]),o[3]=Wt(o[3])}}else o=[0,0,0,0];if(i<0||o[0]+o[1]+o[2]+o[3]<1e-12)return n.rect(t,e,i,s);const[l,h,d,c]=[[t,e],[t+i,e],[t+i,e+s],[t,e+s]],u=Math.min(i/2,s/2),g=[Math.min(u,o[0]),Math.min(u,o[1]),Math.min(u,o[2]),Math.min(u,o[3])],p=[l[0]+g[0],l[1]],_=[l[0],l[1]+g[0]],f=[h[0]-g[1],h[1]],m=[h[0],h[1]+g[1]],v=[d[0]-g[2],d[1]],y=[d[0],d[1]-g[2]],b=[c[0]+g[3],c[1]],x=[c[0],c[1]-g[3]];if(n.moveTo(p[0],p[1]),a&&a[0]?a[0](p[0],p[1],f[0],f[1]):n.lineTo(f[0],f[1]),!Ru(f,m)){a&&a[0]&&n.moveTo(f[0],f[1]);const S=f[0],A=f[1]+g[1];n.arc(S,A,g[1],-Zu,0,!1)}if(a&&a[1]?a[1](m[0],m[1],y[0],y[1]):n.lineTo(y[0],y[1]),!Ru(v,y)){const S=y[0]-g[2],A=y[1];a&&a[1]&&n.moveTo(y[0],y[1]),n.arc(S,A,g[2],0,Zu,!1)}if(a&&a[2]?a[2](v[0],v[1],b[0],b[1]):n.lineTo(b[0],b[1]),!Ru(b,x)){const S=b[0],A=b[1]-g[3];a&&a[2]&&n.moveTo(b[0],b[1]),n.arc(S,A,g[3],Zu,oe,!1)}if(a&&a[3]?a[3](x[0],x[1],_[0],_[1]):n.lineTo(_[0],_[1]),!Ru(p,_)){const S=p[0],A=p[1]+g[0];a&&a[3]&&n.moveTo(_[0],_[1]),n.arc(S,A,g[0],oe,oe+Zu,!1)}return!a&&n.closePath(),n}var aR=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};class oR{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:g,innerBorder:p}=t.attribute,_=g&&g.visible!==!1,f=p&&p.visible!==!1;if(!_&&!f)return;const{cornerRadius:m=h.cornerRadius,opacity:v=h.opacity,x:y=h.x,y:b=h.y,scaleX:x=h.scaleX,scaleY:S=h.scaleY,x1:A,y1:k,keepStrokeScale:T=h.keepStrokeScale}=t.attribute;let{width:w,height:M}=t.attribute;w=(w??A-i)||0,M=(M??k-s)||0;const R=(O,L)=>{const E=!(!O||!O.stroke),B=L==="outerBorder"?-1:1,{distance:I=h[L].distance}=O,F=T?I:xr(e,I,e.dpr),z=i+B*F,V=s+B*F,W=2*F;if(m===0||U(m)&&m.every(at=>at===0)?(e.beginPath(),e.rect(z,V,w-B*W,M-B*W)):(e.beginPath(),Ca(e,z,V,w-B*W,M-B*W,m)),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,O,h[L]);else if(E){const at=h[L].opacity;h[L].opacity=v,e.setStrokeStyle(t,O,(y-i)/x,(b-s)/S,h[L]),h[L].opacity=at,e.stroke()}};_&&R(g,"outerBorder"),f&&R(p,"innerBorder")}}let ip=class{constructor(){this.time=oi.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c,u){const{stroke:g=l.stroke}=n.attribute;Array.isArray(g)&&g.some(p=>p===!1)&&(u.doStroke=!1)}};ip=aR([pt()],ip);let np=class{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c){const{x1:u,y1:g,x:p=l.x,y:_=l.y,stroke:f=l.stroke,cornerRadius:m=l.cornerRadius}=n.attribute;let{width:v,height:y}=n.attribute;if(v=(v??u-p)||0,y=(y??g-_)||0,Array.isArray(f)&&f.some(b=>b===!1)){if(t.setStrokeStyle(n,n.attribute,e,i,l),!(m===0||U(m)&&m.every(b=>b===0))){let b,x=0;return Ca(t,e,i,v,y,m,new Array(4).fill(0).map((S,A)=>(k,T,w,M)=>{f[A]&&(x===A-1&&f[A]===b||(t.setStrokeStyle(n,Object.assign(Object.assign({},n.attribute),{stroke:f[A]}),e,i,l),t.beginPath(),t.moveTo(k,T),b=f[A]),x=A,t.lineTo(w,M),t.stroke(),A===3&&t.beginPath())})),void t.stroke()}if(t.beginPath(),t.moveTo(e,i),f[0]?t.lineTo(e+v,i):t.moveTo(e+v,i),f[1]?t.lineTo(e+v,i+y):t.moveTo(e+v,i+y),f[2]?t.lineTo(e,i+y):t.moveTo(e,i+y),f[3]){const b=f[0]?i-t.lineWidth/2:i;t.lineTo(e,b)}else t.moveTo(e,i);t.stroke()}}};np=aR([pt()],np);const TH=new oR,MH=Ah,wH=zo;class CH extends ou{constructor(){super(...arguments),this.time=oi.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{background:g,backgroundMode:p=h.backgroundMode,backgroundFit:_=h.backgroundFit}=t.attribute;if(g)if(t.backgroundImg){const f=t.resources.get(g);if(f.state!=="success"||!f.data)return;if(e.save(),t.parent&&!t.transMatrix.onlyTranslate()){const v=Mt(t.parent).group,{scrollX:y=v.scrollX,scrollY:b=v.scrollY}=t.parent.attribute;e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.translate(y,b)}const m=t.AABBBounds;this.doDrawImage(e,f.data,m,p,_),e.restore(),t.transMatrix.onlyTranslate()||e.setTransformForCurrent()}else if(yt(g)){const{stroke:f,fill:m,lineWidth:v=1,cornerRadius:y=0,expandX:b=0,expandY:x=0}=g;if(!f&&!m)return;e.beginPath();const{x:S,y:A,width:k,height:T}=PH(t);y?Ca(e,S-b,A-x,k+2*b,T+2*x,y):e.rect(S-b,A-x,k+2*b,T+2*x),e.globalAlpha=1,m&&(e.fillStyle=m,e.fill()),f&&v>0&&(e.lineWidth=v,e.strokeStyle=f,e.stroke())}else{e.beginPath();const f=t.AABBBounds;e.rect(i,s,f.width(),f.height()),e.fillStyle=g,e.globalAlpha=1,e.fill()}}}function PH(n){const t=tp(n.attribute.boundsPadding),e=n.AABBBounds;let i=e.x1,s=e.y1,r=e.width(),a=e.height();return J(t)?(i+=t,s+=t,r-=2*t,a-=2*t):(i+=t[3],s+=t[0],r-=t[1]+t[3],a-=t[0]+t[2]),{x:i,y:s,width:r,height:a}}class EH extends oR{constructor(){super(...arguments),this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){return super.drawShape(t,e,i,s,r,a,o,l,h,d,c,u)}}const RH=new EH,OH=new CH;class BH{constructor(){this.time=oi.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const g=t.getParsedPath();if(!g)return;const{outerBorder:p,innerBorder:_}=t.attribute,f=p&&p.visible!==!1,m=_&&_.visible!==!1;if(!f&&!m)return;const{size:v=h.size,opacity:y=h.opacity,x:b=h.x,y:x=h.y,scaleX:S=h.scaleX,scaleY:A=h.scaleY,keepStrokeScale:k=h.keepStrokeScale}=t.attribute,T=(w,M)=>{const R=!(!w||!w.stroke),{distance:O=h[M].distance}=w,L=k?O:xr(e,O,e.dpr),E=M==="outerBorder"?1:-1;if(e.beginPath(),g.drawOffset(e,v,i,s,E*L)===!1&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,w,h[M]);else if(R){const B=h[M].opacity;h[M].opacity=y,e.setStrokeStyle(t,w,(b-i)/S,(x-s)/A,h[M]),h[M].opacity=B,e.stroke()}};f&&T(p,"outerBorder"),m&&T(_,"innerBorder")}}const LH=new BH,IH=Ah,DH=zo;class FH extends sx{constructor(){super(...arguments),this.time=oi.afterFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,g){var p,_,f,m;this.textureMap||this.initTextureMap(e,t.stage);const{attribute:v=t.attribute}=g||{},{texture:y=(p=t.attribute.texture)!==null&&p!==void 0?p:Ku(h,"texture"),textureColor:b=(_=t.attribute.textureColor)!==null&&_!==void 0?_:Ku(h,"textureColor"),textureSize:x=(f=t.attribute.textureSize)!==null&&f!==void 0?f:Ku(h,"textureSize"),texturePadding:S=(m=t.attribute.texturePadding)!==null&&m!==void 0?m:Ku(h,"texturePadding")}=v;y&&this.drawTexture(y,t,e,i,s,h,b,x,S)}}var zH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},jH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},oA=function(n,t){return function(e,i){t(e,i,n)}};let sp=class extends Ki{constructor(n){super(),this.arcRenderContribitions=n,this.numberType=kf,this.builtinContributions=[fH,vH,mH],this.init(n)}drawArcTailCapPath(n,t,e,i,s,r,a,o){const l=o-a,h=n.getParsedAngle(),d=h.startAngle;let c=h.endAngle;c=o;const u=c>d;let g=!1;if(sKt){const I=_i(b,y),F=_i(x,y),z=Wr(m,v,_,f,s,I,Number(u)),V=Wr(A,k,T,w,s,F,Number(u));if(y0&&t.arc(e+V.cx,i+V.cy,F,ae(V.y11,V.x11),ae(V.y01,V.x01),!u)}}else t.moveTo(e+_,i+f);if(!(r>Kt)||R<.001)t.lineTo(e+T,i+w),g=!0;else if(M>Kt){const I=_i(L,M),F=_i(E,M),z=Wr(T,w,A,k,r,-F,Number(u)),V=Wr(_,f,m,v,r,-I,Number(u));if(t.lineTo(e+z.cx+z.x01,i+z.cy+z.y01),M0&&t.arc(e+z.cx,i+z.cy,F,ae(z.y01,z.x01),ae(z.y11,z.x11),!u);const W=ae(z.cy+z.y11,z.cx+z.x11),at=c-l-.03;t.arc(e,i,r,W,at,u)}}else t.lineTo(e+r*fe(O),i+r*le(O));return g}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n,r==null?void 0:r.theme).arc,{fill:h=l.fill,stroke:d=l.stroke,x:c=l.x,y:u=l.y,fillStrokeOrder:g=l.fillStrokeOrder}=n.attribute,p=this.valid(n,l,a,o);if(!p)return;const{fVisible:_,sVisible:f,doFill:m,doStroke:v}=p,{outerPadding:y=l.outerPadding,innerPadding:b=l.innerPadding,cap:x=l.cap,forceShowCap:S=l.forceShowCap}=n.attribute;let{outerRadius:A=l.outerRadius,innerRadius:k=l.innerRadius}=n.attribute;A+=y,k-=b;let T=0;const w=(Me(x)&&x||x[0])&&h.gradient==="conical";if(w){const{sc:L,startAngle:E,endAngle:B}=n.getParsedAngle();Wt(B-E){m&&(a?a(t,n.attribute,l):_&&(t.setCommonStyle(n,n.attribute,c-e,u-i,l),t.fill()))},E=()=>{v&&R&&(o?o(t,n.attribute,l):f&&(t.setStrokeStyle(n,n.attribute,c-e,u-i,l),t.stroke()))};g?(E(),L()):(L(),E())}if(!R&&v&&(t.beginPath(),Cv(n,t,e,i,A,k,O),M||this.beforeRenderStep(n,t,e,i,m,v,_,f,l,s,a,o),o?o(t,n.attribute,l):f&&(t.setStrokeStyle(n,n.attribute,e,i,l),t.stroke())),(Me(x)&&x||x[1])&&S){const{startAngle:L,endAngle:E}=n.getParsedAngle();if(Wt(E-L)>=jt-Kt){t.beginPath();const B=Math.abs(A-k)/2/A,{endAngle:I=l.endAngle,fill:F=l.fill}=n.attribute,z=I;this.drawArcTailCapPath(n,t,e,i,A,k,z,z+B),M||this.beforeRenderStep(n,t,e,i,m,v,_,f,l,s,a,o);const V=()=>{if(m){const at=F;if(at.gradient==="conical"){const ot=Xj(0,0,I,at);a||mo&&(t.setCommonStyle(n,n.attribute,e,i,l),t.fillStyle=ot,t.fill())}}},W=()=>{v&&(o||f&&(t.setStrokeStyle(n,n.attribute,e,i,l),t.stroke()))};V(),W()}}this.afterRenderStep(n,t,e,i,m,v,_,f,l,s,a,o),w&&(h.startAngle+=T,h.endAngle+=T)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).arc;this._draw(n,s,!1,e,i)}};sp=zH([pt(),oA(0,Rt(ii)),oA(0,ci(Pv)),jH("design:paramtypes",[Object])],sp);var HH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},VH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},lA=function(n,t){return function(e,i){t(e,i,n)}};let rp=class extends Ki{constructor(n){super(),this.circleRenderContribitions=n,this.numberType=Mf,this.builtinContributions=[bH,SH,xH],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n,r==null?void 0:r.theme).circle,{radius:h=l.radius,startAngle:d=l.startAngle,endAngle:c=l.endAngle,x:u=l.x,y:g=l.y,fillStrokeOrder:p=l.fillStrokeOrder}=n.attribute,_=this.valid(n,l,a,o);if(!_)return;const{fVisible:f,sVisible:m,doFill:v,doStroke:y}=_;t.beginPath(),t.arc(e,i,h,d,c),t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,e,i,v,y,f,m,l,s,a,o);const b=()=>{v&&(a?a(t,n.attribute,l):f&&(t.setCommonStyle(n,n.attribute,u-e,g-i,l),t.fill()))},x=()=>{y&&(o?o(t,n.attribute,l):m&&(t.setStrokeStyle(n,n.attribute,u-e,g-i,l),t.stroke()))};p?(x(),b()):(b(),x()),this.afterRenderStep(n,t,e,i,v,y,f,m,l,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).circle;this._draw(n,s,!1,e,i)}};rp=HH([pt(),lA(0,Rt(ii)),lA(0,ci(Rv)),VH("design:paramtypes",[Object])],rp);function ap(n,t,e,i){if(!t.p1)return;const{offsetX:s=0,offsetY:r=0,offsetZ:a=0}=i||{};if(e===1)t.p2&&t.p3?n.bezierCurveTo(s+t.p1.x,r+t.p1.y,s+t.p2.x,r+t.p2.y,s+t.p3.x,r+t.p3.y,a):n.lineTo(s+t.p1.x,r+t.p1.y,a);else if(t.p2&&t.p3){const[o]=pv(t,e);n.bezierCurveTo(s+o.p1.x,r+o.p1.y,s+o.p2.x,r+o.p2.y,s+o.p3.x,r+o.p3.y,a)}else{const o=t.getPointAt(e);n.lineTo(s+o.x,r+o.y,a)}}function hA(n,t,e,i,s,r,a){var o;let l=t.p0,h=i;if(e&&e.originP1===e.originP2&&(l=e.p0),t.defined)i||(n.lineTo(l.x+s,l.y+r,a),h=!i);else{const{originP1:d,originP2:c}=t;let u;if(d&&d.defined!==!1?u=l:d&&c.defined!==!1&&(u=(o=t.p3)!==null&&o!==void 0?o:t.p1),i){h=!i;const g=u?u.x:t.p0.x,p=u?u.y:t.p0.y;n.moveTo(g+s,p+r,a)}else u&&(h=!i,n.lineTo(u.x+s,u.y+r,a))}return h}function Hv(n,t,e,i,s){const{offsetX:r=0,offsetY:a=0,offsetZ:o=0,mode:l="none",drawConnect:h=!1}=s||{};if(h&&l==="none"||!t)return;let d=!0;const{curves:c}=t;if(e>=1){if(h){let m,v=!0;c.forEach((y,b)=>{y.originP1!==y.originP2&&(v=hA(n,y,m,v,r,a,o)),m=y})}else c.forEach(m=>{m.defined?(d&&n.moveTo(m.p0.x+r,m.p0.y+a,o),ap(n,m,1,s),d=!1):d=!0});return}if(e<=0)return;let u;i==="x"?u=_e.ROW:i==="y"?u=_e.COLUMN:i==="auto"&&(u=t.direction);const g=e*t.tryUpdateLength(u);let p=0,_=!0,f=null;for(let m=0,v=c.length;m{o.defined!==!1?n.lineTo(o.x+s,o.y+r):n.moveTo(o.x+s,o.y+r)})}function GH(n,t,e,i){const{offsetX:s=0,offsetY:r=0}=i||{},{points:a}=e,o=[];for(let l=0;l{var d,c,u,g;const p=t&&h===0?t.points[t.points.length-1]:l[0];n.moveTo(p.x+s,p.y+r),l.forEach(_=>{_.defined!==!1?n.lineTo(_.x+s,_.y+r):n.moveTo(_.x+s,_.y+r)});for(let _=l.length-1;_>=0;_--){const f=l[_];n.lineTo((d=f.x1)!==null&&d!==void 0?d:f.x,(c=f.y1)!==null&&c!==void 0?c:f.y)}n.lineTo((u=p.x1)!==null&&u!==void 0?u:p.x,(g=p.y1)!==null&&g!==void 0?g:p.y),n.closePath()})}var NH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let lc=class extends Ki{constructor(){super(...arguments),this.numberType=au}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).line;this._draw(n,s,!1,e,i)}drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,g,p){var _,f,m,v,y;if(!t)return;n.beginPath();const b=(_=this.z)!==null&&_!==void 0?_:0;Hv(n.camera?n:n.nativeContext,t,l,h,{offsetX:d,offsetY:c,offsetZ:b}),u.cache&&!U(u.cache)&&u.cache.curves.every(M=>M.defined)&&u.attribute.curveType&&u.attribute.curveType.includes("Closed")&&n.closePath(),n.setShadowBlendStyle&&n.setShadowBlendStyle(u,a,o);const{x=0,x:S=0}=a;e!==!1&&(g?g(n,a,o):s&&(n.setCommonStyle(u,a,x-d,S-c,o),n.fill())),i!==!1&&(p?p(n,a,o):r&&(n.setStrokeStyle(u,a,x-d,S-c,o),n.stroke()));let{connectedType:A,connectedX:k,connectedY:T,connectedStyle:w}=a;if(U(o)?(A=(f=A??o[0].connectedType)!==null&&f!==void 0?f:o[1].connectedType,k=(m=k??o[0].connectedX)!==null&&m!==void 0?m:o[1].connectedX,T=(v=T??o[0].connectedY)!==null&&v!==void 0?v:o[1].connectedY,w=(y=w??o[0].connectedStyle)!==null&&y!==void 0?y:o[1].connectedStyle):(A=A??o.connectedType,k=k??o.connectedX,T=T??o.connectedY,w=w??o.connectedStyle),A!=="connect"&&A!=="zero"&&(A="none"),A!=="none"){n.beginPath(),Hv(n.camera?n:n.nativeContext,t,l,h,{offsetX:d,offsetY:c,offsetZ:b,drawConnect:!0,mode:A,zeroX:k,zeroY:T});const M=[];U(o)?o.forEach(R=>M.push(R)):M.push(o),M.push(a),e!==!1&&(g?g(n,a,o):s&&(n.setCommonStyle(u,w,x-d,S-c,M),n.fill())),i!==!1&&(p?p(n,a,o):r&&(n.setStrokeStyle(u,w,x-d,S-c,M),n.stroke()))}return!1}drawLinearLineHighPerformance(n,t,e,i,s,r,a,o,l,h,d,c,u){var g;t.beginPath();const p=(g=this.z)!==null&&g!==void 0?g:0,{points:_}=n.attribute,f=_[0];t.moveTo(f.x+a,f.y+o,p);for(let y=1;y<_.length;y++){const b=_[y];t.lineTo(b.x+a,b.y+o,p)}t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l);const{x:m=0,x:v=0}=n.attribute;e!==!1&&(c?c(t,n.attribute,l):s&&(t.setCommonStyle(n,n.attribute,m-a,v-o,l),t.fill())),i!==!1&&(u?u(t,n.attribute,l):r&&(t.setStrokeStyle(n,n.attribute,m-a,v-o,l),t.stroke()))}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n,r==null?void 0:r.theme).line,{fill:h=l.fill,stroke:d=l.stroke,fillOpacity:c=l.fillOpacity,strokeOpacity:u=l.strokeOpacity,segments:g,points:p,closePath:_,curveTension:f=l.curveTension}=n.attribute;if(!this.valid(n,l,a,o))return;let{curveType:m=l.curveType}=n.attribute;_&&m==="linear"&&(m="linearClosed");const{clipRange:v=l.clipRange,clipRangeByDimension:y=l.clipRangeByDimension}=n.attribute;if(v===1&&!g&&!p.some(b=>b.defined===!1)&&m==="linear")return this.drawLinearLineHighPerformance(n,t,!!h,!!d,c,u,e,i,l,s,r,a,o);if(n.shouldUpdateShape()){const{points:b,segments:x}=n.attribute,S=b;if(x&&x.length){let A,k;if(n.cache=x.map((T,w)=>{if(T.points.length<=1&&w===0)return T.points[0]&&(k={endX:T.points[0].x,endY:T.points[0].y,curves:[{defined:T.points[0].defined!==!1}]}),null;w===1?A={x:k.endX,y:k.endY,defined:k.curves[k.curves.length-1].defined}:w>1&&(A.x=k.endX,A.y=k.endY,A.defined=k.curves[k.curves.length-1].defined);const M=qa(T.points,m,{startPoint:A,curveTension:f});return k=M,M}).filter(T=>!!T),m==="linearClosed"){let T;for(let w=0;wx.points.length);if(b[0].points.length===1&&b.shift(),v===1){let x=!1;n.cache.forEach((S,A)=>{x||(x=this.drawSegmentItem(t,S,!!h,!!d,c,u,b[A],[l,n.attribute],v,y,e,i,n,a,o))})}else{const x=n.cache.reduce((T,w)=>T+w.getLength(),0),S=v*x;let A=0,k=!1;n.cache.forEach((T,w)=>{if(k)return;const M=T.getLength(),R=(S-A)/M;A+=M,R>0&&(k=this.drawSegmentItem(t,T,!!h,!!d,c,u,b[w],[l,n.attribute],_i(R,1),y,e,i,n,a,o))})}}else this.drawSegmentItem(t,n.cache,!!h,!!d,c,u,n.attribute,l,v,y,e,i,n,a,o)}};lc=NH([pt()],lc);function UH(n,t,e,i){var s;const{drawConnect:r=!1,mode:a="none"}=i||{};if(r&&a==="none")return;const{top:o,bottom:l}=t;if(o.curves.length!==l.curves.length)return;if(e>=1){const S=[],A=[];let k=!0;if(r){let T,w,M=!0;const R=o.curves.length;o.curves.forEach((O,L)=>{const E=l.curves[R-L-1];let B=O,I=E;if(O.originP1===O.originP2)return T=O,void(w=E);if(T&&T.originP1===T.originP2&&(B=T,I=w),O.defined)M||(S.push(B),A.push(I),Xo(n,S,A,i),S.length=0,A.length=0,M=!M);else{const{originP1:F,originP2:z}=O;let V,W;F&&F.defined!==!1?(V=B,W=I):F&&z.defined!==!1&&(V=O,W=E),M?(M=!M,S.push(V||O),A.push(W||E)):V&&(M=!M,S.push(V||O),A.push(W||E),Xo(n,S,A,i),S.length=0,A.length=0)}T=O}),Xo(n,S,A,i)}else{for(let T=0,w=o.curves.length;Tg?_e.ROW:_e.COLUMN),Number.isFinite(u)||(h=_e.COLUMN),Number.isFinite(g)||(h=_e.ROW);const p=e*(h===_e.ROW?u:g);let _=0,f=!0;const m=[],v=[];let y,b,x=!0;for(let S=0,A=o.curves.length;S{l.defined?(o&&n.moveTo(l.p0.x+s,l.p0.y+r,a),ap(n,l,1,i),o=!1):o=!0}),o=!0;for(let l=e.length-1;l>=0;l--){const h=e[l];h.defined?(o&&n.lineTo(h.p0.x+s,h.p0.y+r,a),ap(n,h,1,i),o=!1):o=!0}n.closePath()}const $H=new FH,YH=zo;var XH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},KH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},dA=function(n,t){return function(e,i){t(e,i,n)}};let hc=class extends Ki{constructor(n){super(),this.areaRenderContribitions=n,this.numberType=ru,this.builtinContributions=[$H,YH],this.init(n)}drawLinearAreaHighPerformance(n,t,e,i,s,r,a,o,l,h,d,c,u){var g,p,_;const{points:f}=n.attribute;if(f.length<2)return;t.beginPath();const m=(g=this.z)!==null&&g!==void 0?g:0,v=f[0];t.moveTo(v.x+a,v.y+o,m);for(let x=1;x=0;x--){const S=f[x];t.lineTo(((p=S.x1)!==null&&p!==void 0?p:S.x)+a,((_=S.y1)!==null&&_!==void 0?_:S.y)+o,m)}t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,a,o,!!s,!1,e,!1,l,h,c,null,{attribute:n.attribute});const{x:y=0,x:b=0}=n.attribute;e!==!1&&(c?c(t,n.attribute,l):s&&(t.setCommonStyle(n,n.attribute,y-a,b-o,l),t.fill())),this.afterRenderStep(n,t,a,o,!!s,!1,e,!1,l,h,c,null,{attribute:n.attribute}),(()=>{var x,S;if(i){const{stroke:A=l&&l.stroke}=n.attribute;if(U(A)&&(A[0]||A[2])&&A[1]===!1){if(t.beginPath(),A[0]){t.moveTo(v.x+a,v.y+o,m);for(let k=1;k=0;T--){const w=f[T];t.lineTo(((x=w.x1)!==null&&x!==void 0?x:w.x)+a,((S=w.y1)!==null&&S!==void 0?S:w.y)+o,m)}}}u?u(t,n.attribute,l):(t.setStrokeStyle(n,n.attribute,y-a,b-o,l),t.stroke())}})()}drawShape(n,t,e,i,s,r,a,o){var l,h,d,c,u,g;const p=Mt(n,r==null?void 0:r.theme).area,{fill:_=p.fill,stroke:f=p.stroke,fillOpacity:m=p.fillOpacity,z:v=p.z,strokeOpacity:y=p.strokeOpacity,curveTension:b=p.curveTension}=n.attribute,x=this.valid(n,p,a,o);if(!x)return;const{doFill:S}=x,A=x.doStroke&&x.sVisible,{clipRange:k=p.clipRange,closePath:T,points:w,segments:M}=n.attribute;let{curveType:R=p.curveType}=n.attribute;if(T&&R==="linear"&&(R="linearClosed"),k===1&&!M&&!w.some(O=>O.defined===!1)&&R==="linear")return this.drawLinearAreaHighPerformance(n,t,!!_,A,m,y,e,i,p,s,r,a,o);if(n.shouldUpdateShape()){if(M&&M.length){let O,L;const E=M.map((F,z)=>{if(F.points.length<=1&&z===0)return F.points[0]&&(L={endX:F.points[0].x,endY:F.points[0].y}),null;z===1?O={x:L.endX,y:L.endY}:z>1&&(O.x=L.endX,O.y=L.endY);const V=qa(F.points,R,{startPoint:O,curveTension:b});return L=V,V}).filter(F=>!!F);let B;const I=[];for(let F=M.length-1;F>=0;F--){const z=M[F].points,V=[];for(let W=z.length-1;W>=0;W--)V.push({x:(l=z[W].x1)!==null&&l!==void 0?l:z[W].x,y:(h=z[W].y1)!==null&&h!==void 0?h:z[W].y});if(F!==0){const W=M[F-1].points,at=W[W.length-1];at&&V.push({x:(d=at.x1)!==null&&d!==void 0?d:at.x,y:(c=at.y1)!==null&&c!==void 0?c:at.y})}V.length>1&&(B=qa(V,R==="stepBefore"?"stepAfter":R==="stepAfter"?"stepBefore":R,{curveTension:b}),I.unshift(B))}n.cacheArea=I.map((F,z)=>({top:E[z],bottom:F}))}else{if(!w||!w.length)return n.cacheArea=null,void n.clearUpdateShapeTag();{const O=w,L=[];for(let I=w.length-1;I>=0;I--)L.push({x:(u=w[I].x1)!==null&&u!==void 0?u:w[I].x,y:(g=w[I].y1)!==null&&g!==void 0?g:w[I].y});const E=qa(O,R,{curveTension:b}),B=qa(L,R==="stepBefore"?"stepAfter":R==="stepAfter"?"stepBefore":R,{curveTension:b});n.cacheArea={top:E,bottom:B}}}n.clearUpdateShapeTag()}if(Array.isArray(n.cacheArea)){const O=n.attribute.segments.filter(L=>L.points.length);if(O[0].points.length===1&&O.shift(),k===1){let L=!1;n.cacheArea.forEach((E,B)=>{L||(L=this.drawSegmentItem(t,E,S,m,A,y,O[B],[p,n.attribute],k,e,i,v,n,s,a,o))})}else{const L=n.cacheArea.reduce((F,z)=>F+z.top.getLength(),0),E=k*L;let B=0,I=!1;n.cacheArea.forEach((F,z)=>{if(I)return;const V=F.top.getLength(),W=(E-B)/V;B+=V,W>0&&(I=this.drawSegmentItem(t,F,S,m,A,y,O[z],[p,n.attribute],_i(W,1),e,i,v,n,s,a,o))})}}else this.drawSegmentItem(t,n.cacheArea,S,m,A,y,n.attribute,p,k,e,i,v,n,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).area;this._draw(n,s,!1,e,i)}drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,g,p,_){let f=!1;return f=f||this._drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,g,!1,p,_),f=f||this._drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,g,!0,p,_),f}_drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,g,p,_,f){var m,v,y,b;if(!(t&&t.top&&t.bottom&&t.top.curves&&t.top.curves.length&&t.bottom.curves&&t.bottom.curves.length))return;let{connectedType:x,connectedX:S,connectedY:A,connectedStyle:k}=a;const T=[];if(p&&(U(o)?(x=(m=x??o[0].connectedType)!==null&&m!==void 0?m:o[1].connectedType,S=(v=S??o[0].connectedX)!==null&&v!==void 0?v:o[1].connectedX,A=(y=A??o[0].connectedY)!==null&&y!==void 0?y:o[1].connectedY,k=(b=k??o[0].connectedStyle)!==null&&b!==void 0?b:o[1].connectedStyle):(x=x??o.connectedType,S=S??o.connectedX,A=A??o.connectedY,k=k??o.connectedStyle),x!=="connect"&&x!=="zero"&&(x="none"),U(o)?o.forEach(z=>T.push(z)):T.push(o),T.push(a)),p&&x==="none")return!1;n.beginPath();const{points:w,segments:M}=u.attribute;let R,O,L=_e.ROW;if(M){const z=M[M.length-1];O=M[0].points[0],R=z.points[z.points.length-1]}else O=w[0],R=w[w.length-1];const E=Wt(R.x-O.x),B=Wt(R.y-O.y);L=R.x1==null?_e.ROW:R.y1==null?_e.COLUMN:Number.isFinite(E+B)?E>B?_e.ROW:_e.COLUMN:_e.ROW,UH(n.camera?n:n.nativeContext,t,l,{offsetX:h,offsetY:d,offsetZ:c,direction:L,drawConnect:p,mode:x,zeroX:S,zeroY:A}),this.beforeRenderStep(u,n,h,d,!!i,!1,e,!1,o,g,_,null,{attribute:a}),n.setShadowBlendStyle&&n.setShadowBlendStyle(u,a,o);const{x:I=0,x:F=0}=a;return e!==!1&&(_?_(n,a,o):i&&(n.setCommonStyle(u,p?k:a,I-h,F-d,p?T:o),n.fill())),this.afterRenderStep(u,n,h,d,!!i,!1,e,!1,o,g,_,null,{attribute:a}),(()=>{if(s!==!1)if(f)f(n,a,o);else{const{stroke:z=o&&o[1]&&o[1].stroke}=a;U(z)&&(z[0]||z[2])&&z[1]===!1&&(n.beginPath(),Hv(n.camera?n:n.nativeContext,z[0]?t.top:t.bottom,l,L===_e.ROW?"x":"y",{offsetX:h,offsetY:d,offsetZ:c,drawConnect:p,mode:x,zeroX:S,zeroY:A})),n.setStrokeStyle(u,p?k:a,I-h,F-d,p?T:o),n.stroke()}})(),!1}};hc=XH([pt(),dA(0,Rt(ii)),dA(0,ci(Ev)),KH("design:paramtypes",[Object])],hc);const qH=Ah,ZH=zo;var JH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},QH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},cA=function(n,t){return function(e,i){t(e,i,n)}};let op=class extends Ki{constructor(n){super(),this.pathRenderContribitions=n,this.numberType=Cf,this.builtinContributions=[ZH,qH],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l,h,d;const c=(l=this.tempTheme)!==null&&l!==void 0?l:Mt(n,r==null?void 0:r.theme).path,{x:u=c.x,y:g=c.y,fillStrokeOrder:p=c.fillStrokeOrder}=n.attribute,_=(h=this.z)!==null&&h!==void 0?h:0,f=this.valid(n,c,a,o);if(!f)return;const{fVisible:m,sVisible:v,doFill:y,doStroke:b}=f;if(t.beginPath(),n.pathShape)ba(n.pathShape.commandList,t,e,i,1,1,_);else{const A=(d=n.attribute.path)!==null&&d!==void 0?d:c.path;ba(A.commandList,t,e,i,1,1,_)}t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,c),this.beforeRenderStep(n,t,e,i,y,b,m,v,c,s,a,o);const x=()=>{b&&(o?o(t,n.attribute,c):v&&(t.setStrokeStyle(n,n.attribute,u-e,g-i,c),t.stroke()))},S=()=>{y&&(a?a(t,n.attribute,c):m&&(t.setCommonStyle(n,n.attribute,u-e,g-i,c),t.fill()))};p?(x(),S()):(S(),x()),this.afterRenderStep(n,t,e,i,y,b,m,v,c,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).path;this.tempTheme=s,this._draw(n,s,!1,e,i),this.tempTheme=null}};op=JH([pt(),cA(0,Rt(ii)),cA(0,ci(Bv)),QH("design:paramtypes",[Object])],op);var tV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},eV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},uA=function(n,t){return function(e,i){t(e,i,n)}};let lp=class extends Ki{constructor(n){super(),this.rectRenderContribitions=n,this.type="rect",this.numberType=Yb,this.builtinContributions=[TH,wH,MH],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l;const h=(l=this.tempTheme)!==null&&l!==void 0?l:Mt(n,r==null?void 0:r.theme).rect,{fill:d=h.fill,background:c,stroke:u=h.stroke,cornerRadius:g=h.cornerRadius,opacity:p=h.opacity,fillOpacity:_=h.fillOpacity,lineWidth:f=h.lineWidth,strokeOpacity:m=h.strokeOpacity,visible:v=h.visible,x1:y,y1:b,x=h.x,y:S=h.y,fillStrokeOrder:A=h.fillStrokeOrder}=n.attribute;let{width:k,height:T}=n.attribute;k=(k??y-x)||0,T=(T??b-S)||0;const w=Jb(p,_,k,T,d),M=tx(p,m,k,T),R=Fo(d,c),O=Sh(u,f);if(!n.valid||!v||!R&&!O||!(w||M||a||o||c))return;g===0||U(g)&&g.every(I=>I===0)?(t.beginPath(),t.rect(e,i,k,T)):(t.beginPath(),Ca(t,e,i,k,T,g));const L={doFill:R,doStroke:O};t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),this.beforeRenderStep(n,t,e,i,R,O,w,M,h,s,a,o,L);const E=()=>{L.doFill&&(a?a(t,n.attribute,h):w&&(t.setCommonStyle(n,n.attribute,x-e,S-i,h),t.fill()))},B=()=>{L.doStroke&&(o?o(t,n.attribute,h):M&&(t.setStrokeStyle(n,n.attribute,x-e,S-i,h),t.stroke()))};A?(B(),E()):(E(),B()),this.afterRenderStep(n,t,e,i,R,O,w,M,h,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).rect;this.tempTheme=s,this._draw(n,s,!1,e,i),this.tempTheme=null}};lp=tV([pt(),uA(0,Rt(ii)),uA(0,ci(id)),eV("design:paramtypes",[Object])],lp);var iV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},nV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},gA=function(n,t){return function(e,i){t(e,i,n)}};let hp=class extends Ki{constructor(n){super(),this.symbolRenderContribitions=n,this.numberType=Ef,this.builtinContributions=[LH,DH,IH],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l;const h=Mt(n,r==null?void 0:r.theme).symbol,{size:d=h.size,x:c=h.x,y:u=h.y,scaleX:g=h.scaleX,scaleY:p=h.scaleY,fillStrokeOrder:_=h.fillStrokeOrder}=n.attribute,f=this.valid(n,h,a,o);if(!f)return;const{fVisible:m,sVisible:v,doFill:y,doStroke:b}=f,x=n.getParsedPath();if(!x)return;const{keepDirIn3d:S=h.keepDirIn3d}=n.attribute,A=(l=this.z)!==null&&l!==void 0?l:0;t.beginPath();const k=(M,R)=>{var O,L,E;if(n._parsedPath.svgCache){const F=Object.assign({},R);F.fill=(O=R.fill)!==null&&O!==void 0?O:n.attribute.fill,F.opacity=(L=R.opacity)!==null&&L!==void 0?L:n.attribute.opacity,F.fillOpacity=n.attribute.fillOpacity,F.stroke=(E=R.stroke)!==null&&E!==void 0?E:n.attribute.stroke,R=F}const B=()=>{R.fill&&(a?a(t,n.attribute,h):(t.setCommonStyle(n,R,c-e,u-i,h),t.fill()))},I=()=>{R.stroke&&(o?o(t,n.attribute,h):(t.setStrokeStyle(n,R,(c-e)/g,(u-i)/p,h),t.stroke()))};_?(I(),B()):(B(),I())};if(S&&t.camera&&t.project){const M=t.project(e,i,A),R=t.camera;t.camera=null,x.draw(t,U(d)?[d[0]*g,d[1]*p]:d*g,M.x,M.y,void 0,k)===!1&&t.closePath(),t.camera=R}else x.draw(t,d,e,i,A,k)===!1&&t.closePath();t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),this.beforeRenderStep(n,t,e,i,y,b,m,v,h,s,a,o);const T=()=>{y&&!x.isSvg&&(a?a(t,n.attribute,h):m&&(t.setCommonStyle(n,n.attribute,c-e,u-i,h),t.fill()))},w=()=>{b&&!x.isSvg&&(o?o(t,n.attribute,h):v&&(t.setStrokeStyle(n,n.attribute,(c-e)/g,(u-i)/p,h),t.stroke()))};_?(w(),T()):(T(),w()),this.afterRenderStep(n,t,e,i,y,b,m,v,h,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).symbol;this._draw(n,s,!1,e,i)}};hp=iV([pt(),gA(0,Rt(ii)),gA(0,ci(Iv)),nV("design:paramtypes",[Object])],hp);class sV{constructor(){this.pools=[];for(let t=0;t<10;t++)this.pools.push(new Oe)}allocate(t,e,i,s){if(!this.pools.length)return new Oe().setValue(t,e,i,s);const r=this.pools.pop();return r.x1=t,r.y1=e,r.x2=i,r.y2=s,r}allocateByObj(t){if(!this.pools.length)return new Oe(t);const e=this.pools.pop();return e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}const dp=new sV;class rV{constructor(){this.store=new Map}RegisterGraphicCreator(t,e){this.store.set(t,e),this[t]=e}CreateGraphic(t,e){const i=this.store.get(t);return i?i(e):null}}const rt=new rV;let Qu,tg;function Of(n){return Qu||(Qu=rt.CreateGraphic("text",{})),Qu.initAttributes(n),Qu.AABBBounds}function aV(n){return tg||(tg=rt.CreateGraphic("richtext",{})),tg.setAttributes(n),tg.AABBBounds}class oV extends ou{constructor(){super(...arguments),this.time=oi.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){var g,p,_,f,m,v,y,b,x,S;const{backgroundMode:A=h.backgroundMode,backgroundFit:k=h.backgroundFit}=t.attribute;let T,{background:w}=t.attribute;if(!w)return;const M=()=>{t.type==="richtext"&&(e.restore(),e.save(),T&&e.setTransformFromMatrix(T,!0,1))};let R;t.type==="richtext"&&(T=e.currentMatrix.clone(),e.restore(),e.save(),e.setTransformForCurrent());const O=yt(w)&&w.background,L=t.transMatrix.onlyTranslate();if(O){const E=t.AABBBounds,B=((g=w.x)!==null&&g!==void 0?g:E.x1)+((p=w.dx)!==null&&p!==void 0?p:0),I=((_=w.y)!==null&&_!==void 0?_:E.y1)+((f=w.dy)!==null&&f!==void 0?f:0),F=(m=w.width)!==null&&m!==void 0?m:E.width(),z=(v=w.height)!==null&&v!==void 0?v:E.height();if(R=dp.allocate(B,I,B+F,I+z),w=w.background,!L){const V=R.width(),W=R.height();R.set(((y=w.x)!==null&&y!==void 0?y:0)+((b=w.dx)!==null&&b!==void 0?b:0),((x=w.y)!==null&&x!==void 0?x:0)+((S=w.dy)!==null&&S!==void 0?S:0),V,W)}}else R=t.AABBBounds,L||(R=Of(Object.assign(Object.assign({},t.attribute),{angle:0,scaleX:1,scaleY:1,x:0,y:0,dx:0,dy:0})).clone());if(t.backgroundImg&&t.resources){const E=t.resources.get(w);if(E.state!=="success"||!E.data)return void M();e.highPerformanceSave(),L&&e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.setCommonStyle(t,t.attribute,i,s,h),this.doDrawImage(e,E.data,R,A,k),e.highPerformanceRestore(),e.setTransformForCurrent()}else{const{backgroundCornerRadius:E}=t.attribute;e.highPerformanceSave(),e.setCommonStyle(t,t.attribute,i,s,h),e.fillStyle=w,E?(Ca(e,R.x1,R.y1,R.width(),R.height(),E),e.fill()):e.fillRect(R.x1,R.y1,R.width(),R.height()),e.highPerformanceRestore()}O&&dp.free(R),M()}}const lR=new oV;var lV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},hV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},pA=function(n,t){return function(e,i){t(e,i,n)}};let Vv=class extends Ki{constructor(n){super(),this.textRenderContribitions=n,this.numberType=Rf,this.builtinContributions=[lR],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l,h,d;const c=Mt(n,r==null?void 0:r.theme).text,{text:u,underline:g=c.underline,lineThrough:p=c.lineThrough,keepDirIn3d:_=c.keepDirIn3d,direction:f=c.direction,fontSize:m=c.fontSize,verticalMode:v=c.verticalMode,x:y=c.x,y:b=c.y}=n.attribute;let{textAlign:x=c.textAlign,textBaseline:S=c.textBaseline}=n.attribute;if(!v&&f==="vertical"){const B=x;x=(l=n.getBaselineMapAlign()[S])!==null&&l!==void 0?l:"left",S=(h=n.getAlignMapBaseline()[B])!==null&&h!==void 0?h:"top"}const A=(d=sr(n.attribute.lineHeight,m))!==null&&d!==void 0?d:m,k=this.valid(n,c,a,o);if(!k)return;const{fVisible:T,sVisible:w,doFill:M,doStroke:R}=k,O=!_,L=this.z||0;t.beginPath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,c),this.beforeRenderStep(n,t,e,i,M,R,T,w,c,s,a,o),O&&this.transformUseContext2d(n,c,L,t);const E=(B,I,F,z)=>{let V=e+I;const W=i+F;if(z){t.highPerformanceSave(),V+=m;const at=vn.allocate(1,0,0,1,0,0);at.rotateByCenter(Math.PI/2,V,W),t.transformFromMatrix(at,!0),vn.free(at)}R&&(o?o(t,n.attribute,c):w&&(t.setStrokeStyle(n,n.attribute,y-e,b-i,c),t.strokeText(B,V,W,L))),M&&(a?a(t,n.attribute,c):T&&(t.setCommonStyle(n,n.attribute,y-e,b-i,c),t.fillText(B,V,W,L),this.drawUnderLine(g,p,n,V,W,L,c,t))),z&&(t.highPerformanceRestore(),t.setTransformForCurrent())};if(n.isMultiLine)if(t.setTextStyleWithoutAlignBaseline(n.attribute,c,L),f==="horizontal"){const{multilineLayout:B}=n;if(!B)return void t.highPerformanceRestore();const{xOffset:I,yOffset:F}=B.bbox;R&&(o?o(t,n.attribute,c):w&&(t.setStrokeStyle(n,n.attribute,y-e,b-i,c),B.lines.forEach(z=>{t.strokeText(z.str,(z.leftOffset||0)+I+e,(z.topOffset||0)+F+i,L)}))),M&&(a?a(t,n.attribute,c):T&&(t.setCommonStyle(n,n.attribute,y-e,b-i,c),B.lines.forEach(z=>{t.fillText(z.str,(z.leftOffset||0)+I+e,(z.topOffset||0)+F+i,L),this.drawUnderLine(g,p,n,(z.leftOffset||0)+I+e,(z.topOffset||0)+F+i-qj("bottom",m)-.05*m,L,c,t,{width:z.width})})))}else{n.tryUpdateAABBBounds();const B=n.cache,{verticalList:I}=B;t.textAlign="left",t.textBaseline="top";const F=A*I.length;let z=0;I.forEach(at=>{const ot=at.reduce((dt,nt)=>dt+(nt.width||0),0);z=Ui(ot,z)});let V=0,W=0;S==="bottom"?W=-F:S==="middle"&&(W=-F/2),x==="center"?V-=z/2:x==="right"&&(V-=z),I.forEach((at,ot)=>{const dt=at.reduce((et,K)=>et+(K.width||0),0),nt=z-dt;let st=V;x==="center"?st+=nt/2:x==="right"&&(st+=nt),at.forEach(et=>{const{text:K,width:ft,direction:Bt}=et;E(K,F-(ot+1)*A+W,st,Bt),st+=ft})})}else if(f==="horizontal"){t.setTextStyle(n.attribute,c,L);const B=n.clipedText;let I=0;A!==m&&(S==="top"?I=(A-m)/2:S==="middle"||S==="bottom"&&(I=-(A-m)/2)),E(B,0,I,0)}else{n.tryUpdateAABBBounds();const B=n.cache;if(B){t.setTextStyleWithoutAlignBaseline(n.attribute,c,L);const{verticalList:I}=B;let F=0;const z=I[0].reduce((W,at)=>W+(at.width||0),0);let V=0;S==="bottom"?V=-A:S==="middle"&&(V=-A/2),x==="center"?F-=z/2:x==="right"&&(F-=z),t.textAlign="left",t.textBaseline="top",I[0].forEach(W=>{const{text:at,width:ot,direction:dt}=W;E(at,V,F,dt),F+=ot})}}O&&this.restoreTransformUseContext2d(n,c,L,t),this.afterRenderStep(n,t,e,i,M,R,T,w,c,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).text,{keepDirIn3d:r=s.keepDirIn3d}=n.attribute,a=!r;this._draw(n,s,a,e,i)}drawUnderLine(n,t,e,i,s,r,a,o,l){if(t+n<=0)return;const{textAlign:h=a.textAlign,textBaseline:d=a.textBaseline,fontSize:c=a.fontSize,fill:u=a.fill,opacity:g=a.opacity,underlineOffset:p=a.underlineOffset,underlineDash:_=a.underlineDash,fillOpacity:f=a.fillOpacity}=e.attribute,m=!P(l),v=m?l.width:e.clipedWidth,y=m?0:Qs(h,v),b=tr(m?"alphabetic":d,c,c),x={lineWidth:0,stroke:u,opacity:g,strokeOpacity:f};let S=m?-3:0;if(n){x.lineWidth=n,o.setStrokeStyle(e,x,i,s,a),_&&o.setLineDash(_),o.beginPath();const A=s+b+c+p+S;o.moveTo(i+y,A,r),o.lineTo(i+y+v,A,r),o.stroke()}if(m&&(S=-1),t){x.lineWidth=t,o.setStrokeStyle(e,x,i,s,a),o.beginPath();const A=s+b+c/2+S;o.moveTo(i+y,A,r),o.lineTo(i+y+v,A,r),o.stroke()}}};Vv=lV([pt(),pA(0,Rt(ii)),pA(0,ci(Dv)),hV("design:paramtypes",[Object])],Vv);function hR(n,t,e,i){n.moveTo(t[0].x+e,t[0].y+i);for(let s=1;sA&&(b=A,y=A*v);const k=l0(c,b,x,g,p),T=l0(c,b,S,_,f),w=2*c.x-k.x-T.x,M=2*c.y-k.y-T.y,R=eg(w,M),O=l0(c,eg(b,y),R,w,M);let L=Math.atan2(k.y-O.y,k.x-O.x);const E=Math.atan2(T.y-O.y,T.x-O.x);let B=E-L;B<0&&(L=E,B=-B),B>Math.PI&&(B-=Math.PI),h===0?n.moveTo(k.x+e,k.y+i):n.lineTo(k.x+e,k.y+i),B&&n.arcTo(c.x+e,c.y+i,T.x+e,T.y+i,y),n.lineTo(T.x+e,T.y+i)}r||n.lineTo(t[l+1].x+e,t[l+1].y+i)}function eg(n,t){return Math.sqrt(n*n+t*t)}function l0(n,t,e,i,s){const r=t/e;return{x:n.x-i*r,y:n.y-s*r}}const cV=Ah,uV=zo;var gV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},pV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},_A=function(n,t){return function(e,i){t(e,i,n)}};let Wv=class extends Ki{constructor(n){super(),this.polygonRenderContribitions=n,this.numberType=Pf,this.builtinContributions=[uV,cV],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n,r==null?void 0:r.theme).polygon,{points:h=l.points,cornerRadius:d=l.cornerRadius,x:c=l.x,y:u=l.y,closePath:g=l.closePath,fillStrokeOrder:p=l.fillStrokeOrder}=n.attribute,_=this.valid(n,l,a,o);if(!_)return;const{fVisible:f,sVisible:m,doFill:v,doStroke:y}=_;t.beginPath(),d<=0||U(d)&&d.every(S=>S===0)?hR(t.camera?t:t.nativeContext,h,e,i):dV(t.camera?t:t.nativeContext,h,e,i,d,g),g&&t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,e,i,v,y,f,m,l,s,a,o);const b=()=>{v&&(a?a(t,n.attribute,l):f&&(t.setCommonStyle(n,n.attribute,c-e,u-i,l),t.fill()))},x=()=>{y&&(o?o(t,n.attribute,l):m&&(t.setStrokeStyle(n,n.attribute,c-e,u-i,l),t.stroke()))};p?(x(),b()):(b(),x()),this.afterRenderStep(n,t,e,i,v,y,f,m,l,s,a,o)}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).polygon;this._draw(n,s,!1,e,i)}};Wv=gV([pt(),_A(0,Rt(ii)),_A(0,ci(Lv)),pV("design:paramtypes",[Object])],Wv);var _V=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},fV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},fA=function(n,t){return function(e,i){t(e,i,n)}};let Gv=class{constructor(n){this.groupRenderContribitions=n,this.numberType=Ub}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n,r==null?void 0:r.theme).group,{fill:h=l.fill,background:d,stroke:c=l.stroke,opacity:u=l.opacity,width:g=l.width,height:p=l.height,clip:_=l.clip,fillOpacity:f=l.fillOpacity,strokeOpacity:m=l.strokeOpacity,cornerRadius:v=l.cornerRadius,path:y=l.path,lineWidth:b=l.lineWidth,visible:x=l.visible,fillStrokeOrder:S=l.fillStrokeOrder,x:A=l.x,y:k=l.y}=n.attribute,T=Jb(u,f,g,p,h),w=tx(u,m,g,p),M=Fo(h,d),R=Sh(c,b);if(!n.valid||!x||!_&&(!M&&!R||!(T||w||a||o||d)))return;if(y&&y.length&&s.drawContribution){const B=t.disableFill,I=t.disableStroke,F=t.disableBeginPath;t.disableFill=!0,t.disableStroke=!0,t.disableBeginPath=!0,y.forEach(z=>{s.drawContribution.getRenderContribution(z).draw(z,s.renderService,s,r)}),t.disableFill=B,t.disableStroke=I,t.disableBeginPath=F}else v===0||U(v)&&v.every(B=>B===0)?(t.beginPath(),t.rect(e,i,g,p)):(t.beginPath(),Ca(t,e,i,g,p,v));this._groupRenderContribitions||(this._groupRenderContribitions=this.groupRenderContribitions.getContributions()||[],this._groupRenderContribitions.push(kH));const O={doFill:M,doStroke:R};this._groupRenderContribitions.forEach(B=>{B.time===oi.beforeFillStroke&&B.drawShape(n,t,e,i,M,R,T,w,l,s,a,o,O)}),_&&t.clip(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l);const L=()=>{O.doFill&&(a?a(t,n.attribute,l):T&&(t.setCommonStyle(n,n.attribute,A-e,k-i,l),t.fill()))},E=()=>{O.doStroke&&(o?o(t,n.attribute,l):w&&(t.setStrokeStyle(n,n.attribute,A-e,k-i,l),t.stroke()))};S?(E(),L()):(L(),E()),this._groupRenderContribitions.forEach(B=>{B.time===oi.afterFillStroke&&B.drawShape(n,t,e,i,M,R,T,w,l,s,a,o)})}draw(n,t,e,i){const{context:s}=e;if(!s)return;const{clip:r,baseOpacity:a=1}=n.attribute;r?s.save():s.highPerformanceSave();const o=s.baseGlobalAlpha;s.baseGlobalAlpha*=a;const l=Mt(n,i==null?void 0:i.theme).group,h=s.modelMatrix;if(s.camera){const g=xe.allocate(),p=xe.allocate();rR(p,n,l),vo(g,h||g,p),s.modelMatrix=g,xe.free(p),s.setTransform(1,0,0,1,0,0,!0)}else s.transformFromMatrix(n.transMatrix,!0);s.beginPath(),i.skipDraw?this.drawShape(n,s,0,0,e,i,()=>!1,()=>!1):this.drawShape(n,s,0,0,e);const{scrollX:d=l.scrollX,scrollY:c=l.scrollY}=n.attribute;let u;(d||c)&&s.translate(d,c),i&&i.drawingCb&&(u=i.drawingCb()),s.modelMatrix!==h&&xe.free(s.modelMatrix),s.modelMatrix=h,s.baseGlobalAlpha=o,u&&u.then?u.then(()=>{r?s.restore():s.highPerformanceRestore()}):r?s.restore():s.highPerformanceRestore()}};Gv=_V([pt(),fA(0,Rt(ii)),fA(0,ci(sR)),fV("design:paramtypes",[Object])],Gv);var mV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},vV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},mA=function(n,t){return function(e,i){t(e,i,n)}};const yV=["","repeat-x","repeat-y","repeat"];let Nv=class extends Ki{constructor(n){super(),this.imageRenderContribitions=n,this.numberType=wf,this.builtinContributions=[RH,OH],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=Mt(n).image,{width:h=l.width,height:d=l.height,repeatX:c=l.repeatX,repeatY:u=l.repeatY,x:g=l.x,y:p=l.y,cornerRadius:_=l.cornerRadius,fillStrokeOrder:f=l.fillStrokeOrder,image:m}=n.attribute,v=this.valid(n,l,a);if(!v)return;const{fVisible:y,sVisible:b,doFill:x,doStroke:S}=v;t.setShadowBlendStyle&&t.setShadowBlendStyle(n,l),this.beforeRenderStep(n,t,e,i,x,!1,y,!1,l,s,a);const A=()=>{if(x){if(a)a(t,n.attribute,l);else if(y){if(!m||!n.resources)return;const T=n.resources.get(m);if(T.state!=="success")return;let w=!1;_===0||U(_)&&_.every(R=>R===0)||(t.beginPath(),Ca(t,e,i,h,d,_),t.save(),t.clip(),w=!0),t.setCommonStyle(n,n.attribute,e,i,l);let M=0;if(c==="repeat"&&(M|=1),u==="repeat"&&(M|=2),M){const R=t.createPattern(T.data,yV[M]);t.fillStyle=R,t.translate(e,i,!0),t.fillRect(0,0,h,d),t.translate(-e,-i,!0)}else t.drawImage(T.data,e,i,h,d);w&&t.restore()}}},k=()=>{S&&(o?o(t,n.attribute,l):b&&(t.setStrokeStyle(n,n.attribute,g-e,p-i,l),t.stroke()))};f?(k(),A()):(A(),k()),this.afterRenderStep(n,t,e,i,x,!1,y,!1,l,s,a)}draw(n,t,e){const{image:i}=n.attribute;if(!i||!n.resources)return;const s=n.resources.get(i);if(s.state==="loading"&&tt(i))return void ge.improveImageLoading(i);if(s.state!=="success")return;const{context:r}=t.drawParams;if(!r)return;const a=Mt(n).image;this._draw(n,a,!1,e)}};Nv=mV([pt(),mA(0,Rt(ii)),mA(0,ci(Ov)),vV("design:paramtypes",[Object])],Nv);const dR=Symbol.for("IncrementalDrawContribution"),cp=Symbol.for("ArcRender"),Uv=Symbol.for("Arc3dRender"),up=Symbol.for("AreaRender"),gp=Symbol.for("CircleRender"),ui=Symbol.for("GraphicRender"),vA=Symbol.for("GroupRender"),pp=Symbol.for("LineRender"),_p=Symbol.for("PathRender"),fp=Symbol.for("PolygonRender"),mp=Symbol.for("RectRender"),$v=Symbol.for("Rect3DRender"),vp=Symbol.for("SymbolRender"),Yv=Symbol.for("TextRender"),Xv=Symbol.for("RichTextRender"),Kv=Symbol.for("Pyramid3dRender"),yp=Symbol.for("GlyphRender"),yA=Symbol.for("ImageRender"),rx=Symbol.for("DrawContribution"),cR=(n,t,e,i)=>{let s,r=!1,a=!1;if(t.forEachChildren(o=>(r=o.numberType===Tf,!r)),t.forEachChildren(o=>(a=!!o.findFace,!a)),r){const o=t.getChildren(),l=[...o];l.sort((h,d)=>{var c,u,g,p;let _=((u=(c=h.attribute.startAngle)!==null&&c!==void 0?c:0+h.attribute.endAngle)!==null&&u!==void 0?u:0)/2,f=((p=(g=d.attribute.startAngle)!==null&&g!==void 0?g:0+d.attribute.endAngle)!==null&&p!==void 0?p:0)/2;for(;_<0;)_+=jt;for(;f<0;)f+=jt;return f-_}),l.forEach(h=>{h._next=null,h._prev=null}),t.removeAllChild(),t.update(),l.forEach(h=>{t.appendChild(h)}),i.hack_pieFace="outside",s=e(r,a),s&&s.graphic||(i.hack_pieFace="inside",s=e(r,a)),s&&s.graphic||(i.hack_pieFace="top",s=e(r,a)),t.removeAllChild(),o.forEach(h=>{h._next=null,h._prev=null}),o.forEach(h=>{t.appendChild(h)})}else if(a){const o=t.getChildren(),l=o.map(h=>({ave_z:h.findFace().vertices.map(d=>{var c;return n.view(d[0],d[1],(c=d[2]+h.attribute.z)!==null&&c!==void 0?c:0)[2]}).reduce((d,c)=>d+c,0),g:h}));l.sort((h,d)=>d.ave_z-h.ave_z),t.removeAllChild(),l.forEach(h=>{h.g._next=null,h.g._prev=null}),t.update(),l.forEach(h=>{t.add(h.g)}),s=e(r,a),t.removeAllChild(),o.forEach(h=>{h._next=null,h._prev=null}),t.update(),o.forEach(h=>{t.add(h)})}else s=e(r,a);return s};var bV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},xV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const bp=Symbol.for("DrawItemInterceptor"),bA=new Oe,xA=new Oe;class SV{constructor(){this.order=1}afterDrawItem(t,e,i,s,r){return t.attribute.shadowRootIdx==null&&t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx<0||(t.attribute.shadowRootIdx>0||!t.attribute.shadowRootIdx||t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx>0)&&this.drawItem(t,e,i,s,r),!1}beforeDrawItem(t,e,i,s,r){return t.attribute.shadowRootIdx==null&&t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx>0||(t.attribute.shadowRootIdx<0||t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx<0)&&this.drawItem(t,e,i,s,r),!1}drawItem(t,e,i,s,r){if(!t.shadowRoot)return!1;const{context:a}=i;if(a.highPerformanceSave(),a.transformFromMatrix(t.transMatrix,!0),s.dirtyBounds&&s.backupDirtyBounds){bA.copy(s.dirtyBounds),xA.copy(s.backupDirtyBounds);const o=t.globalTransMatrix.getInverse();s.dirtyBounds.copy(s.backupDirtyBounds).transformWithMatrix(o),s.backupDirtyBounds.copy(s.dirtyBounds)}return s.renderGroup(t.shadowRoot,i,vn.allocate(1,0,0,1,0,0)),a.highPerformanceRestore(),s.dirtyBounds&&s.backupDirtyBounds&&(s.dirtyBounds.copy(bA),s.backupDirtyBounds.copy(xA)),!0}}class AV{constructor(){this.order=1}afterDrawItem(t,e,i,s,r){return t.attribute._debug_bounds&&this.drawItem(t,e,i,s,r),!1}drawItem(t,e,i,s,r){if(!t.attribute._debug_bounds)return!1;const{context:a}=i;a.highPerformanceSave(),t.parent&&a.setTransformFromMatrix(t.parent.globalTransMatrix,!0),t.glyphHost&&t.glyphHost.parent&&a.setTransformFromMatrix(t.glyphHost.parent.globalTransMatrix,!0);const o=t.AABBBounds;return t.attribute._debug_bounds!==!0&&t.attribute._debug_bounds(a,t),a.strokeRect(o.x1,o.y1,o.width(),o.height()),a.highPerformanceRestore(),!0}}let xp=class{constructor(){this.order=1,this.interceptors=[new SV,new TV,new kV,new AV]}afterDrawItem(n,t,e,i,s){for(let r=0;rs.renderGroup(t,i,t.parent.globalTransMatrix,!c&&u),i):s.renderItem(t,i),a.camera=null,a.restore(),a.modelMatrix!==d&&xe.free(a.modelMatrix),a.modelMatrix=d,i.in3dInterceptor=!1,!0}initCanvasCtx(t){t.setTransformForCurrent()}}var MV=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},wV=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},CV=function(n,t){return function(e,i){t(e,i,n)}};const uR=Symbol.for("RenderService");let qv=class{constructor(n){this.drawContribution=n}prepare(n){n&&this.renderTreeRoots.forEach(t=>{this._prepare(t,n)})}_prepare(n,t){n.forEachChildren(e=>{this._prepare(e,t)}),n.update({bounds:t,trans:!0})}prepareRenderList(){}beforeDraw(n){}draw(n){this.drawContribution.draw(this,Object.assign({},this.drawParams))}afterDraw(n){this.drawContribution.afterDraw&&this.drawContribution.afterDraw(this,Object.assign({},this.drawParams))}render(n,t){this.renderTreeRoots=n,this.drawParams=t;const e=t.updateBounds;this.prepare(e),this.prepareRenderList(),this.beforeDraw(t),this.draw(t),this.afterDraw(t),this.drawParams=null}};qv=MV([pt(),CV(0,Rt(rx)),wV("design:paramtypes",[Object])],qv);const PV=new kt(n=>{n(uR).to(qv)}),Ll=Symbol.for("PickerService"),SA=Symbol.for("GlobalPickerService"),lu=(n,t,e)=>{const{outerBorder:i,shadowBlur:s=t.shadowBlur}=n;if(i){const r=t.outerBorder,{distance:a=r.distance,lineWidth:o=r.lineWidth}=i;e.expand(a+(s+o)/2)}return e},AA=["radius","startAngle","endAngle",...An];class dc extends zi{constructor(t={radius:1}){super(t),this.type="circle",this.numberType=Mf}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:t,endAngle:e,radius:i}=this.attribute;return this._validNumber(t)&&this._validNumber(e)&&this._validNumber(i)}getGraphicTheme(){return Mt(this).circle}updateAABBBounds(t,e,i,s){this.updatePathProxyAABBBounds(i)||(s?this.updateCircleAABBBoundsImprecise(t,e,i):this.updateCircleAABBBoundsAccurate(t,e,i));const{tb1:r,tb2:a}=q.graphicService.updateTempAABBBounds(i);return lu(t,e,r),i.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2),q.graphicService.transformAABBBounds(t,i,e,!1,this),i}updateCircleAABBBoundsImprecise(t,e,i){const{radius:s=e.radius}=t;return i.set(-s,-s,s,s),i}updateCircleAABBBoundsAccurate(t,e,i){const{startAngle:s=e.startAngle,endAngle:r=e.endAngle,radius:a=e.radius}=t;return r-s>jt-Kt?i.set(-a,-a,a,a):Tv(s,r,a,i),i}needUpdateTags(t){return super.needUpdateTags(t,AA)}needUpdateTag(t){return super.needUpdateTag(t,AA)}toCustomPath(){var t,e,i;const s=this.attribute,r=(t=s.radius)!==null&&t!==void 0?t:this.getDefaultAttribute("radius"),a=(e=s.startAngle)!==null&&e!==void 0?e:this.getDefaultAttribute("startAngle"),o=(i=s.endAngle)!==null&&i!==void 0?i:this.getDefaultAttribute("endAngle"),l=new ei;return l.arc(0,0,r,a,o),l}clone(){return new dc(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return dc.NOWORK_ANIMATE_ATTR}}dc.NOWORK_ANIMATE_ATTR=Pi;function EV(n){return new dc(n)}class kA{constructor(t,e,i){this.fontFamily=t,this.textOptions=e,this.textMeasure=i}LayoutBBox(t,e,i){if(e==="left"||e==="start")t.xOffset=0;else if(e==="center")t.xOffset=t.width/-2;else{if(e!=="right"&&e!=="end")throw new Error("非法的textAlign");t.xOffset=-t.width}return t.yOffset=i==="top"?0:i==="middle"?t.height/-2:i==="alphabetic"?-.79*t.height:-t.height,t}GetLayout(t,e,i,s,r,a,o,l,h){const d=[],c=[e,i],u=[0,0];for(;t.length>0;){const{str:p}=this.textMeasure.clipTextWithSuffix(t,this.textOptions,e,o,l,h);d.push({str:p,width:this.textMeasure.measureTextWidth(p,this.textOptions)}),t=t.substring(p.length)}s==="left"||s==="start"||(s==="center"?u[0]=c[0]/-2:s!=="right"&&s!=="end"||(u[0]=-c[0])),r==="top"||(r==="middle"?u[1]=c[1]/-2:r==="bottom"&&(u[1]=-c[1]));const g={xOffset:u[0],yOffset:u[1],width:c[0],height:c[1]};return this.layoutWithBBox(g,d,s,r,a)}GetLayoutByLines(t,e,i,s,r="",a,o,l="end"){t=t.map(u=>u.toString());const h=[],d=[0,0];if(typeof o=="number"&&o!==1/0){let u;for(let g=0,p=t.length;gMath.max(u,g.width),0);const c={xOffset:0,yOffset:0,width:d[0],height:d[1]};return this.LayoutBBox(c,e,i),this.layoutWithBBox(c,h,e,i,s)}layoutWithBBox(t,e,i,s,r){const a=[0,0],o=e.length*r;s==="top"||(s==="middle"?a[1]=(t.height-o)/2:s==="bottom"&&(a[1]=t.height-o));for(let l=0;l{l+=h.str}),(Array.isArray(a)?a.join(""):a)!==l}return s.direction==="vertical"&&this.cache.verticalList&&this.cache.verticalList[0]?this.cache.verticalList[0].map(l=>l.text).join("")!==s.text.toString():this.clipedText!=null&&this.clipedText!==s.text.toString()}get multilineLayout(){if(this.isMultiLine)return this.tryUpdateAABBBounds(),this.cache.layoutData}isSimplify(){return!this.isMultiLine&&this.attribute.direction!=="vertical"}get isMultiLine(){return Array.isArray(this.attribute.text)||this.attribute.whiteSpace==="normal"}constructor(t={text:"",fontSize:16}){super(t),this.type="text",this.numberType=Rf,this.cache={}}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{text:t}=this.attribute;return U(t)?!t.every(e=>e==null||e===""):t!=null&&t!==""}getGraphicTheme(){return Mt(this).text}doUpdateOBBBounds(){const t=this.getGraphicTheme();this._OBBBounds.clear();const e=this.attribute,{angle:i=t.angle}=e;if(!i){const h=this.AABBBounds;return this._OBBBounds.setValue(h.x1,h.y1,h.x2,h.y2),this._OBBBounds}this.obbText||(this.obbText=new ys({})),this.obbText.setAttributes(Object.assign(Object.assign({},e),{angle:0}));const s=this.obbText.AABBBounds,{x:r,y:a}=e,o={x:(s.x1+s.x2)/2,y:(s.y1+s.y2)/2},l=hl(o,i,{x:r,y:a});return this._OBBBounds.copy(s),this._OBBBounds.translate(l.x-o.x,l.y-o.y),this._OBBBounds.angle=i,this._OBBBounds}updateAABBBounds(t,e,i){const{text:s=e.text}=this.attribute;Array.isArray(s)?this.updateMultilineAABBBounds(s):this.updateSingallineAABBBounds(s);const{tb1:r}=q.graphicService.updateTempAABBBounds(i),{scaleX:a=e.scaleX,scaleY:o=e.scaleY,shadowBlur:l=e.shadowBlur,strokeBoundsBuffer:h=e.strokeBoundsBuffer}=t;if(l){const d=l/Math.abs(a+o);ep(r,d,!0,h),i.union(r)}return q.graphicService.combindShadowAABBBounds(i,this),t.forceBoundsHeight==null&&t.forceBoundsWidth==null||q.graphicService.updateHTMLTextAABBBounds(t,e,i),kb(i,i,this.transMatrix),i}updateWrapAABBBounds(t){var e,i,s,r;const a=this.getGraphicTheme(),{fontFamily:o=a.fontFamily,textAlign:l=a.textAlign,textBaseline:h=a.textBaseline,fontSize:d=a.fontSize,ellipsis:c=a.ellipsis,maxLineWidth:u,stroke:g=a.stroke,lineWidth:p=a.lineWidth,wordBreak:_=a.wordBreak,fontWeight:f=a.fontWeight,ignoreBuf:m=a.ignoreBuf,suffixPosition:v=a.suffixPosition,heightLimit:y=0,lineClamp:b}=this.attribute,x=(e=sr(this.attribute.lineHeight,this.attribute.fontSize||a.fontSize))!==null&&e!==void 0?e:this.attribute.fontSize||a.fontSize,S=m?0:2;if(!this.shouldUpdateShape()&&(!((i=this.cache)===null||i===void 0)&&i.layoutData)){const E=this.cache.layoutData.bbox;return this._AABBBounds.set(E.xOffset,E.yOffset,E.xOffset+E.width,E.yOffset+E.height),g&&this._AABBBounds.expand(p/2),this._AABBBounds}const A=q.graphicUtil.textMeasure,k=new kA(o,{fontSize:d,fontWeight:f,fontFamily:o},A),T=U(t)?t.map(E=>E.toString()):[t.toString()],w=[],M=[0,0];let R=1/0;if(y>0&&(R=Math.max(Math.floor(y/x),1)),b&&(R=Math.min(R,b)),typeof u=="number"&&u!==1/0){if(u>0)for(let B=0;B{E=Math.max(E,B.width)}),M[0]=E}else{let E,B,I=0;for(let F=0,z=T.length;F{const M=w.direction===no.HORIZONTAL?g:a.measureTextWidth(w.text,{fontSize:g,fontWeight:p,fontFamily:_});o+=M,w.width=M}),this.cache.verticalList=A,this.cache.clipedWidth=o;this.clearUpdateShapeTag();const k=Qs(x,o),T=tr(S,b,g);return this._AABBBounds.set(T,k,T+b,k+o),f&&this._AABBBounds.expand(m/2),this._AABBBounds}updateHorizontalMultilineAABBBounds(t){var e,i;const s=this.getGraphicTheme(),{wrap:r=s.wrap}=this.attribute;if(r)return this.updateWrapAABBBounds(t);const a=this.attribute,{fontFamily:o=s.fontFamily,textAlign:l=s.textAlign,textBaseline:h=s.textBaseline,fontSize:d=s.fontSize,fontWeight:c=s.fontWeight,ellipsis:u=s.ellipsis,maxLineWidth:g,stroke:p=s.stroke,lineWidth:_=s.lineWidth,whiteSpace:f=s.whiteSpace,suffixPosition:m=s.suffixPosition}=a,v=(e=sr(a.lineHeight,a.fontSize||s.fontSize))!==null&&e!==void 0?e:a.fontSize||s.fontSize;if(f==="normal")return this.updateWrapAABBBounds(t);if(!this.shouldUpdateShape()&&(!((i=this.cache)===null||i===void 0)&&i.layoutData)){const S=this.cache.layoutData.bbox;return this._AABBBounds.set(S.xOffset,S.yOffset,S.xOffset+S.width,S.yOffset+S.height),p&&this._AABBBounds.expand(_/2),this._AABBBounds}const y=q.graphicUtil.textMeasure,b=new kA(o,{fontSize:d,fontWeight:c,fontFamily:o},y).GetLayoutByLines(t,l,h,v,u===!0?s.ellipsis:u||void 0,!1,g,m),{bbox:x}=b;return this.cache.layoutData=b,this.clearUpdateShapeTag(),this._AABBBounds.set(x.xOffset,x.yOffset,x.xOffset+x.width,x.yOffset+x.height),p&&this._AABBBounds.expand(_/2),this._AABBBounds}updateVerticalMultilineAABBBounds(t){var e,i,s;const r=this.getGraphicTheme(),a=q.graphicUtil.textMeasure;let o;const l=this.attribute,{ignoreBuf:h=r.ignoreBuf}=l,d=h?0:2,{maxLineWidth:c=r.maxLineWidth,ellipsis:u=r.ellipsis,fontFamily:g=r.fontFamily,fontSize:p=r.fontSize,fontWeight:_=r.fontWeight,stroke:f=r.stroke,lineWidth:m=r.lineWidth,verticalMode:v=r.verticalMode,suffixPosition:y=r.suffixPosition}=l,b=(e=sr(l.lineHeight,l.fontSize||r.fontSize))!==null&&e!==void 0?e:(l.fontSize||r.fontSize)+d;let{textAlign:x=r.textAlign,textBaseline:S=r.textBaseline}=l;if(!v){const M=x;x=(i=ys.baselineMapAlign[S])!==null&&i!==void 0?i:"left",S=(s=ys.alignMapBaseline[M])!==null&&s!==void 0?s:"top"}if(o=0,!this.shouldUpdateShape()&&this.cache){this.cache.verticalList.forEach(L=>{const E=L.reduce((B,I)=>B+I.width,0);o=Ui(E,o)});const M=Qs(x,o),R=this.cache.verticalList.length*b,O=tr(S,R,p);return this._AABBBounds.set(O,M,O+R,M+o),f&&this._AABBBounds.expand(m/2),this._AABBBounds}const A=t.map(M=>nA(M.toString()));A.forEach((M,R)=>{if(Number.isFinite(c))if(u){const O=u===!0?r.ellipsis:u,L=a.clipTextWithSuffixVertical(M,{fontSize:p,fontWeight:_,fontFamily:g},c,O,!1,y);A[R]=L.verticalList,o=L.width}else{const O=a.clipTextVertical(M,{fontSize:p,fontWeight:_,fontFamily:g},c,!1);A[R]=O.verticalList,o=O.width}else o=0,M.forEach(O=>{const L=O.direction===no.HORIZONTAL?p:a.measureTextWidth(O.text,{fontSize:p,fontWeight:_,fontFamily:g});o+=L,O.width=L})}),this.cache.verticalList=A,this.clearUpdateShapeTag(),this.cache.verticalList.forEach(M=>{const R=M.reduce((O,L)=>O+L.width,0);o=Ui(R,o)});const k=Qs(x,o),T=this.cache.verticalList.length*b,w=tr(S,T,p);return this._AABBBounds.set(w,k,w+T,k+o),f&&this._AABBBounds.expand(m/2),this._AABBBounds}needUpdateTags(t,e=TA){return super.needUpdateTags(t,e)}needUpdateTag(t,e=TA){return super.needUpdateTag(t,e)}clone(){return new ys(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return ys.NOWORK_ANIMATE_ATTR}};Sg.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,direction:1,textAlign:1,textBaseline:1,fontFamily:1,fontWeight:1},Pi),Sg.baselineMapAlign={top:"left",bottom:"right",middle:"center"},Sg.alignMapBaseline={left:"top",right:"bottom",center:"middle"};function Zl(n){return new Sg(n)}class Qe{bounds(t,e){if(J(t)){const i=t/2;e.x1=-i,e.x2=i,e.y1=-i,e.y2=i}else e.x1=-t[0]/2,e.x2=t[0]/2,e.y1=-t[1]/2,e.y2=t[1]/2}}function MA(n,t,e,i,s){return s?n.arc(e,i,t,0,ki,!1,s):n.arc(e,i,t,0,ki),!1}class RV extends Qe{constructor(){super(...arguments),this.type="circle",this.pathStr="M0.5,0A0.5,0.5,0,1,1,-0.5,0A0.5,0.5,0,1,1,0.5,0"}draw(t,e,i,s,r){return MA(t,e/2,i,s,r)}drawOffset(t,e,i,s,r,a){return MA(t,e/2+r,i,s,a)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i} a ${r},${r} 0 1,0 ${2*r},0 a ${r},${r} 0 1,0 -${2*r},0`}}const OV=new RV;function BV(n,t,e,i,s){return n.moveTo(-3*t+e,-t+i,s),n.lineTo(-t+e,-t+i,s),n.lineTo(-t+e,-3*t+i,s),n.lineTo(t+e,-3*t+i,s),n.lineTo(t+e,-t+i,s),n.lineTo(3*t+e,-t+i,s),n.lineTo(3*t+e,t+i,s),n.lineTo(t+e,t+i,s),n.lineTo(t+e,3*t+i,s),n.lineTo(-t+e,3*t+i,s),n.lineTo(-t+e,t+i,s),n.lineTo(-3*t+e,t+i,s),n.closePath(),!0}function LV(n,t,e,i,s,r){return n.moveTo(-3*t+e-s,-t+i-s,r),n.lineTo(-t+e-s,-t+i-s,r),n.lineTo(-t+e-s,-3*t+i-s,r),n.lineTo(t+e+s,-3*t+i-s,r),n.lineTo(t+e+s,-t+i-s,r),n.lineTo(3*t+e+s,-t+i-s,r),n.lineTo(3*t+e+s,t+i+s,r),n.lineTo(t+e+s,t+i+s,r),n.lineTo(t+e+s,3*t+i+s,r),n.lineTo(-t+e-s,3*t+i+s,r),n.lineTo(-t+e-s,t+i+s,r),n.lineTo(-3*t+e-s,t+i+s,r),n.closePath(),!0}class IV extends Qe{constructor(){super(...arguments),this.type="cross",this.pathStr="M-0.5,-0.2L-0.5,0.2L-0.2,0.2L-0.2,0.5L0.2,0.5L0.2,0.2L0.5,0.2L0.5,-0.2L0.2,-0.2L0.2,-0.5L-0.2,-0.5L-0.2,-0.2Z"}draw(t,e,i,s,r){return BV(t,e/6,i,s,r)}drawOffset(t,e,i,s,r,a){return LV(t,e/6,i,s,r,a)}}const DV=new IV;function h0(n,t,e,i,s){return n.moveTo(e,i-t,s),n.lineTo(t+e,i,s),n.lineTo(e,i+t,s),n.lineTo(e-t,i,s),n.closePath(),!0}class FV extends Qe{constructor(){super(...arguments),this.type="diamond",this.pathStr="M-0.5,0L0,-0.5L0.5,0L0,0.5Z"}draw(t,e,i,s,r){return h0(t,e/2,i,s,r)}drawFitDir(t,e,i,s,r){return h0(t,e/2,i,s,r)}drawOffset(t,e,i,s,r,a){return h0(t,e/2+r,i,s,a)}}const zV=new FV;function wA(n,t,e,i){const s=2*t;return n.rect(e-t,i-t,s,s),!1}class jV extends Qe{constructor(){super(...arguments),this.type="square",this.pathStr="M-0.5,-0.5h1v1h-1Z"}draw(t,e,i,s){return wA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return wA(t,e/2+r,i,s)}}const HV=new jV;function CA(n,t,e,i,s=0){return n.moveTo(e+t+2*s,t+i+s),n.lineTo(e-t-2*s,t+i+s),n.lineTo(e,i-t-2*s),n.closePath(),!0}class gR extends Qe{constructor(){super(...arguments),this.type="triangleUp",this.pathStr="M0.5,0.5 L-0.5,0.5 L0,-0.5 Z"}draw(t,e,i,s){return CA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return CA(t,e/2,i,s,r)}}const VV=new gR;class WV extends gR{constructor(){super(...arguments),this.type="triangle"}}const GV=new WV,pR=Math.sin(Math.PI/10)/Math.sin(7*Math.PI/10),NV=Math.sin(ki/10)*pR,UV=-Math.cos(ki/10)*pR;function PA(n,t,e,i){const s=NV*t,r=UV*t;n.moveTo(e,-t+i),n.lineTo(s+e,r+i);for(let a=1;a<5;++a){const o=ki*a/5,l=Math.cos(o),h=Math.sin(o);n.lineTo(h*t+e,-l*t+i),n.lineTo(l*s-h*r+e,h*s+l*r+i)}return n.closePath(),!0}class $V extends Qe{constructor(){super(...arguments),this.type="star",this.pathStr="M0 -1L0.22451398828979266 -0.3090169943749474L0.9510565162951535 -0.30901699437494745L0.3632712640026804 0.1180339887498948L0.5877852522924732 0.8090169943749473L8.326672684688674e-17 0.3819660112501051L-0.587785252292473 0.8090169943749476L-0.3632712640026804 0.11803398874989487L-0.9510565162951536 -0.30901699437494723L-0.22451398828979274 -0.30901699437494734Z"}draw(t,e,i,s){return PA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return PA(t,e/2+r,i,s)}}const YV=new $V,XV=Wn(3);function EA(n,t,e,i){const s=t,r=s/XV,a=r/5,o=t;return n.moveTo(0+e,-s+i),n.lineTo(r/2+e,i),n.lineTo(a/2+e,i),n.lineTo(a/2+e,o+i),n.lineTo(-a/2+e,o+i),n.lineTo(-a/2+e,i),n.lineTo(-r/2+e,i),n.closePath(),!0}class KV extends Qe{constructor(){super(...arguments),this.type="arrow",this.pathStr="M-0.07142857142857142,0.5L0.07142857142857142,0.5L0.07142857142857142,-0.0625L0.2,-0.0625L0,-0.5L-0.2,-0.0625L-0.07142857142857142,-0.0625Z"}draw(t,e,i,s){return EA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return EA(t,e/2+r,i,s)}}const qV=new KV;function RA(n,t,e,i){const s=2*t;return n.moveTo(e,-t+i),n.lineTo(s/3/2+e,t+i),n.lineTo(-s/3/2+e,t+i),n.closePath(),!0}class ZV extends Qe{constructor(){super(...arguments),this.type="wedge",this.pathStr="M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z"}draw(t,e,i,s){return RA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return RA(t,e/2+r,i,s)}}const JV=new ZV;function OA(n,t,e,i){return n.moveTo(-t+e,i),n.lineTo(e,t+i),!1}class QV extends Qe{constructor(){super(...arguments),this.type="stroke",this.pathStr=""}draw(t,e,i,s){return OA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return OA(t,e/2+r,i,s)}}const tW=new QV,Cn=-.5,Pn=Wn(3)/2,BA=1/Wn(12);function LA(n,t,e,i){const s=t/2,r=t*BA,a=s,o=t*BA+t,l=-a,h=o;return n.moveTo(s+e,r+i),n.lineTo(a+e,o+i),n.lineTo(l+e,h+i),n.lineTo(Cn*s-Pn*r+e,Pn*s+Cn*r+i),n.lineTo(Cn*a-Pn*o+e,Pn*a+Cn*o+i),n.lineTo(Cn*l-Pn*h+e,Pn*l+Cn*h+i),n.lineTo(Cn*s+Pn*r+e,Cn*r-Pn*s+i),n.lineTo(Cn*a+Pn*o+e,Cn*o-Pn*a+i),n.lineTo(Cn*l+Pn*h+e,Cn*h-Pn*l+i),n.closePath(),!1}class eW extends Qe{constructor(){super(...arguments),this.type="wye",this.pathStr="M0.25 0.14433756729740646L0.25 0.6443375672974064L-0.25 0.6443375672974064L-0.25 0.14433756729740643L-0.6830127018922193 -0.10566243270259357L-0.4330127018922193 -0.5386751345948129L0 -0.28867513459481287L0.4330127018922193 -0.5386751345948129L0.6830127018922193 -0.10566243270259357Z"}draw(t,e,i,s){return LA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return LA(t,e/2+r,i,s)}}const iW=new eW;function IA(n,t,e,i,s){return n.moveTo(-t+e-2*s,i),n.lineTo(t+e+s,t+i+2*s),n.lineTo(t+e+s,i-t-2*s),n.closePath(),!0}class nW extends Qe{constructor(){super(...arguments),this.type="triangleLeft",this.pathStr="M-0.5,0 L0.5,0.5 L0.5,-0.5 Z"}draw(t,e,i,s){return IA(t,e/2,i,s,0)}drawOffset(t,e,i,s,r){return IA(t,e/2,i,s,r)}}const sW=new nW;function DA(n,t,e,i,s=0){return n.moveTo(e-t-s,t+i+2*s),n.lineTo(t+e+2*s,i),n.lineTo(e-t-s,i-t-2*s),n.closePath(),!0}class rW extends Qe{constructor(){super(...arguments),this.type="triangleRight",this.pathStr="M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z"}draw(t,e,i,s){return DA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return DA(t,e/2,i,s,r)}}const aW=new rW;function FA(n,t,e,i,s=0){return n.moveTo(e-t-2*s,i-t-s),n.lineTo(e+t+2*s,i-t-s),n.lineTo(e,i+t+2*s),n.closePath(),!0}class oW extends Qe{constructor(){super(...arguments),this.type="triangleDown",this.pathStr="M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z"}draw(t,e,i,s){return FA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return FA(t,e/2,i,s,r)}}const lW=new oW,Zv=Wn(3);function zA(n,t,e,i){const s=t*Zv;return n.moveTo(e,i+-s/3*2),n.lineTo(t+e,i+s),n.lineTo(e-t,i+s),n.closePath(),!0}class hW extends Qe{constructor(){super(...arguments),this.type="thinTriangle",this.pathStr="M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z"}draw(t,e,i,s){return zA(t,e/2/Zv,i,s)}drawOffset(t,e,i,s,r){return zA(t,e/2/Zv+r,i,s)}}const dW=new hW;function jA(n,t,e,i){const s=2*t;return n.moveTo(t+e,i-s),n.lineTo(e-t,i),n.lineTo(t+e,s+i),!0}class cW extends Qe{constructor(){super(...arguments),this.type="arrow2Left",this.pathStr="M 0.25 -0.5 L -0.25 0 l 0.25 0.5"}draw(t,e,i,s){return jA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return jA(t,e/4+r,i,s)}}const uW=new cW;function HA(n,t,e,i){const s=2*t;return n.moveTo(e-t,i-s),n.lineTo(e+t,i),n.lineTo(e-t,s+i),!0}class gW extends Qe{constructor(){super(...arguments),this.type="arrow2Right",this.pathStr="M -0.25 -0.5 l 0.25 0 l -0.25 0.5"}draw(t,e,i,s){return HA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return HA(t,e/4+r,i,s)}}const pW=new gW;function VA(n,t,e,i){const s=2*t;return n.moveTo(e-s,i+t),n.lineTo(e,i-t),n.lineTo(e+s,i+t),!0}class _W extends Qe{constructor(){super(...arguments),this.type="arrow2Up",this.pathStr="M -0.5 0.25 L 0 -0.25 l 0.5 0.25"}draw(t,e,i,s){return VA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return VA(t,e/4+r,i,s)}}const fW=new _W;function WA(n,t,e,i){const s=2*t;return n.moveTo(e-s,i-t),n.lineTo(e,i+t),n.lineTo(e+s,i-t),!0}class mW extends Qe{constructor(){super(...arguments),this.type="arrow2Down",this.pathStr="M -0.5 -0.25 L 0 0.25 l 0.5 -0.25"}draw(t,e,i,s){return WA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return WA(t,e/4+r,i,s)}}const vW=new mW;function GA(n,t,e,i,s){return n.moveTo(e,i-t),n.lineTo(e,i+t),!0}class yW extends Qe{constructor(){super(...arguments),this.type="lineV",this.pathStr="M0,-0.5L0,0.5"}draw(t,e,i,s,r){return GA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return GA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e}, ${i-r} L ${e},${i+r}`}}const bW=new yW;function NA(n,t,e,i,s){return n.moveTo(e-t,i),n.lineTo(e+t,i),!0}class xW extends Qe{constructor(){super(...arguments),this.type="lineH",this.pathStr="M-0.5,0L0.5,0"}draw(t,e,i,s,r){return NA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return NA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i} L ${e+r},${i}`}}const SW=new xW;function UA(n,t,e,i,s){return n.moveTo(e-t,i-t),n.lineTo(e+t,i+t),n.moveTo(e+t,i-t),n.lineTo(e-t,i+t),!0}class AW extends Qe{constructor(){super(...arguments),this.type="close",this.pathStr="M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5"}draw(t,e,i,s,r){return UA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return UA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i-r} L ${e+r},${i+r} M ${e+r}, ${i-r} L ${e-r},${i+r}`}}const kW=new AW;function $A(n,t,e,i){return n.rect(e-t[0]/2,i-t[1]/2,t[0],t[1]),!1}function YA(n,t,e,i){const s=t,r=t/2;return n.rect(e-s/2,i-r/2,s,r),!1}class TW extends Qe{constructor(){super(...arguments),this.type="rect",this.pathStr="M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z"}draw(t,e,i,s){return J(e)?YA(t,e,i,s):$A(t,e,i,s)}drawOffset(t,e,i,s,r){return J(e)?YA(t,e+2*r,i,s):$A(t,[e[0]+2*r,e[1]+2*r],i,s)}}const MW=new TW,Fh=new Oe;class XA{constructor(t,e,i=!1){this.pathStr="",this.type=t,U(e)?this.svgCache=e:this.path=e,this.isSvg=i}drawOffset(t,e,i,s,r,a,o){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach(l=>{t.beginPath(),ba(l.path.commandList,t,i,s,e,e),o&&o(l.path,l.attribute)}),!1):(ba(this.path.commandList,t,i,s,e+r,e+r),!1)}draw(t,e,i,s,r,a){return this.drawOffset(t,e,i,s,0,r,a)}bounds(t,e){if(this.isSvg)return this.svgCache?(e.clear(),void this.svgCache.forEach(({path:i})=>{Fh.x1=i.bounds.x1*t,Fh.y1=i.bounds.y1*t,Fh.x2=i.bounds.x2*t,Fh.y2=i.bounds.y2*t,e.union(Fh)})):void 0;this.path.bounds&&(e.x1=this.path.bounds.x1*t,e.y1=this.path.bounds.y1*t,e.x2=this.path.bounds.x2*t,e.y2=this.path.bounds.y2*t)}}const wW=[OV,DV,zV,HV,dW,GV,YV,qV,JV,tW,iW,sW,aW,VV,lW,uW,pW,fW,vW,MW,bW,SW,kW],Sp={};wW.forEach(n=>{Sp[n.type]=n});const CW={arrowLeft:"M 0.25 -0.5 L -0.25 0 l 0.5 0.5",arrowRight:"M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5",rectRound:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",roundLine:"M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z"},PW=(n,t,e)=>{const{outerBorder:i,shadowBlur:s=t.shadowBlur,strokeBoundsBuffer:r=t.strokeBoundsBuffer}=n;if(i){const a=t.outerBorder,{distance:o=a.distance,lineWidth:l=a.lineWidth}=i;ep(e,o+(s+l)/2,!0,r)}return e},ig=new Oe,KA=["symbolType","size",...An];let cc=class il extends zi{constructor(t={symbolType:"circle"}){super(t),this.type="symbol",this.numberType=Ef}getParsedPath(){return this.shouldUpdateShape()&&(this.doUpdateParsedPath(),this.clearUpdateShapeTag()),this._parsedPath}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{size:t}=this.attribute;return U(t)?t.length===2&&t.every(this._validNumber):this._validNumber(t)}doUpdateParsedPath(){const t=this.getGraphicTheme();let{symbolType:e=t.symbolType}=this.attribute,i=Sp[e];if(i)return this._parsedPath=i,i;if(i=il.userSymbolMap[e],i)return this._parsedPath=i,i;if(e=CW[e]||e,Rj(e)===!0){const l=new Af,{svg:h}=l.parse(e);if(!h)return null;const d=U(h.path)?h.path:[h.path];ig.clear();const c=[];d.forEach(_=>{const f=new ei().fromString(_.d),m={};jj.forEach(v=>{_[v]&&(m[QE[v]]=_[v])}),c.push({path:f,attribute:m}),ig.union(f.bounds)});const u=ig.width(),g=ig.height(),p=1/Ui(u,g);return c.forEach(_=>_.path.transform(0,0,p,p)),this._parsedPath=new XA(e,c,!0),il.userSymbolMap[e]=this._parsedPath,this._parsedPath}const s=new ei().fromString(e),r=s.bounds.width(),a=s.bounds.height(),o=1/Ui(r,a);return s.transform(0,0,o,o),this._parsedPath=new XA(e,s),il.userSymbolMap[e]=this._parsedPath,this._parsedPath}getGraphicTheme(){return Mt(this).symbol}updateAABBBounds(t,e,i,s){this.updatePathProxyAABBBounds(i)||(s?this.updateSymbolAABBBoundsImprecise(t,e,i):this.updateSymbolAABBBoundsAccurate(t,e,i));const{tb1:r,tb2:a}=q.graphicService.updateTempAABBBounds(i);PW(t,e,r),i.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2);const{lineJoin:o=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,o==="miter",this),i}updateSymbolAABBBoundsImprecise(t,e,i){const{size:s=e.size}=t;if(U(s))i.set(-s[0]/2,-s[1]/2,s[0]/2,s[1]/2);else{const r=s/2;i.set(-r,-r,r,r)}return i}updateSymbolAABBBoundsAccurate(t,e,i){const{size:s=e.size}=t;return this.getParsedPath().bounds(s,i),i}needUpdateTags(t){return super.needUpdateTags(t,KA)}needUpdateTag(t){return super.needUpdateTag(t,KA)}toCustomPath(){const t=this.getParsedPath(),e=this.attribute.size,i=U(e)?e:[e,e];return t.path?new ei().fromCustomPath2D(t.path,0,0,i[0],i[1]):new ei().fromString(t.pathStr,0,0,i[0],i[1])}clone(){return new il(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return il.NOWORK_ANIMATE_ATTR}};cc.userSymbolMap={},cc.NOWORK_ANIMATE_ATTR=Object.assign({symbolType:1},Pi);function Bf(n){return new cc(n)}const qA=["segments","points","curveType","curveTension",...An];let _R=class Jv extends zi{constructor(t={}){super(t),this.type="line",this.numberType=au}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:t,segments:e}=this.attribute;return e?e.length!==0:!!t&&!(t.length<=1)}_interpolate(t,e,i,s,r){t==="points"&&(r.points=Wb(i,s,e))}getGraphicTheme(){return Mt(this).line}updateAABBBounds(t,e,i){this.updatePathProxyAABBBounds(i)||(t.segments?this.updateLineAABBBoundsBySegments(t,e,i):this.updateLineAABBBoundsByPoints(t,e,i)),q.graphicService.updateTempAABBBounds(i);const{lineJoin:s=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,s==="miter",this),i}updateLineAABBBoundsByPoints(t,e,i,s){const{points:r=e.points,connectedType:a}=t,o=i;return r.forEach(l=>{l.defined===!1&&a!=="zero"&&a!=="connect"||o.add(l.x,l.y)}),o}updateLineAABBBoundsBySegments(t,e,i,s){const{segments:r=e.segments,connectedType:a}=t,o=i;return r.forEach(l=>{l.points.forEach(h=>{h.defined===!1&&a!=="zero"&&a!=="connect"||o.add(h.x,h.y)})}),o}needUpdateTags(t){return super.needUpdateTags(t,qA)}needUpdateTag(t){return super.needUpdateTag(t,qA)}toCustomPath(){const t=this.attribute,e=new ei,i=t.segments,s=r=>{if(r&&r.length){let a=!0;r.forEach(o=>{o.defined!==!1&&(a?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y),a=!1)})}};return i&&i.length?i.forEach(r=>{s(r.points)}):t.points&&s(t.points),e}clone(){return new Jv(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return Jv.NOWORK_ANIMATE_ATTR}};_R.NOWORK_ANIMATE_ATTR=Object.assign({segments:1,curveType:1},Pi);function ax(n){return new _R(n)}const ZA=["width","x1","y1","height","cornerRadius",...An];class Jl extends zi{constructor(t){super(t),this.type="rect",this.numberType=Yb}isValid(){return super.isValid()&&this._isValid()}_isValid(){return!0}getGraphicTheme(){return Mt(this).rect}updateAABBBounds(t,e,i){if(!this.updatePathProxyAABBBounds(i)){let{width:a,height:o}=t;const{x1:l,y1:h,x:d,y:c}=t;a=a??l-d,o=o??h-c,(isFinite(a)||isFinite(o)||isFinite(d)||isFinite(c))&&i.set(0,0,a||0,o||0)}const{tb1:s,tb2:r}=q.graphicService.updateTempAABBBounds(i);return lu(t,e,s),i.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2),q.graphicService.transformAABBBounds(t,i,e,!1,this),i}needUpdateTags(t){return super.needUpdateTags(t,ZA)}needUpdateTag(t){return super.needUpdateTag(t,ZA)}toCustomPath(){const t=this.attribute,{x:e,y:i,width:s,height:r}=pj(t),a=new ei;return a.moveTo(e,i),a.rect(e,i,s,r),a}clone(){return new Jl(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return Jl.NOWORK_ANIMATE_ATTR}}Jl.NOWORK_ANIMATE_ATTR=Pi;function hu(n){return new Jl(n)}const JA=[[0,0,0],[1,0,0],[1,1,0],[0,1,0],[0,0,1],[1,0,1],[1,1,1],[0,1,1]];class Lf extends Jl{constructor(t){super(t),this.type="rect3d",this.numberType=Xb}findFace(){const t={polygons:[],vertices:[],edges:[]},e=this.getGraphicTheme(),{x1:i,y1:s,x:r,y:a,length:o=_i(e.width,e.height)}=this.attribute;let{width:l,height:h}=this.attribute;l=l??i-r,h=h??s-a;for(let d=0;d{e.glyphHost=this,Object.setPrototypeOf(e.attribute,this.attribute)}),this.valid=this.isValid(),this.addUpdateBoundTag()}detachSubGraphic(){this.subGraphic.forEach(t=>{t.glyphHost=null,Object.setPrototypeOf(t.attribute,{})})}getSubGraphic(){return this.subGraphic}onInit(t){this._onInit=t}onUpdate(t){this._onUpdate=t}isValid(){return!0}setAttribute(t,e,i,s){super.setAttribute(t,e,i,s),this.subGraphic.forEach(r=>{r.addUpdateShapeAndBoundsTag(),r.addUpdatePositionTag()})}setAttributes(t,e=!1,i){super.setAttributes(t,e,i),this.subGraphic.forEach(s=>{s.addUpdateShapeAndBoundsTag(),s.addUpdatePositionTag()})}translate(t,e){return super.translate(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}translateTo(t,e){return super.translateTo(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}scale(t,e,i){return super.scale(t,e,i),this.subGraphic.forEach(s=>{s.addUpdatePositionTag(),s.addUpdateBoundTag()}),this}scaleTo(t,e){return super.scaleTo(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}rotate(t){return super.rotate(t),this.subGraphic.forEach(e=>{e.addUpdatePositionTag(),e.addUpdateBoundTag()}),this}rotateTo(t){return super.rotate(t),this.subGraphic.forEach(e=>{e.addUpdatePositionTag(),e.addUpdateBoundTag()}),this}getGraphicTheme(){return Mt(this).glyph}updateAABBBounds(t,e,i){return this.getSubGraphic().forEach(s=>{i.union(s.AABBBounds)}),i}doUpdateAABBBounds(){this.updateAABBBoundsStamp++,this._AABBBounds.clear();const t=this.updateAABBBounds(this.attribute,this.getGraphicTheme(),this._AABBBounds);return this.clearUpdateBoundTag(),t}needUpdateTags(t){return!1}needUpdateTag(t){return!1}useStates(t,e){var i;if(!t.length)return void this.clearStates(e);if(!(((i=this.currentStates)===null||i===void 0?void 0:i.length)!==t.length||t.some((a,o)=>this.currentStates[o]!==a)))return;this.stopStateAnimates();const s={},r=this.subGraphic.map(()=>({}));t.forEach(a=>{var o;const l=this.glyphStateProxy?this.glyphStateProxy(a,t):this.glyphStates[a];l&&(Object.assign(s,l.attributes),!((o=l.subAttributes)===null||o===void 0)&&o.length&&r.forEach((h,d)=>{Object.assign(h,l.subAttributes[d])}))}),this.subGraphic.forEach((a,o)=>{a.updateNormalAttrs(r[o]),a.applyStateAttrs(r[o],t,e)}),this.updateNormalAttrs(s),this.currentStates=t,this.applyStateAttrs(s,t,e)}clearStates(t){this.stopStateAnimates(),this.hasState()&&this.normalAttrs?(this.currentStates=[],this.subGraphic.forEach(e=>{e.applyStateAttrs(e.normalAttrs,this.currentStates,t,!0),e.normalAttrs=null}),this.applyStateAttrs(this.normalAttrs,this.currentStates,t,!0)):this.currentStates=[],this.normalAttrs=null}clone(){const t=new uc(Object.assign({},this.attribute));return t.setSubGraphic(this.subGraphic.map(e=>e.clone())),t}getNoWorkAnimateAttr(){return uc.NOWORK_ANIMATE_ATTR}}uc.NOWORK_ANIMATE_ATTR=Pi;function mR(n){return new uc(n)}class EW{constructor(t,e,i,s,r,a,o,l,h,d,c,u,g,p){this.left=t,this.top=e,this.width=i,this.height=s,this.actualHeight=0,this.bottom=e+s,this.right=t+i,this.ellipsis=r,this.wordBreak=a,this.verticalDirection=o,this.lines=[],this.globalAlign=l,this.globalBaseline=h,this.layoutDirection=d,this.directionKey=Hb[this.layoutDirection],this.isWidthMax=c,this.isHeightMax=u,this.singleLine=g,p?(p.clear(),this.icons=p):this.icons=new Map}draw(t,e){const{width:i,height:s}=this.getActualSize(),r=this.isWidthMax?Math.min(this.width,i):this.width||i||0;let a=this.isHeightMax?Math.min(this.height,s):this.height||s||0;a=Math.min(a,s);let o=0;switch(this.globalBaseline){case"top":o=0;break;case"middle":o=-a/2;break;case"bottom":o=-a}let l=0;this.globalAlign==="right"||this.globalAlign==="end"?l=-r:this.globalAlign==="center"&&(l=-r/2);let h=this[this.directionKey.height];this.singleLine&&(h=this.lines[0].height+1);let d=!1;if(this.verticalDirection==="middle")if(this.actualHeight>=h&&h!==0)for(let c=0;cthis[this.directionKey.top]+h)return d;let p=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(p=!0,d=!0),this.lines[c].draw(t,p,this.lines[c][this.directionKey.left]+l,this.lines[c][this.directionKey.top]+o,this.ellipsis,e)}else{const c=Math.floor((h-this.actualHeight)/2);this.layoutDirection==="vertical"?l+=c:o+=c;for(let u=0;uthis[this.directionKey.top]+h||pthis[this.directionKey.top]+h)return d;{let p=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(p=!0,d=!0),this.lines[c].draw(t,p,this.lines[c][this.directionKey.left]+l,this.lines[c][this.directionKey.top]+o,this.ellipsis,e)}}}}return d}getActualSize(){return this.ellipsis?this.getActualSizeWidthEllipsis():this.getRawActualSize()}getRawActualSize(){let t=0,e=0;for(let i=0;it&&(t=s.actualWidth),e+=s.height}return{width:this.layoutDirection==="vertical"?e:t,height:this.layoutDirection==="vertical"?t:e}}getActualSizeWidthEllipsis(){let t=0,e=0;const{width:i,height:s}=this.getRawActualSize();this.width,this.height;let r=this[this.directionKey.height];if(this.singleLine&&(r=this.lines[0].height+1),this.verticalDirection==="middle")if(this.actualHeight>=r&&r!==0)for(let a=0;athis[this.directionKey.top]+r))if(this.ellipsis&&this.lines[a+1]&&this.lines[a+1].top+this.lines[a+1].height>this[this.directionKey.top]+r){const h=this.ellipsis===!0?"...":this.ellipsis||"",d=this.lines[a].getWidthWithEllips(h);d>t&&(t=d),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else{Math.floor((r-this.actualHeight)/2);for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else if(this.verticalDirection==="bottom")for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height;else if(!(h+l>this[this.directionKey.top]+r||ht&&(t=c),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height;else if(!(o+lthis[this.directionKey.top]+r))if(this.ellipsis&&this.lines[a+1]&&this.lines[a+1].top+this.lines[a+1].height>this[this.directionKey.top]+r){const h=this.ellipsis===!0?"...":this.ellipsis||"",d=this.lines[a].getWidthWithEllips(h);d>t&&(t=d),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}return{width:this.layoutDirection==="vertical"?e:t,height:this.layoutDirection==="vertical"?t:e}}}class gc{constructor(t,e,i){this.fontSize=i.fontSize||16,this.textBaseline=i.textBaseline||"alphabetic";const s=sr(i.lineHeight,this.fontSize);this.lineHeight=typeof s=="number"?s>this.fontSize?s:this.fontSize:Math.floor(1.2*this.fontSize),this.height=this.lineHeight;const{ascent:r,height:a,descent:o,width:l}=ul(t,i);let h=0,d=0,c=0;this.height>a&&(h=(this.height-a)/2,d=Math.ceil(h),c=Math.floor(h)),this.textBaseline==="top"?(this.ascent=h,this.descent=a-h):this.textBaseline==="bottom"?(this.ascent=a-h,this.descent=h):this.textBaseline==="middle"?(this.ascent=this.height/2,this.descent=this.height/2):(this.ascent=r+d,this.descent=o+c),this.length=t.length,this.width=l||0,this.text=t||"",this.newLine=e||!1,this.character=i,this.left=0,this.top=0,this.ellipsis="normal",this.ellipsisWidth=0,this.ellipsisOtherParagraphWidth=0,i.direction==="vertical"&&(this.direction=i.direction,this.widthOrigin=this.width,this.heightOrigin=this.height,this.width=this.heightOrigin,this.height=this.widthOrigin,this.lineHeight=this.height),this.ellipsisStr="..."}updateWidth(){const{width:t}=ul(this.text,this.character);this.width=t,this.direction==="vertical"&&(this.widthOrigin=this.width,this.width=this.heightOrigin,this.height=this.widthOrigin)}draw(t,e,i,s,r){let a=this.text,o=this.left+i;e+=this.top;let l=this.direction;if(this.verticalEllipsis)a=this.ellipsisStr,l="vertical",e-=this.ellipsisWidth/2;else{if(this.ellipsis==="hide")return;if(this.ellipsis==="add")a+=this.ellipsisStr,r!=="right"&&r!=="end"||(o-=this.ellipsisWidth);else if(this.ellipsis==="replace"){const h=mv(a,(l==="vertical"?this.height:this.width)-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,a.length-1);if(a=a.slice(0,h),a+=this.ellipsisStr,r==="right"||r==="end"){const{width:d}=ul(this.text.slice(h),this.character);l==="vertical"||(o-=this.ellipsisWidth-d)}}}switch(this.character.script){case"super":e-=this.ascent*(1/3);break;case"sub":e+=this.descent/2}l==="vertical"&&(t.save(),t.rotateAbout(Math.PI/2,o,e),t.translate(-this.heightOrigin||-this.lineHeight/2,-this.descent/2),t.translate(o,e),o=0,e=0),this.character.stroke&&(U3(t,this.character),t.strokeText(a,o,e)),N3(t,this.character),this.character.fill&&t.fillText(a,o,e),this.character.fill&&(typeof this.character.lineThrough=="boolean"||typeof this.character.underline=="boolean"?(this.character.underline&&t.fillRect(o,1+e,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1),this.character.lineThrough&&t.fillRect(o,1+e-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)):this.character.textDecoration==="underline"?t.fillRect(o,1+e,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1):this.character.textDecoration==="line-through"&&t.fillRect(o,1+e-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)),l==="vertical"&&t.restore()}getWidthWithEllips(t){let e=this.text;const i=t==="vertical"?this.height:this.width;if(this.ellipsis==="hide")return i;if(this.ellipsis==="add")return i+this.ellipsisWidth;if(this.ellipsis==="replace"){const s=mv(e,i-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,e.length-1);e=e.slice(0,s),e+=this.ellipsisStr;const{width:r}=ul(this.text.slice(s),this.character);return i+this.ellipsisWidth-r}return i}}function RW(n,t){const e=n.text.slice(0,t),i=n.text.slice(t);return[new gc(e,n.newLine,n.character),new gc(i,!0,n.character)]}const QA=["width","height","image",...An];class Ql extends zi{constructor(t){super(t),this.type="image",this.numberType=wf,this.loadImage(this.attribute.image)}get width(){var t;return(t=this.attribute.width)!==null&&t!==void 0?t:0}set width(t){this.attribute.width===t&&(this.attribute.width=t,this.addUpdateShapeAndBoundsTag())}get height(){var t;return(t=this.attribute.height)!==null&&t!==void 0?t:0}set height(t){this.attribute.height===t&&(this.attribute.height=t,this.addUpdateShapeAndBoundsTag())}get repeatX(){var t;return(t=this.attribute.repeatX)!==null&&t!==void 0?t:"no-repeat"}set repeatX(t){this.attribute.repeatX===t&&(this.attribute.repeatX=t)}get repeatY(){var t;return(t=this.attribute.repeatY)!==null&&t!==void 0?t:"no-repeat"}set repeatY(t){this.attribute.repeatY===t&&(this.attribute.repeatY=t)}get image(){return this.attribute.image}set image(t){t!==this.attribute.image&&(this.attribute.image=t,this.loadImage(this.attribute.image))}imageLoadSuccess(t,e,i){super.imageLoadSuccess(t,e,()=>{this.successCallback&&this.successCallback()})}imageLoadFail(t,e){super.imageLoadFail(t,()=>{this.failCallback&&this.failCallback()})}setAttributes(t,e,i){return t.image&&this.loadImage(t.image),super.setAttributes(t,e,i)}setAttribute(t,e,i,s){return t==="image"&&this.loadImage(e),super.setAttribute(t,e,i,s)}getGraphicTheme(){return Mt(this).image}updateAABBBounds(t,e,i){if(!this.updatePathProxyAABBBounds(i)){const{width:a=e.width,height:o=e.height}=t;i.set(0,0,a,o)}const{tb1:s,tb2:r}=q.graphicService.updateTempAABBBounds(i);return lu(t,e,s),i.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2),q.graphicService.transformAABBBounds(t,i,e,!1,this),i}getDefaultAttribute(t){return ac[t]}needUpdateTags(t){return super.needUpdateTags(t,QA)}needUpdateTag(t){return super.needUpdateTag(t,QA)}clone(){return new Ql(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return Ql.NOWORK_ANIMATE_ATTR}}Ql.NOWORK_ANIMATE_ATTR=Object.assign({image:1,repeatX:1,repeatY:1},Pi);function ox(n){return new Ql(n)}class er extends Ql{constructor(t){if(super(t),this._x=0,this._y=0,this._hovered=!1,this._marginArray=[0,0,0,0],t.backgroundShowMode==="always"&&(this._hovered=!0),t.margin){const e=tp(t.margin);this._marginArray=typeof e=="number"?[e,e,e,e]:e}this.onBeforeAttributeUpdate=(e,i,s)=>{if(U(s)&&s.indexOf("margin")!==-1||s==="margin")if(i.margin){const r=tp(i.margin);this._marginArray=typeof r=="number"?[r,r,r,r]:r}else this._marginArray=[0,0,0,0]}}get width(){var t;return((t=this.attribute.width)!==null&&t!==void 0?t:0)+this._marginArray[1]+this._marginArray[3]}get height(){var t;return((t=this.attribute.height)!==null&&t!==void 0?t:0)+this._marginArray[0]+this._marginArray[2]}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;this.doUpdateAABBBounds();const{width:t=ac.width,height:e=ac.height}=this.attribute,{backgroundWidth:i=t,backgroundHeight:s=e}=this.attribute,r=(i-t)/2,a=(s-e)/2;return this._AABBBounds.expand([0,2*r,2*a,0]),this._AABBBounds}setHoverState(t){this.attribute.backgroundShowMode==="hover"&&this._hovered!==t&&(this._hovered=t)}}class OW{constructor(t,e,i,s,r,a,o,l){this.left=t,this.width=e,this.baseline=i,this.ascent=s,this.descent=r,this.top=i-s,this.paragraphs=a.map(d=>d),this.textAlign=(this.paragraphs[0]instanceof er?this.paragraphs[0].attribute.textAlign:this.paragraphs[0].character.textAlign)||"left",this.direction=o,this.directionKey=Hb[this.direction],this.actualWidth=0;let h=0;this.paragraphs.forEach((d,c)=>{if(c===0&&d instanceof gc){const u=G3.exec(d.text);(u==null?void 0:u.index)!==0&&(d.text=d.text.slice(u==null?void 0:u.index),d.updateWidth())}this.actualWidth+=d[this.directionKey.width],h=Math.max(d[this.directionKey.height],h)}),this.height=h,this.blankWidth=l?0:this.width-this.actualWidth,this.calcOffset(e,l)}calcOffset(t,e){const i=this.directionKey,s=this.height;let r=this.left,a=0;this.actualWidtho.overflow))){let o=!0,l=!1;for(let d=this.paragraphs.length-1;d>=0;d--){const c=this.paragraphs[d];if(c.overflow)o=o&&c.text==="";else if(o){l=!0;break}}let h=0;if(!l)for(let d=this.paragraphs.length-1;d>=0;d--){const c=this.paragraphs[d];if(c.overflow){if(c.text==="")break;continue}if(c instanceof er)break;if(this.direction==="vertical"&&c.direction!=="vertical"){c.verticalEllipsis=!0;break}const u=r===!0?"...":r||"";c.ellipsisStr=u;const{width:g}=ul(u,c.character),p=g||0;if(p<=this.blankWidth+h){e&&(c.ellipsis="add");break}if(p<=this.blankWidth+h+c.width){c.ellipsis="replace",c.ellipsisWidth=p,c.ellipsisOtherParagraphWidth=this.blankWidth+h;break}c.ellipsis="hide",h+=c.width}}this.paragraphs.map((o,l)=>{if(o instanceof er)return o.setAttributes({x:i+o._x,y:s+o._y}),void a(o,t,i+o._x,s+o._y,this.ascent);o.draw(t,s+this.ascent,i,l===0,this.textAlign)})}getWidthWithEllips(t){let e=0;for(let s=this.paragraphs.length-1;s>=0;s--){const r=this.paragraphs[s];if(r instanceof er)break;const{width:a}=ul(t,r.character),o=a||0;if(o<=this.blankWidth+e){r.ellipsis="add",r.ellipsisWidth=o;break}if(o<=this.blankWidth+e+r.width){r.ellipsis="replace",r.ellipsisWidth=o,r.ellipsisOtherParagraphWidth=this.blankWidth+e;break}r.ellipsis="hide",e+=r.width}let i=0;return this.paragraphs.map((s,r)=>{i+=s instanceof er?s.width:s.getWidthWithEllips(this.direction)}),i}}class BW{constructor(t){this.frame=t,this.width=this.frame.width,this.height=this.frame.height,this.lineWidth=0,this.y=this.frame.top,this.maxAscent=0,this.maxDescent=0,this.maxAscentForBlank=0,this.maxDescentForBlank=0,this.lineBuffer=[],this.direction=t.layoutDirection,this.directionKey=Hb[this.direction]}store(t){if(t instanceof er){this.frame.icons.set(t.richtextId,t),this.lineBuffer.push(t),this.lineWidth+=t[this.directionKey.width];let e=0,i=0;t.attribute.textBaseline==="top"?(e=0,i=t.height):t.attribute.textBaseline==="bottom"?(e=t.height,i=0):(e=t.height/2,i=t.height/2),this.maxAscent=Math.max(this.maxAscent,e),this.maxDescent=Math.max(this.maxDescent,i)}else this.lineBuffer.push(t),t.text.length!==0?(this.lineWidth+=t[this.directionKey.width],this.maxAscent=Math.max(this.maxAscent,t.ascent),this.maxDescent=Math.max(this.maxDescent,t.descent)):(this.maxAscentForBlank=Math.max(this.maxAscentForBlank,t.ascent),this.maxDescentForBlank=Math.max(this.maxDescentForBlank,t.descent))}send(){if(this.lineBuffer.length===0)return;const t=this.maxAscent===0?this.maxAscentForBlank:this.maxAscent,e=this.maxDescent===0?this.maxDescentForBlank:this.maxDescent,i=new OW(this.frame.left,this[this.directionKey.width],this.y+t,t,e,this.lineBuffer,this.direction,this.direction==="horizontal"?this.frame.isWidthMax:this.frame.isHeightMax);this.frame.lines.push(i),this.frame.actualHeight+=i.height,this.y+=i.height,this.lineBuffer.length=0,this.lineWidth=this.maxAscent=this.maxDescent=this.maxAscentForBlank=this.maxDescentForBlank=0}deal(t,e=!1){t instanceof er?this.direction==="horizontal"&&this.width===0||this.direction==="vertical"&&this.height===0||this.lineWidth+t[this.directionKey.width]<=this[this.directionKey.width]?this.store(t):this.lineBuffer.length===0?(this.store(t),this.send()):(this.send(),this.deal(t)):typeof this.width!="number"||this.width<0||(t.newLine&&this.send(),t.text.length!==0&&(this.direction==="horizontal"&&this.width===0||this.direction==="vertical"&&this.height===0||this.lineWidth+t[this.directionKey.width]<=this[this.directionKey.width]?this.store(t):this.lineWidth===this[this.directionKey.width]?(this.send(),this.deal(t)):this.cut(t,e)))}cut(t,e){const i=this[this.directionKey.width]-this.lineWidth||0,s=Math.ceil(i/t[this.directionKey.width]*t.length)||0,r=mv(t.text,i,t.character,s,this.frame.wordBreak==="break-word");if(r!==0){const[a,o]=RW(t,r);this.store(a),e?this.send():this.deal(o)}else this.lineBuffer.length!==0&&(this.send(),this.deal(t))}}const tk=["width","height","ellipsis","wordBreak","verticalDirection","maxHeight","maxWidth","textAlign","textBaseline","textConfig","layoutDirection","fill","stroke","fontSize",...An];class pc extends zi{constructor(t){super(t),this.type="richtext",this._currentHoverIcon=null,this.numberType=Kb,this.onBeforeAttributeUpdate=(e,i,s)=>{for(const r in e)if(r==="hoverIconId"){if(e[r]===i[r])continue;const a=this._frameCache.icons.get(e[r]);this.updateHoverIconState(a)}}}get width(){var t;return(t=this.attribute.width)!==null&&t!==void 0?t:Ys.width}set width(t){this.attribute.width!==t&&(this.attribute.width=t,this.addUpdateShapeAndBoundsTag())}get height(){var t;return(t=this.attribute.height)!==null&&t!==void 0?t:Ys.height}set height(t){this.attribute.height!==t&&(this.attribute.height=t,this.addUpdateShapeAndBoundsTag())}get maxWidth(){return this.attribute.maxWidth}set maxWidth(t){this.attribute.maxWidth!==t&&(this.attribute.maxWidth=t,this.addUpdateShapeAndBoundsTag())}get maxHeight(){return this.attribute.maxHeight}set maxHeight(t){this.attribute.maxHeight!==t&&(this.attribute.maxHeight=t,this.addUpdateShapeAndBoundsTag())}get ellipsis(){var t;return(t=this.attribute.ellipsis)!==null&&t!==void 0?t:Ys.ellipsis}set ellipsis(t){this.attribute.ellipsis!==t&&(this.attribute.ellipsis=t,this.addUpdateShapeAndBoundsTag())}get wordBreak(){var t;return(t=this.attribute.wordBreak)!==null&&t!==void 0?t:Ys.wordBreak}set wordBreak(t){this.attribute.wordBreak!==t&&(this.attribute.wordBreak=t,this.addUpdateShapeAndBoundsTag())}get verticalDirection(){var t;return(t=this.attribute.verticalDirection)!==null&&t!==void 0?t:Ys.verticalDirection}set verticalDirection(t){this.attribute.verticalDirection!==t&&(this.attribute.verticalDirection=t,this.addUpdateShapeAndBoundsTag())}get textAlign(){var t;return(t=this.attribute.textAlign)!==null&&t!==void 0?t:Ys.textAlign}set textAlign(t){this.attribute.textAlign!==t&&(this.attribute.textAlign=t,this.addUpdateShapeAndBoundsTag())}get textBaseline(){var t;return(t=this.attribute.textBaseline)!==null&&t!==void 0?t:Ys.textBaseline}set textBaseline(t){this.attribute.textBaseline!==t&&(this.attribute.textBaseline=t,this.addUpdateShapeAndBoundsTag())}get textConfig(){var t;return(t=this.attribute.textConfig)!==null&&t!==void 0?t:Ys.textConfig}set textConfig(t){this.attribute.textConfig=t,this.addUpdateShapeAndBoundsTag()}getGraphicTheme(){return Mt(this).richtext}updateAABBBounds(t,e,i){const{width:s=e.width,height:r=e.height,maxWidth:a=e.maxWidth,maxHeight:o=e.maxHeight,textAlign:l=e.textAlign,textBaseline:h=e.textBaseline}=t;if(s>0&&r>0)i.set(0,0,s,r);else{const u=this.getFrameCache(),{width:g,height:p}=u.getActualSize();let _=s||g||0,f=r||p||0;f=typeof o=="number"&&f>o?o:f||0,_=typeof a=="number"&&_>a?a:_||0,i.set(0,0,_,f)}let d=0;switch(h){case"top":d=0;break;case"middle":d=-i.height()/2;break;case"bottom":d=-i.height()}let c=0;switch(l){case"left":c=0;break;case"center":c=-i.width()/2;break;case"right":c=-i.width()}return i.translate(c,d),q.graphicService.updateTempAABBBounds(i),t.forceBoundsHeight==null&&t.forceBoundsWidth==null||q.graphicService.updateHTMLTextAABBBounds(t,e,i),q.graphicService.transformAABBBounds(t,i,e,!1,this),i}needUpdateTags(t){return super.needUpdateTags(t,tk)}needUpdateTag(t){return super.needUpdateTag(t,tk)}getFrameCache(){return this.shouldUpdateShape()&&(this.doUpdateFrameCache(),this.clearUpdateShapeTag()),this._frameCache}get cliped(){const t=this.getFrameCache();if(t.actualHeight>t.height)return!0;const{disableAutoWrapLine:e}=this.attribute;if(e)for(let i=0;i{var R;this.addUpdateBoundTag(),(R=this.stage)===null||R===void 0||R.renderNextFrame()},M.richtextId=T.id,f.push(M)}}else{const T=this.combinedStyleToCharacter(m[k]);if(J(T.text)&&(T.text=`${T.text}`),T.text&&T.text.includes(` +`)){const w=T.text.split(` +`);for(let M=0;M0,y=typeof r=="number"&&Number.isFinite(r)&&r>0,b=typeof a=="number"&&Number.isFinite(a)&&a>0&&(!v||a<=s),x=typeof o=="number"&&Number.isFinite(o)&&o>0&&(!y||o<=r),S=new EW(0,0,(b?a:v?s:0)||0,(x?o:y?r:0)||0,l,h,d,c,u,g||"horizontal",!b&&v,!x&&y,p||!1,(e=this._frameCache)===null||e===void 0?void 0:e.icons),A=new BW(S);if(_){let k=0,T=!1;for(let w=0;w{i.setStage(t,e)})}bindIconEvent(){this.addEventListener("pointermove",t=>{const e=this.pickIcon(t.global);e&&e===this._currentHoverIcon||(e?this.setAttribute("hoverIconId",e.richtextId):!e&&this._currentHoverIcon&&this.setAttribute("hoverIconId",void 0))}),this.addEventListener("pointerleave",t=>{this._currentHoverIcon&&this.setAttribute("hoverIconId",void 0)})}updateHoverIconState(t){var e,i,s,r,a;t?((e=this._currentHoverIcon)===null||e===void 0||e.setHoverState(!1),this._currentHoverIcon=t,this._currentHoverIcon.setHoverState(!0),(i=this.stage)===null||i===void 0||i.setCursor(t.attribute.cursor),(s=this.stage)===null||s===void 0||s.renderNextFrame()):(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,(r=this.stage)===null||r===void 0||r.setCursor(),(a=this.stage)===null||a===void 0||a.renderNextFrame())}pickIcon(t){const e=this.getFrameCache(),{e:i,f:s}=this.globalTransMatrix;let r;return e.icons.forEach((a,o)=>{var l,h;const d=a.AABBBounds.clone();d.translate(a._marginArray[3],a._marginArray[0]),d.containsPoint({x:t.x-i,y:t.y-s})&&(r=a,r.globalX=((l=r.attribute.x)!==null&&l!==void 0?l:0)+i+a._marginArray[3],r.globalY=((h=r.attribute.y)!==null&&h!==void 0?h:0)+s+a._marginArray[0])}),r}getNoWorkAnimateAttr(){return pc.NOWORK_ANIMATE_ATTR}}pc.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,verticalDirection:1,textAlign:1,textBaseline:1,textConfig:1,layoutDirection:1},Pi);function vR(n){return new pc(n)}const ek=["path","customPath",...An];class _c extends zi{constructor(t){super(t),this.type="path",this.numberType=Cf}get pathShape(){return this.tryUpdateAABBBounds(),this.getParsedPathShape()}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{path:t}=this.attribute;return t!=null&&t!==""}getParsedPathShape(){const t=this.getGraphicTheme();if(!this.valid)return t.path;const e=this.attribute;return e.path instanceof ei?e.path:(P(this.cache)&&this.doUpdatePathShape(),this.cache instanceof ei?this.cache:t.path)}getGraphicTheme(){return Mt(this).path}updateAABBBounds(t,e,i){if(!this.updatePathProxyAABBBounds(i)){const o=this.getParsedPathShape();i.union(o.getBounds())}const{tb1:s,tb2:r}=q.graphicService.updateTempAABBBounds(i);lu(t,e,s),i.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2);const{lineJoin:a=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,a==="miter",this),i}doUpdateAABBBounds(t){return this.doUpdatePathShape(),super.doUpdateAABBBounds(t)}doUpdatePathShape(){const t=this.attribute;tt(t.path,!0)?this.cache=new ei().fromString(t.path):t.customPath&&(this.cache=new ei,t.customPath(this.cache,this))}needUpdateTags(t){return super.needUpdateTags(t,ek)}needUpdateTag(t){return super.needUpdateTag(t,ek)}toCustomPath(){return new ei().fromCustomPath2D(this.getParsedPathShape(),0,0)}clone(){return new _c(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return _c.NOWORK_ANIMATE_ATTR}}_c.NOWORK_ANIMATE_ATTR=Object.assign({path:1,customPath:1},Pi);function yR(n){return new _c(n)}const ik=["segments","points","curveType","curveTension",...An];class fc extends zi{constructor(t){super(t),this.type="area",this.numberType=ru}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:t,segments:e}=this.attribute;return e?e.length!==0:!!t&&t.length!==0}getGraphicTheme(){return Mt(this).area}updateAABBBounds(t,e,i){this.updatePathProxyAABBBounds(i)||(t.segments?this.updateAreaAABBBoundsBySegments(t,e,i):this.updateAreaAABBBoundsByPoints(t,e,i)),q.graphicService.updateTempAABBBounds(i);const{lineJoin:s=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,s==="miter",this),i}updateAreaAABBBoundsByPoints(t,e,i,s){const{points:r=e.points}=t,a=i;return r.forEach(o=>{var l,h;a.add(o.x,o.y),a.add((l=o.x1)!==null&&l!==void 0?l:o.x,(h=o.y1)!==null&&h!==void 0?h:o.y)}),a}updateAreaAABBBoundsBySegments(t,e,i,s){const{segments:r=e.segments}=t,a=i;return r.forEach(o=>{o.points.forEach(l=>{var h,d;a.add(l.x,l.y),a.add((h=l.x1)!==null&&h!==void 0?h:l.x,(d=l.y1)!==null&&d!==void 0?d:l.y)})}),a}_interpolate(t,e,i,s,r){t==="points"&&(r.points=Wb(i,s,e))}needUpdateTags(t){return super.needUpdateTags(t,ik)}needUpdateTag(t){return super.needUpdateTag(t,ik)}toCustomPath(){const t=new ei,e=this.attribute,i=e.segments,s=r=>{if(r&&r.length){let a=!0;const o=[];if(r.forEach(l=>{var h,d;l.defined!==!1&&(a?t.moveTo(l.x,l.y):t.lineTo(l.x,l.y),o.push({x:(h=l.x1)!==null&&h!==void 0?h:l.x,y:(d=l.y1)!==null&&d!==void 0?d:l.y}),a=!1)}),o.length){for(let l=o.length-1;l>=0;l--)t.lineTo(o[l].x,o[l].y);t.closePath()}}};return e.points?s(e.points):i&&i.length&&i.forEach(r=>{s(r.points)}),t}clone(){return new fc(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return fc.NOWORK_ANIMATE_ATTR}}fc.NOWORK_ANIMATE_ATTR=Object.assign({segments:1,curveType:1},Pi);function bR(n){return new fc(n)}const nk=["innerRadius","outerRadius","startAngle","endAngle","cornerRadius","padAngle","padRadius","cap",...An];class th extends zi{constructor(t){super(t),this.type="arc",this.numberType=kf}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:t,endAngle:e,outerRadius:i,innerRadius:s}=this.attribute;return this._validNumber(t)&&this._validNumber(e)&&this._validNumber(i)&&this._validNumber(s)}getParsedCornerRadius(){const t=this.getGraphicTheme(),{cornerRadius:e=t.cornerRadius,innerPadding:i=t.innerPadding,outerPadding:s=t.outerPadding}=this.attribute;let{outerRadius:r=t.outerRadius,innerRadius:a=t.innerRadius}=this.attribute;if(r+=s,a-=i,e===0||e==="0%")return 0;const o=Math.abs(r-a),l=h=>Math.min(J(h,!0)?h:o*parseFloat(h)/100,o/2);if(U(e)){const h=e.map(d=>l(d)||0);return h.length===0?[h[0],h[0],h[0],h[0]]:h.length===2?[h[0],h[1],h[0],h[1]]:(h.length===3&&h.push(0),h)}return l(e)}getParsedAngle(){const t=this.getGraphicTheme();let{startAngle:e=t.startAngle,endAngle:i=t.endAngle}=this.attribute;const{cap:s=t.cap}=this.attribute,r=i-e>=0?1:-1,a=i-e;if(e=B2(e),i=e+a,s&&Wt(a)Kt&&h>Kt)return{startAngle:e-r*p*o,endAngle:i+r*p*l,sc:r*p*o,ec:r*p*l}}return{startAngle:e,endAngle:i}}getParsePadAngle(t,e){const i=this.getGraphicTheme(),{innerPadding:s=i.innerPadding,outerPadding:r=i.outerPadding,padAngle:a=i.padAngle}=this.attribute;let{outerRadius:o=i.outerRadius,innerRadius:l=i.innerRadius}=this.attribute;o+=r,l-=s;const{padRadius:h=Wn(o*o+l*l)}=this.attribute,d=Wt(e-t);let c=t,u=e,g=t,p=e;const _=a/2;let f=d,m=d;if(_>Kt&&h>Kt){const v=e>t?1:-1;let y=NS(Number(h)/l*le(_)),b=NS(Number(h)/o*le(_));return(f-=2*y)>Kt?(y*=v,g+=y,p-=y):(f=0,g=p=(t+e)/2),(m-=2*b)>Kt?(b*=v,c+=b,u-=b):(m=0,c=u=(t+e)/2),{outerStartAngle:c,outerEndAngle:u,innerStartAngle:g,innerEndAngle:p,innerDeltaAngle:f,outerDeltaAngle:m}}return{outerStartAngle:c,outerEndAngle:u,innerStartAngle:g,innerEndAngle:p,innerDeltaAngle:f,outerDeltaAngle:m}}getGraphicTheme(){return Mt(this).arc}updateAABBBounds(t,e,i,s){this.updatePathProxyAABBBounds(i)||(s?this.updateArcAABBBoundsImprecise(t,e,i):this.updateArcAABBBoundsAccurate(t,e,i));const{tb1:r,tb2:a}=q.graphicService.updateTempAABBBounds(i);lu(t,e,r),i.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2);const{lineJoin:o=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,o==="miter",this),i}updateArcAABBBoundsImprecise(t,e,i){let{outerRadius:s=e.outerRadius,innerRadius:r=e.innerRadius}=t;const{outerPadding:a=e.outerPadding,innerPadding:o=e.innerPadding}=t;return s+=a,r-=o,sl){const d=h;h=l,l=d}return s<=Kt?i.set(0,0,0,0):Math.abs(l-h)>jt-Kt?i.set(-s,-s,s,s):(Tv(h,l,s,i),Tv(h,l,r,i)),i}needUpdateTags(t){return super.needUpdateTags(t,nk)}needUpdateTag(t){return super.needUpdateTag(t,nk)}toCustomPath(){var t,e,i,s;const r=this.attribute,{startAngle:a,endAngle:o}=this.getParsedAngle();let l=((t=r.innerRadius)!==null&&t!==void 0?t:0)-((e=r.innerPadding)!==null&&e!==void 0?e:0),h=((i=r.outerRadius)!==null&&i!==void 0?i:0)-((s=r.outerPadding)!==null&&s!==void 0?s:0);const d=Wt(o-a),c=o>a;if(h=jt-Kt)u.moveTo(0+h*fe(a),0+h*le(a)),u.arc(0,0,h,a,o,!c),l>Kt&&(u.moveTo(0+l*fe(o),0+l*le(o)),u.arc(0,0,l,o,a,c));else{const g=h*fe(a),p=h*le(a),_=l*fe(o),f=l*le(o);u.moveTo(0+g,0+p),u.arc(0,0,h,a,o,!c),u.lineTo(0+_,0+f),u.arc(0,0,l,o,a,c),u.closePath()}return u}clone(){return new th(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return th.NOWORK_ANIMATE_ATTR}}th.NOWORK_ANIMATE_ATTR=Object.assign({cap:1},Pi);function lx(n){return new th(n)}class If extends th{constructor(t){super(t),this.type="arc3d",this.numberType=Tf}updateAABBBounds(t,e,i){const s=this.stage;if(!s||!s.camera)return i;const{outerRadius:r=e.outerRadius,height:a=0}=t,o=r+a;return i.setValue(-o,-o,o,o),q.graphicService.updateTempAABBBounds(i),q.graphicService.transformAABBBounds(t,i,e,!1,this),i}getNoWorkAnimateAttr(){return If.NOWORK_ANIMATE_ATTR}}If.NOWORK_ANIMATE_ATTR=Object.assign({cap:1},Pi);function xR(n){return new If(n)}const sk=["points","cornerRadius",...An];class eh extends zi{constructor(t){super(t),this.type="polygon",this.numberType=Pf}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{points:t}=this.attribute;return t&&t.length>=2}getGraphicTheme(){return Mt(this).polygon}updateAABBBounds(t,e,i){this.updatePathProxyAABBBounds(i)||this.updatePolygonAABBBoundsImprecise(t,e,i),q.graphicService.updateTempAABBBounds(i);const{lineJoin:s=e.lineJoin}=t;return q.graphicService.transformAABBBounds(t,i,e,s==="miter",this),i}updatePolygonAABBBoundsImprecise(t,e,i){const{points:s=e.points}=t;return s.forEach(r=>{i.add(r.x,r.y)}),i}_interpolate(t,e,i,s,r){t==="points"&&(r.points=Wb(i,s,e))}needUpdateTags(t){return super.needUpdateTags(t,sk)}needUpdateTag(t){return super.needUpdateTag(t,sk)}toCustomPath(){const t=this.attribute.points,e=new ei;return t.forEach((i,s)=>{s===0?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}),e.closePath(),e}clone(){return new eh(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return eh.NOWORK_ANIMATE_ATTR}}eh.NOWORK_ANIMATE_ATTR=Pi;function SR(n){return new eh(n)}class Df extends eh{constructor(t){super(t),this.type="pyramid3d",this.numberType=$b}updateAABBBounds(t,e,i){const s=this.stage;return!s||!s.camera||(this.findFace().vertices.forEach(r=>{const a=r[0],o=r[1];i.add(a,o)}),q.graphicService.updateTempAABBBounds(i),q.graphicService.transformAABBBounds(t,i,e,!1,this)),i}findFace(){const{points:t}=this.attribute,e=t.map((o,l)=>{const h=l===3?t[0]:t[l+1],d=o.x-h.x;return d===0?0:(o.y-h.y)/d}),i=t.map(o=>({p:o,d:0}));let s=!1,r=0;for(let o=0;o=0;o--){const l=t[o];i.unshift({p:l,d:0})}for(let o=0;o{a.vertices.push([o.p.x,o.p.y,o.d])}),a.polygons.push({polygon:[0,4,5,1],normal:[0,-1,0]}),a.polygons.push({polygon:[7,6,2,3],normal:[0,1,0]}),a.polygons.push({polygon:[0,4,7,3],normal:[-1,0,0]}),a.polygons.push({polygon:[1,5,6,2],normal:[1,0,0]}),a.polygons.push({polygon:[0,1,2,3],normal:[0,0,-1]}),a.polygons.push({polygon:[4,5,6,7],normal:[0,0,1]}),a.edges=[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[3,7],[1,5],[2,6]],a}_isValid(){return super._isValid()&&this.attribute.points.length===4}getNoWorkAnimateAttr(){return Df.NOWORK_ANIMATE_ATTR}}Df.NOWORK_ANIMATE_ATTR=Pi;function AR(n){return new Df(n)}class LW extends xh{constructor(t){super({x:0,y:0}),this.type="shadowroot",this.shadowHost=t}clearUpdateBoundTag(){super.clearUpdateBoundTag(),this.shadowHost&&this.shadowHost.clearUpdateBoundTag()}addUpdateBoundTag(){super.addUpdateBoundTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}addUpdateShapeAndBoundsTag(){super.addUpdateShapeAndBoundsTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}tryUpdateGlobalTransMatrix(t=!0){if(this.shouldUpdateGlobalMatrix()){const e=this.transMatrix;this._globalTransMatrix?this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f):this._globalTransMatrix=e.clone(),this.doUpdateGlobalMatrix(),t&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}doUpdateGlobalMatrix(){if(this.shadowHost){const t=this.shadowHost.globalTransMatrix;this._globalTransMatrix.multiply(t.a,t.b,t.c,t.d,t.e,t.f)}}tryUpdateGlobalAABBBounds(){return this._globalAABBBounds?this._globalAABBBounds.setValue(this._AABBBounds.x1,this._AABBBounds.y1,this._AABBBounds.x2,this._AABBBounds.y2):this._globalAABBBounds=this._AABBBounds.clone(),this.shadowHost&&this._globalAABBBounds.transformWithMatrix(this.shadowHost.globalTransMatrix),this._globalAABBBounds}}function IW(n){return new LW(n)}var hx=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const pl=Symbol.for("PickItemInterceptor");let Ap=class{constructor(){this.order=1}afterPickItem(n,t,e,i,s){return n.attribute.shadowRootIdx>0||!n.attribute.shadowRootIdx?this._pickItem(n,t,e,i,s):null}beforePickItem(n,t,e,i,s){return n.attribute.shadowRootIdx<0?this._pickItem(n,t,e,i,s):null}_pickItem(n,t,e,i,s){var r;if(!n.shadowRoot)return null;const{parentMatrix:a}=s||{};if(!a)return null;const o=t.pickContext;o.highPerformanceSave();const l=(r=Mt(n))===null||r===void 0?void 0:r[n.type],{shadowPickMode:h=l==null?void 0:l.shadowPickMode}=n.attribute,d=n.shadowRoot,c=vn.allocateByObj(a),u=new Ie(c.a*e.x+c.c*e.y+c.e,c.b*e.x+c.d*e.y+c.f),g=t.pickGroup(d,u,c,i);return o.highPerformanceRestore(),!g.graphic&&g.group&&h==="full"&&(g.graphic=g.group),g}};Ap=hx([pt()],Ap);let kp=class{constructor(){this.order=1}beforePickItem(n,t,e,i,s){const r=n.baseGraphic;if(r&&r.parent){const a=new Ie(e.x,e.y),o=t.pickContext;o.highPerformanceSave();const l=r.parent.globalTransMatrix;l.transformPoint(a,a);const h=r.isContainer?t.pickGroup(r,a.clone(),l,i):t.pickItem(r,a.clone(),l,i);return o.highPerformanceRestore(),h}return null}};kp=hx([pt()],kp);let Tp=class{constructor(){this.order=1}beforePickItem(n,t,e,i,s){if(!n.in3dMode||i.in3dInterceptor)return null;const r=t.pickContext,a=n.stage;if(!r||!a)return null;if(i.in3dInterceptor=!0,r.save(),this.initCanvasCtx(r),r.camera=a.camera,n.isContainer){const o=cR(r,n,()=>t.pickGroup(n,e,s.parentMatrix,i),i);return r.camera=null,i.in3dInterceptor=!1,r.restore(),o}return r.restore(),null}initCanvasCtx(n){n.setTransformForCurrent()}};Tp=hx([pt()],Tp);const DW=new kt((n,t,e)=>{e(Ll)||(n(SA).toSelf(),n(Ll).toService(SA)),n(Tp).toSelf().inSingletonScope(),n(pl).toService(Tp),n(Ap).toSelf().inSingletonScope(),n(pl).toService(Ap),n(kp).toSelf().inSingletonScope(),n(pl).toService(kp),Ti(n,pl)}),FW=new kt(n=>{n(ZE).to(zv).inSingletonScope(),n(JE).toConstantValue(rt)}),mc=Symbol.for("AutoEnablePlugins"),kR=Symbol.for("PluginService");var zW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},jW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},rk=function(n,t){return function(e,i){t(e,i,n)}};let Qv=class{constructor(n){this.autoEnablePlugins=n,this.onStartupFinishedPlugin=[],this.onRegisterPlugin=[],this.actived=!1}active(n,t){this.stage=n,this.actived=!0;const{pluginList:e}=t;e&&At.isBound(mc)&&this.autoEnablePlugins.getContributions().forEach(i=>{e.includes(i.name)&&this.register(i)})}findPluginsByName(n){const t=[];return this.onStartupFinishedPlugin.forEach(e=>{e.name===n&&t.push(e)}),this.onRegisterPlugin.forEach(e=>{e.name===n&&t.push(e)}),t}register(n){n.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.push(n):n.activeEvent==="onRegister"&&(this.onRegisterPlugin.push(n),n.activate(this))}unRegister(n){n.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.splice(this.onStartupFinishedPlugin.indexOf(n),1):n.activeEvent==="onRegister"&&this.onRegisterPlugin.splice(this.onStartupFinishedPlugin.indexOf(n),1),n.deactivate(this)}release(...n){this.onStartupFinishedPlugin.forEach(t=>{t.deactivate(this)}),this.onStartupFinishedPlugin=[],this.onRegisterPlugin.forEach(t=>{t.deactivate(this)}),this.onRegisterPlugin=[]}};Qv=zW([pt(),rk(0,Rt(ii)),rk(0,ci(mc)),jW("design:paramtypes",[Object])],Qv);const HW=new kt(n=>{n(kR).to(Qv),$z(n,mc)}),VW=new kt(n=>{Ti(n,bf)}),WW=new kt(n=>{n(yv).to(bv).inSingletonScope(),Ti(n,yv)});var GW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},NW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Mp=class{constructor(){this.type="static",this.offscreen=!1,this.global=q.global}setDpr(n){this.canvas.dpr=n}init(n,t,e){if(this.layer=n,this.window=t,e.main)this.main=!0,this.context=t.getContext(),this.canvas=this.context.getCanvas();else{let i;this.main=!1,e.canvasId&&(i=this.global.getElementById(e.canvasId)),i||(i=this.global.createCanvas({width:t.width,height:t.height})),i.style&&(i.style["pointer-events"]="none");const s=t.getContext().getCanvas().nativeCanvas,r=xv({nativeCanvas:i,width:t.width,height:t.height,dpr:t.dpr,id:e.canvasId,canvasControled:!0,container:t.getContainer(),x:s.offsetLeft,y:s.offsetTop});r.applyPosition(),this.canvas=r,this.context=r.getContext()}}resize(n,t){this.canvas.resize(n,t)}resizeView(n,t){}render(n,t,e){var i;if(!this.main){const s=this.window.getContext().getCanvas().nativeCanvas;!s||this.canvas.x===s.offsetLeft&&this.canvas.y===s.offsetTop||(this.canvas.x=s.offsetLeft,this.canvas.y=s.offsetTop,this.canvas.applyPosition())}t.renderService.render(n,Object.assign(Object.assign({context:this.context,clear:(i=t.background)!==null&&i!==void 0?i:"#ffffff"},t),e))}merge(n){n.forEach(t=>{const e=t.getContext().canvas.nativeCanvas;this.context.drawImage(e,0,0)})}prepare(n,t){}drawTo(n,t,e){var i;const s=n.getContext();e.renderService.render(t,Object.assign(Object.assign({context:s},e),{clear:e.clear?(i=e.background)!==null&&i!==void 0?i:"#fff":void 0}))}getContext(){return this.context}release(){this.canvas.release()}};Mp=GW([pt(),NW("design:paramtypes",[])],Mp);const UW=new kt(n=>{n(Mp).toSelf(),n(iR).toService(Mp)});function $W(n){n.load(VW),n.load(WW),n.load(UW)}var YW=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};function TR(n,t,e){const i={},s=[];return n.forEachChildren(r=>{const{zIndex:a=t}=r.attribute;i[a]?i[a].push(r):(i[a]=[r],s.push(a))},e),s.sort((r,a)=>e?a-r:r-a),{childMap:i,zIdxArray:s}}function MR(n,t,e,i=!1,s=!1){let r=!1;if(s)r=!0;else{let a;n.forEachChildren((o,l)=>{const{zIndex:h=t}=o.attribute;if(l===0)a=h;else if(a!==h)return r=!0,!0;return!1},i)}if(r){const{childMap:a,zIdxArray:o}=TR(n,t,i);let l=!1;for(let h=0;h{var g,p;return(i?-1:1)*(((g=u.attribute.z)!==null&&g!==void 0?g:0)-((p=c.attribute.z)!==null&&p!==void 0?p:0))});for(let c=0;c{const{zIndex:h=e}=o.attribute;if(l!==0){if(h!==void 0)return s=!0,!0}return!1},i);let r=null,a=!1;if(s){const{childMap:o,zIdxArray:l}=TR(n,e,i);let h=!1;for(let d=0;da?(r=o,!0):(o._uid===t&&(a=!0),!1),i);return r}var KW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},qW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},d0=function(n,t){return function(e,i){t(e,i,n)}};let wp=class{constructor(n,t){this.contributions=n,this.drawItemInterceptorContributions=t,this.currentRenderMap=new Map,this.defaultRenderMap=new Map,this.styleRenderMap=new Map,this.dirtyBounds=new wi,this.backupDirtyBounds=new wi,this.global=q.global,this.layerService=q.layerService,this.init()}init(){this.contributions.forEach(n=>{if(n.style){const t=this.styleRenderMap.get(n.style)||new Map;t.set(n.numberType,n),this.styleRenderMap.set(n.style,t)}else this.defaultRenderMap.set(n.numberType,n)}),this.InterceptorContributions=this.drawItemInterceptorContributions.getContributions().sort((n,t)=>n.order-t.order)}prepareForDraw(n,t){t.updateBounds?this.useDirtyBounds=!0:this.useDirtyBounds=!t.stage.params.optimize.disableCheckGraphicWidthOutRange}draw(n,t){this.prepareForDraw(n,t),t.drawContribution=this,this.currentRenderMap=this.styleRenderMap.get(t.renderStyle)||this.defaultRenderMap,this.currentRenderService=n;const{context:e,stage:i,viewBox:s,transMatrix:r}=t;if(!e)return;const a=this.dirtyBounds.setValue(0,0,s.width(),s.height());if(i.dirtyBounds&&!i.dirtyBounds.empty()){const l=yP(a,i.dirtyBounds,!1);a.x1=Math.floor(l.x1),a.y1=Math.floor(l.y1),a.x2=Math.ceil(l.x2),a.y2=Math.ceil(l.y2)}const o=e.dpr%1;(o||o!==.5)&&(a.x1=Math.floor(a.x1*e.dpr)/e.dpr,a.y1=Math.floor(a.y1*e.dpr)/e.dpr,a.x2=Math.ceil(a.x2*e.dpr)/e.dpr,a.y2=Math.ceil(a.y2*e.dpr)/e.dpr),this.backupDirtyBounds.copy(a),e.inuse=!0,e.setClearMatrix(r.a,r.b,r.c,r.d,r.e,r.f),e.clearMatrix(),e.setTransformForCurrent(!0),e.translate(s.x1,s.y1,!0),e.beginPath(),e.rect(a.x1,a.y1,a.width(),a.height()),e.clip(),i.camera&&(this.dirtyBounds.setValue(-1/0,-1/0,1/0,1/0),this.backupDirtyBounds.setValue(-1/0,-1/0,1/0,1/0)),this.clearScreen(n,e,t),e.save(),n.renderTreeRoots.sort((l,h)=>{var d,c;return((d=l.attribute.zIndex)!==null&&d!==void 0?d:Re.zIndex)-((c=h.attribute.zIndex)!==null&&c!==void 0?c:Re.zIndex)}).forEach(l=>{l.isContainer?this.renderGroup(l,t,vn.allocate(1,0,0,1,0,0)):this.renderItem(l,t)}),e.restore(),e.setClearMatrix(1,0,0,1,0,0),e.inuse=!1,e.draw()}doRegister(){throw new Error("暂不支持")}_findNextGraphic(n){let t=n.parent,e=n._uid;for(;t;){const i=XW(t,e,Re.zIndex);if(i)return i;e=t._uid,t=t.parent}return null}renderGroup(n,t,e,i){if(t.break||n.attribute.visibleAll===!1)return;if(n.incremental&&(t.startAtId==null||t.startAtId===n._uid))return t.break=!0,void this._increaseRender(n,t);if(this.useDirtyBounds&&!ic(n.AABBBounds,this.dirtyBounds,!1))return;let s,r=e;if(this.useDirtyBounds){s=dp.allocateByObj(this.dirtyBounds);const a=n.transMatrix;r=vn.allocateByObj(e).multiply(a.a,a.b,a.c,a.d,a.e,a.f),this.dirtyBounds.copy(this.backupDirtyBounds).transformWithMatrix(r.getInverse())}this.renderItem(n,t,{drawingCb:()=>{var a;i?n.forEachChildren(o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))}):MR(n,Re.zIndex,o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))},!1,!!(!((a=t.context)===null||a===void 0)&&a.camera))}}),this.useDirtyBounds&&(this.dirtyBounds.copy(s),dp.free(s),vn.free(r))}_increaseRender(n,t){const{layer:e,stage:i}=t,{subLayers:s}=e;let r=s.get(n._uid);r||(r={layer:this.layerService.createLayer(i),zIndex:s.size,group:n},s.set(n._uid,r));const a=r.layer.getNativeHandler().getContext(),o=r.drawContribution||At.get(dR);o.dirtyBounds.setValue(-1/0,-1/0,1/0,1/0),o.backupDirtyBounds.setValue(-1/0,-1/0,1/0,1/0),o.draw(this.currentRenderService,Object.assign(Object.assign({},t),{drawContribution:o,clear:"transparent",layer:r.layer,context:a,startAtId:n._uid,break:!1})),r.drawContribution=o;const l=this._findNextGraphic(n);if(l)if(l.isContainer&&l.incremental)this._increaseRender(l,t);else{let h=s.get(l._uid);h||(h={layer:this.layerService.createLayer(i),zIndex:s.size},s.set(l._uid,h));const d=h.layer.getNativeHandler().getContext();this.draw(this.currentRenderService,Object.assign(Object.assign({},t),{drawContribution:o,clear:"transparent",layer:h.layer,context:d,startAtId:l._uid,break:!1}))}}getRenderContribution(n){let t;return t||(t=this.selectRenderByNumberType(n.numberType,n)),t||(t=this.selectRenderByType(n.type)),t}renderItem(n,t,e){if(this.InterceptorContributions.length)for(let o=0;o=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Cp=class extends lc{constructor(){super(...arguments),this.numberType=au}drawShape(n,t,e,i,s,r,a,o){if(n.incremental&&s.multiGraphicOptions){const{startAtIdx:l,length:h}=s.multiGraphicOptions,{segments:d=[]}=n.attribute;if(l>d.length)return;const c=Mt(n).line,{fill:u=c.fill,stroke:g=c.stroke,opacity:p=c.opacity,fillOpacity:_=c.fillOpacity,strokeOpacity:f=c.strokeOpacity,lineWidth:m=c.lineWidth,visible:v=c.visible}=n.attribute,y=mo(p,_,u),b=Qb(p,f),x=Fo(u),S=Sh(g,m);if(!n.valid||!v||!x&&!S||!(y||b||a||o))return;const{context:A}=s;for(let k=l;k=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Pp=class extends hc{constructor(){super(...arguments),this.numberType=ru}drawShape(n,t,e,i,s,r,a){if(n.incremental&&s.multiGraphicOptions){const{startAtIdx:o,length:l}=s.multiGraphicOptions,{segments:h=[]}=n.attribute;if(o>h.length)return;const d=Mt(n).area,{fill:c=d.fill,fillOpacity:u=d.fillOpacity,opacity:g=d.opacity,visible:p=d.visible}=n.attribute,_=mo(g,u,c),f=Fo(c);if(!n.valid||!p||!f||!_&&!a)return;for(let m=o;m=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},tG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},zh=function(n,t){return function(e,i){t(e,i,n)}},ms=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};(function(n){n[n.NORMAL=0]="NORMAL",n[n.STOP=1]="STOP"})(_l||(_l={}));let ty=class extends wp{constructor(n,t,e,i){super(n,i),this.contributions=n,this.lineRender=t,this.areaRender=e,this.drawItemInterceptorContributions=i,this.rendering=!1,this.currFrameStartAt=0,this.currentIdx=0,this.status=_l.NORMAL,this.checkingForDrawPromise=null,this.hooks={completeDraw:new _n([])},this.defaultRenderMap.set(this.lineRender.numberType,this.lineRender),this.defaultRenderMap.set(this.areaRender.numberType,this.areaRender)}draw(n,t){return ms(this,void 0,void 0,function*(){if(this.checkingForDrawPromise)return;this.lastRenderService=n,this.lastDrawContext=t,this.checkingForDrawPromise=this.checkForDraw(t);const e=yield this.checkingForDrawPromise;if(this.checkingForDrawPromise=null,e)return;this.currentRenderService=n;const{context:i,viewBox:s}=t;i&&(i.inuse=!0,i.clearMatrix(),i.setTransformForCurrent(!0),i.save(),t.restartIncremental&&this.clearScreen(this.currentRenderService,i,t),i.translate(s.x1,s.y1,!0),i.save(),n.renderTreeRoots.sort((r,a)=>{var o,l;return((o=r.attribute.zIndex)!==null&&o!==void 0?o:Re.zIndex)-((l=a.attribute.zIndex)!==null&&l!==void 0?l:Re.zIndex)}).forEach(r=>{this.renderGroup(r,t)}),this.hooks.completeDraw.tap("top-draw",()=>{i.restore(),i.restore(),i.draw(),i.inuse=!1,this.rendering=!1}))})}_increaseRender(n,t){return ms(this,void 0,void 0,function*(){this.rendering=!0,yield this._renderIncrementalGroup(n,t)})}_renderIncrementalGroup(n,t){return ms(this,void 0,void 0,function*(){this.count=n.count,yield new Promise(e=>{this.renderItem(n,t,{drawingCb:()=>ms(this,void 0,void 0,function*(){if(n.count!==2)yield ak(n,Re.zIndex,(i,s)=>{if(this.status===_l.STOP)return!0;if(i.isContainer||s{this.global.getRequestAnimationFrame()(()=>{n(!1)})})})}checkForDraw(n){return ms(this,void 0,void 0,function*(){let t=this.rendering;return n.restartIncremental&&(t=!1,yield this.forceStop(),this.resetToInit()),t})}forceStop(){return ms(this,void 0,void 0,function*(){this.rendering&&(this.status=_l.STOP,yield new Promise(n=>{this.hooks.completeDraw.tap("stopCb",()=>{this.status=_l.NORMAL,this.hooks.completeDraw.taps=this.hooks.completeDraw.taps.filter(t=>t.name!=="stopCb"),n(!1)})}))})}resetToInit(){this.currFrameStartAt=0,this.currentIdx=0}renderGroup(n,t){return ms(this,void 0,void 0,function*(){if(!t.break&&n.attribute.visibleAll!==!1)return n.incremental&&t.startAtId===n._uid?(yield this._increaseRender(n,t),void(t.break=!0)):void(yield new Promise(e=>{this.renderItem(n,t,{drawingCb:()=>ms(this,void 0,void 0,function*(){yield ak(n,Re.zIndex,i=>ms(this,void 0,void 0,function*(){t.break||i.isContainer&&(yield this.renderGroup(i,t))})),e(!1)})})}))})}};ty=QW([pt(),zh(0,kE(ui)),zh(1,Rt(Cp)),zh(2,Rt(Pp)),zh(3,Rt(ii)),zh(3,ci(bp)),tG("design:paramtypes",[Array,Object,Object,Object])],ty);const eG=new kt(n=>{n(ou).toSelf().inSingletonScope(),n(sx).toSelf().inSingletonScope(),n(rx).to(wp),n(dR).to(ty),n(vA).to(Gv).inSingletonScope(),n(ui).toService(vA),Ti(n,sR),n(Nn).toSelf().inSingletonScope(),Ti(n,ex),Ti(n,ui),n(xp).toSelf().inSingletonScope(),n(bp).toService(xp),Ti(n,bp)});function iG(n){n.load(eG)}function Ep(){Ep.__loaded||(Ep.__loaded=!0,At.load(Uj),At.load(FW),At.load(PV),At.load(DW),At.load(HW),$W(At),iG(At))}Ep.__loaded=!1,Ep();const Et=At.get(Fb);q.global=Et;const nG=At.get(eR);q.graphicUtil=nG;const sG=At.get(tR);q.transformUtil=sG;const rG=At.get(ZE);q.graphicService=rG;const aG=At.get(Zb);q.layerService=aG;class oG{constructor(){this.name="AutoRenderPlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid,this.handleChange=t=>{t.glyphHost&&(t=t.glyphHost),t.stage===this.pluginService.stage&&t.stage!=null&&t.stage.renderNextFrame()}}activate(t){this.pluginService=t,q.graphicService.hooks.onAttributeUpdate.tap(this.key,this.handleChange),q.graphicService.hooks.onSetStage.tap(this.key,this.handleChange),q.graphicService.hooks.onRemove.tap(this.key,this.handleChange)}deactivate(t){const e=i=>i.filter(s=>s.name!==this.key);q.graphicService.hooks.onAttributeUpdate.taps=e(q.graphicService.hooks.onAttributeUpdate.taps),q.graphicService.hooks.onSetStage.taps=e(q.graphicService.hooks.onSetStage.taps),q.graphicService.hooks.onRemove.taps=e(q.graphicService.hooks.onRemove.taps)}}class lG{constructor(){this.name="AutoRefreshPlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid,this.handleChange=t=>{t.glyphHost&&(t=t.glyphHost),t.stage===this.pluginService.stage&&t.stage!=null&&t.stage.renderNextFrame()}}activate(t){this.pluginService=t,this.dpr=q.global.devicePixelRatio,this.refresh()}refresh(){this._refreshByMediaQuery()||this._refreshByRaf()}_refreshByRaf(){const t=q.global.getRequestAnimationFrame();this.rafId=t(()=>{q.global.devicePixelRatio!==this.dpr&&(this.dpr=q.global.devicePixelRatio,this.pluginService.stage.setDpr(this.dpr,!0)),this.refresh()})}_refreshByMediaQuery(){try{const t=`(resolution: ${window.devicePixelRatio}dppx)`,e=()=>{window.devicePixelRatio!==this.dpr&&(this.dpr=window.devicePixelRatio,this.pluginService.stage.setDpr(this.dpr,!0))};matchMedia(t).addEventListener("change",e)}catch{return!1}return!0}deactivate(t){const e=q.global.getCancelAnimationFrame();e&&this.rafId&&e(this.rafId)}}class hG{constructor(){this.name="IncrementalAutoRenderPlugin",this.activeEvent="onRegister",this.nextFrameRenderGroupSet=new Set,this.willNextFrameRender=!1,this.nextUserParams={},this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid}activate(t){this.pluginService=t,q.graphicService.hooks.onAddIncremental.tap(this.key,(e,i,s)=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&(this.nextUserParams.startAtId=i._uid,this.renderNextFrame(i))}),q.graphicService.hooks.onClearIncremental.tap(this.key,(e,i)=>{e.stage===t.stage&&e.stage!=null&&(this.nextUserParams.startAtId=e._uid,this.nextUserParams.restartIncremental=!0,this.renderNextFrame(e))})}deactivate(t){q.graphicService.hooks.onAddIncremental.taps=q.graphicService.hooks.onAddIncremental.taps.filter(e=>e.name!==this.key),q.graphicService.hooks.onClearIncremental.taps=q.graphicService.hooks.onClearIncremental.taps.filter(e=>e.name!==this.key)}renderNextFrame(t){this.nextFrameRenderGroupSet.add(t),this.willNextFrameRender||(this.willNextFrameRender=!0,q.global.getRequestAnimationFrame()(()=>{this._doRenderInThisFrame(),this.willNextFrameRender=!1}))}_doRenderInThisFrame(){const t=this.pluginService.stage;this.nextFrameRenderGroupSet.size&&(this.nextFrameRenderGroupSet.forEach(e=>{const i=e.layer;if(!i||!e.layer.subLayers)return;const s=e.layer.subLayers.get(e._uid);s&&s.drawContribution&&s.drawContribution.draw(t.renderService,Object.assign({stage:t,layer:i,viewBox:t.window.getViewBox(),transMatrix:t.window.getViewBoxTransform(),clear:"transparent",renderService:t.renderService,updateBounds:!1,startAtId:e._uid,context:s.layer.getNativeHandler().getContext()},this.nextUserParams))}),this.nextUserParams={},this.nextFrameRenderGroupSet.clear())}}const ok=new Oe;class dG{constructor(){this.name="DirtyBoundsPlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid}activate(t){this.pluginService=t,t.stage.hooks.afterRender.tap(this.key,e=>{e&&e===this.pluginService.stage&&e.dirtyBounds.clear()}),q.graphicService.hooks.beforeUpdateAABBBounds.tap(this.key,(e,i,s,r)=>{e.glyphHost&&(e=e.glyphHost),i&&i===this.pluginService.stage&&i.renderCount&&(e.isContainer&&!e.shouldSelfChangeUpdateAABBBounds()||s&&(ok.setValue(r.x1,r.y1,r.x2,r.y2),i.dirty(ok,e.parent&&e.parent.globalTransMatrix)))}),q.graphicService.hooks.afterUpdateAABBBounds.tap(this.key,(e,i,s,r,a)=>{i&&i===this.pluginService.stage&&i.renderCount&&(e.isContainer&&!a||i.dirty(r.globalAABBBounds))}),q.graphicService.hooks.onRemove.tap(this.key,e=>{const i=e.stage;i&&i===this.pluginService.stage&&i.renderCount&&i&&i.dirty(e.globalAABBBounds)})}deactivate(t){q.graphicService.hooks.beforeUpdateAABBBounds.taps=q.graphicService.hooks.beforeUpdateAABBBounds.taps.filter(e=>e.name!==this.key),q.graphicService.hooks.afterUpdateAABBBounds.taps=q.graphicService.hooks.afterUpdateAABBBounds.taps.filter(e=>e.name!==this.key),t.stage.hooks.afterRender.taps=t.stage.hooks.afterRender.taps.filter(e=>e.name!==this.key),q.graphicService.hooks.onRemove.taps=q.graphicService.hooks.onRemove.taps.filter(e=>e.name!==this.key)}}const dx=new oj;dx.addTimeline(UE);dx.setFPS(60);let nl;function cG(){if(nl==null)try{const n=document.createElement("canvas"),t=n.getContext("2d");nl=!!(window&&n.getBoundingClientRect&&requestAnimationFrame&&window.devicePixelRatio&&t&&t.isPointInPath&&t.isPointInStroke),nl&&(nl=!!document.createElement)}catch{nl=!1}}function cx(){cG();const n=q.global&&q.global.env;return n?n==="browser":nl}let Bn=class ey{static registerPlugin(t,e){ey._pluginClasses[t]=e}static getPlugin(t){return ey._pluginClasses[t]}};Bn._pluginClasses={};const lk={WIDTH:500,HEIGHT:500,X:0,Y:0,BACKGROUND:"white"};class uG extends xh{set viewBox(t){this.window.setViewBox(t)}get viewBox(){return this.window.getViewBox()}get x(){return this.window.getViewBox().x1}set x(t){const e=this.window.getViewBox();e.translate(t-e.x1,0),this.window.setViewBox(e)}get y(){return this.window.getViewBox().y1}set y(t){const e=this.window.getViewBox();e.translate(0,t-e.y1),this.window.setViewBox(e)}get width(){return this.window.width}set width(t){this.resize(t,this.height)}get viewWidth(){return this.window.getViewBox().width()}set viewWidth(t){this.resizeView(t,this.viewHeight)}get viewHeight(){return this.window.getViewBox().height()}set viewHeight(t){this.resizeView(this.viewWidth,t)}get height(){return this.window.height}set height(t){this.resize(this.width,t)}get dpr(){return this.window.dpr}set dpr(t){this.setDpr(t)}get background(){var t;return(t=this._background)!==null&&t!==void 0?t:lk.BACKGROUND}set background(t){this._background=t}get defaultLayer(){return this.at(0)}get eventSystem(){return this._eventSystem}constructor(t={}){var e;super({}),this._onVisibleChange=i=>{if(!(this._skipRender<0))if(i){if(this.dirtyBounds){const s=this.window.getViewBox();this.dirtyBounds.setValue(s.x1,s.y1,s.width(),s.height())}this._skipRender>1&&this.renderNextFrame(),this._skipRender=0}else this._skipRender=1},this.beforeRender=i=>{this._beforeRender&&this._beforeRender(i)},this.afterRender=i=>{this.renderCount++,this._afterRender&&this._afterRender(i),this._afterNextRenderCbs&&this._afterNextRenderCbs.forEach(s=>s(i)),this._afterNextRenderCbs=null},this.params=t,this.theme=new oc,this.hooks={beforeRender:new _n(["stage"]),afterRender:new _n(["stage"])},this.global=q.global,!this.global.env&&cx()&&this.global.setEnv("browser"),this.window=At.get(qg),this.renderService=At.get(uR),this.pluginService=At.get(kR),this.layerService=At.get(Zb),this.pluginService.active(this,t),this.window.create({width:t.width,height:t.height,viewBox:t.viewBox,container:t.container,dpr:t.dpr||this.global.devicePixelRatio,canvasControled:t.canvasControled!==!1,title:t.title||"",canvas:t.canvas}),this.state="normal",this.renderCount=0,this.tryInitEventSystem(),this._background=(e=t.background)!==null&&e!==void 0?e:lk.BACKGROUND,this.appendChild(this.layerService.createLayer(this,{main:!0})),this.nextFrameRenderLayerSet=new Set,this.willNextFrameRender=!1,this.stage=this,this.renderStyle=t.renderStyle,t.autoRender&&this.enableAutoRender(),t.autoRefresh&&this.enableAutoRefresh(),t.disableDirtyBounds===!1&&this.enableDirtyBounds(),t.enableHtmlAttribute&&this.enableHtmlAttribute(t.enableHtmlAttribute),t.ReactDOM&&this.enableReactAttribute(t.ReactDOM),t.enableLayout&&this.enableLayout(),this.hooks.beforeRender.tap("constructor",this.beforeRender),this.hooks.afterRender.tap("constructor",this.afterRender),this._beforeRender=t.beforeRender,this._afterRender=t.afterRender,this.ticker=t.ticker||dx,this.supportInteractiveLayer=t.interactiveLayer!==!1,this.timeline=new NE,this.ticker.addTimeline(this.timeline),this.timeline.pause(),t.optimize||(t.optimize={}),this.optmize(t.optimize),t.background&&tt(this._background)&&this._background.includes("/")&&this.setAttributes({background:this._background})}pauseRender(t=-1){this._skipRender=t}resumeRender(){this._skipRender=0}tryInitEventSystem(){this.global.supportEvent&&!this._eventSystem&&(this._eventSystem=new aj(Object.assign({targetElement:this.window,resolution:this.window.dpr||this.global.devicePixelRatio,rootNode:this,global:this.global,supportsPointerEvents:this.params.supportsPointerEvents,supportsTouchEvents:this.params.supportsTouchEvents},this.params.event)))}preventRender(t){t?this._skipRender=-1/0:this.params.optimize.skipRenderWithOutRange!==!1?this._skipRender=this.window.isVisible()?0:1:this._skipRender=0}optmize(t){this.optmizeRender(t.skipRenderWithOutRange),this.params.optimize=t}optmizeRender(t=!1){t&&(this._skipRender=this._skipRender<0?this._skipRender:this.window.isVisible()?0:1,this.window.onVisibleChange(this._onVisibleChange))}getTimeline(){return this.timeline}get3dOptions(t){const{center:e={x:this.width/2,y:this.height/2,z:0,dx:0,dy:0,dz:0},light:i={},alpha:s=0,beta:r=0,camera:a,fieldRatio:o=1,fieldDepth:l}=t;return Object.assign(Object.assign({},t),{center:e,light:i,alpha:s,beta:r,camera:a,fieldRatio:o,fieldDepth:l})}set3dOptions(t){var e,i,s,r,a,o;this.option3d=t;const l=this.get3dOptions(t),{light:h,center:d,camera:c,alpha:u,beta:g,fieldRatio:p,fieldDepth:_}=l,{dir:f=[1,1,-1],color:m="white",ambient:v}=h,y=((e=d.x)!==null&&e!==void 0?e:this.width/2)+((i=d.dx)!==null&&i!==void 0?i:0),b=((s=d.y)!==null&&s!==void 0?s:this.height/2)+((r=d.dy)!==null&&r!==void 0?r:0),x=[y,b,((a=d.z)!==null&&a!==void 0?a:0)+((o=d.dz)!==null&&o!==void 0?o:0)];let S=0,A=0,k=0;c||(S=Math.sin(u)+y,A=Math.sin(g)+b,k=Math.cos(u)*Math.cos(g)*1);const T=Bn.getPlugin("DirectionalLight");T&&(this.light=new T(f,m,v));const w={left:0,right:this.width,top:0,bottom:this.height,fieldRatio:p,fieldDepth:_,viewParams:{pos:[S,A,k],center:x,up:[0,1,0]}};if(this.camera)this.camera.params=w;else{const M=Bn.getPlugin("OrthoCamera");M&&(this.camera=new M(w))}t.enableView3dTransform&&this.enableView3dTransform()}setBeforeRender(t){this._beforeRender=t}setAfterRender(t){this._afterRender=t}afterNextRender(t){this._afterNextRenderCbs||(this._afterNextRenderCbs=[]),this._afterNextRenderCbs.push(t)}enableView3dTransform(){if(this.view3dTranform)return;this.view3dTranform=!0;const t=Bn.getPlugin("ViewTransform3dPlugin");t&&this.pluginService.register(new t)}disableView3dTranform(){this.view3dTranform&&(this.view3dTranform=!1,this.pluginService.findPluginsByName("ViewTransform3dPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableAutoRender(){this.autoRender||(this.autoRender=!0,this.pluginService.register(new oG))}disableAutoRender(){this.autoRender&&(this.autoRender=!1,this.pluginService.findPluginsByName("AutoRenderPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableAutoRefresh(){this.autoRefresh||(this.autoRefresh=!0,this.pluginService.register(new lG))}disableAutoRefresh(){this.autoRefresh&&(this.autoRefresh=!1,this.pluginService.findPluginsByName("AutoRefreshPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableIncrementalAutoRender(){this.increaseAutoRender||(this.increaseAutoRender=!0,this.pluginService.register(new hG))}disableIncrementalAutoRender(){this.increaseAutoRender&&(this.increaseAutoRender=!1,this.pluginService.findPluginsByName("IncrementalAutoRenderPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableDirtyBounds(){if(this.dirtyBounds)return;this.dirtyBounds=new wi;let t=this.pluginService.findPluginsByName("DirtyBoundsPlugin")[0];t?t.activate(this.pluginService):(t=new dG,this.pluginService.register(t))}disableDirtyBounds(){this.dirtyBounds&&(this.dirtyBounds=null,this.pluginService.findPluginsByName("DirtyBoundsPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableLayout(){if(this._enableLayout)return;this._enableLayout=!0;const t=Bn.getPlugin("FlexLayoutPlugin");t&&this.pluginService.register(new t)}disableLayout(){this._enableLayout&&(this._enableLayout=!1,this.pluginService.findPluginsByName("FlexLayoutPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableHtmlAttribute(t){if(this.htmlAttribute)return;const e=Bn.getPlugin("HtmlAttributePlugin");e&&(this.htmlAttribute=t,this.pluginService.register(new e))}disableHtmlAttribute(){this.htmlAttribute&&(this.htmlAttribute=!1,this.pluginService.findPluginsByName("HtmlAttributePlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableReactAttribute(t){if(this.reactAttribute)return;const e=Bn.getPlugin("ReactAttributePlugin");e&&(this.reactAttribute=t,this.pluginService.register(new e))}disableReactAttribute(){this.reactAttribute&&(this.reactAttribute=!1,this.pluginService.findPluginsByName("ReactAttributePlugin").forEach(t=>{this.pluginService.unRegister(t)}))}getPluginsByName(t){return this.pluginService.findPluginsByName(t)}tryUpdateAABBBounds(){const t=this.window.getViewBox();return this._AABBBounds.setValue(t.x1,t.y1,t.x2,t.y2),this._AABBBounds}combineLayer(t,e){throw new Error("暂不支持")}createLayer(t,e){if(this.releaseStatus==="released")return;const i=this.layerService.createLayer(this,{main:!1,layerMode:e,canvasId:t});return this.appendChild(i),i}sortLayer(t){const e=this.children;e.sort(t),this.removeAllChild(),e.forEach(i=>{this.appendChild(i)})}removeLayer(t){return this.removeChild(this.findChildByUid(t))}tryInitInteractiveLayer(){this.releaseStatus!=="released"&&this.supportInteractiveLayer&&!this.interactiveLayer&&(this.interactiveLayer=this.createLayer(),this.interactiveLayer.name="_builtin_interactive",this.interactiveLayer.attribute.pickable=!1,this.nextFrameRenderLayerSet.add(this.interactiveLayer))}clearViewBox(t){this.window.clearViewBox(t)}render(t,e){if(this.releaseStatus==="released")return;this.ticker.start(),this.timeline.resume();const i=this.state;this.state="rendering",this.layerService.prepareStageLayer(this),this._skipRender||(this.lastRenderparams=e,this.hooks.beforeRender.call(this),this._skipRender||(this.renderLayerList(this.children),this.combineLayersToWindow(),this.nextFrameRenderLayerSet.clear()),this.hooks.afterRender.call(this)),this.state=i,this._skipRender&&this._skipRender++}combineLayersToWindow(){if(this.global.env==="harmony"){const t=this.window.getContext().nativeContext;this.forEachChildren((e,i)=>{if(i>0){const s=e.getNativeHandler().getContext().canvas.nativeCanvas.nativeCanvas._c.transferToImageBitmap();t.transferFromImageBitmap(s)}})}}renderNextFrame(t,e){this.nextFrameRenderLayerSet.size!==this.childrenCount&&(t||this).forEach(i=>{this.nextFrameRenderLayerSet.add(i)}),this.willNextFrameRender||(this.willNextFrameRender=!0,this.global.getRequestAnimationFrame()(()=>{this._doRenderInThisFrame(),this.willNextFrameRender=!1}))}_doRenderInThisFrame(){if(this.releaseStatus==="released")return;this.timeline.resume(),this.ticker.start();const t=this.state;this.state="rendering",this.layerService.prepareStageLayer(this),this.nextFrameRenderLayerSet.size&&!this._skipRender&&(this.hooks.beforeRender.call(this),this._skipRender||(this.renderLayerList(Array.from(this.nextFrameRenderLayerSet.values()),this.lastRenderparams||{}),this.combineLayersToWindow(),this.nextFrameRenderLayerSet.clear()),this.hooks.afterRender.call(this)),this.state=t,this._skipRender&&this._skipRender++}renderLayerList(t,e){const i=[];for(let s=0;s{s.renderCount>this.renderCount||(s.renderCount=this.renderCount+1,s===this.interactiveLayer&&this.dirtyBounds&&this.dirtyBounds.clear(),s.render({renderService:this.renderService,background:s===this.defaultLayer?this.background:void 0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},Object.assign({renderStyle:this.renderStyle},e)))}),this.interactiveLayer&&!t.includes(this.interactiveLayer)&&(this.dirtyBounds&&this.dirtyBounds.clear(),this.interactiveLayer.render({renderService:this.renderService,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},Object.assign({renderStyle:this.renderStyle},e)))}resizeWindow(t,e,i=!0){this.window.resize(t,e),i&&this.render()}resize(t,e,i=!0){this.releaseStatus!=="released"&&(this.window.hasSubView()||this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+t,this.viewBox.y1+e),this.window.resize(t,e),this.forEachChildren(s=>{s.resize(t,e)}),this.camera&&this.option3d&&this.set3dOptions(this.option3d),i&&this.render())}resizeView(t,e,i=!0){this.releaseStatus!=="released"&&(this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+t,this.viewBox.y1+e),this.forEachChildren(s=>{s.resizeView(t,e)}),this.camera&&(this.camera.params=Object.assign(Object.assign({},this.camera.params),{right:this.width,bottom:this.height})),i&&this.render())}setViewBox(t,e,i,s,r){let a=!0;typeof t=="object"?(this.viewBox.setValue(t.x1,t.y1,t.x2,t.y2),e===!1&&(a=!1)):(this.viewBox.setValue(t,e,t+i,e+s),r===!1&&(a=!1)),this.forEachChildren(o=>{o.resizeView(this.viewBox.width(),this.viewBox.height())}),a&&this.render()}setDpr(t,e=!0){this.forEachChildren(i=>{i.setDpr(t)}),e&&this.render()}setOrigin(t,e){throw new Error("暂不支持")}export(t){throw new Error("暂不支持")}pick(t,e){if(this.releaseStatus==="released")return;const i=this.getPickerService().pick(this.children,new Ie(t,e),{bounds:this.AABBBounds});return!(!(i!=null&&i.graphic)&&!(i!=null&&i.group))&&i}startAnimate(t){throw new Error("暂不支持")}setToFrame(t){throw new Error("暂不支持")}release(){super.release(),this.hooks.beforeRender.unTap("constructor",this.beforeRender),this.hooks.afterRender.unTap("constructor",this.afterRender),this.eventSystem&&this.eventSystem.release(),this.layerService.releaseStage(this),this.pluginService.release(),this.forEach(t=>{t.release()}),this.interactiveLayer&&(this.interactiveLayer.forEachChildren(t=>{t.setStage&&t.setStage(null,null),this.interactiveLayer.removeChild(t)}),this.interactiveLayer.release()),this.window.release(),this.ticker.remTimeline(this.timeline),this.renderService.renderTreeRoots=[]}setStage(t){}dirty(t,e){this.releaseStatus!=="released"&&(e&&t.transformWithMatrix(e),this.dirtyBounds.empty()&&this.dirtyBounds.setValue(t.x1,t.y1,t.x2,t.y2),this.dirtyBounds.union(t))}getLayer(t){return this.children.filter(e=>e.name===t)[0]}renderTo(t){this.releaseStatus!=="released"&&this.forEachChildren((e,i)=>{e.drawTo(t,{renderService:this.renderService,viewBox:t.getViewBox(),transMatrix:t.getViewBoxTransform(),background:e===this.defaultLayer?this.background:void 0,clear:i===0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty())})})}renderToNewWindow(t=!0,e){if(this.releaseStatus==="released")return;const i=At.get(qg),s=e?-e.x1:0,r=e?-e.y1:0,a=e?e.x2:this.viewWidth,o=e?e.y2:this.viewHeight,l=e?e.width():this.viewWidth,h=e?e.height():this.viewHeight;return i.create({viewBox:{x1:s,y1:r,x2:a,y2:o},width:l,height:h,dpr:this.window.dpr,canvasControled:!0,offscreen:!0,title:""}),this.renderTo(i),i}toCanvas(t=!0,e){if(this.releaseStatus==="released")return;const i=this.renderToNewWindow(t,e).getNativeHandler();return i.nativeCanvas?i.nativeCanvas:null}setCursor(t){this._cursor=t,this.eventSystem.setCursor(t,"ignore")}getCursor(){return this._cursor}eventPointTransform(t){const e=this.global.mapToCanvasPoint(t,this.window.getContext().canvas.nativeCanvas);return this.stage.window.pointTransform(e.x,e.y)}pauseTriggerEvent(){this._eventSystem&&this._eventSystem.pauseTriggerEvent()}resumeTriggerEvent(){this._eventSystem&&this._eventSystem.resumeTriggerEvent()}getPickerService(){return this.pickerService||(this.pickerService=At.get(Ll)),this.pickerService}}function gG(n){return new uG(n)}const c0={WIDTH:500,HEIGHT:500,DPR:1};class ux{get displayWidth(){return this._pixelWidth/this._dpr}get displayHeight(){return this._pixelHeight/this._dpr}get id(){return this._id}get x(){return this._x}set x(t){this._x=t}get y(){return this._y}set y(t){this._y=t}get nativeCanvas(){return this._nativeCanvas}get width(){return this._pixelWidth}set width(t){this._pixelWidth=t,this._displayWidth=t/(this._dpr||1)}get height(){return this._pixelHeight}set height(t){this._pixelHeight=t,this._displayHeight=t/(this._dpr||1)}getContext(t){return this._context}get visiable(){return this._visiable}set visiable(t){this._visiable=t,t?this.show():this.hide()}get dpr(){return this._dpr}set dpr(t){this._dpr=t,this.resize(this._displayWidth,this._displayHeight)}constructor(t){var e;const{nativeCanvas:i,width:s=c0.WIDTH,height:r=c0.HEIGHT,dpr:a=c0.DPR,x:o,y:l,id:h,canvasControled:d=!0}=t;this._x=o??0,this._y=l??0,this._pixelWidth=s*a,this._pixelHeight=r*a,this._visiable=t.visiable!==!1,this.controled=d,this._displayWidth=s,this._displayHeight=r,this._dpr=a,this._nativeCanvas=i,this._id=(e=i.id)!==null&&e!==void 0?e:h,h&&(i.id=h),this.init(t)}getNativeCanvas(){return this._nativeCanvas}hide(){}show(){}applyPosition(){}resetStyle(t){}resize(t,e){}toDataURL(t,e){return""}readPixels(t,e,i,s){return this._context.getImageData(t,e,i,s)}convertToBlob(t){throw new Error("暂未实现")}transferToImageBitmap(){throw new Error("暂未实现")}release(...t){this.controled&&this._nativeCanvas.parentElement&&this._nativeCanvas.parentElement.removeChild(this._nativeCanvas)}}ux.env="browser";var pG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Rp=class{configure(n,...t){n.env===this.type&&n.setActiveEnvContribution(this)}getNativeAABBBounds(n){return new Oe}removeDom(n){return!1}createDom(n){return null}updateDom(n,t){return!1}getDynamicCanvasCount(){return 999}getStaticCanvasCount(){return 999}getElementById(n){return document.getElementById(n)}getRootElement(){return document.body}loadJson(n){const t=fetch(n).then(e=>e.json());return t.then(e=>({data:e,state:"success"})).catch(()=>({data:null,state:"fail"})),t}loadArrayBuffer(n){return fetch(n).then(t=>t.arrayBuffer()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadBlob(n){return fetch(n).then(t=>t.blob()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}getElementTop(n,t){return 0}getElementLeft(n,t){return 0}getElementTopLeft(n,t){return{top:0,left:0}}};Rp=pG([pt()],Rp);var _G=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},fG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Op=class{constructor(){this._uid=Je.GenAutoIncrementId(),this.viewBox=new Oe,this.modelMatrix=new Ee(1,0,0,1,0,0)}onChange(n){this._onChangeCb=n}configure(n,t){t.env===this.type&&n.setWindowHandler(this)}release(...n){this.releaseWindow()}isVisible(n){return!0}onVisibleChange(n){}getTopLeft(n){return{top:0,left:0}}setViewBox(n){this.viewBox.setValue(n.x1,n.y1,n.x2,n.y2)}getViewBox(){return this.viewBox}setViewBoxTransform(n,t,e,i,s,r){this.modelMatrix.setValue(n,t,e,i,s,r)}getViewBoxTransform(){return this.modelMatrix}};Op=_G([pt(),fG("design:paramtypes",[])],Op);class mG{constructor(t,e,i=.8){this.dir=t,this.color=e,this.colorRgb=je.Get(e,yn.Color1),this.ambient=i;const s=Wn(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);this.formatedDir=[t[0]/s,t[1]/s,t[2]/s]}computeColor(t,e){const i=this.formatedDir,s=_i(Ui((t[0]*i[0]+t[1]*i[1]+t[2]*i[2])*(1-this.ambient/2),0)+this.ambient,1);let r;r=tt(e)?je.Get(e,yn.Color1):e;const a=this.colorRgb;return`rgb(${a[0]*r[0]*s}, ${a[1]*r[1]*s}, ${a[2]*r[2]*s})`}}const gx=()=>{Bn.registerPlugin("DirectionalLight",mG)};class vG{set params(t){this._params=Object.assign({},t),this._projectionMatrixCached=this.forceGetProjectionMatrix(),this._viewMatrixCached=this.forceGetViewMatrix()}get params(){return Object.assign({},this._params)}constructor(t){this.params=t}getViewMatrix(){return this._viewMatrixCached||(this._viewMatrixCached=xe.allocate()),this._viewMatrixCached}forceGetViewMatrix(){this._viewMatrixCached||(this._viewMatrixCached=xe.allocate());const{pos:t,center:e,up:i}=this.params.viewParams;return iH(this._viewMatrixCached,t,e,i),this._vp||(this._vp=xe.allocate()),this._vp=vo(this._vp,this.getProjectionMatrix(),this.getViewMatrix()),this._viewMatrixCached}getProjectionMatrix(){return this._projectionMatrixCached||(this._projectionMatrixCached=xe.allocate()),this._projectionMatrixCached}forceGetProjectionMatrix(){this._projectionMatrixCached||(this._projectionMatrixCached=xe.allocate());const{left:t,top:e,right:i,bottom:s}=this._params;return nH(this._projectionMatrixCached,t,i,s,e,0,-2e6),this._vp||(this._vp=xe.allocate()),this._vp=vo(this._vp,this.getProjectionMatrix(),this.getViewMatrix()),this._projectionMatrixCached}getField(){const{fieldRatio:t=.8,fieldDepth:e,left:i,right:s}=this._params;return(e??s-i)*t}getProjectionScale(t){const e=this.getField();return e/(e+t)}view(t,e,i){const s=[0,0,0];return un(s,[t,e,i],this._viewMatrixCached),s}vp(t,e,i){const s=[0,0,0],{pos:r}=this._params.viewParams;un(s,[t,e,i],this._viewMatrixCached),t=s[0],e=s[1],i=s[2];const a=this.getProjectionScale(i);return{x:t*a+r[0],y:e*a+r[1]}}}const px=()=>{Bn.registerPlugin("OrthoCamera",vG)};var yG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},bG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},hk=function(n,t){return function(e,i){t(e,i,n)}};let iy=class{constructor(n){this.pickItemInterceptorContributions=n,this.type="default",this.global=q.global}_init(){this.InterceptorContributions=this.pickItemInterceptorContributions.getContributions().sort((n,t)=>n.order-t.order)}pick(n,t,e){let i={graphic:null,group:null};e.pickerService=this;const s=e.bounds.width(),r=e.bounds.height();if(!new Oe().setValue(0,0,s,r).containsPoint(t))return i;this.pickContext&&(this.pickContext.inuse=!0),e.pickContext=this.pickContext,this.pickContext&&this.pickContext.clearMatrix(!0,1);const a=new Ee(1,0,0,1,0,0);let o;for(let l=n.length-1;l>=0&&(i=n[l].isContainer?this.pickGroup(n[l],t,a,e):this.pickItem(n[l],t,a,e),!i.graphic);l--)o||(o=i.group);if(i.graphic||(i.group=o),this.pickContext&&(this.pickContext.inuse=!1),i.graphic){let l=i.graphic;for(;l.parent;)l=l.parent;l.shadowHost&&(i.params={shadowTarget:i.graphic},i.graphic=l.shadowHost)}return i}containsPoint(n,t,e){var i;return!!(!((i=this.pickItem(n,t,null,e??{pickContext:this.pickContext,pickerService:this}))===null||i===void 0)&&i.graphic)}pickGroup(n,t,e,i){let s={group:null,graphic:null};if(n.attribute.visibleAll===!1)return s;const r=i.pickContext,a=r.modelMatrix;if(r.camera){const g=n.transMatrix,p=xe.allocate();if(Fv(p,g),a){if(p){const _=xe.allocate();r.modelMatrix=vo(_,a,p),xe.free(p)}}else Fv(p,n.globalTransMatrix),r.modelMatrix=p}if(this.InterceptorContributions.length)for(let g=0;g{if(g.isContainer){const p=new Ie(t.x,t.y),_=Mt(n).group,{scrollX:f=_.scrollX,scrollY:m=_.scrollY}=n.attribute;p.x-=f,p.y-=m,s=this.pickGroup(g,p,l,i)}else{const p=new Ie(t.x,t.y);l.transformPoint(p,p);const _=Mt(n).group,{scrollX:f=_.scrollX,scrollY:m=_.scrollY}=n.attribute;p.x-=f,p.y-=m;const v=this.pickItem(g,p,e,i);v&&v.graphic&&(s.graphic=v.graphic,s.params=v.params)}return!!s.graphic||!!s.group},!0,!!r.camera),r.modelMatrix!==a&&xe.free(r.modelMatrix),r.modelMatrix=a,s.graphic||s.group||!u||n.stage.camera||(s.group=n),vn.free(l),s}selectPicker(n){return this.pickerMap.get(n.numberType)||null}};iy=yG([pt(),hk(0,Rt(ii)),hk(0,ci(pl)),bG("design:paramtypes",[Object])],iy);function xG(n,t){let e,i,s=n[0].x,r=n[0].y;const a=[n[0]];for(let o=1,l=n.length;ot&&(s=n[o].x,r=n[o].y,a.push(n[o]));return n[n.length-1].x===s&&n[n.length-1].y===r||a.push(n[n.length-1]),a}function SG(n,t,e){return n.length<=10?n:n=xG(n,t!==void 0?t*t:1)}let dk=!1;const AG=new kt(n=>{dk||(dk=!0,n(sp).toSelf().inSingletonScope(),n(cp).to(sp).inSingletonScope(),n(ui).toService(cp),n(Pv).toService(Nn),Ti(n,Pv))});let ck=!1;const kG=new kt(n=>{ck||(ck=!0,n(lp).toSelf().inSingletonScope(),n(mp).to(lp).inSingletonScope(),n(ui).toService(mp),n(np).toSelf(),n(ip).toSelf(),n(id).toService(np),n(id).toService(ip),n(id).toService(Nn),Ti(n,id))});let uk=!1;const TG=new kt(n=>{uk||(uk=!0,n(lc).toSelf().inSingletonScope(),n(Cp).toSelf().inSingletonScope(),n(pp).to(lc).inSingletonScope(),n(ui).toService(pp))});let gk=!1;const MG=new kt(n=>{gk||(gk=!0,n(hc).toSelf().inSingletonScope(),n(up).to(hc).inSingletonScope(),n(ui).toService(up),n(Ev).toService(Nn),Ti(n,Ev),n(Pp).toSelf().inSingletonScope())});let pk=!1;const wG=new kt(n=>{pk||(pk=!0,n(hp).toSelf().inSingletonScope(),n(vp).to(hp).inSingletonScope(),n(ui).toService(vp),n(Iv).toService(Nn),Ti(n,Iv))});let _k=!1;const CG=new kt(n=>{_k||(_k=!0,n(rp).toSelf().inSingletonScope(),n(gp).to(rp).inSingletonScope(),n(ui).toService(gp),n(Rv).toService(Nn),Ti(n,Rv))});let fk=!1;const PG=new kt(n=>{fk||(fk=!0,n(Yv).to(Vv).inSingletonScope(),n(ui).toService(Yv),n(Dv).toService(Nn),Ti(n,Dv))});let mk=!1;const EG=new kt(n=>{mk||(mk=!0,n(op).toSelf().inSingletonScope(),n(_p).to(op).inSingletonScope(),n(ui).toService(_p),n(Bv).toService(Nn),Ti(n,Bv))});let vk=!1;const RG=new kt(n=>{vk||(vk=!0,n(fp).to(Wv).inSingletonScope(),n(ui).toService(fp),n(Lv).toService(Nn),Ti(n,Lv))});var OG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let ny=class{constructor(){this.numberType=Nb}drawShape(n,t,e,i,s,r,a,o){s.drawContribution&&n.getSubGraphic().forEach(l=>{const h=s.drawContribution.getRenderContribution(l);h&&h.drawShape&&h.drawShape(l,t,e,i,s,r,a,o)})}draw(n,t,e,i){const{context:s}=e;if(!s||(s.highPerformanceSave(),!e.drawContribution))return;const r=Mt(n),a=n.getSubGraphic();a.length&&a.forEach(o=>{e.drawContribution.renderItem(o,e,{theme:r})}),s.highPerformanceRestore()}};ny=OG([pt()],ny);let yk=!1;const BG=new kt(n=>{yk||(yk=!0,n(yp).to(ny).inSingletonScope(),n(ui).toService(yp))});var LG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},IG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let sy=class extends Ki{constructor(){super(),this.numberType=Kb,this.builtinContributions=[lR],this.init()}drawShape(n,t,e,i,s){const r=Mt(n).richtext,{strokeOpacity:a=r.strokeOpacity,opacity:o=r.opacity,fillOpacity:l=r.fillOpacity,visible:h=r.visible}=n.attribute;if(!n.valid||!h)return;const d=mo(o,l,!0),c=mo(o,a,!0);d&&(t.translate(e,i),this.beforeRenderStep(n,t,e,i,d,c,d,c,r,s),n.getFrameCache().draw(t,this.drawIcon),this.afterRenderStep(n,t,e,i,d,c,d,c,r,s))}drawIcon(n,t,e,i,s){var r;const a=Mt(n).richtextIcon,{width:o=a.width,height:l=a.height,opacity:h=a.opacity,image:d,backgroundFill:c=a.backgroundFill,backgroundFillOpacity:u=a.backgroundFillOpacity,backgroundStroke:g=a.backgroundStroke,backgroundStrokeOpacity:p=a.backgroundStrokeOpacity,backgroundRadius:_=a.backgroundRadius,margin:f}=n.attribute,{backgroundWidth:m=o,backgroundHeight:v=l}=n.attribute;if(f&&(e+=n._marginArray[3],i+=n._marginArray[0]),n._hovered){const b=(m-o)/2,x=(v-l)/2;_===0?(t.beginPath(),t.rect(e-b,i-x,m,v)):(t.beginPath(),Ca(t,e-b,i-x,m,v,_)),c&&(t.globalAlpha=u,t.fillStyle=c,t.fill()),g&&(t.globalAlpha=p,t.strokeStyle=g,t.stroke())}const y=d&&((r=n==null?void 0:n.resources)===null||r===void 0?void 0:r.get(d));y&&y.state==="success"&&(t.globalAlpha=h,t.drawImage(y.data,e,i,o,l))}draw(n,t,e){const i=Mt(n).richtext;this._draw(n,i,!1,e)}};sy=LG([pt(),IG("design:paramtypes",[])],sy);let bk=!1;const DG=new kt(n=>{bk||(bk=!0,n(Xv).to(sy).inSingletonScope(),n(ui).toService(Xv))});let xk=!1;const FG=new kt(n=>{xk||(xk=!0,n(yA).to(Nv).inSingletonScope(),n(ui).toService(yA),n(Ov).toService(Nn),Ti(n,Ov))});class wR extends Ki{stroke(t,e,i,s,r){const a=s.vertices;s.edges.forEach(o=>{const l=a[o[0]],h={x:t+l[0],y:e+l[1],z:i+l[2]},d=a[o[1]],c={x:t+d[0],y:e+d[1],z:i+d[2]};r.beginPath(),r.moveTo(h.x,h.y,h.z),r.lineTo(c.x,c.y,c.z),r.stroke()})}fill(t,e,i,s,r,a,o,l,h,d,c){const u=je.Get(a,yn.Color255),g=s.vertices,p=g.map(f=>o.view(f[0],f[1],f[2])[2]),_=[];s.polygons.forEach((f,m)=>{if(r&&!r[m])return;_.push({faceIdx:m,polygon:f});const{polygon:v}=f,y=p[v[0]],b=p[v[1]],x=p[v[2]],S=p[v[3]];f.ave_z=y+b+x+S}),_.sort((f,m)=>m.polygon.ave_z-f.polygon.ave_z),_.forEach(f=>{const{polygon:m,normal:v}=f.polygon,y=g[m[0]],b=g[m[1]],x=g[m[2]],S=g[m[3]],A={x:t+y[0],y:e+y[1],z:i+y[2]},k={x:t+b[0],y:e+b[1],z:i+b[2]},T={x:t+x[0],y:e+x[1],z:i+x[2]},w={x:t+S[0],y:e+S[1],z:i+S[2]};o.beginPath(),o.moveTo(A.x,A.y,A.z),o.lineTo(k.x,k.y,k.z),o.lineTo(T.x,T.y,T.z),o.lineTo(w.x,w.y,w.z),o.closePath(),c?c(o,h&&h.attribute,d):(o.fillStyle=l?l.computeColor(v,u):a,o.fill())})}}var zG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let ry=class extends wR{constructor(){super(...arguments),this.type="rect3d",this.numberType=Xb}drawShape(n,t,e,i,s,r,a,o){var l;const h=Mt(n,r==null?void 0:r.theme).rect,{fill:d=h.fill,stroke:c=h.stroke,x1:u,y1:g,x:p,y:_,opacity:f=h.opacity,fillOpacity:m=h.fillOpacity,lineWidth:v=h.lineWidth,strokeOpacity:y=h.strokeOpacity,visible:b=h.visible}=n.attribute;let{width:x,height:S}=n.attribute;x=(x??u-p)||0,S=(S??g-_)||0;const A=(l=this.z)!==null&&l!==void 0?l:0,k=Jb(f,m,x,S,d),T=tx(f,y,x,S),w=Fo(d),M=Sh(c,v);if(!n.valid||!b||!w&&!M||!(k||T||a||o))return;const{light:R}=s.stage||{},O=n.findFace();if(d!==!1){t.setCommonStyle(n,n.attribute,e,i,h);let L=d;typeof L!="string"&&(L="black"),this.fill(e,i,A,O,null,L,t,R,null,null,a)}c!==!1&&(t.setStrokeStyle(n,n.attribute,e,i,h),this.stroke(e,i,A,O,t))}draw(n,t,e){const i=Mt(n).rect;this._draw(n,i,!1,e)}};ry=zG([pt()],ry);let Sk=!1;const jG=new kt(n=>{Sk||(Sk=!0,n($v).to(ry).inSingletonScope(),n(ui).toService($v))});var HG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function VG(n,t,e,i,s,r,a){const{startAngle:o,endAngle:l}=n.getParsedAngle(),h=Wt(l-o),d=l>o;let c=!1;if(r=jt-Kt)t.moveTo(e+r*fe(o),i+r*le(o),s),t.arc(e,i,r,o,l,!d,s),a>Kt&&(t.moveTo(e+a*fe(l),i+a*le(l),s),t.arc(e,i,a,l,o,d,s));else{const{outerDeltaAngle:u,innerDeltaAngle:g,outerStartAngle:p,outerEndAngle:_,innerEndAngle:f,innerStartAngle:m}=n.getParsePadAngle(o,l),v=r*fe(p),y=r*le(p),b=a*fe(f),x=a*le(f);u<.001?c=!0:(t.moveTo(e+v,i+y,s),t.arc(e,i,r,p,_,!d,s)),!(a>Kt)||g<.001?(t.lineTo(e+b,i+x,s),c=!0):(t.lineTo(e+b,i+x,s),t.arc(e,i,a,f,m,d,s))}return t.closePath(),c}function WG(n,t,e,i,s,r,a,o){const{startAngle:l,endAngle:h}=n.getParsedAngle(),d=Wt(h-l),c=h>l;let u=!1;if(a<=Kt)t.moveTo(e,i,s);else if(d>=jt-Kt)t.moveTo(e+a*fe(l),i+a*le(l),s),t.arc(e,i,a,l,h,!c,s),t.lineTo(e+a*fe(h),i+a*le(h),r),t.arc(e,i,a,h,l,c,r);else{const{innerouterDeltaAngle:g,innerouterStartAngle:p,innerouterEndAngle:_}=o(l,h),f=a*fe(p),m=a*le(p),v=a*fe(_),y=a*le(_);g<.001?u=!0:(t.moveTo(e+f,i+m,s),t.arc(e,i,a,p,_,!c,s),t.lineTo(e+v,i+y,r),t.arc(e,i,a,_,p,c,r))}return t.closePath(),u}let ay=class extends Ki{constructor(){super(...arguments),this.numberType=Tf}drawShape(n,t,e,i,s,r,a,o){var l;const h=Mt(n,r==null?void 0:r.theme).arc,{fill:d=h.fill}=n.attribute,c=this.valid(n,h,a,o);if(!c)return;const{fVisible:u,sVisible:g,doFill:p,doStroke:_}=c,f=(l=this.z)!==null&&l!==void 0?l:0,{outerPadding:m=h.outerPadding,innerPadding:v=h.innerPadding,height:y=10}=n.attribute;let{outerRadius:b=h.outerRadius,innerRadius:x=h.innerRadius}=n.attribute;b+=m,x-=v;const S=je.Get(d,yn.Color255),{light:A}=s.stage||{},k=s.hack_pieFace,T={top:f,bottom:f+y},w={top:[0,1,0],bottom:[0,-1,0],outside:[1,0,-1],inside:[1,0,-1]};k==="bottom"||k==="top"?(t.beginPath(),VG(n,t,e,i,T[k],b,x),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),p&&(a?a(t,n.attribute,h):u&&(t.setCommonStyle(n,n.attribute,e,i,h),t.fillStyle=A?A.computeColor(w[k],S):d,t.fill())),_&&(o?o(t,n.attribute,h):g&&(t.setStrokeStyle(n,n.attribute,e,i,h),t.stroke()))):k!=="outside"&&k!=="inside"||(k==="inside"&&(t.save(),t.beginPath(),t.arc(e,i,x,0,jt,!0,T.top),t.clip()),t.beginPath(),WG(n,t,e,i,T.top,T.bottom,k==="outside"?b:x,(M,R)=>{const{outerDeltaAngle:O,innerDeltaAngle:L,outerStartAngle:E,outerEndAngle:B,innerEndAngle:I,innerStartAngle:F}=n.getParsePadAngle(M,R);return k==="outside"?{innerouterDeltaAngle:O,innerouterEndAngle:B,innerouterStartAngle:E}:{innerouterDeltaAngle:L,innerouterEndAngle:I,innerouterStartAngle:F}}),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),p&&(a?a(t,n.attribute,h):u&&(t.setCommonStyle(n,n.attribute,e,i,h),t.fillStyle=A?A.computeColor(w[k],S):d,t.fill())),_&&(o?o(t,n.attribute,h):g&&(t.setStrokeStyle(n,n.attribute,e,i,h),t.stroke())),k==="inside"&&t.restore())}draw(n,t,e,i){const s=Mt(n,i==null?void 0:i.theme).arc;this._draw(n,s,!1,e,i)}};ay=HG([pt()],ay);let Ak=!1;const GG=new kt(n=>{Ak||(Ak=!0,n(Uv).to(ay).inSingletonScope(),n(ui).toService(Uv))});var NG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let oy=class extends wR{constructor(){super(...arguments),this.type="pyramid3d",this.numberType=$b}drawShape(n,t,e,i,s,r,a,o){var l;const h=Mt(n,r==null?void 0:r.theme).polygon,{fill:d=h.fill,stroke:c=h.stroke,face:u=[!0,!0,!0,!0,!0,!0]}=n.attribute,g=(l=this.z)!==null&&l!==void 0?l:0;if(!this.valid(n,h,a,o))return;const{light:p}=s.stage||{},_=n.findFace();if(d!==!1){t.setCommonStyle(n,n.attribute,e,i,h);let f=d;typeof f!="string"&&(f="black"),this.fill(e,i,g,_,u,f,t,p,n,h,a)}c!==!1&&(t.setStrokeStyle(n,n.attribute,e,i,h),this.stroke(e,i,g,_,t))}draw(n,t,e){const i=Mt(n).polygon;this._draw(n,i,!1,e)}};oy=NG([pt()],oy);let kk=!1;const UG=new kt(n=>{kk||(kk=!0,n(Kv).to(oy).inSingletonScope(),n(ui).toService(Kv))});function $G(){rt.RegisterGraphicCreator("arc",lx)}function YG(){rt.RegisterGraphicCreator("arc3d",xR)}function XG(){rt.RegisterGraphicCreator("area",bR)}function KG(){rt.RegisterGraphicCreator("circle",EV)}function qG(){rt.RegisterGraphicCreator("glyph",mR)}function ZG(){rt.RegisterGraphicCreator("group",qb)}function JG(){rt.RegisterGraphicCreator("image",ox)}function QG(){rt.RegisterGraphicCreator("line",ax)}function t5(){rt.RegisterGraphicCreator("path",yR)}function e5(){rt.RegisterGraphicCreator("polygon",SR)}function i5(){rt.RegisterGraphicCreator("pyramid3d",AR)}function n5(){rt.RegisterGraphicCreator("rect",hu)}function s5(){rt.RegisterGraphicCreator("rect3d",fR)}function r5(){rt.RegisterGraphicCreator("richtext",vR)}function a5(){rt.RegisterGraphicCreator("symbol",Bf)}function o5(){rt.RegisterGraphicCreator("text",Zl)}function l5(){rt.RegisterGraphicCreator("shadowRoot",IW)}class CR{constructor(){this.name="HtmlAttributePlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={},this.renderId=0}activate(t){this.pluginService=t,t.stage.hooks.afterRender.tap(this.key,e=>{e&&e===this.pluginService.stage&&this.drawHTML(t.stage.renderService)})}deactivate(t){t.stage.hooks.afterRender.taps=t.stage.hooks.afterRender.taps.filter(e=>e.name!==this.key),q.graphicService.hooks.onRemove.unTap(this.key),q.graphicService.hooks.onRelease.unTap(this.key),this.release()}getWrapContainer(t,e,i){let s;return s=e?typeof e=="string"?q.global.getElementById(e):e:t.window.getContainer(),{wrapContainer:q.global.createDom(Object.assign({tagName:"div",parent:s},i)),nativeContainer:s}}parseDefaultStyleFromGraphic(t){const e=t.type==="text"&&t.attribute?t.attribute:Mt(t).text;return Zj(e)}getTransformOfText(t){const e=Mt(t).text,{textAlign:i=e.textAlign,textBaseline:s=e.textBaseline}=t.attribute,r=t.globalTransMatrix.toTransformAttrs(),{rotateDeg:a,scaleX:o,scaleY:l}=r,h={left:"0",start:"0",end:"-100%",center:"-50%",right:"-100%",top:"0",middle:"-50%",bottom:"-100%",alphabetic:"-79%"},d={left:"0",start:"0",end:"100%",center:"50%",right:"100%",top:"0",middle:"50%",bottom:"100%",alphabetic:"79%"};return{textAlign:i,transform:`translate(${h[i]},${h[s]}) rotate(${a}deg) scaleX(${o}) scaleY(${l})`,transformOrigin:`${d[i]} ${d[s]}`}}updateStyleOfWrapContainer(t,e,i,s,r){const{pointerEvents:a}=r;let o=this.parseDefaultStyleFromGraphic(t);o.display=t.attribute.visible!==!1?"block":"none",o.pointerEvents=a===!0?"all":a||"none",i.style.position||(i.style.position="absolute",s.style.position="relative");let l=0,h=0;const d=t.globalAABBBounds;let c=r.anchorType;if(P(c)&&(c=t.type==="text"?"position":"boundsLeftTop"),c==="boundsLeftTop"&&(c="top-left"),c==="position"||d.empty()){const m=t.globalTransMatrix;l=m.e,h=m.f}else{const m=xP(d,c);l=m.x,h=m.y}const u=q.global.getElementTopLeft(s,!1),g=e.window.getTopLeft(!1),p=e.viewBox,_=l+g.left-u.left+p.x1,f=h+g.top-u.top+p.y1;if(o.left=`${_}px`,o.top=`${f}px`,t.type==="text"&&c==="position"&&(o=Object.assign(Object.assign({},o),this.getTransformOfText(t))),N(r.style)){const m=r.style({top:f,left:_,width:d.width(),height:d.height()},t,i);m&&(o=Object.assign(Object.assign({},o),m))}else yt(r.style)?o=Object.assign(Object.assign({},o),r.style):tt(r.style)&&r.style&&(o=Object.assign(Object.assign({},o),q2(r.style)));q.global.updateDom(i,{width:r.width,height:r.width,style:o})}clearCacheContainer(){this.htmlMap&&Object.keys(this.htmlMap).forEach(t=>{this.htmlMap[t]&&this.htmlMap[t].renderId!==this.renderId&&this.removeElement(t)}),this.renderId+=1}drawHTML(t){q.global.env==="browser"&&(t.renderTreeRoots.sort((e,i)=>{var s,r;return((s=e.attribute.zIndex)!==null&&s!==void 0?s:Re.zIndex)-((r=i.attribute.zIndex)!==null&&r!==void 0?r:Re.zIndex)}).forEach(e=>{this.renderGroupHTML(e)}),this.clearCacheContainer())}renderGroupHTML(t){this.renderGraphicHTML(t),t.forEachChildren(e=>{e.isContainer?this.renderGroupHTML(e):this.renderGraphicHTML(e)})}removeElement(t){if(!this.htmlMap||!this.htmlMap[t])return;const{wrapContainer:e}=this.htmlMap[t];e&&q.global.removeDom(e),this.htmlMap[t]=null}renderGraphicHTML(t){var e;const{html:i}=t.attribute;if(!i)return;const s=t.stage;if(!s)return;const{dom:r,container:a}=i;if(!r)return;const o=P(i.id)?`${(e=t.id)!==null&&e!==void 0?e:t._uid}_react`:i.id;if(this.htmlMap&&this.htmlMap[o]&&a&&a!==this.htmlMap[o].container&&this.removeElement(o),this.htmlMap&&this.htmlMap[o])typeof r=="string"?this.htmlMap[o].wrapContainer.innerHTML=r:r!==this.htmlMap[o].wrapContainer.firstChild&&(this.htmlMap[o].wrapContainer.removeChild(this.htmlMap[o].wrapContainer.firstChild),this.htmlMap[o].wrapContainer.appendChild(r));else{const{wrapContainer:d,nativeContainer:c}=this.getWrapContainer(s,a);d&&(typeof r=="string"?d.innerHTML=r:d.appendChild(r),this.htmlMap||(this.htmlMap={}),this.htmlMap[o]={wrapContainer:d,nativeContainer:c,container:a,renderId:this.renderId})}if(!this.htmlMap||!this.htmlMap[o])return;const{wrapContainer:l,nativeContainer:h}=this.htmlMap[o];this.updateStyleOfWrapContainer(t,s,l,h,i),this.htmlMap[o].renderId=this.renderId}release(){q.global.env==="browser"&&this.removeAllDom(this.pluginService.stage.defaultLayer)}removeAllDom(t){this.htmlMap&&(Object.keys(this.htmlMap).forEach(e=>{this.removeElement(e)}),this.htmlMap=null)}}const h5=()=>{Bn.registerPlugin("HtmlAttributePlugin",CR)};class d5 extends CR{constructor(){super(...arguments),this.name="ReactAttributePlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={}}removeElement(t){if(!this.htmlMap||!this.htmlMap[t])return;const{root:e,wrapContainer:i,unmount:s}=this.htmlMap[t];e?q.global.getRequestAnimationFrame()(()=>{e.unmount()}):s&&s(),i&&q.global.removeDom(i),this.htmlMap[t]=null}renderGraphicHTML(t){var e;const{react:i}=t.attribute;if(!i)return;const s=t.stage;if(!s)return;const r=s.params.ReactDOM,{element:a,container:o}=i;if(!a||!r||!r.createRoot&&!r.render)return;const l=P(i.id)?`${(e=t.id)!==null&&e!==void 0?e:t._uid}_react`:i.id;if(this.htmlMap&&this.htmlMap[l]&&o&&o!==this.htmlMap[l].container&&this.removeElement(l),this.htmlMap&&this.htmlMap[l])r.createRoot?this.htmlMap[l].root.render(a):r.render(a,this.htmlMap[l].wrapContainer);else{const{wrapContainer:c,nativeContainer:u}=this.getWrapContainer(s,o);if(c)if(this.htmlMap||(this.htmlMap={}),r.createRoot){const g=r.createRoot(c);g.render(a),this.htmlMap[l]={root:g,wrapContainer:c,nativeContainer:u,container:o,renderId:this.renderId}}else r.render(a,c),this.htmlMap[l]={wrapContainer:c,nativeContainer:u,container:o,renderId:this.renderId,unmount:()=>{r.unmountComponentAtNode(c)}}}if(!this.htmlMap||!this.htmlMap[l])return;const{wrapContainer:h,nativeContainer:d}=this.htmlMap[l];this.updateStyleOfWrapContainer(t,s,h,d,i),this.htmlMap[l].renderId=this.renderId}}const c5=()=>{Bn.registerPlugin("ReactAttributePlugin",d5)};class u5{constructor(){this.name="ViewTransform3dPlugin",this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.key=this.name+this._uid,this.onMouseDown=t=>{this.option3d||(this.option3d=this.pluginService.stage.option3d),this.option3d&&(this.mousedown=!0,this.pageX=t.page.x,this.pageY=t.page.y)},this.onMouseUp=t=>{this.option3d||(this.option3d=this.pluginService.stage.option3d),this.option3d&&(this.mousedown=!1)},this.onMouseMove=t=>{var e,i;const s=this.pluginService.stage;if(this.option3d||(this.option3d=s.option3d),this.option3d&&this.mousedown)if(this.pageX&&this.pageY){const r=t.page.x-this.pageX,a=t.page.y-this.pageY;this.pageX=t.page.x,this.pageY=t.page.y;const o=r/100,l=a/100;this.option3d.alpha=((e=this.option3d.alpha)!==null&&e!==void 0?e:0)+o,this.option3d.beta=((i=this.option3d.beta)!==null&&i!==void 0?i:0)+l,s.set3dOptions(this.option3d),s.renderNextFrame()}else this.pageX=t.page.x,this.pageY=t.page.y}}activate(t){this.pluginService=t;const e=t.stage;this.option3d=e.option3d,e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mousemove",this.onMouseMove)}deactivate(t){const e=t.stage;e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mousemove",this.onMouseMove)}}const g5=()=>{Bn.registerPlugin("ViewTransform3dPlugin",u5)};function ly(n){const t=[];for(let e=0;e(N(Bp.warnHandler)&&Bp.warnHandler.call(null,n,t),Ot.getInstance().warn(`[VChart warn]: ${n}`)),vc=(n,t,e)=>{{if(!N(Bp.errorHandler))throw new Error(n);Bp.errorHandler.call(null,n,t)}},Bp={silent:!1,warnHandler:!1,errorHandler:!1},PR=cx(),Gr=PR&&globalThis?globalThis.document:void 0;function ls(n){return(n==="desktop-browser"||n==="mobile-browser")&&PR}function xa(n){return Pa(n)||n==="mobile-browser"}function Pa(n){return n.includes("miniApp")||n==="lynx"||n==="wx"||n==="harmony"}let u0=0;function jo(){return u0>=9999999&&(u0=0),u0++}function ih(n){return n!=null&&n!==""&&(!!J(n)||+n==+n)}function p5(n){if(H(n))return n;const t=+n;return H(t)?t:0}function fl(n){return!(!n||n.length===0)&&!P(n[0])&&!P(n[0].dataId)&&U(n[0].fields)}const _5=(n,t,e)=>(n.fields=t||[],n.fname=e,n),f5=n=>t=>wt(t,n),m5=n=>n,v5=n=>0,so=n=>{Ot.getInstance().error(n)},y5=n=>{const t=[],e=n.length;let i,s,r,a=null,o=0,l="";n+="";const h=()=>{t.push(l+n.substring(i,s)),l="",i=s+1};for(i=0,s=0;si&&h(),i=s+1,o=i):r==="]"&&(o||so("Access path missing open bracket: "+n),o>0&&h(),o=0,i=s+1):s>i?h():i=s+1}return o&&so("Access path missing closing bracket: "+n),a&&so("Access path missing closing quote: "+n),s>i&&(s+=1,h()),t},Tk=(n,t,e={})=>{if(N(n))return n;const i=y5(n),s=i.length===1?i[0]:n;return _5((e&&e.get||f5)(i),[s],s)},Ds=(n,t,e={})=>{if(U(n)){const i=n.map(s=>Tk(s,t,e));return s=>i.map(r=>r(s))}return Tk(n,t,e)},Mk=(n,t)=>{const e=N(t)?t:r=>r;let i,s;if(n&&n.length){const r=n.length;for(let a=0;aP(n)?t:tt(n)?t*parseFloat(n)/100:n;function b5(n,t,e,i){const s=i-n*n,r=Math.abs(s)<1e-24?0:(e-n*t)/s;return[t-r*n,r]}function ER(n,t,e,i){let s,r,a=-1;n.forEach(o=>{s=t(o),r=e(o),!P(s)&&(s=+s)>=s&&!P(r)&&(r=+r)>=r&&i(s,r,++a)})}function x5(n,t,e,i,s){let r=0,a=0;return ER(n,t,e,(o,l)=>{const h=l-s(o),d=l-i;r+=h*h,a+=d*d}),1-r/a}function S5(n,t=i=>i.x,e=i=>i.y){let i=0,s=0,r=0,a=0,o=0;ER(n,t,e,(d,c)=>{++o,i+=(d-i)/o,s+=(c-s)/o,r+=(d*c-r)/o,a+=(d*d-a)/o});const l=b5(i,s,r,a),h=d=>l[0]+l[1]*d;return{coef:l,predict:h,rSquared:x5(n,t,e,s,h)}}function Ai(n){return n==="horizontal"}function wk(n){return n==="vertical"}const g0={triangleForward:M5,triangleUpright:Ck,triangle:Ck,diamond:A5,square:T5,star:k5,cardioid:w5,circle:C5,pentagon:P5};function A5(){return function(n){const t=n%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))}}function k5(){return function(n){const t=(n+.955)%(2*Math.PI/10);return(n+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}function T5(){return function(n){return Math.min(1/Math.abs(Math.cos(n)),1/Math.abs(Math.sin(n)))}}function Ck(){return function(n){const t=(n+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function M5(){return function(n){const t=n%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function w5(){return function(n){return 1+Math.sin(n)}}function C5(){return function(){return 1}}function P5(){return function(n){const t=(n+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))}}function _x(n,t){const e=t[0],i=t[1];let s=1;const r=[t[0]>>1,t[1]>>1];switch(n){case"cardioid":r[1]=~~(i/2.7*.4),s=Math.floor(Math.min(e/2.3,i/2.6));break;case"triangleForward":s=i/Math.sqrt(.75)>e?Math.floor(e/2):Math.floor(i/(2*Math.sqrt(.75)));break;case"triangle":case"triangleUpright":r[1]=~~(i/1.5),s=Math.floor(Math.min(i/1.5,e/2));break;case"circle":case"diamond":case"square":case"star":case"pentagon":s=Math.floor(Math.min(e/2,i/2));break;default:s=Math.floor(Math.max(e/2,i/2))}return{maxRadius:s,center:r}}const RR=n=>g0[n]?g0[n]():g0.circle(),hy=n=>{if(!n||n==="#fff")return(i,s,r)=>{const a=i.width;return i.data[s*a*4+4*r+3]===0||i.data[s*a*4+4*r+0]===255&&i.data[s*a*4+4*r+1]===255&&i.data[s*a*4+4*r+2]===255};const t=Et.createCanvas({width:1,height:1}).getContext("2d",{willReadFrequently:!0});t.fillStyle=n,t.fillRect(0,0,1,1);const e=t.getImageData(0,0,1,1).data;return(i,s,r)=>{const a=i.width;return[0,1,2,3].every(o=>i.data[4*(s*a+r)+o]===e[o])}},OR=(n,t,e,i)=>{const{backgroundColor:s="#fff"}=n,r=Et.createCanvas({width:t,height:e,dpr:1}),a=r.getContext("2d",{willReadFrequently:!0});return a.fillStyle=s,a.fillRect(0,0,r.width,r.height),n.type==="text"?E5(n,r.width,r.height,a):n.type==="geometric"&&B5(n,r.width,r.height,a),r},E5=(n,t,e,i)=>{const{fontFamily:s="sans-serif",fontWeight:r="normal",fontStyle:a="normal",fontVariant:o="normal",fill:l,text:h,hollow:d}=n;let c=12;i.font=`${a} ${o} ${r} ${c}px ${s}`,i.textAlign="center",i.textBaseline="middle",i.fillStyle=l??"black";const u=i.measureText(h),g=a!=="normal"?1.1:1,p=C(u.actualBoundingBoxRight)&&C(u.actualBoundingBoxLeft)?Math.ceil(g*(Math.abs(u.actualBoundingBoxRight)+Math.abs(u.actualBoundingBoxLeft))):0,_=Math.max(Math.ceil(u.width),p,c);if(d&&(i.globalCompositeOperation="xor"),_>t){const f=Math.min(t/_,e/c);i.fillText(h,t/2,e/2),i.scale(f,f)}else c=Math.floor(c*t/_),c=Math.min(c,e),i.font=`${a} ${o} ${r} ${c}px ${s}`,i.fillText(h,Math.floor(t/2),Math.floor(e/2))},za=(n,t,e=0,i)=>{const s=2*Math.PI/i;return new Array(i).fill(0).map((r,a)=>ue(n,t,e+a*s))},R5=(n,t,e=0,i)=>{const s=2*Math.PI/i,r=RR("cardioid");return new Array(i).fill(0).map((a,o)=>{const l=e+o*s,h=t*r(l);return ue(n,h,l)})},Ko=(n,t)=>{n.beginPath(),t.forEach((e,i)=>{i===0?n.moveTo(e.x,e.y):n.lineTo(e.x,e.y)}),n.closePath(),n.fill()},O5=(n,t)=>{let e;n.beginPath(),t.forEach((i,s)=>{s===0?n.moveTo(i.x,i.y):n.bezierCurveTo(i.x,i.y,e.x,e.y,i.x,i.y),e=i}),n.closePath(),n.fill()},B5=(n,t,e,i)=>{const{fill:s,hollow:r}=n,{center:a,maxRadius:o}=_x(n.shape,[t,e]);i.fillStyle=s??"black",r&&(i.globalCompositeOperation="xor");const l=a[0],h=a[1];if(n.shape==="cardioid")O5(i,R5({x:l,y:h},o,0,100));else if(n.shape==="circle")i.beginPath(),i.arc(l,h,o,0,2*Math.PI,!0),i.fill();else if(n.shape==="diamond")Ko(i,za({x:l,y:h},o,-Math.PI/2,4));else if(n.shape==="square")Ko(i,za({x:l,y:h},o,-Math.PI/4,4));else if(n.shape==="pentagon")Ko(i,za({x:l,y:h},o,Math.PI/2,5));else if(n.shape==="triangle"||n.shape==="triangleUpright")Ko(i,za({x:l,y:h},o,-Math.PI/2,3));else if(n.shape==="triangleForward")Ko(i,za({x:l,y:h},o,0,3));else if(n.shape==="star"){const d=za({x:l,y:h},o,-Math.PI/2,5),c=za({x:l,y:h},o/(2*Math.cos(Math.PI/5)),-Math.PI/2+Math.PI/5,5),u=[];for(let g=0;g<5;g++)u.push(d[g]),u.push(c[g]);Ko(i,u)}else i.fillRect(0,0,t,e)},Pk=["x","y","dx","dy","scaleX","scaleY","angle","anchor","postMatrix","visible","clip","pickable","childrenPickable","zIndex","cursor"];class li extends xh{constructor(t,e){super(t),e!=null&&e.mode&&(this.mode=e.mode,this.setMode(e.mode)),e!=null&&e.skipDefault&&(this.skipDefault=!0),this.setTheme({common:{strokeBoundsBuffer:0}}),this.attribute=t,this.onSetStage(()=>{this.render(),this.bindEvents()})}setAttribute(t,e,i){Ls(this.attribute[t])&&Ls(e)&&!N(this.attribute[t])&&!N(e)?$(this.attribute[t],e):this.attribute[t]=e,Pk.includes(t)||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!i&&!this.needUpdateTag(t)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}setAttributes(t,e){const i=Object.keys(t);this._mergeAttributes(t,i),i.every(s=>Pk.includes(s))||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!e&&!this.needUpdateTags(i)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}_mergeAttributes(t,e){P(e)&&(e=Object.keys(t));for(let i=0;i{const e=t.x-n.x,i=t.y-n.y;return Math.abs(e)>Math.abs(i)?e>0?"right":"left":i>0?"down":"up"},ng=(n,t)=>{const e=Math.abs(t.x-n.x),i=Math.abs(t.y-n.y);return Math.sqrt(e*e+i*i)},L5=n=>{const t=n.length;if(t===1)return{x:Math.round(n[0].x),y:Math.round(n[0].y)};let e=0,i=0,s=0;for(;s{this.cachedEvents=[],this.startPoints=[],this.reset(),this.startTime=Za.now();const{cachedEvents:p,startPoints:_}=this;g&&p.push(g.clone()),_.length=p.length;for(let f=0;f{f.direction="none",f.deltaX=0,f.deltaY=0,f.points=_,this.triggerStartEvent("press",f),this.triggerEvent("press",f),this.eventType="press",this.direction="none",this.pressTimeout=null},this.config.press.time)}},this.onMove=g=>{this.clearPressTimeout();const{startPoints:p,cachedEvents:_}=this;if(!p.length)return;const f=g.clone(),{x:m,y:v,pointerId:y}=f;for(let T=0,w=_.length;T({x:T.x,y:T.y})),S=Za.now();if(this.prevMoveTime=this.lastMoveTime,this.prevMovePoint=this.lastMovePoint,this.lastMoveTime=S,this.lastMovePoint=b,p.length===1){const T=p[0],w=m-T.x,M=v-T.y,R=this.direction||iT(T,b);this.direction=R;const O=this.getEventType(b);return f.direction=R,f.deltaX=w,f.deltaY=M,f.points=x,this.triggerStartEvent(O,f),void this.triggerEvent(O,f)}const{startDistance:A}=this,k=ng(x[0],x[1]);f.scale=k/A,f.center=this.center,f.points=x,this.triggerStartEvent("pinch",f),this.triggerEvent("pinch",f)},this.onEnd=g=>{const p=g.clone(),{cachedEvents:_,startPoints:f}=this,m=_.map(v=>({x:v.x,y:v.y}));if(p.points=m,this.triggerEndEvent(p),_.length===1){const v=Za.now(),y=this.lastMoveTime;if(v-y<100){const b=y-(this.prevMoveTime||this.startTime);if(b>0){const x=this.prevMovePoint||f[0],S=this.lastMovePoint||f[0],A=ng(x,S),k=A/b;if(k>this.config.swipe.velocity&&A>this.config.swipe.threshold)return p.velocity=k,p.direction=iT(x,S),this.triggerEvent("swipe",p),this.cachedEvents=[],this.startPoints=[],void this.reset()}}v-this.startTime0&&this.onStart()},this.element=t,this.tapCount=0,this.lastTapTime=0,this.config={press:{time:(s=(i=e==null?void 0:e.press)===null||i===void 0?void 0:i.time)!==null&&s!==void 0?s:251,threshold:(a=(r=e==null?void 0:e.press)===null||r===void 0?void 0:r.threshold)!==null&&a!==void 0?a:9},swipe:{threshold:(l=(o=e==null?void 0:e.swipe)===null||o===void 0?void 0:o.threshold)!==null&&l!==void 0?l:10,velocity:(d=(h=e==null?void 0:e.swipe)===null||h===void 0?void 0:h.velocity)!==null&&d!==void 0?d:.3},tap:{interval:(u=(c=e==null?void 0:e.tap)===null||c===void 0?void 0:c.interval)!==null&&u!==void 0?u:300}},this.initEvents()}initEvents(){const{element:t}=this;t&&(t.addEventListener("pointerdown",this.onStart),t.addEventListener("pointermove",this.onMove),t.addEventListener("pointerup",this.onEnd),t.addEventListener("pointerupoutside",this.onEnd))}removeEvents(){const{element:t}=this;t&&(t.removeEventListener("pointerdown",this.onStart),t.removeEventListener("pointermove",this.onMove),t.removeEventListener("pointerup",this.onEnd),t.removeEventListener("pointerupoutside",this.onEnd))}release(){this.removeEvents(),this.element=null}getEventType(t){const{eventType:e,startTime:i,startPoints:s}=this;if(e==="press")return e;let r;return r=Za.now()-i>this.config.press.time&&ng(s[0],t){q.global.getCancelAnimationFrame()(this.throttleTimer),this.throttleTimer=null;for(let r=0,a=s.length;r{this.triggerEvent(`${i}end`,t),i==="press"&&this.triggerEvent(`${i}up`,t),delete e[i]})}emitEvent(t,e){const i=this.element._events[GE];if(i)if("fn"in i)i.fn.call(i.context,e,t);else for(let s=0,r=i.length;s=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},F5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const Lt=[0,0,0],z5=(n,t,e,i,s,r,a,o)=>{if(o)for(;e>t;)e-=jt;else for(;et?1:-1);let h=t,d=h;for(;d!==e;){d=l>0?Math.min(d+l,e):Math.max(d+l,e);const c=Math.abs(d-h),u=4*Math.tan(c/4)/3,g=d0&&(vn.free(this.matrix),this.matrix=this.stack.pop(),this.setTransformForCurrent(!0))}highPerformanceRestore(){this.stack.length>0&&(vn.free(this.matrix),this.matrix=this.stack.pop())}rotate(n,t=!0){this.matrix.rotate(n),t&&this.setTransformForCurrent()}save(){const n=this.cloneMatrix(this.matrix);this.stack.push(n),this.nativeContext.save()}highPerformanceSave(){const n=this.cloneMatrix(this.matrix);this.stack.push(n)}scale(n,t,e=!0){this.matrix.scale(n,t),e&&this.setTransformForCurrent()}setScale(n,t,e=!0){this.matrix.setScale(n,t),e&&this.setTransformForCurrent()}scalePoint(n,t,e,i,s=!0){this.translate(e,i,!1),this.scale(n,t,!1),this.translate(-e,-i,!1),s&&this.setTransformForCurrent()}setTransform(n,t,e,i,s,r,a=!0,o=this.dpr){this.matrix.setValue(o*n,o*t,o*e,o*i,o*s,o*r),a&&this.setTransformForCurrent()}setTransformFromMatrix(n,t=!0,e=this.dpr){this.matrix.setValue(n.a*e,n.b*e,n.c*e,n.d*e,n.e*e,n.f*e),t&&this.setTransformForCurrent()}resetTransform(n=!0,t=this.dpr){this.setTransform(t,0,0,t,0,0),n&&this.setTransformForCurrent()}transform(n,t,e,i,s,r,a=!0){this.matrix.multiply(n,t,e,i,s,r),a&&this.setTransformForCurrent()}transformFromMatrix(n,t){this.matrix.multiply(n.a,n.b,n.c,n.d,n.e,n.f),t&&this.setTransformForCurrent()}translate(n,t,e=!0){this.matrix.translate(n,t),e&&this.setTransformForCurrent()}rotateDegrees(n,t=!0){const e=n*Math.PI/180;this.rotate(e,t)}rotateAbout(n,t,e,i=!0){this.translate(t,e,!1),this.rotate(n,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}rotateDegreesAbout(n,t,e,i=!0){this.translate(t,e,!1),this.rotateDegrees(n,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}beginPath(){this.disableBeginPath||this.nativeContext.beginPath()}clip(n,t){n?typeof n=="string"?this.nativeContext.clip(n):this.nativeContext.clip(n,t):this.nativeContext.clip()}arc(n,t,e,i,s,r,a){if(a=a||0,this.camera){const o=[];z5(o,i,s,n,t,e,e,r);for(let l=0;lthis.canvas.nativeCanvas));const s=(e=this.fontFamily)!==null&&e!==void 0?e:Is.fontFamily,r=(i=this.fontSize)!==null&&i!==void 0?i:Is.fontSize;return this.mathTextMeasure.textSpec.fontFamily===s&&this.mathTextMeasure.textSpec.fontSize===r||(this.mathTextMeasure.textSpec.fontFamily=s,this.mathTextMeasure.textSpec.fontSize=r,this.mathTextMeasure._numberCharSize=null,this.mathTextMeasure._fullCharSize=null,this.mathTextMeasure._letterCharSize=null,this.mathTextMeasure._specialCharSizeMap={}),this.mathTextMeasure.measure(n,t)}putImageData(n,t,e){this.nativeContext.putImageData(n,t,e)}setLineDash(n){const t=arguments,e=this.nativeContext;this.nativeContext.setLineDash?t[0]&&e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])}stroke(n){this.disableStroke||(n?this.nativeContext.stroke(n):this.nativeContext.stroke())}strokeRect(n,t,e,i){this.nativeContext.strokeRect(n,t,e,i)}strokeText(n,t,e,i){if(i=i||0,this.camera){this.modelMatrix&&(un(Lt,[t,e,i],this.modelMatrix),t=Lt[0],e=Lt[1],i=Lt[2]);const s=this.camera.vp(t,e,i);t=s.x,e=s.y}this.nativeContext.strokeText(n,t,e)}drawImage(){const n=this.nativeContext,t=arguments;t.length===3?n.drawImage(t[0],t[1],t[2]):t.length===5?n.drawImage(t[0],t[1],t[2],t[3],t[4]):t.length===9&&n.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}setCommonStyle(n,t,e,i,s){if(Array.isArray(s)){if(s.length<=1)return this._setCommonStyle(n,t,e,i,s[0]);const r=Object.create(s[0]);return s.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setCommonStyle(n,t,e,i,r)}return this._setCommonStyle(n,t,e,i,s)}_setCommonStyle(n,t,e,i,s){const r=this.nativeContext;s||(s=this.fillAttributes);const{fillOpacity:a=s.fillOpacity,opacity:o=s.opacity,fill:l=s.fill}=t;r.globalAlpha=a*o*this.baseGlobalAlpha,a>1e-12&&o>1e-12&&(r.fillStyle=jv(this,l,n,e,i))}setShadowBlendStyle(n,t,e){if(Array.isArray(e)){if(e.length<=1)return this._setShadowBlendStyle(n,e[0]);const i=Object.create(e[0]);return e.forEach((s,r)=>{r!==0&&Object.assign(i,s)}),this._setShadowBlendStyle(n,t,i)}return this._setShadowBlendStyle(n,t,e)}_setShadowBlendStyle(n,t,e){const i=this.nativeContext;e||(e=this.fillAttributes);const{opacity:s=e.opacity,shadowBlur:r=e.shadowBlur,shadowColor:a=e.shadowColor,shadowOffsetX:o=e.shadowOffsetX,shadowOffsetY:l=e.shadowOffsetY,blur:h=e.blur,globalCompositeOperation:d=e.globalCompositeOperation}=t;s<=1e-12||(r||o||l?(i.shadowBlur=r*this.dpr,i.shadowColor=a,i.shadowOffsetX=o*this.dpr,i.shadowOffsetY=l*this.dpr,this._clearShadowStyle=!0):this._clearShadowStyle&&(i.shadowBlur=0,i.shadowOffsetX=0,i.shadowOffsetY=0),h?(i.filter=`blur(${h}px)`,this._clearFilterStyle=!0):this._clearFilterStyle&&(i.filter="blur(0px)",this._clearFilterStyle=!1),d?(i.globalCompositeOperation=d,this._clearGlobalCompositeOperationStyle=!0):this._clearGlobalCompositeOperationStyle&&(i.globalCompositeOperation="source-over",this._clearGlobalCompositeOperationStyle=!1))}setStrokeStyle(n,t,e,i,s){if(Array.isArray(s)){if(s.length<=1)return this._setStrokeStyle(n,t,e,i,s[0]);const r=Object.create(s[0]);return s.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setStrokeStyle(n,t,e,i,r)}return this._setStrokeStyle(n,t,e,i,s)}_setStrokeStyle(n,t,e,i,s){const r=this.nativeContext;s||(s=this.strokeAttributes);const{strokeOpacity:a=s.strokeOpacity,opacity:o=s.opacity}=t;if(r.globalAlpha=a*o*this.baseGlobalAlpha,a>1e-12&&o>1e-12){const{lineWidth:l=s.lineWidth,stroke:h=s.stroke,lineJoin:d=s.lineJoin,lineDash:c=s.lineDash,lineCap:u=s.lineCap,miterLimit:g=s.miterLimit,keepStrokeScale:p=s.keepStrokeScale}=t;r.lineWidth=p?l:xr(this,l,this.dpr),r.strokeStyle=jv(this,h,n,e,i),r.lineJoin=d,c&&r.setLineDash(c),r.lineCap=u,r.miterLimit=g}}setTextStyleWithoutAlignBaseline(n,t,e){const i=this.nativeContext;t||(t=this.textAttributes);const{scaleIn3d:s=t.scaleIn3d}=n;n.font?i.font=n.font:i.font=Bg(n,t,s&&this.camera&&this.camera.getProjectionScale(e));const{fontFamily:r=t.fontFamily,fontSize:a=t.fontSize}=n;this.fontFamily=r,this.fontSize=a,i.textAlign="left",i.textBaseline="alphabetic"}setTextStyle(n,t,e){var i,s;const r=this.nativeContext;t||(t=this.textAttributes),n.font?r.font=n.font:r.font=Bg(n,t,this.camera&&this.camera.getProjectionScale(e));const{fontFamily:a=t.fontFamily,fontSize:o=t.fontSize}=n;this.fontFamily=a,this.fontSize=o,r.textAlign=(i=n.textAlign)!==null&&i!==void 0?i:t.textAlign,r.textBaseline=(s=n.textBaseline)!==null&&s!==void 0?s:t.textBaseline}draw(){}clearMatrix(n=!0,t=this.dpr){this.setTransformFromMatrix(this._clearMatrix,n,t)}setClearMatrix(n,t,e,i,s,r){this._clearMatrix.setValue(n,t,e,i,s,r)}onlyTranslate(n=this.dpr){return this.matrix.a===n&&this.matrix.b===0&&this.matrix.c===0&&this.matrix.d===n}release(...n){this.stack.forEach(t=>vn.free(t)),this.stack.length=0}};Il.env="browser",Il=D5([pt(),F5("design:paramtypes",[Object,Number])],Il);var j5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},H5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Dl=class extends ux{constructor(n){super(n)}init(n){const{container:t}=n;if(typeof t=="string"){const e=q.global.getElementById(t);e&&(this._container=e)}else this._container=t;this._context=new Il(this,this._dpr),this.initStyle()}initStyle(){if(!this.controled)return;const{nativeCanvas:n}=this;n.width=this._pixelWidth,n.height=this._pixelHeight,!n.style||this.setCanvasStyle(n,this._x,this._y,this._displayWidth,this._displayHeight),this._container&&this._container.appendChild(n),this.visiable||this.hide()}hide(){this._nativeCanvas&&(this._nativeCanvas.style.display="none")}show(){this._nativeCanvas&&(this._nativeCanvas.style.display="block")}applyPosition(){const n=this._nativeCanvas;n.style.position="absolute",n.style.top=`${this._y}px`,n.style.left=`${this._x}px`}resetStyle(n){if(!this.controled)return;const{width:t=this._displayWidth,height:e=this._displayHeight,dpr:i=this._dpr,x:s=this._x,y:r=this._y}=n,{nativeCanvas:a}=this;a.width=t*i,a.height=e*i,!a.style||this.setCanvasStyle(a,s,r,t,e),n.id&&(a.id=n.id),this.visiable||this.hide()}setCanvasStyle(n,t,e,i,s){this.controled&&(n.style.width=`${i}px`,n.style.height=`${s}px`)}toDataURL(n,t){return n==="image/jpeg"?this._nativeCanvas.toDataURL(n,t):n==="image/png"?this._nativeCanvas.toDataURL(n):this._nativeCanvas.toDataURL(n,t)}resize(n,t){this.controled&&(this._pixelWidth=n*this._dpr,this._pixelHeight=t*this._dpr,this._displayWidth=n,this._displayHeight=t,this._nativeCanvas.style&&(this._nativeCanvas.style.width=`${n}px`,this._nativeCanvas.style.height=`${t}px`),this._nativeCanvas.width=this._pixelWidth,this._nativeCanvas.height=this._pixelHeight,this._context.dpr=this._dpr)}};Dl.env="browser",Dl=j5([pt(),H5("design:paramtypes",[Object])],Dl);function BR(n,t){return new kt(e=>{e(jE).toDynamicValue(()=>i=>new n(i)).whenTargetNamed(n.env),e(K3).toDynamicValue(()=>(i,s)=>new t(i,s)).whenTargetNamed(t.env)})}const V5=BR(Dl,Il);var W5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},G5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},jh=function(n,t){return function(e,i){t(e,i,n)}};let ml=class extends iy{constructor(n,t,e){super(e),this.contributions=n,this.drawContribution=t,this.pickItemInterceptorContributions=e,this.global.hooks.onSetEnv.tap("canvas-picker-service",(i,s,r)=>{this.configure(r,s)}),this.configure(this.global,this.global.env),this.pickerMap=new Map,this.init()}init(){this.contributions.getContributions().forEach(n=>{this.pickerMap.set(n.numberType,n)}),super._init()}configure(n,t){this.pickCanvas=ql.shareCanvas(),this.pickContext=this.pickCanvas.getContext("2d")}pickItem(n,t,e,i){if(n.attribute.pickable===!1)return null;if(this.InterceptorContributions.length)for(let l=0;l=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let dy=class{constructor(){this.type="group",this.numberType=Ub}contains(n,t,e){return!1}};dy=N5([pt()],dy);const Ip=new kt((n,t,e,i)=>{Ip.__vloaded||(Ip.__vloaded=!0,n(eT).to(dy).inSingletonScope(),n(fi).toService(eT),Ti(n,fi))});Ip.__vloaded=!1;const U5=new kt((n,t,e,i)=>{e(ml)||n(ml).toSelf().inSingletonScope(),e(Ll)?i(Ll).toService(ml):n(Ll).toService(ml)});function $5(n){n.load(Ip),n.load(U5)}var nd,Y5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},X5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let zr=nd=class extends Op{get container(){return this.canvas.nativeCanvas.parentElement}static GenerateCanvasId(){return`${nd.idprefix}_${nd.prefix_count++}`}constructor(){super(),this.type="browser",this._canvasIsIntersecting=!0,this.global=q.global,this.viewBox=new Oe,this.modelMatrix=new Ee(1,0,0,1,0,0)}getTitle(){return this.canvas.id&&this.canvas.id.toString()}getWH(){return{width:this.canvas.width/(this.canvas.dpr||1),height:this.canvas.height/(this.canvas.dpr||1)}}getXY(){return this.canvas.nativeCanvas.getBoundingClientRect()}createWindow(n){n.canvas?this.createWindowByCanvas(n):this.createWindowByConfig(n),this.postInit()}postInit(){if(this.global.optimizeVisible)try{this.observerCanvas()}catch{console.error("发生错误,该环境不存在IntersectionObserver")}}isElementVisible(n){const t=n.getBoundingClientRect(),e=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return!(t.right<0||t.bottom<0||t.left>e||t.top>i)}observerCanvas(){this._canvasIsIntersecting=this.isElementVisible(this.canvas.nativeCanvas);const n=new IntersectionObserver((t,e)=>{t.forEach(i=>{this._canvasIsIntersecting!==i.isIntersecting?(this._canvasIsIntersecting=i.isIntersecting,this._onVisibleChangeCb&&this._onVisibleChangeCb(i.isIntersecting)):this._canvasIsIntersecting=i.isIntersecting})});n&&n.observe(this.canvas.nativeCanvas)}createWindowByConfig(n){const t=this.global.createCanvas({width:n.width,height:n.height});let e;if(e=typeof n.container=="string"?this.global.getElementById(n.container):n.container?n.container:this.global.getRootElement(),!e)throw new Error("发生错误,containerId可能传入有误");n.offscreen?e=null:e.appendChild(t);const i={width:n.width,height:n.height,dpr:n.dpr,nativeCanvas:t,container:e,id:nd.GenerateCanvasId(),canvasControled:!0};this.canvas=new Dl(i)}createWindowByCanvas(n){var t;let e;if(typeof n.canvas=="string"){if(e=this.global.getElementById(n.canvas),!e)throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom")}else e=n.canvas;if(!e)throw new Error("发生错误,传入的canvas不正确");let i=n.width,s=n.height;if(i==null||s==null||!n.canvasControled){const a=e.getBoundingClientRect();i=a.width,s=a.height}let r=n.dpr;r==null&&(r=(t=e.getContext("2d").pixelRatio)!==null&&t!==void 0?t:e.width/i),this.canvas=new Dl({width:i,height:s,dpr:r,nativeCanvas:e,canvasControled:n.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(n,t){this.canvas.resize(n,t)}setDpr(n){this.canvas.dpr=n}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}addEventListener(n,t,e){return this.canvas.nativeCanvas.addEventListener(n,t,e)}removeEventListener(n,t,e){return this.canvas.nativeCanvas.removeEventListener(n,t,e)}dispatchEvent(n){return this.canvas.nativeCanvas.dispatchEvent(n)}getStyle(){var n;return(n=this.canvas.nativeCanvas.style)!==null&&n!==void 0?n:{}}setStyle(n){this.canvas.nativeCanvas.style=n}getBoundingClientRect(){const n=this.canvas.nativeCanvas,t=this.getWH();return n.parentElement?this.canvas.nativeCanvas.getBoundingClientRect():{x:0,y:0,width:t.width,height:t.height,left:0,top:0,right:0,bottom:0}}clearViewBox(n){const t=this.viewBox,e=this.getContext(),i=this.getDpr();e.nativeContext.save(),e.nativeContext.setTransform(i,0,0,i,0,0),e.clearRect(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1),n&&(e.fillStyle=n,e.fillRect(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1)),e.nativeContext.restore()}isVisible(n){return this._canvasIsIntersecting}onVisibleChange(n){this._onVisibleChangeCb=n}getTopLeft(n){return this.global.getElementTopLeft(this.canvas.nativeCanvas,n)}};zr.env="browser",zr.idprefix="visactor_window",zr.prefix_count=0,zr=nd=Y5([pt(),X5("design:paramtypes",[])],zr);const K5=new kt(n=>{n(zr).toSelf(),n(Vb).toDynamicValue(t=>t.container.get(zr)).whenTargetNamed(zr.env)});var q5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},Z5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};class J5{get x1(){return this.dom.getBoundingClientRect().left}get x2(){return this.dom.getBoundingClientRect().right}get y1(){return this.dom.getBoundingClientRect().top}get y2(){return this.dom.getBoundingClientRect().bottom}get width(){return this.dom.getBoundingClientRect().width}get height(){return this.dom.getBoundingClientRect().height}constructor(t){this.dom=t}}function nT(n,t=!1){const e=document.createElement("img");if(e.crossOrigin="anonymous",t){const i=new Blob([n],{type:"image/svg+xml"});n=window.URL.createObjectURL(i)}return e.src=n,e.complete?Promise.resolve(e):new Promise((i,s)=>{e.onload=()=>{i(e)},e.onerror=()=>{s(new Error("加载失败"))}})}let Dp=class extends Rp{constructor(){super(),this.type="browser",this.supportEvent=!0;try{this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.supportsMouseEvents=!!globalThis.MouseEvent}catch{this.supportsTouchEvents=!1,this.supportsPointerEvents=!1,this.supportsPointerEvents=!1}this.applyStyles=!0}mapToCanvasPoint(n,t){var e,i;let s=0,r=0,a=0,o=0;if(n.changedTouches){const l=(e=n.changedTouches[0])!==null&&e!==void 0?e:{};s=l.clientX||0,r=l.clientY||0,a=s,o=r}else s=n.clientX||0,r=n.clientY||0,a=n.offsetX||0,o=n.offsetY||0;if(t){const l=s,h=r,d=t.getBoundingClientRect(),c=(i=t.getNativeHandler)===null||i===void 0?void 0:i.call(t).nativeCanvas;let u,g;return c&&(u=d.width/c.offsetWidth,g=d.height/c.offsetHeight),{x:(l-d.left)/(H(u)?u:1),y:(h-d.top)/(H(g)?g:1)}}return{x:a,y:o}}getNativeAABBBounds(n){let t=n;if(typeof n=="string"&&(t=new DOMParser().parseFromString(n,"text/html").firstChild,t.lastChild&&(t=t.lastChild.firstChild)),t.getBoundingClientRect){const e=t.getBoundingClientRect();return new J5(e)}return new Oe}removeDom(n){return n.parentElement.removeChild(n),!0}updateDom(n,t){const{width:e,height:i,style:s}=t;return s&&(tt(s)?n.setAttribute("style",s):Object.keys(s).forEach(r=>{n.style[r]=s[r]})),e!=null&&(n.style.width=`${e}px`),i!=null&&(n.style.height=`${i}px`),!0}createDom(n){const{tagName:t="div",parent:e}=n,i=document.createElement(t);if(this.updateDom(i,n),e){const s=tt(e)?this.getElementById(e):e;s&&s.appendChild&&s.appendChild(i)}return i}loadImage(n){return nT(n,!1).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadSvg(n){return nT(n,!0).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}createCanvas(n){var t,e;const i=document.createElement("canvas");n.id&&(i.id=(t=n.id)!==null&&t!==void 0?t:Je.GenAutoIncrementId().toString());const s=(e=n.dpr)!==null&&e!==void 0?e:window.devicePixelRatio;return n.width&&n.height&&(i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.width=n.width*s,i.height=n.height*s),i}createOffscreenCanvas(n){var t;const e=(t=n.dpr)!==null&&t!==void 0?t:window.devicePixelRatio;return new OffscreenCanvas(n.width*e,n.height*e)}releaseCanvas(n){let t;t=typeof n=="string"?document.getElementById(n):n,t&&t.parentElement&&t.parentElement.removeChild(t)}getDevicePixelRatio(){return window.devicePixelRatio}getRequestAnimationFrame(){return window.requestAnimationFrame}getCancelAnimationFrame(){return window.cancelAnimationFrame}addEventListener(n,t,e){return document.addEventListener(n,t,e)}removeEventListener(n,t,e){return document.removeEventListener(n,t,e)}dispatchEvent(n){return document.dispatchEvent(n)}getElementById(n){return document.getElementById(n)}getRootElement(){return document.body}getDocument(){return document}release(...n){}getElementTop(n,t){let e=n.offsetTop,i=n.offsetParent;for(;i!==null;)e+=i.offsetTop,i=i.offsetParent;return e}getElementLeft(n,t){let e=n.offsetLeft,i=n.offsetParent;for(;i!==null;)e+=i.offsetLeft,i=i.offsetParent;return e}getElementTopLeft(n,t){let e=n.offsetTop,i=n.offsetLeft,s=n.offsetParent;for(;s!==null;)e+=s.offsetTop,i+=s.offsetLeft,s=s.offsetParent;return{top:e,left:i}}};Dp=q5([pt(),Z5("design:paramtypes",[])],Dp);const Fp=new kt(n=>{Fp.isBrowserBound||(Fp.isBrowserBound=!0,n(Dp).toSelf().inSingletonScope(),n(bf).toService(Dp))});Fp.isBrowserBound=!1;function zp(n,t=!0){zp.__loaded||(zp.__loaded=!0,n.load(Fp),n.load(V5),n.load(K5),t&&$5(n))}zp.__loaded=!1;class _s{contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:s}=i??{};if(!s)return!1;const r=t.getGraphicTheme();s.highPerformanceSave();let{x:a=r.x,y:o=r.y}=t.attribute;if(t.transMatrix.onlyTranslate()){const h=t.getOffsetXY(r);a+=h.x,o+=h.y,s.setTransformForCurrent()}else a=0,o=0,s.transformFromMatrix(t.transMatrix,!0);let l=!1;return this.canvasRenderer.drawShape(t,s,a,o,{},null,(h,d,c)=>!!l||(l=h.isPointInPath(e.x,e.y),l),(h,d,c)=>{if(l)return!0;const u=d.lineWidth||c.lineWidth,g=d.pickStrokeBuffer||c.pickStrokeBuffer,p=d.keepStrokeScale||c.keepStrokeScale;return s.lineWidth=p?u+g:xr(s,u+g,s.dpr),l=h.isPointInStroke(e.x,e.y),l}),s.highPerformanceRestore(),l}}var Q5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},tN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},eN=function(n,t){return function(e,i){t(e,i,n)}};let cy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="arc",this.numberType=kf}};cy=Q5([pt(),eN(0,Rt(cp)),tN("design:paramtypes",[Object])],cy);let sT=!1;const iN=new kt((n,t,e,i)=>{sT||(sT=!0,n(Ek).to(cy).inSingletonScope(),n(Sr).toService(Ek))});var nN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},sN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},rN=function(n,t){return function(e,i){t(e,i,n)}};let uy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="area",this.numberType=ru}};uy=nN([pt(),rN(0,Rt(up)),sN("design:paramtypes",[Object])],uy);let rT=!1;const aN=new kt((n,t,e,i)=>{rT||(rT=!0,n(Rk).to(uy).inSingletonScope(),n(Sr).toService(Rk))});var oN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},lN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},hN=function(n,t){return function(e,i){t(e,i,n)}};let gy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="circle",this.numberType=Mf}};gy=oN([pt(),hN(0,Rt(gp)),lN("design:paramtypes",[Object])],gy);let aT=!1;const dN=new kt((n,t,e,i)=>{aT||(aT=!0,n(Ok).to(gy).inSingletonScope(),n(Sr).toService(Ok))});class LR{constructor(){this.type="glyph",this.numberType=Nb}contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:s}=i??{};if(!s)return!1;const r=i==null?void 0:i.pickerService;if(r){let a=!1;return t.getSubGraphic().forEach(o=>{if(a)return;const l=r.pickItem(o,e,null,i);a=!(!l||!l.graphic)}),a}return!1}}var cN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},uN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},gN=function(n,t){return function(e,i){t(e,i,n)}};let jp=class extends LR{constructor(n){super(),this.canvasRenderer=n}};jp=cN([pt(),gN(0,Rt(yp)),uN("design:paramtypes",[Object])],jp);let oT=!1;const pN=new kt((n,t,e,i)=>{oT||(oT=!0,n(jk).to(jp).inSingletonScope(),n(jp).toService(jk))});var _N=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let nh=class{constructor(){this.type="image",this.numberType=wf}contains(n,t,e){const{pickContext:i}=e??{};return!!i&&!!n.AABBBounds.containsPoint(t)}};nh=_N([pt()],nh);let lT=!1;const fN=new kt((n,t,e,i)=>{lT||(lT=!0,n(Lp).to(nh).inSingletonScope(),n(nh).toService(Lp))});var mN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},vN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},yN=function(n,t){return function(e,i){t(e,i,n)}};let py=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="line",this.numberType=au}};py=mN([pt(),yN(0,Rt(pp)),vN("design:paramtypes",[Object])],py);let hT=!1;const bN=new kt((n,t,e,i)=>{hT||(hT=!0,n(Bk).to(py).inSingletonScope(),n(Sr).toService(Bk))});var xN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},SN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},AN=function(n,t){return function(e,i){t(e,i,n)}};let _y=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="polygon",this.numberType=Pf}};_y=xN([pt(),AN(0,Rt(fp)),SN("design:paramtypes",[Object])],_y);let dT=!1;const kN=new kt((n,t,e,i)=>{dT||(dT=!0,n(zk).to(_y).inSingletonScope(),n(Sr).toService(zk))});var TN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},MN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},wN=function(n,t){return function(e,i){t(e,i,n)}};let fy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="path",this.numberType=Cf}};fy=TN([pt(),wN(0,Rt(_p)),MN("design:paramtypes",[Object])],fy);let cT=!1;const CN=new kt((n,t,e,i)=>{cT||(cT=!0,n(Lk).to(fy).inSingletonScope(),n(Sr).toService(Lk))}),p0=new Oe;class IR{constructor(){this.type="rect",this.numberType=Yb}contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:s}=i??{};if(!s)return!1;const r=t.getGraphicTheme(),{cornerRadius:a=r.cornerRadius}=t.attribute;let{x:o=r.x,y:l=r.y}=t.attribute;s.highPerformanceSave();let h=!0;if(t.transMatrix.onlyTranslate()){const c=t.getOffsetXY(r);o+=c.x,l+=c.y,s.setTransformForCurrent()}else o=0,l=0,h=!1,s.transformFromMatrix(t.transMatrix,!0);let d=!0;if(!h||t.shadowRoot||J(a,!0)&&a!==0||U(a)&&a.some(c=>c!==0))d=!1,this.canvasRenderer.drawShape(t,s,o,l,{},null,(c,u,g)=>!!d||(d=c.isPointInPath(e.x,e.y),d),(c,u,g)=>{if(d)return!0;const p=u.lineWidth||g.lineWidth,_=u.pickStrokeBuffer||g.pickStrokeBuffer,f=u.keepStrokeScale||g.keepStrokeScale;return s.lineWidth=f?p+_:xr(s,p+_,s.dpr),d=c.isPointInStroke(e.x,e.y),d});else{const{fill:c=r.fill,stroke:u=r.stroke,lineWidth:g=r.lineWidth}=t.attribute;if(c)d=!0;else if(u){const p=t.AABBBounds;p0.setValue(p.x1,p.y1,p.x2,p.y2),p0.expand(-g/2),d=!p0.containsPoint(e)}}return s.highPerformanceRestore(),d}}var PN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},EN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},RN=function(n,t){return function(e,i){t(e,i,n)}};let my=class extends IR{constructor(n){super(),this.canvasRenderer=n}};my=PN([pt(),RN(0,Rt(mp)),EN("design:paramtypes",[Object])],my);let uT=!1;const ON=new kt((n,t,e,i)=>{uT||(uT=!0,n(Ik).to(my).inSingletonScope(),n(Sr).toService(Ik))});let gT=!1;const BN=new kt((n,t,e,i)=>{gT||(gT=!0,n(Lp).to(nh).inSingletonScope(),n(nh).toService(Lp))});var LN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},IN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},DN=function(n,t){return function(e,i){t(e,i,n)}};let vy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="symbol",this.numberType=Ef}};vy=LN([pt(),DN(0,Rt(vp)),IN("design:paramtypes",[Object])],vy);let pT=!1;const FN=new kt((n,t,e,i)=>{pT||(pT=!0,n(Dk).to(vy).inSingletonScope(),n(Sr).toService(Dk))});var zN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let yy=class{constructor(){this.type="text",this.numberType=Rf}contains(n,t,e){return!!n.AABBBounds.containsPoint(t)}};yy=zN([pt()],yy);let _T=!1;const jN=new kt((n,t,e,i)=>{_T||(_T=!0,n(Fk).to(yy).inSingletonScope(),n(Sr).toService(Fk))});var HN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},VN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let gd=class extends Il{constructor(n,t){super(n,t);const e=n.nativeCanvas.getContext("2d");if(!e)throw new Error("发生错误,获取2d上下文失败");this.nativeContext=e,this.canvas=n,this.matrix=new Ee(1,0,0,1,0,0),this.stack=[],this.dpr=t??1}release(...n){}};gd.env="node",gd=HN([pt(),VN("design:paramtypes",[Object,Number])],gd);var WN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},GN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Fl=class extends ux{constructor(n){super(n)}init(){this._context=new gd(this,this._dpr),this.nativeCanvas.width=this._pixelWidth,this.nativeCanvas.height=this._pixelHeight}release(...n){this._nativeCanvas.release&&N(this._nativeCanvas.release)&&this._nativeCanvas.release()}};Fl.env="node",Fl=WN([pt(),GN("design:paramtypes",[Object])],Fl);const NN=BR(Fl,gd);var UN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},$N=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},YN=function(n,t){return function(e,i){t(e,i,n)}};let zl=class extends Op{get container(){return null}constructor(n){super(),this.global=n,this.type="node"}getTitle(){return""}getWH(){return{width:this.canvas.displayWidth,height:this.canvas.displayHeight}}getXY(){return{x:0,y:0}}createWindow(n){n.canvas?this.createWindowByCanvas(n):this.createWindowByConfig(n)}createWindowByConfig(n){const t=this.global.createCanvas({width:n.width,height:n.height}),e={width:n.width,height:n.height,dpr:n.dpr,nativeCanvas:t,id:Je.GenAutoIncrementId().toString(),canvasControled:!0};this.canvas=new Fl(e)}createWindowByCanvas(n){const t=n.canvas;let e=n.width,i=n.height;e!=null&&i!=null&&n.canvasControled||(e=t.width,i=t.height),this.canvas=new Fl({width:e,height:i,dpr:1,nativeCanvas:t,canvasControled:n.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(n,t){this.canvas.resize(n,t)}setDpr(n){this.canvas.dpr=n}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}getImageBuffer(n="image/png"){return this.canvas.nativeCanvas.toBuffer(n)}addEventListener(n,t,e){}dispatchEvent(n){return!0}removeEventListener(n,t,e){}getStyle(){}setStyle(n){}getBoundingClientRect(){return null}clearViewBox(n){}};zl.env="node",zl=UN([pt(),YN(0,Rt(Fb)),$N("design:paramtypes",[Object])],zl);const XN=new kt(n=>{n(zl).toSelf(),n(Vb).toDynamicValue(t=>t.container.get(zl)).whenTargetNamed(zl.env)});var KN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Hp=class extends Rp{constructor(){super(...arguments),this.type="node",this._lastTime=0,this.supportEvent=!1}configure(n,t){n.env===this.type&&(n.setActiveEnvContribution(this),this.pkg=t)}getDynamicCanvasCount(){return 0}getStaticCanvasCount(){return 999}loadJson(n){const t=fetch(n).then(e=>e.json());return t.then(e=>({data:e,state:"success"})).catch(()=>({data:null,state:"fail"})),t}loadArrayBuffer(n){return fetch(n).then(t=>t.arrayBuffer()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadImage(n){const{loadImage:t}=this.pkg;return t?t(n).then(e=>({loadState:e?"success":"fail",data:e})).catch(()=>({loadState:"fail",data:null})):Promise.reject(new Error("node-canvas loadImage could not be found!"))}loadSvg(n){const t=this.pkg.Resvg;if(!t)return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));const e=new t(n).render().asPng();return this.loadImage(e)}createCanvas(n){return this.pkg.createCanvas(n.width,n.height)}releaseCanvas(n){}getDevicePixelRatio(){return 1}getRequestAnimationFrame(){return function(n){return $1.call(n)}}getCancelAnimationFrame(){return n=>{$1.clear(n)}}addEventListener(n,t,e){}removeEventListener(n,t,e){}getElementById(n){return null}getRootElement(){return null}dispatchEvent(n){}release(...n){}createOffscreenCanvas(n){}};Hp=KN([pt()],Hp);const Vp=new kt(n=>{Vp.isNodeBound||(Vp.isNodeBound=!0,n(Hp).toSelf().inSingletonScope(),n(bf).toService(Hp))});Vp.isNodeBound=!1;function Wp(n,t=!0){Wp.__loaded||(Wp.__loaded=!0,n.load(Vp),n.load(NN),n.load(XN))}Wp.__loaded=!1;var qN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},ZN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},JN=function(n,t){return function(e,i){t(e,i,n)}};let by=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="arc",this.numberType=kf}};by=qN([pt(),JN(0,Rt(cp)),ZN("design:paramtypes",[Object])],by);let fT=!1;const QN=new kt((n,t,e,i)=>{fT||(fT=!0,n(Hk).to(by).inSingletonScope(),n(fi).toService(Hk))});var tU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},eU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},iU=function(n,t){return function(e,i){t(e,i,n)}};let xy=class extends IR{constructor(n){super(),this.canvasRenderer=n}};xy=tU([pt(),iU(0,Rt(mp)),eU("design:paramtypes",[Object])],xy);let mT=!1;const nU=new kt((n,t,e,i)=>{mT||(mT=!0,n(Yk).to(xy).inSingletonScope(),n(fi).toService(Yk))});class DR extends Ki{contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:s}=i??{};if(!s)return!1;s.highPerformanceSave();const r=t.getGraphicTheme(),a=this.transform(t,r,s),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(s.camera){c=e.clone();const g=t.parent.globalTransMatrix;c.x=g.a*e.x+g.c*e.y+g.e,c.y=g.b*e.x+g.d*e.y+g.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,s,o,l,{},null,g=>!!u||(u=g.isPointInPath(c.x,c.y),u),(g,p,_)=>{if(u)return!0;const f=p.lineWidth||_.lineWidth,m=p.pickStrokeBuffer||_.pickStrokeBuffer,v=p.keepStrokeScale||_.keepStrokeScale;return s.lineWidth=v?f+m:xr(s,f+m,s.dpr),u=g.isPointInStroke(c.x,c.y),u}),this.canvasRenderer.z=0,s.modelMatrix!==d&&xe.free(s.modelMatrix),s.modelMatrix=d,s.highPerformanceRestore(),u}}var sU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},rU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},aU=function(n,t){return function(e,i){t(e,i,n)}};let Sy=class extends DR{constructor(n){super(),this.canvasRenderer=n,this.type="line",this.numberType=au}};Sy=sU([pt(),aU(0,Rt(pp)),rU("design:paramtypes",[Object])],Sy);let vT=!1;const oU=new kt((n,t,e,i)=>{vT||(vT=!0,n(Uk).to(Sy).inSingletonScope(),n(fi).toService(Uk))});var lU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},hU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},dU=function(n,t){return function(e,i){t(e,i,n)}};let Ay=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="area",this.numberType=ru}};Ay=lU([pt(),dU(0,Rt(up)),hU("design:paramtypes",[Object])],Ay);let yT=!1;const cU=new kt((n,t,e,i)=>{yT||(yT=!0,n(Wk).to(Ay).inSingletonScope(),n(fi).toService(Wk))});class du extends Ki{contains(t,e,i){const{pickContext:s}=i??{};if(!s)return!1;const r=t.getGraphicTheme();s.highPerformanceSave();const a=this.transform(t,r,s),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(s.camera){c=e.clone();const g=t.parent.globalTransMatrix;c.x=g.a*e.x+g.c*e.y+g.e,c.y=g.b*e.x+g.d*e.y+g.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,s,o,l,i,null,(g,p,_)=>!!u||(u=g.isPointInPath(c.x,c.y),u)),this.canvasRenderer.z=0,s.modelMatrix!==d&&xe.free(s.modelMatrix),s.modelMatrix=d,s.highPerformanceRestore(),u}}var uU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},gU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},pU=function(n,t){return function(e,i){t(e,i,n)}};let ky=class extends du{constructor(n){super(),this.canvasRenderer=n,this.type="symbol",this.numberType=Ef}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=n.getParsedPath();if(!i.camera){if(!n.AABBBounds.containsPoint(t))return!1;if(s.isSvg||n.attribute.pickMode==="imprecise")return!0}i.highPerformanceSave();const r=n.getGraphicTheme(),a=this.transform(n,r,i),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=t;if(i.camera){c=t.clone();const g=n.parent.globalTransMatrix;c.x=g.a*t.x+g.c*t.y+g.e,c.y=g.b*t.x+g.d*t.y+g.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(n,i,o,l,{},null,(g,p,_)=>!!u||(u=g.isPointInPath(c.x,c.y),u),(g,p,_)=>{if(u)return!0;const f=p.lineWidth||_.lineWidth,m=p.pickStrokeBuffer||_.pickStrokeBuffer,v=p.keepStrokeScale||_.keepStrokeScale;return i.lineWidth=v?f+m:xr(i,f+m,i.dpr),u=g.isPointInStroke(c.x,c.y),u}),this.canvasRenderer.z=0,i.modelMatrix!==d&&xe.free(i.modelMatrix),i.modelMatrix=d,i.highPerformanceRestore(),u}};ky=uU([pt(),pU(0,Rt(vp)),gU("design:paramtypes",[Object])],ky);let bT=!1;const _U=new kt((n,t,e,i)=>{bT||(bT=!0,n(Kk).to(ky).inSingletonScope(),n(fi).toService(Kk))});var fU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},mU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},vU=function(n,t){return function(e,i){t(e,i,n)}};let Ty=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="circle",this.numberType=Mf}};Ty=fU([pt(),vU(0,Rt(gp)),mU("design:paramtypes",[Object])],Ty);let xT=!1;const yU=new kt((n,t,e,i)=>{xT||(xT=!0,n(Gk).to(Ty).inSingletonScope(),n(fi).toService(Gk))});var bU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},xU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},SU=function(n,t){return function(e,i){t(e,i,n)}};let My=class extends du{constructor(n){super(),this.canvasRenderer=n,this.type="text",this.numberType=Rf}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=n.AABBBounds;if(!i.camera)return!!s.containsPoint(t);i.highPerformanceSave();const r=n.getGraphicTheme(),{keepDirIn3d:a=r.keepDirIn3d}=n.attribute,o=!a,l=this.transform(n,r,i,o),{x:h,y:d,z:c,lastModelMatrix:u}=l;this.canvasRenderer.z=c;let g=t;if(i.camera){g=t.clone();const _=n.parent.globalTransMatrix;g.x=_.a*t.x+_.c*t.y+_.e,g.y=_.b*t.x+_.d*t.y+_.f}let p=!1;return this.canvasRenderer.drawShape(n,i,h,d,{},null,(_,f,m)=>{if(p)return!0;const{fontSize:v=r.fontSize,textBaseline:y=r.textBaseline,textAlign:b=r.textAlign}=n.attribute,x=n.AABBBounds,S=x.height(),A=x.width(),k=tr(y,S,v),T=Qs(b,A);return _.rect(T+h,k+d,A,S,c),p=_.isPointInPath(g.x,g.y),p},(_,f,m)=>p),this.canvasRenderer.z=0,i.modelMatrix!==u&&xe.free(i.modelMatrix),i.modelMatrix=u,i.highPerformanceRestore(),p}};My=bU([pt(),SU(0,Rt(Yv)),xU("design:paramtypes",[Object])],My);let ST=!1;const AU=new kt((n,t,e,i)=>{ST||(ST=!0,n(qk).to(My).inSingletonScope(),n(fi).toService(qk))});var kU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},TU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},MU=function(n,t){return function(e,i){t(e,i,n)}};let wy=class extends DR{constructor(n){super(),this.canvasRenderer=n,this.type="path",this.numberType=Cf}};wy=kU([pt(),MU(0,Rt(_p)),TU("design:paramtypes",[Object])],wy);let AT=!1;const wU=new kt((n,t,e,i)=>{AT||(AT=!0,n($k).to(wy).inSingletonScope(),n(fi).toService($k))});var CU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},PU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},EU=function(n,t){return function(e,i){t(e,i,n)}};let Cy=class extends _s{constructor(n){super(),this.canvasRenderer=n,this.type="polygon",this.numberType=Pf}};Cy=CU([pt(),EU(0,Rt(fp)),PU("design:paramtypes",[Object])],Cy);let kT=!1;const RU=new kt((n,t,e,i)=>{kT||(kT=!0,n(Zk).to(Cy).inSingletonScope(),n(fi).toService(Zk))});var OU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},BU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},LU=function(n,t){return function(e,i){t(e,i,n)}};let Py=class extends LR{constructor(n){super(),this.canvasRenderer=n}};Py=OU([pt(),LU(0,Rt(yp)),BU("design:paramtypes",[Object])],Py);let TT=!1;const IU=new kt((n,t,e,i)=>{TT||(TT=!0,n(tT).to(Py).inSingletonScope(),n(fi).toService(tT))});var DU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},FU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},zU=function(n,t){return function(e,i){t(e,i,n)}};let Ey=class{constructor(n){this.canvasRenderer=n,this.type="richtext",this.numberType=Kb}contains(n,t,e){return!!n.AABBBounds.containsPoint(t)}};Ey=DU([pt(),zU(0,Rt(Xv)),FU("design:paramtypes",[Object])],Ey);let MT=!1;const jU=new kt((n,t,e,i)=>{MT||(MT=!0,n(Qk).to(Ey).inSingletonScope(),n(fi).toService(Qk))});var HU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Ry=class{constructor(){this.type="image",this.numberType=wf}contains(n,t,e){const{pickContext:i}=e??{};return!!i&&!!n.AABBBounds.containsPoint(t)}};Ry=HU([pt()],Ry);let wT=!1;const VU=new kt((n,t,e,i)=>{wT||(wT=!0,n(Nk).to(Ry).inSingletonScope(),n(fi).toService(Nk))});var WU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},GU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},NU=function(n,t){return function(e,i){t(e,i,n)}};let Oy=class extends du{constructor(n){super(),this.canvasRenderer=n,this.type="rect3d",this.numberType=Xb,this.themeType="rect"}};Oy=WU([pt(),NU(0,Rt($v)),GU("design:paramtypes",[Object])],Oy);let CT=!1;const UU=new kt((n,t,e,i)=>{CT||(CT=!0,n(Xk).to(Oy).inSingletonScope(),n(fi).toService(Xk))});var $U=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},YU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},XU=function(n,t){return function(e,i){t(e,i,n)}};let By=class extends du{constructor(n){super(),this.canvasRenderer=n,this.type="arc3d",this.numberType=Tf,this.themeType="arc"}};By=$U([pt(),XU(0,Rt(Uv)),YU("design:paramtypes",[Object])],By);let PT=!1;const KU=new kt((n,t,e,i)=>{PT||(PT=!0,n(Vk).to(By).inSingletonScope(),n(fi).toService(Vk))});var qU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},ZU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},JU=function(n,t){return function(e,i){t(e,i,n)}};let Ly=class extends du{constructor(n){super(),this.canvasRenderer=n,this.type="pyramid3d",this.numberType=$b,this.themeType="polygon"}};Ly=qU([pt(),JU(0,Rt(Kv)),ZU("design:paramtypes",[Object])],Ly);let ET=!1;const QU=new kt((n,t,e,i)=>{ET||(ET=!0,n(Jk).to(Ly).inSingletonScope(),n(fi).toService(Jk))}),$n=cx();function Gp(){Gp.__loaded||(Gp.__loaded=!0,$G(),At.load(AG),At.load($n?QN:iN))}Gp.__loaded=!1;const kh=Gp;function Np(){Np.__loaded||(Np.__loaded=!0,YG(),gx(),px(),At.load(GG),At.load(KU))}Np.__loaded=!1;const t4=Np;function Up(){Up.__loaded||(Up.__loaded=!0,XG(),At.load(MG),At.load($n?cU:aN))}Up.__loaded=!1;const FR=Up;function $p(){$p.__loaded||($p.__loaded=!0,KG(),At.load(CG),At.load($n?yU:dN))}$p.__loaded=!1;const e4=$p;function Yp(){Yp.__loaded||(Yp.__loaded=!0,qG(),At.load(BG),At.load($n?IU:pN))}Yp.__loaded=!1;const i4=Yp;function Xp(){Xp.__loaded||(Xp.__loaded=!0,ZG())}Xp.__loaded=!1;const ze=Xp;function Kp(){Kp.__loaded||(Kp.__loaded=!0,JG(),At.load(FG),At.load($n?VU:fN))}Kp.__loaded=!1;const zR=Kp;function qp(){qp.__loaded||(qp.__loaded=!0,QG(),At.load(TG),At.load($n?oU:bN))}qp.__loaded=!1;const Ar=qp;function Zp(){Zp.__loaded||(Zp.__loaded=!0,t5(),At.load(EG),At.load($n?wU:CN))}Zp.__loaded=!1;const cu=Zp;function Jp(){Jp.__loaded||(Jp.__loaded=!0,e5(),At.load(RG),At.load($n?RU:kN))}Jp.__loaded=!1;const Ff=Jp;function Qp(){Qp.__loaded||(Qp.__loaded=!0,i5(),gx(),px(),At.load(UG),At.load(QU))}Qp.__loaded=!1;const n4=Qp;function t_(){t_.__loaded||(t_.__loaded=!0,n5(),At.load(kG),At.load($n?nU:ON))}t_.__loaded=!1;const kr=t_;function e_(){e_.__loaded||(e_.__loaded=!0,s5(),At.load(jG),At.load(UU))}e_.__loaded=!1;const s4=e_;function i_(){i_.__loaded||(i_.__loaded=!0,r5(),At.load(DG),At.load($n?jU:BN))}i_.__loaded=!1;const Ea=i_;function n_(){n_.__loaded||(n_.__loaded=!0,l5())}n_.__loaded=!1;const Ei=n_;function s_(){s_.__loaded||(s_.__loaded=!0,a5(),At.load(wG),At.load($n?_U:FN))}s_.__loaded=!1;const Yn=s_;function r_(){r_.__loaded||(r_.__loaded=!0,o5(),At.load(PG),At.load($n?AU:jN))}r_.__loaded=!1;const Hs=r_;function jR(){ze(),kr()}const sh=-.5*Math.PI,rh=1.5*Math.PI,pd="PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",r4=14;var We;(function(n){n.selected="selected",n.selectedReverse="selected_reverse",n.hover="hover",n.hoverReverse="hover_reverse"})(We||(We={}));const Pt={[We.selectedReverse]:{},[We.selected]:{},[We.hover]:{},[We.hoverReverse]:{}},a_={container:"",width:30,height:30,style:{}},a4="scrollDrag",RT={debounce:wa,throttle:yr};jR();let o_=class HR extends li{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},HR.defaultAttributes,t)),this.name="scrollbar",this._onRailPointerDown=i=>{const{viewX:s,viewY:r}=i,{direction:a,width:o,height:l,range:h}=this.attribute,d=this._sliderSize,[c,u]=this._getScrollRange();let g;if(a==="vertical"){const p=r-this._viewPosition.y,_=be(p-d/2,c,u);g=p/l,this._slider.setAttribute("y",_,!0)}else{const p=s-this._viewPosition.x,_=be(p-d/2,c,u);g=p/o,this._slider.setAttribute("x",_,!0)}this.setScrollRange([g-(h[1]-h[0])/2,g+(h[1]-h[0])/2],!1),this.stage&&!this.stage.autoRender&&this.stage.renderNextFrame()},this._onSliderPointerDown=i=>{const{stopSliderDownPropagation:s=!0}=this.attribute;s&&i.stopPropagation();const{direction:r}=this.attribute,{x:a,y:o}=this.stage.eventPointTransform(i);this._prePos=r==="horizontal"?a:o,this._dispatchEvent("scrollDown",{pos:this._prePos,event:i}),Et.env==="browser"?(Et.addEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Et.addEventListener("pointerup",this._onSliderPointerUp)):(this.stage.addEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),this.stage.addEventListener("pointerup",this._onSliderPointerUp),this.stage.addEventListener("pointerupoutside",this._onSliderPointerUp))},this._computeScrollValue=i=>{const{direction:s}=this.attribute,{x:r,y:a}=this.stage.eventPointTransform(i);let o,l,h=0;const{width:d,height:c}=this.getSliderRenderBounds();return s==="vertical"?(l=a,h=l-this._prePos,o=h/c):(l=r,h=l-this._prePos,o=h/d),[l,o]},this._onSliderPointerMove=i=>{const{stopSliderMovePropagation:s=!0}=this.attribute;s&&i.stopPropagation();const r=this.getScrollRange(),[a,o]=this._computeScrollValue(i);this.setScrollRange([r[0]+o,r[1]+o],!0),this._prePos=a},this._onSliderPointerMoveWithDelay=this.attribute.delayTime===0?this._onSliderPointerMove:RT[this.attribute.delayType](this._onSliderPointerMove,this.attribute.delayTime),this._onSliderPointerUp=i=>{i.preventDefault();const{realTime:s=!0,range:r,limitRange:a=[0,1]}=this.attribute,o=this.getScrollRange(),[l,h]=this._computeScrollValue(i),d=[o[0]+h,o[1]+h];this._dispatchEvent("scrollUp",{pre:r,value:Ga(d,a[0],a[1])}),Et.env==="browser"?(Et.removeEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Et.removeEventListener("pointerup",this._onSliderPointerUp)):(this.stage.removeEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),this.stage.removeEventListener("pointerup",this._onSliderPointerUp),this.stage.removeEventListener("pointerupoutside",this._onSliderPointerUp))}}setScrollRange(t,e=!0){const{direction:i="horizontal",limitRange:s=[0,1],range:r,realTime:a=!0}=this.attribute,o=Ga(t,s[0],s[1]);if(e){const l=this._getSliderPos(o);if(this._slider){const h=l[1]-l[0];this._sliderSize=h,i==="horizontal"?this._slider.setAttributes({x:l[0],width:h},!0):this._slider.setAttributes({y:l[0],height:h},!0),this.stage&&!this.stage.autoRender&&this.stage.renderNextFrame()}}this.attribute.range=o,a&&this._dispatchEvent(a4,{pre:r,value:o})}getScrollRange(){return this.attribute.range}bindEvents(){if(this.attribute.disableTriggerEvent)return;const{delayType:t="throttle",delayTime:e=0}=this.attribute;this._rail&&this._rail.addEventListener("pointerdown",RT[t](this._onRailPointerDown,e)),this._slider&&this._slider.addEventListener("pointerdown",this._onSliderPointerDown)}render(){this._reset();const{direction:t="horizontal",width:e,height:i,range:s,limitRange:r=[0,1],railStyle:a,sliderStyle:o,padding:l=2}=this.attribute,h=this.createOrUpdateChild("scrollbar-container",{},"group"),d=h.createOrUpdateChild("scrollbar-rail",Object.assign({x:0,y:0,width:e,height:i},a),"rect");this._rail=d;const c=this.getSliderRenderBounds(),u=this._getSliderPos(Ga(s,r[0],r[1])),g=u[1]-u[0];let p;this._sliderSize=g,p=t==="horizontal"?{x:u[0],y:c.y1,width:g,height:c.height}:{x:c.x1,y:u[0],width:c.width,height:g};const _=h.createOrUpdateChild("slider",Object.assign(Object.assign(Object.assign(Object.assign({},p),{cornerRadius:this._getDefaultSliderCornerRadius()}),o),{boundsPadding:Yi(l),pickMode:"imprecise"}),"rect");this._slider=_,this._container=h;const f=this._container.AABBBounds;this._viewPosition={x:f.x1,y:f.y1}}getSliderRenderBounds(){if(this._sliderRenderBounds)return this._sliderRenderBounds;const{width:t,height:e,padding:i=2}=this.attribute,[s,r,a,o]=Yi(i),l={x1:o,y1:s,x2:t-r,y2:e-a,width:Math.max(0,t-(o+r)),height:Math.max(0,e-(s+a))};return this._sliderRenderBounds=l,l}_getDefaultSliderCornerRadius(){const{direction:t,round:e}=this.attribute;if(e){const{width:i,height:s}=this.getSliderRenderBounds();return t==="horizontal"?s:i}return 0}_getSliderPos(t){const{direction:e}=this.attribute,{width:i,height:s,x1:r,y1:a}=this.getSliderRenderBounds();return e==="horizontal"?[i*t[0]+r,i*t[1]+r]:[s*t[0]+a,s*t[1]+a]}_getScrollRange(){if(this._sliderLimitRange)return this._sliderLimitRange;const{limitRange:t=[0,1],direction:e}=this.attribute,[i,s]=Ga(t,0,1),{width:r,height:a,x1:o,y1:l}=this.getSliderRenderBounds(),h=this._sliderSize;return e==="horizontal"?Ga([o+i*r,o+s*r],o,r-h):Ga([l+i*a,l+s*a],l,a-h)}_reset(){this._sliderRenderBounds=null,this._sliderLimitRange=null}};o_.defaultAttributes={direction:"horizontal",round:!0,sliderSize:20,sliderStyle:{fill:"rgba(0, 0, 0, .5)"},railStyle:{fill:"rgba(0, 0, 0, .0)"},padding:2,scrollRange:[0,1],delayType:"throttle",delayTime:0,realTime:!0};function ss(n,t){n.forEachChildren(e=>{const i=t(e);e.isContainer&&!i&&ss(e,t)})}const Be=n=>!P(n)&&n.visible!==!1;function o4(n,t){if(!t)return[];const e=n.find(i=>i.name===t,!0);return e?e.getChildren():[]}function l4(n,t){if(!t)return[];const e=n.find(i=>i.name===t,!0);return e?e.findAll(i=>i.type!=="group",!0):[]}function h4(n){const t=[n[0]];for(let e=1;e=0&&n3*Math.PI/2&&n<=2*Math.PI}function xs(n,t,e){return Math.abs(n-t)Math.PI&&e.toLocaleLowerCase().includes("bottom")?"left":tMath.PI&&e.toLocaleLowerCase().includes("top")?"right":"center",textBaseline:tMath.PI&&!e.includes("inside")?"bottom":"top"}}const d4=["#ffffff","#000000"];function OT(n,t,e,i,s,r){if(typeof n!="string"||typeof t!="string")return n;const a=new Xe(n).toHex(),o=new Xe(t).toHex();return fx(a,o,e,i,r)?a:c4(a,o,e,i,s,r)}function c4(n,t,e,i,s,r){const a=[];s&&(s instanceof Array?a.push(...s):a.push(s)),a.push(...d4);for(const o of a)if(n!==o&&fx(o,t,e,i,r))return o}function fx(n,t,e,i,s){if(s==="lightness"){const r=Xe.getColorBrightness(new Xe(t));return Xe.getColorBrightness(new Xe(n))<.5?r>=.5:r<.5}return i?_0(n,t)>i:e==="largeText"?_0(n,t)>3:_0(n,t)>4.5}function _0(n,t){const e=BT(n),i=BT(t);return((e>i?e:i)+.05)/((e>i?i:e)+.05)}function BT(n){const t=AP(n),e=t[0]/255,i=t[1]/255,s=t[2]/255;let r,a,o;return r=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),a=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),o=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*a+.0722*o}function sg(n,t,e,i){let s;switch(n){case"base":s=t;break;case"invertBase":s=e;break;case"similarBase":s=i}return s}function WR(n,t){return[n[0]*t,n[1]*t]}function GR(n){const[t,e]=n;return Math.sqrt(t*t+e*e)}function u4(n){let t=GR(n);return t>0&&(t=1/t),[n[0]*t,n[1]*t]}function g4(n,t){const[e,i]=n,[s,r]=t,a=Math.sqrt((e*e+i*i)*(s*s+r*r)),o=a&&(e*s+i*r)/a;return Math.acos(Math.min(Math.max(o,-1),1))}function p4(n,t,e){const i=g4(n,t),s=Y0(n,t)>=0;return e?s?2*Math.PI-i:i:s?i:2*Math.PI-i}const jl=(n,t,e,i)=>new Fi(Object.assign({defaultFontParams:Object.assign({fontFamily:pd,fontSize:r4},i),getTextBounds:e?void 0:Of,specialCharSet:`-/: .,@%'"~`+Fi.ALPHABET_CHAR_SET+Fi.ALPHABET_CHAR_SET.toUpperCase()},t??{}),n);function zf(n,t,e={}){if(!n)return{width:0,height:0};const i=Of({text:n,fontFamily:t.fontFamily||e.fontFamily||pd,fontSize:t.fontSize||e.fontSize||12,fontWeight:t.fontWeight||e.fontWeight,textAlign:t.textAlign||"center",textBaseline:t.textBaseline,ellipsis:!!t.ellipsis,maxLineWidth:t.maxLineWidth||1/0,lineHeight:t.fontSize||e.fontSize||12});return{width:i.width(),height:i.height()}}function _4(n,t="type"){return NR(n,t)==="rich"}function NR(n,t="type"){var e,i;return yt(n.text)&&"type"in n.text?(e=n.text.type)!==null&&e!==void 0?e:"text":t in n&&(i=n[t])!==null&&i!==void 0?i:"text"}function UR(n){var t,e;return C(n.maxLineWidth)&&(n.maxWidth=n.maxLineWidth,delete n.maxLineWidth),n.width=(t=n.width)!==null&&t!==void 0?t:0,n.height=(e=n.height)!==null&&e!==void 0?e:0,n.textConfig=n.text.text||n.text,n}function f4(n){const{text:t,_originText:e}=n,{text:i}=t;return n.html=i,n.text=e,n.renderable=!1,n}function m4(n){const{text:t,_originText:e}=n,{text:i}=t;return n.react=i,n.text=e,n.renderable=!1,n}function yc(n,t="type"){const e=NR(n,t);return e==="rich"?rt.richtext(UR(n)):(e==="html"?n=f4(n):e==="react"&&(n=m4(n)),rt.text(n))}function LT(n,t,e,i,s){n==="right"?e==="center"?t.setAttribute("x",i-s/2):e==="right"||e==="end"?t.setAttribute("x",i):t.setAttribute("x",i-s):e==="center"?t.setAttribute("x",i+s/2):e==="right"||e==="end"?t.setAttribute("x",i+s):t.setAttribute("x",i)}const f0=(n,t)=>{const e=Math.atan2(n,t);return e<0?e+2*Math.PI:e};function $R(n,t){const{x1:e,y1:i,x2:s,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=n.AABBBounds;let d=0,c=0;return as&&(d=s-l),h>r&&(c=r-h),{dx:d,dy:c}}function mx(n,t){const{dx:e,dy:i}=$R(n,t),{dx:s=0,dy:r=0}=n.attribute;e&&n.setAttribute("dx",e+s),i&&n.setAttribute("dy",i+r)}function jf(){ze(),kr(),Yn(),Ea(),Hs()}var IT=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sd&&(S=d,R.setAttribute("maxLineWidth",d-m[1]-m[2]))),b=0,x=0;let ot=0;W==="left"||W==="start"?ot=1:W==="right"||W==="end"?ot=-1:W==="center"&&(ot=0),ot?ot<0?(b-=S,y&&y.setAttribute("x",(y.attribute.x||0)-I),v.setAttribute("x",-m[1]-T)):ot>0&&v.setAttribute("x",m[3]):(b-=S/2,y&&y.setAttribute("x",(y.attribute.x||0)-I/2),v.setAttribute("x",-T/2));const dt=f==="right"||f==="end",nt=f==="left"||f==="start";if((f?f==="center":_)&&ot){const st=S-m[1]-m[3],et=I+T,K=ot===1?(st-et)/2+T+I/2:m[0]+T-(S/2+et/2-T)+I/2;if(R.setAttributes({x:K,textAlign:"center"}),y){const ft=K-I/2-T+V/2;y.setAttributes({x:ft})}}if(nt&&ot!==1){const st=S-m[1]-m[3],et=ot===0?-st/2+T/2:-S+m[3]+m[1]+T,K=et+T;if(R.setAttributes({x:K,textAlign:"left"}),y){const ft=et+V/2;y.setAttributes({x:ft})}}if(dt&&ot!==-1){const st=S-m[1]-m[3],et=ot===0?st/2+T/2:st;if(R.setAttributes({x:et,textAlign:"right"}),y){const K=et-I-T+V/2;y.setAttributes({x:K})}}at==="middle"?(x-=A/2,y&&y.setAttribute("y",0)):at==="bottom"?(x-=A,y&&y.setAttribute("y",-F/2),v.setAttribute("y",-m[2])):at==="top"&&(v.setAttribute("y",m[0]),y&&y.setAttribute("y",F/2))}const{visible:O}=o,L=IT(o,["visible"]);if(u&&Me(O)){const E=this.createOrUpdateChild("tag-panel",Object.assign(Object.assign({},L),{visible:O&&!!s,width:S,height:A,x:b,y:x}),"rect");if(ht(g==null?void 0:g.panel)||(E.states=g.panel),L.customShape){const B=L.customShape;E.pathProxy=I=>B(this,I,new ei)}this._bgRect=E}this._textShape=R,this._symbol=y,this.resetStates()}initAttributes(t,e){t=e!=null&&e.skipDefault?t:$({},kn.defaultAttributes,t),super.initAttributes(t),this.render()}addState(t,e,i){super.addState(t,e,i),this._textShape&&this._textShape.addState(t,e,i),this._bgRect&&this._bgRect.addState(t,e,i),this._symbol&&this._symbol.addState(t,e,i)}removeState(t,e){super.removeState(t,e),this._textShape&&this._textShape.removeState(t,e),this._bgRect&&this._bgRect.removeState(t,e),this._symbol&&this._symbol.removeState(t,e)}cacheStates(){var t,e,i,s,r,a,o,l,h,d,c,u,g,p;this._tagStates=(e=(t=this.currentStates)===null||t===void 0?void 0:t.slice())!==null&&e!==void 0?e:[],this._rectStates=(r=(s=(i=this._bgRect)===null||i===void 0?void 0:i.currentStates)===null||s===void 0?void 0:s.slice())!==null&&r!==void 0?r:[],this._symbolStates=(l=(o=(a=this._symbol)===null||a===void 0?void 0:a.currentStates)===null||o===void 0?void 0:o.slice())!==null&&l!==void 0?l:[],this._textStates=(c=(d=(h=this._textShape)===null||h===void 0?void 0:h.currentStates)===null||d===void 0?void 0:d.slice())!==null&&c!==void 0?c:[],this.clearStates(),(u=this._bgRect)===null||u===void 0||u.clearStates(),(g=this._symbol)===null||g===void 0||g.clearStates(),(p=this._textShape)===null||p===void 0||p.clearStates()}resetStates(){var t,e,i;this._tagStates.length&&this.useStates(this._tagStates),this._rectStates.length&&((t=this._bgRect)===null||t===void 0||t.useStates(this._rectStates)),this._symbolStates.length&&((e=this._symbol)===null||e===void 0||e.useStates(this._symbolStates)),this._textStates.length&&((i=this._textShape)===null||i===void 0||i.useStates(this._textStates))}}kn.defaultAttributes={visible:!0,textStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},space:4,padding:4,shape:{fill:"#000"}};const YR={visible:!0,position:"auto",titleStyle:{fontSize:16,fill:"#08979c"},contentStyle:{fontSize:12,fill:"green"},panel:{visible:!0,fill:"#e6fffb",size:12,space:0,stroke:"#87e8de",lineWidth:1,cornerRadius:4}},XR={poptip:$({},YR)};function v4(){ze(),Hs(),Yn(),kr()}function y4(n){$(XR.poptip,YR,n)}var b4=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s_?dt=_:dthe&&(he=Pr,Dt=Ct)}}}}getAngleAndOffset(t,e,i,s){const r=s[1]/2;switch(t){case"tl":return{angle:oe/2*3,offset:[e/4,i+r],rectOffset:[-e/4,-i-s[1]]};case"top":return{angle:oe/2*3,offset:[e/2,i+r],rectOffset:[0,-i-s[1]]};case"tr":return{angle:oe/2*3,offset:[e/4*3,i+r],rectOffset:[e/4*3,-i-s[1]]};case"rt":return{angle:0,offset:[-r,i/5],rectOffset:[e/4*3,-i-s[1]]};case"right":return{angle:0,offset:[-r,i/2],rectOffset:[e/4*3,-i-s[1]]};case"rb":return{angle:0,offset:[-r,i/5*4],rectOffset:[e/4*3,-i-s[1]]};case"bl":return{angle:oe/2,offset:[e/4,-r],rectOffset:[-e/4,-i-s[1]]};case"bottom":return{angle:oe/2,offset:[e/2,-r],rectOffset:[0,-i-s[1]]};case"br":return{angle:oe/2,offset:[e/4*3,-r],rectOffset:[e/4*3,-i-s[1]]};case"lt":return{angle:oe,offset:[e+r,i/5],rectOffset:[-e/4,-i-s[1]]};case"left":return{angle:oe,offset:[e+r,i/2],rectOffset:[0,-i-s[1]]};case"lb":return{angle:oe,offset:[e+r,i/5*4],rectOffset:[e/4*3,-i-s[1]]}}}}bc.defaultAttributes={position:"rt",visible:!0,title:null,content:null,titleStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},contentStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},maxWidthPercent:.8,space:8,padding:10};var x4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function S4(n,t){return $(n,XR.poptip,t),n}let _d=class{render(n,t,e,i,s,r,a,o,l,h,d,c,u){var g,p;if(n._showPoptip===1){const{visible:_,visibleCb:f}=n.attribute.poptip||{};if(_===!1||f&&f(n)===!1)return;const m={};$(m,bc.defaultAttributes,n.attribute.poptip?n.attribute.poptip:{}),this.poptipComponent?this.poptipComponent.initAttributes(m):this.poptipComponent=new bc(m);let v=n.attribute.poptip||{};if(n.type==="text"&&v.title==null&&v.content==null){const x={};S4(x,v),v=x,v.content=(g=v.content)!==null&&g!==void 0?g:n.attribute.text}const y=n.globalTransMatrix;this.poptipComponent.setAttributes(Object.assign(Object.assign({visibleAll:!0,pickable:!1,childrenPickable:!1},v),{x:y.e,y:y.f})),h.stage.tryInitInteractiveLayer();const b=h.stage.getLayer("_builtin_interactive");b&&b.add(this.poptipComponent)}else n._showPoptip===2&&(n._showPoptip=0,this.poptipComponent&&(this.poptipComponent.setAttributes({visibleAll:!1}),(p=this.poptipComponent.parent)===null||p===void 0||p.removeChild(this.poptipComponent),this.poptipComponent=null))}};_d=x4([pt()],_d);var KR=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};class qR{constructor(){this.activeEvent="onRegister",this._uid=Je.GenAutoIncrementId(),this.poptip=t=>{const e=t.target;this.needHide(e)?this.unpoptip(t):e!==this.activeGraphic&&(this.needShow(e)&&(e.setAttributes({}),e._showPoptip=1),this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2),this.setActiveGraphic(e,!0))},this.unpoptip=t=>{this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2,this.setActiveGraphic(null,!0))}}activate(t){this.pluginService=t;const{stage:e}=this.pluginService;e.addEventListener("pointerover",this.poptip)}needHide(t){return t.isContainer||!t.attribute}needShow(t){return!!t.attribute.poptip}setActiveGraphic(t,e){this.activeGraphic=t,this.pluginService.stage.renderNextFrame()}deactivate(t){const{stage:e}=this.pluginService;e.removeEventListener("pointerover",this.poptip)}}let fd=class extends qR{constructor(){super(...arguments),this.name="poptip",this.key=this.name+this._uid}};fd=KR([pt()],fd);let md=class extends qR{constructor(){super(...arguments),this.name="poptipForText",this.key=this.name+this._uid,this.pointerlave=n=>{const{stage:t}=this.pluginService;n.target===t&&this.unpoptip(n)}}activate(n){super.activate(n);const{stage:t}=this.pluginService;t.addEventListener("pointerleave",this.pointerlave)}needHide(n){return n.type!=="text"||!n.cliped||n.isContainer||!n.attribute||n.attribute.disableAutoClipedPoptip}needShow(n){return!0}deactivate(n){const{stage:t}=this.pluginService;super.deactivate(n),t.removeEventListener("pointerleave",this.pointerlave)}};md=KR([pt()],md);const A4=new kt((n,t,e,i)=>{e(_d)||(n(_d).toSelf().inSingletonScope(),n(ex).toService(_d)),e(fd)||(n(fd).toSelf(),n(mc).toService(fd)),e(md)||(n(md).toSelf(),n(mc).toService(md))});function k4(){At.load(A4)}class uu extends li{constructor(){super(...arguments),this.name="crosshair"}render(){this.renderCrosshair(this)}}function T4(){ze(),Ar()}function M4(){ze(),kh()}function w4(){ze(),cu()}function C4(){ze(),kr()}function P4(){ze(),kh()}T4();class gu extends uu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},gu.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,lineStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-line",Object.assign({points:[e,i]},s),"line")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}gu.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};C4();class Hf extends uu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Hf.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,rectStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-rect",Object.assign({x:e.x,y:e.y,width:i.x-e.x,height:i.y-e.y},s),"rect")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}Hf.defaultAttributes={rectStyle:{fill:"#b2bacf",opacity:.2}};M4();class Vf extends uu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Vf.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,lineStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-circle",Object.assign(Object.assign(Object.assign(Object.assign({},e),{outerRadius:i}),this.attribute),s),"arc")}setLocation(t){const{center:e}=this.attribute,i=Ke.distancePP(t,e);this.setAttribute("radius",i)}}Vf.defaultAttributes={lineStyle:{stroke:["#b2bacf",!1,!1,!1],lineWidth:1,lineDash:[2]}};P4();class Wf extends uu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Wf.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,innerRadius:s=0,sectorStyle:r}=this.attribute,{startAngle:a,endAngle:o}=this.attribute;return t.createOrUpdateChild("crosshair-sector",Object.assign(Object.assign(Object.assign({},e),{outerRadius:i,innerRadius:s,startAngle:a,endAngle:o}),r),"arc")}setLocation(t){const{center:e,startAngle:i=sh,endAngle:s=rh}=this.attribute,r=s-i,a=Ul(fP(e,t));this.setAttributes({startAngle:a-r/2,endAngle:a+r/2})}}Wf.defaultAttributes={sectorStyle:{fill:"#b2bacf",opacity:.2}};w4();class Gf extends uu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Gf.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,sides:s=6,lineStyle:r}=this.attribute,{startAngle:a,endAngle:o}=this.attribute,l=(o-a)%(2*Math.PI)==0,h=(o-a)/s;let d;for(let c=0;c<=s;c++){const u=ue(e,i,a+h*c);c===0?d=`M${u.x},${u.y}`:d+=`L${u.x},${u.y}`,c===s&&l&&(d+="Z")}return t.createOrUpdateChild("crosshair-polygon",Object.assign({path:d},r),"path")}setLocation(t){const{center:e}=this.attribute,i=Ke.distancePP(t,e);this.setAttribute("radius",i)}}Gf.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};const Dr=new Uint32Array(33),ts=new Uint32Array(33);ts[0]=0,Dr[0]=~ts[0];for(let n=1;n<=32;++n)ts[n]=ts[n-1]<<1|1,Dr[n]=~ts[n];function E4(n,t){const e=new Uint32Array(~~((n*t+32)/32));function i(r,a){e[r]|=a}function s(r,a){e[r]&=a}return{array:e,get:(r,a)=>{const o=a*n+r;return e[o>>>5]&1<<(31&o)},set:(r,a)=>{const o=a*n+r;i(o>>>5,1<<(31&o))},clear:(r,a)=>{const o=a*n+r;s(o>>>5,~(1<<(31&o)))},getRange:({x1:r,y1:a,x2:o,y2:l})=>{if(o<0||l<0||r>n||a>t)return!0;let h,d,c,u,g=l;for(;g>=a;--g)if(h=g*n+r,d=g*n+o,c=h>>>5,u=d>>>5,c===u){if(e[c]&Dr[31&h]&ts[1+(31&d)])return!0}else{if(e[c]&Dr[31&h]||e[u]&ts[1+(31&d)])return!0;for(let p=c+1;p{if(o<0||l<0||r>n||a>t)return;let h,d,c,u,g;for(;a<=l;++a)if(h=a*n+r,d=a*n+o,c=h>>>5,u=d>>>5,c===u)i(c,Dr[31&h]&ts[1+(31&d)]);else for(i(c,Dr[31&h]),i(u,ts[1+(31&d)]),g=c+1;g{let h,d,c,u,g;for(;a<=l;++a)if(h=a*n+r,d=a*n+o,c=h>>>5,u=d>>>5,c===u)s(c,ts[31&h]|Dr[1+(31&d)]);else for(s(c,ts[31&h]),s(u,Dr[1+(31&d)]),g=c+1;gr<0||a<0||l>=t||o>=n,toImageData:r=>{const a=r.createImageData(n,t),o=a.data;for(let l=0;l>>5]&1<<(31&d);o[c+0]=255*u,o[c+1]=255*u,o[c+2]=255*u,o[c+3]=31}return a}}}function ZR(n,t,e={top:0,left:0,right:0,bottom:0}){const{top:i=0,left:s=0,right:r=0,bottom:a=0}=e,o=Math.max(1,Math.sqrt(n*t/1e6)),l=~~((n+s+r+o)/o),h=~~((t+i+a+o)/o),d=c=>~~(c/o);return d.bitmap=()=>E4(l,h),d.x=c=>~~((c+s)/o),d.y=c=>~~((c+i)/o),d.ratio=o,d.padding=e,d.width=n,d.height=t,d}function JR(n,t){const{x1:e,x2:i,y1:s,y2:r}=t,a=be(e,0,n.width),o=be(i,0,n.width),l=be(s,0,n.height),h=be(r,0,n.height);return{x1:n.x(a),x2:n.x(o),y1:n.y(l),y2:n.y(h)}}function Ss(n,t,e=!1){return e?JR(n,t):{x1:n.x(t.x1),x2:n.x(t.x2),y1:n.y(t.y1),y2:n.y(t.y2)}}function sd(n,t,e,i=!0,s=0){let r=e;s>0&&(r={x1:e.x1-s,x2:e.x2+s,y1:e.y1-s,y2:e.y2+s}),r=Ss(n,r);const a=t.outOfBounds(r);return(!i||!a)&&(a&&(r=JR(n,r)),!t.getRange(r))}function m0(n,t,e,i=[],s=!0,r=0){const a=i.filter(o=>C(o));for(let o=0;oa(s.AABBBounds,r,u,i.offset));return m0(n,t,s,c,h,d)}return!1}if(e.type==="moveY"){const c=(e.offset?N(e.offset)?e.offset(s.attribute):e.offset:[]).map(u=>({x:s.attribute.x,y:s.attribute.y+u}));return m0(n,t,s,c,h,d)}if(e.type==="moveX"){const c=(e.offset?N(e.offset)?e.offset(s.attribute):e.offset:[]).map(u=>({x:s.attribute.x+u,y:s.attribute.y}));return m0(n,t,s,c,h,d)}return!1}const O4=["top","bottom","right","left","top-right","bottom-right","top-left","bottom-left"],B4=["top","inside-top","inside"];function L4(n){return n==="rect"?B4:O4}function FT(n,t,e){const{x1:i,x2:s,y1:r,y2:a}=n.AABBBounds,o=Math.min(i,s),l=Math.max(i,s),h=Math.min(r,a),d=Math.max(r,a);let c=0,u=0;return o<0&&l-o<=t?c=-o:l>t&&o-(l-t)>=0&&(c=t-l),h<0&&d-h<=e?u=-h:d>e&&h-(d-e)>=0&&(u=e-d),{dx:c,dy:u}}const I4=(n={})=>{var t,e,i;return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(t=n.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=n.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=n.strokeOpacity)!==null&&i!==void 0?i:1}}},D4=(n={})=>{var t,e,i;return{from:{opacity:(t=n.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=n.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=n.strokeOpacity)!==null&&i!==void 0?i:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},zT={fadeIn:I4,fadeOut:D4};function jT(n,t){var e,i;return(i=(e=zT[t])===null||e===void 0?void 0:e.call(zT,n))!==null&&i!==void 0?i:{from:{},to:{}}}function F4(n,t,e){if(!U(e)){const{duration:i,easing:s,increaseEffect:r=!0}=e;return n.animate().to(t.attribute,i,s),void(r&&n.type==="text"&&t.type==="text"&&HT(n,t,i,s))}e.forEach(i=>{const{duration:s,easing:r,increaseEffect:a=!0,channel:o}=i,{to:l}=z4(n,t,o,i.options);ht(l)||n.animate().to(l,s,r),a&&n.type==="text"&&t.type==="text"&&HT(n,t,s,r)})}const z4=(n,t,e,i)=>{const s=Object.assign({},n.attribute),r=Object.assign({},t.attribute);return j(i==null?void 0:i.excludeChannels).forEach(a=>{delete r[a]}),Object.keys(r).forEach(a=>{e&&!e.includes(a)&&delete r[a]}),{from:s,to:r}};function HT(n,t,e,i){n.attribute.text!==t.attribute.text&&H(Number(n.attribute.text)*Number(t.attribute.text))&&n.animate().play(new dj({text:n.attribute.text},{text:t.attribute.text},e,i))}const v0={mode:"same-time",duration:300,easing:"linear"};function ja(n){return n===3||n===4}function j4(n){return n===1||n===2}function H4(n,t,e,i,s,r){if(n===0&&t===0||r<=0)return[];if(n===0){const u=-e/t,g=r**2-(u-s)**2;return g<0?[]:g===0?[{x:i,y:u}]:[{x:Math.sqrt(g)+i,y:u},{x:-Math.sqrt(g)+i,y:u}]}if(t===0){const u=-e/n,g=r**2-(u-i)**2;return g<0?[]:g===0?[{x:u,y:s}]:[{x:u,y:Math.sqrt(g)+s},{x:u,y:-Math.sqrt(g)+s}]}const a=(t/n)**2+1,o=2*((e/n+i)*(t/n)-s),l=o**2-4*a*((e/n+i)**2+s**2-r**2);if(l<0)return[];const h=(-o+Math.sqrt(l))/(2*a),d=(-o-Math.sqrt(l))/(2*a),c=-(t*h+e)/n;return l===0?[{x:c,y:h}]:[{x:c,y:h},{x:-(t*d+e)/n,y:d}]}function V4(n,t){return t>2*n?NaN:2*Math.asin(t/2/n)}function W4(n,t){const{x1:e,y1:i,x2:s,y2:r}=n,{x1:a,y1:o,x2:l,y2:h}=t;return!(e<=a&&s<=a||e>=l&&s>=l||i<=o&&r<=o||i>=h&&r>=h)}const G4=(n,t,e="top",i=0)=>{if(!n)return;const{x1:s,y1:r,x2:a,y2:o}=n,l=Math.abs(a-s),h=Math.abs(o-r),d=(t.x1+t.x2)/2,c=(t.y1+t.y2)/2;let u=0,g=0,p=0,_=0;t&&(p=Math.abs(t.x1-t.x2)/2,_=Math.abs(t.y1-t.y2)/2);const f={"top-right":-235,"top-left":235,"bottom-right":45,"bottom-left":-45};switch(e){case"top":g=-1;break;case"bottom":g=1;break;case"left":u=-1;break;case"right":u=1;break;case"bottom-left":case"bottom-right":case"top-left":case"top-right":u=Math.sin(f[e]*(Math.PI/180)),g=Math.cos(f[e]*(Math.PI/180));break;case"center":u=0,g=0}return{x:d+u*(i+p)+Math.sign(u)*(l/2),y:c+g*(i+_)+Math.sign(g)*(h/2)}},N4=n=>{if(!n||!n.attribute)return[];const{points:t,segments:e}=n.attribute;if(e&&e.length){const i=[];return e.forEach(s=>{s.points.forEach(r=>{i.push(r)})}),i}return t};function U4(n,t,e="end",i=0){if(!n||!t)return{x:1/0,y:1/0};const{x1:s,x2:r}=n,a=Math.abs(r-s),o=t.x1;let l=o;return e==="end"?l=o+a/2+i:e==="start"&&(l=o-a/2-i),{x:l,y:t.y1}}function $4(n,t){if(!n||!t||ic(n,t,!0))return;const e=Math.min(n.x1,n.x2),i=Math.min(n.y1,n.y2),s=Math.min(t.x1,t.x2),r=Math.min(t.y1,t.y2),a=Math.abs(n.x2-e)/2,o=Math.abs(n.y2-i)/2,l=Math.abs(t.x2-s)/2,h=Math.abs(t.y2-r)/2,d=e+a,c=i+o,u=s+l,g=r+h,p=u-d,_=g-c;return[VT(p,_,d,c,a,o),VT(-p,-_,u,g,l,h)]}function VT(n,t,e,i,s,r){return Math.abs(t/n)0?s:-s),y:i+t*s/Math.abs(n)}:{x:e+n*r/Math.abs(t),y:i+(t>0?r:-r)}}function Y4(n){return n==="left"?0:n==="right"?1:.5}function X4(){ze(),Hs(),Ea(),Ar()}function K4(n,t={}){const{maxIterations:e=10,maxError:i=.1,padding:s=1,maxY:r=Number.MAX_VALUE}=t,a=n.length;if(a<=1)return n;const o=([_,f],[m,v])=>v>_&&f>m,l=new Map,h=_=>l.get(_).y0,d=_=>l.get(_).y,c=_=>l.get(_).height,u=_=>l.get(_).x1,g=_=>l.get(_).x2,p=(_,f)=>{l.get(_).y=f};for(const _ of n){const{y1:f,y2:m,x1:v,x2:y}=_.AABBBounds;l.set(_,{y0:f,y:f,height:m-f,x1:v,x2:y})}for(let _=0;_d(m)-d(v));let f=0;for(let m=0;mr?p(v,x-(s-k)):x-T<0?p(y,A+(s-k)):(p(v,x-T),p(y,A+T))}}}if(f{const a=r.target;a===this._lastHover||ht(a.states)||(a.addState(We.hover,!0),ss(this,o=>{o===a||ht(o.states)||o.addState(We.hoverReverse,!0)}),this._lastHover=a)},this._onUnHover=r=>{this._lastHover&&(ss(this,a=>{ht(a.states)||(a.removeState(We.hoverReverse),a.removeState(We.hover))}),this._lastHover=null)},this._onClick=r=>{const a=r.target;if(this._lastSelect===a&&a.hasState("selected"))return this._lastSelect=null,void ss(this,o=>{ht(o.states)||(o.removeState(We.selectedReverse),o.removeState(We.selected))});ht(a.states)||(a.addState(We.selected,!0),ss(this,o=>{o===a||ht(o.states)||o.addState(We.selectedReverse,!0)}),this._lastSelect=a)},this._handleRelatedGraphicSetState=r=>{var a,o,l,h,d;if(((a=r.detail)===null||a===void 0?void 0:a.type)===He.STATE||((o=r.detail)===null||o===void 0?void 0:o.type)===He.ANIMATE_UPDATE&&(!((l=r.detail.animationState)===null||l===void 0)&&l.isFirstFrameOfStep)){const c=(d=(h=r.target)===null||h===void 0?void 0:h.currentStates)!==null&&d!==void 0?d:[],u=this._isCollectionBase?[...this._graphicToText.values()]:[this._graphicToText.get(r.target)];this.updateStatesOfLabels(u,c)}}}labeling(t,e,i,s){}_getLabelLinePoints(t,e){return $4(t.AABBBounds,e==null?void 0:e.AABBBounds)}_createLabelLine(t,e){const i=this._getLabelLinePoints(t,e);if(i){const s=rt.line({points:i}),{line:r={}}=t.attribute;if(r.customShape){const a=r.customShape;s.pathProxy=o=>a({text:t,baseMark:e},o,new ei)}return e&&e.attribute.fill&&s.setAttribute("stroke",e.attribute.fill),this.attribute.line&&!ht(this.attribute.line.style)&&s.setAttributes(this.attribute.line.style),this._setStatesOfLabelLine(s),s}}render(){if(this._prepare(),P(this._idToGraphic)||this._isCollectionBase&&P(this._idToPoint))return;const{overlap:t,smartInvert:e,dataFilter:i,customLayoutFunc:s,customOverlapFunc:r}=this.attribute;let a=this.attribute.data;N(i)&&(a=i(a));let o=this._initText(a);o=N(s)?s(a,o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null):this._layout(o),N(r)?o=r(o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null):t!==!1&&(o=this._overlapping(o)),N(this.attribute.onAfterOverlapping)&&this.attribute.onAfterOverlapping(o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null),o&&o.length&&o.forEach(l=>{this._bindEvent(l),this._setStatesOfText(l)}),e!==!1&&this._smartInvert(o),this._renderLabels(o)}_bindEvent(t){if(this.attribute.disableTriggerEvent||!t)return;const{hover:e,select:i}=this.attribute;e&&(t.addEventListener("pointermove",this._onHover),t.addEventListener("pointerout",this._onUnHover)),i&&t.addEventListener("pointerdown",this._onClick)}_setStatesOfText(t){if(!t)return;const e=this.attribute.state;e&&!ht(e)&&(t.states=e)}_setStatesOfLabelLine(t){if(!t)return;const e=this.attribute.labelLineState;e&&!ht(e)&&(t.states=e)}_createLabelText(t){var e,i;const s=Object.assign(Object.assign({},(i=(e=this.stage)===null||e===void 0?void 0:e.getTheme())===null||i===void 0?void 0:i.text),t);return yc(s,"textType")}_prepare(){var t,e;const i=[];let s;if(s=N(this.attribute.getBaseMarks)?this.attribute.getBaseMarks():o4(this.getRootNode(),this.attribute.baseMarkGroupName),s.forEach(a=>{a.releaseStatus!=="willRelease"&&i.push(a)}),(t=this._idToGraphic)===null||t===void 0||t.clear(),(e=this._idToPoint)===null||e===void 0||e.clear(),this._baseMarks=i,this._isCollectionBase=this.attribute.type==="line-data",!i||i.length===0)return;const{data:r}=this.attribute;if(r&&r.length!==0){if(this._idToGraphic||(this._idToGraphic=new Map),this._isCollectionBase){this._idToPoint||(this._idToPoint=new Map);let a=0;for(let o=0;o!!h&&h!==!0):a.attribute.stroke:a.attribute.fill},e),r),l=this._createLabelText(o);i.push(l)}return i}_layout(t){const{position:e,offset:i}=this.attribute;for(let s=0;sh(g.attribute.data)-h(u.attribute.data))),(l==null?void 0:l.type)==="shiftY"?this._overlapGlobal(t,r,d,c):this._overlapByStrategy(t,r,d,c)}_overlapGlobal(t,e,i,s){let r=t.filter(d=>d.attribute.visible&&d.attribute.opacity!==0);const{clampForce:a=!0,hideOnHit:o=!0,overlapPadding:l,strategy:h}=e;if(a)for(let d=0;dp.type==="bound");a&&((r=this._baseMarks)===null||r===void 0||r.forEach(p=>{p.AABBBounds&&s.setRange(Ss(i,p.AABBBounds,!0))})),d.length>0&&d.forEach(p=>{tt(p)?l4(this.getRootNode(),p).forEach(_=>{_.AABBBounds&&s.setRange(Ss(i,_.AABBBounds,!0))}):p.AABBBounds&&s.setRange(Ss(i,p.AABBBounds,!0))});for(let p=0;pe.name===t,!0)}getGraphicBounds(t,e={}){if(t){if(t.attribute.visible!==!1)return t.AABBBounds;const{x:r,y:a}=t.attribute;return{x1:r,x2:r,y1:a,y2:a}}const{x:i,y:s}=e;return{x1:i,x2:i,y1:s,y2:s}}_renderLabels(t){var e;const{syncState:i}=this.attribute,s=new Map,r=this._graphicToText||new Map,a=[],o=[],{visible:l}=(e=this.attribute.line)!==null&&e!==void 0?e:{};t&&t.forEach((h,d)=>{var c;const u=this.getRelatedGraphic(h.attribute),g=this._isCollectionBase?h.attribute.id:u,p=r!=null&&r.get(g)?"update":"enter";let _;if(l&&(_=this._createLabelLine(h,u)),i&&this.updateStatesOfLabels([_?{text:h,labelLine:_}:{text:h}],(c=u.currentStates)!==null&&c!==void 0?c:[]),p==="enter")a.push(h),s.set(g,_?{text:h,labelLine:_}:{text:h}),this._addLabel({text:h,labelLine:_},a,o,d);else if(p==="update"){const f=r.get(g);r.delete(g),s.set(g,f),this._updateLabel(f,{text:h,labelLine:_})}}),this._removeLabel(r),this._graphicToText=s}_addLabel(t,e,i,s){const{text:r,labelLine:a}=t,o=this.getRelatedGraphic(r.attribute);if(this._syncStateWithRelatedGraphic(o),this._enableAnimation!==!1&&this._animationConfig.enter!==!1){if(o){const{from:l,to:h}=jT(r.attribute,"fadeIn");r&&this.add(r),a&&(i.push(a),this.add(a)),this._animationConfig.enter.duration>0&&o.once("animate-bind",d=>{r.setAttributes(l),a&&a.setAttributes(l);const c=this._afterRelatedGraphicAttributeUpdate(r,e,a,i,s,o,h,this._animationConfig.enter);o.on("afterAttributeUpdate",c)})}}else r&&this.add(r),a&&this.add(a)}_updateLabel(t,e){const{text:i,labelLine:s}=t,{text:r,labelLine:a}=e;if(this._enableAnimation!==!1&&this._animationConfig.update!==!1){const{duration:o,easing:l}=this._animationConfig.update;F4(i,r,this._animationConfig.update),s&&a&&t.labelLine.animate().to(a.attribute,o,l)}else t.text.setAttributes(r.attribute),s&&a&&t.labelLine.setAttributes(a.attribute)}_removeLabel(t){const e=i=>{this.removeChild(i.text),i.labelLine&&this.removeChild(i.labelLine)};if(this._enableAnimation!==!1&&this._animationConfig.exit!==!1){const{duration:i,easing:s}=this._animationConfig.exit;t.forEach(r=>{var a;(a=r.text)===null||a===void 0||a.animate().to(jT(r.text.attribute,"fadeOut").to,i,s).onEnd(()=>{e(r)})})}else t.forEach(i=>{e(i)})}updateStatesOfLabels(t,e){t.forEach(i=>{i&&(i.text&&i.text.useStates(e),i.labelLine&&i.labelLine.useStates(e))})}_syncStateWithRelatedGraphic(t){this.attribute.syncState&&t&&t.on("afterAttributeUpdate",this._handleRelatedGraphicSetState)}_afterRelatedGraphicAttributeUpdate(t,e,i,s,r,a,o,{mode:l,duration:h,easing:d,delay:c}){const u=g=>{var p,_,f;const{detail:m}=g;if(!m)return{};const v=(p=m.animationState)===null||p===void 0?void 0:p.step;if(!(m.type===He.ANIMATE_UPDATE&&v&&!(v.type==="wait"&&((_=v.prev)===null||_===void 0?void 0:_.type)==null)))return{};if(m.type===He.ANIMATE_END)return t.setAttributes(o),void(i&&i.setAttributes(o));const y=()=>{a&&(a.onAnimateBind=void 0,a.removeEventListener("afterAttributeUpdate",u))};switch(l){case"after":m.animationState.end&&(t.animate({onStart:y}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d));break;case"after-all":r===e.length-1&&m.animationState.end&&(e.forEach(b=>{b.animate({onStart:y}).wait(c).to(o,h,d)}),s.forEach(b=>{b.animate().wait(c).to(o,h,d)}));break;default:if(this._isCollectionBase){const b=this._idToPoint.get(t.attribute.id);!b||t.animates&&t.animates.has("label-animate")||!a.containsPoint(b.x,b.y,Xl.LOCAL,(f=this.stage)===null||f===void 0?void 0:f.getPickerService())||(t.animate({onStart:y}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}else m.animationState.isFirstFrameOfStep&&(t.animate({onStart:y}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}};return u}_smartInvert(t){var e,i,s,r,a,o,l;const h=yt(this.attribute.smartInvert)?this.attribute.smartInvert:{},{textType:d,contrastRatiosThreshold:c,alternativeColors:u,mode:g,interactInvertType:p}=h,_=(e=h.fillStrategy)!==null&&e!==void 0?e:"invertBase",f=(i=h.strokeStrategy)!==null&&i!==void 0?i:"base",m=(s=h.brightColor)!==null&&s!==void 0?s:"#ffffff",v=(r=h.darkColor)!==null&&r!==void 0?r:"#000000",y=(a=h.outsideEnable)!==null&&a!==void 0&&a;if(_!=="null"||f!=="null")for(let b=0;b{QR[n]=t},Z4=n=>QR[n];var J4=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{ah("symbol",xc),ah("line-data",xc)};var Q4=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{ah("rect",Sc)};var e$=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var h;return o.concat((h=l.points)!==null&&h!==void 0?h:[])},[])),s&&s.length!==0||(s=[e]);const a=i==="start"?0:s.length-1;return s[a]?{x1:s[a].x,x2:s[a].x,y1:s[a].y,y2:s[a].y}:void 0}labeling(t,e,i="end",s=0){return U4(t,e,i,s)}};Iy.defaultAttributes={textStyle:{fill:"#000"},position:"end",offset:6};const eO=()=>{ah("line",Iy),ah("area",Iy)};var i$=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sthis.getGraphicBounds(u)),o=Object.assign(Object.assign({},this.attribute.textStyle),{text:"…"});let l=1/0;if(o.ellipsis!==!1){const u=this._createLabelText(o),g=this.getGraphicBounds(u);l=g.x2-g.x1}const h=r.map(u=>u.attribute),d=Array.from(this._idToGraphic.values());this._line2MinLength=N(this.attribute.line.line2MinLength)?this.attribute.line.line2MinLength(t,d,this.attribute):this.attribute.line.line2MinLength,this._alignOffset=(e=N(this.attribute.layout.alignOffset)?this.attribute.layout.alignOffset(t,d,this.attribute):this.attribute.layout.alignOffset)!==null&&e!==void 0?e:0;const c=this.layoutArcLabels(this.attribute.position,this.attribute,d,h,a,l);for(let u=0;u{var f;return((f=_.refDatum)===null||f===void 0?void 0:f.id)===g.id});if(p){const _={visible:p.labelVisible,x:p.labelPosition.x,y:p.labelPosition.y,angle:p.angle,points:p.pointA&&p.pointB&&p.pointC?[p.pointA,p.pointB,p.pointC]:void 0,line:p.labelLine};r[u].type==="richtext"?_.width=(i=p.labelLimit)!==null&&i!==void 0?i:r[u].attribute.width:_.maxLineWidth=(s=p.labelLimit)!==null&&s!==void 0?s:r[u].attribute.maxLineWidth,r[u].setAttributes(_)}}return r}layoutArcLabels(t,e,i,s,r,a){this._arcLeft.clear(),this._arcRight.clear(),this._ellipsisWidth=a;let o=0;i.forEach(c=>{c.attribute.outerRadius>o&&(o=c.attribute.outerRadius)}),s.forEach((c,u)=>{var g,p;const _=this._idToGraphic.get(c.id).attribute,f={x:(g=_==null?void 0:_.x)!==null&&g!==void 0?g:0,y:(p=_==null?void 0:_.y)!==null&&p!==void 0?p:0};if(!P(s[u])&&!P(r[u])){const m=s[u]?s[u]:null,v=r[u]?r[u]:{x1:0,x2:0,y1:0,y2:0},y=(_.startAngle+_.endAngle)/2,b=_.endAngle-_.startAngle,x=mP(_.endAngle-b/2),S=ue(f,_.outerRadius,y),A=ue(f,o+e.line.line1MinLength,y),k=new n$(m,S,A,x,b,y,_.innerRadius,_.outerRadius,f);k.pointA=ue(f,this.computeDatumRadius(2*f.x,2*f.y,_.outerRadius),k.middleAngle),k.labelSize={width:v.x2-v.x1,height:v.y2-v.y1},j4(k.quadrant)?this._arcRight.set(k.refDatum,k):ja(k.quadrant)&&this._arcLeft.set(k.refDatum,k)}});const l=Array.from(this._arcLeft.values()),h=Array.from(this._arcRight.values()),d=[];switch(t){case"inside":case"inside-inner":case"inside-outer":case"inside-center":d.push(...this._layoutInsideLabels(h,e,i)),d.push(...this._layoutInsideLabels(l,e,i));break;default:d.push(...this._layoutOutsideLabels(h,e,i)),d.push(...this._layoutOutsideLabels(l,e,i))}return d}_layoutInsideLabels(t,e,i){var s,r;const a=e,o=a.spaceWidth,l=(s=a.position)!==null&&s!==void 0?s:"inside",h=(r=a.offsetRadius)!==null&&r!==void 0?r:-o;return t.forEach(d=>{var c,u,g;const{labelSize:p,radian:_}=d,f=d.innerRadius,m=d.outerRadius;let v;if(_=Math.PI?f:Math.max(f,p.height/2/Math.tan(_/2)),v=m-k-o}a.rotate!==!0&&(v=m-o);const y=this._getFormatLabelText(d.refDatum,v);d.labelText=y;const b=Math.min(v,d.labelSize.width),x=this._computeAlign(d,e);let S,A=0;if(l==="inside"&&(A=x==="left"?b:x==="right"?0:b/2),S=l==="inside-inner"?f-h+A:l==="inside-center"?f+(m-f)/2:m+h-A,d.labelPosition=ue(d.circleCenter,S,d.middleAngle),d.labelLimit=b,Zs(b,0)||(d.labelVisible=!1),a.rotate!==!1){d.angle=(u=(c=e.textStyle)===null||c===void 0?void 0:c.angle)!==null&&u!==void 0?u:d.middleAngle;let k=(g=a.offsetAngle)!==null&&g!==void 0?g:0;["inside-inner","inside-outer"].includes(l)&&(k+=Math.PI/2),d.angle+=k}}),t}_layoutOutsideLabels(t,e,i){var s,r,a;const o=(s=i[0].attribute.x)!==null&&s!==void 0?s:0,l=2*((r=i[0].attribute.y)!==null&&r!==void 0?r:0),h=e.layout,d=e.spaceWidth;if(t.forEach(u=>{const g=ja(u.quadrant)?-1:1;u.labelPosition={x:u.outerCenter.x+g*(u.labelSize.width/2+this._line2MinLength+d),y:u.outerCenter.y}}),t.sort((u,g)=>u.labelPosition.y-g.labelPosition.y),e.coverEnable!==!1||h.strategy==="none"){for(const u of t){const{labelPosition:g,labelSize:p}=u;u.labelLimit=p.width,u.pointB=ja(u.quadrant)?{x:g.x+p.width/2+this._line2MinLength+d,y:g.y}:{x:g.x-p.width/2-this._line2MinLength-d,y:g.y},this._computeX(u,e,i)}e.coverEnable===!1&&h.strategy==="none"&&this._coverLabels(t)}else{const u=l/(((a=e.textStyle)===null||a===void 0?void 0:a.fontSize)||16);this._adjustY(t,u,e,i);const{minY:g,maxY:p}=t.reduce((m,v)=>{const{y1:y,y2:b}=v.getLabelBounds();return m.minY=Math.max(0,Math.min(y,m.minY)),m.maxY=Math.min(l,Math.max(b,m.maxY)),m},{minY:1/0,maxY:-1/0}),_=Math.max(Math.abs(l/2-g),Math.abs(p-l/2)),f=this._computeLayoutRadius(_,e,i);for(const m of t)this._computePointB(m,f,e,i),this._computeX(m,e,i)}const c=2*o;return t.forEach(u=>{var g,p;u.labelVisible&&(bs(u.pointB.x,this._line2MinLength+d)||Zs(u.pointB.x,c-this._line2MinLength-d))&&(u.labelVisible=!1),u.angle=(p=(g=e.textStyle)===null||g===void 0?void 0:g.angle)!==null&&p!==void 0?p:0,e.offsetAngle&&(u.angle+=e.offsetAngle),u.labelLine=Object.assign(Object.assign({},e.line),{visible:u.labelVisible})}),t}_computeX(t,e,i){var s;const r=t.circleCenter,a=0,o=this.attribute.width;this.attribute.height;let l=0;i.forEach(T=>{T.attribute.outerRadius>l&&(l=T.attribute.outerRadius)});const h=this.computeLayoutOuterRadius(l,e.width,e.height),d=e.line.line1MinLength,c=(s=e.layout)===null||s===void 0?void 0:s.align,u=e.spaceWidth,{labelPosition:g,quadrant:p,pointB:_}=t;H(_.x*_.y)||(t.pointC={x:NaN,y:NaN},g.x=NaN,t.labelLimit=0);const f=this.computeRadius(h,e.width,e.height),m=ja(p)?-1:1;let v=0,y=(m>0?o-_.x:_.x-a)+this._alignOffset-this._line2MinLength-u;c==="labelLine"&&(v=(f+d+this._line2MinLength)*m+r.x,y=(m>0?o-v:v-a)-u);const b=this._getFormatLabelText(t.refDatum,y);t.labelText=b;let x=Math.min(y,t.labelSize.width);switch(c){case"labelLine":break;case"edge":v=m>0?o-x-u:a+x+u;break;default:v=_.x+m*this._line2MinLength}x=Math.max(this._ellipsisWidth,x);const S=x0?o:a)-m*k+m*this._alignOffset,t.pointC.x+=m*this._alignOffset):g.x=v+m*(this._alignOffset+u+k)}_computeAlign(t,e){var i,s,r,a,o,l;const h=e,d=(s=(i=h.textStyle)===null||i===void 0?void 0:i.textAlign)!==null&&s!==void 0?s:(r=h.textStyle)===null||r===void 0?void 0:r.align,c=(o=(a=h.layout)===null||a===void 0?void 0:a.textAlign)!==null&&o!==void 0?o:(l=h.layout)===null||l===void 0?void 0:l.align;return h.position!=="inside"?P(d)||d==="auto"?c==="edge"?ja(t.quadrant)?"left":"right":ja(t.quadrant)?"right":"left":d:P(d)||d==="auto"?"center":d}_getFormatLabelText(t,e){var i;return(i=t==null?void 0:t.text)!==null&&i!==void 0?i:""}_adjustY(t,e,i,s){var r;s[0].attribute.x;const a=2*((r=s[0].attribute.y)!==null&&r!==void 0?r:0),o=i.layout;if(o.strategy==="vertical"){let l,h=0;const d=t.length;if(d<=0)return;for(let u=0;u=0&&t[u].getLabelBounds().y2>a;u--)t[u].labelVisible=!1}else if(o.strategy!=="none"){const l=t.map((c,u)=>({arc:c,originIndex:u,priorityIndex:0}));l.sort((c,u)=>u.arc.radian-c.arc.radian),l.forEach((c,u)=>{c.priorityIndex=u,c.arc.labelVisible=!1});let h=1/0,d=-1/0;for(let c=0;cx?u.labelPosition.y=x-m.labelSize.height/2-u.labelSize.height/2:this._twoWayShift(t,u,m,_)}else if(p!==-1&&_===-1){const x=f.labelPosition.y;gS?(u.labelPosition.y=S-m.labelSize.height/2-u.labelSize.height/2,this._twoWayShift(t,f,u,l[c].originIndex)):g=0&&o0&&hc)return a}a=o}return i}_findNextVisibleIndex(t,e,i,s){const r=(i-e)*s;for(let a=1;a<=r;a++){const o=e+a*s;if(t[o].labelVisible)return o}return-1}_computePointB(t,e,i,s){const r=i;let a=0;s.forEach(h=>{h.attribute.outerRadius>a&&(a=h.attribute.outerRadius)});const o=this.computeLayoutOuterRadius(a,i.width,i.height),l=r.line.line1MinLength;if(r.layout.strategy==="none")t.pointB={x:t.outerCenter.x,y:t.outerCenter.y};else{const h=t.circleCenter,d=this.computeRadius(o,i.width,i.height),{labelPosition:c,quadrant:u}=t,g=e-Math.max(d+l,t.outerRadius),p=Math.sqrt(e**2-Math.abs(h.y-c.y)**2)-g;H(p)?t.pointB={x:h.x+p*(ja(u)?-1:1),y:c.y}:t.pointB={x:NaN,y:NaN}}}_storeY(t){for(const e of t)e.labelVisible&&(e.lastLabelY=e.labelPosition.y)}_computeYRange(t,e,i){const s=t.circleCenter,r={width:2*s.x,height:2*s.y};let a=0;i.forEach(x=>{x.attribute.outerRadius>a&&(a=x.attribute.outerRadius)});const o=this.computeLayoutOuterRadius(a,e.width,e.height),l=e.line.line1MinLength,{width:h,height:d}=r,c=this.computeRadius(o,e.width,e.height),u=this._computeLayoutRadius(d/2,e,i),g=Math.abs(t.center.x-h/2),p=t.center.y-d/2;let _,f,m;if(Ge(h/2,g))_=0,f=1,m=-p;else if(Ge(d/2,p))_=1,f=0,m=-g;else{const x=-1/(p/g);_=x,f=-1,m=p-x*g}const v=H4(_,f,m,l+c-u,0,u);if(v.length<2)return;let y,b;v[0].x>v[1].x&&v.reverse(),v[0].x<0?Ge(v[0].y,v[1].y)?Zs(t.middleAngle,-Math.PI)&&bs(t.middleAngle,0)||Zs(t.middleAngle,Math.PI)&&bs(t.middleAngle,2*Math.PI)?(y=0,b=v[1].y+d/2):(y=v[1].y+d/2,b=d):v[0].y{c.attribute.outerRadius>o&&(o=c.attribute.outerRadius)});const l=this.computeLayoutOuterRadius(o,e.width,e.height),h=this.computeRadius(l,e.width,e.height)+a,d=h-r;return Math.max((d**2+t**2)/(2*d),h)}_findNeighborIndex(t,e){const i=e.originIndex;let s=-1,r=-1;for(let a=i-1;a>=0;a--)if(t[a].labelVisible){s=a;break}for(let a=i+1;a{ah("arc",Uf)};var r$=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{h.get(u)||this.removeChild(c)}),this._componentMap=h}setLocation(t){this.translateTo(t.x,t.y)}disableAnimation(){this._componentMap.forEach(t=>{t.disableAnimation()})}enableAnimation(){this._componentMap.forEach(t=>{t.enableAnimation()})}}$f.defaultAttributes={pickable:!1};function vx(){ze(),Ar(),Ff(),Yn()}function yx(){ze(),Ar(),kh(),Yn()}vx();class fr extends li{getStartAngle(){return va(this._startAngle)}getEndAngle(){return va(this._endAngle)}getMainSegmentPoints(){return this._mainSegmentPoints}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},fr.defaultAttributes,t)),this.name="segment",this.key="segment",this.lines=[]}render(){this.removeAllChild(!0),this._reset();const{startSymbol:t,endSymbol:e,lineStyle:i,state:s,visible:r=!0,multiSegment:a,mainSegmentIndex:o}=this.attribute;if(!r)return;this._computeLineAngle();const l=this._getMainSegmentPoints(),h=this._renderSymbol(t,l,"start"),d=this._renderSymbol(e,l,"end");if(this.startSymbol=h,this.endSymbol=d,a){const c=[...this.attribute.points];if(H(o))c[o]=this._clipPoints(c[o]);else{const u=this._clipPoints(U0(c));c[0][0]=u[0],c[c.length-1][c[c.length-1].length-1]=u[u.length-1]}c.forEach((u,g)=>{var p,_;const f=rt.line(Object.assign(Object.assign({points:u},U(i)?(p=i[g])!==null&&p!==void 0?p:i[i.length-1]:i),{fill:!1}));f.name=`${this.name}-line`,f.id=this._getNodeId("line"+g),ht(s==null?void 0:s.line)||(f.states=U(s.line)?(_=s.line[g])!==null&&_!==void 0?_:s.line[s.line.length-1]:s.line),this.add(f),this.lines.push(f)})}else{let c=rt.line;j(i)[0].cornerRadius&&(c=rt.polygon);const u=c(Object.assign(Object.assign({points:this._clipPoints(this.attribute.points)},j(i)[0]),{fill:!1,closePath:!1}));u.name=`${this.name}-line`,u.id=this._getNodeId("line"),ht(s==null?void 0:s.line)||(u.states=[].concat(s.line)[0]),this.add(u),this.lines.push(u)}}_computeStartRotate(t){return t+Math.PI/2}_computeEndRotate(t){return t+Math.PI/2}_renderSymbol(t,e,i){if(!e.length)return;const{autoRotate:s=!0}=t;let r;if(t&&t.visible){const a=this.getStartAngle(),o=this.getEndAngle(),{state:l}=this.attribute,h=e[0],d=e[e.length-1],{refX:c=0,refY:u=0,refAngle:g=0,style:p,symbolType:_,size:f=12}=t;let m,v;i==="start"?(m={x:h.x+(H(a)?c*Math.cos(a)+u*Math.cos(a-Math.PI/2):0),y:h.y+(H(a)?c*Math.sin(a)+u*Math.sin(a-Math.PI/2):0)},v=this._computeStartRotate(this._startAngle)):(m={x:d.x+(H(o)?c*Math.cos(o)+u*Math.cos(o-Math.PI/2):0),y:d.y+(H(o)?c*Math.sin(o)+u*Math.sin(o-Math.PI/2):0)},v=this._computeEndRotate(this._endAngle)),r=rt.symbol(Object.assign(Object.assign(Object.assign({},m),{symbolType:_,size:f,angle:s?v+g:0,strokeBoundsBuffer:0}),p)),r.name=`${this.name}-${i}-symbol`,r.id=this._getNodeId(`${i}-symbol`),ht(l==null?void 0:l.symbol)||(r.states=l.symbol),i==="start"?ht(l==null?void 0:l.startSymbol)||(r.states=l.startSymbol):ht(l==null?void 0:l.endSymbol)||(r.states=l.endSymbol),this.add(r)}return r}_getMainSegmentPoints(){if(this._mainSegmentPoints)return this._mainSegmentPoints;const{points:t,multiSegment:e,mainSegmentIndex:i}=this.attribute;let s;return s=e?H(i)?t[i]:U0(t):t,this._mainSegmentPoints=s,s}_clipPoints(t){const{startSymbol:e={},endSymbol:i={}}=this.attribute;let s=t;if(e.visible){const r=e.clip?e.size||10:0;s=[{x:t[0].x-r/2*(Math.cos(this._startAngle)||0),y:t[0].y-r/2*(Math.sin(this._startAngle)||0)},...s.slice(1)]}if(i.visible){const r=i.clip?i.size||10:0,a={x:t[t.length-1].x-r/2*(Math.cos(this._endAngle)||0),y:t[t.length-1].y-r/2*(Math.sin(this._endAngle)||0)};s=[...s.slice(0,s.length-1),a]}return s}_computeLineAngle(){const t=this._getMainSegmentPoints();if(t.length<=1)return;const e=t[0],i=t[1],s=t[t.length-2],r=t[t.length-1],a=[e.x-i.x,e.y-i.y],o=Math.atan2(a[1],a[0]),l=[r.x-s.x,r.y-s.y],h=Math.atan2(l[1],l[0]);this._startAngle=o,this._endAngle=h}_reset(){this.startSymbol=null,this.endSymbol=null,this._startAngle=null,this._endAngle=null,this._mainSegmentPoints=null}}fr.defaultAttributes={visible:!0,lineStyle:{lineWidth:1,stroke:"#000"},startSymbol:{visible:!1,autoRotate:!0,symbolType:"triangle",size:12,refX:0,refY:0,refAngle:0,style:{fill:"#000",zIndex:1}},endSymbol:{visible:!1,autoRotate:!0,symbolType:"triangle",size:12,refX:0,refY:0,refAngle:0,style:{fill:"#000",zIndex:1}}};yx();class Dy extends fr{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},fr.defaultAttributes,t)),this.name="arc-segment",this.key="arc-segment",this.isReverseArc=!1}getStartAngle(){const t=this.isReverseArc?this._startAngle+Math.PI/2:this._startAngle-Math.PI/2;return t<0?t+2*Math.PI:t>2*Math.PI?t-2*Math.PI:t}getEndAngle(){const t=this.isReverseArc?this._endAngle-Math.PI/2:this._endAngle+Math.PI/2;return t<0?t+2*Math.PI:t>2*Math.PI?t-2*Math.PI:t}getMainSegmentPoints(){return this._mainSegmentPoints}_computeStartRotate(t){return this.isReverseArc?t+Math.PI:t}_computeEndRotate(t){return this.isReverseArc?t:t+Math.PI}render(){this.removeAllChild(!0),this._reset();const{startSymbol:t,endSymbol:e,lineStyle:i,state:s,visible:r=!0,radius:a,startAngle:o,endAngle:l,center:h}=this.attribute;if(!r)return;this._startAngle=o,this._endAngle=l,this.isReverseArc=o>l;const d={x:h.x+a*Math.cos(this._startAngle),y:h.y+a*Math.sin(this._startAngle)},c={x:h.x+a*Math.cos(this._endAngle),y:h.y+a*Math.sin(this._endAngle)};this._mainSegmentPoints=[d,c];const u=this._renderSymbol(t,this._mainSegmentPoints,"start"),g=this._renderSymbol(e,this._mainSegmentPoints,"end");this.startSymbol=u,this.endSymbol=g;const p=rt.arc(Object.assign({x:h.x,y:h.y,startAngle:o,endAngle:l,innerRadius:a,outerRadius:a},i));p.name=`${this.name}-line`,p.id=this._getNodeId("arc"),ht(s==null?void 0:s.line)||(p.states=[].concat(s.line)[0]),this.add(p),this.line=p}}var ni;(function(n){n.innerView="inner-view",n.axisContainer="axis-container",n.labelContainer="axis-label-container",n.tickContainer="axis-tick-container",n.tick="axis-tick",n.subTick="axis-sub-tick",n.label="axis-label",n.title="axis-title",n.gridContainer="axis-grid-container",n.grid="axis-grid",n.gridRegion="axis-grid-region",n.line="axis-line",n.background="axis-background",n.axisLabelBackground="axis-label-background",n.axisBreak="axis-break",n.axisBreakSymbol="axis-break-symbol"})(ni||(ni={}));var vl;(function(n){n.selected="selected",n.selectedReverse="selected_reverse",n.hover="hover",n.hoverReverse="hover_reverse"})(vl||(vl={}));const ks={[vl.selectedReverse]:{},[vl.selected]:{},[vl.hover]:{},[vl.hoverReverse]:{}},a$=999,h_={title:{space:4,padding:0,textStyle:{fontSize:12,fill:"#333333",fontWeight:"normal",fillOpacity:1}},label:{visible:!0,inside:!1,space:4,padding:0,style:{fontSize:12,fill:"#333",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#000",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#999",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#000",strokeOpacity:1}}},WT={size:8,stroke:"#000",lineWidth:1,zIndex:1};function o$(n,t){return{x:n.x+t[0],y:n.y+t[1]}}function l$(n={}){var t,e;const{style:i={},angle:s=.5*Math.PI}=n,r=$({},WT,i),a=(t=r.size)!==null&&t!==void 0?t:WT.size;return Object.assign(Object.assign({},r),{symbolType:(e=r.symbolType)!==null&&e!==void 0?e:`M ${-a/2} ${a*Math.sin(s)} L ${a/2} ${-a*Math.sin(s)}`,symbolSize:a})}function iO(n){const t={};return ss(n,e=>{e.type!=="group"&&e.id&&(t[e.id]=e)}),t}function bx(n,t){return{x:n.x+t[0],y:n.y+t[1]}}function Fy(n,t,e,i=!1,s=!1){const r=[t.x-e.x,t.y-e.y];return WR(r,(i?-1:1)*(s?-1:1)*n/GR(r))}function h$(n){let t="center",e="middle";return t=(n=va(n))>=Math.PI*(5/3)||n<=Math.PI*(1/3)?"left":n>=Math.PI*(2/3)&&n<=Math.PI*(4/3)?"right":"center",e=n>=Math.PI*(7/6)&&n<=Math.PI*(11/6)?"bottom":n>=Math.PI*(1/6)&&n<=Math.PI*(5/6)?"top":"middle",{align:t,baseline:e}}function d$(n,t,e,i,s){const r=ue({x:0,y:0},e,n),a=bx(r,Fy(i,r,t,s));return o$(a,Fy(i||1,a,t,s))}function nO(n,t,e,i,s){const r=[],a=s-i;for(let o=0;o{s===0?e=`M${i.x},${i.y}`:e+=`L${i.x},${i.y}`}),t&&(e+="Z")),e}function rs(n,t,e){let i=n.OBBBounds,s=t.OBBBounds;return i&&s&&!i.empty()&&!s.empty()?i.intersects(s):(i=n.AABBBounds,s=t.AABBBounds,e>Math.max(s.x1-i.x2,i.x1-s.x2,s.y1-i.y2,i.y1-s.y2))}function zy(n,t){for(let e,i=1,s=n.length,r=n[0];i{const i=n.target;return i!==e&&i.name&&!ht(i.states)?(i.addState(We.hover,!0),ss(t,s=>{s!==i&&s.name&&!ht(s.states)&&s.addState(We.hoverReverse,!0)}),i):e},rO=(n,t,e)=>e&&(ss(t,i=>{i.name&&!ht(i.states)&&(i.removeState(We.hoverReverse),i.removeState(We.hover))}),null),aO=(n,t,e)=>{const i=n.target;return e===i&&i.hasState(We.selected)?(ss(t,s=>{s.name&&!ht(s.states)&&(s.removeState(We.selectedReverse),s.removeState(We.selected))}),null):i.name&&!ht(i.states)?(i.addState(We.selected,!0),ss(t,s=>{s!==i&&s.name&&!ht(s.states)&&s.addState(We.selectedReverse,!0)}),i):e};class oO extends li{constructor(){super(...arguments),this.name="axis",this.data=[],this.tickLineItems=[],this.subTickLineItems=[],this.axisLabelLayerSize={},this.axisLabelsContainer=null,this._onHover=t=>{this._lastHover=sO(t,this.axisContainer,this._lastHover)},this._onUnHover=t=>{this._lastHover=rO(t,this.axisContainer,this._lastHover)},this._onClick=t=>{this._lastSelect=aO(t,this.axisContainer,this._lastSelect)}}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}getBoundsWithoutRender(t){const e=xn(this.attribute);$(this.attribute,t);const i=rt.group({x:this.attribute.x,y:this.attribute.y});return this.add(i),this._renderInner(i),this.removeChild(i),this.attribute=e,i.AABBBounds}render(){this._prevInnerView=this._innerView&&iO(this._innerView),this.removeAllChild(!0),this._innerView=rt.group({x:0,y:0,pickable:!1}),this.add(this._innerView),this._renderInner(this._innerView),this._bindEvent()}_bindEvent(){if(this.attribute.disableTriggerEvent)return;const{hover:t,select:e}=this.attribute;t&&(this._innerView.addEventListener("pointermove",this._onHover),this._innerView.addEventListener("pointerout",this._onUnHover)),e&&this._innerView.addEventListener("pointerdown",this._onClick)}_renderInner(t){const{title:e,label:i,tick:s,line:r,items:a}=this.attribute,o=rt.group({x:0,y:0,zIndex:1,pickable:!1});if(o.name=ni.axisContainer,o.id=this._getNodeId("container"),o.setMode(this.mode),this.axisContainer=o,t.add(o),r&&r.visible&&this.renderLine(o),a&&a.length&&(this.data=this._transformItems(a[0]),s&&s.visible&&this.renderTicks(o),i&&i.visible)){const l=rt.group({x:0,y:0,pickable:!1});l.name=ni.labelContainer,l.id=this._getNodeId("label-container"),this.axisLabelsContainer=l,o.add(l),a.forEach((h,d)=>{const c=this.renderLabels(l,h,d),u=c.getChildren();this.beforeLabelsOverlap(u,h,c,d,a.length),this.handleLabelsOverlap(u,h,c,d,a.length),this.afterLabelsOverlap(u,h,c,d,a.length);let g=0,p=0,_="center",f="middle",m=0;u.forEach((v,y)=>{var b;const x=v.attribute,S=(b=x.angle)!==null&&b!==void 0?b:0,A=v.AABBBounds;let k=A.width(),T=A.height();S&&(k=Math.abs(k*Math.cos(S)),T=Math.abs(T*Math.sin(S))),g=Math.max(g,k),p=Math.max(p,T),_=x.textAlign,f=x.textBaseline,y===0&&(m=x.x)}),this.axisLabelLayerSize[d]={width:g,height:p,labelPos:m,textAlign:_,textBaseline:f}})}e&&e.visible&&this.renderTitle(o)}renderTicks(t){const e=this.getTickLineItems(),i=rt.group({x:0,y:0,pickable:!1});i.name=ni.tickContainer,i.id=this._getNodeId("tick-container"),t.add(i),e.forEach((r,a)=>{var o;const l=rt.line(Object.assign({},this._getTickLineAttribute("tick",r,a,e)));if(l.name=ni.tick,l.id=this._getNodeId(r.id),ht((o=this.attribute.tick)===null||o===void 0?void 0:o.state))l.states=Pt;else{const h=this.data[a],d=$({},Pt,this.attribute.tick.state);Object.keys(d).forEach(c=>{N(d[c])&&(d[c]=d[c](h.rawValue,a,h,this.data))}),l.states=d}i.add(l)}),this.tickLineItems=e;const{subTick:s}=this.attribute;if(s&&s.visible){const r=this.getSubTickLineItems();r.length&&r.forEach((a,o)=>{const l=rt.line(Object.assign({},this._getTickLineAttribute("subTick",a,o,e)));if(l.name=ni.subTick,l.id=this._getNodeId(`${o}`),ht(s.state))l.states=Pt;else{const h=$({},Pt,s.state);Object.keys(h).forEach(d=>{N(h[d])&&(h[d]=h[d](a.value,o,a,e))}),l.states=h}i.add(l)}),this.subTickLineItems=r}}renderLabels(t,e,i){const{dataFilter:s}=this.attribute.label;s&&N(s)&&(e=s(e,i));const r=this._transformItems(e),a=rt.group({x:0,y:0,pickable:!1});return a.name=`${ni.labelContainer}-layer-${i}`,a.id=this._getNodeId(`label-container-layer-${i}`),t.add(a),r.forEach((o,l)=>{var h;const d=this._getLabelAttribute(o,l,r,i),c=yc(d);if(c.name=ni.label,c.id=this._getNodeId(`layer${i}-label-${o.id}`),ht((h=this.attribute.label)===null||h===void 0?void 0:h.state))c.states=Pt;else{const u=$({},Pt,this.attribute.label.state);Object.keys(u).forEach(g=>{N(u[g])&&(u[g]=u[g](o,l,r,i))}),c.states=u}a.add(c)}),a}renderTitle(t){const e=this.getTitleAttribute(),i=new kn(Object.assign({},e));i.name=ni.title,i.id=this._getNodeId("title"),t.add(i)}getVerticalCoord(t,e,i){return bx(t,this.getVerticalVector(e,i,t))}getTickLineItems(){const{tick:t}=this.attribute,e=this.data,i=[],{alignWithLabel:s,inside:r=!1,length:a,dataFilter:o}=t;let l=1;return e.length>=2&&(l=e[1].value-e[0].value),(o&&N(o)?o(e):e).forEach(h=>{let d=h.point,c=h.value;if(!s){const g=h.value-l/2;if(this.isInValidValue(g))return;d=this.getTickCoord(g),c=g}const u=this.getVerticalCoord(d,a,r);if(this.mode==="3d"){const g=this.getVerticalVector(a,r,d);let p=0,_=0;Wt(g[0])>Wt(g[1])?p=oe/2*(u.x>d.x?1:-1):_=oe/2*(u.y>d.y?-1:1),i.push({start:d,end:u,value:c,id:`tick-${h.id}`,anchor:[d.x,d.y],alpha:p,beta:_})}else i.push({start:d,end:u,value:c,id:`tick-${h.id}`})}),i}getSubTickLineItems(){const{subTick:t}=this.attribute,e=[],{count:i=4,inside:s=!1,length:r=2}=t,a=this.tickLineItems,o=a.length;if(o>=2)for(let l=0;l0&&(p[1]===0?u+=(this.axisLabelLayerSize[s-1].height+wt(this.attribute,"label.space",4))*s:u+=(this.axisLabelLayerSize[s-1].width+wt(this.attribute,"label.space",4))*s);const _=this.getVerticalCoord(t.point,u,l),f=this.getVerticalVector(u||1,l,_),m=h?h(`${t.label}`,t,e,i,s):t.label;let{style:v}=this.attribute.label;v=N(v)?$({},h_.label.style,v(t,e,i,s)):v;const y=this.getLabelAlign(f,l,v.angle);return v=$(y,v),N(v.text)&&(v.text=v.text({label:t.label,value:t.rawValue,index:t.index,layer:s})),Object.assign(Object.assign(Object.assign({},this.getLabelPosition(_,f,m,v)),{text:c??m,_originText:t.label,lineHeight:v==null?void 0:v.fontSize,type:d}),v)}getLabelPosition(t,e,i,s){return t}_transformItems(t){const e=[];return t.forEach(i=>{var s;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(s=i.id)!==null&&s!==void 0?s:i.label}))}),e}release(){super.release(),this._prevInnerView=null,this._innerView=null}}const GT={parity:function(n){return n.filter((t,e)=>e%2?t.setAttribute("opacity",0):1)},greedy:function(n,t){let e;return n.filter((i,s)=>s&&rs(e,i,t)?i.setAttribute("opacity",0):(e=i,1))}};function c$(n){let t;return t=n.OBBBounds.empty()?n.AABBBounds:n.OBBBounds,t.width()>1&&t.height()>1}function u$(n){return n.forEach(t=>t.setAttribute("opacity",1)),n}function NT(n,t,e,i,s=!1){if(e&&!n.attribute.opacity){const r=t.length;if(r>1){n.setAttribute("opacity",1);for(let a=0;a=3&&zy(i,r)){do i=a(i,r);while(i.length>=3&&zy(i,r));const o=(u,g,p=!0)=>p&&u<3||g,l=o(i.length,t.firstVisible,!1);let h=o(i.length,t.lastVisible);const d=e[0],c=$t(e);rs(d,c,r)&&l&&h&&(c.setAttribute("opacity",0),h=!1),NT(d,i,l,u=>rs(u,d,r)),NT(c,i,h,u=>rs(u,c,r)||!(!l||u===d)&&rs(u,d,r),!0)}e.forEach(o=>{o.setAttribute("visible",!!o.attribute.opacity)})}function g$(n){const t=n.AABBBounds;return{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,centerX:n.attribute.x,centerY:n.attribute.y,angle:n.attribute.angle}}function p$(n){n.forEach(t=>{if(t.rotatedBounds||!t.attribute.angle)return;const e=g$(t),i=hl({x:t.attribute.x,y:t.attribute.y},e.angle,{x:e.centerX,y:e.centerY}),s=i.x-e.centerX,r=i.y-e.centerY;e.x1+=s,e.x2+=s,e.y1+=r,e.y2+=r,e.centerX+=s,e.centerY+=r,t.rotatedBounds=e})}function _$(n,t){var e,i;return!((e=n.OBBBounds)===null||e===void 0)&&e.empty()||!((i=t.OBBBounds)===null||i===void 0)&&i.empty()?ic(n.AABBBounds,t.AABBBounds,!1)&&(!n.rotatedBounds||!t.rotatedBounds||bP(n.rotatedBounds,t.rotatedBounds,!0)):n.OBBBounds.intersects(t.OBBBounds)}const hO=Math.sin(Math.PI/10);function dO(n){const t=!P(n)&&n!==0,e=t?Math.cos(n):1;return t&&Math.abs(e)<=hO}function cO(n){const t=!P(n)&&n!==0,e=t?Math.sin(n):0;return!t||Math.abs(e)<=hO}function f$(n,t){if(ht(n))return;const{orient:e,labelRotateAngle:i=[0,45,90]}=t;if(i.length===0||n.some(a=>!!a.attribute.angle))return;let s=0,r=0;for(i&&i.length>0&&(r=i.length);s{o.attribute.angle=te(a)}),v$(e,n),!m$(n))break}}function m$(n){for(let t=1;t0)for(;n>=2*Math.PI;)n-=2*Math.PI;return n}function y$(n,t){t.forEach((e,i)=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},gO(n,e.attribute.angle)),{angle:Yf(e.attribute.angle)}))})}function b$(n,t){t.forEach(e=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},uO(n,e.attribute.angle)),{angle:Yf(e.attribute.angle)}))})}function uO(n,t=0){let e=["center","left","left","left","center","right","right","right","left"],i=["top","top","middle","bottom","bottom","bottom","middle","top","top"];n==="top"&&(e=["center","right","right","right","center","left","left","left","right"],i=["bottom","bottom","middle","top","top","top","middle","bottom","bottom"]);const s=(t=Yf(t))/(.5*Math.PI);let r;return r=s===Math.floor(s)?2*Math.floor(s):2*Math.floor(s)+1,{textAlign:e[r],textBaseline:i[r]}}function gO(n,t=0){let e=["right","right","center","left","left","left","center","right","right"],i=["middle","middle","top","top","middle","middle","bottom","bottom","middle"];n==="right"&&(e=["left","left","center","right","right","right","center","left","left"],i=["middle","middle","bottom","bottom","middle","middle","top","middle","middle"]);const s=(t=Yf(t))/(.5*Math.PI);let r;return r=s===Math.floor(s)?2*Math.floor(s):2*Math.floor(s)+1,{textAlign:e[r],textBaseline:i[r]}}function x$(n){return H(n)?{left:n,right:n}:yt(n)?{left:n.left||0,right:n.right||0}:{left:0,right:0}}function S$(n,t){const{limitLength:e,verticalLimitLength:i,ellipsis:s="...",orient:r,axisLength:a}=t;if(ht(n)||!H(e))return;const o=x$(t.overflowLimitLength),l=n[0],h=l.attribute.angle,d=!P(h),c=d?Math.cos(h):1,u=d?Math.sin(h):0,g=cO(h),p=dO(h),_=r==="top"||r==="bottom",f=l.attribute.direction,m=!g&&!p&&_&&(n.length<2||n.some(v=>Math.abs(v.AABBBounds.width()-l.AABBBounds.width())>=2))&&l.AABBBounds.width()>Math.abs(e/u);n.forEach(v=>{var y;if(_&&(p&&Math.floor(v.AABBBounds.height())<=e||g&&Math.floor(v.AABBBounds.width())<=i)||!_&&(f==="vertical"&&Math.floor(v.AABBBounds.height())<=i||f!=="vertical"&&(g&&Math.floor(v.AABBBounds.width())<=e||p&&Math.floor(v.AABBBounds.height())<=i)))return;let b=null;if(g||p)b=_?g?i:e:f==="vertical"||p?i:e;else if(_){const{x1:x,x2:S}=v.AABBBounds,A=u/c,k=Math.abs(e/u);if(m&&A>0&&x<=a+o.right&&e/A+x>a+o.right){const T=(a-x+o.right)/Math.abs(c);b=Math.min(T,k)}else if(m&&A<0&&S>=-o.left&&e/A+S<-o.left){const T=(S+o.left)/Math.abs(c);b=Math.min(T,k)}else b=k}else b=Math.abs(e/c);H(v.attribute.maxLineWidth)&&(b=H(b)?Math.min(v.attribute.maxLineWidth,b):v.attribute.maxLineWidth),v.setAttributes({maxLineWidth:b,ellipsis:(y=v.attribute.ellipsis)!==null&&y!==void 0?y:s})})}function A$(n,t){const{limitLength:e,axisLength:i,ellipsis:s="...",orient:r}=t;if(ht(n)||!H(e))return;const a=n[0].attribute.angle,o=cO(a),l=dO(a),h=r==="top"||r==="bottom";let d=i/n.length;n.forEach((c,u)=>{var g,p,_,f,m;if(h){if(l&&Math.floor(c.AABBBounds.height())<=e)return;if(o){const b=UT(c.attribute.x,(g=n[u+1])===null||g===void 0?void 0:g.attribute.x,(p=n[u-1])===null||p===void 0?void 0:p.attribute.x);H(b)&&(d=_i(d,b))}}else{if(l){const b=UT(c.attribute.y,(_=n[u+1])===null||_===void 0?void 0:_.attribute.y,(f=n[u-1])===null||f===void 0?void 0:f.attribute.y);H(b)&&(d=_i(d,b))}if(o&&Math.floor(c.AABBBounds.width())<=e)return}let v=null,y=null;h?l?(v=e,y=d):(v=d,y=e):l?(v=d,y=e):(v=e,y=d),c.setAttributes({maxLineWidth:v,ellipsis:(m=c.attribute.ellipsis)!==null&&m!==void 0?m:s,whiteSpace:"normal",heightLimit:y})})}function UT(n,t,e){let i;return H(t)&&(i=Math.abs(t-n)),H(e)&&(i=H(i)?Math.min(Math.abs(n-e),i):Math.abs(n-e)),i}function k$(n,t,e,i,s){i==="left"||i==="right"?s==="left"?n.forEach(r=>{var a;r.setAttributes({dx:((a=r.attribute.dx)!==null&&a!==void 0?a:0)+t-r.AABBBounds.x1})}):s==="right"?n.forEach(r=>{var a;r.setAttributes({dx:((a=r.attribute.dx)!==null&&a!==void 0?a:0)+t+e-r.AABBBounds.x2})}):s==="center"&&n.forEach(r=>{var a;r.setAttributes({dx:((a=r.attribute.dx)!==null&&a!==void 0?a:0)+t+e/2-(r.AABBBounds.x1+r.AABBBounds.x2)/2})}):i!=="bottom"&&i!=="top"||(s==="top"?n.forEach(r=>{var a;r.setAttributes({dy:((a=r.attribute.dy)!==null&&a!==void 0?a:0)+t-r.AABBBounds.y1})}):s==="bottom"?n.forEach(r=>{var a;r.setAttributes({dy:((a=r.attribute.dy)!==null&&a!==void 0?a:0)+t+e-r.AABBBounds.y2})}):s==="middle"&&n.forEach(r=>{var a;r.setAttributes({dy:((a=r.attribute.dy)!==null&&a!==void 0?a:0)+t+e/2-(r.AABBBounds.y1+r.AABBBounds.y2)/2})}))}class pO{isInValidValue(t){return t<0||t>1}getTickCoord(t){const{start:e}=this.attribute,i=this.getRelativeVector();return{x:e.x+i[0]*t,y:e.y+i[1]*t}}getRelativeVector(t){const{start:e,end:i}=this.attribute;return[i.x-e.x,i.y-e.y]}getVerticalVector(t,e=!1,i){const{verticalFactor:s=1}=this.attribute,r=this.getRelativeVector(),a=u4(r),o=[a[1],-1*a[0]];return WR(o,t*(e?1:-1)*s)}}function _O(){ze(),Ar(),Ea(),Hs()}function T$(){_O(),kr()}function M$(){_O(),e4()}function w$(){ze(),cu()}function C$(){ze(),cu()}var $T=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{const{startPoint:a,endPoint:o,breakSymbol:l,rawRange:h}=s;if((l==null?void 0:l.visible)!==!1){const d=rt.group({zIndex:a$});d.name=ni.axisBreak,d.id=this._getNodeId(`${ni.axisBreak}-${r}`),d.data=h;const c=l$(l),u=rt.symbol(Object.assign({x:a.x,y:a.y},c));u.name=ni.axisBreakSymbol;const g=rt.symbol(Object.assign({x:o.x,y:o.y},c));g.name=ni.axisBreakSymbol,d.add(u),d.add(g),t.add(d)}});const{panel:i}=this.attribute;if(i&&i.visible){const s=this.axisContainer,r=s.AABBBounds,a=rt.rect(Object.assign({x:r.x1,y:r.y1,width:r.width(),height:r.height()},i.style));a.name=ni.background,a.id=this._getNodeId("background"),a.states=$({},ks,(e=i.state)!==null&&e!==void 0?e:{}),s.insertBefore(a,s.firstChild)}}renderLine(t){const{start:e,end:i,line:s}=this.attribute,r=s,{startSymbol:a,endSymbol:o,style:l,state:h}=r,d=$T(r,["startSymbol","endSymbol","style","state"]),c=Object.assign({startSymbol:a,endSymbol:o,lineStyle:l},d);if(this._breaks&&this._breaks.length){const g=[];let p=e;this._breaks.forEach(_=>{const{startPoint:f,endPoint:m}=_;g.push([p,f]),p=m}),g.push([p,i]),c.points=g,c.multiSegment=!0}else c.points=[e,i];ht(h)||(c.state={line:$({},ks,h),symbol:$({},ks,h)});const u=new fr(c);u.name=ni.line,u.id=this._getNodeId("line"),t.add(u)}getTextAlign(t){let e="center";return Ge(t[0],0)?Ge(t[1],0)?Object.is(t[1],-0)?e="start":Object.is(t[0],-0)&&(e="end"):e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e}getTitleAttribute(){var t,e,i;const s=this.attribute.title,{position:r="middle",space:a=4,textStyle:o={},autoRotate:l=!0,shape:h,background:d,state:c={},maxWidth:u}=s,g=$T(s,["position","space","textStyle","autoRotate","shape","background","state","maxWidth"]);let p=.5;r==="start"?p=0:r==="end"&&(p=1);const{verticalFactor:_=1}=this.attribute,f=-1*_,m=this.getTickCoord(p),v=this.getRelativeVector();let y=0;if(!((t=this.attribute.label)===null||t===void 0)&&t.visible&&this.attribute.label.inside===!1){const O=+wt(this.attribute,"label.space",4);y+=O;const L=Object.keys(this.axisLabelLayerSize).length;if(v[1]===0){const E=this.axisLabelsContainer?this.axisLabelsContainer.AABBBounds.height():0;isFinite(E)?y+=E+(L-1)*O:y=0}else if(v[0]===0)if(this.axisLabelsContainer&&this.axisLabelsContainer.AABBBounds&&!this.axisLabelsContainer.AABBBounds.empty()){const E=this.axisLabelLayerSize[0].labelPos,B=this.axisLabelsContainer.AABBBounds;y+=(f===1?B.x2>E?Math.min(B.x2-E,B.width()):0:B.x1{y+=this.axisLabelLayerSize[E].width+(B>0?O:0)})}let b=0;!((e=this.attribute.tick)===null||e===void 0)&&e.visible&&this.attribute.tick.inside===!1&&(b=this.attribute.tick.length||4),!((i=this.attribute.subTick)===null||i===void 0)&&i.visible&&this.attribute.subTick.inside===!1&&(b=Math.max(b,this.attribute.subTick.length||2));const x=b+y+a,S=this.getVerticalCoord(m,x,!1),A=this.getVerticalVector(x,!1,{x:0,y:0});let k,T,{angle:w}=g;if(k=r==="start"?"start":r==="end"?"end":"center",P(w)&&l){w=p4(v,[1,0],!0);const{verticalFactor:O=1}=this.attribute;T=-1*O===1?"bottom":"top"}else k=this.getTextAlign(A),T=this.getTextBaseline(A,!1);let M=u;if(P(M)){const{verticalLimitSize:O,verticalMinSize:L,orient:E}=this.attribute,B=Math.min(O||1/0,L||1/0);if(H(B))if(E==="bottom"||E==="top")if(w!==Math.PI/2){const I=Math.abs(Math.cos(w??0));M=I<1e-6?1/0:this.attribute.end.x/I}else M=B-x;else if(w&&w!==0){const I=Math.abs(Math.sin(w));M=I<1e-6?1/0:this.attribute.end.y/I}else M=B-x}const R=Object.assign(Object.assign(Object.assign({},S),g),{maxWidth:M,textStyle:Object.assign({textAlign:k,textBaseline:T},o),state:{text:$({},ks,c.text),shape:$({},ks,c.shape),panel:$({},ks,c.background)}});return R.angle=w,h&&h.visible&&(R.shape=Object.assign({visible:!0},h.style),h.space&&(R.space=h.space)),d&&d.visible&&(R.panel=Object.assign({visible:!0},d.style)),R}getTextBaseline(t,e){let i="middle";const{verticalFactor:s=1}=this.attribute,r=(e?1:-1)*s;return Ge(t[1],0)?i=!Ge(t[0],0)||Object.is(t[0],-0)||Object.is(t[1],-0)?"middle":r===1?"bottom":"top":t[1]>0?i="top":t[1]<0&&(i="bottom"),i}getLabelAlign(t,e,i){const s=this.attribute.orient;if(["top","bottom","right","left"].includes(s)||t[0]===0&&t[1]===0){if(s==="top"||s==="bottom")return uO(e?s==="bottom"?"top":"bottom":s,i);if(s==="left"||s==="right")return gO(e?s==="left"?"right":"left":s,i)}return{textAlign:this.getTextAlign(t),textBaseline:this.getTextBaseline(t,e)}}beforeLabelsOverlap(t,e,i,s,r){var a,o,l,h;const{flush:d=!1}=this.attribute.label||{};if(d&&t.length){const{orient:c,start:u,end:g}=this.attribute,p=c==="bottom"||c==="top",_=t[0],f=$t(t),m=p?_.attribute.x>f.attribute.x:_.attribute.yx&&(y.attribute.angle?y.setAttributes({dx:((o=y.attribute.dx)!==null&&o!==void 0?o:0)+x-A}):y.setAttributes({x,textAlign:"right"}))}else{const v=m?f:_,y=m?_:f,b=v.AABBBounds.y2,x=y.AABBBounds.y1,S=u.y,A=g.y;xA&&(v.attribute.angle?v.setAttributes({dy:((h=v.attribute.dy)!==null&&h!==void 0?h:0)+A-b}):v.setAttributes({y:A,textBaseline:"bottom"}))}}}handleLabelsOverlap(t,e,i,s,r){if(ht(t))return;const{verticalLimitSize:a,label:o,orient:l}=this.attribute,h=this._getAxisLabelLimitLength(a,r),{layoutFunc:d,autoRotate:c,autoRotateAngle:u,autoLimit:g,limitEllipsis:p,autoHide:_,autoHideMethod:f,autoHideSeparation:m,lastVisible:v,firstVisible:y,autoWrap:b,overflowLimitLength:x}=o;if(N(d))d(t,e,s,this);else{if(c)f$(t,{labelRotateAngle:u,orient:l});else if(b){const S=Math.abs(l==="left"||l==="right"?this.attribute.start.y-this.attribute.end.y:this.attribute.start.x-this.attribute.end.x);A$(t,{orient:l,limitLength:h,axisLength:S,ellipsis:p})}if(!b&&g&&H(h)&&h>0){const S=l==="left"||l==="right",A=Math.abs(S?this.attribute.start.y-this.attribute.end.y:this.attribute.start.x-this.attribute.end.x),k=S?A/t.length:_||c?1/0:A/t.length;S$(t,{limitLength:h,verticalLimitLength:k,ellipsis:p,orient:l,axisLength:A,overflowLimitLength:x})}_&&lO(t,{orient:l,method:f,separation:m,lastVisible:v,firstVisible:y})}}afterLabelsOverlap(t,e,i,s,r){const{verticalLimitSize:a,orient:o}=this.attribute,l=o==="bottom"||o==="top",h=i.AABBBounds;let d=l?h.height():h.width();const{verticalMinSize:c}=this.attribute;if(H(c)&&(!H(a)||c<=a)){const u=this._getAxisLabelLimitLength(c,r);let g,p;d=Math.max(d,u),o==="left"?(g=h.x2-d,p=h.y1):o==="right"?(g=h.x1,p=h.y1):o==="top"?(g=h.x1,p=h.y2-d):o==="bottom"&&(g=h.x1,p=h.y1);const _=rt.rect({x:g,y:p,width:l?h.width():d,height:l?d:h.height(),pickable:!1});_.name=ni.axisLabelBackground,_.id=this._getNodeId("axis-label-background"),i.insertBefore(_,i.firstChild)}if(C(this.attribute.label.containerAlign)){let u;o==="left"?u=h.x2-d:o==="right"?u=h.x1:o==="top"?u=h.y2-d:o==="bottom"&&(u=h.y1),k$(t,u,d,o,this.attribute.label.containerAlign)}}_getAxisLabelLimitLength(t,e){var i,s,r,a,o;const{label:l,title:h,line:d,tick:c}=this.attribute,u=(i=l.space)!==null&&i!==void 0?i:4;let g=t,p=0,_=0;const f=d&&d.visible?(s=d.style.lineWidth)!==null&&s!==void 0?s:1:0,m=c&&c.visible?(r=c.length)!==null&&r!==void 0?r:4:0;if(h&&h.visible&&typeof h.text=="string"){p=zf(h.text,h.textStyle,(o=(a=this.stage)===null||a===void 0?void 0:a.getTheme())===null||o===void 0?void 0:o.text).height;const v=Yi(h.padding);_=h.space+v[0]+v[2]}return g&&(g=(g-u-_-p-f-m)/e),g}release(){super.release(),this._breaks=null}}Ac.defaultAttributes=h_,se(Ac,pO);class fO{isInValidValue(t){const{startAngle:e=sh,endAngle:i=rh}=this.attribute;return Math.abs(i-e)%(2*Math.PI)==0?t>1:t<0||t>1}getTickCoord(t){const{startAngle:e=sh,endAngle:i=rh,center:s,radius:r,inside:a=!1,innerRadius:o=0}=this.attribute;return ue(s,a&&o>0?o:r,e+(i-e)*t)}getVerticalVector(t,e=!1,i){return Fy(t,i,this.attribute.center,e,this.attribute.inside)}getRelativeVector(t){const{center:e}=this.attribute;return[t.y-e.y,-1*(t.x-e.x)]}}function mO(n,t){const e=n.length;return{prevLabel:t>=1?n[t-1]:n[e-1],nextLabel:t=3){const{prevLabel:a,nextLabel:o}=mO(n,t);i.push(a,o)}else n.length===2&&i.push(n[t===0?1:0]);const s=n[t];let r=Math.min(Math.abs(s.attribute.y-e.y1),Math.abs(s.attribute.y-e.y2));i.forEach(a=>{r=Math.min(r,Math.abs(a.attribute.y-s.attribute.y))}),r>0&&s.setAttributes({whiteSpace:"normal",heightLimit:r})}function P$(n,t){const{ellipsis:e,inside:i,bounds:s,autoWrap:r,center:a}=t;i||n.forEach((o,l)=>{const{x:h,y:d}=o.attribute,c=o.AABBBounds;if(Ge(h,a.x)){if(d>s.y2||d=3){const{prevLabel:g,nextLabel:p}=mO(n,l);let _=g.attribute.x,f=p.attribute.x;_>f&&(_=p.attribute.x,f=g.attribute.x);const m=_===f?u:h>=_&&h<=f?f-_:Math.min(Math.abs(_-h),Math.abs(f-h));o.AABBBounds.width()>m&&Hh(o,m,e)}else o.AABBBounds.width()>u&&Hh(o,u,e)}else h>a.x&&c.x2>s.x2?(Hh(o,s.x2-h,e),r&&YT(n,l,s)):h0&&(c=a,u=0),H(h)&&h>=3){const g=nO(r,h,c,e,i);d=rt.path(Object.assign(Object.assign({},o.style),{path:Ja(g,!0)}))}else{const g=Object.assign(Object.assign(Object.assign({},r),{startAngle:e,endAngle:i,radius:c,innerRadius:u}),o.style);d=rt.circle(g)}d.name=ni.line,d.id=this._getNodeId("line"),ht(o.state)||(d.states=$({},ks,o.state)),t.add(d)}getTitleAttribute(){var t,e,i;const{center:s,radius:r,innerRadius:a=0}=this.attribute,o=this.attribute.title,{space:l=4,textStyle:h={},shape:d,background:c,state:u={}}=o,g=E$(o,["space","textStyle","shape","background","state"]);let p=s,_=0;!((t=this.attribute.label)===null||t===void 0)&&t.visible&&this.attribute.label.inside===!1&&(_=wt(this.attribute.label,"style.fontSize",12)+wt(this.attribute.label,"space",4));let f=0;!((e=this.attribute.tick)===null||e===void 0)&&e.visible&&this.attribute.tick.inside===!1&&(f=this.attribute.tick.length||4),!((i=this.attribute.subTick)===null||i===void 0)&&i.visible&&this.attribute.subTick.inside===!1&&(f=Math.max(f,this.attribute.subTick.length||2));const m=r+f+_+l;let v="middle",{position:y}=this.attribute.title;P(y)&&(y=a===0?"end":"middle"),y==="start"?(v="bottom",p={x:s.x,y:s.y-m}):y==="end"&&(v="top",p={x:s.x,y:s.y+m});const b=Object.assign(Object.assign(Object.assign({},p),g),{textStyle:Object.assign({textBaseline:v,textAlign:"center"},h),state:{text:$({},ks,u.text),shape:$({},ks,u.shape),panel:$({},ks,u.background)}}),{angle:x}=g;return b.angle=x,d&&d.visible&&(b.shape=Object.assign({visible:!0},d.style),d.space&&(b.space=d.space)),c&&c.visible&&(b.panel=Object.assign({visible:!0},c.style)),b}getSubTickLineItems(){var t,e;const{subTick:i}=this.attribute,s=[],{count:r=4,inside:a=!1,length:o=2}=i,l=this.tickLineItems,h=l.length;if(h>=2){const d=this.data[1].value-this.data[0].value,c=(e=(t=this.attribute)===null||t===void 0?void 0:t.tick)===null||e===void 0?void 0:e.alignWithLabel;for(let u=0;u0?"top":"middle"}getLabelAlign(t,e,i){return Ge(t[0],0)?{textAlign:"center",textBaseline:t[1]>0?"top":"bottom"}:t[0]<0?{textAlign:"right",textBaseline:this.getTextBaseline(t)}:t[0]>0?{textAlign:"left",textBaseline:this.getTextBaseline(t)}:{textAlign:"center",textBaseline:"middle"}}getLabelPosition(t,e,i,s){return t}}kc.defaultAttributes=h_,se(kc,fO);class R$ extends Mn{constructor(){super(...arguments),this.mode=Kl.NORMAL}onBind(){const t=this.target.getInnerView(),e=this.target.getPrevInnerView();e&&(this._newElementAttrMap={},ss(t,i=>{var s,r,a,o,l,h;if(i.type!=="group"&&i.id){const d=e[i.id];if(d){if(!Jt(i.attribute,d.attribute)){const c=xn(i.attribute);this._newElementAttrMap[i.id]={state:"update",node:i,attrs:Object.assign(Object.assign({},c),{opacity:(s=c.opacity)!==null&&s!==void 0?s:1,fillOpacity:(r=c.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(a=c.strokeOpacity)!==null&&a!==void 0?a:1})},i.setAttributes(d.attribute)}}else{const c={opacity:(o=i.attribute.opacity)!==null&&o!==void 0?o:1,fillOpacity:(l=i.attribute.fillOpacity)!==null&&l!==void 0?l:1,strokeOpacity:(h=i.attribute.strokeOpacity)!==null&&h!==void 0?h:1};this._newElementAttrMap[i.id]={state:"enter",node:i,attrs:c},i.setAttributes({opacity:0,fillOpacity:0,strokeOpacity:0})}}}))}onStart(){let t=this.duration,e=this.easing;this._newElementAttrMap&&Object.keys(this._newElementAttrMap).forEach(i=>{var s;const{node:r,attrs:a,state:o}=this._newElementAttrMap[i];if(o==="enter"){const{enter:l={}}=(s=this.params)!==null&&s!==void 0?s:{};t=H(l.duration)?l.duration:t,e=l.easing?l.easing:e}r.type==="path"?r.animate({interpolate:(l,h,d,c,u)=>l==="path"&&(u.path=C2(d,c)(h),!0)}).to(a,t,e):r.animate().to(a,t,e)})}onUpdate(t,e,i){}}const hr=n=>n.map((t,e)=>({index:e,value:t})),XT=(n,t,e=0)=>{const i=new Oe(n).expand(e/2),s=new Oe(t).expand(e/2);return i.intersects(s)},KT=12,rg=(n,t,e,i)=>en?Math.min(n-t/2,e-t):e{var i;const{labelStyle:s,axisOrientType:r,labelFlush:a,labelFormatter:o,startAngle:l=0}=e;let h=(i=s.angle)!==null&&i!==void 0?i:0;s.direction==="vertical"&&(h+=te(90));const d=["bottom","top"].includes(r),c=["left","right"].includes(r);let u=1,g=0;d||(c?(u=0,g=1):l&&(u=Math.cos(l),g=-Math.sin(l)));const p=jl(s),_=n.range();return t.map((m,v)=>{var y,b;const x=o?o(m):`${m}`,{width:S,height:A}=p.quickMeasure(x),k=Math.max(S,12),T=Math.max(A,12),w=n.scale(m),M=u*w,R=g*w;let O,L,E=M,B=R;a&&d&&v===0?E=rg(M,k,_[0],_[_.length-1]):a&&d&&v===t.length-1?E=rg(M,k,_[_.length-1],_[0]):O=(y=s.textAlign)!==null&&y!==void 0?y:"center",O==="right"?E-=k:O==="center"&&(E-=k/2),a&&c&&v===0?B=rg(R,T,_[0],_[_.length-1]):a&&c&&v===t.length-1?B=rg(R,T,_[_.length-1],_[0]):L=(b=s.textBaseline)!==null&&b!==void 0?b:"middle",L==="bottom"?B-=T:L==="middle"&&(B-=T/2);const I=new Oe().set(E,B,E+k,B+T);return h&&I.rotate(h,M,R),I})},O$=n=>["bottom","top","z"].includes(n);var De;(function(n){n.Identity="identity",n.Linear="linear",n.Log="log",n.Pow="pow",n.Sqrt="sqrt",n.Symlog="symlog",n.Time="time",n.Quantile="quantile",n.Quantize="quantize",n.Threshold="threshold",n.Ordinal="ordinal",n.Point="point",n.Band="band"})(De||(De={}));const yO={};Object.values(De).forEach(n=>{yO[n]=!0});function Qt(n){switch(n){case De.Linear:case De.Log:case De.Pow:case De.Sqrt:case De.Symlog:case De.Time:return!0;default:return!1}}function jy(n){return!!yO[n]}function mi(n){switch(n){case De.Ordinal:case De.Point:case De.Band:return!0;default:return!1}}function sl(n){return n}const B$=n=>n<0?-Math.sqrt(-n):Math.sqrt(n),L$=n=>n<0?-n*n:n*n,I$=n=>-Math.log(-n),D$=n=>-Math.exp(-n),F$=n=>isFinite(n)?Math.pow(10,n):n<0?0:n,qT=n=>n===10?F$:n===Math.E?Math.exp:t=>Math.pow(n,t),ZT=n=>n===Math.E?Math.log:n===10?Math.log10:n===2?Math.log2:(n=Math.log(n),t=>Math.log(t)/n),JT=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n)),QT=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n;function Hy(n,t){if(n=Number(n),t=Number(t),t-=n)return i=>(i-n)/t;const e=Number.isNaN(t)?NaN:.5;return()=>e}function tM(n,t,e){const i=n[0],s=n[1],r=t[0],a=t[1];let o,l;return sl(o(h))}function xx(n,t,e){let i;return i=n===1?n+2*e:n-t+2*e,n?i>0?i:1:0}function Vy(n,t,e,i){return e===1&&(e=0),xx(n,e,i)*(t/(1-e))}function z$(n,t,e,i,s){const r=xx(n,e,i);let a=t/Math.max(1,r||1);s&&(a=Math.floor(a));let o=a*(1-e);return s&&(o=Math.round(o)),o}function bO(n,t){const e=(n[1]-n[0])/(t[1]-t[0]),i=n[0]-e*t[0];return[i,e+i]}function j$(n,t,e){const i=Math.min(n.length,t.length)-1,s=new Array(i),r=new Array(i);let a=-1;for(n[i]{const e=n.slice();let i=0,s=e.length-1,r=e[i],a=e[s];return a{const e=Math.floor(Math.log10(n)),i=n/Math.pow(10,e);let s;return s=t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,s*Math.pow(10,e)},V$=(n,t)=>{let e,i;return t[0]s>=0&&s<=1)&&(this._wholeRange=null,t[0]===0&&t[1]===1?(this._rangeFactorStart=null,this._rangeFactorEnd=null):(this._rangeFactorStart=t[0],this._rangeFactorEnd=t[1])),this):i?(this._wholeRange=null,this._rangeFactorStart=null,this._rangeFactorEnd=null,this):C(this._rangeFactorStart)&&C(this._rangeFactorEnd)?[this._rangeFactorStart,this._rangeFactorEnd]:null}rangeFactorStart(t,e){var i;return P(t)?this._rangeFactorStart:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!P(this._rangeFactorEnd)&&this._rangeFactorEnd!==1?(this._rangeFactorStart=t,this._rangeFactorEnd=(i=this._rangeFactorEnd)!==null&&i!==void 0?i:1):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}rangeFactorEnd(t,e){var i;return P(t)?this._rangeFactorEnd:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!P(this._rangeFactorStart)&&this._rangeFactorStart!==0?(this._rangeFactorEnd=t,this._rangeFactorStart=(i=this._rangeFactorStart)!==null&&i!==void 0?i:0):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}generateFishEyeTransform(){var t;if(!this._fishEyeOptions)return void(this._fishEyeTransform=null);const{distortion:e=2,radiusRatio:i=.1,radius:s}=this._fishEyeOptions,r=this.range(),a=r[0],o=r[r.length-1],l=Math.min(a,o),h=Math.max(a,o),d=be((t=this._fishEyeOptions.focus)!==null&&t!==void 0?t:0,l,h),c=P(s)?(h-l)*i:s;let u=Math.exp(e);u=u/(u-1)*c;const g=e/c;this._fishEyeTransform=p=>{const _=Math.abs(p-d);if(_>=c)return p;if(_<=1e-6)return d;const f=u*(1-Math.exp(-_*g))/_*.75+.25;return d+(p-d)*f}}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}get(t,e){var i;return(i=this==null?void 0:this[t])!==null&&i!==void 0?i:e}}const Wy=Symbol("implicit");class yo extends SO{specified(t){var e;return t?(this._specified=Object.assign((e=this._specified)!==null&&e!==void 0?e:{},t),this):Object.assign({},this._specified)}_getSpecifiedValue(t){if(this._specified)return this._specified[t]}constructor(){super(),this.type=De.Ordinal,this._index=new Map,this._domain=[],this._ordinalRange=[],this._unknown=Wy}clone(){const t=new yo().domain(this._domain).range(this._ordinalRange).unknown(this._unknown);return this._specified&&t.specified(this._specified),t}calculateVisibleDomain(t){return C(this._rangeFactorStart)&&C(this._rangeFactorEnd)&&t.length===2?[this.invert(t[0]),this.invert(t[1])]:this._domain}scale(t){const e=`${t}`,i=this._getSpecifiedValue(e);if(i!==void 0)return i;let s=this._index.get(e);if(!s){if(this._unknown!==Wy)return this._unknown;s=this._domain.push(t),this._index.set(e,s)}const r=this._ordinalRange[(s-1)%this._ordinalRange.length];return this._fishEyeTransform?this._fishEyeTransform(r):r}invert(t){let e=0;for(;ee&&a>1;)a-=1,r=Math.floor((t-n)/a);return AO(n,t,r,s)}function W$(n,t,e){let i;if(t=Math.floor(+t),n=Math.floor(+n),e=Gl(1,t-n+1)(Math.floor(+e)),i=tthis._maxBandwidth?(this._bandwidth=this._maxBandwidth,this._isFixed=!0):(this._bandwidth=s,this._isFixed=!1)}if(this.isBandwidthFixed()){const i=Vy(super.domain().length,this._bandwidth,this._paddingInner,this._paddingOuter)*Math.sign(t[1]-t[0]),s=Math.min((t[1]-t[0])/i,1);if(C(this._rangeFactorStart)&&C(this._rangeFactorEnd)){if(i>0){const o=t[0]-i*this._rangeFactorStart,l=o+i;this._wholeRange=[o,l]}else{const o=t[1]+i*(1-this._rangeFactorEnd),l=o-i;this._wholeRange=[l,o]}const r=this._rangeFactorStart+s<=1,a=this._rangeFactorEnd-s>=0;e==="rangeFactorStart"&&r?this._rangeFactorEnd=this._rangeFactorStart+s:e==="rangeFactorEnd"&&a?this._rangeFactorStart=this._rangeFactorEnd-s:t[0]<=t[1]?r?this._rangeFactorEnd=this._rangeFactorStart+s:a?this._rangeFactorStart=this._rangeFactorEnd-s:(this._rangeFactorStart=0,this._rangeFactorEnd=s):a?this._rangeFactorStart=this._rangeFactorEnd-s:r?this._rangeFactorEnd=this._rangeFactorStart+s:(this._rangeFactorStart=1-s,this._rangeFactorEnd=1)}else this._rangeFactorStart=0,this._rangeFactorEnd=s,this._wholeRange=[t[0],t[0]+i];return this._wholeRange}return super._calculateWholeRange(t)}calculateWholeRangeSize(){const t=this._calculateWholeRange(this._range);return Math.abs(t[1]-t[0])}calculateVisibleDomain(t){const e=this._domain;if(C(this._rangeFactorStart)&&C(this._rangeFactorEnd)&&e.length){const i=this._getInvertIndex(t[0]),s=this._getInvertIndex(t[1]);return e.slice(Math.min(i,s),Math.max(i,s)+1)}return e}domain(t,e){return t?(super.domain(t),this.rescale(e)):super.domain()}range(t,e){return t?(this._range=[Ps(t[0]),Ps(t[1])],this.rescale(e)):this._range}rangeRound(t,e){return this._range=[Ps(t[0]),Ps(t[1])],this._round=!0,this.rescale(e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return t===-1?e:eM(0,e.length-1,t,!1).map(i=>e[i])}tickData(t=10){return this.ticks(t).map((e,i)=>({index:i,tick:e,value:(this.scale(e)-this._range[0]+this._bandwidth/2)/(this._range[1]-this._range[0])}))}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return eM(0,e.length-1,t,!0).filter(i=>ie[i])}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return W$(0,e.length-1,t).map(i=>e[i])}_getInvertIndex(t){let e=0;const i=this.step()/2,s=this.bandwidth()/2,r=this._domain.length,a=this.range(),o=a[0]>a[a.length-1];for(e=0;e=0&&e<=r-1?e:r-1}invert(t){return this._domain[this._getInvertIndex(t)]}padding(t,e){return t!==void 0?(this._paddingOuter=Math.max(0,Math.min(Array.isArray(t)?Math.min.apply(null,t):t)),this._paddingInner=this._paddingOuter,this.rescale(e)):this._paddingInner}paddingInner(t,e){return t!==void 0?(this._paddingInner=Math.max(0,Math.min(1,t)),this.rescale(e)):this._paddingInner}paddingOuter(t,e){return t!==void 0?(this._paddingOuter=Math.max(0,Math.min(1,t)),this.rescale(e)):this._paddingOuter}step(){return this._step}round(t,e){return t!==void 0?(this._round=t,this.rescale(e)):this._round}align(t,e){return t!==void 0?(this._align=Math.max(0,Math.min(1,t)),this.rescale(e)):this._align}rangeFactor(t,e){return t?(super.rangeFactor(t),this.rescale(e)):super.rangeFactor()}rangeFactorStart(t,e){return P(t)?super.rangeFactorStart():(super.rangeFactorStart(t),this.rescale(e,"rangeFactorStart"))}rangeFactorEnd(t,e){return P(t)?super.rangeFactorEnd():(super.rangeFactorEnd(t),this.rescale(e,"rangeFactorEnd"))}bandwidth(t,e){return t?(t==="auto"?(this._bandwidth=void 0,this._isFixed=!1):(this._bandwidth=t,this._isFixed=!0),this._userBandwidth=t,this.rescale(e)):this._bandwidth}maxBandwidth(t,e){return t?(this._maxBandwidth=t==="auto"?void 0:t,this.rescale(e)):this._maxBandwidth}minBandwidth(t,e){return t?(this._minBandwidth=t==="auto"?void 0:t,this.rescale(e)):this._minBandwidth}fishEye(t,e,i){return t||i?(this._fishEyeOptions=t,this._fishEyeTransform=null,this.rescale(e)):this._fishEyeOptions}isBandwidthFixed(){return this._isFixed&&!!this._bandwidth}_isBandwidthFixedByUser(){return this._isFixed&&this._userBandwidth&&J(this._userBandwidth)}clone(){var t,e,i;return new Ho(!0).domain(this._domain,!0).range(this._range,!0).round(this._round,!0).paddingInner(this._paddingInner,!0).paddingOuter(this._paddingOuter,!0).align(this._align,!0).bandwidth((t=this._userBandwidth)!==null&&t!==void 0?t:"auto",!0).maxBandwidth((e=this._maxBandwidth)!==null&&e!==void 0?e:"auto",!0).minBandwidth((i=this._maxBandwidth)!==null&&i!==void 0?i:"auto")}}const{interpolateRgb:y0}=X2;function G$(n,t){const e=typeof t;let i;if(P(t)||e==="boolean")return()=>t;if(e==="number")return od(n,t);if(e==="string"){if(i=Xe.parseColorString(t)){const s=y0(Xe.parseColorString(n),i);return r=>s(r).formatRgb()}return od(Number(n),Number(t))}return t instanceof $i?y0(n,t):t instanceof Xe?y0(n.color,t.color):t instanceof Date?T2(n,t):od(Number(n),Number(t))}class kO extends SO{constructor(t=sl,e=sl){super(),this._unknown=void 0,this.transformer=t,this.untransformer=e,this._forceAlign=!0,this._domain=[0,1],this._range=[0,1],this._clamp=sl,this._piecewise=tM,this._interpolate=G$}calculateVisibleDomain(t){var e;return C(this._rangeFactorStart)&&C(this._rangeFactorEnd)&&t.length===2?[this.invert(t[0]),this.invert(t[1])]:(e=this._niceDomain)!==null&&e!==void 0?e:this._domain}fishEye(t,e,i){return t||i?(this._fishEyeOptions=t,this._fishEyeTransform=null,this.rescale(e)):this._fishEyeOptions}scale(t){var e;if(t=Number(t),Number.isNaN(t)||this._domainValidator&&!this._domainValidator(t))return this._unknown;this._output||(this._output=this._piecewise(((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate));const i=this._output(this.transformer(this._clamp(t)));return this._fishEyeTransform?this._fishEyeTransform(i):i}invert(t){var e;return this._input||(this._input=this._piecewise(this._calculateWholeRange(this._range),((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this.transformer),od)),this._clamp(this.untransformer(this._input(t)))}domain(t,e){var i;if(!t)return((i=this._niceDomain)!==null&&i!==void 0?i:this._domain).slice();this._domainValidator=null,this._niceType=null,this._niceDomain=null;const s=Array.from(t,Ps);return this._domain=s,this.rescale(e)}range(t,e){if(!t)return this._range.slice();const i=Array.from(t);return this._range=i,this.rescale(e)}rangeRound(t,e){const i=Array.from(t);return this._range=i,this._interpolate=k2,this.rescale(e)}rescale(t){var e;if(t)return this;const i=(e=this._niceDomain)!==null&&e!==void 0?e:this._domain,s=i.length,r=this._range.length;let a=Math.min(s,r);if(s&&s=2?(l-i[s-2])/o:0;for(let d=1;d<=o;d++)i[s-2+d]=l-h*(o-d);a=r}return this._autoClamp&&(this._clamp=Gl(i[0],i[a-1])),this._piecewise=a>2?j$:tM,this._output=this._input=null,this._wholeRange=null,this.generateFishEyeTransform(),this}clamp(t,e,i){return arguments.length?(e?(this._autoClamp=!1,this._clamp=e):(this._autoClamp=!!t,this._clamp=t?void 0:sl),this.rescale(i)):this._clamp!==sl}interpolate(t,e){return arguments.length?(this._interpolate=t,this.rescale(e)):this._interpolate}ticks(t=10){return[]}tickData(t=10){const e=this.ticks(t);return(e??[]).map((i,s)=>({index:s,tick:i,value:(this.scale(i)-this._range[0])/(this._range[1]-this._range[0])}))}rangeFactor(t,e){return t?(super.rangeFactor(t),this._output=this._input=null,this):super.rangeFactor()}rangeFactorStart(t,e){return P(t)?super.rangeFactorStart():(super.rangeFactorStart(t),this._output=this._input=null,this)}rangeFactorEnd(t,e){return P(t)?super.rangeFactorEnd():(super.rangeFactorEnd(t),this._output=this._input=null,this)}forceAlignDomainRange(t){return arguments.length?(this._forceAlign=t,this):this._forceAlign}}const N$=Math.sqrt(50),U$=Math.sqrt(10),$$=Math.sqrt(2),ag=[1,2,5,10],iM=(n,t,e)=>{let i=1,s=n;const r=Math.floor((t-1)/2),a=Math.abs(n);return n>=0&&n<=Number.MIN_VALUE?s=0:n<0&&n>=-Number.MIN_VALUE?s=-(t-1):!e&&a<1?i=TO(a).step:(e||a>1)&&(s=Math.floor(n)-r*i),i>0?(n>0?s=Math.max(s,0):n<0&&(s=Math.min(s,-(t-1)*i)),cP(0,t).map(o=>s+o*i)):n>0?d_(0,-(t-1)/i,i):d_((t-1)/i,0,i)},Y$=eu((n,t,e,i)=>{let s,r,a,o,l=-1;if(e=+e,(n=+n)==(t=+t))return[n];if(Math.abs(n-t)<=Number.MIN_VALUE&&e>0)return[n];if((s=t0){let h=Math.round(n/o),d=Math.round(t/o);for(h*ot&&--d,a=new Array(r=d-h+1);++lt&&--d,a=new Array(r=d-h+1);++l{let i,s,r=-1;if(e>0){let a=Math.floor(n/e),o=Math.ceil(t/e);for((a+1)*et&&--o,s=new Array(i=o-a+1);++rt&&--o,s=new Array(i=o-a+1);++r{let i;const s=n[0],r=n[n.length-1],a=t-n.length;if(r<=0){const h=[];for(i=a;i>=1;i--)h.push(s-i*e);return h.concat(n)}if(s>=0){for(i=1;i<=a;i++)n.push(r+i*e);return n}let o=[];const l=[];for(i=1;i<=a;i++)i%2==0?o=[s-Math.floor(i/2)*e].concat(o):l.push(r+Math.ceil(i/2)*e);return o.concat(n).concat(l)},c_=eu((n,t,e,i)=>{let s,r,a;if(e=+e,(n=+n)==(t=+t)||Math.abs(n-t)<=Number.MIN_VALUE&&e>0)return iM(n,e,i==null?void 0:i.noDecimals);(s=t0){let h=1;const{power:d,gap:c}=o,u=c===10?2*10**d:1*10**d;for(;h<=5&&(r=d_(n,t,l),r.length>e+1)&&e>2;)l+=u,h+=1;e>2&&r.length{const t=Math.floor(Math.log(n)/Math.LN10),e=n/10**t;let i=ag[0];return e>=N$?i=ag[3]:e>=U$?i=ag[2]:e>=$$&&(i=ag[1]),t>=0?{step:i*10**t,gap:i,power:t}:{step:-(10**-t)/i,gap:i,power:t}};function Sx(n,t,e){const i=(t-n)/Math.max(0,e);return TO(i)}function MO(n,t,e){let i;if(e=+e,(n=+n)==(t=+t)&&e>0)return[n];if(e<=0||(i=K$(n,t,e))===0||!isFinite(i))return[];const s=new Array(e);for(let r=0;r0;){if(i=Sx(a,o,t).step,i===e)return n[s]=a,n[r]=o,n;if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else{if(!(i<0))break;a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i}e=i}}function wO(n,t){const e=J(t.forceMin),i=J(t.forceMax);let s=null;const r=[];let a=null;const o=e&&i?l=>l>=t.forceMin&&l<=t.forceMax:e?l=>l>=t.forceMin:i?l=>l<=t.forceMax:null;return e?r[0]=t.forceMin:J(t.min)&&t.min<=Math.min(n[0],n[n.length-1])&&(r[0]=t.min),i?r[1]=t.forceMax:J(t.max)&&t.max>=Math.max(n[0],n[n.length-1])&&(r[1]=t.max),J(r[0])&&J(r[1])?(a=n.slice(),a[0]=r[0],a[a.length-1]=r[1]):s=J(r[0])||J(r[1])?J(r[0])?"max":"min":"all",{niceType:s,niceDomain:a,niceMinMax:r,domainValidator:o}}const x0=(n,t,e)=>Math.abs(t-n)<1?+e.toFixed(1):Math.round(+e),CO=eu((n,t,e,i,s,r,a)=>{let o=n,l=t;const h=l0){for(;u<=g;++u)for(d=1;dl)break;p.push(c)}}else for(;u<=g;++u)for(d=i-1;d>=1;--d)if(c=u>0?d/r(-u):d*r(u),!(cl)break;p.push(c)}2*p.length_!==0),a!=null&&a.noDecimals&&(p=Array.from(new Set(p.map(_=>Math.floor(_))))),h?p.reverse():p}),PO=eu((n,t,e,i,s,r)=>{const a=[],o={},l=s(n),h=s(t);let d=[];if(Number.isInteger(i))d=c_(l,h,e);else{const c=(h-l)/(e-1);for(let u=0;u{const u=r(c),g=Number.isInteger(i)?x0(n,t,u):x0(n,t,xO(u)),p=x0(n,t,V$(g,[n,t]));!o[p]&&!isNaN(p)&&d.length>1&&(o[p]=1,a.push(p))}),a}),u_=eu((n,t,e,i,s)=>MO(i(n),i(t),e).map(r=>xO(s(r))));class Tn extends kO{constructor(){super(...arguments),this.type=De.Linear}clone(){return new Tn().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate)}tickFormat(){return()=>{}}d3Ticks(t=10,e){const i=this.calculateVisibleDomain(this._range);return Y$(i[0],i[i.length-1],t,e)}ticks(t=10,e){var i;if(N(e==null?void 0:e.customTicks))return e.customTicks(this,t);if(C(this._rangeFactorStart)&&C(this._rangeFactorEnd)&&(this._rangeFactorStart>0||this._rangeFactorEnd<1)&&this._range.length===2||!this._niceType)return this.d3Ticks(t,e);const s=(i=this._niceDomain)!==null&&i!==void 0?i:this._domain,r=this._domain,a=s[0],o=s[s.length-1];let l=c_(r[0],r[r.length-1],t,e);if(!l.length)return l;if(this._domainValidator)l=l.filter(this._domainValidator);else if((l[0]!==a||l[l.length-1]!==o)&&this._niceType){const h=s.slice();if(this._niceType==="all"?(h[0]=l[0],h[h.length-1]=l[l.length-1],this._niceDomain=h,this.rescale()):this._niceType==="min"&&l[0]!==a?(h[0]=l[0],this._niceDomain=h,this.rescale()):this._niceType==="max"&&l[l.length-1]!==o&&(h[h.length-1]=l[l.length-1],this._niceDomain=h,this.rescale()),this._niceType!=="all"){const d=Math.min(h[0],h[h.length-1]),c=Math.max(h[0],h[h.length-1]);l=l.filter(u=>u>=d&&u<=c)}}return l}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return MO(e[0],e[e.length-1],t)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return q$(e[0],e[e.length-1],t)}nice(t=10,e){var i,s;const r=this._domain;let a=[];if(e){const o=wO(r,e);if(a=o.niceMinMax,this._domainValidator=o.domainValidator,this._niceType=o.niceType,o.niceDomain)return this._niceDomain=o.niceDomain,this.rescale(),this}else this._niceType="all";if(this._niceType){const o=b0(r.slice(),t);this._niceType==="min"?o[o.length-1]=(i=a[1])!==null&&i!==void 0?i:o[o.length-1]:this._niceType==="max"&&(o[0]=(s=a[0])!==null&&s!==void 0?s:o[0]),this._niceDomain=o,this.rescale()}return this}niceMin(t=10){this._niceType="min";const e=this._domain[this._domain.length-1],i=b0(this.domain(),t);return i&&(i[i.length-1]=e,this._niceDomain=i,this.rescale()),this}niceMax(t=10){this._niceType="max";const e=this._domain[0],i=b0(this._domain.slice(),t);return i&&(i[0]=e,this._niceDomain=i,this.rescale()),this}}class EO{nice(t=10,e){var i,s,r,a;const o=this._domain;let l=[],h=null;if(e){const d=wO(o,e);if(l=d.niceMinMax,this._domainValidator=d.domainValidator,h=d.niceType,d.niceDomain)return this._niceDomain=d.niceDomain,this.rescale(),this}else h="all";if(h){const d=H$(o.slice(),(s=(i=this.getNiceConfig)===null||i===void 0?void 0:i.call(this))!==null&&s!==void 0?s:{floor:c=>Math.floor(c),ceil:c=>Math.ceil(c)});return h==="min"?d[d.length-1]=(r=l[1])!==null&&r!==void 0?r:d[d.length-1]:h==="max"&&(d[0]=(a=l[0])!==null&&a!==void 0?a:d[0]),this._niceDomain=d,this.rescale(),this}return this}niceMin(){const t=this._domain[this._domain.length-1];this.nice();const e=this._domain.slice();return this._domain&&(e[e.length-1]=t,this._niceDomain=e,this.rescale()),this}niceMax(){const t=this._domain[0];this.nice();const e=this._domain.slice();return this._domain&&(e[0]=t,this._niceDomain=e,this.rescale()),this}}function nM(n){return t=>-n(-t)}function sM(n=Number.EPSILON){return t=>Math.max(t,n)}function Z$(n=Number.EPSILON){return t=>Math.min(t,-n)}class Xf extends kO{constructor(){super(ZT(10),qT(10)),this.type=De.Log,this._limit=sM(),this._logs=this.transformer,this._pows=this.untransformer,this._domain=[1,10],this._base=10}clone(){return new Xf().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate,!0).base(this._base)}rescale(t){var e;if(t)return this;super.rescale();const i=ZT(this._base),s=qT(this._base);return((e=this._niceDomain)!==null&&e!==void 0?e:this._domain)[0]<0?(this._logs=nM(i),this._pows=nM(s),this._limit=Z$(),this.transformer=I$,this.untransformer=D$):(this._logs=i,this._pows=s,this._limit=sM(),this.transformer=this._logs,this.untransformer=s),this}scale(t){var e;if(t=Number(t),Number.isNaN(t)||this._domainValidator&&!this._domainValidator(t))return this._unknown;this._output||(this._output=this._piecewise(((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this._limit).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate));const i=this._output(this.transformer(this._limit(this._clamp(t))));return this._fishEyeTransform?this._fishEyeTransform(i):i}base(t,e){return arguments.length?(this._base=t,this.rescale(e)):this._base}tickFormat(){return sl}d3Ticks(t=10,e){const i=this.domain(),s=this._limit(i[0]),r=this._limit(i[i.length-1]);return CO(s,r,t,this._base,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return PO(this._limit(e[0]),this._limit(e[e.length-1]),t,this._base,this.transformer,this.untransformer)}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return u_(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return u_(this._limit(e[0]),this._limit(e[e.length-1]),t,this.transformer,this.untransformer)}getNiceConfig(){return{floor:t=>this._pows(Math.floor(this._logs(this._limit(t)))),ceil:t=>Math.abs(t)>=1?Math.ceil(t):this._pows(Math.ceil(this._logs(this._limit(t))))}}}se(Xf,EO);class J$ extends Ho{constructor(t){super(!1),this.type=De.Point,this._padding=0,this.paddingInner(1,t),this.padding=this.paddingOuter,this.paddingInner=void 0,this.paddingOuter=void 0}}class g_ extends Tn{constructor(){super(B$,L$),this.type=De.Sqrt}clone(){return new g_().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate)}}class Kf extends Tn{constructor(){super(JT(1),QT(1)),this.type=De.Symlog,this._const=1}clone(){return new Kf().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate,!0).constant(this._const)}constant(t,e){return arguments.length?(this._const=t,this.transformer=JT(t),this.untransformer=QT(t),this.rescale(e)):this._const}d3Ticks(t=10,e){const i=this.domain(),s=i[0],r=i[i.length-1];return CO(s,r,t,this._const,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return PO(e[0],e[e.length-1],t,this._const,this.transformer,this.untransformer)}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return u_(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return u_(e[0],e[e.length-1],t,this.transformer,this.untransformer)}}se(Kf,EO);class Ax{constructor(){this.type=De.Threshold,this._range=[0,1],this._domain=[.5],this.n=1}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}scale(t){return!P(t)&&H(+t)?this._range[gP(this._domain,t,0,this.n)]:this._unknown}invertExtent(t){const e=this._range.indexOf(t);return[this._domain[e-1],this._domain[e]]}domain(t){return t?(this._domain=Array.from(t),this.n=Math.min(this._domain.length,this._range.length-1),this):this._domain.slice()}range(t){return t?(this._range=Array.from(t),this.n=Math.min(this._domain.length,this._range.length-1),this):this._range.slice()}clone(){return new Ax().domain(this._domain).range(this._range).unknown(this._unknown)}}function S0(n,t,e,i){let s;const{breakData:r}=n;if(r&&r()){const{breakDomains:a}=r(),o=t.domain();s=[];for(let l=0;l{a.some(d=>h>=d[0]&&h<=d[1])||s.push(h)});t.domain(o)}else s=i(e);return s}function rM(n,t,e,i,s=!1){if(e&&!t.includes(n)){let r=t.length;if(r>1){s?t.push(n):t.unshift(n);for(let a=0;a{var e,i;if(!Qt(n.type))return hr(n.domain());const s=n.range(),r=Math.abs(s[s.length-1]-s[0]);if(r<2)return hr([n.domain()[0]]);const{tickCount:a,forceTickCount:o,tickStep:l,noDecimals:h=!1,labelStyle:d,breakData:c}=t;let u;if(C(l))u=n.stepTicks(l);else if(C(o))u=S0(t,n,o,(p,_)=>_&&_.length?n.domain(_,!0).forceTicks(p):n.forceTicks(p));else if(t.tickMode==="d3"){const p=(e=N(a)?a({axisLength:r,labelStyle:d}):a)!==null&&e!==void 0?e:5;u=S0(t,n,p,(_,f)=>f&&f.length?n.domain(f,!0).d3Ticks(_,{noDecimals:h}):n.d3Ticks(_,{noDecimals:h}))}else{const p=(i=N(a)?a({axisLength:r,labelStyle:d}):a)!==null&&i!==void 0?i:5,_=N(t.tickMode)?t.tickMode:void 0;u=S0(t,n,p,(f,m)=>m&&m.length?n.domain(m,!0).ticks(f,{noDecimals:h,customTicks:_}):n.ticks(f,{noDecimals:h,customTicks:_}))}const g=n.domain();if(t.labelFirstVisible&&g[0]!==u[0]&&!u.includes(g[0])&&u.unshift(g[0]),t.labelLastVisible&&g[g.length-1]!==u[u.length-1]&&!u.includes(g[g.length-1])&&u.push(g[g.length-1]),t.sampling&&u.length>1&&(t.coordinateType==="cartesian"||t.coordinateType==="polar"&&t.axisOrientType==="radius")){const{labelGap:p=4,labelFlush:_}=t;let f=vO(n,u,t).map((k,T)=>({AABBBounds:k,value:u[T]}));const m=[...f],v=m[0],y=$t(m),b=c&&c()?aM.greedy:aM.parity;for(;f.length>=3&&zy(f,p);)f=b(f,p);const x=t.labelFirstVisible;let S=t.labelLastVisible;rs(v,y,p)&&f.includes(y)&&f.length>1&&x&&S&&(f.splice(f.indexOf(y),1),S=!1),rM(v,f,x,k=>rs(k,v,p)),rM(y,f,S,k=>rs(k,y,p)||!(!x||k===v)&&rs(k,v,p),!0);const A=f.map(k=>k.value);A.length<3&&_&&(A.length>1&&A.pop(),$t(A)!==$t(u)&&A.push($t(u))),u=A}return hr(u)},aM={parity:function(n){return n.filter((t,e)=>e%2==0)},greedy:function(n,t){let e;return n.filter((i,s)=>(!s||!rs(e,i,t))&&(e=i,!0))}},oM=(n,t,e,i)=>vO(n,t,e).map(s=>i?[s.x1,s.x2,s.width()]:[s.y1,s.y2,s.height()]),lM=(n,t,e=0)=>Math.max(n[0],t[0])-e/2<=Math.min(n[1],t[1])+e/2,hM=(n,t)=>n[1]{var e;const i=n.domain();if(!i.length)return[];const{tickCount:s,forceTickCount:r,tickStep:a,labelGap:o=4,axisOrientType:l,labelStyle:h}=t,d=O$(l),c=n.range(),u=n.calculateWholeRangeSize();if(u<2)return t.labelLastVisible?hr([i[i.length-1]]):hr([i[0]]);let g;if(C(a))g=n.stepTicks(a);else if(C(r))g=n.forceTicks(r);else if(C(s)){const p=N(s)?s({axisLength:u,labelStyle:h}):s;g=n.ticks(p)}else if(t.sampling){const p=((e=t.labelStyle.fontSize)!==null&&e!==void 0?e:12)+2,_=Ze(c),f=Fe(c);if(i.length<=u/p){const m=(f-_)/i.length,v=oM(n,i,t,d),y=Math.min(...v.map(x=>x[2])),b=tY(i,v,o,t.labelLastVisible,Math.floor(y/m),!1);g=n.stepTicks(b.step),t.labelLastVisible&&(b.delCount&&(g=g.slice(0,g.length-b.delCount)),g.push(i[i.length-1]))}else{const m=[i[0],i[Math.floor(i.length/2)],i[i.length-1]],v=oM(n,m,t,d);let y=null;v.forEach(x=>{y?y[2]0?Math.ceil(i.length*(o+y[2])/(f-_-o)):i.length-1;g=n.stepTicks(b),!t.labelLastVisible||g.length&&g[g.length-1]===i[i.length-1]||(g.length&&Math.abs(n.scale(g[g.length-1])-n.scale(i[i.length-1])){let a=0,o=0,l=-1,h=Number.MAX_VALUE;const d=g=>{let p=!0,_=0;do _+gd(g)?1:-1);let u=c;do if(u>c&&!r&&!d(u))u++;else{if(!i){o=u;break}{const g=n.length-1;let p,_=0;p=n.length%u>0?n.length-n.length%u+u:n.length;do{if(p-=u,p!==g&&!lM(t[p],t[g],e))break;_++}while(p>0);if(p===g){o=u,a=_;break}{const f=Math.floor(n.length/u)-_+1;if(f=0?hM(t[p-u],t[p]):m,y=Math.abs(m-v);if(y{var i;const{labelStyle:s,getRadius:r,labelOffset:a,labelFormatter:o,inside:l}=e,h=r==null?void 0:r(),d=(i=s.angle)!==null&&i!==void 0?i:0,c=jl(s);return t.map(u=>{const g=o?o(u):`${u}`,{width:p,height:_}=c.quickMeasure(g),f=Math.max(p,KT),m=Math.max(_,KT),v=n.scale(u),y={x:0,y:0};let b=0,x=0;const S={align:s.textAlign,baseline:s.textBaseline},{x:A,y:k}=d$(v,y,h,a,l);return S.align||(Ge(A,y.x)?S.baseline||(S.baseline=k>y.y?"top":"bottom"):A>y.x?S.align="left":A{const{tickCount:e,forceTickCount:i,tickStep:s,getRadius:r,labelOffset:a,labelGap:o=0,labelStyle:l}=t,h=r==null?void 0:r();if(!h)return hr(n.domain());let d;if(C(s))d=n.stepTicks(s);else if(C(i))d=n.forceTicks(i);else if(C(e)){const c=n.range(),u=Math.abs(c[c.length-1]-c[0]),g=N(e)?e({axisLength:u,labelStyle:l}):e;d=n.ticks(g)}else if(t.sampling){const c=n.domain(),u=n.range(),g=eY(n,c,t),p=Ze(u),_=Fe(u),f=Math.abs(_-p)*(h+a)/c.length,{step:m,delCount:v}=nY(c,g,o,Math.floor(g.reduce((y,b)=>Math.min(y,b.width(),b.height()),Number.MAX_VALUE)/f));d=n.stepTicks(m),d=d.slice(0,d.length-v)}else d=n.domain();return hr(d)},nY=(n,t,e,i)=>{let s=i;do{let a=!0;s++;let o=0;do o+s2){let a=n.length-n.length%s;for(a>=n.length&&(a-=s);a>0&&XT(t[0],t[a]);)r++,a-=s}return{step:s,delCount:r}};function Gy(n,t,e,i){let s="";if(!n||t.length===0)return s;const r=t[0],a=Ke.distancePP(n,r),o=e?0:1;return i?s+=`M${n.x},${n.y-a}A${a},${a},0,0,${o},${n.x},${n.y+a}A${a},${a},0,0,${o},${n.x},${n.y-a}Z`:t.forEach((l,h)=>{h===0?s=`M${l.x},${l.y}`:s+=`A${a},${a},0,0,${o},${l.x},${l.y}`}),s}function sY(n,t,e){const{type:i,closed:s}=e,r=t.slice(0).reverse();let a="",o="";if(i==="line"&&e.smoothLink&&e.center){const l=n[0],h=r[0],d=e.center;a=Ja(n,!!s),o=Ja(r,!!s);const c=Ke.distancePP(h,d),u=Ke.distancePP(l,d);a+=`A${c},${c},0,0,1,${h.x},${h.y}L${h.x},${h.y}`,o+=`A${u},${u},0,0,0,${l.x},${l.y}`}else if(i==="circle"){const{center:l}=e;a=Gy(l,n,!1,!!s),o=Gy(l,r,!0,!!s)}else i!=="line"&&i!=="polygon"||(a=Ja(n,!!s),o=Ja(r,!!s));return s?a+=o:(o="L"+o.substring(1),a+=o,a+="Z"),a}class Sa extends li{constructor(){super(...arguments),this.name="axis-grid",this.data=[]}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}render(){this._prevInnerView=this._innerView&&iO(this._innerView),this.removeAllChild(!0),this._innerView=rt.group({x:0,y:0,pickable:!1}),this.add(this._innerView);const{items:t,visible:e}=this.attribute;t&&t.length&&e!==!1&&(this.data=this._transformItems(t),this._renderGrid(this._innerView))}getVerticalCoord(t,e,i){return bx(t,this.getVerticalVector(e,i,t))}_transformItems(t){const e=[];return t.forEach(i=>{var s;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(s=i.id)!==null&&s!==void 0?s:i.label}))}),e}_renderGrid(t){const{visible:e}=this.attribute.subGrid||{};e&&this._renderGridByType(!0,t),this._renderGridByType(!1,t)}_renderGridByType(t,e){const i=$({},this.attribute,this.getGridAttribute(t)),{type:s,items:r,style:a,closed:o,alternateColor:l,depth:h=0}=i,d=t?`${ni.grid}-sub`:`${ni.grid}`;if(r.forEach((c,u)=>{const{id:g,points:p}=c;let _="";if(s==="line"||s==="polygon")_=Ja(p,!!o);else if(s==="circle"){const{center:m}=this.attribute;_=Gy(m,p,!1,!!o)}const f=rt.path(Object.assign({path:_,z:h},N(a)?$({},this.skipDefault?null:Sa.defaultAttributes.style,a(c,u)):a));f.name=`${d}-line`,f.id=this._getNodeId(`${d}-path-${g}`),e.add(f)}),h&&s==="line"&&r.forEach((c,u)=>{const{id:g,points:p}=c,_=[];_.push(p[0]);const f=p[1].x-p[0].x,m=p[1].y-p[0].y,v=Math.sqrt(f*f+m*m),y=h/v;_.push({x:p[0].x+f*y,y:p[0].y+m*y});const b=Ja(_,!!o),x=Wt(_[0].x-_[1].x),S=Wt(_[0].y-_[1].y),A=rt.path(Object.assign({path:b,z:0,alpha:x>S?(p[1].x-p[0].x>0?-1:1)*oe/2:0,beta:xS?[_[0].x,0]:[0,_[0].y]},N(a)?$({},this.skipDefault?null:Sa.defaultAttributes.style,a(c,u)):a));A.name=`${d}-line`,A.id=this._getNodeId(`${d}-path-${g}`),e.add(A)}),r.length>1&&l){const c=U(l)?l:[l,"transparent"],u=b=>c[b%c.length],g=this.attribute.items,p=g[0],_=g[g.length-1],f=!Ge(p.value,0)&&!Ge(_.value,0),m=!Ge(p.value,1)&&!Ge(_.value,1),v=[],y=p.value>_.value;(y&&m||!y&&f)&&v.push(this.getGridPointsByValue(y?1:0)),r.forEach(b=>{v.push(b.points)}),(y&&f||!y&&m)&&v.push(this.getGridPointsByValue(y?0:1));for(let b=0;b=2&&(t=this.data[1].value-this.data[0].value),t}_getPointsOfSubGrid(t,e){const i=this.data.length,s=[];return i>=2&&this.data.forEach(r=>{let a=r.value;if(!e){const o=r.value-t/2;if(this.isInValidValue(o))return;a=o}s.push({value:a})}),s}release(){super.release(),this._prevInnerView=null,this._innerView=null}}Sa.defaultAttributes={style:{lineWidth:1,stroke:"#999",strokeOpacity:1,lineDash:[4,4]},subGrid:{visible:!1,style:{lineWidth:1,stroke:"#999",strokeOpacity:1,lineDash:[4,4]}}};w$();class RO extends Sa{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Sa.defaultAttributes,t),e)}_getGridPoint(t,e){let i;if(t==="line"){const{length:s}=this.attribute;i=[e,this.getVerticalCoord(e,s,!0)]}else if(t==="circle"||t==="polygon"){const{center:s,sides:r=6,startAngle:a=sh,endAngle:o=rh}=this.attribute,l=Ke.distancePP(s,e);i=nO(s,r,l,a,o)}return i}getGridPointsByValue(t){const e=this.getTickCoord(t);return this._getGridPoint(this.attribute.type,e)}getGridAttribute(t){const{type:e,alignWithLabel:i=!0}=this.attribute,s=this._parseTickSegment();let r,a=[];if(t){r=$({},this.attribute,this.attribute.subGrid);const o=[],{count:l=4}=r;if(this.data.length>=2){const h=this._getPointsOfSubGrid(s,i);for(let d=0;d{let{point:h}=l;if(!i){const d=l.value-s/2;if(this.isInValidValue(d))return;h=this.getTickCoord(d)}o.push({id:l.label,datum:l,points:this._getGridPoint(e,h)})}),a=o}return Object.assign(Object.assign({},r),{items:a})}}se(RO,pO);var rY=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s=2){const v=this._getPointsOfSubGrid(p,u);for(let y=0;y{let{point:v}=m;if(!u){const b=m.value-p/2;if(this.isInValidValue(b))return;v=this.getTickCoord(b)}const y=this.getVerticalCoord(v,g,!0);_.push({id:m.id,points:[v,y],datum:m})}),i=_}return Object.assign(Object.assign({},e),{items:i,center:h,type:"line"})}}se(OO,fO);const dM="M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",aY={orient:"bottom",showDetail:"auto",brushSelect:!0,zoomLock:!1,minSpan:0,maxSpan:1,delayType:"throttle",delayTime:0,realTime:!0,backgroundStyle:{fill:"white",stroke:"#D1DBEE",lineWidth:1,cornerRadius:2},dragMaskStyle:{fill:"#B0C8F9",fillOpacity:.2},backgroundChartStyle:{area:{visible:!0,stroke:"#D1DBEE",lineWidth:1,fill:"#F6F8FC"},line:{visible:!0,stroke:"#D1DBEE",lineWidth:1}},selectedBackgroundStyle:{fill:"#B0C8F9",fillOpacity:.5},selectedBackgroundChartStyle:{area:{visible:!0,stroke:"#B0C8F9",lineWidth:1,fill:"#fbb934"},line:{visible:!0,stroke:"#fbb934",lineWidth:1}},middleHandlerStyle:{visible:!0,background:{size:8,style:{fill:"white",stroke:"#B0C8F9",cornerRadius:2}},icon:{size:6,fill:"white",stroke:"#B0C8F9",symbolType:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",lineWidth:.5}},startHandlerStyle:{visible:!0,triggerMinSize:0,symbolType:dM,fill:"white",stroke:"#B0C8F9",lineWidth:.5},endHandlerStyle:{visible:!0,triggerMinSize:0,symbolType:dM,fill:"white",stroke:"#B0C8F9",lineWidth:.5},startTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}},endTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}}},Or={horizontal:{angle:0,strokeBoundsBuffer:0,boundsPadding:2,pickMode:"imprecise",cursor:"ew-resize"},vertical:{angle:Math.PI/180*90,cursor:"ns-resize",boundsPadding:2,pickMode:"imprecise",strokeBoundsBuffer:0}};var Ni;(function(n){n.startHandler="startHandler",n.endHandler="endHandler",n.middleHandler="middleHandler",n.background="background"})(Ni||(Ni={}));function oY(){jf(),kr(),Yn(),FR(),Ar()}var cM=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sr,this._onHandlerPointerDown=(r,a)=>{r.stopPropagation(),a==="start"?(this._activeTag=Ni.startHandler,this._activeItem=this._startHandlerMask):a==="end"?(this._activeTag=Ni.endHandler,this._activeItem=this._endHandlerMask):a==="middleRect"?(this._activeTag=Ni.middleHandler,this._activeItem=this._middleHandlerRect):a==="middleSymbol"?(this._activeTag=Ni.middleHandler,this._activeItem=this._middleHandlerSymbol):a==="background"&&(this._activeTag=Ni.background,this._activeItem=this._background),this._activeState=!0,this._activeCache.startPos=this.eventPosToStagePos(r),this._activeCache.lastPos=this.eventPosToStagePos(r),Et.env==="browser"&&(Et.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Et.addEventListener("pointerup",this._onHandlerPointerUp)),this.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0})},this._pointerMove=r=>{r.stopPropagation();const{start:a,end:o,brushSelect:l,realTime:h=!0}=this.attribute,d=this.eventPosToStagePos(r),{attPos:c,max:u}=this._layoutCache,g=(d[c]-this._activeCache.lastPos[c])/u;let{start:p,end:_}=this.state;this._activeState&&(this._activeTag===Ni.middleHandler?this.moveZoomWithMiddle((this.state.start+this.state.end)/2+g):this._activeTag===Ni.startHandler?p+g>_?(p=_,_=p+g,this._activeTag=Ni.endHandler):p+=g:this._activeTag===Ni.endHandler&&(_+g{r.preventDefault();const{start:a,end:o,brushSelect:l,realTime:h=!0}=this.attribute;if(this._activeState&&this._activeTag===Ni.background){const d=this.eventPosToStagePos(r);this.backgroundDragZoom(this._activeCache.startPos,d)}this._activeState=!1,l&&this.renderDragMask(),a===this.state.start&&o===this.state.end||(this.setStateAttr(this.state.start,this.state.end,!0),this._dispatchEvent("change",{start:this.state.start,end:this.state.end,tag:this._activeTag})),Et.env==="browser"&&(Et.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Et.removeEventListener("pointerup",this._onHandlerPointerUp)),this.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.removeEventListener("pointerup",this._onHandlerPointerUp)};const{position:i,showDetail:s}=t;this._activeCache.startPos=i,this._activeCache.lastPos=i,this._showText=s!=="auto"&&s,this.setPropsFromAttrs()}setAttributes(t,e){super.setAttributes(t,e),this.setPropsFromAttrs()}bindEvents(){if(this.attribute.disableTriggerEvent)return void this.setAttribute("childrenPickable",!1);const{showDetail:t,brushSelect:e}=this.attribute;this._startHandlerMask&&this._startHandlerMask.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"start")),this._endHandlerMask&&this._endHandlerMask.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"end")),this._middleHandlerSymbol&&this._middleHandlerSymbol.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"middleSymbol")),this._middleHandlerRect&&this._middleHandlerRect.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"middleRect"));const i=e?"background":"middleRect";this._selectedBackground&&this._selectedBackground.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,i)),e&&this._background&&this._background.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"background")),e&&this._previewGroup&&this._previewGroup.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"background")),this._selectedPreviewGroup&&this._selectedPreviewGroup.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,i)),this.addEventListener("pointerup",this._onHandlerPointerUp),this.addEventListener("pointerupoutside",this._onHandlerPointerUp),t==="auto"&&(this.addEventListener("pointerenter",this._onHandlerPointerEnter),this.addEventListener("pointerleave",this._onHandlerPointerLeave))}dragMaskSize(){const{position:t}=this.attribute,{attPos:e,max:i}=this._layoutCache;return this._activeCache.lastPos[e]-t[e]>i?i+t[e]-this._activeCache.startPos[e]:this._activeCache.lastPos[e]-t[e]<0?t[e]-this._activeCache.startPos[e]:this._activeCache.lastPos[e]-this._activeCache.startPos[e]}setStateAttr(t,e,i){const{zoomLock:s=!1,minSpan:r=0,maxSpan:a=1}=this.attribute,o=e-t;o!==this._spanCache&&(s||oa)||(this._spanCache=o,this.state.start=t,this.state.end=e,i&&this.setAttributes({start:t,end:e}))}eventPosToStagePos(t){return this.stage.eventPointTransform(t)}_onHandlerPointerEnter(t){t.stopPropagation(),this._showText=!0,this.renderText()}_onHandlerPointerLeave(t){t.stopPropagation(),this._showText=!1,this.renderText()}backgroundDragZoom(t,e){const{attPos:i,max:s}=this._layoutCache,{position:r}=this.attribute,a=t[i]-r[i],o=e[i]-r[i],l=Math.min(Math.max(Math.min(a,o)/s,0),1),h=Math.min(Math.max(Math.max(a,o)/s,0),1);Math.abs(l-h)<.01?this.moveZoomWithMiddle(l):this.setStateAttr(l,h,!1)}moveZoomWithMiddle(t){let e=t-(this.state.start+this.state.end)/2;e!==0&&(e>0?this.state.end+e>1&&(e=1-this.state.end):e<0&&this.state.start+e<0&&(e=-this.state.start),this.setStateAttr(this.state.start+e,this.state.end+e,!1))}renderDragMask(){const{dragMaskStyle:t}=this.attribute,{position:e,width:i,height:s}=this.getLayoutAttrFromConfig();this._isHorizontal?this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:be(this.dragMaskSize()<0?this._activeCache.lastPos.x:this._activeCache.startPos.x,e.x,e.x+i),y:e.y,width:this._activeState&&this._activeTag===Ni.background&&Math.abs(this.dragMaskSize())||0,height:s},t),"rect"):this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:e.x,y:be(this.dragMaskSize()<0?this._activeCache.lastPos.y:this._activeCache.startPos.y,e.y,e.y+s),width:i,height:this._activeState&&this._activeTag===Ni.background&&Math.abs(this.dragMaskSize())||0},t),"rect")}isTextOverflow(t,e,i){if(!e)return!1;if(this._isHorizontal){if(i==="start"){if(e.x1t.x2)return!0}else if(i==="start"){if(e.y1t.y2)return!0;return!1}setTextAttr(t,e){var i,s,r,a,o,l,h,d;const{startTextStyle:c,endTextStyle:u}=this.attribute,{formatMethod:g}=c,p=cM(c,["formatMethod"]),{formatMethod:_}=u,f=cM(u,["formatMethod"]),{start:m,end:v}=this.state;this._startValue=this._statePointToData(m),this._endValue=this._statePointToData(v);const{position:y,width:b,height:x}=this.getLayoutAttrFromConfig(),S=g?g(this._startValue):this._startValue,A=_?_(this._endValue):this._endValue,k={x1:y.x,y1:y.y,x2:y.x+b,y2:y.y+x};let T,w,M,R;this._isHorizontal?(T={x:y.x+m*b,y:y.y+x/2},w={x:y.x+v*b,y:y.y+x/2},M={textAlign:this.isTextOverflow(k,t,"start")?"left":"right",textBaseline:(s=(i=p==null?void 0:p.textStyle)===null||i===void 0?void 0:i.textBaseline)!==null&&s!==void 0?s:"middle"},R={textAlign:this.isTextOverflow(k,e,"end")?"right":"left",textBaseline:(a=(r=f==null?void 0:f.textStyle)===null||r===void 0?void 0:r.textBaseline)!==null&&a!==void 0?a:"middle"}):(T={x:y.x+b/2,y:y.y+m*x},w={x:y.x+b/2,y:y.y+v*x},M={textAlign:(l=(o=p==null?void 0:p.textStyle)===null||o===void 0?void 0:o.textAlign)!==null&&l!==void 0?l:"center",textBaseline:this.isTextOverflow(k,t,"start")?"top":"bottom"},R={textAlign:(d=(h=f==null?void 0:f.textStyle)===null||h===void 0?void 0:h.textAlign)!==null&&d!==void 0?d:"center",textBaseline:this.isTextOverflow(k,e,"end")?"bottom":"top"}),this._startText=this.maybeAddLabel(this._container,$({},p,{text:S,x:T.x,y:T.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:M}),`data-zoom-start-text-${y}`),this._endText=this.maybeAddLabel(this._container,$({},f,{text:A,x:w.x,y:w.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:R}),`data-zoom-end-text-${y}`)}renderText(){let t=null,e=null;this.setTextAttr(t,e),t=this._startText.AABBBounds,e=this._endText.AABBBounds,this.setTextAttr(t,e),t=this._startText.AABBBounds,e=this._endText.AABBBounds;const{x1:i,x2:s,y1:r,y2:a}=t,{dx:o=0,dy:l=0}=this.attribute.startTextStyle;if(new wi().set(i,r,s,a).intersects(e)){const h=this.attribute.orient==="bottom"||this.attribute.orient==="right"?-1:1;this._isHorizontal?this._startText.setAttribute("dy",l+h*Math.abs(e.y1-e.y2)):this._startText.setAttribute("dx",o+h*Math.abs(e.x1-e.x2))}else this._isHorizontal?this._startText.setAttribute("dy",l):this._startText.setAttribute("dx",o)}getLayoutAttrFromConfig(){var t,e,i,s,r,a;if(this._layoutAttrFromConfig)return this._layoutAttrFromConfig;const{position:o,size:l,orient:h,middleHandlerStyle:d={},startHandlerStyle:c={},endHandlerStyle:u={},backgroundStyle:g={}}=this.attribute,{width:p,height:_}=l,f=(e=(t=d.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:10;let m,v,y;d.visible?this._isHorizontal?(m=p,v=_-f,y={x:o.x,y:o.y+f}):(m=p-f,v=_,y={x:o.x+(h==="left"?f:0),y:o.y}):(m=p,v=_,y=o);const b=(i=c.size)!==null&&i!==void 0?i:this._isHorizontal?v:m,x=(s=u.size)!==null&&s!==void 0?s:this._isHorizontal?v:m;return c.visible&&(this._isHorizontal?(m-=(b+x)/2,y={x:y.x+b/2,y:y.y}):(v-=(b+x)/2,y={x:y.x,y:y.y+b/2})),v+=(r=g.lineWidth/2)!==null&&r!==void 0?r:1,m+=(a=g.lineWidth/2)!==null&&a!==void 0?a:1,this._layoutAttrFromConfig={position:y,width:m,height:v},this._layoutAttrFromConfig}render(){var t,e,i,s,r,a,o,l,h,d,c,u,g,p,_,f,m,v,y,b,x,S,A,k,T,w,M,R,O,L,E,B,I,F;this._layoutAttrFromConfig=null;const{orient:z,backgroundStyle:V,backgroundChartStyle:W={},selectedBackgroundStyle:at={},selectedBackgroundChartStyle:ot={},middleHandlerStyle:dt={},startHandlerStyle:nt={},endHandlerStyle:st={},brushSelect:et,zoomLock:K}=this.attribute,{start:ft,end:Bt}=this.state,{position:ct,width:bt,height:Dt}=this.getLayoutAttrFromConfig(),he=(t=nt.triggerMinSize)!==null&&t!==void 0?t:40,Ct=(e=st.triggerMinSize)!==null&&e!==void 0?e:40,Tt=this.createOrUpdateChild("dataZoom-container",{},"group");if(this._container=Tt,this._background=Tt.createOrUpdateChild("background",Object.assign(Object.assign({x:ct.x,y:ct.y,width:bt,height:Dt,cursor:et?"crosshair":"auto"},V),{pickable:!K&&((i=V.pickable)===null||i===void 0||i)}),"rect"),!((s=W.line)===null||s===void 0)&&s.visible&&this.setPreviewAttributes("line",Tt),!((r=W.area)===null||r===void 0)&&r.visible&&this.setPreviewAttributes("area",Tt),et&&this.renderDragMask(),this._isHorizontal?this._selectedBackground=Tt.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:ct.x+ft*bt,y:ct.y,width:(Bt-ft)*bt,height:Dt,cursor:et?"crosshair":"move"},at),{pickable:!K&&((a=ot.pickable)===null||a===void 0||a)}),"rect"):this._selectedBackground=Tt.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:ct.x,y:ct.y+ft*Dt,width:bt,height:(Bt-ft)*Dt,cursor:et?"crosshair":"move"},at),{pickable:!K&&((o=at.pickable)===null||o===void 0||o)}),"rect"),!((l=ot.line)===null||l===void 0)&&l.visible&&this.setSelectedPreviewAttributes("line",Tt),!((h=ot.area)===null||h===void 0)&&h.visible&&this.setSelectedPreviewAttributes("area",Tt),this._isHorizontal){if(dt.visible){const Pe=((d=dt.background)===null||d===void 0?void 0:d.size)||10;this._middleHandlerRect=Tt.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:ct.x+ft*bt,y:ct.y-Pe,width:(Bt-ft)*bt,height:Pe},(c=dt.background)===null||c===void 0?void 0:c.style),{pickable:!K&&((p=(g=(u=dt.background)===null||u===void 0?void 0:u.style)===null||g===void 0?void 0:g.pickable)===null||p===void 0||p)}),"rect"),this._middleHandlerSymbol=Tt.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:ct.x+(ft+Bt)/2*bt,y:ct.y-Pe/2,strokeBoundsBuffer:0,angle:0,symbolType:(f=(_=dt.icon)===null||_===void 0?void 0:_.symbolType)!==null&&f!==void 0?f:"square"},dt.icon),{pickable:!K&&((m=dt.icon.pickable)===null||m===void 0||m)}),"symbol")}this._startHandler=Tt.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:ct.x+ft*bt,y:ct.y+Dt/2,size:Dt,symbolType:(v=nt.symbolType)!==null&&v!==void 0?v:"square"},Or.horizontal),nt),{pickable:!K&&((y=nt.pickable)===null||y===void 0||y)}),"symbol"),this._endHandler=Tt.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:ct.x+Bt*bt,y:ct.y+Dt/2,size:Dt,symbolType:(b=st.symbolType)!==null&&b!==void 0?b:"square"},Or.horizontal),st),{pickable:!K&&((x=st.pickable)===null||x===void 0||x)}),"symbol");const qt=Math.max(this._startHandler.AABBBounds.width(),he),ie=Math.max(this._startHandler.AABBBounds.height(),he),Ce=Math.max(this._endHandler.AABBBounds.width(),Ct),St=Math.max(this._endHandler.AABBBounds.height(),Ct);this._startHandlerMask=Tt.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:ct.x+ft*bt-qt/2,y:ct.y+Dt/2-ie/2,width:qt,height:ie,fill:"white",fillOpacity:0,zIndex:999},Or.horizontal),{pickable:!K}),"rect"),this._endHandlerMask=Tt.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:ct.x+Bt*bt-Ce/2,y:ct.y+Dt/2-St/2,width:Ce,height:St,fill:"white",fillOpacity:0,zIndex:999},Or.horizontal),{pickable:!K}),"rect")}else{if(dt.visible){const Pe=((S=dt.background)===null||S===void 0?void 0:S.size)||10;this._middleHandlerRect=Tt.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:z==="left"?ct.x-Pe:ct.x+bt,y:ct.y+ft*Dt,width:Pe,height:(Bt-ft)*Dt},(A=dt.background)===null||A===void 0?void 0:A.style),{pickable:!K&&((w=(T=(k=dt.background)===null||k===void 0?void 0:k.style)===null||T===void 0?void 0:T.pickable)===null||w===void 0||w)}),"rect"),this._middleHandlerSymbol=Tt.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:z==="left"?ct.x-Pe/2:ct.x+bt+Pe/2,y:ct.y+(ft+Bt)/2*Dt,angle:Math.PI/180*90,symbolType:(R=(M=dt.icon)===null||M===void 0?void 0:M.symbolType)!==null&&R!==void 0?R:"square",strokeBoundsBuffer:0},dt.icon),{pickable:!K&&((L=(O=dt.icon)===null||O===void 0?void 0:O.pickable)===null||L===void 0||L)}),"symbol")}this._startHandler=Tt.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:ct.x+bt/2,y:ct.y+ft*Dt,size:bt,symbolType:(E=nt.symbolType)!==null&&E!==void 0?E:"square"},Or.vertical),nt),{pickable:!K&&((B=nt.pickable)===null||B===void 0||B)}),"symbol"),this._endHandler=Tt.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:ct.x+bt/2,y:ct.y+Bt*Dt,size:bt,symbolType:(I=st.symbolType)!==null&&I!==void 0?I:"square"},Or.vertical),st),{pickable:!K&&((F=st.pickable)===null||F===void 0||F)}),"symbol");const qt=Math.max(this._startHandler.AABBBounds.width(),he),ie=Math.max(this._startHandler.AABBBounds.height(),he),Ce=Math.max(this._endHandler.AABBBounds.width(),Ct),St=Math.max(this._endHandler.AABBBounds.height(),Ct);this._startHandlerMask=Tt.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:ct.x+bt/2+qt/2,y:ct.y+ft*Dt-ie/2,width:St,height:Ce,fill:"white",fillOpacity:0,zIndex:999},Or.vertical),{pickable:!K}),"rect"),this._endHandlerMask=Tt.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:ct.x+bt/2+Ce/2,y:ct.y+Bt*Dt-St/2,width:St,height:Ce,fill:"white",fillOpacity:0,zIndex:999},Or.vertical),{pickable:!K}),"rect")}this._showText&&this.renderText()}computeBasePoints(){const{orient:t}=this.attribute,{position:e,width:i,height:s}=this.getLayoutAttrFromConfig();let r,a;return this._isHorizontal?(r=[{x:e.x,y:e.y+s}],a=[{x:e.x+i,y:e.y+s}]):t==="left"?(r=[{x:e.x+i,y:e.y}],a=[{x:e.x+i,y:e.y+s}]):(r=[{x:e.x,y:e.y+s}],a=[{x:e.x,y:e.y}]),{basePointStart:r,basePointEnd:a}}simplifyPoints(t){var e;if(t.length>1e4){const i=(e=this.attribute.tolerance)!==null&&e!==void 0?e:this._previewData.length/1e4;return SG(t,i)}return t}getPreviewLinePoints(){let t=this._previewData.map(s=>({x:this._previewPointsX&&this._previewPointsX(s),y:this._previewPointsY&&this._previewPointsY(s)}));if(t.length===0)return t;t=this.simplifyPoints(t);const{basePointStart:e,basePointEnd:i}=this.computeBasePoints();return e.concat(t).concat(i)}getPreviewAreaPoints(){let t=this._previewData.map(s=>({x:this._previewPointsX&&this._previewPointsX(s),y:this._previewPointsY&&this._previewPointsY(s),x1:this._previewPointsX1&&this._previewPointsX1(s),y1:this._previewPointsY1&&this._previewPointsY1(s)}));if(t.length===0)return t;t=this.simplifyPoints(t);const{basePointStart:e,basePointEnd:i}=this.computeBasePoints();return e.concat(t).concat(i)}setPreviewAttributes(t,e){this._previewGroup||(this._previewGroup=e.createOrUpdateChild("previewGroup",{pickable:!1},"group")),t==="line"?this._previewLine=this._previewGroup.createOrUpdateChild("previewLine",{},"line"):this._previewArea=this._previewGroup.createOrUpdateChild("previewArea",{curveType:"basis"},"area");const{backgroundChartStyle:i={}}=this.attribute;t==="line"&&this._previewLine.setAttributes(Object.assign({points:this.getPreviewLinePoints(),curveType:"basis",pickable:!1},i.line)),t==="area"&&this._previewArea.setAttributes(Object.assign({points:this.getPreviewAreaPoints(),curveType:"basis",pickable:!1},i.area))}setSelectedPreviewAttributes(t,e){this._selectedPreviewGroupClip||(this._selectedPreviewGroupClip=e.createOrUpdateChild("selectedPreviewGroupClip",{pickable:!1},"group"),this._selectedPreviewGroup=this._selectedPreviewGroupClip.createOrUpdateChild("selectedPreviewGroup",{},"group")),t==="line"?this._selectedPreviewLine=this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewLine",{},"line"):this._selectedPreviewArea=this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewArea",{curveType:"basis"},"area");const{selectedBackgroundChartStyle:i={}}=this.attribute,{start:s,end:r}=this.state,{position:a,width:o,height:l}=this.getLayoutAttrFromConfig();this._selectedPreviewGroupClip.setAttributes({x:this._isHorizontal?a.x+s*o:a.x,y:this._isHorizontal?a.y:a.y+s*l,width:this._isHorizontal?(r-s)*o:o,height:this._isHorizontal?l:(r-s)*l,clip:!0,pickable:!1}),this._selectedPreviewGroup.setAttributes({x:-(this._isHorizontal?a.x+s*o:a.x),y:-(this._isHorizontal?a.y:a.y+s*l),width:this._isHorizontal?(r-s)*o:o,height:this._isHorizontal?l:(r-s)*l,pickable:!1}),t==="line"&&this._selectedPreviewLine.setAttributes(Object.assign({points:this.getPreviewLinePoints(),curveType:"basis",pickable:!1},i.line)),t==="area"&&this._selectedPreviewArea.setAttributes(Object.assign({points:this.getPreviewAreaPoints(),curveType:"basis",pickable:!1},i.area))}maybeAddLabel(t,e,i){let s=this.find(r=>r.name===i,!0);return s?s.setAttributes(e):(s=new kn(e),s.name=i),t.add(s),s}setStartAndEnd(t,e){const{start:i,end:s}=this.attribute;C(t)&&C(e)&&(t!==this.state.start||e!==this.state.end)&&(this.state.start=t,this.state.end=e,i===this.state.start&&s===this.state.end||(this.setStateAttr(t,e,!0),this._dispatchEvent("change",{start:t,end:e,tag:this._activeTag})))}setPreviewData(t){this._previewData=t}setText(t,e){e==="start"?this._startText.setAttribute("text",t):this._endText.setAttribute("text",t)}getStartValue(){return this._startValue}getEndTextValue(){return this._endValue}getMiddleHandlerSize(){var t,e,i,s;const{middleHandlerStyle:r={}}=this.attribute,a=(e=(t=r.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:10,o=(s=(i=r.icon)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:10;return Math.max(a,...j(o))}setPreviewPointsX(t){N(t)&&(this._previewPointsX=t)}setPreviewPointsY(t){N(t)&&(this._previewPointsY=t)}setPreviewPointsX1(t){N(t)&&(this._previewPointsX1=t)}setPreviewPointsY1(t){N(t)&&(this._previewPointsY1=t)}setStatePointToData(t){N(t)&&(this._statePointToData=t)}};BO.defaultAttributes=aY;var Ny;(function(n){n.start="start",n.startTop="startTop",n.startBottom="startBottom",n.insideStart="insideStart",n.insideStartTop="insideStartTop",n.insideStartBottom="insideStartBottom",n.middle="middle",n.insideMiddleTop="insideMiddleTop",n.insideMiddleBottom="insideMiddleBottom",n.end="end",n.endTop="endTop",n.endBottom="endBottom",n.insideEnd="insideEnd",n.insideEndTop="insideEndTop",n.insideEndBottom="insideEndBottom"})(Ny||(Ny={}));var Uy;(function(n){n.left="left",n.right="right",n.top="top",n.bottom="bottom",n.middle="middle",n.insideLeft="insideLeft",n.insideRight="insideRight",n.insideTop="insideTop",n.insideBottom="insideBottom"})(Uy||(Uy={}));var pi;(function(n){n.arcInnerStart="arcInnerStart",n.arcInnerEnd="arcInnerEnd",n.arcInnerMiddle="arcInnerMiddle",n.arcOuterStart="arcOuterStart",n.arcOuterEnd="arcOuterEnd",n.arcOuterMiddle="arcOuterMiddle",n.center="center"})(pi||(pi={}));var $y;(function(n){n.top="top",n.bottom="bottom",n.middle="middle",n.insideTop="insideTop",n.insideBottom="insideBottom",n.insideMiddle="insideMiddle"})($y||($y={}));function _u(){ze(),jf()}function hY(){_u(),vx()}function dY(){_u(),yx()}function cY(){_u(),Ff()}function uY(){_u(),kh()}function gY(){_u(),vx(),yx(),Yn(),zR(),Ar()}class qf extends li{constructor(){super(...arguments),this.name="marker",this._onHover=t=>{this._lastHover=sO(t,this._container,this._lastHover)},this._onUnHover=t=>{this._lastHover=rO(t,this._container,this._lastHover)},this._onClick=t=>{this._lastSelect=aO(t,this._container,this._lastSelect)}}transAnimationConfig(){var t,e,i;if(this.attribute.animation!==!1){const s=yt(this.attribute.animation)?this.attribute.animation:{};this._animationConfig={enter:$({},this.defaultUpdateAnimation,s,(t=this.attribute.animationEnter)!==null&&t!==void 0?t:{}),exit:$({},this.defaultExitAnimation,s,(e=this.attribute.animationExit)!==null&&e!==void 0?e:{}),update:$({},this.defaultUpdateAnimation,s,(i=this.attribute.animationUpdate)!==null&&i!==void 0?i:{})}}}setAttribute(t,e,i){super.setAttribute(t,e,i),t==="visible"&&this.render()}_bindEvent(){var t,e,i;if(!this.attribute.interactive)return;const{hover:s,select:r}=this.attribute;s&&((t=this._container)===null||t===void 0||t.addEventListener("pointermove",this._onHover),(e=this._container)===null||e===void 0||e.addEventListener("pointerout",this._onUnHover)),r&&((i=this._container)===null||i===void 0||i.addEventListener("pointerdown",this._onClick))}_releaseEvent(){var t,e,i;(t=this._container)===null||t===void 0||t.removeEventListener("pointermove",this._onHover),(e=this._container)===null||e===void 0||e.removeEventListener("pointerout",this._onUnHover),(i=this._container)===null||i===void 0||i.removeEventListener("pointerdown",this._onClick)}_initContainer(){var t,e;const{limitRect:i={},clipInRange:s}=this.attribute;let r;if(s){const a=rt.group(Object.assign(Object.assign({},i),{clip:!0,pickable:!1}));r=rt.group({x:-((t=i.x)!==null&&t!==void 0?t:0),y:-((e=i.y)!==null&&e!==void 0?e:0),pickable:!1}),a.add(r),this._containerClip=a,this.add(a)}else r=rt.group({x:0,y:0,pickable:!1}),this.add(r);r.name="marker-container",this._container=r}_updateContainer(){var t,e;const{limitRect:i={},clipInRange:s}=this.attribute;this._containerClip&&this._containerClip.setAttributes(Object.assign({},i)),this._container.setAttributes({x:s?-((t=i.x)!==null&&t!==void 0?t:0):0,y:s?-((e=i.y)!==null&&e!==void 0?e:0):0})}render(){var t;this.transAnimationConfig(),this.setAttribute("pickable",!1);const e=(t=this.attribute.visible)===null||t===void 0||t;this.attribute.interactive===!1&&this.setAttribute("childrenPickable",!1),e&&this.isValidPoints()?this._container?(this._updateContainer(),this.updateMarker(),this.markerAnimate("update")):(this._initContainer(),this.initMarker(this._container),this.markerAnimate("enter")):(this.markerAnimate("exit"),this._container=null,this.removeAllChild(!0)),this._releaseEvent(),this._bindEvent()}release(){this.markerAnimate("exit"),super.release(),this._releaseEvent(),this._container=null}}function si(n,t,e,i){var s,r,a,o,l;if(!n)return;(s=n==null?void 0:n.animates)===null||s===void 0||s.forEach(c=>c.stop("end"));const h=(a=(r=n.attribute)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1,d=(l=(o=n.attribute)===null||o===void 0?void 0:o.strokeOpacity)!==null&&l!==void 0?l:1;n.setAttributes({fillOpacity:0,strokeOpacity:0}),n.animate().wait(t).to({fillOpacity:h,strokeOpacity:d},e,i)}function IO(n,t,e,i){n&&(si(n.startSymbol,t,e,i),n.lines.forEach(s=>si(s,t,e,i)),si(n.line,t,e,i),si(n.endSymbol,t,e,i))}function Zf(n,t,e,i){n&&(si(n.getTextShape(),t,e,i),si(n.getBgRect(),t,e,i))}function Es(n,t,e,i){var s,r,a,o;n&&(n.setAttributes({fillOpacity:(r=(s=n.attribute)===null||s===void 0?void 0:s.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(o=(a=n.attribute)===null||a===void 0?void 0:a.strokeOpacity)!==null&&o!==void 0?o:1}),n.animate().wait(t).to({fillOpacity:0,strokeOpacity:0},e,i))}function DO(n,t,e,i){n&&(Es(n.startSymbol,t,e,i),n.lines.forEach(s=>Es(s,t,e,i)),Es(n.line,t,e,i),Es(n.endSymbol,t,e,i))}function Jf(n,t,e,i){n&&(Es(n.getTextShape(),t,e,i),Es(n.getBgRect(),t,e,i))}function uM(n,t,e,i,s){const r=.1*e,a=.7*e,o=.1*e,l=.1*e;si(n.startSymbol,i,r,s),n.lines.forEach(h=>h.setAttribute("clipRange",0)),n.lines.forEach((h,d)=>{const c=a/n.lines.length;h.animate().wait(i+r+d*c).to({clipRange:1},c,s)}),si(n.endSymbol,i+r+a,o,s),si(t.getTextShape(),i+r+a+o,l,s),si(t.getBgRect(),i+r+a+o,l,s)}function gM(n,t,e,i,s){IO(n,i,e,s),Zf(t,i,e,s)}function pM(n,t,e,i,s){si(n,i,e,s),Zf(t,i,e,s)}function _M(n,t,e,i,s){si(n,i,e,s),Zf(t,i,e,s)}function fM(n,t,e,i,s,r){var a;IO(n,s,i,r),si(t,s,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?Zf(e,s,i,r):si(e,s,i,r)}function pY(n,t,e,i,s){DO(n,i,e,s),Jf(t,i,e,s)}function _Y(n,t,e,i,s){Es(n,i,e,s),Jf(t,i,e,s)}function fY(n,t,e,i,s){Es(n,i,e,s),Jf(t,i,e,s)}function mY(n,t,e,i,s,r){var a;DO(n,s,i,r),Es(t,s,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?Jf(e,s,i,r):Es(e,s,i,r)}function mM(n,t,e,i,s,r){var a;const o=.1*i,l=.65*i,h=.05*i,d=.1*i,c=.1*i;si(n.startSymbol,s,o,r),n.lines.forEach(u=>u.setAttribute("clipRange",0)),n.lines.forEach((u,g)=>{const p=l/n.lines.length;u.animate().wait(s+o+g*p).to({clipRange:1},p,r)}),si(t,s+o+l,h,r),si(n.endSymbol,s+o+l+h,d,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?(si(e.getTextShape(),s+o+l+h+d,c,r),si(e.getBgRect(),s+o+l+d,c,r)):si(e,s+o+l+d,c,r)}function FO(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="clipIn"?uM(n,t,l,h,d):o==="fadeIn"&&gM(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="clipIn"?uM(n,t,l,h,d):o==="fadeIn"&&gM(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;pY(n,t,o,l,h)}}function vY(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="fadeIn"&&pM(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&pM(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;_Y(n,t,o,l,h)}}function yY(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="fadeIn"&&_M(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&_M(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;fY(n,t,o,l,h)}}function bY(n,t,e,i){const[s,r]=n,{enter:a,update:o,exit:l}=e;if(i==="enter"){const{type:h,duration:d,delay:c,easing:u}=a;h==="fadeIn"?fM(s,r,t,d,c,u):h==="callIn"&&mM(s,r,t,d,c,u)}else if(i==="update"){const{type:h,duration:d,delay:c,easing:u}=o;h==="fadeIn"?fM(s,r,t,d,c,u):h==="callIn"&&mM(s,r,t,d,c,u)}else if(i==="exit"){const{duration:h,delay:d,easing:c}=l;mY(s,r,t,h,d,c)}}const xY={type:"clipIn",duration:500,easing:"linear",delay:0},zO={type:"fadeIn",duration:500,easing:"linear",delay:0},SY={type:"callIn",duration:500,easing:"linear",delay:0},Qf={type:"fadeOut",duration:500,easing:"linear",delay:0};class jO extends qf{constructor(){super(...arguments),this.name="markCommonLine",this.defaultUpdateAnimation=xY,this.defaultExitAnimation=Qf}getLine(){return this._line}getLabel(){return this._label}setLabelPos(){const{label:t={},limitRect:e}=this.attribute,{position:i,confine:s,autoRotate:r}=t,a=this.getPointAttrByPosition(i),o=i.toString().toLocaleLowerCase().includes("start")?this._line.getStartAngle()||0:this._line.getEndAngle()||0;if(this._label.setAttributes(Object.assign(Object.assign({},a.position),{angle:r?this.getRotateByAngle(a.angle):0,textStyle:Object.assign(Object.assign({},this.getTextStyle(i,o,r)),t.textStyle)})),e&&s){const{x:l,y:h,width:d,height:c}=e;mx(this._label,{x1:l,y1:h,x2:l+d,y2:h+c})}}initMarker(t){const{label:e,state:i}=this.attribute,s=this.createSegment();s.name="mark-common-line-line",this._line=s,t.add(s);const r=new kn(Object.assign(Object.assign({},e),{state:{panel:$({},Pt,i==null?void 0:i.labelBackground),text:$({},Pt,i==null?void 0:i.label)}}));r.name="mark-common-line-label",this._label=r,t.add(r),this.setLabelPos()}updateMarker(){const{label:t,state:e}=this.attribute;this.setLineAttributes(),this._label&&(this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},t),{state:{panel:$({},Pt,e==null?void 0:e.labelBackground),text:$({},Pt,e==null?void 0:e.label)}})),this.setLabelPos())}}const As=.001,AY={interactive:!0,startSymbol:{visible:!1,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},endSymbol:{visible:!0,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},label:{position:Ny.end,refX:0,refY:0,refAngle:0,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}},vM={postiveXAxis:{start:{textAlign:"left",textBaseline:"middle"},startTop:{textAlign:"left",textBaseline:"bottom"},startBottom:{textAlign:"left",textBaseline:"top"},insideStart:{textAlign:"right",textBaseline:"middle"},insideStartTop:{textAlign:"right",textBaseline:"bottom"},insideStartBottom:{textAlign:"right",textBaseline:"top"},middle:{textAlign:"center",textBaseline:"middle"},insideMiddleTop:{textAlign:"center",textBaseline:"bottom"},insideMiddleBottom:{textAlign:"center",textBaseline:"top"},end:{textAlign:"left",textBaseline:"middle"},endTop:{textAlign:"left",textBaseline:"bottom"},endBottom:{textAlign:"left",textBaseline:"top"},insideEnd:{textAlign:"right",textBaseline:"middle"},insideEndTop:{textAlign:"right",textBaseline:"bottom"},insideEndBottom:{textAlign:"right",textBaseline:"top"}},negativeXAxis:{start:{textAlign:"right",textBaseline:"middle"},startTop:{textAlign:"right",textBaseline:"bottom"},startBottom:{textAlign:"right",textBaseline:"top"},insideStart:{textAlign:"left",textBaseline:"middle"},insideStartTop:{textAlign:"left",textBaseline:"bottom"},insideStartBottom:{textAlign:"left",textBaseline:"top"},middle:{textAlign:"center",textBaseline:"middle"},insideMiddleTop:{textAlign:"center",textBaseline:"bottom"},insideMiddleBottom:{textAlign:"center",textBaseline:"top"},end:{textAlign:"right",textBaseline:"middle"},endTop:{textAlign:"right",textBaseline:"bottom"},endBottom:{textAlign:"right",textBaseline:"top"},insideEnd:{textAlign:"left",textBaseline:"middle"},insideEndTop:{textAlign:"left",textBaseline:"bottom"},insideEndBottom:{textAlign:"left",textBaseline:"top"}}},kY={interactive:!0,startSymbol:{visible:!1,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},endSymbol:{visible:!0,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},label:{position:pi.arcOuterMiddle,refX:0,refY:0,refAngle:0,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}},TY={interactive:!0,label:{position:Uy.right,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},areaStyle:{fill:"#b2bacf",visible:!0}},MY={interactive:!0,label:{position:pi.arcOuterMiddle,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},areaStyle:{fill:"#b2bacf",visible:!0}},HO={arcInnerStart:{textAlign:"center",textBaseline:"bottom"},arcInnerEnd:{textAlign:"center",textBaseline:"bottom"},arcInnerMiddle:{textAlign:"center",textBaseline:"bottom"},arcOuterStart:{textAlign:"center",textBaseline:"top"},arcOuterEnd:{textAlign:"center",textBaseline:"top"},arcOuterMiddle:{textAlign:"center",textBaseline:"top"},center:{textAlign:"center",textBaseline:"middle"}},wY={left:{textAlign:"right",textBaseline:"middle"},insideLeft:{textAlign:"left",textBaseline:"middle"},right:{textAlign:"left",textBaseline:"middle"},insideRight:{textAlign:"right",textBaseline:"middle"},top:{textAlign:"center",textBaseline:"bottom"},insideTop:{textAlign:"center",textBaseline:"top"},bottom:{textAlign:"center",textBaseline:"top"},insideBottom:{textAlign:"center",textBaseline:"bottom"},middle:{textAlign:"center",textBaseline:"middle"}},CY={interactive:!0,targetSymbol:{visible:!1,offset:0,style:{symbolType:"circle",size:20,fill:!1,stroke:"rgba(46, 47, 50)"}},itemLine:{visible:!0,decorativeLine:{visible:!1,length:30},startSymbol:{visible:!0,clip:!0,symbolType:"circle",size:20,style:{fill:!1,stroke:"rgba(46, 47, 50)"}},endSymbol:{visible:!1,clip:!0,symbolType:"triangle",size:12,style:{fill:!1,stroke:"rgba(46, 47, 50)"}},lineStyle:{stroke:"#000",lineWidth:1}},itemContent:{type:"text",position:"middle",refX:10,symbolStyle:{symbolType:"star",fill:"rgb(48, 115, 242)",fillOpacity:.8,size:20},textStyle:{dx:0,dy:0},imageStyle:{width:80,height:80},richTextStyle:{width:100,height:100}}},yM={postiveXAxis:{top:{textAlign:"left",textBaseline:"bottom"},bottom:{textAlign:"left",textBaseline:"top"},middle:{textAlign:"left",textBaseline:"middle"},insideTop:{textAlign:"right",textBaseline:"bottom"},insideBottom:{textAlign:"right",textBaseline:"top"},insideMiddle:{textAlign:"right",textBaseline:"middle"}},negativeXAxis:{top:{textAlign:"right",textBaseline:"bottom"},bottom:{textAlign:"right",textBaseline:"top"},middle:{textAlign:"right",textBaseline:"middle"},insideTop:{textAlign:"left",textBaseline:"bottom"},insideBottom:{textAlign:"left",textBaseline:"top"},insideMiddle:{textAlign:"left",textBaseline:"middle"}}};hY();function VO(){Qr._animate=FO}class Qr extends jO{markerAnimate(t){Qr._animate&&this._animationConfig&&Qr._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Qr.defaultAttributes,t)),this.name="markLine"}getPointAttrByPosition(t){var e;const{label:i={}}=this.attribute,{refX:s=0,refY:r=0}=i,a=this._line.getMainSegmentPoints(),o=(e=this._line.getEndAngle())!==null&&e!==void 0?e:0,l=o,h=s*Math.cos(l)+r*Math.cos(l-Math.PI/2),d=s*Math.sin(l)+r*Math.sin(l-Math.PI/2);return t.includes("start")||t.includes("Start")?{position:{x:a[0].x+h,y:a[0].y+d},angle:l}:t.includes("middle")||t.includes("Middle")?{position:{x:(a[0].x+a[a.length-1].x)/2+h,y:(a[0].y+a[a.length-1].y)/2+d},angle:l}:{position:{x:a[a.length-1].x+h,y:a[a.length-1].y+d},angle:l}}getRotateByAngle(t){var e;return(l_(t)?t:t-Math.PI)+((e=this.attribute.label.refAngle)!==null&&e!==void 0?e:0)}getTextStyle(t,e,i){return xs(Math.abs(e),Math.PI/2,As)||xs(Math.abs(e),3*Math.PI/2,As)?VR(i,e,t):l_(e)?vM.postiveXAxis[t]:vM.negativeXAxis[t]}createSegment(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;return new fr({points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,pickable:!1,state:{line:$({},Pt,o==null?void 0:o.line),startSymbol:$({},Pt,o==null?void 0:o.lineStartSymbol),endSymbol:$({},Pt,o==null?void 0:o.lineEndSymbol)}})}setLineAttributes(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;this._line&&this._line.setAttributes({points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:{line:$({},Pt,o==null?void 0:o.line),startSymbol:$({},Pt,o==null?void 0:o.lineStartSymbol),endSymbol:$({},Pt,o==null?void 0:o.lineEndSymbol)}})}isValidPoints(){const{points:t}=this.attribute;if(!t||t.length<2)return!1;let e=!0;return t.forEach(i=>{if(i.length)i.forEach(s=>{H(s.x)&&H(s.y)||(e=!1)});else if(!H(i.x)||!H(i.y))return void(e=!1)}),e}}Qr.defaultAttributes=AY;cY();function WO(){ta._animate=vY}class ta extends qf{markerAnimate(t){ta._animate&&this._animationConfig&&ta._animate(this._area,this._label,this._animationConfig,t)}getArea(){return this._area}getLabel(){return this._label}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},ta.defaultAttributes,t)),this.name="markArea",this.defaultUpdateAnimation=zO,this.defaultExitAnimation=Qf}getPointAttrByPosition(t){const{x1:e,x2:i,y1:s,y2:r}=this._area.AABBBounds;return t.includes("left")||t.includes("Left")?{x:e,y:(s+r)/2}:t.includes("right")||t.includes("Right")?{x:i,y:(s+r)/2}:t.includes("top")||t.includes("Top")?{x:(e+i)/2,y:s}:t.includes("bottom")||t.includes("Bottom")?{x:(e+i)/2,y:r}:{x:(e+i)/2,y:(s+r)/2}}setLabelPos(){var t;if(this._label&&this._area){const{label:e={}}=this.attribute,i=(t=e.position)!==null&&t!==void 0?t:"middle",s=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},s),{textStyle:Object.assign(Object.assign({},wY[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:r,y:a,width:o,height:l}=this.attribute.limitRect;mx(this._label,{x1:r,y1:a,x2:r+o,y2:a+l})}}}initMarker(t){const{points:e,label:i,areaStyle:s,state:r}=this.attribute,a=rt.polygon(Object.assign({points:e},s));a.states=$({},Pt,r==null?void 0:r.area),a.name="mark-area-polygon",this._area=a,t.add(a);const o=new kn(Object.assign(Object.assign({},i),{state:{panel:$({},Pt,r==null?void 0:r.labelBackground),text:$({},Pt,r==null?void 0:r.label)}}));o.name="mark-area-label",this._label=o,t.add(o),this.setLabelPos()}updateMarker(){const{points:t,label:e,areaStyle:i,state:s}=this.attribute;this._area&&(this._area.setAttributes(Object.assign({points:t},i)),this._area.states=$({},Pt,s==null?void 0:s.area)),this._label&&this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},e),{state:{panel:$({},Pt,s==null?void 0:s.labelBackground),text:$({},Pt,s==null?void 0:s.label)}})),this.setLabelPos()}isValidPoints(){const{points:t}=this.attribute;if(!t||t.length<3)return!1;let e=!0;return t.forEach(i=>{H(i.x)&&H(i.y)||(e=!1)}),e}}ta.defaultAttributes=TY;dY();function PY(){ro._animate=FO}class ro extends jO{markerAnimate(t){ro._animate&&this._animationConfig&&ro._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},ro.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcLine"}getPointAttrByPosition(t){const{center:e,radius:i,startAngle:s,endAngle:r,label:a}=this.attribute,{refX:o=0,refY:l=0}=a;let h;switch(t){case pi.arcInnerStart:h=s;case pi.arcOuterStart:h=s;break;case pi.arcInnerEnd:h=r;case pi.arcOuterEnd:h=r;break;case pi.center:case pi.arcInnerMiddle:case pi.arcOuterMiddle:default:h=(s+r)/2}return{position:{x:e.x+(i+l)*Math.cos(h)+o*Math.cos(h-Math.PI/2),y:e.y+(i+l)*Math.sin(h)+o*Math.sin(h-Math.PI/2)},angle:h}}getTextStyle(t){return HO[t]}getRotateByAngle(t){var e;return t-Math.PI/2+((e=this.attribute.label.refAngle)!==null&&e!==void 0?e:0)}createSegment(){const{center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;return new Dy({center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:$({},Pt,l==null?void 0:l.line),startSymbol:$({},Pt,l==null?void 0:l.lineStartSymbol),endSymbol:$({},Pt,l==null?void 0:l.lineEndSymbol)}})}setLineAttributes(){const{center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;this._line&&this._line.setAttributes({center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:$({},Pt,l==null?void 0:l.line),startSymbol:$({},Pt,l==null?void 0:l.lineStartSymbol),endSymbol:$({},Pt,l==null?void 0:l.lineEndSymbol)}})}isValidPoints(){return!0}}ro.defaultAttributes=kY;uY();function EY(){ao._animate=yY}class ao extends qf{markerAnimate(t){ao._animate&&this._animationConfig&&ao._animate(this._area,this._label,this._animationConfig,t)}getArea(){return this._area}getLabel(){return this._label}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},ao.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcArea",this.defaultUpdateAnimation=zO,this.defaultExitAnimation=Qf}getPointAttrByPosition(t){const{center:e,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a,label:o}=this.attribute,{refX:l=0,refY:h=0}=o;let d,c;switch(t){case pi.center:d=(i+s)/2,c=(r+a)/2;break;case pi.arcInnerStart:d=i,c=r;break;case pi.arcOuterStart:d=s,c=r;break;case pi.arcInnerEnd:d=i,c=a;break;case pi.arcOuterEnd:d=s,c=a;break;case pi.arcInnerMiddle:d=i,c=(r+a)/2;break;case pi.arcOuterMiddle:d=s,c=(r+a)/2;break;default:d=i,c=(r+a)/2}return{position:{x:e.x+(d+h)*Math.cos(c)+l*Math.cos(c-Math.PI/2),y:e.y+(d+h)*Math.sin(c)+l*Math.sin(c-Math.PI/2)},angle:c}}setLabelPos(){var t;if(this._label&&this._area){const{label:e={}}=this.attribute,{position:i="arcInnerMiddle",autoRotate:s}=e,r=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},r.position),{angle:s?r.angle-Math.PI/2+((t=e.refAngle)!==null&&t!==void 0?t:0):0,textStyle:Object.assign(Object.assign({},HO[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:a,y:o,width:l,height:h}=this.attribute.limitRect;mx(this._label,{x1:a,y1:o,x2:a+l,y2:o+h})}}}initMarker(t){const{center:e,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a,areaStyle:o,label:l,state:h}=this.attribute,d=rt.arc(Object.assign({x:e.x,y:e.y,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a},o));d.states=$({},Pt,h==null?void 0:h.area),d.name="polar-mark-area-area",this._area=d,t.add(d);const c=new kn(Object.assign(Object.assign({},l),{state:{panel:$({},Pt,h==null?void 0:h.labelBackground),text:$({},Pt,h==null?void 0:h.label)}}));c.name="mark-area-label",this._label=c,t.add(c),this.setLabelPos()}updateMarker(){const{center:t,innerRadius:e,outerRadius:i,startAngle:s,endAngle:r,areaStyle:a,label:o,state:l}=this.attribute;this._area&&(this._area.setAttributes(Object.assign({x:t.x,y:t.y,innerRadius:e,outerRadius:i,startAngle:s,endAngle:r},a)),this._area.states=$({},Pt,l==null?void 0:l.area)),this._label&&(this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},o),{state:{panel:$({},Pt,l==null?void 0:l.labelBackground),text:$({},Pt,l==null?void 0:l.label)}})),this.setLabelPos())}isValidPoints(){return!0}}ao.defaultAttributes=MY;gY();function kx(){ea._animate=bY}class ea extends qf{markerAnimate(t){ea._animate&&this._animationConfig&&ea._animate([this._line,this._decorativeLine],this._item,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},ea.defaultAttributes,t)),this.name="markPoint",this.defaultUpdateAnimation=SY,this.defaultExitAnimation=Qf,this._isArcLine=!1,this._isStraightLine=!1}setLabelPos(){}getTextAlignAttr(t,e,i,s,r){return xs(Math.abs(s),Math.PI/2,As)||xs(Math.abs(s),3*Math.PI/2,As)?VR(t,s,r):l_(s)?yM.postiveXAxis[r]:yM.negativeXAxis[r]}setItemAttributes(t,e,i,s,r){var a,o;if(!t)return;const{autoRotate:l=!0,refX:h=0,refY:d=0,refAngle:c=0,textStyle:u={},richTextStyle:g={},imageStyle:p={},position:_=$y.middle}=e,{state:f}=this.attribute,m=((a=this._line)===null||a===void 0?void 0:a.getEndAngle())||0,v=h*Math.cos(m)+d*Math.cos(m-Math.PI/2),y=h*Math.sin(m)+d*Math.sin(m-Math.PI/2);if(r==="text"){const x=s.x-i.x,S=s.y-i.y;t.setAttributes(Object.assign(Object.assign({},u),{textStyle:Object.assign(Object.assign({},this.getTextAlignAttr(l,x,S,m,(o=e.position)!==null&&o!==void 0?o:"end")),u.textStyle),state:{panel:$({},Pt,f==null?void 0:f.textBackground),text:$({},Pt,f==null?void 0:f.text)}}))}else r==="richText"?(t.setAttributes({dx:this.getItemDx(t,_,g)+(g.dx||0),dy:this.getItemDy(t,_,g)+(g.dy||0)}),t.states=$({},Pt,f==null?void 0:f.richText)):r==="image"&&(t.setAttributes({dx:this.getItemDx(t,_,p)+(p.dx||0),dy:this.getItemDy(t,_,p)+(p.dy||0)}),t.states=$({},Pt,f==null?void 0:f.image));const b=l_(m)?m:m-Math.PI;t.setAttributes({x:s.x+(v||0),y:s.y+(y||0),angle:l&&b+c})}getItemDx(t,e,i){var s,r;const a=(r=(s=t==null?void 0:t.AABBBounds)===null||s===void 0?void 0:s.width())!==null&&r!==void 0?r:(i==null?void 0:i.width)||0;return e.includes("inside")?-a:0}getItemDy(t,e,i){var s,r;const a=(r=(s=t==null?void 0:t.AABBBounds)===null||s===void 0?void 0:s.height())!==null&&r!==void 0?r:(i==null?void 0:i.height)||0;return e.includes("top")||e.includes("Top")?-a:e.includes("middle")||e.includes("Middle")?-a/2:0}initItem(t,e,i){const{state:s}=this.attribute,{type:r="text",symbolStyle:a,richTextStyle:o,imageStyle:l,renderCustomCallback:h}=t;let d;return r==="symbol"?(d=rt.symbol(Object.assign(Object.assign({},i),a)),d.states=$({},Pt,s==null?void 0:s.symbol)):r==="text"?d=new kn(Object.assign(Object.assign({},i),{state:{panel:$({},Pt,s==null?void 0:s.textBackground),text:$({},Pt,s==null?void 0:s.text)}})):r==="richText"?(d=rt.richtext(Object.assign(Object.assign({},i),o)),d.states=$({},Pt,s==null?void 0:s.richText)):r==="image"?(d=rt.image(Object.assign(Object.assign({},i),l)),d.states=$({},Pt,s==null?void 0:s.image)):r==="custom"&&h&&(d=h(),d.states=$({},Pt,s==null?void 0:s.customMark)),d.name=`mark-point-${r}`,this.setItemAttributes(d,t,e,i,r),d}getItemLineAttr(t,e,i){let s=[],r={x:0,y:0},a=0,o=0,l=0;const{type:h="type-s",arcRatio:d=.8}=t,c=i.x-e.x,u=i.y-e.y;if(this._isStraightLine=xs(c,0,As)||xs(u,0,As),this._isArcLine){const{x:g,y:p}=e,{x:_,y:f}=i,m=(g+_)/2,v=(p+f)/2,y=p===f?0:-(g-_)/(p-f),b=m+d*(f>p?-1:1)*m,x=(S=>y*(S-m)+v)(b);o=f0(p-x,g-b),l=f0(f-x,_-b),r={x:b,y:x},d>0?l{const s=i.target;s.hasState("disable")||s.addState("hover")},this._onUnHover=i=>{i.target.removeState("hover")},this._onClick=i=>{const s=i.target;if(s.name==="preHandler"){if(this._current===1)return;this._current-=1,this._current===1?s.addState("disable"):s.removeState("disable"),this._dispatchEvent("toPrev",{current:this._current,total:this._total,direction:"pre",event:i})}if(s.name==="nextHandler"){if(this._current===this._total)return;this._current+=1,this._current===this._total?s.addState("disable"):s.removeState("disable"),this._dispatchEvent("toNext",{current:this._current,total:this._total,direction:"next",event:i})}this._current>1&&this.preHandler.removeState("disable"),this._current{const s=i.target;if(s&&s.name&&s.name.startsWith(Si.item)){const r=s.delegate;if(this._lastActiveItem){if(this._lastActiveItem.id===r.id)return;this._unHover(this._lastActiveItem,i)}this._hover(r,i)}else this._lastActiveItem&&(this._unHover(this._lastActiveItem,i),this._lastActiveItem=null)},this._onUnHover=i=>{this._lastActiveItem&&(this._unHover(this._lastActiveItem,i),this._lastActiveItem=null)},this._onClick=i=>{var s,r,a,o;const l=i.target;if(l&&l.name&&l.name.startsWith(Si.item)){const h=l.delegate,{selectMode:d="multiple"}=this.attribute;if(l.name===Si.focus||d==="focus"){const c=h.hasState(xt.focus);h.toggleState(xt.focus),c?(s=this._itemsContainer)===null||s===void 0||s.getChildren().forEach(u=>{this._removeLegendItemState(u,[xt.unSelected,xt.unSelectedHover,xt.focus],i),this._setLegendItemState(u,xt.selected,i)}):(this._setLegendItemState(h,xt.selected,i),this._removeLegendItemState(h,[xt.unSelected,xt.unSelectedHover],i),(r=this._itemsContainer)===null||r===void 0||r.getChildren().forEach(u=>{h!==u&&(this._removeLegendItemState(u,[xt.selected,xt.selectedHover,xt.focus],i),this._setLegendItemState(u,xt.unSelected,i))}))}else{(a=this._itemsContainer)===null||a===void 0||a.getChildren().forEach(p=>{p.removeState(xt.focus)});const{allowAllCanceled:c=!0}=this.attribute,u=h.hasState(xt.selected),g=this._getSelectedLegends();if(d==="multiple"){if(c===!1&&u&&g.length===1)return void this._dispatchLegendEvent(Ii.legendItemClick,h,i);u?(this._removeLegendItemState(h,[xt.selected,xt.selectedHover],i),this._setLegendItemState(h,xt.unSelected,i)):(this._setLegendItemState(h,xt.selected,i),this._removeLegendItemState(h,[xt.unSelected,xt.unSelectedHover],i))}else this._setLegendItemState(h,xt.selected,i),this._removeLegendItemState(h,[xt.unSelected,xt.unSelectedHover],i),(o=this._itemsContainer)===null||o===void 0||o.getChildren().forEach(p=>{h!==p&&(this._removeLegendItemState(p,[xt.selected,xt.selectedHover],i),this._setLegendItemState(p,xt.unSelected,i))})}this._dispatchLegendEvent(Ii.legendItemClick,h,i)}}}render(){super.render(),this._lastActiveItem=null}setSelected(t){var e;((e=this._itemsContainer)===null||e===void 0?void 0:e.getChildren()).forEach(i=>{const s=i.data;t.includes(s.label)?(this._setLegendItemState(i,xt.selected),this._removeLegendItemState(i,[xt.unSelected,xt.unSelectedHover])):(this._removeLegendItemState(i,[xt.selected,xt.selectedHover]),this._setLegendItemState(i,xt.unSelected))})}_renderItems(){const{item:t={},maxCol:e=1,maxRow:i=2,maxWidth:s,defaultSelected:r,lazyload:a,autoPage:o}=this.attribute,{spaceCol:l=Ag,spaceRow:h=kg}=t,d=this._itemsContainer,{items:c,isHorizontal:u,startIndex:g,isScrollbar:p}=this._itemContext,_=p?1:u?i:e,f=this._contentMaxHeight;let m,{doWrap:v,maxWidthInCol:y,startX:b,startY:x,pages:S}=this._itemContext,A=0;for(let k=g,T=c.length;kthis._itemContext.currentPage*_);k++){a&&(this._itemContext.startIndex=k+1),m=c[k],m.id||(m.id=m.label),m.index=k;let w=!0;U(r)&&(w=r.includes(m.label));const M=this._renderEachItem(m,w,k,c),R=M.attribute.width,O=M.attribute.height;this._itemHeight=Math.max(this._itemHeight,O),y=Math.max(R,y),this._itemMaxWidth=Math.max(R,this._itemMaxWidth),u?(C(s)&&(p&&o?(S=Math.ceil((b+R)/s),v=S>1):b+R>s&&(v=!0,b>0&&(S+=1,b=0,x+=O+h))),b===0&&x===0||M.setAttributes({x:b,y:x}),b+=l+R):(C(f)&&(p&&o?(S=Math.ceil((x+O)/f),v=S>1):f<=O?(S+=1,v=!0,x=0,k>0&&(b+=A+l)):fthis._itemContext.maxPages&&(f=this._renderPagerComponent()),f||(o.setAttribute("y",this._title?this._title.AABBBounds.height()+wt(this.attribute,"title.space",8):0),this._innerView.add(o))}_bindEvents(){if(this.attribute.disableTriggerEvent||!this._itemsContainer)return;const{hover:t=!0,select:e=!0}=this.attribute;if(t){let i="pointermove",s="pointerleave";yt(t)&&(t.trigger&&(i=t.trigger),t.triggerOff&&(s=t.triggerOff)),this._itemsContainer.addEventListener(i,this._onHover),this._itemsContainer.addEventListener(s,this._onUnHover)}if(e){let i="pointerdown";yt(e)&&e.trigger&&(i=e.trigger),this._itemsContainer.addEventListener(i,this._onClick)}}_autoEllipsis(t,e,i,s){var r,a;const{label:o,value:l}=this.attribute.item,h=s.AABBBounds,d=i.AABBBounds,c=h.width(),u=d.width();let g=!1;t==="labelFirst"?u>e?g=!0:s.setAttribute("maxLineWidth",e-u):t==="valueFirst"?c>e?g=!0:i.setAttribute("maxLineWidth",e-c):c+u>e&&(g=!0),g&&(s.setAttribute("maxLineWidth",Math.max(e*((r=o.widthRatio)!==null&&r!==void 0?r:.5),e-u)),i.setAttribute("maxLineWidth",Math.max(e*((a=l.widthRatio)!==null&&a!==void 0?a:.5),e-c)))}_renderEachItem(t,e,i,s){var r,a;const{id:o,label:l,value:h,shape:d}=t,{padding:c=0,focus:u,focusIconStyle:g,align:p,autoEllipsisStrategy:_}=this.attribute.item,{shape:f,label:m,value:v,background:y}=this.attribute.item,b=this._handleStyle(f,t,e,i,s),x=this._handleStyle(m,t,e,i,s),S=this._handleStyle(v,t,e,i,s),A=this._handleStyle(y,t,e,i,s),k=Yi(c);let T;y.visible===!1?(T=rt.group({x:0,y:0,cursor:(r=A.style)===null||r===void 0?void 0:r.cursor}),this._appendDataToShape(T,Si.item,t,T)):(T=rt.group(Object.assign({x:0,y:0},A.style)),this._appendDataToShape(T,Si.item,t,T,A.state)),T.id=`${o??l}-${i}`,T.addState(e?xt.selected:xt.unSelected);const w=rt.group({x:0,y:0,pickable:!1});T.add(w);let M,R=0,O=0,L=0;if(f&&f.visible!==!1){const nt=wt(b,"style.size",p_);O=U(nt)?nt[0]||0:nt,L=wt(f,"space",UO);const st=rt.symbol(Object.assign(Object.assign({x:0,y:0,symbolType:"circle",strokeBoundsBuffer:0},d),b.style));Object.keys(b.state||{}).forEach(et=>{const K=b.state[et].fill||b.state[et].stroke;d.fill&&P(b.state[et].fill)&&K&&(b.state[et].fill=K),d.stroke&&P(b.state[et].stroke)&&K&&(b.state[et].stroke=K)}),this._appendDataToShape(st,Si.itemShape,t,T,b.state),st.addState(e?xt.selected:xt.unSelected),w.add(st)}let E=0;if(u){const nt=wt(g,"size",p_);M=rt.symbol(Object.assign(Object.assign({x:0,y:-nt/2-1,strokeBoundsBuffer:0,boundsPadding:k},g),{visible:!0,pickMode:"imprecise"})),this._appendDataToShape(M,Si.focus,t,T),E=nt}const B=m.formatMethod?m.formatMethod(l,t,i):l,I=Object.assign(Object.assign({x:O/2+L,y:0,textAlign:"start",textBaseline:"middle",lineHeight:(a=x.style)===null||a===void 0?void 0:a.fontSize},x.style),{text:B,_originText:m.formatMethod?l:void 0}),F=yc(I);this._appendDataToShape(F,Si.itemLabel,t,T,x.state),F.addState(e?xt.selected:xt.unSelected),w.add(F);const z=wt(m,"space",$O);if(C(h)){const nt=wt(v,"space",u?RY:0),st=v.formatMethod?v.formatMethod(h,t,i):h,et=Object.assign(Object.assign({x:0,y:0,textAlign:"start",textBaseline:"middle",lineHeight:S.style.fontSize},S.style),{text:st,_originText:v.formatMethod?h:void 0}),K=yc(et);if(this._appendDataToShape(K,Si.itemValue,t,T,S.state),K.addState(e?xt.selected:xt.unSelected),this._itemWidthByUser){const ft=this._itemWidthByUser-k[1]-k[3]-O-L-z-E-nt;this._autoEllipsis(_,ft,F,K),v.alignRight?K.setAttributes({textAlign:"right",x:this._itemWidthByUser-O/2-k[1]-k[3]-E-nt}):K.setAttribute("x",z+(F.AABBBounds.empty()?0:F.AABBBounds.x2))}else K.setAttribute("x",z+(F.AABBBounds.empty()?0:F.AABBBounds.x2));R=nt+(K.AABBBounds.empty()?0:K.AABBBounds.x2),w.add(K)}else this._itemWidthByUser&&F.setAttribute("maxLineWidth",this._itemWidthByUser-k[1]-k[3]-O-L-E),R=z+(F.AABBBounds.empty()?0:F.AABBBounds.x2);M&&(M.setAttribute("x",R),w.add(M));const V=w.AABBBounds,W=V.width();if(p==="right"){const nt=V.x2,st=V.x1;w.forEachChildren((et,K)=>{et.type!=="symbol"&&et.attribute.textAlign!=="right"||et===M?et.setAttribute("x",st+nt-et.attribute.x-et.AABBBounds.width()):et.type!=="symbol"?et.setAttributes({x:st+nt-et.attribute.x,textAlign:"left"}):et.setAttribute("x",st+nt-et.attribute.x)})}const at=V.height(),ot=C(this.attribute.item.width)?this.attribute.item.width:W+k[1]+k[3],dt=this._itemHeightByUser||at+k[0]+k[2];return T.attribute.width=ot,T.attribute.height=dt,M&&M.setAttribute("visible",!1),w.translateTo(-V.x1+k[3],-V.y1+k[0]),T}_createPager(t){var e,i;const{disableTriggerEvent:s,maxRow:r}=this.attribute,a=o=>o<=99?99:o<=999?999:9999;return this._itemContext.isHorizontal?new Tc(Object.assign(Object.assign({layout:r===1?"horizontal":"vertical",total:a(this._itemContext.pages)},$({handler:{preShape:"triangleUp",nextShape:"triangleDown"}},t)),{defaultCurrent:(e=this.attribute.pager)===null||e===void 0?void 0:e.defaultCurrent,disableTriggerEvent:s})):new Tc(Object.assign({layout:"horizontal",total:a(this._itemContext.pages),disableTriggerEvent:s,defaultCurrent:(i=this.attribute.pager)===null||i===void 0?void 0:i.defaultCurrent},t))}_createScrollbar(t,e){const{disableTriggerEvent:i}=this.attribute;return this._itemContext.isHorizontal?new o_(Object.assign(Object.assign({direction:"horizontal",disableTriggerEvent:i,range:[0,.5],height:t.visible===!1?0:12},t),{width:e})):new o_(Object.assign(Object.assign({direction:"vertical",width:t.visible===!1?0:12,range:[0,.5]},t),{height:e,disableTriggerEvent:i}))}_updatePositionOfPager(t,e,i){const{pager:s}=this.attribute,{totalPage:r,isHorizontal:a}=this._itemContext,o=s&&s.position||"middle";if(this._pagerComponent.setTotal(r),a){let l;l=o==="start"?t:o==="end"?t+i-this._pagerComponent.AABBBounds.height()/2:t+i/2-this._pagerComponent.AABBBounds.height()/2,this._pagerComponent.setAttributes({x:e-this._pagerComponent.AABBBounds.width(),y:l})}else{let l;l=o==="start"?0:o==="end"?e-this._pagerComponent.AABBBounds.width():(e-this._pagerComponent.AABBBounds.width())/2,this._pagerComponent.setAttributes({x:l,y:i-this._pagerComponent.AABBBounds.height()})}}_computeScrollbarDelta(){const{isHorizontal:t,clipContainer:e}=this._itemContext,i=this._itemsContainer.AABBBounds,s=e.AABBBounds;let r,a;return t?(a=s.width(),r=a/i.width()):(a=s.height(),r=a/i.height()),r}_updatePositionOfScrollbar(t,e,i){const{isHorizontal:s,currentPage:r,totalPage:a}=this._itemContext,o=(r-1)/a;this._pagerComponent.setScrollRange([o,o+this._computeScrollbarDelta()]),s?this._pagerComponent.setAttributes({x:0,y:i+e}):this._pagerComponent.setAttributes({x:t,y:i})}_bindEventsOfPager(t,e){const i=this.attribute.pager||{},{animation:s=!0,animationDuration:r=450,animationEasing:a="quadIn"}=i,o=this._itemContext.isScrollbar?d=>{const{value:c}=d.detail;let u;return u=c[0]===0?1:c[1]===1?this._itemContext.totalPage:c[0]*this._itemContext.totalPage+1,u}:d=>d.detail.current,l=d=>{const c=this._pagerComponent,u=c.getScrollRange(),{direction:g}=c.attribute,{width:p,height:_}=c.getSliderRenderBounds(),f=g==="vertical"?d.deltaY/_:d.deltaX/p;c.setScrollRange([u[0]+f,u[1]+f],!0),this.updateScrollMask()},h=d=>{const c=o(d);if(c!==this._itemContext.currentPage){if(this._itemContext.currentPage=c,this._itemContext&&this._itemContext.startIndexc.nativeEvent.preventDefault()),this.addEventListener("wheel",yr(l,50)))):(this._pagerComponent.addEventListener("toPrev",h),this._pagerComponent.addEventListener("toNext",h))}_renderPager(){const t=this._title?this._title.AABBBounds.height()+wt(this.attribute,"title.space",8):0,{maxWidth:e,maxCol:i=1,maxRow:s=2,item:r={},pager:a={}}=this.attribute,{spaceCol:o=Ag,spaceRow:l=kg}=r,h=this._itemsContainer,{space:d=Yy,defaultCurrent:c=1}=a,u=bM(a,["space","defaultCurrent"]),{isHorizontal:g}=this._itemContext,p=this._contentMaxHeight;let _,f=0,m=0,v=0,y=0,b=0,x=0,S=1;if(g){if(m=(s-1)*l+this._itemHeight*s,f=e,_=this._createPager(u),this._pagerComponent=_,this._innerView.add(_),v=e-_.AABBBounds.width()-d,v<=0)return this._innerView.removeChild(_),!1;h.getChildren().forEach((T,w)=>{const{width:M,height:R}=T.attribute;v0&&T.setAttributes({x:b,y:x}),b+=o+M}),this._itemContext.startX=b,this._itemContext.startY=x,this._itemContext.pages=S;const k=Math.ceil(S/s);this._itemContext.totalPage=k,this._updatePositionOfPager(t,f,m)}else{if(f=this._itemMaxWidth*i+(i-1)*o,m=p,v=f,_=this._createPager(u),this._pagerComponent=_,this._innerView.add(_),y=p-_.AABBBounds.height()-d-t,y<=0)return this._innerView.removeChild(_),!1;h.getChildren().forEach((T,w)=>{const{height:M}=T.attribute;y0&&T.setAttributes({x:b,y:x}),x+=l+M});const k=Math.ceil(S/i);this._itemContext.totalPage=k,this._updatePositionOfPager(t,f,m)}c>1&&(g?h.setAttribute("y",-(c-1)*(m+l)):h.setAttribute("x",-(c-1)*(f+o)));const A=rt.group({x:0,y:t,width:g?v:f,height:g?m:y,clip:!0,pickable:!1});return A.add(h),this._innerView.add(A),this._itemContext.clipContainer=A,this._bindEventsOfPager(g?m+l:f+o,g?"y":"x"),!0}_renderScrollbar(){var t;const e=this._title?this._title.AABBBounds.height()+wt(this.attribute,"title.space",8):0,{maxWidth:i,item:s={},pager:r={}}=this.attribute,{spaceCol:a=Ag,spaceRow:o=kg}=s,l=this._itemsContainer,{space:h=Yy,defaultCurrent:d=1}=r,c=bM(r,["space","defaultCurrent"]),{isHorizontal:u}=this._itemContext,g=this._contentMaxHeight;let p,_=0,f=0,m=0,v=1;if(u)_=i,f=this._itemHeight,p=this._createScrollbar(c,_),this._pagerComponent=p,this._innerView.add(p);else{if(f=g-e,_=this._itemMaxWidth,p=this._createScrollbar(c,f),this._pagerComponent=p,this._innerView.add(p),f<=0)return this._innerView.removeChild(p),!1;const b=l.getChildren(),x=b.map(S=>S.attribute.height);if(x.length===1||x.every(S=>S===x[0])){const S=x[0],A=f,k=Math.floor(A/(o+S));f=k*(o+S),v=Math.ceil(b.length/k)}else b.forEach((S,A)=>{const{height:k}=S.attribute,T=v,w=m;v=Math.floor((m+k)/f)+1,m+=o+k,T!==v&&A===l.getChildren().length-1&&m-f>=1/3*k&&(f=w+k,v-=1)});this._itemContext.totalPage=v,this._itemContext.pages=v}if(d>1)if(u){const b=this._itemsContainer.AABBBounds.width()-_;l.setAttribute("x",-Math.min((d-1)*(_+a),b))}else{const b=this._itemsContainer.AABBBounds.height()-f;l.setAttribute("y",-Math.min((d-1)*(f+o),b))}const y=rt.group({x:0,y:e,width:_,height:f,clip:!0,pickable:!1});return y.add(l),this._innerView.add(y),this._itemContext.clipContainer=y,this._updatePositionOfScrollbar(_,f,e),!((t=r.scrollMask)===null||t===void 0)&&t.visible&&this.renderScrollMask(y),this._bindEventsOfPager(u?_:f,u?"x":"y"),!0}renderScrollMask(t){const{scrollMask:e={}}=this.attribute.pager,{visible:i=!0,gradientLength:s=16,gradientStops:r}=e;if(!i||!r)return;const a=t.AABBBounds.width(),o=t.AABBBounds.height(),l=this._itemContext.isHorizontal?a:o,h=r.map(u=>({offset:s*u.offset/l,color:u.color})),d=r.map(u=>({offset:(l-s*u.offset)/l,color:u.color})),c=rt.rect({x:0,y:0,width:a,height:o});this._scrollMask=c,this._scrollMaskContext={startStops:h,endStops:d},this.updateScrollMask(),t.add(c)}updateScrollMask(){if(!this._scrollMask||!this._pagerComponent||!this._itemContext.isScrollbar)return;const[t,e]=this._pagerComponent.getScrollRange(),i=[];Ge(be(e,0,1),1)||i.push(...this._scrollMaskContext.endStops),Ge(be(t,0,1),0)||i.push(...this._scrollMaskContext.startStops),i.length&&(this._itemContext.isHorizontal?this._scrollMask.setAttributes({fill:{gradient:"linear",x0:0,y0:0,x1:1,y1:0,stops:i}}):this._scrollMask.setAttributes({fill:{gradient:"linear",x0:0,y0:0,x1:0,y1:1,stops:i}}))}_renderPagerComponent(){return this._itemContext.isScrollbar?this._renderScrollbar():this._renderPager(),!0}_hover(t,e){this._lastActiveItem=t,t.hasState(xt.selected)?this._setLegendItemState(t,xt.selectedHover,e):this._setLegendItemState(t,xt.unSelectedHover,e);const i=t.getChildren()[0].find(s=>s.name===Si.focus,!1);i&&i.setAttribute("visible",!0),this._dispatchLegendEvent(Ii.legendItemHover,t,e)}_unHover(t,e){let i=!1;(t.hasState(xt.unSelectedHover)||t.hasState(xt.selectedHover))&&(i=!0),t.removeState(xt.unSelectedHover),t.removeState(xt.selectedHover),t.getChildren()[0].getChildren().forEach(r=>{i||!r.hasState(xt.unSelectedHover)&&!r.hasState(xt.selectedHover)||(i=!0),r.removeState(xt.unSelectedHover),r.removeState(xt.selectedHover)});const s=t.getChildren()[0].find(r=>r.name===Si.focus,!1);s&&s.setAttribute("visible",!1),i&&this._dispatchLegendEvent(Ii.legendItemAttributeUpdate,t,e),this._dispatchLegendEvent(Ii.legendItemUnHover,t,e)}_setLegendItemState(t,e,i){let s=!1;t.hasState(e)||(s=!0),t.addState(e,!0),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Si.focus&&(s||r.hasState(e)||(s=!0),r.addState(e,!0))}),s&&this._dispatchLegendEvent(Ii.legendItemAttributeUpdate,t,i)}_removeLegendItemState(t,e,i){let s=!1;e.forEach(r=>{!s&&t.hasState(r)&&(s=!0),t.removeState(r)}),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Si.focus&&e.forEach(a=>{!s&&r.hasState(a)&&(s=!0),r.removeState(a)})}),s&&this._dispatchLegendEvent(Ii.legendItemAttributeUpdate,t,i)}_getSelectedLegends(){var t;const e=[];return(t=this._itemsContainer)===null||t===void 0||t.getChildren().forEach(i=>{i.hasState(xt.selected)&&e.push(i.data)}),e}_appendDataToShape(t,e,i,s,r={}){t.name=e,t.data=i,t.delegate=s,t.states=$({},IY,r)}_dispatchLegendEvent(t,e,i){const s=this._getSelectedLegends();s.sort((a,o)=>a.index-o.index);const r=s.map(a=>a.label);this._dispatchEvent(t,{item:e,data:e.data,selected:e.hasState(xt.selected),currentSelectedItems:s,currentSelected:r,event:i})}_handleStyle(t,e,i,s,r){const a={};return t.style&&(N(t.style)?a.style=t.style(e,i,s,r):a.style=t.style),t.state&&(a.state={},Object.keys(t.state).forEach(o=>{t.state[o]&&(N(t.state[o])?a.state[o]=t.state[o](e,i,s,r):a.state[o]=t.state[o])})),a}release(){super.release(),this.removeAllEventListeners()}};YO.defaultAttributes={layout:"horizontal",title:{align:"start",space:fu,textStyle:{fontSize:12,fontWeight:"bold",fill:"#2C3542"}},item:{spaceCol:Ag,spaceRow:kg,shape:{space:UO,style:{size:p_,cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{opacity:.5}}},label:{space:$O,style:{fontSize:12,fill:"#2C3542",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},value:{alignRight:!1,style:{fontSize:12,fill:"#ccc",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},background:{style:{cursor:"pointer"}},focus:!1,focusIconStyle:{size:p_,symbolType:"M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8.75044 2.55077L8.75 3.75H7.25L7.25006 2.5507C4.81247 2.88304 2.88304 4.81247 2.5507 7.25006L3.75 7.25V8.75L2.55077 8.75044C2.8833 11.1878 4.81264 13.117 7.25006 13.4493L7.25 12.25H8.75L8.75044 13.4492C11.1876 13.1167 13.1167 11.1876 13.4492 8.75044L12.25 8.75V7.25L13.4493 7.25006C13.117 4.81264 11.1878 2.8833 8.75044 2.55077ZM8 5.5C9.38071 5.5 10.5 6.61929 10.5 8C10.5 9.38071 9.38071 10.5 8 10.5C6.61929 10.5 5.5 9.38071 5.5 8C5.5 6.61929 6.61929 5.5 8 5.5ZM8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7Z",fill:"#333",cursor:"pointer"}},autoPage:!0,pager:{space:Yy,handler:{style:{size:10},space:4}},hover:!0,select:!0,selectMode:"multiple",allowAllCanceled:!0};var xi;(function(n){n.innerView="innerView",n.railContainer="sliderRailContainer",n.rail="sliderRail",n.startText="sliderStartText",n.endText="sliderEndText",n.startHandler="sliderStartHandler",n.startHandlerText="startHandlerText",n.endHandler="sliderEndHandler",n.endHandlerText="sliderEndHandlerText",n.track="sliderTrack",n.trackContainer="sliderTrackContainer"})(xi||(xi={}));function A0(n){return U(n)?n:[n,n]}function og(n){return n?"ew-resize":"ns-resize"}tm();class Th extends li{get track(){return this._track}get currentValue(){return this._currentValue}get startHandler(){return this._startHandler}get endHandler(){return this._endHandler}get tooltipShape(){return this._tooltipShape}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},Th.defaultAttributes,t)),this.name="slider",this._isHorizontal=!0,this._startHandler=null,this._endHandler=null,this._startHandlerText=null,this._endHandlerText=null,this._currentHandler=null,this._currentValue={},this._onTooltipShow=i=>{this._isChanging||this._tooltipState&&this._tooltipState.isActive||(this._tooltipState?this._tooltipState.isActive=!0:this._tooltipState={isActive:!0},this._onTooltipUpdate(i),this._dispatchTooltipEvent("sliderTooltipShow"))},this._onTooltipUpdate=i=>{if(this._isChanging||!this._tooltipState||!this._tooltipState.isActive)return;const s=this._isHorizontal?this._rail.globalAABBBounds.width():this._rail.globalAABBBounds.height(),r=be(this._isHorizontal?(i.viewX-this._rail.globalAABBBounds.x1)/s:(i.viewY-this._rail.globalAABBBounds.y1)/s,0,1);r!==this._tooltipState.pos&&(this._tooltipState.pos=r,this._tooltipState.value=this.calculateValueByPos(r*s),this._updateTooltip(),this._dispatchTooltipEvent("sliderTooltipUpdate"))},this._onTooltipHide=()=>{const{tooltip:i}=this.attribute;i&&i.alwaysShow||(this._tooltipState=null,this._tooltipShape&&this._tooltipShape.setAttribute("visible",!1),this._tooltipText&&this._tooltipText.setAttribute("visible",!1),this._dispatchTooltipEvent("sliderTooltipHide"))},this._onHandlerPointerdown=i=>{i.stopPropagation(),this._isChanging=!0;const{x:s,y:r}=this.stage.eventPointTransform(i);this._currentHandler=i.target,this._prePos=this._isHorizontal?s:r,Et.env==="browser"?(Et.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Et.addEventListener("pointerup",this._onHandlerPointerUp)):(this.stage.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.stage.addEventListener("pointerup",this._onHandlerPointerUp),this.stage.addEventListener("pointerupoutside",this._onHandlerPointerUp))},this._onHandlerPointerMove=i=>{var s,r;i.stopPropagation(),this._isChanging=!0;const{railWidth:a,railHeight:o,min:l,max:h}=this.attribute;if(h===l)return;const{x:d,y:c}=this.stage.eventPointTransform(i);let u,g,p,_=0;this._isHorizontal?(u=d,_=u-this._prePos,g=(r=this._currentHandler)===null||r===void 0?void 0:r.attribute.x,p=a):(u=c,_=u-this._prePos,g=(s=this._currentHandler)===null||s===void 0?void 0:s.attribute.y,p=o);const f=be(g+_,0,p),m=this.calculateValueByPos(f);this._currentHandler.type==="text"?this._updateHandlerText(this._currentHandler,f,m):this._updateHandler(this._currentHandler,f,m),this._updateTrack(),this._prePos=u,this._dispatchChangeEvent()},this._onHandlerPointerUp=i=>{i.preventDefault(),this._isChanging=!1,this._currentHandler=null,Et.env==="browser"?(Et.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Et.removeEventListener("pointerup",this._onHandlerPointerUp)):(this.stage.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.stage.removeEventListener("pointerup",this._onHandlerPointerUp),this.stage.removeEventListener("pointerupoutside",this._onHandlerPointerUp))},this._onTrackPointerdown=i=>{i.stopPropagation(),this._isChanging=!0;const{x:s,y:r}=this.stage.eventPointTransform(i);this._prePos=this._isHorizontal?s:r,Et.env==="browser"?(Et.addEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Et.addEventListener("pointerup",this._onTrackPointerUp)):(this.stage.addEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),this.stage.addEventListener("pointerup",this._onTrackPointerUp),this.stage.addEventListener("pointerupoutside",this._onTrackPointerUp))},this._onTrackPointerMove=i=>{i.stopPropagation(),this._isChanging=!0;const{railWidth:s,railHeight:r,min:a,max:o,inverse:l}=this.attribute;if(o===a)return;const{startHandler:h,endHandler:d}=this._getHandlers();let c,u,g;const{x:p,y:_}=this.stage.eventPointTransform(i);this._isHorizontal?(c=p,u=this._track.attribute.width,g=s):(c=_,u=this._track.attribute.height,g=r);const f=c-this._prePos;if(h){const m=this._isHorizontal?h.attribute.x:h.attribute.y,v=l?be(m+f,u,g):be(m+f,0,g-u),y=this.calculateValueByPos(v);this._updateHandler(h,v,y)}if(d){const m=this._isHorizontal?d.attribute.x:d.attribute.y,v=l?be(m+f,0,g-u):be(m+f,u,g),y=this.calculateValueByPos(v),b=h==null?void 0:h.attribute;this._updateHandler(d,v,y),this._track.setAttributes(this._isHorizontal?{x:Math.min(b.x,d.attribute.x),width:Math.abs(b.x-d.attribute.x)}:{y:Math.min(b.y,d.attribute.y),height:Math.abs(b.y-d.attribute.y)})}this._prePos=c,this._dispatchChangeEvent()},this._onTrackPointerUp=i=>{i.preventDefault(),this._isChanging=!1,Et.env==="browser"?(Et.removeEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Et.removeEventListener("pointerup",this._onTrackPointerUp)):(this.stage.removeEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),this.stage.removeEventListener("pointerup",this._onTrackPointerUp),this.stage.removeEventListener("pointerupoutside",this._onTrackPointerUp))},this._onRailPointerDown=i=>{i.stopPropagation(),this._isChanging=!0;const{railWidth:s,railHeight:r,min:a,max:o}=this.attribute;if(o===a)return;const l=this._startHandler,h=this._endHandler;let d,c,u;this._isHorizontal?(d=i.viewX-this._rail.globalAABBBounds.x1,c=l==null?void 0:l.attribute.x,u=h==null?void 0:h.attribute.x):(d=i.viewY-this._rail.globalAABBBounds.y1,c=l==null?void 0:l.attribute.y,u=h==null?void 0:h.attribute.y);const g=this.calculateValueByPos(d);if(C(u)){const p=Math.abs(d-c)>Math.abs(d-u)?h:l;this._updateHandler(p,d,g)}else this._updateHandler(l,d,g);this._updateTrack(),this._dispatchChangeEvent()}}calculatePosByValue(t,e){const{layout:i,railWidth:s,railHeight:r,min:a,max:o,inverse:l}=this.attribute;let h=0;return h=a===o?e==="start"?0:e==="end"?1:0:(t-a)/(o-a),(l?1-h:h)*(i==="vertical"?r:s)}calculateValueByPos(t){const{layout:e,railWidth:i,railHeight:s,min:r,max:a,inverse:o}=this.attribute,l=e==="vertical"?s:i;return r+(a-r)*(o?1-t/l:t/l)}setValue(t){const{min:e,max:i}=this.attribute;if(i===e)return;const[s,r]=j(t),{startHandler:a,endHandler:o}=this._getHandlers();a&&this._updateHandler(a,this.calculatePosByValue(s),s),o&&this._updateHandler(o,this.calculatePosByValue(r),r),this._updateTrack()}render(){var t,e;this.removeAllChild(!0);const{layout:i="horizontal",railWidth:s,railHeight:r,startText:a,endText:o,min:l,max:h,showHandler:d=!0,showTooltip:c}=this.attribute;let{value:u}=this.attribute;P(u)&&(u=[l,h]),this._currentValue={startValue:A0(u)[0],endValue:A0(u)[1]};const g=i==="horizontal";this._isHorizontal=g;const p=rt.group({x:0,y:0});p.name=xi.innerView,this.add(p),this._innerView=p;let _,f=0;if(a&&a.visible){_=rt.text(Object.assign({x:g?0:s/2,y:g?r/2:0,textAlign:g?"start":"center",textBaseline:g?"middle":"top",text:a.text,lineHeight:(t=a.style)===null||t===void 0?void 0:t.fontSize},a.style)),_.name=xi.startText,p.add(_);const b=C(a.space)?a.space:0;f+=(g?_.AABBBounds.width():_.AABBBounds.height())+b}const m=rt.group({x:g?f:0,y:g?0:f});p.add(m);const v=rt.group({x:0,y:0});let y;if(v.name=xi.railContainer,this._railContainer=v,m.add(v),this._mainContainer=m,this._renderRail(v),f+=g?s:r,o&&o.visible){const b=C(o.space)?o.space:0;y=rt.text(Object.assign({x:g?f+b:s/2,y:g?r/2:f+b,textAlign:g?"start":"center",textBaseline:g?"middle":"top",text:o.text,lineHeight:(e=o.style)===null||e===void 0?void 0:e.fontSize},o.style)),y.name=xi.endText,p.add(y)}this._renderTrack(v),d&&(this._renderHandlers(m),this._bindEvents()),c&&(this._renderTooltip(),this._bindTooltipEvents())}_renderRail(t){const{railWidth:e,railHeight:i,railStyle:s,slidable:r}=this.attribute;let a="default";r!==!1&&(a="pointer");const o=rt.rect(Object.assign({x:0,y:0,width:e,height:i,cursor:a},s));return o.name=xi.rail,t.add(o),this._rail=o,o}_renderHandlers(t){const{range:e,min:i,max:s,handlerSize:r=14,handlerStyle:a,handlerText:o,railHeight:l,railWidth:h,slidable:d}=this.attribute;let{value:c}=this.attribute;P(c)&&(c=[i,s]);const u=o&&o.visible,g=this._isHorizontal,[p,_]=A0(c),f=this.calculatePosByValue(p,e?"start":"end"),m=this._renderHandler(Object.assign({x:g?f:h/2,y:g?l/2:f,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":og(g)},a));if(m.name=xi.startHandler,this._startHandler=m,t.add(m),this._currentValue.startPos=f,u){const v=this._renderHandlerText(p,e?"start":"end");v.name=xi.startHandlerText,t.add(v),this._startHandlerText=v}if(e){const v=this.calculatePosByValue(_,"end"),y=this._renderHandler(Object.assign({x:g?v:h/2,y:g?l/2:v,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":og(g)},a));if(y.name=xi.endHandler,this._endHandler=y,t.add(y),this._currentValue.endPos=v,u){const b=this._renderHandlerText(_,"end");b.name=xi.endHandlerText,t.add(b),this._endHandlerText=b}}}_renderTrack(t){const{range:e,min:i,max:s,railHeight:r,railWidth:a,trackStyle:o,railStyle:l,slidable:h,value:d}=this.attribute;let c,u;if(P(d))e?(c=i,u=s):c=u=i;else if(e){const b=Ga(d,i,s);c=b[0],u=b[1]}else c=i,u=be(d,i,s);const g=this._isHorizontal;e||(c=i);const p=rt.group({x:0,y:0,width:a,height:r,cornerRadius:l==null?void 0:l.cornerRadius,clip:!0,pickable:!1});p.name=xi.trackContainer;const _=yt(e)&&e.draggableTrack===!0;let f;f=h===!1?"default":e===!1||_===!1?"pointer":og(g);const m=this.calculatePosByValue(c,"start"),v=this.calculatePosByValue(u,e?"end":"start"),y=rt.rect(Object.assign({x:g?Math.min(m,v):0,y:g?0:Math.min(m,v),width:g?Math.abs(v-m):a,height:g?r:Math.abs(v-m),cursor:f},o));y.name=xi.track,this._track=y,p.add(y),t.add(p)}_renderHandler(t){return rt.symbol(t)}_renderHandlerText(t,e){var i,s,r;const{align:a,handlerSize:o=14,handlerText:l={},railHeight:h,railWidth:d,slidable:c}=this.attribute,u=this._isHorizontal,g=this.calculatePosByValue(t,e),p=(i=l.space)!==null&&i!==void 0?i:4,_={text:l.formatter?l.formatter(t):t.toFixed((s=l.precision)!==null&&s!==void 0?s:0),lineHeight:(r=l.style)===null||r===void 0?void 0:r.lineHeight,cursor:c===!1?"default":og(u)};return u?a==="top"?(_.textBaseline="bottom",_.textAlign="center",_.x=g,_.y=(h-o)/2-p):(_.textBaseline="top",_.textAlign="center",_.x=g,_.y=(h+o)/2+p):a==="left"?(_.textBaseline="middle",_.textAlign="end",_.x=(d-o)/2-p,_.y=g):(_.textBaseline="middle",_.textAlign="start",_.x=(d+o)/2+p,_.y=g),rt.text(Object.assign(Object.assign({},_),l.style))}_renderTooltip(){var t;const{tooltip:e,railHeight:i,railWidth:s,align:r}=this.attribute;e&&e.alwaysShow?this._tooltipState={value:this._currentValue.startValue,pos:this._currentValue.startPos}:this._tooltipState=null;const a=this._isHorizontal?0:s/2,o=this._isHorizontal?i/2:0;if(e&&e.shape){const u=rt.symbol(Object.assign({pickable:!1,visible:!!this._tooltipState,x:a,y:o,symbolType:"circle"},e.shapeStyle));this._tooltipShape=u,this._mainContainer.add(u)}const l=e&&e.text||{},h=(t=l.space)!==null&&t!==void 0?t:6,d={pickable:!1,visible:!!this._tooltipState,text:""};this._isHorizontal?(d.x=a,d.y=r==="top"?o-i/2-h:o+i/2+h,d.textAlign="center",d.textBaseline=r==="top"?"bottom":"top"):(d.y=o,d.x=r==="left"?a-s/2-h:o+s/2+h,d.textAlign=r==="left"?"end":"start",d.textBaseline="middle");const c=rt.text(Object.assign(Object.assign({},d),l.style));this._mainContainer.add(c),this._tooltipText=c,this._tooltipState&&this._updateTooltip()}_updateTooltip(){var t,e;if(!this._tooltipShape&&!this._tooltipText||!this._tooltipState)return;const{railWidth:i,railHeight:s}=this.attribute,r=this._isHorizontal?i:s,a=this._tooltipState.pos*r,o=this._isHorizontal?"x":"y";this._tooltipShape&&this._tooltipShape.setAttributes({visible:!0,[o]:a});const{align:l}=this.attribute;if(this._tooltipText){const h=this.attribute.tooltip&&this.attribute.tooltip.text||{};this._tooltipText.setAttributes({visible:!0,[o]:a,text:h.formatter?h.formatter(this._tooltipState.value):this._isHorizontal||l!=="left"?`≈ ${this._tooltipState.value.toFixed((e=h.precision)!==null&&e!==void 0?e:0)}`:`${this._tooltipState.value.toFixed((t=h.precision)!==null&&t!==void 0?t:0)} ≈`})}}_bindEvents(){if(this.attribute.disableTriggerEvent)return;const{slidable:t,range:e}=this.attribute;t&&(this._startHandler&&this._startHandler.addEventListener("pointerdown",this._onHandlerPointerdown),this._startHandlerText&&this._startHandlerText.addEventListener("pointerdown",this._onHandlerPointerdown),this._endHandler&&this._endHandler.addEventListener("pointerdown",this._onHandlerPointerdown),this._endHandlerText&&this._endHandlerText.addEventListener("pointerdown",this._onHandlerPointerdown),yt(e)&&e.draggableTrack&&this._track.addEventListener("pointerdown",this._onTrackPointerdown),this._railContainer.addEventListener("pointerdown",this._onRailPointerDown))}_bindTooltipEvents(){this.attribute.disableTriggerEvent||(this._mainContainer.addEventListener("pointerenter",this._onTooltipShow),this._mainContainer.addEventListener("pointermove",this._onTooltipUpdate),this._mainContainer.addEventListener("pointerleave",this._onTooltipHide))}_updateTrack(){const{inverse:t,railWidth:e,railHeight:i}=this.attribute,s=this._startHandler,r=this._endHandler;if(this._isHorizontal){const a=s==null?void 0:s.attribute.x;if(r){const o=r==null?void 0:r.attribute.x;this._track.setAttributes({x:Math.min(a,o),width:Math.abs(a-o)})}else t?this._track.setAttributes({x:a,width:e-a}):this._track.setAttributes({width:a})}else{const a=s==null?void 0:s.attribute.y;if(r){const o=r==null?void 0:r.attribute.y;this._track.setAttributes({y:Math.min(a,o),height:Math.abs(a-o)})}else t?this._track.setAttributes({y:a,height:i-a}):this._track.setAttributes({height:a})}}_updateHandler(t,e,i){var s;const r=this._isHorizontal;t.setAttribute(r?"x":"y",e);const a=t.name===xi.startHandler?this._startHandlerText:this._endHandlerText;if(a){const{handlerText:o={}}=this.attribute;a.setAttributes({text:o.formatter?o.formatter(i):i.toFixed((s=o.precision)!==null&&s!==void 0?s:0),[r?"x":"y"]:e})}t.name===xi.startHandler?(this._currentValue.startValue=i,this._currentValue.startPos=e):(this._currentValue.endValue=i,this._currentValue.endPos=e)}_updateHandlerText(t,e,i){var s;const r=this._isHorizontal,{handlerText:a={}}=this.attribute;t.setAttributes({[r?"x":"y"]:e,text:a.formatter?a.formatter(i):i.toFixed((s=a.precision)!==null&&s!==void 0?s:0)});const o=t.name===xi.startHandlerText?this._startHandler:this._endHandler;o&&o.setAttributes({[r?"x":"y"]:e}),t.name===xi.startHandlerText?(this._currentValue.startValue=i,this._currentValue.startPos=e):(this._currentValue.endValue=i,this._currentValue.endPos=e)}_dispatchChangeEvent(){const t=!!this.attribute.range,e=this._currentValue;this._dispatchEvent("change",{value:t?[Math.min(e.endValue,e.startValue),Math.max(e.endValue,e.startValue)]:e.startValue,position:t?[Math.min(e.endPos,e.startPos),Math.max(e.endPos,e.startPos)]:e.startPos})}_dispatchTooltipEvent(t){this._dispatchEvent("sliderTooltip",{type:t,position:this._tooltipState&&this._tooltipState.pos,value:this._tooltipState&&this._tooltipState.value})}_getHandlers(){const{inverse:t}=this.attribute;let e=this._startHandler,i=this._endHandler;return i?(this._isHorizontal?(!t&&i.attribute.x<(e==null?void 0:e.attribute.x)||t&&i.attribute.x>(e==null?void 0:e.attribute.x))&&([e,i]=[i,e]):(!t&&i.attribute.y<(e==null?void 0:e.attribute.y)||t&&i.attribute.y>(e==null?void 0:e.attribute.y))&&([e,i]=[i,e]),{startHandler:e,endHandler:i}):{startHandler:e,endHandler:i}}}Th.defaultAttributes={slidable:!0,layout:"horizontal",align:"bottom",height:8,showHandler:!0,handlerSize:14,handlerStyle:{symbolType:"circle",fill:"#fff",stroke:"#91caff",lineWidth:2},tooltip:{shapeStyle:{symbolType:"circle",fill:"#fff",stroke:"#91caff",lineWidth:2},text:{style:{fill:"#2C3542",fontSize:12}}},railStyle:{fill:"rgba(0,0,0,.04)"},trackStyle:{fill:"#91caff"},showValue:!0,valueStyle:{fill:"#2C3542",fontSize:12},startText:{style:{fill:"#2C3542",fontSize:12}},endText:{style:{fill:"#2C3542",fontSize:12}},handlerText:{visible:!0,space:4,precision:0,style:{fill:"#2C3542",fontSize:12}}};BY();class em extends Tx{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},em.defaultAttributes,t)),this.name="colorLegend",this._onSliderToolipChange=i=>{const s=this._slider.tooltipShape;if(s&&i.detail&&!P(i.detail.value)){const r=this._colorScale.scale(i.detail.value);s.setAttribute("fill",r)}this.dispatchEvent(i)},this._onSliderChange=i=>{this._updateColor(),this.dispatchEvent(i)}}setSelected(t){this._slider&&(this._slider.setValue(t),this._updateColor())}_renderContent(){const{colors:t,slidable:e,layout:i,align:s,min:r,max:a,value:o,railWidth:l,railHeight:h,showHandler:d=!0,handlerSize:c,handlerStyle:u,railStyle:g,trackStyle:p,startText:_,endText:f,handlerText:m,showTooltip:v,tooltip:y,inverse:b,disableTriggerEvent:x}=this.attribute,S=[],A=(a-r)/(t.length-1);for(let T=0;T1){const f=this._color.stops,m=Math.min(u,g),v=Math.max(u,g),y=m/_,b=v/_,x=b-y,S=f.filter(R=>R.offset>y&&R.offset{M.push({offset:(R.offset-y)/x,color:R.color})}),M.push({offset:1,color:w}),l.setAttribute("fill",Object.assign(Object.assign({},this._color),{stops:M}))}}}em.defaultAttributes={layout:"horizontal",title:{align:"start",space:fu,textStyle:{fontSize:12,fontWeight:"bold",fill:"rgba(46, 47, 50, 1)"}},handlerSize:10,handlerStyle:{fill:null,lineWidth:4,stroke:"#fff",outerBorder:{distance:2,lineWidth:1,stroke:"#ccc"}},tooltip:{shapeStyle:{lineWidth:4,stroke:"#fff"}}};function DY(n="bottom"){let t=0;return n==="top"?` + M${t},-6L${t-3.5},-2.5 + v5 + h7 + v-5 + Z +`:n==="left"?(t=1,` + M${t-6},0L${t-6+2.5},-3.5 + h5 + v7 + h-5 + Z +`):n==="right"?(t=-1,` + M${t+6},0L${t+6-2.5},-3.5 + h-5 + v7 + h5 + Z + `):` + M${t},6L${t-3.5},2.5 + v-5 + h7 + v5 + Z +`}LY();class im extends Tx{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},im.defaultAttributes,t)),this.name="sizeLegend",this._onSliderChange=i=>{this.dispatchEvent(i)},this._onSliderToolipChange=i=>{this.dispatchEvent(i)}}setSelected(t){this._slider&&this._slider.setValue(t)}_renderContent(){const{slidable:t,layout:e,align:i,min:s,max:r,value:a,railWidth:o,railHeight:l,showHandler:h=!0,handlerSize:d,handlerStyle:c,railStyle:u,trackStyle:g,startText:p,endText:_,handlerText:f,showTooltip:m,tooltip:v,sizeBackground:y,disableTriggerEvent:b,inverse:x}=this.attribute,S=rt.group({x:0,y:0});this._innerView.add(S);const A=new Th({x:0,y:0,zIndex:1,range:{draggableTrack:!0},slidable:t,layout:e,align:i,min:s,max:r,value:a,railWidth:o,railHeight:l,showHandler:h,handlerSize:d,handlerStyle:Object.assign({symbolType:DY(i)},c),railStyle:u,trackStyle:g,startText:p,endText:_,handlerText:f,showTooltip:m,tooltip:v,disableTriggerEvent:b,inverse:x});S.add(A);let k,T=0;e==="horizontal"?i==="top"?(k=`M0,0L${o},0L${x?0:o},12Z`,T=l):(k=`M0,12L${o},12L${x?0:o},0Z`,A.setAttribute("y",12)):i==="left"?k=`M${o},0L${o+12},${x?0:l}L${o},${l}Z`:(k=`M0,${x?0:l}L12,${l}L12,0Z`,A.setAttribute("x",12));const w=rt.path(Object.assign(Object.assign({x:0,y:T,path:k},y),{zIndex:0}));S.add(w);const M=this._title?this._title.AABBBounds.height()+wt(this.attribute,"title.space",fu):0;S.translate(0-S.AABBBounds.x1,M-S.AABBBounds.y1),this._slider=A}_bindEvents(){this.attribute.disableTriggerEvent||this._slider&&(this._slider.addEventListener("change",this._onSliderChange),this._slider.addEventListener("sliderTooltip",this._onSliderToolipChange))}}im.defaultAttributes={layout:"horizontal",title:{align:"start",space:fu,textStyle:{fontSize:12,fontWeight:"bold",fill:"rgba(46, 47, 50, 1)"}},handlerSize:10,handlerStyle:{lineWidth:1,stroke:"#ccc",fill:"#fff"},sizeBackground:{fill:"rgba(20,20,20,0.1)"}};function FY(){ze(),Hs(),Ea()}FY();let KO=class qO extends li{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},qO.defaultAttributes,t)),this.name="title"}render(){var t,e,i,s,r,a,o,l,h,d,c,u,g,p,_,f,m,v;const{textType:y,text:b,subtextType:x,textStyle:S={},subtext:A,subtextStyle:k={},width:T,height:w,minWidth:M,maxWidth:R,minHeight:O,maxHeight:L,align:E,verticalAlign:B,padding:I=0}=this.attribute,F=Yi(I),z=this.createOrUpdateChild("title-container",{x:F[3],y:F[0],zIndex:1},"group");if(this.attribute.visible!==!1&&S.visible!==!1){const{width:st,height:et,maxHeight:K,maxWidth:ft,x:Bt=0,y:ct=0,ellipsis:bt=!0,wordBreak:Dt="break-word",maxWidth:he,lineClamp:Ct}=S;if(y==="rich"||C(S.character)){const Tt=Object.assign({x:Bt,y:ct,width:(t=st??T)!==null&&t!==void 0?t:0,height:(e=et??w)!==null&&e!==void 0?e:0,ellipsis:bt==null||bt,wordBreak:Dt??"break-word",maxHeight:K??L,maxWidth:ft??he,textConfig:(i=S.character)!==null&&i!==void 0?i:b},S);this._mainTitle=z.createOrUpdateChild("mainTitle",Tt,"richtext")}else if(y==="html"){const Tt=Object.assign({html:Object.assign(Object.assign({dom:b},a_),S),x:Bt,y:ct,width:(s=st??T)!==null&&s!==void 0?s:0,height:(r=et??w)!==null&&r!==void 0?r:0,ellipsis:bt,wordBreak:Dt,maxHeight:K??L,maxWidth:ft??he,textConfig:[]},S);this._mainTitle=z.createOrUpdateChild("mainTitle",Tt,"richtext")}else C(b)&&(this._mainTitle=z.createOrUpdateChild("mainTitle",Object.assign(Object.assign({text:U(b)?b:[b],whiteSpace:"normal"},S),{maxLineWidth:(o=(a=S.maxLineWidth)!==null&&a!==void 0?a:st)!==null&&o!==void 0?o:T,heightLimit:et??L,lineClamp:Ct,ellipsis:bt,x:Bt,y:ct}),"text"))}const V=this._mainTitle?this._mainTitle.AABBBounds.height():0,W=this._mainTitle?this._mainTitle.AABBBounds.width():0;if(this.attribute.visible!==!1&&k.visible!==!1){const{width:st,height:et,maxWidth:K,maxHeight:ft,x:Bt=0,y:ct=0,ellipsis:bt=!0,wordBreak:Dt="break-word",lineClamp:he}=k,Ct=Math.max(Number.MIN_VALUE,L-V);if(x==="rich"||C(k.character)){const Tt=Object.assign({x:Bt,y:ct,width:(l=st??T)!==null&&l!==void 0?l:0,height:(h=et??w)!==null&&h!==void 0?h:0,ellipsis:bt,wordBreak:Dt,maxHeight:ft??Ct,maxWidth:K??R,textConfig:(d=k.character)!==null&&d!==void 0?d:A},k);this._subTitle=z.createOrUpdateChild("subTitle",Tt,"richtext")}else if(x==="html"){const Tt=Object.assign({html:Object.assign(Object.assign({dom:A},a_),k),x:Bt,y:ct,width:(c=st??T)!==null&&c!==void 0?c:0,height:(u=et??w)!==null&&u!==void 0?u:0,ellipsis:bt,wordBreak:Dt,maxHeight:ft??Ct,maxWidth:K??R,textConfig:[]},k);this._subTitle=z.createOrUpdateChild("subTitle",Tt,"richtext")}else C(A)&&(this._subTitle=z.createOrUpdateChild("subTitle",Object.assign(Object.assign({text:U(A)?A:[A],whiteSpace:"normal"},k),{maxLineWidth:(g=k.maxLineWidth)!==null&&g!==void 0?g:T,heightLimit:(p=k.heightLimit)!==null&&p!==void 0?p:Ct,lineClamp:he,ellipsis:bt,x:0,y:V}),"text"))}const at=this._subTitle?this._subTitle.AABBBounds.height():0,ot=this._subTitle?this._subTitle.AABBBounds.width():0;let dt=Math.max(W,ot),nt=V+((_=k.height)!==null&&_!==void 0?_:at);if(C(T)&&(dt=T),C(w)&&(nt=w),C(M)&&dtR&&(dt=R),C(O)&&ntL&&(nt=L),z.attribute.width=dt,z.attribute.height=nt,z.attribute.boundsPadding=F,this._mainTitle){if(C(E)||C(S.align)){const st=S.align?S.align:E,et=(f=S.width)!==null&&f!==void 0?f:W;st==="left"?(this._mainTitle.setAttribute("x",0),this._mainTitle.setAttribute("textAlign","left")):st==="center"?(this._mainTitle.setAttribute("x",et/2),this._mainTitle.setAttribute("textAlign","center")):st==="right"&&(this._mainTitle.setAttribute("x",et),this._mainTitle.setAttribute("textAlign","right"))}if(C(B)||C(S.verticalAlign)){const st=S.verticalAlign?S.verticalAlign:B,et=S.height?S.height:nt;st==="top"?(this._mainTitle.setAttribute("y",0),this._mainTitle.setAttribute("textBaseline","top")):st==="middle"?(this._mainTitle.setAttribute("y",et/2),this._mainTitle.setAttribute("textBaseline","middle")):st==="bottom"&&(this._mainTitle.setAttribute("y",et),this._mainTitle.setAttribute("textBaseline","bottom"))}}if(this._subTitle){if(C(E)||C(k.align)){const st=k.align?k.align:E,et=(m=k.width)!==null&&m!==void 0?m:ot;st==="left"?(this._subTitle.setAttribute("x",0),this._subTitle.setAttribute("textAlign","left")):st==="center"?(this._subTitle.setAttribute("x",et/2),this._subTitle.setAttribute("textAlign","center")):st==="right"&&(this._subTitle.setAttribute("x",et),this._subTitle.setAttribute("textAlign","right"))}if(C(B)||C(S.verticalAlign)){const st=k.verticalAlign?k.verticalAlign:B,et=V,K=(v=k.height)!==null&&v!==void 0?v:0;st==="top"?(this._subTitle.setAttribute("y",et),this._subTitle.setAttribute("textBaseline","top")):st==="middle"?(this._subTitle.setAttribute("y",et+K/2),this._subTitle.setAttribute("textBaseline","middle")):st==="bottom"&&(this._subTitle.setAttribute("y",et+K),this._subTitle.setAttribute("textBaseline","bottom"))}}}};KO.defaultAttributes={textStyle:{ellipsis:"...",fill:"#333",fontSize:20,fontWeight:"bold",textAlign:"left",textBaseline:"top"},subtextStyle:{ellipsis:"...",fill:"#6F6F6F",fontSize:16,fontWeight:"normal",textAlign:"left",textBaseline:"top"}};const zY={title:{style:{text:"",fontSize:20,fill:"black",fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}},content:{style:{text:"",fontSize:16,fill:"black",fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}}};function jY(){ze(),Hs(),Ea()}jY();let HY=class extends li{constructor(){super(...arguments),this.name="indicator"}_renderText(t,e,i,s,r,a){if(e.visible!==!1){const o=$({},wt(zY,r),e.style,{visible:e.visible});o.lineHeight=C(o.lineHeight)?o.lineHeight:o.fontSize,e.formatMethod&&(o._originText=o.text,o.text=e.formatMethod(o.text,o));const l=yc(o);return l.name=a,t.appendChild(l),e.autoFit&&H(i)&&this._setLocalAutoFit(i,l,e),e.autoLimit&&H(s)&&l.setAttribute("maxLineWidth",i),l}}render(){var t,e;if(this.removeAllChild(!0),this.attribute.visible!==!0)return;const{title:i={},content:s,size:r,limitRatio:a=1/0}=this.attribute,o=Math.min(r.width,r.height)*a,l=this.createOrUpdateChild("indicator-container",{x:0,y:0,zIndex:1,pickable:(t=this.attribute.pickable)===null||t===void 0||t},"group");if(C(i)&&(this._title=this._renderText(l,i,o,a,"title.style","indicator-title")),C(s)){const d=j(s),c=[];d.forEach((u,g)=>{u.visible!==!1&&c.push(this._renderText(l,u,o,a,"content.style","indicator-content-"+g))}),this._content=c}this._setGlobalAutoFit(o),this._setYPosition();const h=(e=l==null?void 0:l.AABBBounds.height())!==null&&e!==void 0?e:0;l.setAttribute("y",r.height/2-h/2),l.setAttribute("x",r.width/2)}_setLocalAutoFit(t,e,i){var s,r,a,o,l,h,d,c,u;if(((s=i.fitStrategy)!==null&&s!==void 0?s:"default")!=="default")return;const g=zf((a=(r=i.style)===null||r===void 0?void 0:r.text)!==null&&a!==void 0?a:"",(o=i.style)!==null&&o!==void 0?o:{},(h=(l=this.stage)===null||l===void 0?void 0:l.getTheme())===null||h===void 0?void 0:h.text).width;if(g>0){const p=t*((d=i.fitPercent)!==null&&d!==void 0?d:.5)/g,_=Math.floor(((u=(c=i.style)===null||c===void 0?void 0:c.fontSize)!==null&&u!==void 0?u:20)*p);e.setAttribute("fontSize",_),e.setAttribute("lineHeight",C(i.style.lineHeight)?i.style.lineHeight:_)}}_setGlobalAutoFit(t){var e,i,s,r,a,o,l;const h=t/2,d=[];let c=0;const u=(e=this.attribute.title)!==null&&e!==void 0?e:{};u.autoFit&&u.fitStrategy==="inscribed"?(this._title.setAttribute("fontSize",12),d.push({text:this._title,spec:(i=this.attribute.title)!==null&&i!==void 0?i:{}})):c+=(o=(a=(r=(s=this._title)===null||s===void 0?void 0:s.AABBBounds)===null||r===void 0?void 0:r.height)===null||a===void 0?void 0:a.call(r))!==null&&o!==void 0?o:0;const g=(l=u.space)!==null&&l!==void 0?l:0;if(c+=g,j(this.attribute.content).filter(x=>x.visible!==!1).forEach((x,S)=>{var A,k,T,w;const M=this._content[S];x.autoFit&&x.fitStrategy==="inscribed"?(M.setAttribute("fontSize",12),d.push({text:M,spec:x})):c+=(T=(k=(A=M==null?void 0:M.AABBBounds)===null||A===void 0?void 0:A.height)===null||k===void 0?void 0:k.call(A))!==null&&T!==void 0?T:0;const R=(w=x.space)!==null&&w!==void 0?w:0;c+=R}),d.length<=0)return;const p=12/d.reduce((x,S)=>Math.max(x,S.text.AABBBounds.width()),0)*d.length,_=c/2,f=p**2+1,m=2*_*p,v=_**2-h**2,y=2*(p*((-m+Math.sqrt(m**2-4*f*v))/(2*f))+_),b=(y-c)/d.length;H(y)&&d.forEach(x=>{var S;const A=(S=x.spec.style)===null||S===void 0?void 0:S.lineHeight;x.text.setAttribute("fontSize",b),x.text.setAttribute("lineHeight",C(A)?A:b)})}_setYPosition(){var t,e,i,s,r,a;let o=0;const l=(s=(i=(e=(t=this._title)===null||t===void 0?void 0:t.AABBBounds)===null||e===void 0?void 0:e.height)===null||i===void 0?void 0:i.call(e))!==null&&s!==void 0?s:0,h=(a=(r=this.attribute.title)===null||r===void 0?void 0:r.space)!==null&&a!==void 0?a:0;j(this.attribute.content).filter(d=>d.visible!==!1).forEach((d,c)=>{var u;const g=this._content[c];g.setAttribute("y",l+h+o);const p=(u=d.space)!==null&&u!==void 0?u:0;o+=g.AABBBounds.height()+p})}};const VY="M 414.5 0.0238 c 228.9128 0 414.4762 185.5634 414.4762 414.4762 s -185.5634 414.4762 -414.4762 414.4762 S 0.0238 643.4128 0.0238 414.5 S 185.5872 0.0238 414.5 0.0238 z m 0 73.1429 C 225.9865 73.1667 73.1667 225.9865 73.1667 414.5 s 152.8198 341.3333 341.3333 341.3333 s 341.3333 -152.8198 341.3333 -341.3333 S 603.0135 73.1667 414.5 73.1667 z m -73.1429 161.4994 a 48.7619 48.7619 0 0 1 25.9901 7.5093 l 201.7524 127.1223 a 48.7619 48.7619 0 0 1 0.3657 82.2613 l -201.7524 129.6335 A 48.7619 48.7619 0 0 1 292.5952 540.1838 v -256.7314 a 48.7619 48.7619 0 0 1 48.7619 -48.7619 z m 24.381 92.9402 v 167.9116 l 131.9497 -84.7726 L 365.7381 327.6063 z",WY="M 414.5 0.0238 c 228.9128 0 414.4762 185.5634 414.4762 414.4762 s -185.5634 414.4762 -414.4762 414.4762 S 0.0238 643.4128 0.0238 414.5 S 185.5872 0.0238 414.5 0.0238 z m 0 73.1429 C 225.9865 73.1667 73.1667 225.9865 73.1667 414.5 s 152.8198 341.3333 341.3333 341.3333 s 341.3333 -152.8198 341.3333 -341.3333 S 603.0135 73.1667 414.5 73.1667 z m -48.7619 195.0476 v 316.9524 h -73.1429 V 268.2143 h 73.1429 z m 158.4762 0 v 316.9524 h -73.1429 V 268.2143 h 73.1429 z",GY="M 521.29 734.276 L 230.929 448.019 L 521.29 161.762 c 37.685 -37.153 38.003 -97.625 0.707 -134.384 c -37.297 -36.758 -98.646 -36.435 -136.331 0.718 l -357.43 352.378 c -0.155 0.153 -0.297 0.314 -0.451 0.468 c -0.084 0.082 -0.172 0.157 -0.256 0.239 c -18.357 18.092 -27.581 41.929 -27.743 65.902 c -0.004 0.311 -0.017 0.623 -0.018 0.934 c 0.001 0.316 0.014 0.632 0.018 0.948 c 0.165 23.97 9.389 47.803 27.743 65.892 c 0.083 0.082 0.171 0.157 0.255 0.239 c 0.154 0.154 0.296 0.315 0.452 0.468 l 357.43 352.378 c 37.685 37.153 99.034 37.476 136.331 0.718 c 37.297 -36.758 36.979 -97.231 -0.707 -134.384 z",NY="M 734.276 28.71 L 448.019 319.071 L 161.762 28.71 c -37.153 -37.685 -97.625 -38.003 -134.384 -0.707 c -36.758 37.297 -36.435 98.646 0.718 136.331 l 352.378 357.43 c 0.153 0.155 0.314 0.297 0.468 0.451 c 0.082 0.084 0.157 0.172 0.239 0.256 c 18.092 18.357 41.929 27.581 65.902 27.743 c 0.311 0.004 0.623 0.017 0.934 0.018 c 0.316 -0.001 0.632 -0.014 0.948 -0.018 c 23.97 -0.165 47.803 -9.389 65.892 -27.743 c 0.082 -0.083 0.157 -0.171 0.239 -0.255 c 0.154 -0.154 0.315 -0.296 0.468 -0.452 l 352.378 -357.43 c 37.153 -37.685 37.476 -99.034 0.718 -136.331 c -36.758 -37.297 -97.231 -36.979 -134.384 0.707 z",UY="m 161.724 521.29 l 286.257 -290.361 l 286.257 290.361 c 37.153 37.685 97.625 38.003 134.384 0.707 c 36.758 -37.297 36.435 -98.646 -0.718 -136.331 l -352.378 -357.43 c -0.153 -0.155 -0.314 -0.297 -0.468 -0.451 c -0.082 -0.084 -0.157 -0.172 -0.239 -0.256 c -18.092 -18.357 -41.929 -27.581 -65.902 -27.743 c -0.311 -0.004 -0.623 -0.017 -0.934 -0.018 c -0.316 0.001 -0.632 0.014 -0.948 0.018 c -23.97 0.165 -47.803 9.389 -65.892 27.743 c -0.082 0.083 -0.157 0.171 -0.239 0.255 c -0.154 0.154 -0.315 0.296 -0.468 0.452 l -352.378 357.43 c -37.153 37.685 -37.476 99.034 -0.718 136.331 c 36.758 37.297 97.231 36.979 134.384 -0.707 z",$Y="M 30 163 L 320.361 449.257 L 30 735.514 c -37.685 37.153 -38.003 97.625 -0.707 134.384 c 37.297 36.758 98.646 36.435 136.331 -0.718 l 357.43 -352.378 c 0.155 -0.153 0.297 -0.314 0.451 -0.468 c 0.084 -0.082 0.172 -0.157 0.256 -0.239 c 18.357 -18.092 27.581 -41.929 27.743 -65.902 c 0.004 -0.311 0.017 -0.623 0.018 -0.934 c -0.001 -0.316 -0.014 -0.632 -0.018 -0.948 c -0.165 -23.97 -9.389 -47.803 -27.743 -65.892 c -0.083 -0.082 -0.171 -0.157 -0.255 -0.239 c -0.154 -0.154 -0.296 -0.315 -0.452 -0.468 l -357.43 -352.378 c -37.685 -37.153 -99.034 -37.476 -136.331 -0.718 c -37.297 36.758 -36.979 97.231 0.707 134.384 z";class k0 extends cc{constructor(t){super(t)}}var nn;(function(n){n.OnPlay="onPlay",n.OnPause="onPause",n.OnForward="onForward",n.OnBackward="onBackward"})(nn||(nn={}));var yl;(function(n){n.Start="start",n.Pause="pause",n.Forward="forward",n.Backward="backward"})(yl||(yl={}));class rr extends li{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},rr.defaultAttributes,t)),this._isPaused=!0,this.updateAttributes=()=>{this._startAttr={style:Object.assign(Object.assign(Object.assign({symbolType:VY},rr.defaultControllerAttr),{visible:this.attribute.start.visible}),this.attribute.start.style)},this._pauseAttr={style:Object.assign(Object.assign(Object.assign({symbolType:WY},rr.defaultControllerAttr),{visible:this.attribute.pause.visible}),this.attribute.pause.style)},this._forwardAttr={style:Object.assign(Object.assign(Object.assign({},rr.defaultControllerAttr),{visible:this.attribute.forward.visible}),this.attribute.forward.style)},this._backwardAttr={style:Object.assign(Object.assign(Object.assign({},rr.defaultControllerAttr),{visible:this.attribute.backward.visible}),this.attribute.backward.style)},this.updateLayout()},this.updateLayout=()=>{var i,s,r,a;this._layout=this.attribute.layout,this._layout==="horizontal"?(this._backwardAttr.style.symbolType=(i=this._backwardAttr.style.symbolType)!==null&&i!==void 0?i:GY,this._forwardAttr.style.symbolType=(s=this._forwardAttr.style.symbolType)!==null&&s!==void 0?s:$Y):this._layout==="vertical"&&(this._backwardAttr.style.symbolType=(r=this._backwardAttr.style.symbolType)!==null&&r!==void 0?r:UY,this._forwardAttr.style.symbolType=(a=this._forwardAttr.style.symbolType)!==null&&a!==void 0?a:NY)},this._initPlay=()=>{P(this._playController)&&(this._playController=new k0(Object.assign({},this._startAttr.style)),this.add(this._playController))},this._initBackward=()=>{P(this._backwardController)&&(this._backwardController=new k0(Object.assign({},this._backwardAttr.style)),this.add(this._backwardController))},this._initForward=()=>{P(this._forwardController)&&(this._forwardController=new k0(Object.assign({},this._forwardAttr.style)),this.add(this._forwardController))},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._playController.addEventListener("pointerdown",i=>{i.stopPropagation(),this._isPaused===!0?this.play():this.pause()}),this._backwardController.addEventListener("pointerdown",i=>{i.stopPropagation(),this.backward()}),this._forwardController.addEventListener("pointerdown",i=>{i.stopPropagation(),this.forward()}))},this.renderPlay=()=>{this._isPaused?this._playController.setAttributes(Object.assign({symbolType:this._playController.getComputedAttribute("symbolType")},this._startAttr.style)):this._playController.setAttributes(Object.assign({symbolType:this._playController.getComputedAttribute("symbolType")},this._pauseAttr.style))},this.renderBackward=()=>{this._backwardController.setAttributes(this._backwardAttr.style)},this.renderForward=()=>{this._forwardController.setAttributes(this._forwardAttr.style)},this.play=()=>{this._dispatchEvent(nn.OnPlay)},this.pause=()=>{this._dispatchEvent(nn.OnPause)},this.forward=()=>{this._dispatchEvent(nn.OnForward)},this.backward=()=>{this._dispatchEvent(nn.OnBackward)},this.togglePlay=()=>{this._playController.setAttributes(this._startAttr.style),this._isPaused=!0},this.togglePause=()=>{this._playController.setAttributes(this._pauseAttr.style),this._isPaused=!1},this.updateAttributes(),this._initPlay(),this._initBackward(),this._initForward(),this._initEvents()}render(){this.updateAttributes(),this.renderPlay(),this.renderBackward(),this.renderForward()}}rr.defaultControllerAttr={visible:!0,x:0,y:0,size:20,fill:"#91caff",pickMode:"imprecise",cursor:"pointer"},rr.defaultAttributes={[yl.Start]:{},[yl.Pause]:{},[yl.Backward]:{},[yl.Forward]:{}};const lg={visible:!0,style:{x:0,y:0,dx:0,dy:0,size:20},order:0,space:10},T0=[200,10];var Aa;(function(n){n.Default="default",n.Reverse="reverse"})(Aa||(Aa={}));var Le;(function(n){n.change="change",n.play="play",n.pause="pause",n.backward="backward",n.forward="forward",n.end="end",n.OnChange="change",n.OnPlay="play",n.OnPause="pause",n.OnBackward="backward",n.OnForward="forward",n.OnEnd="end"})(Le||(Le={}));const YY=({direction:n,maxIndex:t,dataIndex:e})=>n===Aa.Default&&e===t,XY=({direction:n,minIndex:t,dataIndex:e})=>n===Aa.Reverse&&e===t,KY=({direction:n,maxIndex:t,minIndex:e,dataIndex:i})=>YY({direction:n,maxIndex:t,dataIndex:i})||XY({direction:n,minIndex:e,dataIndex:i}),qY=({direction:n,minIndex:t,dataIndex:e})=>n===Aa.Default&&e===t,ZY=({direction:n,maxIndex:t,dataIndex:e})=>n===Aa.Reverse&&e===t,JY=({direction:n,maxIndex:t,minIndex:e,dataIndex:i})=>qY({direction:n,minIndex:e,dataIndex:i})||ZY({direction:n,maxIndex:t,dataIndex:i}),vs=n=>n==="top"||n==="bottom",QY=(n,t,e,i)=>n==="default"?Math.min(t+1,i):Math.max(t-1,e);class mu extends li{getMinIndex(){return this._minIndex}getMaxIndex(){return this._maxIndex}getDataIndex(){return this._dataIndex}constructor(t,e){super(e!=null&&e.skipDefault?t:$({},mu.defaultAttributes,t)),this._data=[],this._dataIndex=0,this._layoutInfo={},this._updateSliderAttrs=()=>{var i,s;let r;H(this._handlerStyle.size)?r=this._handlerStyle.size:this._handlerStyle.size&&this._handlerStyle.size.length&&(r=Ui(this._handlerStyle.size[0],this._handlerStyle.size[1]));const a={visible:this._sliderVisible,min:this._minIndex,max:this._maxIndex,value:this._dataIndex,railWidth:this._railStyle.width,railHeight:this._railStyle.height,railStyle:this._railStyle,trackStyle:this._trackStyle,handlerSize:H(r)?r:void 0,handlerStyle:this._handlerStyle,dy:this.attribute.slider.dy,dx:this.attribute.slider.dx,slidable:!0,range:!1,handlerText:{visible:!1},startText:{visible:!1},endText:{visible:!1},disableTriggerEvent:this.attribute.disableTriggerEvent};if(vs(this._orient)){const o=Math.max(0,this._layoutInfo.slider.size),l=(i=this._railStyle.height)!==null&&i!==void 0?i:T0[1];a.layout="horizontal",a.railHeight=l,a.railWidth=o,a.x=this._layoutInfo.slider.x,a.y=this._layoutInfo.slider.y}else{const o=Math.max(0,this._layoutInfo.slider.size),l=(s=this._railStyle.width)!==null&&s!==void 0?s:T0[1];a.layout="vertical",a.railWidth=l,a.railHeight=o,a.x=this._layoutInfo.slider.x,a.y=this._layoutInfo.slider.y}return a},this._initSlider=()=>{const i=this._updateSliderAttrs();this._slider=new Th(i),this._sliderVisible&&this.add(this._slider)},this._updateControllerAttrs=()=>{const i={start:this._start,pause:this._pause,forward:this._forward,backward:this._backward,disableTriggerEvent:this.attribute.disableTriggerEvent};return i.layout=vs(this._orient)?"horizontal":"vertical",i.start=Object.assign(Object.assign({},i.start),{style:Object.assign(Object.assign({},i.start.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.pause=Object.assign(Object.assign({},i.pause),{style:Object.assign(Object.assign({},i.pause.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.backward=Object.assign(Object.assign({},i.backward),{style:Object.assign(Object.assign({},i.backward.style),{x:this._layoutInfo.backward.x,y:this._layoutInfo.backward.y})}),i.forward=Object.assign(Object.assign({},i.forward),{style:Object.assign(Object.assign({},i.forward.style),{x:this._layoutInfo.forward.x,y:this._layoutInfo.forward.y})}),i},this._initController=()=>{const i=this._updateControllerAttrs();this._controller=new rr(i),this._controllerVisible&&this.add(this._controller)},this._initAttributes(),this._initDataIndex(),this._initLayoutInfo(),this._initController(),this._initSlider()}_initAttributes(){this._size=this.attribute.size,this._orient=this.attribute.orient,this._data=this.attribute.data,this._minIndex=0,this._maxIndex=this._data.length-1;const{slider:t={},controller:e={}}=this.attribute;this._sliderVisible=t.visible,this._railStyle=Object.assign({},t.railStyle),this._trackStyle=Object.assign({},t.trackStyle),this._handlerStyle=Object.assign({},t.handlerStyle),this._controllerVisible=e.visible,this._start=Object.assign({},e.start),this._pause=Object.assign({},e.pause),this._forward=Object.assign({},e.forward),this._backward=Object.assign({},e.backward)}_initDataIndex(){var t;this._dataIndex=(t=this.attribute.dataIndex)!==null&&t!==void 0?t:0}_initLayoutInfo(){var t,e,i;const s=[this._start,this._backward,this._forward].sort((u,g)=>u.order-g.order),r=s.filter(u=>u.position!=="end"),a=s.filter(u=>u.position==="end"),o=(t=vs(this._orient)?this._railStyle.height:this._railStyle.width)!==null&&t!==void 0?t:T0[1],l=s.reduce((u,g)=>{const p=g.style.size,_=J(p)?p:Ui(p[0],p[1]);return u+g.space+_},0),h=this._sliderVisible?(vs(this._orient)?(e=this._size)===null||e===void 0?void 0:e.width:(i=this._size)===null||i===void 0?void 0:i.height)-l:0,d=h-this.attribute.slider.space,c=r.reduce((u,g)=>{const{key:p,space:_,style:{size:f}}=g,m=J(f)?f:Ui(f[0],f[1]);return this._layoutInfo[p]=Object.assign(Object.assign({},this._layoutInfo[p]),{size:m,x:vs(this._orient)?u+_:(this._size.width-m)/2,y:vs(this._orient)?(this._size.height-m)/2:u+_}),u+_+m},0);this._layoutInfo.slider=Object.assign(Object.assign({},this._layoutInfo.slider),{size:d,x:vs(this._orient)?c+this.attribute.slider.space:(this._size.width-o)/2,y:vs(this._orient)?(this._size.height-o)/2:c+this.attribute.slider.space}),a.reduce((u,g)=>{const{key:p,space:_,style:{size:f}}=g,m=J(f)?f:Ui(f[0],f[1]);return this._layoutInfo[p]=Object.assign(Object.assign({},this._layoutInfo[p]),{size:m,x:vs(this._orient)?u+_:(this._size.width-m)/2,y:vs(this._orient)?(this._size.height-m)/2:u+_}),u+_+m},c+h)}render(){this._initLayoutInfo(),this.renderSlider(),this.renderController()}renderSlider(){const t=this._updateSliderAttrs();this._slider.setAttributes(t)}renderController(){const t=this._updateControllerAttrs();this._controller.setAttributes(t)}dispatchCustomEvent(t,e){this._dispatchEvent(t,{eventType:t,index:e,value:this._data[e]})}}mu.defaultAttributes={visible:!0,data:[],interval:1e3,orient:"bottom",align:"center",size:{height:20,width:300},slider:{visible:!0,space:10,dx:0,dy:0,railStyle:{cornerRadius:5},trackStyle:{},handlerStyle:{}},controller:{visible:!0,start:Object.assign(Object.assign({},lg),{key:"start",position:"start",space:0}),pause:Object.assign(Object.assign({},lg),{key:"pause",position:"start"}),forward:Object.assign(Object.assign({},lg),{key:"forward",position:"end"}),backward:Object.assign(Object.assign({},lg),{key:"backward",position:"start"})}};function ZO(){tm(),ze(),Yn()}function t8(){ZO()}function e8(){ZO()}t8();class i8 extends mu{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},t)),this._activeIndex=-1,this._isReachEnd=!1,this._initAttributes=()=>{var i,s,r;super._initAttributes(),this._alternate=(i=this.attribute.alternate)!==null&&i!==void 0&&i,this._interval=(s=this.attribute.interval)!==null&&s!==void 0?s:1e3,this._direction=(r=this.attribute.direction)!==null&&r!==void 0?r:Aa.Default},this._initDataIndex=()=>{var i;this._dataIndex=P(this.attribute.dataIndex)?this._direction==="default"?this._minIndex:this._maxIndex:(i=this.attribute.dataIndex)!==null&&i!==void 0?i:0,this._slider.setAttribute("value",this._dataIndex)},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._controller.addEventListener(nn.OnPlay,i=>{i.stopPropagation(),this.play()}),this._controller.addEventListener(nn.OnPause,i=>{i.stopPropagation(),this.pause()}),this._controller.addEventListener(nn.OnForward,i=>{i.stopPropagation(),this.forward()}),this._controller.addEventListener(nn.OnBackward,i=>{i.stopPropagation(),this.backward()}),this._slider.addEventListener("change",i=>{const s=Math.floor(i.detail.value)+.5;this._dataIndex=i.detail.value>=s?Math.ceil(i.detail.value):Math.floor(i.detail.value),this._slider.setValue(this._dataIndex),this.dispatchCustomEvent(Le.change)}))},this.play=()=>{this._isPlaying||this._data.length!==1&&(this._controller.togglePause(),this._isPlaying=!0,(KY({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction})||JY({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction}))&&(this._direction===Aa.Default?this._updateDataIndex(this._minIndex):this._updateDataIndex(this._maxIndex)),this.dispatchCustomEvent(Le.play),this._isReachEnd=!1,this._tickTime=Date.now(),this._rafId=Et.getRequestAnimationFrame()(this._play.bind(this,!0)))},this._play=i=>{const s=Date.now();if(this._isReachEnd&&s-this._tickTime>=this._interval)return this._isReachEnd=!1,void this._playEnd();i&&this._activeIndex!==this._dataIndex?(this.dispatchCustomEvent(Le.change),this._activeIndex=this._dataIndex):s-this._tickTime>=this._interval&&(this._tickTime=s,this._updateDataIndex(QY(this._direction,this._dataIndex,this._minIndex,this._maxIndex)),this._activeIndex=this._dataIndex,this.dispatchCustomEvent(Le.change)),(this._direction==="default"&&this._dataIndex>=this._maxIndex||this._direction==="reverse"&&this._dataIndex<=this._minIndex)&&(this._isReachEnd=!0),this._rafId=Et.getRequestAnimationFrame()(this._play.bind(this,!1))},this._updateDataIndex=i=>{this._dataIndex=i,this._slider.setValue(this._dataIndex)},this._playEnd=()=>{this._isPlaying=!1,this._controller.togglePlay(),Et.getCancelAnimationFrame()(this._rafId),this._activeIndex=-1,this.dispatchCustomEvent(Le.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,Et.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.pause))},this.backward=()=>{const{loop:i=!1}=this.attribute;let s;s=i?this._dataIndex-1{const{loop:i=!1}=this.attribute;let s;s=i?this._dataIndex+1>this._maxIndex?this._minIndex:this._dataIndex+1:Math.min(this._dataIndex+1,this._maxIndex),this._updateDataIndex(s),this.dispatchCustomEvent(Le.change),this.dispatchCustomEvent(Le.forward)},this._initAttributes(),this._initDataIndex(),this._initEvents()}setAttributes(t,e){super.setAttributes(t,e),this._initAttributes()}dispatchCustomEvent(t){super.dispatchCustomEvent(t,this._dataIndex)}}var n8=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};e8();class s8 extends mu{constructor(t){super(t),this._isPlaying=!1,this._startTime=Date.now(),this._initAttributes=()=>{var e;super._initAttributes(),this._maxIndex=this._data.length,this._slider.setAttribute("max",this._maxIndex),this._isPlaying=!1,this._elapsed=0,this._interval=(e=this.attribute.interval)!==null&&e!==void 0?e:1e3;const i=this._data.length;this.attribute.totalDuration&&this._data.length?(this._totalDuration=this.attribute.totalDuration,this._interval=this._totalDuration/(i??1)):(this._totalDuration=this._interval*i,this._interval=this.attribute.interval)},this._initDataIndex=()=>{var e;this._dataIndex=(e=this.attribute.dataIndex)!==null&&e!==void 0?e:this._minIndex},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._controller.addEventListener(nn.OnPlay,e=>{e.stopPropagation(),this.play()}),this._controller.addEventListener(nn.OnPause,e=>{e.stopPropagation(),this.pause()}),this._controller.addEventListener(nn.OnForward,e=>{e.stopPropagation(),this.forward()}),this._controller.addEventListener(nn.OnBackward,e=>{e.stopPropagation(),this.backward()}),this._slider.addEventListener("change",e=>{var i;e.stopPropagation();const s=(i=e.detail)===null||i===void 0?void 0:i.value,r=s/this._maxIndex;this._elapsed=r*this._totalDuration,this._startTime=Date.now()-this._elapsed,this._dispatchChange(s)}))},this._getSliderValue=()=>{const e=this._elapsed/this._totalDuration;return Math.min(e*this._maxIndex,this._maxIndex)},this._updateSlider=()=>{const e=this._getSliderValue();this._dataIndex=Math.floor(e),this._slider.setValue(Math.min(e,this._maxIndex)),this._dispatchChange(Math.floor(e))},this._dispatchChange=e=>{const i=Math.floor(e);i!==this._activeIndex&&(this._dataIndex=i,this._activeIndex=i,i!==this._maxIndex&&this.dispatchCustomEvent(Le.change))},this.play=()=>n8(this,void 0,void 0,function*(){this._isPlaying||(this._controller.togglePause(),this._isPlaying=!0,this._elapsed>=this._totalDuration&&(this._elapsed=0),this._startTime=Date.now()-this._elapsed,this.dispatchCustomEvent(Le.play),this._rafId=Et.getRequestAnimationFrame()(this._play.bind(this)))}),this._play=()=>{this._elapsed=Date.now()-this._startTime;const e=this._getSliderValue();this._updateSlider(),e>=this._maxIndex?this._playEnd():this._rafId=Et.getRequestAnimationFrame()(this._play.bind(this))},this._playEnd=()=>{this._isPlaying=!1,Et.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,this._elapsed=Date.now()-this._startTime,Et.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.pause))},this.backward=()=>{const e=Date.now(),i=1*this._interval,s=this._elapsed-i;s<=0?(this._elapsed=0,this._startTime=e):(this._elapsed=s,this._startTime=this._startTime+this._interval),this._updateSlider(),this.dispatchCustomEvent(Le.backward)},this.forward=()=>{const e=Date.now(),i=1*this._interval,s=this._elapsed+i;s>=this._totalDuration?(this._startTime=e-this._totalDuration,this._elapsed=this._totalDuration):(this._startTime=this._startTime-i,this._elapsed=s),this._updateSlider(),this.dispatchCustomEvent(Le.forward)},this._initAttributes(),this._initDataIndex(),this._initEvents()}dispatchCustomEvent(t){super.dispatchCustomEvent(t,this._dataIndex)}render(){super.render()}}var Di;(function(n){n.drawStart="drawStart",n.drawEnd="drawEnd",n.drawing="drawing",n.moving="moving",n.moveStart="moveStart",n.moveEnd="moveEnd",n.brushClear="brushClear"})(Di||(Di={}));const Xs={trigger:"pointerdown",updateTrigger:"pointermove",endTrigger:"pointerup",resetTrigger:"pointerupoutside",hasMask:!0,brushMode:"single",brushType:"rect",brushStyle:{fill:"#B0C8F9",fillOpacity:.2,stroke:"#B0C8F9",strokeWidth:2},brushMoved:!0,removeOnClick:!0,delayType:"throttle",delayTime:10,interactiveRange:{y1:-1/0,y2:1/0,x1:-1/0,x2:1/0}},r8=5;function a8(){ze(),Ff()}const o8={debounce:wa,throttle:yr};a8();let JO=class QO extends li{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},QO.defaultAttributes,t)),this.name="brush",this._activeDrawState=!1,this._cacheDrawPoints=[],this._isDrawedBeforeEnd=!1,this._activeMoveState=!1,this._operatingMaskMoveDx=0,this._operatingMaskMoveDy=0,this._operatingMaskMoveRangeX=[-1/0,1/0],this._operatingMaskMoveRangeY=[-1/0,1/0],this._brushMaskAABBBoundsDict={},this._onBrushStart=i=>{var s;if(this._outOfInteractiveRange(i))return;i.stopPropagation();const r=(s=this.attribute.brushMoved)===null||s===void 0||s;this._activeMoveState=r&&this._isPosInBrushMask(i),this._activeDrawState=!this._activeMoveState,this._activeDrawState&&this._initDraw(i),this._activeMoveState&&this._initMove(i)},this._onBrushing=i=>{this._outOfInteractiveRange(i)||((this._activeDrawState||this._activeMoveState)&&i.stopPropagation(),this._activeDrawState&&this._drawing(i),this._activeMoveState&&this._moving(i))},this._onBrushingWithDelay=this.attribute.delayTime===0?this._onBrushing:o8[this.attribute.delayType](this._onBrushing,this.attribute.delayTime),this._onBrushEnd=i=>{var s;if(!this._activeDrawState&&!this._activeMoveState)return;i.preventDefault();const{removeOnClick:r=!0}=this.attribute;this._activeDrawState&&!this._isDrawedBeforeEnd&&r?(!((s=this._operatingMask)===null||s===void 0)&&s._AABBBounds.empty()&&this._dispatchEvent(Di.brushClear,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._container.incrementalClearChild(),this._brushMaskAABBBoundsDict={}):(this._activeDrawState&&this._dispatchEvent(Di.drawEnd,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._activeMoveState&&this._dispatchEvent(Di.moveEnd,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i})),this._activeDrawState=!1,this._activeMoveState=!1,this._isDrawedBeforeEnd=!1,this._operatingMask&&this._operatingMask.setAttribute("pickable",!1)}}_bindBrushEvents(){if(this.attribute.disableTriggerEvent)return;const{trigger:t=Xs.trigger,updateTrigger:e=Xs.updateTrigger,endTrigger:i=Xs.endTrigger,resetTrigger:s=Xs.resetTrigger}=this.attribute;this.stage.addEventListener(t,this._onBrushStart),this.stage.addEventListener(e,this._onBrushingWithDelay),this.stage.addEventListener(i,this._onBrushEnd),this.stage.addEventListener(s,this._onBrushEnd)}_isPosInBrushMask(t){const e=this.eventPosToStagePos(t),i=this._container.getChildren();for(let s=0;s({x:h.x+a,y:h.y+o}));if(Ab(l,e.x,e.y))return this._operatingMask=i[s],!0}return!1}_initDraw(t){const{brushMode:e}=this.attribute,i=this.eventPosToStagePos(t);this._cacheDrawPoints=[i],this._isDrawedBeforeEnd=!1,e==="single"&&(this._brushMaskAABBBoundsDict={},this._container.incrementalClearChild()),this._addBrushMask(),this._dispatchEvent(Di.drawStart,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_initMove(t){var e,i;this._cacheMovePoint=this.eventPosToStagePos(t),this._operatingMaskMoveDx=(e=this._operatingMask.attribute.dx)!==null&&e!==void 0?e:0,this._operatingMaskMoveDy=(i=this._operatingMask.attribute.dy)!==null&&i!==void 0?i:0;const{interactiveRange:s}=this.attribute,{minY:r=-1/0,maxY:a=1/0,minX:o=-1/0,maxX:l=1/0}=s,{x1:h,x2:d,y1:c,y2:u}=this._operatingMask.globalAABBBounds,g=o-h,p=l-d,_=r-c,f=a-u;this._operatingMaskMoveRangeX=[g,p],this._operatingMaskMoveRangeY=[_,f],this._operatingMask.setAttribute("pickable",!0),this._dispatchEvent(Di.moveStart,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_drawing(t){var e,i;const s=this.eventPosToStagePos(t),{sizeThreshold:r=r8,brushType:a}=this.attribute,o=this._cacheDrawPoints.length;if(o>0){const g=(e=this._cacheDrawPoints[this._cacheDrawPoints.length-1])!==null&&e!==void 0?e:{};if(s.x===g.x&&s.y===g.y)return}a==="polygon"||o<=1?this._cacheDrawPoints.push(s):this._cacheDrawPoints[o-1]=s;const l=this._computeMaskPoints();this._operatingMask.setAttribute("points",l);const{x1:h=0,x2:d=0,y1:c=0,y2:u=0}=(i=this._operatingMask)===null||i===void 0?void 0:i._AABBBounds;this._isDrawedBeforeEnd=!this._operatingMask._AABBBounds.empty()&&(Math.abs(d-h)>r||Math.abs(c-u)>r),this._isDrawedBeforeEnd&&(this._brushMaskAABBBoundsDict[this._operatingMask.name]=this._operatingMask.AABBBounds,this._dispatchEvent(Di.drawing,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t}))}_moving(t){const e=this._cacheMovePoint,i=this.eventPosToStagePos(t);if(i.x===(e==null?void 0:e.x)&&i.y===(e==null?void 0:e.y))return;const s=i.x-e.x,r=i.y-e.y,a=Math.min(this._operatingMaskMoveRangeX[1],Math.max(this._operatingMaskMoveRangeX[0],s))+this._operatingMaskMoveDx,o=Math.min(this._operatingMaskMoveRangeY[1],Math.max(this._operatingMaskMoveRangeY[0],r))+this._operatingMaskMoveDy;this._operatingMask.setAttributes({dx:a,dy:o}),this._brushMaskAABBBoundsDict[this._operatingMask.name]=this._operatingMask.AABBBounds,this._dispatchEvent(Di.moving,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_computeMaskPoints(){const{brushType:t,xRange:e=[0,0],yRange:i=[0,0]}=this.attribute;let s=[];const r=this._cacheDrawPoints[0],a=this._cacheDrawPoints[this._cacheDrawPoints.length-1];return s=t==="rect"?[r,{x:a.x,y:r.y},a,{x:r.x,y:a.y}]:t==="x"?[{x:r.x,y:i[0]},{x:a.x,y:i[0]},{x:a.x,y:i[1]},{x:r.x,y:i[1]}]:t==="y"?[{x:e[0],y:r.y},{x:e[0],y:a.y},{x:e[1],y:a.y},{x:e[1],y:r.y}]:xn(this._cacheDrawPoints),s}_addBrushMask(){var t;const{brushStyle:e,hasMask:i}=this.attribute,s=rt.polygon(Object.assign(Object.assign({points:xn(this._cacheDrawPoints),cursor:"move",pickable:!1},e),{opacity:i?(t=e.opacity)!==null&&t!==void 0?t:1:0}));s.name=`brush-${Date.now()}`,this._operatingMask=s,this._container.add(s),this._brushMaskAABBBoundsDict[s.name]=s.AABBBounds}_outOfInteractiveRange(t){const{interactiveRange:e}=this.attribute,{minY:i=-1/0,maxY:s=1/0,minX:r=-1/0,maxX:a=1/0}=e,o=this.eventPosToStagePos(t);return o.x>a||o.xs||o.y{const e=[n.shape,...t.map(r=>r==null?void 0:r.shape)],i=[n.key,...t.map(r=>r==null?void 0:r.key)],s=[n.value,...t.map(r=>r==null?void 0:r.value)];return $(n,...t,{shape:e.every(P)?void 0:$({},...e),key:i.every(P)?void 0:$({},...i),value:s.every(P)?void 0:$({},...s)})},qo=n=>{const{width:t,height:e,wordBreak:i="break-word",textAlign:s,textBaseline:r,text:a}=n;return Array.isArray(a)?{width:t,height:e,wordBreak:i,textAlign:s,textBaseline:r,singleLine:!1,textConfig:j(a).map(o=>Object.assign(Object.assign({},n),{text:o}))}:{width:t,height:e,wordBreak:i,textAlign:s,textBaseline:r,singleLine:!1,textConfig:a==null?void 0:a.text}},l8={panel:{visible:!0,cornerRadius:[3,3,3,3],fill:"white",shadow:!0,shadowBlur:12,shadowColor:"rgba(0, 0, 0, 0.1)",shadowOffsetX:0,shadowOffsetY:4,shadowSpread:0,stroke:"white"},titleStyle:{value:{fill:"#4E5969",fontFamily:pd,fontSize:14,lineHeight:18,textAlign:"left",textBaseline:"middle"},spaceRow:6},contentStyle:{shape:{fill:"black",size:8,symbolType:"circle",spacing:6},key:{fill:"#4E5969",fontFamily:pd,fontSize:12,lineHeight:18,textAlign:"left",textBaseline:"middle",spacing:26},value:{fill:"#4E5969",fontFamily:pd,fontSize:12,lineHeight:18,textAlign:"right",textBaseline:"middle",spacing:0},spaceRow:6},padding:10,positionX:"right",positionY:"bottom",offsetX:10,offsetY:10,parentBounds:new Oe().setValue(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),autoCalculatePosition:!0,autoMeasure:!0,pickable:!1,childrenPickable:!1,zIndex:500},h8=["pointerX","pointerY","offsetX","offsetY","positionX","positionY","parentBounds"];function d8(){ze(),kr(),Yn(),Hs(),Ea()}d8();let tB=class cn extends li{constructor(t,e){super(e!=null&&e.skipDefault?t:$({},cn.defaultAttributes,t),e),this.name="tooltip"}render(){var t;const{visible:e,content:i,panel:s,keyWidth:r,valueWidth:a,hasContentShape:o,autoCalculatePosition:l,autoMeasure:h,align:d}=this.attribute;if(!e)return void this.hideAll();h&&cn.measureTooltip(this.attribute),l&&cn.calculateTooltipPosition(this.attribute);const c=Yi(this.attribute.padding);this._tooltipPanel=this.createOrUpdateChild("tooltip-background",Object.assign({visible:!0},s),"rect"),this._tooltipTitleContainer=this.createOrUpdateChild("tooltip-title",{visible:!0,x:c[3],y:c[0]},"group");const u=cn.getTitleAttr(this.attribute);this._tooltipTitleSymbol=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-shape",$({symbolType:"circle"},u.shape,{visible:Be(u)&&Be(u.shape)}),"symbol"),typeof u.value.text!="object"||u.value.text===null||u.value.text.type!=="rich"&&u.value.text.type!=="html"?u.value.multiLine?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Be(u)&&Be(u.value)},qo(u.value)),"richtext"):this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({text:(t=u.value.text)!==null&&t!==void 0?t:"",visible:Be(u)&&Be(u.value)},u.value),"text"):u.value.text.type==="rich"?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Be(u)&&Be(u.value)},qo(u.value)),"richtext"):u.value.text.type==="html"&&(this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({html:Object.assign(Object.assign({dom:u.value.text.text},a_),u.value),visible:Be(u)&&Be(u.value),width:u.value.width,height:u.value.height,wordBreak:u.value.wordBreak,textAlign:u.value.textAlign,textBaseline:u.value.textBaseline,singleLine:!1,textConfig:[]},u.value),"richtext"));const g=Be(u.shape)?u.shape.size+u.shape.spacing:0,{textAlign:p,textBaseline:_}=u.value,f=s.width-c[3]-c[0]-g;p==="center"?this._tooltipTitle.setAttribute("x",g+f/2):p==="right"||p==="end"?this._tooltipTitle.setAttribute("x",g+f):this._tooltipTitle.setAttribute("x",g),_==="bottom"?this._tooltipTitle.setAttribute("y",u.height):_==="middle"?this._tooltipTitle.setAttribute("y",u.height/2):this._tooltipTitle.setAttribute("y",0);const m=Be(u)?u.height+u.spaceRow:0;if(this._tooltipContent=this.createOrUpdateChild("tooltip-content",{visible:!0},"group"),this._tooltipContent.removeAllChild(!0),i&&i.length){this._tooltipContent.setAttribute("x",c[3]),this._tooltipContent.setAttribute("y",c[0]+m);let v=0;i.forEach((y,b)=>{const x=cn.getContentAttr(this.attribute,b);if(!Be(x))return;const S=`tooltip-content-${b}`,A=this._tooltipContent.createOrUpdateChild(S,{visible:!0,x:0,y:v},"group"),k=x.shape.size+x.shape.spacing;let T=d==="right"?(o?k:0)+(Be(x.key)?r+x.key.spacing:0)+(Be(x.value)?a:0):0;this._createShape(d==="right"?T-x.shape.size/2:T+x.shape.size/2,x,A,S),o&&(d==="right"?T-=k:T+=k);const w=this._createKey(x,A,S);w&&(LT(d,w,x.key.textAlign,T,r),w.setAttribute("y",0),d==="right"?T-=r+x.key.spacing:T+=r+x.key.spacing);const M=this._createValue(x,A,S);if(M){let R="right";C(x.value.textAlign)?R=x.value.textAlign:Be(x.key)||d==="right"||(R="left"),M.setAttribute("textAlign",R),LT(d,M,R,T,a),M.setAttribute("y",0)}v+=x.height+x.spaceRow})}}_createShape(t,e,i,s){var r;if(Be(e.shape))return i.createOrUpdateChild(`${s}-shape`,Object.assign({visible:!0,x:t,y:e.shape.size/2+(((r=sr(e.key.lineHeight,e.key.fontSize))!==null&&r!==void 0?r:e.key.fontSize)-e.shape.size)/2},e.shape),"symbol")}_createKey(t,e,i){var s;if(Be(t.key)){let r;return r=t.key.multiLine?e.createOrUpdateChild(`${i}-key`,Object.assign(Object.assign({visible:!0},qo(t.key)),{textBaseline:"top"}),"richtext"):typeof t.key.text!="object"||t.key.text===null||t.key.text.type!=="rich"&&t.key.text.type!=="html"?e.createOrUpdateChild(`${i}-key`,Object.assign(Object.assign({visible:!0,text:(s=t.key.text)!==null&&s!==void 0?s:""},t.key),{textBaseline:"top"}),"text"):t.key.text.type==="rich"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},qo(t.key)),{textBaseline:"top"}),"richtext"):e.createOrUpdateChild(`${i}-value`,{html:Object.assign(Object.assign({dom:t.key.text.text},a_),t.key)},"richtext"),r}}_createValue(t,e,i){var s;if(Be(t.value)){let r;return r=t.value.multiLine?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},qo(t.value)),{textBaseline:"top"}),"richtext"):typeof t.value.text!="object"||t.value.text===null||t.value.text.type!=="rich"&&t.value.text.type!=="html"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0,text:(s=t.value.text)!==null&&s!==void 0?s:""},t.value),{textBaseline:"top"}),"text"):t.value.text.type==="rich"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},qo(t.value)),{textBaseline:"top"}),"richtext"):e.createOrUpdateChild(`${i}-value`,{html:Object.assign({dom:t.value.text.text,container:"",width:30,height:30,style:{}},t.value)},"richtext"),r}}setAttributes(t,e){const i=Object.keys(t);this.attribute.autoCalculatePosition&&i.every(s=>h8.includes(s))?(this._mergeAttributes(t,i),P(this.attribute.panel.width)&&this.attribute.autoMeasure&&cn.measureTooltip(this.attribute),cn.calculateTooltipPosition(this.attribute),super.setAttributes({x:this.attribute.x,y:this.attribute.y},e)):super.setAttributes(t,e)}static calculateTooltipPosition(t){const{width:e=0,height:i=0}=t.panel,{offsetX:s,offsetY:r,pointerX:a,pointerY:o,positionX:l,positionY:h,parentBounds:d}=t;let c=a,u=o;return l==="left"?c-=e+s:l==="center"?c-=e/2:c+=s,h==="top"?u-=i+r:h==="middle"?u-=i/2:u+=r,c+e>d.x2&&(c-=e+s),u+i>d.y2&&(u-=i+r),c{const f=cn.getContentAttr(t,_);(p.key||p.value)&&Be(f)&&g.push([p,f])}),g.length){let p=!1;const _=[],f=[],m=[];g.forEach(([x,S],A)=>{var k;const{key:T,value:w,shape:M,spaceRow:R}=S,O=Be(M),L=(k=M==null?void 0:M.symbolType)!==null&&k!==void 0?k:"",E=jl(T),B=jl(w);let I=0;if(Be(T)){const{width:F,height:z}=E.quickMeasure(T.text);f.push(F),I=Math.max(I,z)}if(Be(w)){const{width:F,height:z}=B.quickMeasure(w.text);m.push(F),I=Math.max(I,z)}O&&Sp[L]&&(p=!0,_.push(M.size),I=Math.max(M.size,I)),x.height=I,o+=I,A{x.width=a}),t.hasContentShape=p,t.keyWidth=y,t.valueWidth=b}}return t.panel.width=a+s[1]+s[3],t.panel.height=o,t}static getTitleAttr(t){return xM({},cn.defaultAttributes.titleStyle,cn.defaultAttributes.title,t.titleStyle,t.title)}static getContentAttr(t,e){return xM({},cn.defaultAttributes.contentStyle,t.contentStyle,t.content[e])}};tB.defaultAttributes=l8;const __=Ge;function c8(n,t){let e=0,i=2*Math.PI;const s=C(n),r=C(t);for(s||r?r?s?(e=n,i=t):(e=t-2*Math.PI,i=t):(e=n,i=n+2*Math.PI):(e=0,i=2*Math.PI);i<=e;)i+=2*Math.PI;for(;e>2*Math.PI;)e-=2*Math.PI,i-=2*Math.PI;for(;i<0;)e+=2*Math.PI,i+=2*Math.PI;return{startAngle:e,endAngle:i}}function u8(n,t,e){return n.x1>t||n.x2e||n.y2{const s=+i[t];H(s)&&e.push(s)}),e.length===0?null:Ze(e)}function wx(n,t){const e=[];return n.forEach(i=>{const s=+i[t];H(s)&&e.push(s)}),e.length===0?null:Fe(e)}function iB(n,t){return n.reduce((e,i)=>{const s=t?+i[t]:+i;return H(s)&&(e+=s),e},0)}function nB(n,t){let e=0,i=0;return n.forEach(s=>{const r=t?+s[t]:+s;H(r)&&(e+=r,i++)}),e/i}function sB(n,t){const e=nB(n,t);return n.length<=1?0:n.reduce((s,r)=>s+(t?+r[t]:+r-e)**2,0)/(n.length-1)}function g8(n,t){return Math.sqrt(sB(n,t))}function p8(n,t){return x2(n.map(e=>e[t]))}function _8(n,t,e){const{predict:i}=S5(n,l=>l[t],l=>l[e]),s=eB(n,t),r=wx(n,t),a=i(s),o=i(r);return[{[t]:s,[e]:a},{[t]:r,[e]:o}]}function f8(n){let t="center",e="middle";return t=(n=va(n))>=Math.PI*(7/6)&&n<=Math.PI*(11/6)?"right":n>=Math.PI*(1/6)&&n<=Math.PI*(5/6)?"left":"center",e=n>=Math.PI*(5/3)||n<=Math.PI*(1/3)?"bottom":n>=Math.PI*(2/3)&&n<=Math.PI*(4/3)?"top":"middle",{align:t,baseline:e}}function SM(n,t){const e=f_(n),i=f_(t),s=Math.asin((n.x*t.y-t.x*n.y)/e/i),r=Math.acos((n.x*t.x+n.y*t.y)/e/i);return s<0?-r:r}function f_(n,t={x:0,y:0}){return Ke.distancePP(n,t)}function m8(n,t=2){const e=n.reduce((h,d)=>h+(isNaN(d)?0:d),0);if(e===0)return 0;const i=Math.pow(10,t),s=n.map(h=>(isNaN(h)?0:h)/e*i*100),r=100*i,a=s.map(h=>Math.floor(h));let o=a.reduce((h,d)=>h+d,0);const l=s.map((h,d)=>h-a[d]);for(;oh&&(h=l[c],d=c);++a[d],l[d]=0,++o}return a.map(h=>h/i)}function AM(n){return H(n.x)&&H(n.y)}function Te(n,t,e){let i=!1;if(t&&N(t)){for(const s of n)for(const r of s.getSeries(e))if(i=!!t.call(null,r),i)return i}return i}function rB(n,t){const e=[];for(const i of n)for(const s of i.getSeries(t))e.push(s);return e}const Cx=(n,t)=>{for(let e=0;ei==null?void 0:i[s],t):t==null?void 0:t[n],e}}var Y;(function(n){n.area="area",n.line="line",n.bar="bar",n.bar3d="bar3d",n.rangeColumn="rangeColumn",n.rangeColumn3d="rangeColumn3d",n.rangeArea="rangeArea",n.dot="dot",n.geo="geo",n.link="link",n.map="map",n.pie="pie",n.pie3d="pie3d",n.radar="radar",n.rose="rose",n.scatter="scatter",n.circularProgress="circularProgress",n.wordCloud="wordCloud",n.wordCloud3d="wordCloud3d",n.funnel="funnel",n.funnel3d="funnel3d",n.linearProgress="linearProgress",n.boxPlot="boxPlot",n.sankey="sankey",n.gaugePointer="gaugePointer",n.gauge="gauge",n.treemap="treemap",n.sunburst="sunburst",n.circlePacking="circlePacking",n.waterfall="waterfall",n.heatmap="heatmap",n.correlation="correlation",n.liquid="liquid",n.venn="venn",n.mosaic="mosaic"})(Y||(Y={}));var kM;(function(n){n.label="label",n.point="point",n.line="line",n.area="area",n.bar="bar",n.bar3d="bar3d",n.boxPlot="boxPlot",n.outlier="outlier",n.circlePacking="circlePacking",n.group="group",n.gridBackground="gridBackground",n.grid="grid",n.dot="dot",n.title="title",n.subTitle="subTitle",n.symbol="symbol",n.funnel="funnel",n.funnel3d="funnel3d",n.transform="transform",n.transform3d="transform3d",n.transformLabel="transformLabel",n.outerLabel="outerLabel",n.outerLabelLine="outerLabelLine",n.pin="pin",n.pinBackground="pinBackground",n.pointer="pointer",n.segment="segment",n.track="track",n.cell="cell",n.cellBackground="cellBackground",n.link="link",n.arrow="arrow",n.pie="pie",n.pie3d="pie3d",n.labelLine="labelLine",n.progress="progress",n.minLabel="minLabel",n.maxLabel="maxLabel",n.rose="rose",n.node="node",n.sunburst="sunburst",n.nonLeaf="nonLeaf",n.leaf="leaf",n.nonLeafLabel="nonLeafLabel",n.leaderLine="leaderLine",n.stackLabel="stackLabel",n.word="word",n.fillingWord="fillingWord",n.wordMask="wordMask",n.nodePoint="nodePoint",n.ripplePoint="ripplePoint",n.centerPoint="centerPoint",n.centerLabel="centerLabel",n.barBackground="barBackground",n.lineLabel="lineLabel",n.areaLabel="areaLabel",n.liquidGroup="liquidGroup",n.liquid="liquid",n.liquidBackground="liquidBackground",n.liquidOutline="liquidOutline",n.circle="circle",n.overlap="overlap",n.overlapLabel="overlapLabel"})(kM||(kM={}));function aB(n){var t,e;const{type:i}=n;return i===Y.sankey?(t=n.direction)!==null&&t!==void 0?t:"horizontal":(e=n.direction)!==null&&e!==void 0?e:"vertical"}const v8={primaryFontColor:"titleFontColor",tertiaryFontColor:"labelFontColor",axisLabelFontColor:"axisFontColor",axisMarkerFontColor:"labelReverseFontColor",dataZoomHandleStrokeColor:"dataZoomHandlerStrokeColor",sliderHandleColor:"dataZoomHandlerFillColor",sliderRailColor:"dataZoomBackgroundColor",sliderTrackColor:"dataZoomSelectedColor",playerControllerColor:"dataZoomSelectedColor",popupBackgroundColor:"tooltipBackgroundColor",hoverBackgroundColor:"axisGridColor"},y8={titleFontColor:"primaryFontColor",labelFontColor:"tertiaryFontColor",axisFontColor:"axisLabelFontColor",labelReverseFontColor:"axisMarkerFontColor",dataZoomHandlerStrokeColor:"dataZoomHandleStrokeColor",dataZoomHandlerFillColor:"sliderHandleColor",dataZoomBackgroundColor:"sliderRailColor",dataZoomSelectedColor:"sliderTrackColor",tooltipBackgroundColor:"popupBackgroundColor"};function b8(n,t){const e=v8[t];if(e&&n[e])return n[e];if(n[t])return n[t];const i=y8[t];return i?n[i]:void 0}function Mc(n,t){var e;if(!n)return[];const i=oB(n,t);if(!i||U(i))return(e=i)!==null&&e!==void 0?e:[];if(yt(i)){const{dataScheme:s}=i;return s?Px(s)?s.map(r=>Object.assign(Object.assign({},r),{scheme:r.scheme.map(a=>m_(a)?Ky(n,a,t):a).filter(C)})):s.map(r=>m_(r)?Ky(n,r,t):r).filter(C):[]}return[]}function Xy(n,t){var e,i;return Px(n)?(i=(e=n.find(s=>C(s.isAvailable)?N(s.isAvailable)?s.isAvailable(t):!!s.isAvailable:!C(s.maxDomainLength)||(t==null?void 0:t.length)<=s.maxDomainLength))===null||e===void 0?void 0:e.scheme)!==null&&i!==void 0?i:n[n.length-1].scheme:n}function Ky(n,t,e){var i;const s=oB(n,e);if(!s)return;let r;const{palette:a}=s;if(yt(a)&&(r=(i=b8(a,t.key))!==null&&i!==void 0?i:t.default),!r)return;if(P(t.a)&&P(t.l)||!tt(r))return r;let o=new Xe(r);if(C(t.l)){const{r:l,g:h,b:d}=o.color,{h:c,s:u}=uf(l,h,d),g=Lg(c,u,t.l),p=new Xe(`rgb(${g.r}, ${g.g}, ${g.b})`);p.setOpacity(o.color.opacity),o=p}return C(t.a)&&o.setOpacity(t.a),o.toRGBA()}const x8=(n,t,e)=>{if(t&&m_(n)){const i=Ky(t,n,e);if(i)return i}return n};function m_(n){return n&&n.type==="palette"&&!!n.key}function Px(n){return!(!U(n)||n.length===0)&&n.every(t=>C(t.scheme))}function S8(n){return U(n)?{dataScheme:n}:n}function oB(n,t){var e,i;const{type:s}=t??{};let r;if(!t||P(s))r=n==null?void 0:n.default;else{const a=aB(t);r=(i=(e=n==null?void 0:n[`${s}_${a}`])!==null&&e!==void 0?e:n==null?void 0:n[s])!==null&&i!==void 0?i:n==null?void 0:n.default}return r}class vu extends yo{range(t){return t?(this._range=t,this._resetRange(),this):super.range()}domain(t){return t?(super.domain(t),this._resetRange(),this):super.domain()}_resetRange(){if(!Px(this._range))return void super.range(this._range);const t=Xy(this._range,this._domain);super.range(t)}}const A8={linear:Tn,band:Ho,point:J$,ordinal:yo,threshold:Ax,colorOrdinal:vu};function qy(n){const t=A8[n];return t?new t:null}function k8(n,t){if("scale"in n&&n.scale)return tt(n.scale)&&(t!=null&&t.globalScale)?t.globalScale.registerMarkAttributeScale(n,t.seriesId):n.scale;const e=qy(n.type);return e&&T8(e,n),e}function T8(n,t){n&&t&&(t.domain&&n.domain(t.domain),t.range&&n.range(t.range),t.specified&&n.specified&&n.specified(t.specified))}function ne(n,t){if(!t)return n;const e=t.range(),i=Math.min(e[0],e[e.length-1]),s=Math.max(e[0],e[e.length-1]);return Math.min(Math.max(i,n),s)}function TM(n){return C(n==null?void 0:n.field)&&C(n==null?void 0:n.scale)}function Ex(n){switch(n){case"left":case"right":case"top":case"bottom":return!0;default:return!1}}function bn(n){return!!tt(n)&&!!n.endsWith("%")&&ih(n.substring(0,n.length-1))}function M8(n){return!!yt(n)&&("percent"in n||"offset"in n)}function $e(n,t,e,i=0){var s,r;return J(n)?n:bn(n)?Number(n.substring(0,n.length-1))*t/100:N(n)?n(e):yt(n)?t*((s=n.percent)!==null&&s!==void 0?s:0)+((r=n.offset)!==null&&r!==void 0?r:0):i}function lB(n,t,e){var i,s,r,a;const o={top:0,bottom:0,left:0,right:0};return Object.values(n).every(l=>J(l))?(o.top=(i=n.top)!==null&&i!==void 0?i:0,o.right=(s=n.right)!==null&&s!==void 0?s:0,o.bottom=(r=n.bottom)!==null&&r!==void 0?r:0,o.left=(a=n.left)!==null&&a!==void 0?a:0,o):([{orients:["left","right"],size:t.width},{orients:["top","bottom"],size:t.height}].forEach(l=>{l.orients.forEach(h=>{o[h]=$e(n[h],l.size,e)})}),o)}function w8(n,t){return n?{width:Math.ceil(Math.min(n.x2-n.x1,t.width)),height:Math.ceil(Math.min(n.y2-n.y1,t.height))}:{width:0,height:0}}function mr(n){let t={};return U(n)?(P(n[0])||(t.top=t.left=t.bottom=t.right=n[0]),P(n[1])||(t.left=t.right=n[1]),P(n[2])||(t.bottom=n[2]),P(n[3])||(t.left=n[3]),t):J(n)||bn(n)||N(n)||M8(n)?(t.top=t.left=t.bottom=t.right=n,t):(yt(n)&&(t=Object.assign({},n)),t)}function MM(n,t,e){return e?{x:n.x+t.x,y:n.y+t.y}:n}const bl=(n,t)=>{const e=Number(n),i=n.toString();return isNaN(e)&&i[i.length-1]==="%"?t*(Number(i.slice(0,i.length-1))/100):e},hB=[{maxDomainLength:10,scheme:["#1664FF","#1AC6FF","#FF8A00","#3CC780","#7442D4","#FFC400","#304D77","#B48DEB","#009488","#FF7DDA"]},{scheme:["#1664FF","#B2CFFF","#1AC6FF","#94EFFF","#FF8A00","#FFCE7A","#3CC780","#B9EDCD","#7442D4","#DDC5FA","#FFC400","#FAE878","#304D77","#8B959E","#B48DEB","#EFE3FF","#009488","#59BAA8","#FF7DDA","#FFCFEE"]}],C8={default:{dataScheme:hB,palette:{backgroundColor:"#ffffff",borderColor:"#e3e5e8",shadowColor:"rgba(33,37,44,0.1)",hoverBackgroundColor:"#f1f2f5",sliderRailColor:"#f1f3f4",sliderHandleColor:"#ffffff",sliderTrackColor:"#0040ff",popupBackgroundColor:"#ffffff",primaryFontColor:"#21252c",secondaryFontColor:"#606773",tertiaryFontColor:"#89909d",axisLabelFontColor:"#89909d",disableFontColor:"#bcc1cb",axisMarkerFontColor:"#ffffff",axisGridColor:"#f1f2f5",axisDomainColor:"#d9dde4",dataZoomHandleStrokeColor:"#aeb5be",dataZoomChartColor:"#c9ced8",playerControllerColor:"#0040ff",scrollBarSliderColor:"rgba(0,0,0,0.3)",axisMarkerBackgroundColor:"#21252c",markLabelBackgroundColor:"#f1f2f5",markLineStrokeColor:"#606773",dangerColor:"#e33232",warningColor:"#ffc528",successColor:"#07a35a",infoColor:"#3073f2",discreteLegendPagerTextColor:"rgb(51, 51, 51)",discreteLegendPagerHandlerColor:"rgb(47, 69, 84)",discreteLegendPagerHandlerDisableColor:"rgb(170, 170, 170)",emptyCircleColor:"#e3e5e8",linearProgressTrackColor:"#E7EBED"}}},P8={label:{visible:!1,offset:5,position:"top",style:{stroke:{type:"palette",key:"backgroundColor"},lineWidth:2}},point:{style:{symbolType:"circle"}},seriesMark:"area"},E8={label:{visible:!1,position:"outside",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}}},R8={bar3d:{style:{length:3}},label:{visible:!1,style:{offset:12,position:"outside"}}},O8={outerRadius:.8,innerRadius:.6,progress:{style:{fillOpacity:1}},track:{style:{fillOpacity:.2}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},B8={dot:{style:{size:10,fillOpacity:1}},symbol:{style:{size:10}},title:{style:{textAlign:"left",textBaseline:"middle",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}},subTitle:{style:{textAlign:"left",textBaseline:"top",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},dB=n=>{const t={label:{style:{fill:"white",textBaseline:"middle",lineWidth:2}},outerLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"secondaryFontColor"}},line:{style:{stroke:{type:"palette",key:"axisDomainColor"}}}},transformLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"secondaryFontColor"},textBaseline:"middle"}}};return t[n?"transform3d":"transform"]={style:{fill:{type:"palette",key:"axisGridColor"}}},t},L8=dB(),I8=dB(!0),D8={outerRadius:.8,innerRadius:.6,padAngle:1.146,segment:{style:{fillOpacity:1}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},F8="M-0.020059 -0.978425 C-0.018029 -0.9888053 -0.013378 -1 0 -1 C0.01342 -1 0.01812 -0.989146 0.0201 -0.978425 C0.02161 -0.9702819 0.0692 -0.459505 0.09486 -0.184807 C0.10298 -0.097849 0.1089 -0.034548 0.11047 -0.018339 C0.11698 0.04908 0.07373 0.11111 0.00002 0.11111 C-0.07369 0.11111 -0.117184 0.04991 -0.110423 -0.018339 C-0.103662 -0.086591 -0.022089 -0.9680447 -0.020059 -0.978425Z",wM="M1 0 C1 0.55228 0.55228 1 0 1 C-0.552285 1 -1 0.55228 -1 0 C-1 -0.552285 -0.552285 -1 0 -1 C0.55228 -1 1 -0.552285 1 0Z",z8={pointer:{type:"path",width:.4,height:.4,style:{path:F8}},pin:{width:.025,height:.025,style:{path:wM,fill:"#888"}},pinBackground:{width:.06,height:.06,style:{path:wM,fill:"#ddd"}}},j8={label:{visible:!1,position:"top",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},H8={bandWidth:30,progress:{style:{fillOpacity:1}},track:{style:{fill:{type:"palette",key:"linearProgressTrackColor"},fillOpacity:1}}},V8={arrow:{style:{size:10}}},W8={defaultFillColor:"#f3f3f3",area:{style:{lineWidth:.5,strokeOpacity:1,stroke:"black",fillOpacity:1}},label:{interactive:!1,style:{fontSize:{type:"token",key:"l6FontSize"},lineHeight:{type:"token",key:"l6LineHeight"},textBaseline:"middle",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"},stroke:{type:"palette",key:"backgroundColor"}}}},G8={outerRadius:.6,pie:{style:{fillOpacity:1}},label:{visible:!1,interactive:!0,position:"outside",style:{fontWeight:"normal",stroke:{type:"palette",key:"backgroundColor"},fillOpacity:1}},innerLabel:{style:{lineWidth:2}},emptyCircle:{style:{fill:{type:"palette",key:"emptyCircleColor"},fillOpacity:1}}},N8={outerRadius:.6,pie3d:{style:{height:10,fillOpacity:1}},label:{visible:!1,interactive:!0,position:"outside"}},U8={label:{visible:!1,offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},$8={point:{style:{size:8,symbolType:"circle",lineWidth:0,fillOpacity:.8}},label:{visible:!1,offset:5,position:"top",style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}}},Y8={seriesFieldName:{total:"total",increase:"increase",decrease:"decrease"},leaderLine:{style:{stroke:"black",lineWidth:1,lineDash:[4,4]}},stackLabel:{visible:!0,offset:12,position:"withChange",style:{fill:"black",fontSize:{type:"token",key:"l4FontSize"}}},label:{visible:!1,offset:12,position:"inside",style:{lineWidth:2}}},X8={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},K8={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},q8={gapWidth:1,nodePadding:[5],nonLeaf:{visible:!1,style:{fillOpacity:.5}},label:{style:{fill:"white",textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}},nonLeafLabel:{padding:24,style:{fill:"black",stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},textBaseline:"middle",textAlign:"center"}}},_t="__VCHART",xl=500,Sl=500,M0=`${_t}_ARC_TRANSFORM_VALUE`,Z8=`${_t}_ARC_RATIO`,CM=`${_t}_ARC_START_ANGLE`,PM=`${_t}_ARC_END_ANGLE`,J8=`${_t}_ARC_K`,ar=`${_t}_ARC_MIDDLE_ANGLE`,Q8=`${_t}_ARC_QUADRANT`,tX=`${_t}_ARC_RADIAN`,nm=-Math.PI/2,Rx=3*Math.PI/2,Ox=-90,cB=270,v_=.6,eX={innerRadius:0,outerRadius:1,startAngle:Ox,endAngle:cB,gap:0,labelLayout:{align:"center",offset:0,rotate:"radial"},sunburst:{style:{stroke:{type:"palette",key:"backgroundColor"},fillOpacity:1,cursor:"pointer"}},label:{visible:!0,style:{cursor:"pointer",fill:{type:"palette",key:"primaryFontColor"},fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},iX={label:{visible:!1,offset:5,position:"inside",style:{lineWidth:2,fill:{type:"palette",key:"axisMarkerFontColor"}},minLabel:{position:"end"},maxLabel:{position:"start"}}},nX={layoutPadding:5,circlePacking:{visible:!0,style:{cursor:"pointer",stroke:{type:"palette",key:"backgroundColor"}}},label:{visible:!0,style:{cursor:"pointer",fill:"black",stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},sX={cell:{style:{shape:"square",fillOpacity:1}},cellBackground:{visible:!1}},rX={link:{style:{fillOpacity:.15,round:!0}}},aX={rose:{style:{fillOpacity:1}},label:{style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"},textAlign:"center",textBaseline:"middle"}}},oX={boxPlot:{style:{lineWidth:1}},label:{style:{lineWidth:2}}},lX={centerLabel:{visible:!0,position:"center",style:{fill:"#fff",text:""}},label:{visible:!0,position:"bottom",style:{fill:"#000"}}},hX={outlinePadding:10,liquidBackground:{style:{lineWidth:0,fillOpacity:.2}},liquidOutline:{style:{lineWidth:2}}},dX={circle:{style:{opacity:.8},state:{hover:{opacity:1}}},overlap:{style:{opacity:.8},state:{hover:{opacity:1,stroke:"white",lineWidth:2}}},label:{visible:!0,style:{fill:"white",textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"}}},overlapLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},cX={label:{visible:!1,position:"center",style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},bar:{style:{lineWidth:1,stroke:{type:"palette",key:"backgroundColor"}}}},uX={scatter:$8,line:j8,area:P8,bar:E8,bar3d:R8,pie:G8,pie3d:N8,map:W8,radar:U8,dot:B8,link:V8,wordCloud:X8,wordCloud3d:K8,funnel:L8,funnel3d:I8,linearProgress:H8,circularProgress:O8,waterfall:Y8,gauge:D8,gaugePointer:z8,treemap:q8,sunburst:eX,rangeColumn:iX,circlePacking:nX,heatmap:sX,sankey:rX,rose:aX,boxPlot:oX,correlation:lX,liquid:hX,venn:dX,mosaic:cX},gX={text:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fillOpacity:1}}},pX={label:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fillOpacity:1,lineJoin:"bevel"}},area:{style:{fillOpacity:.2}},line:{style:{lineWidth:2,lineCap:"round",lineJoin:"round"}},point:{style:{size:8,stroke:{type:"palette",key:"backgroundColor"},lineWidth:1,fillOpacity:1}},word:{style:{fontWeight:null,fontSize:null}},fillingWord:{style:{fontWeight:null,fontSize:null}},sunburst:{style:{lineWidth:1,stroke:{type:"palette",key:"backgroundColor"}}},circlePacking:{style:{lineWidth:1,stroke:{type:"palette",key:"backgroundColor"}}},funnel3d:{style:{stroke:!1}},barBackground:{visible:!1,style:{fill:{type:"palette",key:"primaryFontColor",a:.06},stroke:"transparent"}}},_X={domainLine:{visible:!0},grid:{visible:!1},subGrid:{visible:!1},tick:{visible:!0},subTick:{visible:!1}},uB={label:{space:8},title:{space:8},maxHeight:"30%",unit:{visible:!1,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}}},fX={label:{space:12,autoLimit:!0},title:{space:12,autoRotate:!0},maxWidth:"30%",unit:{visible:!1,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}}},mX=Object.assign(Object.assign({},uB),{label:{space:0}}),vX={domainLine:{visible:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},grid:{visible:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisGridColor"},strokeOpacity:1,lineDash:[]}},subGrid:{visible:!1,style:{lineWidth:1,stroke:{type:"palette",key:"axisGridColor"},strokeOpacity:1,lineDash:[4,4]}},tick:{visible:!0,inside:!1,tickSize:4,alignWithLabel:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},subTick:{visible:!1,tickSize:2,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},label:{visible:!0,inside:!1,space:10,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}},title:{space:10,padding:0,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor"},fontWeight:"normal",fillOpacity:1}}},yX={domainLine:{visible:!1},grid:{visible:!0},subGrid:{visible:!1},tick:{visible:!1},subTick:{visible:!1}},bX={grid:{smooth:!0,visible:!0},subGrid:{smooth:!0,visible:!1}},xX={grid:{visible:!0,style:{lineDash:[6,6]}},label:{space:5}},SX={style:{fill:"#B0C8F9",fillOpacity:.2,stroke:"#B0C8F9",lineWidth:2},brushMode:"single",brushType:"rect",brushMoved:!0,removeOnClick:!0,delayType:"throttle",delayTime:0},AX={trigger:"hover",bandField:{visible:!1,line:{type:"rect",visible:!0,style:{fill:{type:"palette",key:"axisGridColor"},opacity:.7,lineWidth:0,stroke:{type:"palette",key:"markLineStrokeColor"},lineDash:[2,3]}},label:{visible:!1,style:{fontWeight:"normal",fill:{type:"palette",key:"axisMarkerFontColor"},fontSize:{type:"token",key:"l5FontSize"}},labelBackground:{padding:{bottom:0,top:0,left:2,right:2},style:{fill:{type:"palette",key:"axisMarkerBackgroundColor"},cornerRadius:1}}}},linearField:{visible:!1,line:{type:"line",visible:!0,style:{stroke:{type:"palette",key:"markLineStrokeColor"},fill:"transparent",opacity:.7,lineDash:[2,3]}},label:{visible:!1,style:{fontWeight:"normal",fill:{type:"palette",key:"axisMarkerFontColor"},fontSize:{type:"token",key:"l5FontSize"}},labelBackground:{padding:{bottom:0,top:0,left:2,right:2},style:{fill:{type:"palette",key:"axisMarkerBackgroundColor"},cornerRadius:1}}}}},kX=`M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3 +C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6 +C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6 +C0.3-1.4,0.3-1.4,0.3-1.4z;`,EM=()=>({style:{symbolType:kX,fill:{type:"palette",key:"sliderHandleColor"},scaleX:1.2,scaleY:1.2,stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},lineWidth:1}}),RM=n=>({area:{style:{visible:n,stroke:!1,fill:{type:"palette",key:"dataZoomChartColor"}}},line:{style:{visible:n,stroke:{type:"palette",key:"dataZoomChartColor"},lineWidth:1}}}),TX={padding:[12,0],showDetail:"auto",brushSelect:!1,middleHandler:{visible:!1,background:{size:6,style:{stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},cornerRadius:2}},icon:{style:{size:4,fill:{type:"palette",key:"sliderHandleColor"},stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},symbolType:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",lineWidth:.5}}},background:{size:20,style:{fill:{type:"palette",key:"sliderRailColor"},lineWidth:0}},selectedBackground:{style:{fill:{type:"palette",key:"sliderTrackColor"},fillOpacity:.1,outerBorder:{stroke:{type:"palette",key:"sliderTrackColor"},strokeOpacity:.2,distance:-.5,lineWidth:1}}},selectedBackgroundChart:RM(!1),startHandler:EM(),endHandler:EM(),startText:{padding:8,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}}},endText:{padding:8,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}}},backgroundChart:RM(!0)},OM=(n,t)=>({fontSize:{type:"token",key:n},fill:{type:"palette",key:t},fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}),MX={title:{visible:!0,autoLimit:!1,autoFit:!1,style:OM("l1FontSize","primaryFontColor")},content:{visible:!0,style:OM("l2FontSize","tertiaryFontColor")}},gB={orient:"right",position:"middle",padding:[16,24],title:{visible:!1,padding:0,textStyle:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"primaryFontColor"}},space:12},handler:{visible:!0},startText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6},endText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6},handlerText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6}},BM=n=>{const t={width:200,height:8,style:{fill:{type:"palette",key:"sliderRailColor"}}};return n?(t.width=200,t.height=8):(t.width=8,t.height=200),Object.assign(Object.assign({},gB),{rail:t,handler:{style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:"#ffffff"},shadowBlur:12,shadowOffsetX:0,shadowOffsetY:4,shadowColor:{type:"palette",key:"shadowColor"}}}})},wX={horizontal:BM(!0),vertical:BM(!1)},CX={orient:"bottom",position:"middle",padding:[16,24],title:{visible:!1,padding:0,textStyle:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"primaryFontColor"},fontWeight:"normal"},space:12},pager:{textStyle:{fill:{type:"palette",key:"discreteLegendPagerTextColor"}},handler:{style:{fill:{type:"palette",key:"discreteLegendPagerHandlerColor"}},state:{disable:{fill:{type:"palette",key:"discreteLegendPagerHandlerDisableColor"}}}}},item:{visible:!0,spaceCol:10,spaceRow:6,padding:2,background:{state:{selectedHover:{fill:{type:"palette",key:"hoverBackgroundColor"}},unSelectedHover:{fill:{type:"palette",key:"hoverBackgroundColor"}}}},shape:{space:6,style:{lineWidth:0,fillOpacity:1,opacity:1},state:{unSelected:{fillOpacity:.2,opacity:1}}},label:{space:6,style:{fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"},fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},opacity:1},state:{unSelected:{fill:{type:"palette",key:"disableFontColor"},opacity:1}}}},allowAllCanceled:!1},LM=n=>{const t={style:{fill:{type:"palette",key:"sliderRailColor"}}};return n?(t.width=200,t.height=4):(t.height=200,t.width=4),Object.assign(Object.assign({},gB),{sizeBackground:{fill:{type:"palette",key:"dataZoomChartColor"}},track:{style:{fill:{type:"palette",key:"sliderTrackColor",a:.8}}},rail:t,handler:{style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:{type:"palette",key:"sliderTrackColor"}},fill:{type:"palette",key:"sliderHandleColor"}}}})},PX={horizontal:LM(!0),vertical:LM(!1)},EX={visible:!0,offset:12,position:"top",space:10,nameLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:{type:"token",key:"l6FontSize"}}},valueLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:{type:"token",key:"l6FontSize"}}},background:{visible:!0,padding:{top:4,bottom:4,left:6,right:6},style:{cornerRadius:2,lineWidth:1,fill:"white",stroke:"grey"}},leader:{visible:!1,style:{lineWidth:1,stroke:"red"}}},IM={area:{style:{fill:{type:"palette",key:"axisDomainColor",a:.25}}},label:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fontStyle:"normal",fill:{type:"palette",key:"primaryFontColor"}},labelBackground:{padding:{top:2,bottom:2,right:4,left:4},style:{cornerRadius:3,fill:{type:"palette",key:"markLabelBackgroundColor"}}}}},DM=n=>({visible:n,symbolType:"triangle",size:10,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}}),FM={line:{style:{lineDash:[3,3],stroke:{type:"palette",key:"markLineStrokeColor"}}},startSymbol:DM(!1),endSymbol:DM(!0),label:{refY:5,style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fontStyle:"normal",fill:{type:"palette",key:"primaryFontColor"}},labelBackground:{padding:{top:2,bottom:2,right:4,left:4},style:{cornerRadius:3,fill:{type:"palette",key:"markLabelBackgroundColor"}}}}},w0={itemLine:{decorativeLine:{visible:!1},startSymbol:{size:5,visible:!0,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},endSymbol:{style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},line:{style:{stroke:{type:"palette",key:"markLineStrokeColor"}}}},itemContent:{offsetY:-50}},RX={visible:!0,position:"start",padding:{top:20,bottom:20},slider:{space:10,trackStyle:{fill:{type:"palette",key:"sliderTrackColor"},fillOpacity:.8},railStyle:{fill:{type:"palette",key:"sliderRailColor"}},handlerStyle:{size:15,stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fill:{type:"palette",key:"playerControllerColor"}}},controller:{start:{order:0,space:10,position:"start",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},pause:{order:0,space:10,position:"start",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},backward:{order:0,space:10,position:"start",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},forward:{order:0,space:10,position:"start",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}}}},OX={padding:{top:4,bottom:20},textStyle:{fontSize:{type:"token",key:"l3FontSize"},lineHeight:{type:"token",key:"l3LineHeight"},fill:{type:"palette",key:"primaryFontColor"}},subtextStyle:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fill:{type:"palette",key:"tertiaryFontColor"}}},BX={offset:{x:10,y:10},panel:{padding:{top:10,left:10,right:10,bottom:10},backgroundColor:{type:"palette",key:"popupBackgroundColor"},border:{color:{type:"palette",key:"popupBackgroundColor"},width:0,radius:3},shadow:{x:0,y:4,blur:12,spread:0,color:{type:"palette",key:"shadowColor"}}},spaceRow:6,titleLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"primaryFontColor"},fontWeight:"bold",textBaseline:"middle",spacing:0},shape:{size:8,spacing:6},keyLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"secondaryFontColor"},textBaseline:"middle",spacing:26},valueLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"primaryFontColor"},fontWeight:"bold",textBaseline:"middle",spacing:0}},LX={visible:!0,position:"auto",padding:8,titleStyle:{fontSize:{type:"token",key:"l5FontSize"},fontWeight:"bold",fill:{type:"palette",key:"primaryFontColor"}},contentStyle:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"primaryFontColor"}},panel:{visible:!0,fill:{type:"palette",key:"popupBackgroundColor"},cornerRadius:3,lineWidth:0,shadowBlur:12,shadowOffsetX:0,shadowOffsetY:4,shadowColor:{type:"palette",key:"shadowColor"},size:0,space:12}},IX={visible:!1,offset:5,overlap:{clampForce:!0,strategy:[]},smartInvert:!1,animation:!1,style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"primaryFontColor"}}},DX={horizontal:{height:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}},vertical:{width:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}}},FX={discreteLegend:CX,colorLegend:wX,sizeLegend:PX,axis:vX,axisBand:_X,axisLinear:yX,axisX:uB,axisY:fX,axisZ:mX,axisAngle:xX,axisRadius:bX,markLine:FM,markArea:IM,markPoint:w0,polarMarkLine:FM,polarMarkArea:IM,polarMarkPoint:w0,geoMarkPoint:w0,tooltip:BX,dataZoom:TX,crosshair:AX,player:RX,brush:SX,indicator:MX,title:OX,mapLabel:EX,poptip:LX,totalLabel:IX,scrollBar:DX};function zX(n,t){return n&&t.key in n?n[t.key]:t.default}function jX(n){return n&&n.type==="token"&&!!n.key}const y_={fontFamily:"PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",fontSize:14,l1FontSize:32,l1LineHeight:"150%",l2FontSize:20,l2LineHeight:"140%",l3FontSize:16,l3LineHeight:"150%",l4FontSize:14,l4LineHeight:"150%",l5FontSize:12,l5LineHeight:"130%",l6FontSize:10,l6LineHeight:"120%"},Zy={name:"light",background:{type:"palette",key:"backgroundColor"},padding:20,fontFamily:{type:"token",key:"fontFamily"},colorScheme:C8,token:y_,mark:gX,markByName:pX,series:uX,component:FX,animationThreshold:2e3},HX={default:{dataScheme:hB,palette:{backgroundColor:"#202226",borderColor:"#404349",shadowColor:"rgba(0,0,0,0.1)",hoverBackgroundColor:"#404349",sliderRailColor:"#404349",sliderHandleColor:"#202226",sliderTrackColor:"#4284FF",popupBackgroundColor:"#404349",primaryFontColor:"#fdfdfd",secondaryFontColor:"#bbbdc3",tertiaryFontColor:"#888c93",axisLabelFontColor:"#888c93",disableFontColor:"#55595f",axisMarkerFontColor:"#202226",axisGridColor:"#404349",axisDomainColor:"#4b4f54",dataZoomHandleStrokeColor:"#bbbdc3",dataZoomChartColor:"#55595F",playerControllerColor:"#4284FF",scrollBarSliderColor:"rgba(255,255,255,0.3)",axisMarkerBackgroundColor:"#fdfdfd",markLabelBackgroundColor:"#404349",markLineStrokeColor:"#bbbdc3",dangerColor:"#eb4b4b",warningColor:"#f0bd30",successColor:"#14b267",infoColor:"#4284ff",discreteLegendPagerTextColor:"#BBBDC3",discreteLegendPagerHandlerColor:"#BBBDC3",discreteLegendPagerHandlerDisableColor:"#55595F",emptyCircleColor:"#bbbdc3",linearProgressTrackColor:"#404349"}}},zM={name:"dark",colorScheme:HX,component:{dataZoom:{selectedBackground:{style:{fillOpacity:.4,outerBorder:{strokeOpacity:.4}}}}}},Mg=(n,t,e)=>{if(P(t))return n;const i=t[0];return P(i)?n:t.length===1?(n[i]=e,n):(P(n[i])&&(typeof t[1]=="number"?n[i]=[]:n[i]={}),Mg(n[i],t.slice(1),e))},VX=(n,t,e)=>{if(!P(t))return wt(n,t,e)};function gt(n,...t){let e=-1;const i=t.length;for(;++e{if(yt(t))t.type===s&&(U(n[s])?n[s].length>=t.index&&(n[s][t.index]=i?gt({},n[s][t.index],e):e):n[s]=i?gt({},n[s],e):e);else if(U(n[s])){const r=n[s].findIndex(a=>a.id===t);r>=0&&(n[s][r]=i?gt({},n[s][r],e):e)}else n.id===t&&(n[s]=i?gt({},n[s],e):e)})}let D=class Ut{static registerChart(t,e){Ut._charts[t]=e}static registerSeries(t,e){Ut._series[t]=e}static registerComponent(t,e,i){Ut._components[t]={cmp:e,alwaysCheck:i}}static registerMark(t,e){Ut._marks[t]=e}static registerRegion(t,e){Ut._regions[t]=e}static registerTransform(t,e){Ut.transforms[t]=e}static registerLayout(t,e){Ut._layout[t]=e}static registerAnimation(t,e){Ut._animations[t]=e}static registerImplement(t,e){Ut._implements[t]=e}static registerChartPlugin(t,e){Ut._chartPlugin[t]=e}static registerComponentPlugin(t,e){Ut._componentPlugin[t]=e}static createChart(t,e,i){return Ut._charts[t]?new Ut._charts[t](e,i):null}static createChartSpecTransformer(t,e){if(!Ut._charts[t])return null;const i=Ut._charts[t];return new i.transformerConstructor(Object.assign({seriesType:i.seriesType},e))}static createRegion(t,e,i){return Ut._regions[t]?new Ut._regions[t](e,i):null}static createRegionSpecTransformer(t,e){return Ut._regions[t]?new Ut._regions[t].transformerConstructor(e):null}static createSeries(t,e,i){return Ut._series[t]?new Ut._series[t](e,i):null}static createSeriesSpecTransformer(t,e){return Ut._series[t]?new Ut._series[t].transformerConstructor(e):null}static createMark(t,e,i){if(!Ut._marks[t])return null;const s=new Ut._marks[t](e,i);return s.type==="group"&&s.setMarkConfig({interactive:!1}),s}static getComponents(){return Object.values(Ut._components)}static getComponentInKey(t){return Ut._components[t].cmp}static getLayout(){return Object.values(Ut._layout)}static getLayoutInKey(t){return Ut._layout[t]}static getSeries(){return Object.values(Ut._series)}static getSeriesInType(t){return Ut._series[t]}static getRegionInType(t){return Ut._regions[t]}static getAnimationInKey(t){return Ut._animations[t]}static getImplementInKey(t){return Ut._implements[t]}static getSeriesMarkMap(t){return Ut._series[t]?Ut._series[t].mark:{}}static getChartPlugins(){return Object.values(Ut._chartPlugin)}static getComponentPlugins(){return Object.values(Ut._componentPlugin)}static getComponentPluginInType(t){return Ut._componentPlugin[t]}static registerFormatter(t){this._formatter=t}static getFormatter(){return this._formatter}};D._charts={},D._series={},D._components={},D._marks={},D._regions={},D._animations={},D._implements={},D._chartPlugin={},D._componentPlugin={},D.transforms={fields:oE,filter:dF,fold:bz},D.dataParser={csv:dE,dsv:hE,tsv:cE},D._layout={};function wg(n,...t){return gt(HM(n),...t.map(HM))}function HM(n){var t;if(!n)return n;const e=WX(n.colorScheme);return Object.assign({},n,{colorScheme:e,token:(t=n.token)!==null&&t!==void 0?t:{},series:Object.assign({},n.series)})}function WX(n){return n&&(n=Object.keys(n).reduce((t,e)=>{const i=n[e];return t[e]=S8(i),t},{})),n}function GX(n,t,e,i){const s=D.getSeriesMarkMap(t);if(!s)return n;const r={};return Object.values(s).forEach(({type:a,name:o})=>{r[o]=gt({},e==null?void 0:e[j(a)[0]],i==null?void 0:i[o],n==null?void 0:n[o])}),Object.assign(Object.assign({},n),r)}const NX=["animationThreshold","colorScheme","name","padding"];function sm(n,t,e,i){if(!n)return n;t||(t=n.colorScheme),e||(e=n.token);const s={};return Object.keys(n).forEach(r=>{const a=n[r];NX.includes(r)?s[r]=a:Ls(a)?m_(a)?s[r]=x8(a,t,i):jX(a)?s[r]=zX(e,a):s[r]=sm(a,t,e,i):s[r]=a}),s}const wc={[Zy.name]:Zy},yu=Zy.name,oh=new Map(Object.keys(wc).map(n=>[n,wc[n]])),Bx=new Map(Object.keys(wc).map(n=>[n,sm(wc[n])])),b_=new Map(Object.keys(wc).map(n=>[n,n===yu])),Lx=(n,t)=>{if(!n)return;const e=YX(t);oh.set(n,e),Bx.set(n,sm(e)),b_.set(n,!0)},pB=(n=yu,t=!1)=>(b_.has(n)&&!b_.get(n)&&Lx(n,oh.get(n)),t?Bx.get(n):oh.get(n)),UX=n=>oh.delete(n)&&Bx.delete(n)&&b_.delete(n),$X=n=>!!tt(n)&&oh.has(n),YX=n=>{var t;const e=(t=n.type)!==null&&t!==void 0?t:yu,i=pB(e);return wg({},i,n)};class Fn{static registerInstance(t){Fn.instances.set(t.id,t)}static unregisterInstance(t){Fn.instances.delete(t.id)}static getInstance(t){return Fn.instances.get(t)}static instanceExist(t){return Fn.instances.has(t)}static forEach(t,e=[],i){const s=j(e);return Fn.instances.forEach((r,a,o)=>{s.includes(a)||t(r,a,o)},i)}}Fn.instances=new Map;let ia=class Na{static registerTheme(t,e){Lx(t,e)}static getTheme(t,e=!1){return pB(t,e)}static removeTheme(t){return UX(t)}static themeExist(t){return $X(t)}static getDefaultTheme(){return Na.themes.get(yu)}static setCurrentTheme(t){Na.themeExist(t)&&(Na._currentThemeName=t,Fn.forEach(e=>e==null?void 0:e.setCurrentTheme(t)))}static getCurrentTheme(t=!1){return Na.getTheme(Na._currentThemeName,t)}static getCurrentThemeName(){return Na._currentThemeName}};ia.themes=oh,ia._currentThemeName=yu;function Br(n,t){return tt(n)?ia.themeExist(n)?ia.getTheme(n,t):{}:yt(n)?n:{}}function Jy(n,t={data:e=>e}){if(!n)return n;if(n.constructor===Object){const e={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(t[i]){e[i]=t[i](n[i]);continue}e[i]=Jy(n[i],t)}return e}return U(n)?n.map(e=>Jy(e,t)):n}function Qy(n,t){if(!n)return n;if(Ls(n)){const e={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(tt(n[i])&&t.getFunction(n[i])){e[i]=t.getFunction(n[i]);continue}e[i]=Qy(n[i],t)}return e}return U(n)?n.map(e=>Qy(e,t)):n}const XX=(n,t,e)=>jl(n,t,e,{fontFamily:y_.fontFamily,fontSize:y_.fontSize}),KX=(n,t,e,i)=>XX(t,e,i).measure(n),Mi=`${_t}_DEFAULT_DATA_INDEX`,ds=`${_t}_DEFAULT_DATA_KEY`,sn=`${_t}_DEFAULT_DATA_SERIES_FIELD`,VM=`${_t}_DEFAULT_SERIES_STYLE_NAME`,qX=`${_t}_STACK_KEY`,Un=`${_t}_STACK_START`,on=`${_t}_STACK_END`,bo=`${_t}_STACK_START_PERCENT`,ka=`${_t}_STACK_END_PERCENT`,tb=`${_t}_STACK_START_OffsetSilhouette`,eb=`${_t}_STACK_END_OffsetSilhouette`,_B=`${_t}_STACK_TOTAL`,ZX=`${_t}_STACK_TOTAL_PERCENT`,Cc=`${_t}_STACK_TOTAL_TOP`,fB=`${_t}_STACK_TOTAL_BOTTOM`,Cg=`${_t}_SEGMENT_START`,C0=`${_t}_SEGMENT_END`;function Hl(n,t){for(let e=0;ee.key===t)}function x_(n,t){var e;if(!n)return t??null;const i=n.getFields();return i&&i[t]?(e=i[t].alias)!==null&&e!==void 0?e:t:t??null}function mB(n,t,e){const i=n.getStackSort(),s={};let r=null;return i&&(r={},n.getSeries().forEach(a=>{const o=a.getSeriesField();if(o){const l=a.getRawDataStatisticsByField(o);l.values&&(r[o]||(r[o]={lastIndex:0,sort:{}}),l.values.forEach((h,d)=>{h in r[o].sort||(r[o].sort[h]=r[o].lastIndex,r[o].lastIndex++)}))}})),n.getSeries().forEach(a=>{var o;const l=a.getStackData(),h=a.getStackValue(),d=a.getStackValueField(),c=!e||e(a);l&&d&&c&&(s[h]=(o=s[h])!==null&&o!==void 0?o:{groupField:l.groupField,nodes:{}},xB(a,l,s[h],d,t,r))}),i?vB(s):s}function vB(n,t){var e;for(const i in n)!((e=n[i].sortDatums)===null||e===void 0)&&e.length?(n[i].sortDatums.sort((s,r)=>s.index-r.index),n[i].values=n[i].sortDatums.map(s=>s.datum)):vB(n[i].nodes);return n}function yB(n,t){if("values"in n&&n.values.length){const e=iB(n.values,t),i=wx(n.values,ka);n.values.forEach(s=>{s[_B]=e,s[ZX]=i})}else for(const e in n.nodes)yB(n.nodes[e],t)}function QX(n){if(!n.values.length)return;const t=n.values[n.values.length-1][on]/2;for(let e=0;e0){let o=0,l=0,h=1,d=0,c=null,u=null;const g=n.values.length;for(let p=0;p=0?(_[s.start]=o,o+=_[s.end],_[s.end]=o):(_[s.start]=l,l+=_[s.end],_[s.end]=l),_[s.key]=n.key,a&&(delete _[s.max],(!u||_[s.end]>u[s.end])&&(u=_)),r&&(delete _[s.min],(!c||_[s.start]=0?o:l;h=d>=0?1:-1,_[s.startPercent]=f===0?0:Math.min(1,_[s.start]/f)*h,_[s.endPercent]=f===0?0:Math.min(1,_[s.end]/f)*h}}for(const o in n.nodes)bB(n.nodes[o],t,e,i,s)}function xB(n,t,e,i,s,r,a){var o;if("values"in t)if(s&&t.values.forEach(l=>l[on]=p5(l[i])),e.series.push({s:n,values:t.values}),r){const l=n.getSeriesField();t.values.forEach(h=>{e.sortDatums.push({series:n,datum:h,index:l?r[l].sort[h[l]]:0})})}else e.values.push(...t.values);else for(const l in t.nodes){const h=a?`${a}_${l}`:l;e.nodes[l]||(e.nodes[l]={values:[],series:[],nodes:{},sortDatums:[],key:h},C((o=t.nodes[l])===null||o===void 0?void 0:o.groupField)&&(e.nodes[l].groupField=t.nodes[l].groupField)),xB(n,t.nodes[l],e.nodes[l],i,s,r,h)}}const SB=(n,t,e="key",i="children")=>{for(let s=0;s{for(let s=0;s{const s=[],r=(a,o)=>{for(const l of a){if(l[e]===t)return s.push(...o,l[e].toString()),!0;if(l[i]){const h=r(l[i],[...o,l[e]]);if(h===!0)return h}}return!1};return r(n,[]),s};function e7(n,t="value",e="children"){return!!yt(n)&&!!n.hasOwnProperty(e)&&Array.isArray(n[e])}function kB(n,t,e,i="value",s="children"){return Array.isArray(n)?n.map(r=>{const a=Object.assign({},r);return Array.isArray(a[s])&&(a[s]=kB(a[s],t,e,i,s)),a}).filter(r=>+r[i]>=t&&+r[i]<=e||r[s]&&r[s].length>0):n}function is(n={}){const t=Object.assign({},n);if(N(n.style)?t.style=(e,i,s,r)=>mt(n.style(e,i,s,r)):ht(n.style)||(t.style=mt(n.style)),!ht(n.state)){const e={};Object.keys(n.state).forEach(i=>{N(n.state[i])?e[i]=(s,r,a,o)=>mt(n.state[i](s,r,a,o)):ht(n.state[i])||(e[i]=mt(n.state[i]))}),t.state=e}return t}function Zo(n){if(ht(n))return null;const t={};return Object.keys(n).forEach(e=>{N(n[e])?t[e]=(i,s,r,a)=>mt(n[e](i,s,r,a)):ht(n[e])||(t[e]=mt(n[e]))}),t}function i7(n){if(ht(n))return null;const t={};return Object.keys(n).forEach(e=>{N(n[e])?t[e]=(i,s,r,a)=>mt(n[e](i.rawValue,s,i,r,a)):ht(n[e])||(t[e]=mt(n[e]))}),t}function WM(n,t){if(ht(n))return null;const e={};return Object.keys(n).forEach(i=>{N(n[i])?e[i]=n[i](t):e[i]=n[i]}),mt(e)}function mt(n){return n!=null&&n.angle&&(n.angle=te(n.angle)),n}var Nr;(function(n){n.enter="enter",n.update="update",n.exit="exit",n.group="group",n.connectNulls="connectNulls"})(Nr||(Nr={}));var Zt;(function(n){n.enter="enter",n.update="update",n.exit="exit",n.unChange="unChange"})(Zt||(Zt={}));var Q;(function(n){n.arc="arc",n.arc3d="arc3d",n.area="area",n.image="image",n.line="line",n.path="path",n.rect="rect",n.rect3d="rect3d",n.rule="rule",n.shape="shape",n.symbol="symbol",n.text="text",n.richtext="richtext",n.polygon="polygon",n.pyramid3d="pyramid3d",n.circle="circle",n.cell="cell",n.interval="interval",n.group="group",n.glyph="glyph",n.component="component",n.largeRects="largeRects",n.largeSymbols="largeSymbols"})(Q||(Q={}));var ke;(function(n){n.axis="axis",n.grid="grid",n.legend="legend",n.slider="slider",n.label="label",n.datazoom="datazoom",n.player="player",n.title="title",n.scrollbar="scrollbar"})(ke||(ke={}));var GM;(function(n){n[n.player=1]="player",n[n.rollUp=2]="rollUp",n[n.drillDown=3]="drillDown",n[n.slider=4]="slider",n[n.datazoom=5]="datazoom",n[n.legend=6]="legend",n[n.scrollbar=7]="scrollbar",n[n.brush=8]="brush",n[n.normal=9]="normal"})(GM||(GM={}));var Rs;(function(n){n.lineAxis="lineAxis",n.circleAxis="circleAxis"})(Rs||(Rs={}));var hi;(function(n){n.lineAxisGrid="lineAxisGrid",n.circleAxisGrid="circleAxisGrid"})(hi||(hi={}));var NM;(function(n){n.discreteLegend="discreteLegend",n.colorLegend="colorLegend",n.sizeLegend="sizeLegend"})(NM||(NM={}));var UM;(function(n){n.lineCrosshair="lineCrosshair",n.rectCrosshair="rectCrosshair",n.sectorCrosshair="sectorCrosshair",n.circleCrosshair="circleCrosshair",n.polygonCrosshair="polygonCrosshair",n.ringCrosshair="ringCrosshair"})(UM||(UM={}));var $M;(function(n){n.symbolLabel="symbolLabel",n.rectLabel="rectLabel",n.lineLabel="lineLabel",n.dataLabel="dataLabel"})($M||($M={}));var YM;(function(n){n.continuousPlayer="continuousPlayer",n.discretePlayer="discretePlayer"})(YM||(YM={}));var ir;(function(n){n.before="before",n.layouting="layouting",n.reevaluate="reevaluate",n.after="after"})(ir||(ir={}));var ut;(function(n){n.BEFORE_EVALUATE_DATA="beforeEvaluateData",n.AFTER_EVALUATE_DATA="afterEvaluateData",n.BEFORE_EVALUATE_SCALE="beforeEvaluateScale",n.AFTER_EVALUATE_SCALE="afterEvaluateScale",n.BEFORE_PARSE_VIEW="beforeParseView",n.AFTER_PARSE_VIEW="afterParseView",n.BEFORE_TRANSFORM="beforeTransform",n.AFTER_TRANSFORM="afterTransform",n.BEFORE_CREATE_VRENDER_STAGE="beforeCreateVRenderStage",n.AFTER_CREATE_VRENDER_STAGE="afterCreateVRenderStage",n.BEFORE_CREATE_VRENDER_LAYER="beforeCreateVRenderLayer",n.AFTER_CREATE_VRENDER_LAYER="afterCreateVRenderLayer",n.BEFORE_STAGE_RESIZE="beforeStageResize",n.AFTER_STAGE_RESIZE="afterStageResize",n.BEFORE_VRENDER_DRAW="beforeVRenderDraw",n.AFTER_VRENDER_DRAW="afterVRenderDraw",n.BEFORE_MARK_JOIN="beforeMarkJoin",n.AFTER_MARK_JOIN="afterMarkJoin",n.BEFORE_MARK_UPDATE="beforeMarkUpdate",n.AFTER_MARK_UPDATE="afterMarkUpdate",n.BEFORE_MARK_STATE="beforeMarkState",n.AFTER_MARK_STATE="afterMarkState",n.BEFORE_MARK_ENCODE="beforeMarkEncode",n.AFTER_MARK_ENCODE="afterMarkEncode",n.BEFORE_DO_LAYOUT="beforeDoLayout",n.AFTER_DO_LAYOUT="afterDoLayout",n.BEFORE_MARK_LAYOUT_END="beforeMarkLayoutEnd",n.AFTER_MARK_LAYOUT_END="afterMarkLayoutEnd",n.BEFORE_DO_RENDER="beforeDoRender",n.AFTER_DO_RENDER="afterDoRender",n.BEFORE_MARK_RENDER_END="beforeMarkRenderEnd",n.AFTER_MARK_RENDER_END="afterMarkRenderEnd",n.BEFORE_CREATE_VRENDER_MARK="beforeCreateVRenderMark",n.AFTER_CREATE_VRENDER_MARK="afterCreateVRenderMark",n.BEFORE_ADD_VRENDER_MARK="beforeAddVRenderMark",n.AFTER_ADD_VRENDER_MARK="afterAddVRenderMark",n.AFTER_VRENDER_NEXT_RENDER="afterVRenderNextRender",n.BEFORE_ELEMENT_UPDATE_DATA="beforeElementUpdateData",n.AFTER_ELEMENT_UPDATE_DATA="afterElementUpdateData",n.BEFORE_ELEMENT_STATE="beforeElementState",n.AFTER_ELEMENT_STATE="afterElementState",n.BEFORE_ELEMENT_ENCODE="beforeElementEncode",n.AFTER_ELEMENT_ENCODE="afterElementEncode",n.ANIMATION_START="animationStart",n.ANIMATION_END="animationEnd",n.ELEMENT_ANIMATION_START="elementAnimationStart",n.ELEMENT_ANIMATION_END="elementAnimationEnd",n.ALL_ANIMATION_START="allAnimationStart",n.ALL_ANIMATION_END="allAnimationEnd"})(ut||(ut={}));var ib;(function(n){n.signal="signal",n.data="data",n.scale="scale",n.coordinate="coordinate",n.mark="mark"})(ib||(ib={}));var Xi;(function(n){n.active="active",n.selected="selected",n.highlight="highlight",n.blur="blur"})(Xi||(Xi={}));const na="__vgrammar_scene_item__",TB=[Q.line,Q.area],n7=[Q.arc3d,Q.rect3d,Q.pyramid3d],tn="key",Pg=[{}],s7=["key"],r7=!0,a7=!0,o7=!1,l7=null,h7=!0,XM="VGRAMMAR_IMMEDIATE_ANIMATION",KM=0,MB=1e3,nb=0,qM=0,ZM=!1,sb=!1,rb="quintInOut",JM={stopWhenStateChange:!1,immediatelyApply:!0},d7="VGRAMMAR_ANIMATION_PARAMETERS",xo="_mo_hide_";function wB(n,t){return j(n).reduce((e,i)=>{const s=tt(i)?t.getGrammarById(i):i;return s&&e.push(s),e},[])}function c7(n){return!N(n)&&!!(n!=null&&n.signal)}function u7(n){return!N(n)&&!!(n!=null&&n.callback)}function Li(n,t){if(P(n))return[];if(c7(n)){const e=n.signal;if(tt(e))return j(t.getGrammarById(e));if((e==null?void 0:e.grammarType)==="signal")return[e]}else if(u7(n))return wB(n.dependency,t);return[]}function Qa(n){return N(n)||(n==null?void 0:n.signal)||!!(n!=null&&n.callback)}function ri(n,t,e,i){if(P(n))return n;if(N(n))return i?n.call(null,e,i,t):n.call(null,e,t);if(n.signal){const s=n.signal;return tt(s)?t==null?void 0:t[s]:s.output()}return n.callback?i?n.callback.call(null,e,i,t):n.callback.call(null,e,t):n}function g7(n,t){if(P(n))return n;if(N(n))return n.call(null,t);if(n.signal){const e=n.signal;return tt(e)?t==null?void 0:t[e]:e.output()}return n.callback?n.callback.call(null,t):n}function Pc(n,t){return bu(n)?n.output():t[n]}function p7(n){return n&&(n.signal||n.callback)}const bu=n=>n&&!P(n.grammarType),vd=n=>N(n)?n:t=>t[n];function rm(n){return!!(n!=null&&n.scale)}function Ix(n){return!!(n!=null&&n.field)}function Ha(n,t){if(!n)return[];let e=[];return n.scale&&(e=bu(n.scale)?[n.scale]:j(t.getScaleById(n.scale))),e.concat(Li(n,t))}function S_(n,t){switch(t){case"line":return n.some(e=>["x","y","defined"].includes(e));case"area":return n.some(e=>["x","y","x1","y1","defined"].includes(e));case"largeRects":return n.some(e=>["x","y","width","y1"].includes(e));case"largeSymbols":return n.some(e=>["x","y"].includes(e))}return!1}function _7(n){const{x:t,y:e,x1:i,y1:s}=n;return H(t)&&H(e)&&H(i)&&H(s)?[{x:t,y:e},{x:i,y:s}]:[]}function f7(n,t,e,i){return!n||!n.length||n.length===1&&!t?[]:n.some(s=>S_(Object.keys(s.nextAttrs),"line"))?n.map((s,r)=>{var a;const o=s.nextAttrs,{x:l,y:h,x1:d,y1:c,defined:u}=(a=e==null?void 0:e[r])!==null&&a!==void 0?a:{};return P(o.x)&&(o.x=l),P(o.y)&&(o.y=h),P(o.defined)&&u===!1&&(o.defined=!1),o.context=s.key,i&&(P(o.x1)&&(o.x1=d),P(o.y1)&&(o.y1=c)),o}):e??[]}function m7(n,t,e=[]){if(!n||!n.length||n.length===1&&!t)return[];const i=new Float32Array(4*n.length);return n.forEach((s,r)=>{var a,o,l,h;const d=s.nextAttrs,c=(a=d.x)!==null&&a!==void 0?a:e[4*r],u=(o=d.y)!==null&&o!==void 0?o:e[4*r+1],g=(l=d.width)!==null&&l!==void 0?l:e[4*r+2],p=(h=d.y1)!==null&&h!==void 0?h:e[4*r+3];i[4*r]=c,i[4*r+1]=u,i[4*r+2]=g,i[4*r+3]=p-u}),i}function v7(n,t,e=[]){if(!n||!n.length||n.length===1&&!t)return[];const i=new Float32Array(2*n.length);return n.forEach((s,r)=>{var a,o;const l=s.nextAttrs,h=(a=l.x)!==null&&a!==void 0?a:e[2*r],d=(o=l.y)!==null&&o!==void 0?o:e[2*r+1];i[2*r]=h,i[2*r+1]=d}),i}function y7(n,t){if(["x","y","dx","dy"].includes(t))return!0;switch(n){case Q.arc:return["innerRadius","outerRadius","startAngle","endAngle"].includes(t);case Q.group:case Q.rect:case Q.image:return["width","height","y1"].includes(t);case Q.path:case Q.shape:return["path","customPath"].includes(t);case Q.line:return t==="defined";case Q.area:return["x1","y1","defined"].includes(t);case Q.rule:return["x1","y1"].includes(t);case Q.symbol:return t==="size";case Q.polygon:return t==="points";case Q.text:return t==="text"}return!1}function b7(n){return[Q.line,Q.area,Q.largeRects,Q.largeSymbols].includes(n)}function Js(n,t,e,i,s){e&&(Qa(e)?t.forEach(r=>{const a=ri(e,i,r.datum,n);Object.assign(r.nextAttrs,a)}):Object.keys(e).forEach(r=>{var a,o;const l=e[r],h=s&&!y7(n.mark.markType,r)?[t[0]]:t;if(rm(l)){const d=Pc(l.scale,i),c=(a=l==null?void 0:l.offset)!==null&&a!==void 0?a:0,u=!P(l.band)&&d.bandwidth?d.bandwidth()*l.band:null,g=tt(l==null?void 0:l.field),p=g?Ds(l.field):null;let _=g?null:P(l==null?void 0:l.value)?0:(o=d.scale)===null||o===void 0?void 0:o.call(d,l.value);h.forEach(f=>{var m;g&&(_=(m=d.scale)===null||m===void 0?void 0:m.call(d,p(f.datum))),f.nextAttrs[r]=J(_)||J(u)?_+c+u:_})}else if(Ix(l)){const d=Ds(l.field);h.forEach(c=>{c.nextAttrs[r]=d(c.datum)})}else h.forEach(d=>{d.nextAttrs[r]=ri(l,i,d.datum,n)})}))}function sa(n,t,e,i){if(!n)return null;if(Qa(n))return ri(n,i,t,e);const s={};return Object.keys(n).forEach(r=>{var a,o,l;const h=n[r];if(rm(h)){const d=Pc(h.scale,i),c=(a=h==null?void 0:h.offset)!==null&&a!==void 0?a:0,u=!P(h.band)&&d.bandwidth?d.bandwidth()*h.band:null,g=tt(h==null?void 0:h.field),p=g?Ds(h.field):null,_=g?(o=d.scale)===null||o===void 0?void 0:o.call(d,p(t)):P(h==null?void 0:h.value)?0:(l=d.scale)===null||l===void 0?void 0:l.call(d,h.value);s[r]=J(_)||J(u)?_+c+u:_}else if(Ix(h)){const d=Ds(h.field);s[r]=d(t)}else s[r]=ri(h,i,t,e)}),s}class x7{constructor(t,e,i,s){this.channelEncoder={},this.marks=t,e&&this.registerChannelEncoder(e),i&&this.registerDefaultEncoder(i),this.progressiveChannels&&this.registerProgressiveChannels(s)}getMarks(){return this.marks}registerChannelEncoder(t,e){return tt(t)?this.channelEncoder[t]=e:Object.assign(this.channelEncoder,t),this}registerFunctionEncoder(t){return this.functionEncoder=t,this}registerDefaultEncoder(t){return this.defaultEncoder=t,this}registerProgressiveChannels(t){return this.progressiveChannels=j(t),this}getChannelEncoder(){return this.channelEncoder}getFunctionEncoder(){return this.functionEncoder}getDefaultEncoder(){return this.defaultEncoder}getProgressiveChannels(){return this.progressiveChannels}}class G{static registerPlotMarks(t,e){G._plotMarks[t]=e}static createPlotMark(t,e){return G._plotMarks[t]?new G._plotMarks[t](e):null}static registerMark(t,e){G._marks[t]=e}static createMark(t,e,i){return G._marks[t]?new G._marks[t](e,t,i):null}static hasMark(t){return!!G._marks[t]}static getMark(t){return G._marks[t]}static registerComponent(t,e){G._components[t]=e}static createComponent(t,e,i,s){const r=G._components[t];return r?new r(e,i,s):null}static hasComponent(t){return!!G._components[t]}static registerGraphicComponent(t,e){G._graphicComponents[t]=e}static createGraphicComponent(t,e,i){const s=G._graphicComponents[t];return s?s(e,i):null}static registerTransform(t,e,i){G._transforms[t]=Object.assign(e,{type:t,isBuiltIn:!!i})}static getTransform(t){return G._transforms[t]}static unregisterRuntimeTransforms(){Object.keys(G._transforms).forEach(t=>{G._transforms[t]&&!G._transforms[t].isBuiltIn&&(G._transforms[t]=null)})}static registerGrammar(t,e,i){G._grammars[t]={grammarClass:e,specKey:i??t}}static createGrammar(t,e,i){var s;const r=(s=G._grammars[t])===null||s===void 0?void 0:s.grammarClass;return r?new r(e,i):null}static getGrammars(){return this._grammars}static getGlyph(t){return G._glyphs[t]}static createInteraction(t,e,i){const s=G._interactions[t];return s?new s(e,i):null}static hasInteraction(t){return!!G._interactions[t]}}G._plotMarks={},G._marks={},G._components={},G._graphicComponents={},G._transforms={},G._grammars={},G._glyphs={},G._animations={},G._interactions={},G._graphics={},G._stageEventPlugins={},G.registerGlyph=(n,t,e,i,s)=>(G._glyphs[n]=new x7(t,e,i,s),G._glyphs[n]),G.registerAnimationType=(n,t)=>{G._animations[n]=t},G.getAnimationType=n=>G._animations[n],G.registerInteraction=(n,t)=>{G._interactions[n]=t},G.registerGraphic=(n,t)=>{G._graphics[n]=t},G.getGraphicType=n=>G._graphics[n],G.createGraphic=(n,t)=>{const e=G._graphics[n];return e?e(t):null},G.registerDefaultLayout=n=>{G.defaultLayout=n},G.getDefaultLayout=()=>G.defaultLayout,G.registerStageEventPlugin=(n,t)=>{G._stageEventPlugins[n]=t},G.getStageEventPlugin=n=>G._stageEventPlugins[n];const S7=n=>!!Q[n];function yd(n,t,e={}){var i;const s=G.getGraphicType(t)?G.createGraphic(t,e):G.createGraphicComponent(t,e,{skipDefault:(i=n==null?void 0:n.spec)===null||i===void 0?void 0:i.skipTheme});return s||Ot.getInstance().error(`create ${t} graphic failed!`),s}function A7(n,t,e={}){if(!G.getGraphicType(Q.glyph))return;const i=G.createGraphic(Q.glyph,e),s=t.getMarks(),r=Object.keys(s).map(a=>{if(G.getGraphicType(s[a])){const o=G.createGraphic(s[a]);if(o)return o.name=a,o}});return i.setSubGraphic(r),i}const A_=n=>{n&&(n[na]=null,n.release(),n.parent&&n.parent.removeChild(n))},QM=["fillOpacity"],tw=(n,t,e)=>{var i;return t==="fillOpacity"?(n.fillOpacity=(i=e.fillOpacity)!==null&&i!==void 0?i:1,["fillOpacity"]):[]};function k7(n,t,e,i,s,r){const a=s.getGraphicAttribute(n,!1,r);if(a)return t.forEach(l=>{l in i&&(a[l]=i[l])}),a;const o={};return t.forEach(l=>{o[l]=i[l]}),e[n]=o,o}const xu={rect3d:[{channels:["x","y","z","x1","y1","width","height","length"],transform:(n,t,e)=>{var i,s,r,a,o,l,h,d,c,u,g,p;H(t.width)||!H(t.x1)&&H(e.width)?(n.x=Math.min((i=e.x)!==null&&i!==void 0?i:0,(s=e.x1)!==null&&s!==void 0?s:1/0),n.width=e.width):H(t.x1)||!H(t.width)&&H(e.x1)?(n.x=Math.min(e.x,e.x1),n.width=Math.abs(e.x1-e.x)):(n.x=Math.min((r=e.x)!==null&&r!==void 0?r:0,(a=e.x1)!==null&&a!==void 0?a:1/0),n.width=e.width),H(t.height)||!H(t.y1)&&H(e.height)?(n.y=Math.min((o=e.y)!==null&&o!==void 0?o:0,(l=e.y1)!==null&&l!==void 0?l:1/0),n.height=e.height):H(t.y1)||!H(t.height)&&H(e.y1)?(n.y=Math.min(e.y,e.y1),n.height=Math.abs(e.y1-e.y)):(n.y=Math.min((h=e.y)!==null&&h!==void 0?h:0,(d=e.y1)!==null&&d!==void 0?d:1/0),n.height=e.height),H(t.length)||!H(t.z1)&&H(e.length)?(n.z=Math.min((c=e.z)!==null&&c!==void 0?c:0,(u=e.z1)!==null&&u!==void 0?u:1/0),n.length=e.length):H(t.z1)||!H(t.length)&&H(e.z1)?(n.z=Math.min(e.z,e.z1),n.length=Math.abs(e.z1-e.z)):(n.z=Math.min((g=e.z)!==null&&g!==void 0?g:0,(p=e.z1)!==null&&p!==void 0?p:1/0),n.length=e.length)},storedAttrs:"sizeAttrs"}],[Q.text]:[{channels:["text","limit","autoLimit","maxLineWidth","textType"],transform:(n,t,e)=>{var i,s;const r=(i=e.limit)!==null&&i!==void 0?i:1/0,a=(s=e.autoLimit)!==null&&s!==void 0?s:1/0,o=Math.min(r,a),l=Ls(e.text)&&!P(e.text.text),h=l?e.text.text:e.text;n.maxLineWidth=o===1/0?e.maxLineWidth:o,(l||e.textType)&&(e.text.type==="rich"||e.textType==="rich")?n.textConfig=h:n.text=h},storedAttrs:"limitAttrs"}],[Q.rule]:[{channels:["x","y","x1","y1"],transform:(n,t,e)=>{const i=_7(e);n.points=i,n.x=0,n.y=0},storedAttrs:"pointAttrs"}],[Q.symbol]:[{channels:["shape","symbolType"],transform:(n,t,e)=>{var i;n.symbolType=(i=t.shape)!==null&&i!==void 0?i:t.symbolType}},{channels:["image","fill","background"],transform:(n,t,e)=>{t.image?(n.background=t.image,n.fill=!1):e.image?(n.background=e.image,n.fill=!1):(n.fill=e.fill,n.background=e.background)},storedAttrs:"imageAttrs"}]};function T7(n,t){var e;return((e=xu[n])!==null&&e!==void 0?e:[]).reduce((i,s)=>(s.channels.forEach(r=>{On(t,r)&&(i[r]=t[r])}),i),{})}const k_=(n,t,e,i)=>{const s={},r=t?Object.keys(t):[],a=tt(n)?xu[n]:n;if(a&&a.length){const o=[];r.forEach(l=>{let h=!1;a.forEach((d,c)=>{if(d.channels.includes(l)){if(!o[c])if(d.storedAttrs){const u=k7(d.storedAttrs,d.channels,s,t,e,i);d.transform(s,t,u)}else d.transform(s,t,null);o[c]=!0,h=!0}}),h||(QM.includes(l)?tw(s,l,t):s[l]=t[l])})}else r.forEach(o=>{QM.includes(o)?tw(s,o,t):s[o]=t[o]});return s},M7=(n,t)=>{var e,i;if(n===t)return!0;const s=(e=n&&n.length)!==null&&e!==void 0?e:0;return s===((i=t&&t.length)!==null&&i!==void 0?i:0)&&s!==0&&n.every((r,a)=>!r&&!t[a]||r&&t[a]&&r.color===t[a].color&&r.offset===t[a].offset)},w7=(n,t)=>{if(n===t)return!0;if(typeof n!=typeof t||tt(n)||n.gradient!==t.gradient)return!1;const e=Object.keys(n),i=Object.keys(t);return e.length===i.length&&e.every(s=>s==="stops"?M7(n[s],t[s]):n[s]===t[s])},C7=(n,t)=>n.length===t.length&&n.join("-")===t.join("-"),P7=(n,t,e)=>!(!P(n)||!P(t))||!P(n)&&!P(t)&&(e==="lineDash"?C7(n,t):e==="stroke"||e==="fill"?w7(n,t):n===t),E7=["fill","fillOpacity","background","texture","texturePadding","textureSize","textureColor"],CB=["stroke","strokeOpacity","lineDash","lineDashOffset","lineCap","lineJoin","lineWidth","miterLimit"],R7=E7.concat(CB);function ab(n,t,e){var i;if(!n||n.length<=1)return null;const s=((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.markType)==="area"?R7:CB,r=[];let a=null;return n.forEach((o,l)=>{a&&s.every(h=>P7(a[h],o[h],h))||(r.length&&(r[r.length-1].endIndex=l),a=o,r.push({attrs:a,startIndex:l}))}),r.length>=2?r.map(o=>{const l=Dx(o.attrs);return l.points=t.slice(o.startIndex,P(o.endIndex)?t.length:o.endIndex),l}):null}function O7(n,t,e){if(!n||n.length<=1)return null;const i=!!e&&e.mark.getSpec().enableSegments;let s,r,a=[],o=null;if(n.forEach((l,h)=>{o=t[h],o&&o.defined!==!1?(s||(r={items:[],points:[]},a.push(r)),r.points.push(o),r.items.push(l),s===!1&&(r.isConnect=!0,r={items:[],points:[]},a.push(r)),s=!0):s=!1}),a=a.filter(l=>l.points.length>0),a.length>=2){const l=[];return a.forEach(h=>{if(h.isConnect)return void l.push({points:h.points,isConnect:!0});if(i){const c=ab(h.items,h.points,e);if(c)return void c.forEach(u=>{l.push(u)})}const d=Dx(h.items[0]);d.points=h.points,l.push(d)}),l}return i?ab(n,t,e):null}function B7(n){return n?n.reduce((t,e)=>t.concat(e.points),[]):null}function Dx(n){const t={};if(!n)return t;const e=["x","y","x1","y1","defined","size","width","height","context"];return Object.keys(n).forEach(i=>{e.includes(i)||(t[i]=n[i])}),t}function L7(n,t){var e;if(!n||!n.segments||!n.segments.length)return n;const i=((e=t==null?void 0:t.mark)===null||e===void 0?void 0:e.markType)==="area"?["fillOpacity","strokeOpacity"]:["strokeOpacity"],s={};return Object.keys(n).forEach(r=>{i.includes(r)||(s[r]=n[r])}),s}let PB=class{constructor(t){this.data=null,this.states=[],this.diffState=Zt.enter,this.isReserved=!1,this.runtimeStatesEncoder=null,this.items=[],this.getStateAttrs=(e,i)=>{var s,r,a,o;const l=!P((s=this.runtimeStatesEncoder)===null||s===void 0?void 0:s[e]),h=l?Object.assign(Object.assign({},(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e]),this.runtimeStatesEncoder[e]):(a=this.mark.getSpec().encode)===null||a===void 0?void 0:a[e];if(!h)return{};if(N(h))return h(this.getDatum(),this,e,i);if(!l&&(!((o=this.graphicItem.states)===null||o===void 0)&&o[e]))return this.graphicItem.states[e];const d=this.items.map(u=>Object.assign({},u,{nextAttrs:{}}));Js(this,d,h,this.mark.parameters());const c=this.transformElementItems(d,this.mark.markType);return this.graphicItem.states?this.graphicItem.states[e]||(this.graphicItem.states[e]=c):this.graphicItem.states={[e]:c},c},this.mark=t}initGraphicItem(t={}){if(this.graphicItem)return;const e=this.mark.getAttributeTransforms();this.graphicItem=this.mark.addGraphicItem(e?k_(e,t,this):t,this.groupKey),this.graphicItem&&(this.graphicItem[na]=this,e&&(this.graphicItem.onBeforeAttributeUpdate=i=>this.mark?k_(e,i,this):i),this.clearGraphicAttributes(),this.mark.needAnimate()&&(this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(Object.assign({},t)),this.setFinalGraphicAttributes(Object.assign({},t))))}updateGraphicItem(){var t;if(!this.graphicItem)return;this.diffState===Zt.exit?this.graphicItem.releaseStatus="willRelease":this.graphicItem.releaseStatus=void 0;const e=(t=this.mark.animate)===null||t===void 0?void 0:t.getAnimationConfigs("state");e&&e.length!==0&&(this.graphicItem.stateAnimateConfig=e[0].originConfig)}getGraphicItem(){return this.graphicItem}removeGraphicItem(){var t,e;this.graphicItem&&((e=(t=this.graphicItem.animates)===null||t===void 0?void 0:t.forEach)===null||e===void 0||e.call(t,i=>i.stop())),this.graphicItem&&(A_(this.graphicItem),this.graphicItem[na]=null,this.graphicItem=null)}resetGraphicItem(){this.graphicItem&&(this.graphicItem=null)}getBounds(){var t;return(t=this.graphicItem)===null||t===void 0?void 0:t.AABBBounds}getStates(){return this.states}updateData(t,e,i){var s;this.mark.emit(ut.BEFORE_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.data=e;const r=vd(i);return this.items=e.map(a=>({datum:a,key:r(a),view:this.mark.view,nextAttrs:{}})),this.groupKey=t,this.key=this.mark.isCollectionMark()?t:(s=this.items)===null||s===void 0?void 0:s[0].key,this.mark.emit(ut.AFTER_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.items}state(t,e){var i;const s=this.mark.isCollectionMark(),r=this.states,a=j(ri(t,e,this.getDatum(),this)),o=(i=this.mark.getSpec())===null||i===void 0?void 0:i.stateSort;o&&a.length&&a.sort(o);const l=a.length!==r.length||a.some((h,d)=>h!==r[d]);this.states=a,!s&&l&&this.diffState===Zt.unChange&&(this.diffState=Zt.update)}encodeGraphic(t){this.coordinateTransformEncode(this.items);const e=this.transformElementItems(this.items,this.mark.markType);t&&Object.assign(e,t),this.graphicItem?(this.graphicItem.clearStates(),this.graphicItem.states={},this.graphicItem.stateProxy=null,xo in this.graphicItem.attribute&&"visible"in e&&delete this.graphicItem.attribute[xo],this.applyGraphicAttributes(e)):this.initGraphicItem(e),this.diffState!==Zt.enter&&this.diffState!==Zt.update||!this.states.length||this.useStates(this.states),this.mark.markType===Q.shape&&(this.graphicItem.datum=this.items[0].datum),this.items.forEach(i=>{i.nextAttrs={}}),this._setCustomizedShape()}_setCustomizedShape(){var t;if(!this.graphicItem)return;const e=(t=this.mark.getSpec())===null||t===void 0?void 0:t.setCustomizedShape;e&&(this.graphicItem.pathProxy=i=>e(this.data,i,new ei))}encodeItems(t,e,i=!1,s){const r=this.mark.isCollectionMark(),a=e[Nr.update],o=e[Nr.enter],l=e[Nr.exit],h=this.mark.isLargeMode()||r&&!this.mark.getSpec().enableSegments;this.diffState===Zt.enter?(o&&Js(this,t,o,s,h),a&&Js(this,t,a,s,h)):this.diffState===Zt.update?((r&&o||i)&&Js(this,t,o,s,h),a&&Js(this,t,a,s,h)):this.diffState===Zt.exit&&l&&(i&&Js(this,t,o,s,h),Js(this,t,l,s,h))}coordinateTransformEncode(t){if(!this.mark.coord||this.mark.markType==="arc"||this.mark.disableCoordinateTransform===!0)return;const e=this.mark.coord.output();t.forEach(i=>{const s=i.nextAttrs,r=e.convert(s);Object.assign(s,r)})}hasStateAnimation(){var t;const e=(t=this.mark.animate)===null||t===void 0?void 0:t.getAnimationConfigs("state");return e&&e.length>0}clearStates(t){const e=Me(t)?t:this.hasStateAnimation();this.states=[],this.graphicItem&&this.graphicItem.clearStates(e),this.runtimeStatesEncoder&&(this.runtimeStatesEncoder={})}_updateRuntimeStates(t,e){this.runtimeStatesEncoder||(this.runtimeStatesEncoder={}),this.runtimeStatesEncoder[t]=e}hasState(t){return this.states&&t&&this.states.includes(t)}updateStates(t){if(!this.graphicItem)return!1;let e=this.states.slice();const i=this.mark.getSpec().encode;let s=!1,r=!1;return Object.keys(t).forEach(a=>{var o;if(!a)return;const l=t[a];if(yt(l)&&!Jt(l,(o=this.runtimeStatesEncoder)===null||o===void 0?void 0:o[a]))e.includes(a)?s=!0:e.push(a),this._updateRuntimeStates(a,l),r=!0;else if(l)!e.includes(a)&&(i!=null&&i[a])&&(e.push(a),r=!0);else if(e.length){const h=e.filter(d=>d!==a);h.length!==e.length&&(r=!0,e=h),this.runtimeStatesEncoder&&this.runtimeStatesEncoder[a]&&(this.runtimeStatesEncoder[a]=null)}}),s&&this.graphicItem.clearStates(),!!r&&(this.useStates(e),!0)}addState(t,e){var i;if(!this.graphicItem)return!1;if(e&&tt(t)&&!Jt(e,(i=this.runtimeStatesEncoder)===null||i===void 0?void 0:i[t])){const a=this.states.slice();return a.includes(t)?this.graphicItem.clearStates():a.push(t),this._updateRuntimeStates(t,e),this.useStates(a),!0}const s=this.mark.getSpec().encode,r=j(t).reduce((a,o)=>(o&&!a.includes(o)&&(s!=null&&s[o])&&a.push(o),a),this.states.slice());return r.length!==this.states.length&&(this.useStates(r),!0)}removeState(t){if(!this.graphicItem)return!1;const e=j(t);if(!e.length)return!1;const i=this.states.filter(s=>!e.includes(s));return i.length!==this.states.length&&(this.runtimeStatesEncoder&&e.forEach(s=>{this.runtimeStatesEncoder[s]=null}),this.useStates(i),!0)}useStates(t,e){var i;if(!this.graphicItem)return!1;this.mark.emit(ut.BEFORE_ELEMENT_STATE,{states:t},this);const s=(i=this.mark.getSpec())===null||i===void 0?void 0:i.stateSort;s&&t.sort(s),this.states=t;const r=Me(e)?e:this.hasStateAnimation();return this.graphicItem.stateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,r),this.mark.emit(ut.AFTER_ELEMENT_STATE,{states:t},this),!0}diffAttributes(t){const e={},i=this.getFinalGraphicAttributes();for(const s in t)On(i,s)&&Jt(i[s],t[s])||(e[s]=t[s]);return e}transformElementItems(t,e,i){var s,r,a,o,l;const h=t[0];if(!h.nextAttrs||Object.keys(h.nextAttrs).length===0)return{};let d=h.nextAttrs;if(b7(e)&&t&&t.length&&P((s=h.nextAttrs)===null||s===void 0?void 0:s.points)&&(i===!0||S_(Object.keys(h.nextAttrs),this.mark.markType))){const c=this.mark.getSpec(),u=this.getGraphicAttribute("points",!1),g=this.getGraphicAttribute("segments",!1),p=c.enableSegments,_=(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[Nr.connectNulls],f=t.map(v=>v.nextAttrs),m=this.mark.isProgressive();if(d=Dx(d),e===Q.line||e===Q.area){const v=f7(t,!0,u,e===Q.area);if(m)d.segments=((l=(o=(a=this.graphicItem)===null||a===void 0?void 0:a.attribute)===null||o===void 0?void 0:o.segments)!==null&&l!==void 0?l:[]).concat([{points:v}]);else if(_){if(d.segments=O7(f,v,this),d.segments&&d.segments.some(y=>y.isConnect)){const y=sa(_,this.getDatum(),this,this.mark.parameters());y&&d.segments.forEach(b=>{b.isConnect&&Object.assign(b,y)})}d.points=v}else if(p){const y=v&&v.length!==0?v:B7(g),b=ab(f,y,this);b?(d.segments=b,d.points=null):(d.segments=null,d.points=y),d=L7(d,this)}else d.points=v,d.segments=null}else e===Q.largeRects?d.points=m7(t,!0,u):e===Q.largeSymbols&&(d.points=v7(t,!0,u))}return d}applyGraphicAttributes(t){var e,i,s;if(!ht(t))if(this.mark.needAnimate()){const r=this.diffAttributes(t),a=(e=this.getPrevGraphicAttributes())!==null&&e!==void 0?e:{},o=(i=this.getFinalGraphicAttributes())!==null&&i!==void 0?i:{};Object.keys(r).forEach(c=>{a[c]=this.getGraphicAttribute(c),o[c]=r[c]}),this.setNextGraphicAttributes(r),this.setPrevGraphicAttributes(a),this.setFinalGraphicAttributes(o);const l=(s=this.mark.animate)===null||s===void 0?void 0:s.getElementAnimators(this).filter(c=>{var u;return!(!((u=c.animationOptions.timeline.controlOptions)===null||u===void 0)&&u.ignoreLoopFinalAttributes)||!c.animationOptions.timeline.loop}),h=(l||[]).reduce((c,u)=>Object.assign(c,u.getEndAttributes()),{}),d=Object.assign({},h,o);this.graphicItem.setAttributes(d)}else this.graphicItem.setAttributes(t)}getGraphicAttribute(t,e=!1){var i;if(!this.graphicItem)return;if(e){let a;const o=this.getPrevGraphicAttributes();if(!P(a=wt(o,t)))return a}const s=this.mark.getAttributeTransforms();let r=[t];if(s&&s.length){const a=s.find(o=>o.storedAttrs&&o.channels.includes(t));a&&(r=[a.storedAttrs,t])}return wt((i=this.graphicItem)===null||i===void 0?void 0:i.attribute,r)}setGraphicAttribute(t,e,i=!0){if(!this.graphicItem)return;const s=this.getFinalGraphicAttributes(),r=this.getPrevGraphicAttributes();i&&s&&(s[t]=e),r&&!On(r,t)&&(r[t]=this.graphicItem.attribute[t]),this.graphicItem.setAttribute(t,e)}setGraphicAttributes(t,e=!0){if(!this.graphicItem)return;const i=this.getFinalGraphicAttributes(),s=this.getPrevGraphicAttributes();Object.keys(t).forEach(r=>{i&&e&&(i[r]=t[r]),s&&!On(s,r)&&(s[r]=this.graphicItem.attribute[r])}),this.graphicItem.setAttributes(t)}getFinalGraphicAttributes(){return this.graphicItem.finalAttrs}setFinalGraphicAttributes(t){this.graphicItem.finalAttrs=t}getPrevGraphicAttributes(){return this.graphicItem.prevAttrs}setPrevGraphicAttributes(t){this.graphicItem.prevAttrs=t}getNextGraphicAttributes(){return this.graphicItem.nextAttrs}getFinalAnimationAttribute(t){var e,i;return(i=(e=this.getFinalGraphicAttributes())===null||e===void 0?void 0:e[t])!==null&&i!==void 0?i:this.getGraphicAttribute(t)}getFinalAnimationAttributes(){var t;return(t=this.getFinalGraphicAttributes())!==null&&t!==void 0?t:this.graphicItem.attribute}setNextGraphicAttributes(t){this.graphicItem.nextAttrs=t}clearChangedGraphicAttributes(){this.graphicItem&&(this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null))}clearGraphicAttributes(){this.graphicItem&&(this.graphicItem.prevAttrs&&this.setPrevGraphicAttributes(null),this.graphicItem.nextAttrs&&this.setNextGraphicAttributes(null),this.graphicItem.finalAttrs&&this.setFinalGraphicAttributes(null))}remove(){this.graphicItem&&(A_(this.graphicItem),this.graphicItem=null)}release(){this.removeGraphicItem(),this.mark=null,this.data=null,this.items=null}getItemAttribute(t){var e,i;if(!((e=this.items)===null||e===void 0)&&e.length)return this.mark.isCollectionMark()?P(t)?this.items.map(s=>s.nextAttrs):this.items.map(s=>{var r;return(r=s.nextAttrs)===null||r===void 0?void 0:r[t]}):P(t)?this.items[0].nextAttrs:(i=this.items[0].nextAttrs)===null||i===void 0?void 0:i[t]}setItemAttributes(t){var e;!((e=this.items)===null||e===void 0)&&e.length&&(this.mark.isCollectionMark()?U(t)&&this.items.forEach((i,s)=>{Object.assign(i.nextAttrs,t[s])}):Object.assign(this.items[0].nextAttrs,t))}getItem(){var t,e;return this.mark&&this.mark.isCollectionMark()?(t=this.items)!==null&&t!==void 0?t:[]:(e=this.items)===null||e===void 0?void 0:e[0]}getDatum(){var t,e;return this.mark&&this.mark.isCollectionMark()?(t=this.data)!==null&&t!==void 0?t:[]:(e=this.data)===null||e===void 0?void 0:e[0]}};class Oa{constructor(t,e){this.references=new Map,this.view=t,this.depend(e==null?void 0:e.dependency)}getStartState(){return null}depend(t){this.references.clear(),j(t).map(e=>tt(e)?this.view.getGrammarById(e):e).filter(e=>!P(e)).forEach(e=>{var i;this.references.set(e,((i=this.references.get(e))!==null&&i!==void 0?i:0)+1)})}parameters(){const t={};return this.references.forEach((e,i)=>{C(i.id())&&(t[i.id()]=i.output())}),t}bind(){const t=this.getEvents();(t??[]).forEach(e=>{e.type&&e.handler&&(U(e.type)?e.type.forEach(i=>{i&&i!=="none"&&this.view.addEventListener(i,e.handler)}):e.type!=="none"&&this.view.addEventListener(e.type,e.handler))})}unbind(){const t=this.getEvents();(t??[]).forEach(e=>{e.type&&e.handler&&(U(e.type)?e.type.forEach(i=>{i&&i!=="none"&&this.view.removeEventListener(i,e.handler)}):e.type!=="none"&&this.view.removeEventListener(e.type,e.handler))})}start(t){}reset(t){}dispatchEvent(t,e){this.view.emit(`${this.type}:${t}`,e),t==="start"&&this.options.onStart?this.options.onStart(e):t==="reset"&&this.options.onReset?this.options.onReset(e):t==="update"&&this.options.onUpdate?this.options.onUpdate(e):t==="end"&&this.options.onEnd&&this.options.onEnd(e)}}class So extends Oa{constructor(t,e){super(t,e),this.type=So.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},So.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}getStartState(){return this.options.state}start(t){t&&this._marks&&this._marks.includes(t.mark)&&t.addState(this.options.state)}reset(t){t&&this._marks&&this._marks.includes(t.mark)&&t.removeState(this.options.state)}}So.type="element-active",So.defaultOptions={state:Xi.active,trigger:"pointerover",triggerOff:"pointerout"};const Fx=n=>n.filterField?t=>{var e;return(e=t.getDatum())===null||e===void 0?void 0:e[n.filterField]}:t=>t[n.filterType],EB=(n,t)=>{if(!t||!n)return null;const e={};return n.forEach(i=>{const s=i&&i.getSpec(),r=s&&s.encode;r&&t.forEach(a=>{a&&r[a]&&(e[a]||(e[a]=[]),e[a].push(i))})}),e},I7=n=>{const t=j(n),e=[],i=[];return t.forEach(s=>{s==="empty"?e.push("view"):tt(s)&&s!=="none"?s.includes("view:")?(i.push(s.replace("view:","")),e.push("view")):(i.push(s),e.push("self")):J(s)&&e.push("timeout")}),{eventNames:i,resetType:e}};class ra extends Oa{constructor(t,e){super(t,e),this.type=ra.type,this._resetType=[],this.clearPrevElements=()=>{const{state:i,reverseState:s}=this.options;this._statedElements&&this._statedElements.length&&(this.clearAllStates(i,s),this.dispatchEvent("reset",{elements:this._statedElements,options:this.options}),this._statedElements=[])},this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},ra.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=EB(this._marks,[this.options.state,this.options.reverseState])}getStartState(){return this.options.state}getEvents(){const t=this.options.triggerOff,e=this.options.trigger,i=[{type:e,handler:this.handleStart}],{eventNames:s,resetType:r}=I7(t);return s.forEach(a=>{a&&(U(e)?!e.includes(a):a!==e)&&i.push({type:a,handler:this.handleReset})}),this._resetType=r,i}start(t){const{state:e,reverseState:i,isMultiple:s}=this.options;if(t&&this._marks&&this._marks.includes(t.mark))if(t.hasState(e)){if(this._resetType.includes("self")){const r=this._statedElements&&this._statedElements.filter(a=>a!==t);r&&r.length?this._statedElements=this.updateStates(r,this._statedElements,e,i):this.clearPrevElements()}}else this._timer&&clearTimeout(this._timer),t.addState(e),this._statedElements=this.updateStates(s&&this._statedElements?[...this._statedElements,t]:[t],this._statedElements,e,i),this.dispatchEvent("start",{elements:this._statedElements,options:this.options}),this._resetType.includes("timeout")&&(this._timer=setTimeout(()=>{this.clearPrevElements()},this.options.triggerOff));else this._resetType.includes("view")&&this._statedElements&&this._statedElements.length&&this.clearPrevElements()}reset(t){if(!this._statedElements||!this._statedElements.length)return;const e=t&&this._marks&&this._marks.includes(t.mark);(this._resetType.includes("view")&&!e||this._resetType.includes("self")&&e)&&this.clearPrevElements()}}ra.type="element-select",ra.defaultOptions={state:Xi.selected,trigger:"click"};class aa extends Oa{constructor(t,e){super(t,e),this.type=aa.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},aa.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=EB(this._marks,[this.options.highlightState,this.options.blurState])}getStartState(){return this.options.highlightState}getEvents(){const t=this.options.triggerOff,e=[{type:this.options.trigger,handler:this.handleStart}];let i=t;return tt(t)&&t.includes("view:")?(i=t.replace("view:",""),this._resetType="view"):this._resetType="self",e.push({type:i,handler:this.handleReset}),e}clearPrevElements(){const{highlightState:t,blurState:e}=this.options;this._lastElement&&(this.clearAllStates(t,e),this.dispatchEvent("reset",{elements:[this._lastElement],options:this.options}),this._lastElement=null,this._statedElements=null)}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const{highlightState:e,blurState:i}=this.options;if(this._lastElement===t)return;this._statedElements=this.updateStates([t],this._statedElements,e,i),this._lastElement=t,this.dispatchEvent("start",{elements:[t],options:this.options})}else this._lastElement&&this._resetType==="view"&&this.clearPrevElements()}reset(t){if(!this._statedElements||!this._statedElements.length)return;const e=t&&this._marks&&this._marks.includes(t.mark);this._resetType!=="view"||e?this._resetType==="self"&&e&&this.clearPrevElements():this.clearPrevElements()}}aa.type="element-highlight",aa.defaultOptions={highlightState:Xi.highlight,blurState:Xi.blur,trigger:"pointerover",triggerOff:"pointerout"};class Ao extends Oa{constructor(t,e){super(t,e),this.type=Ao.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{i.element&&this._marks&&this._marks.includes(i.element.mark)&&this.clearPrevElements()},this.options=Object.assign({},Ao.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}clearPrevElements(){const t=[this.options.highlightState,this.options.blurState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.key;if(P(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.key===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}reset(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.key;if(P(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.key===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}}Ao.type="element-highlight-by-key",Ao.defaultOptions={highlightState:Xi.highlight,blurState:Xi.blur,trigger:"pointerover",triggerOff:"pointerout"};class ko extends Oa{constructor(t,e){super(t,e),this.type=ko.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},ko.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}clearPrevElements(){const t=[this.options.highlightState,this.options.blurState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.groupKey;if(P(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.groupKey===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}reset(t){t&&this._marks&&this._marks.includes(t.mark)&&this.clearPrevElements()}}ko.type="element-highlight-by-group",ko.defaultOptions={highlightState:Xi.highlight,blurState:Xi.blur,trigger:"pointerover",triggerOff:"pointerout"};class To extends Oa{constructor(t,e){super(t,e),this.type=To.type,this.handleStart=i=>{var s,r;this.start((r=(s=i.detail)===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r.id)},this.handleReset=i=>{this.reset()},this.options=Object.assign({},To.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getEvents(){return[{type:Ii.legendItemHover,handler:this.handleStart},{type:Ii.legendItemUnHover,handler:this.handleReset}]}getStartState(){return this.options.state}start(t){const e=t;if(P(e))return;const i=Fx(this.options);this._marks.forEach(s=>{s.elements.forEach(r=>{i(r)===e?r.addState(this.options.state):r.removeState(this.options.state)})})}reset(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.state)})})}}To.type="element-active-by-legend",To.defaultOptions={state:Xi.active,filterType:"groupKey"};class Mo extends Oa{constructor(t,e){super(t,e),this.type=Mo.type,this.handleStart=(i,s)=>{var r,a;this.start((a=(r=i.detail)===null||r===void 0?void 0:r.data)===null||a===void 0?void 0:a.id)},this.handleReset=i=>{this.reset()},this.options=Object.assign({},Mo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:Ii.legendItemHover,handler:this.handleStart},{type:Ii.legendItemUnHover,handler:this.handleReset}]}start(t){if(P(t))return;const e=Fx(this.options);this._marks.forEach(i=>{i.elements.forEach(s=>{e(s)===t?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}reset(){const t=[this.options.blurState,this.options.highlightState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}}Mo.type="element-highlight-by-legend",Mo.defaultOptions={highlightState:Xi.highlight,blurState:Xi.blur,filterType:"groupKey"};class wo extends Oa{constructor(t,e){super(t,e),this.type=wo.type,this.handleStart=(i,s)=>{if(this.options.shouldStart?this.options.shouldStart(i):this._filterByName(i)){const r=this._parseTargetKey(i,s);this.start(r)}},this.handleReset=i=>{(this.options.shouldReset?this.options.shouldReset(i):this._filterByName(i))&&this.reset()},this.options=Object.assign({},wo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}_filterByName(t){var e;const i=j(this.options.graphicName);return((e=t==null?void 0:t.target)===null||e===void 0?void 0:e.name)&&i.includes(t.target.name)}_parseTargetKey(t,e){return this.options.parseData?this.options.parseData(t):t.target.type==="text"?t.target.attribute.text:null}start(t){if(P(t))return;const e=Fx(this.options);this._marks.forEach(i=>{i.elements.forEach(s=>{e(s)===t?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}reset(){const t=[this.options.blurState,this.options.highlightState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}}wo.type="element-highlight-by-name",wo.defaultOptions={trigger:"pointerover",triggerOff:"pointerout",highlightState:Xi.highlight,blurState:Xi.blur,filterType:"groupKey"};function ew(n){if(n)return n.type===De.Band?n.bandwidth():n.type===De.Point?n.step():void 0}class RB{updateStates(t,e,i,s){return t&&t.length?(i&&s?e&&e.length?(this.toggleReverseStateOfElements(t,e,s),this.toggleStateOfElements(t,e,i)):this.addBothStateOfElements(t,i,s):i&&(e&&e.length?this.toggleStateOfElements(t,e,i):this.addStateOfElements(t,i)),t):null}toggleReverseStateOfElements(t,e,i){e.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.addState(i)}),t.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.removeState(i)})}toggleStateOfElements(t,e,i){e.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.removeState(i)}),t.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.addState(i)})}addBothStateOfElements(t,e,i){this._marks.forEach(s=>{var r;const a=i&&this._stateMarks[i]&&this._stateMarks[i].includes(s),o=e&&this._stateMarks[e]&&this._stateMarks[e].includes(s);(a||o)&&((r=s.elements)===null||r===void 0||r.forEach(l=>{t&&t.includes(l)?o&&l.addState(e):a&&l.addState(i)}))})}addStateOfElements(t,e){this._marks.forEach(i=>{var s;const r=e&&this._stateMarks[e]&&this._stateMarks[e].includes(i);r&&((s=i.elements)===null||s===void 0||s.forEach(a=>{t&&t.includes(a)&&r&&a.addState(e)}))})}clearAllStates(t,e){this._statedElements&&this._statedElements.length&&this._marks.forEach(i=>{i&&i.elements&&(e&&this._stateMarks[e]&&this._stateMarks[e].includes(i)&&i.elements.forEach(s=>{s.removeState(e)}),t&&this._stateMarks[t]&&this._stateMarks[t].includes(i)&&i.elements.forEach(s=>{this._statedElements.includes(s)&&s.removeState(t)}))})}}const D7=()=>{G.registerInteraction(So.type,So)},F7=()=>{se(ra,RB),G.registerInteraction(ra.type,ra)},z7=()=>{se(aa,RB),G.registerInteraction(aa.type,aa)},j7=()=>{G.registerInteraction(Ao.type,Ao)},H7=()=>{G.registerInteraction(ko.type,ko)},V7=()=>{G.registerInteraction(To.type,To)},W7=()=>{G.registerInteraction(Mo.type,Mo)},G7=()=>{G.registerInteraction(wo.type,wo)},iw=(n,t)=>bu(n)?n.output():n&&yt(n)?N(n.callback)?e=>n.callback(e,t):N(n.value)?n.value(t):n:n,N7=(n,t)=>n&&(yt(n)?Object.keys(n).reduce((e,i)=>{const s=n[i];return e[i]=iw(s,t),e},{}):n.map(e=>iw(e,t)));let U7=-1;class am extends Io{constructor(t){super(),this.spec={},this.references=new Map,this.targets=[],this.transforms=[],this.view=t,this.uid=++U7}parse(t){return this.id(t.id),this.name(t.name),this.depend(t.dependency),this}depend(t){var e;if(!((e=this.spec)===null||e===void 0)&&e.dependency){const s=j(this.spec.dependency).map(r=>tt(r)?this.view.getGrammarById(r):r);this.detach(s)}this.spec.dependency=t;const i=j(t).map(s=>tt(s)?this.view.getGrammarById(s):s);return this.attach(i),this.commit(),this}addEventListener(t,e,i){let s=e;return i&&i.trap===!1||(s=e,s.raw=e),i&&i.target&&(s.target=i.target),this.on(t,s),this}removeEventListener(t,e){return e?this.off(t,e):this.off(t),this}emit(t,...e){var i,s;return(s=(i=this.view)===null||i===void 0?void 0:i.emit)===null||s===void 0||s.call(i,t,...e),super.emit(t,...e)}emitGrammarEvent(t,...e){return super.emit(t,...e)}evaluateTransform(t,e,i){if(!t||!t.length)return e;let s=e,r=0;const a=t.length;for(;r!P(i)).forEach(i=>{var s;P(t)||(i.targets.includes(this)||i.targets.push(this),this.references.set(i,((s=this.references.get(i))!==null&&s!==void 0?s:0)+e))}),this}detach(t,e=1){return j(t).filter(i=>!P(i)).forEach(i=>{const s=this.references.get(i)-e;s>0?this.references.set(i,s-1):(this.references.delete(i),i.targets.includes(this)&&(i.targets=i.targets.filter(r=>r!==this)))}),this}detachAll(){this.references.forEach((t,e)=>{this.detach(e,t)})}link(t){this.grammarSource=t}run(){var t;const e=(t=this.grammarSource)===null||t===void 0?void 0:t.output(),i=this.parameters();return this.evaluate(e,i)}commit(){this.view.commit(this)}parameters(){const t={};return this.references.forEach((e,i)=>{C(i.id())&&(t[i.id()]=i.output())}),t}getSpec(){return this.spec}reuse(t){return this}clear(){this.spec=null,this.view=null}release(){this.clear()}setFunctionSpec(t,e){return P(this.spec[e])||this.detach(Li(this.spec[e],this.view)),this.spec[e]=t,this.attach(Li(t,this.view)),this.commit(),this}}const nw=(n,t,e)=>{var i;if(n==="callback"&&N(t))return{references:[],value:{callback:t,dependency:[]}};if(!P(t.data)){const s=e.getDataById(t.data);return{references:[s],value:s}}if(!P(t.customized)){const s=e.getCustomizedById(t.customized);return{references:[s],value:s}}if(!P(t.scale)){const s=e.getScaleById(t.scale);return{references:[s],value:s}}if(p7(t)){const s=Li(t,e);return{references:s,value:t.callback?{value:t.callback,dependency:s}:(i=s==null?void 0:s[0])!==null&&i!==void 0?i:t}}return{value:t}},$7=(n,t,e)=>{if(P(t))return{value:t};if(U(t)){const i=t.map(s=>nw(n,s,e));return{references:i.reduce((s,r)=>(r.references&&s.concat(r.references),s),[]),value:i.map(s=>s.value)}}return nw(n,t,e)},Y7=(n,t)=>{const e=G.getTransform(n.type);if(!e)return;const i={};let s=[];return Object.keys(n).forEach(r=>{var a;if(r==="type")return;const o=n[r];if(r==="dependency")return void((o==null?void 0:o.length)&&(s=s.concat(wB(o,t))));const l=$7(r,o,t);l&&(!((a=l.references)===null||a===void 0)&&a.length&&(s=s.concat(l.references)),i[r]=l.value)}),{markPhase:e.markPhase,transform:e.transform,canProgressive:e.canProgressive,type:e.type,options:i,references:s}},T_=(n,t)=>{if(n!=null&&n.length){const e=[];let i=[];return n.forEach(s=>{var r;const a=Y7(s,t);a&&(!((r=a.references)===null||r===void 0)&&r.length&&(i=i.concat(a.references)),e.push(a))}),{transforms:e,refs:i}}return null},X7=(n,t={},e)=>{if(!tt(n))return j(n);try{return j(JSON.parse(n))}catch{return[]}},sw={csv:dE,dsv:hE,tsv:cE,json:X7},K7=(n,t)=>{if(!t||!sw[t.type])return j(n);const e=t.type==="dsv"?{delimiter:t.delimiter}:{};return sw[t.type](n,e,new Gt(new ya))};class q7 extends am{constructor(t,e,i){super(t),this.grammarType="data",this.spec={},this._dataIDKey=`VGRAMMAR_DATA_ID_KEY_${this.uid}`,this._loadTasks=[],this._postFilters=[],this.ingest=s=>{const r=g7(s.format,this.parameters());return this._input=K7(s.values,r),this._input},this.load=s=>{if(s.values)return this.ingest(s)},this.relay=s=>s[0],this._loadTasks=[],P(e)||this.values(e,i)}parse(t){return super.parse(t),this._isLoaded=!1,this.source(t.source,t.format,!1),this.url(t.url,t.format,!1),this.values(t.values,t.format,!1),this.transform(t.transform),this.parseLoad(t),this.commit(),this}parseDataSource(t){const e=[],i=[],s=t.format?Li(t.format,this.view)[0]:null;if(s&&e.push(s),t.values){const r=Li(t.values,this.view)[0];r&&e.push(r),i.push({type:"ingest",transform:this.ingest,isRawOptions:!0,options:{values:t.values,format:t.format}})}else if(t.url){const r=Li(t.url,this.view)[0];r&&e.push(r),i.push({type:"load",transform:this.load,options:{url:r??t.url,format:s??t.format}})}else if(t.source){const r=[];j(t.source).forEach(a=>{const o=bu(a)?a:this.view.getDataById(a);o&&(e.push(o),r.push(o))}),r.length&&(i.push({type:"relay",transform:this.relay,options:r}),this.grammarSource=r[0])}return{transforms:i,refs:e}}evaluate(t,e){this.view.emit(ut.BEFORE_EVALUATE_DATA);const i=this._isLoaded?this.transforms:this._loadTasks.concat(this.transforms);this.grammarSource&&(this._input=t);const s=this.evaluateTransform(i,this._input,e),r=this._evaluateFilter(s,e);return this.setValues(r),this._isLoaded=!0,this.view.emit(ut.AFTER_EVALUATE_DATA),this}output(){return this._values}getDataIDKey(){return this._dataIDKey}values(t,e,i=!0){const s=Object.assign({},this.spec,{values:t,format:e});return P(t)||(s.url=void 0,s.source=void 0),i?this.parseLoad(s):this}url(t,e,i=!0){const s=Object.assign({},this.spec,{url:t,format:e});return P(t)||(s.values=void 0,s.source=void 0),i?this.parseLoad(s):this}source(t,e,i=!0){const s=Object.assign({},this.spec,{source:t,format:e});return P(t)||(s.values=void 0,s.url=void 0),i?this.parseLoad(s):this}parseLoad(t){this.detach(this.parseDataSource(this.spec).refs),this.spec=t;const e=this.parseDataSource(this.spec);return this.attach(e.refs),this._loadTasks=e.transforms,this._isLoaded=!1,this.commit(),this}setValues(t){this._values=j(t).map((e,i)=>{const s=e===Object(e)?e:{data:e};return s[this._dataIDKey]=i,s})}field(t){return this._values.map(e=>e[t])}transform(t){const e=T_(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]),this.spec.transform=t;const i=T_(this.spec.transform,this.view);return i&&(this.attach(i.refs),this.transforms=i.transforms),this.commit(),this}getValue(){return this._values}getInput(){return this._input}addDataFilter(t){return this._postFilters=this._postFilters.concat(j(t)),this._postFilters.sort((e,i)=>{var s,r;return((s=e.rank)!==null&&s!==void 0?s:0)-((r=i.rank)!==null&&r!==void 0?r:0)}),this}removeDataFilter(t){const e=j(t);return this._postFilters=this._postFilters.filter(i=>!e.includes(i)),this}_evaluateFilter(t,e){return this._postFilters.reduce((i,s)=>s.filter(i,e),t)}reuse(t){return t.grammarType!==this.grammarType||(this._isLoaded=!1,this._values=t.output()),this}clear(){super.clear(),this._input=null,this._values=null}}function Eg(n,t,e,i){let s,r;const a=n[t];for(;t>e&&(r=Math.floor((t-1)/2),s=n[r],a&&s&&i(a,s)<0);)n[t]=s,t=r;return n[t]=a}function P0(n,t,e,i){const s=t,r=n.length,a=n[t];let o,l=2*t+1;for(;l=0&&(l=o),n[t]=n[l],l=2*(t=l)+1;return n[t]=a,Eg(n,t,s,i)}class Z7{constructor(t){this.compare=t,this.nodes=[]}size(){return this.nodes.length}last(){return this.nodes[0]}validate(){for(let t=this.nodes.length-1;t>0;t-=1){const e=Math.floor((t-1)/2);if(this.compare(this.nodes[e],this.nodes[t])>0)return!1}return!0}push(t){if(this.nodes.includes(t)){const e=this.nodes.indexOf(t);return Eg(this.nodes,e,0,this.compare),P0(this.nodes,e,null,this.compare)}return this.nodes.push(t),Eg(this.nodes,this.nodes.length-1,0,this.compare)}remove(t){if(this.nodes.includes(t)){const e=this.nodes.indexOf(t);this.nodes=this.nodes.slice(0,e).concat(this.nodes.slice(e+1)),Eg(this.nodes,e,0,this.compare),P0(this.nodes,e,null,this.compare)}}pop(){const t=this.nodes.pop();let e;return this.nodes.length?(e=this.nodes[0],this.nodes[0]=t,P0(this.nodes,0,null,this.compare)):e=t,e}clear(){this.nodes=[]}}class rw{constructor(t){this.list=[],this.ids={},this.idFunc=t||m5}add(t){const e=this.idFunc(t);return this.ids[e]||(this.ids[e]=1,this.list.push(t)),this}remove(t){const e=this.idFunc(t);return this.ids[e]&&(this.ids[e]=0,this.list=this.list.filter(i=>i!==t)),this}forEach(t,e){e?this.list.slice().reverse().forEach(t):this.list.forEach(t)}filter(t){return this.list.filter(t)}get length(){return this.list.length}getElementByIndex(t){return this.list[t]}}class J7{constructor(){this.grammars=[],this.logger=Ot.getInstance(),this._curRank=0,this._committed=new rw(t=>t.uid),this._heap=new Z7((t,e)=>(t==null?void 0:t.qrank)-(e==null?void 0:e.qrank)),this._beforeRunner=null,this._afterRunner=null,this._updateCounter=0,this._finishFirstRender=!1}add(t){if(t)return this._setRankOfGrammar(t),this.commit(t),!this.grammars.includes(t)&&(this.grammars.push(t),!0)}remove(t){t&&(this._committed.remove(t),this._heap.remove(t),this.grammars=this.grammars.filter(e=>e!==t))}_setRankOfGrammar(t){t&&(t.rank=++this._curRank)}_reRank(t){const e=[t];for(;e.length;){const i=e.pop();this._setRankOfGrammar(i);const s=i.targets;s&&s.forEach(r=>{e.push(r),r===t&&this.logger.error("Cycle detected in dataflow graph.")})}}_enqueue(t){t&&(t.qrank=t.rank,this._heap.push(t))}_logGrammarRunInfo(t){if(this.logger.canLogError()){const e=[{key:"id",value:t.id()},{key:"name",value:t.name()}].reduce((i,s,r)=>P(s.value)?i:`${i}${r?" , ":""}${s.key}: ${s.value}`,"");this.logger.debug("Run Operator: ",t,e)}}hasCommitted(){return!!this._committed.length}commit(t){return this._committed.add(t),this}_beforeEvaluate(){this.grammars.forEach(t=>{t.targets.some(e=>(e==null?void 0:e.rank)<(t==null?void 0:t.rank))&&this._reRank(t)}),this._committed.forEach(t=>this._enqueue(t)),this._committed=new rw(t=>t.uid)}_enqueueTargets(t){t.targets&&t.targets.length&&this._finishFirstRender&&t.targets.forEach(e=>this._enqueue(e))}evaluate(){if(this._beforeRunner&&this._beforeRunner(this),!this._committed.length)return this.logger.info("Dataflow invoked, but nothing to do."),!1;this._updateCounter+=1;let t,e,i=0;for(this.logger.canLogInfo()&&(e=Date.now(),this.logger.debug(`-- START PROPAGATION (${this._updateCounter}) -----`)),this._beforeEvaluate();this._heap.size()>0;)t=this._heap.pop(),t&&(t.rank===t.qrank?(t.run(),this._logGrammarRunInfo(t),this._enqueueTargets(t),i+=1):this._enqueue(t));return this.logger.canLogInfo()&&(e=Date.now()-e,this.logger.info(`> ${i} grammars updated; ${e} ms`)),this._afterRunner&&this._afterRunner(this),this._finishFirstRender=!0,!0}runBefore(t){this._beforeRunner=t}runAfter(t){this._afterRunner=t}release(){this._heap&&(this._heap.clear(),this._heap=null),this.logger=null,this._committed=null}}const E0=(n,t,e,i,s)=>{const r=a=>{if(s||!a||i&&!i(a)||e.call(null,a),a.markType===Q.group){const o=a[t];o&&o.forEach(l=>{r(l)})}s&&(!a||i&&!i(a)||e.call(null,a))};r(n)};class Q7{constructor(t){this.handleAfterNextRender=()=>{this._stage&&!this._viewOptions.disableDirtyBounds&&this._stage.enableDirtyBounds(),this._view.emit(ut.AFTER_VRENDER_DRAW),this._view.emit(ut.AFTER_VRENDER_NEXT_RENDER)},this._view=t}initialize(t,e,i,s){return this._width=t,this._height=e,this._viewOptions=i,this._eventConfig=s,this.initStage(),this}stage(){var t;return(t=this._stage)!==null&&t!==void 0?t:null}gestureController(){var t;return(t=this._gestureController)!==null&&t!==void 0?t:null}canvas(){return this._stage?this._stage.window.getNativeHandler().nativeCanvas:null}context(){return this._stage?this._stage.window.getContext().nativeContext:null}combineIncrementalLayers(){return this._stage&&Bj(this._stage).then(()=>{this._stage&&this._stage.defaultLayer.combineSubLayer()}),this}background(t){if(this._stage)return this._stage.background=t,this}setDpr(t,e){var i,s;return(s=(i=this._stage)===null||i===void 0?void 0:i.setDpr)===null||s===void 0||s.call(i,t),e&&this.renderNextFrame(),this}shouldResize(t,e){return t!==this._width||e!==this._height}resize(t,e){return this._view.emit(ut.BEFORE_STAGE_RESIZE),this.shouldResize(t,e)&&(this._width=t,this._height=e,this._stage&&this._stage.resize(t,e)),this._view.emit(ut.AFTER_STAGE_RESIZE),this}setViewBox(t,e=!0){return this._stage?(!t||this._viewBox&&t.x1===this._viewBox.x1&&t.x2===this._viewBox.x2&&t.y1===this._viewBox.y1&&t.y2===this._viewBox.y2||(this._viewBox=t,this._stage.setViewBox(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1,e)),this):this}render(t=!1){return this._view.emit(ut.BEFORE_VRENDER_DRAW),this.initStage(),this._stage.disableDirtyBounds(),this._stage.afterNextRender(this.handleAfterNextRender),t&&(this._stage.render(),this._view.emit(ut.AFTER_VRENDER_DRAW)),this}renderNextFrame(){return this.initStage(),this._stage.renderNextFrame(),this}toCanvas(){return this._stage?this._stage.toCanvas():null}preventRender(t){this._stage&&this._stage.preventRender(t)}release(){var t;this._view.traverseMarkTree(e=>{e.release()}),this._dragController&&this._dragController.release(),this._gestureController&&this._gestureController.release(),this._stage!==((t=this._viewOptions)===null||t===void 0?void 0:t.stage)&&this._stage.release(),this._stage=null,this._layer=null,this._dragController=null,this._gestureController=null}createStage(){var t,e,i,s,r;this._view.emit(ut.BEFORE_CREATE_VRENDER_STAGE);const a=this._viewOptions,o=(t=a.stage)!==null&&t!==void 0?t:gG({width:this._width,height:this._height,renderStyle:a.renderStyle,viewBox:a.viewBox,dpr:a.dpr,canvas:a.renderCanvas,canvasControled:a.canvasControled,container:a.container,title:a.rendererTitle,beforeRender:a.beforeRender,afterRender:a.afterRender,disableDirtyBounds:!0,autoRender:!0,pluginList:a.pluginList,enableHtmlAttribute:a.enableHtmlAttribute,optimize:a.optimize,ticker:a.ticker,supportsTouchEvents:a.supportsTouchEvents,supportsPointerEvents:a.supportsPointerEvents,ReactDOM:a.ReactDOM});!((e=a.options3d)===null||e===void 0)&&e.enable&&o.set3dOptions(a.options3d),o.enableIncrementalAutoRender(),this._viewBox=a.viewBox,this._view.emit(ut.AFTER_CREATE_VRENDER_STAGE),this._view.emit(ut.BEFORE_CREATE_VRENDER_LAYER);const l=(i=a.layer)!==null&&i!==void 0?i:o.defaultLayer;if(this._view.emit(ut.AFTER_CREATE_VRENDER_LAYER),!((s=this._eventConfig)===null||s===void 0)&&s.drag&&G.getStageEventPlugin("drag")&&(this._dragController=new(G.getStageEventPlugin("drag"))(o)),((r=this._eventConfig)===null||r===void 0?void 0:r.gesture)&&G.getStageEventPlugin("gesture")){const h=yt(this._eventConfig.gesture)?this._eventConfig.gesture:{};this._gestureController=new(G.getStageEventPlugin("gesture"))(o,h)}return{stage:o,layer:l}}initStage(){if(!this._stage){const{stage:t,layer:e}=this.createStage();this._stage=t,this._layer=e;const i=this._view.background();this.background(i)}}}const t6="window",M_="view",e6="browser",Ur="width",$r="height",bd="viewWidth",xd="viewHeight",Jn="padding",zx="viewBox",Sd="autoFit",i6="@",n6="#";function OB(n,t,e,i){var s,r;let a=(s=t.target)===null||s===void 0?void 0:s[na];if(!a&&i===M_){let o=t.target;const l=(r=n.rootMark)===null||r===void 0?void 0:r.graphicItem;for(;o!=null&&o.parent&&o.parent!==l;)if(o=o.parent,o[na]){a=o[na];break}}return t.element=a,t}class s6 extends am{constructor(){super(...arguments),this.grammarType="signal",this.spec={value:null,update:null}}parse(t){return super.parse(t),this.value(t.value),this.update(t.update),this.commit(),this}evaluate(t,e){return this._signal=this.spec.update?ri(this.spec.update,e,this._signal):this.spec.value,this.spec.value=this._signal,this}output(){return this._signal}getValue(){return this.output()}set(t){if(U(t)&&U(this.value)&&t.length===this.value.length){for(let e=0;e{var i,s,r,a,o;return[{id:Ur,value:(i=n[Ur])!==null&&i!==void 0?i:0},{id:$r,value:(s=n[$r])!==null&&s!==void 0?s:0},{id:Jn,value:Al((a=(r=n[Jn])!==null&&r!==void 0?r:t[Jn])!==null&&a!==void 0?a:e==null?void 0:e.padding)},{id:bd,update:{callback:(l,h)=>{const d=Al(h[Jn]);return h[Ur]-d.left-d.right},dependency:[Ur,Jn]}},{id:xd,update:{callback:(l,h)=>{const d=Al(h[Jn]);return h[$r]-d.top-d.bottom},dependency:[$r,Jn]}},{id:zx,update:{callback:(l,h)=>{const d=Al(h[Jn]);return(l||new wi).setValue(d.left,d.top,d.left+h[bd],d.top+h[xd])},dependency:[bd,xd,Jn]}},{id:Sd,value:(o=n[Sd])!==null&&o!==void 0?o:t[Sd]}]},Al=n=>{var t,e,i,s;return J(n)?{top:n,bottom:n,left:n,right:n}:{top:(t=n==null?void 0:n.top)!==null&&t!==void 0?t:0,bottom:(e=n==null?void 0:n.bottom)!==null&&e!==void 0?e:0,left:(i=n==null?void 0:n.left)!==null&&i!==void 0?i:0,right:(s=n==null?void 0:n.right)!==null&&s!==void 0?s:0}},o6=n=>{var t;const e=(i,s)=>{var r,a;i.group=s;const o=(r=i.id)!==null&&r!==void 0?r:"VGRAMMAR_MARK_"+ ++r6;i.id=o,((a=i.marks)!==null&&a!==void 0?a:[]).forEach(l=>e(l,o))};return((t=n.marks)!==null&&t!==void 0?t:[]).forEach(i=>e(i,"root")),n},l6=n=>{var t,e,i,s,r;const{reuse:a=r7,morph:o=a7,morphAll:l=o7,animation:h={},enableExitAnimation:d=h7}=n??{};return{reuse:a,morph:o,morphAll:l,animation:{easing:(t=h.easing)!==null&&t!==void 0?t:rb,delay:(e=h.delay)!==null&&e!==void 0?e:nb,duration:(i=h.duration)!==null&&i!==void 0?i:MB,oneByOne:(s=h.oneByOne)!==null&&s!==void 0?s:sb,splitPath:(r=h.splitPath)!==null&&r!==void 0?r:l7},enableExitAnimation:d}};function h6(n){n.mode&&Et.setEnv(n.mode,n.modeParams||{})}function Yr(n,t,e){const i=new Map;if(!n||n.length===0)return{keys:[],data:i};if(!t)return i.set(tn,e?n.slice().sort(e):n.slice()),{keys:s7,data:i};const s=vd(t);if(n.length===1){const a=s(n[0]);return i.set(a,[n[0]]),{keys:[a],data:i}}const r=new Set;return n.forEach(a=>{var o;const l=s(a),h=(o=i.get(l))!==null&&o!==void 0?o:[];h.push(a),i.set(l,h),r.add(l)}),e&&r.forEach(a=>{i.get(a).sort(e)}),{keys:Array.from(r),data:i}}class BB{constructor(t,e,i){this.prevData=t!=null&&t.length?Yr(t,e??null,i):null}setCurrentData(t){this.currentData=t}getCurrentData(){return this.currentData}doDiff(){if(this.callback)if(this.currentData&&this.prevData){const t=new Map(this.prevData.data);this.currentData.keys.forEach(e=>{this.callback(e,this.currentData.data.get(e),t.get(e)),t.delete(e)}),this.prevData.keys.forEach(e=>{t.has(e)&&this.callback(e,null,t.get(e))})}else this.currentData?this.currentData.keys.forEach(t=>{this.callback(t,this.currentData.data.get(t),null)}):this.prevData&&this.prevData.keys.forEach(t=>{this.callback(t,null,this.prevData.data.get(t))})}setCallback(t){this.callback=t}updateToCurrent(){this.prevData=this.currentData,this.currentData=null}reset(){this.prevData=null}}function d6(n,t,e){const i={enter:[],exit:[],update:[]},s=new BB(n,e);return s.setCallback((r,a,o)=>{P(a)?i.exit.push({prev:o[0]}):P(o)?i.enter.push({next:a[0]}):i.update.push({next:a[0],prev:o[0]})}),s.setCurrentData(Yr(t,e)),s.doDiff(),i}class Vo extends am{constructor(t,e,i){super(t),this.grammarType="mark",this.elements=[],this.elementMap=new Map,this.isUpdated=!0,this._isReentered=!1,this.differ=new BB([]),this.markType=e,this.spec.type=e,this.spec.encode={update:{}},this.spec.group=i,i&&(this.group=i,this.attach(i),i.appendChild(this))}parse(t){var e,i,s;if(super.parse(t),this.spec.group){const a=tt(this.spec.group)?this.view.getMarkById(this.spec.group):this.spec.group;this.detach(a)}const r=tt(t.group)?this.view.getMarkById(t.group):t.group;return this.attach(r),this.join((e=t.from)===null||e===void 0?void 0:e.data,t.key,t.sort,t.groupBy,t.groupSort),this.coordinate(t.coordinate),this.state(t.state,this.spec.stateSort),Object.keys((i=this.spec.encode)!==null&&i!==void 0?i:{}).forEach(a=>{this.encodeState(a,{},!0)}),Object.keys((s=t.encode)!==null&&s!==void 0?s:{}).forEach(a=>{this.encodeState(a,t.encode[a])}),this.animation(t.animation),this.animationState(t.animationState),this.morph(t.morph,t.morphKey,t.morphElementKey),this.layout(t.layout),this.configure(t),this.transform(t.transform),this.parseAddition(t),this.spec=t,this.markType=t.type,this.commit(),this}parameters(){var t;return(t=this._finalParameters)!==null&&t!==void 0?t:super.parameters()}parseAddition(t){return this}reuse(t){var e;if(t.grammarType!==this.grammarType)return this;const i=t;return this.markType=i.markType,this.coord=i.coord,this.elementMap=i.elementMap,this.elements=i.elements,this.elementMap.forEach(s=>s.mark=this),this.differ=i.differ,(e=this.reuseAnimate)===null||e===void 0||e.call(this,i),this._context=i._context,this.graphicItem=i.graphicItem,this.graphicIndex=i.graphicIndex,this.graphicParent=i.graphicParent,this.needClear=i.needClear,this.isUpdated=i.isUpdated,this}needLayout(){return!P(this.spec.layout)}handleLayoutEnd(){}handleRenderEnd(){this.needClear&&(this.cleanExitElements(),this.elementMap.forEach(t=>{t.diffState===Zt.exit?t.clearGraphicAttributes():t.clearChangedGraphicAttributes()}),this.differ.updateToCurrent(),this.needClear=!1)}evaluateMainTasks(t,e){var i,s;if(this.needSkipBeforeLayout()&&this.view.getLayoutState()===ir.before)return this;const r=(i=this.view.renderer)===null||i===void 0?void 0:i.stage();this.init(r,e);const a=this.evaluateTransform(this._getTransformsBeforeJoin(),t??Pg,e),o=a==null?void 0:a.progressive;if(o?this.renderContext={large:!1}:(this.evaluateGroup(a),this.renderContext=this.parseRenderContext(a,e)),(s=this.renderContext)===null||s===void 0?void 0:s.progressive)this.differ.reset(),this.elementMap.clear(),this.evaluateProgressive();else{let l=null;if(o){if(this.renderContext.parameters=e,this.renderContext.beforeTransformProgressive=a.progressive,l=a.progressive.output(),a.progressive.canAnimate&&a.progressive.unfinished())return this.update(this.spec),this}else l=a;this.emit(ut.BEFORE_MARK_JOIN),this.evaluateJoin(l),this.emit(ut.AFTER_MARK_JOIN),this.emit(ut.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,e),this.emit(ut.AFTER_MARK_STATE),this.emit(ut.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),e),this.emit(ut.AFTER_MARK_ENCODE)}return this.update(this.spec),this}evaluateGroup(t){if(this.markType===Q.group)return;const e=Yr(t??Pg,this.spec.groupBy,this.spec.groupSort);this._groupEncodeResult=null,this._groupedData=e}_getTransformsAfterEncodeItems(){return this.transforms&&this.transforms.filter(t=>t.markPhase==="afterEncodeItems")}_getTransformsAfterEncode(){return this.transforms&&this.transforms.filter(t=>P(t.markPhase)||t.markPhase==="afterEncode")}_getTransformsBeforeJoin(){return this.transforms?this.transforms.filter(t=>t.markPhase==="beforeJoin"):[]}evaluate(t,e){var i;return this.evaluateMainTasks(t,e),!((i=this.renderContext)===null||i===void 0)&&i.progressive||this.evaluateTransform(this._getTransformsAfterEncode(),this.elements,e),this}output(){return this}join(t,e,i,s,r){return this.grammarSource&&(this.detach(this.grammarSource),this.grammarSource=null),this.spec.from=null,P(t)||(tt(t)?this.grammarSource=this.view.getDataById(t):this.grammarSource=t,this.spec.from={data:t},this.attach(this.grammarSource)),this.spec.key=e,this.spec.sort=i,this.spec.groupBy=s,this.spec.groupSort=r,this.commit(),this}coordinate(t){return tt(t)?this.coord=this.view.getCoordinateById(t):this.coord=t,this.attach(this.coord),this.commit(),this}state(t,e){return this.spec.stateSort=e,this.setFunctionSpec(t,"state")}encode(t,e,i){return this.encodeState(Zt.update,t,e,i)}encodeState(t,e,i,s){if(t===Zt.enter&&(this._isReentered=!0),this.spec.encode[t]){const r=this.spec.encode[t];if(Qa(r))this.detach(Ha(r,this.view));else{const a=tt(e);a&&s||!a&&i?(Object.keys(r).forEach(o=>{this.detach(Ha(r[o],this.view))}),this.spec.encode[t]={}):a?this.detach(Ha(r[e],this.view)):Object.keys(e).forEach(o=>{this.detach(Ha(r[o],this.view))})}}return e&&(this.spec.encode[t]||(this.spec.encode[t]={}),tt(e)?(this.spec.encode[t][e]=i,this.attach(Ha(i,this.view))):Qa(e)?(this.spec.encode[t]=e,this.attach(Ha(e,this.view))):e&&(Object.assign(this.spec.encode[t],e),Object.values(e).forEach(r=>{this.attach(Ha(r,this.view))}))),this.commit(),this}_getEncoders(){var t;return(t=this.spec.encode)!==null&&t!==void 0?t:{}}animation(t){return this.spec.animation=t,this}animationState(t){return this.setFunctionSpec(t,"animationState")}layout(t){return this.spec.layout=t,this.commit(),this}morph(t,e,i){return this.spec.morph=t,this.spec.morphKey=e,this.spec.morphElementKey=i,this}transform(t){const e=T_(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]);const i=T_(t,this.view);return i&&(this.attach(i.refs),this.transforms=i.transforms),this.spec.transform=t,this.commit(),this}configure(t){const e=["clip","clipPath","zIndex","interactive","context","setCustomizedShape","large","largeThreshold","progressiveStep","progressiveThreshold","support3d","morph","morphKey","morphElementKey","attributeTransforms","skipTheme","enableSegments","stateSort"];return t===null?(e.forEach(i=>{P(this.spec[i])||(this.spec[i]=void 0)}),this):(e.forEach(i=>{P(t[i])||(this.spec[i]=t[i])}),this)}context(t){return this.spec.context=t,this._context=t,this}isCollectionMark(){return TB.includes(this.markType)}needAnimate(){var t;return!(!((t=this.renderContext)===null||t===void 0)&&t.progressive)&&!P(this.spec.animation)}getAllElements(){const t=this.elements.slice();return this.elementMap.forEach(e=>{e.diffState!==Zt.exit||t.includes(e)||t.push(e)}),this.spec.sort&&t.sort((e,i)=>this.spec.sort(e.getDatum(),i.getDatum())),t}getScales(){const t={};return this.references.forEach((e,i)=>{i.grammarType===ib.scale&&(t[i.id()]=i.output())}),t}getScalesByChannel(){const t=this.spec.encode;if(!t)return{};const e={},i=this.parameters();return Object.keys(t).forEach(s=>{const r=t[s];r&&!Qa(r)&&Object.keys(r).forEach(a=>{rm(r[a])&&(e[a]=Pc(r[a].scale,i))})}),e}getFieldsByChannel(){const t=this.spec.encode;if(!t)return{};const e={};return Object.keys(t).forEach(i=>{const s=t[i];Qa(s)||Object.keys(s).forEach(r=>{Ix(s[r])&&(e[r]=s[r].field)})}),e}init(t,e){var i,s,r,a,o;if(this._delegateEvent||(this._delegateEvent=(d,c)=>{const u=OB(this.view,d,c,M_),g=d.element;(g==null?void 0:g.mark)===this&&this.emitGrammarEvent(c,u,g)},this.initEvent()),(i=this.initAnimate)===null||i===void 0||i.call(this,this.spec),!this.group){const d=Pc(this.spec.group,e);this.group=d,d&&d.appendChild(this)}const l=this.group?this.group.getGroupGraphicItem():t.defaultLayer,h=(a=(r=(s=this.group)===null||s===void 0?void 0:s.children)===null||r===void 0?void 0:r.indexOf(this))!==null&&a!==void 0?a:0;if(this.markType!==Q.group){if(!this.graphicItem){const d=yd(this,Q.group,{pickable:!1,zIndex:(o=this.spec.zIndex)!==null&&o!==void 0?o:0});(this.spec.support3d||n7.includes(this.markType))&&d.setMode("3d"),d.name=`${this.id()||this.markType}`,this.graphicItem=d}this.graphicParent=this.graphicItem,!l||this.graphicIndex===h&&this.graphicItem.parent===l||l.insertIntoKeepIdx(this.graphicItem,h)}else this.graphicParent=l;this.graphicIndex=h}update(t){var e;if(this.emit(ut.BEFORE_MARK_UPDATE),this._context=this.spec.context,this.isUpdated=!0,this.renderContext.progressive||(e=this.updateAnimate)===null||e===void 0||e.call(this,t),this.markType!==Q.group){if(P(t.zIndex)||this.graphicItem.setAttribute("zIndex",t.zIndex),P(t.clip)||this.graphicItem.setAttribute("clip",t.clip),!P(t.clipPath)){const i=U(t.clipPath)?t.clipPath:t.clipPath(this.elements);i&&i.length?this.graphicItem.setAttribute("path",i):this.graphicItem.setAttributes({path:i,clip:!1})}this.elementMap.forEach(i=>{i.updateGraphicItem()})}else this.elementMap.forEach(i=>{i.updateGraphicItem()});this.emit(ut.AFTER_MARK_UPDATE)}createElement(){return new PB(this)}evaluateJoin(t){var e,i,s,r;this.needClear=!0;const a=vd((s=(e=this.spec.key)!==null&&e!==void 0?e:(i=this.grammarSource)===null||i===void 0?void 0:i.getDataIDKey())!==null&&s!==void 0?s:()=>tn),o=vd((r=this.spec.groupBy)!==null&&r!==void 0?r:()=>tn),l=this.spec.sort,h=this.isCollectionMark(),d=new Set(this.elements.filter(g=>g.diffState===Zt.enter)),c=[];this.differ.setCallback((g,p,_)=>{var f;const m=g;let v;if(P(p))v=this.elementMap.get(m),v&&(v.diffState=Zt.exit);else if(P(_)){if(v=this.elementMap.has(m)?this.elementMap.get(m):this.createElement(),v.diffState===Zt.exit){v.diffState=Zt.enter;const b=(f=this.animate)===null||f===void 0?void 0:f.getElementAnimators(v,Zt.exit);b&&b.forEach(x=>x.stop("start"))}v.diffState=Zt.enter;const y=h?g:o(p[0]);v.updateData(y,p,a),this.elementMap.set(m,v),c.push(v)}else if(v=this.elementMap.get(m),v){v.diffState=Zt.update;const y=h?g:o(p[0]);v.updateData(y,p,a),c.push(v)}d.delete(v)});const u=t??Pg;h?this.differ.setCurrentData(this._groupedData):this.differ.setCurrentData(Yr(u,g=>`${o(g)}-${a(g)}`,void 0)),this.differ.doDiff(),d.forEach(g=>{this.elementMap.delete(h?g.groupKey:`${g.groupKey}-${g.key}`),g.remove(),g.release()}),this.elements=c,l&&this.elements.length>=2&&this.elements.sort((g,p)=>l(g.getDatum(),p.getDatum()))}evaluateState(t,e,i){e&&t.forEach(s=>{s.state(e,i)})}evaluateGroupEncode(t,e,i){if(!this._groupedData||!e)return;const s={};return this._groupedData.keys.forEach(r=>{const a=t.find(o=>o.groupKey===r);a&&(s[r]=sa(e,a.items&&a.items[0]&&a.items[0].datum,a,i))}),this._groupEncodeResult=s,s}getChannelsFromConfig(t){const e=this.spec;return P(e.interactive)?null:{pickable:e.interactive}}evaluateEncode(t,e,i,s){const r=this.getChannelsFromConfig();if(e){this.emit(ut.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=s?null:this.evaluateGroupEncode(t,e[Nr.group],i);t.forEach(o=>{this.markType===Q.glyph&&this._groupEncodeResult?o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,this._groupEncodeResult[o.groupKey])}):a!=null&&a[o.groupKey]&&!this.isCollectionMark()?o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,a[o.groupKey])}):r&&o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r)}),o.encodeItems(o.items,e,this._isReentered,i),this.isCollectionMark()&&(a!=null&&a[o.groupKey])&&C(a[o.groupKey].defined)&&(o.items.forEach(l=>{l.nextAttrs.defined=a[o.groupKey].defined}),delete a[o.groupKey].defined)}),this._isReentered=!1,this.evaluateTransform(this._getTransformsAfterEncodeItems(),t,i),t.forEach(o=>{o.encodeGraphic(this.isCollectionMark()?a==null?void 0:a[o.groupKey]:null)}),this.emit(ut.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){var s;const r=i??yd(this,this.markType,t);if(r){if(!((s=this.renderContext)===null||s===void 0)&&s.progressive){let a;if(this._groupedData){const o=this._groupedData.keys.indexOf(e);o>=0&&(a=this.graphicParent.getChildAt(o))}else a=this.graphicParent.at(0);this.isCollectionMark()?(r.incremental=1,a.appendChild(r)):a.incrementalAppendChild(r)}else this.graphicParent.appendChild(r);return r}}parseRenderContext(t,e){const i=this.markType!==Q.group&&this.spec.progressiveStep>0&&this.spec.progressiveThreshold>0&&this.spec.progressiveStep0&&t.length>=this.spec.largeThreshold;if(i){const r=this._groupedData;return r&&r.keys&&r.keys.some(a=>r.data.get(a).length>this.spec.progressiveThreshold)?{large:s,parameters:e,progressive:{data:t,step:this.spec.progressiveStep,currentIndex:0,totalStep:r.keys.reduce((a,o)=>Math.max(Math.ceil(r.data.get(o).length/this.spec.progressiveStep),a),1),groupedData:r.data}}:{large:s}}return{large:s}}isProgressive(){return this.renderContext&&(!!this.renderContext.progressive||!!this.renderContext.beforeTransformProgressive)}canAnimateAfterProgressive(){return this.renderContext&&this.renderContext.beforeTransformProgressive&&this.renderContext.beforeTransformProgressive.canAnimate()}isDoingProgressive(){return this.renderContext&&(this.renderContext.progressive&&this.renderContext.progressive.currentIndex{t.incrementalClearChild()}),this.graphicParent.removeAllChild()),this.renderContext&&this.renderContext.beforeTransformProgressive&&this.renderContext.beforeTransformProgressive.release(),this.renderContext=null}restartProgressive(){this.renderContext&&this.renderContext.progressive&&(this.renderContext.progressive.currentIndex=0)}evaluateJoinProgressive(){var t,e,i;const s=this.renderContext.progressive.currentIndex,r=vd((i=(t=this.spec.key)!==null&&t!==void 0?t:(e=this.grammarSource)===null||e===void 0?void 0:e.getDataIDKey())!==null&&i!==void 0?i:()=>tn),a=[];if(this.isCollectionMark())return this._groupedData.keys.forEach((l,h)=>{const d=this.renderContext.progressive.groupedData.get(l),c=this.renderContext.progressive.step,u=d.slice(s*c,(s+1)*c);if(s===0){const g=this.createElement();g.diffState=Zt.enter,g.updateData(l,u,r),a.push(g)}else{const g=this.elements[h];g.updateData(l,u,r),a.push(g)}}),a;const o={};return this._groupedData.keys.forEach(l=>{const h=this.renderContext.progressive.groupedData.get(l),d=this.renderContext.progressive.step,c=h.slice(s*d,(s+1)*d),u=[];c.forEach(g=>{const p=this.createElement();p.diffState=Zt.enter,p.updateData(l,[g],r),u.push(p),a.push(p)}),o[l]=u}),{groupElements:o,elements:a}}evaluateEncodeProgressive(t,e,i){const s=this.renderContext.progressive.currentIndex;if(s===0){if(this.evaluateEncode(t,e,i),s===0&&this._groupEncodeResult&&!this.isCollectionMark()&&this.markType!==Q.glyph){const r=t[0],a=r.getGraphicItem(),o=a==null?void 0:a.parent;o&&this._groupEncodeResult[r.groupKey]&&o.setTheme({common:this._groupEncodeResult[r.groupKey]})}}else this.evaluateEncode(t,e,i,!0)}evaluateProgressive(){var t,e,i;if(!((t=this.renderContext)===null||t===void 0)&&t.beforeTransformProgressive){const l=this.renderContext.beforeTransformProgressive;l.progressiveRun();const h=l.output();if(l.canAnimate){if(l.unfinished())return;this.evaluateGroup(h)}return this.emit(ut.BEFORE_MARK_JOIN),this.evaluateJoin(h),this.emit(ut.AFTER_MARK_JOIN),this.emit(ut.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,this.renderContext.parameters),this.emit(ut.AFTER_MARK_STATE),this.emit(ut.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),this.renderContext.parameters),void this.emit(ut.AFTER_MARK_ENCODE)}if(!(!((e=this.renderContext)===null||e===void 0)&&e.progressive))return;const s=this.renderContext.parameters;this.emit(ut.BEFORE_MARK_JOIN);const r=this.evaluateJoinProgressive(),a=Array.isArray(r)?r:r.elements;if(this.emit(ut.AFTER_MARK_JOIN),this.renderContext.progressive.currentIndex===0?(this.graphicParent.removeAllChild(),this._groupedData.keys.forEach(l=>{const h=yd(this,Q.group,{pickable:!1,zIndex:this.spec.zIndex});h.incremental=this.renderContext.progressive.step,this.graphicParent.appendChild(h)}),this.elements=a):this.elements=this.elements.concat(a),this.emit(ut.BEFORE_MARK_STATE),this.evaluateState(a,this.spec.state,s),this.emit(ut.AFTER_MARK_STATE),this.emit(ut.BEFORE_MARK_ENCODE),Array.isArray(r))this.evaluateEncodeProgressive(a,this._getEncoders(),s);else{const l=r.groupElements;Object.keys(l).forEach(h=>{this.evaluateEncodeProgressive(l[h],this._getEncoders(),s)})}this.emit(ut.AFTER_MARK_ENCODE);const o=(i=this._getTransformsAfterEncode())===null||i===void 0?void 0:i.filter(l=>l.canProgressive===!0);o!=null&&o.length&&this.evaluateTransform(o,this.elements,s),this.renderContext.progressive.currentIndex+=1}isLargeMode(){return this.renderContext&&this.renderContext.large}cleanExitElements(){this.elementMap.forEach((t,e)=>{t.diffState!==Zt.exit||t.isReserved||(this.elementMap.delete(e),t.remove(),t.release())})}getGroupGraphicItem(){if(this.elements&&this.elements[0]&&this.elements[0].getGraphicItem)return this.elements[0].getGraphicItem()}getBounds(){var t;return this.graphicItem?this.graphicItem.AABBBounds:(t=this.getGroupGraphicItem())===null||t===void 0?void 0:t.AABBBounds}getMorphConfig(){var t;return{morph:(t=this.spec.morph)!==null&&t!==void 0&&t,morphKey:this.spec.morphKey,morphElementKey:this.spec.morphElementKey}}getAttributeTransforms(){var t;return(t=this.spec.attributeTransforms)!==null&&t!==void 0?t:xu[this.markType]}getContext(){return this._context}needSkipBeforeLayout(){var t,e;if(((t=this.spec.layout)===null||t===void 0?void 0:t.skipBeforeLayouted)===!0)return!0;let i=this.group;for(;i;){if(((e=i.getSpec().layout)===null||e===void 0?void 0:e.skipBeforeLayouted)===!0)return!0;i=i.group}return!1}initEvent(){if(this._delegateEvent){const t=this.view.renderer.stage();t&&t.on("*",this._delegateEvent)}}releaseEvent(){if(this._delegateEvent){const t=this.view.renderer.stage();t&&t.off("*",this._delegateEvent)}}clear(){var t;this.releaseEvent(),this.transforms=null,this.elementMap=null,this.elements=null,this.graphicItem=null,this.animate=null,(t=this.group)===null||t===void 0||t.removeChild(this),this.group=null,super.clear()}prepareRelease(){var t;this.differ.setCurrentData(null),(t=this.animate)===null||t===void 0||t.stop(),this.elementMap.forEach(e=>e.diffState=Zt.exit),this._finalParameters=this.parameters()}release(){this.releaseEvent(),this.elements.forEach(t=>t.release()),this.differ=null,this.elements=[],this.elementMap.clear(),this._finalParameters=null,this.animate&&this.animate.release(),this.graphicItem&&A_(this.graphicItem),this.detachAll(),super.release()}}let c6=class extends Vo{constructor(t,e){super(t,Q.group,e),this.children=[]}parseRenderContext(){return{large:!1}}appendChild(t){return this.children.push(t),this}removeChild(t){return this.children=this.children.filter(e=>e!==t),this}includesChild(t,e=!0){return!!this.children.includes(t)||!!e&&this.children.some(i=>i.markType===Q.group&&i.includesChild(t,!0))}updateLayoutChildren(){return this.children.length?(this.layoutChildren||(this.layoutChildren=[]),this.layoutChildren=this.children.filter(t=>t.needLayout()),this):this}getAttributeTransforms(){return xu.rect}evaluateJoin(t){if(!this.elements.length){const e=this.createElement();e.updateData(tn,Pg,()=>""),this.elements=[e],this.elementMap.set(tn,e)}}getChannelsFromConfig(t){const e=this.spec,i={};if(P(e.clip)||(i.clip=e.clip),P(e.zIndex)||(i.zIndex=e.zIndex),!P(e.clipPath)){const s=N(e.clipPath)?e.clipPath([t]):e.clipPath;s&&s.length?i.path=s:(i.path=null,i.clip=!1)}return P(e.interactive)||(i.pickable=e.interactive),i}evaluateGroupEncode(t,e,i){var s;const r=this.elements[0],a={},o=[Object.assign({},(s=r.items)===null||s===void 0?void 0:s[0],{nextAttrs:a})];return Js(r,o,e,i),this._groupEncodeResult=a,a}evaluateEncode(t,e,i,s){const r=this.getChannelsFromConfig();if(e){this.emit(ut.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=s?null:this.evaluateGroupEncode(t,e[Nr.group],i);t.forEach(o=>{o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,a)}),o.encodeItems(o.items,e,this._isReentered,i)}),this._isReentered=!1,this.evaluateTransform(this._getTransformsAfterEncodeItems(),t,i),t.forEach(o=>{o.encodeGraphic()}),this.emit(ut.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){const s=i??yd(this,this.markType,t);if(s)return this.emit(ut.BEFORE_ADD_VRENDER_MARK,{graphicItem:s}),s.name=`${this.id()||this.markType}`,this.graphicParent.insertIntoKeepIdx(s,this.graphicIndex),this.emit(ut.AFTER_ADD_VRENDER_MARK,{graphicItem:s}),s}};class LB{constructor(t,e){this._grammars={signal:[],data:[],scale:[],coordinate:[],mark:[],customized:[]},this._grammarMap={signal:{},data:{},scale:{},coordinate:{},mark:{},customized:{}},this._size=0,this._mapKey=tt(t)?i=>i[t]:t,this._warning=e}record(t){var e,i;const s=t.grammarType,r=this._mapKey(t);return this._grammarMap[s]?(this._grammars[s].push(t),P(r)||(this._grammarMap[s][r]?(e=this._warning)===null||e===void 0||e.call(this,r,t):this._grammarMap[s][r]=t)):(this._grammars.customized.push(t),P(r)||(this._grammarMap.customized[r]?(i=this._warning)===null||i===void 0||i.call(this,r,t):this._grammarMap.customized[r]=t)),this._size+=1,this}unrecord(t){const e=t.grammarType,i=this._mapKey(t);return this._grammarMap[e]?(this._grammars[e]=this._grammars[e].filter(s=>s!==t),P(i)||this._grammarMap[e][i]!==t||delete this._grammarMap[e][i]):(this._grammars.customized=this._grammars.customized.filter(s=>s!==t),P(i)||this._grammarMap.customized[i]!==t||delete this._grammarMap.customized[i]),this._size-=1,this}size(){return this._size}getSignal(t){var e;return(e=this._grammarMap.signal[t])!==null&&e!==void 0?e:null}getData(t){var e;return(e=this._grammarMap.data[t])!==null&&e!==void 0?e:null}getScale(t){var e;return(e=this._grammarMap.scale[t])!==null&&e!==void 0?e:null}getCoordinate(t){var e;return(e=this._grammarMap.coordinate[t])!==null&&e!==void 0?e:null}getMark(t){var e;return(e=this._grammarMap.mark[t])!==null&&e!==void 0?e:null}getCustomized(t){var e;return(e=this._grammarMap.customized[t])!==null&&e!==void 0?e:null}getGrammar(t){return this._grammarMap.data[t]?this._grammarMap.data[t]:this._grammarMap.signal[t]?this._grammarMap.signal[t]:this._grammarMap.scale[t]?this._grammarMap.scale[t]:this._grammarMap.coordinate[t]?this._grammarMap.coordinate[t]:this._grammarMap.mark[t]?this._grammarMap.mark[t]:this._grammarMap.customized[t]?this._grammarMap.customized[t]:null}getAllSignals(){return this._grammars.signal}getAllData(){return this._grammars.data}getAllScales(){return this._grammars.scale}getAllCoordinates(){return this._grammars.coordinate}getAllMarks(){return this._grammars.mark}getAllCustomized(){return this._grammars.customized}traverse(t){var e;Object.values((e=this._grammars)!==null&&e!==void 0?e:{}).forEach(i=>(i??[]).forEach(s=>{t.call(null,s)}))}find(t){let e=null;return this.traverse(i=>t.call(null,i)===!0&&(e=i,!0)),e}filter(t){const e=[];return this.traverse(i=>{t.call(null,i)===!0&&e.push(i)}),e}clear(){this._size=0,this._grammars={signal:[],data:[],scale:[],coordinate:[],mark:[],customized:[]},this._grammarMap={signal:{},data:{},scale:{},coordinate:{},mark:{},customized:{}}}release(){this._size=0,this._grammars=null,this._grammarMap=null}}class u6 extends LB{constructor(){super(...arguments),this._markNodes=[]}record(t){if(super.record(t),t.grammarType==="mark"){const e=t,i={mark:e,parent:null,children:[]};this._markNodes.forEach(s=>{const r=s.mark;r.markType===Q.group&&r.includesChild(e,!1)?(s.children.push(i),i.parent=s):e.markType===Q.group&&e.includesChild(r,!1)&&(i.children.push(s),s.parent=i)}),this._markNodes.push(i)}return this}unrecord(t){if(super.unrecord(t),t.grammarType==="mark"){const e=t,i=this._markNodes.find(s=>s.mark===e);this._markNodes.forEach(s=>{s.mark.markType===Q.group&&s.children.includes(i)?(s.children=s.children.filter(r=>r!==i),i.parent=null):e.markType===Q.group&&i.children.includes(s)&&(i.children=i.children.filter(r=>r!==s),s.parent=null)}),this._markNodes=this._markNodes.filter(s=>s!==i)}return this}getAllMarkNodes(){return this._markNodes}clear(){super.clear(),this._markNodes=[]}release(){super.release(),this._markNodes=null}}class IB extends Vo{addGraphicItem(t,e){const i=t&&t.limitAttrs,s=i&&(i.textType==="rich"||i.text&&i.text.type==="rich"),r=yd(this,s?Q.richtext:Q.text,t);return super.addGraphicItem(t,e,r)}release(){super.release()}}IB.markType=Q.text;const g6={label:{visible:!0,inside:!1,space:4,style:{fontSize:12,fill:"#89909d",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},items:[],start:{x:0,y:0},end:{x:100,y:0},x:0,y:0},p6={title:{space:4,padding:[0,0,0,0],textStyle:{fontSize:12,fill:"#333333",fontWeight:"normal",fillOpacity:1},text:"theta"},label:{visible:!0,inside:!1,space:4,style:{fontSize:12,fill:"#6F6F6F",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},items:[],startAngle:0,endAngle:2*Math.PI,radius:100,innerRadius:0,center:{x:0,y:0},x:0,y:0},_6={style:{stroke:"#f1f2f5"}},f6={style:{stroke:"#f1f2f5"}},m6={layout:"vertical",title:{align:"start",space:12,textStyle:{fontSize:12,fontWeight:"bold",fill:"#2C3542"}},item:{spaceCol:10,spaceRow:10,shape:{space:4,style:{size:10,cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8",stroke:"#D8D8D8",fillOpacity:.5}}},label:{space:4,style:{fontSize:12,fill:"black",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8",fillOpacity:.5}}},value:{alignRight:!1,style:{fontSize:12,fill:"#ccc",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},background:{style:{cursor:"pointer"},state:{selectedHover:{fillOpacity:.7,fill:"gray"},unSelectedHover:{fillOpacity:.2,fill:"gray"}}},focus:!1,focusIconStyle:{size:10,fill:"#333",cursor:"pointer"},visible:!0,padding:{top:2,bottom:2,left:2,right:2}},autoPage:!0,pager:{space:12,handler:{style:{size:10},space:4}},hover:!0,select:!0,selectMode:"multiple",allowAllCanceled:!1,items:[{index:0,id:"",label:"",shape:{fill:"#6690F2",stroke:"#6690F2",symbolType:"circle"}}]},v6={title:{visible:!1,text:""},colors:[],layout:"horizontal",railWidth:200,railHeight:8,railStyle:{cornerRadius:5}},y6={title:{visible:!1,text:""},trackStyle:{fill:"#ccc"},layout:"horizontal",align:"bottom",railWidth:200,railHeight:6,min:0,max:1,value:[0,1]},b6={start:{x:0,y:0},end:{x:0,y:0}},x6={start:{x:0,y:0},end:{x:0,y:0},rectStyle:{width:10,height:10}},S6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:Math.PI/6},A6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI},k6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI,sides:6},T6={layout:"horizontal",railWidth:200,railHeight:10,railStyle:{cornerRadius:5},range:{draggableTrack:!0},startText:{visible:!0,text:"",space:8},endText:{visible:!0,text:"",space:8},min:0,max:1,value:[0,1]},M6={size:{width:400,height:400},dataLabels:[]},w6={type:"line-data",data:[{text:""}],position:"top",overlap:{avoidBaseMark:!1,clampForce:!1},smartInvert:!1},C6={type:"line",data:[{text:"",data:{}}],position:"start",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},P6={type:"area",data:[{text:"",data:{}}],position:"end",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},E6={type:"rect",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},R6={type:"symbol",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{avoidBaseMark:!0,size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},O6={type:"arc",data:[{text:"",fill:"#606773",data:{}}],width:800,height:600,position:"outside",zIndex:302},B6={data:[{text:"",fill:"#606773",data:{}}],overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},L6={orient:"bottom",showDetail:"auto",brushSelect:!0,start:0,end:1,position:{x:0,y:0},size:{width:500,height:40},previewData:[]},I6={},D6={},F6={},z6={textStyle:{fill:"#21252c"},subtextStyle:{fill:"#606773"}},j6={width:12,height:12,padding:[2,2],railStyle:{fill:"rgba(0, 0, 0, .1)"}},DB={axis:g6,circleAxis:p6,grid:_6,circleGrid:f6,discreteLegend:m6,colorLegend:v6,sizeLegend:y6,lineCrosshair:b6,rectCrosshair:x6,sectorCrosshair:S6,circleCrosshair:A6,polygonCrosshair:k6,slider:T6,dataLabel:M6,pointLabel:B6,lineLabel:C6,areaLabel:P6,rectLabel:E6,symbolLabel:R6,arcLabel:O6,lineDataLabel:w6,datazoom:L6,continuousPlayer:I6,discretePlayer:D6,tooltip:F6,title:z6,scrollbar:j6},FB=5,zB={symbol:{shape:"circle",size:8},text:{fontSize:14,fill:"#000000"}},bi=Object.assign({},DB);bi.axis=Object.assign({},bi.axis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),bi.circleAxis=Object.assign({},bi.circleAxis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),bi.grid=Object.assign({},bi.grid,{style:{stroke:"#404349"}}),bi.circleGrid=Object.assign({},bi.circleGrid,{style:{stroke:"#404349"}}),bi.rectLabel=Object.assign({},bi.rectLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),bi.lineLabel=Object.assign({},bi.lineLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),bi.symbolLabel=Object.assign({},bi.symbolLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),bi.title=Object.assign({},bi.title,{textStyle:{fill:"#fdfdfd"},subtextStyle:{fill:"#888c93"}});const H6={name:"dark",padding:FB,background:"#202226",palette:{default:["#5383F4","#7BCF8E","#FF9D2C","#FFDB26","#7568D9","#80D8FB","#1857A3","#CAB0E8","#FF8867","#B9E493","#2CB4A8","#B9E4E3"]},marks:zB,components:bi},V6={name:"default",padding:FB,palette:{default:["#6690F2","#70D6A3","#B4E6E2","#63B5FC","#FF8F62","#FFDC83","#BCC5FD","#A29BFE","#63C4C7","#F68484"]},marks:zB,components:DB};class Hn{static registerTheme(t,e){t&&Hn._themes.set(t,e)}static unregisterTheme(t){Hn._themes.delete(t)}static getTheme(t){return Hn._themes.get(t)}static getDefaultTheme(){return Hn.getTheme("default")}}Hn._themes=new Map,Hn.registerTheme("default",V6),Hn.registerTheme("dark",H6);class jx extends Vo{constructor(t,e,i,s){super(t,Q.component,i),this._componentDatum={[tn]:0},this.componentType=e,this.spec.type="component",this.spec.componentType=e,this.mode=s,this._updateComponentEncoders()}configureComponent(t){return this.spec.componentConfig=t,this.commit(),this}addGraphicItem(t,e,i){const s=i??G.createGraphicComponent(this.componentType,t,{mode:this.mode,skipDefault:this.spec.skipTheme});return s&&(this.emit(ut.BEFORE_ADD_VRENDER_MARK,{graphicItem:s}),this.graphicParent.appendChild(s),this.emit(ut.AFTER_ADD_VRENDER_MARK,{graphicItem:s})),s}join(t){return super.join(t,tn)}encodeState(t,e,i){return super.encodeState(t,e,i),this._updateComponentEncoders(),this}parseRenderContext(){return{large:!1}}_prepareRejoin(){this._componentDatum[tn]+=1}evaluateJoin(t){return this.spec.key=tn,t?(t[tn]=this._componentDatum[tn],this._componentDatum=t):this._componentDatum={[tn]:this._componentDatum[tn]},super.evaluateJoin([this._componentDatum])}_updateComponentEncoders(){this._encoders=this.spec.encode}_getEncoders(){var t;return(t=this._encoders)!==null&&t!==void 0?t:{}}}const R0=Symbol.for("key");class W6{diffGrammar(t,e){return d6(t,e,i=>{var s;return(s=i.id())!==null&&s!==void 0?s:Symbol()})}diffMark(t,e,i){const s={enter:[],exit:[],update:[]};let r=[],a=[];t.forEach(c=>{c.markType!==Q.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?r.push(c):s.exit.push({prev:[c]})}),e.forEach(c=>{c.markType!==Q.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?a.push(c):s.enter.push({next:[c]})});const o=this.diffUpdateByGroup(r,a,c=>c.getMorphConfig().morphKey,c=>c.getMorphConfig().morphKey);r=o.prev,a=o.next,s.update=s.update.concat(o.update);const l=this.diffUpdateByGroup(r,a,c=>c.id(),c=>c.id());r=l.prev,a=l.next,s.update=s.update.concat(l.update);const h=Yr(r,c=>{var u,g;return(g=(u=c.group)===null||u===void 0?void 0:u.id)===null||g===void 0?void 0:g.call(u)}),d=Yr(a,c=>{var u,g;return(g=(u=c.group)===null||u===void 0?void 0:u.id)===null||g===void 0?void 0:g.call(u)});return Object.keys(d).forEach(c=>{const u=h.data.get(c),g=d.data.get(c);if(u&&g){for(let p=0;p!u.includes(p)),a=a.filter(p=>!g.includes(p))}}),r.forEach(c=>s.exit.push({prev:[c]})),a.forEach(c=>s.enter.push({next:[c]})),s}diffUpdateByGroup(t,e,i,s){const r=Yr(t,d=>{var c;return(c=i(d))!==null&&c!==void 0?c:R0}),a=Yr(e,d=>{var c;return(c=s(d))!==null&&c!==void 0?c:R0});let o=t,l=e;const h=[];return a.keys.forEach(d=>{if(d!==R0){const c=r.data.get(d),u=a.data.get(d);c&&u&&(h.push({prev:c,next:u}),o=o.filter(g=>!c.includes(g)),l=l.filter(g=>!u.includes(g)))}}),{prev:o,next:l,update:h}}}class Ba extends Io{static useRegisters(t){t.forEach(e=>{e()})}constructor(t={},e={}){super(),this._observer=null,this._onResize=wa((...i)=>{const s=this._getContainerSize();s&&this.resize(s.width,s.height)},100),this.delegateEvent=(i,s)=>{const r=OB(this,i,s,M_);this.emit(s,r,i.element)},this.handleProgressiveFrame=()=>{this._progressiveMarks.length&&this._progressiveMarks.forEach(i=>{i.isDoingProgressive()&&i.evaluateProgressive()}),this.doPreProgressive()},this._config=e,this._options=Object.assign({mode:e6},t),this.initialize()}getGrammarById(t){return this.grammars.getGrammar(t)}getSignalById(t){return this.grammars.getSignal(t)}getDataById(t){return this.grammars.getData(t)}getScaleById(t){return this.grammars.getScale(t)}getCoordinateById(t){return this.grammars.getCoordinate(t)}getMarkById(t){return this.grammars.getMark(t)}getCustomizedById(t){return this.grammars.getCustomized(t)}getGrammarsByName(t){return this.grammars.filter(e=>e.name()===t)}getGrammarsByType(t){return this.grammars.filter(e=>e.grammarType===t)}getMarksByType(t){return this.grammars.getAllMarks().filter(e=>e.markType===t)}getMarksByName(t){return this.grammars.getAllMarks().filter(e=>e.name()===t)}getMarksBySelector(t){if(!t)return null;const e=j(t),i=[];return e.forEach(s=>{if(bu(s))return void i.push(s);if(s[0]===n6){const a=this.getMarkById(s.slice(1));return void(a&&i.push(a))}const r=s[0]===i6?this.getMarksByName(s.slice(1)):S7(s)?this.getMarksByType(s):null;r&&r.length&&r.forEach(a=>{i.push(a)})}),i}updateSignal(t,e){tt(t)&&(t=this.getSignalById(t)),t.set(e),this.commit(t)}signal(t,e){const i=new s6(this);return arguments.length>=1&&i.value(t),arguments.length>=2&&i.update(e),this.grammars.record(i),this._dataflow.add(i),i}data(t){const e=new q7(this,t);return this.grammars.record(e),this._dataflow.add(e),e}scale(t){const e=G.createGrammar("scale",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}coordinate(t){const e=G.createGrammar("coordinate",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}mark(t,e,i){const s=tt(e)?this.getMarkById(e):e;let r;switch(t){case Q.group:r=new c6(this,s);break;case Q.glyph:const a=G.getMark(Q.glyph);a&&(r=new a(this,i==null?void 0:i.glyphType,s));break;case Q.component:r=G.hasComponent(i==null?void 0:i.componentType)?G.createComponent(i==null?void 0:i.componentType,this,s,i==null?void 0:i.mode):new jx(this,i==null?void 0:i.componentType,s,i==null?void 0:i.mode);break;case Q.text:r=new IB(this,t,s);break;default:r=G.hasMark(t)?G.createMark(t,this,s):new Vo(this,t,s)}return this.grammars.record(r),this._dataflow.add(r),r}group(t){return this.mark(Q.group,t)}glyph(t,e){return this.mark(Q.glyph,e,{glyphType:t})}component(t,e,i="2d"){return this.mark(Q.component,e,{componentType:t,mode:i})}axis(t,e="2d"){return this.mark(Q.component,t,{componentType:ke.axis,mode:e})}grid(t,e="2d"){return this.mark(Q.component,t,{componentType:ke.grid,mode:e})}legend(t){return this.mark(Q.component,t,{componentType:ke.legend})}slider(t){return this.mark(Q.component,t,{componentType:ke.slider})}label(t){return this.mark(Q.component,t,{componentType:ke.label})}datazoom(t){return this.mark(Q.component,t,{componentType:ke.datazoom})}player(t){return this.mark(Q.component,t,{componentType:ke.player})}title(t){return this.mark(Q.component,t,{componentType:ke.title})}scrollbar(t){return this.mark(Q.component,t,{componentType:ke.scrollbar})}customized(t,e){const i=G.createGrammar(t,this,e==null?void 0:e.type);if(i)return i.parse(e),this.grammars.record(i),this._dataflow.add(i),i}addGrammar(t){return this.grammars.find(e=>e.uid===t.uid)||(this.grammars.record(t),this._dataflow.add(t),t.parse(t.getSpec()),this._needBuildLayoutTree=!0),this}removeGrammar(t){const e=tt(t)?this.getGrammarById(t):t;return e&&this.grammars.find(i=>i.uid===e.uid)?(e.grammarType==="mark"&&e.prepareRelease(),this._cachedGrammars.record(e),this._dataflow.remove(e),this.grammars.unrecord(e),this._needBuildLayoutTree=!0,this):this}removeAllGrammars(){return this.grammars.traverse(t=>{t.grammarType==="signal"&&aw.includes(t.id())||t.grammarType==="mark"&&t.id()==="root"||this.removeGrammar(t)}),this}removeAllGraphicItems(){return this.traverseMarkTree(t=>{t.graphicItem&&(A_(t.graphicItem),t.elementMap.forEach(e=>{e.resetGraphicItem()}),t.graphicItem=null)}),this}parseSpec(t){var e,i,s,r,a,o,l,h;if(this.emit(ut.BEFORE_PARSE_VIEW),this._spec=t,o6(t),t.theme?this.theme(t.theme):this.theme(Hn.getDefaultTheme()),t.width&&this.width(t.width),t.height&&this.height(t.height),this.padding((i=(e=t.padding)!==null&&e!==void 0?e:this._options.padding)!==null&&i!==void 0?i:this._theme.padding),!this.width()||!this.height()){const c=this._getContainerSize();c&&(this.updateSignal(Ur,c.width),this.updateSignal($r,c.height))}!((s=t.signals)===null||s===void 0)&&s.length&&t.signals.forEach(c=>{this.signal().parse(c)}),!((r=t.data)===null||r===void 0)&&r.length&&t.data.forEach(c=>{this.data(null).parse(c)}),!((a=t.coordinates)===null||a===void 0)&&a.length&&t.coordinates.forEach(c=>{var u;(u=this.coordinate(c.type))===null||u===void 0||u.parse(c)}),!((o=t.scales)===null||o===void 0)&&o.length&&t.scales.forEach(c=>{var u;(u=this.scale(c.type))===null||u===void 0||u.parse(c)});const d=G.getGrammars();return Object.keys(d).forEach(c=>{const{specKey:u}=d[c];t[u]&&t[u].length&&t[u].forEach(g=>{this.customized(c,g)})}),t.marks&&t.marks.length&&t.marks.forEach(c=>{this.parseMarkSpec(c)}),t.events&&t.events.length&&t.events.forEach(c=>{var u;(u=this.event)===null||u===void 0||u.call(this,c)}),t.interactions&&t.interactions.length&&t.interactions.forEach(c=>{this.interaction(c.type,c)}),t.animation===!1?(l=this.animate)===null||l===void 0||l.disable():(h=this.animate)===null||h===void 0||h.enable(),this.emit(ut.AFTER_PARSE_VIEW),this._needBuildLayoutTree=!0,this._layoutState=ir.before,this}updateSpec(t){return this.removeAllInteractions(),this.removeAllGrammars(),this.parseSpec(t)}parseBuiltIn(){a6(this._options,this._config,this.getCurrentTheme()).forEach(t=>{const e=this.signal().parse(t);t.value&&e.set(t.value)}),this.parseMarkSpec({id:"root",type:"group",encode:{enter:{x:0,y:0},update:{width:{signal:"width"},height:{signal:"height"}}}}),this.rootMark=this.getMarkById("root")}parseMarkSpec(t){var e;const i=t.type===Q.glyph?{glyphType:t.glyphType}:t.type===Q.component?{componentType:t.componentType,mode:t.mode}:null;this.mark(t.type,t.group,i).parse(t),(e=t.marks)===null||e===void 0||e.forEach(s=>{this.parseMarkSpec(s)})}theme(t){var e,i,s,r,a,o;tt(t)?this._theme=(e=Hn.getTheme(t))!==null&&e!==void 0?e:Hn.getDefaultTheme():this._theme=t;const{background:l,padding:h}=(i=this._spec)!==null&&i!==void 0?i:{};return this._theme?(this.background((s=l??this._options.background)!==null&&s!==void 0?s:this._theme.background),this.padding((r=h??this._options.padding)!==null&&r!==void 0?r:this._theme.padding),(o=(a=this.renderer.stage())===null||a===void 0?void 0:a.setTheme)===null||o===void 0||o.call(a,Object.assign({},this._theme.marks))):(this.background(l??this._options.background),this.padding(h??this._options.padding)),this}getCurrentTheme(){return this._theme}setCurrentTheme(t,e=!0){return this.theme(t),this.grammars.getAllMarks().forEach(i=>{i.commit()}),e?(this.evaluate(),this.renderer.render(!0)):this._dataflow.evaluate(),this}background(t){return arguments.length?(this._background=t,this.renderer.background(t),t):this._background}width(t){const e=this.getSignalById(Ur);return arguments.length?(this._options.width=t,this.updateSignal(e,t),t):e.output()}height(t){const e=this.getSignalById($r);return arguments.length?(this._options.height=t,this.updateSignal(e,t),t):e.output()}viewWidth(t){const e=this.getSignalById(bd);if(arguments.length){const i=this.padding();return this.width(t+i.left+i.right),t}return e.output()}viewHeight(t){const e=this.getSignalById(xd);if(arguments.length){const i=this.padding();return this.height(t+i.top+i.bottom),t}return e.output()}padding(t){const e=this.getSignalById(Jn);if(arguments.length){const i=Al(t);return this.updateSignal(e,i),i}return Al(e.output())}autoFit(t){const e=this.getSignalById(Sd);return arguments.length?(this.updateSignal(e,t),t):e.output()}getViewBox(){const t=this.getSignalById(zx);return t==null?void 0:t.output()}updateLayoutTag(){return this._layoutState=ir.before,this}getLayoutState(){return this._layoutState}buildLayoutTree(){const t={},e=[];this.traverseMarkTree(i=>{t[i.id()]=!0,i.group&&t[i.group.id()]||e.push(i),i.markType===Q.group&&i.updateLayoutChildren()},i=>i.needLayout()),this._layoutMarks=e}doLayout(){var t;const e=this._options.doLayout||G.getDefaultLayout();e&&(!((t=this._layoutMarks)===null||t===void 0)&&t.length)&&(this.emit(ut.BEFORE_DO_LAYOUT),e(this._layoutMarks,this._options,this),this.emit(ut.AFTER_DO_LAYOUT))}handleLayoutEnd(){this.emit(ut.BEFORE_MARK_LAYOUT_END),this._layoutMarks.forEach(t=>{E0(t,"layoutChildren",e=>{e.handleLayoutEnd()},e=>e!==t)}),this.emit(ut.AFTER_MARK_LAYOUT_END)}handleRenderEnd(){this.emit(ut.BEFORE_MARK_RENDER_END),E0(this.rootMark,"children",t=>{t.handleRenderEnd()}),this.emit(ut.AFTER_MARK_RENDER_END)}commit(t){return this._dataflow.commit(t),this}run(t){return this.evaluate(t),this}doRender(t){this.emit(ut.BEFORE_DO_RENDER),this.renderer&&(!this._progressiveMarks&&this.animate?this.animate.animate():this.traverseMarkTree(e=>{e.cleanExitElements()},null,!0),this.renderer.render(t),this.handleRenderEnd()),this.emit(ut.AFTER_DO_RENDER)}evaluate(t){var e,i;const s=l6(t),r=this._cachedGrammars.size()>0;r&&(this.reuseCachedGrammars(s),this.detachCachedGrammar());const a=this._resizeRenderer(),o=this._dataflow.hasCommitted();return r||o||this._layoutState||a?(this.clearProgressive(),this._dataflow.evaluate(),this._needBuildLayoutTree&&(this.buildLayoutTree(),this._needBuildLayoutTree=!1),this._layoutState&&(this._layoutState=ir.layouting,this.doLayout(),this._dataflow.hasCommitted()&&(this._layoutState=ir.reevaluate,this._dataflow.evaluate()),this._layoutState=ir.after,!((e=this._layoutMarks)===null||e===void 0)&&e.length&&this.handleLayoutEnd()),this._layoutState=null,this.findProgressiveMarks(),this._resizeRenderer(),(i=this.morph)===null||i===void 0||i.call(this,s),this.releaseCachedGrammars(s),this.doRender(!0),this.doPreProgressive(),this):this}reuseCachedGrammars(t){if(t.reuse){const e=i=>{i.next.reuse(i.prev),i.prev.detachAll(),i.prev.clear(),this._cachedGrammars.unrecord(i.prev)};this._differ.diffGrammar(this._cachedGrammars.getAllSignals(),this.grammars.getAllSignals().filter(i=>!aw.includes(i.id()))).update.forEach(e),this._differ.diffGrammar(this._cachedGrammars.getAllData(),this.grammars.getAllData()).update.forEach(e),this._differ.diffGrammar(this._cachedGrammars.getAllScales(),this.grammars.getAllScales()).update.forEach(e),this._differ.diffGrammar(this._cachedGrammars.getAllCoordinates(),this.grammars.getAllCoordinates()).update.forEach(e)}this._differ.diffMark(this._cachedGrammars.getAllMarks(),this.grammars.getAllMarks().filter(e=>e.id()!=="root"),t).update.forEach(e=>{var i;const s=e.prev.length===1&&e.next.length===1&&e.prev[0].markType===e.next[0].markType,r=e.prev.every(a=>a.getMorphConfig().morph)&&e.next.every(a=>a.getMorphConfig().morph);this.morph&&(t.morph&&r||t.morphAll)?(i=this.addMorphMarks)===null||i===void 0||i.call(this,{prev:e.prev,next:e.next}):s&&t.reuse&&(e.next[0].reuse(e.prev[0]),e.prev[0].detachAll(),e.prev[0].clear(),this._cachedGrammars.unrecord(e.prev[0]))})}detachCachedGrammar(){this._cachedGrammars.traverse(t=>{var e,i;if(t.detachAll(),t.grammarType==="mark"){const s=t;(i=(e=s.group)===null||e===void 0?void 0:e.removeChild)===null||i===void 0||i.call(e,s)}})}releaseCachedGrammars(t){this._cachedGrammars.traverse(s=>{s.grammarType!=="mark"&&s.release()});const e=this._cachedGrammars.getAllMarkNodes();e.forEach(s=>{var r;(r=s.mark.animate)===null||r===void 0||r.stop(),t.enableExitAnimation&&this.animate&&this.animate.animateAddition(s.mark)});const i=s=>{if(s.mark.view&&(!s.mark.animate||s.mark.animate.getAnimatorCount()===0)&&(!s.children||s.children.length===0)){s.mark.release();const r=s.parent;r&&(s.parent.children=s.parent.children.filter(a=>a!==s),s.parent=null,i(r))}};e.forEach(s=>{const r=s.mark;r.animate&&r.animate.getAnimatorCount()!==0?r.addEventListener("animationEnd",()=>{r.animate&&r.animate.getAnimatorCount()===0&&i(s)}):i(s)}),this._cachedGrammars.clear()}runAfter(t){return this._dataflow.runAfter(()=>{t.call(null,this)}),this}runBefore(t){return this._dataflow.runBefore(()=>{t.call(null,this)}),this}getImageBuffer(){var t,e;if(this._options.mode!=="node")return void this.logger.error(new TypeError("getImageBuffer() now only support node environment."));const i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t);return i?(i.render(),i.window.getImageBuffer()):(this.logger.error(new ReferenceError("render is not defined")),null)}traverseMarkTree(t,e,i){return E0(this.rootMark,"children",t,e,i),this}_bindResizeEvent(){var t,e,i,s,r,a;if(this.autoFit()){const o=(r=(s=(i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t))===null||i===void 0?void 0:i.window)===null||s===void 0?void 0:s.getContainer)===null||r===void 0?void 0:r.call(s);if(o){const l=window.ResizeObserver;this._observer=new l(this._onResize),(a=this._observer)===null||a===void 0||a.observe(o)}window.addEventListener("resize",this._onResize)}}_unBindResizeEvent(){this.autoFit()&&(window.removeEventListener("resize",this._onResize),this._observer&&(this._observer.disconnect(),this._observer=null))}_getContainerSize(){var t,e,i,s,r,a,o,l,h,d,c;const u=(r=(s=(i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t))===null||i===void 0?void 0:i.window)===null||s===void 0?void 0:s.getContainer)===null||r===void 0?void 0:r.call(s);if(u){const{width:g,height:p}=q0(u);return{width:(l=(o=(a=this._spec)===null||a===void 0?void 0:a.width)!==null&&o!==void 0?o:this._options.width)!==null&&l!==void 0?l:g,height:(c=(d=(h=this._spec)===null||h===void 0?void 0:h.height)!==null&&d!==void 0?d:this._options.height)!==null&&c!==void 0?c:p}}return null}resize(t,e,i=!0){let s=!1;return t!==this.width()&&(s=!0,this.updateSignal(Ur,t)),e!==this.height()&&(s=!0,this.updateSignal($r,e)),s&&(i?this.evaluate({morph:!1}):this._dataflow.evaluate()),this}_resizeRenderer(){const t=this.width(),e=this.height();return!!this.renderer.shouldResize(t,e)&&(this.renderer.resize(t,e),this.emit("resize",{},{width:t,height:e}),!0)}interaction(t,e){const i=G.createInteraction(t,this,e);return i&&(i.bind(),this._boundInteractions||(this._boundInteractions=[]),this._boundInteractions.push(i)),i}removeInteraction(t,e){if(this._boundInteractions){const i=this._boundInteractions.filter(s=>{var r;return P(e)?tt(t)?s.type===t:t?s===t:void 0:((r=s.options)===null||r===void 0?void 0:r.id)===e});i.length&&i.forEach(s=>{s.unbind()})}return this}removeAllInteractions(){return this._boundInteractions&&(this._boundInteractions.forEach(t=>{t.unbind()}),this._boundInteractions=null),this}initializeEventConfig(t){const e=Object.assign({defaults:{}},t),i=(s,r)=>{r.forEach(a=>{U(s[a])&&(s[a]=s[a].reduce((o,l)=>(o[l]=!0,o),{}))})};return i(e.defaults,["prevent","allow"]),i(e,[M_,t6]),e}initEvent(){const t=this.renderer.stage();t&&t.on("*",this.delegateEvent)}releaseStageEvent(){const t=this.renderer.stage();t&&t.off("*",this.delegateEvent)}addEventListener(t,e,i){let s=e;return i&&i.trap===!1||(s=e,s.raw=e),i&&i.target&&(s.target=i.target),this.on(t,s),this}removeEventListener(t,e){return e?this.off(t,e):this.off(t),this}initializeRenderer(){const t=this._options.width,e=this._options.height;this.renderer=new Q7(this),this.renderer.initialize(t,e,this._options,this._eventConfig).background(this._background)}initialize(){var t,e;this.grammars=new LB(i=>i.id(),(i,s)=>this.logger.warn(`Grammar id '${i}' has been occupied`,s)),this._cachedGrammars=new u6(i=>i.id()),this._options.logger&&Ot.setInstance(this._options.logger),this.logger=Ot.getInstance((t=this._options.logLevel)!==null&&t!==void 0?t:0),this._dataflow=new J7,this.animate=(e=this.initAnimate)===null||e===void 0?void 0:e.call(this,this),this._differ=new W6,this._options.hooks&&(Object.keys(this._options.hooks).forEach(i=>{this.on(i,this._options.hooks[i])}),this.hooks=this._options.hooks),this.container=null,this.renderer=null,this._eventListeners=[],this._eventConfig=this.initializeEventConfig(this._options.eventConfig),this._theme=this._options.disableTheme?null:Hn.getDefaultTheme(),this.parseBuiltIn(),h6(this._options),this.initializeRenderer(),this._eventConfig.disable||this.initEvent(),this._bindResizeEvent(),this._needBuildLayoutTree=!0,this._layoutState=ir.before,this.theme(this._theme)}pauseProgressive(){return!1}resumeProgressive(){return!1}restartProgressive(){return!1}findProgressiveMarks(){const t=[];return this.traverseMarkTree(e=>{t.push(e)},e=>e.markType!==Q.group&&e.isProgressive()),t.length?(this._progressiveMarks=t,this.renderer&&this.renderer.combineIncrementalLayers(),t):(this._progressiveMarks=null,null)}doPreProgressive(){if(this._progressiveMarks&&this._progressiveMarks.some(t=>t.isDoingProgressive())){const t=Et.getRequestAnimationFrame();this._progressiveRafId=t(this.handleProgressiveFrame)}else this._progressiveMarks&&this.animate&&this._progressiveMarks.every(t=>t.canAnimateAfterProgressive())?this.animate.animate():this._progressiveMarks&&(this._progressiveMarks=null)}clearProgressive(){this._progressiveRafId&&Et.getCancelAnimationFrame()(this._progressiveRafId),this._progressiveMarks&&this._progressiveMarks.length&&(this._progressiveMarks.forEach(t=>{t.clearProgressive()}),this._progressiveMarks=null)}release(){var t,e,i,s;this.removeAllInteractions(),this.releaseStageEvent(),this._unBindResizeEvent(),this.clearProgressive(),G.unregisterRuntimeTransforms(),Ot.setInstance(null),(t=this.animate)===null||t===void 0||t.stop(),this.grammars.release(),this._cachedGrammars.release(),this._dataflow.release(),this._dataflow=null,(i=(e=this.renderer)===null||e===void 0?void 0:e.release)===null||i===void 0||i.call(e),this.renderer=null,this._boundInteractions=null,this.removeAllListeners(),(s=this._eventListeners)===null||s===void 0||s.forEach(r=>{r.source.removeEventListener(r.type,r.handler)}),this._eventListeners=null}}const G6=()=>{Ei(),kh(),G.registerGraphic(Q.arc,lx),s$()},N6=()=>{Ei(),t4(),G.registerGraphic(Q.arc3d,xR)},U6=()=>{Ei(),n4(),G.registerGraphic(Q.pyramid3d,AR)},$6=()=>{Ei(),FR(),G.registerGraphic(Q.area,bR),eO(),Nf()},Y6=()=>{Ei(),ze(),G.registerGraphic(Q.group,qb)},X6=()=>{Ei(),zR(),G.registerGraphic(Q.image,ox)},K6=()=>{Ei(),Ar(),eO(),Nf(),G.registerGraphic(Q.line,ax)},jB=()=>{Ei(),cu(),G.registerGraphic(Q.path,yR)},Hx=()=>{Ei(),kr(),t$(),G.registerGraphic(Q.rect,hu)},q6=()=>{Ei(),s4(),G.registerGraphic(Q.rect3d,fR)},Vx=()=>{Ei(),Ar(),G.registerGraphic(Q.rule,ax)},HB=()=>{Ei(),Yn(),Nf(),G.registerGraphic(Q.symbol,Bf)},VB=()=>{Ei(),Hs(),Ea(),G.registerGraphic(Q.text,Zl)},Z6=()=>{Ei(),Ff(),G.registerGraphic(Q.polygon,SR)},J6=()=>{Ei(),Ea(),G.registerGraphic(Q.richtext,vR)},Q6=()=>{Ei(),Yn(),Nf(),G.registerGraphic(Q.cell,Bf)},om=()=>{Ei(),i4(),G.registerGraphic(Q.glyph,mR)};class t9 extends PB{constructor(t){super(t),this.getStateAttrs=(e,i)=>{var s,r,a,o;const l=!P((s=this.runtimeStatesEncoder)===null||s===void 0?void 0:s[e]),h=l?Object.assign(Object.assign({},(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e]),this.runtimeStatesEncoder[e]):(a=this.mark.getSpec().encode)===null||a===void 0?void 0:a[e],d={};if(!h)return d;if(N(h))return d.attributes=h(this.getDatum(),this,e,i),d;if(!l&&(!((o=this.graphicItem.glyphStates)===null||o===void 0)&&o[e]))return this.graphicItem.glyphStates[e];if(h){const c=this.items[0],u=[Object.assign({},c,{nextAttrs:{}})];return Js(this,u,h,this.mark.parameters()),this.coordinateTransformEncode(u),d.attributes=u[0].nextAttrs,this.graphicItem.glyphStates?this.graphicItem.glyphStates[e]||(this.graphicItem.glyphStates[e]=d):this.graphicItem.glyphStates={[e]:d},d}return d},this.glyphMeta=this.mark.getGlyphMeta()}getGlyphGraphicItems(){return this.glyphGraphicItems}initGraphicItem(t={}){if(this.graphicItem)return;this.graphicItem=this.mark.addGraphicItem(t,this.groupKey),this.graphicItem[na]=this,this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!1);const e=this.glyphMeta.getMarks();this.glyphGraphicItems={},this.graphicItem.getSubGraphic().forEach(i=>{const s=e[i.name];this.glyphGraphicItems[i.name]=i,i.onBeforeAttributeUpdate=r=>this.mark?k_(s,r,this,i.name):r}),this.clearGraphicAttributes()}useStates(t,e){if(!this.graphicItem)return!1;this.mark.emit(ut.BEFORE_ELEMENT_STATE,{states:t},this),this.states=t.slice();const i=Me(e)?e:this.hasStateAnimation();return this.graphicItem.glyphStateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,i),this.mark.emit(ut.AFTER_ELEMENT_STATE,{states:t},this),!0}encodeGraphic(){this.coordinateTransformEncode(this.items);const t=this.transformElementItems(this.items,this.mark.markType),e=!this.graphicItem;this.graphicItem||this.initGraphicItem(),this.diffState===Zt.enter||e?(this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!0),this.applyGraphicAttributes(t),this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!1)):this.applyGraphicAttributes(t),this.diffState!==Zt.enter&&this.diffState!==Zt.update||!this.states.length||(Object.values(this.glyphGraphicItems).forEach(i=>{i.states={}}),this.useStates(this.states)),this.items.map(i=>{i.nextAttrs={}})}encodeCustom(t){var e;let i={};const s=this.glyphMeta.getChannelEncoder(),r=this.glyphMeta.getFunctionEncoder();if(r&&(i=r.call(null,Object.assign({},(e=this.graphicItem)===null||e===void 0?void 0:e.attribute,t),this.getDatum(),this,this.mark.getGlyphConfig())),s){let a;Object.keys(s).forEach(o=>{var l;if(!P(t[o])){a||(a=Object.assign({},(l=this.graphicItem)===null||l===void 0?void 0:l.attribute,t));const h=s[o].call(null,o,t[o],a,this.getDatum(),this,this.mark.getGlyphConfig());Object.keys(h??{}).forEach(d=>{var c;i[d]=Object.assign((c=i[d])!==null&&c!==void 0?c:{},h[d])})}})}return i}encodeDefault(){const t={};if(this.glyphMeta.getDefaultEncoder()){const e=this.glyphMeta.getDefaultEncoder().call(null,this.getDatum(),this,this.mark.getGlyphConfig());Object.assign(t,e)}return t}_onGlyphAttributeUpdate(t=!1){return e=>{if(!this.mark)return e;const i=this.glyphMeta.getMarks(),s=k_(this.mark.getAttributeTransforms(),e,this),r=t?this.encodeDefault():null,a=this.encodeCustom(e);return Object.keys(i).forEach(o=>{const l=i[o],h=this.glyphGraphicItems[o],d=a==null?void 0:a[o],c=Object.assign({},d);if(t){const _=r==null?void 0:r[o];Object.keys(_??{}).forEach(f=>{On(this.items[0].nextAttrs,f)||On(c,f)||(c[f]=_[f])})}const u=Object.assign({},T7(l,e),c),g=this._generateGlyphItems(l,this.items,u);this.coordinateTransformEncode(g);const p=this.transformElementItems(g,l);this.applyGlyphGraphicAttributes(p,o,h),l===Q.shape&&(h.datum=g[0].datum)}),s}}_generateGlyphItems(t,e,i){const s=e.map(r=>Object.assign({},r,{nextAttrs:i}));return TB.includes(t)&&this.mark.getSpec().enableSegments&&s.forEach((r,a)=>{r.nextAttrs=Object.assign({},e[a].nextAttrs,i)}),s}getGraphicAttribute(t,e=!1,i){if(!this.graphicItem)return;const s=this.getPrevGraphicAttributes(i);return e&&On(s,t)?s[t]:(i?this.glyphGraphicItems[i]:this.graphicItem).attribute[t]}setGraphicAttribute(t,e,i=!0,s){if(!this.graphicItem)return;const r=s?this.glyphGraphicItems[s]:this.graphicItem,a=this.getFinalGraphicAttributes(s),o=this.getPrevGraphicAttributes(s);i&&(a[t]=e),On(o,t)||(o[t]=r.attribute[t]),r.setAttribute(t,e)}setGraphicAttributes(t,e=!0,i){if(!this.graphicItem)return;const s=i?this.glyphGraphicItems[i]:this.graphicItem,r=this.getFinalGraphicAttributes(i),a=this.getPrevGraphicAttributes(i);Object.keys(t).forEach(o=>{e&&(r[o]=t[o]),On(a,o)||(a[o]=s.attribute[o])}),s.setAttributes(t)}diffAttributes(t,e){const i={},s=this.getFinalGraphicAttributes(e);for(const r in t)On(s,r)&&Jt(s[r],t[r])||(i[r]=t[r]);return i}applyGlyphGraphicAttributes(t,e,i){var s,r;if(this.mark.needAnimate()){const a=this.diffAttributes(t,e),o=(s=this.getPrevGraphicAttributes(e))!==null&&s!==void 0?s:{},l=(r=this.getFinalGraphicAttributes(e))!==null&&r!==void 0?r:{};Object.keys(a).forEach(h=>{o[h]=i.attribute[h],l[h]=a[h]}),this.setNextGraphicAttributes(a,e),this.setPrevGraphicAttributes(o,e),this.setFinalGraphicAttributes(l,e),i.setAttributes(a)}else i.setAttributes(t)}getFinalGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).finalAttrs}setFinalGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).finalAttrs=t}getPrevGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).prevAttrs}setPrevGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).prevAttrs=t}getNextGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).nextAttrs}setNextGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).nextAttrs=t}clearChangedGraphicAttributes(){this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null),Object.keys(this.glyphGraphicItems).forEach(t=>{this.setPrevGraphicAttributes(null,t),this.setNextGraphicAttributes(null,t)})}clearGraphicAttributes(){this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null),this.setFinalGraphicAttributes(null),Object.keys(this.glyphGraphicItems).forEach(t=>{this.setPrevGraphicAttributes(null,t),this.setNextGraphicAttributes(null,t),this.setFinalGraphicAttributes(null,t)})}remove(){this.glyphGraphicItems=null,super.remove()}release(){this.glyphGraphicItems&&(Object.values(this.glyphGraphicItems).forEach(t=>{t[na]=null}),this.glyphGraphicItems=null),super.release()}}class WB extends Vo{constructor(t,e,i){super(t,Q.glyph,i),this.glyphType=e,this.glyphMeta=G.getGlyph(e)}configureGlyph(t){return this.spec.glyphConfig=t,this.commit(),this}getGlyphMeta(){return this.glyphMeta}getGlyphConfig(){return this.spec.glyphConfig}addGraphicItem(t,e){const i=A7(this,this.glyphMeta,t);return super.addGraphicItem(t,e,i)}createElement(){return new t9(this)}}WB.markType=Q.glyph;const lm=()=>{G.registerMark(Q.glyph,WB)},GB=n=>(t,e,i)=>{var s,r,a;const o=(a=(s=t.getGraphicAttribute("direction",!1))!==null&&s!==void 0?s:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=n(t,o,e);if(!H(l))return{};const h=t.getGraphicAttribute("x",!1),d=t.getGraphicAttribute("y",!1),c=t.getGraphicAttribute("min",!1),u=t.getGraphicAttribute("max",!1),g=t.getGraphicAttribute("q1",!1),p=t.getGraphicAttribute("q3",!1),_=t.getGraphicAttribute("median",!1),f={from:{x:h,y:d},to:{x:h,y:d}};return H(c)&&(f.from.min=l,f.to.min=c),H(u)&&(f.from.max=l,f.to.max=u),H(g)&&(f.from.q1=l,f.to.q1=g),H(p)&&(f.from.q3=l,f.to.q3=p),H(_)&&(f.from.median=l,f.to.median=_),f},NB=n=>(t,e,i)=>{var s,r,a;const o=(a=(s=t.getGraphicAttribute("direction",!1))!==null&&s!==void 0?s:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=n(t,o,e);if(!H(l))return{};const h=t.getGraphicAttribute("x",!0),d=t.getGraphicAttribute("y",!0),c=t.getGraphicAttribute("min",!0),u=t.getGraphicAttribute("max",!0),g=t.getGraphicAttribute("q1",!0),p=t.getGraphicAttribute("q3",!0),_=t.getGraphicAttribute("median",!0),f={from:{x:h,y:d},to:{x:h,y:d}};return H(c)&&(f.to.min=l,f.from.min=c),H(u)&&(f.to.max=l,f.from.max=u),H(g)&&(f.to.q1=l,f.from.q1=g),H(p)&&(f.to.q3=l,f.from.q3=p),H(_)&&(f.to.median=l,f.from.median=_),f},UB=(n,t,e)=>{var i,s,r,a,o,l,h,d,c,u,g,p;if(e&&H(e.center))return e.center;let _,f,m,v,y;if(Ai(t)){_=(s=(i=n.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.x,f=(a=(r=n.getGraphicAttribute("points",!1,"max"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.x,m=(l=(o=n.getGraphicAttribute("points",!1,"min"))===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.x;const b=n.getGraphicAttribute("width",!1,"box"),x=n.getGraphicAttribute("x",!1,"box");v=x,y=x+b}else{_=(d=(h=n.getGraphicAttribute("points",!1,"median"))===null||h===void 0?void 0:h[0])===null||d===void 0?void 0:d.y,f=(u=(c=n.getGraphicAttribute("points",!1,"max"))===null||c===void 0?void 0:c[0])===null||u===void 0?void 0:u.y,m=(p=(g=n.getGraphicAttribute("points",!1,"min"))===null||g===void 0?void 0:g[0])===null||p===void 0?void 0:p.y;const b=n.getGraphicAttribute("height",!1,"box"),x=n.getGraphicAttribute("y",!1,"box");v=x,y=x+b}return H(_)?_:H(v)&&H(y)?(v+y)/2:H(f)&&H(m)?(f+m)/2:H(m)?m:H(f)?f:NaN},e9=(n,t,e,i)=>{var s,r,a,o,l,h,d,c;const u={shaft:{},box:{},max:{},min:{},median:{}},g=(s=n.x)!==null&&s!==void 0?s:e.getGraphicAttribute("x",!1),p=(r=n.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),_=(a=n.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),f=(o=n.height)!==null&&o!==void 0?o:e.getGraphicAttribute("height",!1),m=(l=n.boxWidth)!==null&&l!==void 0?l:e.getGraphicAttribute("boxWidth",!1),v=(h=n.boxHeight)!==null&&h!==void 0?h:e.getGraphicAttribute("boxHeight",!1),y=(d=n.ruleWidth)!==null&&d!==void 0?d:e.getGraphicAttribute("ruleWidth",!1),b=(c=n.ruleHeight)!==null&&c!==void 0?c:e.getGraphicAttribute("ruleHeight",!1);return i&&Ai(i.direction)?(H(v)?(Object.assign(u.box,{y:p-v/2,y1:p+v/2}),Object.assign(u.median,{y:p-v/2,y1:p+v/2})):(Object.assign(u.box,{y:p-f/2,y1:p+f/2}),Object.assign(u.median,{y:p-f/2,y1:p+f/2})),H(b)?(Object.assign(u.max,{y:p-b/2,y1:p+b/2}),Object.assign(u.min,{y:p-b/2,y1:p+b/2})):(Object.assign(u.max,{y:p-f/2,y1:p+f/2}),Object.assign(u.min,{y:p-f/2,y1:p+f/2}))):(H(m)?(Object.assign(u.box,{x:g-m/2,x1:g+m/2}),Object.assign(u.median,{x:g-m/2,x1:g+m/2})):(Object.assign(u.box,{x:g-_/2,x1:g+_/2}),Object.assign(u.median,{x:g-_/2,x1:g+_/2})),H(y)?(Object.assign(u.max,{x:g-y/2,x1:g+y/2}),Object.assign(u.min,{x:g-y/2,x1:g+y/2})):(Object.assign(u.max,{x:g-_/2,x1:g+_/2}),Object.assign(u.min,{x:g-_/2,x1:g+_/2}))),u},i9=GB(UB),n9=NB(UB);function s9(){G.registerGlyph("boxplot",{shaft:"rule",box:"rect",max:"rule",min:"rule",median:"rule"}).registerProgressiveChannels(["x","y","q1","q3","min","max","median","angle","width","height","boxWidth","boxHeight","ruleWidth","ruleHeight"]).registerFunctionEncoder(e9).registerChannelEncoder("x",(n,t,e,i,s,r)=>r&&Ai(r.direction)?null:{shaft:{x:t,x1:t}}).registerChannelEncoder("y",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{shaft:{y:t,y1:t}}:null).registerChannelEncoder("q1",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{box:{x:t}}:{box:{y:t}}).registerChannelEncoder("q3",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{box:{x1:t}}:{box:{y1:t}}).registerChannelEncoder("min",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{shaft:{x:t},min:{x:t,x1:t,visible:!0}}:{shaft:{y:t},min:{y:t,y1:t,visible:!0}}).registerChannelEncoder("max",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{shaft:{x1:t},max:{x:t,x1:t,visible:!0}}:{shaft:{y1:t},max:{y:t,y1:t,visible:!0}}).registerChannelEncoder("median",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(n,t,e,i,s,r)=>{var a;const o=r&&Ai(r.direction)?[(e.min+e.max)/2,e.y]:[e.x,(e.min+e.max)/2],l=(a=e.anchor)!==null&&a!==void 0?a:o;return{shaft:{angle:t,anchor:l},box:{angle:t,anchor:l},max:{angle:t,anchor:l},min:{angle:t,anchor:l},median:{angle:t,anchor:l}}}).registerDefaultEncoder(()=>({max:{visible:!1},min:{visible:!1},median:{visible:!1}})),G.registerAnimationType("boxplotScaleIn",i9),G.registerAnimationType("boxplotScaleOut",n9),lm(),om(),Hx(),Vx()}const $B=(n,t,e)=>{var i,s,r,a;if(H(e==null?void 0:e.center))return e.center;let o,l,h,d,c;if(Ai(t)){o=(s=(i=n.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.x;const u=n.getGraphicAttribute("width",!1,"minMaxBox"),g=n.getGraphicAttribute("x",!1,"minMaxBox");h=g,l=g+u;const p=n.getGraphicAttribute("width",!1,"q1q3Box"),_=n.getGraphicAttribute("x",!1,"q1q3Box");d=_,c=_+p}else{o=(a=(r=n.getGraphicAttribute("points",!1,"median"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.y;const u=n.getGraphicAttribute("height",!1,"minMaxBox"),g=n.getGraphicAttribute("y",!1,"minMaxBox");h=g,l=g+u;const p=n.getGraphicAttribute("height",!1,"q1q3Box"),_=n.getGraphicAttribute("y",!1,"q1q3Box");d=_,c=_+p}return H(o)?o:H(d)&&H(c)?(d+c)/2:H(l)&&H(h)?(l+h)/2:H(h)?h:H(l)?l:NaN},r9=(n,t,e,i)=>{var s,r,a,o,l,h,d,c;const u={minMaxBox:{},q1q3Box:{},median:{}},g=(s=n.x)!==null&&s!==void 0?s:e.getGraphicAttribute("x",!1),p=(r=n.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),_=(a=n.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),f=(o=n.minMaxWidth)!==null&&o!==void 0?o:e.getGraphicAttribute("minMaxWidth",!1),m=(l=n.q1q3Width)!==null&&l!==void 0?l:e.getGraphicAttribute("q1q3Width",!1),v=(h=n.height)!==null&&h!==void 0?h:e.getGraphicAttribute("height",!1),y=(d=n.minMaxHeight)!==null&&d!==void 0?d:e.getGraphicAttribute("minMaxHeight",!1),b=(c=n.q1q3Height)!==null&&c!==void 0?c:e.getGraphicAttribute("q1q3Height",!1);return i&&Ai(i.direction)?(H(y)?Object.assign(u.minMaxBox,{y:p-y/2,y1:p+y/2}):Object.assign(u.minMaxBox,{y:p-v/2,y1:p+v/2}),H(b)?(Object.assign(u.q1q3Box,{y:p-b/2,y1:p+b/2}),Object.assign(u.median,{y:p-b/2,y1:p+b/2})):(Object.assign(u.q1q3Box,{y:p-v/2,y1:p+v/2}),Object.assign(u.median,{y:p-v/2,y1:p+v/2}))):(H(f)?Object.assign(u.minMaxBox,{x:g-f/2,x1:g+f/2}):Object.assign(u.minMaxBox,{x:g-_/2,x1:g+_/2}),H(m)?(Object.assign(u.q1q3Box,{x:g-m/2,x1:g+m/2}),Object.assign(u.median,{x:g-m/2,x1:g+m/2})):(Object.assign(u.q1q3Box,{x:g-_/2,x1:g+_/2}),Object.assign(u.median,{x:g-_/2,x1:g+_/2}))),u},a9=GB($B),o9=NB($B);function l9(){G.registerGlyph("barBoxplot",{minMaxBox:"rect",q1q3Box:"rect",median:"rule"}).registerProgressiveChannels(["x","y","q1","q3","min","max","median","angle","width","height","minMaxWidth","q1q3Width","minMaxHeight","q1q3Height"]).registerFunctionEncoder(r9).registerChannelEncoder("q1",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{q1q3Box:{x:t}}:{q1q3Box:{y:t}}).registerChannelEncoder("q3",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{q1q3Box:{x1:t}}:{q1q3Box:{y1:t}}).registerChannelEncoder("min",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{minMaxBox:{x:t}}:{minMaxBox:{y:t}}).registerChannelEncoder("max",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{minMaxBox:{x1:t}}:{minMaxBox:{y1:t}}).registerChannelEncoder("median",(n,t,e,i,s,r)=>r&&Ai(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(n,t,e,i,s,r)=>{var a;const o=(a=e.anchor)!==null&&a!==void 0?a:[e.x,(e.min+e.max)/2];return{minMaxBox:{angle:t,anchor:o},q1q3Box:{angle:t,anchor:o},median:{angle:t,anchor:o}}}).registerChannelEncoder("lineWidth",(n,t,e,i,s,r)=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0}})).registerChannelEncoder("minMaxFillOpacity",(n,t,e,i,s,r)=>({minMaxBox:{fillOpacity:t}})).registerChannelEncoder("stroke",(n,t,e,i,s,r)=>({minMaxBox:{stroke:!1},q1q3Box:{stroke:!1}})).registerDefaultEncoder(()=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0},median:{visible:!1}})),G.registerAnimationType("barBoxplotScaleIn",a9),G.registerAnimationType("barBoxplotScaleOut",o9),lm(),om(),Hx(),Vx()}const h9=()=>{G.registerGlyph("ripplePoint",{symbol:"symbol",ripple0:"symbol",ripple1:"symbol",ripple2:"symbol"}).registerFunctionEncoder((n,t,e,i)=>{var s;const r=Math.max(0,Math.min(n.ripple,1)),a=(s=n.size)!==null&&s!==void 0?s:e.getGraphicAttribute("size"),o=.5*a;return{ripple0:{size:a+o*r,fillOpacity:.75-.25*r},ripple1:{size:a+o*(1+r),fillOpacity:.5-.25*r},ripple2:{size:a+o*(2+r),fillOpacity:.25-.25*r}}}).registerDefaultEncoder(()=>({ripple0:{fillOpacity:.75},ripple1:{fillOpacity:.5},ripple2:{fillOpacity:.25}})),lm(),om(),HB()},d9=(n,t)=>{var e;const i=(e=n.curvature)!==null&&e!==void 0?e:.5,s=typeof t=="number"?n.thickness*t:n.thickness;let r=n.x0,a=n.x1,o=n.y0,l=n.y1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;n.round!==!1&&(r=Math.round(r),a=Math.round(a),o=Math.round(o),l=Math.round(l),h=Math.round(h),d=Math.round(d),c=Math.round),n.pathType==="line"||n.pathType,n.align==="center"?(o=c(n.y0-s/2),l=c(n.y1-s/2)):n.align==="end"?(o=c(n.y0+n.thickness/2-s),l=c(n.y1+n.thickness/2-s)):(o=c(n.y0-n.thickness/2),l=c(n.y1-n.thickness/2));const u=c(o+s),g=c(l+s),p=Math.abs(a-r)>1e-6,_=n.endArrow&&p?`L${a},${c(l-s/2)}L${c(a+s)},${c((l+g)/2)}L${a},${c(g+s/2)}`:"",f=n.startArrow&&p?`L${r},${c(u+s/2)}L${c(r-s)},${c((o+u)/2)}L${r},${c(o-s/2)}`:"";return n.pathType==="line"?`M${r},${o}L${a},${l}${_}L${a},${g}L${r},${u}${f}Z`:n.pathType==="polyline"?`M${r},${o}L${h},${o}L${h},${l}L${a},${l} + ${_}L${a},${g}L${h},${g}L${h},${u}L${r},${u}${f}Z`:`M${r},${o}C${h},${o},${d},${l},${a},${l} + ${_}L${a},${g}C${d},${g},${h},${u},${r},${u}${f}Z`},c9=(n,t)=>{var e;const i=(e=n.curvature)!==null&&e!==void 0?e:.5,s=typeof t=="number"?n.thickness*t:n.thickness;let r=n.y0,a=n.y1,o=n.x0,l=n.x1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;n.round!==!1&&(c=Math.round,r=Math.round(r),a=Math.round(a),o=Math.round(o),l=Math.round(l),h=Math.round(h),d=Math.round(d)),n.pathType==="line"||n.pathType,n.align==="center"?(o=c(n.x0-s/2),l=c(n.x1-s/2)):n.align==="end"?(o=c(n.x0+n.thickness/2-s),l=c(n.x1+n.thickness/2-s)):(o=c(n.x0-n.thickness/2),l=c(n.x1-n.thickness/2));const u=c(o+s),g=c(l+s),p=Math.abs(a-r)>1e-6,_=n.endArrow&&p?`L${c(l-s/2)},${a}L${c((l+g)/2)},${c(a+s)}L${c(g+s/2)},${a}`:"",f=n.startArrow&&p?`L${c(u+s/2)},${r}L${c((u+o)/2)},${c(r-s)}L${c(o-s/2)},${r}`:"";return n.pathType==="line"?`M${o},${r}L${l},${a}${_}L${g},${a}L${u},${r}${f}Z`:n.pathType==="polyline"?`M${o},${r}L${o},${h}L${l},${h}L${l},${a} + ${_}L${g},${a}L${g},${h}L${u},${h}L${u},${r}${f}Z`:`M${o},${r}C${o},${h},${l},${d},${l},${a} + ${_}L${g},${a}C${g},${d},${u},${h},${u},${r}${f}Z`},u9=(n,t,e,i)=>{var s;const r=(s=n.direction)!==null&&s!==void 0?s:i==null?void 0:i.direction,a=["vertical","TB","BT"].includes(r)?c9:d9,o=typeof n.ratio=="number"&&n.ratio>=0&&n.ratio<=1,l=Object.keys(n);return["x0","y0","x1","y1"].every(h=>l.includes(h))?{back:{path:o?a(n,1):""},front:{path:a(n,o?n.ratio:1)}}:{}},g9=(n,t,e)=>{const i={x0:n.getGraphicAttribute("x0",!1),x1:n.getGraphicAttribute("x1",!1),y0:n.getGraphicAttribute("y0",!1),y1:n.getGraphicAttribute("y1",!1),thickness:n.getGraphicAttribute("thickness",!1),round:n.getGraphicAttribute("round",!1),align:n.getGraphicAttribute("align",!1),pathType:n.getGraphicAttribute("pathType",!1),endArrow:n.getGraphicAttribute("endArrow",!1),startArrow:n.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(s=>{P(i[s])&&delete i[s]}),{from:Object.assign({},i,{x1:i.x0,y1:i.y0}),to:i}},p9=(n,t,e)=>{const i={x0:n.getGraphicAttribute("x0",!0),x1:n.getGraphicAttribute("x1",!0),y0:n.getGraphicAttribute("y0",!0),y1:n.getGraphicAttribute("y1",!0),thickness:n.getGraphicAttribute("thickness",!0),round:n.getGraphicAttribute("round",!0),align:n.getGraphicAttribute("align",!0),pathType:n.getGraphicAttribute("pathType",!0),endArrow:n.getGraphicAttribute("endArrow",!0),startArrow:n.getGraphicAttribute("startArrow",!0)};return Object.keys(i).forEach(s=>{P(i[s])&&delete i[s]}),{from:i,to:Object.assign({},i,{x1:i.x0,y1:i.y0})}},_9=(n,t,e)=>{const i={thickness:n.getGraphicAttribute("thickness",!1),round:n.getGraphicAttribute("round",!1),align:n.getGraphicAttribute("align",!1),pathType:n.getGraphicAttribute("pathType",!1),endArrow:n.getGraphicAttribute("endArrow",!1),startArrow:n.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(s=>{P(i[s])&&delete i[s]}),{from:Object.assign(Object.assign({x0:n.getGraphicAttribute("x0",!0),x1:n.getGraphicAttribute("x1",!0),y0:n.getGraphicAttribute("y0",!0),y1:n.getGraphicAttribute("y1",!0)},i),i),to:Object.assign({x0:n.getGraphicAttribute("x0",!1),x1:n.getGraphicAttribute("x1",!1),y0:n.getGraphicAttribute("y0",!1),y1:n.getGraphicAttribute("y1",!1)},i)}},f9=()=>{G.registerGlyph("linkPath",{back:"path",front:"path"}).registerFunctionEncoder(u9).registerChannelEncoder("backgroundStyle",(n,t)=>({back:t})).registerDefaultEncoder(()=>({back:{zIndex:0},front:{zIndex:1}})),G.registerAnimationType("linkPathGrowIn",g9),G.registerAnimationType("linkPathGrowOut",p9),G.registerAnimationType("linkPathUpdate",_9),lm(),om(),jB()};class YB extends jx{parseAddition(t){return super.parseAddition(t),this.scale(t.scale),this}scale(t){if(this.spec.scale){const i=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;this.detach(i),this.spec.scale=void 0}const e=tt(t)?this.view.getScaleById(t):t;return this.spec.scale=e,this.attach(e),this._updateComponentEncoders(),this.commit(),this}getScale(){return tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale}}const m9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.axis)!==null&&r!==void 0?r:{};if(!n)return $({},l,e??{});const h=[((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return $({},l,{items:h},e??{})},v9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.circleAxis)!==null&&r!==void 0?r:{};if(!n)return $({},l,e??{});const h=[((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return $({},l,{items:h},e??{})},XB=(n,t,e,i,s,r)=>{var a;const o=n.getCoordinateAxisPosition();s&&s.position==="auto"&&(s.position=e?"content":o);const l=n.getCoordinateAxisPoints(i);if(l){const c={start:l[0],end:l[1],verticalFactor:(o==="top"||o==="left"?-1:1)*(e?-1:1)*(!((a=n.getSpec().range)===null||a===void 0)&&a.reversed?-1:1)};if(r&&t.type==="polar"){const u=t.angle();c.center=t.origin(),c.startAngle=u[0],c.endAngle=u[1]}return c}const h=t.radius(),d=t.angle();return{center:t.origin(),radius:h[1],innerRadius:h[0],inside:e,startAngle:d[0],endAngle:d[1]}};class Wx extends YB{constructor(t,e,i){super(t,ke.axis,e),this.spec.componentType=ke.axis,this.mode=i}parseAddition(t){return super.parseAddition(t),this.axisType(t.axisType),this.tickCount(t.tickCount),this.inside(t.inside),this.baseValue(t.baseValue),this}scale(t){return super.scale(t),this._axisComponentType=null,this}axisType(t){return this.spec.axisType=t,this._axisComponentType=null,this._prepareRejoin(),this.commit(),this}addGraphicItem(t,e){const i=$({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),s=G.createGraphicComponent(this._getAxisComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,s)}tickCount(t){const e=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;return e&&e.tickCount(t),this.setFunctionSpec(t,"tickCount")}inside(t){return this.setFunctionSpec(t,"inside")}baseValue(t){return this.setFunctionSpec(t,"baseValue")}getAxisComponentType(){return this._axisComponentType}_updateComponentEncoders(){const t=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale,e=Object.assign({update:{}},this.spec.encode),i=Object.keys(e).reduce((s,r)=>{const a=e[r];return a&&(s[r]={callback:(o,l,h)=>{var d,c;const u=this.spec.skipTheme?null:this.view.getCurrentTheme();let g=sa(a,o,l,h);const p=ri(this.spec.inside,h,o,l),_=ri(this.spec.baseValue,h,o,l),f=(d=t==null?void 0:t.getCoordinate)===null||d===void 0?void 0:d.call(t);f&&(g=Object.assign(XB(t,f,p,_,this.spec.layout),g));const m=(c=t==null?void 0:t.getScale)===null||c===void 0?void 0:c.call(t),v=ri(this.spec.tickCount,h,o,l);switch(this._getAxisComponentType()){case Rs.lineAxis:return m9(m,u,g,v);case Rs.circleAxis:return v9(m,u,g,v)}return g}}),s},{});this._encoders=i}_getAxisComponentType(){var t;if(this._axisComponentType)return this._axisComponentType;let e=this.spec.axisType;if(P(e)){const i=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;e=!((t=i==null?void 0:i.getCoordinate)===null||t===void 0)&&t.call(i)?i.getCoordinateAxisPoints()?"line":"circle":"line"}return this._axisComponentType=e==="circle"?Rs.circleAxis:Rs.lineAxis,this._axisComponentType}}Wx.componentType=ke.axis;const Wo=()=>{G.registerGraphicComponent(Rs.lineAxis,(n,t)=>new Ac(n,t)),G.registerComponent(ke.axis,Wx)},KB=()=>{G.registerGraphicComponent(Rs.circleAxis,n=>new kc(n)),G.registerComponent(ke.axis,Wx)};var y9=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var a;const o=(a=r.components)===null||a===void 0?void 0:a.dataLabel,l=n.map((d,c)=>{var u,g,p,_,f;const m=Object.assign(Object.assign({},s),{labelIndex:c}),v=(u=ri(i,m,d))!==null&&u!==void 0?u:{},{components:y={}}=r;let b={};switch(d.markType){case Q.line:case Q.area:b=v.type==="line"?y.lineLabel:v.type==="area"?y.areaLabel:y.lineDataLabel;break;case Q.rect:case Q.rect3d:case Q.interval:b=y.rectLabel;break;case Q.symbol:case Q.circle:case Q.cell:b=y.symbolLabel;break;case Q.arc:case Q.arc3d:b=y.arcLabel;break;case Q.polygon:case Q.path:default:b=y.pointLabel}const x=(g=v.data)!==null&&g!==void 0?g:[],S=(_=(p=b==null?void 0:b.data)===null||p===void 0?void 0:p[0])!==null&&_!==void 0?_:{};if(x&&x.length>0)x.forEach((T,w)=>{if(d.elements[w]){const M=sa(e,T,d.elements[w],m);$(T,S,M)}});else{const T=(w,M)=>{const{data:R}=w,O=y9(w,["data"]);return Object.assign(Object.assign({},$({},M,O)),{data:R})};d.elements.forEach(w=>{if(w.getGraphicItem().releaseStatus!=="willRelease")if(d.isCollectionMark())w.getDatum().forEach(M=>{const R=sa(e,M,w,m);x.push(T(R,S))});else{const M=sa(e,w.getDatum(),w,m);x.push(T(M,S))}})}const A=(f=d.graphicItem)===null||f===void 0?void 0:f.name,k=$({},b,{baseMarkGroupName:A,getBaseMarks:()=>d.elements.map(T=>T.getGraphicItem())},v??{});return k.data=x??b.data,k}).filter(d=>!P(d)),h=$({},o,{size:t});return h.dataLabels=l,h};let qB=class extends jx{constructor(t,e){super(t,ke.label,e),this.spec.componentType=ke.label}parseAddition(t){return super.parseAddition(t),this.labelStyle(t.labelStyle),this.size(t.size),this.target(t.target),this}labelStyle(t){return this.setFunctionSpec(t,"labelStyle")}size(t){return this.setFunctionSpec(t,"size")}target(t){if(this.spec.target){const e=j(this.spec.target).map(i=>tt(i)?this.view.getMarkById(i):i);this.detach(e)}if(this.spec.target=t,t){const e=j(t).map(i=>tt(i)?this.view.getMarkById(i):i);this.attach(e)}return this.commit(),this}_updateComponentEncoders(){const t=Object.assign({update:{}},this.spec.encode),e=Object.keys(t).reduce((i,s)=>{const r=t[s];return r&&(i[s]={callback:(a,o,l)=>{var h,d,c,u;const g=j(this.spec.target).map(m=>tt(m)?this.view.getMarkById(m):m),p=(d=(h=this.group)===null||h===void 0?void 0:h.getGroupGraphicItem)===null||d===void 0?void 0:d.call(h);let _=ri(this.spec.size,l);_||(_=p?{width:(c=p.attribute.width)!==null&&c!==void 0?c:p.AABBBounds.width(),height:(u=p.attribute.height)!==null&&u!==void 0?u:p.AABBBounds.height()}:{width:1/0,height:1/0});const f=this.spec.skipTheme?null:this.view.getCurrentTheme();return b9(g,_,r,this.spec.labelStyle,l,f)}}),i},{});this._encoders=e}};qB.componentType=ke.label;const ZB=()=>{G.registerGraphicComponent(ke.label,n=>new $f(n)),G.registerComponent(ke.label,qB)},x9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.grid)!==null&&r!==void 0?r:{};if(!n)return $({},l,e??{});const h=((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return $({},l,{items:h},e??{})},S9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.circleGrid)!==null&&r!==void 0?r:{};if(!n)return $({},l,e??{});const h=((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return $({},l,{items:h},e??{})};class Gx extends YB{constructor(t,e,i){super(t,ke.grid,e),this.spec.componentType=ke.grid,this.mode=i}parseAddition(t){return super.parseAddition(t),this.target(t.target),this.gridType(t.gridType),this.gridShape(t.gridShape),this}scale(t){return super.scale(t),this._gridComponentType=null,this}gridType(t){return this.spec.gridType=t,this._gridComponentType=null,this._prepareRejoin(),this.commit(),this}gridShape(t){return this.spec.gridShape=t,this.commit(),this}target(t){if(this.spec.target){const i=tt(this.spec.target)?this.view.getMarkById(this.spec.target):this.spec.target;this.detach(i)}this.spec.target=t;const e=tt(t)?this.view.getMarkById(t):t;return this.attach(e),this._targetAxis=e,this._gridComponentType=null,this._updateComponentEncoders(),this.commit(),this}tickCount(t){const e=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;return e&&e.tickCount(t),this.setFunctionSpec(t,"tickCount")}inside(t){return this.setFunctionSpec(t,"inside")}baseValue(t){return this.setFunctionSpec(t,"baseValue")}addGraphicItem(t,e){const i=$({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),s=G.createGraphicComponent(this._getGridComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,s)}_updateComponentEncoders(){const t=Object.assign({update:{}},this.spec.encode),e=Object.keys(t).reduce((i,s)=>{const r=t[s];return r&&(i[s]={callback:(a,o,l)=>{var h,d,c,u;const g=this.spec.skipTheme?null:this.view.getCurrentTheme();let p,_=sa(r,a,o,l);const f=ri(this.spec.baseValue,l,a,o);if(this._targetAxis){const y=(h=this._targetAxis.getSpec())===null||h===void 0?void 0:h.scale;p=tt(y)?this.view.getScaleById(y):y;const b=this._targetAxis.elements[0];if(b)switch(this._getGridComponentType()){case hi.lineAxisGrid:_=Object.assign({x:b.getGraphicAttribute("x"),y:b.getGraphicAttribute("y"),start:b.getGraphicAttribute("start"),end:b.getGraphicAttribute("end"),verticalFactor:(d=b.getGraphicAttribute("verticalFactor"))!==null&&d!==void 0?d:1},_);break;case hi.circleAxisGrid:_=Object.assign({x:b.getGraphicAttribute("x"),y:b.getGraphicAttribute("y"),center:b.getGraphicAttribute("center"),radius:b.getGraphicAttribute("radius"),innerRadius:b.getGraphicAttribute("innerRadius"),inside:b.getGraphicAttribute("inside"),startAngle:b.getGraphicAttribute("startAngle"),endAngle:b.getGraphicAttribute("endAngle")},_)}}else{p=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;const y=ri(this.spec.inside,l,a,o),b=(c=p==null?void 0:p.getCoordinate)===null||c===void 0?void 0:c.call(p);b&&(_=Object.assign(XB(p,b,y,f,this.spec.layout,!0),_))}this._getGridComponentType()===hi.lineAxisGrid&&(_=this.spec.gridShape!=="line"&&this.spec.gridShape?Object.assign({center:_.start,closed:!0},_,{type:this.spec.gridShape}):Object.assign({},_,{type:"line"}));const m=(u=p==null?void 0:p.getScale)===null||u===void 0?void 0:u.call(p),v=ri(this.spec.tickCount,l,a,o);switch(this._getGridComponentType()){case hi.lineAxisGrid:return x9(m,g,_,v);case hi.circleAxisGrid:return S9(m,g,_,v)}return _}}),i},{});this._encoders=e}_getGridComponentType(){var t;if(this._gridComponentType)return this._gridComponentType;if(this.spec.gridType)this.spec.gridType==="circle"?this._gridComponentType=hi.circleAxisGrid:this._gridComponentType=hi.lineAxisGrid;else if(this._targetAxis)switch(this._targetAxis.getAxisComponentType()){case Rs.circleAxis:this._gridComponentType=hi.circleAxisGrid;break;case Rs.lineAxis:default:this._gridComponentType=hi.lineAxisGrid}else if(this.spec.scale){const e=tt(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;this._gridComponentType=!((t=e==null?void 0:e.getCoordinate)===null||t===void 0)&&t.call(e)?e.getCoordinateAxisPoints()?hi.lineAxisGrid:hi.circleAxisGrid:hi.lineAxisGrid}else this._gridComponentType=hi.lineAxisGrid;return this._gridComponentType}}Gx.componentType=ke.grid;const Go=()=>{G.registerGraphicComponent(hi.lineAxisGrid,(n,t)=>new RO(n,t)),G.registerComponent(ke.grid,Gx)},JB=()=>{G.registerGraphicComponent(hi.circleAxisGrid,(n,t)=>new OO(n,t)),G.registerComponent(ke.grid,Gx)},A9=(n,t,e)=>t.filter(i=>n.callback(i,e)),k9=(n,t,e)=>{const i=n.callback,s=n.as;if(!n.all)return t.forEach(a=>{const o=i(a,e);if(!P(s)){if(P(a))return;a[s]=o}return o}),t;const r=i(t,e);return P(s)||P(t)?r:(t[s]=r,t)};function QB(n){return n.reduce((t,e)=>t+e,0)}function T9(n){return n.length===0?0:QB(n)/n.length}const M9={min:Ze,max:Fe,average:T9,sum:QB};function w9(n,t,e,i){const s=Math.floor(t.length/n),r=[],a=t.length;let o,l,h,d=0,c=0;r[c++]=d;for(let u=1;uo&&(o=l,h=x))}r[c++]=h,d=h}return r[c-1]!==a-1&&(r[c++]=a-1),r.map(u=>e?t[u].i:u)}function hm(n,t,e,i,s){let r=Math.floor(t.length/n);const a=[],o=t.length;let l=0,h=[];a.push(l),t[l][s]=t[l][s];for(let d=1;do-d&&(r=o-d,h.length=r),h=[];for(let u=0;ue?t[d].i:d)}function C9(n,t,e,i){return hm(n,t,e,"min",i)}function P9(n,t,e,i){return hm(n,t,e,"max",i)}function E9(n,t,e,i){return hm(n,t,e,"average",i)}function R9(n,t,e,i){return hm(n,t,e,"sum",i)}const O9=(n,t)=>{let e=n.size;const i=n.factor||1;if(Array.isArray(e)&&(e=Math.floor(e[1]-e[0])),e*=i,e<=0)return[];if(t.length<=e)return t;if(n.skipfirst)return t.slice(0,1);const{mode:s,yfield:r,groupBy:a}=n,o=r??"y";let l=w9;if(s==="min"?l=C9:s==="max"?l=P9:s==="average"?l=E9:s==="sum"&&(l=R9),t.length){const h={};if(a){for(let c=0,u=t.length;c{const u=h[c];if(u.length<=e){const g=u.map(p=>p.i);d=d.concat(g)}else{const g=l(e,u,!0,o);d=d.concat(g),u.forEach(p=>t[p.i][o]=p[o])}}),d.sort((c,u)=>c-u),d.map(c=>t[c])}return l(e,t,!1,o).map(d=>t[d])}return[]};function B9(n){return n.forEach(t=>{t.getGraphicAttribute(xo)&&(t.setGraphicAttribute("visible",!0),t.setGraphicAttribute(xo,!1))}),n}function L9(n,t,e,i){if(i){let s=-1/0,r=0;const a=P(t);let o=t;n.forEach(l=>{if(l.getGraphicAttribute("visible")===!1)return;const h=l.getGraphicAttribute("size")/2,d=l.getGraphicAttribute("x");a&&(o=(h+r)*e),Math.abs(d-s){if(l.getGraphicAttribute("visible")===!1)return;const h=l.getGraphicAttribute("size")/2,d=l.getGraphicAttribute("y");a&&(o=(h+r)*e),Math.abs(d-s){if(d.getGraphicAttribute("visible")===!1)return;const c=d.getGraphicAttribute("size")/2,u=d.getGraphicAttribute("x"),g=d.getGraphicAttribute("y");l&&(h=(c+a)*e),o=(-1/0-u)**2+(r-g)**2,o<(h+a+c)**2?d.getGraphicAttribute("forceShow")||(d.setGraphicAttribute(xo,!0),d.setGraphicAttribute("visible",!1)):r=g,a=c})}}const F9=(n,t)=>{if(!t||t.length===0)return;let{radius:e}=n;P(e)&&t[0].mark.markType==="symbol"&&(e=!0);const{direction:i,delta:s,deltaMul:r=1,groupBy:a}=n,o=l=>{B9(l);const h=n.sort?l.slice().sort((d,c)=>d.getGraphicAttribute("x")-c.getGraphicAttribute("x")):l;i===0?D9(h,s,r,e):i===1?L9(h,s,r,e):I9(h,s,r,e)};if(a){const l=t.reduce((h,d)=>{const c=d.getDatum()[a];return h[c]?h[c].push(d):h[c]=[d],h},{});Object.keys(l).forEach(h=>{o(l[h])})}else o(t);return t},z9=()=>{G.registerTransform("filter",{transform:A9,markPhase:"beforeJoin"},!0)},j9=()=>{G.registerTransform("map",{transform:k9,markPhase:"beforeJoin"},!0)},Nx=()=>{G.registerTransform("sampling",{transform:O9,markPhase:"afterEncode"},!0)},Ux=()=>{G.registerTransform("markoverlap",{transform:F9,markPhase:"afterEncode"},!0)},H9=(n,t,e)=>{var i;const s=n.getGraphicAttribute("clipRangeByDimension",!1),r=(i=n.getGraphicAttribute("clipRange",!1))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:0,clipRangeByDimension:t.clipDimension},to:{clipRange:r,clipRangeByDimension:s}}:{from:{clipRange:0},to:{clipRange:r}}},V9=(n,t,e)=>{var i;const s=n.getGraphicAttribute("clipRangeByDimension",!0),r=(i=n.getGraphicAttribute("clipRange",!0))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:r,clipRangeByDimension:t.clipDimension},to:{clipRange:0,clipRangeByDimension:s}}:{from:{clipRange:r},to:{clipRange:0}}},W9=(n,t,e)=>{var i,s,r,a;const o=(i=n.getFinalAnimationAttributes())!==null&&i!==void 0?i:{};return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(s=o.opacity)!==null&&s!==void 0?s:1,fillOpacity:(r=o.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(a=o.strokeOpacity)!==null&&a!==void 0?a:1}}},G9=(n,t,e)=>{var i,s,r;return{from:{opacity:(i=n.getGraphicAttribute("opacity",!0))!==null&&i!==void 0?i:1,fillOpacity:(s=n.getGraphicAttribute("fillOpacity",!0))!==null&&s!==void 0?s:1,strokeOpacity:(r=n.getGraphicAttribute("strokeOpacity",!0))!==null&&r!==void 0?r:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},N9=(n,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");return{from:C(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+s)/2,x1:(i+s)/2,width:void 0},to:{x:i,x1:s,width:r}}}case"y":{const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");return{from:C(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+s)/2,y1:(i+s)/2,height:void 0},to:{y:i,y1:s,height:r}}}default:{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width"),a=n.getFinalAnimationAttribute("y"),o=n.getFinalAnimationAttribute("y1"),l=n.getFinalAnimationAttribute("height"),h={};return C(r)?(h.x=i+r/2,h.width=0,h.x1=void 0):(h.x=(i+s)/2,h.x1=(i+s)/2,h.width=void 0),C(l)?(h.y=a+l/2,h.height=0,h.y1=void 0):(h.y=(a+o)/2,h.y1=(a+o)/2,h.height=void 0),{from:h,to:{x:i,y:a,x1:s,y1:o,width:r,height:l}}}}},U9=(n,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");return{to:C(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+s)/2,x1:(i+s)/2,width:void 0}}}case"y":{const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");return{to:C(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+s)/2,y1:(i+s)/2,height:void 0}}}default:{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("y"),r=n.getFinalAnimationAttribute("x1"),a=n.getFinalAnimationAttribute("y1"),o=n.getFinalAnimationAttribute("width"),l=n.getFinalAnimationAttribute("height"),h={};return C(o)?(h.x=i+o/2,h.width=0,h.x1=void 0):(h.x=(i+r)/2,h.x1=(i+r)/2,h.width=void 0),C(l)?(h.y=s+l/2,h.height=0,h.y1=void 0):(h.y=(s+a)/2,h.y1=(s+a)/2,h.height=void 0),{to:h}}}};function $9(n,t,e){const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");if(t&&t.orient==="negative"){const o=C(r)?Math.max(i,i+r):Math.max(i,s);return{from:{x:o,x1:P(s)?void 0:o,width:P(r)?void 0:0},to:{x:i,x1:s,width:r}}}const a=C(r)?Math.min(i,i+r):Math.min(i,s);return{from:{x:a,x1:P(s)?void 0:a,width:P(r)?void 0:0},to:{x:i,x1:s,width:r}}}function Y9(n,t,e){var i;const s=n.getFinalAnimationAttribute("x"),r=n.getFinalAnimationAttribute("x1"),a=n.getFinalAnimationAttribute("width");let o;return t&&t.orient==="negative"?J(t.overall)?o=t.overall:e.group?(o=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),e.groupWidth=o):o=e.width:o=J(t==null?void 0:t.overall)?t==null?void 0:t.overall:0,{from:{x:o,x1:P(r)?void 0:o,width:P(a)?void 0:0},to:{x:s,x1:r,width:a}}}const X9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?Y9(n,t,e):$9(n,t)};function K9(n,t,e){const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");if(t&&t.orient==="negative"){const o=C(r)?Math.max(i,i+r):Math.max(i,s);return{to:{x:o,x1:P(s)?void 0:o,width:P(r)?void 0:0}}}const a=C(r)?Math.min(i,i+r):Math.min(i,s);return{to:{x:a,x1:P(s)?void 0:a,width:P(r)?void 0:0}}}function q9(n,t,e){var i;const s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");let a;return t&&t.orient==="negative"?J(t.overall)?a=t.overall:e.group?(a=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),e.groupWidth=a):a=e.width:a=J(t==null?void 0:t.overall)?t.overall:0,{to:{x:a,x1:P(s)?void 0:a,width:P(r)?void 0:0}}}const Z9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?q9(n,t,e):K9(n,t)};function J9(n,t,e){const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");if(t&&t.orient==="negative"){const o=C(r)?Math.max(i,i+r):Math.max(i,s);return{from:{y:o,y1:P(s)?void 0:o,height:P(r)?void 0:0},to:{y:i,y1:s,height:r}}}const a=C(r)?Math.min(i,i+r):Math.min(i,s);return{from:{y:a,y1:P(s)?void 0:a,height:P(r)?void 0:0},to:{y:i,y1:s,height:r}}}function Q9(n,t,e){var i;const s=n.getFinalAnimationAttribute("y"),r=n.getFinalAnimationAttribute("y1"),a=n.getFinalAnimationAttribute("height");let o;return t&&t.orient==="negative"?J(t.overall)?o=t.overall:e.group?(o=(i=e.groupHeight)!==null&&i!==void 0?i:e.group.getBounds().height(),e.groupHeight=o):o=e.height:o=J(t==null?void 0:t.overall)?t.overall:0,{from:{y:o,y1:P(r)?void 0:o,height:P(a)?void 0:0},to:{y:s,y1:r,height:a}}}const tK=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?Q9(n,t,e):J9(n,t)};function eK(n,t,e){const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");if(t&&t.orient==="negative"){const o=C(r)?Math.max(i,i+r):Math.max(i,s);return{to:{y:o,y1:P(s)?void 0:o,height:P(r)?void 0:0}}}const a=C(r)?Math.min(i,i+r):Math.min(i,s);return{to:{y:a,y1:P(s)?void 0:a,height:P(r)?void 0:0}}}function iK(n,t,e){var i;const s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");let a;return t&&t.orient==="negative"?J(t.overall)?a=t.overall:e.group?(a=(i=e.groupHeight)!==null&&i!==void 0?i:e.group.getBounds().height(),e.groupHeight=a):a=e.height:a=J(t==null?void 0:t.overall)?t.overall:0,{to:{y:a,y1:P(s)?void 0:a,height:P(r)?void 0:0}}}const nK=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?iK(n,t,e):eK(n,t)},sK=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="anticlockwise"?{from:{startAngle:i==null?void 0:i.endAngle},to:{startAngle:i==null?void 0:i.startAngle}}:{from:{endAngle:i==null?void 0:i.startAngle},to:{endAngle:i==null?void 0:i.endAngle}}},rK=(n,t,e)=>{const i=n.getFinalAnimationAttributes();if(t&&t.orient==="anticlockwise"){const r=J(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:r,endAngle:r},to:{startAngle:i==null?void 0:i.startAngle,endAngle:i==null?void 0:i.endAngle}}}const s=J(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:s,endAngle:s},to:{startAngle:i==null?void 0:i.startAngle,endAngle:i==null?void 0:i.endAngle}}},aK=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?rK(n,t):sK(n,t)},oK=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="anticlockwise"?{from:{startAngle:n.getGraphicAttribute("startAngle",!0)},to:{startAngle:i==null?void 0:i.endAngle}}:{from:{endAngle:n.getGraphicAttribute("endAngle",!0)},to:{endAngle:i==null?void 0:i.startAngle}}},lK=(n,t,e)=>{if(t&&t.orient==="anticlockwise"){const s=J(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:n.getGraphicAttribute("startAngle",!0),endAngle:n.getGraphicAttribute("endAngle",!0)},to:{startAngle:s,endAngle:s}}}const i=J(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:n.getGraphicAttribute("startAngle",!0),endAngle:n.getGraphicAttribute("endAngle",!0)},to:{startAngle:i,endAngle:i}}},hK=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?lK(n,t):oK(n,t)},dK=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="inside"?{from:{innerRadius:i==null?void 0:i.outerRadius},to:{innerRadius:i==null?void 0:i.innerRadius}}:{from:{outerRadius:i==null?void 0:i.innerRadius},to:{outerRadius:i==null?void 0:i.outerRadius}}},cK=(n,t,e)=>{const i=n.getFinalAnimationAttributes(),s=J(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:s,outerRadius:s},to:{innerRadius:i==null?void 0:i.innerRadius,outerRadius:i==null?void 0:i.outerRadius}}},uK=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?cK(n,t):dK(n,t)},gK=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="inside"?{from:{innerRadius:n.getGraphicAttribute("innerRadius",!0)},to:{innerRadius:i==null?void 0:i.outerRadius}}:{from:{outerRadius:n.getGraphicAttribute("outerRadius",!0)},to:{outerRadius:i==null?void 0:i.innerRadius}}},pK=(n,t,e)=>{const i=J(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:n.getGraphicAttribute("innerRadius",!0),outerRadius:n.getGraphicAttribute("outerRadius",!0)},to:{innerRadius:i,outerRadius:i}}},_K=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?pK(n,t):gK(n,t)},tL=(n,t,e)=>{const i=n.getGraphicAttribute("points",!1),s={x:0,y:0};return i.forEach(r=>{s.x+=r.x,s.y+=r.y}),s.x/=i.length,s.y/=i.length,t&&t.center&&(H(t.center.x)&&(s.x=t.center.x),H(t.center.y)&&(s.y=t.center.y)),n.mark.markType==="area"&&(s.x1=s.x,s.y1=s.y),i.map(r=>Object.assign({},r,s))},fK=(n,t,e)=>({from:{points:tL(n,t)},to:{points:n.getGraphicAttribute("points",!1)}}),mK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:tL(n,t)}}),eL=(n,t,e)=>n.getGraphicAttribute("points",!1).map(i=>{var s;if(t&&t.orient==="negative"){let r=e.width;return e.group&&(r=(s=e.groupWidth)!==null&&s!==void 0?s:e.group.getBounds().width(),e.groupWidth=r),Object.assign(Object.assign({},i),{x:r,y:i.y,x1:r,y1:i.y1,defined:i.defined!==!1})}return Object.assign(Object.assign({},i),{x:0,y:i.y,x1:0,y1:i.y1,defined:i.defined!==!1})}),vK=(n,t,e)=>({from:{points:eL(n,t,e)},to:{points:n.getGraphicAttribute("points",!1)}}),yK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:eL(n,t,e)}}),iL=(n,t,e)=>n.getGraphicAttribute("points",!1).map(i=>{var s;if(t&&t.orient==="negative"){let r=e.height;return e.group&&(r=(s=e.groupHeight)!==null&&s!==void 0?s:e.group.getBounds().height(),e.groupHeight=r),Object.assign(Object.assign({},i),{x:i.x,y:r,x1:i.x1,y1:r,defined:i.defined!==!1})}return Object.assign(Object.assign({},i),{x:i.x,y:0,x1:i.x1,y1:0,defined:i.defined!==!1})}),bK=(n,t,e)=>({from:{points:iL(n,t,e)},to:{points:n.getGraphicAttribute("points",!1)}}),xK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:iL(n,t,e)}}),SK=(n,t,e)=>{var i,s;const{offset:r=0,orient:a,direction:o,point:l,excludeChannels:h=[]}=t??{};let d=0,c=0;a==="negative"&&(e.group?(d=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),c=(s=e.groupHeight)!==null&&s!==void 0?s:e.group.getBounds().height(),e.groupWidth=d,e.groupHeight=c):(d=e.width,c=e.height)),d+=r,c+=r;const u=N(l)?l.call(null,n.getDatum(),n,e):l,g=u&&H(u.x)?u.x:d,p=u&&H(u.y)?u.y:c,_=h.includes("x")?n.getGraphicAttribute("x"):n.getFinalAnimationAttribute("x"),f=h.includes("y")?n.getGraphicAttribute("y"):n.getFinalAnimationAttribute("y");switch(o){case"x":return{from:{x:g},to:{x:_}};case"y":return{from:{y:p},to:{y:f}};default:return{from:{x:g,y:p},to:{x:_,y:f}}}},AK=(n,t,e)=>{var i,s;const{offset:r=0,orient:a,direction:o,point:l}=t??{},h=e.group?e.group.getBounds():null,d=(i=h==null?void 0:h.width())!==null&&i!==void 0?i:e.width,c=(s=h==null?void 0:h.height())!==null&&s!==void 0?s:e.height,u=(a==="negative"?d:0)+r,g=(a==="negative"?c:0)+r,p=N(l)?l.call(null,n.getDatum(),n,e):l,_=p&&H(p.x)?p.x:u,f=p&&H(p.y)?p.y:g;switch(o){case"x":return{from:{x:n.getGraphicAttribute("x",!0)},to:{x:_}};case"y":return{from:{y:n.getGraphicAttribute("y",!0)},to:{y:f}};default:return{from:{x:n.getGraphicAttribute("x",!0),y:n.getGraphicAttribute("y",!0)},to:{x:_,y:f}}}},kK=(n,t,e)=>{var i,s,r,a;const o=n.getFinalAnimationAttributes();switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:0},to:{scaleX:(i=o==null?void 0:o.scaleX)!==null&&i!==void 0?i:1}};case"y":return{from:{scaleY:0},to:{scaleY:(s=o==null?void 0:o.scaleY)!==null&&s!==void 0?s:1}};default:return{from:{scaleX:0,scaleY:0},to:{scaleX:(r=o==null?void 0:o.scaleX)!==null&&r!==void 0?r:1,scaleY:(a=o==null?void 0:o.scaleY)!==null&&a!==void 0?a:1}}}},TK=(n,t,e)=>{var i,s,r,a;switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:(i=n.getGraphicAttribute("scaleX",!0))!==null&&i!==void 0?i:1},to:{scaleX:0}};case"y":return{from:{scaleY:(s=n.getGraphicAttribute("scaleY",!0))!==null&&s!==void 0?s:1},to:{scaleY:0}};default:return{from:{scaleX:(r=n.getGraphicAttribute("scaleX",!0))!==null&&r!==void 0?r:1,scaleY:(a=n.getGraphicAttribute("scaleY",!0))!==null&&a!==void 0?a:1},to:{scaleX:0,scaleY:0}}}},MK={symbol:["_mo_hide_","visible"]},wK=(n,t,e)=>{const i=Object.assign({},n.getPrevGraphicAttributes()),s=Object.assign({},n.getNextGraphicAttributes());let r;t&&j(t.excludeChannels).forEach(o=>{delete i[o],delete s[o]}),n.mark&&n.mark.markType&&(r=MK[n.mark.markType])&&r.forEach(o=>{delete i[o],delete s[o]}),Object.keys(s).forEach(o=>{Jt(i[o],s[o])&&(delete i[o],delete s[o])});const a=n.getFinalGraphicAttributes();return Object.keys(i).forEach(o=>{P(s[o])&&(P(a[o])||Jt(i[o],a[o])?delete i[o]:s[o]=a[o])}),{from:i,to:s}},CK=(n,t,e)=>{var i;const s=(i=n.getFinalAnimationAttribute("angle"))!==null&&i!==void 0?i:0;let r=0;return r=Ge(s/(2*Math.PI),0)?Math.round(s/(2*Math.PI))*Math.PI*2:H(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(s/(2*Math.PI))*Math.PI*2:Math.floor(s/(2*Math.PI))*Math.PI*2,{from:{angle:r},to:{angle:s}}},PK=(n,t,e)=>{var i;const s=(i=n.getGraphicAttribute("angle",!0))!==null&&i!==void 0?i:0;let r=0;return r=Ge(s/(2*Math.PI),0)?Math.round(s/(2*Math.PI))*Math.PI*2:H(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(s/(2*Math.PI))*Math.PI*2:Math.floor(s/(2*Math.PI))*Math.PI*2,{from:{angle:s},to:{angle:r}}},EK=()=>{G.registerAnimationType("clipIn",H9)},RK=()=>{G.registerAnimationType("clipOut",V9)},OK=()=>{G.registerAnimationType("fadeIn",W9)},BK=()=>{G.registerAnimationType("fadeOut",G9)},LK=()=>{G.registerAnimationType("growCenterIn",N9)},IK=()=>{G.registerAnimationType("growCenterOut",U9)},DK=()=>{G.registerAnimationType("growHeightIn",tK)},FK=()=>{G.registerAnimationType("growHeightOut",nK)},zK=()=>{G.registerAnimationType("growWidthIn",X9)},jK=()=>{G.registerAnimationType("growWidthOut",Z9)},nL=()=>{G.registerAnimationType("growPointsIn",fK)},sL=()=>{G.registerAnimationType("growPointsOut",mK)},HK=()=>{G.registerAnimationType("growPointsXIn",vK)},VK=()=>{G.registerAnimationType("growPointsXOut",yK)},WK=()=>{G.registerAnimationType("growPointsYIn",bK)},GK=()=>{G.registerAnimationType("growPointsYOut",xK)},NK=()=>{G.registerAnimationType("growAngleIn",aK)},UK=()=>{G.registerAnimationType("growAngleOut",hK)},$K=()=>{G.registerAnimationType("growRadiusIn",uK)},YK=()=>{G.registerAnimationType("growRadiusOut",_K)},XK=()=>{G.registerAnimationType("moveIn",SK)},KK=()=>{G.registerAnimationType("moveOut",AK)},qK=()=>{G.registerAnimationType("scaleIn",kK)},ZK=()=>{G.registerAnimationType("scaleOut",TK)},JK=()=>{G.registerAnimationType("rotateIn",CK)},QK=()=>{G.registerAnimationType("rotateOut",PK)},tq=()=>{G.registerAnimationType("update",wK)};class rL extends Vo{encodeState(t,e,i){return super.encodeState(t,e,i),this._updateComponentEncoders(t),this}_updateComponentEncoders(t){this._encoders||(this._encoders={});const e=this.spec.encode[t];if(e&&t==="update"){const i=this.parameters(),s=Qa(e)?null:Object.keys(e).reduce((r,a)=>(rm(e[a])&&(r[a]=Pc(e[a].scale,i)),r),{});this._encoders[t]={callback:(r,a,o)=>{const l=sa(e,r,a,o);if(P(l.size)){const h=s.x?ew(s.x):void 0,d=s.y?ew(s.y):void 0;P(h)&&P(d)?l.size=10:P(h)?l.size=d:P(d)&&(l.size=h),l.size=[h,d]}return P(l.shape)&&(l.shape="rect"),l}}}else this._encoders[t]=e}_getEncoders(){var t;return(t=this._encoders)!==null&&t!==void 0?t:{}}getAttributeTransforms(){return[{channels:["size","padding"],transform:(t,e,i)=>{if(J(i.padding)&&i.padding>0)t.size=U(i.size)?i.size.map(s=>Math.max(s-i.padding,1)):Math.max(i.size-i.padding,1);else if(U(i.padding)&&i.padding.length===2){const s=U(i.size)?i.size:[i.size,i.size];t.size=[Math.max(s[0]-i.padding[0],1),Math.max(s[1]-i.padding[1],1)]}else t.size=i.size},storedAttrs:"paddingAttrs"}].concat(xu.symbol)}release(){super.release(),this._encoders=null}}rL.markType=Q.cell;const eq=()=>{G.registerMark(Q.cell,rL)};class iq{constructor(t){this._animations=[],this._additionalAnimateMarks=[],this.isEnabled=!0,this._onAnimationStart=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var s;return(s=i==null?void 0:i.animate)===null||s===void 0?void 0:s.isAnimating()}),this._animations.length===0&&this._additionalAnimateMarks.length===0&&this._view.emit(ut.ALL_ANIMATION_START,{}),this._animations=this._animations.concat({config:e.animationConfig,mark:e.mark})},this._onAnimationEnd=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var s;return(s=i==null?void 0:i.animate)===null||s===void 0?void 0:s.isAnimating()}),this._animations=this._animations.filter(i=>i.config!==e.animationConfig||i.mark!==e.mark),this._animations.length===0&&this._additionalAnimateMarks.length===0&&this._view.emit(ut.ALL_ANIMATION_END,{})},this._view=t,this._view.addEventListener(ut.ANIMATION_START,this._onAnimationStart),this._view.addEventListener(ut.ANIMATION_END,this._onAnimationEnd)}stop(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks=[],this}pause(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).pause)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).pause)===null||i===void 0||i.call(e))}),this}resume(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).resume)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).resume)===null||i===void 0||i.call(e))}),this}enable(){return this.isEnabled=!0,this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).enable)===null||i===void 0||i.call(e))}),this}disable(){return this.isEnabled=!1,this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).disable)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks=[],this}enableAnimationState(t){return this._view.traverseMarkTree(e=>{var i,s;e.animate&&((s=(i=e.animate).enableAnimationState)===null||s===void 0||s.call(i,t))}),this}disableAnimationState(t){return this._view.traverseMarkTree(e=>{var i,s;e.animate&&((s=(i=e.animate).disableAnimationState)===null||s===void 0||s.call(i,t))}),this}isAnimating(){return this._animations.length!==0||this._additionalAnimateMarks.some(t=>{var e;return((e=t==null?void 0:t.animate)===null||e===void 0?void 0:e.isAnimating())||!1})}animate(){return this.isEnabled?(this._view.traverseMarkTree(t=>{t.isUpdated&&t.animate&&t.animate.animate(),t.cleanExitElements(),t.isUpdated=!1},null,!0),this):this}animateAddition(t){var e;const i=(e=t.animate)===null||e===void 0?void 0:e.animate();return i&&i.isAnimating()&&this._additionalAnimateMarks.push(t),this}release(){this._additionalAnimateMarks=[],this._animations=[],this._view.removeEventListener(ut.ALL_ANIMATION_START,this._onAnimationStart),this._view.removeEventListener(ut.ALL_ANIMATION_END,this._onAnimationEnd),this._view=null}}class nq{initAnimate(t){return this.animate=new iq(t),this.animate}}const sq=()=>{se(Ba,nq)},aL=(n,t)=>{if(!n)return null;if(n.from){const e=n.from,i=Object.keys(e);i.forEach(r=>{P(e[r])&&delete e[r]});const s=S_(i,t.mark.markType)&&!C(e.segments);if(s){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));n.from=t.transformElementItems(r,t.mark.markType,s)}}if(n.to){const e=n.to,i=Object.keys(e);i.forEach(r=>{P(e[r])&&delete e[r]});const s=S_(i,t.mark.markType)&&!C(e.segments);if(s){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));n.to=t.transformElementItems(r,t.mark.markType,s)}}return n};function rq(n,t,e,i){const s=N(t.options)?t.options.call(null,n.getDatum(),n,i):t.options;if(!t.type||!G.getAnimationType(t.type))return null;const r=G.getAnimationType(t.type)(n,s,e);return aL(r,n)}const ow=(n,t,e,i,s)=>N(e)?e(n.getDatum(),n,s):e;function aq(n,t,e,i){const s=t.channel;let r=null;return U(s)?r=s.reduce((a,o)=>(a.from[o]=n.getGraphicAttribute(o,!0),a.to[o]=n.getGraphicAttribute(o,!1),a),{from:{},to:{}}):yt(s)&&(r=Object.keys(s).reduce((a,o)=>{var l,h;const d=!P((l=s[o])===null||l===void 0?void 0:l.from),c=!P((h=s[o])===null||h===void 0?void 0:h.to);return(d||c)&&(a.from[o]=d?ow(n,0,s[o].from,0,i):void 0,a.to[o]=c?ow(n,0,s[o].to,0,i):n.getGraphicAttribute(o,!1)),a},{from:{},to:{}})),aL(r,n)}class oq extends Mn{constructor(t,e,i,s,r){super(t,e,i,s,r),this._interpolator=r==null?void 0:r.interpolator,this._element=r==null?void 0:r.element}onBind(){var t,e;this.from=(t=this.from)!==null&&t!==void 0?t:{},this.to=(e=this.to)!==null&&e!==void 0?e:{}}getEndProps(){return this.to}onUpdate(t,e,i){this._interpolator&&this._element&&this._interpolator.call(this,e,this.from,this.to,i,this._element.getDatum(),this._element,this.params.parameters)}}class lq extends Mn{getEndProps(){return this.to}onBind(){var t;const e=(t=this.target.constructor.NOWORK_ANIMATE_ATTR)!==null&&t!==void 0?t:Pi,i=Object.keys(e).filter(o=>e[o]!==0);this.subAnimate.animate.preventAttrs(i);const s=Object.assign({},this.from),r=Object.assign({},this.to),a=[];Object.keys(r).forEach(o=>{i.includes(o)?(s[o]=r[o],this.from[o]=r[o]):P(s[o])?s[o]=this.target.getComputedAttribute(o):a.push(o)}),this.target.animates.forEach(o=>{o!==this.subAnimate.animate&&o.preventAttrs(a)}),this._fromAttribute=s,this._toAttribute=r}onStart(){if(this._fromAttribute){const t={};Object.keys(this._fromAttribute).forEach(e=>{this.subAnimate.animate.validAttr(e)&&(t[e]=this._fromAttribute[e])}),this.target.setAttributes(t,!1,{type:He.ANIMATE_UPDATE,animationState:{ratio:0,end:!1}})}}onEnd(){if(this._toAttribute){const t={};Object.keys(this._toAttribute).forEach(e=>{this.subAnimate.animate.validAttr(e)&&(t[e]=this._toAttribute[e])}),this.target.setAttributes(t,!1,{type:He.ANIMATE_END})}}update(t,e,i){this.updateCount===0&&this.onFirstRun(),this.updateCount+=1;const s=this.step.getLastProps();Object.keys(s).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=s[r])}),this.onUpdate(t,e,i),t&&this.onEnd()}onUpdate(t,e,i){this.target.stepInterpolate(this.subAnimate,this.subAnimate.animate,i,this.step,e,t,this._toAttribute,this._fromAttribute)}}Qg.mode|=Kl.SET_ATTR_IMMEDIATELY;let hq=0;const lw=n=>{var t;if(P(n)||P(n.prototype))return!1;const e=(t=n.prototype)!==null&&t!==void 0?t:{};return e instanceof Mn||"onBind"in e&&"onStart"in e&&"onEnd"in e&&"onUpdate"in e};class dq{constructor(t,e,i){this.id=hq++,this.isAnimating=!1,this.runnings=[],this.element=t,this.animationOptions=i,this.unit=e}callback(t){return this.callbackFunction=t,this}animate(t,e){return this.isAnimating=!0,this.animateElement(t,e),this.runnings.length===0&&this.animationEnd(),this}stop(t="end",e=!0){return this.runnings.forEach(i=>i.stop(t)),this.animationEnd(e),this}pause(){return this.runnings.forEach(t=>t.pause()),this}resume(){return this.runnings.forEach(t=>t.resume()),this}startAt(t){return this.runnings.forEach(e=>{const i=this.unit.initialDelay;e.startAt(i+t)}),this}getTotalAnimationTime(){var t;const e=this.unit.initialDelay+this.unit.loopDuration*this.unit.loopCount;return(t=this.unit.totalTime)!==null&&t!==void 0?t:e}getEndAttributes(){return this.runnings.reduce((t,e)=>Object.assign(t,e.getEndProps()),{})}animationEnd(t=!0){var e;this.isAnimating=!1,this.runnings=null,t&&((e=this.callbackFunction)===null||e===void 0||e.call(null))}animateElement(t,e){const i=this.element.getGraphicItem();if(!i)return;const s=i.animate();this.runnings.push(s),s.startAt(this.unit.initialDelay),s.wait(this.unit.loopDelay),this.unit.timeSlices.forEach(r=>{this.animateTimeSlice(s,r,t,e)}),s.wait(this.unit.loopDelayAfter),s.loop(this.unit.loopCount-1),H(this.unit.totalTime)&&setTimeout(()=>{s&&s.stop("end")},this.unit.totalTime),s.onEnd(()=>{this.runnings=this.runnings.filter(r=>r!==s),this.runnings.length===0&&this.animationEnd()})}animateTimeSlice(t,e,i,s){const r=e.delay,a=e.delayAfter,o=e.duration,l=e.effects;if(r>0&&t.wait(r),l.length<0)t.wait(o);else{const h=l.map((d,c)=>{var u;const g=(u=d.type?rq(this.element,d,i,s):d.channel?aq(this.element,d,i,s):void 0)!==null&&u!==void 0?u:{},p=g.custom||(d==null?void 0:d.custom),_=(g==null?void 0:g.customParameters)||(d==null?void 0:d.customParameters);g.from&&Object.keys(g.from).length&&this.unit&&this.animationOptions.timeline.controlOptions.immediatelyApply&&this.element.mark.markType!=="component"&&this.element.getGraphicItem().setAttributes(g.from);const f=lw(p);return!P(p)&&!lw(p)?new oq(g.from,g.to,o,d.easing,{interpolator:p,element:this.element,parameters:_}):f?new p(g.from,g.to,o,d.easing,_):g.to?new lq(g.from,g.to,o,d.easing):void 0}).filter(d=>!P(d));h.length===1?t.play(h[0]):h.length>1&&t.play(new gj(o,h))}a>0&&t.wait(a)}}function cq(n){var t,e,i,s,r,a,o,l,h,d,c,u;if(P(n.timeSlices)){const p=n;return{startTime:(t=p.startTime)!==null&&t!==void 0?t:KM,totalTime:p.totalTime,oneByOne:(e=p.oneByOne)!==null&&e!==void 0?e:sb,loop:(i=p.loop)!==null&&i!==void 0?i:ZM,controlOptions:$({},JM,(s=p.controlOptions)!==null&&s!==void 0?s:{}),timeSlices:[{duration:(r=p.duration)!==null&&r!==void 0?r:MB,delay:(a=p.delay)!==null&&a!==void 0?a:nb,delayAfter:(o=p.delayAfter)!==null&&o!==void 0?o:qM,effects:[{type:p.type,channel:p.channel,custom:p.custom,easing:(l=p.easing)!==null&&l!==void 0?l:rb,customParameters:p.customParameters,options:p.options}]}]}}const g=j(n.timeSlices).filter(p=>p.effects&&j(p.effects).filter(_=>_.channel||_.type).length);if(g.length)return{startTime:(h=n.startTime)!==null&&h!==void 0?h:KM,totalTime:n.totalTime,oneByOne:(d=n.oneByOne)!==null&&d!==void 0?d:sb,loop:(c=n.loop)!==null&&c!==void 0?c:ZM,controlOptions:$({},JM,(u=n.controlOptions)!==null&&u!==void 0?u:{}),timeSlices:g.map(p=>{var _,f;return{duration:p.duration,delay:(_=p.delay)!==null&&_!==void 0?_:nb,delayAfter:(f=p.delayAfter)!==null&&f!==void 0?f:qM,effects:j(p.effects).filter(m=>m.channel||m.type).map(m=>{var v;return{type:m.type,channel:m.channel,custom:m.custom,easing:(v=m.easing)!==null&&v!==void 0?v:rb,customParameters:m.customParameters,options:m.options}})}}),partitioner:n.partitioner,sort:n.sort}}function hw(n){let t=[];return Object.keys(n).forEach(e=>{t=t.concat(oL(e,n[e]))}),t}function oL(n,t,e=0){const i=[];let s=e;return j(t).forEach(r=>{var a;const o=cq(r);o&&(i.push({state:n,id:(a=o.id)!==null&&a!==void 0?a:`${n}-${s}`,timeline:o,originConfig:r}),s+=1)}),i}function Lr(n,t,e){return N(n)?n.call(null,t.getDatum(),t,e):n}class dw{constructor(t){this.parallelArrangers=[this],this.totalTime=0,this.startTime=0,this.endTime=0,this.animators=t.filter(e=>!P(e)),this.totalTime=this.animators.reduce((e,i)=>Math.max(e,i.getTotalAnimationTime()),0)}parallel(t){const e=Array.from(new Set(this.parallelArrangers.concat(t.parallelArrangers)));return e.forEach(i=>{i.parallelArrangers=e}),this.arrangeTime(),this}after(t){return this.afterArranger=t,this.arrangeTime(),this}arrangeTime(){const t=this.parallelArrangers.reduce((i,s)=>Math.max(i,s.totalTime),this.totalTime),e=this.parallelArrangers.reduce((i,s)=>{var r,a;return Math.max(i,(a=(r=s.afterArranger)===null||r===void 0?void 0:r.endTime)!==null&&a!==void 0?a:0)},0);this.parallelArrangers.forEach(i=>{i.startTime=e,i.endTime=e+t,i.animators.forEach(s=>{s.startAt(e)})})}}class cw{constructor(t,e){this.state=null,this.immediateConfigs=[],this.isEnabled=!0,this.disabledStates=[],this.animators=new Map,this.elementRecorder=new WeakMap,this.timelineCount={},this.mark=t,this.configs=hw(e??{})}getAnimationConfigs(t){var e;return this.isEnabled?((e=this.configs)!==null&&e!==void 0?e:[]).filter(i=>i.state===t):[]}updateConfig(t){this.configs=hw(t??{})}updateState(t){this.state=t}animate(){if(!this.isEnabled||!this.configs||!this.configs.length)return;const t=this.mark.getAllElements(),e=this.mark.parameters();return t.forEach(i=>{var s;i.isReserved&&i.diffState!==Zt.exit&&(i.isReserved=!1);const r=(s=this.elementRecorder.get(i))===null||s===void 0?void 0:s.prevState;this.configs.some(a=>r!==i.diffState&&a.state===r&&a.timeline.controlOptions.stopWhenStateChange)&&this.clearElementAnimation(i,!1)}),this.configs.forEach(i=>{this.animateByTimeline(i,t,e)}),this.mark.cleanExitElements(),this}runAnimationByState(t){if(!this.isEnabled)return;const e=this.configs.filter(a=>a.state===t),i=this.mark.getAllElements(),s=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,s,!0)),[]);return new dw(r)}stopAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.stop()),this}pauseAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.pause()),this}resumeAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.resume()),this}run(t){if(!this.isEnabled)return;const e=oL(XM,t,this.immediateConfigs.length);this.immediateConfigs=this.immediateConfigs.concat(e);const i=this.mark.getAllElements(),s=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,s,!0)),[]);return new dw(r)}stop(){return this.animators.forEach(t=>{t.forEach(e=>e.stop())}),this}pause(){return this.animators.forEach(t=>t.forEach(e=>e.pause())),this}resume(){return this.animators.forEach(t=>t.forEach(e=>e.resume())),this}reverse(){return this}restart(){return this}record(){return this}recordEnd(){return this}isAnimating(){let t=!1;return this.animators.forEach(e=>{t=t||e.some(i=>i.isAnimating)}),t}isElementAnimating(t){var e;const i=(e=this.elementRecorder.get(t))===null||e===void 0?void 0:e.count;return P(i)||Object.values(i).every(s=>s===0)}getAnimatorCount(){let t=0;return this.animators.forEach(e=>t+=e.length),t}getAllAnimators(){const t=[];return this.animators.forEach(e=>{t.push(...e)}),t}getElementAnimators(t,e){var i;const s=j(t);let r=[];return e?r=(i=this.animators.get(e))!==null&&i!==void 0?i:[]:this.animators.forEach(a=>{r=r.concat(a)}),r.filter(a=>s.includes(a.element))}enable(){return this.isEnabled=!0,this}disable(){return this.isEnabled=!1,this.stop(),this.animators.clear(),this}enableAnimationState(t){const e=j(t);return this.disabledStates=this.disabledStates.filter(i=>!e.includes(i)),this}disableAnimationState(t){const e=j(t);return this.disabledStates=this.disabledStates.concat(e),this}release(){this.stop(),this.animators.clear(),this.configs=null,this.animators=null,this.elementRecorder=null,this.timelineCount=null}animateByTimeline(t,e,i,s=!1){var r;const a=[],o=e.filter(l=>{const h=!(l.isReserved&&l.diffState===Zt.exit),d=this.getAnimationState(l),c=!this.disabledStates.includes(d),u=s||d===t.state,g=!t.timeline.partitioner||t.timeline.partitioner(l.getDatum(),l,i);return h&&c&&u&&g});if(o.length){P(this.timelineCount[t.id])&&(this.timelineCount[t.id]=0),t.timeline.sort&&o.sort((h,d)=>t.timeline.sort(h.getDatum(),d.getDatum(),h,d,i));const l={width:this.mark.view.width(),height:this.mark.view.height(),group:(r=this.mark.group)!==null&&r!==void 0?r:null,mark:this.mark,view:this.mark.view,elementCount:o.length,elementIndex:0};o.forEach((h,d)=>{l.elementIndex=d;const c=Object.assign({[d7]:l},i),u=this.getAnimationUnit(t.timeline,h,d,o.length,c);a.push(this.animateElement(t,u,h,l,c))})}return a}animateElement(t,e,i,s,r){var a,o;const l=new dq(i,e,t);if(l.animate(s,r),!l.isAnimating)return;i.diffState===Zt.exit&&(i.isReserved=!0);const h=this.timelineCount[t.id]===0;this.timelineCount[t.id]+=1;const d=(a=this.elementRecorder.get(i))!==null&&a!==void 0?a:{prevState:t.state,count:{}};d.prevState=t.state,d.count[t.state]=((o=d.count[t.state])!==null&&o!==void 0?o:0)+1,this.elementRecorder.set(i,d);const c=this.animators.get(t.state);c?c.push(l):this.animators.set(t.state,[l]),l.callback(()=>{this.handleAnimatorEnd(l)});const u={mark:this.mark,animationState:t.state,animationConfig:t.originConfig};return h&&this.mark.emit(ut.ANIMATION_START,u),this.mark.emit(ut.ELEMENT_ANIMATION_START,u,i),l}getAnimationState(t){const e=ri(this.state,this.mark.parameters(),t.getDatum(),t);return e??t.diffState}getAnimationUnit(t,e,i,s,r){const a=[],o=Lr(t.startTime,e,r),l=Lr(t.totalTime,e,r),h=Lr(t.oneByOne,e,r),d=Lr(t.loop,e,r);let c=0;t.timeSlices.forEach(g=>{var p;const _=Lr(g.delay,e,r),f=Lr(g.delayAfter,e,r),m=(p=Lr(g.duration,e,r))!==null&&p!==void 0?p:l/s,v=j(g.effects).map(y=>Object.assign({},y,{customParameters:Lr(y.customParameters,e,r)}));a.push({effects:v,duration:m,delay:_,delayAfter:f}),c+=_+m+f});const u=J(h)?h:h===!0?c:0;return{initialDelay:o,loopCount:J(d)?d:d===!0?1/0:1,loopDelay:u*i,loopDelayAfter:u*(s-i-1),loopAnimateDuration:c,loopDuration:c+u*(s-1),totalTime:l,timeSlices:a}}clearElementAnimation(t,e=!0){this.animators.forEach(i=>{i.forEach(s=>{s.element===t&&(s.animationOptions.state===Zt.exit?s.stop("start",!1):s.stop("end",!1),this.handleAnimatorEnd(s,e))})}),this.elementRecorder.delete(t)}clearAllElements(){const t=this.mark.getAllElements();t&&t.forEach((e,i)=>{this.clearElement(e,i===t.length-1)})}clearElement(t,e=!0){this.clearElementAnimation(t),t.getGraphicItem()&&(t.clearGraphicAttributes(),t.diffState===Zt.exit&&(t.isReserved=!1),e&&this.mark.cleanExitElements())}handleAnimatorEnd(t,e=!0){const i=t.element,s=t.animationOptions,r=s.state,a=r===XM,o=this.elementRecorder.get(i).count;o[r]-=1,this.animators.set(r,this.animators.get(r).filter(c=>c!==t)),this.animators.get(r).length===0&&this.animators.delete(r),this.timelineCount[s.id]-=1;const l=this.timelineCount[s.id]===0,h=a?this.immediateConfigs.find(c=>c.id===s.id).originConfig:this.configs.find(c=>c.id===s.id).originConfig;l&&(delete this.timelineCount[s.id],a&&(this.immediateConfigs=this.immediateConfigs.filter(c=>c.id!==s.id))),e&&(Object.keys(this.timelineCount).length===0?this.clearAllElements():r===Zt.exit&&o[Zt.exit]===0&&this.clearElement(i));const d={mark:this.mark,animationState:r,animationConfig:h};l&&this.mark.emit(ut.ANIMATION_END,d),this.mark.emit(ut.ELEMENT_ANIMATION_END,d,i)}}class uq{constructor(){this.animate=new cw(this,{})}initAnimate(t){this.animate||(this.animate=new cw(this,t.animation),this.needAnimate()&&this.animate.updateState(t.animationState))}reuseAnimate(t){this.animate=t.animate,this.animate.mark=this}updateAnimate(t){t.animation&&this.animate.updateConfig(t.animation),this.animate.updateState(t.animationState)}}const gq=()=>{se(Vo,uq)},pq=()=>{G.registerStageEventPlugin("gesture",I5)},_q=()=>{sq(),gq()},fq=["pointerdown","pointerup","pointerupoutside","pointertap","pointerover","pointermove","pointerenter","pointerleave","pointerout","mousedown","mouseup","mouseupoutside","rightdown","rightup","rightupoutside","click","dblclick","mousemove","mouseover","mouseout","mouseenter","mouseleave","wheel","touchstart","touchend","touchendoutside","touchmove","touchcancel","tap","dragstart","drag","dragenter","dragleave","dragover","dragend","drop","pan","panstart","panend","press","pressup","pressend","pinch","pinchstart","pinchend","swipe"];var lt;(function(n){n.initialized="initialized",n.rendered="rendered",n.renderFinished="renderFinished",n.animationFinished="animationFinished",n.regionSeriesDataFilterOver="regionSeriesDataFilterOver",n.afterInitData="afterInitData",n.afterInitEvent="afterInitEvent",n.afterInitMark="afterInitMark",n.rawDataUpdate="rawDataUpdate",n.viewDataFilterOver="viewDataFilterOver",n.viewDataUpdate="viewDataUpdate",n.viewDataStatisticsUpdate="viewDataStatisticsUpdate",n.markDeltaYUpdate="markDeltaYUpdate",n.viewDataLabelUpdate="viewDataLabelUpdate",n.scaleDomainUpdate="scaleDomainUpdate",n.scaleUpdate="scaleUpdate",n.dataZoomChange="dataZoomChange",n.drill="drill",n.layoutStart="layoutStart",n.layoutEnd="layoutEnd",n.layoutRectUpdate="layoutRectUpdate",n.playerPlay="playerPlay",n.playerPause="playerPause",n.playerEnd="playerEnd",n.playerChange="playerChange",n.playerForward="playerForward",n.playerBackward="playerBackward",n.scrollBarChange="scrollBarChange",n.brushStart="brushStart",n.brushChange="brushChange",n.brushEnd="brushEnd",n.brushClear="brushClear",n.legendSelectedDataChange="legendSelectedDataChange",n.legendFilter="legendFilter",n.legendItemClick="legendItemClick",n.legendItemHover="legendItemHover",n.legendItemUnHover="legendItemUnHover",n.tooltipShow="tooltipShow",n.tooltipHide="tooltipHide",n.tooltipRelease="tooltipRelease",n.afterResize="afterResize",n.afterRender="afterRender",n.afterLayout="afterLayout"})(lt||(lt={}));var Vt;(function(n){n.chart="chart",n.window="window",n.canvas="canvas"})(Vt||(Vt={}));var pe;(function(n){n.vchart="vchart",n.chart="chart",n.model="model",n.mark="mark"})(pe||(pe={}));const mq=(n,t,e)=>n.x>=t.x&&n.x<=e.x&&n.y>=t.y&&n.y<=e.y,vq=(n,t,e)=>{const i=n.getRegionsInIds(j(t.layout.layoutBindRegionID));return i==null?void 0:i.some(s=>{const r=s.getLayoutRect(),a=s.getLayoutStartPoint();return mq(e,{x:a.x,y:a.y},{x:r.width+a.x,y:r.height+a.y})})},lL=(n,t)=>{var e,i;return n===t||!P(n)&&!P(t)&&n.value===t.value&&((e=n.axis)===null||e===void 0?void 0:e.id)===((i=t.axis)===null||i===void 0?void 0:i.id)},ob=(n,t,e,i)=>{var s;const r=t.getScale(),a=mi(r.type),o=[],l=t.getOption().getChart().getSeriesInIndex(t.getSpecInfo().seriesIndexes);for(const h of l)if(h.coordinate===e){const d=j(i(h)),c=(s=h.getViewData())===null||s===void 0?void 0:s.latestData;if(d&&c)if(a){const u=[],g=[];c.forEach((p,_)=>{var f;((f=p[d[0]])===null||f===void 0?void 0:f.toString())===(n==null?void 0:n.toString())&&(u.push(p),g.push(_))}),o.push({series:h,datum:u,key:O0(h,g)})}else if(C(d[1])){const u=[],g=[];c.forEach((p,_)=>{var f;(((f=p[d[0]])===null||f===void 0?void 0:f.toString())===(n==null?void 0:n.toString())||C(p[d[0]])&&C(p[d[1]])&&n>=p[d[0]]&&n{if(C(f[d[0]])){const v=f[d[0]]-n;v>=g[0]&&v<=g[1]&&(p.push(f),_.push(m))}});else{let f=1/0,m=0;c.forEach((v,y)=>{if(C(v[d[0]])){const b=Math.abs(v[d[0]]-n),x=Math.sign(v[d[0]]-n);b`${n.id}_${t.join("_")}`,w_=(n,t,e)=>{const i=n.getAllComponents().filter(s=>s.specKey==="axes"&&t(s)&&vq(n,s,e));return i.length?i:null},yq=(n,t)=>{const e=2*Math.PI,i=Ze(t),s=Fe(t);return ns&&(n-=Math.ceil((n-s)/e)*e),n},hL=(n,t)=>{if(!n)return null;const e=w_(n,l=>l.getOrient()==="angle",t),i=w_(n,l=>l.getOrient()==="radius",t);if(!(e&&e.length||i&&i.length))return null;const s=[],r=l=>l.getDimensionField()[0],{x:a,y:o}=t;return e&&e.forEach(l=>{var h;const d=l.getScale();if(d&&mi(d.type)){const c=d.domain(),u=d.range(),g=l.getCenter(),p={x:a-l.getLayoutStartPoint().x-g.x,y:o-l.getLayoutStartPoint().y-g.y};let _=SM({x:1,y:0},p);_=yq(_,u);const f=f_(p),m=(h=i[0])===null||h===void 0?void 0:h.getScale(),v=m==null?void 0:m.range();if((_-(u==null?void 0:u[0]))*(_-(u==null?void 0:u[1]))>0||(f-(v==null?void 0:v[0]))*(f-(v==null?void 0:v[1]))>0)return;const y=l.invert(_);if(P(y))return;let b=c.findIndex(S=>(S==null?void 0:S.toString())===y.toString());b<0&&(b=void 0);const x=ob(y,l,"polar",r);s.push({index:b,value:y,position:d.scale(y),axis:l,data:x})}}),i&&i.forEach(l=>{var h;const d=l.getScale(),c=d==null?void 0:d.range();if(d&&mi(d.type)){const u=l.getCenter(),g={x:a-l.getLayoutStartPoint().x-u.x,y:o-l.getLayoutStartPoint().y-u.y};let p=SM({x:1,y:0},g);p<-Math.PI/2&&(p=2*Math.PI+p);const _=f_(g),f=(h=e[0])===null||h===void 0?void 0:h.getScale(),m=f==null?void 0:f.range();if((p-(m==null?void 0:m[0]))*(p-(m==null?void 0:m[1]))>0||(_-(c==null?void 0:c[0]))*(_-(c==null?void 0:c[1]))>0)return;const v=d.invert(_);if(P(v))return;let y=d.domain().findIndex(x=>(x==null?void 0:x.toString())===v.toString());y<0&&(y=void 0);const b=ob(v,l,"polar",r);s.push({index:y,value:v,position:d.scale(v),axis:l,data:b})}}),s.length?s:null};function ye(n){return n==="bottom"||n==="top"}function ws(n){return n==="left"||n==="right"}function Ks(n){return n==="z"}function bq(n,t){return t?ye(n)?"linear":"band":ye(n)?"band":"linear"}function Xa(n,t){return Ex(n.orient)||t&&t.includes(n.orient)?n.orient:"left"}function dL(n){return n==="top"||n==="bottom"?"horizontal":"vertical"}function xq(n,t){let e=n.inverse;return t&&!ye(n.orient)&&(e=!C(n.inverse)||!n.inverse),e}function uw(n,t){var e;const i=(e=n.type)!==null&&e!==void 0?e:bq(n.orient,t);return{axisType:i,componentName:`${X.cartesianAxis}-${i}`}}const cL=n=>n.fieldX[0],uL=n=>n.fieldY[0],Sq=n=>{var t;return[n.fieldX[0],(t=n.fieldX2)!==null&&t!==void 0?t:n.fieldX[1]]},Aq=n=>{var t;return[n.fieldY[0],(t=n.fieldY2)!==null&&t!==void 0?t:n.fieldY[1]]},gw=(n,t)=>n?t?cL:Sq:t?uL:Aq,gL=(n,t,e)=>{var i,s;if(!n)return null;const{x:r,y:a}=t,o=(i=w_(n,p=>ye(p.getOrient()),t))!==null&&i!==void 0?i:[],l=(s=w_(n,p=>ws(p.getOrient()),t))!==null&&s!==void 0?s:[];if(!o.length&&!l.length)return null;const h=new Set,d=new Set,c=new Set;[o,l].forEach(p=>p.forEach(_=>{mi(_.getScale().type)?h.add(_):d.add(_),e&&_.getSpec().hasDimensionTooltip&&c.add(_)}));const u=[],g=p=>{const _=p==="x",f=_?r:a;(_?o:l).forEach(m=>{if(c.size>0){if(c.has(m)){const v=pw(m,f,gw(_,mi(m.getScale().type)));v&&u.push(v)}}else{const v=h.size>0;if((v?h:d).has(m)){const y=pw(m,f,gw(_,v));y&&u.push(y)}}})};return n.getSpec().direction==="horizontal"?(g("y"),u.length===0&&g("x")):(g("x"),u.length===0&&g("y")),u.length?u:null},pw=(n,t,e)=>{const i=n.positionToData(t,!0);return P(i)?null:pL(n,i,e)},pL=(n,t,e)=>{const i=n.getScale();if(P(t))return null;let s=i.domain().findIndex(a=>(a==null?void 0:a.toString())===t.toString());s<0&&(s=void 0);const r=ob(t,n,"cartesian",e??(ye(n.getOrient())?cL:uL));return{index:s,value:t,position:i.scale(t),axis:n,data:r}};class _L{constructor(t,e){this._eventDispatcher=t,this._mode=e}get chart(){var t,e;return this._chart||(this._chart=(e=(t=this._eventDispatcher.globalInstance).getChart)===null||e===void 0?void 0:e.call(t)),this._chart}register(t,e){var i,s;((s=(i=this.chart)===null||i===void 0?void 0:i.getOption().onError)!==null&&s!==void 0?s:vc)("Method not implemented.")}unregister(){var t,e;((e=(t=this.chart)===null||t===void 0?void 0:t.getOption().onError)!==null&&e!==void 0?e:vc)("Method not implemented.")}getTargetDimensionInfo(t,e){var i,s;const r=(i=gL(this.chart,{x:t,y:e}))!==null&&i!==void 0?i:[],a=(s=hL(this.chart,{x:t,y:e}))!==null&&s!==void 0?s:[],o=[].concat(r,a);return o.length===0?null:o}dispatch(t,e){var i;const s=(i=this.chart)===null||i===void 0?void 0:i.getAllComponents().filter(l=>l.specKey==="axes"&&(!(e!=null&&e.filter)||e.filter(l))),r=s.filter(l=>{const h=l.getScale();return mi(h.type)}),a=r.length?r:s.filter(l=>{const h=l.getOrient();return ye(h)||h==="angle"}),o=[];return a.forEach(l=>{const h=pL(l,t);h&&o.push(h)}),this._callback.call(null,{action:"enter",dimensionInfo:o}),o}}class kq extends _L{constructor(){super(...arguments),this.onClick=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,s=this.getTargetDimensionInfo(e,i);s&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"click",dimensionInfo:s.slice()}))}}register(t,e){this._callback=e.callback,this._eventDispatcher.register("pointertap",{query:Object.assign(Object.assign({},e.query),{source:Vt.chart}),callback:this.onClick})}unregister(){this._eventDispatcher.unregister("pointertap",{query:null,callback:this.onClick})}}class Tq extends _L{constructor(){super(...arguments),this._cacheDimensionInfo=null,this.onMouseMove=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,s=this.getTargetDimensionInfo(e,i);s===null&&this._cacheDimensionInfo!==null?(this._callback.call(null,Object.assign(Object.assign({},t),{action:"leave",dimensionInfo:this._cacheDimensionInfo.slice()})),this._cacheDimensionInfo=s):s===null||this._cacheDimensionInfo!==null&&s.length===this._cacheDimensionInfo.length&&!s.some((r,a)=>!lL(r,this._cacheDimensionInfo[a]))?s!==null&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"move",dimensionInfo:s.slice()})):(this._callback.call(null,Object.assign(Object.assign({},t),{action:"enter",dimensionInfo:s.slice()})),this._cacheDimensionInfo=s)},this.onMouseOut=t=>{t&&(this._callback.call(null,Object.assign(Object.assign({},t),{action:"leave",dimensionInfo:this._cacheDimensionInfo?this._cacheDimensionInfo.slice():[]})),this._cacheDimensionInfo=null)}}register(t,e){this._callback=e.callback,this._eventDispatcher.register("pointermove",{query:Object.assign(Object.assign({},e.query),{source:Vt.chart}),callback:this.onMouseMove}),this._eventDispatcher.register("pointerout",{query:Object.assign(Object.assign({},e.query),{source:Vt.canvas}),callback:this.onMouseOut}),xa(this._mode)&&this._eventDispatcher.register("pointerdown",{query:Object.assign(Object.assign({},e.query),{source:Vt.chart}),callback:this.onMouseMove})}unregister(){this._eventDispatcher.unregister("pointermove",{query:null,callback:this.onMouseMove}),xa(this._mode)&&this._eventDispatcher.unregister("pointerdown",{query:null,callback:this.onMouseMove})}}var vr;(function(n){n.dimensionHover="dimensionHover",n.dimensionClick="dimensionClick"})(vr||(vr={}));const B0={[vr.dimensionHover]:Tq,[vr.dimensionClick]:kq};let dm=class{getComposedEventMap(){return this._composedEventMap}constructor(t,e){this._composedEventMap=new Map,this._eventDispatcher=t,this._mode=e}on(t,e,i){const s=typeof e=="function"?{query:null,callback:e}:{query:e,callback:i};if(B0[t]){const r=new B0[t](this._eventDispatcher,this._mode);r.register(t,s),this._composedEventMap.set(i,{eventType:t,event:r})}else this._eventDispatcher.register(t,s);return this}off(t,e,i){var s,r;const a=i??e;if(B0[t])if(a)(s=this._composedEventMap.get(a))===null||s===void 0||s.event.unregister(),this._composedEventMap.delete(a);else for(const o of this._composedEventMap.entries())o[1].eventType===t&&((r=this._composedEventMap.get(o[0]))===null||r===void 0||r.event.unregister(),this._composedEventMap.delete(o[0]));else if(a){const o={callback:a,query:null,filter:{nodeName:null,type:t,level:null,source:e.source,markName:null,filter:null,userId:null}};this._eventDispatcher.unregister(t,o)}else this._eventDispatcher.unregister(t);return this}emit(t,e,i){return this._eventDispatcher.dispatch(t,e,i),this}prevent(t,e){return this._eventDispatcher.prevent(t,e),this}allow(t){return this._eventDispatcher.allow(t),this}release(){this._eventDispatcher.clear(),this._composedEventMap.clear()}};class Mq{constructor(){this._map=new Map,this._levelNodes=new Map,this._levelNodes.set(pe.vchart,[]),this._levelNodes.set(pe.chart,[]),this._levelNodes.set(pe.model,[]),this._levelNodes.set(pe.mark,[])}addHandler(t,e){var i;const s={level:e,handler:t};return(i=this._levelNodes.get(e))===null||i===void 0||i.push(s),this._map.set(t.callback,s),this}removeHandler(t){const e=this._map.get(t.callback);if(!e)return this;this._map.delete(t.callback);const i=this._levelNodes.get(e.level),s=i==null?void 0:i.findIndex(r=>r.handler.callback===t.callback);return s!==void 0&&s>=0&&(i==null||i.splice(s,1)),this}preventHandler(t){return t&&(t.prevented=!0),this}allowHandler(t){return t&&(t.prevented=!1),this}getHandlers(t){var e;return((e=this._levelNodes.get(t))===null||e===void 0?void 0:e.map(i=>i.handler))||[]}getAllHandlers(){return Array.from(this._map.values()).map(t=>t.handler)||[]}getCount(){return this._map.size}release(){this._map.clear(),this._levelNodes.clear()}}const _w={cartesianAxis:"axis","cartesianAxis-band":"axis","cartesianAxis-linear":"axis","cartesianAxis-time":"axis",polarAxis:"axis","polarAxis-band":"axis","polarAxis-linear":"axis",discreteLegend:"legend",continuousLegend:"legend",colorLegend:"legend",sizeLegend:"legend"};class wq{constructor(t,e){this._viewBubbles=new Map,this._windowBubbles=new Map,this._canvasBubbles=new Map,this._viewListeners=new Map,this._windowListeners=new Map,this._canvasListeners=new Map,this._onDelegate=i=>{var s;const r=this.globalInstance.getChart(),a=C(i.modelId)&&(r==null?void 0:r.getModelById(i.modelId))||void 0,o=C(i.markId)&&(r==null?void 0:r.getMarkById(i.markId))||null,l=new Map;let h=(s=i.item)===null||s===void 0?void 0:s.mark;for(h&&C(h.id())&&l.set(h.id(),i.item);h!=null&&h.elements;){const c=h.id();C(c)&&!l.has(c)&&l.set(c,h.elements[0]),h=h.group}const d={event:i.event,item:i.item,datum:i.datum,source:i.source,itemMap:l,chart:r,model:a,mark:o??void 0,node:wt(i.event,"target")};this.dispatch(i.type,d)},this._onDelegateInteractionEvent=i=>{const s=this.globalInstance.getChart(),r=i.event;let a=null;r.elements&&(a=r.elements);const o={event:i.event,chart:s,items:a,datums:a&&a.map(l=>l.getDatum())};this.dispatch(i.type,o)},this.globalInstance=t,this._compiler=e}register(t,e){var i,s,r,a,o;this._parseQuery(e);const l=this.getEventBubble(((i=e.filter)===null||i===void 0?void 0:i.source)||Vt.chart),h=this.getEventListeners(((s=e.filter)===null||s===void 0?void 0:s.source)||Vt.chart);if(l.get(t)||l.set(t,new Mq),l.get(t).addHandler(e,(r=e.filter)===null||r===void 0?void 0:r.level),this._isValidEvent(t)&&!h.has(t)){const d=this._onDelegate.bind(this);this._compiler.addEventListener((a=e.filter)===null||a===void 0?void 0:a.source,t,d),h.set(t,d)}else if(this._isInteractionEvent(t)&&!h.has(t)){const d=this._onDelegateInteractionEvent.bind(this);this._compiler.addEventListener((o=e.filter)===null||o===void 0?void 0:o.source,t,d),h.set(t,d)}return this}unregister(t,e){var i,s,r,a;let o=!1;const l=this.getEventBubble(((i=e==null?void 0:e.filter)===null||i===void 0?void 0:i.source)||Vt.chart),h=this.getEventListeners(((s=e==null?void 0:e.filter)===null||s===void 0?void 0:s.source)||Vt.chart);if(e){const d=l.get(t);d==null||d.removeHandler(e),(d==null?void 0:d.getCount())===0&&(d==null||d.release(),l.delete(t),o=!0),!((r=e==null?void 0:e.wrappedCallback)===null||r===void 0)&&r.cancel&&e.wrappedCallback.cancel()}else{const d=l.get(t);d==null||d.release(),l.delete(t),o=!0}if(o&&this._isValidEvent(t)){const d=h.get(t);this._compiler.removeEventListener(((a=e==null?void 0:e.filter)===null||a===void 0?void 0:a.source)||Vt.chart,t,d),h.delete(t)}return this}dispatch(t,e,i){const s=this.getEventBubble(e.source||Vt.chart).get(t);if(!s)return this;let r=!1;if(i){const a=s.getHandlers(i);r=this._invoke(a,t,e)}else{const a=[pe.mark,pe.model,pe.chart,pe.vchart];let o=0;for(;!r&&o{const s=this.getEventBubble(i).get(t);s&&s.getAllHandlers().forEach(r=>{e&&r.callback===e||s.preventHandler(r)})}),this}allow(t){return["canvas","chart","window"].forEach(e=>{const i=this.getEventBubble(e).get(t);i&&i.getAllHandlers().forEach(s=>i.allowHandler(s))}),this}clear(){[Vt.chart,Vt.window,Vt.canvas].forEach(t=>{const e=this.getEventListeners(t);for(const i of e.entries())this._compiler.removeEventListener(t,i[0],i[1]);e.clear()}),[this._viewBubbles,this._windowBubbles,this._canvasBubbles].forEach(t=>{for(const e of t.values())e.release();t.clear()})}release(){this.clear(),this.globalInstance=null,this._compiler=null}_filter(t,e,i){var s,r,a;if(N(t.filter)&&!t.filter(i)||t.nodeName&&wt(i,"node.name")!==t.nodeName||t.markName&&((s=i==null?void 0:i.mark)===null||s===void 0?void 0:s.name)!==t.markName)return!1;let o=(r=i.model)===null||r===void 0?void 0:r.type;return _w[o]&&(o=_w[o]),(!t.type||o===t.type)&&!(t.level==="mark"&&!t.type&&!(i!=null&&i.mark))&&!(t.level==="model"&&!t.type&&!(i!=null&&i.model))&&(!C(t.userId)||((a=i.model)===null||a===void 0?void 0:a.userId)===t.userId)}_prepareParams(t,e){if(t.markName&&e.mark&&e.itemMap){const i=e.mark.getProductId(),s=e.itemMap.get(i),r=s==null?void 0:s.getDatum();return Object.assign(Object.assign({},e),{item:s,datum:r})}return Object.assign({},e)}_invoke(t,e,i){return t.map(s=>{var r,a,o;const l=s.filter;if(!s.prevented&&(!s.query||this._filter(l,e,i))){const h=(s.wrappedCallback||s.callback).call(null,this._prepareParams(l,i)),d=h??((r=s.query)===null||r===void 0?void 0:r.consume);return d&&((a=i.event)===null||a===void 0||a.stopPropagation(),(o=i.event)===null||o===void 0||o.preventDefault()),!!d}}).some(s=>s===!0)}_getQueryLevel(t){return t?t.level?t.level:C(t.id)?pe.model:pe.vchart:pe.vchart}_parseQuery(t){var e;const i=t.query;i!=null&&i.throttle?t.wrappedCallback=yr(t.callback,i.throttle):i!=null&&i.debounce&&(t.wrappedCallback=wa(t.callback,i.debounce));let s=this._getQueryLevel(i),r=null,a=Vt.chart,o=null,l=null,h=null;return i!=null&&i.nodeName&&(o=i.nodeName),i!=null&&i.markName&&(l=i.markName),!(i!=null&&i.type)||s!==pe.model&&s!==pe.mark||(r=i.type),i!=null&&i.source&&(a=i.source),C(i==null?void 0:i.id)&&(h=i==null?void 0:i.id,s=pe.model),t.filter={level:s,markName:l,type:r,source:a,nodeName:o,userId:h,filter:(e=i==null?void 0:i.filter)!==null&&e!==void 0?e:null},t}getEventBubble(t){switch(t){case Vt.chart:return this._viewBubbles;case Vt.window:return this._windowBubbles;case Vt.canvas:return this._canvasBubbles;default:return this._viewBubbles}}getEventListeners(t){switch(t){case Vt.chart:return this._viewListeners;case Vt.window:return this._windowListeners;case Vt.canvas:return this._canvasListeners;default:return this._viewListeners}}_isValidEvent(t){return fq.includes(t)||Object.values(ut).includes(t)}_isInteractionEvent(t){let e;return t&&(e=t.split(":")[0],e)&&G.hasInteraction(e)}}function vt(n,t,e){n.getTransform(t)||n.registerTransform(t,e)}function dr(n,t,e){n.getParser(t)||n.registerParser(t,e)}const Co=new Map;let rl;function Cq(){rl||(rl=new ya,dr(rl,"geojson",fE),dr(rl,"topojson",Fz),vt(rl,"simplify",yz))}function Pq(n,t,e={type:"geojson",centroid:!0}){Co.has(n)&&rn(`map type of '${n}' already exists, will be overwritten.`),Cq();const i=new Gt(rl),s=$({},{centroid:!0,simplify:!1},e);e.type==="topojson"?i.parse(t,{type:"topojson",options:s}):i.parse(t,{type:"geojson",options:s});const{simplify:r}=e;r===!0?i.transform({type:"simplify"}):yt(r)&&i.transform({type:"simplify",options:r}),Co.set(n,i)}function Eq(n){Co.has(n)?Co.delete(n):rn(`map type of '${n}' does not exists.`)}function Rq(n){return Co.get(n)}function fw(n,t=!1){let e=t;return n.latestData instanceof Gt&&(e=!1),e?xn(n.latestData):n.latestData&&n.latestData.slice()}const cm=(n,t)=>n.length===0?[]:n.length===1?fw(n[0],t==null?void 0:t.deep):n.map(e=>fw(e,t==null?void 0:t.deep));function lb(n,t,e){t=t instanceof ya?t:n.dataSet,vt(t,"copyDataView",cm);const i=new Gt(t,e);return i.parse([n],{type:"dataview"}),i.transform({type:"copyDataView",level:cs.copyDataView}),i}function $x(n,t,e=[]){var i;if(n instanceof Gt)return n;const{id:s,values:r=[],fromDataIndex:a,fromDataId:o,transforms:l=[]}=n,h=n.parser?xn(n.parser):{clone:!0},d=xn(n.fields);let c;h.clone=h.clone!==!1;const u=e.find(g=>g.name===s);if(u)c=u;else{const g={name:s};if(d&&(g.fields=d),c=new Gt(t,g),typeof o=="string"){const p=e.find(_=>_.name===o);if(!p)return rn(`no data matches fromDataId ${o}`),null;c.parse([p],{type:"dataview"}),c.transform({type:"copyDataView"})}else if(typeof a=="number"){const p=e[a];if(!p)return rn(`no data matches fromDataIndex ${a}`),null;c.parse([p],{type:"dataview"}),c.transform({type:"copyDataView"})}else Array.isArray(r)?c.parse(r,h):!tt(r)||h&&!["csv","dsv","tsv"].includes(h.type)?(c.parse([]),rn("values should be array")):c.parse(r,(i=h)!==null&&i!==void 0?i:{type:"csv"});l&&l.length&&l.forEach(p=>{t.getTransform(p.type)&&c.transform(p)})}return c}function Yx(n,t,e){n&&(t.fields&&n.setFields(t.fields,e),n.parseNewData(t.values,t.parser))}var cs;(function(n){n[n.copyDataView=-10]="copyDataView",n[n.treemapFilter=-8]="treemapFilter",n[n.treemapFlatten=-7]="treemapFlatten",n[n.dotObjFlat=-7]="dotObjFlat",n[n.linkDotInfo=-7]="linkDotInfo",n[n.sankeyLayout=-7]="sankeyLayout",n[n.dataZoomFilter=-6]="dataZoomFilter",n[n.legendFilter=-5]="legendFilter"})(cs||(cs={}));var Ye;(function(n){n.appear="appear",n.disappear="disappear",n.enter="enter",n.update="update",n.state="state",n.exit="exit",n.normal="normal",n.none="none"})(Ye||(Ye={}));var oa;(function(n){n.data="data",n.signal="signal",n.mark="mark"})(oa||(oa={}));function Oq(n){switch(n){case Ue["desktop-browser"]:case Ue["mobile-browser"]:return"browser";case Ue.node:case Ue.worker:return"node";case Ue.miniApp:case Ue["desktop-miniApp"]:return"feishu";case Ue.lynx:return"lynx";case Ue.wx:return"wx";case Ue.tt:return"tt";case Ue.harmony:return"harmony"}return"browser"}class Bq{getVGrammarView(){return this._view}getModel(){return this._model}constructor(t,e){this._viewListeners=new Map,this._windowListeners=new Map,this._canvasListeners=new Map,this.isInited=!1,this._released=!1,this._model={[oa.signal]:{},[oa.data]:{},[oa.mark]:{}},this._compileChart=null,this.handleStageRender=()=>{var i,s;(s=(i=this._compileChart)===null||i===void 0?void 0:i.getEvent())===null||s===void 0||s.emit(lt.afterRender,{chart:this._compileChart})},this._container=t,this._option=e}getRenderer(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer}getCanvas(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer.canvas()}getStage(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer.stage()}initView(){var t,e,i,s;if(this._released||(this.isInited=!0,this._view))return;const r=new Ot((t=this._option.logLevel)!==null&&t!==void 0?t:pn.Error);!((e=this._option)===null||e===void 0)&&e.onError&&r.addErrorHandler((...a)=>{var o,l;(l=(o=this._option)===null||o===void 0?void 0:o.onError)===null||l===void 0||l.call(o,...a)}),this._view=new Ba(Object.assign(Object.assign({width:this._width,height:this._height,container:(i=this._container.dom)!==null&&i!==void 0?i:null,renderCanvas:(s=this._container.canvas)!==null&&s!==void 0?s:null,hooks:this._option.performanceHook},this._option),{mode:Oq(this._option.mode),autoFit:!1,eventConfig:{gesture:C(this._option.gestureConfig)?this._option.gestureConfig:xa(this._option.mode),disable:this._option.interactive===!1},doLayout:()=>{var a;(a=this._compileChart)===null||a===void 0||a.onLayout(this._view)},logger:r,logLevel:r.level()})),this._setCanvasStyle(),this.getStage().hooks.afterRender.tap("chart-event",this.handleStageRender),this._option.interactive!==!1&&this._viewListeners.forEach(a=>{var o;(o=this._view)===null||o===void 0||o.addEventListener(a.type,a.callback)})}_setCanvasStyle(){if(this._view&&this._container.dom&&!tt(this._container.dom)){this._container.dom.style.display="block",this._container.dom.style.position="relative";const t=this.getCanvas();t&&(t.style.display="block")}}compileInteractions(){var t;if(this._view.removeAllInteractions(),(t=this._interactions)===null||t===void 0?void 0:t.length){const e={};this._interactions.forEach(i=>{var s;if(i.regionId){const r=`${i.regionId}-${i.type}-${(s=i.id)!==null&&s!==void 0?s:""}`,a=e[r];e[r]=a?Object.assign(Object.assign(Object.assign({},a),i),{selector:[...a.selector,...i.selector]}):i}else this._view.interaction(i.type,i)}),Object.keys(e).forEach(i=>{const s=this._view.interaction(e[i].type,e[i]);if(this._compileChart){const r=this._compileChart.getRegionsInIds([e[i].regionId])[0];r&&r.interaction.addVgrammarInteraction(s.getStartState(),s)}})}}compile(t,e){if(this._released)return;const{chart:i}=t;this._compileChart=i,this.initView(),this._view&&(i.compile(),i.afterCompile(),this.updateDepend(),this.compileInteractions())}clearNextRender(){return!!this._nextRafId&&(Et.getCancelAnimationFrame()(this._nextRafId),this._nextRafId=null,!0)}clear(t,e=!1){const{chart:i}=t;this.clearNextRender(),i.clear(),this.releaseGrammar(e)}renderNextTick(t){this._released||this._nextRafId||(this._nextRafId=Et.getRequestAnimationFrame()(()=>{this._nextRafId=null,this.render(t)}))}render(t){var e,i;this._released||(this.initView(),this._view&&((e=this._view)===null||e===void 0||e.run(t),this.clearNextRender()&&((i=this._view)===null||i===void 0||i.run(t))))}updateViewBox(t,e=!0){this._view&&this._view.renderer.setViewBox(t,e)}resize(t,e,i=!0){this._view&&(this._width=t,this._height=e,this._view.resize(t,e),i&&this.render({morph:!1}))}setBackground(t){var e;(e=this._view)===null||e===void 0||e.background(t)}setSize(t,e){this._width=t,this._height=e,this._view&&(this._view.width(t),this._view.height(e))}setViewBox(t,e=!0){this._view&&this._view.renderer.setViewBox(t,e)}addEventListener(t,e,i){var s,r;if(this._option.interactive!==!1){if(t===Vt.chart){const a=(function(o,l){var h,d,c;const u=(d=(h=l==null?void 0:l.mark)===null||h===void 0?void 0:h.getContext())!==null&&d!==void 0?d:{},g=C(u.modelId)?u.modelId:null,p=C(u.markId)?u.markId:null,_=C(u.modelUserId)?u.modelUserId:null,f=C(u.markUserId)?u.markUserId:null,m={event:o,type:e,source:t,item:l,datum:((c=l==null?void 0:l.getDatum)===null||c===void 0?void 0:c.call(l))||null,markId:p,modelId:g,markUserId:f,modelUserId:_};i.call(null,m)}).bind(this);this._viewListeners.set(i,{type:e,callback:a}),(s=this._view)===null||s===void 0||s.addEventListener(e,a)}else if(t===Vt.window){const a=(function(l){const h={event:l,type:e,source:t,item:null,datum:null,markId:null,modelId:null,markUserId:null,modelUserId:null};i.call(null,h)}).bind(this);this._windowListeners.set(i,{type:e,callback:a});const o=this._getGlobalThis();o==null||o.addEventListener(e,a)}else if(t===Vt.canvas){const a=(function(l){const h={event:l,type:e,source:t,item:null,datum:null,markId:null,modelId:null,markUserId:null,modelUserId:null};i.call(null,h)}).bind(this);this._canvasListeners.set(i,{type:e,callback:a});const o=(r=this.getStage())===null||r===void 0?void 0:r.window;o==null||o.addEventListener(e,a)}}}removeEventListener(t,e,i){var s,r,a,o,l;if(this._option.interactive!==!1){if(t===Vt.chart){const h=(s=this._viewListeners.get(i))===null||s===void 0?void 0:s.callback;h&&((r=this._view)===null||r===void 0||r.removeEventListener(e,h)),this._viewListeners.delete(i)}else if(t===Vt.window){const h=this._getGlobalThis(),d=(a=this._windowListeners.get(i))===null||a===void 0?void 0:a.callback;d&&(h==null||h.removeEventListener(e,d)),this._windowListeners.delete(i)}else if(t===Vt.canvas){const h=(o=this.getStage())===null||o===void 0?void 0:o.window,d=(l=this._canvasListeners.get(i))===null||l===void 0?void 0:l.callback;h&&d&&(h==null||h.removeEventListener(e,d)),this._canvasListeners.delete(i)}}}releaseEvent(){const t=this.getStage();t&&t.hooks.afterRender.unTap("chart-event",this.handleStageRender),this._viewListeners.clear(),this._windowListeners.clear(),this._canvasListeners.clear()}release(){var t;this.clearNextRender(),this.releaseEvent(),this._option=this._container=null,this._releaseModel(),(t=this._view)===null||t===void 0||t.release(),this._view=null,this.isInited=!1,this._compileChart=null,this._released=!0}releaseGrammar(t=!1){var e,i;this._releaseModel(),t&&((e=this._view)===null||e===void 0||e.removeAllGraphicItems()),(i=this._view)===null||i===void 0||i.removeAllGrammars()}_releaseModel(){Object.keys(this._model).forEach(t=>{Object.values(this._model[t]).forEach(e=>{Object.values(e).forEach(i=>{i.removeProduct(!0)})}),this._model[t]={}})}addGrammarItem(t){const e=t.getProduct();if(P(e))return;const i=e.id(),s=t.grammarType;P(this._model[s][i])&&(this._model[s][i]={}),this._model[s][i][t.id]=t}removeGrammarItem(t,e){var i;const s=t.getProduct();if(P(s))return;const r=s.id(),a=t.grammarType,o=this._model[a][r];C(o)&&(delete o[t.id],Object.keys(o).length===0&&delete this._model[a][r]),e||(i=this._view)===null||i===void 0||i.removeGrammar(s)}addInteraction(t){this._interactions||(this._interactions=[]),this._interactions.push(t)}removeInteraction(t){this._interactions&&(this._interactions=this._interactions.filter(e=>e.seriesId!==t))}updateDepend(t){return C(t)&&t.length>0?t.every(e=>e.updateDepend()):(Object.values(this._model).forEach(e=>{Object.values(e).forEach(i=>{const s=Object.values(i),r=s[0].getProduct(),a=s.reduce((o,l)=>l.getDepend().length>0?o.concat(l.getDepend()):o,[]).filter(o=>!!o).map(o=>o.getProduct());r.depend(a)})}),!0)}_getGlobalThis(){var t;return ls(this._option.mode)?globalThis:(t=this.getStage())===null||t===void 0?void 0:t.window}}var Lq=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};function Iq(n="vchart",t){const e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank"),e.setAttribute("download",`${n}.png`),e.dispatchEvent(new MouseEvent("click"))}function Dq(n){return new Promise(t=>{n.convertToBlob().then(e=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{t(i.result)}})})}function Fq(n,t){var e;return Lq(this,void 0,void 0,function*(){if(!n)return"";try{if(OffscreenCanvas!==void 0&&n instanceof OffscreenCanvas)return Dq(n)}catch(i){((e=t==null?void 0:t.onError)!==null&&e!==void 0?e:vc)(`getCanvasDataURL error : ${i.toString()}`)}return n.toDataURL()})}function La(n){n.crosshair=j(n.crosshair||{}).map(t=>gt({[n.direction==="horizontal"?"yField":"xField"]:{visible:!0,line:{visible:!0,type:"rect"}}},t))}function fL(n,t,e){var i;const{width:s,height:r}=n;if(C(s)&&C(r))return{width:s,height:r};let a=e.width,o=e.height;const l=t.container,h=t.canvas;if(l){const{width:d,height:c}=q0(l,e.width,e.height);a=d,o=c}else if(h&&ls(t.mode)){let d;d=tt(h)?Et.getElementById(h):h;const{width:c,height:u}=q0(d,e.width,e.height);a=c,o=u}else if(Pa(t.mode)&&(!((i=t.modeParams)===null||i===void 0)&&i.domref)){const d=t.modeParams.domref;a=d.width,o=d.height}return a=s??a,o=r??o,{width:a,height:o}}function al(n,...t){const e=i=>t.reduce((s,r)=>s||(r==null?void 0:r[i]),n[i]);return Object.assign(n,{change:e("change"),reCompile:e("reCompile"),reMake:e("reMake"),reRender:e("reRender"),reSize:e("reSize"),reTransformSpec:e("reTransformSpec"),changeTheme:e("changeTheme"),changeBackground:e("changeBackground")}),n}function mL(n,t){return n==="line"||n==="area"||n==="common"&&t.series.every(e=>e.type==="area"||e.type==="line")?{paddingInner:1,paddingOuter:0}:{paddingOuter:0}}var it;(function(n){n.STATE_NORMAL="normal",n.STATE_HOVER="hover",n.STATE_HOVER_REVERSE="hover_reverse",n.STATE_DIMENSION_HOVER="dimension_hover",n.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",n.STATE_SELECTED="selected",n.STATE_SELECTED_REVERSE="selected_reverse",n.STATE_SANKEY_EMPHASIS="selected",n.STATE_SANKEY_EMPHASIS_REVERSE="blur"})(it||(it={}));var Ad;(function(n){n.STATE_HOVER_REVERSE="hover_reverse",n.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",n.STATE_SELECTED_REVERSE="selected_reverse"})(Ad||(Ad={}));class lh{constructor(){this._children=[],this._markNameMap={},this._infoMap=new Map}getMarkNameMap(){return this._markNameMap}addMark(t,e){P(t)||(this._children.push(t),this._markNameMap[t.name]=t,this._infoMap.set(t,$({},lh.defaultMarkInfo,e)))}removeMark(t){const e=this._children.findIndex(i=>i.name===t);e>=0&&(this._infoMap.delete(this._children[e]),delete this._markNameMap[t],this._children.splice(e,1))}clear(){this._children=[],this._markNameMap={},this._infoMap.clear()}forEach(t){this._children.forEach(t)}includes(t,e){return this._children.includes(t,e)}get(t){return isNaN(Number(t))?this._markNameMap[t]:this._children[t]}getMarks(){return this._children.slice()}getMarksInType(t){const e=j(t);return this._children.filter(i=>e.includes(i.type))}getMarkInId(t){return this._children.find(e=>e.id===t)}getMarkWithInfo(t){return this._children.find(e=>Object.keys(t).every(i=>t[i]===this._infoMap.get(e)[i]))}}lh.defaultMarkInfo={};class zq{get hover(){return this._hover}get select(){return this._select}constructor(t){this._marks=new lh,this._markReverse=new lh,this.onHover=e=>{switch(e.action){case"enter":this.interaction.getEventElement(it.STATE_DIMENSION_HOVER).forEach(i=>this.interaction.addEventElement(it.STATE_DIMENSION_HOVER_REVERSE,i)),this.interaction.clearEventElement(it.STATE_DIMENSION_HOVER,!1),this.getEventElement(e).forEach(i=>this.interaction.addEventElement(it.STATE_DIMENSION_HOVER,i)),this.interaction.reverseEventElement(it.STATE_DIMENSION_HOVER);break;case"leave":this.interaction.clearEventElement(it.STATE_DIMENSION_HOVER,!0),e=null}},this._option=t,this.event=this._option.model.getOption().getChart().getEvent(),this.interaction=t.interaction,this.initConfig(t.mode)}setStateKeys(t){}registerMark(t){ht(t.stateStyle[it.STATE_DIMENSION_HOVER])||this._marks.addMark(t),ht(t.stateStyle[it.STATE_DIMENSION_HOVER_REVERSE])||this._markReverse.addMark(t)}init(){this.initEvent()}release(){this.releaseEvent()}initEvent(){this.event.on(vr.dimensionHover,this.onHover)}releaseEvent(){this.event.release()}initConfig(t){}getEventElement(t,e=!1){const i=[];return t.dimensionInfo.forEach(s=>{s.data.forEach(r=>{(e?this._markReverse:this._marks).getMarks().filter(a=>a.model===r.series&&a.getVisible()).forEach(a=>{const o=a.getProduct();if(!o||!o.elements)return;const l=o.elements.filter(h=>{const d=h.getDatum();let c;return c=U(d)?d.every((u,g)=>u===r.datum[g]):r.datum.some(u=>u===d),e?!c:c});i.push(...l)})})}),i}}function jq(n,t,e){var i;const s=(i=t[n])===null||i===void 0?void 0:i.style;return Hq(n,s)||N(s)?!0:!(!(s!=null&&s.scale)||s.field===e)}function Hq(n,t){return(n==="fill"||n==="stroke")&&(t==null?void 0:t.gradient)&&(t==null?void 0:t.stops)}const vL={};Object.values(it).forEach(n=>{vL[n]=!0});function Vq(n){return!!vL[n]}const Wq={[it.STATE_HOVER]:it.STATE_HOVER_REVERSE,[it.STATE_SELECTED]:it.STATE_SELECTED_REVERSE,[it.STATE_DIMENSION_HOVER]:it.STATE_DIMENSION_HOVER_REVERSE};function hg(n){return Wq[n]}class Gq{constructor(){this._stateMarks=new Map,this._stateElements=new Map,this._vgrammarInteractions=new Map,this._disableTriggerEvent=!1}addVgrammarInteraction(t,e){t&&(this._vgrammarInteractions.get(t)?this._vgrammarInteractions.get(t).push(e):this._vgrammarInteractions.set(t,[e]))}static markStateEnable(t,e){return!ht(t.stateStyle[e])}setDisableActiveEffect(t){this._disableTriggerEvent=t}registerMark(t,e){var i;this._stateMarks.has(t)||this._stateMarks.set(t,[]),(i=this._stateMarks.get(t))===null||i===void 0||i.push(e)}getStateMark(t){return this._stateMarks.get(t)}filterEventMark(t,e){var i;return!(!t.mark||!(!((i=this._stateMarks.get(e))===null||i===void 0)&&i.includes(t.mark)))}getEventElement(t){var e;return(e=this._stateElements.get(t))!==null&&e!==void 0?e:[]}getEventElementData(t){return this.getEventElement(t).map(e=>e.getDatum())}exchangeEventElement(t,e){var i;if(this._disableTriggerEvent)return;const s=hg(t);(i=this._stateElements.get(t))===null||i===void 0||i.forEach(r=>{r.removeState(t),s&&this.addEventElement(s,r)}),e.getStates().includes(t)||(e.addState(t),s&&e.removeState(s)),this._stateElements.set(t,[e])}removeEventElement(t,e){var i,s;if(this._disableTriggerEvent)return;e.removeState(t);const r=(s=(i=this._stateElements.get(t))===null||i===void 0?void 0:i.filter(o=>o!==e))!==null&&s!==void 0?s:[];this._stateElements.set(t,r);const a=hg(t);a&&(r.length===0?this.clearEventElement(a,!1):this.addEventElement(a,e))}addEventElement(t,e){var i;if(this._disableTriggerEvent)return;e.getStates().includes(t)||e.addState(t);const s=(i=this._stateElements.get(t))!==null&&i!==void 0?i:[];s.push(e),this._stateElements.set(t,s)}clearEventElement(t,e){var i;if(!this._disableTriggerEvent&&((i=this._stateElements.get(t))===null||i===void 0||i.forEach(s=>{s.removeState(t)}),this._stateElements.set(t,[]),e)){const s=hg(t);s&&this.clearEventElement(s,!1)}}clearAllEventElement(){if(!this._disableTriggerEvent)for(const[t,e]of this._stateElements)e.forEach(i=>{i.clearStates()}),this._stateElements.set(t,[])}reverseEventElement(t){if(this._disableTriggerEvent)return;const e=hg(t);if(!e)return;const i=this.getStateMark(e);if(!i)return;const s=this.getEventElement(t);s.length&&(this.getEventElement(e).length||(s.length===1?i.forEach(r=>{r.getProduct().elements.filter(a=>a!==s[0]).forEach(a=>{this.addEventElement(e,a)})}):i.forEach(r=>{r.getProduct().elements.filter(a=>!s.includes(a)).forEach(a=>{this.addEventElement(e,a)})})))}startInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(s=>{s.start(e)})}resetInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(s=>{s.reset(e)})}resetAllInteraction(){for(const[t,e]of this._vgrammarInteractions)e&&e.forEach(i=>{i.reset(null)})}}const Fr=9,Qi=0;var ee;(function(n){n[n.SeriesGroup=0]="SeriesGroup",n[n.Axis_Grid=50]="Axis_Grid",n[n.CrossHair_Grid=100]="CrossHair_Grid",n[n.Region=450]="Region",n[n.Mark=300]="Mark",n[n.Node=400]="Node",n[n.Axis=100]="Axis",n[n.MarkLine=500]="MarkLine",n[n.MarkArea=100]="MarkArea",n[n.MarkPoint=500]="MarkPoint",n[n.DataZoom=500]="DataZoom",n[n.ScrollBar=500]="ScrollBar",n[n.Player=500]="Player",n[n.Legend=500]="Legend",n[n.CrossHair=500]="CrossHair",n[n.Indicator=500]="Indicator",n[n.Title=500]="Title",n[n.Label=500]="Label",n[n.Brush=500]="Brush",n[n.CustomMark=500]="CustomMark",n[n.Interaction=700]="Interaction"})(ee||(ee={}));var us;(function(n){n[n.Indicator=10]="Indicator",n[n.Region=20]="Region",n[n.Axis=30]="Axis",n[n.DataZoom=40]="DataZoom",n[n.Player=40]="Player",n[n.ScrollBar=40]="ScrollBar",n[n.Legend=50]="Legend",n[n.Title=70]="Title",n[n.CustomMark=70]="CustomMark"})(us||(us={}));var Z;(function(n){n[n.Default=0]="Default",n[n.Theme=1]="Theme",n[n.Chart=2]="Chart",n[n.Base_Series=3]="Base_Series",n[n.Series=4]="Series",n[n.Mark=5]="Mark",n[n.User_Chart=6]="User_Chart",n[n.User_Series=7]="User_Series",n[n.User_Mark=8]="User_Mark",n[n.User_SeriesStyle=9]="User_SeriesStyle",n[n.Built_In=99]="Built_In"})(Z||(Z={}));class um{getOption(){return this._option}constructor(t){this._option=t,this.getCompiler=this._option.getCompiler}getVGrammarView(){var t;return(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView()}release(){this._option=null,this.getCompiler=null}}class Xx extends um{constructor(){super(...arguments),this.id=jo(),this._compiledProductId=null,this._depend=[]}getProduct(){if(C(this._product))return this._product;const t=this.getVGrammarView(),e=this.getProductId();return C(e)&&C(t)&&(this._product=this._lookupGrammar(e)),this._product}getProductId(){var t;return(t=this._compiledProductId)!==null&&t!==void 0?t:this.generateProductId()}getDepend(){return this._depend}setDepend(...t){this._depend=t}compile(t){this._compileProduct(t),this._afterCompile(t)}_afterCompile(t){var e;C(this._product)&&((e=this.getCompiler())===null||e===void 0||e.addGrammarItem(this))}updateDepend(){if(C(this._product)){const t=this.getDepend().map(e=>e.getProduct()).filter(C);return this._product.depend(t),t.length===this.getDepend().length}return!1}release(){this.removeProduct(),super.release(),this._depend=[]}removeProduct(t){this.getCompiler().removeGrammarItem(this,t),this._product=null,this._compiledProductId=null}}class Nq extends Xx{getValue(){return this._value}getUpdateFunc(){return this._updateFunc}constructor(t,e,i,s){super(t),this.grammarType=oa.signal,this.name=e,this._value=i,this._updateFunc=s}updateSignal(t,e){this._value=t,this._updateFunc=e,this.compile()}_compileProduct(){const t=this.getVGrammarView();if(t){if(!this.getProduct()){const e=this.getProductId();this._product=t.signal().id(e),this._compiledProductId=e}C(this._value)&&this._product.value(this._value),C(this._updateFunc)&&this._product.update(this._updateFunc)}}generateProductId(){return this.name}_lookupGrammar(t){var e;return(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getSignalById(t)}}class Uq extends um{constructor(){super(...arguments),this._signalMap={}}getSignalMap(){return this._signalMap}getSignal(t){return this._signalMap[t]}updateSignal(t,e,i){this._signalMap[t]?this._signalMap[t].updateSignal(e,i):(this._signalMap[t]=new Nq(this._option,t,e,i),this._signalMap[t].compile())}compile(){Object.values(this._signalMap).forEach(t=>{t.compile()})}release(){super.release(),Object.values(this._signalMap).forEach(t=>{t.release()}),this._signalMap={}}}class yL extends Uq{getStateMap(){return this._stateMap}_getDefaultStateMap(){return{}}constructor(t){super(t),t.stateKeyToSignalName?this.stateKeyToSignalName=t.stateKeyToSignalName:this.stateKeyToSignalName=()=>"state_signal",this.initStateMap()}initStateMap(t){this._stateMap=t??this._getDefaultStateMap()}compile(t){const e=t??this._stateMap;Object.keys(e).forEach(i=>{const s=this.stateKeyToSignalName(i),r=e[i];this.updateSignal(s,r)})}updateState(t,e){if(t&&($(this._stateMap,t),this.compile(t),!e))return this.getCompiler().renderNextTick()}}class bL extends yL{constructor(){super(...arguments),this.id=jo(),this.stateKeyToSignalName=t=>`${_t}_animate_${this.id}_${t}`}getAnimationStateSignalName(){return this.stateKeyToSignalName("animationState")}updateAnimateState(t,e){t===Ye.update?this.updateState({animationState:{callback:(i,s)=>s.diffState}},e):t===Ye.appear?this.updateState({animationState:{callback:(i,s)=>s.diffState==="exit"?Ye.none:Ye.appear}},e):this.updateState({animationState:{callback:(i,s)=>t}},e)}_getDefaultStateMap(){return{animationState:{callback:(t,e)=>e.diffState==="exit"?Ye.exit:e.diffState==="update"?Ye.update:Ye.appear}}}}class gm{constructor(t){this._option=t,this.type=t.type}_initTheme(t,e){return this._theme=this.getTheme(t,e),this._mergeThemeToSpec(t,e)}getTheme(t,e){}transformSpec(t,e,i){this._transformSpecBeforeMergingTheme(t,e,i);const s=this._initTheme(t,e);return this._transformSpecAfterMergingTheme(s.spec,e,i),s}_transformSpecBeforeMergingTheme(t,e,i){}_transformSpecAfterMergingTheme(t,e,i){}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const s=this._getDefaultSpecFromChart(e),r=a=>gt({},i,s,a);return U(t)?{spec:t.map(a=>r(a)),theme:i}:{spec:r(t),theme:i}}return{spec:t,theme:i}}_shouldMergeThemeToSpec(){return!0}_getDefaultSpecFromChart(t){}}class Kx extends um{getSpec(){return this._spec||{}}getSpecPath(){var t;return(t=this._option)===null||t===void 0?void 0:t.specPath}getSpecInfoPath(){var t,e,i;return(e=(t=this._option)===null||t===void 0?void 0:t.specInfoPath)!==null&&e!==void 0?e:(i=this._option)===null||i===void 0?void 0:i.specPath}getData(){return this._data}get layout(){return this._layout}getOption(){return this._option}getMarks(){var t,e;return(e=(t=this._marks)===null||t===void 0?void 0:t.getMarks())!==null&&e!==void 0?e:[]}getMarkNameMap(){var t;return(t=this._marks)===null||t===void 0?void 0:t.getMarkNameMap()}getMarkSet(){return this._marks}getChart(){return this._option.getChart()}get _theme(){var t;return(t=this.getSpecInfo())===null||t===void 0?void 0:t.theme}constructor(t,e){var i;super(e),this.transformerConstructor=gm,this.type="null",this.modelType="null",this.userId=void 0,this._data=null,this._layout=null,this.specKey="",this._marks=new lh,this._lastLayoutRect=null,this.id=jo(),this.userId=t.id,this._spec=t,this.effect={},this.event=new dm(e.eventDispatcher,e.mode),(i=e.map)===null||i===void 0||i.set(this.id,this)}_releaseEvent(){this.event.release()}created(){this.setAttrFromSpec()}init(t){}afterInit(){}getVisible(){var t;return((t=this._spec)===null||t===void 0?void 0:t.visible)!==!1}onLayoutStart(t,e,i){var s;(s=this._layout)===null||s===void 0||s.onLayoutStart(t,e,i)}onLayoutEnd(t){var e;(e=this._layout)===null||e===void 0||e.onLayoutEnd(t),this.getMarks().forEach(i=>i.updateLayoutState(!0,!0))}onEvaluateEnd(t){}onDataUpdate(){}beforeRelease(){}release(){var t;this._releaseEvent(),this._spec=void 0,this.getMarks().forEach(e=>e.release()),(t=this._data)===null||t===void 0||t.release(),this._data=null,this._marks.clear(),super.release()}updateSpec(t){const e=this._compareSpec(t,this._spec);return this._spec=t,e}_compareSpec(t,e){return{change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1}}reInit(t){t&&(this._spec=t),this.setAttrFromSpec()}updateLayoutAttribute(){}setAttrFromSpec(){var t;(t=this._layout)===null||t===void 0||t.setAttrFromSpec(this._spec,this._option.getChartViewRect())}_convertMarkStyle(t){return Object.assign({},t)}setMarkStyle(t,e,i,s){C(t)&&C(e)&&t.setStyle(this._convertMarkStyle(e),i,s)}initMarkStyleWithSpec(t,e,i){if(!C(t)||!C(e))return;const{style:s,state:r}=e,a=Object.assign({},e);s&&(a.style=this._convertMarkStyle(s)),r&&(a.state={},Object.keys(r).forEach(o=>{a.state[o]=this._convertMarkStyle(r[o])})),t.initStyleWithSpec(a,i)}stateKeyToSignalName(t,e){let i=`${_t}_${this.modelType}_${this.type}_${this.id}_${t}`;return e&&(i+=`_${e}`),i}compileData(){var t;(t=this._data)===null||t===void 0||t.compile()}compileMarks(t){this.getMarks().forEach(e=>{e.compile({group:t})})}_createMark(t,e={},i){const{type:s,name:r}=t,a=D.createMark(s,r,Object.assign({model:this,map:this._option.map,getCompiler:this.getCompiler,globalScale:this._option.globalScale},e));return a&&(a.created(),i&&a.setMarkConfig(i)),a}_getDataIdKey(){}getColorScheme(){var t,e;return(e=(t=this._option).getTheme)===null||e===void 0?void 0:e.call(t).colorScheme}getSpecInfo(){var t,e,i;const s=(i=(e=(t=this._option).getSpecInfo)===null||e===void 0?void 0:e.call(t))!==null&&i!==void 0?i:{};return VX(s,this.getSpecInfoPath())}getSpecIndex(){const t=this.getSpecPath();if(!(t!=null&&t.length))return 0;const e=Number(t[t.length-1]);return isNaN(e)?0:e}}class $q{getSpec(){return this._spec||{}}getLayoutStartPoint(){return this._layoutStartPoint}get layoutRectLevelMap(){return this._layoutRectLevelMap}get minWidth(){return this._minWidth}set minWidth(t){this._minWidth=t}get maxWidth(){return this._maxWidth}set maxWidth(t){this._maxWidth=t}get minHeight(){return this._minHeight}set minHeight(t){this._minHeight=t}get maxHeight(){return this._maxHeight}set maxHeight(t){this._maxHeight=t}getLastComputeOutBounds(){return this._lastComputeOutBounds}get layoutOrient(){return this._layoutOrient}set layoutOrient(t){this._layoutOrient=t}get model(){return this._model}get type(){return this._model.type}constructor(t,e){var i;this.layoutClip=!1,this.autoIndent=!1,this._layoutStartPoint={x:0,y:0},this._layoutRect={width:0,height:0},this._layoutRectLevelMap={width:Qi,height:Qi},this._minWidth=null,this._maxWidth=null,this._minHeight=null,this._maxHeight=null,this._lastComputeRect=null,this._lastComputeOutBounds={x1:0,x2:0,y1:0,y2:0},this.getLayoutRect=()=>this._layoutRect,this.layoutType="normal",this._layoutOrient="left",this.layoutPaddingLeft=0,this.layoutPaddingTop=0,this.layoutPaddingRight=0,this.layoutPaddingBottom=0,this.layoutOffsetX=0,this.layoutOffsetY=0,this.layoutLevel=us.Region,this._model=t,this._option=e,this.layoutLevel=e.layoutLevel,this.layoutType=e.layoutType,e.layoutOrient&&(this.layoutOrient=e.layoutOrient),this._spec=(i=t==null?void 0:t.getSpec)===null||i===void 0?void 0:i.call(t)}_setLayoutAttributeFromSpec(t,e){var i,s,r,a;if(this._spec&&this._spec.visible!==!1){const o=mr(t.padding),l=lB(o,e,e);this.layoutPaddingLeft=l.left,this.layoutPaddingRight=l.right,this.layoutPaddingTop=l.top,this.layoutPaddingBottom=l.bottom,this._minHeight=P(t.minHeight)?(i=this._minHeight)!==null&&i!==void 0?i:null:$e(t.minHeight,e.height,e),this._maxHeight=P(t.maxHeight)?(s=this._maxHeight)!==null&&s!==void 0?s:null:$e(t.maxHeight,e.height,e),this._minWidth=P(t.minWidth)?(r=this._minWidth)!==null&&r!==void 0?r:null:$e(t.minWidth,e.width,e),this._maxWidth=P(t.maxWidth)?(a=this._maxWidth)!==null&&a!==void 0?a:null:$e(t.maxWidth,e.width,e),t.width&&this.setLayoutRect({width:$e(t.width,e.width,e)},{width:Fr}),t.height&&this.setLayoutRect({height:$e(t.height,e.height,e)},{height:Fr}),P(t.offsetX)||(this.layoutOffsetX=$e(t.offsetX,e.width,e)),P(t.offsetY)||(this.layoutOffsetY=$e(t.offsetY,e.height,e)),t.alignSelf&&(this.alignSelf=t.alignSelf)}}setAttrFromSpec(t,e){var i,s,r,a;this._spec=t,this.layoutType=(i=t.layoutType)!==null&&i!==void 0?i:this.layoutType,this.layoutLevel=(s=t.layoutLevel)!==null&&s!==void 0?s:this.layoutLevel,this.layoutOrient=(r=t.orient)!==null&&r!==void 0?r:this.layoutOrient,this._setLayoutAttributeFromSpec(t,e),this.layoutClip=(a=t.clip)!==null&&a!==void 0?a:this.layoutClip}onLayoutStart(t,e,i){this._setLayoutAttributeFromSpec(this._spec,e)}onLayoutEnd(t){}_getAbsoluteSpecValue(t){const e={top:null,bottom:null,left:null,right:null};return["top","bottom","left","right"].forEach(i=>{P(this._spec[i])||(e[i]=$e(this._spec[i],i==="top"||i==="bottom"?t.height:t.width,t))}),e}absoluteLayoutInRect(t){const{top:e,bottom:i,left:s,right:r}=this._getAbsoluteSpecValue(t),a={width:t.width-this.layoutPaddingLeft-this.layoutPaddingRight,height:t.height-this.layoutPaddingTop-this.layoutPaddingBottom};P(s)||(a.width-=s),P(r)||(a.width-=r),P(e)||(a.height-=e),P(i)||(a.height-=i),this.setLayoutRect(a);const{width:o,height:l}=this.computeBoundsInRect(this.getLayoutRect());this.setLayoutRect({width:o,height:l});const h={x:t.x,y:t.y};this._spec.center===!0?(h.x=t.x+.5*t.width-.5*o,h.y=t.y+.5*t.height-.5*l):(P(s)?P(r)||(h.x=t.x+t.width-this.layoutPaddingRight-r-o):h.x=t.x+s+this.layoutPaddingLeft,P(e)?P(i)||(h.y=t.y+t.height-this.layoutPaddingBottom-i-l):h.y=t.y+e+this.layoutPaddingTop),this.setLayoutStartPosition(h)}setLayoutStartPosition(t){var e,i;this._option.transformLayoutPosition&&(t=this._option.transformLayoutPosition(t)),H(t.x)&&(this._layoutStartPoint.x=t.x),H(t.y)&&(this._layoutStartPoint.y=t.y),(i=(e=this._model).afterSetLayoutStartPoint)===null||i===void 0||i.call(e,this._layoutStartPoint)}setLayoutRect({width:t,height:e},i){var s,r,a,o;H(t)&&((s=i==null?void 0:i.width)!==null&&s!==void 0?s:Qi)>=this._layoutRectLevelMap.width&&(this._layoutRect.width=t,this._layoutRectLevelMap.width=(r=i==null?void 0:i.width)!==null&&r!==void 0?r:Qi),H(e)&&((a=i==null?void 0:i.height)!==null&&a!==void 0?a:Qi)>=this._layoutRectLevelMap.height&&(this._layoutRect.height=e,this._layoutRectLevelMap.height=(o=i==null?void 0:i.height)!==null&&o!==void 0?o:Qi),this.setRectInSpec(this._layoutRect)}getLayout(){return{x:this._layoutStartPoint.x,y:this._layoutStartPoint.y,width:this._layoutRect.width,height:this._layoutRect.height}}mergeLayoutRect({width:t,height:e}){const i={width:t,height:e};return this._layoutRectLevelMap.width>Qi&&(i.width=this._layoutRect.width),this._layoutRectLevelMap.height>Qi&&(i.height=this._layoutRect.height),i}getOrientPosAttribute(){return this._layoutOrient==="bottom"||this._layoutOrient==="top"?"x":"y"}getOrientSizeAttribute(){return this._layoutOrient==="bottom"||this._layoutOrient==="top"?"width":"height"}changeBoundsBySetting(t){return this._layoutRectLevelMap.width>Qi&&(t.x2=t.x1+this._layoutRect.width),this._layoutRectLevelMap.height>Qi&&(t.y2=t.y1+this._layoutRect.height),t.x1-=this._layoutStartPoint.x,t.x2-=this._layoutStartPoint.x,t.y1-=this._layoutStartPoint.y,t.y2-=this._layoutStartPoint.y,t}setRectInSpec(t){const e=Object.assign({},t);return this._layoutRectLevelMap.width0&&e.y2-e.y1>0&&(this._lastComputeOutBounds.x1=Math.ceil(-e.x1),this._lastComputeOutBounds.x2=Math.ceil(e.x2-t.width),this._lastComputeOutBounds.y1=Math.ceil(-e.y1),this._lastComputeOutBounds.y2=Math.ceil(e.y2-t.height));let i=this.setRectInSpec(w8(e,t));return this._option.transformLayoutRect&&(i=this._option.transformLayoutRect(i)),i}getModelId(){return this._model.id}getModelVisible(){return this._model.getVisible()}}class xL extends Kx{constructor(){super(...arguments),this.layoutType="normal",this.layoutLevel=0,this.layoutZIndex=0,this._forceLayoutTag=!1,this._layout=null,this._orient=null,this._layoutRect={width:0,height:0},this._layoutStartPos={x:0,y:0},this._isLayout=!0,this.getGraphicBounds=()=>this._layout?{x1:this._layout.getLayoutStartPoint().x,y1:this._layout.getLayoutStartPoint().y,x2:this._layout.getLayoutStartPoint().x+this._layout.getLayoutRect().width,y2:this._layout.getLayoutStartPoint().y+this._layout.getLayoutRect().height}:{x1:0,x2:0,y1:0,y2:0},this._transformLayoutRect=null,this._transformLayoutPosition=null}get layoutOrient(){return this._orient}set layoutOrient(t){this._orient=t,this._layout&&(this._layout.layoutOrient=t)}initLayout(){this.layoutType!=="none"&&(this._layout=new $q(this,{layoutType:this.layoutType,layoutLevel:this.layoutLevel,layoutOrient:this._orient,transformLayoutRect:this._transformLayoutRect,transformLayoutPosition:this._transformLayoutPosition}),this._orient&&this._orient!=="radius"&&this._orient!=="angle"&&this._layout&&(this._layout.layoutOrient=this._orient))}onLayoutStart(t,e,i){this._isLayout=!0,super.onLayoutStart(t,e,i)}onLayoutEnd(t){super.onLayoutEnd(t),this.updateLayoutAttribute();const e=this.getLayoutRect();!this._forceLayoutTag&&Jt(this._lastLayoutRect,e)||(this._lastLayoutRect=Object.assign({},e)),this._forceLayoutTag=!1,this._isLayout=!1}afterSetLayoutStartPoint(t){}_forceLayout(){var t;this._isLayout||(this._forceLayoutTag=!0,(t=this._option.globalInstance.getChart())===null||t===void 0||t.setLayoutTag(!0))}getLayoutStartPoint(){return this._layout?this._layout.getLayoutStartPoint():this._layoutStartPos}setLayoutStartPosition(t){return this._layout?this._layout.setLayoutStartPosition(t):this._layoutStartPos=$(this._layoutStartPos,t)}getLayoutRect(){return this._layout?this._layout.getLayoutRect():this._layoutRect}setLayoutRect(t,e){return this._layout?this._layout.setLayoutRect(t):this._lastLayoutRect=$(this._layoutRect,t)}getLastComputeOutBounds(){var t;return(t=this._layout)===null||t===void 0?void 0:t.getLastComputeOutBounds()}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec(),this.layoutClip=(t=this._spec.clip)!==null&&t!==void 0?t:this.layoutClip,this.layoutZIndex=(e=this._spec.zIndex)!==null&&e!==void 0?e:this.layoutZIndex,this.layoutType=(i=this._spec.layoutType)!==null&&i!==void 0?i:this.layoutType,this._orient=(s=this._spec.orient)!==null&&s!==void 0?s:this._orient,this.layoutLevel=(r=this._spec.layoutLevel)!==null&&r!==void 0?r:this.layoutLevel}}class SL extends gm{_initTheme(t,e){return{spec:t,theme:this._theme}}}class Vl extends xL{getMaxWidth(){return this._layout.maxWidth}setMaxWidth(t){this._layout.maxWidth=t}getMaxHeight(){return this._layout.maxHeight}setMaxHeight(t){this._layout.maxHeight=t}getGroupMark(){return this._groupMark}getInteractionMark(){return this._interactionMark}getStackInverse(){return this._spec.stackInverse===!0}getStackSort(){return this._spec.stackSort===!0}constructor(t,e){var i;super(t,e),this.transformerConstructor=SL,this.modelType="region",this.specKey="region",this.type=Vl.type,this._series=[],this.layoutType="region",this.layoutZIndex=ee.Region,this.interaction=new Gq,this.seriesDataFilterOver=()=>{this.event.emit(lt.regionSeriesDataFilterOver,{model:this,chart:this.getChart()}),this._series.forEach(s=>{s.getViewDataFilter()&&s.reTransformViewData()})},this.getBoundsInRect=()=>({x1:this._layout.getLayoutStartPoint().x,y1:this._layout.getLayoutStartPoint().y,x2:this._layout.getLayoutStartPoint().x+this._layout.getLayoutRect().width,y2:this._layout.getLayoutStartPoint().y+this._layout.getLayoutRect().height}),this.userId=t.id,this.coordinate=(i=t.coordinate)!==null&&i!==void 0?i:"cartesian",this._option.animation&&(this.animate=new bL({getCompiler:e.getCompiler})),this.interaction.setDisableActiveEffect(this._option.disableTriggerEvent)}_getClipDefaultValue(){var t,e,i,s;const r=this._option.getChart().getSpec(),a=(e=(t=r.dataZoom)===null||t===void 0?void 0:t.some)===null||e===void 0?void 0:e.call(t,l=>{var h;return((h=l.filterMode)!==null&&h!==void 0?h:"filter")==="axis"}),o=(s=(i=r.scrollBar)===null||i===void 0?void 0:i.some)===null||s===void 0?void 0:s.call(i,l=>{var h;return((h=l.filterMode)!==null&&h!==void 0?h:"axis")==="axis"});return!(!a&&!o)||this._layout.layoutClip}created(){var t,e;this.initLayout(),super.created();const i=(t=this._spec.clip)!==null&&t!==void 0?t:this._getClipDefaultValue();this._groupMark=this._createGroupMark("regionGroup",this.userId,this.layoutZIndex),this._interactionMark=this._createGroupMark("regionInteractionGroup",((e=this.userId)!==null&&e!==void 0?e:this.type)+"_interaction",ee.Interaction),ht(this._spec.style)||(this._backgroundMark=this._createMark({type:"rect",name:"regionBackground"}),i&&(this._foregroundMark=this._createMark({type:"rect",name:"regionForeground"})),[this._backgroundMark,this._foregroundMark].forEach(s=>{s&&(s.created(),this.setMarkStyle(s,{width:()=>this.getLayoutRect().width,height:()=>this.getLayoutRect().height},"normal",Z.Built_In),this._groupMark.addMark(s))}),this._backgroundMark&&this._backgroundMark.setMarkConfig({zIndex:ee.SeriesGroup-1}),this._foregroundMark&&this._foregroundMark.setMarkConfig({zIndex:ee.Mark+1})),this.createTrigger()}_createGroupMark(t,e,i){var s,r;const a=this._createMark({type:"group",name:t});a.setUserId(e),a.setMarkConfig({zIndex:i});const o=(s=this._spec.clip)!==null&&s!==void 0?s:this._getClipDefaultValue();return this.setMarkStyle(a,{x:()=>this.getLayoutStartPoint().x,y:()=>this.getLayoutStartPoint().y,width:()=>this.getLayoutRect().width,height:()=>this.getLayoutRect().height,clip:o},"normal",Z.Built_In),this.setMarkStyle(a,{cornerRadius:(r=this._spec.style)===null||r===void 0?void 0:r.cornerRadius},"normal",Z.User_Mark),this._marks.addMark(a),a}init(t){super.init(t),this.initMark(),this.initSeriesDataflow(),this.initInteraction(),this.initTrigger()}initMark(){this._initBackgroundMarkStyle(),this._initForegroundMarkStyle()}_initBackgroundMarkStyle(){var t,e;this._backgroundMark&&(this.setMarkStyle(this._backgroundMark,Object.assign({fillOpacity:!((t=this._spec.style)===null||t===void 0)&&t.fill?1:0},this._spec.style),"normal",Z.User_Mark),((e=this._spec.clip)!==null&&e!==void 0?e:this._getClipDefaultValue())&&this.setMarkStyle(this._backgroundMark,{strokeOpacity:0},"normal",Z.Built_In))}_initForegroundMarkStyle(){this._foregroundMark&&this.setMarkStyle(this._foregroundMark,Object.assign(Object.assign({},this._spec.style),{fillOpacity:0}),"normal",Z.User_Mark)}_compareSpec(t,e){const i=super._compareSpec(t,e);return Jt(e==null?void 0:e.style,t==null?void 0:t.style)||(i.reMake=!0),i}reInit(t){super.reInit(t),this._initBackgroundMarkStyle(),this._initForegroundMarkStyle()}addSeries(t){t&&(this._series.includes(t)||this._series.push(t))}removeSeries(t){if(!t)return;const e=this._series.findIndex(i=>i===t);e>=0&&this._series.splice(e,1)}getSeries(t={}){return this._series.filter(e=>{var i,s;return(!t.name||(e==null?void 0:e.name)===t.name)&&(!t.userId||j(t.userId).includes(e.userId))&&(!C(t.specIndex)||j(t.specIndex).includes(e.getSpecIndex()))&&(!t.id||e.id===t.id)&&(!t.type||e.type===t.type)&&(!t.coordinateType||e.coordinate===t.coordinateType)&&(!t.dataName||((s=(i=e.getRawData)===null||i===void 0?void 0:i.call(e))===null||s===void 0?void 0:s.name)===t.dataName)})}getSeriesInName(t){return this.getSeries({name:t})[0]}getSeriesInUserId(t){return this.getSeries({userId:t})[0]}getSeriesInId(t){return this.getSeries({id:t})[0]}getSeriesInType(t){return this.getSeries({type:t})}getSeriesInCoordinateType(t){return this.getSeries({coordinateType:t})}getSeriesInDataName(t){return this.getSeries({dataName:t})}onRender(t){}initSeriesDataflow(){const t=this._series.map(e=>{var i;return(i=e.getViewDataFilter())!==null&&i!==void 0?i:e.getViewData()}).filter(e=>!!e);this._option.dataSet.multipleDataViewAddListener(t,"change",this.seriesDataFilterOver)}release(){super.release(),this._series=[]}createTrigger(){const t=Object.assign(Object.assign({},this._option),{model:this,interaction:this.interaction});this._trigger=new zq(t)}initTrigger(){this._series.forEach(t=>{t.getMarksWithoutRoot().forEach(e=>{this._trigger.registerMark(e)})}),this._trigger.init()}initInteraction(){this._option.disableTriggerEvent||this._series.forEach(t=>{t.getMarksWithoutRoot().forEach(e=>{for(const i in Ad)ht(e.stateStyle[Ad[i]])||this.interaction.registerMark(Ad[i],e)})})}compileMarks(t){this.getMarks().forEach(e=>{var i;e.compile({group:t,context:{model:this}}),(i=e.getProduct())===null||i===void 0||i.layout((s,r,a,o)=>{})})}compile(){var t;(t=this.animate)===null||t===void 0||t.compile(),this.compileMarks()}onLayoutEnd(t){this._series.forEach(e=>e.onLayoutEnd(t)),super.onLayoutEnd(t)}}Vl.type="region",Vl.transformerConstructor=SL,Vl.specKey="region";function pm(n){const t=[],e=[],i=[];return n.forEach(s=>{P(s.getSpec().position)||s.getSpec().position==="start"?t.push(s):s.getSpec().position==="middle"?e.push(s):s.getSpec().position==="end"&&i.push(s)}),{startItems:t,endItems:i,middleItems:e}}function AL(n,t,e){t?n.forEach(i=>{const s=$t(i),r=s.getLayoutStartPoint().y+s.getLayoutRect().height-i[0].getLayoutStartPoint().y,a=(e-r)/2;i.forEach(o=>{o.setLayoutStartPosition({x:o.getLayoutStartPoint().x,y:o.getLayoutStartPoint().y+a})})}):n.forEach(i=>{const s=$t(i),r=s.getLayoutStartPoint().x+s.getLayoutRect().width-i[0].getLayoutStartPoint().x,a=(e-r)/2;i.forEach(o=>{o.setLayoutStartPosition({x:o.getLayoutStartPoint().x+a,y:o.getLayoutStartPoint().y})})})}function _m(n,t,e,i){let s;n.forEach((r,a)=>{r.length>1&&(s=e[a],r.forEach(o=>{if(!o.alignSelf||o.alignSelf==="start")return;const l=o.getLayoutStartPoint(),h=o.alignSelf==="middle"?.5:1,d=t?s-(o.getLayoutRect().width+o.layoutPaddingLeft+o.layoutPaddingRight):s-(o.getLayoutRect().height+o.layoutPaddingTop+o.layoutPaddingBottom);t?o.setLayoutStartPosition({x:l.x+i*d*h,y:l.y}):o.setLayoutStartPosition({x:l.x,y:l.y+i*d*h})}))})}function C_(n,t,e,i,s){if(n.length){let r=0;const a=s==="right",o=a?-1:1;let l=a?t.rightCurrent:t.leftCurrent,h=t.topCurrent;const d=[];let c=[];const u=[];n.forEach(g=>{const p=t.getItemComputeLayoutRect(g),_=g.computeBoundsInRect(p);g.setLayoutRect(_);const f=_.height+g.layoutPaddingTop+g.layoutPaddingBottom,m=_.width+g.layoutPaddingLeft+g.layoutPaddingRight,v=a?-_.width-g.layoutPaddingRight:g.layoutPaddingLeft;g.setLayoutStartPosition({x:l+g.layoutOffsetX+v,y:h+g.layoutOffsetY+g.layoutPaddingTop}),h+=f,h>e&&c.length?(u.push(r),l+=o*r,r=m,h=t.topCurrent+f,g.setLayoutStartPosition({x:l+g.layoutOffsetX+v,y:t.topCurrent+g.layoutOffsetY+g.layoutPaddingTop}),d.push(c),c=[g]):(r=Math.max(r,m),c.push(g))}),u.push(r),d.push(c),_m(d,!0,u,o),i&&AL(d,!0,e),a?t.rightCurrent=l+o*r:t.leftCurrent=l+o*r}}function kL(n,t,e,i){if(n.length){let s=0;const r=i==="right",a=r?-1:1;let o=r?t.rightCurrent:t.leftCurrent,l=t.bottomCurrent;const h=[];let d=[];const c=[];n.forEach(u=>{const g=t.getItemComputeLayoutRect(u),p=u.computeBoundsInRect(g);u.setLayoutRect(p);const _=p.height+u.layoutPaddingTop+u.layoutPaddingBottom,f=p.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=r?-p.width-u.layoutPaddingRight:u.layoutPaddingLeft;l<_&&d.length?(c.push(s),o+=a*s,s=f,l=t.bottomCurrent,u.setLayoutStartPosition({x:o+u.layoutOffsetX+m,y:l+u.layoutOffsetY-p.height-u.layoutPaddingBottom}),h.push(d),d=[u]):(u.setLayoutStartPosition({x:o+u.layoutOffsetX+m,y:l+u.layoutOffsetY-p.height-u.layoutPaddingBottom}),s=Math.max(s,f),l-=_,d.push(u))}),c.push(s),h.push(d),_m(h,!0,c,a),r?t.rightCurrent=o+a*s:t.leftCurrent=o+a*s}}function P_(n,t,e,i,s){if(n.length){const r=s==="top",a=r?1:-1;let o=0,l=t.leftCurrent,h=r?t.topCurrent:t.bottomCurrent;const d=[];let c=[];const u=[];n.forEach(g=>{const p=t.getItemComputeLayoutRect(g),_=g.computeBoundsInRect(p);g.setLayoutRect(_);const f=_.height+g.layoutPaddingTop+g.layoutPaddingBottom,m=_.width+g.layoutPaddingLeft+g.layoutPaddingRight,v=r?g.layoutPaddingTop:-_.height-g.layoutPaddingBottom;g.setLayoutStartPosition({x:l+g.layoutOffsetX+g.layoutPaddingLeft,y:h+g.layoutOffsetY+v}),l+=m,l>e&&c.length?(u.push(o),l=t.leftCurrent+m,h+=a*o,o=f,g.setLayoutStartPosition({x:t.leftCurrent+g.layoutOffsetX+g.layoutPaddingLeft,y:h+g.layoutOffsetY+v}),d.push(c),c=[g]):(o=Math.max(o,f),c.push(g))}),u.push(o),d.push(c),_m(d,!1,u,a),i&&AL(d,!1,e),r?t.topCurrent=h+a*o:t.bottomCurrent=h+a*o}}function TL(n,t,e,i){if(n.length){const s=i==="top",r=s?1:-1;let a=0,o=t.rightCurrent,l=s?t.topCurrent:t.bottomCurrent;const h=[];let d=[];const c=[];n.forEach(u=>{const g=t.getItemComputeLayoutRect(u),p=u.computeBoundsInRect(g);u.setLayoutRect(p);const _=p.height+u.layoutPaddingTop+u.layoutPaddingBottom,f=p.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=s?u.layoutPaddingTop:-p.height-u.layoutPaddingBottom;oa.layoutLevel-r.layoutLevel)}_layoutNormalItems(t){this.layoutNormalInlineItems(t.filter(e=>e.layoutType==="normal-inline")),this.layoutNormalItems(t.filter(e=>e.layoutType==="normal"))}_groupItems(t){const e=t.filter(o=>o.layoutType==="region"),i=t.filter(o=>o.layoutType==="region-relative"),s=t.filter(o=>o.layoutType==="region-relative-overlap"),r=i.concat(s),a={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}};return s.forEach(o=>{a[o.layoutOrient].items.push(o)}),{regionItems:e,relativeItems:i,relativeOverlapItems:s,allRelatives:r,overlapItems:a}}layoutItems(t,e,i,s){this._layoutInit(t,e,i,s),this._layoutNormalItems(e);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},{regionItems:a,relativeItems:o,relativeOverlapItems:l,allRelatives:h,overlapItems:d}=this._groupItems(e);this.layoutRegionItems(a,o,l,d),this._processAutoIndent(a,o,l,d,h,r),this.layoutAbsoluteItems(e.filter(c=>c.layoutType==="absolute"))}_processAutoIndent(t,e,i,s={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}},r,a){if(r.some(o=>o.autoIndent)){const{top:o,bottom:l,left:h,right:d}=this._checkAutoIndent(r,a);(o||l||h||d)&&(this.topCurrent=a.top+o,this.bottomCurrent=a.bottom-l,this.leftCurrent=a.left+h,this.rightCurrent=a.right-d,this.layoutRegionItems(t,e,i,s))}}layoutNormalItems(t){t.forEach(e=>{const i=this.getItemComputeLayoutRect(e),s=e.computeBoundsInRect(i);e.setLayoutRect(s),e.layoutOrient==="left"?(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingLeft,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.leftCurrent+=s.width+e.layoutPaddingLeft+e.layoutPaddingRight):e.layoutOrient==="top"?(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingLeft,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.topCurrent+=s.height+e.layoutPaddingTop+e.layoutPaddingBottom):e.layoutOrient==="right"?(e.setLayoutStartPosition({x:this.rightCurrent+e.layoutOffsetX-s.width-e.layoutPaddingRight,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.rightCurrent-=s.width+e.layoutPaddingLeft+e.layoutPaddingRight):e.layoutOrient==="bottom"&&(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingRight,y:this.bottomCurrent+e.layoutOffsetY-s.height-e.layoutPaddingBottom}),this.bottomCurrent-=s.height+e.layoutPaddingTop+e.layoutPaddingBottom)})}layoutNormalInlineItems(t){const e=t.filter(l=>l.layoutOrient==="left"),i=t.filter(l=>l.layoutOrient==="right"),s=t.filter(l=>l.layoutOrient==="top"),r=t.filter(l=>l.layoutOrient==="bottom"),a=this._chartLayoutRect.width+this._chartLayoutRect.x,o=this._chartLayoutRect.height+this._chartLayoutRect.y;e.length&&Yq(e,this,o),s.length&&Kq(s,this,a),i.length&&Xq(i,this,o),r.length&&qq(r,this,a)}_layoutRelativeOverlap(t,e){e.items.forEach(i=>{const s=this.getItemComputeLayoutRect(i),r=i.computeBoundsInRect(s);e.rect.width=Math.max(r.width+i.layoutPaddingLeft+i.layoutPaddingRight,e.rect.width),e.rect.height=Math.max(r.height+i.layoutPaddingTop+i.layoutPaddingBottom,e.rect.height)}),e.items.forEach(i=>{i.setLayoutRect(e.rect),t==="left"?i.setLayoutStartPosition({x:this.leftCurrent+i.layoutOffsetX}):t==="right"?i.setLayoutStartPosition({x:this.rightCurrent-e.rect.width+i.layoutOffsetX}):t==="top"?i.setLayoutStartPosition({x:this.topCurrent+i.layoutOffsetY}):i.setLayoutStartPosition({x:this.bottomCurrent-e.rect.height+i.layoutOffsetY})}),t==="left"?this.leftCurrent+=e.rect.width:t==="right"?this.rightCurrent-=e.rect.width:t==="top"?this.topCurrent+=e.rect.height:this.bottomCurrent-=e.rect.height}_layoutRelativeItem(t,e){const i=t.computeBoundsInRect(e);t.layoutOrient==="left"||t.layoutOrient==="right"?t.setLayoutRect({width:i.width}):t.setLayoutRect({height:i.height}),t.layoutOrient==="left"?(t.setLayoutStartPosition({x:this.leftCurrent+t.layoutOffsetX+t.layoutPaddingLeft}),this.leftCurrent+=i.width+t.layoutPaddingLeft+t.layoutPaddingRight):t.layoutOrient==="right"?(this.rightCurrent-=i.width+t.layoutPaddingLeft+t.layoutPaddingRight,t.setLayoutStartPosition({x:this.rightCurrent+t.layoutOffsetX+t.layoutPaddingLeft})):t.layoutOrient==="top"?(t.setLayoutStartPosition({y:this.topCurrent+t.layoutOffsetY+t.layoutPaddingTop}),this.topCurrent+=i.height+t.layoutPaddingTop+t.layoutPaddingBottom):t.layoutOrient==="bottom"&&(this.bottomCurrent-=i.height+t.layoutPaddingTop+t.layoutPaddingBottom,t.setLayoutStartPosition({y:this.bottomCurrent+t.layoutOffsetY+t.layoutPaddingTop}))}_layoutRegionItem(t,e,i){const s=Math.max(Math.min(e,...t.map(a=>{var o;return(o=a.maxWidth)!==null&&o!==void 0?o:Number.MAX_VALUE})),0),r=Math.max(Math.min(i,...t.map(a=>{var o;return(o=a.maxHeight)!==null&&o!==void 0?o:Number.MAX_VALUE})),0);return t.forEach(a=>{const o=s-a.layoutPaddingLeft-a.layoutPaddingRight,l=r-a.layoutPaddingTop-a.layoutPaddingBottom;a.setLayoutRect({width:o,height:l}),a.setLayoutStartPosition({x:this.leftCurrent+a.layoutOffsetX+a.layoutPaddingLeft,y:this.topCurrent+a.layoutOffsetY+a.layoutPaddingTop})}),{regionHeight:r,regionWidth:s}}layoutRegionItems(t,e,i,s={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}}){let r=this.rightCurrent-this.leftCurrent,a=this.bottomCurrent-this.topCurrent;e.filter(h=>h.layoutOrient==="left"||h.layoutOrient==="right").forEach(h=>{this._layoutRelativeItem(h,this.getItemComputeLayoutRect(h))}),this._layoutRelativeOverlap("left",s.left),this._layoutRelativeOverlap("right",s.right),r=this.rightCurrent-this.leftCurrent,e.filter(h=>h.layoutOrient==="top"||h.layoutOrient==="bottom").forEach(h=>{this._layoutRelativeItem(h,this.getItemComputeLayoutRect(h))}),this._layoutRelativeOverlap("top",s.top),this._layoutRelativeOverlap("bottom",s.bottom),a=this.bottomCurrent-this.topCurrent;const{regionWidth:o,regionHeight:l}=this._layoutRegionItem(t,r,a);e.concat(i).forEach(h=>{if(["left","right"].includes(h.layoutOrient)){const d=this.filterRegionsWithID(t,h.layoutBindRegionID[0]);h.setLayoutRect({height:d.getLayoutRect().height}),h.setLayoutStartPosition({y:d.getLayoutStartPoint().y+h.layoutOffsetY+h.layoutPaddingTop}),h.layoutOrient==="right"&&h.setLayoutStartPosition({x:h.getLayoutStartPoint().x+o-r})}else if(["top","bottom"].includes(h.layoutOrient)){const d=this.filterRegionsWithID(t,h.layoutBindRegionID[0]);h.setLayoutRect({width:d.getLayoutRect().width}),h.setLayoutStartPosition({x:d.getLayoutStartPoint().x+h.layoutOffsetX+h.layoutPaddingLeft}),h.layoutOrient==="bottom"&&h.setLayoutStartPosition({y:h.getLayoutStartPoint().y+l-a})}})}layoutAbsoluteItems(t){t.forEach(e=>{e.absoluteLayoutInRect(this._chartLayoutRect)})}filterRegionsWithID(t,e){var i;const s=t.find(r=>r.getModelId()===e);return s||((i=this._onError)!==null&&i!==void 0?i:vc)("can not find target region item, invalid id"),s}getItemComputeLayoutRect(t){return{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight,height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom}}_checkAutoIndent(t,e){const i={top:0,left:0,bottom:0,right:0};return t.forEach(s=>{if(!s.getModelVisible()||!s.autoIndent)return;const r=s.layoutOrient==="left"||s.layoutOrient==="right",a=s.getLastComputeOutBounds(),o=this._getOutInLayout(a,s,e);r?(i.top=Math.max(i.top,o.top),i.bottom=Math.max(i.bottom,o.bottom)):(i.left=Math.max(i.left,o.left),i.right=Math.max(i.right,o.right))}),i}_getOutInLayout(t,e,i){const{x:s,y:r}=e.getLayoutStartPoint(),{width:a,height:o}=e.getLayoutRect();return{left:i.left-(s-t.x1),right:s+a+t.x2-i.right,top:i.top-(r-t.y1),bottom:r+o+t.y2-i.bottom}}};qx.type="base";const mw=["linear","radial","conical"],Zq={x0:0,y0:0,x1:1,y1:1},Jq={x0:0,y0:0,x1:1,y1:1,r0:0,r1:1},Qq={x:.5,y:.5,startAngle:0,endAngle:2*Math.PI},tZ={linear:Zq,radial:Jq,conical:Qq},eZ=["line","area","trail"];function L0(n){return eZ.includes(n)}function iZ(n,t){return n==="monotone"?t==="horizontal"?"monotoneY":"monotoneX":n}class nZ extends yL{getStateInfoList(){return this._stateInfoList}constructor(t,e){super(t),this._stateInfoList=[],this._mark=e}_getDefaultStateMap(){return{markUpdateRank:1}}getStateInfo(t){return this._stateInfoList.find(e=>e.stateValue===t)}addStateInfo(t){if(this.getStateInfo(t.stateValue))return;t.level=t.level||0;let e=!0;for(let i=0;it.level){this._stateInfoList.splice(i,0,t),e=!1;break}}e&&this._stateInfoList.push(t)}_clearStateBeforeSet(t){t.datums=null,t.items=null,t.fields=null,t.filter=null}changeStateInfo(t){const e=this.getStateInfo(t.stateValue);if(e){if(t.datums!==void 0&&(this._clearStateBeforeSet(e),e.datums=t.datums,e.datumKeys=t.datumKeys),t.items!==void 0&&(this._clearStateBeforeSet(e),e.items=t.items),t.fields!==void 0)if(this._clearStateBeforeSet(e),t.fields===null)e.fields=t.fields;else{e.fields=e.fields||{};for(const i in t.fields){const s=t.fields[i];e.fields[i]=e.fields[i]||{};const r=e.fields[i];C(s.domain)&&(r.domain=s.domain),C(s.type)&&(r.type=s.type)}}t.filter&&(this._clearStateBeforeSet(e),e.filter=t.filter)}else this.addStateInfo(t)}clearStateInfo(t){t.forEach(e=>{this.getStateInfo(e)&&this.changeStateInfo({stateValue:e,datumKeys:null,datums:null,fields:null,items:null,filter:null,cache:{}})})}checkOneState(t,e,i,s){var r;s=Me(L0)?s:!t.mark||L0(t.mark.markType);let a=!1,o=!1;if(C(i.datums)&&i.datums.length>0)a=this.checkDatumState(i,e,s),o=!0;else if(i.items)a=(r=this.checkItemsState(i,t))!==null&&r!==void 0&&r,o=!0;else if(i.fields)a=this.checkFieldsState(i,e,t,s),o=!0;else if(!a&&i.filter){const l={mark:this._mark,renderNode:t,type:t.mark.markType};a=i.filter(e,l),o=!0}return o?a?"in":"out":"skip"}checkState(t,e){const i=t.getStates().filter(r=>Vq(r)).map(r=>[r,10]),s=!t.mark||L0(t.mark.markType);for(let r=0;rr[0])}checkDatumState(t,e,i){let s=!1;const r=i?e[0]:e;if(U(t.datums)){const a=t.datumKeys||Object.keys(t.datums[0]).filter(o=>!o.startsWith(_t));s=t.datums.some(o=>i&&U(o==null?void 0:o.items)?a.every(l=>{var h,d;return((d=(h=o==null?void 0:o.items)===null||h===void 0?void 0:h[0])===null||d===void 0?void 0:d[l])===(r==null?void 0:r[l])}):a.every(l=>(o==null?void 0:o[l])===(r==null?void 0:r[l])))}else yt(t.datums)?s=(t.datumKeys||Object.keys(t.datums).filter(a=>!a.startsWith(_t))).every(a=>{var o,l;return i?((o=t.datums.items)===null||o===void 0?void 0:o[0][a])===r[a]:((l=t.datums)===null||l===void 0?void 0:l[a])===r[a]}):s=e===t.datums;return s}checkItemsState(t,e){var i;return(i=t.items)===null||i===void 0?void 0:i.includes(e)}checkFieldsState(t,e,i,s){var r;let a=!0;for(const o in t.fields){const l=t.fields[o],h=l.type,d=l.domain,c=s?(r=e[0])===null||r===void 0?void 0:r[o]:e[o];if(Qt(h)&&d.length>1){if(this.checkLinearFieldState(d,o,e,i,s)){a=!1;break}a=!0}else{if(!d.some(u=>u===c)){a=!1;break}a=!0}}return a}checkLinearFieldState(t,e,i,s,r){var a;const o=r?(a=i[0])===null||a===void 0?void 0:a[e]:i[e];return ot[t.length-1]}updateLayoutState(t){return this._stateMap.markUpdateRank++,this.updateState({markUpdateRank:this._stateMap.markUpdateRank},t)}compileState(t,e){t.state({callback:(i,s)=>this.checkState(s,i)},e)}}class Fs extends Xx{getDataView(){return this._data}setDataView(t){this._data=t}getLatestData(){var t;return(t=this._data)===null||t===void 0?void 0:t.latestData}constructor(t,e){super(t),this.grammarType=oa.data,this._data=null,this._data=e}release(){super.release(),this._data=null}updateData(t){const e=this.getProduct(),i=this.getLatestData();if(e&&i&&(e.values(i),!t))return this.getCompiler().renderNextTick()}_compileProduct(){const t=this.getLatestData();P(t)||(P(this.getProduct())?this._initProduct(t):this._product.values(t))}_initProduct(t){var e,i;const s=this.getVGrammarView();if(!s||!t)return;const r=this.getProductId();this._product=(i=(e=s==null?void 0:s.data)===null||e===void 0?void 0:e.call(s,t))===null||i===void 0?void 0:i.id(r),this._compiledProductId=r}generateProductId(){var t;return`${(t=this.getDataView())===null||t===void 0?void 0:t.name}`}_lookupGrammar(t){var e,i;return(i=(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getDataById)===null||i===void 0?void 0:i.call(e,t)}}class sZ extends Fs{constructor(t){super(t),this._mark=t.mark}setCompiledProductId(t){this._compiledProductId=t}generateProductId(){const t=super.generateProductId();return C(t)?t:`${_t}_markData_${this._mark.id}`}_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;P(e)||C(this.getProduct())||this._initProduct(e)}}var vw=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this._markConfig[e]=t[e]})}getVisible(){return this._visible}setVisible(t){this._visible=t}getUserId(){return this._userId}setUserId(t){C(t)&&(this._userId=t)}getDataView(){var t;return(t=this._data)===null||t===void 0?void 0:t.getDataView()}setDataView(t,e){P(this._data)&&this.initMarkData(Object.assign(Object.assign({},this._option),{mark:this})),C(e)&&this._data.setCompiledProductId(e),this._data.setDataView(t)}getData(){return this._data}setData(t){this._data=t}hasState(t){return t in this.state.getStateMap()}getState(t){return this.state.getStateMap()[t]}getAnimationConfig(){return this._animationConfig}setAnimationConfig(t){this._animationConfig=t}setSkipBeforeLayouted(t){this._skipBeforeLayouted=t}getSkipBeforeLayouted(){return this._skipBeforeLayouted}getGroupKey(){return this._groupKey}setGroupKey(t){this._groupKey=t}setStateSortCallback(t){this._stateSort=t}constructor(t,e,i){super(t),this.grammarType=oa.mark,this.type=void 0,this.name="mark",this._markConfig={zIndex:ee.Mark,morph:!1},this._visible=!0,this.stateStyle={},this._unCompileChannel={},this._skipBeforeLayouted=!1,this.name=e,this.model=i,this.key=t.key,this.state=new nZ(Object.assign(Object.assign({},t),{stateKeyToSignalName:this.stateKeyToSignalName.bind(this)}),this),this._event=new dm(i.getOption().eventDispatcher,i.getOption().mode)}setTransform(t){this._transform=t}initMarkData(t){this._data=new sZ(t)}stateKeyToSignalName(t){return`${_t}_${this.type}_${this.id}_${t}`}getAttribute(t,e,i,s){}_compileProduct(t){const e=this.getProduct();if(!this.getVisible())return void(C(e)&&this.removeProduct());C(e)||this.getCompiler().isInited&&(this._initProduct(t==null?void 0:t.group),P(this._product)||(this.compileSignal(),this.compileData(),this.compileState(),this.compileEncode(),this.compileAnimation(),this.compileContext(t==null?void 0:t.context),this.compileTransform()))}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId();this._product=e.mark(this.type,t??e.rootMark).id(i),this._compiledProductId=i}generateProductId(){return this._userId?`${this._userId}`:`${this.name}_${this.id}`}compileData(){if(P(this._data))return;this._data.compile();const t=this._data.getProduct();C(this._product)&&C(t)&&this._product.join(t,this.key,void 0,this.getGroupKey())}updateStaticEncode(){if(!this._product)return;const{enterStyles:t,updateStyles:e}=this._separateStyle();this._product.encodeState("group",t,!0),this._product.encode(e,!0)}_separateStyle(){const t=this.stateStyle,e=it.STATE_NORMAL,i=t[e],s=(vw(t,[typeof e=="symbol"?e:e+""]),this._option.noSeparateStyle?null:{}),r={};return Object.keys(i).forEach(a=>{this._unCompileChannel[a]||(this._option.noSeparateStyle||jq(a,i,this.getGroupKey())?r[a]={callback:this.compileCommonAttributeCallback(a,"normal"),dependency:[this.stateKeyToSignalName("markUpdateRank")]}:s[a]=this.compileCommonAttributeCallback(a,"normal"))}),{enterStyles:s,updateStyles:r}}compileEncode(){const t=this.stateStyle,e=it.STATE_NORMAL,i=(t[e],vw(t,[typeof e=="symbol"?e:e+""])),{enterStyles:s,updateStyles:r}=this._separateStyle();this._product.encode(r,!0),this._product.encodeState("group",s,!0),Object.keys(i).forEach(a=>{const o={};Object.keys(i[a]).forEach(l=>{this._unCompileChannel[l]||(o[l]={callback:this.compileCommonAttributeCallback(l,a),dependency:[this.stateKeyToSignalName("markUpdateRank")]})}),this._product.encodeState(a,o,!0)}),this._skipBeforeLayouted&&this._product.layout({skipBeforeLayouted:this._skipBeforeLayouted})}compileState(){this.state.compileState(this._product,this._stateSort)}compileAnimation(){var t,e,i,s;if(this._animationConfig){let r;if(this.type==="component")r=(t=this.model.animate)===null||t===void 0?void 0:t.getAnimationStateSignalName();else{const a=(i=(e=this.model).getRegion)===null||i===void 0?void 0:i.call(e);r=(s=a==null?void 0:a.animate)===null||s===void 0?void 0:s.getAnimationStateSignalName()}this._product.animation(this._animationConfig),this._product.animationState({callback:(a,o,l)=>{var h;return(h=l[r])===null||h===void 0?void 0:h.callback(a,o)},dependency:r}),this._animationConfig.normal&&(this._animationConfig.appear?this._event.on(ut.ANIMATION_END,({event:a})=>{a.mark===this.getProduct()&&a.animationState===Ye.appear&&this.runAnimationByState(Ye.normal)}):this._event.on(ut.AFTER_DO_RENDER,()=>{this.runAnimationByState(Ye.normal)}))}}compileContext(t){const e=Object.assign(Object.assign({},this._markConfig),{context:Object.assign({markId:this.id,modelId:this.model.id,markUserId:this._userId,modelUserId:this.model.userId},t)});this._product.configure(e)}compileSignal(){this.state.compile()}_computeAttribute(t,e){return(i,s)=>{}}compileCommonAttributeCallback(t,e){const i=this._computeAttribute(t,e),s={mark:null,parent:null,element:null};return(r,a)=>(s.mark=a.mark,s.parent=a.mark.group,s.element=a,i(r,s))}compileTransform(){var t;!((t=this._transform)===null||t===void 0)&&t.length&&this.getProduct().transform(this._transform)}_lookupGrammar(t){var e;return(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getMarkById(t)}updateState(t,e){return this.state.updateState(t,e)}updateLayoutState(t,e){return e&&this.getMarks().length>0&&this.getMarks().forEach(i=>i.state.updateLayoutState(!0)),this.state.updateLayoutState(t)}updateMarkState(t){if(!this._product)return;const e=this.state.getStateInfo(t);this._product.elements.forEach(i=>{this.state.checkOneState(i,i.getDatum(),e)==="in"?i.addState(t):i.removeState(t)})}getMarks(){return[]}runAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.runAnimationByState(t)}stopAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.stopAnimationByState(t)}pauseAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.pauseAnimationByState(t)}resumeAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.resumeAnimationByState(t)}getProductElements(){const t=this.getProduct();if(t)return t.elements}release(){super.release(),this.state.release()}}var yw=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);se(t(...i)):e(t)}convertAngleToRadian(t){return this._transformStyleValue(t,te)}isUserLevel(t){return[Z.User_Mark,Z.User_Series,Z.User_Chart,Z.User_SeriesStyle].includes(t)}setStyle(t,e="normal",i=0,s=this.stateStyle){if(P(t))return;s[e]===void 0&&(s[e]={});const r=this.isUserLevel(i);Object.keys(t).forEach(a=>{let o=t[a];P(o)||(o=this._filterAttribute(a,o,e,i,r,s),this.setAttribute(a,o,e,i,s))})}getStyle(t,e="normal"){var i;return(i=this.stateStyle[e][t])===null||i===void 0?void 0:i.style}_filterAttribute(t,e,i,s,r,a=this.stateStyle){let o=this._styleConvert(e);if(r)switch(t){case"angle":o=this.convertAngleToRadian(o);break;case"innerPadding":case"outerPadding":o=this._transformStyleValue(o,l=>-l);break;case"curveType":o=this._transformStyleValue(o,l=>iZ(l,this._option.model.direction))}return o}setReferer(t,e,i,s=this.stateStyle){var r;if(t)if(e&&i){const a=(r=s[i])!==null&&r!==void 0?r:{[e]:{}};s[i][e]=Object.assign(Object.assign({},a[e]),{referer:t})}else Object.entries(s).forEach(([a,o])=>{Object.entries(o).forEach(([l,h])=>{s[a][l].referer=t})})}setPostProcess(t,e,i="normal"){var s;!((s=this.stateStyle[i])===null||s===void 0)&&s[t]&&(this.stateStyle[i][t].postProcess=e)}getAttribute(t,e,i="normal",s){return this._computeAttribute(t,i)(e,s)}setAttribute(t,e,i="normal",s=0,r=this.stateStyle){var a;r[i]===void 0&&(r[i]={}),r[i][t]===void 0&&(r[i][t]={level:s,style:e,referer:void 0});const o=(a=r[i][t])===null||a===void 0?void 0:a.level;C(o)&&o<=s&>(r[i][t],{style:e,level:s}),i!=="normal"&&t in this._extensionChannel&&this._extensionChannel[t].forEach(l=>{r[i][l]===void 0&&(r[i][l]=r.normal[l])})}_getDefaultStyle(){return{visible:!0,x:0,y:0}}_styleConvert(t){if(!t)return t;if(jy(t.type)||t.scale){const e=k8(t,{globalScale:this._option.globalScale,seriesId:this._option.seriesId});if(e)return{scale:e,field:t.field,changeDomain:t.changeDomain}}return t}_computeAttribute(t,e){var i;let s=(i=this.stateStyle[e])===null||i===void 0?void 0:i[t];s||(s=this.stateStyle.normal[t]);const r=this._computeStateAttribute(s,t,e),a=N(s==null?void 0:s.postProcess),o=t in this._computeExChannel;if(a&&o){const l=this._computeExChannel[t];return(h,d)=>{let c=r(h,d);return c=s.postProcess(c,h,this._attributeContext,d,this.getDataView()),l(t,h,e,d,c)}}if(a)return(l,h)=>s.postProcess(r(l,h),l,this._attributeContext,h,this.getDataView());if(o){const l=this._computeExChannel[t];return(h,d)=>l(t,h,e,d,r(h,d))}return r}_computeStateAttribute(t,e,i){var s;return t?t.referer?t.referer._computeAttribute(e,i):t.style?typeof t.style=="function"?(r,a)=>t.style(r,this._attributeContext,a,this.getDataView()):mw.includes(t.style.gradient)?this._computeGradientAttr(t.style):["outerBorder","innerBorder"].includes(e)?this._computeBorderAttr(t.style):jy((s=t.style.scale)===null||s===void 0?void 0:s.type)?(r,a)=>{let o=r;return this.model.modelType==="series"&&this.model.getMarkData&&(o=this.model.getMarkData(r)),t.style.scale.scale(o[t.style.field])}:(r,a)=>t.style:(r,a)=>t.style:(r,a)=>{}}_initStyle(){const t=this._getDefaultStyle();this.setStyle(t,"normal",0)}_initSpecStyle(t,e,i){t.style&&this.setStyle(t.style,"normal",Z.User_Mark,e);const s=t.state;s&&Object.keys(s).forEach(r=>{const a=s[r];if("style"in a){const o=a.style;let l={stateValue:r};"level"in a&&(l.level=a.level),"filter"in a&&(l=N(a.filter)?Object.assign({filter:a.filter},l):Object.assign(Object.assign({},a.filter),l)),this.state.addStateInfo(l),this.setStyle(o,r,Z.User_Mark,e)}else this.setStyle(a,r,Z.User_Mark,e)})}_computeGradientAttr(t){var e,i;const{gradient:s,scale:r,field:a}=t,o=yw(t,["gradient","scale","field"]);let l=r,h=a;if(!(r&&a||this.model.modelType!=="series")){const{scale:u,field:g}=this.model.getColorAttribute();r||(l=u),h||(h=g)}const d=Xy(Mc(this.model.getColorScheme(),this.model.modelType==="series"?(i=(e=this.model).getSpec)===null||i===void 0?void 0:i.call(e):void 0),this.model.getDefaultColorDomain()),c=Object.assign(Object.assign({},tZ[s]),o);return(u,g)=>{const p={},_=this.getDataView();return Object.keys(c).forEach(f=>{const m=c[f];f==="stops"?p.stops=m.map(v=>{const{opacity:y,color:b,offset:x}=v;let S=b??(l==null?void 0:l.scale(u[h]));return N(b)&&(S=b(u,this._attributeContext,g,_)),C(y)&&(S=Xe.SetOpacity(S,y)),{offset:N(x)?x(u,this._attributeContext,g,_):x,color:S||d[0]}}):N(m)?p[f]=m(u,this._attributeContext,g,_):p[f]=m}),p.gradient=s,p}}_computeBorderAttr(t){const{scale:e,field:i}=t,s=yw(t,["scale","field"]);return(r,a)=>{var o,l,h;const d={};if(Object.keys(s).forEach(c=>{const u=s[c];N(u)?d[c]=u(r,this._attributeContext,a,this.getDataView()):d[c]=u}),"stroke"in d)mw.includes((h=s.stroke)===null||h===void 0?void 0:h.gradient)&&(d.stroke=this._computeGradientAttr(s.stroke)(r,a));else{const c=Xy(Mc(this.model.getColorScheme(),this.model.modelType==="series"?(l=(o=this.model).getSpec)===null||l===void 0?void 0:l.call(o):void 0),this.model.getDefaultColorDomain());let u=e,g=i;if(!(e&&i||this.model.modelType!=="series")){const{scale:p,field:_}=this.model.getColorAttribute();e||(u=p),g||(g=_),d.stroke=(u==null?void 0:u.scale(r[g]))||c[0]}}return d}}}class Ec extends Ci{constructor(){super(...arguments),this.type=Ec.type,this._marks=[]}getMarks(){return this._marks}_getDefaultStyle(){return Object.assign({},super._getDefaultStyle())}isMarkExist(t){return this._marks.find(e=>e.id===t.id||e.name===t.name)!==void 0}addMark(t){return this.isMarkExist(t)?(rn("Mark already exists, add mark failed."),!1):(this._marks.push(t),!0)}removeMark(t){const e=this._marks.findIndex(i=>i.id===t.id||i.name===t.name);return e===-1?(rn("Mark does not exists, removeMark failed."),!1):(this._marks.splice(e,1),!0)}getMarkInType(t){return this._marks.filter(e=>e.type===t)}getMarkInId(t){return this._marks.find(e=>e.id===t)}getMarkInName(t){return this._marks.find(e=>e.name===t)}_compileProduct(t){super._compileProduct(t),this._product.configure({zIndex:this._markConfig.zIndex}),t!=null&&t.ignoreChildren||this.getMarks().forEach(e=>{e.getProduct()&&e.removeProduct(),e.compile({group:this._product})})}}Ec.type="group";const ML=()=>{Y6(),D.registerMark(Ec.type,Ec)},aZ={measureText:KX};class fn{static instance(){return fn.instance_||(fn.instance_=new fn),fn.instance_}constructor(){this.functions={}}registerFunction(t,e){t&&e&&(this.functions[t]=e)}unregisterFunction(t){t&&delete this.functions[t]}getFunction(t){return this.functions[t]||null}getFunctionNameList(){return Object.keys(this.functions)}}const oZ=()=>{zp(At)},lZ=()=>{Wp(At)};class wL{constructor(){this.id=jo(),this._plugins=[]}add(t){if(!t||t.length===0)return null;const e=[];return t.forEach(i=>{this._plugins.find(s=>s.id===i.id)?rn("不要重复添加相同的plugin"):(this._plugins.push(i),e.push(i),i.onAdd&&i.onAdd(this))}),e}load(t){const e=this.add(t);e&&e.length&&this.activate(t)}activate(t){t.length&&t.forEach(e=>{e.init&&e.init()})}get(t){return this._plugins.find(e=>e.id===t)}getAll(){return this._plugins.slice()}release(t){const e=this.get(t);e&&(e.release(this),this._plugins=this._plugins.filter(i=>i!==e))}releaseAll(){this._plugins.forEach(t=>{t.release(this)}),this._plugins=[]}clear(t){const e=this.get(t);e&&e.clear(this)}clearAll(){this._plugins.forEach(t=>{var e;(e=t.clear)===null||e===void 0||e.call(t,this)})}}class hZ extends wL{constructor(t){super(),this.globalInstance=t}onInit(t){this._plugins.forEach(e=>{e.onInit&&e.onInit(this,t)})}onBeforeResize(t,e){this._plugins.forEach(i=>{i.onBeforeResize&&i.onBeforeResize(this,t,e)})}onAfterChartSpecTransform(t,e){this._plugins.forEach(i=>{i.onAfterChartSpecTransform&&i.onAfterChartSpecTransform(this,t,e)})}onAfterModelSpecTransform(t,e,i){this._plugins.forEach(s=>{s.onAfterModelSpecTransform&&s.onAfterModelSpecTransform(this,t,e,i)})}onBeforeInitChart(t,e){this._plugins.forEach(i=>{i.onBeforeInitChart&&i.onBeforeInitChart(this,t,e)})}releaseAll(){super.releaseAll(),this.globalInstance=null}}var Zn=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})},dZ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{typeof e=="function"?e():console.error("Invalid function:",e)})}static useChart(t){t.forEach(e=>D.registerChart(e.type,e))}static useSeries(t){t.forEach(e=>D.registerSeries(e.type,e))}static useComponent(t){t.forEach(e=>D.registerComponent(e.type,e))}static useMark(t){t.forEach(e=>{var i;return D.registerMark((i=e.constructorType)!==null&&i!==void 0?i:e.type,e)})}static useLayout(t){t.forEach(e=>D.registerLayout(e.type,e))}static registerDataSetTransform(t,e){D.registerTransform(t,e)}static registerFunction(t,e){t&&e&&fn.instance().registerFunction(t,e)}static unregisterFunction(t){t&&fn.instance().unregisterFunction(t)}static getFunction(t){return t?fn.instance().getFunction(t):null}static getFunctionList(){return fn.instance().getFunctionNameList()}static registerMap(t,e,i){const s=D.getImplementInKey("registerMap");s&&s(t,e,i)}static unregisterMap(t){const e=D.getImplementInKey("unregisterMap");e&&e(t)}static getMap(t){return Rq(t)}static hideTooltip(t=[]){Fn.forEach(e=>{var i;return(i=e==null?void 0:e.hideTooltip)===null||i===void 0?void 0:i.call(e)},t)}static getLogger(){return Ot.getInstance()}getSpec(){return this._spec}getSpecInfo(){return this._specInfo}getDataSet(){return this._dataSet}constructor(t,e){var i,s,r,a,o,l,h,d;this.id=jo(),this._userEvents=[],this._autoSize=!0,this._option={mode:Ue["desktop-browser"],onError:y=>{throw new Error(y)},optimize:{disableCheckGraphicWidthOutRange:!0}},this._observer=null,this._context={},this._doResize=()=>{const{width:y,height:b}=this.getCurrentSize();this._currentSize.width===y&&this._currentSize.height===b||(this._currentSize={width:y,height:b},this.resizeSync(y,b))},this._renderSync=(y={})=>{var b;const x=this;return this._beforeRender(y)&&((b=this._compiler)===null||b===void 0||b.render(y.morphConfig),this._afterRender()),x},this._updateSpec=(y,b=!1,x)=>{var S,A;const k=this._spec,T={changeBackground:!1,reTransformSpec:!1,change:!1,reMake:!1,reCompile:!1,reSize:!1,changeTheme:!1};if(!this._setNewSpec(y,b))return;Jt(k.theme,this._spec.theme)?Jt(this._spec.background,k.background)||(T.reMake=!0,T.changeBackground=!0):T.changeTheme=!0;const w=this._shouldChartResize(k);if(T.reSize=w,(A=(S=this._compiler)===null||S===void 0?void 0:S.getVGrammarView())===null||A===void 0||A.updateLayoutTag(),this._spec.type!==k.type)return T.reMake=!0,T.reTransformSpec=!0,T.change=!0,T.changeTheme=!0,T;this._initChartSpec(this._spec,"updateSpec");const M=al(this._chart.updateSpec(this._spec),T);return x?Object.assign(Object.assign({},M),x):M},this._option=$(this._option,{animation:t.animation!==!1},e),this._onError=(i=this._option)===null||i===void 0?void 0:i.onError;const c=this._option,{dom:u,renderCanvas:g,mode:p,stage:_,poptip:f}=c,m=dZ(c,["dom","renderCanvas","mode","stage","poptip"]),v=ls(p);v?oZ():p==="node"&&lZ(),v&&u&&(this._container=tt(u)?Et.getElementById(u):u),g&&(this._canvas=g),_&&(this._stage=_),p==="node"||this._container||this._canvas||this._stage?(this._viewBox=this._option.viewBox,this._currentThemeName=ia.getCurrentThemeName(),this._setNewSpec(t),this._updateCurrentTheme(),this._currentSize=this.getCurrentSize(),this._compiler=new Bq({dom:(r=this._container)!==null&&r!==void 0?r:"none",canvas:g},Object.assign(Object.assign({mode:this._option.mode,stage:_,pluginList:f!==!1?["poptipForText"]:[]},m),{background:this._getBackground(),onError:this._onError})),this._compiler.setSize(this._currentSize.width,this._currentSize.height),this._eventDispatcher=new wq(this,this._compiler),this._event=new dm(this._eventDispatcher,p),this._compiler.initView(),this._setFontFamilyTheme((a=this._currentTheme)===null||a===void 0?void 0:a.fontFamily),this._initDataSet(this._option.dataSet),this._autoSize=!!v&&((l=(o=t.autoFit)!==null&&o!==void 0?o:this._option.autoFit)===null||l===void 0||l),this._bindResizeEvent(),this._bindVGrammarViewEvent(),this._initChartPlugin(),Fn.registerInstance(this),(d=(h=this._option.performanceHook)===null||h===void 0?void 0:h.afterCreateVChart)===null||d===void 0||d.call(h,this)):(s=this._option)===null||s===void 0||s.onError("please specify container or renderCanvas!")}_setNewSpec(t,e){return!!t&&(tt(t)&&(t=JSON.parse(t)),e&&this._originalSpec&&(t=gt({},this._originalSpec,t)),this._originalSpec=t,this._spec=this._getSpecFromOriginalSpec(),!0)}_getSpecFromOriginalSpec(){var t;const e=Jy(this._originalSpec);return e.data=(t=e.data)!==null&&t!==void 0?t:[],e}_initChartSpec(t,e){var i,s;ai.getFunctionList()&&ai.getFunctionList().length&&(t=Qy(t,ai)),this._spec=t,this._chartSpecTransformer||(this._chartSpecTransformer=D.createChartSpecTransformer(this._spec.type,this._getChartOption(this._spec.type))),(i=this._chartSpecTransformer)===null||i===void 0||i.transformSpec(this._spec),this._chartPluginApply("onAfterChartSpecTransform",this._spec,e),this._specInfo=(s=this._chartSpecTransformer)===null||s===void 0?void 0:s.transformModelSpec(this._spec),this._chartPluginApply("onAfterModelSpecTransform",this._spec,this._specInfo,e)}_updateSpecInfo(){var t;this._chartSpecTransformer||(this._chartSpecTransformer=D.createChartSpecTransformer(this._spec.type,this._getChartOption(this._spec.type))),this._specInfo=(t=this._chartSpecTransformer)===null||t===void 0?void 0:t.createSpecInfo(this._spec)}_initChart(t){var e,i,s;if(!this._compiler)return void((e=this._option)===null||e===void 0||e.onError("compiler is not initialized"));if(this._chart)return void((i=this._option)===null||i===void 0||i.onError("chart is already initialized"));const r=D.createChart(t.type,t,this._getChartOption(t.type));r?(this._chart=r,this._chart.setCanvasRect(this._currentSize.width,this._currentSize.height),this._chart.created(),this._chart.init(),this._event.emit(lt.initialized,{chart:r,vchart:this})):(s=this._option)===null||s===void 0||s.onError("init chart fail")}_releaseData(){this._dataSet&&(this._dataSet.dataViewMap={},this._dataSet=null)}_bindVGrammarViewEvent(){this._compiler&&(this._compiler.getVGrammarView().addEventListener(ut.ALL_ANIMATION_END,()=>{this._event.emit(lt.animationFinished,{chart:this._chart,vchart:this})}),this._compiler.getVGrammarView().addEventListener(ut.AFTER_VRENDER_NEXT_RENDER,()=>{this._event.emit(lt.renderFinished,{chart:this._chart,vchart:this})}))}_bindResizeEvent(){var t,e;if(this._autoSize){if(this._onResize=yr(this._doResize,(t=this._option.resizeDelay)!==null&&t!==void 0?t:100),this._container){const i=window.ResizeObserver;i&&(this._observer=new i(this._onResize),(e=this._observer)===null||e===void 0||e.observe(this._container))}window.addEventListener("resize",this._onResize)}}_unBindResizeEvent(){this._autoSize&&(window.removeEventListener("resize",this._onResize),this._observer&&(this._observer.disconnect(),this._observer=null))}getCurrentSize(){var t,e,i,s;return fL(this._spec,{container:this._container,canvas:this._canvas,mode:this._getMode(),modeParams:this._option.modeParams},{width:(e=(t=this._currentSize)===null||t===void 0?void 0:t.width)!==null&&e!==void 0?e:xl,height:(s=(i=this._currentSize)===null||i===void 0?void 0:i.height)!==null&&s!==void 0?s:Sl})}_initDataSet(t){this._dataSet=t instanceof ya?t:new ya,dr(this._dataSet,"dataview",vf),dr(this._dataSet,"array",rP),vt(this._dataSet,"copyDataView",cm);for(const e in D.transforms)vt(this._dataSet,e,D.transforms[e]);for(const e in D.dataParser)dr(this._dataSet,e,D.dataParser[e])}updateCustomConfigAndRerender(t,e,i={}){if(!this._isReleased&&t)return N(t)&&(t=t()),t.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._reCompile(t),e?this._renderSync(i):this._renderAsync(i)}_updateCustomConfigAndRecompile(t,e={}){return!!t&&(this._reCompile(t),this._beforeRender(e))}_reCompile(t,e){var i,s,r,a,o,l,h,d,c,u,g,p;if(t.reMake)this._releaseData(),this._initDataSet(),this._chartSpecTransformer=null,(i=this._chart)===null||i===void 0||i.release(),this._chart=null,t.changeTheme?(this._setCurrentTheme(),this._setFontFamilyTheme((s=this._currentTheme)===null||s===void 0?void 0:s.fontFamily)):t.changeBackground&&((r=this._compiler)===null||r===void 0||r.setBackground(this._getBackground())),(a=this._compiler)===null||a===void 0||a.releaseGrammar(((o=this._option)===null||o===void 0?void 0:o.animation)===!1||((l=this._spec)===null||l===void 0?void 0:l.animation)===!1),this._userEvents.forEach(_=>{var f;return(f=this._event)===null||f===void 0?void 0:f.on(_.eType,_.query,_.handler)}),t.reSize&&this._doResize();else if(t.changeTheme?(this._setCurrentTheme(),this._setFontFamilyTheme((h=this._currentTheme)===null||h===void 0?void 0:h.fontFamily)):t.changeBackground&&((d=this._compiler)===null||d===void 0||d.setBackground(this._getBackground())),t.reCompile&&((c=this._compiler)===null||c===void 0||c.clear({chart:this._chart,vChart:this},((u=this._option)===null||u===void 0?void 0:u.animation)===!1||((g=this._spec)===null||g===void 0?void 0:g.animation)===!1),(p=this._compiler)===null||p===void 0||p.compile({chart:this._chart,vChart:this},{})),t.reSize){const{width:_,height:f}=this.getCurrentSize();this._chart.onResize(_,f,!1),this._compiler.resize(_,f,!1)}}_beforeRender(t={}){var e,i,s,r,a,o,l,h;if(this._isReleased)return!1;if(this._chart)return!0;const{transformSpec:d,actionSource:c}=t;return d&&this._initChartSpec(this._spec,"render"),this._chartPluginApply("onBeforeInitChart",this._spec,c),(i=(e=this._option.performanceHook)===null||e===void 0?void 0:e.beforeInitializeChart)===null||i===void 0||i.call(e,this),this._initChart(this._spec),(r=(s=this._option.performanceHook)===null||s===void 0?void 0:s.afterInitializeChart)===null||r===void 0||r.call(s,this),!(!this._chart||!this._compiler)&&((o=(a=this._option.performanceHook)===null||a===void 0?void 0:a.beforeCompileToVGrammar)===null||o===void 0||o.call(a),this._compiler.compile({chart:this._chart,vChart:this},{performanceHook:this._option.performanceHook}),(h=(l=this._option.performanceHook)===null||l===void 0?void 0:l.afterCompileToVGrammar)===null||h===void 0||h.call(l),!0)}_afterRender(){return!this._isReleased&&(this._updateAnimateState(),this._event.emit(lt.rendered,{chart:this._chart,vchart:this}),!0)}renderSync(t){return this._renderSync({morphConfig:t,transformSpec:!0,actionSource:"render"})}renderAsync(t){return Zn(this,void 0,void 0,function*(){return this._renderAsync({morphConfig:t,transformSpec:!0,actionSource:"render"})})}_renderAsync(t={}){return Zn(this,void 0,void 0,function*(){return this._renderSync(t)})}_updateAnimateState(t){var e,i;if(this._option.animation){const s=t?Ye.appear:Ye.update;(e=this._chart)===null||e===void 0||e.getAllRegions().forEach(r=>{var a;(a=r.animate)===null||a===void 0||a.updateAnimateState(s,!0)}),(i=this._chart)===null||i===void 0||i.getAllComponents().forEach(r=>{var a;(a=r.animate)===null||a===void 0||a.updateAnimateState(s,!0)})}}release(){var t,e,i,s;!((t=this._onResize)===null||t===void 0)&&t.cancel&&this._onResize.cancel(),this._chartPluginApply("releaseAll"),this._chartPlugin=null,this._chartSpecTransformer=null,(e=this._chart)===null||e===void 0||e.release(),(i=this._eventDispatcher)===null||i===void 0||i.release(),(s=this._compiler)===null||s===void 0||s.release(),this._unBindResizeEvent(),this._releaseData(),this._onError=null,this._onResize=null,this._container=null,this._currentTheme=null,this._option=null,this._chart=null,this._compiler=null,this._spec=null,this._specInfo=null,this._originalSpec=null,this._userEvents=null,this._event=null,this._eventDispatcher=null,this._isReleased=!0,Fn.unregisterInstance(this)}updateData(t,e,i,s){return Zn(this,void 0,void 0,function*(){return this.updateDataSync(t,e,i,s)})}_updateDataById(t,e,i){const s=this._spec.data.find(r=>r.name===t||r.id===t);s?s.id===t?s.values=e:s.name===t&&s.parse(e,i):U(e)?this._spec.data.push({id:t,values:e}):this._spec.data.push(e)}updateDataInBatches(t){return Zn(this,void 0,void 0,function*(){return this._chart?(this._chart.updateFullData(t.map(({id:e,data:i,options:s})=>({id:e,values:i,parser:s}))),this._chart.updateGlobalScaleDomain(),this._compiler.render(),this):(this._spec.data=j(this._spec.data),t.forEach(({id:e,data:i,options:s})=>{this._updateDataById(e,i,s)}),this)})}updateDataSync(t,e,i,s){return P(this._dataSet)?this:this._chart?(s!=null&&s.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._chart.updateData(t,e,!0,i),this._compiler.render(),this):(this._spec.data=j(this._spec.data),this._updateDataById(t,e,i),this)}updateFullDataSync(t,e=!0,i){if(this._chart)return i!=null&&i.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._chart.updateFullData(t),e&&this._compiler.render(),this;const s=j(this._spec.data);return j(t).forEach(r=>{const{id:a,values:o,parser:l,fields:h}=r,d=s.find(c=>c.name===a);if(d)d instanceof Gt?(d.setFields(xn(h)),d.parse(o,xn(l))):(d.values=o,C(l)&&(d.parser=l),C(h)&&(d.fields=h));else{const c=$x(r,this._dataSet,s);U(this._spec.data)&&this._spec.data.push(c)}}),this}updateFullData(t,e=!0){return Zn(this,void 0,void 0,function*(){return this.updateFullDataSync(t,e)})}updateSpec(t,e=!1,i,s){return Zn(this,void 0,void 0,function*(){const r=this._updateSpec(t,e,s);return r?(yield this.updateCustomConfigAndRerender(r,!1,{morphConfig:i,transformSpec:r.reTransformSpec,actionSource:"updateSpec"}),this):this})}updateSpecSync(t,e=!1,i,s){const r=this._updateSpec(t,e,s);return r?(this.updateCustomConfigAndRerender(r,!0,{morphConfig:i,transformSpec:r.reTransformSpec,actionSource:"updateSpec"}),this):this}updateSpecAndRecompile(t,e=!1,i={}){const s=this._updateSpec(t,e);return this._updateCustomConfigAndRecompile(s,Object.assign({actionSource:"updateSpecAndRecompile"},i))}updateModelSpec(t,e,i=!1,s){return Zn(this,void 0,void 0,function*(){if(!e||!this._spec)return this;if(tt(e)&&(e=JSON.parse(e)),N(t)||jM(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!1,i,s)}return this})}updateModelSpecSync(t,e,i=!1,s){if(!e||!this._spec)return this;if(tt(e)&&(e=JSON.parse(e)),N(t)||jM(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!0,i,s)}return this}_updateModelSpec(t,e,i=!1,s=!1,r){s&&(e=gt({},t.getSpec(),e));const a=t.updateSpec(e);return t.reInit(e),(a.change||a.reCompile||a.reMake||a.reSize||a.reRender)&&this._chart.reDataFlow(),this.updateCustomConfigAndRerender(a,i,{morphConfig:r,transformSpec:!1,actionSource:"updateModelSpec"})}resize(t,e){return Zn(this,void 0,void 0,function*(){return this.resizeSync(t,e)})}resizeSync(t,e){var i,s;return this._beforeResize(t,e)?((s=(i=this._compiler).resize)===null||s===void 0||s.call(i,t,e),this._afterResize()):this}_beforeResize(t,e){var i,s,r,a;if(!this._chart||!this._compiler)return!1;const o=this._chart.getCanvasRect();return(!o||o.width!==t||o.height!==e)&&(this._chartPluginApply("onBeforeResize",t,e),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.beforeResizeWithUpdate)===null||s===void 0||s.call(i),this._chart.onResize(t,e,!1),(a=(r=this._option.performanceHook)===null||r===void 0?void 0:r.afterResizeWithUpdate)===null||a===void 0||a.call(r),!0)}_afterResize(){return this._isReleased||this._event.emit(lt.afterResize,{chart:this._chart}),this}updateViewBox(t,e=!0,i=!0){return this._chart&&this._compiler?(this._viewBox=t,this._chart.updateViewBox(t,i),i&&(this._compiler.render(),this._chart.onEvaluateEnd()),this._compiler.updateViewBox(t,e),this):this}on(t,e,i){var s;this._userEvents&&(this._userEvents.push({eType:t,query:typeof e=="function"?null:e,handler:typeof e=="function"?e:i}),(s=this._event)===null||s===void 0||s.on(t,e,i))}off(t,e){var i;if(this._userEvents&&this._userEvents.length!==0)if(e){const s=this._userEvents.findIndex(r=>r.eType===t&&r.handler===e);s>=0&&(this._userEvents.splice(s,1),(i=this._event)===null||i===void 0||i.off(t,e))}else this._userEvents.forEach(s=>{var r;s.eType===t&&((r=this._event)===null||r===void 0||r.off(t,s.handler))}),this._userEvents=this._userEvents.filter(s=>s.eType!==t)}updateState(t,e){this._chart&&this._chart.updateState(t,e)}setSelected(t,e,i){this._chart&&this._chart.setSelected(t,e,i)}setHovered(t,e,i){this._chart&&this._chart.setHovered(t,e,i)}clearState(t){this._chart&&this._chart.clearState(t)}clearAllStates(){this._chart&&this._chart.clearAllStates()}clearSelected(){this._chart&&this._chart.clearSelected()}clearHovered(){this._chart&&this._chart.clearHovered()}_updateCurrentTheme(t){var e,i,s;const r=this._option.theme,a=(e=this._spec)===null||e===void 0?void 0:e.theme,o=(i=this._spec)===null||i===void 0?void 0:i.type;t&&(this._currentThemeName=t);const l=(d,c)=>{var u;return!((u=c.chart)===null||u===void 0)&&u[d]&&(c=wg({},c,c.chart[d])),c};let h;if(ht(r)&&ht(a))h=Br(this._currentThemeName,!0),this._currentTheme=l(o,h);else if(tt(r)&&(!a||tt(a))||tt(a)&&(!r||tt(r))){const d=wg({},Br(this._currentThemeName,!0),Br(r,!0),Br(a,!0));this._currentTheme=l(o,d)}else{const d=wg({},Br(this._currentThemeName),Br(r),Br(a));this._currentTheme=sm(l(o,d))}y4(wt(this._currentTheme,"component.poptip")),(s=this._compiler)===null||s===void 0||s.setBackground(this._getBackground())}_shouldChartResize(t){var e,i;let s=!1;P(this._spec.width)?!P(t.width)&&(this._spec.width=t.width):this._spec.width!==t.width&&(s=!0),P(this._spec.height)?!P(t.height)&&(this._spec.height=t.height):this._spec.height!==t.height&&(s=!0);const r=this._autoSize;return this._autoSize=!!ls(this._option.mode)&&((i=(e=this._spec.autoFit)!==null&&e!==void 0?e:this._option.autoFit)===null||i===void 0||i),this._autoSize!==r&&(s=!0),s}_getBackground(){return(typeof this._spec.background=="string"||yt(this._spec.background)&&this._spec.background.gradient?this._spec.background:null)||this._currentTheme.background||this._option.background}getCurrentTheme(){return Br(this._currentThemeName)}getCurrentThemeName(){return this._currentThemeName}setCurrentTheme(t){var e;return Zn(this,void 0,void 0,function*(){if(!ia.themeExist(t))return this;const i=this._setCurrentTheme(t);return this._setFontFamilyTheme((e=this._currentTheme)===null||e===void 0?void 0:e.fontFamily),yield this.updateCustomConfigAndRerender(i,!1,{transformSpec:!1,actionSource:"setCurrentTheme"}),this})}setCurrentThemeSync(t){var e;if(!ia.themeExist(t))return this;const i=this._setCurrentTheme(t);return this._setFontFamilyTheme((e=this._currentTheme)===null||e===void 0?void 0:e.fontFamily),this.updateCustomConfigAndRerender(i,!0,{transformSpec:!1,actionSource:"setCurrentTheme"}),this}_setCurrentTheme(t){var e;return this._updateCurrentTheme(t),this._initChartSpec(this._getSpecFromOriginalSpec(),"setCurrentTheme"),(e=this._chart)===null||e===void 0||e.setCurrentTheme(),{change:!0,reMake:!1}}_setFontFamilyTheme(t){var e;t&&((e=this.getStage())===null||e===void 0||e.setTheme({text:{fontFamily:t}}))}_getTooltipComponent(){var t;return(t=this._chart)===null||t===void 0?void 0:t.getComponentsByType(X.tooltip)[0]}setTooltipHandler(t){var e,i;this._context.tooltipHandler=t;const s=this._getTooltipComponent();s&&((i=(e=s.tooltipHandler)===null||e===void 0?void 0:e.release)===null||i===void 0||i.call(e),s.tooltipHandler=t)}getTooltipHandlerByUser(){var t;return(t=this._context)===null||t===void 0?void 0:t.tooltipHandler}getTooltipHandler(){const t=this._getTooltipComponent();return t?t.tooltipHandler:this._context.tooltipHandler}showTooltip(t,e){var i;const s=this._getTooltipComponent();return(i=C(t)&&(s==null?void 0:s.showTooltip(t,e))!=="none")!==null&&i!==void 0&&i}hideTooltip(){var t;const e=this._getTooltipComponent();return(t=e==null?void 0:e.hideTooltip())!==null&&t!==void 0&&t}getLegendDataById(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentByUserId(t);return i?i.getLegendData():[]}getLegendDataByIndex(t=0){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentsByType(X.discreteLegend);return i&&i[t]?i[t].getLegendData():[]}getLegendSelectedDataById(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentByUserId(t);return i?i.getSelectedData():[]}getLegendSelectedDataByIndex(t=0){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentsByType(X.discreteLegend);return i&&i[t]?i[t].getSelectedData():[]}setLegendSelectedDataById(t,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentByUserId(t);s&&s.setSelectedData(e)}setLegendSelectedDataByIndex(t=0,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentsByType(X.discreteLegend);s&&s[t]&&s[t].setSelectedData(e)}getDataURL(){var t;return Zn(this,void 0,void 0,function*(){const e=this.getStage();if(this._chart&&e){e.render();const i=this._chart.getCanvas();return yield Fq(i,{onError:this._onError})}return(t=this._option)===null||t===void 0||t.onError(new ReferenceError("render is not defined")),null})}exportImg(t){var e,i;return Zn(this,void 0,void 0,function*(){if(!ls(this._option.mode))return void((e=this._option)===null||e===void 0||e.onError(new TypeError("non-browser environment can not export img")));const s=yield this.getDataURL();s?Iq(t,s):(i=this._option)===null||i===void 0||i.onError(new ReferenceError("render is not defined"))})}exportCanvas(){var t;const e=this.getStage();if(this._chart&&e)return e.toCanvas();(t=this._option)===null||t===void 0||t.onError(new ReferenceError("render is not defined"))}getImageBuffer(){var t,e;if(this._option.mode!=="node")return void((t=this._option)===null||t===void 0||t.onError(new TypeError("getImageBuffer() now only support node environment.")));const i=this.getStage();return i?(i.render(),i.window.getImageBuffer()):((e=this._option)===null||e===void 0||e.onError(new ReferenceError("render is not defined")),null)}setLayout(t){var e;this._option.layout=t,(e=this._chart)===null||e===void 0||e.setLayout(t)}reLayout(){var t;(t=this._chart)===null||t===void 0||t.setLayoutTag(!0)}getCompiler(){return this._compiler}getChart(){return this._chart}getStage(){return this._compiler.getStage()}getCanvas(){var t;return(t=this._compiler)===null||t===void 0?void 0:t.getCanvas()}getContainer(){var t;if(C(this._container))return this._container;let e;return e=tt(this._canvas)?Et.getElementById(this._canvas):this._canvas,C(e)?e.parentElement:(t=this.getCanvas())===null||t===void 0?void 0:t.parentElement}getComponents(){return this._chart.getAllComponents()}getScale(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getGlobalScale();return i==null?void 0:i.getScale(t)}setDimensionIndex(t,e={}){var i;return(i=this._chart)===null||i===void 0?void 0:i.setDimensionIndex(t,e)}stopAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.stop()}pauseAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.pause()}resumeAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.resume()}convertDatumToPosition(t,e={},i=!1,s){var r;if(!this._chart||ht(t))return null;const{seriesId:a,seriesIndex:o=0}=e;let l;if(C(a)?l=this._chart.getSeriesInUserId(a):C(o)&&(l=(r=this._chart.getSeriesInIndex([o]))===null||r===void 0?void 0:r[0]),l){const h=Object.keys(t),d=l.getViewData().latestData.find(g=>h.every(p=>g[p]==t[p])),c=l.getRegion().getLayoutStartPoint();let u;return u=d?l.dataToPosition(d,s):l.dataToPosition(t,s),u?MM(u,c,i):null}return null}convertValueToPosition(t,e,i=!1){var s,r;if(!this._chart||P(t)||ht(e))return null;if(!U(t)){const{axisId:h,axisIndex:d}=e;let c;if(C(h)?c=this._chart.getComponentsByKey("axes").find(g=>g.userId===h):C(d)&&(c=(s=this._chart.getComponentsByKey("axes"))===null||s===void 0?void 0:s[d]),!c)return rn("Please check whether the `axisId` or `axisIndex` is set!"),null;const u=c==null?void 0:c.valueToPosition(t);if(i){const g=c.getLayoutStartPoint(),p=c.getOrient();return u+(p==="bottom"||p==="top"?g.x:g.y)}return u}const{seriesId:a,seriesIndex:o}=e;let l;return C(a)?l=this._chart.getSeriesInUserId(a):C(o)&&(l=(r=this._chart.getSeriesInIndex([o]))===null||r===void 0?void 0:r[0]),l?MM(l.valueToPosition(t[0],t[1]),l.getRegion().getLayoutStartPoint(),i):(rn("Please check whether the `seriesId` or `seriesIndex` is set!"),null)}getFunction(t){return fn.instance().getFunction(t)}registerFunction(t,e){t&&e&&fn.instance().registerFunction(t,e)}unregisterFunction(t){t&&fn.instance().unregisterFunction(t)}getFunctionList(){return fn.instance().getFunctionNameList()}setRuntimeSpec(t){this._spec=t,this._updateSpecInfo()}updateIndicatorDataById(t,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentByUserId(t);s&&s.updateDatum(e)}updateIndicatorDataByIndex(t=0,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentsByType(X.indicator);s&&s[t]&&s[t].updateDatum(e)}geoZoomByIndex(t=0,e,i){var s,r;const a=(s=this._chart)===null||s===void 0?void 0:s.getRegionsInQuerier({regionIndex:t})[0],o=(r=this._chart)===null||r===void 0?void 0:r.getComponentsByType(X.geoCoordinate),l=o==null?void 0:o.find(h=>{var d;return(d=h.getRegions())===null||d===void 0?void 0:d.includes(a)});l&&l.dispatchZoom(e,i)}geoZoomById(t,e,i){var s,r;const a=(s=this._chart)===null||s===void 0?void 0:s.getRegionsInQuerier({regionId:t})[0],o=(r=this._chart)===null||r===void 0?void 0:r.getComponentsByType(X.geoCoordinate),l=o==null?void 0:o.find(h=>{var d;return(d=h.getRegions())===null||d===void 0?void 0:d.includes(a)});l&&l.dispatchZoom(e,i)}_initChartPlugin(){const t=D.getChartPlugins();t.length>0&&(this._chartPlugin=new hZ(this),this._chartPlugin.load(t.map(e=>new e)),this._chartPluginApply("onInit",this._spec))}_chartPluginApply(t,...e){this._chartPlugin&&this._chartPlugin[t]&&this._chartPlugin[t].apply(this._chartPlugin,e)}_getMode(){return this._option.mode||Ue["desktop-browser"]}_getChartOption(t){return{type:t,globalInstance:this,eventDispatcher:this._eventDispatcher,dataSet:this._dataSet,container:this._container,canvas:this._canvas,map:new Map,mode:this._getMode(),modeParams:this._option.modeParams,getCompiler:()=>this._compiler,performanceHook:this._option.performanceHook,viewBox:this._viewBox,animation:this._option.animation,getTheme:()=>{var e;return(e=this._currentTheme)!==null&&e!==void 0?e:{}},getSpecInfo:()=>{var e;return(e=this._specInfo)!==null&&e!==void 0?e:{}},layout:this._option.layout,onError:this._onError,disableTriggerEvent:this._option.disableTriggerEvent===!0}}}ai.InstanceManager=Fn,ai.ThemeManager=ia,ai.globalConfig={uniqueTooltip:!0},ai.Utils=aZ,ai.vglobal=Et;D.registerRegion("region",Vl),D.registerLayout("base",qx),ML(),Ba.useRegisters([pq]),z7(),F7(),Lx(zM.name,zM),Ot.getInstance(pn.Error);const Mh=(n,t)=>{const e=t.beforeCall();return n&&n.forEach((i,s)=>t.call(i,s,e)),e.keyMap&&(e.keyMap.clear(),e.keyMap=null),n};function en(n,t){return wt(t,`component.${n}`)}function zs(n,t,e,i){if(n)return{formatFunc:n,args:[e,i]};const s=D.getFormatter();return t&&s?{formatFunc:s,args:[e,i,t]}:{}}const gs=(n,t,e,i)=>{if(P(n[t]))return;const s=U(n[t]),r=s?n[t]:[n[t]],a=[];return r.forEach((o,l)=>{!o||i&&!i(o)||a.push({spec:o,specPath:s?[t,l]:[t],specInfoPath:["component",t,l],type:e})}),a},to=(n,t,e,i)=>{let s;if(s=N(n)?n(t,e):n,i){const{formatFunc:r,args:a}=zs(void 0,i,n,t);r&&a&&(s=r(...a))}return s},bw=(n,t,e)=>P(n)?n:N(n)?n(t,e):n;function cZ(n){var t;const e=!((t=n[0])===null||t===void 0)&&t.series?[{data:n,value:""}]:n;for(const{data:i}of e)for(const{datum:s}of i)for(const r of s??[])if(r)return r}const uZ=n=>{var t,e,i;if((n==null?void 0:n.visible)===!1)return[];const s={mark:((t=n==null?void 0:n.mark)===null||t===void 0?void 0:t.visible)!==!1,dimension:((e=n==null?void 0:n.dimension)===null||e===void 0?void 0:e.visible)!==!1,group:((i=n==null?void 0:n.group)===null||i===void 0?void 0:i.visible)!==!1};return C(n==null?void 0:n.activeType)&&Object.keys(s).forEach(r=>{var a;s[r]=(a=n==null?void 0:n.activeType)===null||a===void 0?void 0:a.includes(r)}),Object.keys(s).filter(r=>s[r])},Zx=(n,t)=>!t||t.visible!==!1&&(!t[n]||t[n].visible!==!1)&&!(t.activeType&&!(U(t.activeType)?t.activeType.includes(n):t.activeType===n));function gZ(n){return P(n.mark)&&P(n.model)&&P(n.datum)}function hb(n,t,e,i,s,r){const a=o=>{if(o){const l={datum:s},h=P(o.key)&&P(o.value)&&!ht(o)?Object.assign(Object.assign(Object.assign({},i),e),o):Object.assign(Object.assign({},i),o);Object.keys(h).forEach(d=>{d==="key"?l.key=db(to(h.key,s,r,h.keyFormatter),h.keyTimeFormat,h.keyTimeFormatMode):d==="value"?l.value=db(to(h.value,s,r,h.valueFormatter),h.valueTimeFormat,h.valueTimeFormatMode):l[d]=to(h[d],s,r)}),l.visible!==!1&&(C(l.key)||C(l.value))&&n.push(l)}};U(t)?t.forEach(o=>{a(o)}):a(t)}function xw(n,t,e,i,s,r,a){N(t)?hb(n,t(s,a),e,i,r,a):t&&hb(n,t,e,i,r,a)}function pZ(n,t,e,i,s,r){if(s&&s.length){const a=[];return s.forEach(o=>{U(n)?n.forEach(l=>{xw(a,l,t,e,i,o,r)}):N(n)?xw(a,n,t,e,i,o,r):n&&hb(a,n,t,e,o,r)}),a}return null}function _Z(n){if(!n||!n.length)return null;const t=[];return n.forEach(({content:e})=>{e&&e.forEach(i=>{t.push(i)})}),t.length?Object.assign(Object.assign({},n[0]),{content:t}):n[0]}const db=(n,t,e)=>{if(!t&&!e)return typeof n!="object"?n==null?void 0:n.toString():n;const i=ns.getInstance();return t=t||"%Y%m%d",((e=e||"local")==="local"?i.timeFormat:i.timeUTCFormat)(t,n)};class Hi{constructor(t){this.activeTriggerSet={mark:new Set,group:new Set},this.ignoreTriggerSet={mark:new Set},this._getSeriesCacheInfo=()=>{var e,i,s;const{series:r}=this,a=r.getSeriesField();return{seriesFields:C(a)?j(a):(e=r.getSeriesKeys())!==null&&e!==void 0?e:[],dimensionFields:(i=r.getDimensionField())!==null&&i!==void 0?i:[],measureFields:(s=r.getMeasureField())!==null&&s!==void 0?s:[],type:r.type}},this._getDimensionData=e=>{const{dimensionFields:i}=this._seriesCacheInfo;return i[0]&&(e==null?void 0:e[i[0]])},this._getMeasureData=e=>{const{measureFields:i}=this._seriesCacheInfo;return i[0]&&(e==null?void 0:e[i[0]])},this._getSeriesFieldData=e=>{const{dimensionFields:i,seriesFields:s}=this._seriesCacheInfo;if(C(s[0])&&(e!=null&&e[s[0]]))return e==null?void 0:e[s[0]];const r=i[i.length-1];return i.length>1&&(s.length===0||this.series.getSeriesKeys().length),e==null?void 0:e[r]},this._getSeriesStyle=(e,i,s)=>{var r;for(const a of j(i)){const o=(r=this.series.getSeriesStyle(e))===null||r===void 0?void 0:r(a);if(C(o))return o}return s},this.markTooltipKeyCallback=(e,i)=>this._getSeriesFieldData(e),this.markTooltipValueCallback=(e,i)=>this._getMeasureData(e),this.shapeTypeCallback=(e,i)=>{var s;return(s=this._getSeriesStyle(e,"shape",null))!==null&&s!==void 0?s:this._getSeriesStyle(e,"symbolType",this.series.getDefaultShapeType())},this.shapeColorCallback=(e,i)=>this._getSeriesStyle(e,["fill","stroke"]),this.shapeStrokeCallback=(e,i)=>this._getSeriesStyle(e,["stroke","fill"]),this.dimensionTooltipTitleCallback=(e,i)=>this._getDimensionData(e),this.groupTooltipTitleCallback=(e,i)=>this._getSeriesFieldData(e),this.groupTooltipKeyCallback=(e,i)=>{const{seriesFields:s}=this._seriesCacheInfo;let r=this._seriesCacheInfo.dimensionFields;return s[0]&&(r=r.filter(a=>a!==s[0])),r.map(a=>e==null?void 0:e[a]).join("-")},this.getHasShape=e=>!!e,this.series=t,this.updateTooltipSpec()}updateTooltipSpec(){var t;const e=(t=this.series.getSpec())===null||t===void 0?void 0:t.tooltip;this.spec=e,this._seriesCacheInfo=this._getSeriesCacheInfo()}getShapeAttrs(t,e,i){var s,r,a,o,l,h,d,c,u,g,p,_;const f=e?"content":"title",m=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(s=i==null?void 0:i.style)===null||s===void 0?void 0:s.shape),i==null?void 0:i[t]),(r=i==null?void 0:i[t])===null||r===void 0?void 0:r[f]),(a=this.spec)===null||a===void 0?void 0:a[t]),(l=(o=this.spec)===null||o===void 0?void 0:o[t])===null||l===void 0?void 0:l[f]);return{shapeType:(h=m.shapeType)!==null&&h!==void 0?h:this.shapeTypeCallback,shapeFill:(c=(d=m.shapeFill)!==null&&d!==void 0?d:m.shapeColor)!==null&&c!==void 0?c:this.shapeColorCallback,shapeStroke:(u=m.shapeStroke)!==null&&u!==void 0?u:this.shapeStrokeCallback,shapeHollow:(g=m.shapeHollow)!==null&&g!==void 0&&g,shapeLineWidth:m.shapeLineWidth,shapeSize:(p=m.shapeSize)!==null&&p!==void 0?p:m.size,hasShape:(_=m.hasShape)!==null&&_!==void 0?_:this.getHasShape(e)}}enableByType(t){return!0}getDefaultContentList(t){return[this.getDefaultContentPattern(t)]}getContentList(t,e,i,s,r,a){var o;return pZ((o=e==null?void 0:e.content)!==null&&o!==void 0?o:this.getDefaultContentList(t),this.getDefaultContentPattern(t),i,s,r,a)}getTitleResult(t,e,i,s,r){let a=N(e)?e(s,r):e;if(a?P(a.value)&&(a=Object.assign(Object.assign({},this.getDefaultTitlePattern(t)),a)):a=this.getDefaultTitlePattern(t),a&&a.visible!==!1){const o=cZ(s),l={visible:to(a.visible,o,r),value:db(to(a.value,o,r,a.valueFormatter),a.valueTimeFormat,a.valueTimeFormatMode),valueStyle:to(a.valueStyle,o,r),hasShape:a.hasShape};return Object.keys(i).forEach(h=>{l[h]=to(i[h],o,r)}),l}return{hasShape:!1,visible:!1}}getTooltipData(t,e,i,s,r){var a,o;if(!(this.enableByType(t)&&Zx(t,this.spec)&&(t!=="dimension"||s&&s.length)))return null;const l=(o=(a=this.spec)===null||a===void 0?void 0:a[t])!==null&&o!==void 0?o:e==null?void 0:e[t],h=this.getShapeAttrs(t,!0,e),d=this.getShapeAttrs(t,!1,e);let c;return t==="dimension"?(c=[],this.getContentList(t,l,h,i,s,r).forEach(u=>{c.push(u)})):c=this.getContentList(t,l,h,i,s,r),{visible:!0,activeType:t,data:i,title:this.getTitleResult(t,l==null?void 0:l.title,d,i,r),content:c}}getDefaultTitlePattern(t){return{key:void 0,value:t==="group"?this.groupTooltipTitleCallback:this.dimensionTooltipTitleCallback}}getDefaultContentPattern(t){return{seriesId:this.series.id,key:t==="group"?this.groupTooltipKeyCallback:this.markTooltipKeyCallback,value:this.markTooltipValueCallback}}}const fZ={min:n=>n.length?Ze(n.map(t=>1*t)):0,max:n=>n.length?Fe(n.map(t=>1*t)):0,"array-min":n=>n.length?Ze(n.map(t=>1*t)):0,"array-max":n=>n.length?Fe(n.map(t=>1*t)):0,values:n=>{const t={},e=[];for(const i of n)t[i]||(e.push(i),t[i]=1);return e}},cb=(n,t)=>{var e,i;let s=t.fields;if(N(s)&&(s=s()),!(s!=null&&s.length)||!(n!=null&&n.length))return{};s=Hl([],s);const r=t.target==="parser"?"parserData":"latestData",a=n[0][r]?n[0][r]:n||[],o=(i=(e=n[0]).getFields)===null||i===void 0?void 0:i.call(e);return CL(a,s,o)},CL=(n,t,e)=>{const i={};let s=[],r=[];return t.forEach(a=>{const o=a.key;i[o]={};const l=e==null?void 0:e[o],h=a.operations,d=h.some(g=>g==="min"||g==="max"||g==="allValid");let c=!0;s.length=0,n&&n.forEach(g=>{g&&s.push(g[o])});const u=s.length;if(d){r.length=0,s.forEach((p,_)=>{ih(p)&&r.push(p)});const g=s;s=r,r=g,c=s.length===u}else s=h.some(g=>g==="array-min"||g==="array-max")?s.reduce((g,p)=>(p&&p.forEach(_=>{ih(_)&&g.push(_)}),g),[]):s.filter(g=>g!==void 0);a.filter&&(s=s.filter(a.filter)),h.forEach(g=>{if(a.customize)i[o][g]=a.customize;else{if(l&&l.lockStatisticsByDomain&&!P(l.domain)){if(g==="values")return void(i[o][g]=l.domain.slice())}else if(g==="allValid")return;i[o][g]=fZ[g](s),g==="array-max"&&(i[o].max=i[o][g]),g==="array-min"&&(i[o].min=i[o][g])}}),d&&(i[o].allValid=c)}),i},mZ=(n,t)=>{const{config:e}=t;if(!e)return n;const{invalidType:i,checkField:s}=e();return i!=="zero"||s&&s.length&&n.forEach(r=>{s.forEach(a=>{ih(r[a])||(r[a]=0)})}),n};class js extends Fs{_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;P(e)||C(this.getProduct())||this._initProduct([])}generateProductId(){var t;return(t=this._data)===null||t===void 0?void 0:t.name}}const Rc=`${_t}_HIERARCHY_DEPTH`,cr=`${_t}_HIERARCHY_ROOT`,vZ=`${_t}_HIERARCHY_ROOT_INDEX`;function hh(){return{keyMap:new Map,needDefaultSeriesField:!this._seriesField,defaultSeriesField:this._seriesField?null:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey)}}function Po(n,t,e){n&&(e.needDefaultSeriesField&&(n[sn]=e.defaultSeriesField),n[Mi]=t,n[ds]=e.getKey(n,t,e))}function Jx(){return{keyMap:new Map,needDefaultSeriesField:!0,defaultSeriesField:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey),categoryField:this.getCategoryField()}}function fm(n,t,e,i=0,s,r){r===void 0&&(r=t),Po(n,t,e),n[Rc]=i,n[cr]=s||n[e.categoryField],n[vZ]=r,n.children&&n.children.length&&n.children.forEach((a,o)=>fm(a,o,e,n[Rc]+1,n[cr],r))}const we={label:{name:"label",type:"text"}},Sw=`${_t}_rect_x`,Aw=`${_t}_rect_x1`,kw=`${_t}_rect_y`,Tw=`${_t}_rect_y1`,yZ={data:!0},Mw={invalidType:!0,animation:!0,animationAppear:!0,animationEnter:!0,animationUpdate:!0,animationExit:!0,animationNormal:!0},bZ=n=>({type:"clipIn",options:{clipDimension:n.direction==="horizontal"?"y":"x"}}),xZ={type:"fadeIn"},SZ=n=>({type:n.direction==="horizontal"?"growPointsXIn":"growPointsYIn",options:{orient:n.direction==="horizontal"?"positive":"negative"}});function AZ(n,t){switch(t){case"grow":return SZ(n);case"fadeIn":return xZ;default:return bZ(n)}}const Os={appear:{duration:1e3,easing:"cubicOut"},update:{type:"update",duration:300,easing:"linear"},enter:{duration:300,easing:"linear"},exit:{duration:300,easing:"linear"},disappear:{duration:500,easing:"cubicIn"},state:{duration:300,easing:"linear"}},Qx={appear:{type:"scaleIn"},enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:{type:"scaleOut"}},mm={appear:{type:"fadeIn"},enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}},vm=()=>{D.registerAnimation("scaleInOut",()=>Qx)},Tr=()=>{D.registerAnimation("fadeInOut",()=>mm)},kZ=()=>{D.registerAnimation("cartesianGroupClip",n=>({appear:{custom:X1,customParameters:(t,e)=>({animationType:"in",group:e.getGraphicItem(),direction:n.direction(),width:n.width(),height:n.height(),orient:n.orient()})},disappear:{custom:X1,customParameters:(t,e)=>({animationType:"out",group:e.getGraphicItem(),direction:n.direction(),width:n.width(),height:n.height(),orient:n.orient()})}}))},PL=(n,t)=>({appear:AZ(n,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},update:[{type:"update",options:{excludeChannels:["points","defined","segments"]}},{channel:["points","segments"],custom:$E,duration:Os.update.duration,easing:Os.update.easing,customParameters:{clipRangeByDimension:n.direction==="horizontal"?"y":"x"}}],disappear:{type:"clipOut"}}),EL=()=>{D.registerAnimation("line",PL)},TZ=()=>{D.registerAnimation("area",PL)},MZ=()=>{Ba.useRegisters([qK,ZK,OK,BK,XK,KK,JK,QK,tq])},RL=()=>{Ba.useRegisters([DK,FK,zK,jK,LK,IK])},OL=()=>{Ba.useRegisters([$K,YK,NK,UK])},BL=()=>{Ba.useRegisters([nL,sL,HK,VK,WK,GK,EK,RK])},LL=()=>{Ba.useRegisters([nL,sL])},ww=[...Object.keys(Os),"normal"];function It(n={},t,e){const i={};for(let s=0;s{h.controlOptions={stopWhenStateChange:!0}}),a?(l=U(a)?a.map((h,d)=>{var c;let u=h;return Ew(u)&&delete u.type,u.oneByOne&&(u=Cw(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:Pw,e==null?void 0:e.dataCount)),u}):o.map((h,d)=>{var c;let u=gt({},o[d],a);return Ew(u)&&delete u.type,u.oneByOne&&(u=Cw(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:Pw,e==null?void 0:e.dataCount)),u}),i[r]=l):i[r]=o}return i}function Nt(n,t,e){var i,s,r,a,o,l;const h={};return C(t.animationAppear)&&(h.appear=(i=t.animationAppear[n])!==null&&i!==void 0?i:t.animationAppear),C(t.animationDisappear)&&(h.disappear=(s=t.animationDisappear[n])!==null&&s!==void 0?s:t.animationDisappear),C(t.animationEnter)&&(h.enter=(r=t.animationEnter[n])!==null&&r!==void 0?r:t.animationEnter),C(t.animationExit)&&(h.exit=(a=t.animationExit[n])!==null&&a!==void 0?a:t.animationExit),C(t.animationUpdate)&&(h.update=(o=t.animationUpdate[n])!==null&&o!==void 0?o:t.animationUpdate),C(t.animationState)&&(h.state=(l=t.animationState[n])!==null&&l!==void 0?l:t.animationState),t.animationNormal&&t.animationNormal[n]&&(h.normal=t.animationNormal[n]),CZ(h,e)}function Cw(n,t,e){const{oneByOne:i,duration:s,delay:r,delayAfter:a}=n;return n.delay=(o,l,h)=>{const d=t(o,h),c=N(s)?s(o,l,h):H(s)?s:0,u=N(r)?r(o,l,h):H(r)?r:0;let g=N(i)?i(o,l,h):i;return g===!1?u:(g=g===!0?0:g,u+d*(c+g))},n.delayAfter=(o,l,h)=>{const d=t(o,h),c=N(s)?s(o,l,h):H(s)?s:0,u=N(a)?a(o,l,h):H(a)?a:0;let g=N(i)?i(o,l,h):i;return g===!1?u:(g=g===!0?0:g,u+((e?e():l.mark.elements.length)-d)*(c+g))},delete n.oneByOne,n}function Pw(n,t){var e,i;return(e=n==null?void 0:n[Mi])!==null&&e!==void 0?e:(i=t==null?void 0:t.VGRAMMAR_ANIMATION_PARAMETERS)===null||i===void 0?void 0:i.elementIndex}function Mr(n,t){var e,i,s,r,a;if(n.animation===!1||((e=n.morph)===null||e===void 0?void 0:e.enable)===!1)return!1;const o=((s=(i=n.animationAppear)===null||i===void 0?void 0:i[t])!==null&&s!==void 0?s:n.animationAppear)!==!1,l=((a=(r=n.animationUpdate)===null||r===void 0?void 0:r[t])!==null&&a!==void 0?a:n.animationUpdate)!==!1;return!(!o||!l)}function wZ(n){return C(n.timeSlices)}function Ew(n){return!wZ(n)&&C(n.channel)}function CZ(n,t){return n&&(ub(n=xn(n),e=>{var i;return N(e)&&((i=e.prototype)===null||i===void 0?void 0:i.constructor)!==e?(...s)=>e(...s,t):e}),n)}function ub(n,t){if(U(n))n.forEach((e,i)=>{n[i]=t(n[i],i),ub(n[i],t)});else if(yt(n))for(const e in n)n[e]=t(n[e],e),ub(n[e],t)}function Rw(n){var t,e,i,s;const r=n.getSpec();if(r.animation===!1||!C(n.getRegion().animate))return!1;let a=(t=r.animationThreshold)!==null&&t!==void 0?t:Number.MAX_SAFE_INTEGER;return(e=n.getMarks())===null||e===void 0||e.forEach(o=>{const l=o.getMarkConfig();l&&(l.large&&l.largeThreshold&&(a=Math.min(a,l.largeThreshold)),l.progressiveThreshold&&(a=Math.min(a,l.progressiveThreshold)))}),!(((s=(i=n.getRawData())===null||i===void 0?void 0:i.latestData)===null||s===void 0?void 0:s.length)>=a)}class Vi extends gm{constructor(){super(...arguments),this.markLabelSpec={}}getLabelSpec(t){return this.markLabelSpec[t]}setLabelSpec(t,e){this.markLabelSpec[t]=j(e)}addLabelSpec(t,e,i=!1){this.markLabelSpec[t]||(this.markLabelSpec[t]=[]),i?this.markLabelSpec[t].unshift(e):this.markLabelSpec[t].push(e)}getTheme(t,e){var i,s,r;const a=aB(t),o=(i=this._option)===null||i===void 0?void 0:i.getTheme(),{markByName:l,mark:h}=o,d=this._option.type,c=D.getSeriesMarkMap(d)?GX(wt(o,`series.${d}`),d,h,l):{},u=wt(o,`series.${d}_${a}`),g=((r=(s=this.stack)!==null&&s!==void 0?s:u==null?void 0:u.stack)!==null&&r!==void 0?r:c!=null&&c.stack)?wt(o,`series.${d}_stack`):void 0;return gt({},c,u,g)}transformSpec(t,e,i){this._transformStack(t);const s=super.transformSpec(t,e,i);return this._transformLabelSpec(s.spec),Object.assign(Object.assign({},s),{markLabelSpec:this.markLabelSpec,stack:this.stack})}_transformLabelSpec(t){}_transformStack(t){Me(t.stack)&&(this.stack=t.stack),Me(t.percent)&&(this.stack=t.percent||this.stack),P(this.stack)&&this._supportStack&&t.seriesField&&(this.stack=!0)}_addMarkLabelSpec(t,e,i="label",s="initLabelMarkStyle",r=!0,a){t&&j(t[i]).forEach(o=>{var l,h,d;if(o&&o.visible){const{animation:c=!0,animationUpdate:u=!0,animationEnter:g=!0,animationExit:p=!0}=o,{animationUpdate:_=!0,animationEnter:f=!0,animationExit:m=!0}=t,v=!!((d=(h=(l=this._option)===null||l===void 0?void 0:l.animation)!==null&&h!==void 0?h:t.animation)!==null&&d!==void 0?d:o.animation)&&!!r;this.addLabelSpec(e,Object.assign(Object.assign({},o),{animation:!!v&&c,animationUpdate:!!(v&&_&&u)&&_,animationEnter:!!(v&&f&&g)&&f,animationExit:!!(v&&f&&p)&&m,getStyleHandler:y=>{var b;return(b=y[s])===null||b===void 0?void 0:b.bind(y)}}),a)}})}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{outerRadius:s,innerRadius:r,direction:a}=t;return C(s)&&(i.outerRadius=s),C(r)&&(i.innerRadius=r),C(a)&&(i.direction=a),Object.keys(i).length>0?i:void 0}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const s=this._getDefaultSpecFromChart(e),r=a=>{const o=gt({},i,s,a),l=i.label;return l&&yt(l)&&U(o.label)&&(o.label=o.label.map(h=>gt({},l,h))),o};return U(t)?{spec:t.map(a=>r(a)),theme:i}:{spec:r(t),theme:i}}return{spec:t,theme:i}}}function PZ(n){return n===Ue["desktop-browser"]||n===Ue["desktop-miniApp"]?{hover:{enable:!0,trigger:"pointermove",triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"pointertap"}}:xa(n)||Pa(n)?{hover:{enable:!0,trigger:["pointerdown","pointermove"],triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"tap"}}:null}class Eo extends Kx{getRegion(){return this._region}getLayoutStartPoint(){return this._region.getLayoutStartPoint()}getRootMark(){return this._rootMark}getSeriesMark(){return this._seriesMark}getRawData(){return this._rawData}getViewDataFilter(){return this._viewDataFilter}getViewData(){var t;return(t=this._data)===null||t===void 0?void 0:t.getDataView()}getViewDataProductId(){var t;return(t=this._data)===null||t===void 0?void 0:t.getProductId()}getViewDataStatistics(){return this._viewDataStatistics}getViewStackData(){return this._viewStackData}getSeriesField(){return this._seriesField}setSeriesField(t){C(t)&&(this._seriesField=t)}getGroups(){return this._groups}getStack(){var t;return(t=this.getSpecInfo())===null||t===void 0?void 0:t.stack}getStackValue(){var t;return(t=this._spec.stackValue)!==null&&t!==void 0?t:`${_t}_series_${this.type}`}getPercent(){return this._spec.percent}getStackOffsetSilhouette(){return this._spec.stackOffsetSilhouette}get tooltipHelper(){return this._tooltipHelper||this.initTooltip(),this._tooltipHelper}getInvalidType(){return this._invalidType}setInvalidType(t){var e;this._invalidType=t,(e=this.getViewData())===null||e===void 0||e.reRunAllTransform()}getMarkAttributeContext(){return this._markAttributeContext}constructor(t,e){var i;super(t,e),this.specKey="series",this.type="series",this.layoutType="absolute",this.modelType="series",this.name=void 0,this.transformerConstructor=Vi,this.coordinate="none",this._region=null,this._layoutStartPoint={x:0,y:0},this._layoutRect={width:null,height:null},this.getLayoutRect=()=>{var s,r;return{width:(s=this._layoutRect.width)!==null&&s!==void 0?s:this._region.getLayoutRect().width,height:(r=this._layoutRect.height)!==null&&r!==void 0?r:this._region.getLayoutRect().height}},this._rootMark=null,this._seriesMark=null,this._viewDataMap=new Map,this._viewDataFilter=null,this._data=null,this.layoutZIndex=ee.SeriesGroup,this._invalidType="break",this._region=e.region,this._dataSet=e.dataSet,!((i=this._spec)===null||i===void 0)&&i.name&&(this.name=this._spec.name)}created(){super.created(),this._buildMarkAttributeContext(),this.initData(),this.initGroups(),this.initStatisticalData(),this.event.emit(lt.afterInitData,{model:this}),this.initRootMark(),this.initMark();const t=Rw(this);this._initExtensionMark({hasAnimation:t}),this.initMarkStyle(),this.initMarkState(),t&&this.initAnimation(),this._option.disableTriggerEvent||this.initInteraction(),this.afterInitMark(),this.initEvent(),this.event.emit(lt.afterInitEvent,{model:this})}_buildMarkAttributeContext(){this._markAttributeContext={vchart:this._option.globalInstance,globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)},seriesColor:t=>{var e;return P(t)&&(t=this.getSeriesKeys()[0]),(e=this._option.globalScale.getScale("color"))===null||e===void 0?void 0:e.scale(t)},getRegion:()=>this._region}}setAttrFromSpec(){super.setAttrFromSpec(),this.setSeriesField(this._spec.seriesField),C(this._spec.invalidType)&&(this._invalidType=this._spec.invalidType)}getInvalidCheckFields(){return[this.getStackValueField()]}initInvalidDataTransform(){var t,e;this._invalidType==="zero"&&(!((t=this._rawData)===null||t===void 0)&&t.dataSet)&&(vt(this._rawData.dataSet,"invalidTravel",mZ),(e=this._rawData)===null||e===void 0||e.transform({type:"invalidTravel",options:{config:()=>({invalidType:this._invalidType,checkField:this.getInvalidCheckFields()})}},!1))}initData(){var t,e,i;const s=(t=this._spec.data)!==null&&t!==void 0?t:this._option.getSeriesData(this._spec.dataId,this._spec.dataIndex);if(s&&(this._rawData=$x(s,this._dataSet,this._option.sourceDataList)),(i=(e=this._rawData)===null||e===void 0?void 0:e.target)===null||i===void 0||i.addListener("change",this.rawDataUpdate.bind(this)),this._addDataIndexAndKey(),this._rawData){this.getStack()&&(this._viewDataFilter=lb(this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewDataFilter`}));const r=lb(this.getStack()?this._viewDataFilter:this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewData`});this._data=new js(this._option,r),this.getStack()&&this._viewDataFilter.target.removeListener("change",r.reRunAllTransform)}this.initInvalidDataTransform()}initGroups(){const t=this.getGroupFields();t&&t.length&&(this._groups={fields:t})}initStatisticalData(){this._data&&this._statisticViewData()}getRawDataStatisticsByField(t,e){var i,s,r;if(this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]||e&&(P(this._rawStatisticsCache[t].min)||P(this._rawStatisticsCache[t].max))||!e&&P(this._rawStatisticsCache[t].values)){if(this._viewDataStatistics&&(!this._viewDataFilter||this._viewDataFilter.transformsArr.length<=1)&&this.getViewData().transformsArr.length<=1&&(!((i=this._viewDataStatistics.latestData)===null||i===void 0)&&i[t]))this._rawStatisticsCache[t]=this._viewDataStatistics.latestData[t];else if(this._rawData){const a=(s=this._rawData.getFields())===null||s===void 0?void 0:s[t];if(a&&a.lockStatisticsByDomain&&a.domain)this._rawStatisticsCache[t]={},e?(this._rawStatisticsCache[t].min=Ze(a.domain),this._rawStatisticsCache[t].max=Fe(a.domain)):this._rawStatisticsCache[t].values=a.domain;else{const o=CL(this._rawData.latestData,[{key:t,operations:e?["min","max"]:["values"]}])[t];this._rawStatisticsCache[t]=$((r=this._rawStatisticsCache[t])!==null&&r!==void 0?r:{},o)}}}return this._rawStatisticsCache[t]}_statisticViewData(){vt(this._dataSet,"dimensionStatistics",cb);const t=`${this.type}_${this.id}_viewDataStatic`;this._viewDataStatistics=new Gt(this._dataSet,{name:t}),this._viewDataStatistics.parse([this._data.getDataView()],{type:"dataview"}),this._viewDataStatistics.transform({type:"dimensionStatistics",options:{fields:()=>{const e=this.getStatisticFields();return this._seriesField&&Hl(e,[{key:this._seriesField,operations:["values"]}]),e},target:"latest"}},!1),this._data.getDataView().target.removeListener("change",this._viewDataStatistics.reRunAllTransform),this.getStack()&&this.createdStackData()}createStatisticalData(t,e,i){vt(this._dataSet,"dimensionStatistics",cb);const s=new Gt(this._dataSet,{name:t});return s.parse([e],{type:"dataview"}),s.transform({type:"dimensionStatistics",options:{operations:["max","min","values"],fields:()=>{var r;const a=Hl(this.getStatisticFields(),(r=i==null?void 0:i(e.name))!==null&&r!==void 0?r:[]);return this._seriesField&&Hl(a,[{key:this._seriesField,operations:["values"]}]),a},target:"latest"}},!1),s}createdStackData(){const t=`${this.type}_${this.id}_viewStackData`;this._viewStackData=new Gt(this._dataSet,{name:t}),this._viewStackData.parse([this._viewDataFilter],{type:"dataview"}),this._viewStackData.transform({type:"stackSplit",options:{fields:this.getStackGroupFields()}},!1)}_noAnimationDataKey(t,e){return e}generateDefaultDataKey(t){var e;return P(t)?(i,s,r)=>{if(this._spec.animation===!1){const l=this._noAnimationDataKey(i,s);if(l!==void 0)return l}const{keyMap:a}=r,o=this._getSeriesDataKey(i);return a.get(o)===void 0?(a.set(o,0),o):(a.set(o,a.get(o)+1),`${o}_${a.get(o)}`)}:tt(t)?i=>i[t]:U(t)&&t.every(i=>tt(i))?i=>t.map(s=>i[s]).join("-"):N(t)?(i,s)=>t(i,s):((e=this._option)===null||e===void 0||e.onError(`invalid dataKey: ${t}`),(i,s)=>{})}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(vt(this._rawData.dataSet,"addVChartProperty",Mh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:hh.bind(this),call:Po}},!1))}updateRawData(t){this._rawData&&this._rawData.updateRawData(t)}rawDataUpdate(t){var e;(e=this._rawDataStatistics)===null||e===void 0||e.reRunAllTransform(),this._rawStatisticsCache=null,this.event.emit(lt.rawDataUpdate,{model:this})}viewDataFilterOver(t){this.event.emit(lt.viewDataFilterOver,{model:this})}viewDataUpdate(t){var e;this.event.emit(lt.viewDataUpdate,{model:this}),(e=this._data)===null||e===void 0||e.updateData(),this._viewDataStatistics&&this._viewDataStatistics.reRunAllTransform()}viewDataStatisticsUpdate(t){this.event.emit(lt.viewDataStatisticsUpdate,{model:this})}getDatumPositionValue(t,e){return!t||P(e)?null:t[e]}getDatumPositionValues(t,e){return!t||P(e)?[]:tt(e)?[t[e]]:e.map(i=>t[i])}setValueFieldToStack(){}setValueFieldToPercent(){}setValueFieldToStackOffsetSilhouette(){}initRootMark(){var t,e,i;this._rootMark=this._createMark({type:"group",name:`seriesGroup_${this.type}_${this.id}`},{parent:(e=(t=this._region).getGroupMark)===null||e===void 0?void 0:e.call(t),dataView:!1}),this._rootMark.setMarkConfig({zIndex:(i=this._spec.zIndex)!==null&&i!==void 0?i:this.layoutZIndex})}_getExtensionMarkNamePrefix(){return`${this.type}_${this.id}_extensionMark`}_initExtensionMark(t){var e;if(!this._spec.extensionMark)return;const i=this.getMarksWithoutRoot();t.depend=i,(e=this._spec.extensionMark)===null||e===void 0||e.forEach((s,r)=>{this._createExtensionMark(s,null,this._getExtensionMarkNamePrefix(),r,t)})}_createExtensionMark(t,e,i,s,r){var a;const o=this._createMark({type:t.type,name:C(t.name)?`${t.name}`:`${i}_${s}`},{skipBeforeLayouted:!0,markSpec:t,parent:e,dataView:!1,componentType:t.componentType,depend:r.depend,key:t.dataKey},{setCustomizedShape:t==null?void 0:t.customShape});if(o){if(C(t.id)&&o.setUserId(t.id),r.hasAnimation){const l=It({},Nt(t.type,t,this._markAttributeContext));o.setAnimationConfig(l)}if(t.type==="group")i=`${i}_${s}`,(a=t.children)===null||a===void 0||a.forEach((l,h)=>{this._createExtensionMark(l,o,i,h,r)});else if(!(e||P(t.dataId)&&P(t.dataIndex))){const l=this._option.getSeriesData(t.dataId,t.dataIndex);l===this._rawData?o.setDataView(this.getViewData(),this.getViewDataProductId()):(o.setDataView(l),l.target.addListener("change",()=>{o.getData().updateData()}))}}}_updateExtensionMarkSpec(){var t;(t=this._spec.extensionMark)===null||t===void 0||t.forEach((e,i)=>{const s=this._marks.getMarkWithInfo({name:`${this._getExtensionMarkNamePrefix()}_${i}`});s&&(this.initMarkStyleWithSpec(s,e),s.updateStaticEncode(),s.updateLayoutState())})}getStackData(){var t;return(t=this._viewStackData)===null||t===void 0?void 0:t.latestData}_parseSelectorOfInteraction(t,e){if(!e||!e.length)return[];const i=[];return t.markIds?e.filter(s=>{t.markIds.includes(s.getProductId())&&i.push(`#${s.getProductId()}`)}):t.markNames?e.forEach(s=>{t.markNames.includes(s.name)&&i.push(`#${s.getProductId()}`)}):e.forEach(s=>{i.push(`#${s.getProductId()}`)}),i}_parseDefaultInteractionConfig(t){if(!(t!=null&&t.length))return[];const e=PZ(this._option.mode);let i=Object.assign({},e==null?void 0:e.hover),s=Object.assign({},e==null?void 0:e.select);const r=this._spec.hover;Me(r)?i.enable=r:yt(r)&&(i.enable=!0,i=gt(i,r));const a=this._spec.select;Me(a)?s.enable=a:yt(a)&&(s.enable=!0,s=gt(s,a));const o=[];if(i.enable){const l=this._parseSelectorOfInteraction(i,t);l.length&&o.push({seriesId:this.id,regionId:this._region.id,selector:l,type:"element-highlight",trigger:i.trigger,triggerOff:i.triggerOff,blurState:it.STATE_HOVER_REVERSE,highlightState:it.STATE_HOVER})}if(s.enable){const l=this._parseSelectorOfInteraction(s,t),h=s.mode==="multiple",d=C(s.triggerOff)?s.triggerOff:h?["empty"]:["empty",s.trigger];l.length&&o.push({type:"element-select",seriesId:this.id,regionId:this._region.id,selector:l,trigger:s.trigger,triggerOff:d,reverseState:it.STATE_SELECTED_REVERSE,state:it.STATE_SELECTED,isMultiple:h})}return o}_parseInteractionConfig(t){const e=this.getCompiler();if(!e)return;const{interactions:i}=this._spec,s=this._parseDefaultInteractionConfig(t);s&&s.length&&s.forEach(r=>{e.addInteraction(r)}),i&&i.length&&i.forEach(r=>{const a=this._parseSelectorOfInteraction(r,this.getMarks());a.length&&e.addInteraction(Object.assign(Object.assign({},r),{selector:a,seriesId:this.id,regionId:this._region.id}))})}initInteraction(){const t=this.getMarksWithoutRoot();this._parseInteractionConfig(t)}initAnimation(){}initMarkState(){this.initSeriesStyleState()}initSeriesStyleState(){var t;const e=this._spec.seriesStyle;if(!e||!e.length)return;const i=(t=this._seriesField)!==null&&t!==void 0?t:sn;this.getMarksWithoutRoot().forEach(s=>{const r={},a={},o={};e.forEach(h=>{var d;const c=(d=h[s.name])===null||d===void 0?void 0:d.style;c&&(r[h.name]=!0,o[h.name]=o[h.name]||{},Object.keys(c).forEach(u=>{a[u]=!0,o[h.name][u]=c[u]}))}),s.state.addStateInfo({stateValue:VM,level:-1,filter:h=>Array.isArray(h)?h.length!==0&&r[h[0][i]]===!0:r[h[i]]===!0});const l={};Object.keys(a).forEach(h=>{l[h]=d=>{var c,u;let g;if(Array.isArray(d)){if(d.length===0)return;g=(c=o[d[0][i]])===null||c===void 0?void 0:c[h]}return g=(u=o[d[i]])===null||u===void 0?void 0:u[h],C(g)?g:s.getAttribute(h,d)}}),this.setMarkStyle(s,l,VM,Z.User_SeriesStyle)})}afterInitMark(){this.event.emit(lt.afterInitMark,{model:this}),this.setSeriesField(this._spec.seriesField),this.getMarks().forEach(t=>{var e,i;!((i=(e=t.stateStyle)===null||e===void 0?void 0:e.normal)===null||i===void 0)&&i.lineWidth&&t.setAttribute("stroke",this.getColorAttribute(),"normal",Z.Base_Series)})}getMarksWithoutRoot(){return this.getMarks().filter(t=>!t.name.includes("seriesGroup"))}getMarksInType(t){return this._marks.getMarksInType(t)}getMarkInName(t){return this._marks.get(t)}getMarkInId(t){return this.getMarks().find(e=>e.id===t)}initEvent(){var t,e,i;(e=(t=this._data)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.target.addListener("change",this.viewDataUpdate.bind(this)),(i=this._viewDataStatistics)===null||i===void 0||i.target.addListener("change",this.viewDataStatisticsUpdate.bind(this))}_releaseEvent(){super._releaseEvent(),this.getCompiler().removeInteraction(this.id)}initTooltip(){this._tooltipHelper=new Hi(this)}_compareExtensionMarksSpec(t,e,i){t.length!==e.length||e.some((s,r)=>s.type!==t[r].type||s.id!==t[r].id)?i.reMake=!0:e.some((s,r)=>s.visible!==t[r].visible)&&(i.reCompile=!0)}_compareLabelSpec(t,e,i){t.length!==e.length||e.some((s,r)=>s.labelLayout!==t[r].labelLayout||s.visible!==t[r].visible)?i.reMake=!0:!i.reCompile&&e.some((s,r)=>!Jt(s,t[r]))&&(i.reCompile=!0)}_compareSpec(t,e,i){const s=super._compareSpec(t,e),r=Object.keys(e||{}).sort(),a=Object.keys(t||{}).sort();if(!Jt(r,a))return s.reMake=!0,s;const o=Object.assign(Object.assign(Object.assign(Object.assign({},yZ),Mw),i),{extensionMark:!0,label:!0,totalLabel:!0});return this._compareExtensionMarksSpec(j(t.extensionMark),j(e.extensionMark),s),!s.reMake&&this._compareLabelSpec(j(t.label),j(e.label),s),!s.reMake&&this._compareLabelSpec(j(t.totalLabel),j(e.totalLabel),s),s.reMake?s:(!s.reCompile&&this._marks.getMarks().some(l=>{var h,d;return o[l.name]=!0,((h=e[l.name])===null||h===void 0?void 0:h.visible)!==((d=t[l.name])===null||d===void 0?void 0:d.visible)})&&(s.reCompile=!0),!s.reCompile&&r.some(l=>Mw[l]&&!Jt(t[l],e[l]))&&(s.reCompile=!0),r.some(l=>!o[l]&&!Jt(t[l],e[l]))&&(s.reMake=!0),s)}_updateSpecData(){!this._rawData||!this._spec.data||this._spec.data instanceof Gt||Yx(this._rawData,this._spec.data,!0)}reInit(t){super.reInit(t);const e=this.getMarksWithoutRoot();e.forEach(i=>{this._spec[i.name]&&this.initMarkStyleWithSpec(i,this._spec[i.name])}),this.initMarkStyle(),e.forEach(i=>{i.updateStaticEncode(),i.updateLayoutState(!0)}),this._updateExtensionMarkSpec(),this._updateSpecData(),this._tooltipHelper&&this._tooltipHelper.updateTooltipSpec(),Rw(this)&&this.initAnimation()}onEvaluateEnd(t){this._data.updateData()}onRender(t){}release(){var t,e,i;super.release(),this._viewDataMap.clear();const s=(e=(t=this._rawData)===null||t===void 0?void 0:t.transformsArr)===null||e===void 0?void 0:e.findIndex(r=>r.type==="addVChartProperty");s>=0&&this._rawData.transformsArr.splice(s,1),(i=this._data)===null||i===void 0||i.release(),this._dataSet=this._data=this._rawData=this._rawDataStatistics=this._spec=this._region=this._viewDataStatistics=this._viewStackData=null}setLayoutStartPosition(t){H(t.x)&&(this._layoutStartPoint.x=t.x),H(t.y)&&(this._layoutStartPoint.y=t.y)}setLayoutRect({width:t,height:e},i){H(t)&&(this._layoutRect.width=t),H(e)&&(this._layoutRect.height=e)}getSeriesKeys(){var t,e;return this._seriesField?(e=(t=this.getRawDataStatisticsByField(this._seriesField))===null||t===void 0?void 0:t.values)!==null&&e!==void 0?e:[]:this.name?[this.name]:this.userId?[`${this.userId}`]:[`${this.type}_${this.id}`]}getSeriesStyle(t){return e=>{var i,s;return(s=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&s!==void 0?s:void 0}}_getSeriesInfo(t,e){const i=this.getDefaultShapeType();return e.map(s=>({key:s,originalKey:s,style:this.getSeriesStyle({[t]:s}),shapeType:i}))}getSeriesInfoInField(t){var e,i;return this._getSeriesInfo(t,(i=(e=this.getRawDataStatisticsByField(t))===null||e===void 0?void 0:e.values)!==null&&i!==void 0?i:[])}getSeriesInfoList(){var t;return this._getSeriesInfo((t=this._seriesField)!==null&&t!==void 0?t:sn,this.getSeriesKeys())}_getDefaultColorScale(){var t,e;const i=this.getDefaultColorDomain(),s=this._getDataScheme();return(e=(t=new vu().domain(i)).range)===null||e===void 0?void 0:e.call(t,s)}_getDataScheme(){return Mc(this.getColorScheme(),this.type)}getDefaultColorDomain(){var t,e;return this._seriesField?(e=(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._seriesField])===null||e===void 0?void 0:e.values:[]}getColorAttribute(){var t,e;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(e=this._seriesField)!==null&&e!==void 0?e:sn}}getDimensionField(){return[]}getMeasureField(){return[]}onMarkPositionUpdate(){this.onMarkTreePositionUpdate(this.getMarksWithoutRoot())}onMarkTreePositionUpdate(t){}_createMark(t,e={},i={}){var s,r,a,o,l,h;const{key:d,groupKey:c,skipBeforeLayouted:u,themeSpec:g={},markSpec:p,dataView:_,dataProductId:f,parent:m,isSeriesMark:v,depend:y,stateSort:b,noSeparateStyle:x=!1}=e,S=super._createMark(t,{key:d??this._getDataIdKey(),seriesId:this.id,attributeContext:this._markAttributeContext,componentType:e.componentType,noSeparateStyle:x});if(C(S)){const A=this.getSpec()||{};this._marks.addMark(S,{name:t.name}),v&&(this._seriesMark=S),P(m)?(s=this._rootMark)===null||s===void 0||s.addMark(S):m!==!1&&m.addMark(S),P(_)?(S.setDataView(this.getViewData(),this.getViewDataProductId()),S.setSkipBeforeLayouted(!0)):_!==!1&&S.setDataView(_,f),Me(u)&&S.setSkipBeforeLayouted(u),C(y)&&S.setDepend(...j(y)),P(c)||S.setGroupKey(c),b&&S.setStateSortCallback(b);const k=Object.assign(Object.assign({},i),{morph:(r=i.morph)!==null&&r!==void 0&&r,support3d:(a=i.support3d)!==null&&a!==void 0?a:A.support3d||!!A.zField,morphKey:((o=A.morph)===null||o===void 0?void 0:o.morphKey)||`${this.getSpecIndex()}_${this.getMarks().length}`,morphElementKey:(h=(l=A.morph)===null||l===void 0?void 0:l.morphElementKey)!==null&&h!==void 0?h:i.morphElementKey});S.setMarkConfig(k),this.initMarkStyleWithSpec(S,gt({},g,p||A[S.name]))}return S}_getDataIdKey(){var t;return(t=super._getDataIdKey())!==null&&t!==void 0?t:ds}_getSeriesDataKey(t){let e="";if(!t)return e;const i=this.getDimensionField();e=i.map(r=>t[r]).join("_");const s=this.getSeriesField();return s&&!i.includes(s)&&(e+=`_${t[s]}`),e}addViewDataFilter(t){var e,i;(i=(e=this._viewDataFilter)!==null&&e!==void 0?e:this.getViewData())===null||i===void 0||i.transform(t,!1)}reFilterViewData(){var t,e;(e=(t=this._viewDataFilter)!==null&&t!==void 0?t:this.getViewData())===null||e===void 0||e.reRunAllTransform()}reTransformViewData(){var t,e;(e=(t=this._data)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.reRunAllTransform()}fillData(){var t;(t=this.getRawData())===null||t===void 0||t.reRunAllTransform()}compile(){this.compileData()}getDefaultShapeType(){return"circle"}getFieldAlias(t){var e;return t!==on&&t!==ka&&t!==Un&&t!==bo||(t=this.getStackValueField()),(e=x_(this.getRawData(),t))!==null&&e!==void 0?e:t}_getInvalidConnectType(){return this._invalidType==="zero"?"zero":this._invalidType==="link"?"connect":"none"}_getInvalidDefined(t){const e=this.getInvalidCheckFields();return!e.length||e.every(i=>ih(t[i]))}_getRelatedComponentSpecInfo(t){var e;const i=this.getSpecIndex(),s=(e=this._option.getSpecInfo().component[t])===null||e===void 0?void 0:e.filter(r=>r.seriesIndexes.includes(i));return s??[]}_forEachStackGroup(t,e){var i,s;(e=e??((i=this._viewStackData)===null||i===void 0?void 0:i.latestData))&&(!((s=e.values)===null||s===void 0)&&s.length?t(e):e.nodes&&Object.values(e.nodes).forEach(r=>{this._forEachStackGroup(t,r)}))}isDatumInViewData(t){if(!t)return!1;const e=this.getViewData().latestData;return!!e&&(!!e.includes(t)||e.some(i=>Object.keys(t).every(s=>t[s]===i[s])))}getSeriesFieldValue(t,e){var i;return t[(i=e??this.getSeriesField())!==null&&i!==void 0?i:sn]}}Eo.mark=we,Eo.transformerConstructor=Vi;function EZ(n){return[Y.rose,Y.radar,Y.circularProgress].includes(n)}function IL(n,t,e){const i=n.getScale(0),s="isInverse"in n&&n.isInverse();Qt(i.type)?e.sort((r,a)=>(r[t]-a[t])*(s?-1:1)):e.sort((r,a)=>(i.index(r[t])-i.index(a[t]))*(s?-1:1))}function Ia(n){return{dataIndex:t=>{var e,i;const s=n.direction==="horizontal"?n.fieldY[0]:n.fieldX[0],r=t==null?void 0:t[s],a=n.direction==="horizontal"?n.scaleY:n.scaleX;return((i=(e=a==null?void 0:a.domain)===null||e===void 0?void 0:e.call(a))!==null&&i!==void 0?i:[]).indexOf(r)||0},dataCount:()=>{var t,e,i;const s=n.direction==="horizontal"?n.scaleY:n.scaleX;return(i=((e=(t=s==null?void 0:s.domain)===null||t===void 0?void 0:t.call(s))!==null&&e!==void 0?e:[]).length)!==null&&i!==void 0?i:0}}}class Xn extends Eo{constructor(){super(...arguments),this.coordinate="cartesian",this._bandPosition=.5,this._scaleConfig={bandPosition:this._bandPosition},this._direction="vertical",this._sortDataByAxis=!1,this._getPositionXEncoder=()=>{var t;return(t=this._positionXEncoder)===null||t===void 0?void 0:t.bind(this)},this._setPositionXEncoder=t=>{this._positionXEncoder=t.bind(this)},this._getPositionYEncoder=()=>{var t;return(t=this._positionYEncoder)===null||t===void 0?void 0:t.bind(this)},this._setPositionYEncoder=t=>{this._positionYEncoder=t.bind(this)}}_buildScaleConfig(){this._scaleConfig={bandPosition:this._bandPosition}}get fieldX(){return this._fieldX}setFieldX(t){this._fieldX=j(t)}get fieldY(){return this._fieldY}setFieldY(t){this._fieldY=j(t)}get fieldZ(){return this._fieldZ}setFieldZ(t){this._fieldZ=t&&j(t)}get fieldX2(){return this._fieldX2}setFieldX2(t){this._fieldX2=t}get fieldY2(){return this._fieldY2}setFieldY2(t){this._fieldY2=t}get direction(){return this._direction}get scaleX(){return this._scaleX}setScaleX(t){this._scaleX=t}get scaleY(){return this._scaleY}setScaleY(t){this._scaleY=t}get scaleZ(){return this._scaleZ}setScaleZ(t){this._scaleZ=t}getXAxisHelper(){return this._xAxisHelper}setXAxisHelper(t){this._xAxisHelper=t,this.onXAxisHelperUpdate()}getYAxisHelper(){return this._yAxisHelper}setYAxisHelper(t){this._yAxisHelper=t,this.onYAxisHelperUpdate()}getZAxisHelper(){return this._zAxisHelper}setZAxisHelper(t){this._zAxisHelper=t,this.onYAxisHelperUpdate()}get sortDataByAxis(){return this._sortDataByAxis}getStatisticFields(){const t=[];return[{axisHelper:this.getXAxisHelper(),fields:this._fieldX2?[...this._fieldX,this._fieldX2]:this._fieldX},{axisHelper:this.getYAxisHelper(),fields:this._fieldY2?[...this._fieldY,this._fieldY2]:this._fieldY},{axisHelper:this.getZAxisHelper(),fields:this._fieldZ}].forEach(e=>{e.axisHelper&&e.axisHelper.getScale&&e.fields&&e.fields.forEach(i=>{const s={key:i,operations:[]},r=e.axisHelper.getScale(0);Qt(r.type)?(s.operations=["max","min"],r.type==="log"&&(s.filter=a=>a>0)):s.operations=["values"],t.push(s)})}),this.getStack()&&t.push({key:this.getStackValueField(),operations:["allValid"]}),t}getGroupFields(){return this.direction==="vertical"?this._fieldX:this._fieldY}getStackGroupFields(){return this.getGroupFields()}getStackValue(){var t,e;const i=(t=this.direction==="horizontal"?this.getXAxisHelper():this.getYAxisHelper())===null||t===void 0?void 0:t.getAxisId();return(e=this._spec.stackValue)!==null&&e!==void 0?e:`${_t}_series_${this.type}_${i}`}getStackValueField(){return this.direction==="horizontal"?j(this._spec.xField)[0]:j(this._spec.yField)[0]}setValueFieldToStack(){this.direction==="horizontal"?(this.setFieldX(on),this.setFieldX2(Un)):(this.setFieldY(on),this.setFieldY2(Un))}setValueFieldToPercent(){this.direction==="horizontal"?(this.setFieldX(ka),this.setFieldX2(bo)):(this.setFieldY(ka),this.setFieldY2(bo))}setValueFieldToStackOffsetSilhouette(){this.direction==="horizontal"?(this.setFieldX(eb),this.setFieldX2(tb)):(this.setFieldY(eb),this.setFieldY2(tb))}onXAxisHelperUpdate(){this.onMarkPositionUpdate()}onYAxisHelperUpdate(){this.onMarkPositionUpdate()}onZAxisHelperUpdate(){this.onMarkPositionUpdate()}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this.setFieldX(this._spec.xField),this.setFieldY(this._spec.yField),this.setFieldZ(this._spec.zField),this._specXField=j(this._spec.xField),this._specYField=j(this._spec.yField),C(this._spec.direction)&&(this._direction=this._spec.direction),this.setFieldX2((t=this._spec)===null||t===void 0?void 0:t.x2Field),this.setFieldY2((e=this._spec)===null||e===void 0?void 0:e.y2Field),this.getStack()&&this.setValueFieldToStack(),this.getPercent()&&this.setValueFieldToPercent(),this.getStackOffsetSilhouette()&&this.setValueFieldToStackOffsetSilhouette(),C(this._spec.sortDataByAxis)&&(this._sortDataByAxis=this._spec.sortDataByAxis===!0)}dataToPosition(t,e){return t?e&&!this.isDatumInViewData(t)?null:{x:this.dataToPositionX(t),y:this.dataToPositionY(t)}:null}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToX=this.valueToPositionX.bind(this),this._markAttributeContext.valueToY=this.valueToPositionY.bind(this),this._markAttributeContext.xBandwidth=(t=0)=>{var e,i,s;return(s=(i=(e=this.getXAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&s!==void 0?s:0},this._markAttributeContext.yBandwidth=(t=0)=>{var e,i,s;return(s=(i=(e=this.getYAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&s!==void 0?s:0},this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this)}valueToPosition(t,e){return{x:this.valueToPositionX(t),y:this.valueToPositionY(e)}}_axisPosition(t,e,i){return this._scaleConfig.datum=i,t.isContinuous?t.valueToPosition(e,this._scaleConfig):t.dataToPosition(j(e),this._scaleConfig)}valueToPositionX(t,e){return this._axisPosition(this._xAxisHelper,t,e)}valueToPositionY(t,e){return this._axisPosition(this._yAxisHelper,t,e)}_dataToPosition(t,e,i,s,r,a){const o=r();if(o)return o(t);if(!e)return a(h=>Number.NaN),Number.NaN;const l=(e.getFields?e.getFields():i).slice(0,s);return l&&l.length!==0?(e.isContinuous?a(h=>(this._scaleConfig.datum=h,e.valueToPosition(this.getDatumPositionValue(h,l[0]),this._scaleConfig))):a(h=>(this._scaleConfig.datum=h,e.dataToPosition(j(this.getDatumPositionValues(h,l)),this._scaleConfig))),r()(t)):(a(h=>null),null)}dataToPositionX(t){return this._dataToPosition(t,this._xAxisHelper,this.fieldX,void 0,this._getPositionXEncoder,this._setPositionXEncoder)}dataToPositionY(t){return this._dataToPosition(t,this._yAxisHelper,this.fieldY,void 0,this._getPositionYEncoder,this._setPositionYEncoder)}dataToPositionZ(t){if(!this._zAxisHelper)return Number.NaN;const{dataToPosition:e}=this._zAxisHelper;return e(this.getDatumPositionValues(t,this._fieldZ),{bandPosition:this._bandPosition})}dataToPositionX1(t){return this._xAxisHelper?this._fieldX2&&this._fieldX2 in t?this.valueToPositionX(this.getDatumPositionValues(t,this._fieldX2)):this.valueToPositionX(0):Number.NaN}dataToPositionY1(t){return this._yAxisHelper?this._fieldY2&&this._fieldY2 in t?this.valueToPositionY(this.getDatumPositionValues(t,this._fieldY2)):this.valueToPositionY(0):Number.NaN}positionToData(t){return t?{x:this.positionToDataX(t.x),y:this.positionToDataY(t.y)}:null}positionToDataX(t){return this._scaleX?this._scaleX.invert(t):null}positionToDataY(t){return this._scaleY?this._scaleY.invert(t):null}getRegionRectLeft(){if(!this._xAxisHelper)return Number.NaN;const{getScale:t}=this._xAxisHelper;return t(0).range()[0]}getRegionRectRight(){if(!this._xAxisHelper)return Number.NaN;const{getScale:t}=this._xAxisHelper;return t(0).range()[1]}afterInitMark(){super.afterInitMark(),this.setFieldX(this._fieldX),this.setFieldY(this._fieldY),this._buildScaleConfig()}getDimensionField(){return this._direction==="horizontal"?this._specYField:this._specXField}getDimensionContinuousField(){return this._direction==="horizontal"?[this.fieldY[0],this.fieldY2]:[this.fieldX[0],this.fieldX2]}getMeasureField(){return this._direction==="horizontal"?this._specXField:this._specYField}initEvent(){super.initEvent(),this.sortDataByAxis&&this.event.on(lt.scaleDomainUpdate,{filter:t=>{var e;return t.model.id===((e=this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper)===null||e===void 0?void 0:e.getAxisId())}},()=>{this._sortDataInAxisDomain()})}_sortDataInAxisDomain(){var t,e,i;!((e=(t=this.getViewData())===null||t===void 0?void 0:t.latestData)===null||e===void 0)&&e.length&&(IL(this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper,this._direction==="horizontal"?this._fieldY[0]:this._fieldX[0],this.getViewData().latestData),(i=this._data)===null||i===void 0||i.updateData(!0))}getInvalidCheckFields(){const t=[];return this._xAxisHelper&&this._xAxisHelper.isContinuous&&this._xAxisHelper.getAxisType()!==X.geoCoordinate&&(this._xAxisHelper.getFields?this._xAxisHelper.getFields():this._specXField).forEach(e=>{t.push(e)}),this._yAxisHelper&&this._yAxisHelper.isContinuous&&this._yAxisHelper.getAxisType()!==X.geoCoordinate&&(this._yAxisHelper.getFields?this._yAxisHelper.getFields():this._specYField).forEach(e=>{t.push(e)}),t}reInit(t){this._positionXEncoder&&(this._positionXEncoder=null),this._positionYEncoder&&(this._positionYEncoder=null),super.reInit(t)}}const DL="monotone",FL="linear",RZ="bevel",jr={point:{name:"point",type:"symbol"},line:{name:"line",type:"line"}};class tS{addSamplingCompile(){if(this._spec.sampling){const{width:t,height:e}=this._region.getLayoutRect(),i=[],s=this._fieldY,r=this._fieldX;i.push({type:"sampling",size:this._direction==="horizontal"?e:t,factor:this._spec.samplingFactor,yfield:this._direction==="horizontal"?r[0]:s[0],groupBy:this._seriesField,mode:this._spec.sampling}),this._data.getProduct().transform(i)}}addOverlapCompile(){var t;if(this._spec.markOverlap){const e=[];e.push({type:"markoverlap",direction:this._direction==="horizontal"&&this.coordinate==="cartesian"?2:1,delta:this._spec.pointDis,deltaMul:this._spec.pointDisMul,groupBy:this._seriesField}),(t=this._symbolMark)===null||t===void 0||t.getProduct().transform(e)}}reCompileSampling(){this._spec.sampling&&this.compile()}initLineMark(t,e){var i,s;return this._lineMark=this._createMark(jr.line,{groupKey:this._seriesField,isSeriesMark:e==null||e,stateSort:(i=this._spec.line)===null||i===void 0?void 0:i.stateSort},Object.assign(Object.assign({},t),{setCustomizedShape:(s=this._spec.line)===null||s===void 0?void 0:s.customShape,morphElementKey:this.getDimensionField()[0]})),this._lineMark}initLineMarkStyle(t,e){var i,s;const r=this._lineMark;if(r){if(this.setMarkStyle(r,{stroke:this.getColorAttribute()},"normal",Z.Series),this._invalidType!=="zero"&&this.setMarkStyle(r,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",Z.Series),this.event.on(lt.viewDataStatisticsUpdate,{filter:a=>a.model===this},()=>{this.encodeDefined(r,"defined")}),this.coordinate==="polar")this.setMarkStyle(r,{lineJoin:RZ,curveType:FL,closePath:!0},"normal",Z.Series);else{const a=e??((s=(i=this.getSpec().line)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.curveType),o=a===DL?t==="horizontal"?"monotoneY":"monotoneX":a;this.setMarkStyle(r,{curveType:o},"normal",Z.Built_In)}this.setMarkStyle(r,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",Z.Series)}return r}_getEventElement(t,e=!1){let i=[];return t.dimensionInfo.some(s=>(s.data.some(r=>r.series===this&&(i=r.datum,!0)),!i.length)),i}_dimensionTrigger(t){const e=this._getEventElement(t);switch(t.action){case"enter":this._symbolActiveMark.getDataView().parse(e),this._symbolActiveMark.getData().updateData(!1);break;case"leave":this._symbolActiveMark.getDataView().parse([]),this._symbolActiveMark.getData().updateData(!1)}}initSymbolMark(t,e){const i=this._spec.point||{};if(i.visible!==!1&&(this._symbolMark=this._createMark(jr.point,{groupKey:this._seriesField,isSeriesMark:!!e,stateSort:i.stateSort},Object.assign(Object.assign({},t),{setCustomizedShape:i.customShape,morph:Mr(this._spec,jr.point.name),morphElementKey:this.getDimensionField()[0]}))),this._spec.activePoint===!0){const s=new Gt(this._option.dataSet,{name:`${_t}_series_${this.id}_active_point`});s.parse([]),this._symbolActiveMark=this._createMark({name:`active_point_${this.id}`,type:"symbol"},{groupKey:this._seriesField,isSeriesMark:!1,dataView:s,parent:this._region.getInteractionMark(),stateSort:i.stateSort},{setCustomizedShape:i.customShape,morph:!1}),this._symbolActiveMark.setVisible(!1)}return this._symbolMark}initSymbolMarkStyle(){const t=this._symbolMark;if(!t)return this._initSymbolActiveMarkAlone(),t;if(this._initSymbolMark(t),this._symbolActiveMark&&this._symbolMark.stateStyle.dimension_hover){this._symbolActiveMark.setVisible(!0),this.event.on(vr.dimensionHover,this._dimensionTrigger.bind(this));for(const e in this._symbolMark.stateStyle){this._symbolActiveMark.stateStyle[e]={};for(const i in this._symbolMark.stateStyle[e])i!=="visible"&&(this._symbolActiveMark.stateStyle[e][i]={style:null,level:Z.Series,referer:t})}this._symbolActiveMark.state.changeStateInfo({stateValue:it.STATE_DIMENSION_HOVER,filter:()=>!0})}return t}_initSymbolMark(t){t&&(this.setMarkStyle(t,{fill:this.getColorAttribute()},"normal",Z.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},"normal",Z.Series),this.event.on(lt.viewDataStatisticsUpdate,{filter:e=>e.model===this},()=>{this.encodeDefined(t,"visible")}),this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",Z.Series))}_initSymbolActiveMarkAlone(){var t,e;const i=this._symbolActiveMark;i&&(this._initSymbolMark(i),i&&(!((e=(t=this._spec[jr.point.name])===null||t===void 0?void 0:t.state)===null||e===void 0)&&e.dimension_hover)&&(i.setVisible(!0),this.event.on(vr.dimensionHover,this._dimensionTrigger.bind(this)),this.initMarkStyleWithSpec(i,gt({},this._spec[jr.point.name],{visible:!0})),this._symbolActiveMark.state.changeStateInfo({stateValue:it.STATE_DIMENSION_HOVER,filter:()=>!0})))}initLabelMarkStyle(t){var e;t&&(((e=t.getTarget())===null||e===void 0?void 0:e.type)!=="symbol"&&t.setRule("line-data"),this.setMarkStyle(t,{fill:this.getColorAttribute(),text:i=>i[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null}),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},"normal",Z.Series),this.event.on(lt.viewDataStatisticsUpdate,{filter:i=>i.model===this},()=>{this.encodeDefined(t,"visible")}))}initLineLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getSeriesField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null})}encodeDefined(t,e){var i,s,r,a;if(!t)return;const o=this._isFieldAllValid();if(this._invalidType==="zero"||o){if(((s=(i=t.stateStyle.normal)===null||i===void 0?void 0:i[e])===null||s===void 0?void 0:s.style)===!0)return;this.setMarkStyle(t,{[e]:!0},"normal",Z.Series)}else{if(((a=(r=t.stateStyle.normal)===null||r===void 0?void 0:r[e])===null||a===void 0?void 0:a.style)!==!0)return;this.setMarkStyle(t,{[e]:this._getInvalidDefined.bind(this)},"normal",Z.Series)}t.getProduct()&&t.compileEncode()}_isFieldAllValid(){const t=this.getViewDataStatistics(),e=this.getStackValueField();return!!(t&&t.latestData&&e)&&t.latestData[e]&&t.latestData[e].allValid}}const OZ=Object.assign(Object.assign({},we),jr);class zL extends Ci{setStyle(t,e="normal",i=0,s=this.stateStyle){if(P(t))return;s[e]===void 0&&(s[e]={});const r=this._getIgnoreAttributes(),a=["strokeWidth","lineWidth","lineDash","strokeDash","lineJoin","stroke","strokeOpacity","opacity","fill","fillOpacity","texture","texturePadding","textureSize","textureColor"],o=this.isUserLevel(i);let l=!1;Object.keys(t).forEach(h=>{const d=t[h];if(P(d)||r.includes(h))return;o&&a.includes(h)&&(jy(d==null?void 0:d.type)||d!=null&&d.scale||N(d))&&(l=!0);const c=this._filterAttribute(h,d,e,i,o,s);this.setAttribute(h,c,e,i,s)}),l&&this.setMarkConfig({enableSegments:!0})}}class Oc extends zL{constructor(){super(...arguments),this.type=Oc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:1})}_getIgnoreAttributes(){var t,e;return((t=this.model)===null||t===void 0?void 0:t.type)===Y.radar&&((e=this.model)===null||e===void 0?void 0:e.coordinate)==="polar"?[]:["fill","fillOpacity"]}}Oc.type="line";const ym=()=>{D.registerMark(Oc.type,Oc),K6(),BL()};class jL extends Ci{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{size:1,symbolType:"circle",fill:void 0,lineWidth:0})}}class Bc extends jL{constructor(){super(...arguments),this.type=Bc.type}}Bc.type="symbol";const wr=()=>{D.registerMark(Bc.type,Bc),HB()};class Su extends Vi{_transformLabelSpec(t){var e,i,s;((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((s=(i=t.point)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.visible)!==!1?this._addMarkLabelSpec(t,"point"):this._addMarkLabelSpec(t,"line"),this._addMarkLabelSpec(t,"line","lineLabel","initLineLabelMarkStyle",void 0,!0)}}function Ow(n){return n.length>=2&&H(n[0])&&H($t(n))&&$t(n)>=n[0]}function Bw(n,t){var e;const i=$t(t)-t[0],s=$t(t)*t[0]<0;let r=t[0]<=0?0-t[0]:0,a=$t(t)>0?$t(t)-0:0;i===0?t[0]<0?(r=1,a=0):t[0]>0&&(r=0,a=1):(r/=i,a/=i);const o=n.getDomainSpec(),l={total:i,negative:r,positive:a,includeZero:s,domain:t,extendable_min:!H(o.min),extendable_max:!H(o.max)};if(!((e=n._break)===null||e===void 0)&&e.scope){const h=t.findIndex(u=>u>=0);let d,c;h===0?(d=n._break.scope[h],c=[t[0],t[1]],l.positive=1,l.negative=0):$t(t)<=0?(l.positive=0,l.negative=1,c=[t[t.length-2],t[t.length-1]]):(d=n._break.scope[h-1],c=[t[h-1],t[h]],l.negative=d[0]+(0-c[0])/(c[1]-c[0])*(d[1]-d[0]),l.positive=1-l.negative),l.break=!0,l.extendable_max=!1,l.extendable_min=!1,l.domain=c}return l}function Lw(n,t){const{positive:e,negative:i,extendable_min:s,extendable_max:r,domain:a}=n,{positive:o,negative:l,extendable_min:h,extendable_max:d,domain:c}=t;if(o>0){if(!h)return!1;let u=i/e;r&&(u=i/Math.max(e,o),a[1]=-a[0]/u),c[0]=-c[1]*u}else if(l>0){if(!d)return!1;let u=e/i;s&&(u=e/Math.max(i,i),a[0]=-a[1]/u),c[1]=-c[0]*u}return!0}function Iw(n,t){const{extendable_min:e,extendable_max:i,domain:s}=n,{positive:r,negative:a,domain:o}=t;return(r!==0||a!==0)&&!(r>0&&!i)&&!(a>0&&!e)&&(s[0]=o[0],s[1]=o[1],!0)}function Dw(n,t){const{positive:e,negative:i,extendable_max:s,domain:r}=n,{positive:a,negative:o,extendable_min:l,domain:h}=t;if(s&&l){const d=Math.max(i,o)/Math.max(e,a);r[1]=-r[0]/d,h[0]=-h[1]*d}else if(l){const d=i/e;h[0]=-h[1]*d}else{if(!s)return!1;{const d=o/a;r[1]=-r[0]/d}}return!0}function Fw(n,t){const{extendable_min:e,domain:i}=n,{extendable_max:s,domain:r}=t;return!(!e||!s)&&(i[0]=-i[1],r[1]=-r[0],!0)}const BZ=(n,t)=>{var e,i,s,r,a,o;const l=n.getScale(),h=t.getScale();if(!l||!h)return;const d=(s=(i=(e=n).getDomainAfterSpec)===null||i===void 0?void 0:i.call(e))!==null&&s!==void 0?s:[0,1],c=(o=(a=(r=t).getDomainAfterSpec)===null||a===void 0?void 0:a.call(r))!==null&&o!==void 0?o:[0,1];if(!(d&&c&&Ow(d)&&Ow(c)))return;const u=Bw(n,d),g=Bw(t,c);if(u.break===!0&&g.break===!0)return;const{positive:p,negative:_,extendable_min:f,extendable_max:m,includeZero:v}=u,{positive:y,negative:b,extendable_min:x,extendable_max:S,includeZero:A}=g;if(p===0&&_===0){if(!Iw(u,g))return}else if(y===0&&b===0){if(!Iw(g,u))return}else if(v||A)if(v&&!A){if(!Lw(u,g))return}else if(A&&!v){if(!Lw(g,u))return}else{if(_===b)return;if(_>b){if(!Dw(u,g))return}else if(!Dw(g,u))return}else{if(_===0&&y===0){if(!Fw(u,g))return}else if(b===0&&p===0&&!Fw(g,u))return;if(_===0&&b===0)if(d[0]===0&&c[0]>0){if(!x)return;c[0]=0}else{if(!(c[0]===0&&d[0]>0)||!f)return;d[0]=0}if(p===0&&y===0)if(d[1]===0&&c[1]>0){if(!S)return;c[1]=0}else{if(!(c[1]===0&&d[1]>0)||!m)return;d[1]=0}}l.domain(d),h.domain(c)},LZ=(n,t)=>{var e,i,s,r,a;if(!n)return n;const o=(e=t==null?void 0:t.targetAxis)===null||e===void 0?void 0:e.call(t);if(!o)return n;const l=(i=t==null?void 0:t.currentAxis)===null||i===void 0?void 0:i.call(t);if(!l)return n;const h=(s=l.getTickData())===null||s===void 0?void 0:s.getDataView();if(!h||!h.transformsArr.find(v=>v.type.includes("ticks")))return n;const d=l.getScale();if(!d)return n;const c=(a=(r=o.getTickData())===null||r===void 0?void 0:r.getDataView())===null||a===void 0?void 0:a.latestData;if(!(c!=null&&c.length))return n;const u=o.getScale();if(!u)return n;const g=u.domain(),p=$t(g)-g[0];if(p===0)return n;const _=d.domain(),f=$t(_)-_[0];if(p===0)return n;const m=c.map(v=>{const y=(v.value-g[0])/p;return f*y+_[0]});return hr(m)};class eS{constructor(t){this.id=jo(),this.name=`${t}_${this.id}`}onAdd(t){this.service=t}release(){this.service=null}}class Lc extends eS{constructor(){super(Lc.type),this.type="AxisSyncPlugin"}_checkEnableSync(t){if(!Qt(t.getScale().type))return!1;const e=t.getSpec().sync;return!!(e!=null&&e.axisId)&&e}_getTargetAxis(t,e){const i=t.getOption().getChart().getComponentByUserId(e.axisId);return i!=null&&i.type.startsWith("cartesianAxis")?i:null}onInit(t,e){const i=this._checkEnableSync(e);if(!i||!i.zeroAlign)return;const s=this._getTargetAxis(e,i);s&&e.event.on(lt.scaleDomainUpdate,{filter:({model:r})=>r.id===e.id||r.id===s.id},()=>{BZ(s,e)})}onDidCompile(t,e){const i=this._checkEnableSync(e);if(!i)return;const s=this._getTargetAxis(e,i);if(s&&i.tickAlign){vt(e.getOption().dataSet,"tickAlign",LZ);const r={targetAxis:()=>s,currentAxis:()=>e};e.addTransformToTickData({type:"tickAlign",options:r,level:Number.MAX_SAFE_INTEGER},!1)}}}Lc.pluginType="component",Lc.type="AxisSyncPlugin";const IZ={left:{textAlign:"center",textBaseline:"bottom"},right:{textAlign:"center",textBaseline:"bottom"},radius:{},angle:{}};function DZ(n){return(n=is(n)).startSymbol=is(n.startSymbol),n.endSymbol=is(n.endSymbol),n}function Ic(n){let t=0;return wt(n,"tick.visible")&&(t+=wt(n,"tick.tickSize")),wt(n,"label.visible")&&(t+=wt(n,"label.space")),t}function Dc(n,t){var e,i,s,r,a,o;return{min:(s=(e=n.min)!==null&&e!==void 0?e:(i=n.range)===null||i===void 0?void 0:i.min)!==null&&s!==void 0?s:t==null?void 0:t.min,max:(o=(r=n.max)!==null&&r!==void 0?r:(a=n.range)===null||a===void 0?void 0:a.max)!==null&&o!==void 0?o:t==null?void 0:t.max}}function zw(n){const t=n==null?void 0:n.orient;return t==="top"||t==="bottom"||t==="left"||t==="right"||t==="z"}function FZ(n){const t=n==null?void 0:n.orient;return t==="angle"||t==="radius"}const Vh=(n,t,e)=>{var i;const s=(i=t==="band"?en("axisBand",e):["linear","log","symlog"].includes(t)?en("axisLinear",e):{})!==null&&i!==void 0?i:{},r=ye(n)?en("axisX",e):ws(n)?en("axisY",e):en("axisZ",e);return gt({},en("axis",e),s,r)},I0=(n,t,e)=>{var i;const s=(i=t==="band"?en("axisBand",e):t==="linear"?en("axisLinear",e):{})!==null&&i!==void 0?i:{},r=en(n==="angle"?"axisAngle":"axisRadius",e);return gt({},en("axis",e),s,r)},HL=n=>n==="band"||n==="ordinal"||n==="point";function dh(n,t){return{id:n,label:n,value:t,rawValue:n}}function Ln(n,t,e){return e||!n||n.getAxisId()===t.getAxisId()}class zZ extends wL{constructor(t){super(),this.component=t}releaseAll(){super.releaseAll(),this.component=null}}function VL(n,t){const{x1:e,y1:i,x2:s,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=n.AABBBounds,{dx:d=0,dy:c=0}=n.attribute;let u=0,g=0;as&&(u=s-l),h>r&&(g=r-h),u&&n.setAttribute("dx",u+d),g&&n.setAttribute("dy",g+c)}function jw(n,t,e,i){for(let s=0,r=n.length;s=t)return a}}return null}const jZ=(n,t)=>{var e,i;const s=j((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,xField:o,yField:l}=(i=en(X.crosshair,n))!==null&&i!==void 0?i:{},h=s.find(g=>ye(g.orient));let d;d=C(h)?gt({},HL(h.type)?r:a,o):o;const c=s.find(g=>ws(g.orient));let u;return u=C(c)?gt({},mi(c.type)?r:a,l):l,{xField:d,yField:u}},HZ=(n,t)=>{var e,i;const s=j((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,categoryField:o,valueField:l}=(i=en(X.crosshair,n))!==null&&i!==void 0?i:{},h=s.find(g=>g.orient==="angle");let d;d=C(h)?gt({},HL(h.type)?r:a,o):o;const c=s.find(g=>g.orient==="radius");let u;return u=C(c)?gt({},mi(c.type)?r:a,l):l,{categoryField:d,valueField:u}};function VZ(n,t,e,i){switch(n){case X.cartesianBandAxis:return Vh(Xa(e,["z"]),"band",t);case X.cartesianLinearAxis:return Vh(Xa(e,["z"]),"linear",t);case X.cartesianLogAxis:return Vh(Xa(e,["z"]),"log",t);case X.cartesianSymlogAxis:return Vh(Xa(e,["z"]),"symlog",t);case X.cartesianAxis:case X.cartesianTimeAxis:return Vh(Xa(e),void 0,t);case X.polarBandAxis:return I0(e.orient,"band",t);case X.polarLinearAxis:return I0(e.orient,"linear",t);case X.polarAxis:return I0(e.orient,void 0,t);case X.cartesianCrosshair:return jZ(t,i);case X.polarCrosshair:return HZ(t,i);case X.colorLegend:case X.sizeLegend:case X.discreteLegend:case X.dataZoom:case X.scrollBar:return WZ(e,en(n,t));default:return en(n,t)}}const WZ=(n,t)=>{var e;const i=(e=n.orient)!==null&&e!==void 0?e:t.orient,s=t[dL(i)],r=gt({},t,s);return delete r.horizontal,delete r.vertical,r};class Au extends gm{getTheme(t,e){return VZ(this.type,this._option.getTheme(),t,e)}_mergeThemeToSpec(t,e){const{spec:i,theme:s}=super._mergeThemeToSpec(t,e);return this._adjustPadding(i),{spec:i,theme:s}}_adjustPadding(t){const{padding:e,noOuterPadding:i=!0,orient:s}=t;i&&e&&s&&(t.padding=Object.assign(Object.assign({},mr(e)),{[s]:0}))}}var GZ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var l,h;s instanceof xf||this.event.emit(r,{model:this,node:i,event:s,item:a,datum:o,source:Vt.chart,chart:(h=(l=this._option)===null||l===void 0?void 0:l.globalInstance)===null||h===void 0?void 0:h.getChart()},"model")},this._option.animation&&(this.animate=new bL({getCompiler:e.getCompiler}))}initLayout(){var t;super.initLayout(),this._regions=(t=this._regions)!==null&&t!==void 0?t:this._option.getRegionsInIndex(),this._layout&&(this._layout.layoutBindRegionID=this._regions.map(e=>e==null?void 0:e.id))}changeRegions(t){throw new Error("Method not implemented.")}_getNeedClearVRenderComponents(){throw new Error("Method not implemented.")}onRender(t){throw new Error("Method not implemented.")}getVRenderComponents(){return this._getNeedClearVRenderComponents()}callPlugin(t){this.pluginService&&this.pluginService.getAll().forEach(e=>t(e))}getContainer(){var t;return this._container||(this._container=(t=this._option)===null||t===void 0?void 0:t.globalInstance.getStage().find(e=>e.name==="root",!0)),this._container}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||(i.reMake=["seriesId","seriesIndex","regionId","regionIndex"].some(s=>!Jt(e==null?void 0:e[s],t[s]))),(e==null?void 0:e.visible)!==t.visible&&(i.reCompile=!0),i}release(){var t;super.release(),this.clear(),(t=this.pluginService)===null||t===void 0||t.releaseAll(),this.pluginService=null}clear(){var t;const e=this._getNeedClearVRenderComponents();e&&e.length&&e.forEach(i=>{var s;i&&((s=this.getContainer())===null||s===void 0||s.removeChild(i),i=null)}),this._container=null,(t=this.pluginService)===null||t===void 0||t.clearAll()}compile(){this.compileMarks(),this.reAppendComponents()}compileMarks(t){this.getMarks().forEach(e=>{e.compile({group:t,context:{model:this}})})}reAppendComponents(){const t=this._getNeedClearVRenderComponents();t&&t.length&&t.forEach(e=>{var i;e&&!e.stage&&((i=this.getContainer())===null||i===void 0||i.appendChild(e))})}getBoundsInRect(t,e){return{x1:0,x2:0,y1:0,y2:0}}}qi.transformerConstructor=Au;class gb extends Ci{constructor(t,e){super(t,e),this.type="component",this._componentType=e.componentType,this._mode=e.mode}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId();this._product=e.mark(Q.component,t??e.rootMark,{componentType:this._componentType,mode:this._mode}).id(i),this._compiledProductId=i}}gb.type="component";const bm=()=>{D.registerMark(gb.type,gb)},NZ=n=>n;var UZ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sx.setAnimationConfig(b))}}}_shouldComputeTickData(){return this.getVisible()||this._spec.forceInitTick}_initData(){const t=this._initTickDataSet(this._tickTransformOption());t.target.addListener("change",this._forceLayout.bind(this)),this._tickData=[new Fs(this._option,t)]}collectData(t,e){const i=[];return Te(this._regions,s=>{var r;let a=this.collectSeriesField(t,s);if(a=U(a)?Qt(this._scale.type)?a:[a[0]]:[a],t||(this._dataFieldText=s.getFieldAlias(a[0])),a){const o=s.getViewData();if(e)a.forEach(l=>{i.push(s.getRawDataStatisticsByField(l,!1))});else if(o&&o.latestData&&o.latestData.length){const l=(r=s.getViewDataStatistics)===null||r===void 0?void 0:r.call(s),h=this.type===X.cartesianLinearAxis&&this._spec.breaks&&this._spec.breaks.length;a.forEach(d=>{var c;!((c=l==null?void 0:l.latestData)===null||c===void 0)&&c[d]&&(h?i.push(Object.assign(Object.assign({},l.latestData[d]),{values:o.latestData.map(u=>u[d])})):i.push(l.latestData[d]))})}}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),i}isSeriesDataEnable(){let t=!0;return Te(this._regions,e=>{var i;U((i=e.getViewDataStatistics())===null||i===void 0?void 0:i.latestData)&&(t=!1)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t}setSeriesAndRegionsFromSpec(){const{seriesId:t,seriesIndex:e,regionId:i,regionIndex:s}=this._spec;C(t)&&(this._seriesUserId=j(t)),C(i)&&(this._regionUserId=j(i)),C(e)&&(this._seriesIndex=j(e)),C(s)&&(this._regionIndex=j(s)),this._regions=this._option.getRegionsInUserIdOrIndex(this._regionUserId,this._regionIndex),this.layout.layoutBindRegionID=this._regions.map(r=>r.id)}getBindSeriesFilter(){return{userId:this._seriesUserId,specIndex:this._seriesIndex}}initEvent(){this.event.on(lt.scaleUpdate,{filter:({model:e})=>(e==null?void 0:e.id)===this.id},this.effect.scaleUpdate.bind(this));const t=rB(this._regions,{userId:this._seriesUserId,specIndex:this._seriesIndex}).map(e=>e.getViewDataStatistics()).filter(e=>!!e);t.length>1?this._option.dataSet.multipleDataViewAddListener(t,"change",()=>{this.updateScaleDomain()}):t.length===1&&t[0].target.addListener("change",()=>{this.updateScaleDomain()}),Te(this._regions,e=>{e.event.on(lt.rawDataUpdate,{filter:({model:i})=>(i==null?void 0:i.id)===e.id},()=>{this._clearRawDomain()})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}updateScaleDomain(){}_clearRawDomain(){}onLayoutEnd(t){this.updateScaleRange(),this.event.emit(lt.scaleUpdate,{model:this,value:"range"}),super.onLayoutEnd(t)}computeData(t){t!=="force"||this._tickData&&this._tickData.length?!this._tickData||!this._tickData.length||t!=="force"&&Jt(this._scale.range(),[0,1])||this._tickData.forEach(e=>{e.getDataView().reRunAllTransform(),e.updateData()}):Te(this._regions,e=>{var i;(i=e.getViewData())===null||i===void 0||i.reRunAllTransform()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}initScales(){this._scales=[this._scale];const t=[];if(Te(this._regions,e=>{const i=e.getGroups();i&&t.push(i)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t.length!==0){const e=Fe(t.map(i=>i.fields.length));for(let i=1;i{var r,a;return((r=e==null?void 0:e[s])===null||r===void 0?void 0:r.visible)!==((a=t==null?void 0:t[s])===null||a===void 0?void 0:a.visible)}),i))}_getAxisAttributes(){const t=this._spec,e={orient:this.getOrient(),select:this._option.disableTriggerEvent!==!0&&t.select,hover:this._option.disableTriggerEvent!==!0&&t.hover};if(t.domainLine&&t.domainLine.visible?e.line=DZ(t.domainLine):e.line={visible:!1},t.label&&t.label.visible){const i=ma(t.label,["style","formatMethod","state"]);e.label=i,t.label.style&&(e.label.style=N(t.label.style)?(s,r,a,o)=>{var l;const h=t.label.style(s.rawValue,r,s,a,o);return mt(gt({},(l=this._theme.label)===null||l===void 0?void 0:l.style,h))}:mt(t.label.style)),(t.label.formatMethod||t.label.formatter)&&(e.label.formatMethod=this._getLabelFormatMethod()),t.label.state&&(e.label.state=i7(t.label.state))}else e.label={visible:!1};if(t.tick&&t.tick.visible?(e.tick={visible:t.tick.visible,length:t.tick.tickSize,inside:t.tick.inside,alignWithLabel:t.tick.alignWithLabel,dataFilter:t.tick.dataFilter},t.tick.style&&(e.tick.style=N(t.tick.style)?(i,s,r,a)=>{var o;const l=t.tick.style(i,s,r,a);return mt(gt({},(o=this._theme.tick)===null||o===void 0?void 0:o.style,l))}:mt(t.tick.style)),t.tick.state&&(e.tick.state=Zo(t.tick.state))):e.tick={visible:!1},t.subTick&&t.subTick.visible?(e.subTick={visible:t.subTick.visible,length:t.subTick.tickSize,inside:t.subTick.inside,count:t.subTick.tickCount},t.subTick.style&&(e.subTick.style=N(t.subTick.style)?(i,s,r,a)=>{var o;const l=t.subTick.style(i,s,r,a);return mt(gt({},(o=this._theme.subTick)===null||o===void 0?void 0:o.style,l))}:mt(t.subTick.style)),t.subTick.state&&(e.subTick.state=Zo(t.subTick.state))):e.subTick={visible:!1},t.title&&t.title.visible){const i=t.title,{autoRotate:s,angle:r,style:a={},background:o,state:l,shape:h}=i,d=UZ(i,["autoRotate","angle","style","background","state","shape"]);let c,u=r;t.orient!=="left"&&t.orient!=="right"||s&&P(u)&&(u=t.orient==="left"?-90:90,c=IZ[t.orient]),e.title=Object.assign(Object.assign({},d),{autoRotate:!1,angle:u?te(u):null,textStyle:gt({},c,mt(a)),pickable:a.pickable!==!1,childrenPickable:a.pickable!==!1,state:{}}),h&&h.visible?(e.title.shape=Object.assign(Object.assign({},h),{style:mt(h.style)}),h.state&&(e.title.state.shape=Zo(h.state))):e.title.shape={visible:!1},o&&o.visible?(e.title.background=Object.assign(Object.assign({},o),{style:mt(o.style)}),o.state&&(e.title.state.background=Zo(o.state))):e.title.background={visible:!1},l&&(e.title.state.text=Zo(l))}else e.title={visible:!1};return t.background&&t.background.visible?(e.panel={visible:!0},t.background.style&&(e.panel.style=mt(t.background.style)),t.background.state&&(e.panel.state=Zo(t.background.state))):e.panel={visible:!1},e}_getGridAttributes(){const t=this._spec;return{alternateColor:t.grid.alternateColor,alignWithLabel:t.grid.alignWithLabel,style:N(t.grid.style)?()=>(e,i)=>{var s,r;const a=t.grid.style((s=e.datum)===null||s===void 0?void 0:s.rawValue,i,e.datum);return mt(gt({},(r=this._theme.grid)===null||r===void 0?void 0:r.style,a))}:mt(t.grid.style),subGrid:t.subGrid.visible===!1?{visible:!1}:{type:"line",visible:t.subGrid.visible,alternateColor:t.subGrid.alternateColor,style:mt(t.subGrid.style)}}}_getLabelFormatMethod(){const{formatMethod:t,formatter:e}=this._spec.label,{formatFunc:i}=zs(t,e);return i?(s,r,a)=>i(r.rawValue,r,e):null}_initTickDataSet(t,e=0){dr(this._option.dataSet,"scale",NZ);const i=this.registerTicksTransform();return new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_ticks_${e}`}).parse(this._scales[e],{type:"scale"}).transform({type:i,options:t},!1)}_tickTransformOption(){const t=this._tick||{},e=this._spec.label||{},{tickCount:i,forceTickCount:s,tickStep:r,tickMode:a}=t,{style:o,formatMethod:l,minGap:h}=e;return{sampling:this._spec.sampling!==!1,tickCount:i,forceTickCount:s,tickStep:r,tickMode:a,axisOrientType:this._orient,coordinateType:this._coordinateType,labelStyle:o,labelFormatter:l,labelGap:h}}addTransformToTickData(t,e){this._tickData.forEach(i=>{var s;(s=i==null?void 0:i.getDataView())===null||s===void 0||s.transform(t,e)})}dataToPosition(t){return this._scale.scale(t)}}iS.specKey="axes";const No=()=>{bm(),D.registerAnimation("axis",()=>({appear:{custom:yj},update:{custom:R$},exit:{custom:bj}}))};var Hw=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this.computeData(i==null?void 0:i.value),Te(this._regions,s=>{const r=this.getOrient();ye(r)?Ln(s.getXAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&s.setXAxisHelper(this.axisHelper()):ws(r)?Ln(s.getYAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&s.setYAxisHelper(this.axisHelper()):Ks(r)&&Ln(s.getZAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&s.setZAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{let{x:s,y:r}=i;return H(s)&&(s+=+(this._orient==="left")*this.getLayoutRect().width),H(r)&&(r+=+(this._orient==="top")*this.getLayoutRect().height),{x:s,y:r}},this._transformLayoutRect=i=>{if(!this._visible)return i;const s=this._latestBounds.clone().translate(-this.getLayoutStartPoint().x,-this.getLayoutStartPoint().y);switch(this._layout.layoutOrient){case"left":this._layout.layoutRectLevelMap.width===Qi&&(i.width=s.x1<0?-s.x1:0);break;case"right":this._layout.layoutRectLevelMap.width===Qi&&(i.width=s.x2>0?s.x2:0);break;case"top":this._layout.layoutRectLevelMap.height===Qi&&(i.height=s.y1<0?-s.y1:0);break;case"bottom":this._layout.layoutRectLevelMap.height===Qi&&(i.height=s.y2>0?s.y2:0)}return i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),this._layout.setRectInSpec(this._layoutCacheProcessing(i))},this._updateAxisLayout=()=>{const i=this.getLayoutStartPoint(),s=this._getUpdateAttribute(!1),{grid:r}=s,a=Hw(s,["grid"]),o=this._axisMark.getProduct(),l=gt({x:i.x,y:i.y},this._axisStyle,a);o.encode(l),this._gridMark&&this._gridMark.getProduct().encode(gt({x:i.x,y:i.y},this._getGridAttributes(),r))},this._fixAxisOnZero=()=>{const{onZero:i,visible:s}=this._spec.domainLine;if(this.visible&&i&&s!==!1){const{onZeroAxisId:r,onZeroAxisIndex:a}=this._spec.domainLine,o=this._option.getComponentsByKey("axes"),l=ye(this.getOrient()),h=c=>{var u;return(l?!ye(c.getOrient()):ye(c.getOrient()))&&Qt(c.getScale().type)&&(c.getTickData()?(u=c.getTickData().getLatestData())===null||u===void 0?void 0:u.find(g=>g.value===0):c.getScale().domain()[0]<=0&&$t(c.getScale().domain())>=0)},d=o.filter(c=>h(c));if(d.length){let c;if(C(r))c=d.find(u=>u.id===r);else if(C(a)){const u=o[a];h(u)&&(c=u)}else c=d[0];if(c){const u=this._axisMark.getProduct(),g=c.valueToPosition(0);l?u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dy:this._orient==="bottom"?-((c.getInverse()?c.getScale().range()[1]:c.getScale().range()[0])-g):g})}):u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dx:this._orient==="left"?g:-((c.getInverse()?c.getScale().range()[0]:c.getScale().range()[1])-g)})})}}}},this._orient=Xa(t,["z"]),Ks(this._orient)&&(this.layoutType="absolute"),this._dataSet=e.dataSet,this._coordinateType="cartesian"}static getSpecInfo(t){const e=t[this.specKey];if(!e)return null;const i=t.direction==="horizontal";if(!U(e)){if(!zw(e))return null;const{axisType:o,componentName:l}=uw(e,i);return e.type=o,[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:l}]}let s=!0;if(e.filter(o=>o.orient==="z")[0]){const o=e.filter(h=>h.orient==="bottom")[0],l=e.filter(h=>ws(h.orient))[0];s=e.length===3&&o&&l}let r=e.map((o,l)=>({spec:o,index:l}));s||(r=r.filter(({spec:o})=>o.orient!=="z"));const a=[];return r.forEach(({spec:o,index:l})=>{if(!zw(o))return;const{axisType:h,componentName:d}=uw(o,i);o.type=h,a.push({spec:o,specPath:[this.specKey,l],specInfoPath:["component",this.specKey,l],type:d})}),a}static createComponent(t,e){const{spec:i}=t,s=Hw(t,["spec"]),r=D.getComponentInKey(s.type);return r?new r(i,Object.assign(Object.assign({},e),s)):(e.onError(`Component ${s.type} not found`),null)}initLayout(){super.initLayout(),this._layout.autoIndent=this._spec.autoIndent!==!1,this._layout.layoutOrient=this._orient}setLayout3dBox(t){this.layout3dBox=t}getNewScaleRange(){const{width:t,height:e}=this.getLayoutRect(),{left:i,right:s,top:r,bottom:a}=this._innerOffset;let o=[];return ye(this.getOrient())?H(t)&&(o=this._inverse?[t-s,i]:[i,t-s]):Ks(this.getOrient())?H(t)&&(o=this._inverse?[t-s,i]:[i,t-s],this._scale.range(o)):H(e)&&(o=this._inverse?[r,e-a]:[e-a,r]),o}updateScaleRange(){let t=!1;const e=this.getNewScaleRange(),i=this._scale.range();return e.length===i.length&&e.every((s,r)=>s===i[r])?t=!1:(t=!0,this._scale.range(e)),t}init(t){var e;super.init(t),(e=this.pluginService)===null||e===void 0||e.load($Z.map(i=>new i)),this.callPlugin(i=>{this.pluginService&&i.onInit&&i.onInit(this.pluginService,this)})}setAttrFromSpec(){var t;if(super.setAttrFromSpec(),this.visible){ye(this.getOrient())?Ae(this._spec.maxHeight)&&(this._spec.maxHeight="30%"):Ae(this._spec.maxWidth)&&(this._spec.maxWidth="30%");const i=this._getAxisAttributes();i.label.formatMethod=this._getLabelFormatMethod(),i.verticalFactor=this.getOrient()==="top"||this.getOrient()==="right"?-1:1,this._axisStyle=i}this._tick=this._spec.tick;const e=(t=this._option.getChart())===null||t===void 0?void 0:t.getSpec();this._inverse=xq(this._spec,(e==null?void 0:e.direction)==="horizontal")}onLayoutStart(t,e,i){if(super.onLayoutStart(t,e,i),!Ks(this.getOrient())&&this._spec.innerOffset){const s=this._spec;ws(this.getOrient())?["top","bottom"].forEach(r=>{this._innerOffset[r]=$e(s.innerOffset[r],e.height,e)}):["left","right"].forEach(r=>{this._innerOffset[r]=$e(s.innerOffset[r],e.width,e)})}}getSeriesStatisticsField(t){let e;return e=ye(this.getOrient())?t.fieldX:Ks(this.getOrient())?t.fieldZ:t.fieldY,Qt(this._scale.type)?e:[e[0]]}_tickTransformOption(){var t,e,i,s;return Object.assign(Object.assign({},super._tickTransformOption()),{noDecimals:(t=this._tick)===null||t===void 0?void 0:t.noDecimals,labelLastVisible:(e=this._spec.label)===null||e===void 0?void 0:e.lastVisible,labelFirstVisible:(i=this._spec.label)===null||i===void 0?void 0:i.firstVisible,labelFlush:(s=this._spec.label)===null||s===void 0?void 0:s.flush})}axisHelper(){return{isContinuous:Qt(this._scale.type),dataToPosition:this.dataToPosition.bind(this),getScale:(t=0)=>this._scales[t],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>this._inverse===!0,getSpec:()=>this._spec}}afterCompile(){var t;const e=(t=this._axisMark)===null||t===void 0?void 0:t.getProduct();e&&e.addEventListener(ut.AFTER_ELEMENT_ENCODE,()=>{if(this._isLayout===!1&&(ye(this.getOrient())?this.callPlugin(i=>{this.pluginService&&i.onDidLayoutHorizontal&&i.onDidLayoutHorizontal(this.pluginService,this)}):this.callPlugin(i=>{this.pluginService&&i.onDidLayoutVertical&&i.onDidLayoutVertical(this.pluginService,this)}),this._unitText)){const{x:i,y:s}=this.getLayoutStartPoint(),r=ye(this._orient)?{x:Fe(this._scale.range())+i,y:s}:{x:i,y:Ze(this._scale.range())+s};this._unitText.setAttributes(r)}}),this.callPlugin(i=>{this.pluginService&&i.onDidCompile&&i.onDidCompile(this.pluginService,this)})}onRender(t){}changeRegions(t){}update(t){}resize(t){}collectScale(){const t=[];return Te(this._regions,e=>{t.push(this.getOrient()==="left"||this.getOrient()==="right"?e.scaleY:e.scaleX)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t}collectSeriesField(t,e){var i,s;let r;return r=t>0?(s=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||s===void 0?void 0:s[t]:ye(this.getOrient())?e.getSpec().x2Field?[...e.fieldX,e.fieldX2]:e.fieldX:Ks(this.getOrient())?e.fieldZ:e.getSpec().y2Field?[...e.fieldY,e.fieldY2]:e.fieldY,r}updateSeriesScale(){const t=this.getOrient();Te(this._regions,e=>{ye(t)?Ln(e.getXAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(e.setScaleX(this._scale),e.setXAxisHelper(this.axisHelper())):ws(t)?Ln(e.getYAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(e.setScaleY(this._scale),e.setYAxisHelper(this.axisHelper())):Ks(t)&&Ln(e.getZAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(e.setScaleZ(this._scale),e.setZAxisHelper(this.axisHelper()))},{userId:this._seriesUserId,specIndex:this._seriesIndex})}getBoundsInRect(t){var e;let i={x1:0,y1:0,x2:0,y2:0};if(!this._visible)return i;this._verticalLimitSize=ye(this.getOrient())?t.height:t.width,this.setLayoutRect(t),!this.updateScaleRange()&&U((e=this.getTickData())===null||e===void 0?void 0:e.getLatestData())||this.computeData("range");const s={skipLayout:!1},r=ye(this.getOrient());this.pluginService&&(r?this.callPlugin(l=>{l.onWillLayoutHorizontal&&l.onWillLayoutHorizontal(this.pluginService,s,this)}):this.callPlugin(l=>{l.onWillLayoutVertical&&l.onWillLayoutVertical(this.pluginService,s,this)}));const a=this._axisMark.getProduct();let o=!1;if(!s.skipLayout){const l=this._getUpdateAttribute(!0),h=a.getGroupGraphicItem(),d=gt(Object.assign({},this.getLayoutStartPoint()),this._axisStyle,l,{line:{visible:!1}});let c=h.getBoundsWithoutRender(d);c.empty()&&(c=new wi().set(d.x,d.y,d.x,d.y)),o=!0,this._latestBounds=c,i=this._appendAxisUnit(c,r)}return o||(this._latestBounds=a.getBounds()),i}positionToData(t,e){const i=ye(this.getOrient());e&&(t-=i?this.getLayoutStartPoint().x:this.getLayoutStartPoint().y),this._innerOffset&&(t=i?be(t,this._innerOffset.left,this.getLayoutRect().width-this._innerOffset.right):be(t,this._innerOffset.top,this.getLayoutRect().height-this._innerOffset.bottom));const s=this._scale.range();return(t-s[0])*(t-$t(s))>0?null:this._scale.invert(t)}_getTitleLimit(t){var e,i,s,r,a;if(this._spec.title.visible&&P((e=this._spec.title.style)===null||e===void 0?void 0:e.maxLineWidth)){const o=(a=(s=(i=this._axisStyle.title)===null||i===void 0?void 0:i.angle)!==null&&s!==void 0?s:(r=this._spec.title.style)===null||r===void 0?void 0:r.angle)!==null&&a!==void 0?a:0;if(t){const d=this.getLayoutRect().width,c=Math.abs(Math.cos(o));return c<1e-6?1/0:d/c}const l=this.getLayoutRect().height,h=Math.abs(Math.sin(o));return h<1e-6?1/0:l/h}return null}_getUpdateAttribute(t){var e;let i=0,s=0;if(!t){const m=this.getRegions();let{x:v,y}=m[0].getLayoutStartPoint(),b=v+m[0].getLayoutRect().width,x=y+m[0].getLayoutRect().height;for(let S=1;S{const r=this._getNormalizedValue([s.value],t);return dh(s.value,r)}).filter(s=>{const{value:r,rawValue:a}=s,o=this._scale.domain();return this.getSpec().type==="log"?r>=0&&r<=1:Qt(this._scale.type)?a>=o[0]&&a<=$t(o):o.includes(a)})]:[]}initEvent(){super.initEvent(),this.visible&&(this.event.on(lt.layoutEnd,this._updateAxisLayout),this.event.on(lt.layoutEnd,this._fixAxisOnZero),this.event.on(lt.layoutRectUpdate,()=>{this._clearLayoutCache()}))}_getNormalizedValue(t,e){return e===0?0:this.dataToPosition(t)/e}_layoutCacheProcessing(t){return["width","height"].forEach(e=>{t[e]{this.layout.getLastComputeOutBounds()[e]=this._layoutCache._lastComputeOutBounds[e]}):(this._hasAutoIndent=!0,["x1","x2","y1","y2"].forEach(e=>{this.layout.getLastComputeOutBounds()[e]t.x2?d.x2-t.x2:0,t.y2+=d.y2>t.y2?d.y2-t.y2:0):(t.x1+=d.x1{const u=c.getOrient();return(u==="left"||u==="right")&&c.getRegions().some(g=>r.includes(g))});let o=0,l=0;const h=this.getLayoutStartPoint().x,d=h+this.getLayoutRect().width;return a.forEach(c=>{const u=c.getLayoutStartPoint().x;if(c.getOrient()==="left"&&u===h){const g=c.getLayoutRect().width;o=Math.max(o,g)}else if(u===d){const g=c.getLayoutRect().width;l=Math.max(l,g)}}),{left:o,right:l}}}}E_.type=X.cartesianAxis,E_.specKey="axes";const YZ=(n,t,e)=>e.reduce((i,s,r)=>(i.push([s,e.length===r+1?t:e[r+1]]),i),[[n,e[0]]]);function XZ(n,t){const e=n[0],i=n[n.length-1],s=t.filter(r=>r>e&&rn-t,KZ=(n,t)=>{const e=[{count:0,sub:[],max:t[0],min:t[0]}];let i=0,s=0;for(;i{a.count&&(a.min=Math.min.apply(null,a.sub))});const r=n.slice(s);return e[i]={count:r.length,sub:r,min:t[t.length-1],max:Math.max.apply(null,r)},e};function qZ(n,t,e="count"){const i=KZ(n,t),s=e==="count"?n.length:i.reduce((o,l,h)=>l.count>0?o+l.max-l.min:o,0),r=[];let a=0;return i.forEach((o,l)=>{if(s===0)r.push([0,l/i.length-1]);else{const h=e==="count"?o.count:o.max-o.min;r.push([r[l-1]?r[l-1][1]:0,l===i.length-1?1:Math.min((a+h)/s,1)]),a+=h}}),r}function ZZ(n,t,e){return n.sort(Vw),t.sort(Vw),{domain:XZ(n,t),scope:qZ(n,t,e)}}const JZ=Math.sqrt(50),QZ=Math.sqrt(10),tJ=Math.sqrt(2);class xm{constructor(){this._extend={},this.niceLabelFormatter=null}setExtraAttrFromSpec(){C(this._spec.nice)&&(this._nice=this._spec.nice),C(this._spec.zero)&&(this._zero=this._spec.zero),this._expand=this._spec.expand,this._domain=Dc(this._spec)}transformScaleDomain(){this.setScaleNice()}setLinearScaleNice(){var t;if(!this._nice)return!1;let e=5;const i=this._spec.tick||{};if(H(i.forceTickCount))e=i.forceTickCount;else if(N(i.tickCount)){const a=this._scale.range();let o=Math.abs($t(a)-a[0]);o===1&&this._option&&(o=ye(this._orient)?this._option.getChartViewRect().width:this._option.getChartViewRect().height),e=i.tickCount({axisLength:o,labelStyle:this._spec.label&&this._spec.label.style})}else e=H(i.tickCount)?i.tickCount:5;this._spec.niceType==="accurateFirst"&&(e=Math.max(5,e));const{min:s,max:r}=(t=this._domain)!==null&&t!==void 0?t:{};return P(s)&&P(r)&&P(this._softMaxValue)&&P(this._softMinValue)?this._scale.nice(e):(C(s)||C(this._softMinValue))&&P(r)&&P(this._softMaxValue)?this._scale.niceMax(e):!(!P(s)||!P(this._softMinValue)||!C(r)&&!C(this._softMaxValue))&&this._scale.niceMin(e)}setLogScaleNice(){var t;if(!this._nice)return!1;const{min:e,max:i}=(t=this._domain)!==null&&t!==void 0?t:{};return P(e)&&P(i)&&P(this._softMaxValue)&&P(this._softMinValue)?this._scale.nice():(C(e)||C(this._softMinValue))&&P(i)&&P(this._softMaxValue)?this._scale.niceMax():!(!P(e)||!P(this._softMinValue)||!C(i)&&!C(this._softMaxValue))&&this._scale.niceMin()}setScaleNice(){return this._spec.type==="log"?this.setLogScaleNice():this.setLinearScaleNice()}dataToPosition(t,e){return this.valueToPosition(t[0])}valueToPosition(t){return this._scale.scale(t)}computeLinearDomain(t){let e=[];if(t.length){const i=this._spec.breaks&&this._spec.breaks.length;let s,r,a=[];if(t.forEach(o=>{const{min:l,max:h}=o;s=s===void 0?l:Math.min(s,l),r=r===void 0?h:Math.max(r,h),i&&(a=a.concat(o.values))}),i){const o=[],l=[];for(let h=0;hh[0]-d[0]),o.length){const{domain:h,scope:d}=ZZ(a,ly(o),this._spec.breaks[0].scopeType);e=ly(h),this._break={domain:h,scope:d,breakDomains:o,breaks:l}}else e=[s,r]}else e=[s,r]}else e[0]=0,e[1]=0;return this.setSoftDomainMinMax(e),this.expandDomain(e),this.includeZero(e),this.setDomainMinMax(e),e}expandDomain(t){if(!this._expand)return;let e=t[0],i=$t(t);e===i&&(i===0?i=1:i>0?e=0:i<0&&(i=0)),C(this._expand.min)&&(t[0]=e-(i-e)*this._expand.min),C(this._expand.max)&&(t[t.length-1]=i+(i-e)*this._expand.max)}niceDomain(t){const{min:e,max:i}=Dc(this._spec);if(C(e)||C(i)||this._spec.type!=="linear")return t;if(Math.abs(Ze(t)-Fe(t))<=1e-12){let s=t[0];const r=s>=0?1:-1;if(s=Math.abs(s),s<1)t[0]=0,t[t.length-1]=1;else{let a=s/5;const o=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,o);a=(l>=JZ?10:l>=QZ?5:l>=tJ?2:1)*Math.pow(10,o),t[0]=0,t[t.length-1]=10*a}r<0&&(t.reverse(),t[0]*=-1,t[t.length-1]*=-1)}return t}includeZero(t){this._zero&&(t[0]=Math.min(t[0],0),t[t.length-1]=Math.max($t(t),0))}setExtendDomain(t,e){if(e===void 0)return void delete this._extend[t];this._extend[t]=e;const i=this._scale.domain();this.extendDomain(i),this.includeZero(i),this.setDomainMinMax(i),this.niceDomain(i),this._scale.domain(i,this._nice),this._nice&&!this.setScaleNice()&&this._scale.rescale(),this.event.emit(lt.scaleUpdate,{model:this,value:"domain"})}extendDomain(t){let e;const i=t.length-1,s=t[0]-t[i]>0,r=s?i:0,a=s?0:i;for(const o in this._extend)e=this._extend[o],e>t[a]&&(t[a]=e),e=$t(t)&&(t[t.length-1]=s),this._softMaxValue=s}}setZero(t){this._zero!==t&&(this._zero=t,this.updateScaleDomain())}updateScaleDomain(){if(!this.isSeriesDataEnable())return;const t=this.collectData(),e=this.computeLinearDomain(t);this.updateScaleDomainByModel(e)}updateScaleDomainByModel(t){t=t??this._scale.domain(),this.extendDomain(t),this.includeZero(t),this.setDomainMinMax(t),this.niceDomain(t),this._scale.domain(t,this._nice),this._nice&&!this.setScaleNice()&&this._scale.rescale(),this._updateNiceLabelFormatter(t),this._domainAfterSpec=this._scale.domain(),this.event.emit(lt.scaleDomainUpdate,{model:this}),this.event.emit(lt.scaleUpdate,{model:this,value:"domain"})}getDomainAfterSpec(){return this._domainAfterSpec}_updateNiceLabelFormatter(t){const e=Math.abs($t(t)-t[0]),i=Math.max(-Math.floor(Math.log10(e)),0)+2,s=Math.pow(10,i);this.niceLabelFormatter=r=>H(+r)?Math.round(+r*s)/s:r}}class la extends E_{constructor(){super(...arguments),this.type=X.cartesianLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new Tn}setAttrFromSpec(){super.setAttrFromSpec(),this.setExtraAttrFromSpec()}initScales(){var t,e;super.initScales();const i=[0,1];C((t=this._domain)===null||t===void 0?void 0:t.min)&&(i[0]=this._domain.min),C((e=this._domain)===null||e===void 0?void 0:e.max)&&(i[1]=this._domain.max),this._scale.domain(i)}_tickTransformOption(){var t;return Object.assign(Object.assign({},super._tickTransformOption()),{breakData:!((t=this._spec.breaks)===null||t===void 0)&&t.length?()=>this._break:null})}_getUpdateAttribute(t){var e,i;const s=super._getUpdateAttribute(t);if(!Ks(this._orient)&&(!((i=(e=this._break)===null||e===void 0?void 0:e.breaks)===null||i===void 0)&&i.length)){const{width:r,height:a}=this.getLayoutRect(),o=ye(this._orient),l=o?r:a;s.breaks=this._break.breaks.map(h=>{const{range:d,breakSymbol:c,gap:u=6}=h,g=this.valueToPosition((d[0]+d[1])/2)/l;let p;p=bn(u)?Number(u.substring(0,u.length-1))/100:u/l;const _=H(c==null?void 0:c.angle)?c.angle:o?60:15;return{range:[g-p/2,g+p/2],breakSymbol:Object.assign(Object.assign({visible:!0},c),{angle:_*Math.PI/180}),rawRange:d}})}return s}getNewScaleRange(){var t,e;let i=super.getNewScaleRange();return!((t=this._spec.breaks)===null||t===void 0)&&t.length&&(!((e=this._break)===null||e===void 0)&&e.scope)&&(i=ly(this._break.scope).map(s=>i[0]+($t(i)-i[0])*s)),i}computeDomain(t){return this.computeLinearDomain(t)}axisHelper(){const t=super.axisHelper();return t.setExtendDomain=this.setExtendDomain.bind(this),t.valueToPosition=this.valueToPosition.bind(this),t}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,pu),t}}la.type=X.cartesianLinearAxis,la.specKey="axes",se(la,xm);const ln=()=>{Wo(),Go(),No(),D.registerComponent(la.type,la)};class WL{constructor(){this._rawDomainIndex=[]}_initData(){var t;if(this._spec.showAllGroupLayers&&this._scales.length>1)for(let e=0;e{i>0&&(e.range([0,t.bandwidth()]),t=e)})}getPosition(t){let e=0,i=this._scale;if(this._scales.length===1||t.length===1)e=this.valueToPosition(t[0]);else{const s=Math.min(t.length,this._scales.length);for(let r=0;rthis._rawDomainIndex[i][a]-this._rawDomainIndex[i][o]))}this.transformScaleDomain(),this.event.emit(lt.scaleDomainUpdate,{model:this}),this.event.emit(lt.scaleUpdate,{model:this,value:"domain"})}getLabelItems(t){const e=[];let i=[];return this._scales.forEach((s,r)=>{var a;const o=this._tickDataMap[r],l=(a=o==null?void 0:o.getLatestData())===null||a===void 0?void 0:a.length,h=l?o.getLatestData().map(d=>d.value):s.domain();if(h&&h.length)if(i&&i.length){const d=[],c=[];i.forEach(u=>{h.forEach(g=>{const p=j(u).concat(g);if(c.push(p),l){const _=dh(g,this._getNormalizedValue(p,t));d.push(_)}})}),l&&e.push(d.filter(u=>u.value>=0&&u.value<=1)),i=c}else h.forEach(d=>{i.push(d)}),l&&e.push(o.getLatestData().map(d=>dh(d.value,this._getNormalizedValue([d.value],t))).filter(d=>d.value>=0&&d.value<=1))}),e.reverse()}_updateRawDomain(){this._rawDomainIndex=[];const t=this._spec.domain;for(let e=0;ethis._rawDomainIndex[e][r]=a)}}_clearRawDomain(){this._rawDomainIndex=[]}}class kd extends E_{constructor(){super(...arguments),this.type=X.cartesianBandAxis,this._scale=new Ho}computeDomain(t){return this.computeBandDomain(t)}updateScaleRange(){const t=super.updateScaleRange();return this.updateGroupScaleRange(),t}initScales(){super.initScales(),this.calcScales(this._defaultBandInnerPadding,this._defaultBandOuterPadding)}axisHelper(){const t=(e=0)=>this._scales[e];return{isContinuous:!1,dataToPosition:this.dataToPosition.bind(this),getScale:t,getBandwidth:(e=0)=>t(e).bandwidth(),getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>this._inverse,getSpec:()=>this._spec}}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,Q$),t}transformScaleDomain(){this.updateFixedWholeLength()}updateFixedWholeLength(){if(this._scale){const{bandSize:t,maxBandSize:e,minBandSize:i}=this._getOuterBandSizeFromSpec();if(t&&this._scale.bandwidth(t),e&&this._scale.maxBandwidth(e),i&&this._scale.minBandwidth(i),this._scale.isBandwidthFixed()&&this._spec.autoRegionSize&&(t||e)){const s=Vy(this._scale.domain().length,t??e,this._scale.paddingInner(),this._scale.paddingOuter());["bottom","top"].includes(this._orient)?this._regions.forEach(r=>r.setMaxWidth(s)):["left","right"].includes(this._orient)&&this._regions.forEach(r=>r.setMaxHeight(s))}}}_getOuterBandSizeFromSpec(){var t;let{bandSize:e,maxBandSize:i,minBandSize:s,bandSizeLevel:r=0}=this._spec;const{gap:a,extend:o=0}=(t=this._spec.bandSizeExtend)!==null&&t!==void 0?t:{};r=Math.min(r,this._scales.length-1);for(let l=r;l>0;l--){const h=this._scales[l],d=h.domain(),c=h.paddingInner(),u=h.paddingOuter(),g=p=>{const _=l===r?o:0;return P(a)||l{Wo(),Go(),No(),D.registerComponent(kd.type,kd)};class R_ extends la{constructor(){super(...arguments),this.type=X.cartesianTimeAxis,this._zero=!1,this.effect={scaleUpdate:t=>{this.computeData(t==null?void 0:t.value),Te(this._regions,e=>{ye(this.getOrient())?Ln(e.getXAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&e.setXAxisHelper(this.axisHelper()):Ln(e.getYAxisHelper(),this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&e.setYAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}}}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._tick=gt({},this._spec.tick,(t=this._spec.layers)===null||t===void 0?void 0:t[0])}_initData(){var t;if(super._initData(),(t=this._spec.layers)===null||t===void 0?void 0:t[1]){const e=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_layer_1_ticks`}).parse(this._scale,{type:"scale"}).transform({type:`${this.type}-ticks`,options:Object.assign(Object.assign({},this._tickTransformOption()),{tickCount:this._spec.layers[1].tickCount,forceTickCount:this._spec.layers[1].forceTickCount,tickStep:this._spec.layers[1].tickStep})},!1);this._layerTickData=new Fs(this._option,e)}}computeData(t){super.computeData(t),this._layerTickData&&(this._layerTickData.getDataView().reRunAllTransform(),this._layerTickData.updateData())}_getLabelFormatMethod(){var t,e,i,s,r,a,o,l;const h=ns.getInstance(),d=((e=(t=this._spec.layers)===null||t===void 0?void 0:t[1])===null||e===void 0?void 0:e.timeFormat)||"%Y%m%d",c=(((s=(i=this._spec.layers)===null||i===void 0?void 0:i[1])===null||s===void 0?void 0:s.timeFormatMode)||"local")==="local"?h.timeFormat:h.timeUTCFormat,u=((a=(r=this._spec.layers)===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.timeFormat)||"%Y%m%d",g=(((l=(o=this._spec.layers)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.timeFormatMode)||"local")==="local"?h.timeFormat:h.timeUTCFormat;return(p,_,f,m,v)=>{var y;let b;return b=v===0?g(u,p):c(d,p),!((y=this._spec.label)===null||y===void 0)&&y.formatMethod?this._spec.label.formatMethod(b,_):b}}getLabelItems(t){var e,i;const s=[],r=(e=this.getTickData())===null||e===void 0?void 0:e.getLatestData();r&&r.length&&s.push(r.map(o=>dh(o.value,this._getNormalizedValue([o.value],t))));const a=(i=this._layerTickData)===null||i===void 0?void 0:i.getLatestData();return a&&a.length&&s.push(a.map(o=>dh(o.value,this._getNormalizedValue([o.value],t)))),s}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,pu),t}transformScaleDomain(){}}R_.type=X.cartesianTimeAxis,R_.specKey="axes";const eJ=()=>{Wo(),Go(),No(),D.registerComponent(R_.type,R_)};class Td extends la{constructor(){super(...arguments),this.type=X.cartesianLogAxis,this._zero=!1,this._scale=new Xf}initScales(){var t;super.initScales(),this._scale.base((t=this._spec.base)!==null&&t!==void 0?t:10),this._scale.clamp(!0,null,!1)}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,pu),t}transformScaleDomain(){}}Td.type=X.cartesianLogAxis,Td.specKey="axes",se(Td,xm);const iJ=()=>{Wo(),Go(),No(),D.registerComponent(Td.type,Td)};class Md extends la{constructor(){super(...arguments),this.type=X.cartesianSymlogAxis,this._zero=!1,this._scale=new Kf}initScales(){var t;super.initScales(),this._scale.constant((t=this._spec.constant)!==null&&t!==void 0?t:10)}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,pu),t}transformScaleDomain(){}}Md.type=X.cartesianSymlogAxis,Md.specKey="axes",se(Md,xm);const nJ=()=>{Wo(),Go(),No(),D.registerComponent(Md.type,Md)};class kl extends Xn{constructor(){super(...arguments),this.type=Y.line,this.transformerConstructor=Su,this._sortDataByAxis=!1}compile(){super.compile(),this.addSamplingCompile(),this.addOverlapCompile()}initMark(){var t;const e={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},i=(t=this._spec.seriesMark)!==null&&t!==void 0?t:"line";this.initLineMark(e,i==="line"),this.initSymbolMark(e,i==="point")}initTooltip(){super.initTooltip();const{group:t,mark:e}=this._tooltipHelper.activeTriggerSet;this._lineMark&&t.add(this._lineMark),this._symbolMark&&(e.add(this._symbolMark),t.add(this._symbolMark))}initMarkStyle(){this.initLineMarkStyle(this._direction),this.initSymbolMarkStyle()}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;if(this._lineMark.setAnimationConfig(It((i=D.getAnimationInKey("line"))===null||i===void 0?void 0:i(r,a),Nt("line",this._spec,this._markAttributeContext))),this._symbolMark){const o=Ia(this);this._symbolMark.setAnimationConfig(It((s=D.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Nt("point",this._spec,this._markAttributeContext),o))}}onLayoutEnd(t){super.onLayoutEnd(t),this.reCompileSampling()}getSeriesStyle(t){var e;const i=((e=this._spec)===null||e===void 0?void 0:e.seriesMark)!=="point";return s=>{var r,a;return i&&s==="fill"&&(s="stroke"),(a=(r=this._seriesMark)===null||r===void 0?void 0:r.getAttribute(s,t))!==null&&a!==void 0?a:void 0}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._lineMark,this._symbolMark]}}kl.type=Y.line,kl.mark=OZ,kl.transformerConstructor=Su,se(kl,tS);const sJ=()=>{Nx(),Ux(),ym(),wr(),EL(),vm(),hn(),ln(),D.registerSeries(kl.type,kl)};class rJ{get dataList(){return this._dataArr}constructor(t){this._dataArr=[],this._dataSet=t}parseData(t){this._dataArr=[];const e=j(t);for(let i=0;i{a.markRunning()}),this._dataValueForEach(s,(r,a)=>{Yx(a,r,i)}),!0)}_dataValueForEach(t,e){t.forEach((i,s)=>{if(i instanceof Gt)return;const r=this.getSeriesData(i.id,s);r&&e(i,r,s)})}getSeriesData(t,e){if(!this._dataArr.length)return null;if(typeof t=="string"){const i=this._dataArr.filter(s=>s.name===t);if(i[0])return i[0];rn(`no data matches dataId ${t}!`)}if(typeof e=="number"){if(this._dataArr[e])return this._dataArr[e];rn(`no data matches dataIndex ${e}!`)}return this._dataArr[0]}}class aJ{constructor(t,e){this._scaleSpecMap=new Map,this._scaleMap=new Map,this._modelScaleSpecMap=new Map,this._markAttributeScaleMap=new Map,this._spec=null,this._chart=null,this.getStatisticalFields=i=>{const s=[];return this._scaleSpecMap.forEach((r,a)=>{fl(r.domain)&&r.domain.forEach(o=>{o.dataId===i&&o.fields.forEach(l=>{Hl(s,[{key:l,operations:Qt(r.type)?["max","min"]:["values"]}])})})}),this._markAttributeScaleMap.forEach((r,a)=>{const o=this.getScale(a);r.forEach(l=>{this._getSeriesBySeriesId(l.seriesId).getRawData().name===i&&l.field&&Hl(s,[{key:l.field,operations:Qt(o.type)?["max","min"]:["values"]}])})}),s},this._spec=t,this._chart=e,this._setAttrFromSpec()}_createFromSpec(t){if(!t.id)return null;let e=this._scaleMap.get(t.id);return e||(e=t.type==="ordinal"&&t.id==="color"?qy("colorOrdinal"):qy(t.type)),e?(U(t.range)&&e.range(t.range),U(t.domain)&&(fl(t.domain)||e.domain(t.domain)),t.specified&&e.specified&&e.specified(t.specified),e):null}_setAttrFromSpec(){var t;if(!(!((t=this._spec)===null||t===void 0)&&t.length))return;const e=new Map,i=new Map;this._spec.forEach(s=>{const r=this._createFromSpec(s);r&&(e.set(s.id,r),i.set(s.id,s))}),this._modelScaleSpecMap.forEach(s=>{const r=this._createFromSpec(s);r&&(e.set(s.id,r),i.set(s.id,s))}),this._scaleSpecMap=i,this._scaleMap=e}updateSpec(t){const e={change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1};if(Jt(t,this._spec))return e;e.change=!0;for(let i=0;io.id===s.id);if(!a.id||a.type!==s.type||!Jt(a.specified,s.specified))return e.reMake=!0,e;s.range&&!Jt(s.range,r.range())&&(r.range(s.range),e.reRender=!0),fl(s.domain)?e.reRender=!0:Jt(s.domain,r.domain())||(r.domain(s.domain),e.reRender=!0),this._scaleSpecMap.set(s.id,s)}return this._spec=t,e}registerModelScale(t){const e=this._createFromSpec(t);e&&(this._modelScaleSpecMap.set(t.id,t),this._scaleSpecMap.set(t.id,t),this._scaleMap.set(t.id,e))}removeModelScale(t){this._modelScaleSpecMap.forEach(e=>{t(e)&&(this._modelScaleSpecMap.delete(e.id),this._scaleSpecMap.delete(e.id),this._scaleMap.delete(e.id))})}getScale(t){return this._scaleMap.get(t)}getScaleSpec(t){return this._scaleSpecMap.get(t)}_getSeriesByRawDataId(t){const e=this._chart.getAllSeries();for(let i=0;i{const s=this._scaleMap.get(i);if(!s)return;if(!fl(e.domain))return e.domain&&e.domain.length!==0||s.domain(t),void this._updateMarkScale(i,s,s.domain().slice());let r;r=Qt(e.type)?[null,null]:new Set,e.domain.forEach(o=>{const l=this._getSeriesByRawDataId(o.dataId);if(!l)return;const h=Qt(e.type);o.fields.forEach(d=>{const c=l.getRawDataStatisticsByField(d,h);c&&(h?(P(r[0])?r[0]=c.min:r[0]=Math.min(c.min,r[0]),P(r[1])?r[1]=c.max:r[1]=Math.max(c.max,r[1])):c.values.forEach(u=>{r.add(u)}))})});const a=r;Qt(e.type)||(r=Array.from(r)),s.domain(r),this._updateMarkScale(i,s,a)})}_updateMarkScale(t,e,i){const s=this._markAttributeScaleMap.get(t);s&&s.length!==0&&s.forEach(r=>{if(!r.field||!r.markScale||r.markScale===e)return;if(P(r.changeDomain)||r.changeDomain==="none"||P(r.seriesId))return void(Qt(e.type)?r.markScale.domain(i):e.domain(Array.from(i)));const a=this._getSeriesBySeriesId(r.seriesId),o=Qt(e.type),l=a.getRawDataStatisticsByField(r.field,o);if(!ht(l))return r.changeDomain==="expand"?(o?(i[0]=Math.min(i[0],l.min),i[1]=Math.max(i[1],l.max)):(l.values.forEach(h=>{i.add(h)}),i=Array.from(i)),void r.markScale.domain(i)):void(r.changeDomain!=="replace"||(o?r.markScale.domain([l.min,l.max]):r.markScale.domain(l.values)));Qt(e.type)?r.markScale.domain(i):e.domain(Array.from(i))})}registerMarkAttributeScale(t,e){const i=this._scaleMap.get(t.scale);let s=this._markAttributeScaleMap.get(t.scale);s||(s=[],this._markAttributeScaleMap.set(t.scale,s));let r=i;return(P(t.field)||!P(t.changeDomain)&&t.changeDomain!=="none"&&!P(e))&&(r=i.clone()),s.push(Object.assign(Object.assign({},t),{seriesId:e,markScale:r})),r}}var Ww=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var a;return(a=this._series)!==null&&a!==void 0?a:[]},this.getRegionsInIndex=a=>a&&a.length!==0?this._regions.filter((o,l)=>a.includes(l)):[this._regions[0]],this.getAllRegions=()=>this._regions,this.getRegionsInIds=a=>a?this._regions.filter(o=>a.includes(o.id)):[],this.getRegionsInQuerier=a=>a?this._regions.filter((o,l)=>j(a).some(h=>C(h.regionId)&&h.regionId===o.userId||h.regionIndex===l)):this._regions,this.getRegionsInUserId=a=>{if(a)return this._regions.find(o=>o.userId===a)},this.getRegionsInUserIdOrIndex=(a,o)=>this.getAllRegions().filter(l=>a!=null&&a.length?l.userId&&a.includes(l.userId):!(o!=null&&o.length)||o.includes(l.getSpecIndex())),this.getComponents=()=>this._components,this.getSeriesInIndex=a=>a&&a.length!==0?this._series.filter((o,l)=>a.includes(l)):[this._series[0]],this.getSeriesInIds=a=>a?this._series.filter(o=>a.includes(o.id)):[],this.getSeriesInUserId=a=>{if(a)return this._series.find(o=>o.userId===a)},this.getSeriesInUserIdOrIndex=(a,o)=>this.getAllSeries().filter(l=>a!=null&&a.length?l.userId&&a.includes(l.userId):!(o!=null&&o.length)||o.includes(l.getSpecIndex())),this.getComponentByIndex=(a,o)=>{const l=this._components.filter(h=>(h.specKey||h.type)===a);if(l&&l.length!==0)return l[o]},this.getComponentsByKey=a=>this._components.filter(o=>(o.specKey||o.type)===a),this.getComponentByUserId=a=>{const o=this._components.find(l=>l.userId===a);if(o)return o},this.getComponentsByType=a=>this._components.filter(o=>o.type===a),this._paddingSpec=mr((i=t.padding)!==null&&i!==void 0?i:e.getTheme().padding),this._event=new dm(e.eventDispatcher,e.mode),this._dataSet=e.dataSet,this._chartData=new rJ(this._dataSet),this._modelOption=Object.assign(Object.assign({},e),{mode:this._option.mode,map:this._idMap,getChartLayoutRect:()=>this._layoutRect,getChartViewRect:()=>this._viewRect,getChart:()=>this,globalScale:this._globalScale,onError:(s=this._option)===null||s===void 0?void 0:s.onError,disableTriggerEvent:((r=this._option)===null||r===void 0?void 0:r.disableTriggerEvent)===!0,getSeriesData:this._chartData.getSeriesData.bind(this._chartData)}),this._spec=t}created(){this._transformer=new this.transformerConstructor(Object.assign(Object.assign({},this._option),{type:this.type,seriesType:this.seriesType})),this._chartData.parseData(this._spec.data),this._createGlobalScale(),this._createBackground(),this._createLayout(),this._transformer.forEachRegionInSpec(this._spec,this._createRegion.bind(this)),this._transformer.forEachSeriesInSpec(this._spec,this._createSeries.bind(this)),this._transformer.forEachComponentInSpec(this._spec,this._createComponent.bind(this),this._option.getSpecInfo())}init(){var t,e;(t=this._beforeInit)===null||t===void 0||t.call(this),this._regions.forEach(i=>i.init({})),this._series.forEach(i=>i.init({})),this._components.forEach(i=>i.init({dataSet:this._dataSet})),this._initEvent(),(e=this._initStack)===null||e===void 0||e.call(this),this.reDataFlow()}reDataFlow(){this._series.forEach(t=>{var e;return(e=t.getRawData())===null||e===void 0?void 0:e.markRunning()}),this._series.forEach(t=>t.fillData()),this.updateGlobalScaleDomain()}onResize(t,e,i=!0){const s={width:t,height:e};this._canvasRect=s,this._updateLayoutRect(this._option.viewBox),this.setLayoutTag(!0,null,i)}updateViewBox(t,e){this._option.viewBox=t,this._updateLayoutRect(t),this.setLayoutTag(!0,null,e)}_createBackground(){const t=this._spec.background;if(!t||typeof t!="object"||C(t.gradient))return;const e=ma(t,["x","y","width","height","x1","y1","image"]);e.background=t.image,this._backgroundMark=D.createMark("group","chart-background",{model:this,map:this._option.map,getCompiler:this.getCompiler,globalScale:this._globalScale}),this._backgroundMark.created(),this._backgroundMark.setStyle(Object.assign(Object.assign({},e),{x:()=>this._viewBox.x1,y:()=>this._viewBox.y1,width:()=>this._viewBox.x2-this._viewBox.x1,height:()=>this._viewBox.y2-this._viewBox.y1})),this._backgroundMark.setMarkConfig({zIndex:ee.SeriesGroup-2})}_createRegion(t,e){if(!t)return;const{spec:i}=e,s=Ww(e,["spec"]),r=new t(i,Object.assign(Object.assign({},this._modelOption),s));r&&(r.created(),this._regions.push(r))}_createSeries(t,e){if(!t)return;const{spec:i}=e,s=Ww(e,["spec"]);let r;if(C(i.regionId)?r=this.getRegionsInUserId(i.regionId):C(i.regionIndex)&&(r=this.getRegionsInIndex([i.regionIndex])[0]),!r&&!(r=this._regions[0]))return;const a=new t(i,Object.assign(Object.assign(Object.assign({},this._modelOption),s),{type:i.type,region:r,globalScale:this._globalScale,sourceDataList:this._chartData.dataList}));a&&(a.created(),this._series.push(a),r.addSeries(a))}getSeriesById(t){return this._series.find(e=>e.id===t)}_createComponent(t,e){const i=t.createComponent(e,Object.assign(Object.assign({},this._modelOption),{type:t.type,getAllRegions:this.getAllRegions,getRegionsInIndex:this.getRegionsInIndex,getRegionsInIds:this.getRegionsInIds,getRegionsInUserIdOrIndex:this.getRegionsInUserIdOrIndex,getAllSeries:this.getAllSeries,getSeriesInIndex:this.getSeriesInIndex,getSeriesInIds:this.getSeriesInIds,getSeriesInUserIdOrIndex:this.getSeriesInUserIdOrIndex,getAllComponents:this.getComponents,getComponentByIndex:this.getComponentByIndex,getComponentByUserId:this.getComponentByUserId,getComponentsByKey:this.getComponentsByKey,getComponentsByType:this.getComponentsByType}));i&&(i.created(),this._components.push(i))}getAllComponents(){return this._components}getAllModels(){return[].concat(this.getAllSeries(),this.getAllComponents(),this.getAllRegions())}getModelInFilter(t){if(tt(t))return this.getAllModels().find(i=>i.userId===t);if(N(t))return this.getAllModels().find(i=>t(i));let e=0;return this.getAllModels().find(i=>{var s;if(((s=i.specKey)!==null&&s!==void 0?s:i.type)===t.type){if(e===t.index)return!0;e++}return!1})}_createLayout(){this._updateLayoutRect(this._option.viewBox),this._initLayoutFunc()}setLayout(t){this._option.layout=t,this._initLayoutFunc()}_initLayoutFunc(){var t,e,i;if(this._layoutFunc=this._option.layout,!this._layoutFunc){let s=!1;(this._spec.zField||this._spec.series&&this._spec.series.some(a=>a.zField))&&(s=!0);const r=D.getLayoutInKey((e=(t=this._spec.layout)===null||t===void 0?void 0:t.type)!==null&&e!==void 0?e:s?"layout3d":"base");if(r){const a=new r(this._spec.layout,{onError:(i=this._option)===null||i===void 0?void 0:i.onError});this._layoutFunc=a.layoutItems.bind(a)}}}layout(t){var e,i,s,r;if((i=(e=this._option.performanceHook)===null||e===void 0?void 0:e.beforeLayoutWithSceneGraph)===null||i===void 0||i.call(e),this.getLayoutTag()){this._event.emit(lt.layoutStart,{chart:this,vchart:this._option.globalInstance}),this.onLayoutStart(t);const a=this.getLayoutElements();this._layoutFunc(this,a,this._layoutRect,this._viewBox),this._event.emit(lt.afterLayout,{elements:a,chart:this}),this.setLayoutTag(!1),this.onLayoutEnd(t),this._event.emit(lt.layoutEnd,{chart:this,vchart:this._option.globalInstance})}(r=(s=this._option.performanceHook)===null||s===void 0?void 0:s.afterLayoutWithSceneGraph)===null||r===void 0||r.call(s)}onLayoutStart(t){this.getAllModels().forEach(e=>e.onLayoutStart(this._layoutRect,this._viewRect,t))}onLayoutEnd(t){this.getAllModels().forEach(e=>{e.modelType!=="series"&&e.onLayoutEnd(t)})}onEvaluateEnd(t){[...this._components,...this._regions,...this._series].forEach(e=>e.onEvaluateEnd(t))}getLayoutElements(){return this.getAllModels().map(t=>t.layout).filter(t=>!!t)}getModelById(t){const e=this._idMap.get(t);if(e&&e instanceof Kx)return e}getModelByUserId(t){const e=this.getSeriesInUserId(t);if(e)return e;const i=this.getRegionsInUserId(t);return i||this.getComponentByUserId(t)||void 0}getAllMarks(){return Array.from(this._idMap.values()).filter(t=>t&&t instanceof Ci)}getMarkById(t){const e=this._idMap.get(t);if(e&&e instanceof Ci)return e}updateData(t,e,i=!0,s){const r=this._dataSet.getDataView(t);r&&(r.markRunning(),r.parseNewData(e,s)),i&&this.updateGlobalScaleDomain(),this.getAllModels().forEach(a=>a.onDataUpdate())}updateFullData(t,e=!0){j(t).forEach(i=>{const s=this._dataSet.getDataView(i.id);s&&s.markRunning()}),j(t).forEach(i=>{const s=this._dataSet.getDataView(i.id);s&&Yx(s,i,!0)}),e&&this.updateGlobalScaleDomain(),this.getAllModels().forEach(i=>i.onDataUpdate())}onRender(t){}setCanvasRect(t,e){this._canvasRect={width:t,height:e}}getCanvasRect(){return this._canvasRect||(this._canvasRect=fL(this._spec,this._option,{width:xl,height:Sl})),this._canvasRect}getSeriesData(t,e){return this._chartData.getSeriesData(t,e)}_transformSpecScale(){var t;const e=this._spec.scales?[...this._spec.scales]:[];let i=e.find(r=>r.id==="color");const s=this.getColorScheme();if(!i&&(i={type:"ordinal",id:"color",domain:null,range:null},e.push(i),this._spec.color)){const r=this._spec.color;if(U(r))i.range=r;else{const a=r;Object.prototype.hasOwnProperty.call(a,"type")&&(i.type=a.type),Object.prototype.hasOwnProperty.call(a,"domain")&&(i.domain=a.domain),Object.prototype.hasOwnProperty.call(a,"range")&&(i.range=a.range),Object.prototype.hasOwnProperty.call(a,"specified")&&(i.specified=a.specified)}}return!((t=i.range)===null||t===void 0)&&t.length||(i.range=Mc(s),i.rangeTheme=!0),e}_createGlobalScale(){this._globalScale=new aJ(this._transformSpecScale(),this),this._modelOption.globalScale=this._globalScale}updateGlobalScaleDomain(){const t=new Set;this._series.forEach(i=>{const s=i.getSeriesKeys();s&&s.forEach(r=>t.add(r))});const e=Array.from(t);this._globalScale.updateScaleDomain(e)}updateGlobalScale(t){al(t,this._globalScale.updateSpec(this._transformSpecScale()))}updateGlobalScaleTheme(){const t=this._globalScale.getScaleSpec("color"),e=this.getColorScheme();t.rangeTheme&&(t.range=Mc(e),this._globalScale.getScale("color").range(t.range))}_getSpecKeys(t){const e={width:!0,height:!0};return Object.keys(t).filter(i=>!e[i]).sort()}updateSpec(t){const e={change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1};if(this.setLayoutTag(!0,null,!1),t.type!==this.type)return e.reMake=!0,e;const i=this._getSpecKeys(this._spec),s=this._getSpecKeys(t);if(!Jt(i,s))return e.reMake=!0,e;for(let a=0;a{al(t,i.updateSpec(this._spec.region[i.getSpecIndex()]))}):t.reMake=!0)}updateComponentSpec(t){const e={},i={[X.title]:!0,[X.brush]:!0,[X.mapLabel]:!0};this._components.forEach(r=>{var a,o;if(r.type===X.label||r.type===X.totalLabel)return;i[r.type]&&(i[r.type]=!1);const l=r.specKey||r.type,h=(a=this._spec[l])!==null&&a!==void 0?a:{};U(h)?(e[l]=e[l]||{specCount:h.length,componentCount:0},e[l].componentCount++,al(t,r.updateSpec((o=h[r.getSpecIndex()])!==null&&o!==void 0?o:{},h))):al(t,r.updateSpec(h))});for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const a=e[r];a.componentCount!==a.specCount&&(t.reMake=!0)}const s=r=>r&&r.visible!==!1;Object.keys(i).forEach(r=>{if(i[r]){const a=this._spec[r];(U(a)?a.some(s):s(a))&&(t.reMake=!0)}})}updateSeriesSpec(t){this._spec.series.length===this._series.length?this._series.forEach(e=>{const i=this._spec.series[e.getSpecIndex()];al(t,e.updateSpec(i))}):t.reMake=!0}getCanvas(){var t,e;return(e=(t=this.getCompiler())===null||t===void 0?void 0:t.getCanvas())!==null&&e!==void 0?e:null}_updateLayoutRect(t){let e=this.getCanvasRect();if(t){this._viewBox=t;const{x1:i=0,y1:s=0,x2:r,y2:a}=t;e={width:r-i,height:a-s}}else this._viewBox={x1:0,y1:0,x2:e.width,y2:e.height};this._viewRect=e,this.padding=lB(this._paddingSpec,e,e),this._layoutRect.width=e.width-this.padding.left-this.padding.right,this._layoutRect.height=e.height-this.padding.top-this.padding.bottom,this._layoutRect.x=this.padding.left,this._layoutRect.y=this.padding.top,this._event.emit(lt.layoutRectUpdate,{chart:this})}setCurrentTheme(){this.updateChartConfig({change:!0,reMake:!1},this._spec),this.setLayoutTag(!0,null,!1),this.updateGlobalScaleTheme(),this.reInit()}reInit(){[...this._regions,...this._series,...this._components].forEach(t=>{const e=t.getSpecInfo();e&&e.spec&&t.reInit(e.spec)})}clear(){this.getAllModels().forEach(t=>{var e;return(e=t.clear)===null||e===void 0?void 0:e.call(t)})}compile(){this.compileBackground(),this.compileLayout(),this.compileRegions(),this.compileSeries(),this.compileComponents()}afterCompile(){this.getAllRegions().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)}),this.getAllSeries().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)}),this.getAllComponents().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)})}compileLayout(){const{width:t,height:e}=this.getCanvasRect();this.getCompiler().setSize(t,e)}compileBackground(){var t;this._backgroundMark&&(this._backgroundMark.compile({context:{model:this}}),(t=this._backgroundMark.getProduct())===null||t===void 0||t.layout(()=>{}))}compileRegions(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeRegionCompile)===null||e===void 0||e.call(t),this.getAllRegions().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterRegionCompile)===null||s===void 0||s.call(i)}compileSeries(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeSeriesCompile)===null||e===void 0||e.call(t),this.getAllSeries().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterSeriesCompile)===null||s===void 0||s.call(i)}compileComponents(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeComponentCompile)===null||e===void 0||e.call(t),this.getAllComponents().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterComponentCompile)===null||s===void 0||s.call(i)}release(){[...this._components,...this._regions,...this._series].forEach(t=>{t.beforeRelease()}),super.release(),this.clear(),[...this._components,...this._regions,...this._series].forEach(t=>{t.release()}),this._components=this._regions=this._series=[],this._spec={},this._dataSet=this._globalScale=this._layoutFunc=null,this._layoutTag=!1,this._idMap.clear()}onLayout(t){const e=t.rootMark;this.layout({group:e,srView:t})}updateState(t,e){const i=this.getAllSeries();for(const s in t){if(ht(t[s]))continue;const r=t[s];let a={stateValue:s};a=N(r.filter)?Object.assign({filter:r.filter},a):Object.assign(Object.assign({},r.filter),a),r.level&&(a.level=r.level),i.forEach(o=>{o.getMarks().forEach(l=>{l.stateStyle[s]&&(e&&!e(o,l,s)||(l.state.changeStateInfo(a),l.updateMarkState(s)))})})}}setSelected(t,e,i){this._setStateInDatum(it.STATE_SELECTED,!0,t,e,i)}setHovered(t,e,i){this._setStateInDatum(it.STATE_HOVER,!0,t,e,i)}clearState(t){this.getAllRegions().forEach(e=>{e.interaction.clearEventElement(t,!0),e.interaction.resetInteraction(t,null)})}clearAllStates(){this.getAllRegions().forEach(t=>{t.interaction.clearAllEventElement(),t.interaction.resetAllInteraction()})}clearSelected(){this.clearState(it.STATE_SELECTED)}clearHovered(){this.clearState(it.STATE_HOVER)}_initEvent(){[lt.dataZoomChange,lt.scrollBarChange].forEach(t=>{this._event.on(t,({value:e})=>{this._disableMarkAnimation(["exit","update"]);const i=()=>{this._enableMarkAnimation(["exit","update"]),this._event.off(ut.AFTER_MARK_RENDER_END,i)};this._event.on(ut.AFTER_MARK_RENDER_END,i)})})}_enableMarkAnimation(t){this.getAllMarks().forEach(e=>{const i=e.getProduct();i&&i.animate&&i.animate.enableAnimationState(t)})}_disableMarkAnimation(t){this.getAllMarks().forEach(e=>{const i=e.getProduct();i&&i.animate&&i.animate.disableAnimationState(t)})}_setStateInDatum(t,e,i,s,r){const a=(i=i?j(i):null)?Object.keys(i[0]):null;this.getRegionsInQuerier(r).forEach(o=>{i?(o.getSeries().forEach(l=>{l.getMarks().forEach(h=>{if(h.getProduct()&&(!s||N(s)&&s(l,h))){const d=h.getProduct().isCollectionMark(),c=h.getProduct().elements;let u=[];if(d)u=c.filter(g=>{const p=g.getDatum();i.every((_,f)=>a.every(m=>_[m]==p[f][m]))});else if(i.length>1){const g=i.slice();u=c.filter(p=>{if(g.length===0)return!1;const _=p.getDatum(),f=g.findIndex(m=>a.every(v=>m[v]==_[v]));return f>=0&&(g.splice(f,1),!0)})}else{const g=c.find(p=>a.every(_=>i[0][_]==p.getDatum()[_]));g&&(u=[g])}u.forEach(g=>{o.interaction.startInteraction(t,g)})}})}),e&&o.interaction.reverseEventElement(t)):o.interaction.clearEventElement(t,!0)})}setDimensionIndex(t,e){var i,s,r,a;let o=null;Array.from(this._event.getComposedEventMap().values()).forEach(h=>{const{eventType:d,event:c}=h;if(d===vr.dimensionHover||d===vr.dimensionClick){const u=c.dispatch(t,e);u!=null&&u.length&&(o=u)}});const l=P(t)||!o||o.every(h=>mi(h.axis.getScale().type)&&P(h.index));if(e.tooltip!==!1){const h=this.getComponentsByType(X.tooltip)[0];if(h!=null&&h.getVisible())if(l)(s=(i=h).hideTooltip)===null||s===void 0||s.call(i);else{const d={};o.forEach(c=>{const{axis:u,value:g,data:p}=c,_=u.getOrient()==="left"||u.getOrient()==="right";p.forEach(f=>{var m,v,y;const b=_?f.series.fieldY[0]:f.series.fieldX[0];d[b]=(y=(v=(m=f.datum)===null||m===void 0?void 0:m[0])===null||v===void 0?void 0:v[b])!==null&&y!==void 0?y:g})}),h.showTooltip(d,e.showTooltipOption)}}if(e.crosshair!==!1){const h=this.getComponentsByType(X.cartesianCrosshair)[0];h&&h.clearAxisValue&&h.setAxisValue&&(l?((r=h.clearAxisValue)===null||r===void 0||r.call(h),(a=h.hide)===null||a===void 0||a.call(h)):o.forEach(d=>{const{axis:c,value:u}=d;h.clearAxisValue(),h.setAxisValue(u,c),h.layoutByValue()}))}}getColorScheme(){var t,e;return(e=(t=this._option).getTheme)===null||e===void 0?void 0:e.call(t).colorScheme}}const Gw=(n,t)=>{var e;const i=n.spec,{regionId:s,regionIndex:r}=i;if(C(s)){const a=j(s);return(e=t.region)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(C(r))return j(r).map(a=>{var o;return(o=t.region)===null||o===void 0?void 0:o[a]}).filter(C)},oJ=(n,t)=>{var e;const i=n.spec,{seriesId:s,seriesIndex:r}=i;if(C(s)){const a=j(s);return(e=t.series)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(C(r))return j(r).map(a=>{var o;return(o=t.series)===null||o===void 0?void 0:o[a]}).filter(C)};class Kn{constructor(t){this._option=t,this.type=t.type,this.seriesType=t.seriesType}initChartSpec(t){return this.transformSpec(t),this.transformModelSpec(t)}transformSpec(t){t.region&&t.region.length!==0||(t.region=[{}]),t.tooltip===void 0&&(t.tooltip={}),C(t.stackInverse)&&t.region.forEach(e=>{!C(e.stackInverse)&&(e.stackInverse=t.stackInverse)}),C(t.stackSort)&&t.region.forEach(e=>{!C(e.stackSort)&&(e.stackSort=t.stackSort)})}transformModelSpec(t){return this.createSpecInfo(t,(e,i,s)=>{const{spec:r,specPath:a,specInfoPath:o,type:l}=i,h=new e.transformerConstructor(Object.assign(Object.assign({},this._option),{type:l})).transformSpec(r,t,s);Mg(t,a,h.spec),Mg(s,o??a,Object.assign(Object.assign({},i),h))})}createSpecInfo(t,e){var i,s;e||(e=(a,o,l)=>{const{spec:h,specPath:d,specInfoPath:c,type:u}=o,g=new a.transformerConstructor(Object.assign(Object.assign({},this._option),{type:u})),p=g.transformSpec(h,t,l);Mg(l,c??d,Object.assign(Object.assign(Object.assign({},o),p),{theme:g.getTheme(h,t)}))});const r={};return this.forEachRegionInSpec(t,e,r),this.forEachSeriesInSpec(t,e,r),(i=r.series)===null||i===void 0||i.forEach((a,o)=>{var l,h;const d=((h=(l=Gw(a,r))!==null&&l!==void 0?l:r.region)!==null&&h!==void 0?h:[])[0];d&&(d.seriesIndexes||(d.seriesIndexes=[]),d.seriesIndexes.push(o),a.regionIndexes=d.regionIndexes.slice())}),this.forEachComponentInSpec(t,e,r),Object.values((s=r.component)!==null&&s!==void 0?s:{}).forEach(a=>a.forEach((o,l)=>{var h,d,c;if(o){if(!o.regionIndexes){const u=(d=(h=Gw(o,r))!==null&&h!==void 0?h:r.region)!==null&&d!==void 0?d:[];o.regionIndexes=u.map(g=>g.regionIndexes[0])}if(!o.seriesIndexes){const u=oJ(o,r);if(u)o.seriesIndexes=u.map(({seriesIndexes:g})=>g[0]);else{const g=new Set;((c=o.regionIndexes)!==null&&c!==void 0?c:[]).forEach(p=>{var _,f;const m=(_=r.region)===null||_===void 0?void 0:_[p];(f=m==null?void 0:m.seriesIndexes)===null||f===void 0||f.forEach(v=>g.add(v))}),o.seriesIndexes=Array.from(g)}}}})),r}_isValidSeries(t){return!0}_getDefaultSeriesSpec(t){var e,i,s,r;return{dataKey:t.dataKey,hover:t.hover,select:t.select,label:t.label,seriesStyle:t.seriesStyle,animation:(e=t.animation)!==null&&e!==void 0?e:this._option.animation,animationThreshold:(i=t.animationThreshold)!==null&&i!==void 0?i:(r=(s=this._option).getTheme)===null||r===void 0?void 0:r.call(s).animationThreshold,animationAppear:t.animationAppear,animationDisappear:t.animationDisappear,animationEnter:t.animationEnter,animationUpdate:t.animationUpdate,animationExit:t.animationExit,animationNormal:t.animationNormal,animationState:t.animationState,extensionMark:t.extensionMark,large:t.large,largeThreshold:t.largeThreshold,progressiveStep:t.progressiveStep,progressiveThreshold:t.progressiveThreshold,background:t.seriesBackground,invalidType:t.invalidType,seriesField:t.seriesField,morph:t.morph,interactions:t.interactions}}forEachRegionInSpec(t,e,i){var s;return((s=t.region)!==null&&s!==void 0?s:[]).map((r,a)=>e(D.getRegionInType("region"),{spec:r,specPath:["region",a],type:"region",regionIndexes:[a]},i))}forEachSeriesInSpec(t,e,i){var s;return((s=t.series)!==null&&s!==void 0?s:[]).map((r,a)=>e(D.getSeriesInType(r.type),{spec:r,specPath:["series",a],type:r.type,seriesIndexes:[a]},i))}forEachComponentInSpec(t,e,i){var s,r,a;const o=[],l=D.getComponents();let h,d,c,u;const g=[];for(let _=0;_0&&(p=!0,_.forEach(f=>{const m=D.getComponentInKey(f.type);o.push(e(m,f,i))}))}if(d&&!p){const _=d.getSpecInfo(t,i);(_==null?void 0:_.length)>0&&(p=!0,_.forEach(f=>{const m=D.getComponentInKey(f.type);o.push(e(m,f,i))}))}return c&&!p&&((r=c.getSpecInfo(t,i))===null||r===void 0||r.forEach(_=>{o.push(e(c,_,i))})),g.forEach(_=>{var f;(f=_.getSpecInfo?_.getSpecInfo(t,i):gs(t,_.specKey,_.type))===null||f===void 0||f.forEach(m=>{o.push(e(_,m,i))})}),u&&((a=gs(t,u.specKey,u.type))===null||a===void 0||a.forEach(_=>{o.push(e(u,_,i))})),o}transformSeriesSpec(t){const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}_findBandAxisBySeries(t,e,i){const s=(t==null?void 0:t.direction)==="horizontal"?["left","right"]:["top","bottom"];return i.find(r=>{if(!s.includes(r.orient))return!1;if(C(r.seriesId)){if(j(r.seriesId).includes(t==null?void 0:t.id))return!0}else if(C(r.seriesIndex)){if(j(r.seriesIndex).includes(e))return!0}else if(r.type==="band")return!0;return!0})}_applyAxisBandSize(t,e,i){const{barMaxWidth:s,barMinWidth:r,barWidth:a,barGapInGroup:o}=i;let l=!1;J(r)?(t.minBandSize=r,l=!0):J(a)?(t.minBandSize=a,l=!0):J(s)&&(t.minBandSize=s,l=!0),l&&(t.bandSizeLevel=Number.MAX_VALUE,t.bandSizeExtend={extend:e,gap:U(o)?o[o.length-1]:o})}}class fs extends Kn{needAxes(){return!0}_isValidSeries(t){return!this.seriesType||t===this.seriesType}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{xField:t.xField,yField:t.yField,zField:t.zField,seriesField:t.seriesField,seriesStyle:t.seriesStyle,direction:t.direction,stack:t.stack,percent:t.percent,stackOffsetSilhouette:t.stackOffsetSilhouette,totalLabel:t.totalLabel,sortDataByAxis:t.sortDataByAxis}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t);const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e],this._transformAxisSpec(t)}_setDefaultXAxisSpec(t){return{orient:"bottom"}}_setDefaultYAxisSpec(t){return{orient:"left"}}_setDefaultZAxisSpec(t){return{orient:"z"}}_transformAxisSpec(t){if(this.needAxes()){t.axes||(t.axes=[]);const e={x:!1,y:!1,z:!1};t.axes.forEach(i=>{const{orient:s}=i;let r=null;s!=="top"&&s!=="bottom"||(e.x=!0,r=this._setDefaultXAxisSpec(t)),s!=="left"&&s!=="right"||(e.y=!0,r=this._setDefaultYAxisSpec(t)),s==="z"&&(e.z=!0,r=this._setDefaultZAxisSpec(t)),r&&Object.keys(r).forEach(a=>{P(i[a])&&(i[a]=r[a])}),wt(i,"trimPadding")&>(i,mL(this.type,t))}),e.x||t.axes.push(this._setDefaultXAxisSpec(t)),e.y||t.axes.push(this._setDefaultYAxisSpec(t)),t.zField&&!e.z&&t.axes.push(this._setDefaultZAxisSpec(t))}}}class GL extends fs{_getDefaultSeriesSpec(t){var e;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,line:t.line,seriesMark:(e=t.seriesMark)!==null&&e!==void 0?e:"line",activePoint:t.activePoint,sampling:t.sampling,samplingFactor:t.samplingFactor,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap,lineLabel:t.lineLabel})}transformSpec(t){super.transformSpec(t),La(t)}}const lJ=(n,t)=>{const e={nodes:{}},{fields:i}=t;if(!(i!=null&&i.length))return e;const s=i.length-1;let r,a,o=e;return n.forEach(l=>{l.latestData&&l.latestData.forEach(h=>{o=e;for(let d=0;d{var s;const r=i.getSeries();if(!r.some(d=>d.getStack()))return;const a=r.some(d=>{var c,u;return(u=(c=d.getSpec())===null||c===void 0?void 0:c.totalLabel)===null||u===void 0?void 0:u.visible}),o=a||r.some(d=>d.getPercent()),l=r.some(d=>d.getStackOffsetSilhouette()),h=mB(i,!0);for(const d in h)for(const c in h[d].nodes)bB(h[d].nodes[c],i.getStackInverse(),o,a);if(l)for(const d in h)for(const c in h[d].nodes)QX(h[d].nodes[c]);a&&i.getSeries().forEach(d=>{const c=d.getStackData(),u=d.getStackValue(),g=d.getStackValueField();c&&g&&yB(h[u],g)}),!((s=this._options)===null||s===void 0)&&s.afterStackRegion&&this._options.afterStackRegion(i,h)},this._chart=t,this._options=e}init(){this._chart.getAllRegions().forEach(t=>{t.event.on(lt.regionSeriesDataFilterOver,{filter:({model:e})=>(e==null?void 0:e.id)===t.id},this.stackRegion)})}stackAll(){this._chart.getAllRegions().forEach(t=>{this.stackRegion({model:t})})}}class Vs{_beforeInit(){this._dataSet&&vt(this._dataSet,"stackSplit",lJ)}_initStack(){this._stack=new hJ(this),this._stack.init()}}class Tl extends Se{constructor(){super(...arguments),this.transformerConstructor=GL,this.type="line",this.seriesType=Y.line}}Tl.type="line",Tl.seriesType=Y.line,Tl.transformerConstructor=GL,se(Tl,Vs);const dJ=()=>{sJ(),D.registerChart(Tl.type,Tl)};class Fc extends zL{constructor(){super(...arguments),this.type=Fc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}_getIgnoreAttributes(){return[]}}Fc.type="area";const Sm=()=>{D.registerMark(Fc.type,Fc),$6(),BL()};class cJ extends Hi{constructor(){super(...arguments),this._getSeriesStyle=(t,e,i)=>{var s,r,a,o;for(const l of j(e)){let h=(s=this.series.getSeriesStyle(t))===null||s===void 0?void 0:s(l);if(h!==!1||l!=="fill"&&l!=="stroke"||(h=l==="fill"?(a=(r=this.series.getSeriesStyle(t))===null||r===void 0?void 0:r("stroke"))===null||a===void 0?void 0:a[0]:(o=this.series.getSeriesStyle(t))===null||o===void 0?void 0:o("fill")),C(h))return h}return i}}}const NL=Object.assign(Object.assign(Object.assign({},we),jr),{area:{name:"area",type:"area"}}),uJ=()=>{TZ(),EL(),vm()};class UL extends Su{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){var e,i,s;super._transformLabelSpec(t),this._addMarkLabelSpec(t,"area","areaLabel","initLineLabelMarkStyle",void 0,!0),((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((s=(i=t.point)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.visible)!==!1||this._addMarkLabelSpec(t,"area")}_transformSpecAfterMergingTheme(t,e,i){var s,r,a,o,l;super._transformSpecAfterMergingTheme(t,e,i);const{area:h={},line:d={},seriesMark:c}=t,u=h.visible!==!1&&((s=h.style)===null||s===void 0?void 0:s.visible)!==!1,g=d.visible!==!1&&((r=d.style)===null||r===void 0?void 0:r.visible)!==!1;h.support3d=!(!h.support3d&&!d.support3d),h.zIndex=C(h.zIndex)||C(d.zIndex)?Math.max((a=h.zIndex)!==null&&a!==void 0?a:0,(o=d.zIndex)!==null&&o!==void 0?o:0):void 0,h.style&&delete h.style.stroke,h.state&&Object.keys(h.state).forEach(f=>{"style"in h.state[f]?delete h.state[f].style.stroke:delete h.state[f].stroke});let p=h,_=d;(c==="line"||g&&!u)&&(p=d,_=h),h.style=gt({},_.style,p.style),h.state=gt({},_.state,p.state),h.interactive===!1&&(h.style.fillPickable=!1),d.interactive===!1&&(d.style.strokePickable=!1),h.interactive=!(!h.interactive&&(l=d.interactive)!==null&&l!==void 0&&!l),t.area=h,t.line=d}}class or extends Xn{constructor(){super(...arguments),this.type=Y.area,this.transformerConstructor=UL,this._sortDataByAxis=!1}initMark(){var t;const e={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},i=this._spec.area||{},s=(t=this._spec.seriesMark)!==null&&t!==void 0?t:"area",r=this._isAreaVisible()||this._isLineVisible();this._areaMark=this._createMark(or.mark.area,{groupKey:this._seriesField,isSeriesMark:r&&s!=="point",stateSort:i.stateSort},Object.assign(Object.assign({},e),{morphElementKey:this.getDimensionField()[0],setCustomizedShape:i.customShape})),this.initSymbolMark(e,s==="point")}initMarkStyle(){this.initAreaMarkStyle(),this.initSymbolMarkStyle()}initAreaMarkStyle(){var t,e,i,s,r;const a=(i=(e=(t=this.getSpec().area)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.curveType)!==null&&i!==void 0?i:(r=(s=this.getSpec().line)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.curveType,o=a===DL?this._direction==="horizontal"?"monotoneY":"monotoneX":a,l=this._areaMark;if(l){const h=this._isAreaVisible(),d=this._isLineVisible();h||d?l.setVisible(!0):l.setVisible(!1),this._direction==="horizontal"?this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),x1:c=>{var u,g;return ne(this.dataToPositionX1(c),(g=(u=this._xAxisHelper)===null||u===void 0?void 0:u.getScale)===null||g===void 0?void 0:g.call(u,0))},y:this.dataToPositionY.bind(this),y1:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null,orient:this._direction},"normal",Z.Series):this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),x1:this.dataToPositionX.bind(this),y1:c=>{var u,g;return ne(this.dataToPositionY1(c),(g=(u=this._yAxisHelper)===null||u===void 0?void 0:u.getScale)===null||g===void 0?void 0:g.call(u,0))},y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",Z.Series),this.setMarkStyle(l,{fill:!!h&&this.getColorAttribute(),stroke:!!d&&this.getColorAttribute()},"normal",Z.Series),this._invalidType!=="zero"&&this.setMarkStyle(l,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",Z.Series),this.setMarkStyle(l,{curveType:o},"normal",Z.Built_In),Object.keys(l.stateStyle).forEach(c=>{l.stateStyle[c].stroke&&l.setPostProcess("stroke",u=>[u,!1,!1,!1],c)})}}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;if(this._lineMark&&this._lineMark.setAnimationConfig(It((e=D.getAnimationInKey("line"))===null||e===void 0?void 0:e(r,a),Nt("line",this._spec,this._markAttributeContext))),this._areaMark&&this._areaMark.setAnimationConfig(It((i=D.getAnimationInKey("area"))===null||i===void 0?void 0:i(r,a),Nt("area",this._spec,this._markAttributeContext))),this._symbolMark){const o=Ia(this);this._symbolMark.setAnimationConfig(It((s=D.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Nt("point",this._spec,this._markAttributeContext),o))}}_isAreaVisible(){var t;const e=this._spec.area||{};return e.visible!==!1&&((t=e.style)===null||t===void 0?void 0:t.visible)!==!1}_isLineVisible(){var t;const e=this._spec.line||{};return e.visible!==!1&&((t=e.style)===null||t===void 0?void 0:t.visible)!==!1}initTooltip(){this._tooltipHelper=new cJ(this);const{group:t,mark:e}=this._tooltipHelper.activeTriggerSet;this._areaMark&&t.add(this._areaMark),this._lineMark&&t.add(this._lineMark),this._symbolMark&&(e.add(this._symbolMark),t.add(this._symbolMark))}viewDataStatisticsUpdate(t){super.viewDataStatisticsUpdate(t),this.encodeDefined(this._areaMark,"defined")}compile(){super.compile(),this.addSamplingCompile(),this.addOverlapCompile()}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._areaMark,this._symbolMark,this._lineMark]}onLayoutEnd(t){super.onLayoutEnd(t),this.reCompileSampling()}getSeriesStyle(t){return e=>{var i,s,r,a,o;const l=(i=this._spec.seriesMark)!==null&&i!==void 0?i:"area";let h=(r=(s=this._seriesMark)===null||s===void 0?void 0:s.getAttribute(e,t))!==null&&r!==void 0?r:void 0;return e!=="fill"||h&&l!=="line"||(e="stroke",h=(o=(a=this._seriesMark)===null||a===void 0?void 0:a.getAttribute(e,t))!==null&&o!==void 0?o:void 0),e==="stroke"&&U(h)?h[0]:h}}}or.type=Y.area,or.mark=NL,or.transformerConstructor=UL,se(or,tS);const gJ=()=>{Nx(),Ux(),ym(),Sm(),wr(),uJ(),hn(),ln(),D.registerSeries(or.type,or)};class $L extends fs{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,line:t.line,area:t.area,seriesMark:t.seriesMark,activePoint:t.activePoint,sampling:t.sampling,samplingFactor:t.samplingFactor,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap,areaLabel:t.areaLabel})}transformSpec(t){super.transformSpec(t),La(t)}}class Ml extends Se{constructor(){super(...arguments),this.transformerConstructor=$L,this.type="area",this.seriesType=Y.area}}Ml.type="area",Ml.seriesType=Y.area,Ml.transformerConstructor=$L,se(Ml,Vs);const pJ=()=>{gJ(),D.registerChart(Ml.type,Ml)};function YL(n,t=!0){return(e,i,s)=>{const r=n.direction==="vertical"?n.yField:n.xField,a=e==null?void 0:e[r];return n.direction==="vertical"?{overall:t&&n.growFrom(),orient:a>0?"negative":"positive"}:{overall:!!t&&n.growFrom(),orient:a>0?"positive":"negative"}}}const ku=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:YL(n,t)}),ch=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthOut":"growHeightOut",options:YL(n,t)}),_J={type:"fadeIn"},fJ={type:"growCenterIn"};function XL(n,t){if(t===!1)return{};switch(t){case"fadeIn":return _J;case"scaleIn":return fJ;default:return ku(n)}}const mJ=()=>{D.registerAnimation("bar",(n,t)=>({appear:XL(n,t),enter:ku(n,!1),exit:ch(n,!1),disappear:ch(n)}))},vJ=()=>{D.registerAnimation("bar3d",(n,t)=>({appear:XL(n,t),enter:ku(n,!1),exit:ch(n,!1),disappear:ch(n)}))};class zc extends Ci{constructor(){super(...arguments),this.type=zc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}zc.type="rect";const Cr=()=>{D.registerMark(zc.type,zc),Hx(),RL()},nS=Object.assign(Object.assign({},we),{bar:{name:"bar",type:"rect"},barBackground:{name:"barBackground",type:"rect"}}),KL=Object.assign(Object.assign({},we),{bar3d:{name:"bar3d",type:"rect3d"}});function qL(n,t,e){var i,s;if(n.values.length>0){let r;if(n.sortDatums.length){let a=n.sortDatums;t&&(a=n.sortDatums.slice().reverse());for(let o=0;o{var d,c;const u=(c=(d=o[e.axisHelper]).getScale)===null||c===void 0?void 0:c.call(d,0);for(let g=0;gthis._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[Sw]):this._spec.barMinHeight?this._calculateRectPosition(t,!1):ne(this._dataToPosX(t),e),this._getBarXEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[Aw]):ne(this._dataToPosX1(t),e),this._getBarYStart=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[kw]):this._spec.barMinHeight?this._calculateRectPosition(t,!0):ne(this._dataToPosY(t),e),this._getBarYEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[Tw]):ne(this._dataToPosY1(t),e),this._getBarBackgroundXStart=t=>{const e=t.range();return Math.min(e[0],e[e.length-1])},this._getBarBackgroundXEnd=t=>{const e=t.range();return Math.max(e[0],e[e.length-1])},this._getBarBackgroundYStart=t=>{const e=t.range();return Math.min(e[0],e[e.length-1])},this._getBarBackgroundYEnd=t=>{const e=t.range();return Math.max(e[0],e[e.length-1])},this._getBarBackgroundPositionXEncoder=()=>{var t;return(t=this._barBackgroundPositionXEncoder)===null||t===void 0?void 0:t.bind(this)},this._setBarBackgroundPositionXEncoder=t=>{this._barBackgroundPositionXEncoder=t.bind(this)},this._getBarBackgroundPositionYEncoder=()=>{var t;return(t=this._barBackgroundPositionYEncoder)===null||t===void 0?void 0:t.bind(this)},this._setBarBackgroundPositionYEncoder=t=>{this._barBackgroundPositionYEncoder=t.bind(this)}}initMark(){var t,e;this._initBarBackgroundMark(),this._barMark=this._createMark(Object.assign(Object.assign({},hs.mark.bar),{name:this._barMarkName,type:this._barMarkType}),{groupKey:this._seriesField,isSeriesMark:!0,stateSort:(t=this._spec.bar)===null||t===void 0?void 0:t.stateSort},{progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold,morphElementKey:this.getDimensionField()[0],morph:Mr(this._spec,this._barMarkName),setCustomizedShape:(e=this._spec.bar)===null||e===void 0?void 0:e.customShape})}_initBarBackgroundMark(){this._spec.barBackground&&this._spec.barBackground.visible&&(this._barBackgroundMark=this._createMark(hs.mark.barBackground,{dataView:this._barBackgroundViewData.getDataView(),dataProductId:this._barBackgroundViewData.getProductId(),stateSort:this._spec.barBackground.stateSort},{setCustomizedShape:this._spec.barBackground.customShape,progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold}))}initMarkStyle(){this._barMark&&this.setMarkStyle(this._barMark,{fill:this.getColorAttribute()},"normal",Z.Series)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null})}initTooltip(){super.initTooltip();const{mark:t,group:e}=this._tooltipHelper.activeTriggerSet;this._barMark&&(t.add(this._barMark),e.add(this._barMark))}_statisticViewData(){var t,e;super._statisticViewData();const i=(t=this._spec.barBackground)!==null&&t!==void 0?t:{};if(!i.visible)return;const s=this._getRelatedComponentSpecInfo("axes").some(a=>a.type===X.cartesianBandAxis);let r;if(vt(this._option.dataSet,"addVChartProperty",Mh),s){const a=([o],{scaleDepth:l})=>{var h,d;let c=[{}];const u=this.getDimensionField(),g=P(l)?u.length:Math.min(u.length,l);for(let p=0;p{const h=[],[d,c]=this.getDimensionContinuousField(),u={};return o.latestData.forEach(g=>{const p=`${g[d]}-${g[c]}`;u[p]||(u[p]={[d]:g[d],[c]:g[c]},h.push(u[p]))}),h};vt(this._option.dataSet,"dimensionItems",a);const o=this.getViewData();r=new Gt(this._option.dataSet).parse([o],{type:"dataview"}).transform({type:"dimensionItems"},!1).transform({type:"addVChartProperty",options:{beforeCall:hh.bind(this),call:Po}},!1),o==null||o.target.addListener("change",r.reRunAllTransform)}this._barBackgroundViewData=new js(this._option,r)}init(t){var e,i;super.init(t),this.direction==="vertical"?((e=this._xAxisHelper)===null||e===void 0?void 0:e.getScale(0).type)==="band"?this.initBandRectMarkStyle():this.initLinearRectMarkStyle():((i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale(0).type)==="band"?this.initBandRectMarkStyle():this.initLinearRectMarkStyle()}_shouldDoPreCalculate(){const t=this.getRegion();return this.getStack()&&t.getSeries().filter(e=>e.type===this.type&&e.getSpec().barMinHeight).length}_calculateStackRectPosition(t){const e=this.getRegion();if(e._bar_series_position_calculated)return;let i,s,r,a,o;e._bar_series_position_calculated=!0,t?(i=Tw,s=kw,r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(i=Aw,s=Sw,r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=mB(e,!1,h=>h.type===this.type);for(const h in l)for(const d in l[h].nodes)qL(l[h].nodes[d],e.getStackInverse(),{isVertical:t,start:i,end:s,startMethod:r,endMethod:a,axisHelper:o})}_calculateRectPosition(t,e){var i,s;let r,a,o;e?(r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=(s=(i=this[o]).getScale)===null||s===void 0?void 0:s.call(i,0),h=this[o].isInverse(),d=this._spec.barMinHeight,c=ne(this[r](t),l),u=ne(this[a](t),l);let g=Math.abs(c-u);gthis._getBarXStart(o,r),x1:o=>this._getBarXEnd(o,r),y:o=>this._getPosition(this.direction,o),height:()=>this._getBarWidth(this._yAxisHelper),width:()=>{},y1:()=>{}},"normal",Z.Series):this.setMarkStyle(this._barMark,{y:o=>this._getBarYStart(o,a),y1:o=>this._getBarYEnd(o,a),x:o=>this._getPosition(this.direction,o),width:()=>this._getBarWidth(this._xAxisHelper),x1:()=>{},height:()=>{}},"normal",Z.Series),this._initStackBarMarkStyle(),this._initBandBarBackgroundMarkStyle()}_initStackBarMarkStyle(){var t,e,i,s;if(!this._spec.stackCornerRadius)return;const r=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),a=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0);this._barMark.setMarkConfig({clip:!0,clipPath:()=>{const o=[];return this._forEachStackGroup(l=>{let h=1/0,d=-1/0,c=!1,u=1/0,g=-1/0;l.values.forEach(f=>{const m=f[Un],v=f[on],y=f[bo],b=f[ka];h=Math.min(h,m,v),d=Math.max(d,m,v),C(y)&&C(b)&&(c=!0,u=Math.min(u,y,b),g=Math.max(g,y,b))});const p=Object.assign(Object.assign(Object.assign({},l.values[0]),{[Un]:h,[on]:d}),c?{[bo]:u,[ka]:g}:void 0),_=this.direction==="horizontal"?{x:this._getBarXStart(p,r),x1:this._getBarXEnd(p,r),y:this._getPosition(this.direction,p),height:this._getBarWidth(this._yAxisHelper)}:{y:this._getBarYStart(p,a),y1:this._getBarYEnd(p,a),x:this._getPosition(this.direction,p),width:this._getBarWidth(this._xAxisHelper)};o.push(hu(Object.assign(Object.assign({},_),{cornerRadius:N(this._spec.stackCornerRadius)?this._spec.stackCornerRadius(_,p,this._markAttributeContext):this._spec.stackCornerRadius,fill:!0})))}),o}})}initLinearRectMarkStyle(){var t,e,i,s;const r=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),a=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0);if(this.direction==="horizontal"){const o=C(this._fieldY2)?{y:l=>ne(this._dataToPosY(l),a),y1:l=>ne(this._dataToPosY1(l),a)}:{y:l=>ne(this._dataToPosY(l)-this._getBarWidth(this._yAxisHelper)/2,a),height:l=>this._getBarWidth(this._yAxisHelper)};this.setMarkStyle(this._barMark,Object.assign({x:l=>this._getBarXStart(l,r),x1:l=>this._getBarXEnd(l,r)},o),"normal",Z.Series),this.setMarkStyle(this._barBackgroundMark,Object.assign({x:()=>this._getBarBackgroundXStart(r),x1:()=>this._getBarBackgroundXEnd(r)},o),"normal",Z.Series)}else{const o=C(this._fieldX2)?{x:l=>ne(this._dataToPosX(l),r),x1:l=>ne(this._dataToPosX1(l),r)}:{x:l=>ne(this._dataToPosX(l)-this._getBarWidth(this._xAxisHelper)/2,r),width:l=>this._getBarWidth(this._xAxisHelper)};this.setMarkStyle(this._barMark,Object.assign(Object.assign({},o),{y:l=>this._getBarYStart(l,a),y1:l=>this._getBarYEnd(l,a)}),"normal",Z.Series),this.setMarkStyle(this._barBackgroundMark,Object.assign(Object.assign({},o),{y:()=>this._getBarBackgroundYStart(a),y1:()=>this._getBarBackgroundYEnd(a)}),"normal",Z.Series)}}_initBandBarBackgroundMarkStyle(){var t,e,i,s,r;if(!this._barBackgroundMark)return;const a=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),o=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0),l=(r=this._spec.barBackground)!==null&&r!==void 0?r:{},h=P(l.fieldLevel)?void 0:l.fieldLevel+1;this.direction==="horizontal"?this.setMarkStyle(this._barBackgroundMark,{x:()=>this._getBarBackgroundXStart(a),x1:()=>this._getBarBackgroundXEnd(a),y:d=>this._getPosition(this.direction,d,h,"barBackground"),height:()=>this._getBarWidth(this._yAxisHelper,h),width:()=>{},y1:()=>{}},"normal",Z.Series):this.setMarkStyle(this._barBackgroundMark,{x:d=>this._getPosition(this.direction,d,h,"barBackground"),y:()=>this._getBarBackgroundYStart(o),y1:()=>this._getBarBackgroundYEnd(o),width:()=>this._getBarWidth(this._xAxisHelper,h),x1:()=>{},height:()=>{}},"normal",Z.Series)}initAnimation(){var t,e;const i={yField:this._fieldY[0],xField:this._fieldX[0],direction:this.direction,growFrom:()=>{var a,o;return this.direction==="horizontal"?(a=this._xAxisHelper)===null||a===void 0?void 0:a.getScale(0).scale(0):(o=this._yAxisHelper)===null||o===void 0?void 0:o.getScale(0).scale(0)}},s=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset,r=Ia(this);this._barMark.setAnimationConfig(It((e=D.getAnimationInKey("bar"))===null||e===void 0?void 0:e(i,s),Nt(this._barMarkName,this._spec,this._markAttributeContext),r))}_getBarWidth(t,e){var i,s;const r=this._groups?this._groups.fields.length:1,a=P(e)?r:Math.min(r,e),o=(s=(i=t.getBandwidth)===null||i===void 0?void 0:i.call(t,a-1))!==null&&s!==void 0?s:6,l=C(this._spec.barWidth)&&a===r,h=C(this._spec.barMinWidth),d=C(this._spec.barMaxWidth);let c=o;return l&&(c=bl(this._spec.barWidth,o)),h&&(c=Math.max(c,bl(this._spec.barMinWidth,o))),d&&(c=Math.min(c,bl(this._spec.barMaxWidth,o))),c}_getPosition(t,e,i,s){var r,a,o,l,h;let d,c,u;t==="horizontal"?(d=this.getYAxisHelper(),c="height",u=s==="barBackground"?this.dataToBarBackgroundPositionY.bind(this):this.dataToPositionY.bind(this)):(d=this.getXAxisHelper(),c="width",u=s==="barBackground"?this.dataToBarBackgroundPositionX.bind(this):this.dataToPositionX.bind(this));const g=d.getScale(0),p=this._groups?this._groups.fields.length:1,_=P(i)?p:Math.min(p,i),f=(a=(r=d.getBandwidth)===null||r===void 0?void 0:r.call(d,_-1))!==null&&a!==void 0?a:6,m=_===p?this._barMark.getAttribute(c,e):f;if(_>1&&C(this._spec.barGapInGroup)){const y=this._groups.fields,b=j(this._spec.barGapInGroup);let x=0,S=0;for(let A=y.length-1;A>=1;A--){const k=y[A],T=(l=(o=d.getScale(A))===null||o===void 0?void 0:o.domain())!==null&&l!==void 0?l:[],w=T.length,M=bl((h=b[A-1])!==null&&h!==void 0?h:$t(b),f),R=T.indexOf(e[k]);A===y.length-1?(x+=w*m+(w-1)*M,S+=R*(m+M)):(S+=R*(x+M),x+=x+(w-1)*M)}return g.scale(e[y[0]])+d.getBandwidth(0)/2-x/2+S}const v=Qt(g.type||"band");return u(e,_)+.5*(f-m)+(v?-f/2:0)}dataToBarBackgroundPositionX(t,e){return this._dataToPosition(t,this._xAxisHelper,this.fieldX,e,this._getBarBackgroundPositionXEncoder,this._setBarBackgroundPositionXEncoder)}dataToBarBackgroundPositionY(t,e){return this._dataToPosition(t,this._yAxisHelper,this.fieldY,e,this._getBarBackgroundPositionYEncoder,this._setBarBackgroundPositionYEncoder)}onLayoutEnd(t){super.onLayoutEnd(t),this.getRegion()._bar_series_position_calculated=!1,this._spec.sampling&&this.compile()}compile(){if(super.compile(),this._spec.sampling){const{width:t,height:e}=this._region.getLayoutRect(),i=[],s=this._fieldY,r=this._fieldX;i.push({type:"sampling",size:this._direction==="horizontal"?e:t,factor:this._spec.samplingFactor,yfield:this._direction==="horizontal"?r[0]:s[0],groupBy:this._seriesField,mode:this._spec.sampling}),this._data.getProduct().transform(i)}}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._barMark]}compileData(){var t;super.compileData(),(t=this._barBackgroundViewData)===null||t===void 0||t.compile()}fillData(){var t,e;super.fillData(),(e=(t=this._barBackgroundViewData)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.reRunAllTransform()}viewDataUpdate(t){var e,i,s;super.viewDataUpdate(t),(i=(e=this._barBackgroundViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(s=this._barBackgroundViewData)===null||s===void 0||s.updateData()}release(){var t;super.release(),(t=this._barBackgroundViewData)===null||t===void 0||t.release(),this._barBackgroundViewData=null}}hs.type=Y.bar,hs.mark=nS,hs.transformerConstructor=Am;const ZL=()=>{Nx(),Cr(),mJ(),hn(),ln(),D.registerSeries(hs.type,hs)};class km extends fs{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup,barMinHeight:t.barMinHeight,sampling:t.sampling,samplingFactor:t.samplingFactor,barBackground:t.barBackground,stackCornerRadius:t.stackCornerRadius})}transformSpec(t){super.transformSpec(t),La(t)}_transformAxisSpec(t){var e,i;if(super._transformAxisSpec(t),!t.axes)return;const s=t.series.some(a=>a.direction==="horizontal"),r=(e=t.axes.find(a=>a.type==="band"))!==null&&e!==void 0?e:t.axes.find(a=>(s?["left","right"]:["top","bottom"]).includes(a.orient));if(r&&!r.bandSize&&!r.maxBandSize&&!r.minBandSize&&t.autoBandSize){const a=yt(t.autoBandSize)&&(i=t.autoBandSize.extend)!==null&&i!==void 0?i:0,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d}=t.series.find(c=>c.type==="bar");this._applyAxisBandSize(r,a,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d})}}}class Xr extends Se{constructor(){super(...arguments),this.transformerConstructor=km,this.type="bar",this.seriesType=Y.bar}}Xr.type="bar",Xr.seriesType=Y.bar,Xr.transformerConstructor=km,se(Xr,Vs);const yJ=()=>{ZL(),D.registerChart(Xr.type,Xr)};class jc extends Ci{constructor(){super(...arguments),this.type=jc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,length:3})}}jc.type="rect3d";const sS=()=>{D.registerMark(jc.type,jc),q6(),RL()};class O_ extends hs{constructor(){super(...arguments),this.type=Y.bar3d,this._barMarkName="bar3d",this._barMarkType="rect3d"}}O_.type=Y.bar3d,O_.mark=KL;const JL=()=>{vJ(),sS(),hn(),ln(),D.registerSeries(O_.type,O_)};class QL extends km{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup})}}const Ta=()=>{gx(),px(),g5()},bJ=()=>{_q(),MZ()};class wd extends Xr{constructor(){super(...arguments),this.transformerConstructor=QL,this.type="bar3d",this.seriesType=Y.bar3d}}wd.type="bar3d",wd.seriesType=Y.bar3d,wd.transformerConstructor=QL;const xJ=()=>{Ta(),JL(),D.registerChart(wd.type,wd)},Uw=10,SJ=[10,20],AJ=De.Linear,$w="circle",kJ=De.Ordinal,TJ=["circle","square","triangle","diamond","star"],MJ=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},wJ=()=>{D.registerAnimation("scatter",(n,t)=>Object.assign({appear:MJ(0,t)},Qx))},CJ=Object.assign(Object.assign({},we),{point:{name:"point",type:"symbol"}});class tI extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"point")}}class ha extends Xn{constructor(){super(...arguments),this.type=Y.scatter,this.transformerConstructor=tI,this._invalidType="zero"}setAttrFromSpec(){super.setAttrFromSpec(),this._size=this._spec.size,this._sizeField=this._spec.sizeField,this._shape=this._spec.shape,this._shapeField=this._spec.shapeField}_getSeriesAttribute(t,e,{defaultScaleType:i,defaultRange:s},r){var a,o,l,h;if(N(e))return e;if(U(e)){if(P(t))return(a=this._option)===null||a===void 0||a.onError(`${r}Field is required.`),e;if(i!=="ordinal"&&e.length>2)return(o=this._option)===null||o===void 0||o.onError(`${r} length is invalid, specify up to 2 ${r}s.`),e;const d=`${_t}_series_scatter_${this.id}_scale_${r}`;return this._option.globalScale.registerModelScale({id:d,type:i,domain:[{dataId:this._rawData.name,fields:[t]}],range:e}),{scale:d,field:t}}if(yt(e)){if(P(t))return(l=this._option)===null||l===void 0||l.onError(`${r}Field is required.`),e;const d=`${_t}_series_scatter_${this.id}_scale_${r}`,c=Object.assign({id:d,type:i,domain:[{dataId:this._rawData.name,fields:[t]}],range:s},e);return this._option.globalScale.registerModelScale(c),{scale:c.id,field:t}}return(h=this._option)===null||h===void 0||h.onError(`${r} attribute is invalid.`),e}getSizeAttribute(t,e){return P(e)?Uw:J(e)?e:tt(e)&&l2(e)?parseFloat(e):this._getSeriesAttribute(t,e,{defaultScaleType:AJ,defaultRange:SJ},"size")}getShapeAttribute(t,e){return P(e)?$w:tt(e)?e:this._getSeriesAttribute(t,e,{defaultScaleType:kJ,defaultRange:TJ},"shape")}initMark(){var t,e;this._symbolMark=this._createMark(ha.mark.point,{groupKey:this._seriesField,isSeriesMark:!0,stateSort:(t=this._spec.point)===null||t===void 0?void 0:t.stateSort},{progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold,morph:Mr(this._spec,ha.mark.point.name),morphElementKey:this.getDimensionField()[0],setCustomizedShape:(e=this._spec.point)===null||e===void 0?void 0:e.customShape})}initMarkStyle(){this.initSymbolMarkStyle()}initAnimation(){var t,e,i;const s=Ia(this),r=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._symbolMark.setAnimationConfig(It((i=D.getAnimationInKey("scatter"))===null||i===void 0?void 0:i({},r),Nt("point",this._spec,this._markAttributeContext),s))}initSymbolMarkStyle(){const t=this._symbolMark;t&&(this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)}),this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null,fill:this.getColorAttribute(),size:J(this._size)||N(this._size)?this._size:Uw,symbolType:tt(this._shape)||N(this._shape)?this._shape:$w},it.STATE_NORMAL,Z.Series),(C(this._sizeField)||C(this._size))&&this.setMarkStyle(t,{size:this.getSizeAttribute(this._sizeField,this._size)},it.STATE_NORMAL,Z.User_Mark),(C(this._shapeField)||C(this._shape))&&this.setMarkStyle(t,{symbolType:this.getShapeAttribute(this._shapeField,this._shape)},it.STATE_NORMAL,Z.User_Mark))}initTooltip(){super.initTooltip(),this._symbolMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark)}viewDataStatisticsUpdate(t){super.viewDataStatisticsUpdate(t);const e=[this.getDimensionField()[0],this.getStackValueField()].every(i=>{var s,r,a;return i&&((a=(r=(s=this.getViewDataStatistics())===null||s===void 0?void 0:s.latestData)===null||r===void 0?void 0:r[i])===null||a===void 0?void 0:a.allValid)});this._invalidType==="zero"||e?this.setMarkStyle(this._symbolMark,{visible:!0},"normal",Z.Series):this.setMarkStyle(this._symbolMark,{visible:this._getInvalidDefined.bind(this)},"normal",Z.Series),this._symbolMark.getProduct()&&this._symbolMark.compileEncode()}initLabelMarkStyle(t){t&&(this._labelMark=t,this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null},it.STATE_NORMAL,Z.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},it.STATE_NORMAL,Z.Series))}handleZoom(t){var e,i;this.getMarksWithoutRoot().forEach(r=>{const a=r.getProduct();!a||!a.elements||!a.elements.length||a.elements.forEach((o,l)=>{const h=o.getGraphicItem(),d=o.getDatum(),c=this.dataToPosition(d);c&&h&&h.translateTo(c.x,c.y)})});const s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();s&&s.evaluate(null,null)}handlePan(t){var e,i;this.getMarksWithoutRoot().forEach(r=>{const a=r.getProduct();!a||!a.elements||!a.elements.length||a.elements.forEach((o,l)=>{const h=o.getGraphicItem(),d=o.getDatum(),c=this.dataToPosition(d);c&&h&&h.translateTo(c.x,c.y)})});const s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();s&&s.evaluate(null,null)}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._symbolMark]}}ha.type=Y.scatter,ha.mark=CJ,ha.transformerConstructor=tI;const PJ=()=>{wr(),wJ(),hn(),ln(),D.registerSeries(ha.type,ha)};class eI extends fs{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,size:t.size,sizeField:t.sizeField,shape:t.shape,shapeField:t.shapeField})}}class wl extends Se{constructor(){super(...arguments),this.transformerConstructor=eI,this.type="scatter",this.seriesType=Y.scatter}}wl.type="scatter",wl.seriesType=Y.scatter,wl.transformerConstructor=eI,se(wl,Vs);const EJ=()=>{PJ(),D.registerChart(wl.type,wl)};Mb();const Yw={},rS=["clipAngle","clipExtent","scale","translate","center","rotate","precision","reflectX","reflectY","parallels","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function RJ(n,t){return function e(){const i=t();return i.type=n,i.path=Mb().projection(i),i.copy=i.copy||function(){const s=e();return rS.forEach(r=>{i[r]&&s[r](i[r]())}),s.path.pointRadius(i.path.pointRadius()),s},i}}function Hr(n,t){n&&tt(n)||so("Projection type must be a name string.");const e=n.toLowerCase();return arguments.length>1&&(Yw[e]=RJ(e,t)),Yw[e]||null}const Xw={albers:XP,albersusa:GF,azimuthalequalarea:NF,azimuthalequidistant:UF,conicconformal:XF,conicequalarea:Ug,conicequidistant:ZF,equalEarth:QF,equirectangular:KF,gnomonic:tz,identity:ez,mercator:$F,naturalEarth1:iz,orthographic:nz,stereographic:sz,transversemercator:rz};Object.keys(Xw).forEach(n=>{Hr(n,Xw[n])});const Kw="Feature",iI="FeatureCollection";function OJ(n){return n.type===iI?n.features:j(n).filter(t=>!P(t)).map(t=>t.type===Kw?t:{type:Kw,geometry:t})}function BJ(n){const t=j(n);return t.length===1?t[0]:{type:iI,features:t.reduce((e,i)=>e.concat(OJ(i)),[])}}function LJ(n){const t=Hr((n||"mercator").toLowerCase());return t||so("Unrecognized projection type: "+n),t()}function IJ(n,t,e){N(n[t])&&n[t](e)}const DJ=rS.concat(["pointRadius","fit","extent","size"]);function qw(n,t){let e=[];return n&&Object.keys(n).forEach(i=>{DJ.includes(i)&&(e=e.concat(Li(n[i],t)))}),e}let FJ=class extends am{constructor(t){super(t),this.grammarType="projection"}parse(t){return super.parse(t),this.pointRadius(t.pointRadius),this.size(t.size),this.extent(t.extent),this.fit(t.fit),this.configure(t),this.commit(),this}pointRadius(t){return P(this.spec.pointRadius)||this.detach(Li(this.spec.pointRadius,this.view)),this.spec.pointRadius=t,this.attach(Li(t,this.view)),this.commit(),this}size(t){return P(this.spec.size)||this.detach(Li(this.spec.size,this.view)),this.spec.size=t,this.attach(Li(t,this.view)),this.commit(),this}extent(t){return P(this.spec.extent)||this.detach(Li(this.spec.extent,this.view)),this.spec.extent=t,this.attach(Li(t,this.view)),this.commit(),this}fit(t){return P(this.spec.fit)||this.detach(Li(this.spec.fit,this.view)),this.spec.fit=t,this.attach(Li(t,this.view)),this.commit(),this}configure(t){return this.detach(qw(this.spec,this.view)),P(t)?this.spec={type:this.spec.type,fit:this.spec.fit,extent:this.spec.extent,size:this.spec.size,pointRadius:this.spec.pointRadius}:(Object.assign(this.spec,t),this.attach(qw(this.spec,this.view))),this.commit(),this}evaluate(t,e){if(this.projection&&this.projection.type===this.spec.type||(this.projection=LJ(this.spec.type),this.projection.type=this.spec.type),rS.forEach(i=>{P(this.spec[i])||IJ(this.projection,i,ri(this.spec[i],e,Hr))}),P(this.spec.pointRadius)||this.projection.path.pointRadius(ri(this.spec.pointRadius,e,Hr)),!(P(this.spec.fit)||P(this.spec.extent)&&P(this.spec.size))){const i=BJ(ri(this.spec.fit,e,Hr));this.spec.extent?this.projection.fitExtent(ri(this.spec.extent,e,Hr),i):this.spec.size&&this.projection.fitSize(ri(this.spec.size,e,Hr),i)}return this.projection}output(){return this.projection}};const zJ=()=>{G.registerGrammar("projection",FJ,"projections")},jJ=(n,t)=>{if(!t.from||!t.from())return n;const e=t.fields,i=t.key,s=t.values,r=t.default,a=t.as||[e],o=t.from().reduce(function(h,d){return d[e]&&h.set(d[e],d),h},new Map);let l;if(N(t.set))l=function(h){const d=o.get(h[i]);t.set(h,d)};else if(s){const h=s.length;l=function(d){const c=o.get(d[i]);if(P(c))for(let u=0;u(l(h),h))};class HJ extends Eo{constructor(){super(...arguments),this.type=Y.geo,this.coordinate="geo",this._nameProperty="name"}getMapViewData(){var t;return(t=this._mapViewData)===null||t===void 0?void 0:t.getDataView()}get nameField(){return this._nameField}set nameField(t){this._nameField=t}get valueField(){return this._valueField}set valueField(t){this._valueField=t}getNameProperty(){return this._nameProperty}getCentroidProperty(){return this._centroidProperty}getCoordinateHelper(){return this._coordinateHelper}setCoordinateHelper(t){this._coordinateHelper=t}getStatisticFields(){const t=[];return t.push({key:this._nameField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}getGroupFields(){return null}dataToPosition(t,e){var i;let s=null;if(!t||e&&!this.isDatumInViewData(t))return s;const{dataToPosition:r,latitudeField:a,longitudeField:o}=this._coordinateHelper;if(s=this.nameToPosition(t),s===null){const l=o?t==null?void 0:t[o]:Number.NaN,h=a?t==null?void 0:t[a]:Number.NaN;s=(i=r==null?void 0:r([l,h]))!==null&&i!==void 0?i:null}return s}nameToPosition(t){const e=this.getDatumName(t);return P(e)?null:this.nameValueToPosition(e)}nameValueToPosition(t){var e,i;const s=(i=(e=this.getMapViewData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.filter(l=>this.getDatumName(l)===t)[0];if(P(s))return null;const{dataToPosition:r}=this._coordinateHelper,a=this.getDatumCenter(s),o=r==null?void 0:r(a);return P(o)||isNaN(o.x)||isNaN(o.y)?null:o}dataToLatitude(t){if(!this._coordinateHelper)return Number.NaN;const{dataToLatitude:e}=this._coordinateHelper;return e(t)}dataToLongitude(t){if(!this._coordinateHelper)return Number.NaN;const{dataToLatitude:e}=this._coordinateHelper;return e(t)}valueToPosition(t,e){return{x:this.dataToLongitude(t),y:this.dataToLatitude(e)}}positionToData(t){}latitudeToData(t){}longitudeToData(t){}dataToPositionX(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionY(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionZ(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}release(){super.release(),this._mapViewData.release(),this._mapViewData=this._mapViewDataStatistics=null}getStackGroupFields(){return[this._nameField]}getStackValueField(){return this._spec.valueField}compileData(){var t;(t=this._mapViewData)===null||t===void 0||t.compile()}initStatisticalData(){if(super.initStatisticalData(),this._mapViewData){const t=`${_t}_series_${this.id}_mapViewDataStatic`;this._mapViewDataStatistics=this.createStatisticalData(t,this._mapViewData.getDataView()),this._mapViewData.getDataView().target.removeListener("change",this._mapViewDataStatistics.reRunAllTransform)}}getSeriesKeys(){var t,e,i,s,r;return this._seriesField?(r=(e=(t=this.getRawDataStatisticsByField(this._seriesField))===null||t===void 0?void 0:t.values)!==null&&e!==void 0?e:(s=(i=this._mapViewDataStatistics)===null||i===void 0?void 0:i.latestData[this._seriesField])===null||s===void 0?void 0:s.values)!==null&&r!==void 0?r:[]:this.name?[this.name]:this.userId?[`${this.userId}`]:[`${this.type}_${this.id}`]}fillData(){var t,e;super.fillData(),(t=this._mapViewData.getDataView())===null||t===void 0||t.reRunAllTransform(),(e=this._mapViewDataStatistics)===null||e===void 0||e.reRunAllTransform()}getActiveMarks(){return[]}}const B_=`${_t}_MAP_LOOK_UP_KEY`,VJ=(n,t)=>(n.features&&n.features.forEach((e,i)=>{var s;e[Mi]=i;const r=(s=e.properties)===null||s===void 0?void 0:s[t.nameProperty];t.nameMap&&t.nameMap[r]?e[B_]=t.nameMap[r]:e[B_]=r}),n.features);class WJ extends Hi{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=t=>{var e;const i=this.series;return(e=this._getDimensionData(t))!==null&&e!==void 0?e:i.getDatumName(t)}}}class Hc extends Ci{constructor(){super(...arguments),this.type=Hc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0,path:""})}}Hc.type="path";const aS=()=>{D.registerMark(Hc.type,Hc),jB()},GJ=Object.assign(Object.assign({},we),{area:{name:"area",type:"path"}});class NJ{constructor(t){this.projection=Hr(t.type)()}fit(t,e,i){const s={type:"FeatureCollection",features:i};this.projection.fitExtent([t,e],s)}center(t){var e,i;(i=(e=this.projection)===null||e===void 0?void 0:e.center)===null||i===void 0||i.call(e,t)}project(t){var e;return(e=this.projection)===null||e===void 0?void 0:e.call(this,t)}shape(t){var e,i;return(i=(e=this.projection)===null||e===void 0?void 0:e.path)===null||i===void 0?void 0:i.call(e,t)}invert(t){var e,i;return(i=(e=this.projection)===null||e===void 0?void 0:e.invert)===null||i===void 0?void 0:i.call(e,t)}scale(t){var e;if(!((e=this.projection)===null||e===void 0)&&e.scale){if(t===void 0)return this.projection.scale();this.projection.scale(t)}}translate(t){var e;if(!((e=this.projection)===null||e===void 0)&&e.scale){if(t===void 0)return this.projection.translate();this.projection.translate(t)}}evaluate(t,e,i){const s=this.projection.copy();return s==null?void 0:s.fitExtent([t,e],{type:"FeatureCollection",features:i})}}class UJ{parserScrollEvent(t){return t&&!(t.ctrlKey||t.deltaY===0&&t.deltaX===0)&&(t.scrollX=t.deltaX,t.scrollY=t.deltaY,t)}parserZoomEvent(t){if(!t)return t;const e=Math.pow(1.0005,-t.deltaY*Math.pow(16,t.deltaMode));return t.zoomDelta=e,t.zoomX=t.canvasX,t.zoomY=t.canvasY,t}clearZoom(){}clearScroll(){}clearDrag(){}parserDragEvent(){return!0}}class $J{constructor(){this._lastScale=0}clearZoom(){this._lastScale=0,this.pointerId=null}parserDragEvent(t){return!0}parserZoomEvent(t){const e=t.scale;if(this._lastScale===0)return this._lastScale=e,t;t.zoomDelta=e/this._lastScale;const i=t.center;return t.zoomX=i.x,t.zoomY=i.y,this._lastScale=e,t}parserScrollEvent(t){return t}clearScroll(){}clearDrag(){}}function qs(n){return n===Ue["desktop-browser"]||n===Ue["desktop-miniApp"]?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"wheel",zoomEnd:"pointerup",scroll:"wheel",trigger:UJ}:xa(n)||Pa(n)?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"pinch",zoomEnd:"pinchend",scroll:"pan",scrollEnd:"panend",trigger:$J}:null}const Jo={debounce:wa,throttle:yr};class oS{constructor(){this._isGestureListener=!1}initZoomable(t,e=Ue["desktop-browser"]){this._eventObj=t,this._renderMode=e,this._gestureController=this._option.getChart().getVGrammarView().renderer._gestureController,this._isGestureListener=xa(this._renderMode)||Pa(this._renderMode),qs(this._renderMode)&&(this._clickEnable=!0,this._zoomableTrigger=new(this._getZoomTriggerEvent("trigger")))}_getZoomTriggerEvent(t){return qs(this._renderMode)[t]}_zoomEventDispatch(t,e,i){if(!this._isGestureListener&&!t.event)return;const s=this._isGestureListener?t:t.event.clone();this._zoomableTrigger.parserZoomEvent(s);const{zoomDelta:r,zoomX:a,zoomY:o,path:l}=s;if(!l.some(d=>d.name&&d.name.includes("region"))||P(r)||!mg({x:a,y:o},this._getRegionOrSeriesLayout(e),!1))return;let h={};i&&(h=i({zoomDelta:r,zoomX:a,zoomY:o},s)),this._eventObj.emit("zoom",Object.assign(Object.assign({scale:s.zoomDelta,scaleCenter:{x:s.zoomX,y:s.zoomY}},h),{model:this}))}_getRegionOrSeriesLayout(t){t.type!=="region"&&(t=t.getRegion());const{x:e,y:i,width:s,height:r}=t.layout.getLayout();return{x1:e,y1:i,x2:e+s,y2:i+r}}_bindZoomEventAsRegion(t,e,i,s){var r,a;const o=(r=s==null?void 0:s.delayType)!==null&&r!==void 0?r:"throttle",l=(a=s==null?void 0:s.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("zoom")]:[this._getZoomTriggerEvent("zoom"),{level:pe.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("zoomEnd")]:[this._getZoomTriggerEvent("zoomEnd"),{level:pe.chart,consume:!1}];h.on(...c,Jo[o](u=>{this._zoomableTrigger.clearZoom()},l)),h.on(...d,Jo[o](u=>{this._zoomEventDispatch(u,e,i)},l))}initZoomEventOfSeries(t,e,i){this._option.disableTriggerEvent||qs(this._renderMode)&&this._bindZoomEventAsRegion(t.event,t,e,i)}initZoomEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||qs(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindZoomEventAsRegion(a.event,a,i,s)}):this._bindZoomEventAsRegion(this._eventObj,r,i,s)})}_scrollEventDispatch(t,e,i){let s=!1;if(!this._isGestureListener&&(!t.event||this._option.disableTriggerEvent))return s;const r=this._isGestureListener?t:t.event;this._zoomableTrigger.parserScrollEvent(r);const{scrollX:a,scrollY:o,canvasX:l,canvasY:h}=r;return P(a)&&P(o)||mg({x:l,y:h},this._getRegionOrSeriesLayout(e),!1)&&(i&&(s=i({scrollX:a,scrollY:o},r)),this._eventObj.emit("scroll",{scrollX:a,scrollY:o,model:this})),s}_bindScrollEventAsRegion(t,e,i,s){var r,a;const o=(r=s==null?void 0:s.delayType)!==null&&r!==void 0?r:"throttle",l=(a=s==null?void 0:s.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("scroll")]:[this._getZoomTriggerEvent("scroll"),{level:pe.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("scrollEnd")]:[this._getZoomTriggerEvent("scrollEnd"),{level:pe.chart,consume:!1}];h.on(...c,Jo[o](u=>{this._zoomableTrigger.clearScroll()},l)),h.on(...d,Jo[o](u=>this._scrollEventDispatch(u,e,i),l))}initScrollEventOfSeries(t,e,i){qs(this._renderMode)&&this._bindScrollEventAsRegion(t.event,t,e,i)}initScrollEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||qs(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindScrollEventAsRegion(a.event,a,i,s)}):this._bindScrollEventAsRegion(this._eventObj,r,i,s)})}_bindDragEventAsRegion(t,e,i,s){t.on(this._getZoomTriggerEvent("start"),{level:pe.chart},r=>{if(!r.event)return;const{event:a}=r;mg({x:a.canvasX,y:a.canvasY},this._getRegionOrSeriesLayout(e),!1)&&this._handleDrag(r,i,s)}),t.on("click",{level:pe.chart},()=>!this._clickEnable)}initDragEventOfSeries(t,e,i){this._option.disableTriggerEvent||qs(this._renderMode)&&t.event.on(this._getZoomTriggerEvent("start"),{level:pe.model,filter:({model:s})=>(s==null?void 0:s.id)===t.id},s=>{this._handleDrag(s,e,i)})}initDragEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||qs(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&(a.event.on(this._getZoomTriggerEvent("start"),{level:pe.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},o=>{this._handleDrag(o,i)}),a.event.on("click",{level:pe.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},()=>!this._clickEnable))}):this._bindDragEventAsRegion(this._eventObj,r,i,s)})}_handleDrag(t,e,i){var s,r,a;if(this._option.disableTriggerEvent||(this._clickEnable=!1,!this._zoomableTrigger.parserDragEvent(t.event)))return;const o=(s=i==null?void 0:i.delayType)!==null&&s!==void 0?s:"throttle",l=(r=i==null?void 0:i.delayTime)!==null&&r!==void 0?r:0,h=(a=i==null?void 0:i.realTime)===null||a===void 0||a,d=this._getZoomTriggerEvent("move"),c=this._getZoomTriggerEvent("end"),u=t.event;let g=u.canvasX,p=u.canvasY,_=u.canvasX,f=u.canvasY;const m=Jo[o](y=>{this._clickEnable=!0;const b=y.event,x=[b.canvasX-_,b.canvasY-f];_=b.canvasX,f=b.canvasY,!h&&e&&e(x,y.event),this._eventObj.emit("panend",{delta:x,model:this}),this._zoomableTrigger.pointerId=null,this._eventObj.off(d,{level:pe.chart,source:Vt.chart},v),this._eventObj.off(c,{level:pe.chart,source:Vt.window},m),this._eventObj.allow(c)},l),v=Jo[o](y=>{if(!this._zoomableTrigger.parserDragEvent(y.event))return;this._clickEnable=!1,this._eventObj.prevent(c,m);const b=y.event,x=[b.canvasX-g,b.canvasY-p];g=b.canvasX,p=b.canvasY,h&&e&&e(x,y.event),this._eventObj.emit("panmove",{delta:x,model:this})},l);this._eventObj.on(d,{level:pe.chart,source:Vt.chart},v),this._eventObj.on(c,{level:pe.chart,source:Vt.chart},m)}}function YJ(n,t){return`${_t}_${t}_${n}`}class L_ extends qi{constructor(){super(...arguments),this.type=X.geoCoordinate,this.name=X.geoCoordinate,this.layoutType="none",this.layoutZIndex=ee.Mark,this._projectionSpec={name:YJ(this.type,this.id),type:"mercator"},this._actualScale=1,this._initialScale=1,this.effect={scaleUpdate:()=>{this.coordinateHelper()}},this._handleChartZoom=(t,e)=>{var i,s,r,a,o,l;let h=t.zoomDelta;const d=this._actualScale;return this._actualScale*=h,this._actualScale<((i=this._spec.zoomLimit)===null||i===void 0?void 0:i.min)?(this._actualScale=(s=this._spec.zoomLimit)===null||s===void 0?void 0:s.min,h=((r=this._spec.zoomLimit)===null||r===void 0?void 0:r.min)/d):this._actualScale>((a=this._spec.zoomLimit)===null||a===void 0?void 0:a.max)&&(this._actualScale=(o=this._spec.zoomLimit)===null||o===void 0?void 0:o.max,h=((l=this._spec.zoomLimit)===null||l===void 0?void 0:l.max)/d),this.zoom(h,[t.zoomX,t.zoomY]),{scale:h,totalScale:this._actualScale}},this.pan=(t=[0,0])=>{var e,i,s;const r=(i=(e=this._projection)===null||e===void 0?void 0:e.translate())!==null&&i!==void 0?i:[0,0];let a=r[0],o=r[1];a+=t[0],o+=t[1],(s=this._projection)===null||s===void 0||s.translate([a,o])}}get longitudeField(){return this._longitudeField}get latitudeField(){return this._latitudeField}get projectionSpec(){return this._projectionSpec}setProjection(t){this._projectionSpec=Object.assign(Object.assign({},t),{name:this._projectionSpec.name})}getZoom(){return this._actualScale}static getSpecInfo(t){if(P(t))return null;const e=[];return t.region.forEach((i,s)=>{if(i.coordinate==="geo"){const r=Object.assign(Object.assign({},i),{padding:0});e.push({spec:r,regionIndex:s,type:X.geoCoordinate,specInfoPath:["component","geoCoordinate",s]})}}),e}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this._spec.roam&&this.initZoomable(this.event,this._option.mode),this._projectionSpec=gt(this._projectionSpec,this._spec.projection),this._projectionSpec.zoom>((t=this._spec.zoomLimit)===null||t===void 0?void 0:t.max)&&(this._projectionSpec.zoom=this._spec.zoomLimit.max),this._projectionSpec.zoom<((e=this._spec.zoomLimit)===null||e===void 0?void 0:e.min)&&(this._projectionSpec.zoom=this._spec.zoomLimit.min),this._actualScale=(i=this._projectionSpec.zoom)!==null&&i!==void 0?i:1,this._initialScale=this._actualScale,this._longitudeField=this._spec.longitudeField,this._latitudeField=this._spec.latitudeField}created(){super.created(),this._regions=this._option.getRegionsInIndex([this._option.regionIndex]),this.initProjection(),this.coordinateHelper(),this.initEvent(),this._initCenterCache()}dispatchZoom(t,e){const i=e||{x:this.getLayoutStartPoint().x+this.getLayoutRect().width/2,y:this.getLayoutStartPoint().y+this.getLayoutRect().height/2},{scale:s,totalScale:r}=this._handleChartZoom({zoomDelta:t,zoomX:i.x,zoomY:i.y});s!==1&&this.event.emit("zoom",{scale:s,scaleCenter:i,totalScale:r,model:this})}initEvent(){this.event.on(lt.scaleUpdate,{filter:({model:e})=>(e==null?void 0:e.id)===this.id},this.effect.scaleUpdate.bind(this));const{roam:t}=this._spec;t&&(this.initZoomEventOfRegions(this._regions,null,this._handleChartZoom),this.initDragEventOfRegions(this._regions,t.blank?null:()=>!0,this.pan),this._regions.forEach(e=>{e.getSeries().forEach(i=>{i.event.on("zoom",s=>(i.handleZoom(s),!0)),i.event.on("panmove",s=>(i.handlePan(s),!0))})}))}initProjection(){var t;this._projection=new NJ(this._projectionSpec),this._projection.projection!==null||(t=this._option)===null||t===void 0||t.onError("unsupported projection type!")}coordinateHelper(){const t={longitudeField:this._longitudeField,latitudeField:this._latitudeField,dataToPosition:this.dataToPosition.bind(this),dataToLongitude:this.dataToLongitude.bind(this),dataToLatitude:this.dataToLatitude.bind(this),shape:this.shape.bind(this),getCoordinateId:()=>this.id};this._regions.forEach(e=>{e.getSeries().forEach(i=>{i.type===Y.map?i.setCoordinateHelper(t):(i.setXAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(s,r)=>{var a;let o=s[0];if(P(o)&&(r!=null&&r.datum)){const l=r.datum[i.getDimensionField()[0]];o=(a=this._centerCache.get(l))===null||a===void 0?void 0:a.x}return this.dataToLongitude(o)},valueToPosition:(s,r)=>{var a;if(P(s)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];s=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.x}return this.dataToLongitude(s)},getFields:()=>[this._longitudeField],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>!1})),i.setYAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(s,r)=>{var a;let o=s[0];if(P(o)&&(r!=null&&r.datum)){const l=r.datum[i.getDimensionField()[0]];o=(a=this._centerCache.get(l))===null||a===void 0?void 0:a.y}return this.dataToLatitude(o)},valueToPosition:(s,r)=>{var a;if(P(s)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];s=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.y}return this.dataToLatitude(s)},getFields:()=>[this._latitudeField],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>!1})))})})}onLayoutEnd(t){this.setLayoutRect(this._regions[0].getLayoutRect()),this.setLayoutStartPosition(this._regions[0].getLayoutStartPoint());const{width:e,height:i}=this.getLayoutRect(),{translate:s,scale:r,center:a}=this.evaluateProjection([0,0],[e,i]);s&&this._projection.translate(s),r&&this._projection.scale(r),a&&this._projection.center(a),Te(this._regions,o=>{var l;if(o.type===Y.map){o.areaPath.clear();const h=(l=o.getRootMark().getProduct())===null||l===void 0?void 0:l.getGroupGraphicItem();h&&h.attribute.postMatrix&&h.setAttributes({postMatrix:new Ee})}}),this._actualScale=this._initialScale,super.onLayoutEnd(t)}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}collectFeatures(){const t=[];return this._regions.forEach(e=>{e.getSeries().forEach(i=>{var s,r;i.type===Y.map&&t.push(...(r=(s=i.getMapViewData())===null||s===void 0?void 0:s.latestData)!==null&&r!==void 0?r:[])})}),t}dataToPosition(t=[]){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([t[0],t[1]]);return{x:i==null?void 0:i[0],y:i==null?void 0:i[1]}}dataToLatitude(t){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([0,t]);return i==null?void 0:i[1]}dataToLongitude(t){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([t,0]);return i==null?void 0:i[0]}zoom(t,e=[0,0]){var i,s,r,a,o,l;let h=(s=(i=this._projection)===null||i===void 0?void 0:i.scale())!==null&&s!==void 0?s:0;const d=(a=(r=this._projection)===null||r===void 0?void 0:r.translate())!==null&&a!==void 0?a:[0,0];let c=d[0],u=d[1];h*=t,c-=(e[0]-c)*(t-1),u-=(e[1]-u)*(t-1),(o=this._projection)===null||o===void 0||o.scale(h),(l=this._projection)===null||l===void 0||l.translate([c,u])}shape(t){return this._projection.shape(t)}invert(t){return this._projection.invert(t)}evaluateProjection(t,e){var i;const s=this._projection.evaluate(t,e,this.collectFeatures());let r=s.translate();const a=s.scale()*this._initialScale,o=(i=this._projectionSpec.center)!==null&&i!==void 0?i:s.invert([e[0]/2,e[1]/2]);return o&&(r=[e[0]/2,e[1]/2]),{translate:r,scale:a,center:o}}_initCenterCache(){this._centerCache||(this._centerCache=new Map),this._regions.forEach(t=>{t.getSeries().forEach(e=>{var i,s;e.type==="map"&&((s=(i=e.getMapViewData())===null||i===void 0?void 0:i.latestData)!==null&&s!==void 0?s:[]).forEach((r={})=>{const a=r[e.getDimensionField()[0]]||r[B_],o=e.getDatumCenter(r);a&&C(o)&&this._centerCache.set(a,{x:o[0],y:o[1]})})})})}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||(i.reMake=["roam","longitudeField","latitudeField","projection","zoomLimit"].some(s=>!Jt(e==null?void 0:e[s],t[s]))),i}release(){super.release(),this._centerCache&&this._centerCache.clear(),this._centerCache=null}}L_.type=X.geoCoordinate,se(L_,oS);const nI=()=>{D.registerComponent(L_.type,L_)};class sI extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"area",void 0,void 0,!1)}}class da extends HJ{constructor(){super(...arguments),this.type=Y.map,this.transformerConstructor=sI,this._areaCache=new Map}getNameMap(){return this._nameMap}get areaPath(){return this._areaCache}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this.map=this._spec.map,this._nameMap=this._spec.nameMap,this._nameField=this._spec.nameField,this._valueField=this._spec.valueField,this._spec.nameProperty&&(this._nameProperty=this._spec.nameProperty),this._spec.centroidProperty&&(this._centroidProperty=this._spec.centroidProperty),this.map||(t=this._option)===null||t===void 0||t.onError(`map type '${this.map}' is not specified !`),Co.get(this.map)||(e=this._option)===null||e===void 0||e.onError(`'${this.map}' data is not registered !`)}initData(){var t,e;super.initData(),vt(this._dataSet,"copyDataView",cm),vt(this._dataSet,"map",VJ),vt(this._dataSet,"lookup",jJ);const i=Co.get(this.map);i||(t=this._option)===null||t===void 0||t.onError("no valid map data found!");const s=new Gt(this._dataSet,{name:`map_${this.id}_data`});s.parse([i],{type:"dataview"}).transform({type:"copyDataView",options:{deep:!0},level:cs.copyDataView}).transform({type:"map",options:{nameMap:this._nameMap,nameProperty:this._nameProperty}}).transform({type:"lookup",options:{from:()=>{var r;return(r=this._data)===null||r===void 0?void 0:r.getLatestData()},key:B_,fields:this._nameField,set:(r,a)=>{a&&Object.keys(a).forEach(o=>{o in r||(r[o]=a[o])})}}}),(e=this._data)===null||e===void 0||e.getDataView().target.addListener("change",s.reRunAllTransform),this._mapViewData=new js(this._option,s)}compileData(){var t;super.compileData(),(t=this._mapViewData)===null||t===void 0||t.compile()}initMark(){this._pathMark=this._createMark(da.mark.area,{groupKey:this.getDimensionField()[0],isSeriesMark:!0,skipBeforeLayouted:!0,dataView:this._mapViewData.getDataView(),dataProductId:this._mapViewData.getProductId()},{morph:Mr(this._spec,da.mark.area.name),morphElementKey:this.getDimensionField()[0]})}initMarkStyle(){const t=this._pathMark;t&&(this.setMarkStyle(t,{fill:e=>{var i,s,r,a;return C(e[(i=this._seriesField)!==null&&i!==void 0?i:sn])?((s=this._option.globalScale.getScale("color"))!==null&&s!==void 0?s:this._getDefaultColorScale()).scale(e[(r=this._seriesField)!==null&&r!==void 0?r:sn]):(a=this._spec)===null||a===void 0?void 0:a.defaultFillColor},path:this.getPath.bind(this)},"normal",Z.Series),t.setPostProcess("fill",e=>C(e)?e:this._spec.defaultFillColor),this.setMarkStyle(t,{smoothScale:!0},"normal",Z.Built_In))}initLabelMarkStyle(t){t&&(this._labelMark=t,this.setMarkStyle(t,{text:e=>this.getDatumName(e),x:e=>{var i;return(i=this.dataToPosition(e))===null||i===void 0?void 0:i.x},y:e=>{var i;return(i=this.dataToPosition(e))===null||i===void 0?void 0:i.y}}))}initAnimation(){var t;this._pathMark.setAnimationConfig(It((t=D.getAnimationInKey("fadeInOut"))===null||t===void 0?void 0:t(),Nt("area",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new WJ(this),this._pathMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pathMark)}getPath(t){var e;const i=this._areaCache.get(t[Mi]);if(i)return i.shape;const s=(e=this._coordinateHelper)===null||e===void 0?void 0:e.shape(t);return this._areaCache.set(t[Mi],{shape:s}),s}onEvaluateEnd(){this._mapViewData.updateData()}getDimensionField(){return[this.nameField]}getMeasureField(){return[this.valueField]}release(){super.release(),this._areaCache.clear(),this._nameMap={},this._mapViewData=null}handleZoom(t){var e,i,s;const{scale:r,scaleCenter:a}=t;if(r===1)return;const o=(e=this.getRootMark().getProduct())===null||e===void 0?void 0:e.getGroupGraphicItem();o&&(o.attribute.postMatrix||o.setAttributes({postMatrix:new Ee}),o.scale(r,r,a));const l=(s=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||s===void 0?void 0:s.getProduct();l&&l.evaluate(null,null)}handlePan(t){var e,i,s;const{delta:r}=t;if(r[0]===0&&r[1]===0)return;const a=(e=this.getRootMark().getProduct())===null||e===void 0?void 0:e.getGroupGraphicItem();a&&(a.attribute.postMatrix||a.setAttributes({postMatrix:new Ee}),a.translate(r[0],r[1]));const o=(s=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||s===void 0?void 0:s.getProduct();o&&o.evaluate(null,null)}getDatumCenter(t){var e,i,s,r;return this._centroidProperty&&(!((e=t.properties)===null||e===void 0)&&e[this._centroidProperty])?(i=t.properties)===null||i===void 0?void 0:i[this._centroidProperty]:H(t.centroidX*t.centroidY)?[t.centroidX,t.centroidY]:!((s=t.properties)===null||s===void 0)&&s.center?t.properties.center:!((r=t.properties)===null||r===void 0)&&r.centroid?t.properties.centroid:[Number.NaN,Number.NaN]}getDatumName(t){var e;if(t[this.nameField])return t[this.nameField];const i=(e=t.properties)===null||e===void 0?void 0:e[this._nameProperty];if(i){if(this._spec.nameMap&&this._spec.nameMap[i])return this._spec.nameMap[i];if(this._spec.showDefaultName||!this._spec.nameMap)return i}return""}dataToPositionX(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionY(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}viewDataUpdate(t){var e,i,s;super.viewDataUpdate(t),(i=(e=this._mapViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(s=this._mapViewData)===null||s===void 0||s.updateData()}_getDataIdKey(){return Mi}getActiveMarks(){return[this._pathMark]}}da.type=Y.map,da.mark=GJ,da.transformerConstructor=sI;const XJ=()=>{zJ(),nI(),aS(),D.registerSeries(da.type,da),D.registerImplement("registerMap",Pq),D.registerImplement("unregisterMap",Eq),Tr()},I_=`${_t}_waterfall_default_seriesField`,KJ=(n,t)=>{if(!n||n.length===0)return n;const{indexField:e,total:i,groupData:s}=t,r=[],{dimensionValues:a,dimensionData:o}=s().latestData,l=Array.from(a[e]);let h={start:0,end:0,positive:0,negative:0,lastIndex:null};return l.forEach((d,c)=>{const u={start:h.end,end:h.end,lastIndex:h.lastIndex,lastEnd:h.end,index:d,isTotal:!1,positive:h.end,negative:h.end},g=o[d];if(g==null||g.forEach((p,_)=>{_===g.length-1?p[Cc]=!0:delete p[Cc]}),g.length>1){const p=_=>{if(i&&i.type!=="end"){if(i.type==="field"||i.type==="custom")return!!_[i.tagField]}else if(c===l.length-1)return!0;return!1};if(g.some(_=>p(_)))return h=qJ(g,d,u,r,h,l,c,t,p),void r.push(u)}h=rI(g,d,u,r,h,l,c,t),r.push(u)}),r};function qJ(n,t,e,i,s,r,a,o,l){e.isTotal=!0;const{valueField:h,startAs:d,endAs:c,total:u}=o,g=[],p=[];if(n.forEach(x=>{l(x)?p.push(x):g.push(x)}),p.length===n.length){const x=rI([n[0]],t,e,i,s,r,a,o);return p.forEach(S=>{S[d]=n[0][d],S[c]=n[0][c],S[h]=n[0][h]}),x}const _=p[0];let{start:f,end:m}=aI(_,e,i,s,u);e.start=f,e.end=m;let v=f,y=f,b=m-f;return g.forEach(x=>{const S=+x[h];S>=0?(x[d]=+v,v=es(v,S)):(x[d]=+y,y=es(y,S)),x[c]=es(x[d],S),f=es(f,S),b=X0(b,S)}),p.forEach(x=>{x[d]=+f,x[c]=es(x[d],b),x[h]=b}),Object.assign(Object.assign({},e),{lastIndex:t})}function rI(n,t,e,i,s,r,a,o){const{valueField:l,startAs:h,endAs:d,total:c,seriesField:u,seriesFieldName:g}=o;return n.forEach(p=>{let _=!1;if(c&&c.type!=="end"){if((c.type==="field"||c.type==="custom")&&p[c.tagField]){_=!0;const{start:f,end:m}=aI(p,e,i,s,c);p[h]=f,p[d]=m,p[l]=m-f,e.start=f,e.end=m}}else a===r.length-1&&(e.start=0,p[h]=e.start,p[d]=e.end,_=!0);if(!_){const f=+p[l];f>=0?(p[h]=+e.positive,e.positive=es(e.positive,f)):(p[h]=+e.negative,e.negative=es(e.negative,f)),p[d]=es(p[h],f),e.end=es(e.end,f)}e.isTotal=_,(P(u)||u===I_)&&(p[I_]=_?g.total:+p[l]>=0?g.increase:g.decrease)}),Object.assign(Object.assign({},e),{lastIndex:t})}function aI(n,t,e,i,s){return s&&s.type!=="end"?s.type==="field"||s.type==="custom"?s.type==="custom"?JJ(n,i,s):s.collectCountField&&!P(n[s.collectCountField])?QJ(n,e,t,s):tQ(n,t,s):{start:0,end:0}:ZJ(t)}function ZJ(n){return{start:0,end:n.end}}function JJ(n,t,e){return e.product(n,t)}function QJ(n,t,e,i){let s=0,r=e.end;const a=t.length-+n[i.collectCountField],o=t.length-1;return a<0?rn("total.collectCountField error"):s=t[a].start,o<0?rn("total.collectCountField error"):r=t[o].end,{start:s,end:r}}function tQ(n,t,e){let i=0,s=t.end;return e.startField&&!P(n[e.startField])&&(i=+n[e.startField]),e.valueField&&!P(n[e.valueField])&&(s=es(i,+n[e.valueField])),{start:i,end:s}}const eQ=(n,t)=>{if(!n)return n;const{indexField:e,valueField:i,total:s,seriesField:r}=t,a={[e]:(s==null?void 0:s.text)||"total",[i]:n.reduce((o,l)=>es(o,+l[i]),0)};return r&&(a[r]="total"),n.push(a),n},iQ={type:"fadeIn"},nQ={type:"growCenterIn"};function sQ(n,t){switch(t){case"fadeIn":return iQ;case"scaleIn":return nQ;default:return ku(n,!1)}}const rQ=()=>{D.registerAnimation("waterfall",(n,t)=>({appear:sQ(n,t),enter:ku(n,!1),exit:ch(n,!1),disappear:ch(n,!1)}))};class Vc extends Ci{constructor(){super(...arguments),this.type=Vc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x1:0,y1:0})}}Vc.type="rule";const wh=()=>{D.registerMark(Vc.type,Vc),Vx()},aQ=Object.assign(Object.assign({},nS),{leaderLine:{name:"leaderLine",type:"rule"},stackLabel:{name:"stackLabel",type:"text"}}),oQ=(n,t)=>{if(!t.fields)return n;const e={};return{dimensionValues:e,dimensionData:oI(n.map(i=>i.latestData).flat(),t.fields,e)}};function oI(n,t,e){if(t.length===0)return n;const i=t[0],s=t.slice(1);e[i]=new Set;const r=lQ(n,i,e[i]);return s.length?hQ(r,(a,o)=>oI(a,s,e)):r}function lQ(n,t,e){const i={};return n.forEach(s=>{const r=s[t];i[r]||(i[r]=[],e.add(r)),i[r].push(s)}),i}function hQ(n,t){return Object.keys(n).reduce((e,i)=>(e[i]=t(n[i],i),e),{})}class dQ{get fields(){return this._fields}get groupData(){return this._groupData}constructor(t){this._fields=[],this._fields=t}initData(t,e){const i=t.name,s=new Gt(e instanceof ya?e:t.dataSet);s.name=i,s.parse([t],{type:"dataview"}),vt(e,"dimensionTree",oQ),s.transform({type:"dimensionTree",options:{fields:this._fields}},!1),s.target.addListener("change",this.groupDataUpdate.bind(this)),this._groupData=s}groupDataUpdate(){}getGroupValueInField(t){var e,i,s;const r=(s=(i=(e=this.groupData)===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.dimensionValues)===null||s===void 0?void 0:s[t];return r?Array.from(r):[]}}class lI extends Am{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"bar"),this._addMarkLabelSpec(t,"bar","stackLabel","initStackLabelMarkStyle")}}const Zw={rect:Jw,symbol:hI,arc:Qw,point:_Q,"line-data":uQ,stackLabel:dI,line:tC,area:tC,rect3d:Jw,arc3d:Qw,treemap:vQ,venn:yQ};function cQ(n,t){var e;const{labelSpec:i}=t;i.overlap&&!yt(i.overlap)&&(i.overlap={});const s=(e=Zw[n])!==null&&e!==void 0?e:Zw.point;return t.series.type===Y.sankey?bQ(t):s(t)}function lS(n,t,e,i){var s;const{labelMark:r,series:a}=n,o={text:t[a.getMeasureField()[0]],data:t,textType:(s=n.labelSpec.textType)!==null&&s!==void 0?s:"text"},l=Object.keys(r.stateStyle.normal);for(const h of l){const d=r.getAttribute(h,t);o[h]=d}if(a.type!==Y.sankey){const{formatFunc:h,args:d}=zs(e,i,o.text,t);h&&(o._originText=o.text,o.text=h(...d,{series:a}))}return o}function Tm(n){return N(n)?t=>n(t.data):n}function hI(n){var t,e,i;const{series:s,labelSpec:r}=n,a=s.direction==="horizontal"?"right":"top",o=(t=Tm(r.position))!==null&&t!==void 0?t:a;let l;return l=r.overlap!==!1&&{strategy:(i=(e=r.overlap)===null||e===void 0?void 0:e.strategy)!==null&&i!==void 0?i:gQ(),avoidBaseMark:o!=="center"},{position:o,overlap:l}}function uQ(n){const t=hI(n);return Me(t.overlap)||(t.overlap.avoidBaseMark=!1),t}function gQ(){return[{type:"position",position:["top","bottom","right","left","top-right","top-left","bottom-left","bottom-right"]}]}function Jw(n){var t,e,i,s,r,a;const{series:o,labelSpec:l={}}=n,h=(t=Tm(l.position))!==null&&t!==void 0?t:"outside",d=(e=o.direction)!==null&&e!==void 0?e:"vertical",c=o.direction==="horizontal"?(i=o.getXAxisHelper())===null||i===void 0?void 0:i.isInverse():(s=o.getYAxisHelper())===null||s===void 0?void 0:s.isInverse();let u,g=h;g=_=>{var f;const{data:m}=_,v=(f=typeof l.position=="function"?l.position(m):l.position)!==null&&f!==void 0?f:"outside";if(v==="outside"){const y=o.getMeasureField()[0],b={vertical:["top","bottom"],horizontal:["right","left"]},x=(m==null?void 0:m[y])>=0&&c||(m==null?void 0:m[y])<0&&!c?1:0;return b[d][x]}return v},u=l.overlap!==!1&&{strategy:(a=(r=l.overlap)===null||r===void 0?void 0:r.strategy)!==null&&a!==void 0?a:pQ(o)};let p=!1;return tt(h)&&h.includes("inside")&&(p=!0),{position:g,overlap:u,smartInvert:p}}function pQ(n){return[{type:"position",position:t=>{var e,i;const{data:s}=t,r=n.getMeasureField()[0];return(n.direction==="horizontal"?!((e=n.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=n.getYAxisHelper())===null||i===void 0)&&i.isInverse())?(s==null?void 0:s[r])>=0?n.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]:n.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:(s==null?void 0:s[r])>=0?n.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:n.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]}}]}function _Q(n){const{labelSpec:t}=n;let e;return e=t.overlap!==!1&&{avoidBaseMark:!1},{position:"center",overlap:e}}function Qw(n){var t;const{labelSpec:e}=n,i=(t=Tm(e.position))!==null&&t!==void 0?t:"outside",s=i;let r;return r=e.smartInvert?e.smartInvert:tt(i)&&i.includes("inside"),{position:s,smartInvert:r}}function fQ(n,t,e,i){return t.direction==="horizontal"?e==="middle"?.5*(t.totalPositionX(n,"end")+t.totalPositionY(n,"start")):e==="max"?t.totalPositionX(n,n.end>=n.start?"end":"start")+i:e==="min"?t.totalPositionX(n,n.end>=n.start?"start":"end")-i:t.totalPositionX(n,"end")+(n.end>=n.start?i:-i):t.totalPositionX(n,"index",.5)}function mQ(n,t,e,i){return t.direction==="horizontal"?t.totalPositionY(n,"index",.5):e==="middle"?.5*(t.totalPositionY(n,"end")+t.totalPositionY(n,"start")):e==="max"?t.totalPositionY(n,n.end>=n.start?"end":"start")-i:e==="min"?t.totalPositionY(n,n.end>=n.start?"start":"end")+i:t.totalPositionY(n,"end")+(n.end>=n.start?-i:i)}function dI(n,t,e){const i=n.series,s=n.labelSpec||{},r=i.getTotalData();return{customLayoutFunc:a=>a.map(o=>{const l=s.position||"withChange",h=s.offset||0,d=t?t(o.data):o.data,c=lS(n,d,s.formatMethod);return c.x=fQ(d,i,l,h),c.y=mQ(d,i,l,h),i.direction==="horizontal"?c.textAlign=l==="middle"?"center":l==="withChange"&&d.end-d.start>=0||l==="max"?"left":"right":c.textBaseline=l==="middle"?l:l==="withChange"&&d.end-d.start>=0||l==="max"?"bottom":"top",e==null||e(o,d,c),Zl(Object.assign(Object.assign({},c),{id:o.id}))}),dataFilter:a=>{const o=[];return r.forEach(l=>{const h=a.find(d=>{var c;return l.index===((c=d.data)===null||c===void 0?void 0:c[i.getDimensionField()[0]])});h&&(h.data=l,o.push(h))}),o},overlap:{strategy:[]}}}function vQ(n){return{customLayoutFunc:(t,e)=>e,overlap:!1}}function yQ(n){return{customLayoutFunc:(t,e)=>e,smartInvert:!0}}function tC(n){var t,e,i,s;const{labelSpec:r,series:a}=n,o=(i=(e=(t=a.getViewDataStatistics)===null||t===void 0?void 0:t.call(a).latestData)===null||e===void 0?void 0:e[a.getSeriesField()])===null||i===void 0?void 0:i.values,l=o?o.map((h,d)=>({[a.getSeriesField()]:h,index:d})):[];return{position:(s=r.position)!==null&&s!==void 0?s:"end",data:l}}function bQ(n){var t,e,i;const{series:s,labelSpec:r={}}=n,a=(t=Tm(r.position))!==null&&t!==void 0?t:"outside",o=s.direction;let l,h=a;return tt(a)&&(o==="vertical"?h=a==="inside-start"?d=>"inside-left":a==="inside-middle"?d=>"center":a==="inside-end"?d=>"inside-right":d=>"bottom":a==="inside-start"?h=d=>"inside-left":a==="inside-middle"?h=d=>"center":a==="inside-end"?h=d=>"inside-right":a==="outside"&&(h=d=>"right")),l=r.overlap!==!1&&(!tt(a)||!a.includes("inside"))&&{strategy:(i=(e=r.overlap)===null||e===void 0?void 0:e.strategy)!==null&&i!==void 0?i:xQ(s)},{position:h,overlap:l,smartInvert:!1,offset:0,syncState:!0}}function xQ(n){return[{type:"position",position:t=>n.direction==="horizontal"?["right","left"]:["bottom","top"]}]}class oo extends hs{constructor(){super(...arguments),this.type=Y.waterfall,this.transformerConstructor=lI,this._leaderLineMark=null,this._stackLabelMark=null,this._labelMark=null}getTotalData(){var t;return(t=this._totalData)===null||t===void 0?void 0:t.getLatestData()}initGroups(){const t=this.getGroupFields();t&&t.length&&(this._groups=new dQ(t),this._data&&this._groups.initData(this._data.getDataView(),this._dataSet))}setAttrFromSpec(){super.setAttrFromSpec(),this.setValueFieldToStack(),this._fieldX=[this._fieldX[0]],this._fieldY=[this._fieldY[0]],P(this._seriesField)&&(this._seriesField=I_)}getSeriesKeys(){return this._seriesField===I_?[this._theme.seriesFieldName.increase,this._theme.seriesFieldName.decrease,this._theme.seriesFieldName.total]:super.getSeriesKeys()}initData(){var t;super.initData(),vt(this._dataSet,"waterfallFillTotal",eQ),vt(this._dataSet,"waterfall",KJ),(P(this._spec.total)||this._spec.total.type==="end")&&((t=this._rawData)===null||t===void 0||t.transform({type:"waterfallFillTotal",options:{indexField:this.getGroupFields()[0],valueField:this.getStackValueField(),seriesField:this.getSeriesField(),seriesFieldName:this._theme.seriesFieldName,total:this._spec.total}},!1));const e=lb(this.getViewData(),this._dataSet,{name:`${_t}_series_${this.id}_totalData`});this.getViewData().target.removeListener("change",e.reRunAllTransform),this._totalData=new js(this._option,e),e.transform({type:"waterfall",options:{indexField:this.getGroupFields()[0],valueField:this.getStackValueField(),seriesField:this.getSeriesField(),seriesFieldName:this._theme.seriesFieldName,startAs:Un,endAs:on,total:this._spec.total,groupData:()=>this.getGroups().groupData}},!1)}compileData(){var t;super.compileData(),(t=this._totalData)===null||t===void 0||t.compile()}initAnimation(){var t,e,i,s;const r={yField:this.direction==="horizontal"?this._fieldY[0]:this.getStackValueField(),xField:this.direction==="horizontal"?this.getStackValueField():this._fieldX[0],direction:this.direction,growFrom:()=>{var l,h;return this.direction==="horizontal"?(l=this._xAxisHelper)===null||l===void 0?void 0:l.getScale(0).scale(0):(h=this._yAxisHelper)===null||h===void 0?void 0:h.getScale(0).scale(0)}},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,o=Ia(this);this._barMark.setAnimationConfig(It((i=D.getAnimationInKey("waterfall"))===null||i===void 0?void 0:i(r,a),Nt("bar",this._spec,this._markAttributeContext),o)),this._leaderLineMark&&this._leaderLineMark.setAnimationConfig(It((s=D.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Nt("leaderLine",this._spec,this._markAttributeContext)))}viewDataUpdate(t){this._totalData.getDataView().reRunAllTransform(),this._totalData.updateData(),super.viewDataUpdate(t)}addViewDataFilter(t){}reFilterViewData(){}onEvaluateEnd(t){super.onEvaluateEnd(t),this._totalData.updateData()}initMark(){var t,e;super.initMark();const i=this._createMark(oo.mark.leaderLine,{key:"index",stateSort:(t=this._spec.leaderLine)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.leaderLine)===null||e===void 0?void 0:e.customShape});i&&(this._leaderLineMark=i,i.setDataView(this._totalData.getDataView(),this._totalData.getProductId()))}initLabelMarkStyle(t){var e;if(t)return!this._labelMark&&(!((e=this._spec.label)===null||e===void 0)&&e.visible)?(super.initLabelMarkStyle(t),void(this._labelMark=t)):void 0}initStackLabelMarkStyle(t){t&&(this._stackLabelMark=t,t.skipEncode=!0,t.setRule("stackLabel"),t.setDataView(this._totalData.getDataView(),this._totalData.getProductId()),this.setMarkStyle(t,{text:e=>{var i;return((i=this._spec.stackLabel)===null||i===void 0?void 0:i.valueType)==="absolute"?e.end:X0(e.end,e.start)}}))}initTotalLabelMarkStyle(t){this.setMarkStyle(t,{text:e=>{var i;return"end"in e?((i=this._spec.totalLabel)===null||i===void 0?void 0:i.valueType)==="absolute"?e.end:X0(e.end,e.start):this.direction==="horizontal"?e[this._fieldX[0]]:e[this._fieldY[0]]}})}getTotalLabelComponentStyle(t){return dI(Object.assign(Object.assign({},t),{series:this,labelSpec:this._spec.totalLabel}),e=>{const i=this.direction==="vertical"?e[this._fieldX[0]]:e[this._fieldY[0]];return this._totalData.getLatestData().find(s=>s.index===i)})}totalPositionX(t,e,i=.5){const{dataToPosition:s,getBandwidth:r}=this._xAxisHelper;return this._direction==="horizontal"?ne(s([t[e]],{bandPosition:this._bandPosition})):s([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("width",t)*(.5-i)}totalPositionY(t,e,i=.5){const{dataToPosition:s,getBandwidth:r}=this._yAxisHelper;return this._direction==="horizontal"?s([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("height",t)*(.5-i):ne(s([t[e]],{bandPosition:this._bandPosition}))}initMarkStyle(){super.initMarkStyle(),this._leaderLineMark&&(this._direction==="horizontal"?this.setMarkStyle(this._leaderLineMark,{visible:t=>!P(t.lastIndex),x:t=>this.totalPositionX(t,"lastEnd",0),x1:t=>this.totalPositionX(t,t.isTotal?"end":"start",0),y:t=>t.lastIndex?this.totalPositionY(t,"lastIndex",1):0,y1:t=>this.totalPositionY(t,"index",0)},"normal",Z.Series):this.setMarkStyle(this._leaderLineMark,{visible:t=>!P(t.lastIndex),x:t=>t.lastIndex?this.totalPositionX(t,"lastIndex",1):0,x1:t=>this.totalPositionX(t,"index",0),y:t=>this.totalPositionY(t,"lastEnd",0),y1:t=>this.totalPositionY(t,t.isTotal?"end":"start",0)},"normal",Z.Series))}}oo.type=Y.waterfall,oo.mark=aQ,oo.transformerConstructor=lI;const SQ=()=>{wh(),Cr(),rQ(),Tr(),hn(),ln(),D.registerSeries(oo.type,oo)},Wc=`${_t}_BOX_PLOT_OUTLIER_VALUE`;var de;(function(n){n.OUTLIER="outlier",n.MAX="max",n.MIN="min",n.MEDIAN="median",n.Q1="q1",n.Q3="q3",n.SERIES_FIELD="seriesField"})(de||(de={}));const AQ=(n,t)=>{const e=[],{outliersField:i,dimensionField:s}=t;return(n[0].latestData||[]).forEach(r=>{let a=r[i];U(a)||(a=[a]),e.push(...a.map(o=>{const l={[Wc]:o};return s.forEach(h=>{l[h]=r[h]}),l}))}),e};class kQ extends Hi{constructor(){super(...arguments),this.getContentKey=t=>e=>{if(this.isOutlierMark(e))return t===de.OUTLIER?this.series.getOutliersField():t===de.SERIES_FIELD?this.series.getSeriesField():null;switch(t){case de.MIN:return this.series.getMinField();case de.MAX:return this.series.getMaxField();case de.MEDIAN:return this.series.getMedianField();case de.Q1:return this.series.getQ1Field();case de.Q3:return this.series.getQ3Field();case de.SERIES_FIELD:return this.series.getSeriesField()}return null},this.getContentValue=t=>e=>{if(this.isOutlierMark(e))return t===de.OUTLIER?e[Wc]:t===de.SERIES_FIELD?e[this.series.getSeriesField()]:null;switch(t){case de.MIN:return e[this.series.getMinField()];case de.MAX:return e[this.series.getMaxField()];case de.MEDIAN:return e[this.series.getMedianField()];case de.Q1:return e[this.series.getQ1Field()];case de.Q3:return e[this.series.getQ3Field()];case de.SERIES_FIELD:return e[this.series.getSeriesField()]}return null},this.shapeColorCallback=t=>this.series.getShaftShape()==="line"?this.series.getMarkInName("boxPlot").getAttribute("stroke",t):this.series.getMarkInName("boxPlot").getAttribute("fill",t),this.getOutlierFillColor=t=>{var e;const i=this.series.getOutliersStyle();return(e=i==null?void 0:i.fill)!==null&&e!==void 0?e:this.series.getMarkInName("outlier").getAttribute("fill",t)},this.isOutlierMark=t=>C(t[Wc])}getDefaultContentList(t){return[{key:this.getContentKey(de.OUTLIER),value:this.getContentValue(de.OUTLIER),shapeType:this.shapeTypeCallback,shapeColor:this.getOutlierFillColor,shapeStroke:this.getOutlierFillColor},{key:this.getContentKey(de.MAX),value:this.getContentValue(de.MAX)},{key:this.getContentKey(de.Q3),value:this.getContentValue(de.Q3)},{key:this.getContentKey(de.MEDIAN),value:this.getContentValue(de.MEDIAN)},{key:this.getContentKey(de.Q1),value:this.getContentValue(de.Q1)},{key:this.getContentKey(de.MIN),value:this.getContentValue(de.MIN)},{key:this.getContentKey(de.SERIES_FIELD),value:this.getContentValue(de.SERIES_FIELD)}]}}class Gc extends Ci{constructor(){super(...arguments),this.type=Gc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:2,boxWidth:30,shaftWidth:20,shaftShape:"line"})}_initProduct(t){const e=this.getStyle("shaftShape"),i=this.getVGrammarView(),s=this.getProductId(),r=e==="bar"?"barBoxplot":"boxplot",a=this.getStyle("direction");this._product=i.glyph(r,t??i.rootMark).id(s).configureGlyph({direction:a}),this._compiledProductId=s}}Gc.type="boxPlot";const TQ=()=>{D.registerMark(Gc.type,Gc),s9(),l9()},MQ=Object.assign(Object.assign({},we),{boxPlot:{name:"boxPlot",type:"boxPlot"},outlier:{name:"outlier",type:"symbol"}});class Ro extends Xn{constructor(){super(...arguments),this.type=Y.boxPlot}getMinField(){return this._minField}getMaxField(){return this._maxField}getQ1Field(){return this._q1Field}getMedianField(){return this._medianField}getQ3Field(){return this._q3Field}getOutliersField(){return this._outliersField}getShaftShape(){return this._shaftShape}getBoxFillColor(){return this._boxFillColor}getStrokeColor(){return this._strokeColor}getOutliersStyle(){return this._outliersStyle}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec();const a=(e=(t=this._spec.boxPlot)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this._minField=this._spec.minField,this._maxField=this._spec.maxField,this._q1Field=this._spec.q1Field,this._medianField=this._spec.medianField,this._q3Field=this._spec.q3Field,this._outliersField=this._spec.outliersField,this._lineWidth=(i=a.lineWidth)!==null&&i!==void 0?i:2,this._boxWidth=a.boxWidth,this._shaftShape=(s=a.shaftShape)!==null&&s!==void 0?s:"line",this._shaftWidth=a.shaftWidth,this._boxFillColor=a.boxFill,this._strokeColor=a.stroke,this._shaftFillOpacity=this._shaftShape==="bar"?(r=a.shaftFillOpacity)!==null&&r!==void 0?r:.5:void 0,this._outliersStyle=this._spec.outliersStyle}initMark(){const t={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._boxPlotMark=this._createMark(Ro.mark.boxPlot,{isSeriesMark:!0},t),this._outlierMark=this._createMark(Ro.mark.outlier,{key:Mi,dataView:this._outlierDataView.getDataView(),dataProductId:this._outlierDataView.getProductId()},t)}initMarkStyle(){var t,e,i,s,r;const a=this._boxPlotMark;if(a){const l={direction:this._direction,lineWidth:this._lineWidth,shaftShape:this._shaftShape,fill:(t=this._boxFillColor)!==null&&t!==void 0?t:this._shaftShape==="line"?"#FFF":this.getColorAttribute(),minMaxFillOpacity:this._shaftFillOpacity,stroke:(e=this._strokeColor)!==null&&e!==void 0?e:this._shaftShape==="line"?this.getColorAttribute():"#000"},h=this._direction==="horizontal"?Object.assign(Object.assign({y:this.dataToPositionY.bind(this)},l),{boxHeight:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},ruleHeight:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()},q1q3Height:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},minMaxHeight:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()}}):Object.assign(Object.assign({x:this.dataToPositionX.bind(this)},l),{boxWidth:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},ruleWidth:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()},q1q3Width:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},minMaxWidth:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()}});this.setMarkStyle(a,h,it.STATE_NORMAL,Z.Series)}const o=this._outlierMark;o&&this.setMarkStyle(o,{fill:(s=(i=this._outliersStyle)===null||i===void 0?void 0:i.fill)!==null&&s!==void 0?s:this.getColorAttribute(),size:J((r=this._outliersStyle)===null||r===void 0?void 0:r.size)?this._outliersStyle.size:10,symbolType:"circle"},it.STATE_NORMAL,Z.Series)}initBoxPlotMarkStyle(){var t,e;const i=this._boxPlotMark,s=this._direction==="horizontal"?this._xAxisHelper:this._yAxisHelper;if(i&&s){const{dataToPosition:a}=s,o=(t=s==null?void 0:s.getScale)===null||t===void 0?void 0:t.call(s,0);this.setMarkStyle(i,{min:l=>ne(a(this.getDatumPositionValues(l,this._minField),{bandPosition:this._bandPosition}),o),q1:l=>ne(a(this.getDatumPositionValues(l,this._q1Field),{bandPosition:this._bandPosition}),o),median:l=>ne(a(this.getDatumPositionValues(l,this._medianField),{bandPosition:this._bandPosition}),o),q3:l=>ne(a(this.getDatumPositionValues(l,this._q3Field),{bandPosition:this._bandPosition}),o),max:l=>ne(a(this.getDatumPositionValues(l,this._maxField),{bandPosition:this._bandPosition}),o)},it.STATE_NORMAL,Z.Series)}const r=this._outlierMark;if(r&&s){const{dataToPosition:a}=s,o=(e=s==null?void 0:s.getScale)===null||e===void 0?void 0:e.call(s,0),l=this._direction==="horizontal"?{y:this.dataToPositionY.bind(this),x:h=>ne(a(this.getDatumPositionValues(h,Wc),{bandPosition:this._bandPosition}),o)}:{x:this.dataToPositionX.bind(this),y:h=>ne(a(this.getDatumPositionValues(h,Wc),{bandPosition:this._bandPosition}),o)};this.setMarkStyle(r,l,it.STATE_NORMAL,Z.Series)}}initData(){if(super.initData(),!this._data)return;vt(this._dataSet,"foldOutlierData",AQ),vt(this._dataSet,"addVChartProperty",Mh);const t=new Gt(this._dataSet,{name:`${this.type}_outlier_${this.id}_data`});t.parse([this.getViewData()],{type:"dataview"}),t.name=`${_t}_series_${this.id}_outlierData`,t.transform({type:"foldOutlierData",options:{dimensionField:this._direction==="horizontal"?this._fieldY:this._fieldX,outliersField:this._outliersField}}),t.transform({type:"addVChartProperty",options:{beforeCall:hh.bind(this),call:Po}},!1),this._outlierDataView=new js(this._option,t)}compileData(){var t;super.compileData(),(t=this._outlierDataView)===null||t===void 0||t.compile()}init(t){super.init(t),this.initBoxPlotMarkStyle()}_getMarkWidth(){if(this._autoBoxWidth)return this._autoBoxWidth;const t=this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper,e=this._direction==="horizontal"?this._fieldY:this._fieldX,i=t.getBandwidth(e.length-1)/e.length;return this._autoBoxWidth=i,this._autoBoxWidth}onLayoutEnd(t){super.onLayoutEnd(t),this._autoBoxWidth=null}_initAnimationSpec(t={}){const e=$({},t);return["appear","enter","update","exit","disappear"].forEach(i=>{e[i]&&e[i].type==="scaleIn"?e[i].type=this._shaftShape==="line"?"boxplotScaleIn":"barBoxplotScaleIn":e[i]&&e[i].type==="scaleOut"&&(e[i].type=this._shaftShape==="line"?"boxplotScaleOut":"barBoxplotScaleOut")}),e}initAnimation(){var t,e,i,s,r,a,o;const l=Ia(this);if(this._boxPlotMark){const h=this._initAnimationSpec((t=D.getAnimationInKey("scaleInOut"))===null||t===void 0?void 0:t()),d=this._initAnimationSpec(Nt("boxPlot",this._spec,this._markAttributeContext));this._boxPlotMark.setAnimationConfig(It(h,d,l))}if(this._outlierMark){const h={appear:(e=this._spec.animationAppear)===null||e===void 0?void 0:e.symbol,disappear:(i=this._spec.animationDisappear)===null||i===void 0?void 0:i.symbol,enter:(s=this._spec.animationEnter)===null||s===void 0?void 0:s.symbol,exit:(r=this._spec.animationExit)===null||r===void 0?void 0:r.symbol,update:(a=this._spec.animationUpdate)===null||a===void 0?void 0:a.symbol};this._outlierMark.setAnimationConfig(It((o=D.getAnimationInKey("scaleInOut"))===null||o===void 0?void 0:o(),h,l))}}initTooltip(){this._tooltipHelper=new kQ(this),this._boxPlotMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._boxPlotMark),this._outlierMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._outlierMark)}getStatisticFields(){const t=super.getStatisticFields(),e=t.find(i=>i.key===this._outliersField);return e&&(e.operations=["array-min","array-max"]),t}onEvaluateEnd(t){super.onEvaluateEnd(t),this._outlierDataView.updateData()}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._boxPlotMark]}}Ro.type=Y.boxPlot,Ro.mark=MQ;const wQ=()=>{TQ(),wr(),vm(),hn(),ln(),D.registerSeries(Ro.type,Ro)};class uh extends Ci{getTextType(){return this._textType}constructor(t,e){super(t,e),this.type=uh.type,this._textType="text"}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{angle:0,textAlign:"center",lineWidth:0,textConfig:[]})}initStyleWithSpec(t,e){super.initStyleWithSpec(t,e),t.textType&&(this._textType=t.textType)}compileEncode(){super.compileEncode(),this._textType==="rich"&&this._product.encodeState("group",{textType:this._textType})}}uh.type="text";const dn=()=>{D.registerMark(uh.type,uh),VB(),J6()};function eC(n,t,e,i,s,r,a,o,l){n.setMarkStyle(t,{textAlign:h=>{if(l()==="vertical")return"center";const d=s(h),c=r(h);if(e==="middle")return"center";if(d>=c){if(e==="start")return"left";if(e==="end")return"right";if(e==="outside")return"left"}else{if(e==="start")return"right";if(e==="end")return"left";if(e==="outside")return"right"}return"center"},textBaseline:h=>{if(l()==="horizontal")return"middle";const d=a(h),c=o(h);if(e==="middle")return"middle";if(c>=d){if(e==="start")return"bottom";if(e==="end")return"top";if(e==="outside")return"bottom"}else{if(e==="start")return"top";if(e==="end")return"bottom";if(e==="outside")return"top"}return"middle"}}),n.setMarkStyle(t,{x:h=>{const d=l(),c=s(h),u=r(h);if(d==="vertical"||e==="middle")return(c+u)/2;if(c>=u){if(e==="start")return u+i;if(e==="end")return c-i;if(e==="outside")return c+i}else{if(e==="start")return u-i;if(e==="end")return c+i;if(e==="outside")return c-i}return(c+u)/2},y:h=>{const d=l(),c=a(h),u=o(h);if(d==="horizontal"||e==="middle")return(c+u)/2;if(c>=u){if(e==="start")return u+i;if(e==="end")return c-i;if(e==="outside")return c+i}else{if(e==="start")return u-i;if(e==="end")return c+i;if(e==="outside")return c-i}return(c+u)/2}},"normal",Z.Series)}class CQ extends Hi{constructor(){super(...arguments),this._getMeasureData=t=>this.series.getSpec().direction==="horizontal"?t[this.series.getSpec().xField[0]]+"-"+t[this.series.getSpec().xField[1]]:t[this.series.getSpec().yField[0]]+"-"+t[this.series.getSpec().yField[1]]}}const cI=n=>({type:"growCenterIn",options:{direction:n.direction==="horizontal"?"x":"y"}}),PQ={type:"fadeIn"},iC=n=>({type:"growCenterOut",options:{direction:n.direction==="horizontal"?"x":"y"}});function EQ(n,t){return t==="fadeIn"?PQ:cI(n)}const RQ=()=>{D.registerAnimation("rangeColumn",(n,t)=>({appear:EQ(n,t),enter:cI(n),exit:iC(n),disappear:iC(n)}))},OQ=Object.assign(Object.assign({},nS),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}}),BQ=Object.assign(Object.assign({},KL),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}});class uI extends Am{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){var e;((e=t.label)===null||e===void 0?void 0:e.position)!=="bothEnd"&&this._addMarkLabelSpec(t,"bar")}}class as extends hs{constructor(){super(...arguments),this.type=Y.rangeColumn,this._barMarkType="rect",this._barName=Y.bar,this.transformerConstructor=uI}initMark(){var t,e,i,s,r,a,o,l,h,d;this._initBarBackgroundMark();const c=(t=this._spec.label)===null||t===void 0?void 0:t.position;this._barMark=this._createMark(as.mark.bar,{groupKey:this._seriesField,isSeriesMark:!0,stateSort:(e=this._spec.bar)===null||e===void 0?void 0:e.stateSort},{setCustomizedShape:(i=this._spec.bar)===null||i===void 0?void 0:i.customShape,morph:Mr(this._spec,as.mark.bar.name),morphElementKey:this.getDimensionField()[0]}),((s=this._spec.label)===null||s===void 0?void 0:s.visible)!==!1&&c==="bothEnd"&&(((a=(r=this._spec.label)===null||r===void 0?void 0:r.minLabel)===null||a===void 0?void 0:a.visible)!==!1&&(this._minLabelMark=this._createMark(as.mark.minLabel,{markSpec:(o=this._spec.label)===null||o===void 0?void 0:o.minLabel})),((h=(l=this._spec.label)===null||l===void 0?void 0:l.maxLabel)===null||h===void 0?void 0:h.visible)!==!1&&(this._maxLabelMark=this._createMark(as.mark.maxLabel,{markSpec:(d=this._spec.label)===null||d===void 0?void 0:d.maxLabel})))}initMarkStyle(){var t,e,i,s,r,a,o,l,h,d;super.initMarkStyle();const c=this._minLabelMark,u=(t=this._spec.label)===null||t===void 0?void 0:t.minLabel;if(c){this.setMarkStyle(c,{fill:(i=(e=u==null?void 0:u.style)===null||e===void 0?void 0:e.fill)!==null&&i!==void 0?i:this.getColorAttribute(),text:m=>{const v=this._spec.direction==="horizontal"?m[this._spec.xField[0]]:m[this._spec.yField[0]];return u!=null&&u.formatMethod?u.formatMethod(v,m):v}});const _=(s=u==null?void 0:u.position)!==null&&s!==void 0?s:"end",f=(r=u==null?void 0:u.offset)!==null&&r!==void 0?r:this._direction==="vertical"?-20:-25;eC(this,c,_,f,m=>this._barMark.getAttribute("x",m),m=>this._direction==="vertical"?this._barMark.getAttribute("x",m)+this._barMark.getAttribute("width",m):this._barMark.getAttribute("x1",m),m=>this._barMark.getAttribute("y",m),m=>this._direction==="vertical"?this._barMark.getAttribute("y1",m):this._barMark.getAttribute("y",m)+this._barMark.getAttribute("height",m),()=>this._direction)}const g=this._maxLabelMark,p=(a=this._spec.label)===null||a===void 0?void 0:a.maxLabel;if(g){this.setMarkStyle(g,{fill:(l=(o=p==null?void 0:p.style)===null||o===void 0?void 0:o.fill)!==null&&l!==void 0?l:this.getColorAttribute(),text:m=>{const v=this._spec.direction==="horizontal"?m[this._spec.xField[1]]:m[this._spec.yField[1]];return p!=null&&p.formatMethod?p.formatMethod(v,m):v}});const _=(h=p==null?void 0:p.position)!==null&&h!==void 0?h:"start",f=(d=p==null?void 0:p.offset)!==null&&d!==void 0?d:this._direction==="vertical"?-20:-25;eC(this,g,_,f,m=>this._barMark.getAttribute("x",m),m=>this._direction==="vertical"?this._barMark.getAttribute("x",m)+this._barMark.getAttribute("width",m):this._barMark.getAttribute("x1",m),m=>this._barMark.getAttribute("y",m),m=>this._direction==="vertical"?this._barMark.getAttribute("y1",m):this._barMark.getAttribute("y",m)+this._barMark.getAttribute("height",m),()=>this._direction)}}initLabelMarkStyle(t){t&&(this.setMarkStyle(t,{text:e=>{let i,s;return this._spec.direction==="horizontal"?(i=e[this._spec.xField[0]],s=e[this._spec.xField[1]]):(i=e[this._spec.yField[0]],s=e[this._spec.yField[1]]),i+"-"+s},z:this._fieldZ?this.dataToPositionZ.bind(this):null}),this._labelMark=t)}_dataToPosX(t){return this._xAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.xField[0]),{bandPosition:this._bandPosition})}_dataToPosX1(t){return this._xAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.xField[1]),{bandPosition:this._bandPosition})}_dataToPosY(t){return this._yAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.yField[0]),{bandPosition:this._bandPosition})}_dataToPosY1(t){return this._yAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.yField[1]),{bandPosition:this._bandPosition})}initAnimation(){var t,e,i,s,r;const a=Ia(this),o=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._barMark.setAnimationConfig(It((i=D.getAnimationInKey("rangeColumn"))===null||i===void 0?void 0:i({direction:this.direction},o),Nt("bar",this._spec,this._markAttributeContext),a)),this._minLabelMark&&this._minLabelMark.setAnimationConfig(It((s=D.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Nt("label",this._spec,this._markAttributeContext),a)),this._maxLabelMark&&this._maxLabelMark.setAnimationConfig(It((r=D.getAnimationInKey("fadeInOut"))===null||r===void 0?void 0:r(),Nt("label",this._spec,this._markAttributeContext),a))}initTooltip(){this._tooltipHelper=new CQ(this),this._barMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._barMark),this._minLabelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._minLabelMark),this._maxLabelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._maxLabelMark),this._labelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._labelMark)}}as.type=Y.rangeColumn,as.mark=OQ,as.transformerConstructor=uI;const LQ=()=>{Cr(),dn(),RQ(),Tr(),hn(),ln(),D.registerSeries(as.type,as)};class D_ extends as{constructor(){super(...arguments),this.type=Y.rangeColumn3d,this._barMarkType="rect3d",this._barName=Y.bar3d}}D_.type=Y.rangeColumn3d,D_.mark=BQ;const IQ=()=>{sS(),hn(),ln(),D.registerSeries(D_.type,D_)};class DQ extends Hi{constructor(){super(...arguments),this._getMeasureData=t=>this.series.getSpec().direction==="horizontal"?t[this.series.getSpec().xField[0]]+"-"+t[this.series.getSpec().xField[1]]:t[this.series.getSpec().yField[0]]+"-"+t[this.series.getSpec().yField[1]]}}const FQ=Object.assign({},NL);class gh extends or{constructor(){super(...arguments),this.type=Y.rangeArea}initMark(){var t;const{customShape:e,stateSort:i}=(t=this._spec.area)!==null&&t!==void 0?t:{};this._areaMark=this._createMark(gh.mark.area,{groupKey:this._seriesField,isSeriesMark:!0,stateSort:i},{setCustomizedShape:e,morphElementKey:this.getDimensionField()[0]})}initMarkStyle(){this.initAreaMarkStyle()}initAreaMarkStyle(){const t=this._areaMark;t&&(super.initAreaMarkStyle(),this._direction==="horizontal"?this.setMarkStyle(this._areaMark,{x1:e=>{if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:i}=this._xAxisHelper;return i(this.getDatumPositionValues(e,this._spec.xField[1]),{bandPosition:this._bandPosition})}},"normal",Z.Series):this.setMarkStyle(this._areaMark,{y1:e=>{if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:i}=this._yAxisHelper;return i(this.getDatumPositionValues(e,this._spec.yField[1]),{bandPosition:this._bandPosition})}},"normal",Z.Series),this.setMarkStyle(t,{stroke:!1},"normal",Z.Series))}initTooltip(){this._tooltipHelper=new DQ(this)}_isFieldAllValid(){const t=this.getViewDataStatistics(),e=this.fieldY;return!!(t&&t.latestData&&e.length)&&e.every(i=>t.latestData[i]&&t.latestData[i].allValid)}}gh.type=Y.rangeArea,gh.mark=FQ;const zQ=()=>{Sm(),hn(),ln(),D.registerSeries(gh.type,gh)};class Tu extends Eo{constructor(){super(...arguments),this.coordinate="polar",this._outerRadius=v_,this._innerRadius=0,this._angleField=[],this._radiusField=[],this._sortDataByAxis=!1}get outerRadius(){return this._outerRadius}get innerRadius(){return this._innerRadius}getAngleField(){return this._angleField}setAngleField(t){return this._angleField=C(t)?j(t):[],this._angleField}getRadiusField(){return this._radiusField}setRadiusField(t){return this._radiusField=C(t)?j(t):[],this._radiusField}get innerRadiusField(){return this._innerRadiusField}setInnerRadiusField(t){return this._innerRadiusField=j(t),this._innerRadiusField}get radiusScale(){return this._radiusScale}setRadiusScale(t){return this._radiusScale=t,t}get angleScale(){return this._angleScale}setAngleScale(t){return this._angleScale=t,t}get angleAxisHelper(){return this._angleAxisHelper}set angleAxisHelper(t){this._angleAxisHelper=t,this.onAngleAxisHelperUpdate()}get radiusAxisHelper(){return this._radiusAxisHelper}set radiusAxisHelper(t){this._radiusAxisHelper=t,this.onRadiusAxisHelperUpdate()}get sortDataByAxis(){return this._sortDataByAxis}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this),this._markAttributeContext.getCenter=()=>this.angleAxisHelper.center(),this._markAttributeContext.getLayoutRadius=()=>this._computeLayoutRadius()}valueToPosition(t,e){if(P(t)||P(e)||!this.angleAxisHelper||!this.radiusAxisHelper)return{x:Number.NaN,y:Number.NaN};const i=this.radiusAxisHelper.dataToPosition(j(e));if(i<0){if(this._invalidType==="break"||this._invalidType==="link")return{x:Number.NaN,y:Number.NaN};if(this._invalidType==="zero")return this.angleAxisHelper.center()}const s=this.angleAxisHelper.dataToPosition(j(t));return this.angleAxisHelper.coordToPoint({angle:s,radius:i})}dataToPosition(t,e){return t&&this.angleAxisHelper&&this.radiusAxisHelper?e&&!this.isDatumInViewData(t)?null:this.valueToPosition(this.getDatumPositionValues(t,this._angleField),this.getDatumPositionValues(t,this._radiusField)):null}dataToPositionX(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.x}dataToPositionY(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.y}dataToPositionZ(t){return 0}positionToData(t){}radiusToData(t){}angleToData(t){}getStatisticFields(){var t,e;const i=[];return!((t=this.radiusAxisHelper)===null||t===void 0)&&t.getScale&&this._radiusField.forEach(s=>{const r={key:s,operations:[]};Qt(this.radiusAxisHelper.getScale(0).type)?r.operations=["max","min"]:r.operations=["values"],i.push(r)}),!((e=this.angleAxisHelper)===null||e===void 0)&&e.getScale&&this._angleField.forEach(s=>{const r={key:s,operations:[]};Qt(this.angleAxisHelper.getScale(0).type)?r.operations=["max","min"]:r.operations=["values"],i.push(r)}),i}setAttrFromSpec(){super.setAttrFromSpec(),C(this._spec.outerRadius)&&(this._outerRadius=this._spec.outerRadius),C(this._spec.radius)&&(this._outerRadius=this._spec.radius),C(this._spec.innerRadius)&&(this._innerRadius=this._spec.innerRadius),C(this._spec.sortDataByAxis)&&(this._sortDataByAxis=this._spec.sortDataByAxis===!0)}onRadiusAxisHelperUpdate(){this.onMarkPositionUpdate()}onAngleAxisHelperUpdate(){this.onMarkPositionUpdate()}afterInitMark(){super.afterInitMark()}_computeLayoutRadius(){const t=this._angleAxisHelper||this._radiusAxisHelper;if(t)return t.layoutRadius();const{width:e,height:i}=this._region.getLayoutRect();return Math.min(e/2,i/2)}initEvent(){super.initEvent(),this.sortDataByAxis&&this.event.on(lt.scaleDomainUpdate,{filter:t=>{var e;return t.model.id===((e=this._angleAxisHelper)===null||e===void 0?void 0:e.getAxisId())}},()=>{this._sortDataInAxisDomain()})}_sortDataInAxisDomain(){var t,e;!((e=(t=this.getViewData())===null||t===void 0?void 0:t.latestData)===null||e===void 0)&&e.length&&IL(this.angleAxisHelper,this._angleField[0],this.getViewData().latestData)}getInvalidCheckFields(){const t=[];return this.angleAxisHelper.isContinuous&&this._angleField.forEach(e=>{t.push(e)}),this.radiusAxisHelper.isContinuous&&this._radiusField.forEach(e=>{t.push(e)}),t}}function F_(n){return ih(n)?Number.parseFloat(n):0}const jQ=(n,t)=>{const{asStartAngle:e,asEndAngle:i,asMiddleAngle:s,asRadian:r,asRatio:a,asQuadrant:o,asK:l,showAllZero:h,supportNegative:d,showEmptyCircle:c}=t,u=t.angleField(),g=t.startAngle(),p=t.endAngle(),_=t.minAngle(),f=n.map(M=>Object.assign({},M));if(!f||f.length===0||!h&&c&&gI(f,u,d))return f;const m=(M,R,O)=>{M[e]=R,M[i]=R+O,M[s]=R+O/2,M[r]=O,M[o]=mP(R+O/2)};let v=0,y=-1/0,b=!0;for(let M=0;MNumber(M[u])),S=p-g;let A=g,k=S,T=0;const w=m8(x);if(f.forEach((M,R)=>{const O=M[M0],L=v?O/v:0;let E=L*S;E<_?(E=_,k-=_):T+=O;const B=A,I=A+E;M[a]=L,M[l]=y?O/y:0,M._percent_=w[R],m(M,B,E),A=I}),k{m(R,g+O*M,M)})}else{const M=k/T;A=g,f.forEach(R=>{const O=R[r]===_?_:R[M0]*M;m(R,A,O),A+=O})}if(v!==0&&(f[f.length-1][i]=p),b&&h){const M=S/f.length;f.forEach((R,O)=>{m(R,g+O*M,M)})}return f},gI=(n,t,e)=>!!P(n)||n.length===0||!!n.every(i=>F_(i[t])===0)||!e&&n.reduce((i,s)=>i+F_(s[t]),0)===0;function Mm(n,t,e){return(i,s,r)=>t?n.growField==="radius"?{overall:0}:{overall:n.growFrom(i,s,e)}:{overall:!1}}const nC=n=>({type:n.growField==="radius"?"growRadiusIn":"growAngleIn",options:Mm(n,!0,Ye.appear)}),HQ={type:"fadeIn"},pI=n=>({type:n.growField==="radius"?"growRadiusIn":"growAngleIn",easing:"linear",options:Mm(n,!0,Ye.enter)}),_I=n=>({type:n.growField==="radius"?"growRadiusOut":"growAngleOut",easing:"linear",options:Mm(n,!0,Ye.exit)}),fI=n=>({type:n.growField==="radius"?"growRadiusOut":"growAngleOut",options:Mm(n,!0,Ye.exit)});function hS(n,t){if(t===!1)return{};switch(t){case"fadeIn":return HQ;case"growRadius":return nC(Object.assign(Object.assign({},n),{growField:"radius"}));default:return nC(Object.assign(Object.assign({},n),{growField:"angle"}))}}const VQ=()=>{D.registerAnimation("pie",(n,t)=>({appear:hS(n,t),enter:pI(n),exit:_I(n),disappear:fI(n)}))},WQ=()=>{D.registerAnimation("emptyCircle",(n,t)=>({appear:hS(n,t)}))},GQ=()=>{D.registerAnimation("pie3d",(n,t)=>({appear:hS(n,t),enter:pI(n),exit:_I(n),disappear:fI(n)}))};function NQ(n,t){var e,i,s,r;const a=(i=(e=t.options)===null||e===void 0?void 0:e.distance)!==null&&i!==void 0?i:10,o=H(t.duration)?t.duration/2:1e3,l=(s=t.options.easing)!==null&&s!==void 0?s:"cubicOut";return{oneByOne:t.oneByOne,loop:(r=t.loop)!==null&&r!==void 0&&r,timeSlices:[{duration:o,effects:{easing:l,channel:{x:{from:h=>n.getAttribute("x",h),to:h=>n.getAttribute("x",h)+ue({x:0,y:0},a,h[ar]).x},y:{from:h=>n.getAttribute("y",h),to:h=>n.getAttribute("y",h)+ue({x:0,y:0},a,h[ar]).y}}}},{duration:o,effects:{easing:l,channel:{x:{to:h=>n.getAttribute("x",h),from:h=>n.getAttribute("x",h)+ue({x:0,y:0},a,h[ar]).x},y:{to:h=>n.getAttribute("y",h),from:h=>n.getAttribute("y",h)+ue({x:0,y:0},a,h[ar]).y}}}}]}}class mI extends Ci{constructor(t,e){super(t,e),this.type=ph.type,this._unCompileChannel={centerOffset:!0,radiusOffset:!0},this.computeOuterRadius=(i,s,r="normal",a,o)=>{var l;return o+((l=this.getAttribute("radiusOffset",s,r,a))!==null&&l!==void 0?l:0)},this.computeCenter=(i,s,r="normal",a,o)=>ue({x:0,y:0},this.getAttribute("centerOffset",s,r,a),s[ar])[i]+o,this._computeExChannel.x=this.computeCenter,this._computeExChannel.y=this.computeCenter,this._computeExChannel.outerRadius=this.computeOuterRadius,this._extensionChannel.centerOffset=["x","y"],this._extensionChannel.radiusOffset=["outerRadius"]}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{startAngle:0,endAngle:0,outerRadius:0,innerRadius:0,cornerRadius:0,lineWidth:0,innerPadding:0,outerPadding:0})}}class ph extends mI{constructor(){super(...arguments),this.type=ph.type}}ph.type="arc";const Uo=()=>{G6(),OL(),D.registerMark(ph.type,ph)},UQ=Object.assign(Object.assign({},we),{pie:{name:"pie",type:"arc"},labelLine:{name:"labelLine",type:"path"}}),$Q=Object.assign(Object.assign({},we),{pie3d:{name:"pie3d",type:"arc3d"},labelLine:{name:"labelLine",type:"path"}});class dS extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie")}_mergeThemeToSpec(t,e){const i=this._theme;let s=t;if(this._shouldMergeThemeToSpec()){const r=this._getDefaultSpecFromChart(e);s=gt({},this._theme,r,t);const a=(o,l)=>gt({},o==="inside"||o==="inside-center"?this._theme.innerLabel:this._theme.outerLabel,l);U(s.label)?s.label=s.label.map(o=>a(o.position,o)):s.label=a(s.label.position,s.label)}return{spec:s,theme:i}}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{centerX:s,centerY:r}=t;return C(s)&&(i.centerX=s),C(r)&&(i.centerY=r),Object.keys(i).length>0?i:void 0}}const YQ=`${_t}_LABEL_VISIBLE`,XQ=(n,t)=>{var e,i,s,r,a,o;const l=(e=n.type)!==null&&e!==void 0?e:n.orient==="angle"?"band":"linear",h=`${X.polarAxis}-${l}`,d=(i=n.startAngle)!==null&&i!==void 0?i:t.startAngle,c=(s=n.endAngle)!==null&&s!==void 0?s:t.endAngle;return{axisType:l,componentName:h,startAngle:d??Ox,endAngle:c??(C(d)?d+360:cB),center:C(t.center)?t.center:C(t==null?void 0:t.centerX)||C(t==null?void 0:t.centerY)?{x:t==null?void 0:t.centerX,y:t==null?void 0:t.centerY}:void 0,outerRadius:(o=(a=(r=n.outerRadius)!==null&&r!==void 0?r:n.radius)!==null&&a!==void 0?a:t.outerRadius)!==null&&o!==void 0?o:t.radius,layoutRadius:t.layoutRadius}},vI=(n,t,e,i)=>{const s=n();if(J(s))return s;if(N(s))return s(t(),e());const r=t();if(s==="auto"&&r.width>0&&r.height>0){const{startAngle:a=0,endAngle:o=2*Math.PI}=i();return I2(r,e(),a,o)}return Math.min(r.width/2,r.height/2)};class _h extends Tu{constructor(){super(...arguments),this.transformerConstructor=dS,this._pieMarkName="pie",this._pieMarkType="arc",this.getCenter=()=>{var t,e;const i=this._region.getLayoutRect();return{x:$e((t=this._spec)===null||t===void 0?void 0:t.centerX,i.width,i,i.width/2),y:$e((e=this._spec)===null||e===void 0?void 0:e.centerY,i.height,i,i.height/2)}},this._startAngle=nm,this._endAngle=Rx,this._pieMark=null,this._labelMark=null,this._labelLineMark=null,this._emptyArcMark=null,this.dataToCentralPosition=t=>{const e=t[ar];if(P(e))return null;const i=this.computeDatumRadius(t),s=this.computeDatumInnerRadius(t),r=this.computeCenter(t);return ue(r,(i+s)/2,e)}}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getCenter=()=>({x:()=>this.getCenter().x,y:()=>this.getCenter().y}),this._markAttributeContext.startAngleScale=t=>this.startAngleScale(t),this._markAttributeContext.endAngleScale=t=>this.endAngleScale(t)}setAttrFromSpec(){var t,e,i,s,r,a;super.setAttrFromSpec(),this._centerOffset=(t=this._spec.centerOffset)!==null&&t!==void 0?t:0,this._cornerRadius=(e=this._spec.cornerRadius)!==null&&e!==void 0?e:0;const o=c8(C(this._spec.startAngle)?te(this._spec.startAngle):this._startAngle,C(this._spec.endAngle)?te(this._spec.endAngle):this._endAngle);this._startAngle=o.startAngle,this._endAngle=o.endAngle,this._padAngle=C(this._spec.padAngle)?te(this._spec.padAngle):0,this.setAngleField(this._spec.valueField||this._spec.angleField),this._spec.categoryField&&this.setSeriesField(this._spec.categoryField),this._radiusField=[],this._specAngleField=this._angleField.slice(),this._specRadiusField=[],this._showEmptyCircle=(s=(i=this._spec.emptyPlaceholder)===null||i===void 0?void 0:i.showEmptyCircle)!==null&&s!==void 0&&s,this._showAllZero=(r=this._spec.showAllZero)!==null&&r!==void 0&&r,this._supportNegative=(a=this._spec.supportNegative)!==null&&a!==void 0&&a}initData(){super.initData();const t=this.getViewData();if(!t)return;vt(this._dataSet,"pie",jQ),t.transform({type:"pie",options:{angleField:()=>this._angleField[0],startAngle:()=>this._startAngle,endAngle:()=>this._endAngle,minAngle:()=>C(this._spec.minAngle)?te(this._spec.minAngle):0,asStartAngle:CM,asEndAngle:PM,asRatio:Z8,asMiddleAngle:ar,asRadian:tX,asQuadrant:Q8,asK:J8,showAllZero:this._showAllZero,supportNegative:this._supportNegative,showEmptyCircle:this._showEmptyCircle}},!1);const e=new Gt(this._dataSet,{name:`${_t}_series_${this.id}_viewDataLabel`});e.parse([this.getViewData()],{type:"dataview"}),this._viewDataLabel=new js(this._option,e)}compileData(){var t;super.compileData(),(t=this._viewDataLabel)===null||t===void 0||t.compile()}initMark(){var t,e;this._pieMark=this._createMark(Object.assign(Object.assign({},_h.mark.pie),{name:this._pieMarkName,type:this._pieMarkType}),{key:ds,groupKey:this._seriesField,skipBeforeLayouted:!0,isSeriesMark:!0,stateSort:(t=this._spec.pie)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.pie)===null||e===void 0?void 0:e.customShape,morph:Mr(this._spec,this._pieMarkName),morphElementKey:this._seriesField}),this._showEmptyCircle&&(this._emptyArcMark=this._createMark({name:"emptyCircle",type:"arc"},{dataView:!1}))}startAngleScale(t){return Tg(CM)(t)}endAngleScale(t){return Tg(PM)(t)}_computeLayoutRadius(){return vI(()=>this._spec.layoutRadius,this.getLayoutRect,this.getCenter,()=>({startAngle:this._startAngle,endAngle:this._endAngle}))}initMarkStyle(){const t={x:()=>this.getCenter().x,y:()=>this.getCenter().y,fill:this.getColorAttribute(),outerRadius:TM(this._outerRadius)?this._outerRadius:()=>this._computeLayoutRadius()*this._outerRadius,innerRadius:TM(this._innerRadius)?this._innerRadius:()=>this._computeLayoutRadius()*this._innerRadius,cornerRadius:()=>this._computeLayoutRadius()*this._cornerRadius,startAngle:s=>this.startAngleScale(s),endAngle:s=>this.endAngleScale(s),padAngle:this._padAngle,centerOffset:this._centerOffset},e=this._pieMark;e&&this.setMarkStyle(e,t,"normal",Z.Series);const i=this._emptyArcMark;i&&this.setMarkStyle(i,Object.assign(Object.assign({},t),{visible:()=>{const s=this.getAngleField()[0];return gI(this.getViewData().latestData,s,this._supportNegative)}}),"normal",Z.Series)}initInteraction(){this._parseInteractionConfig(this._pieMark?[this._pieMark]:[])}initTooltip(){super.initTooltip(),this._pieMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pieMark)}initMarkStyleWithSpec(t,e,i){if(super.initMarkStyleWithSpec(t,e,i),t.name===this._pieMarkName){const s=this.getSpec()[t.name];if(s)for(const r in s.state||{})this.setMarkStyle(t,this.generateRadiusStyle(s.state[r]),r,Z.User_Mark)}t.name==="emptyCircle"&&this.setMarkStyle(t,this.generateRadiusStyle(e.style),"normal",Z.User_Mark)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{visible:Tg(YQ).bind(this),text:e=>e[this.getDimensionField()[0]],fill:this.getColorAttribute(),z:this.dataToPositionZ.bind(this)})}afterInitMark(){super.afterInitMark()}initEvent(){var t;super.initEvent(),(t=this._viewDataLabel.getDataView())===null||t===void 0||t.target.addListener("change",this.viewDataLabelUpdate.bind(this))}initGroups(){}onLayoutEnd(t){this._viewDataLabel.getDataView().reRunAllTransform(),this.onMarkPositionUpdate(),super.onLayoutEnd(t)}getDimensionField(){return this._seriesField?[this._seriesField]:[]}getMeasureField(){return this._specAngleField}viewDataLabelUpdate(){this.event.emit(lt.viewDataLabelUpdate,{model:this}),this._viewDataLabel.updateData()}generateRadiusStyle(t){if(!t)return;const e={};return t.outerRadius&&(e.outerRadius=()=>this._computeLayoutRadius()*t.outerRadius),t.innerRadius&&(e.innerRadius=()=>this._computeLayoutRadius()*t.innerRadius),t.cornerRadius&&(e.cornerRadius=()=>this._computeLayoutRadius()*t.cornerRadius),e}computeCenter(t){return{x:this._pieMark.getAttribute("x",t,"normal"),y:this._pieMark.getAttribute("y",t,"normal")}}getRadius(t="normal"){var e,i,s,r,a,o,l;const h=t==="normal"?(s=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.outerRadius:(l=(o=(a=this.getSpec()[((r=this._pieMark)===null||r===void 0?void 0:r.name)||"pie"])===null||a===void 0?void 0:a.state)===null||o===void 0?void 0:o[t])===null||l===void 0?void 0:l.outerRadius;return h??this._outerRadius}getInnerRadius(t="normal"){var e,i,s,r,a,o,l;const h=t==="normal"?(s=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.innerRadius:(l=(o=(a=this.getSpec()[((r=this._pieMark)===null||r===void 0?void 0:r.name)||"pie"])===null||a===void 0?void 0:a.state)===null||o===void 0?void 0:o[t])===null||l===void 0?void 0:l.innerRadius;return h??this._innerRadius}computeRadius(t,e){return this._computeLayoutRadius()*t*(P(e)?1:e)+this._centerOffset}computeDatumRadius(t,e){return this._computeLayoutRadius()*this.getRadius(e)+this._centerOffset}_compareSpec(t,e,i){i=i??{data:!0};const s=["centerX","centerY","centerOffset","radius","innerRadius","cornerRadius","startAngle","endAngle","padAngle"];s.forEach(a=>{i[a]=!0});const r=super._compareSpec(t,e,i);return t=t??{},s.some(a=>t[a]!==e[a])&&(r.reRender=!0,r.change=!0),r}computeDatumInnerRadius(t,e){return this._computeLayoutRadius()*this.getInnerRadius(e)+this._centerOffset}dataToPosition(t,e){const i=t[ar];if(P(i)||e&&!this.isDatumInViewData(t))return null;const s=this.computeDatumRadius(t),r=this.computeCenter(t);return ue(r,s,i)}initAnimation(){var t,e,i;const s={growFrom:(a,o,l)=>{var h;if(l===Ye.appear)return this._startAngle;if(l===Ye.disappear)return this._endAngle;const d=[Ye.disappear,Ye.exit],c=o.mark.elements,u=a,g=u==null?void 0:u[Mi];if(c.find(_=>{var f;return((f=_.data[0])===null||f===void 0?void 0:f[Mi]){var f;return((f=_.data[0])===null||f===void 0?void 0:f[Mi])>g})===void 0)return this._endAngle;const p=[...c].reverse().find(_=>{var f;return((f=_.data[0])===null||f===void 0?void 0:f[Mi]){Uo(),VQ(),WQ(),D.registerSeries(pb.type,pb)};class Nc extends mI{constructor(){super(...arguments),this.type=Nc.type,this._support3d=!0}}Nc.type="arc3d";const yI=()=>{OL(),N6(),D.registerMark(Nc.type,Nc)};class bI extends dS{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie3d")}}class Cd extends _h{constructor(){super(...arguments),this.type=Y.pie3d,this._pieMarkName="pie3d",this._pieMarkType="arc3d",this.transformerConstructor=bI}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this._angle3d=(e=(t=this._spec)===null||t===void 0?void 0:t.angle3d)!==null&&e!==void 0?e:-Math.PI/3}initMarkStyle(){super.initMarkStyle();const t=this._pieMark;t&&this.setMarkStyle(t,{beta:()=>this._angle3d},"normal",Z.Series)}initLabelMarkStyle(t,e={}){if(!t)return;super.initLabelMarkStyle(t);const i={};t.setMarkConfig({support3d:!0}),i.beta=this._angle3d,i.anchor3d=s=>{const{x:r,y:a}=this.getCenter();return[r,a]},i.angle=s=>{const r=s[ar];return e.position==="inside"?Ul(r):0},this.setMarkStyle(t,Object.assign(Object.assign({},i),{z:100}),void 0,Z.Mark)}}Cd.type=Y.pie3d,Cd.mark=$Q,Cd.transformerConstructor=bI;const qQ=()=>{GQ(),yI(),D.registerSeries(Cd.type,Cd)},sC=n=>{const t=n.growField==="angle"?0:n.innerRadius;return n.growField==="angle"?{type:n.growField==="angle"?"growAngleIn":"growRadiusIn"}:{channel:{innerRadius:{from:t,to:(e,i)=>{var s;return(s=i.getFinalGraphicAttributes())===null||s===void 0?void 0:s.innerRadius}},outerRadius:{from:t,to:(e,i)=>{var s;return(s=i.getFinalGraphicAttributes())===null||s===void 0?void 0:s.outerRadius}}}}},ZQ={type:"fadeIn"},JQ=n=>({type:n.growField==="angle"?"growAngleIn":"growRadiusIn"}),QQ=n=>({type:n.growField==="angle"?"growAngleOut":"growRadiusOut"}),ttt=n=>({type:n.growField==="angle"?"growAngleOut":"growRadiusOut"});function ett(n,t){if(t===!1)return{};switch(t){case"fadeIn":return ZQ;case"growAngle":return sC(Object.assign(Object.assign({},n),{growField:"angle"}));default:return sC(Object.assign(Object.assign({},n),{growField:"radius"}))}}const itt=()=>{D.registerAnimation("rose",(n,t)=>({appear:ett(n,t),enter:JQ(n),exit:QQ(n),disappear:ttt(n)}))};class xI extends Tu{getStackGroupFields(){return this._angleField}getStackValueField(){return j(this._spec.valueField)[0]||j(this._spec.radiusField)[0]}getGroupFields(){return this._angleField}setAttrFromSpec(){super.setAttrFromSpec(),this.setAngleField(this._spec.categoryField||this._spec.angleField),this.setRadiusField(this._spec.valueField||this._spec.radiusField),this._specAngleField=this._angleField.slice(),this._specRadiusField=this._radiusField.slice(),this.setInnerRadiusField(this._spec.valueField||this._spec.radiusField),this.getStack()&&this.setValueFieldToStack(),this.getPercent()&&this.setValueFieldToPercent()}setValueFieldToStack(){this.setRadiusField(on),this.setInnerRadiusField(Un)}setValueFieldToPercent(){this.setRadiusField(ka),this.setInnerRadiusField(bo)}getDimensionField(){return this._specAngleField}getMeasureField(){return this._specRadiusField}getDefaultShapeType(){return"square"}}const ntt=Object.assign(Object.assign({},we),{rose:{name:"rose",type:"arc"}});class SI extends Vi{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){this._addMarkLabelSpec(t,"rose")}}var rC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{if(!FZ(h))return;const{axisType:c,componentName:u,startAngle:g,endAngle:p,center:_,outerRadius:f,layoutRadius:m}=XQ(h,t);h.center=_,h.startAngle=g,h.endAngle=p,h.outerRadius=f,h.type=c,h.layoutRadius=m;const v={spec:h,specPath:e?[this.specKey,d]:[this.specKey],specInfoPath:["component",this.specKey,d],type:u};s.push(v),h.orient==="radius"?(o.push(v),a=d):(l.push(v),r=d)}),o.forEach(h=>{h.angleAxisIndex=r}),l.forEach(h=>{h.radiusAxisIndex=a}),s}static createComponent(t,e){const{spec:i}=t,s=rC(t,["spec"]),r=D.getComponentInKey(s.type);return r?new r(i,Object.assign(Object.assign({},e),s)):(e.onError(`Component ${s.type} not found`),null)}constructor(t,e){super(t,e),this.type=X.polarAxis,this.name=X.polarAxis,this._defaultBandPosition=0,this._defaultBandInnerPadding=0,this._defaultBandOuterPadding=0,this.layoutType="absolute",this.layoutZIndex=ee.Axis,this._tick=void 0,this._center=null,this._startAngle=nm,this._endAngle=Rx,this._orient="radius",this._groupScales=[],this.effect={scaleUpdate:i=>{this.computeData(i==null?void 0:i.value),Te(this._regions,s=>{this.getOrient()==="radius"?Ln(s.radiusAxisHelper,this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(s.radiusAxisHelper=this.axisHelper()):Ln(s.angleAxisHelper,this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(s.angleAxisHelper=this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{var s;const r=(s=this.getRegions())===null||s===void 0?void 0:s[0];return r?r.getLayoutStartPoint():i},this.getCenter=()=>{var i,s;const r=this.getRefLayoutRect(),{width:a,height:o}=r;return{x:$e((i=this._center)===null||i===void 0?void 0:i.x,a,r,a/2),y:$e((s=this._center)===null||s===void 0?void 0:s.y,o,r,o/2)}},this.getRefLayoutRect=()=>this.getRegions()[0].getLayoutRect(),this._coordinateType="polar"}setAttrFromSpec(){super.setAttrFromSpec(),this.visible&&(this._axisStyle=this._getAxisAttributes(),this._gridStyle=this._getGridAttributes()),this._tick=this._spec.tick,this._orient=this._spec.orient==="angle"?"angle":"radius",this._center=this._spec.center,this._startAngle=te(this._spec.startAngle),this._endAngle=te(this._spec.endAngle),this._inverse=this._spec.inverse}onRender(t){}changeRegions(){}_tickTransformOption(){var t;return Object.assign(Object.assign({},super._tickTransformOption()),{noDecimal:(t=this._tick)===null||t===void 0?void 0:t.noDecimals,startAngle:this.startAngle,labelOffset:Ic(this._spec),getRadius:()=>this.getOuterRadius(),inside:this._spec.inside})}updateScaleRange(){const t=this._scale.range();let e;return e=this.getOrient()==="radius"?this._inverse?[this.computeLayoutOuterRadius(),this.computeLayoutInnerRadius()]:[this.computeLayoutInnerRadius(),this.computeLayoutOuterRadius()]:this._inverse?[this._endAngle,this._startAngle]:[this._startAngle,this._endAngle],(!t||!e||t[0]!==e[0]||t[1]!==e[1])&&(this._scale.range(e),!0)}collectSeriesField(t,e){var i,s;let r;return r=t>0?(s=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||s===void 0?void 0:s[t]:this.getOrient()==="radius"?e.getRadiusField():e.getAngleField(),r}updateSeriesScale(){Te(this._regions,t=>{this.getOrient()==="radius"?Ln(t.radiusAxisHelper,this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(t.setRadiusScale(this._scale),t.radiusAxisHelper=this.axisHelper()):Ln(t.angleAxisHelper,this.axisHelper(),C(this._seriesUserId)||C(this._seriesIndex))&&(t.setAngleScale(this._scale),t.angleAxisHelper=this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}getSeriesStatisticsField(t){const e=this.getOrient()==="radius"?t.getRadiusField():t.getAngleField();return Qt(this._scale.type)?e:[e[0]]}initGroupScales(){}axisHelper(){return{isContinuous:Qt(this._scale.type),dataToPosition:this.dataToPosition.bind(this),coordToPoint:this.coordToPoint.bind(this),pointToCoord:this.pointToCoord.bind(this),center:this.getCenter.bind(this),layoutRadius:this._computeLayoutRadius.bind(this),getScale:(t=0)=>this._scales[t],getAxisId:()=>this.id,getSpec:()=>this._spec}}positionToData(t){const e=this.pointToCoord(t);return this.getOrient()==="radius"?this.invert(e.radius):this.invert(e.angle)}coordToPoint(t){const e=this.getCenter();return ue(e,t.radius,t.angle)}pointToCoord(t){const e=this.getCenter(),i=this._startAngle,s=this._endAngle;return ec(t,e,i,s)}getOuterRadius(){return this.computeLayoutOuterRadius()}getInnerRadius(){return this.computeLayoutInnerRadius()}updateLayoutAttribute(){this._visible&&(this.getOrient()==="radius"?this._layoutRadiusAxis():this._layoutAngleAxis()),super.updateLayoutAttribute()}_getNormalizedValue(t,e){return e===0?0:(this.dataToPosition(t)-this._getStartValue())/e}getLabelItems(t){var e;const i=(e=this.getTickData())===null||e===void 0?void 0:e.getLatestData();return i&&i.length?[i.map(s=>dh(s.value,this._getNormalizedValue([s.value],t)))]:[]}_getStartValue(){return this.getOrient()==="radius"?this.computeLayoutInnerRadius():this._startAngle}_layoutAngleAxis(){var t,e,i;const s=this.getCenter(),r=this.computeLayoutOuterRadius(),a=this.computeLayoutInnerRadius(),o=this._endAngle-this._startAngle,l=this.getLabelItems(o),h=Object.assign(Object.assign({},this.getLayoutStartPoint()),{inside:this._spec.inside,center:s,radius:r,innerRadius:a,startAngle:this._startAngle,endAngle:this._endAngle,sides:!((i=(e=(t=this._getRelatedAxis(this._option.radiusAxisIndex))===null||t===void 0?void 0:t.getSpec())===null||e===void 0?void 0:e.grid)===null||i===void 0)&&i.smooth?void 0:this.getScale().domain().length}),d=Object.assign(Object.assign({},h),{size:this.getRefLayoutRect(),title:{text:this._spec.title.text||this._dataFieldText},items:l,orient:"angle"});this._spec.grid.visible&&(d.grid=Object.assign({type:"line",smoothLink:!0,items:l[0]},h)),this._update(d)}_layoutRadiusAxis(){var t,e,i;const s=this.getCenter(),r=this.computeLayoutOuterRadius(),a=this.computeLayoutInnerRadius(),o=this.coordToPoint({angle:this._startAngle,radius:r}),l=this.coordToPoint({angle:this._startAngle,radius:a}),h=Ke.distancePP(l,o),d=this.getLabelItems(h),c=Object.assign(Object.assign({},this.getLayoutStartPoint()),{start:l,end:o,verticalFactor:-1}),u=Object.assign(Object.assign({},c),{title:{text:this._spec.title.text||this._dataFieldText},items:d,orient:"radius"});!((t=this._spec.grid)===null||t===void 0)&&t.visible&&(u.grid=Object.assign({items:d[0],type:!((e=this._spec.grid)===null||e===void 0)&&e.smooth?"circle":"polygon",center:s,closed:!0,sides:(i=this._getRelatedAxis(this._option.angleAxisIndex))===null||i===void 0?void 0:i.getScale().domain().length,startAngle:this._startAngle,endAngle:this._endAngle},c)),this._update(u)}_getRelatedAxis(t){if(C(t))return this._option.getComponentByIndex(this.specKey,t)}_computeLayoutRadius(){return vI(()=>this._spec.layoutRadius,this.getRefLayoutRect,this.getCenter,()=>({startAngle:this._startAngle,endAngle:this._endAngle}))}computeLayoutOuterRadius(){var t;const e=(t=this._spec.outerRadius)!==null&&t!==void 0?t:this._spec.radius,i=e??this.getRefSeriesRadius().outerRadius;return this._computeLayoutRadius()*i}computeLayoutInnerRadius(){var t;const e=(t=this._spec.innerRadius)!==null&&t!==void 0?t:this.getRefSeriesRadius().innerRadius;return this._computeLayoutRadius()*e}getRefSeriesRadius(){let t=v_,e=0;const i=this.getChart().getSpec();return Te(this.getRegions(),s=>{const r=s;if(EZ(r.type)){const{outerRadius:a=i.outerRadius,innerRadius:o=i.innerRadius}=r;H(a)&&(t=a),H(o)&&(e=o)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),{outerRadius:t,innerRadius:e}}_update(t){const{grid:e}=t,i=rC(t,["grid"]);this._axisMark.getProduct().encode(gt({},this._axisStyle,i)),this._gridMark&&this._gridMark.getProduct().encode(gt({},this._gridStyle,e))}invert(t){var e;if(this.getOrient()==="angle"&&this._scale.type==="band"){const i=this._scale.range(),s=i[i.length-1]-i[0],r=((e=this.getSpec().bandPosition)!==null&&e!==void 0?e:this._defaultBandPosition)===.5?0:this._scale.bandwidth()/2;if(i[0]<0){const a=(t+r+Math.abs(i[0]))%s-Math.abs(i[0]);return this._scale.invert(a)}return this._scale.invert((t+r)%s)}return this._scale.invert(t)}}z_.type=X.polarAxis,z_.specKey="axes";class Pd extends z_{constructor(){super(...arguments),this.type=X.polarLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new Tn}setAttrFromSpec(){super.setAttrFromSpec(),this.setExtraAttrFromSpec()}initScales(){super.initScales(),this.setScaleNice()}computeDomain(t){return this.computeLinearDomain(t)}axisHelper(){const t=super.axisHelper();return t.setExtendDomain=this.setExtendDomain.bind(this),t}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,pu),t}}Pd.type=X.polarLinearAxis,Pd.specKey="axes",se(Pd,xm);const Ch=()=>{Wo(),Go(),KB(),JB(),No(),D.registerComponent(Pd.type,Pd)};class Ed extends z_{constructor(){super(...arguments),this.type=X.polarBandAxis,this._scale=new Ho}computeDomain(t){return this.computeBandDomain(t)}updateScaleRange(){const t=super.updateScaleRange();return this.updateGroupScaleRange(),t}axisHelper(){const t=super.axisHelper();return Object.assign(Object.assign({},t),{getBandwidth:e=>t.getScale(e).bandwidth()})}initScales(){super.initScales(),this.calcScales(this._defaultBandInnerPadding,this._defaultBandOuterPadding)}registerTicksTransform(){const t=`${this.type}-ticks`;return vt(this._option.dataSet,t,iY),t}transformScaleDomain(){}}Ed.type=X.polarBandAxis,Ed.specKey="axes",se(Ed,WL);const Mu=()=>{Wo(),Go(),KB(),JB(),No(),D.registerComponent(Ed.type,Ed)};class ca extends xI{constructor(){super(...arguments),this.type=Y.rose,this.transformerConstructor=SI,this._roseMark=null,this._labelMark=null}initMark(){this.initRoseMark()}initMarkStyle(){this.initRoseMarkStyle()}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getCenter=()=>({x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y}),this._markAttributeContext.startAngleScale=t=>this.startAngleScale(t),this._markAttributeContext.endAngleScale=t=>this.endAngleScale(t)}initRoseMark(){var t,e;this._roseMark=this._createMark(ca.mark.rose,{groupKey:this._seriesField,isSeriesMark:!0,stateSort:(t=this._spec.rose)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.rose)===null||e===void 0?void 0:e.customShape,morph:Mr(this._spec,ca.mark.rose.name),morphElementKey:this.getDimensionField()[0]})}getRoseAngle(){var t,e,i;return(i=(e=(t=this.angleAxisHelper).getBandwidth)===null||e===void 0?void 0:e.call(t,this._groups?this._groups.fields.length-1:0))!==null&&i!==void 0?i:.5}startAngleScale(t){return this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))-.5*this.angleAxisHelper.getBandwidth(this.getGroupFields().length-1)}endAngleScale(t){return this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))+this.getRoseAngle()-.5*this.angleAxisHelper.getBandwidth(this.getGroupFields().length-1)}initRoseMarkStyle(){const t=this._roseMark;t&&this.setMarkStyle(t,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:e=>this.startAngleScale(e),endAngle:e=>this.endAngleScale(e),fill:this.getColorAttribute(),outerRadius:e=>ne(this.radiusAxisHelper.dataToPosition([e[this._radiusField[0]]]),this.radiusAxisHelper.getScale(0)),innerRadius:e=>{var i;if(!this.getStack())return 0;const s=ne(this.radiusAxisHelper.dataToPosition([e[this._innerRadiusField[0]]]),this.radiusAxisHelper.getScale(0));return s<=Number.MIN_VALUE?this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0):s}})}initTooltip(){super.initTooltip(),this._roseMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._roseMark)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{text:e=>e[this.getDimensionField()[0]],fill:this.getColorAttribute(),z:0})}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;if(this._roseMark){const r={innerRadius:()=>{var a;return this._computeLayoutRadius()*((a=this._spec.innerRadius)!==null&&a!==void 0?a:0)}};this._roseMark.setAnimationConfig(It((i=D.getAnimationInKey("rose"))===null||i===void 0?void 0:i(r,s),Nt("rose",this._spec,this._markAttributeContext)))}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._roseMark]}}ca.type=Y.rose,ca.mark=ntt,ca.transformerConstructor=SI;const stt=()=>{D.registerSeries(ca.type,ca),Uo(),itt(),Mu(),Ch()};class rtt extends Mn{constructor(t,e,i,s,r){super(t,e,i,s,r),this._center=e.center,this._prevCenter=t.center,this._center&&this._prevCenter||(this.valid=!1)}getEndProps(){return this.valid===!1?{}:ue(this._center,this._toRadius,this._toAngle)}onBind(){const{angle:t,radius:e}=ec(this.from,this._prevCenter),{angle:i,radius:s}=ec(this.to,this._center);H(i*s)||(this.valid=!1),this._fromAngle=H(t)?t:i,this._fromRadius=H(e)?e:s,this._toAngle=i,this._toRadius=s,__(this._fromAngle,this._toAngle)&&__(this._fromRadius,this._toRadius)&&(this.valid=!1)}onUpdate(t,e,i){if(this.valid===!1)return i.x=this.to.x,void(i.y=this.to.y);if(t){const{x:s,y:r}=this.getEndProps();i.x=s,i.y=r,i.center=this._center}else{const{x:s,y:r}=ue({x:this._prevCenter.x+(this._center.x-this._prevCenter.x)*e,y:this._prevCenter.y+(this._center.y-this._prevCenter.y)*e},this._fromRadius+(this._toRadius-this._fromRadius)*e,this._fromAngle+(this._toAngle-this._fromAngle)*e);i.x=s,i.y=r}}}class att extends $E{constructor(t,e,i,s,r){super(t,e,i,s,r),this._center=e.center,this._prevCenter=t.center}onUpdate(t,e,i){this.points=this.points.map((s,r)=>{const a=this.polarPointInterpolation(this.interpolatePoints[r][0],this.interpolatePoints[r][1],e);return t&&(i.center=this._center),a.context=s.context,a}),i.points=this.points}_interpolationSinglePoint(t,e,i){if(!AM(t)&&!AM(e))return e;const s=ec(t,this._prevCenter),r=ec(e,this._center);let a=va(s.angle),o=va(r.angle);!H(a)&&H(o)&&(a=o),H(a)&&!H(o)&&(o=a);const l=a+(o-a)*i,h=s.radius+(r.radius-s.radius)*i;return ue({x:this._prevCenter.x+(this._center.x-this._prevCenter.x)*i,y:this._prevCenter.y+(this._center.y-this._prevCenter.y)*i},h,l)}polarPointInterpolation(t,e,i){const{x:s,y:r}=this._interpolationSinglePoint(t,e,i),{x:a,y:o}=this._interpolationSinglePoint({x:t.x1,y:t.y1},{x:e.x1,y:e.y1},i),l=new Ie(s,r,a,o);return l.defined=e.defined,l}}const AI=n=>({type:n==="in"?"fadeIn":"fadeOut"}),ott=(n,t)=>({type:t==="in"?"growPointsIn":"growPointsOut",options:()=>({center:n.center()})});function dg(n,t,e){return t==="fadeIn"?AI(e):ott(n,e)}const ltt=(n,t)=>{const e=()=>{var a;return(a=n.center())===null||a===void 0?void 0:a.x},i=(a,o)=>o.getGraphicAttribute("x"),s=()=>{var a;return(a=n.center())===null||a===void 0?void 0:a.y},r=(a,o)=>o.getGraphicAttribute("y");return t==="in"?{channel:{x:{from:e,to:i},y:{from:s,to:r}}}:{channel:{x:{from:i,to:e},y:{from:r,to:s}}}};function aC(n,t,e){return t==="fadeIn"?AI(e):ltt(n,e)}const oC=(n,t)=>({custom:cj,customParameters:(e,i)=>{var s;return{group:i.getGraphicItem(),startAngle:(s=n.startAngle)!==null&&s!==void 0?s:Math.PI/2,orient:"clockwise",center:n.center(),radius:n.radius(),animationType:t}}}),htt=()=>{D.registerAnimation("radar",(n,t)=>({appear:t==="clipIn"?void 0:dg(n,t,"in"),enter:dg(n,t,"in"),exit:dg(n,t,"out"),disappear:t==="clipIn"?void 0:dg(n,t,"out"),update:[{options:{excludeChannels:["points","defined","center"]}},{channel:["points","center"],custom:att,customParameters:n,duration:Os.update.duration,easing:Os.update.easing}]})),D.registerAnimation("radarSymbol",(n,t)=>({appear:t==="clipIn"?void 0:aC(n,t,"in"),enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:t==="clipIn"?void 0:aC(n,t,"out"),update:[{options:{excludeChannels:["x","y","center"]}},{channel:["x","y","center"],custom:rtt,customParameters:n,duration:Os.update.duration,easing:Os.update.easing}]})),D.registerAnimation("radarGroup",(n,t)=>({appear:oC(n,"in"),disappear:oC(n,"out")})),kh()},dtt=Object.assign(Object.assign(Object.assign({},we),jr),{area:{name:"area",type:"area"}});class Kr extends xI{constructor(){super(...arguments),this.type=Y.radar,this.transformerConstructor=Su,this._sortDataByAxis=!1}initGroups(){}compile(){super.compile(),this.addOverlapCompile()}initMark(){var t,e,i,s;const r={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},a=((t=this._spec.area)===null||t===void 0?void 0:t.visible)!==!1&&((i=(e=this._spec.area)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.visible)!==!1,o=(s=this._spec.seriesMark)!==null&&s!==void 0?s:"area";this.initAreaMark(r,a&&o==="area"),this.initLineMark(r,o==="line"||o==="area"&&!a),this.initSymbolMark(r,o==="point")}initMarkStyle(){this.initAreaMarkStyle(),this.initLineMarkStyle(),this.initSymbolMarkStyle(),[this._lineMark,this._symbolMark,this._areaMark].forEach(t=>{t&&this.setMarkStyle(t,{center:()=>{var e;return(e=this.angleAxisHelper)===null||e===void 0?void 0:e.center()}})})}initAreaMark(t,e){var i,s;this._areaMark=this._createMark(Kr.mark.area,{groupKey:this._seriesField,isSeriesMark:e,stateSort:(i=this._spec.area)===null||i===void 0?void 0:i.stateSort},Object.assign(Object.assign({},t),{setCustomizedShape:(s=this._spec.area)===null||s===void 0?void 0:s.customShape}))}initAreaMarkStyle(){const t=this._areaMark;t&&(this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),x1:e=>e&&this.angleAxisHelper&&this.radiusAxisHelper?this.valueToPosition(this.getDatumPositionValues(e,this._angleField),this.getStack()?this.getDatumPositionValues(e,this._innerRadiusField):this.radiusScale.domain()[0]).x:Number.NaN,y1:e=>!e||!this.angleAxisHelper||!this.radiusAxisHelper?Number.NaN:this.valueToPosition(this.getDatumPositionValues(e,this._angleField),this.getStack()?this.getDatumPositionValues(e,this._innerRadiusField):this.radiusScale.domain()[0]).y,fill:this.getColorAttribute(),curveType:FL,closePath:!0},"normal",Z.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",Z.Series),this.event.on(lt.viewDataStatisticsUpdate,{filter:e=>e.model===this},()=>{this.encodeDefined(t,"defined")}))}initTooltip(){super.initTooltip();const{group:t,mark:e}=this._tooltipHelper.activeTriggerSet;this._lineMark&&t.add(this._lineMark),this._areaMark&&t.add(this._areaMark),this._symbolMark&&(e.add(this._symbolMark),t.add(this._symbolMark))}initAnimation(){var t,e,i,s;const r={center:()=>{var o;return(o=this.angleAxisHelper)===null||o===void 0?void 0:o.center()},radius:()=>{const o=this.getLayoutRect();return Math.min(o.width,o.height)},startAngle:C(this._spec.startAngle)?te(this._spec.startAngle):nm},a=(i=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset)!==null&&i!==void 0?i:"clipIn";a==="clipIn"&&this._rootMark&&this._rootMark.setAnimationConfig(It((s=D.getAnimationInKey("radarGroup"))===null||s===void 0?void 0:s(r,a),Nt("group",this._spec,this._markAttributeContext))),[[this._areaMark,"radar"],[this._lineMark,"radar"],[this._symbolMark,"radarSymbol"]].forEach(([o,l])=>{if(C(o)){const h=D.getAnimationInKey(l);o.setAnimationConfig(It(h==null?void 0:h(r,a),Nt(o.name,this._spec,this._markAttributeContext)))}})}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._areaMark,this._symbolMark,this._lineMark]}getSeriesStyle(t){return e=>{var i,s,r,a;let o=(s=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&s!==void 0?s:void 0;return e!=="fill"||o||(e="stroke",o=(a=(r=this._seriesMark)===null||r===void 0?void 0:r.getAttribute(e,t))!==null&&a!==void 0?a:void 0),e==="stroke"&&U(o)?o[0]:o}}}Kr.type=Y.radar,Kr.mark=dtt,Kr.transformerConstructor=Su,se(Kr,tS);const ctt=()=>{D.registerSeries(Kr.type,Kr),Ux(),Sm(),ym(),wr(),htt(),Mu(),Ch()};class utt extends Hi{constructor(){super(...arguments),this.shapeTypeCallback=()=>"square"}enableByType(t){return t==="mark"}getDefaultTitlePattern(t){return{key:"event info",value:"event info"}}getDefaultContentList(){return[{key:t=>t.type,value:t=>t.id},{key:"event_time",value:t=>ns.getInstance().timeFormat("%Y%m%d",t.event_time)},{key:"action_type",value:t=>t.action_type},{key:"children",value:t=>t.children}]}getTooltipData(t,e,i,s,r){var a,o,l,h;const d=super.getTooltipData(t,e,i,s,r),c=(l=(o=(a=this.spec)===null||a===void 0?void 0:a[t])===null||o===void 0?void 0:o.updateContent)!==null&&l!==void 0?l:(h=e==null?void 0:e[t])===null||h===void 0?void 0:h.updateContent;return d&&!c&&(d.updateContent=(u,g,p)=>{const _=[],f=u.filter(m=>m.key==="children");return f.length>0&&f[0].value.forEach(m=>{let v=!0;for(const y in m)_.push(Object.assign(Object.assign({},f[0]),{shapeType:"circle",hasShape:v,key:y,value:m[y]+""})),v=!1}),u.concat(_)}),d}}const gtt=(n,t)=>{var e;const i=!((e=n[0])===null||e===void 0)&&e.latestData?n[0].latestData:n||[],s=[];return i.forEach(r=>{const a={};for(const l in r)l!==t&&(a[l]=r[l]);const o=r[t];o==null||o.forEach(l=>{s.push(Object.assign({},a,l))})}),s},ptt={fill:"#bbb",fillOpacity:.2},_tt=Object.assign(Object.assign({},we),{group:{name:"group",type:"group"},grid:{name:"grid",type:"rule"},gridBackground:{name:"gridBackground",type:"rect"},dot:{name:"dot",type:"symbol"},title:{name:"title",type:"text"},subTitle:{name:"subTitle",type:"text"},symbol:{name:"symbol",type:"symbol"}});class mn extends Xn{constructor(){super(...arguments),this.type=Y.dot}getSeriesGroupField(){return this._seriesField}setSeriesGroupField(t){C(t)&&(this._seriesGroupField=t)}getTitleField(){return this._titleField}setTitleField(t){C(t)&&(this._titleField=t)}getSubTitleField(){return this._subTitleField}setSubTitleField(t){C(t)&&(this._subTitleField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){C(t)&&(this._dotTypeField=t)}getHighLightSeriesGroup(){return this._highLightSeriesGroup}setHighLightSeriesGroup(t){C(t)&&(this._highLightSeriesGroup=t)}setGridBackground(t){C(t)&&(this._gridBackground=t)}initData(){var t;super.initData(),this._xDimensionStatisticsDomain=this.getRawData().latestData.map(e=>e[this._fieldY[0]]),vt(this._option.dataSet,"objFlat",gtt),vt(this._option.dataSet,"copyDataView",cm),dr(this._option.dataSet,"dataview",vf),(t=this.getViewData())===null||t===void 0||t.transform({type:"objFlat",options:"dots",level:cs.dotObjFlat},!1)}getStatisticFields(){return[{key:this._fieldY[0],operations:["values"],customize:this._xDimensionStatisticsDomain}]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setSeriesGroupField(this._spec.seriesGroupField),this.setTitleField(this._spec.titleField),this.setSubTitleField(this._spec.subTitleField),this.setDotTypeField(this._spec.dotTypeField),this.setHighLightSeriesGroup(this._spec.highLightSeriesGroup),this.setGridBackground(gt(ptt,((t=this._spec.grid)===null||t===void 0?void 0:t.background)||{}))}initMark(){this._clipMark=this._createMark(mn.mark.group),this._containerMark=this._createMark(mn.mark.group,{parent:this._clipMark,dataView:this.getRawData()}),this._gridBackgroundMark=this._createMark(mn.mark.gridBackground,{parent:this._containerMark,dataView:this.getRawData()}),this._gridMark=this._createMark(mn.mark.grid,{parent:this._containerMark,dataView:this.getRawData()}),this._dotMark=this._createMark(mn.mark.dot,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark}),this._titleMark=this._createMark(mn.mark.title,{parent:this._containerMark,dataView:this.getRawData()}),this._subTitleMark=this._createMark(mn.mark.subTitle,{parent:this._containerMark,dataView:this.getRawData()}),this._symbolMark=this._createMark(mn.mark.symbol,{parent:this._containerMark,dataView:this.getRawData()})}initMarkStyle(){const t=this._clipMark;t&&(this.setMarkStyle(t,{x:-this._spec.leftAppendPadding,y:0,width:1e4,height:this._spec.clipHeight},"normal",Z.Series),t.setMarkConfig({interactive:!1,clip:!0}));const e=this._containerMark;e&&(this.setMarkStyle(e,{x:this._spec.leftAppendPadding},"normal",Z.Series),e.setMarkConfig({interactive:!1}));const i=this._gridBackgroundMark;i&&this.setMarkStyle(i,{x:this.getRegionRectLeft.bind(this),x1:this.getRegionRectRight.bind(this),y:this.dataToGridBackgroundPositionY.bind(this),y1:this.dataToGridBackgroundPositionY1.bind(this),fill:this._gridBackground.fill,fillOpacity:this.dataToGridBackgroundOpacity.bind(this)},"normal",Z.Series);const s=this._gridMark;s&&this.setMarkStyle(s,{stroke:this.getColorAttribute(),x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),x1:this.getRegionRectRight.bind(this),y1:this.dataToPositionY.bind(this)},"normal",Z.Series);const r=this._dotMark;r&&this.setMarkStyle(r,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),fill:this.getDotColorAttribute(),fillOpacity:this.dataToOpacity.bind(this)},"normal",Z.Series);const a=this._titleMark;a&&this.setMarkStyle(a,{fill:this.getColorAttribute(),text:h=>h[this.getTitleField()],x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this)},"normal",Z.Series);const o=this._subTitleMark;o&&this.setMarkStyle(o,{fill:this.getColorAttribute(),text:h=>h[this.getSubTitleField()],x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this)},"normal",Z.Series);const l=this._symbolMark;l&&this.setMarkStyle(l,{x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),fill:this.getColorAttribute()},"normal",Z.Series)}dataToGridBackgroundPositionY(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e,getBandwidth:i}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fieldY),{bandPosition:this._bandPosition})-i(0)/2}dataToGridBackgroundPositionY1(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e,getBandwidth:i}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fieldY),{bandPosition:this._bandPosition})+i(0)/2}dataToOpacity(t){var e,i,s,r;if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:a,getScale:o}=this._xAxisHelper;return a(this.getDatumPositionValues(t,this._fieldX),{bandPosition:this._bandPosition})o(0).range()[1]?0:(r=(s=(i=(e=this._theme)===null||e===void 0?void 0:e.dot)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.fillOpacity)!==null&&r!==void 0?r:1}dataToGridBackgroundOpacity(t){return t[this._seriesGroupField]===this._highLightSeriesGroup?this._gridBackground.fillOpacity:0}onLayoutEnd(t){var e,i;super.onLayoutEnd(t);const s=(i=(e=this._spec)===null||e===void 0?void 0:e.leftAppendPadding)!==null&&i!==void 0?i:0;this.setMarkStyle(this._clipMark,{width:this.getLayoutRect().width+s},"normal",Z.Series)}getDefaultColorDomain(){var t,e;return this._seriesGroupField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._seriesGroupField].values:this._seriesField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesField].values:[]}getColorAttribute(){var t,e,i;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(i=(e=this._seriesGroupField)!==null&&e!==void 0?e:this._seriesField)!==null&&i!==void 0?i:sn}}getDotColorScale(){var t,e,i;const s=this._dotTypeField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._dotTypeField].values:this._seriesGroupField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesGroupField].values:this._seriesField?(i=this.getViewDataStatistics())===null||i===void 0?void 0:i.latestData[this._seriesField].values:[],r=this._getDataScheme();return new vu().domain(s).range(r)}getDotColorAttribute(){var t,e,i,s;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this.getDotColorScale(),field:(s=(i=(e=this._dotTypeField)!==null&&e!==void 0?e:this._seriesGroupField)!==null&&i!==void 0?i:this._seriesField)!==null&&s!==void 0?s:sn}}initTooltip(){this._tooltipHelper=new utt(this),this._dotMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._dotMark)}onEvaluateEnd(t){super.onEvaluateEnd(t)}onMarkTreePositionUpdate(t){t.forEach(e=>{e.type==="group"?this.onMarkTreePositionUpdate(e.getMarks()):e.updateLayoutState()})}getDotData(){var t;return(t=this._dotMark)===null||t===void 0?void 0:t.getData()}_getDataIdKey(){}getStackValueField(){return null}getActiveMarks(){return[this._dotMark]}}mn.type=Y.dot,mn.mark=_tt;const ftt=()=>{wr(),wh(),Cr(),dn(),D.registerSeries(mn.type,mn)};class mtt extends Hi{constructor(){super(...arguments),this.shapeTypeCallback=()=>"square"}enableByType(t){return t==="mark"}getDefaultTitlePattern(t){return{key:"link info",value:"link info"}}getDefaultContentList(){return[{key:"time",value:t=>ns.getInstance().timeFormat("%Y%m%d %H:%M",t.from.split("_")[1])},{key:"type",value:t=>t.action_type},{key:"from",value:t=>t.from},{key:"to",value:t=>t.to}]}}const vtt=Object.assign(Object.assign({},we),{group:{name:"group",type:"group"},link:{name:"link",type:"rule"},arrow:{name:"arrow",type:"symbol"}}),ytt=(n,t)=>{const{infoKey:e,fields:i,linkData:s,dotData:r}=t,{fromField:a,toField:o,xField:l,yField:h}=i(),d=s(),c=r(),u={};return c.forEach(g=>{const p={};for(const f in g)f!==e&&(p[f]=g[f]);const _=g[e];_==null||_.forEach(f=>{u[f.node_name]=Object.assign({},p,f)})}),d.forEach(g=>{var p,_,f,m;g[a+"_xField"]=(p=u==null?void 0:u[g[a]])===null||p===void 0?void 0:p[l],g[a+"_yField"]=(_=u==null?void 0:u[g[a]])===null||_===void 0?void 0:_[h],g[o+"_xField"]=(f=u==null?void 0:u[g[o]])===null||f===void 0?void 0:f[l],g[o+"_yField"]=(m=u==null?void 0:u[g[o]])===null||m===void 0?void 0:m[h]}),d};class lr extends Xn{constructor(){super(...arguments),this.type=Y.link}getFromField(){return this._fromField}setFromField(t){C(t)&&(this._fromField=t)}getToField(){return this._toField}setToField(t){C(t)&&(this._toField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){C(t)&&(this._dotTypeField=t)}getDotSeriesSpec(){return this._dotSeriesSpec}setDotSeriesSpec(t){C(t)&&(this._dotSeriesSpec=t)}_getDotData(){const t=this._option.getChart().getSeriesInIndex([this._spec.dotSeriesIndex])[0];return t?t.getRawData().latestData:[]}initData(){var t;super.initData(),vt(this._option.dataSet,"linkDotInfo",ytt),(t=this.getViewData())===null||t===void 0||t.transform({type:"linkDotInfo",options:{infoKey:"dots",fields:()=>({fromField:this._fromField,toField:this._toField,xField:this._dotSeriesSpec.xField,yField:this._dotSeriesSpec.yField}),linkData:()=>this._rawData.latestData,dotData:()=>this._getDotData()},level:cs.linkDotInfo},!1)}setAttrFromSpec(){super.setAttrFromSpec(),this.setFromField(this._spec.fromField),this.setToField(this._spec.toField),this.setDotTypeField(this._spec.dotTypeField),this.setDotSeriesSpec(this._spec.dotSeriesSpec)}initMark(){this._clipMark=this._createMark(lr.mark.group),this._containerMark=this._createMark(lr.mark.group,{parent:this._clipMark}),this._linkMark=this._createMark(lr.mark.link,{skipBeforeLayouted:!1,parent:this._containerMark}),this._arrowMark=this._createMark(lr.mark.arrow,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark})}initMarkStyle(){var t,e,i,s;const r=this._clipMark;r&&(this.setMarkStyle(r,{x:-this._spec.leftAppendPadding,y:0,width:1e4,height:this._spec.clipHeight},"normal",Z.Series),r.setMarkConfig({interactive:!1,clip:!0}));const a=this._containerMark;a&&(this.setMarkStyle(a,{x:this._spec.leftAppendPadding,width:this.getLayoutRect().width},"normal",Z.Series),a.setMarkConfig({interactive:!1}));const o=this._linkMark;o&&this.setMarkStyle(o,{stroke:this.getColorAttribute(),strokeOpacity:this.dataToOpacity.bind(this),x:this.dataToPositionXFrom.bind(this),y:this.dataToPositionYFrom.bind(this),x1:this.dataToPositionXTo.bind(this),y1:this.dataToPositionYTo.bind(this)},"normal",Z.Series);const l=this._arrowMark;if(l){const h=(s=(i=(e=(t=this._theme)===null||t===void 0?void 0:t.arrow)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:10;this.setMarkStyle(l,{x:this.dataToPositionXTo.bind(this),y:d=>this.dataToPositionArrowYTo(d,h),fill:this.getColorAttribute(),fillOpacity:this.dataToOpacity.bind(this),size:h,symbolType:d=>this.isPositionYFromHigher(d)?"triangleDown":"triangleUp"},"normal",Z.Series)}}afterInitMark(){super.afterInitMark()}dataToPositionXFrom(t){if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:e}=this._xAxisHelper;return e(this.getDatumPositionValues(t,this._fromField+"_xField"),{bandPosition:this._bandPosition})}dataToPositionYFrom(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fromField+"_yField"))}dataToPositionXTo(t){if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:e}=this._xAxisHelper;return e(this.getDatumPositionValues(t,this._toField+"_xField"),{bandPosition:this._bandPosition})}dataToPositionYTo(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._toField+"_yField"),{bandPosition:this._bandPosition})}dataToPositionArrowYTo(t,e){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:i}=this._yAxisHelper,s=this.isPositionYFromHigher(t)?-e/2:e/2;return i(this.getDatumPositionValues(t,this._toField+"_yField"),{bandPosition:this._bandPosition})+s}dataToOpacity(t){return this.isPositionXOuterRange(t,this._fromField+"_xField")||this.isPositionXOuterRange(t,this._toField+"_xField")||t[this._fromField]===t[this._toField]?0:1}isPositionYFromHigher(t){return this.dataToPositionYFrom(t)s(0).range()[1]}getDefaultColorDomain(){var t,e;return this._dotTypeField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._dotTypeField].values:this._seriesField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesField].values:[]}getColorAttribute(){var t,e,i;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(i=(e=this._dotTypeField)!==null&&e!==void 0?e:this._seriesField)!==null&&i!==void 0?i:sn}}initInteraction(){const t=[];this._linkMark&&t.push(this._linkMark),this._arrowMark&&t.push(this._arrowMark),this._parseInteractionConfig(t)}initTooltip(){this._tooltipHelper=new mtt(this),this._linkMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark),this._arrowMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._arrowMark)}onMarkTreePositionUpdate(t){t.forEach(e=>{e.type==="group"?this.onMarkTreePositionUpdate(e.getMarks()):e.updateLayoutState()})}getDotInfoData(){var t,e;return(e=(t=this._linkMark)!==null&&t!==void 0?t:this._arrowMark)===null||e===void 0?void 0:e.getData()}getActiveMarks(){return[this._linkMark,this._arrowMark]}}lr.type=Y.link,lr.mark=vtt;const btt=()=>{wh(),wr(),hn(),ln(),D.registerSeries(lr.type,lr)},cS=Object.assign(Object.assign({},we),{group:{name:"group",type:"group"}});class Ph extends Tu{constructor(){super(...arguments),this._arcGroupMark=null,this._getAngleValueStart=t=>{const e=this._getAngleAxis(),{tickMask:i}=this._spec;if(i!=null&&i.forceAlign&&this._isTickMaskVisible(e)){const s=t[this.getStack()?Un:Cg],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=te(i.offsetAngle);let l;if(C(s)){const h=GS(r,c=>c.value-s),d=h>=r.length||s>r[h].value-a/2?Math.min(h,r.length-1):h>0?h-1:void 0;d!==void 0&&(l=this.angleAxisHelper.dataToPosition([r[d].value-a/2]))}return P(l)&&(l=this.angleAxisHelper.dataToPosition([r[0].value-a/2])),l+o}return this._getAngleValueStartWithoutMask(t)},this._getAngleValueEnd=t=>{const e=this._getAngleAxis(),{tickMask:i}=this._spec;if(i!=null&&i.forceAlign&&this._isTickMaskVisible(e)){const s=t[this.getStack()?on:this._angleField[0]],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=te(i.offsetAngle),l=GS(r,c=>c.value-s),h=l>=r.length||s>r[l].value-a/2?Math.min(l,r.length-1):l>0?l-1:void 0;let d;return d=h!==void 0?this.angleAxisHelper.dataToPosition([r[h].value+a/2]):this.angleAxisHelper.dataToPosition([r[0].value-a/2]),d+o}return this._getAngleValueEndWithoutMask(t)}}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec();const s=(t=this._option.globalInstance.getChart())===null||t===void 0?void 0:t.getSpec(),r=(e=this._spec.startAngle)!==null&&e!==void 0?e:s==null?void 0:s.startAngle;this._startAngle=C(r)?te(r):nm;const a=(i=this._spec.endAngle)!==null&&i!==void 0?i:s==null?void 0:s.endAngle;this._endAngle=C(a)?te(a):Rx,this.setAngleField(this._spec.valueField||this._spec.angleField),this.setRadiusField(this._spec.categoryField||this._spec.radiusField),this._specAngleField=this._angleField.slice(),this._specRadiusField=this._radiusField.slice()}getStackGroupFields(){return this._radiusField}getStackValueField(){var t;return(t=this._angleField)===null||t===void 0?void 0:t[0]}getGroupFields(){return this._angleField}_convertMarkStyle(t){const e=super._convertMarkStyle(t);if(e.fill){const i=t.fill;(i==null?void 0:i.gradient)!=="conical"||C(i==null?void 0:i.startAngle)||C(i==null?void 0:i.endAngle)||(e.fill=Object.assign(Object.assign({},i),{startAngle:this._startAngle,endAngle:this._endAngle}))}return e}_getAngleValueStartWithoutMask(t){if(this.getStack()){const e=ne(this.angleAxisHelper.dataToPosition([t[Un]]),this.angleAxisHelper.getScale(0));if(H(e))return e}return this._startAngle}_getAngleValueEndWithoutMask(t){if(this.getStack()){const e=ne(this.angleAxisHelper.dataToPosition([t[on]]),this.angleAxisHelper.getScale(0));if(H(e))return e}return this.angleAxisHelper.dataToPosition([t[this._angleField[0]]])}getDimensionField(){return this._specRadiusField}getMeasureField(){return this._specAngleField}initMark(){this._initArcGroupMark()}initMarkStyle(){this._initArcGroupMarkStyle()}_initArcGroupMark(){return this._arcGroupMark=this._createMark(Ph.mark.group,{skipBeforeLayouted:!1}),this._arcGroupMark}_initArcGroupMarkStyle(){const t=this._arcGroupMark;t.created(),this.setMarkStyle(t,{x:0,y:0},"normal",Z.Series),this._arcGroupMark.setMarkConfig({interactive:!1,zIndex:this.layoutZIndex,clip:!0,clipPath:()=>{const e=this._getAngleAxis();if(this._isTickMaskVisible(e)){const{tickMask:r}=this._spec,{angle:a,offsetAngle:o,style:l={}}=r,h=this._getAngleAxisSubTickData(e),{x:d,y:c}=this.angleAxisHelper.center(),u=this._computeLayoutRadius(),g=l;return h.map(({value:p})=>{const _=this.angleAxisHelper.dataToPosition([p])+te(o),f=te(a)/2;return lx(Object.assign(Object.assign({},g),{x:d,y:c,startAngle:_-f,endAngle:_+f,innerRadius:u*this._innerRadius,outerRadius:u*this._outerRadius,fill:!0}))})}const{width:i,height:s}=this.getLayoutRect();return[hu({width:i,height:s,fill:!0})]}})}_getAngleAxis(){if(!this.angleAxisHelper)return;const t=this.angleAxisHelper.getAxisId();return this._option.getChart().getAllComponents().find(e=>e.id===t)}_getAngleAxisTickData(t){var e;return(e=t==null?void 0:t.getTickData())===null||e===void 0?void 0:e.getLatestData()}_isTickMaskVisible(t){const e=this._getAngleAxisTickData(t),{tickMask:i}=this._spec;return i&&i.visible!==!1&&(e==null?void 0:e.length)>1}_getAngleAxisSubTickData(t){var e;const i=this._getAngleAxisTickData(t),s=[],{subTick:r={},tick:a={}}=(e=t==null?void 0:t.getSpec())!==null&&e!==void 0?e:{},{tickCount:o=4}=r,{alignWithLabel:l}=a;if((i==null?void 0:i.length)>=2){const h=i[1].value-i[0].value;for(let d=0;d({type:"growAngleIn",options:{overall:n.startAngle}}),Att={type:"fadeIn"};function ktt(n,t){return t==="fadeIn"?Att:Stt(n)}const kI=()=>{D.registerAnimation("circularProgress",(n,t)=>({appear:ktt(n,t),enter:{type:"growAngleIn"},disappear:{type:"growAngleOut"}}))};class TI extends Vi{constructor(){super(...arguments),this._supportStack=!0}}class ua extends Ph{constructor(){super(...arguments),this.type=Y.circularProgress,this.transformerConstructor=TI,this._progressMark=null,this._trackMark=null,this._getRadiusValueStart=t=>{if(this.getGroupFields().length>1){const e=this.radiusAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()));if(H(e))return e}return this.radiusAxisHelper.dataToPosition([t[this._radiusField[0]]])},this._getRadiusValueEnd=t=>{var e,i;if(this.getGroupFields().length>1){const s=this.radiusAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))+((i=(e=this.radiusAxisHelper).getBandwidth)===null||i===void 0?void 0:i.call(e,this._groups?this._groups.fields.length-1:0));if(H(s))return s}return this.radiusAxisHelper.dataToPosition([t[this._radiusField[0]]])+this.radiusAxisHelper.getScale(0).step()}}getStackGroupFields(){return this.getGroupFields()}getGroupFields(){return this._radiusField}initMark(){super.initMark(),this._initTrackMark(),this._initProgressMark()}initMarkStyle(){super.initMarkStyle(),this._initTrackMarkStyle(),this._initProgressMarkStyle()}_initProgressMark(){var t,e;return this._progressMark=this._createMark(ua.mark.progress,{parent:this._arcGroupMark,isSeriesMark:!0,stateSort:(t=this._spec.progress)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.progress)===null||e===void 0?void 0:e.customShape}),this._progressMark}_initProgressMarkStyle(){var t;const e=this._progressMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._getAngleValueStart,endAngle:this._getAngleValueEnd,innerRadius:this._getRadiusValueStart,outerRadius:this._getRadiusValueEnd,cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:200,forceShowCap:!0},"normal",Z.Series)}initInteraction(){const t=[];this._trackMark&&t.push(this._trackMark),this._progressMark&&t.push(this._progressMark),this._parseInteractionConfig(t)}initTooltip(){super.initTooltip(),this._progressMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark)}_initTrackMark(){var t,e;return this._trackMark=this._createMark(ua.mark.track,{parent:this._arcGroupMark,stateSort:(t=this._spec.track)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.track)===null||e===void 0?void 0:e.customShape}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&this.setMarkStyle(t,{visible:e=>{const i=this.angleAxisHelper.getScale(0).range(),s=Math.min(i[0],i[i.length-1]),r=this._getAngleValueStartWithoutMask(e);return Math.abs(r-s)<=1e-14},x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:()=>{const e=this.getStack()?Un:this._angleField[0],i=this.angleAxisHelper.getScale(0).domain();return this._getAngleValueStart({[e]:i[0]})},endAngle:()=>{const e=this.getStack()?on:this._angleField[0],i=this.angleAxisHelper.getScale(0).domain();return this._getAngleValueEnd({[e]:i[i.length-1]})},innerRadius:this._getRadiusValueStart,outerRadius:this._getRadiusValueEnd,cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:100},"normal",Z.Series)}initAnimation(){var t,e,i,s;const r=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._progressMark.setAnimationConfig(It((i=D.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},r),Nt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(It((s=D.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Nt("track",this._spec,this._markAttributeContext)))}getActiveMarks(){return[this._progressMark]}}ua.type=Y.circularProgress,ua.mark=xtt,ua.transformerConstructor=TI;const Ttt=()=>{D.registerSeries(ua.type,ua),Uo(),kI(),Tr(),Mu(),Ch()};function MI(n){return()=>n.direction==="vertical"?{orient:"negative"}:{orient:"positive"}}const Mtt=n=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:MI(n)}),wtt=n=>({type:n.direction==="horizontal"?"growWidthOut":"growHeightOut",options:MI(n)}),Ctt={type:"fadeIn"};function Ptt(n,t){return t===!1?{}:t==="fadeIn"?Ctt:Mtt(n)}const Ett=()=>{D.registerAnimation("linearProgress",(n,t)=>({appear:Ptt(n,t),enter:{type:"grow"},disappear:wtt(n)}))};class Rtt extends Hi{enableByType(t){return t!=="dimension"}}const Ott=Object.assign(Object.assign({},we),{track:{name:"track",type:"rect"},progress:{name:"progress",type:"rect"},group:{name:"group",type:"group"}});class Oo extends Xn{constructor(){super(...arguments),this.type=Y.linearProgress,this._progressMark=null,this._trackMark=null,this._defaultProgressCustomShape=(t,e,i)=>{var s,r;const a=(s=this._spec)===null||s===void 0?void 0:s.cornerRadius,o=C(e.width)?e.width:e.x1-e.x,l=C(e.height)?e.height:e.y1-e.y,h=Math.min(0,o),d=Math.max(0,o),c=Math.min(0,l),u=Math.max(0,l);if(a>0){let g=a;if(((r=this._spec)===null||r===void 0?void 0:r.direction)==="vertical"){if(g=Math.min(Math.abs(o/2),a),2*g>Math.abs(l)){const p=Math.acos((g-Math.abs(l)/2)/g);return i.moveTo(h+g,c),i.arc(h+g,c+g,g,1.5*Math.PI,1.5*Math.PI-p,!0),i.arc(h+g,u-g,g,p+Math.PI/2,Math.PI/2,!0),i.lineTo(d-a,u),i.arc(d-g,u-g,g,Math.PI/2,Math.PI/2-p,!0),i.arc(d-g,c+g,g,-Math.PI/2+p,-Math.PI/2,!0),i.lineTo(h+g,c),i.closePath(),i}}else if(g=Math.min(Math.abs(l/2),a),2*g>Math.abs(o)){const p=Math.acos((g-Math.abs(o)/2)/g);return i.moveTo(h,c+g),i.arc(h+g,c+g,g,Math.PI,Math.PI+p),i.arc(d-g,c+g,g,-p,0),i.lineTo(d,u-g),i.arc(d-g,u-g,g,0,p),i.arc(h+g,u-g,g,Math.PI-p,Math.PI),i.closePath(),i}i.moveTo(h,c+g),i.arc(h+g,c+g,g,Math.PI,1.5*Math.PI),i.lineTo(d-g,c),i.arc(d-g,c+g,g,-Math.PI/2,0),i.lineTo(d,u-g),i.arc(d-g,u-g,g,0,Math.PI/2),i.lineTo(h+g,u),i.arc(h+g,u-g,g,Math.PI/2,Math.PI),i.closePath()}else i.moveTo(h,c),i.lineTo(d,c),i.lineTo(d,u),i.lineTo(h,u),i.closePath();return i}}initMark(){this._initTrackMark(),this._initProgressMark()}initMarkStyle(){this._initTrackMarkStyle(),this._initProgressMarkStyle()}_initProgressMark(){var t,e,i;return this._progressMark=this._createMark(Oo.mark.progress,{isSeriesMark:!0,stateSort:(t=this._spec.progress)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(i=(e=this._spec.progress)===null||e===void 0?void 0:e.customShape)!==null&&i!==void 0?i:this._defaultProgressCustomShape}),this._progressMark}_initProgressMarkStyle(){var t,e,i,s;const r=this._progressMark;if(r)if(this._spec.direction==="vertical"){const a=this._spec.progress||{},o=(t=a.leftPadding)!==null&&t!==void 0?t:0,l=(e=a.rightPadding)!==null&&e!==void 0?e:0;this.setMarkStyle(r,{x:h=>{var d,c;return ne(this.dataToPositionX(h),(c=(d=this._xAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))-this._spec.bandWidth/2+o},y1:h=>{var d,c;return ne(this.dataToPositionY(h),(c=(d=this._yAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:()=>{var h;return(h=this._yAxisHelper)===null||h===void 0?void 0:h.dataToPosition([0],{bandPosition:this._bandPosition})},width:this._spec.bandWidth-o-l,cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",Z.Series)}else{const a=this._spec.progress||{},o=(i=a.topPadding)!==null&&i!==void 0?i:0,l=(s=a.bottomPadding)!==null&&s!==void 0?s:0;this.setMarkStyle(r,{x1:h=>{var d,c;return ne(this.dataToPositionX(h),(c=(d=this._xAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:h=>{var d,c;return ne(this.dataToPositionY(h),(c=(d=this._yAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))-this._spec.bandWidth/2+o},height:this._spec.bandWidth-o-l,x:()=>{var h;return(h=this._xAxisHelper)===null||h===void 0?void 0:h.dataToPosition([0],{bandPosition:this._bandPosition})},cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",Z.Series)}}_initTrackMark(){var t,e;return this._trackMark=this._createMark(Oo.mark.track,{stateSort:(t=this._spec.track)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.track)===null||e===void 0?void 0:e.customShape}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&(this._spec.direction==="vertical"?this.setMarkStyle(t,{x:e=>{var i,s;return ne(this.dataToPositionX(e),(s=(i=this._xAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0))-this._spec.bandWidth/2},y:0,width:this._spec.bandWidth,height:()=>this._scaleY.range()[0],cornerRadius:this._spec.cornerRadius},"normal",Z.Series):this.setMarkStyle(t,{x:0,y:e=>{var i,s;return ne(this.dataToPositionY(e),(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0))-this._spec.bandWidth/2},height:this._spec.bandWidth,width:()=>this._scaleX.range()[1],cornerRadius:this._spec.cornerRadius},"normal",Z.Series))}initInteraction(){const t=[];this._trackMark&&t.push(this._trackMark),this._progressMark&&t.push(this._progressMark),this._parseInteractionConfig(t)}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._progressMark.setAnimationConfig(It((i=D.getAnimationInKey("linearProgress"))===null||i===void 0?void 0:i(r,a),Nt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(It((s=D.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Nt("track",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new Rtt(this),this._progressMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark),this._trackMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._trackMark)}getActiveMarks(){return[this._progressMark]}}Oo.type=Y.linearProgress,Oo.mark=Ott;const Btt=()=>{Cr(),Ett(),Tr(),D.registerSeries(Oo.type,Oo)},lC=[0],Ltt="hidden",hC=20,Itt=[20,40],Dtt=[200,500],Ftt="circle",ztt={shrink:!1,enlarge:!1,fontSizeLimitMin:0},jtt=!0,dC=1,Htt=["triangleForward","triangle","diamond","square","star","cardioid","circle","pentagon","rect"],Vtt=`${_t}_WORD_CLOUD_TEXT`,Wtt=Object.assign(Object.assign({},we),{word:{name:"word",type:"text"},fillingWord:{name:"fillingWord",type:"text"},wordMask:{name:"wordMask",type:"rect"}});class Bo extends Eo{constructor(){super(...arguments),this._fontSizeRange=[hC,hC],this._isWordCloudShape=!1,this._dataChange=!0,this.handleMaskCanvasUpdate=(t,e)=>{this._maskCanvas=t},this.getWordColor=t=>t.isFillingWord?(this._fillingColorCallback&&!this._dataChange||(this._fillingColorCallback=this._wordCloudShapeConfig.fillingColorHexField?e=>e[this._wordCloudShapeConfig.fillingColorHexField]:this.initColorCallback(this._wordCloudShapeConfig.fillingSeriesField,!0)),this._fillingColorCallback(t)):(this._keyWordColorCallback&&!this._dataChange||(this._keyWordColorCallback=this._spec.colorHexField?e=>e[this._spec.colorHexField]:this.initColorCallback(this._seriesField,!1)),this._keyWordColorCallback(t)),this._calculateFontWeight=t=>{const e=this.getRawDataStatisticsByField(this._valueField,!0);return e.min===e.max?this._fontWeightRange[0]:this._fontWeightRange[0]+(this._fontWeightRange[this._fontWeightRange.length-1]-this._fontWeightRange[0])*(t[this._valueField]-e.min)/(e.max-e.min)}}setValueField(t){C(t)&&(this._valueField=t)}setFontSizeRange(t){C(t)?this._fontSizeRange=t:this._fontSizeRange=Itt}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec(),this._padding=this._option.getChart().padding,this._nameField=this._spec.nameField,this._colorMode=(t=this._spec.colorMode)!==null&&t!==void 0?t:"ordinal",this._colorList=this._spec.colorList,this.setValueField(this._spec.valueField),this._fontWeightRange=(e=this._spec.fontWeightRange)!==null&&e!==void 0?e:Dtt,this._rotateAngles=(i=this._spec.rotateAngles)!==null&&i!==void 0?i:lC,this.setFontSizeRange(this._spec.fontSizeRange),this._maskShape=(s=this._spec.maskShape)!==null&&s!==void 0?s:Ftt,this._textField=!((r=this._spec.word)===null||r===void 0)&&r.formatMethod?Vtt:this._nameField;const a=this._spec.wordCloudConfig;this._wordCloudConfig=Object.assign({drawOutOfBound:Ltt,layoutMode:"default",zoomToFit:ztt},this._spec.wordCloudConfig),a&&!P(a.layoutMode)||ls(this._option.mode)||(this._wordCloudConfig.layoutMode="fast"),this._wordCloudShapeConfig=Object.assign({fillingSeriesField:this.getSeriesField(),fillingRotateAngles:lC,layoutMode:"default"},this._spec.wordCloudShapeConfig),this._isWordCloudShape=!Htt.includes(this._maskShape)&&!["fast","grid","cloud"].includes(this._wordCloudConfig.layoutMode),this._defaultFontFamily=this._option.getTheme().fontFamily}initData(){var t,e;super.initData(),(e=(t=this.getViewData())===null||t===void 0?void 0:t.target)===null||e===void 0||e.addListener("change",()=>{this._dataChange=!0,this.compile()})}initMark(){var t;!((t=this._spec.wordMask)===null||t===void 0)&&t.visible&&(this._maskMark=this._createMark(Bo.mark.wordMask,{dataView:!1})),this._wordMark=this._createMark(Bo.mark.word,{key:ds,groupKey:this._seriesField,isSeriesMark:!0},{morphElementKey:this._seriesField})}initMarkStyle(){this.initMarkStyleOfWord(this._wordMark,this._spec.word,this._spec.colorHexField,this._seriesField),this._maskMark&&this.setMarkStyle(this._maskMark,{width:()=>this._region.getLayoutRect().width,height:()=>this._region.getLayoutRect().height,background:()=>this._maskCanvas},"normal",Z.Series)}initMarkStyleOfWord(t,e,i,s,r){var a,o;t&&(this.setMarkStyle(t,{text:e!=null&&e.formatMethod?l=>e.formatMethod(l):l=>l[this._textField],x:l=>l.x,y:l=>l.y,fontSize:l=>l.fontSize,fontStyle:l=>l.fontStyle,angle:l=>l.angle,visible:l=>l.visible},"normal",Z.Series),this.setMarkStyle(t,{fill:(o=(a=e==null?void 0:e.style)===null||a===void 0?void 0:a.fill)!==null&&o!==void 0?o:this.getWordColor,fontWeight:l=>l.fontWeight,fontFamily:l=>l.fontFamily},"normal",Z.User_Mark))}initTooltip(){super.initTooltip(),this._wordMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._wordMark)}initAnimation(){[this._wordMark].forEach(t=>{var e,i;if(t){const s=(i=(e=this._spec)===null||e===void 0?void 0:e.animationAppear)===null||i===void 0?void 0:i.preset,r={animationConfig:()=>{var a,o;return(o=(a=t.getAnimationConfig())===null||a===void 0?void 0:a.appear)===null||o===void 0?void 0:o[0]}};t.setAnimationConfig(It(D.getAnimationInKey("wordCloud")(r,s),Nt("word",this._spec,this._markAttributeContext)))}})}getWordOrdinalColorScale(t,e){var i,s,r,a,o;const l=e?this._wordCloudShapeConfig.fillingColorList:this._colorList,h=t?(i=this.getViewData())===null||i===void 0?void 0:i.latestData.map(c=>c[t]):[],d=(r=l??((s=this._option.globalScale.getScale("color"))===null||s===void 0?void 0:s.range()))!==null&&r!==void 0?r:this._getDataScheme();return(o=(a=new vu().domain(h)).range)===null||o===void 0?void 0:o.call(a,d)}initColorCallback(t,e){var i,s,r,a;if(this._colorMode==="ordinal"){const h=this.getWordOrdinalColorScale(t,e);return d=>h.scale(d[t??sn])}const o=(i=e?this._colorList:this._wordCloudShapeConfig.fillingColorList)!==null&&i!==void 0?i:this._option.globalScale.getScale("color").range();if(o.length===1)return h=>o[0];if(this._valueField){const h=this.getRawDataStatisticsByField(this._valueField,!0);if(h.min===h.max)return o[0];const d=new Tn().domain([h.min,h.max]).range(o);return c=>d.scale(c[this._valueField])}const l=new Tn().domain([0,(a=(r=(s=this.getViewData())===null||s===void 0?void 0:s.latestData)===null||r===void 0?void 0:r.length)!==null&&a!==void 0?a:1]).range(o);return h=>l.scale(h[Mi])}compile(){super.compile();const{width:t,height:e}=this._region.getLayoutRect();if(!H(t)||!H(e)||!(e>0&&t>0))return;const i=this._wordMark.getProduct();if(i){const s=[];this._isWordCloudShape?s.push(Object.assign({type:"wordcloudShape"},this._wordCloudShapeTransformOption())):s.push(Object.assign({type:"wordcloud"},this._wordCloudTransformOption())),i.transform(s)}}_getCommonTransformOptions(){var t,e,i,s,r,a;const{width:o,height:l}=this._region.getLayoutRect(),h=(t=this._spec.word)!==null&&t!==void 0?t:{},d=(e=h.style)!==null&&e!==void 0?e:{};return{size:[o,l],shape:yt(this._maskShape)&&this._maskShape.type==="text"&&P(this._maskShape.fontFamily)?Object.assign({fontFamily:(i=this._option.getTheme())===null||i===void 0?void 0:i.fontFamily},this._maskShape):this._maskShape,onUpdateMaskCanvas:this.handleMaskCanvasUpdate,dataIndexKey:ds,text:h.formatMethod?c=>h.formatMethod(c):{field:this._textField},fontSize:this._valueField?{field:this._valueField}:this._fontSizeRange[0],fontSizeRange:this._fontSizeRange==="auto"?null:this._fontSizeRange,padding:(r=(s=this._spec.word)===null||s===void 0?void 0:s.padding)!==null&&r!==void 0?r:dC,fontFamily:C(this._spec.fontFamilyField)?{field:this._spec.fontFamilyField}:(a=d.fontFamily)!==null&&a!==void 0?a:this._defaultFontFamily,fontWeight:C(this._spec.fontWeightField)?{field:this._spec.fontWeightField}:C(d.fontWeight)?d.fontWeight:C(this._valueField)?this._calculateFontWeight:"normal",fontStyle:C(this._spec.fontStyleField)?{field:this._spec.fontStyleField}:d.fontStyle}}_wordCloudTransformOption(){var t;return Object.assign(Object.assign({},this._getCommonTransformOptions()),{layoutType:this._wordCloudConfig.layoutMode,rotate:this._rotateAngles,randomVisible:(t=this._spec.random)!==null&&t!==void 0?t:jtt,clip:this._wordCloudConfig.drawOutOfBound==="clip",shrink:this._wordCloudConfig.zoomToFit.shrink,enlarge:this._wordCloudConfig.zoomToFit.enlarge,minFontSize:this._wordCloudConfig.zoomToFit.fontSizeLimitMin,progressiveTime:this._wordCloudConfig.progressiveTime,progressiveStep:this._wordCloudConfig.progressiveStep,repeatFill:this._wordCloudConfig.zoomToFit.repeat})}_wordCloudShapeTransformOption(){var t,e,i,s,r,a;const o=(e=(t=this._spec.fillingWord)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{},l=(i=this._wordCloudShapeConfig)!==null&&i!==void 0?i:{};return Object.assign(Object.assign(Object.assign({},l),this._getCommonTransformOptions()),{rotateList:this._rotateAngles,fillingRotateList:l.fillingRotateAngles,fillingFontFamily:C(l.fillingFontFamilyField)?{field:l.fillingFontFamilyField}:(s=o.fontFamily)!==null&&s!==void 0?s:this._defaultFontFamily,fillingPadding:(a=(r=this._spec.fillingWord)===null||r===void 0?void 0:r.padding)!==null&&a!==void 0?a:dC,fillingFontStyle:C(l.fillingFontStyleField)?{field:l.fillingFontStyleField}:o.fontStyle,fillingFontWeight:C(l.fillingFontWeightField)?{field:l.fillingFontWeightField}:o.fontWeight})}getStatisticFields(){const t=[];return t.push({key:this._nameField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}dataToPosition(t){return null}dataToPositionX(t){return null}dataToPositionY(t){return null}dataToPositionZ(t){return null}valueToPosition(t,e){return null}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}onLayoutEnd(t){super.onLayoutEnd(t),this.compile(),this._dataChange=!1}getActiveMarks(){return[this._wordMark]}reInit(){super.reInit(),this._keyWordColorCallback&&(this._keyWordColorCallback=null),this._fillingColorCallback&&(this._fillingColorCallback=null)}}Bo.mark=Wtt;const Gtt=n=>({custom:uj,customParameters:(t,e)=>n,easing:"linear",loop:1/0,duration:6e3});function Ntt(n,t,e){return n*e({channel:{fontSize:{from:0}},duration:200,delay:(t,e,i)=>{const s=n.animationConfig(),r=(s==null?void 0:s.duration)||200,a=(s==null?void 0:s.totalTime)||Os.appear.duration,o=i.VGRAMMAR_ANIMATION_PARAMETERS.elementCount;return i.VGRAMMAR_ANIMATION_PARAMETERS.elementIndex*Ntt(r,a,o)}});function $tt(n,t){return t===!1?{}:t==="fadeIn"?{type:"fadeIn"}:Utt(n)}const wI=()=>{D.registerAnimation("wordCloud",(n,t)=>({appear:$tt(n,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}}))},CI=()=>{D.registerAnimation("wordCloud3d",n=>({appear:Gtt(n)}))},cC=(n,t)=>"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-n)+n).toFixed()+"%)";function Ua(n){return N(n)?n:function(){return n}}class Eh{constructor(t){var e,i;switch(this.options=$({},Eh.defaultOptions,t),N(this.options.shape)?this.shape=this.options.shape:this.shape=RR(this.options.shape),this.getText=(e=Ua(this.options.text))!==null&&e!==void 0?e:s=>s,this.getTextFontWeight=Ua(this.options.fontWeight),this.getTextFontSize=Ua(this.options.fontSize),this.getTextFontStyle=Ua(this.options.fontStyle),this.getTextFontFamily=Ua(this.options.fontFamily),this.outputCallback=(i=this.options.outputCallback)!==null&&i!==void 0?i:s=>s,this.options.color){case"random-dark":this.getTextColor=()=>cC(10,50);break;case"random-light":this.getTextColor=()=>cC(50,90);break;default:this.getTextColor=Ua(this.options.color)}if(P(this.options.rotate))if(this.options.useRandomRotate){const s=Math.abs(this.options.maxRotation-this.options.minRotation),r=Math.abs(Math.floor(this.options.rotationSteps)),a=Math.min(this.options.maxRotation,this.options.minRotation);this.getTextRotate=()=>this.options.rotateRatio===0||Math.random()>this.options.rotateRatio?0:s===0?a:r>0?a+Math.floor(Math.random()*r)*s/(r-1):a+Math.random()*s}else this.getTextRotate=()=>0;else this.getTextRotate=N(this.options.rotate)?s=>{var r;return te((r=this.options.rotate(s))!==null&&r!==void 0?r:0)}:(s,r)=>{const a=j(this.options.rotate),o=this.options.random?Math.random():P2(r);return te(a[Math.floor(o*a.length)])}}canRepeat(){return!1}exceedTime(){var t;return this.options.progressiveStep>0?this.progressiveIndex>=(((t=this.currentStepIndex)!==null&&t!==void 0?t:-1)+1)*this.options.progressiveStep:this.options.progressiveTime>0&&new Date().getTime()-this.escapeTime>this.options.progressiveTime}progressiveRun(){var t;if(this.options.progressiveStep>0?this.currentStepIndex=((t=this.currentStepIndex)!==null&&t!==void 0?t:-1)+1:this.options.progressiveTime>0&&(this.escapeTime=Date.now()),this.data&&this.progressiveIndexs)&&(e++,i=0,this.failCount=a?0:this.failCount+1),this.progressiveIndex=e,this.exceedTime())break;e===this.data.length&&this.failCountObject.assign(Object.assign({},o),{isFill:!0}))],this.isTryRepeatFill=!0)}return this.progressiveResult}return this.result}initProgressive(){this.failCount=0,this.progressiveIndex=0,this.options.progressiveStep>0?this.currentStepIndex=-1:this.options.progressiveTime>0&&(this.escapeTime=Date.now()),this.progressiveResult=[]}output(){return this.result?this.outputCallback(this.result):null}progressiveOutput(){return this.progressiveResult?this.outputCallback(this.progressiveResult):null}unfinished(){return this.data&&this.data.length&&!P(this.progressiveIndex)&&this.progressiveIndex[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}function Xtt(n){const t=4*n[0]/n[1];let e=0,i=0;return s=>{const r=s<0?-1:1;switch(Math.sqrt(1+4*r*s)-r&3){case 0:e+=t;break;case 1:i+=4;break;case 2:e-=t;break;default:i-=4}return[e,i]}}class Wl extends Eh{constructor(t){var e;super($({},Wl.defaultOptions,t)),this.cw=64,this.ch=2048,this._size=[256,256],this._isBoardExpandCompleted=!1,this._placeStatus=0,this._tTemp=null,this._dtTemp=null,this._dy=0,this.cacheMap=new Map,this.options.minFontSize<=Wl.defaultOptions.minFontSize&&(this.options.minFontSize=Wl.defaultOptions.minFontSize),this.spiral=tt(this.options.spiral)?(e=uC[this.options.spiral])!==null&&e!==void 0?e:uC.archimedean:this.options.spiral,this.random=this.options.random?Math.random:()=>1,this.getTextPadding=Ua(this.options.padding)}zoomRatio(){return this._originSize[0]/this._size[0]}dy(){return this._dy}layoutWord(t){const e=this.data[t];if((""+e.text).trim()==="")return!0;const{maxRadius:i,center:s}=_x(this.options.shape,this._size);if(e.x=s[0],e.y=s[1],Ktt(this.contextAndRatio,e,this.data,t,this.cw,this.ch),this._placeStatus=0,e.hasText&&this.place(this._board,e,this._bounds,i))return this.result.push(e),this._bounds?Ztt(this._bounds,e):this._bounds=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=this._size[0]>>1,e.y-=this._size[1]>>1,this._tTemp=null,this._dtTemp=null,!0;if(this.updateBoardExpandStatus(e.fontSize),e.hasText&&this.shouldShrinkContinue()){if(this._placeStatus===1){const r=e.fontSize*this._originSize[0]/this.options.minFontSize,a=Math.max(e.width,e.height);if(a<=r)this.expandBoard(this._board,this._bounds,a/this._size[0]);else{if(!this.options.clip)return!0;this.expandBoard(this._board,this._bounds,r/this._size[0])}}else this._placeStatus,this.expandBoard(this._board,this._bounds);return this.updateBoardExpandStatus(e.fontSize),!1}return this._tTemp=null,this._dtTemp=null,!0}layout(t,e){this.initProgressive(),this.result=[],this._size=[e.width,e.height],this.clearCache(),this._originSize=[...this._size];const i=this.getContext(Et.createCanvas({width:1,height:1}));this.contextAndRatio=i,this._board=new Array((this._size[0]>>5)*this._size[1]).fill(0),this._bounds=null,t.length,this.result=[];const s=t.map((r,a)=>({text:this.getText(r),fontFamily:this.getTextFontFamily(r),fontStyle:this.getTextFontStyle(r),fontWeight:this.getTextFontWeight(r),angle:this.getTextRotate(r,a),fontSize:~~this.getTextFontSize(r),padding:this.getTextPadding(r),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:r,x:0,y:0,width:0,height:0})).sort(function(r,a){return a.fontSize-r.fontSize});if(this.originalData=s,this.data=s,this.progressiveRun(),!this.options.clip&&this.options.enlarge&&this._bounds&&this.shrinkBoard(this._bounds),this._bounds&&["cardioid","triangle","triangle-upright"].includes(this.options.shape)){const r=(this._bounds[0].y+this._bounds[1].y)/2;this._dy=-(r-this._originSize[1]/2)}return this.result}formatTagItem(t){const e=this._size,i=this.zoomRatio(),s=this.dy(),r=e[0]>>1,a=e[1]>>1,o=t.length,l=[];let h,d;for(let c=0;c=this._size[0]||i.y>=this._size[1])return;const s=Math.min(e.x,this._size[0]-i.x),r=Math.min(e.y,this._size[1]-i.y),a=2*Math.min(s/this._size[0],r/this._size[1]);this._size=this._size.map(o=>o*(1-a))}expandBoard(t,e,i){const s=this._size[0]*(i||1.1)-this._size[0]>>5;let r=2*s>2?s:2;r%2!=0&&r++;let a=Math.ceil(this._size[1]*(r<<5)/this._size[0]);a%2!=0&&a++;const o=this._size[0],l=this._size[1],h=new Array(r).fill(0),d=new Array(a/2*(r+(o>>5))).fill(0);this.insertZerosToArray(t,l*(o>>5),d.length+r/2);for(let c=l-1;c>0;c--)this.insertZerosToArray(t,c*(o>>5),h.length);this.insertZerosToArray(t,0,d.length+r/2),this._size=[o+(r<<5),l+a],e&&(e[0].x+=(r<<5)/2,e[0].y+=a/2,e[1].x+=(r<<5)/2,e[1].y+=a/2)}insertZerosToArray(t,e,i){const s=Math.floor(i/6e4),r=i%6e4;for(let a=0;a>2);t.width=(this.cw<<5)/i,t.height=this.ch/i;const s=t.getContext("2d",{willReadFrequently:!0});return s.fillStyle=s.strokeStyle="red",s.textAlign="center",{context:s,ratio:i,canvas:t}}place(t,e,i,s){let r=!1;if(this.shouldShrinkContinue()&&(e.width>this._size[0]||e.height>this._size[1]))return this._placeStatus=1,!1;const a=this.random()<.5?1:-1;if(!this.shouldShrinkContinue()&&this.isSizeLargerThanMax(e,a))return null;const o=e.x,l=e.y,h=Math.sqrt(this._size[0]*this._size[0]+this._size[1]*this._size[1]),d=this.spiral(this._size);let c,u,g,p,_=-a;for(this._tTemp=null,this._dtTemp=null;c=d(_+=a);){u=c[0],g=c[1];const f=Math.sqrt(u**2+g**2);let m=Math.atan(g/u);u<0?m+=Math.PI:g<0&&(m=2*Math.PI+m);const v=this.shape(m);if(Math.min(Math.abs(u),Math.abs(g))>=h)break;if(f>=s)r&&this._tTemp===null&&(this._tTemp=_,this._dtTemp=a);else{if(e.x=o+~~(f*v*Math.cos(-m)),e.y=l+~~(f*v*Math.sin(-m)),p=e,this.options.clip)if(this.shouldShrinkContinue()){if(D0(p,this._size)){r&&this._tTemp===null&&(this._tTemp=_,this._dtTemp=a);continue}}else{if(Qtt(p,this._size)){r&&this._tTemp===null&&(this._tTemp=_,this._dtTemp=a);continue}D0(p,this._size)&&(p=tet(p,this._size))}else if(D0(p,this._size)){r&&this._tTemp===null&&(this._tTemp=_,this._dtTemp=a);continue}if(r=!0,(!i||Jtt(p,i))&&(!i||!qtt(p,t,this._size))){const y=p.sprite,b=p.width>>5,x=this._size[0]>>5,S=p.x-(b<<4),A=127&S,k=32-A,T=p.y1-p.y0;let w,M=(p.y+p.y0)*x+(S>>5);for(let R=0;R>>A:0);M+=x}return e.sprite=null,p.sprite=null,!0}}}return this._tTemp!==null&&(this._placeStatus=3),!this.shouldShrinkContinue()&&this.setCache(p,a),!1}clearCache(){this.cacheMap.clear()}setCache(t,e){const i=`${t.angle}-${e}`,s=t.x1-t.x0,r=t.y1-t.y0;if(!this.cacheMap.has(i))return void this.cacheMap.set(i,{width:s,height:r});const{width:a,height:o}=this.cacheMap.get(i);(s=s&&o>=r}}function Ktt(n,t,e,i,s,r){if(t.sprite)return;const a=n.context,o=n.ratio;a.setTransform(o,0,0,o,0,0),a.clearRect(0,0,(s<<5)/o,r/o);let l=0,h=0,d=0;const c=e.length;let u,g,p,_,f;for(--i;++i>5<<5,p=~~Math.max(Math.abs(S+A),Math.abs(S-A))}else u=u+31>>5<<5;if(p>d&&(d=p),l+u>=s<<5&&(l=0,h+=d,d=0),h+p>=r)break;a.translate((l+(u>>1))/o,(h+(p>>1))/o),t.angle&&a.rotate(t.angle),a.fillText(t.text,0,0),t.padding&&(a.lineWidth=2*t.padding,a.strokeText(t.text,0,0)),a.restore(),t.width=u,t.height=p,t.xoff=l,t.yoff=h,t.x1=u>>1,t.y1=p>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,l+=u}const m=a.getImageData(0,0,(s<<5)/o,r/o).data,v=[];for(;--i>=0;){if(!(t=e[i]).hasText)continue;for(u=t.width,g=u>>5,p=t.y1-t.y0,_=0;_>5),S=m[(h+f)*(s<<5)+(l+_)<<2]?1<<31-_%32:0;v[x]|=S,y|=S}y?b=f:(t.y0++,p--,f--,h++)}t.y1=t.y0+b,t.sprite=v.slice(0,(t.y1-t.y0)*g)}}function qtt(n,t,e){const i=e[0]>>5,s=n.sprite,r=n.width>>5,a=n.x-(r<<4),o=127&a,l=32-o,h=n.y1-n.y0;let d,c=(n.y+n.y0)*i+(a>>5);for(let u=0;u>>o:0))&t[c+g])return!0;c+=i}return!1}function Ztt(n,t){const e=n[0],i=n[1];t.x+t.x0i.x&&(i.x=t.x+t.x1),t.y+t.y1>i.y&&(i.y=t.y+t.y1)}function Jtt(n,t){return n.x+n.x1>t[0].x&&n.x+n.x0t[0].y&&n.y+n.y0n.x+n.x0>t[0]||n.y+n.y0>t[0]||n.x+n.x1<0||n.y+n.y1<0,D0=(n,t)=>n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1];function tet(n,t){const e=n.sprite,i=n.y1-n.y0,s=n.width>>5;let r=0;const a=[],o=Math.max(-(n.y0+n.y),0),l=Math.min(i+(t[1]-(n.y1+n.y)),i),h=Math.max(-(n.x0+n.x),0)>>5,d=Math.min(s+(t[0]-(n.x1+n.x)>>5)+1,s);for(let _=0;_{e>=this.ngx||i>=this.ngy||e<0||i<0||(this.grid[e][i]=!1)},this.updateGrid=(e,i,s,r,a)=>{const o=a.occupied;let l=o.length;for(;l--;){const h=e+o[l][0],d=i+o[l][1];h>=this.ngx||d>=this.ngy||h<0||d<0||this.fillGridAt(h,d)}},this.gridSize=Math.max(Math.floor(this.options.gridSize),4)}getPointsAtRadius(t){if(this.pointsAtRadius[t])return this.pointsAtRadius[t];const e=8*t;let i=e;const s=[];for(t===0&&s.push([this.center[0],this.center[1],0]);i--;){const r=this.shape(i/e*2*Math.PI);s.push([this.center[0]+t*r*Math.cos(-i/e*2*Math.PI),this.center[1]+t*r*Math.sin(-i/e*2*Math.PI)*this.options.ellipticity,i/e*2*Math.PI])}return this.pointsAtRadius[t]=s,s}getTextInfo(t,e=1,i){var s;const r=this.options.clip?1:e,a=Math.max(Math.floor((this.isTryRepeatFill?this.options.fillTextFontSize:this.getTextFontSize(t))*r),this.options.minFontSize);let o=this.getText(t)+"";if(this.options.clip&&(o=o.slice(0,Math.ceil(o.length*e))),!o)return null;const l=this.getTextFontWeight(t),h=this.getTextFontStyle(t),d=this.getTextRotate&&(s=this.getTextRotate(t,i))!==null&&s!==void 0?s:0,c=this.getTextFontFamily(t),u=document.createElement("canvas"),g=u.getContext("2d",{willReadFrequently:!0});g.font=h+" "+l+" "+a.toString(10)+"px "+c;const p=g.measureText(o).width,_=Math.max(a,g.measureText("m").width,g.measureText("W").width);let f=p+2*_,m=3*_;const v=Math.ceil(f/this.gridSize),y=Math.ceil(m/this.gridSize);f=v*this.gridSize,m=y*this.gridSize;const b=-p/2,x=.4*-_,S=Math.ceil((f*Math.abs(Math.sin(d))+m*Math.abs(Math.cos(d)))/this.gridSize),A=Math.ceil((f*Math.abs(Math.cos(d))+m*Math.abs(Math.sin(d)))/this.gridSize),k=A*this.gridSize,T=S*this.gridSize;u.setAttribute("width",""+k),u.setAttribute("height",""+T),g.scale(1,1),g.translate(k/2,T/2),g.rotate(-d),g.font=h+" "+l+" "+a.toString(10)+"px "+c,g.fillStyle="#000",g.textBaseline="middle",g.fillText(o,b,x);const w=g.getImageData(0,0,k,T).data;if(this.exceedTime())return null;const M=[];let R,O=A;const L=[S/2,A/2,S/2,A/2],E=(B,I,F)=>{let z=this.gridSize;for(;z--;){let V=this.gridSize;for(;V--;)if(w[4*((I*this.gridSize+z)*k+(B*this.gridSize+V))+3])return F.push([B,I]),BL[1]&&(L[1]=B),IL[2]&&(L[2]=I))}};for(;O--;)for(R=S;R--;)E(O,R,M);return{datum:t,occupied:M,bounds:L,gw:A,gh:S,fillTextOffsetX:b,fillTextOffsetY:x,fillTextWidth:p,fillTextHeight:_,fontSize:a,fontStyle:h,fontWeight:l,fontFamily:c,angle:d,text:o}}calculateEmptyRate(){const t=this.ngx*this.ngy;let e=0;for(let i=0;i=this.ngx||l>=this.ngy||o<0||l<0){if(!this.options.drawOutOfBound)return!1}else if(!this.grid[o][l])return!1}return!0}layoutWord(t,e=1){const i=this.data[t],s=this.getTextInfo(i,e,t);if(!s||this.exceedTime())return!1;if(!this.options.drawOutOfBound&&(!this.options.shrink||s.fontSize<=this.options.minFontSize)&&!this.options.clip){const o=s.bounds;if(o[1]-o[3]+1>this.ngx||o[2]-o[0]+1>this.ngy)return!1}let r=this.maxRadius+1;const a=o=>{const l=Math.floor(o[0]-s.gw/2),h=Math.floor(o[1]-s.gh/2),d=s.gw,c=s.gh;return!!this.canFitText(l,h,d,c,s.occupied)&&(s.distance=this.maxRadius-r,s.theta=o[2],this.outputText(l,h,s),this.updateGrid(l,h,d,c,s),!0)};for(;r--;){let o=this.getPointsAtRadius(this.maxRadius-r);if(this.options.random&&(o=[].concat(o),dP(o)),o.some(a))return!0}return(this.options.clip||!!(this.options.shrink&&s.fontSize>this.options.minFontSize))&&this.layoutWord(t,.75*e)}outputText(t,e,i){const s=this.getTextColor(i),r={text:i.text,datum:i.datum,color:s,fontStyle:i.fontStyle,fontWeight:i.fontWeight,fontFamily:i.fontFamily,angle:i.angle,width:i.fillTextWidth,height:i.fillTextHeight,x:(t+i.gw/2)*this.gridSize,y:(e+i.gh/2)*this.gridSize+i.fillTextOffsetY+.5*i.fontSize,fontSize:i.fontSize};this.result.push(r),this.progressiveResult&&this.progressiveResult.push(r)}initGrid(t){this.grid=[];const e=this.options.shape;if(yt(e)){const i=OR(e,t.width,t.height);let s=i.getContext("2d").getImageData(0,0,this.ngx*this.gridSize,this.ngy*this.gridSize);this.options.onUpdateMaskCanvas&&this.options.onUpdateMaskCanvas(i);let r=hy(e.backgroundColor);const a=(l,h)=>{let d=this.gridSize;for(;d--;){let c=this.gridSize;for(;c--;)if(!r(s,h*this.gridSize+d,l*this.gridSize+c))return void(this.grid[l][h]=!0)}this.grid[l][h]=!1};let o=this.ngx;for(;o--;){this.grid[o]=[];let l=this.ngy;for(;l--;)a(o,l),this.grid[o][l]!==!1&&(this.grid[o][l]=!0)}s=r=void 0}else{let i=this.ngx;for(;i--;){this.grid[i]=[];let s=this.ngy;for(;s--;)this.grid[i][s]=!0}}}canRepeat(){return this.calculateEmptyRate()>.001}layout(t,e){this.initProgressive(),this.drawnCount=0,this.isTryRepeatFill=!1,this.originalData=t,this.data=t,this.pointsAtRadius=[],this.ngx=Math.floor(e.width/this.gridSize),this.ngy=Math.floor(e.height/this.gridSize);const{center:i,maxRadius:s}=_x(this.options.shape,[e.width,e.height]);return this.center=e.origin?[e.origin[0]/this.gridSize,e.origin[1]/this.gridSize]:[i[0]/this.gridSize,i[1]/this.gridSize],this.maxRadius=Math.floor(s/this.gridSize),this.initGrid(e),this.result=[],this.progressiveRun()}};PI.defaultOptions={gridSize:8,ellipticity:1,maxSingleWordTryCount:1};class wm extends Eh{constructor(t){super($({},wm.defaultOptions,t)),this.random=this.options.random?Math.random:()=>0,this.aspectRatio=1}fit(t){for(let e=0,i=this.result.length;e.5?1:-1:t%2==0?1:-1),r=this.center[0]-o/2+s*h*Math.cos(i)*this.aspectRatio,a=this.center[1]-l/2+s*h*Math.sin(i),e.left=r,e.top=a,e.x=r+o/2,e.y=a+l/2,d=this.fit(e);return!!d&&!!(this.options.clip||e.left>=0&&e.left+e.width<=this.width&&e.top>=0&&e.top+e.height<=this.height)&&(this.result.push(e),!0)}layout(t,e){if(!(t!=null&&t.length))return[];this.initProgressive(),this.result=[],this.maxRadius=Math.sqrt(e.width*e.width+e.height*e.height)/2,this.center=[e.width/2,e.height/2],this.width=e.width,this.height=e.height,this.data=t.sort((s,r)=>this.getTextFontSize(r)-this.getTextFontSize(s));let i=0;for(;it.left+t.width||n.top>t.top+t.height)}wm.defaultOptions={enlarge:!1};const gC={x:"x",y:"y",z:"z",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle"},iet=(n,t)=>{var e,i,s,r,a,o;if(n.size&&(n.size[0]<=0||n.size[1]<=0))return Ot.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];const l=t,h=((e=n.size)!==null&&e!==void 0?e:[500,500]).slice();h[0]=Math.floor(h[0]),h[1]=Math.floor(h[1]);const d=n.fontFamily?Va(n.fontFamily):"sans-serif",c=n.fontStyle?Va(n.fontStyle):"normal",u=n.fontWeight?Va(n.fontWeight):"normal",g=n.rotate?Va(n.rotate):0,p=Va(n.text),_=(i=n.spiral)!==null&&i!==void 0?i:"archimedean",f=n.padding?Va(n.padding):1,m=(s=n.shape)!==null&&s!==void 0?s:"square",v=(r=n.shrink)!==null&&r!==void 0&&r,y=(a=n.enlarge)!==null&&a!==void 0&&a,b=(o=n.clip)!==null&&o!==void 0&&o,x=n.minFontSize,S=n.randomVisible,A=n.as?Object.assign(Object.assign({},gC),n.as):gC,k=n.depth_3d,T=n.postProjection;let w=n.fontSize?Va(n.fontSize):14;const M=n.fontSizeRange;if(M&&!J(w)){const L=w,E=net(set(L,l),M);w=B=>E(L(B))}let R=Wl;n.layoutType==="fast"?R=wm:n.layoutType==="grid"&&(R=PI);const O=new R(Object.assign(Object.assign({},n),{text:p,padding:f,spiral:_,shape:m,rotate:g,fontFamily:d,fontStyle:c,fontWeight:u,fontSize:w,shrink:v,clip:b,enlarge:y,minFontSize:x,random:S,outputCallback:L=>{const E=[];let B,I;for(let F=0,z=L.length;F0||n.progressiveTime>0?{progressive:O}:O.output()},Va=n=>tt(n)||J(n)||N(n)||U(n)?n:t=>t[n.field],F0=n=>n<0?-Math.sqrt(-n):Math.sqrt(n),net=(n,t,e)=>{if(n[0]===n[1])return o=>t[0];const i=F0(n[0]),s=F0(n[1]),r=Math.min(i,s),a=Math.max(i,s);return o=>(F0(o)-r)/(a-r)*(t[1]-t[0])+t[0]},set=(n,t)=>{let e=1/0,i=-1/0;const s=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]};function ret(n,t,e,i,s){const r=Math.max(n[0],n[1])/2,a=aet(n[0],n[1],r,{x:r,y:r,z:s??r},t);e[i.x]=a.x,e[i.y]=a.y,e[i.z]=a.z}function aet(n,t,e,i,s){const{x:r,y:a}=s,o=r/n*Math.PI*2;let l=Math.PI-a/t*Math.PI;return l+=(l{G.registerTransform("wordcloud",{transform:iet,markPhase:"beforeJoin"},!0)};var eo;(function(n){n.BEFORE_WORDCLOUD_SHAPE_LAYOUT="beforeWordcloudShapeLayout",n.AFTER_WORDCLOUD_SHAPE_LAYOUT="afterWordcloudShapeLayout",n.AFTER_WORDCLOUD_SHAPE_DRAW="afterWordcloudShapeDraw"})(eo||(eo={}));const oet=(n,t)=>{if(t.length===1&&t[0]==="#537EF5")return!0;if(!Array.isArray(n)||!Array.isArray(t)||n.length!==t.length)return!1;for(let e=0;e{let n=-1;const t=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9];return()=>(n=(n+1)%t.length,t[n])},det=n=>/^[\u4e00-\u9fa5]+$/.test(n),RI=(n,t)=>{if(P(n))return 0;let e=0;for(const i of n)det(i)?e+=1:e+=.53;return e};function cet(n){return n&&(oP(n)||lP(n)||n.startsWith("{var i;const s=ox({image:n}),r=(i=s.resources)===null||i===void 0?void 0:i.get(n);r&&r.state==="success"&&r.data?t(r.data):(s.successCallback=()=>{var a;if(s){const o=(a=s.resources)===null||a===void 0?void 0:a.get(n);o&&o.state==="success"&&o.data?t(o.data):e(new Error("image load failed"+n))}else e(new Error("image load failed"+n))},s.failCallback=()=>{Ot.getInstance().error("image 加载失败!",n)})}):null}function uet(n){return typeof n=="function"?n:function(){return n}}function get(n){const{size:t,maskCanvas:e}=n,i=e.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,e.width,e.height),s=new Array(t[0]*t[1]).fill(0);let r=1;const a=[[0,1],[1,0],[-1,0],[0,-1]];let o=[];for(let k=0;k=t[1]?t[1]-1:R,O=O<0?0:O>=t[0]?t[0]-1:O,s[R*t[0]+O]!==0||n.isEmptyPixel(i,R,O)||(s[R*t[0]+O]=r,o.push([R,O]))}r++,o=[]}const l={},h={},d={},c={},u={},g={},p={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0,width:0,height:0};for(let k=0;kc[w][1]&&(c[w][1]=k),Tc[w][3]&&(c[w][3]=T),Tp.x2&&(p.x2=T),kp.y2&&(p.y2=k)),h[w]=h[w]||0,h[w]++)}const _=[];for(const k in l){const T=l[k],w=~~(T.reduce((B,I)=>B+I[0],0)/T.length),M=~~(T.reduce((B,I)=>B+I[1],0)/T.length);d[k]=[w,M],_.push(...T);const[R,O,L,E]=c[k];u[k]=~~Math.max(Math.sqrt((w-L)**2+(M-R)**2),Math.sqrt((w-E)**2+(M-O)**2),Math.sqrt((w-L)**2+(M-O)**2),Math.sqrt((w-E)**2+(M-R)**2)),g[k]=(E-L)/(O-R)}const f=Object.keys(d).map(k=>({label:k-1,boundary:l[k],area:h[k],center:d[k],maxPoint:c[k],maxR:u[k],ratio:g[k]}));p.width=p.x2-p.x1+1,p.height=p.y2-p.y1+1;const m=~~(_.reduce((k,T)=>k+T[0],0)/_.length),v=~~(_.reduce((k,T)=>k+T[1],0)/_.length),y=~~Math.max(Math.sqrt((m-p.x1)**2+(v-p.y1)**2),Math.sqrt((m-p.x2)**2+(v-p.y2)**2),Math.sqrt((m-p.x1)**2+(v-p.y2)**2),Math.sqrt((m-p.x2)**2+(v-p.y1)**2)),b=p.width/p.height,x=Object.keys(h).reduce((k,T)=>k+h[T],0),S={regions:f,labels:s,labelNumber:r-1};return Object.assign(n,{segmentation:S,shapeBounds:p,shapeMaxR:y,shapeRatio:b,shapeCenter:[m,v],shapeArea:x});function A(k,T){const w=[[0,1],[1,0],[-1,0],[0,-1]];if(k===0||T===0||k===t[1]-1||T===t[0]-1)return!0;for(let M=0;M<4;M++){let R=k+w[M][0],O=T+w[M][1];if(R=R<0?0:R>=t[1]?t[1]-1:R,O=O<0?0:O>=t[0]?t[0]-1:O,s[R*t[0]+O]===0)return!0}return!1}}function pet(n,t,e){t.width=n.width,t.height=n.height;const i=t.getContext("2d",{willReadFrequently:!0});i.clearRect(0,0,t.width,t.height),i.drawImage(n,0,0);const s=t.width,r=i.getImageData(0,0,t.width,t.height);let a=0,o=r.height,l=0,h=r.width;const d=(g,p)=>{for(let _=0;_{for(let f=p;f<_;++f)if(!e(r,f,g))return!1;return!0};for(;aa&&d(s,o-1);)--o;for(;ll&&c(h-1,a,o);)--h;const u=i.getImageData(l,a,h-l,o-a);return t.width=u.width,t.height=u.height,i.clearRect(0,0,t.width,t.height),i.putImageData(u,0,0),t}function _et(n,t){const e=n.width,i=n.height;let s=t[0]/e;i*s>t[1]&&(s=t[1]/i);const r=Math.floor(s*e),a=Math.floor(s*i);return{x:(t[0]-r)/2,y:(t[1]-a)/2,width:r,height:a,scale:s}}function fet(n,t){const{segmentation:{regions:e}}=t;let i=-1/0,s=0,r=0;e.forEach((h,d)=>{const c=h.area;c>i&&(i=c,r=d),s+=c});let a=0;e.forEach(h=>{const d=h.area,c=Math.ceil(d/s*n.length),u=d/i;h.words=[],h.regionNum=c,h.regionWeight=u,a+=c}),ah.regionNum);n.forEach(h=>{let d=0,c=0;h.regionIndex=-1;do{if(l[o]>0&&h.weight<=e[o].regionWeight){h.regionIndex=o,e[o].words.push(h),l[o]--,o=(o+1)%e.length;break}o=(o+1)%e.length,d++,c++,c>e.length+1&&(e.forEach(u=>{u.regionWeight+=.15}),c=0)}while(h.regionIndex===-1&&d<3*e.length);h.regionIndex===-1&&(h.regionIndex=r,e[r].words.push(h),l[r]--)}),e.forEach(h=>{h.words.sort((d,c)=>c.weight-d.weight)})}function met(n,t,e){const{size:i,stepFactor:s}=t,{segmentation:{regions:r},tempCanvas:a,boardSize:o,shapeCenter:l,shapeMaxR:h,shapeRatio:d}=e,c=uS(e),u=a.getContext("2d",{willReadFrequently:!0});for(const g of r){const{words:p,center:_,maxR:f,ratio:m}=g;for(let v=0;v(_.hasPlaced||(_.hasText=!1,_.sprite=null,_.fontSize=Math.max(~~(_.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!_.hasPlaced));if(p.length===0)break;for(let _=0;_b&&(x=n.sort((S,A)=>A.weight-S.weight)[b].weight);for(let S=0;Sx&&y>r){const E=L.datum[Symbol.for("vGrammar_id")];E!==m&&(m=E,v=y),y*=f,n.forEach(B=>{B.hasText=!1,B.sprite=null,B.fontSize=B.fontSize*f}),_=p.slice(0),R=!0;break}if(!L.skip&&L.datum[Symbol.for("vGrammar_id")]===m){n.forEach(E=>{E.hasText=!1,E.sprite=null,E.fontSize=E.fontSize/y}),L.skip=!0,y=v,m=null,_=p.slice(0),R=!0;break}}}R&&(S=-1)}for(let S=0;S(k.hasPlaced||(k.hasText=!1,k.sprite=null,k.fontSize=Math.max(~~(k.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!k.hasPlaced));if(A.length===0)break;for(let k=0;kf&&(m=n.sort((x,S)=>S.weight-x.weight)[f-1].weight);let v=0,y=1,b=!1;for(let x=0;x=m&&v++,v>=f&&!b){y*=_,n.forEach(L=>{L.hasText=!1,L.sprite=null,L.fontSize=L.fontSize*_}),p=g.slice(0),M=!0,v=0;break}}else{if(O.weight>=m&&y>1){n.forEach(L=>{L.hasText=!1,L.sprite=null,L.fontSize=L.fontSize/_}),y/=_,b=!0,p=g.slice(0),M=!0;break}if(O.weight>=m)return OI(n,t,e)}}M&&(x=-1)}for(let x=0;x(A.hasPlaced||(A.hasText=!1,A.sprite=null,A.fontSize=Math.max(~~(A.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!A.hasPlaced));if(S.length===0)break;for(let A=0;A=e)break;if(t.x=~~(o+u),t.y=~~(l+g),!(t.x-v<0||t.x+y>s[0]||t.y-f<0||t.y+m>s[1]||LI(t,n,r)))return BI(t,n,r),!0}return!1}function BI(n,t,e){const{wordSize:i}=n,s=n.sprite,r=i[0]>>5,a=e[0]>>5,o=n.x-(r<<4),l=o%32,h=32-l,d=i[1];let c,u=(n.y-(i[1]>>1))*a+(o>>5);if(l===0)for(let g=0;g>>l:0);u+=a}}function LI(n,t,e){const{sprite:i,wordSize:s}=n,r=e[0]>>5,a=s[0]>>5,o=n.x-(a<<4),l=o%32,h=32-l,d=s[1];let c,u=(n.y-(s[1]>>1))*r+(o>>5);if(l===0)for(let g=0;g>>l:0))&t[u+p])return!0;u+=r}return!1}function yet(n){return function(t){return[n*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function Lo(n,t,e,i){if(e[i].sprite||e[i].fontSize===0)return;const s=2048,r=Math.PI/180,a=e.length;n.width=s,n.height=2048,t.clearRect(0,0,s,2048),t.textAlign="center";let o,l,h=0,d=0,c=0,u=0;const g=i;for(--i;++i>5<<5,l=Math.ceil(l),l>c&&(c=l),h+o>=s&&(h=0,d+=c,c=l),d+l>=2048){if(d===0){m.hasText=!1;continue}break}d+l>=u&&(u=d+l),t.translate(h+(o>>1),d+(l>>1)),m.rotate!==0&&t.rotate(m.rotate*r),t.fillText(m.text,0,0),m.padding&&(t.lineWidth=2*m.padding,t.strokeText(m.text,0,0)),t.restore(),m.LT=[h,d],m.wordSize=[o,l],m.hasText=!0,h+=o}if(u===0)return;const p=t.getImageData(0,0,s,u).data;let _,f;for(;--i>=g;){const m=e[i];if(!m.hasText){m.bounds={dTop:1/0,dBottom:-1/0,dLeft:1/0,dRight:-1/0};break}const{LT:v=[0,0],wordSize:y}=m;[h,d]=v;const b=y[0]>>5,x=new Array(b*y[1]).fill(0);let[S,A,k,T]=[1/0,-1/0,1/0,-1/0];for(f=0;f0){const M=1<<31-_%32;x[b*f+(_>>5)]|=M,_T&&(T=_),w|=M}w&&(fA&&(A=f))}m.bounds={dTop:(y[1]>>1)-S,dBottom:A-(y[1]>>1),dLeft:(y[0]>>1)-k,dRight:T-(y[0]>>1)},m.sprite=x,delete m.LT}}function uS(n){const{segmentation:{labels:t},boardSize:e,size:i}=n,s=e[0]>>5,r=new Array(s*i[1]).fill(0);for(let a=0;a>5)]|=l}if(e[0]>i[0]){const a=(1<c?k-c:c,v),T=T>g?T-g:g;return w;function M(O,L){const E=n.map(ot=>{const{text:dt,color:nt,fillingColor:st,hasPlaced:et,datum:K}=ot;return{x:0,y:0,weight:0,text:dt,fontFamily:h(K),fontStyle:o(K),fontWeight:l(K),fontSize:O,rotate:p[~~(S()*p.length)],padding:_(K),opacity:L,visible:!0,color:nt,fillingColor:st,hasPlaced:et,datum:K}});R(E);let B=0;const{x1:I,y1:F,x2:z,y2:V}=b,[W,at]=[I+~~(S()*r*2),F+~~(S()*a*2)];for(let ot=at;ot<=V;ot+=a)for(let dt=W;dt<=z;dt+=r){Lo(x,A,E,B);const nt=E[B];nt.x=dt,nt.y=ot;const{wordSize:st,bounds:et,hasPlaced:K}=nt;if(!K||!et){++B===E.length&&(B=0,f&&R(E));continue}const{dTop:ft,dBottom:Bt,dLeft:ct,dRight:bt}=et;nt.x-ct<0||nt.x+bt>i[0]||nt.y-ft<0||nt.y+Bt>i[1]||nt.hasText&&nt.sprite&&!LI(nt,m,y)&&(BI(nt,m,y),w.push(Object.assign({},nt)),++B===E.length&&(B=0,f&&R(E)))}}function R(O){return O.sort(()=>S()-.5)}}function xet(n,t,e){fet(n,e),t.layoutMode==="ensureMapping"?OI(n,t,e):t.layoutMode==="ensureMappingEnlarge"?vet(n,t,e):met(n,t,e);const i=bet(n,t,e),s=[],r=[];for(let a=0;aa.visible=!1),{fillingWords:i,successedWords:r,failedWords:s}}const pC={x:"x",y:"y",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle",opacity:"opacity",visible:"visible",isFillingWord:"isFillingWord",color:"color"};class Aet{constructor(t,e){this.progressiveResult=[],this.options=t,this.view=e}layout(t){this.data=t;const e=this.options,i={shapeUrl:e.shape,size:e.size,ratio:e.ratio||.8,tempCanvas:void 0,boardSize:[0,0],random:!1,randomGenerator:void 0},s=Et.createCanvas({width:e.size[0],height:e.size[1]}),r=s.getContext("2d",{willReadFrequently:!0});r.textAlign="center",r.textBaseline="middle",i.tempCanvas=s;const a=e.size[0]+31>>5<<5;if(i.boardSize=[a,e.size[1]],i.random?i.randomGenerator=Math.random:i.randomGenerator=het(),this.segmentationInput=i,tt(i.shapeUrl)){i.isEmptyPixel=hy();const o=cet(i.shapeUrl);o?(this.isImageFinished=!1,this.isLayoutFinished=!1,o.then(l=>{this.isImageFinished=!0;const h=Et.createCanvas({width:e.size[0],height:e.size[1],dpr:1});i.maskCanvas=h;const d=h.getContext("2d");e.removeWhiteBorder&&pet(l,h,i.isEmptyPixel);const c=_et(l,e.size);d.clearRect(0,0,e.size[0],e.size[1]),d.drawImage(l,c.x,c.y,c.width,c.height),this.options.onUpdateMaskCanvas&&this.options.onUpdateMaskCanvas(i.maskCanvas)}).catch(l=>{this.isImageFinished=!0})):(this.isImageFinished=!0,this.isLayoutFinished=!0)}else if(i.shapeUrl&&(i.shapeUrl.type==="text"||i.shapeUrl.type==="geometric")){i.isEmptyPixel=hy(i.shapeUrl.backgroundColor);const o=OR(i.shapeUrl,e.size[0],e.size[1]);i.maskCanvas=o,this.options.onUpdateMaskCanvas&&this.options.onUpdateMaskCanvas(o),this.doLayout(),this.isImageFinished=!0,this.isLayoutFinished=!0}}canAnimate(){return!0}unfinished(){return!this.isLayoutFinished}output(){return this.progressiveResult}progressiveRun(){this.isImageFinished&&!this.isLayoutFinished&&(this.segmentationInput.maskCanvas&&this.doLayout(),this.isLayoutFinished=!0)}progressiveOutput(){return this.progressiveResult}doLayout(){var t,e,i,s,r,a,o,l,h,d,c,u,g,p,_,f,m,v,y,b,x,S;const A=this.segmentationInput,k=get(A);if(!k.segmentation.regions.length)return;const T=this.options,w=this.data,M=T.colorMode||"ordinal",R={getText:Wi(T.text),getFontSize:Wi(T.fontSize),fontSizeRange:T.fontSizeRange,colorMode:M,getColor:T.colorField?Wi(T.colorField):Wi(T.text),getFillingColor:Wi(T.fillingColorField),colorList:T.colorList||(M==="ordinal"?["#2E62F1"]:["#537EF5","#2E62F1","#2358D8","#184FBF","#0C45A6","#013B8E"]),getColorHex:Wi(T.colorHexField),getFontFamily:Wi(T.fontFamily||"sans-serif"),rotateList:T.rotateList||[0],getPadding:Wi(T.padding||1),getFontStyle:Wi(T.fontStyle||"normal"),getFontWeight:Wi(T.fontWeight||"normal"),getFontOpacity:T.fontOpacity?Wi(T.fontOpacity):()=>1};Tet(w,R,k);const O={size:T.size,ratio:T.ratio||.8,shapeUrl:T.shape,random:T.random===void 0||T.random,textLayoutTimes:(t=T.textLayoutTimes)!==null&&t!==void 0?t:3,removeWhiteBorder:T.removeWhiteBorder,layoutMode:(e=T.layoutMode)!==null&&e!==void 0?e:"default",fontSizeShrinkFactor:(i=T.fontSizeShrinkFactor)!==null&&i!==void 0?i:.8,stepFactor:(s=T.stepFactor)!==null&&s!==void 0?s:1,importantWordCount:(r=T.importantWordCount)!==null&&r!==void 0?r:10,globalShinkLimit:T.globalShinkLimit||.2,fontSizeEnlargeFactor:(a=T.fontSizeEnlargeFactor)!==null&&a!==void 0?a:1.5,fillingRatio:(o=T.fillingRatio)!==null&&o!==void 0?o:.7,fillingTimes:(l=T.fillingTimes)!==null&&l!==void 0?l:4,fillingXStep:T.fillingXRatioStep?Math.max(Math.floor(T.size[0]*T.fillingXRatioStep),1):(h=T.fillingXStep)!==null&&h!==void 0?h:4,fillingYStep:T.fillingYRatioStep?Math.max(Math.floor(T.size[1]*T.fillingYRatioStep),1):(d=T.fillingYStep)!==null&&d!==void 0?d:4,fillingInitialFontSize:T.fillingInitialFontSize,fillingDeltaFontSize:T.fillingDeltaFontSize,fillingInitialOpacity:(c=T.fillingInitialOpacity)!==null&&c!==void 0?c:.8,fillingDeltaOpacity:(u=T.fillingDeltaOpacity)!==null&&u!==void 0?u:.05,getFillingFontFamily:Wi(T.fillingFontFamily||"sans-serif"),getFillingFontStyle:Wi(T.fillingFontStyle||"normal"),getFillingFontWeight:Wi(T.fillingFontWeight||"normal"),getFillingPadding:Wi((g=T.fillingPadding)!==null&&g!==void 0?g:.4),fillingRotateList:(p=T.fillingRotateList)!==null&&p!==void 0?p:[0,90],fillingDeltaFontSizeFactor:(_=T.fillingDeltaFontSizeFactor)!==null&&_!==void 0?_:.2,fillingColorList:T.fillingColorList||["#537EF5"],sameColorList:!1,minInitFontSize:(f=T.minInitFontSize)!==null&&f!==void 0?f:10,minFontSize:(m=T.minFontSize)!==null&&m!==void 0?m:4,minFillFontSize:(v=T.minFillFontSize)!==null&&v!==void 0?v:2},L=oet(R.colorList,O.fillingColorList);O.sameColorList=L,ket(w,R,O,T),Met(w,R,O,k);const{getText:E,getFontFamily:B,getFontStyle:I,getFontWeight:F,getPadding:z,getColor:V,getFillingColor:W,getColorHex:at,fontSizeScale:ot,colorScale:dt,fillingColorScale:nt,getFontOpacity:st,rotateList:et}=R,K=w.map(St=>{var Pe,vi;return{x:0,y:0,weight:0,text:E(St),fontFamily:B(St),fontWeight:F(St),fontStyle:I(St),rotate:et[~~(A.randomGenerator()*et.length)],fontSize:Math.max(O.minInitFontSize,~~ot(St)),opacity:st(St),padding:z(St),color:at&&at(St)||dt&&dt(V(St))||"black",fillingColor:!W||((Pe=T.colorField)===null||Pe===void 0?void 0:Pe.field)===((vi=T.fillingColorField)===null||vi===void 0?void 0:vi.field)&&L?void 0:at&&at(St)||nt&&nt(W(St))||"black",datum:St,visible:!0,hasPlaced:!1}}),ft=Fe(K.map(St=>St.fontSize));K.forEach(St=>St.weight=St.fontSize/ft),K.sort((St,Pe)=>Pe.weight-St.weight);const{fillingWords:Bt,successedWords:ct,failedWords:bt}=xet(K,O,k),Dt=(b=(y=T.text)===null||y===void 0?void 0:y.field)!==null&&b!==void 0?b:"textKey",he=(x=T.dataIndexKey)!==null&&x!==void 0?x:"defaultDataIndexKey",Ct=T.as?Object.assign(Object.assign({},pC),T.as):pC;let Tt,qt;const ie=[];for(let St=0;St{var vi,Pr;const yi=Object.assign({},St.datum);yi[Ct.x]=St.x,yi[Ct.y]=St.y,yi[Ct.fontFamily]=St.fontFamily,yi[Ct.fontSize]=St.fontSize,yi[Ct.fontStyle]=St.fontStyle,yi[Ct.fontWeight]=St.fontWeight,yi[Ct.angle]=te(St.rotate),yi[Ct.opacity]=St.opacity,yi[Ct.visible]=St.visible,yi[Ct.isFillingWord]=!0,yi[Ct.color]=W?((vi=T.colorField)===null||vi===void 0?void 0:vi.field)===((Pr=T.fillingColorField)===null||Pr===void 0?void 0:Pr.field)&&L?St.color:St.fillingColor:O.fillingColorList[~~(A.randomGenerator()*O.fillingColorList.length)],yi[Dt]=St.text,yi[he]=`${St.text}_${Pe}_fillingWords`,Ce.push(yi)}),this.view&&this.view.emit){this.view.emit(eo.AFTER_WORDCLOUD_SHAPE_LAYOUT,{successedWords:ct,failedWords:bt});const St=(S=this.view.renderer)===null||S===void 0?void 0:S.stage();St&&St.hooks.afterRender.tap(eo.AFTER_WORDCLOUD_SHAPE_DRAW,()=>{this.view.emit(eo.AFTER_WORDCLOUD_SHAPE_DRAW,{successedWords:ct,failedWords:bt}),St.hooks.afterRender.unTap(eo.AFTER_WORDCLOUD_SHAPE_DRAW)})}this.progressiveResult=ie.concat(Ce)}release(){this.segmentationInput=null,this.data=null,this.progressiveResult=null,this.options=null}}const ket=(n,t,e,i)=>{var s,r,a,o;const{colorMode:l,getColor:h,getFillingColor:d}=t,{sameColorList:c}=e;let u,g,p=t.colorList,_=e.fillingColorList;if(l==="ordinal"){const f=n.map(m=>h(m));if(u=m=>new yo().domain(f).range(p).scale(m),d&&(((s=i.colorField)===null||s===void 0?void 0:s.field)!==((r=i.fillingColorField)===null||r===void 0?void 0:r.field)||!c)){const m=n.map(v=>d(v));g=v=>new yo().domain(m).range(_).scale(v)}}else{p.length===1&&(p=[p[0],p[0]]);const f=new Tn().domain(Rd(h,n)).range(p);if(u=m=>f.scale(m),d&&(((a=i.colorField)===null||a===void 0?void 0:a.field)!==((o=i.fillingColorField)===null||o===void 0?void 0:o.field)||!c)){_.length===1&&(_=[_[0],_[0]]);const m=new Tn().domain(Rd(d,n)).range(_);g=v=>m.scale(v)}}Object.assign(t,{colorScale:u,fillingColorScale:g})},Tet=(n,t,e)=>{let{fontSizeRange:i}=t;const{getFontSize:s,getText:r}=t;let a;if(s){if(s&&i){const o=new g_().domain(Rd(s,n)).range(i);a=l=>o.scale(s(l))}else if(s&&N(s)&&!i){const[l,h]=Rd(s,n),d=n.map(g=>({text:r(g),value:s(g),weight:h===l?1:(s(g)-l)/(h-l)})),c=_C(d,e,!0);i=[~~(.5*c),~~c];const u=new g_().domain(Rd(s,n)).range(i);a=g=>u.scale(s(g))}}else{const o=n.map(h=>({text:r(h)})),l=_C(o,e,!1);a=uet(l)}Object.assign(t,{getFontSize:s,fontSizeRange:i,fontSizeScale:a})},_C=(n,t,e)=>{const i=t.shapeArea,s=t.ratio,r=t.segmentation.regions,a=Math.ceil(Math.sqrt(i)/12),o=n.reduce((h,d)=>{const c=RI(d.text);return c{const p=RI(s(g));return p>l?u:u+p},0)/n.length;let c;if(d===0)c=8;else{const u=.2*i.shapeArea;c=Math.sqrt(h*(u/d))}r=~~c,a=c*e.fillingDeltaFontSizeFactor,Object.assign(e,{fillingInitialFontSize:r,fillingDeltaFontSize:a})}}const Rd=(n,t)=>{let e=1/0,i=-1/0;const s=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]},Wi=n=>n?typeof n=="string"||typeof n=="number"?()=>n:N(n)?n:t=>t[n.field]:null,wet=(n,t,e,i)=>{if(!n.size||P(n.size[0])||P(n.size[1])||n.size[0]<=0||n.size[1]<=0)return Ot.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];if(n.size=[Math.ceil(n.size[0]),Math.ceil(n.size[1])],n.shape||so("WordcloudShape shape must be specified."),n.text||so("WordcloudShape text must be specified."),i!=null&&i.emit&&i.emit(eo.BEFORE_WORDCLOUD_SHAPE_LAYOUT),!t||t.length===0)return[];const s=new Aet(n,i);return s.layout(t),s.unfinished()?{progressive:s}:s.output()},II=()=>{G.registerTransform("wordcloudShape",{transform:wet,markPhase:"beforeJoin"},!0)};class Uc extends Bo{constructor(){super(...arguments),this.type=Y.wordCloud}}Uc.type=Y.wordCloud;const DI=()=>{Cm(),dn(),wI(),D.registerSeries(Uc.type,Uc)},Cet=()=>{II(),Cm(),dn(),wI(),D.registerSeries(Uc.type,Uc)};class $c extends Bo{constructor(){super(...arguments),this.type=Y.wordCloud3d}_wordCloudTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudTransformOption()),{postProjection:(t=this._spec.postProjection)!==null&&t!==void 0?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}_wordCloudShapeTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudShapeTransformOption()),{postProjection:(t=this._spec.postProjection)!==null&&t!==void 0?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}initMark(){this._wordMark=this._createMark(Bo.mark.word,{groupKey:this._seriesField,isSeriesMark:!0},{support3d:!0})}initMarkStyle(){super.initMarkStyle();const t=this._wordMark;t&&this.setMarkStyle(t,{z:e=>{var i;return(i=e.z)!==null&&i!==void 0?i:0}},"normal",Z.Series)}initAnimation(){var t,e;const i=(t=this._padding)!==null&&t!==void 0?t:{};this._wordMark&&this._wordMark.setAnimationConfig(It((e=D.getAnimationInKey("wordCloud3d"))===null||e===void 0?void 0:e(()=>{var s;const r=this.getCompiler().getVGrammarView(),a=r.width()-i.left||0-i.right||0,o=r.height()-i.top||0-i.bottom||0,l=Math.max(a,o)/2;return{center:{x:l,y:l,z:(s=this._spec.depth_3d)!==null&&s!==void 0?s:l},r:l}}),Nt("word",this._spec,this._markAttributeContext)))}}$c.type=Y.wordCloud3d;const FI=()=>{Cm(),dn(),CI(),D.registerSeries($c.type,$c)},Pet=()=>{II(),Cm(),dn(),CI(),D.registerSeries($c.type,$c)},Eet=(n,t)=>{var e,i;const s=n.map(x=>Object.assign({},x));if(!s||s.length===0)return s;const{valueField:r,asTransformRatio:a,asReachRatio:o,asHeightRatio:l,asValueRatio:h,asNextValueRatio:d,asLastValueRatio:c,asLastValue:u,asCurrentValue:g,asNextValue:p,heightVisual:_=!1,isCone:f=!0,range:m}=t,v=s.reduce((x,S)=>Math.max(x,Number.parseFloat(S[r])||-1/0),-1/0),y=s.reduce((x,S)=>Math.min(x,Number.parseFloat(S[r])||1/0),1/0),b=[(e=m==null?void 0:m.min)!==null&&e!==void 0?e:y,(i=m==null?void 0:m.max)!==null&&i!==void 0?i:v];return s.forEach((x,S)=>{var A,k;const T=Number.parseFloat(x[r]),w=Number.parseFloat((A=s[S-1])===null||A===void 0?void 0:A[r]),M=Number.parseFloat((k=s[S+1])===null||k===void 0?void 0:k[r]),R=H(M*T)&&T!==0?M/T:0,O=H(T*w)&&w!==0?T/w:0;u&&(x[u]=w),p&&(x[p]=M),a&&(x[a]=R),o&&(x[o]=S===0?1:O),l&&(x[l]=_===!0?R:1/s.length),h&&(x[h]=T/b[1]),d&&(x[d]=S===s.length-1?f?0:x[h]:M/b[1]),c&&(x[c]=S===0?1:w/b[1]),g&&(x[g]=T)}),s},Ret=(n,t)=>{var e,i;const s=(i=(e=n[0])===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.map(r=>Object.assign({},r));return s&&s.length!==0&&(s.shift(),s.forEach(r=>{r[t.asIsTransformLevel]=!0})),s},Oet=`${_t}_FUNNEL_TRANSFORM_RATIO`,_b=`${_t}_FUNNEL_REACH_RATIO`,Bet=`${_t}_FUNNEL_HEIGHT_RATIO`,cg=`${_t}_FUNNEL_VALUE_RATIO`,fC=`${_t}_FUNNEL_LAST_VALUE_RATIO`,mC=`${_t}_FUNNEL_NEXT_VALUE_RATIO`,Let=`${_t}_FUNNEL_LAST_VALUE`,Iet=`${_t}_FUNNEL_CURRENT_VALUE`,Det=`${_t}_FUNNEL_NEXT_VALUE`,vC=`${_t}_FUNNEL_TRANSFORM_LEVEL`,Fet=20,Wa=5,zet="80%",jet=0;class Het extends Hi{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=(t,e)=>{var i,s,r;const a=this.series;return((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform"?"转化率":(s=this._getDimensionData(t))!==null&&s!==void 0?s:(r=t.properties)===null||r===void 0?void 0:r[`${a.getCategoryField()}`]},this.markTooltipValueCallback=(t,e)=>{var i;return((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform"?`${(100*(t==null?void 0:t[_b])).toFixed(1)}%`:this._getMeasureData(t)},this.markTooltipKeyCallback=(t,e)=>{var i;if(((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform")return"转化率";const{dimensionFields:s,seriesFields:r}=this._seriesCacheInfo,a=s[s.length-1];return C(r[0])?t==null?void 0:t[r[0]]:t==null?void 0:t[a]}}}class zI extends Ci{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{points:[]})}}class Yc extends zI{constructor(){super(...arguments),this.type=Yc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}}Yc.type="polygon";const jI=()=>{D.registerMark(Yc.type,Yc),Z6(),LL()},Vet=Object.assign(Object.assign({},we),{funnel:{name:"funnel",type:"polygon"},transform:{name:"transform",type:"polygon"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}}),Wet=Object.assign(Object.assign({},we),{funnel3d:{name:"funnel3d",type:"pyramid3d"},transform3d:{name:"transform3d",type:"pyramid3d"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}});class gS extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel"),t.isTransform&&this._addMarkLabelSpec(t,"transform","transformLabel")}}class os extends Eo{constructor(){super(...arguments),this.type=Y.funnel,this._funnelMarkName="funnel",this._funnelMarkType="polygon",this._transformMarkName="transform",this._transformMarkType="polygon",this.transformerConstructor=gS,this._funnelMark=null,this._funnelTransformMark=null,this._labelMark=null,this._transformLabelMark=null,this._funnelOuterLabelMark={}}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this._funnelOrient=(t=this._spec.funnelOrient)!==null&&t!==void 0?t:"top",this._shape=(e=this._spec.shape)!==null&&e!==void 0?e:"trapezoid",this._minLabelLineWidth=(r=(s=(i=this._spec.outerLabel)===null||i===void 0?void 0:i.line)===null||s===void 0?void 0:s.minLength)!==null&&r!==void 0?r:Fet,this._isHorizontal()?this._funnelAlign=["top","bottom"].includes(this._spec.funnelAlign)?this._spec.funnelAlign:"center":this._funnelAlign=["left","right"].includes(this._spec.funnelAlign)?this._spec.funnelAlign:"center",!this._seriesField&&this._spec.categoryField&&this.setSeriesField(this._spec.categoryField)}initData(){if(super.initData(),!this._data)return;vt(this._dataSet,"funnel",Eet),vt(this._dataSet,"funnelTransform",Ret);const t=new Gt(this._dataSet,{name:`${_t}_series_${this.id}_viewDataTransform`});t.parse([this.getViewData()],{type:"dataview"}),this._viewDataTransform=new js(this._option,t)}compileData(){var t;super.compileData(),(t=this._viewDataTransform)===null||t===void 0||t.compile()}getStatisticFields(){const t=[];return t.push({key:this._categoryField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}_statisticViewData(){var t,e,i,s,r,a,o,l,h;super._statisticViewData(),this._data.getDataView().transform({type:"funnel",options:{valueField:this.getValueField(),isCone:this._spec.isCone,asCurrentValue:Iet,asTransformRatio:Oet,asReachRatio:_b,asHeightRatio:Bet,asValueRatio:cg,asNextValueRatio:mC,asLastValueRatio:fC,asLastValue:Let,asNextValue:Det,range:{min:(e=(t=this._spec.range)===null||t===void 0?void 0:t.min)!==null&&e!==void 0?e:(s=(i=this.getViewDataStatistics().latestData)===null||i===void 0?void 0:i[this.getValueField()])===null||s===void 0?void 0:s.min,max:(a=(r=this._spec.range)===null||r===void 0?void 0:r.max)!==null&&a!==void 0?a:(l=(o=this.getViewDataStatistics().latestData)===null||o===void 0?void 0:o[this.getValueField()])===null||l===void 0?void 0:l.max}}}),(h=this._viewDataTransform.getDataView())===null||h===void 0||h.transform({type:"funnelTransform",options:{asIsTransformLevel:vC}})}initMark(){var t,e,i,s,r,a,o,l,h,d,c,u;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},os.mark.funnel),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:(t=this._theme)===null||t===void 0?void 0:t.funnel,groupKey:this._seriesField,isSeriesMark:!0,stateSort:(e=this._spec.funnel)===null||e===void 0?void 0:e.stateSort,noSeparateStyle:!0},{setCustomizedShape:(i=this._spec.funnel)===null||i===void 0?void 0:i.customShape,morph:Mr(this._spec,this._funnelMarkName),morphElementKey:this._seriesField}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},os.mark.transform),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:(s=this._theme)===null||s===void 0?void 0:s.transform,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId(),stateSort:(r=this._spec.transform)===null||r===void 0?void 0:r.stateSort,noSeparateStyle:!0},{setCustomizedShape:(a=this._spec.transform)===null||a===void 0?void 0:a.customShape})),(l=(o=this._spec)===null||o===void 0?void 0:o.outerLabel)===null||l===void 0?void 0:l.visible){const{line:g}=(h=this._spec.outerLabel)!==null&&h!==void 0?h:{},{line:p}=(c=(d=this._theme)===null||d===void 0?void 0:d.outerLabel)!==null&&c!==void 0?c:{};this._funnelOuterLabelMark.label=this._createMark(os.mark.outerLabel,{themeSpec:(u=this._theme)===null||u===void 0?void 0:u.outerLabel,markSpec:this._spec.outerLabel,skipBeforeLayouted:!0,noSeparateStyle:!0}),this._funnelOuterLabelMark.line=this._createMark(os.mark.outerLabelLine,{themeSpec:p,markSpec:g,depend:[this._funnelOuterLabelMark.label],noSeparateStyle:!0})}}initTooltip(){this._tooltipHelper=new Het(this),this._funnelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._funnelMark),this._funnelTransformMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._funnelTransformMark)}getDimensionField(){return this._seriesField?[this._seriesField]:[]}getMeasureField(){return[this._valueField]}getGroupFields(){return null}initMarkStyle(){const t=this._funnelMark;t&&this.setMarkStyle(t,{points:r=>this.getPoints(r),visible:r=>C(r[this._valueField]),fill:this.getColorAttribute()},"normal",Z.Series);const e=this._funnelTransformMark;e&&this.setMarkStyle(e,{points:r=>this.getPoints(r)},"normal",Z.Series);const i=this._funnelOuterLabelMark.label;i&&this.setMarkStyle(i,{text:r=>{const a=`${r[this.getCategoryField()]}`;return N(this._spec.outerLabel.formatMethod)?this._spec.outerLabel.formatMethod(a,r):a},x:r=>this._computeOuterLabelPosition(r).x,y:r=>this._computeOuterLabelPosition(r).y,textAlign:r=>this._computeOuterLabelPosition(r).align,textBaseline:r=>this._computeOuterLabelPosition(r).textBaseline,maxLineWidth:r=>this._computeOuterLabelLimit(r)},"normal",Z.Series);const s=this._funnelOuterLabelMark.line;s&&i&&this.setMarkStyle(s,{x:r=>this._computeOuterLabelLinePosition(r).x1,y:r=>this._computeOuterLabelLinePosition(r).y1,x1:r=>this._computeOuterLabelLinePosition(r).x2,y1:r=>this._computeOuterLabelLinePosition(r).y2},"normal",Z.Series)}initLabelMarkStyle(t){var e,i;if(!t)return;const s=t.getTarget(),r=t.getComponent();s===this._funnelMark?(this._labelMark=t,this.setMarkStyle(t,{text:a=>`${a[this.getCategoryField()]} ${a[this.getValueField()]}`,x:a=>this._computeLabelPosition(a).x,y:a=>this._computeLabelPosition(a).y,maxLineWidth:a=>this._computeLabelLimit(a,this._spec.label),stroke:this.getColorAttribute()},"normal",Z.Series),!((e=this._funnelOuterLabelMark)===null||e===void 0)&&e.label&&this._funnelOuterLabelMark.label.setDepend(r),!((i=this._funnelOuterLabelMark)===null||i===void 0)&&i.line&&this._funnelOuterLabelMark.line.setDepend(...this._funnelOuterLabelMark.line.getDepend())):this._funnelTransformMark&&s===this._funnelTransformMark&&(this._transformLabelMark=t,this.setMarkStyle(t,{text:a=>`${(100*Tg(_b).bind(this)(a)).toFixed(1)}%`,x:a=>this._computeLabelPosition(a).x,y:a=>this._computeLabelPosition(a).y,maxLineWidth:a=>this._computeLabelLimit(a,this._spec.transformLabel)},"normal",Z.Series))}initAnimation(){var t,e,i,s,r,a,o;const l=(i=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset)!==null&&i!==void 0?i:"clipIn";l==="clipIn"&&this._rootMark&&this._rootMark.setAnimationConfig(It((s=D.getAnimationInKey("cartesianGroupClip"))===null||s===void 0?void 0:s({direction:()=>this._isHorizontal()?"x":"y",width:()=>{const h=this.getRootMark().getProduct();if(h){const{x1:d,x2:c}=h.getBounds();return Math.max(d,c)}return this.getLayoutRect().width},height:()=>{const h=this.getRootMark().getProduct();if(h){const{y1:d,y2:c}=h.getBounds();return Math.max(d,c)}return this.getLayoutRect().height},orient:()=>this._isReverse()?"negative":"positive"},l),Nt("group",this._spec,this._markAttributeContext))),[(r=this._funnelOuterLabelMark)===null||r===void 0?void 0:r.label].forEach(h=>{h&&h.setAnimationConfig(It(D.getAnimationInKey("fadeInOut")(),Nt(h.name,this._spec,this._markAttributeContext)))}),[this._funnelMark,this._funnelTransformMark].forEach(h=>{h&&h.setAnimationConfig(It(D.getAnimationInKey("funnel")({},l),Nt(h.name,this._spec,this._markAttributeContext)))}),!((a=this._funnelOuterLabelMark)===null||a===void 0)&&a.line&&this._funnelOuterLabelMark.line.setAnimationConfig(It((o=D.getAnimationInKey("fadeInOut"))===null||o===void 0?void 0:o(),Nt("outerLabelLine",this._spec,this._markAttributeContext)))}initGroups(){}getStackGroupFields(){return[]}getStackValueField(){return null}initEvent(){var t;super.initEvent(),(t=this._viewDataTransform.getDataView())===null||t===void 0||t.target.addListener("change",e=>{this._viewDataTransform.updateData()})}getPoints(t){const e=this.isTransformLevel(t),i=this._getMainAxisLength(e)/2;let s,r;e?(s=this._shape==="rect"?this._getSecondaryAxisLength(t[fC])/2:this._getSecondaryAxisLength(t[cg])/2,r=this._getSecondaryAxisLength(t[cg])/2):(s=this._getSecondaryAxisLength(t[cg])/2,r=this._shape==="rect"?s:this._getSecondaryAxisLength(t[mC])/2);const{x:a,y:o}=this._getPositionByData(t),l=this._getPolygonPoints([a,o],s,r,s,r,i);return this._funnelAlign!=="center"&&this._adjustPoints(l),l}isTransformLevel(t){return!!(t!=null&&t[vC])}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this),this._markAttributeContext.getPoints=this.getPoints.bind(this),this._markAttributeContext.isTransformLevel=this.isTransformLevel.bind(this)}valueToPosition(t){var e,i,s;const r=(s=(i=(e=this.getViewData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.find)===null||s===void 0?void 0:s.call(i,a=>a[this._categoryField]===t);return C(r)?this._getPolygonCenter(this.getPoints(r)):null}dataToPosition(t,e){return e&&!this.isDatumInViewData(t)?null:this.valueToPosition(t[this._categoryField])}dataToPositionX(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.x}dataToPositionY(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.y}dataToPositionZ(t){return 0}_getMainAxisLength(t=!1){var e;const i=this.getViewData().latestData.length,s=this._isHorizontal()?this.getLayoutRect().width:this.getLayoutRect().height,r=!!this._spec.isTransform,a=r?0:(e=this._spec.gap)!==null&&e!==void 0?e:0,o=r?Math.max(0,i-1):0,l=this._spec.heightRatio||.5,h=(s-a*Math.max(0,i-1))/(i+l*o);return t?r?h*l:0:h}_getSecondaryAxisLength(t){const e=Number.isNaN(t)||!Number.isFinite(t)?0:t,i=this._computeMaxSize(),s=this._computeMinSize();return s+(i-s)*e}_getPositionByData(t){var e;const i=(e=this.getViewData().latestData)===null||e===void 0?void 0:e.findIndex(u=>u[this._categoryField]===t[this._categoryField]&&u[ds]===t[ds]);if(!C(i)||i<0)return{};const s=this.isTransformLevel(t),r=this._isHorizontal(),a=r?this.getLayoutRect().height:this.getLayoutRect().width,o=r?this.getLayoutRect().width:this.getLayoutRect().height,l=a/2;let h=0;const d=this._getMainAxisLength(),c=this._getMainAxisLength(!0);return h+=i*(d+c),h+=s?-c/2:d/2,!this._spec.isTransform&&this._spec.gap&&(h+=this._spec.gap*i),this._isReverse()&&(h=o-h),this._isHorizontal()?{x:h,y:l}:{x:l,y:h}}_getPolygonPoints(t,e,i,s,r,a){const o=t[0],l=t[1];switch(this._funnelOrient){case"left":return[{x:o-a,y:l+e},{x:o-a,y:l-s},{x:o+a,y:l-r},{x:o+a,y:l+i}];case"right":return[{x:o+a,y:l-s},{x:o+a,y:l+s},{x:o-a,y:l+i},{x:o-a,y:l-i}];case"bottom":return[{x:o+e,y:l+a},{x:o-s,y:l+a},{x:o-r,y:l-a},{x:o+i,y:l-a}];default:return[{x:o-e,y:l-a},{x:o+s,y:l-a},{x:o+r,y:l+a},{x:o-i,y:l+a}]}}_getPolygonCenter(t){if(this._isHorizontal()){const s=(t[0].x+t[3].x)/2,r=(t[0].y+t[3].y)/2;return{x:(s+(t[1].x+t[2].x)/2)/2,y:(r+(t[1].y+t[2].y)/2)/2}}const e=(t[0].x+t[3].x)/2,i=(t[0].y+t[3].y)/2;return{x:(e+(t[1].x+t[2].x)/2)/2,y:(i+(t[1].y+t[2].y)/2)/2}}_adjustPoints(t){let e,i,s;return this._isHorizontal()?(s="y",this._funnelOrient==="left"?(e=this._funnelAlign==="bottom"?-t[1].y:t[1].y,i=this._funnelAlign==="bottom"?-t[2].y:t[2].y):(e=this._funnelAlign==="bottom"?-t[0].y:t[0].y,i=this._funnelAlign==="bottom"?-t[3].y:t[3].y)):(s="x",this._funnelOrient==="top"?(e=this._funnelAlign==="left"?t[0].x:-t[0].x,i=this._funnelAlign==="left"?t[3].x:-t[3].x):(e=this._funnelAlign==="left"?t[1].x:-t[1].x,i=this._funnelAlign==="left"?t[2].x:-t[2].x)),t[0][s]-=e,t[1][s]-=e,t[2][s]-=i,t[3][s]-=i,t}_computeLabelPosition(t){const e=this.getPoints(t);return this._getPolygonCenter(e)}_computeLabelLimit(t,e){const i=e==null?void 0:e.limit;if(J(i))return i;const s=this.getPoints(t);return i==="shapeSize"?this._isHorizontal()?Math.abs(s[3].x-s[0].x):(Math.abs(s[0].x-s[1].x)+Math.abs(s[2].x-s[3].x))/2:this._isHorizontal()?Math.abs(s[3].x-s[0].x):void 0}_computeOuterLabelPosition(t){var e,i;let s,r,a=(e=this._spec.outerLabel)===null||e===void 0?void 0:e.position,o="center",l="middle";if(a=this._isHorizontal()?["top","bottom"].includes(a)?a:this._funnelAlign==="bottom"?"top":"bottom":["left","right"].includes(a)?a:this._funnelAlign==="left"?"right":"left",((i=this._spec.outerLabel)===null||i===void 0?void 0:i.alignLabel)!==!1)({x:s,y:r}=this._getPositionByData(t)),a==="left"?(s=0,o="left"):a==="right"?(s=this.getLayoutRect().width,o="right"):a==="top"?(r=0,l="top"):a==="bottom"&&(r=this.getLayoutRect().height,l="bottom");else{const{x2:h,y2:d}=this._computeOuterLabelLinePosition(t);s=h,r=d,a==="left"?(s-=Wa,o="right"):a==="right"?(s+=Wa,o="left"):a==="top"?(r-=Wa,l="bottom"):a==="bottom"&&(r+=Wa,l="top")}return{x:s,y:r,align:o,textBaseline:l}}_computeOuterLabelLimit(t){var e,i,s,r,a,o,l;if(this._isHorizontal())return this._getMainAxisLength(this.isTransformLevel(t));const h=this.getPoints(t),d=(Math.abs(h[0].x-h[1].x)+Math.abs(h[2].x-h[3].x))/2,c=this.getCategoryField(),u=(a=(r=(s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct())===null||s===void 0?void 0:s.getGroupGraphicItem())===null||r===void 0?void 0:r.find(({attribute:f,type:m})=>{var v;return m==="text"&&((v=f.data)===null||v===void 0?void 0:v[c])===t[c]},!0))===null||a===void 0?void 0:a.AABBBounds,g=u?u.x2-u.x1:0,p=this._funnelOuterLabelMark.line?this._minLabelLineWidth:0;let _=this.getLayoutRect().width-Math.max(d,g);return this._funnelAlign==="center"&&(_/=2),_-p-((l=(o=this._spec.outerLabel)===null||o===void 0?void 0:o.spaceWidth)!==null&&l!==void 0?l:Wa)}_computeOuterLabelLinePosition(t){var e,i,s,r,a,o,l,h,d,c,u,g,p;const _=this.getCategoryField(),f=(a=(r=(s=(i=(e=this._funnelOuterLabelMark)===null||e===void 0?void 0:e.label)===null||i===void 0?void 0:i.getProduct())===null||s===void 0?void 0:s.elements)===null||r===void 0?void 0:r.find(M=>{var R;return((R=M.data[0])===null||R===void 0?void 0:R[_])===t[_]}))===null||a===void 0?void 0:a.getBounds(),m=(c=(d=(h=(l=(o=this._labelMark)===null||o===void 0?void 0:o.getComponent())===null||l===void 0?void 0:l.getProduct())===null||h===void 0?void 0:h.getGroupGraphicItem())===null||d===void 0?void 0:d.find(({attribute:M,type:R})=>{var O;return R==="text"&&((O=M.data)===null||O===void 0?void 0:O[_])===t[_]},!0))===null||c===void 0?void 0:c.AABBBounds,v=(u=this._spec.outerLabel)!==null&&u!==void 0?u:{};let y,b,x,S;if(this._isHorizontal()){const M=(g=v.spaceWidth)!==null&&g!==void 0?g:Wa,R=this.getPoints(t),O=(Math.abs(R[0].y-R[1].y)+Math.abs(R[2].y-R[3].y))/2;return this._spec.outerLabel.position==="top"||this._funnelAlign==="bottom"?(x=this._getPolygonCenter(R).y-O/2-M,S=v.alignLabel!==!1?(f==null?void 0:f.y2)+M:x-M,y=this._getPolygonCenter(R).x,x-S{jI(),dn(),wh(),D.registerSeries(os.type,os),D.registerAnimation("funnel",(n,t)=>Object.assign({appear:t==="clipIn"?void 0:{type:"fadeIn"}},mm)),kZ(),Tr()};class Xc extends zI{constructor(){super(...arguments),this.type=Xc.type}}Xc.type="pyramid3d";const HI=()=>{D.registerMark(Xc.type,Xc),U6(),LL()};class VI extends gS{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel3d"),t.isTransform&&this._addMarkLabelSpec(t,"transform3d","transformLabel")}}class Bs extends os{constructor(){super(...arguments),this.type=Y.funnel3d,this._funnelMarkName="funnel3d",this._funnelMarkType="pyramid3d",this._transformMarkName="transform3d",this._transformMarkType="pyramid3d",this.transformerConstructor=VI}initMark(){var t,e,i,s,r,a,o,l;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},Bs.mark.funnel3d),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:(t=this._theme)===null||t===void 0?void 0:t.funnel3d,key:this._seriesField,isSeriesMark:!0},{support3d:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},Bs.mark.transform3d),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:(e=this._theme)===null||e===void 0?void 0:e.transform3d,key:this._seriesField,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId()})),(s=(i=this._spec)===null||i===void 0?void 0:i.outerLabel)===null||s===void 0?void 0:s.visible){const{line:h}=(r=this._spec.outerLabel)!==null&&r!==void 0?r:{},{line:d}=(o=(a=this._theme)===null||a===void 0?void 0:a.outerLabel)!==null&&o!==void 0?o:{};this._funnelOuterLabelMark.label=this._createMark(Bs.mark.outerLabel,{themeSpec:(l=this._theme)===null||l===void 0?void 0:l.outerLabel,key:this._seriesField,markSpec:this._spec.outerLabel}),this._funnelOuterLabelMark.line=this._createMark(Bs.mark.outerLabelLine,{themeSpec:d,key:this._seriesField,markSpec:h,depend:[this._funnelOuterLabelMark.label]})}}initMarkStyle(){super.initMarkStyle();const t=this._funnelMark;t&&this.setMarkStyle(t,{z:e=>{if(this._isHorizontal())return 0;const i=this.getPoints(e),s=Math.max(Math.abs(i[0].x-i[1].x),Math.abs(i[2].x-i[3].x));return(this._computeMaxSize()-s)/2}},"normal",Z.Series)}initLabelMarkStyle(t){var e,i;super.initLabelMarkStyle(t),this.setMarkStyle(t,{z:s=>{if(this._isHorizontal())return 0;const r=this.getPoints(s),a=Math.max(Math.abs(r[0].x-r[1].x),Math.abs(r[2].x-r[3].x));return(this._computeMaxSize()-a)/2}},"normal",Z.Series),this._labelMark=t,!((e=this._funnelOuterLabelMark)===null||e===void 0)&&e.label&&this._funnelOuterLabelMark.label.setDepend(t.getComponent()),!((i=this._funnelOuterLabelMark)===null||i===void 0)&&i.line&&this._funnelOuterLabelMark.line.setDepend(...this._funnelOuterLabelMark.line.getDepend())}}Bs.type=Y.funnel3d,Bs.mark=Wet,Bs.transformerConstructor=VI;const Net=()=>{HI(),dn(),wh(),D.registerSeries(Bs.type,Bs)},j_=(n,t)=>{const e=(n-t[0])/(t[1]-t[0]||1);return Math.max(0,Math.min(1,e))},H_=n=>{const t=n.mark.elements.filter(i=>i.diffState===Zt.update),e=Ze(t.map(i=>{var s;return(s=i==null?void 0:i.data)===null||s===void 0?void 0:s[0].depth}));return t.filter(i=>{var s;return((s=i==null?void 0:i.data)===null||s===void 0?void 0:s[0].depth)===e})},yC=(n,t,e)=>ht(n)?[t,e]:[Ze(n.map(i=>1*i.getGraphicAttribute("startAngle",!1))),Fe(n.map(i=>1*i.getGraphicAttribute("endAngle",!1)))],Uet=n=>({channel:{startAngle:{from:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=H_(e),a=yC(r,i,s);return j_(t.startAngle,a)*(s-i)+i},to:t=>t.startAngle},endAngle:{from:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=H_(e),a=yC(r,i,s);return j_(t.endAngle,a)*(s-i)+i},to:t=>t.endAngle},outerRadius:{from:t=>t.innerRadius,to:t=>t.outerRadius},innerRadius:{from:t=>t.innerRadius,to:t=>t.innerRadius}}}),bC=n=>[Ze(n.map(t=>1*t.getGraphicAttribute("startAngle",!1))),Fe(n.map(t=>1*t.getGraphicAttribute("endAngle",!1)))],xC=n=>({channel:{startAngle:{from:(t,e)=>e.getGraphicAttribute("startAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=H_(e),a=bC(r);return j_(e.getGraphicAttribute("startAngle",!1),a)*(s-i)+i}},endAngle:{from:(t,e)=>e.getGraphicAttribute("endAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=H_(e),a=bC(r);return j_(e.getGraphicAttribute("endAngle",!1),a)*(s-i)+i}},outerRadius:{from:(t,e)=>e.getGraphicAttribute("outerRadius",!1),to:()=>n.animationInfo().innerRadius},innerRadius:{from:(t,e)=>e.getGraphicAttribute("innerRadius",!1),to:()=>n.animationInfo().innerRadius}}}),$et=(n,t)=>{switch(t){case"fadeIn":return{type:"fadeIn"};case"growAngle":return{type:"growAngleIn"};default:return{type:"growRadiusIn"}}},Yet=()=>{D.registerAnimation("sunburst",(n,t)=>({appear:$et(n,t),enter:Uet(n),exit:xC(n),disappear:xC(n)}))},pS=(n,t=[],e)=>{const i=(e==null?void 0:e.maxDepth)>=0;return n.forEach(s=>{(!i||s.depth<=e.maxDepth)&&(t.push(e!=null&&e.callback?e.callback(s):s),s.children&&(i&&s.depth===e.maxDepth?(s.children=null,s.isLeaf=!0):pS(s.children,t,e)))}),t};function Xet(n,t,e,i,s){const r=n.children,a=r.length;let o=0;const l=new Array(a+1);l[0]=0;for(let d=0;d{if(d>=c-1){const A=r[d];return A.x0=g,A.y0=p,A.x1=_,void(A.y1=f)}const m=l[d],v=u/2+m;let y=d+1,b=c-1;for(;y>>1;l[A]f-p){const A=u?(g*S+_*x)/u:_;h(d,y,x,g,p,A,f),h(y,c,S,A,p,_,f)}else{const A=u?(p*S+f*x)/u:f;h(d,y,x,g,p,_,A),h(y,c,S,g,A,_,f)}};h(0,a,n.value,t,e,i,s)}function Pm(n,t,e,i,s,r={x0:"x0",x1:"x1",y0:"y0",y1:"y1"}){const a=n.children;let o,l=-1;const h=a.length,d=n.value&&(i-t)/n.value;for(;++lm&&(m=h),x=_*_*b,v=Math.max(m/x,x/f),v>y){_-=h;break}y=v}l=Object.assign({},t,{value:_,children:o.slice(d,c)}),a.push(l),g(t,e,i,s,r)=>{qet(n,t,e,i,s,r)},Em=(n,t,e=0,i=-1,s,r,a="value")=>{let o=0,l=i??-1,h=e;return n.forEach((d,c)=>{var u,g;const p={flattenIndex:++l,key:r?r(d):`${(u=s==null?void 0:s.key)!==null&&u!==void 0?u:""}-${c}`,maxDepth:-1,depth:e,index:c,value:d[a],isLeaf:!0,datum:s?s.datum.concat(d):[d],parentKey:s==null?void 0:s.key};if(!((g=d.children)===null||g===void 0)&&g.length){p.children=[],p.isLeaf=!1;const _=Em(d.children,p.children,e+1,l,p,r,a);p.value=P(d[a])?_.sum:Math.max(_.sum,$a(d[a])),l=_.flattenIndex,h=Math.max(_.maxDepth,h)}else p.isLeaf=!0,p.value=$a(d[a]);o+=Math.abs(p.value),t.push(p)}),{sum:o,maxDepth:h,flattenIndex:l}},ol=(n,t,e,i)=>{let s=i;return n.forEach((r,a)=>{var o;s=t(r,a,e,s),!((o=r.children)===null||o===void 0)&&o.length&&(s=ol(r.children,t,r,s))}),i},Rg=(n,t,e,i)=>{let s=i;return n.forEach((r,a)=>{var o;!((o=r.children)===null||o===void 0)&&o.length&&(s=Rg(r.children,t,r,s)),s=t(r,a,e,s)}),s},SC={binary:Xet,dice:Pm,slice:_S,sliceDice:Ket};class Rm{constructor(t){var e;this._filterByArea=(r,a)=>{var o;const l=this._getMinAreaByDepth(r.depth);if(l>0&&r.value*athis._filterByArea(d,a));h.length?h.length!==r.children.length&&(r.children=h):(r.isLeaf=!0,r.children=null)}return!0},this._getMinAreaByDepth=r=>{var a;return r<0?0:(a=U(this.options.minVisibleArea)?this.options.minVisibleArea[r]:this.options.minVisibleArea)!==null&&a!==void 0?a:0},this._getGapWidthByDepth=r=>{var a;return r<0?0:(a=U(this.options.gapWidth)?this.options.gapWidth[r]:this.options.gapWidth)!==null&&a!==void 0?a:0},this._getPaddingByDepth=r=>{var a;return r<0?0:(a=U(this.options.padding)?this.options.padding[r]:this.options.padding)!==null&&a!==void 0?a:0},this._getLabelPaddingByDepth=r=>{var a;return r<0?0:(a=U(this.options.labelPadding)?this.options.labelPadding[r]:this.options.labelPadding)!==null&&a!==void 0?a:0},this._layoutNode=r=>{const a=this._getGapWidthByDepth(r.depth);let o=r.x0,l=r.y0,h=r.x1,d=r.y1;if(r.maxDepth=this._maxDepth,a>0&&(o+=a/2,h-=a/2,l+=a/2,d-=a/2,o>h&&(o=(o+h)/2,h=o),l>d&&(l=(l+d)/2,d=l),r.x0=o,r.x1=h,r.y0=l,r.y1=d),r.children){const c=this._getLabelPaddingByDepth(r.depth),u=this._getPaddingByDepth(r.depth);u>0&&u0&&(this.options.labelPosition==="top"&&l+cl?(r.labelRect={x0:o,y0:d-c,x1:h,y1:d},d-=c):this.options.labelPosition==="left"&&o+co&&(r.labelRect={x0:h-c,y0:l,x1:h,y1:d},h-=c));const g=this._getGapWidthByDepth(r.depth+1);g>0&&(o-=g/2,h+=g/2,l-=g/2,d+=g/2),this._splitNode(r,o,l,h,d)}},this.options=Object.assign({},Rm.defaultOpionts,t);const i=this.options.nodeKey,s=N(i)?i:i?Ds(i):null;this._getNodeKey=s,this._splitNode=this.options.splitType==="squarify"?Zet(this.options.aspectRatio):(e=SC[this.options.splitType])!==null&&e!==void 0?e:SC.binary,this._maxDepth=-1}layout(t,e){var i;if(!t||!t.length)return[];const s="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)},r=[],a=Em(t,r,0,-1,null,this._getNodeKey,this.options.valueField);if(this._maxDepth=a.maxDepth,a.sum<=0)return[];const o={flattenIndex:-1,maxDepth:-1,key:"-1",depth:-1,index:-1,value:a.sum,datum:null,x0:s.x0,x1:s.x1,y0:s.y0,y1:s.y1,children:r},l=s.width*s.height/a.sum;return this._filterByArea(o,l),this._layout(o),(i=o.children)!==null&&i!==void 0?i:[]}_filterChildren(t){const e=this.options.maxDepth;if(J(e)&&e>=0&&t.depth>=e)return!1;const i=this.options.minChildrenVisibleArea;if(J(i)&&Math.abs((t.x1-t.x0)*(t.y1-t.y0)){var s;!((s=i==null?void 0:i.children)===null||s===void 0)&&s.length?this._layout(i):this._layoutNode(i)})}}Rm.defaultOpionts={aspectRatio:(1+Math.sqrt(5))/2,gapWidth:0,labelPadding:0,labelPosition:"top",splitType:"binary",minVisibleArea:10};const Jet=(n,t)=>{const e=new Rm(n).layout(t,"width"in n?{width:n.width,height:n.height}:{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1});if(n.flatten){const i=[];return pS(e,i,{maxDepth:n==null?void 0:n.maxDepth}),i}return e},Qet={x0:"startAngle",x1:"endAngle",y0:"innerRadius",y1:"outerRadius"};class Kc{constructor(t){this._layoutNode=s=>{if(s.maxDepth=this._maxDepth,s.children){const r=this._parsedInnerRadius[s.depth+1],a=this._parsedOutterRadius[s.depth+1];Pm(s,s.startAngle,Math.min(r,a),s.endAngle,Math.max(r,a),Qet);const o=U(this.options.label)?this.options.label[s.depth+1]:this.options.label;s.children.forEach(l=>{if(l.x=this._parsedCenter[0],l.y=this._parsedCenter[1],o)return this._layoutLabel(l,Me(o)?{align:"center",rotate:"radial"}:o)})}},this.options=t?Object.assign({},Kc.defaultOpionts,t):Object.assign({},Kc.defaultOpionts);const e=this.options.nodeKey,i=N(e)?e:e?Ds(e):null;this._getNodeKey=i,this._maxDepth=-1}_parseRadius(t,e){const i=t.x0+Qn(this.options.center[0],t.width),s=t.y0+Qn(this.options.center[1],t.height),r=Math.min(t.width/2,t.height/2),a=this.options.innerRadius,o=this.options.outerRadius,l=U(a),h=l?a.map(p=>Qn(p,r)):Qn(a,r),d=U(o),c=this.options.gapRadius,u=d?o.map(p=>Qn(p,r)):Qn(o,r),g=cP(0,e+1);if(l)this._parsedInnerRadius=g.map((p,_)=>{const f=h[_];return P(f)?r:f}),this._parsedOutterRadius=g.map((p,_)=>{var f,m;return d?(f=u[_])!==null&&f!==void 0?f:r:_P(u[_])?r:u[_]),this._parsedInnerRadius=g.map((p,_)=>{var f;return _===0?h:this._parsedOutterRadius[_-1]-(U(c)?(f=c[_])!==null&&f!==void 0?f:0:c)});else{const p=Qn(a,r),_=(u-p)/(e+1);this._parsedInnerRadius=g.map((f,m)=>p+m*_),this._parsedOutterRadius=g.map((f,m)=>{var v;return this._parsedInnerRadius[m]+_-(U(c)?(v=c[m])!==null&&v!==void 0?v:0:c)})}this._parsedCenter=[i,s],this._maxRadius=r}layout(t,e){const i="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};if(!t||!t.length)return[];const s=[],r=Em(t,s,0,-1,null,this._getNodeKey);return this._parseRadius(i,r.maxDepth),this._maxDepth=r.maxDepth,this._layout(s,{flattenIndex:-1,maxDepth:-1,key:"-1",depth:-1,index:-1,value:r.sum,datum:null,children:s,startAngle:this.options.startAngle,endAngle:this.options.endAngle}),s}_layout(t,e){this._layoutNode(e),t.forEach(i=>{var s;!((s=i==null?void 0:i.children)===null||s===void 0)&&s.length?this._layout(i.children,i):this._layoutNode(i)})}_layoutLabel(t,e){var i;const s=(t.startAngle+t.endAngle)/2,r=(e.align==="start"?t.innerRadius:e.align==="end"?t.outerRadius:(t.innerRadius+t.outerRadius)/2)+((i=e.offset)!==null&&i!==void 0?i:0),a=ue({x:this._parsedCenter[0],y:this._parsedCenter[1]},r,s);if(t.label={x:a.x,y:a.y,textBaseline:"middle"},e.rotate==="tangential")t.label.angle=s-Math.PI/2,t.label.textAlign="center",t.label.maxLineWidth=Math.abs(t.endAngle-t.startAngle)*r;else{const o=s%(2*Math.PI),l=o<0?o+2*Math.PI:o;l>Math.PI/2&&l<1.5*Math.PI?(t.label.angle=l+Math.PI,t.label.textAlign=e.align==="start"?"end":e.align==="end"?"start":"center"):(t.label.angle=l,t.label.textAlign=e.align),t.label.maxLineWidth=t.isLeaf?void 0:Math.abs(t.outerRadius-t.innerRadius)}}}Kc.defaultOpionts={startAngle:Math.PI/2,endAngle:-3*Math.PI/2,center:["50%","50%"],gapRadius:0,innerRadius:0,outerRadius:"70%"};const tit=1664525,eit=1013904223,AC=4294967296;function iit(n=1){let t=n;return()=>(t=(tit*t+eit)%AC)/AC}function nit(n,t){let e=0;const i=dP(Array.from(n),t),s=i.length;let r,a,o=[];for(;e0&&e*e>i*i+s*s}function z0(n,t){for(let e=0;e1e-6?(M+Math.sqrt(M*M-4*w*R))/(2*w):R/M);return{x:i+S+A*O,y:s+k+T*O,radius:O}}function kC(n,t,e){const i=n.x-t.x;let s,r;const a=n.y-t.y;let o,l;const h=i*i+a*a;h?(r=t.radius+e.radius,r*=r,l=n.radius+e.radius,l*=l,r>l?(s=(h+l-r)/(2*h),o=Math.sqrt(Math.max(0,l/h-s*s)),e.x=n.x-s*i-o*a,e.y=n.y-s*a+o*i):(s=(h+r-l)/(2*h),o=Math.sqrt(Math.max(0,r/h-s*s)),e.x=t.x+s*i-o*a,e.y=t.y+s*a+o*i)):(e.x=t.x+e.radius,e.y=t.y)}function TC(n,t){const e=n.radius+t.radius-1e-6,i=t.x-n.x,s=t.y-n.y;return e>0&&e*e>i*i+s*s}function MC(n){const t=n._,e=n.next._,i=t.radius+e.radius,s=(t.x*e.radius+e.x*t.radius)/i,r=(t.y*e.radius+e.y*t.radius)/i;return s*s+r*r}function gg(n){return{_:n,next:null,prev:null}}function oit(n,t){const e=(n=j(n)).length;if(!e)return 0;let i=n[0];if(i.x=0,i.y=0,e===1)return i.radius;const s=n[1];if(i.x=-s.radius,s.x=i.radius,s.y=0,e===2)return i.radius+s.radius;let r=n[2];kC(s,i,r);let a,o,l,h,d,c,u,g=gg(i),p=gg(s),_=gg(r);g.next=p,_.prev=p,p.next=_,g.prev=_,_.next=g,p.prev=g;for(let m=3;mt.padding:U(t==null?void 0:t.padding)?s=>{var r;return(r=t.padding[s.depth+1])!==null&&r!==void 0?r:0}:()=>0,this._maxDepth=-1}layout(t,e){var i;const s="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};if(!t||!t.length)return[];const r=[],a=Em(t,r,0,-1,null,this._getNodeKey);this._maxDepth=a.maxDepth;const o=iit(),l={flattenIndex:-1,maxDepth:-1,key:"root",depth:-1,index:-1,value:a.sum,datum:null,children:r,x:s.x0+s.width/2,y:s.y0+s.height/2},{nodeSort:h,setRadius:d,padding:c,includeRoot:u}=(i=this.options)!==null&&i!==void 0?i:{};if(h!==!1){const g=N(h)?this.options.nodeKey:qc.defaultOpionts.nodeSort;ol([l],p=>{p.children&&p.children.length&&p.children.sort(g)})}if(d)ol([l],wC(d)),Rg([l],j0(this._getPadding,.5,o)),ol([l],CC(1,this._maxDepth));else{const g=Math.min(s.width,s.height);ol([l],wC(qc.defaultOpionts.setRadius)),Rg([l],j0(v5,1,o)),c&&Rg([l],j0(this._getPadding,l.radius/g,o)),ol([l],CC(g/(2*l.radius),this._maxDepth))}return u?[l]:r}}qc.defaultOpionts={setRadius:n=>Math.sqrt(n.value),padding:0,nodeSort:(n,t)=>t.value-n.value};const lit=()=>{G.registerTransform("treemap",{transform:Jet,markPhase:"beforeJoin"},!0)},wu=(n,t={})=>{if(!n)return[];const e=[];return pS(n,e,t),e},hit=(n,t)=>{if(!n)return n;const e=t(),{width:i,height:s}=e;return new Kc(e).layout(n,{width:i,height:s})},dit=10;class cit extends Hi{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}var qr;(function(n){n.DrillDown="drillDown",n.DrillUp="drillUp"})(qr||(qr={}));const uit=(n,t)=>{const e=t.info(),i=t.keyField(),s=e==null?void 0:e.key;if(P(s))return n;if(e.type===qr.DrillDown){const r=SB(n,s,i,"children");return j(r)}if(e.type===qr.DrillUp){const r=AB(n,s,i,"children");if(r)return j(r)}return n};class fS{_getDrillTriggerEvent(t){var e;const{mode:i}=this._drillParams;return(e=qs(i))===null||e===void 0?void 0:e[t]}_hideTooltip(){const t=this.getChart().getComponentsByType(X.tooltip)[0];t&&t.hideTooltip()}initDrillable(t){this._drillParams=t}initDrillableData(t){const{getRawData:e}=this._drillParams;vt(t,"drillFilter",uit),e().transform({type:"drillFilter",options:{info:()=>this._drillInfo,keyField:()=>this._drillParams.drillField()}})}bindDrillEvent(){const{event:t,getRawData:e,drillField:i}=this._drillParams,s=i();this._getDrillTriggerEvent("start")&&t.on(this._getDrillTriggerEvent("start"),r=>{var a,o,l;if(P(r.datum)||P((a=r.datum)===null||a===void 0?void 0:a[s]))return void this.drillUp();this._hideTooltip();const h=r.datum[s],d=(l=(o=this._drillInfo)===null||o===void 0?void 0:o.path)!==null&&l!==void 0?l:[],c=t7(e().rawData,h,s,"children");d[d.length-1]===c[c.length-1]?this.drillUp():this.drillDown(c)})}drillDown(t=[]){const{getRawData:e,event:i}=this._drillParams;if(!U(t)||ht(t))return t;const s=t[t.length-1];return this._drillInfo={key:s,path:t,type:qr.DrillDown},e().reRunAllTransform(),i.emit(lt.drill,{value:{path:t,type:qr.DrillDown},model:this}),t}drillUp(){var t,e;const{getRawData:i,event:s}=this._drillParams,r=(e=(t=this._drillInfo)===null||t===void 0?void 0:t.path)!==null&&e!==void 0?e:[];if(!U(r)||ht(r))return r;const a=r.pop();return this._drillInfo={key:a,path:r,type:qr.DrillUp},i().reRunAllTransform(),s.emit(lt.drill,{value:{path:r,type:qr.DrillUp},model:this}),r}}const git=Object.assign(Object.assign({},we),{sunburst:{name:"sunburst",type:"arc"}});class ga extends Tu{constructor(){super(...arguments),this.type=Y.sunburst}setCategoryField(t){return this._categoryField=t,this._categoryField}getCategoryField(){return this._categoryField}setValueField(t){return this._valueField=t,this._valueField}getValueField(){return this._valueField}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:cr),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e;return(e=this._spec.drillField)!==null&&e!==void 0?e:ds},getRawData:()=>this.getRawData()}),this._startAngle=te(this._spec.startAngle),this._endAngle=te(this._spec.endAngle),this._centerX=this._spec.centerX,this._centerY=this._spec.centerY,this._offsetX=this._spec.offsetX,this._offsetY=this._spec.offsetY,this.__innerRadius=this._spec.innerRadius,this.__outerRadius=this._spec.outerRadius,this._gap=this._spec.gap,this._labelLayout=this._spec.labelLayout,this._sunburst=this._spec.sunburst,this._label=this._spec.label,this._labelAutoVisible=this._spec.labelAutoVisible}initData(){super.initData();const t=this.getRawData();t&&(this._spec.drill&&this.initDrillableData(this._dataSet),vt(this._dataSet,"sunburstLayout",hit),vt(this._dataSet,"flatten",wu),t.transform({type:"sunburstLayout",options:()=>{const{innerRadius:e,outerRadius:i,gap:s,label:r}=this._computeLevel();return{nodeKey:this._categoryField,width:this.getLayoutRect().width,height:this.getLayoutRect().height,center:[C(this._centerX)?this._centerX:this.getLayoutRect().width/2,C(this._centerY)?this._centerY:this.getLayoutRect().height/2],startAngle:this._startAngle,endAngle:this._endAngle,innerRadius:e,outerRadius:i,gapRadius:s,label:r}}}),t.transform({type:"flatten",options:{callback:e=>{if(e.datum){const i=e.datum[e.depth];return Object.assign(Object.assign({},e),i)}return e}}}))}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Rc,operations:["max","min","values"]},{key:cr,operations:["values"]}])}_addDataIndexAndKey(){const t=this.getRawData();P(t==null?void 0:t.dataSet)||(vt(t.dataSet,"addVChartProperty",Mh),t.transform({type:"addVChartProperty",options:{beforeCall:Jx.bind(this),call:fm}}))}initMark(){this._initArcMark(),this._initLabelMark()}initMarkStyle(){this._initArcMarkStyle(),this._initLabelMarkStyle()}_initArcMark(){var t,e;if(this._sunburst.visible===!1)return;const i=this._createMark(ga.mark.sunburst,{isSeriesMark:!0,stateSort:(t=this._spec.sunburst)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.sunburst)===null||e===void 0?void 0:e.customShape});this._sunburstMark=i}_initArcMarkStyle(){P(this._sunburstMark)||this.setMarkStyle(this._sunburstMark,{x:t=>t.x+(C(this._offsetX)?this._offsetX:0),y:t=>t.y+(C(this._offsetY)?this._offsetY:0),outerRadius:t=>t.outerRadius,innerRadius:t=>t.innerRadius,startAngle:t=>t.startAngle,endAngle:t=>t.endAngle,fill:this.getColorAttribute()},it.STATE_NORMAL,Z.Series)}_initLabelMark(){if(this._label.visible!==!0)return;const t=this._createMark(ga.mark.label,{isSeriesMark:!1});this._labelMark=t}_initLabelMarkStyle(){P(this._labelMark)||this.setMarkStyle(this._labelMark,{visible:t=>{var e;const i=this._labelAutoVisible;return yt(i)&&i.enable===!0?(t.endAngle-t.startAngle)*(t.outerRadius-t.innerRadius)>((e=i==null?void 0:i.circumference)!==null&&e!==void 0?e:dit):this._spec.label.visible},x:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.x)+(C(this._offsetX)?this._offsetX:0)},y:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.y)+(C(this._offsetY)?this._offsetY:0)},textBaseline:t=>{var e;return(e=t.label)===null||e===void 0?void 0:e.textBaseline},textAlign:t=>{var e;return(e=t.label)===null||e===void 0?void 0:e.textAlign},angle:t=>{var e,i;return(i=(e=t.label)===null||e===void 0?void 0:e.angle)!==null&&i!==void 0?i:0},fontSize:10,text:t=>t.name},it.STATE_NORMAL,Z.Series)}initTooltip(){this._tooltipHelper=new cit(this),this._sunburstMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._sunburstMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}initAnimation(){var t,e;const i={animationInfo:()=>({innerRadius:this._computeRadius(j(this.__innerRadius))[0],outerRadius:this._computeRadius(j(this.__outerRadius))[0],startAngle:j(this._startAngle)[0],endAngle:j(this._endAngle)[0]})},s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this.getMarksInType("arc").forEach(r=>{var a;r.setAnimationConfig(It((a=D.getAnimationInKey("sunburst"))===null||a===void 0?void 0:a(i,s),Nt(r.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(r=>{var a;r.setAnimationConfig(It((a=D.getAnimationInKey("fadeInOut"))===null||a===void 0?void 0:a(),Nt(r.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.drill&&this.bindDrillEvent()}onLayoutEnd(t){super.onLayoutEnd(t),this._rawData.reRunAllTransform()}_computeRadius(t){return U(t)?t.map(e=>this._computeLayoutRadius()*e):this._computeLayoutRadius()*t}_computeLevel(){return{innerRadius:this._computeRadius(this.__innerRadius),outerRadius:this._computeRadius(this.__outerRadius),gap:this._gap,label:this._labelLayout}}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._sunburstMark]}getMarkData(t){return t!=null&&t.datum?t.datum[t.datum.length-1]:t}}ga.type=Y.sunburst,ga.mark=git,se(ga,fS);const pit=()=>{D.registerSeries(ga.type,ga),Uo(),dn(),Tr(),Yet()},_it=(n,t)=>{if(!n)return n;const e=t(),{width:i,height:s}=e;return i===0||s===0?n:new qc(e).layout(n,{width:i,height:s})};class fit extends Hi{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}const mit=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"growRadiusIn"},vit=()=>{D.registerAnimation("circlePacking",(n,t)=>({appear:mit(t),enter:{type:"growRadiusIn"},exit:{type:"growRadiusOut"},disappear:{type:"growRadiusOut"}}))},yit=Object.assign(Object.assign({},we),{circlePacking:{name:"circlePacking",type:"arc"}});class pa extends Xn{constructor(){super(...arguments),this.type=Y.circlePacking}setCategoryField(t){return this._categoryField=t,this._categoryField}getCategoryField(){return this._categoryField}setValueField(t){return this._valueField=t,this._valueField}getValueField(){return this._valueField}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:cr),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e;return(e=this._spec.drillField)!==null&&e!==void 0?e:ds},getRawData:()=>this.getRawData()}),this._circlePacking=this._spec.circlePacking,this._label=this._spec.label,this._layoutPadding=this._spec.layoutPadding}initData(){super.initData();const t=this.getRawData();P(t)||(this._spec.drill&&this.initDrillableData(this._dataSet),vt(this._dataSet,"circlePackingLayout",_it),vt(this._dataSet,"flatten",wu),t.transform({type:"circlePackingLayout",options:()=>({nodeKey:this._categoryField,padding:this._layoutPadding,includeRoot:!1,width:this.getLayoutRect().width||1,height:this.getLayoutRect().height||1})}),t.transform({type:"flatten",options:{callback:e=>{if(e.datum){const i=e.datum[e.depth];return Object.assign(Object.assign({},e),i)}return e}}}))}_addDataIndexAndKey(){const t=this.getRawData();P(t==null?void 0:t.dataSet)||(vt(t.dataSet,"addVChartProperty",Mh),t.transform({type:"addVChartProperty",options:{beforeCall:Jx.bind(this),call:fm}}))}initMark(){this._initCirclePackingMark(),this._initLabelMark()}initMarkStyle(){this._initCirclePackingMarkStyle(),this._initLabelMarkStyle()}_initCirclePackingMark(){var t,e;if(((t=this._circlePacking)===null||t===void 0?void 0:t.visible)===!1)return;const i=this._createMark(pa.mark.circlePacking,{isSeriesMark:!0},{setCustomizedShape:(e=this._spec.circlePacking)===null||e===void 0?void 0:e.customShape});this._circlePackingMark=i}_initCirclePackingMarkStyle(){P(this._circlePackingMark)||this.setMarkStyle(this._circlePackingMark,{x:t=>t.x,y:t=>t.y,outerRadius:t=>t.radius,innerRadius:0,startAngle:0,endAngle:2*Math.PI,fill:this.getColorAttribute(),zIndex:t=>t.depth},it.STATE_NORMAL,Z.Series)}_initLabelMark(){var t;if(((t=this._label)===null||t===void 0?void 0:t.visible)===!1)return;const e=this._createMark(pa.mark.label,{isSeriesMark:!1});this._labelMark=e}_initLabelMarkStyle(){P(this._labelMark)||this.setMarkStyle(this._labelMark,{x:t=>t.x,y:t=>t.y,text:t=>t.key,cursor:"pointer"},it.STATE_NORMAL,Z.Series)}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Rc,operations:["max","min","values"]},{key:cr,operations:["values"]}])}initTooltip(){this._tooltipHelper=new fit(this),this._circlePackingMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._circlePackingMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}initAnimation(){var t;const e=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;this.getMarksInType("arc").forEach(i=>{var s;i.setAnimationConfig(It((s=D.getAnimationInKey("circlePacking"))===null||s===void 0?void 0:s(void 0,e),Nt(i.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(i=>{var s;i.setAnimationConfig(It((s=D.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Nt(i.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.drill&&this.bindDrillEvent()}onLayoutEnd(t){super.onLayoutEnd(t),this._rawData.reRunAllTransform()}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._circlePackingMark]}getMarkData(t){return t!=null&&t.datum?t.datum[t.datum.length-1]:t}}pa.type=Y.circlePacking,pa.mark=yit,se(pa,fS);const bit=()=>{D.registerSeries(pa.type,pa),Uo(),dn(),vm(),vit()},NI=n=>{let t=0;return n.forEach((e,i)=>{var s;P(e.value)&&(!((s=e.children)===null||s===void 0)&&s.length?e.value=NI(e.children):e.value=0),t+=Math.abs(e.value)}),t};function PC(n){return n.depth}function EC(n,t){return t-1-n.endDepth}function xit(n,t){return n.sourceLinks.length?n.depth:t-1}function Sit(n,t,e){return n.targetLinks.length?n.depth:n.sourceLinks.length?Ze(n.sourceLinks.map(i=>e[i.target].depth))-1:0}const pg=(n,t)=>(n==null?void 0:n.y0)-(t==null?void 0:t.y0),RC=(n,t)=>{if(P(n.value))return null;const e=(t?n.targetLinks:n.sourceLinks).reduce((i,s)=>(P(s.value)?i.count+=1:i.sum+=s.value,i),{sum:0,count:0});return e.count>0?(n.value-e.sum)/e.count:null},Ait={left:PC,right:EC,justify:xit,center:Sit,start:PC,end:EC},kit=Gl(0,1);class Cu{constructor(t){this._ascendingSourceBreadth=(s,r)=>pg(this._nodeMap[s.source],this._nodeMap[r.source])||s.index-r.index,this._ascendingTargetBreadth=(s,r)=>pg(this._nodeMap[s.target],this._nodeMap[r.target])||s.index-r.index,this.options=Object.assign({},Cu.defaultOptions,t);const e=this.options.nodeKey,i=N(e)?e:e?Ds(e):null;this._getNodeKey=i,this._logger=Ot.getInstance(),this._alignFunc=N(this.options.setNodeLayer)?s=>this.options.setNodeLayer(s.datum):Ait[this.options.nodeAlign]}layout(t,e){if(!t)return null;const i="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};wk(this.options.direction)?this._viewBox={x0:i.y0,x1:i.y1,y0:i.x0,y1:i.x1,width:i.height,height:i.width}:this._viewBox=i;const s=this.computeNodeLinks(t),r=s.nodes;let a=s.links;if(this._nodeMap=s.nodeMap,this.computeNodeValues(r),this.computeNodeDepths(r),["right","end","justify"].includes(this.options.nodeAlign)&&this.computeNodeEndDepths(r),this._maxDepth<=1)return null;const o=this.computeNodeBreadths(r);if(this.computeLinkBreadths(r),r.forEach(l=>{l.sourceLinks=l.sourceLinks.filter(h=>!P(h.source)&&!P(h.target)),l.targetLinks=l.targetLinks.filter(h=>!P(h.source)&&!P(h.target))}),a=a.filter(l=>!P(l.source)&&!P(l.target)),wk(this.options.direction))if(this.options.inverse){const l=this._viewBox.x1;r.forEach(h=>{const{y0:d,y1:c,x0:u,x1:g}=h;h.y0=l-g,h.y1=l-u,h.x0=d,h.x1=c}),a.forEach(h=>{h.vertical=!0;const{x0:d,x1:c,y0:u,y1:g}=h;h.x0=u,h.x1=g,h.y0=l-d,h.y1=l-c})}else r.forEach(l=>{const{y0:h,y1:d}=l;l.y0=l.x0,l.y1=l.x1,l.x0=h,l.x1=d}),a.forEach(l=>{l.vertical=!0;const h=l.x0,d=l.x1;l.x0=l.y0,l.x1=l.y1,l.y0=h,l.y1=d});else this.options.inverse&&(r.forEach(l=>{const{x0:h,x1:d}=l;l.x0=i.x1-d,l.x1=i.x1-h}),a.forEach(l=>{l.x0=i.x1-l.x0,l.x1=i.x1-l.x1}));return a.forEach(l=>{const h=this._nodeMap[l.source],d=this._nodeMap[l.target];l.sourceRect={x0:h.x0,x1:h.x1,y0:h.y0,y1:h.y1},l.targetRect={x0:d.x0,x1:d.x1,y1:d.y1,y0:d.y0}}),{nodes:r,links:a,columns:o}}computeHierarchicNodeLinks(t){const e=[],i=[],s={},r={},a=[];NI(t);const o=(l,h,d)=>{l.forEach((c,u)=>{const g=this._getNodeKey?this._getNodeKey(c):d?`${d[d.length-1].key}-${u}`:`${h}-${u}`,p=P(c.value)?0:$a(c.value);if(s[g])s[g].value=void 0;else{const _={depth:h,datum:c,index:u,key:g,value:p,sourceLinks:[],targetLinks:[]};s[g]=_,e.push(_)}d&&a.push({source:d[d.length-1].key,target:g,value:p,parents:d}),c.children&&c.children.length&&o(c.children,h+1,d?d.concat([s[g]]):[s[g]])})};return o(t,0,null),a.forEach((l,h)=>{const d=`${l.source}-${l.target}`,c=ma(l,["parents"]);if(c.parents=l.parents.map(g=>ma(g,["sourceLinks","targetLinks"])),r[d])return r[d].value+=$a(l.value),void r[d].datum.push(c);const u={index:h,key:`${l.source}-${l.target}`,source:l.source,target:l.target,datum:[c],value:l.value,parents:l.parents.map(g=>g.key)};i.push(u),s[l.source].sourceLinks.push(u),s[l.target].targetLinks.push(u),r[d]=u}),{nodes:e,links:i,nodeMap:s}}computeSourceTargetNodeLinks(t){const e=[],i=[],s={};t.nodes&&t.nodes.forEach((a,o)=>{const l={depth:-1,datum:a,index:o,key:this._getNodeKey?this._getNodeKey(a):o,value:a.value,sourceLinks:[],targetLinks:[]};s[l.key]=l,e.push(l)});const r=[];return t.links.forEach((a,o)=>{const l=!P(a.source),h=!P(a.target);if(t.nodes&&(!s[a.source]||!s[a.target]))return;t.nodes||!l||s[a.source]||(s[a.source]={value:void 0,depth:-1,index:e.length,key:a.source,datum:null,sourceLinks:[],targetLinks:[]},e.push(s[a.source])),t.nodes||!h||s[a.target]||(s[a.target]={value:void 0,depth:-1,index:e.length,key:a.target,datum:null,sourceLinks:[],targetLinks:[]},e.push(s[a.target]));const d={index:o,source:a.source,target:a.target,datum:a,value:a.value};this.options.divideNodeValueToLink&&P(a.value)&&r.push(d),i.push(d),l&&s[a.source].sourceLinks.push(d),h&&s[a.target].targetLinks.push(d)}),this.options.divideNodeValueToLink&&r.length&&r.forEach(a=>{const o=[RC(s[a.source]),RC(s[a.target],!0)].filter(l=>!P(l));o.length&&(a.value=Ze(o))}),{nodeMap:s,nodes:e,links:i}}computeNodeLinks(t){let e;"links"in t?e=this.computeSourceTargetNodeLinks(t):(this._isHierarchic=!0,e=this.computeHierarchicNodeLinks(t.nodes));let i=e.nodes;const s=e.links;if(this.options.linkSortBy)for(let r=0,a=i.length;rr.targetLinks.length||r.sourceLinks.length)),{nodes:i,links:s,nodeMap:e.nodeMap}}computeNodeValues(t){for(let e=0,i=t.length;e{var o;return r+((o=$a(a.value))!==null&&o!==void 0?o:0)},0),s.targetLinks.reduce((r,a)=>{var o;return r+((o=$a(a.value))!==null&&o!==void 0?o:0)},0))}}computeNodeDepths(t){const e=t.length;let i,s,r=t,a=0;for(;r.length&&ae&&this._logger.warn("Error: there is a circular link"),this._maxDepth=a}computeNodeEndDepths(t){const e=t.length;let i,s,r=t,a=0;for(;r.length&&ae&&this._logger.warn("Error: there is a circular link")}computeNodeLayers(t){const e=this.options.nodeWidth,i=this.options.linkWidth,s=this.options.minStepWidth,r=this._viewBox.width;let a=null,o=null,l=!1;if(tt(e)){const d=be(parseFloat(e.replace("%",""))/100,0,1);let c=r/(this._maxDepth-1+d);s>0&&(c=Math.max(s,c)),a=c*d,o=c*(1-d),l=!0}else if(J(e)){if(a=e,J(i))o=i;else if(P(i)){let d=(r-e)/(this._maxDepth-1);s>0&&(d=Math.max(s,d)),o=d-e}l=!0}else N(e)&&J(i)&&(o=i);const h=[];for(let d=0,c=t.length;d{const _=p.reduce((m,v)=>m+v.value,0),f=p.reduce((m,v)=>m+this.options.nodeGap(v),0);return Math.min(g,(this._viewBox.height-f)/_)},1/0);else{const g=t.reduce((f,m)=>Math.max(f,m.length),0),p=this._viewBox.height/g,_=Math.min(this.options.nodeGap,p);if(o=()=>_,this._gapY=_,(r+_)*g>this._viewBox.height&&(r=p-_),this.options.equalNodeHeight)l=this._viewBox.height/g-_;else{const f=r>0?Math.max(_,r):_;a=t.reduce((m,v)=>{const y=v.reduce((b,x)=>b+x.value,0);return Math.min(m,(this._viewBox.height-((v.length-1)*f+r))/y)},1/0)}}const h=this.options.gapPosition==="start",d=!h&&this.options.gapPosition!=="end",c=J(this.options.nodeHeight)?g=>this.options.nodeHeight:N(this.options.nodeHeight)?this.options.nodeHeight:l>0?g=>l:g=>Math.max(g.value*a,0),u=J(this.options.linkHeight)?()=>this.options.linkHeight:N(this.options.linkHeight)?this.options.linkHeight:(g,p,_)=>Math.max(p.value?_*kit(g.value/p.value):0,s,0);for(let g=0,p=t.length;g0){if(this.options.crossNodeAlign!=="start")if(this.options.crossNodeAlign==="end")for(let x=0,S=_.length;x1&&(b/=_.length-1,m+b>=0)){m+=b,this._gapY=Math.min(m);for(let x=1,S=_.length;x0))continue;const u=(d/c-h.y0)*e;h.y0+=u,h.y1+=u,this.reorderNodeLinks(h)}P(this.options.nodeSortBy)&&a.sort(pg),this.resolveCollisions(a,i)}}relaxRightToLeft(t,e,i){for(let s=t.length-2;s>=0;--s){const r=t[s];for(let a=0,o=r.length;a0))continue;const c=(h/d-l.y0)*e;l.y0+=c,l.y1+=c,this.reorderNodeLinks(l)}this.options.nodeSortBy===void 0&&r.sort(pg),this.resolveCollisions(r,i)}}resolveCollisions(t,e){const i=t.length>>1,s=t[i];this.resolveCollisionsBottomToTop(t,s.y0-this._gapY,i-1,e),this.resolveCollisionsTopToBottom(t,s.y1+this._gapY,i+1,e),this.resolveCollisionsBottomToTop(t,this._viewBox.y1,t.length-1,e),this.resolveCollisionsTopToBottom(t,this._viewBox.y0,0,e)}resolveCollisionsTopToBottom(t,e,i,s){for(;i1e-6&&(r.y0+=a,r.y1+=a),e=r.y1+this._gapY}}resolveCollisionsBottomToTop(t,e,i,s){for(;i>=0;--i){const r=t[i],a=(r.y1-e)*s;a>1e-6&&(r.y0-=a,r.y1-=a),e=r.y0-this._gapY}}targetTop(t,e){let i,s,r,a=t.y0-(t.sourceLinks.length-1)*this._gapY/2;for(i=0,s=t.sourceLinks.length;is.y1||a?(d.y0=s.y1-d.thickness/2,a=!0):r+=d.thickness}let o=s.y0;a=!1;for(let l=0,h=s.targetLinks.length;ls.y1||a?(d.y1=s.y1-d.thickness/2,a=!0):o+=d.thickness}}}computeLinkBreadthsOverlap(t){const e=this.options.linkOverlap;for(let i=0,s=t.length;i{const e=new Cu(n).layout(Array.isArray(t)?t[0]:t,"width"in n?{width:n.width,height:n.height}:{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1});return e?[e]:[]},Mit=()=>{G.registerTransform("sankey",{transform:Tit,markPhase:"beforeJoin"},!0)},UI=(n,t,e)=>{t.forEach(i=>{P(i[e])||n.add(i[e]),i.children&&i.children.length>0&&UI(n,i.children,e)})},wit=n=>{var t;if(!n||!U(n))return[];if(n.length>1){const e={links:[],nodes:[]};return n.forEach(i=>{i.id!=="links"&&i.id!=="nodes"||(e[i.id]=i.values)}),[e]}return!((t=n[0])===null||t===void 0)&&t.latestData?n[0].latestData:n},Cit=(n,t)=>{if(!n||!(t!=null&&t.view)||!n.length)return[];const e=t.view();if(e.x1-e.x0==0||e.y1-e.y0==0||e.x1-e.x0==-1/0||e.x1-e.x0==1/0||e.y1-e.y0==-1/0||e.y1-e.y0==1/0)return[];const i=n[0];if((t.sourceField!=="source"||t.targetField!=="target"||t.valueField!=="value")&&i.links){const a=[];i.links.forEach(o=>{const l={};for(const h in o)h===t.sourceField?l.source=o[t.sourceField]:h===t.targetField?l.target=o[t.targetField]:h===t.valueField?l.value=o[t.valueField]:l[h]=o[h];a.push(l)}),i.links=a}const s=new Cu(t),r=[];return r.push(s.layout(i,e)),r},Pit=n=>{var t,e;return n&&U(n)&&(!((t=n[0])===null||t===void 0)&&t.latestData)&&n[0].latestData.length&&n[0].latestData[0]&&(e=n[0].latestData[0].nodes)!==null&&e!==void 0?e:[]},Eit=n=>{var t,e;return n&&U(n)&&(!((t=n[0])===null||t===void 0)&&t.latestData)&&n[0].latestData.length&&n[0].latestData[0]&&(e=n[0].latestData[0].links)!==null&&e!==void 0?e:[]};class Rit extends Hi{constructor(){super(...arguments),this._getDimensionData=t=>{if(t.source){if(J(t.source)){const e=this.series.getSeriesKeys();return e[t.source]+" => "+e[t.target]}return t.source+" => "+t.target}return t.datum?t.datum[this.series.getSpec().categoryField]:t.key},this.markTooltipValueCallback=t=>t.value}}const Oit=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:{overall:t&&n.growFrom(),orient:"positive"}}),Bit=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:Oit(n),Lit=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"linkPathGrowIn"},Iit=()=>{D.registerAnimation("sankeyNode",(n,t)=>Object.assign({appear:Bit(n,t)},mm)),D.registerAnimation("sankeyLinkPath",(n,t)=>({appear:Lit(t),enter:{type:"linkPathGrowIn"},exit:{type:"linkPathGrowOut"},disappear:{type:"linkPathGrowOut"}}))};class Zc extends Ci{constructor(){super(...arguments),this.type=Zc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x:0,y:0,x0:0,y0:0,x1:100,y1:100,thickness:1,round:!0})}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId(),s=this.getStyle("direction");this._product=e.glyph("linkPath",t??e.rootMark).id(i).configureGlyph({direction:s}),this._compiledProductId=i}}Zc.type="linkPath";const Dit=()=>{f9(),D.registerMark(Zc.type,Zc)},Fit=Object.assign(Object.assign({},we),{node:{name:"node",type:"rect"},link:{name:"link",type:"linkPath"}});class $I extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"node")}}class _a extends Xn{constructor(){super(...arguments),this.type=Y.sankey,this.transformerConstructor=$I,this._nodeLayoutZIndex=ee.Node,this._labelLayoutZIndex=ee.Label,this._viewBox=new wi,this._fillByNode=t=>{var e,i,s,r,a;if(t&&t.sourceRect&&t.targetRect)return this._fillByLink(t);const o=(i=(e=this._spec.node)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.fill;if(C(o))return o;if(C(this._spec.seriesField)){const l=(r=(s=this._option)===null||s===void 0?void 0:s.globalScale)===null||r===void 0?void 0:r.getScale("color"),h=t!=null&&t.datum?t.datum:t;return l==null?void 0:l.scale(h==null?void 0:h[this._spec.seriesField])}return(a=this._colorScale)===null||a===void 0?void 0:a.scale(this._getNodeNameFromData(t))},this._fillByLink=t=>{var e,i,s,r,a,o,l;const h=(i=(e=this._spec.link)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.fill;if(h)return h;if(C(this._spec.seriesField)){const c=(r=(s=this._nodesSeriesData)===null||s===void 0?void 0:s.getLatestData())===null||r===void 0?void 0:r.find(p=>t.source===p.key),u=c==null?void 0:c.datum,g=(o=(a=this._option)===null||a===void 0?void 0:a.globalScale)===null||o===void 0?void 0:o.getScale("color");return g==null?void 0:g.scale(u==null?void 0:u[this._spec.seriesField])}const d=J(t.source)?this.getNodeList()[t.source]:t.source;return(l=this._colorScale)===null||l===void 0?void 0:l.scale(d)},this._handleEmphasisElement=t=>{var e,i,s,r,a;const o=(e=this._spec.emphasis)!==null&&e!==void 0?e:{},l=t.item;o.effect==="adjacency"?l&&l.mark===((i=this._nodeMark)===null||i===void 0?void 0:i.getProduct())?this._handleNodeAdjacencyClick(l):l&&l.mark===((s=this._linkMark)===null||s===void 0?void 0:s.getProduct())?this._handleLinkAdjacencyClick(l):this._handleClearEmpty():o.effect==="related"&&(l&&l.mark===((r=this._nodeMark)===null||r===void 0?void 0:r.getProduct())?this._handleNodeRelatedClick(l):l&&l.mark===((a=this._linkMark)===null||a===void 0?void 0:a.getProduct())?this._handleLinkRelatedClick(l):this._handleClearEmpty())},this._handleClearEmpty=()=>{var t,e;if(!this._needClear)return;const i=(t=this._nodeMark)===null||t===void 0?void 0:t.getProductElements();if(!i||!i.length)return;const s=(e=this._linkMark)===null||e===void 0?void 0:e.getProductElements();if(!s||!s.length)return;const r=[it.STATE_SANKEY_EMPHASIS,it.STATE_SANKEY_EMPHASIS_REVERSE];i.forEach(a=>{a.removeState(r)}),s.forEach(a=>{a.removeState(r)}),this._needClear=!1},this._handleNodeAdjacencyClick=t=>{const e=t.getDatum(),i=[e.key];if(this._linkMark){const s=this._linkMark.getProductElements();if(!s||!s.length)return;s.forEach((r,a)=>{const o=r.getDatum(),l=o!=null&&o.parents?"parents":"source";if(j(o[l]).includes(e.key)){let h;if(i.includes(o.source)||i.push(o.source),i.includes(o.target)||i.push(o.target),l==="parents"){const d=o.datum;h=(d?d.filter(c=>c.parents.some(u=>u.key===e.key)).reduce((c,u)=>c+u.value,0):0)/o.value}r.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(it.STATE_SANKEY_EMPHASIS),r.addState(it.STATE_SANKEY_EMPHASIS,{ratio:h})}else o.target===e.key?i.includes(o.source)||i.push(o.source):(r.removeState(it.STATE_SANKEY_EMPHASIS),r.addState(it.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._needClear=!0},this._handleLinkAdjacencyClick=t=>{const e=t.getDatum(),i=[e.source,e.target];if(this._linkMark){const s=this._linkMark.getProductElements();if(!s||!s.length)return;s.forEach(r=>{r===t?(r.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(it.STATE_SANKEY_EMPHASIS,{ratio:1})):(r.removeState(it.STATE_SANKEY_EMPHASIS),r.addState(it.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._needClear=!0},this._handleNodeRelatedClick=t=>{var e;const i=t.getDatum(),s=this._nodeMark.getProductElements();if(!s||!s.length)return;const r=this._linkMark.getProductElements();if(!(!r||!r.length)){if((!((e=r[0].getDatum())===null||e===void 0)&&e.parents?"parents":"source")=="source"){const a=[i.key],o=[];if(r.forEach((l,h)=>{var d,c,u,g;const p=l.getDatum(),_=p!=null&&p.parents?"parents":"source";if(j(p[_]).includes(i.key)){if(o.includes((d=p.key)!==null&&d!==void 0?d:p.index)||o.push((c=p.key)!==null&&c!==void 0?c:p.index),a.includes(p.source)||a.push(p.source),!a.includes(p.target)){a.push(p.target);let f=s.find(m=>m.data[0].key===p.target).data[0].sourceLinks;for(;(f==null?void 0:f.length)>0;){const m=[];return f.forEach(v=>{var y,b;if(!o.includes((y=v.key)!==null&&y!==void 0?y:v.index)&&(o.push((b=v.key)!==null&&b!==void 0?b:v.index),!a.includes(v.target))){a.push(v.target);const x=s.find(S=>S.data[0].key===v.target);m.push(x.data[0].targetLinks)}}),void(f=m)}}}else if(p.target===i.key&&(o.includes((u=p.key)!==null&&u!==void 0?u:p.index)||o.push((g=p.key)!==null&&g!==void 0?g:p.index),!a.includes(p.source))){a.push(p.source);let f=s.find(m=>m.data[0].key===p.source).data[0].targetLinks;for(;(f==null?void 0:f.length)>0;){const m=[];return f.forEach(v=>{var y,b;if(!o.includes((y=v.key)!==null&&y!==void 0?y:v.index)&&(o.push((b=v.key)!==null&&b!==void 0?b:v.index),!a.includes(v.source))){a.push(v.source);const x=s.find(S=>S.data[0].key===v.source);m.push(x.data[0].targetLinks)}}),void(f=m)}}}),this._linkMark){const l=this._linkMark.getProductElements();if(!l||!l.length)return;l.forEach((h,d)=>{var c;o.includes((c=h.getDatum().key)!==null&&c!==void 0?c:h.getDatum().index)?(h.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),h.addState(it.STATE_SANKEY_EMPHASIS)):(h.removeState(it.STATE_SANKEY_EMPHASIS),h.addState(it.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a)}else{const a=[i.key],o=i.targetLinks.reduce((l,h)=>(j(h.datum).forEach(d=>{const c=d.parents,u=c.length;for(let g=0;gv.source===p&&v.target===_);m?m.value+=f:l.push({source:p,target:_,value:f})}}),l),[]);r.forEach((l,h)=>{const d=l.getDatum(),c=d!=null&&d.parents?"parents":"source",u=d.datum,g=u?u.filter(_=>_[c].some(f=>f.key===i.key)):null,p=o.find(_=>_.source===d.source&&_.target===d.target);if(g&&g.length){a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target);const _=g.reduce((f,m)=>f+m.value,0)/d.value;return l.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(it.STATE_SANKEY_EMPHASIS),void l.addState(it.STATE_SANKEY_EMPHASIS,{ratio:_})}if(p)return a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target),l.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(it.STATE_SANKEY_EMPHASIS),void l.addState(it.STATE_SANKEY_EMPHASIS,{ratio:p.value/d.value});l.removeState(it.STATE_SANKEY_EMPHASIS),l.addState(it.STATE_SANKEY_EMPHASIS_REVERSE)}),this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a)}this._needClear=!0}},this._handleLinkRelatedClick=t=>{var e;const i=this._nodeMark.getProductElements();if(!i||!i.length)return;const s=this._linkMark.getProductElements();if(!(!s||!s.length)){if((!((e=t.getDatum())===null||e===void 0)&&e.parents?"parents":"source")=="source"){const r=[it.STATE_SANKEY_EMPHASIS,it.STATE_SANKEY_EMPHASIS_REVERSE];this._linkMark&&s.forEach(a=>{a.removeState(r)}),this._nodeMark&&i.forEach(a=>{a.removeState(r)})}else{const r=t.getDatum(),a=[r.source,r.target],o=[];j(r.datum).forEach(l=>{const h=l.parents,d=h.length;for(let c=0;cf.source===u&&f.target===g);o.push({source:h[c].key,target:h[c+1].key,value:l.value}),_?_.value+=p:o.push({source:u,target:g,value:p})}}),s.forEach(l=>{const h=l.getDatum(),d=h.datum;if(h.source===r.source&&h.target===r.target)return l.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),void l.addState(it.STATE_SANKEY_EMPHASIS,{ratio:1});const c=d?d.filter(g=>{const p=g.parents.map(_=>_.key);return p.includes(r.source)&&p.includes(r.target)}):null;if(c&&c.length){a.includes(h.source)||a.push(h.source),a.includes(h.target)||a.push(h.target);const g=c.filter(_=>_.parents.some((f,m)=>{var v;return f.key===r.source&&((v=_.parents[m+1])===null||v===void 0?void 0:v.key)===r.target})).reduce((_,f)=>_+f.value,0),p=g/h.value;return l.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(it.STATE_SANKEY_EMPHASIS),void l.addState(it.STATE_SANKEY_EMPHASIS,{ratio:p})}const u=o.find(g=>g.source===h.source&&g.target===h.target);if(u)return a.includes(h.source)||a.push(h.source),a.includes(h.target)||a.push(h.target),l.removeState(it.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(it.STATE_SANKEY_EMPHASIS),void l.addState(it.STATE_SANKEY_EMPHASIS,{ratio:u.value/h.value});l.removeState(it.STATE_SANKEY_EMPHASIS),l.addState(it.STATE_SANKEY_EMPHASIS_REVERSE)}),this._highLightElements(i,a)}this._needClear=!0}}}get direction(){var t;return(t=this._spec.direction)!==null&&t!==void 0?t:"horizontal"}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:this._spec.categoryField)}initData(){var t,e,i,s;super.initData();const r=this.getViewData(),a=this.getRawData();if(a&&r){vt(this._dataSet,"sankeyLayout",Cit),vt(this._dataSet,"sankeyFormat",wit),a.transform({type:"sankeyFormat"},!1),r.transform({type:"sankeyLayout",options:{view:()=>({x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2}),sourceField:this._spec.sourceField,targetField:this._spec.targetField,valueField:this._spec.valueField,direction:this.direction,crossNodeAlign:this._spec.crossNodeAlign,nodeAlign:(t=this._spec.nodeAlign)!==null&&t!==void 0?t:"justify",nodeGap:(e=this._spec.nodeGap)!==null&&e!==void 0?e:8,nodeWidth:(i=this._spec.nodeWidth)!==null&&i!==void 0?i:10,linkWidth:this._spec.linkWidth,minStepWidth:this._spec.minStepWidth,minNodeHeight:(s=this._spec.minNodeHeight)!==null&&s!==void 0?s:4,minLinkHeight:this._spec.minLinkHeight,iterations:this._spec.iterations,nodeKey:this._spec.nodeKey,linkSortBy:this._spec.linkSortBy,nodeSortBy:this._spec.nodeSortBy,setNodeLayer:this._spec.setNodeLayer,dropIsolatedNode:this._spec.dropIsolatedNode,nodeHeight:this._spec.nodeHeight,linkHeight:this._spec.linkHeight,equalNodeHeight:this._spec.equalNodeHeight,linkOverlap:this._spec.linkOverlap,inverse:this._spec.inverse},level:cs.sankeyLayout});const{dataSet:o}=this._option;vt(o,"sankeyNodes",Pit),vt(o,"flatten",wu);const l=new Gt(o,{name:`sankey-node-${this.id}-data`});l.parse([this.getViewData()],{type:"dataview"}),l.transform({type:"sankeyNodes"}),l.transform({type:"flatten",options:{callback:d=>{if(d.datum){const c=d.datum[d.depth];return Object.assign(Object.assign({},d),c)}return d}}},!1),l.transform({type:"addVChartProperty",options:{beforeCall:hh.bind(this),call:Po}},!1),this._nodesSeriesData=new js(this._option,l),vt(o,"sankeyLinks",Eit);const h=new Gt(o,{name:`sankey-link-${this.id}-data`});h.parse([this.getViewData()],{type:"dataview"}),h.transform({type:"sankeyLinks"}),h.transform({type:"addVChartProperty",options:{beforeCall:hh.bind(this),call:Po}},!1),this._linksSeriesData=new js(this._option,h)}}compileData(){var t,e;super.compileData(),(t=this._linksSeriesData)===null||t===void 0||t.compile(),(e=this._nodesSeriesData)===null||e===void 0||e.compile()}initMark(){var t,e,i,s;const r=this._createMark(_a.mark.node,{isSeriesMark:!0,dataView:this._nodesSeriesData.getDataView(),dataProductId:this._nodesSeriesData.getProductId(),stateSort:(t=this._spec.node)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.node)===null||e===void 0?void 0:e.customShape});r&&(r.setMarkConfig({zIndex:this._nodeLayoutZIndex}),this._nodeMark=r);const a=this._createMark(_a.mark.link,{dataView:this._linksSeriesData.getDataView(),dataProductId:this._linksSeriesData.getProductId(),stateSort:(i=this._spec.link)===null||i===void 0?void 0:i.stateSort},{setCustomizedShape:(s=this._spec.link)===null||s===void 0?void 0:s.customShape});a&&(this._linkMark=a)}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToNode=this.valueToNode.bind(this),this._markAttributeContext.valueToLink=this.valueToLink.bind(this)}valueToNode(t){const e=this._nodesSeriesData.getLatestData(),i=j(t)[0];return e&&e.find(s=>s.key===i)}valueToLink(t){const e=this._linksSeriesData.getLatestData(),i=j(t);return e&&e.find(s=>s&&s.source===i[0]&&s.target===i[1])}valueToPositionX(t){const e=this.valueToNode(t);return e==null?void 0:e.x0}valueToPositionY(t){const e=this.valueToNode(t);return e==null?void 0:e.y0}initMarkStyle(){this._initNodeMarkStyle(),this._initLinkMarkStyle()}_initNodeMarkStyle(){var t,e;const i=this._nodeMark;i&&(this.setMarkStyle(i,{x:s=>s.x0,x1:s=>s.x1,y:s=>s.y0,y1:s=>s.y1},it.STATE_NORMAL,Z.Mark),this.setMarkStyle(i,{fill:(e=(t=this._spec.node.style)===null||t===void 0?void 0:t.fill)!==null&&e!==void 0?e:this._fillByNode},"normal",Z.User_Mark))}_initLinkMarkStyle(){var t,e;const i=this._linkMark;i&&(this.setMarkStyle(i,{x0:s=>s.x0,x1:s=>s.x1,y0:s=>s.y0,y1:s=>s.y1,thickness:s=>s.thickness,direction:this.direction},it.STATE_NORMAL,Z.Series),this.setMarkStyle(i,{fill:(e=(t=this._spec.link.style)===null||t===void 0?void 0:t.fill)!==null&&e!==void 0?e:this._fillByLink},"normal",Z.User_Mark))}initLabelMarkStyle(t,e){if(!t)return;const i=e.position;i&&i.includes("inside")?this.setMarkStyle(t,{fill:"#ffffff",text:s=>this._createText(s,e),maxLineWidth:s=>{var r;return(r=e.limit)!==null&&r!==void 0?r:s.x1-s.x0}}):this.setMarkStyle(t,{fill:this._fillByNode,text:s=>this._createText(s,e),maxLineWidth:e.limit}),t.setMarkConfig({zIndex:this._labelLayoutZIndex})}_createText(t,e){if(P(t)||P(t.datum))return"";let i=t.datum[this._spec.categoryField]||"";const{formatMethod:s,formatter:r}=e||{},{formatFunc:a,args:o}=zs(s,r,i,t.datum);return a&&(i=a(...o,{series:this})),i}initAnimation(){var t,e,i,s;const r={direction:this.direction,growFrom:()=>{var o,l;return this.direction==="horizontal"?(o=this._xAxisHelper)===null||o===void 0?void 0:o.getScale(0).scale(0):(l=this._yAxisHelper)===null||l===void 0?void 0:l.getScale(0).scale(0)}},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._nodeMark&&this._nodeMark.setAnimationConfig(It((i=D.getAnimationInKey("sankeyNode"))===null||i===void 0?void 0:i(r,a),Nt("node",this._spec,this._markAttributeContext))),this._linkMark&&this._linkMark.setAnimationConfig(It((s=D.getAnimationInKey("sankeyLinkPath"))===null||s===void 0?void 0:s(r,a),Nt("link",this._spec,this._markAttributeContext)))}initEvent(){var t,e,i;super.initEvent(),(t=this._nodesSeriesData.getDataView())===null||t===void 0||t.target.addListener("change",this.nodesSeriesDataUpdate.bind(this)),(e=this._linksSeriesData.getDataView())===null||e===void 0||e.target.addListener("change",this.linksSeriesDataUpdate.bind(this));const s=(i=this._spec.emphasis)!==null&&i!==void 0?i:{};if(this._option.disableTriggerEvent!==!0&&s.enable&&(s.effect==="adjacency"||s.effect==="related")){const r=s.trigger==="hover"?"pointerover":"pointerdown";this.event.on(r,{level:pe.chart},this._handleEmphasisElement)}}nodesSeriesDataUpdate(){this._nodesSeriesData.updateData(),this._nodeList=null,this._setNodeOrdinalColorScale()}linksSeriesDataUpdate(){this._linksSeriesData.updateData()}_highLightElements(t,e){t&&t.length&&t.forEach(i=>{i.removeState([it.STATE_SANKEY_EMPHASIS_REVERSE,it.STATE_SANKEY_EMPHASIS]),e.includes(i.getDatum().key)||i.addState(it.STATE_SANKEY_EMPHASIS_REVERSE)})}initTooltip(){this._tooltipHelper=new Rit(this),this._nodeMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nodeMark),this._linkMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark)}_setNodeOrdinalColorScale(){var t,e,i,s,r;const a=(e=(t=this._option)===null||t===void 0?void 0:t.globalScale)===null||e===void 0?void 0:e.getScale("color");if(a!=null&&a._specified)return void(this._colorScale=a);let o,l;a&&(o=a.domain(),l=a.range()),l||(l=this._getDataScheme()),o&&!P(o[0])||(o=this.getNodeList(),o.length>10&&(l=(i=this._getDataScheme()[1])===null||i===void 0?void 0:i.scheme));const h=new vu;(r=(s=h.domain(o)).range)===null||r===void 0||r.call(s,l),this._colorScale=h}getNodeList(){var t,e;if(this._nodeList)return this._nodeList;const i=this._rawData.latestData[0],s=i!=null&&i.nodes?!((t=i.nodes[0])===null||t===void 0)&&t.children?Array.from(this.extractNamesFromTree(i.nodes,this._spec.categoryField)):i.nodes.map((r,a)=>r[this._spec.categoryField]):i!=null&&i.links?Array.from(this.extractNamesFromLink(i.links)):(e=i==null?void 0:i.values)===null||e===void 0?void 0:e.map((r,a)=>r[this._spec.categoryField]);return this._nodeList=s,s}_getNodeNameFromData(t){var e;return t!=null&&t.datum?t.datum[this._spec.categoryField]:(e=t.key)!==null&&e!==void 0?e:t[this._spec.categoryField]}extractNamesFromTree(t,e){const i=new Set;return t.forEach(s=>{i.add(s[e]),s.children&&this.extractNamesFromTree(s.children,e).forEach(r=>i.add(r))}),i}extractNamesFromLink(t){const e=new Set,{sourceField:i,targetField:s}=this._spec;return t.forEach(r=>{C(r[i])&&e.add(r[i]),C(r[s])&&e.add(r[s])}),e}getDimensionField(){return[this._spec.categoryField]}getMeasureField(){return[this._valueField]}getRawDataStatisticsByField(t,e){var i;return this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]&&(this._viewDataStatistics&&this.getViewData().transformsArr.length<=1&&(!((i=this._viewDataStatistics.latestData)===null||i===void 0)&&i[t])?this._rawStatisticsCache[t]=this._viewDataStatistics.latestData[t]:this._rawData&&(this._rawStatisticsCache[t]={values:this._collectByField(t)})),this._rawStatisticsCache[t]}_collectByField(t){var e,i,s;const r=[],a=(i=(e=this.getRawData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i[0];if(!a)return[];if(a.links)!((s=a.nodes)===null||s===void 0)&&s.length&&a.nodes.forEach(o=>{o[this._seriesField]&&r.push(o[this._seriesField])});else if(a.nodes){const o=new Set;return UI(o,a.nodes,this._seriesField),Array.from(o)}return r}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this._region.getLayoutRect().width,this._region.getLayoutRect().height),this.getViewData().reRunAllTransform()}getDefaultShapeType(){return"square"}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._nodeMark,this._linkMark]}getMarkData(t){return t.datum?U(t.datum)?t.datum[t.datum.length-1]:t.datum:t}}_a.type=Y.sankey,_a.transformerConstructor=$I,_a.mark=Fit;const zit=()=>{Mit(),Cr(),Dit(),dn(),Iit(),Tr(),D.registerSeries(_a.type,_a)},OC=(n,t)=>{let e={},i=t.fields;if(N(i)&&(i=i()),!(i!=null&&i.length)||!(n!=null&&n.length)||!n[0].latestData)return e;const s=n[0].latestData,r=wu(s);return e=cb([{latestData:r}],t),e};class jit extends Hi{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>{var e,i;return(i=(e=this.series)===null||e===void 0?void 0:e.getMarkData(t))===null||i===void 0?void 0:i[this.series.getDimensionField()[0]]},this.markTooltipValueCallback=t=>{var e,i;const{measureFields:s}=this._seriesCacheInfo,r=(e=this.series)===null||e===void 0?void 0:e.getMarkData(t);if(s[0]&&r)return(i=r[s[0]])!==null&&i!==void 0?i:t.value},this.dimensionTooltipTitleCallback=t=>{var e;const{dimensionFields:i}=this._seriesCacheInfo,s=(e=this.series)===null||e===void 0?void 0:e.getMarkData(t);if(i[0]&&s)return s[i[0]]}}get defaultShapeType(){return"square"}}const Hit=Object.assign(Object.assign({},we),{nonLeaf:{name:"nonLeaf",type:"rect"},leaf:{name:"leaf",type:"rect"},nonLeafLabel:{name:"nonLeafLabel",type:"text"}}),Vit=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"growCenterIn"},Wit=()=>{D.registerAnimation("treemap",(n,t)=>({appear:Vit(t),enter:{type:"growCenterIn"},exit:{type:"growCenterOut"},disappear:{type:"growCenterOut"}}))};class YI extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nonLeaf","nonLeafLabel","initNonLeafLabelMarkStyle"),this._addMarkLabelSpec(t,"leaf")}}class Cs extends Xn{constructor(){super(...arguments),this.type=Y.treemap,this.transformerConstructor=YI,this._categoryField="name",this._valueField="value",this._viewBox=new wi,this._enableAnimationHook=this.enableMarkAnimation.bind(this),this.isHierarchyData=()=>!0}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:cr),this._spec.roam&&(this.initZoomable(this.event,this._option.mode),this._matrix=new Ee),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e,i;return(i=(e=this._spec.drillField)!==null&&e!==void 0?e:this._categoryField)!==null&&i!==void 0?i:ds},getRawData:()=>this.getRawData()}),H(this._spec.maxDepth)&&(this._maxDepth=this._spec.maxDepth-1)}initData(){super.initData(),this.getViewData()&&this._spec.drill&&this.initDrillableData(this._dataSet)}compile(){super.compile(),this._runTreemapTransform()}_runTreemapTransform(t=!1){var e,i,s,r;const a=this._data.getProduct();a&&a.transform([{type:"treemap",nameField:this._categoryField,valueField:this._valueField,x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2,maxDepth:this._maxDepth,gapWidth:this._spec.gapWidth,padding:this._spec.nodePadding,splitType:this._spec.splitType,aspectRatio:this._spec.aspectRatio,labelPadding:!((e=this._spec.nonLeafLabel)===null||e===void 0)&&e.visible?(i=this._spec.nonLeafLabel)===null||i===void 0?void 0:i.padding:0,labelPosition:(s=this._spec.nonLeafLabel)===null||s===void 0?void 0:s.position,minVisibleArea:(r=this._spec.minVisibleArea)!==null&&r!==void 0?r:10,minChildrenVisibleArea:this._spec.minChildrenVisibleArea,minChildrenVisibleSize:this._spec.minChildrenVisibleSize,flatten:!0},{type:"map",callback:o=>(o&&[cr,"name"].forEach(l=>{o[l]=o.datum[o.depth][this._categoryField]}),o)}]),t&&this.getCompiler().renderNextTick()}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(vt(this._rawData.dataSet,"addVChartProperty",Mh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:Jx.bind(this),call:fm}}))}getRawDataStatisticsByField(t,e){var i;if(this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]&&this._rawData){const s=OC([this._rawData],{fields:[{key:t,operations:e?["min","max"]:["values"]}]})[t];this._rawStatisticsCache[t]=$((i=this._rawStatisticsCache[t])!==null&&i!==void 0?i:{},s)}return this._rawStatisticsCache[t]}_createHierarchyDataStatistics(t,e){vt(this._dataSet,"hierarchyDimensionStatistics",OC),vt(this._dataSet,"flatten",wu);const i=new Gt(this._dataSet,{name:t});return i.parse(e,{type:"dataview"}),i.transform({type:"hierarchyDimensionStatistics",options:{fields:()=>{const s=this.getStatisticFields();return this._seriesField&&this._seriesField!==this._categoryField&&s.push({key:this._seriesField,operations:["values"]}),s}}},!1),i}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Rc,operations:["max","min","values"]},{key:cr,operations:["values"]}])}initMark(){var t,e,i,s;const r=this._createMark(Cs.mark.nonLeaf,{isSeriesMark:!0,stateSort:(t=this._spec.nonLeaf)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.nonLeaf)===null||e===void 0?void 0:e.customShape});r&&(r.setTransform([{type:"filter",callback:o=>!this._shouldFilterElement(o,"nonLeaf")}]),this._nonLeafMark=r);const a=this._createMark(Cs.mark.leaf,{isSeriesMark:!0,stateSort:(i=this._spec.leaf)===null||i===void 0?void 0:i.stateSort},{setCustomizedShape:(s=this._spec.leaf)===null||s===void 0?void 0:s.customShape});a&&(a.setTransform([{type:"filter",callback:o=>!this._shouldFilterElement(o,"leaf")}]),this._leafMark=a)}initMarkStyle(){this._initLeafMarkStyle(),this._initNonLeafMarkStyle()}_initLeafMarkStyle(){this._leafMark&&this.setMarkStyle(this._leafMark,{x:t=>t.x0,y:t=>t.y0,x1:t=>t.x1,y1:t=>t.y1,fill:this.getColorAttribute()},it.STATE_NORMAL,Z.Series)}_initNonLeafMarkStyle(){this._nonLeafMark&&this.setMarkStyle(this._nonLeafMark,{x:t=>t.x0,y:t=>t.y0,x1:t=>t.x1,y1:t=>t.y1,fill:this.getColorAttribute()},it.STATE_NORMAL,Z.Series)}initLabelMarkStyle(t){t&&(this._labelMark=t,t.setRule("treemap"),this.setMarkStyle(t,{x:e=>(e.x0+e.x1)/2,y:e=>(e.y0+e.y1)/2,text:e=>{var i;return(i=e.datum[e.depth])===null||i===void 0?void 0:i[this.getDimensionField()[0]]},maxLineWidth:e=>e.x1===e.x0?Number.MIN_VALUE:e.x1-e.x0},it.STATE_NORMAL,Z.Series),t.getTextType()==="rich"&&this.setMarkStyle(t,{maxWidth:e=>Math.abs(e.x0-e.x1),maxHeight:e=>Math.abs(e.y0-e.y1),ellipsis:!0},it.STATE_NORMAL,Z.Series))}initNonLeafLabelMarkStyle(t){t&&(this._nonLeafLabelMark=t,t.setRule("treemap"),this.setMarkStyle(t,{x:e=>e.labelRect?(e.labelRect.x0+e.labelRect.x1)/2:(e.x0+e.x1)/2,y:e=>e.labelRect?(e.labelRect.y0+e.labelRect.y1)/2:(e.y0+e.y1)/2,text:e=>{var i;return(i=e.datum[e.depth])===null||i===void 0?void 0:i[this.getDimensionField()[0]]},maxLineWidth:e=>e.x1===e.x0?Number.MIN_VALUE:e.x1-e.x0},it.STATE_NORMAL,Z.Series),t.getTextType()==="rich"&&this.setMarkStyle(t,{maxWidth:e=>Math.abs(e.x0-e.x1),maxHeight:e=>Math.abs(e.y0-e.y1),ellipsis:!0},it.STATE_NORMAL,Z.Series))}initAnimation(){this.getMarksInType("rect").forEach(t=>{var e;t.setAnimationConfig(It((e=D.getAnimationInKey("treemap"))===null||e===void 0?void 0:e(),Nt(t.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.roam&&(this.initDragEventOfSeries(this),this.event.on("panmove",t=>{this.handlePan(t)}),this.initZoomEventOfSeries(this),this.event.on("zoom",t=>{this.handleZoom(t)})),this._spec.drill&&this.bindDrillEvent()}_getDataIdKey(){return"key"}initTooltip(){this._tooltipHelper=new jit(this),this._leafMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._leafMark),this._nonLeafMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nonLeafMark)}_shouldFilterElement(t,e){const i=t.isLeaf;return e==="leaf"?!i:i}handlePan(t){const{delta:e}=t;if(e[0]===0&&e[1]===0)return;this._matrix.reset(),this._matrix.translate(e[0],e[1]);const{a:i,b:s,c:r,d:a,e:o,f:l}=this._matrix;this._matrix.multiply(i,s,r,a,o,l),this._viewBox.transformWithMatrix(this._matrix),this._runTreemapTransform(!0)}handleZoom(t){const{scale:e,scaleCenter:i}=t;if(e===1)return;this._matrix.reset();const{x:s,y:r}=i;this._matrix.translate(s,r),this._matrix.scale(e,e),this._matrix.translate(-s,-r);const{a,b:o,c:l,d:h,e:d,f:c}=this._matrix;this._matrix.multiply(a,o,l,h,d,c),this.disableMarkAnimation(),this.event.on(ut.AFTER_DO_RENDER,this._enableAnimationHook),this._viewBox.transformWithMatrix(this._matrix),this._runTreemapTransform(!0)}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this.getLayoutRect().width,this.getLayoutRect().height),this._runTreemapTransform()}enableMarkAnimation(){this.getMarks().forEach(t=>{var e;(e=t.getProduct().animate)===null||e===void 0||e.enable()}),[this._labelMark,this._nonLeafLabelMark].forEach(t=>{t&&t.getComponent()&&t.getComponent().getProduct().getGroupGraphicItem().enableAnimation()}),this.event.off(ut.AFTER_DO_RENDER,this._enableAnimationHook)}disableMarkAnimation(){this.getMarks().forEach(t=>{var e;(e=t.getProduct().animate)===null||e===void 0||e.disable()}),[this._labelMark,this._nonLeafLabelMark].forEach(t=>{t&&t.getComponent()&&t.getComponent().getProduct().getGroupGraphicItem().disableAnimation()})}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._nonLeafMark,this._leafMark]}getMarkData(t){return t!=null&&t.datum?t.datum[t.datum.length-1]:t}}Cs.type=Y.treemap,Cs.mark=Hit,Cs.transformerConstructor=YI,se(Cs,fS),se(Cs,oS);const Git=()=>{z9(),j9(),Cr(),dn(),Wit(),Tr(),lit(),D.registerSeries(Cs.type,Cs)},Nit=Object.assign(Object.assign({},cS),{segment:{name:"segment",type:"arc"},track:{name:"track",type:"arc"}}),Uit=Object.assign(Object.assign({},we),{pin:{name:"pin",type:"path"},pinBackground:{name:"pinBackground",type:"path"},pointer:{name:"pointer",type:["path","rect"]}}),$it=n=>({channel:{angle:{from:n.startAngle+Math.PI/2}}}),Yit={type:"fadeIn"};function Xit(n,t){return t==="fadeIn"?Yit:$it(n)}const Kit=()=>{D.registerAnimation("gaugePointer",(n,t)=>{const e=Xit(n,t);return{appear:e,enter:e,disappear:{type:"fadeOut"}}})};class XI extends Vi{constructor(){super(...arguments),this._supportStack=!1}}class qit extends Hi{enableByType(t){return t!=="dimension"}}class ur extends Ph{constructor(){super(...arguments),this.type=Y.gaugePointer,this.transformerConstructor=XI,this._pinMark=null,this._pointerMark=null,this._pinBackgroundMark=null}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setRadiusField(this._spec.radiusField),this._pointerType=((t=this._spec.pointer)===null||t===void 0?void 0:t.type)==="rect"?"rect":"path"}initMark(){this._pinBackgroundMark=this._createMark(ur.mark.pinBackground),this._pointerMark=this._createMark(Object.assign(Object.assign({},ur.mark.pointer),{type:this._pointerType}),{isSeriesMark:!0}),this._pinMark=this._createMark(ur.mark.pin)}initMarkStyle(){this.initPinBackgroundMarkStyle(),this.initPointerMarkStyle(),this.initPinMarkStyle()}initGroups(){}initPointerMarkStyle(){const t=this._pointerMark,e=this._spec.pointer;t&&(this.setMarkStyle(t,{x:i=>{var s,r;const{x:a}=this._getPointerAnchor(i,e);return a-this._getPointerWidth()*((r=(s=e==null?void 0:e.center)===null||s===void 0?void 0:s[0])!==null&&r!==void 0?r:0)},y:i=>{var s,r;const{y:a}=this._getPointerAnchor(i,e);return a-this._getPointerHeight(i)*((r=(s=e==null?void 0:e.center)===null||s===void 0?void 0:s[1])!==null&&r!==void 0?r:0)},anchor:i=>{const{x:s,y:r}=this._getPointerAnchor(i,e);return[s,r]},fill:this.getColorAttribute(),zIndex:200}),this._pointerType==="path"?this.setMarkStyle(t,{scaleX:this._getPointerWidth.bind(this),scaleY:this._getPointerHeight.bind(this),angle:i=>this._getPointerAngle(i)+Math.PI/2}):this.setMarkStyle(t,{width:this._getPointerWidth.bind(this),height:this._getPointerHeight.bind(this),angle:i=>this._getPointerAngle(i)-Math.PI/2}))}initTooltip(){this._tooltipHelper=new qit(this),this._pointerMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pointerMark)}_getPointerAnchor(t,e){var i;return(i=e.isOnCenter)===null||i===void 0||i?this.angleAxisHelper.center():this.radiusAxisHelper.coordToPoint({radius:this._innerRadius*this._computeLayoutRadius(),angle:this.angleAxisHelper.dataToPosition([t[this._angleField[0]]])})}_getPointerWidth(){return this._spec.pointer.width*this._computeLayoutRadius()}_getPointerHeight(t){var e,i;const s=this._spec.pointer,r=this._radiusField[0];return C(this.radiusAxisHelper)&&C(r)?this.radiusAxisHelper.dataToPosition([t[r]])-((e=s==null?void 0:s.innerPadding)!==null&&e!==void 0?e:0)-((i=s==null?void 0:s.outerPadding)!==null&&i!==void 0?i:10):s.height*this._computeLayoutRadius()}_getPointerAngle(t){const e=this.angleAxisHelper.getScale().domain(),i=Fe(e),s=Ze(e),r=be(t[this._angleField[0]],s,i);return this.angleAxisHelper.dataToPosition([r])}_getRotatedPointerCenterOffset(t){var e,i,s,r;const a=this._spec.pointer,o=this._getPointerWidth()*((i=(e=a==null?void 0:a.center)===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:0),l=-this._getPointerHeight(t)*((r=(s=a==null?void 0:a.center)===null||s===void 0?void 0:s[1])!==null&&r!==void 0?r:0),h=this._getPointerAngle(t)-Math.PI/2,d=Math.cos(h),c=Math.sin(h);return{x:o*d+l*c,y:-(l*d-o*c)}}initPinBackgroundMarkStyle(){const t=this._pinBackgroundMark,e=this._spec.pinBackground;t&&this.setMarkStyle(t,{x:i=>this._getPointerAnchor(i,e).x,y:i=>this._getPointerAnchor(i,e).y,scaleX:()=>e.width*this._computeLayoutRadius(),scaleY:()=>e.height*this._computeLayoutRadius(),fill:this.getColorAttribute(),zIndex:100})}initPinMarkStyle(){const t=this._pinMark,e=this._spec.pin;t&&this.setMarkStyle(t,{x:i=>this._getPointerAnchor(i,e).x,y:i=>this._getPointerAnchor(i,e).y,scaleX:()=>e.width*this._computeLayoutRadius(),scaleY:()=>e.height*this._computeLayoutRadius(),fill:this.getColorAttribute(),zIndex:300})}initInteraction(){this._parseInteractionConfig(this._pointerMark?[this._pointerMark]:[])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._pointerMark.setAnimationConfig(It((i=D.getAnimationInKey("gaugePointer"))===null||i===void 0?void 0:i({startAngle:this._startAngle},s),Nt("pointer",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}ur.type=Y.gaugePointer,ur.mark=Uit,ur.transformerConstructor=XI;const Zit=()=>{D.registerSeries(ur.type,ur),aS(),Cr(),Kit(),Mu(),Ch()};class KI extends Vi{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"segment")}}class fa extends Ph{constructor(){super(...arguments),this.type=Y.gauge,this.transformerConstructor=KI,this._segmentMark=null,this._trackMark=null,this._padAngle=0}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._padAngle=te((t=this._spec.padAngle)!==null&&t!==void 0?t:0)}initData(){var t;super.initData(),vt(this._option.dataSet,"spiltSegment",(e,i)=>{const s=e.slice();return s.sort((r,a)=>r[this._angleField[0]]-a[this._angleField[0]]),s.forEach((r,a)=>{r[C0]=r[this._angleField[0]],r[Cg]=a>0?s[a-1][C0]:void 0}),s}),(t=this.getViewData())===null||t===void 0||t.transform({type:"spiltSegment"},!1)}initMark(){super.initMark(),this._trackMark=this._createMark(fa.mark.track,{parent:this._arcGroupMark,dataView:!1}),this._segmentMark=this._createMark(fa.mark.segment,{parent:this._arcGroupMark,isSeriesMark:!0})}initMarkStyle(){super.initMarkStyle(),this.initTrackMarkStyle(),this.initSegmentMarkStyle()}initSegmentMarkStyle(){var t;const e=this._segmentMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._getAngleValueStart.bind(this),endAngle:this._getAngleValueEnd.bind(this),innerRadius:()=>{var i;return this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0)},outerRadius:()=>{var i,s;return this._computeLayoutRadius()*((s=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&s!==void 0?s:1)},cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:200,forceShowCap:!0})}initTooltip(){super.initTooltip(),this._segmentMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._segmentMark)}initTrackMarkStyle(){var t;const e=this._trackMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._startAngle,endAngle:this._endAngle,innerRadius:()=>{var i;return this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0)},outerRadius:()=>{var i,s;return this._computeLayoutRadius()*((s=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&s!==void 0?s:1)},cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,zIndex:100})}_getAngleValueStartWithoutMask(t){const e=this._getAngleValueStartWithoutPadAngle(t),i=this._getAngleValueEndWithoutPadAngle(t);return Gl(e,(e+i)/2)(e+(i>e?1:-1)*Math.abs(this._padAngle/2))}_getAngleValueEndWithoutMask(t){const e=this._getAngleValueStartWithoutPadAngle(t),i=this._getAngleValueEndWithoutPadAngle(t);return Gl(i,(e+i)/2)(i-(i>e?1:-1)*Math.abs(this._padAngle/2))}_getAngleValueStartWithoutPadAngle(t){return C(t[Cg])?this.angleAxisHelper.dataToPosition([t[Cg]]):this._startAngle}_getAngleValueEndWithoutPadAngle(t){return this.angleAxisHelper.dataToPosition([t[C0]])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._segmentMark.setAnimationConfig(It((i=D.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},s),Nt("segment",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}fa.type=Y.gauge,fa.mark=Nit,fa.transformerConstructor=KI;const Jit=()=>{D.registerSeries(fa.type,fa),Uo(),kI(),Ch()};class Jc extends jL{constructor(){super(...arguments),this.type=Jc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{padding:0})}}Jc.type="cell";const Qit=()=>{D.registerMark(Jc.type,Jc),Q6(),eq()};function tnt(n){return n===!1?{}:{type:"fadeIn"}}const ent=()=>{D.registerAnimation("heatmap",(n,t)=>Object.assign(Object.assign({},mm),{appear:tnt(t)}))};class int extends Hi{enableByType(t){return t!=="dimension"}}const nnt=Object.assign(Object.assign({},we),{cell:{name:"cell",type:"cell"},cellBackground:{name:"cellBackground",type:"cell"}});class qI extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"cell")}}class gr extends Xn{constructor(){super(...arguments),this.type=Y.heatmap,this.transformerConstructor=qI}getFieldValue(){return this._fieldValue}setFieldValue(t){this._fieldValue=j(t)}setAttrFromSpec(){super.setAttrFromSpec(),this.setFieldValue(this._spec.valueField)}initMark(){var t,e,i,s;const r={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._cellMark=this._createMark(gr.mark.cell,{isSeriesMark:!0,stateSort:(t=this._spec.cell)===null||t===void 0?void 0:t.stateSort},Object.assign(Object.assign({},r),{setCustomizedShape:(e=this._spec.cell)===null||e===void 0?void 0:e.customShape,morph:Mr(this._spec,gr.mark.cell.name),morphElementKey:this.getDimensionField()[0]})),this._backgroundMark=this._createMark(gr.mark.cellBackground,{stateSort:(i=this._spec.cellBackground)===null||i===void 0?void 0:i.stateSort},Object.assign(Object.assign({},r),{setCustomizedShape:(s=this._spec.cellBackground)===null||s===void 0?void 0:s.customShape}))}initMarkStyle(){this.initCellMarkStyle(),this.initCellBackgroundMarkStyle()}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getMeasureField()[0]]})}initCellMarkStyle(){this.setMarkStyle(this._cellMark,{x:t=>this.dataToPositionX(t),y:t=>this.dataToPositionY(t),size:()=>[this.getCellSize(this._xAxisHelper),this.getCellSize(this._yAxisHelper)],fill:this.getColorAttribute()},"normal",Z.Series)}initCellBackgroundMarkStyle(){var t,e,i;const s=Yi((i=(e=(t=this._spec.cellBackground)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.padding)!==null&&i!==void 0?i:0);this.setMarkStyle(this._backgroundMark,{x:r=>{const a=this.getCellSize(this._xAxisHelper);return this.dataToPositionX(r)-a/2+s[3]},y:r=>{const a=this.getCellSize(this._yAxisHelper);return this.dataToPositionY(r)-a/2+s[0]},width:()=>this.getCellSize(this._xAxisHelper)-s[1]-s[3],height:()=>this.getCellSize(this._yAxisHelper)-s[0]-s[2]},"normal",Z.Series)}getColorAttribute(){var t;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:this.getFieldValue[0]}}initInteraction(){this._parseInteractionConfig(this._cellMark?[this._cellMark]:[])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,r=Ia(this);this._cellMark.setAnimationConfig(It((i=D.getAnimationInKey("heatmap"))===null||i===void 0?void 0:i(s),Nt("cell",this._spec,this._markAttributeContext),r))}getCellSize(t){var e,i;return(i=(e=t.getBandwidth)===null||e===void 0?void 0:e.call(t,0))!==null&&i!==void 0?i:6}initTooltip(){this._tooltipHelper=new int(this),this._cellMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._cellMark)}getDefaultShapeType(){return"square"}getDimensionField(){return[].concat(this.fieldX,this.fieldY)}getMeasureField(){return this.getFieldValue()}getActiveMarks(){return[this._cellMark]}}gr.type=Y.heatmap,gr.mark=nnt,gr.transformerConstructor=qI;const snt=()=>{dn(),Qit(),ent(),hn(),ln(),D.registerSeries(gr.type,gr)},rnt=Object.assign(Object.assign({},we),{nodePoint:{name:"nodePoint",type:"symbol"},ripplePoint:{name:"ripplePoint",type:"ripple"},centerPoint:{name:"centerPoint",type:"symbol"},centerLabel:{name:"centerLabel",type:"text"}}),ZI=`${_t}_CORRELATION_X`,JI=`${_t}_CORRELATION_Y`,QI=`${_t}_CORRELATION_SIZE`,ant=(n,t)=>{var e,i,s,r,a,o,l,h,d,c,u,g,p,_,f;if(!n||!(t!=null&&t.view)||!U(n))return n;const m=t.view();if(m.x1-m.x0==0||m.y1-m.y0==0||m.x1-m.x0==-1/0||m.x1-m.x0==1/0||m.y1-m.y0==-1/0||m.y1-m.y0==1/0)return n;const v=te((e=t.startAngle)!==null&&e!==void 0?e:-90),y=te((i=t.endAngle)!==null&&i!==void 0?i:270),b=Math.max((m.x1-m.x0)/2,(m.y1-m.y0)/2),x=Qn((s=t.innerRadius)!==null&&s!==void 0?s:0,b),S=Qn(t.outerRadius,b),A=[J((r=t.center)===null||r===void 0?void 0:r[0])?t.center[0]:m.x0+Qn((o=(a=t.center)===null||a===void 0?void 0:a[0])!==null&&o!==void 0?o:"50%",m.x1-m.x0),J((l=t.center)===null||l===void 0?void 0:l[1])?t.center[1]:m.y0+Qn((d=(h=t.center)===null||h===void 0?void 0:h[1])!==null&&d!==void 0?d:"50%",m.y1-m.y0)],k=Ds(t.field),T=n.map(k),[w,M]=Mk(T),R=w===M?W=>(x+S)/2:W=>x+(S-x)*(W-w)/(M-w),O=P(t.radiusField)?k:Ds(t.radiusField),L=(u=(c=t==null?void 0:t.radiusRange)===null||c===void 0?void 0:c[1])!==null&&u!==void 0?u:5;let E=W=>L;if(O){const[W,at]=O!==k?Mk(n.map(O)):[w,M],ot=(p=(g=t.radiusRange)===null||g===void 0?void 0:g[0])!==null&&p!==void 0?p:5,dt=(f=(_=t.radiusRange)===null||_===void 0?void 0:_[1])!==null&&f!==void 0?f:5;W!==at&&(E=nt=>ot+(dt-ot)*(O(nt)-W)/(at-W))}const B=Math.min(v,y),I=Math.max(v,y),F=ont(B,I,n.length),z=[],V=(I-B)/60;return n.forEach((W,at)=>{const ot=R(T[at]),dt=E(W);let nt,st,et=F[at];for(let K=0;K<60&&(nt=A[0]+ot*Math.cos(et),st=A[1]+ot*Math.sin(et),lnt({x:nt,y:st,size:dt},z)||nt-dtm.x1||st-dtm.y1);K++)K<59&&(et+=V,et>I?et=B:et{let i=0,s=Math.max(Math.ceil(2*(t-n)/Math.PI),2),r=(t-n)/s,a=0,o=1,l=0,h=0;const d=[];let c=n;for(;l=2&&(r/=2,s*=2));return d},lnt=(n,t)=>!(!t||!t.length)&&t.some(e=>Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2){if(!n||!U(n))return[];const{keyword:e,categoryField:i}=t,s=n[0].latestData[0];return{[i]:e,[Mi]:s==null?void 0:s[Mi],[sn]:s==null?void 0:s[sn]}};class Qc extends Ci{constructor(){super(...arguments),this.type=Qc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x:0,y:0,ripple:0})}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId();this._product=e.glyph("ripplePoint",t??e.rootMark).id(i),this._compiledProductId=i}}Qc.type="ripple";const tD=()=>{D.registerMark(Qc.type,Qc),h9()},dnt=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},cnt=()=>{D.registerAnimation("correlation",(n,t)=>Object.assign({appear:dnt(0,t)},Qx))};class eD extends Vi{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nodePoint"),this._addMarkLabelSpec(t,"centerPoint","centerLabel")}}class pr extends Tu{constructor(){super(...arguments),this.type=Y.correlation,this.transformerConstructor=eD,this._viewBox=new wi}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}getSeriesField(){return this._seriesField}setSeriesField(t){C(t)&&(this._seriesField=t)}getSizeField(){return this._sizeField}setSizeField(t){C(t)&&(this._sizeField=t)}getSizeRange(){return this._sizeRange}setSizeRange(t){C(t)&&(this._sizeRange=t)}setAttrFromSpec(){super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField(this._spec.seriesField),this.setSizeField(this._spec.sizeField),this.setSizeRange(this._spec.sizeRange)}initData(){var t,e,i;if(super.initData(),!this._data)return;vt(this._dataSet,"correlation",ant);const s=new ya;dr(s,"dataview",vf),vt(s,"correlationCenter",hnt);const r=new Gt(s,{name:`${this.type}_${this.id}_center`});r.parse([this.getViewData()],{type:"dataview"}),r.transform({type:"correlationCenter",options:{keyword:(i=(e=(t=this._spec.centerLabel)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.text)!==null&&i!==void 0?i:"",categoryField:this._spec.categoryField}}),this._centerSeriesData=new js(this._option,r)}compileData(){var t;super.compileData(),(t=this._centerSeriesData)===null||t===void 0||t.compile()}_statisticViewData(){super._statisticViewData(),this._data.getDataView().transform({type:"correlation",options:{view:()=>({x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2}),field:this._spec.valueField,radiusRange:this._spec.sizeRange,radiusField:this._spec.sizeField,center:[this._spec.centerX,this._spec.centerY],innerRadius:this._spec.innerRadius,outerRadius:this._spec.outerRadius,startAngle:this._spec.startAngle,endAngle:this._spec.endAngle}})}initMark(){var t,e,i,s;const r=this._createMark(pr.mark.nodePoint,{groupKey:this._seriesField,isSeriesMark:!0,key:Mi,stateSort:(t=this._spec.nodePoint)===null||t===void 0?void 0:t.stateSort},{setCustomizedShape:(e=this._spec.nodePoint)===null||e===void 0?void 0:e.customShape});r&&(r.setMarkConfig({zIndex:ee.Node}),this._nodePointMark=r);const a=this._createMark(pr.mark.ripplePoint,{key:Mi,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId()});a&&(this._ripplePointMark=a);const o=this._createMark(pr.mark.centerPoint,{key:Mi,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId(),stateSort:(i=this._spec.centerPoint)===null||i===void 0?void 0:i.stateSort},{setCustomizedShape:(s=this._spec.centerPoint)===null||s===void 0?void 0:s.customShape});o&&(o.setMarkConfig({zIndex:ee.Node}),this._centerPointMark=o)}initMarkStyle(){this._initNodePointMarkStyle(),this._initRipplePointMarkStyle(),this._initCenterPointMarkStyle()}_initNodePointMarkStyle(){var t,e,i,s;const r=this._nodePointMark;if(!r)return;const a=(e=(t=this._spec.nodePoint)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this.setMarkStyle(r,{x:o=>o[ZI],y:o=>o[JI],size:o=>o[QI],fill:(i=a.fill)!==null&&i!==void 0?i:this.getColorAttribute(),fillOpacity:(s=a.fillOpacity)!==null&&s!==void 0?s:1,lineWidth:0},it.STATE_NORMAL,Z.Series)}_initRipplePointMarkStyle(){var t,e,i,s,r;const a=this._ripplePointMark;if(!a)return;const o=(e=(t=this._spec.ripplePoint)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this.setMarkStyle(a,{x:()=>{var l;return(l=this._spec.centerX)!==null&&l!==void 0?l:(this._viewBox.x1+this._viewBox.x2)/2},y:()=>{var l;return(l=this._spec.centerY)!==null&&l!==void 0?l:(this._viewBox.y1+this._viewBox.y2)/2},size:()=>Math.max(this._viewBox.x2-this._viewBox.x1,this._viewBox.y2-this._viewBox.y1)/2,fill:(i=o.fill)!==null&&i!==void 0?i:this.getColorAttribute(),opacity:(s=o.fillOpacity)!==null&&s!==void 0?s:.2,ripple:(r=o.ripple)!==null&&r!==void 0?r:0},it.STATE_NORMAL,Z.Series)}_initCenterPointMarkStyle(){var t,e,i,s,r,a;const o=this._centerPointMark;o&&this.setMarkStyle(o,{x:()=>{var l;return(l=this._spec.centerX)!==null&&l!==void 0?l:(this._viewBox.x1+this._viewBox.x2)/2},y:()=>{var l;return(l=this._spec.centerY)!==null&&l!==void 0?l:(this._viewBox.y1+this._viewBox.y2)/2},size:()=>.2*Math.max(this._viewBox.x2-this._viewBox.x1,this._viewBox.y2-this._viewBox.y1)/2,fill:(i=(e=(t=this._spec.centerPoint)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.fill)!==null&&i!==void 0?i:this.getColorAttribute(),fillOpacity:(a=(r=(s=this._spec.centerPoint)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1},it.STATE_NORMAL,Z.Series)}initTooltip(){super.initTooltip(),this._nodePointMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nodePointMark)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this._categoryField],z:this.dataToPositionZ.bind(this)},it.STATE_NORMAL,Z.Series)}initAnimation(){var t,e;const i=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;this._nodePointMark.setAnimationConfig(It((e=D.getAnimationInKey("correlation"))===null||e===void 0?void 0:e({},i),Nt("nodePoint",this._spec,this._markAttributeContext)))}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}getActiveMarks(){return[this._nodePointMark,this._centerPointMark]}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this._region.getLayoutRect().width,this._region.getLayoutRect().height),this._rawData.reRunAllTransform(),this.getViewData().reRunAllTransform()}}pr.type=Y.correlation,pr.mark=rnt,pr.transformerConstructor=eD;const unt=()=>{wr(),tD(),D.registerSeries(pr.type,pr),cnt()};class iD extends Kn{_isValidSeries(t){return t===Y.map}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{type:t.type,nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,map:t.map,nameProperty:t.nameProperty,centroidProperty:t.centroidProperty,nameMap:t.nameMap,area:t.area,defaultFillColor:t.defaultFillColor,showDefaultName:t.showDefaultName})}transformSpec(t){super.transformSpec(t),t.region.forEach(i=>{i.coordinate="geo"});const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}}class Od extends Se{constructor(){super(...arguments),this.transformerConstructor=iD,this.type="map",this.seriesType=Y.map}}Od.type="map",Od.seriesType=Y.map,Od.transformerConstructor=iD;const gnt=()=>{XJ(),D.registerChart(Od.type,Od)};class mS extends Kn{_isValidSeries(t){return!this.seriesType||t===this.seriesType}getIndicatorSpec(t){var e,i,s;const r=j(t.indicator),a=(e=t.innerRadius)!==null&&e!==void 0?e:(s=(i=t.series)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.innerRadius;return C(a)&&r.forEach(o=>{P(o.limitRatio)&&(o.limitRatio=a)}),r}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{radius:t.radius,outerRadius:t.outerRadius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,sortDataByAxis:t.sortDataByAxis}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),U(t.dataZoom)&&t.dataZoom.length>0&&t.dataZoom.forEach(e=>{e.filterMode==="axis"&&(e.filterMode="filter")}),this.transformSeriesSpec(t),C(t.indicator)&&(t.indicator=this.getIndicatorSpec(t))}}class nD extends mS{needAxes(){return!1}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{seriesField:t.seriesField,categoryField:t.categoryField||t.radiusField,valueField:t.valueField||t.angleField,startAngle:t.startAngle,endAngle:t.endAngle,radius:t.radius,innerRadius:t.innerRadius,centerX:t.centerX,centerY:t.centerY})}_transformProgressAxisSpec(t,e,i,s,r){var a,o;t.axes||(t.axes=[]);let l=((a=t.axes)!==null&&a!==void 0?a:[]).find(c=>c.orient==="radius"),h=((o=t.axes)!==null&&o!==void 0?o:[]).find(c=>c.orient==="angle");h||(h=e,t.axes.push(h)),l||(l=i,t.axes.push(l)),P(h.type)&&(h.type="linear"),P(l.type)&&(l.type="band");const d=Dc(h,{min:0,max:1});P(h.min)&&(h.min=d.min),P(h.max)&&(h.max=d.max),s&&Object.assign(h,gt({},s,h)),r&&Object.assign(l,gt({},r,l))}}class sD extends mS{needAxes(){return!0}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField||t.angleField,valueField:t.valueField||t.radiusField})}transformSpec(t){var e;if(super.transformSpec(t),this.needAxes()){t.axes||(t.axes=[]);const i={radius:!1,angle:!1};((e=t.axes)!==null&&e!==void 0?e:[]).forEach(s=>{const{orient:r}=s;r==="radius"&&(i.radius=!0),r==="angle"&&(i.angle=!0)}),i.angle||t.axes.push({orient:"angle"}),i.radius||t.axes.push({orient:"radius"})}}}class Pu extends mS{needAxes(){return!1}_getDefaultSeriesSpec(t){var e;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField||t.seriesField,valueField:t.valueField||t.angleField,center:t.center,centerOffset:t.centerOffset,cornerRadius:t.cornerRadius,padAngle:t.padAngle,minAngle:t.minAngle,emptyPlaceholder:t.emptyPlaceholder,emptyCircle:(e=t.emptyPlaceholder)===null||e===void 0?void 0:e.emptyCircle,showAllZero:t.showAllZero,supportNegative:t.supportNegative,layoutRadius:t.layoutRadius})}}class vS extends Se{constructor(){super(...arguments),this.transformerConstructor=Pu}}vS.transformerConstructor=Pu;class Bd extends vS{constructor(){super(...arguments),this.transformerConstructor=Pu,this.type="pie",this.seriesType=Y.pie}}Bd.type="pie",Bd.seriesType=Y.pie,Bd.transformerConstructor=Pu;const pnt=()=>{KQ(),D.registerChart(Bd.type,Bd)};class rD extends Pu{transformSpec(t){super.transformSpec(t),t.series.forEach(e=>{e.type==="pie3d"&&(e.angle3d=t.angle3d)})}}class Ld extends vS{constructor(){super(...arguments),this.transformerConstructor=rD,this.type="pie3d",this.seriesType=Y.pie3d}}Ld.type="pie3d",Ld.seriesType=Y.pie3d,Ld.transformerConstructor=rD;const _nt=()=>{Ta(),qQ(),D.registerChart(Ld.type,Ld)};class aD extends sD{_getDefaultSeriesSpec(t){var e,i,s;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{radius:(e=t.radius)!==null&&e!==void 0?e:v_,outerRadius:(i=t.outerRadius)!==null&&i!==void 0?i:v_,innerRadius:(s=t.innerRadius)!==null&&s!==void 0?s:0,seriesField:t.seriesField,stack:t.stack,percent:t.percent})}transformSpec(t){var e;super.transformSpec(t),((e=t.axes)!==null&&e!==void 0?e:[]).forEach(i=>{["domainLine","grid","label","tick"].forEach(s=>{i[s]||(i[s]={visible:!1})}),i.orient==="angle"&&P(i.bandPosition)&&(i.bandPosition=.5)}),t.crosshair=j(t.crosshair||{}).map(i=>gt({categoryField:{visible:!0,line:{visible:!0,type:"rect"}}},i))}}class Cl extends Se{constructor(){super(...arguments),this.transformerConstructor=aD,this.type="rose",this.seriesType=Y.rose}}Cl.type="rose",Cl.seriesType=Y.rose,Cl.transformerConstructor=aD,se(Cl,Vs);const fnt=()=>{stt(),D.registerChart(Cl.type,Cl)};class oD extends sD{_getDefaultSeriesSpec(t){var e;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{seriesField:t.seriesField,line:t.line,point:t.point,stack:t.stack,percent:t.percent,area:gt({visible:!1},t.area),seriesMark:(e=t.seriesMark)!==null&&e!==void 0?e:"area",activePoint:t.activePoint,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap})}transformSpec(t){var e;super.transformSpec(t),((e=t.axes)!==null&&e!==void 0?e:[]).forEach(i=>{i.orient==="radius"&&(["domainLine","label","tick"].forEach(s=>{i[s]||(i[s]={visible:!1})}),i.grid||(i.grid={visible:!0}))}),t.crosshair=j(t.crosshair||{}).map(i=>gt({categoryField:{visible:!0,line:{visible:!0,type:"line"}}},i))}}class Pl extends Se{constructor(){super(...arguments),this.transformerConstructor=oD,this.type="radar",this.seriesType=Y.radar}}Pl.type="radar",Pl.seriesType=Y.radar,Pl.transformerConstructor=oD,se(Pl,Vs);const mnt=()=>{ctt(),D.registerChart(Pl.type,Pl)};class lD extends Kn{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return delete e.data,e}_transformAxisSpec(t){t.axes&&t.autoBandSize&&t.series.forEach((e,i)=>{var s;if(e.type==="bar"){const r=this._findBandAxisBySeries(e,i,t.axes);if(r&&!r.bandSize&&!r.maxBandSize&&!r.minBandSize){const a=yt(e.autoBandSize)&&(s=e.autoBandSize.extend)!==null&&s!==void 0?s:0,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d}=e;this._applyAxisBandSize(r,a,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d})}}})}transformSpec(t){if(super.transformSpec(t),t.series&&t.series.length){const e=this._getDefaultSeriesSpec(t);t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})})}t.axes&&t.axes.length&&t.axes.forEach(e=>{wt(e,"trimPadding")&>(e,mL(this.type,t))}),this._transformAxisSpec(t)}}class Id extends Se{constructor(){super(...arguments),this.transformerConstructor=lD,this.type="common"}}Id.type="common",Id.transformerConstructor=lD,se(Id,Vs);const vnt=()=>{D.registerChart(Id.type,Id)},fb=12;class hD extends Kn{_getSeriesDataLength(t,e){var i,s;if(e.data){const a=j(e.data)[0];return a instanceof Gt?(i=a.latestData)===null||i===void 0?void 0:i.length:(s=a.values)===null||s===void 0?void 0:s.length}const r=j(t.data).find((a,o)=>e.dataId?a instanceof Gt?a.name===e.dataId:a.id===e.dataId:e.dataIndex===o);return r?r instanceof Gt?r.latestData.length:r.values.length:0}addAttrToComponentSpec(t,e,i){return Array.isArray(t)?t[0][e]=i:t[e]=i,t}addPaddingRow(t,e,i){t.push({index:e,size:i})}addOrientAxes(t,e,i,s){t.push({id:`regionAxesRow${i}`}),e.push({modelId:`axesRow${i}`,col:1,row:i}),s.axes[0].id=`axesRow${i}`,s.axes[0].regionIndex=Array.from(Array(s.series.length),(r,a)=>s.axes[0].orient==="top"?a+1:a)}transformSpec(t){var e,i,s,r,a,o,l,h,d,c,u,g,p,_,f;super.transformSpec(t);let m=0;const v=[],y=[],b=[],x=[],S=[],A=(this._option.getCompiler().getVGrammarView().width(),this._option.getCompiler().getVGrammarView().height());let k=0;if(t!=null&&t.legends){v.push({modelId:`legendRow${m}`,col:1,row:m}),this.addAttrToComponentSpec(t.legends,"id",`legendRow${m}`);const L=j(t.legends);let E=(e=L[0].height)!==null&&e!==void 0?e:40;if(L[0].padding){const B=mr(L[0].padding);E+=Number((i=B==null?void 0:B.bottom)!==null&&i!==void 0?i:0),E+=Number((s=B==null?void 0:B.top)!==null&&s!==void 0?s:0),L[0].offsetY=Number((a=(r=L[0])===null||r===void 0?void 0:r.offsetY)!==null&&a!==void 0?a:0)+Number((o=B==null?void 0:B.top)!==null&&o!==void 0?o:0)}S.push({index:m,size:E}),k+=E,m++}t!=null&&t.dataZoom&&(v.push({modelId:`dataZoomRow${m}`,col:1,row:m}),this.addAttrToComponentSpec(t.dataZoom,"id",`dataZoomRow${m}`),k+=60,m++,this.addPaddingRow(S,m,10),k+=10,m++),k+=60,t.axes!==null&&((h=(l=t==null?void 0:t.axes)===null||l===void 0?void 0:l[0])===null||h===void 0?void 0:h.orient)!=="top"||(this.addOrientAxes(y,v,m,t),m++);const T=t.series.filter(L=>L.type!==Y.link).length,w=(A-k-20*T)/T,M=((d=t==null?void 0:t.appendPadding)===null||d===void 0?void 0:d.left)||0,R=((c=t==null?void 0:t.appendPadding)===null||c===void 0?void 0:c.right)||0;(u=t==null?void 0:t.series)===null||u===void 0||u.forEach(L=>{var E,B;if([Y.bar,Y.line,Y.area,Y.dot].includes(L.type)){if(v.push({modelId:`${L.type}Row${m}`,col:1,row:m}),v.push({modelId:`axesLeftRow${m}`,col:0,row:m}),y.push({id:`${L.type}Row${m}`,clip:!1}),S.push({index:m,size:(L==null?void 0:L.height)||w}),b.push({orient:"left",id:`axesLeftRow${m}`,type:L.type===Y.dot?"band":"linear",visible:L.type!==Y.dot,title:{visible:!0,autoRotate:!1,style:{text:L==null?void 0:L.barTitle,dx:-20,textBaseline:"middle",textAlign:"end"}},grid:{visible:typeof((E=L==null?void 0:L.grid)===null||E===void 0?void 0:E.visible)!="boolean"||((B=L==null?void 0:L.grid)===null||B===void 0?void 0:B.visible),style:(I,F)=>{var z,V,W,at,ot;let dt=0;if(F===0){const nt=(z=L==null?void 0:L.grid)===null||z===void 0?void 0:z.style;dt=(W=(V=nt==null?void 0:nt.lineWidth)!==null&&V!==void 0?V:nt==null?void 0:nt.strokeWidth)!==null&&W!==void 0?W:1}return{lineWidth:dt,stroke:((ot=(at=L==null?void 0:L.grid)===null||at===void 0?void 0:at.style)===null||ot===void 0?void 0:ot.stroke)||"#dfdfdf",lineDash:[0,0]}}},domainLine:{visible:!1},tick:{visible:!1},label:{visible:!1},regionIndex:y.length-1}),L.type===Y.dot){v.push({modelId:`scrollBarRightRow${m}`,col:2,row:m});const I=this._getSeriesDataLength(t,L);let F=0;I&&(F=((L==null?void 0:L.height)||w)/(30*I)),x.push(Object.assign({orient:"right",visible:L.type===Y.dot&&F<1,id:`scrollBarRightRow${m}`,start:0,end:Math.min(F,1),filterMode:"axis",regionIndex:y.length-1,axisId:`axesLeftRow${m}`},j(t==null?void 0:t.scrollBar)[0]))}L.regionIndex=y.length-1,m++,this.addPaddingRow(S,m,(L==null?void 0:L.padding)||20),m++,L.leftAppendPadding=M,L.type===Y.dot&&(L.title.style.dx=-M,L.subTitle.style.dx=-M)}}),this.addPaddingRow(S,m,20),m++,(g=t==null?void 0:t.series)===null||g===void 0||g.forEach(L=>{if(L.type===Y.link){const E=L.dotSeriesIndex+1;v.push({modelId:`${L.type}Row${E}`,col:1,row:E-1}),L.regionIndex=t.series[L.dotSeriesIndex].regionIndex,L.leftAppendPadding=M,L.height=t.series[L.dotSeriesIndex].height,L.clipHeight=t.series[L.dotSeriesIndex].clipHeight}}),t!=null&&t.legends&&this.addAttrToComponentSpec(t.legends,"regionIndex",[y.length-1]),((_=(p=t==null?void 0:t.axes)===null||p===void 0?void 0:p[0])===null||_===void 0?void 0:_.orient)==="bottom"&&(this.addOrientAxes(y,v,m,t),m++);const O={type:"grid",col:4,row:m,colWidth:[{index:0,size:M},{index:2,size:fb},{index:3,size:R}],rowHeight:S,elements:v};t.layout=O,t.region=y,(f=t.axes)===null||f===void 0||f.push(...b),t.scrollBar=x}}var ynt=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{ftt(),btt(),hn(),ln(),D.registerChart(V_.type,V_)};class yS extends fs{transformSpec(t){super.transformSpec(t),t.axes.forEach(e=>e.type="linear")}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{x2Field:t==null?void 0:t.x2Field,y2Field:t==null?void 0:t.y2Field,barMinHeight:t==null?void 0:t.barMinHeight,barBackground:t==null?void 0:t.barBackground})}}class W_ extends Se{constructor(){super(...arguments),this.transformerConstructor=yS}}W_.transformerConstructor=yS,se(W_,Vs);class Om extends yS{transformSpec(t){super.transformSpec(t),La(t)}}class Dd extends W_{constructor(){super(...arguments),this.transformerConstructor=Om,this.type="histogram",this.seriesType=Y.bar}}Dd.type="histogram",Dd.seriesType=Y.bar,Dd.transformerConstructor=Om;const xnt=()=>{ZL(),D.registerChart(Dd.type,Dd)};class Fd extends W_{constructor(){super(...arguments),this.transformerConstructor=Om,this.type="histogram3d",this.seriesType=Y.bar3d}}Fd.type="histogram3d",Fd.seriesType=Y.bar3d,Fd.transformerConstructor=Om;const Snt=()=>{Ta(),JL(),D.registerChart(Fd.type,Fd)};class dD extends nD{_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},s),{cornerRadius:(e=t.cornerRadius)!==null&&e!==void 0?e:0,roundCap:(i=t.roundCap)!==null&&i!==void 0&&i,progress:t.progress,track:t.track,tickMask:t.tickMask})}transformSpec(t){super.transformSpec(t),this._transformProgressAxisSpec(t,{orient:"angle",visible:!1},{orient:"radius",visible:!1},{forceInitTick:t.tickMask&&t.tickMask.visible!==!1})}}class El extends Se{constructor(){super(...arguments),this.transformerConstructor=dD,this.type="circularProgress",this.seriesType=Y.circularProgress}}El.type="circularProgress",El.seriesType=Y.circularProgress,El.transformerConstructor=dD,se(El,Vs);const Ant=()=>{Ttt(),D.registerChart(El.type,El)};class cD extends nD{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},e),{radiusField:t.radiusField,pin:t.pin,pinBackground:t.pinBackground,pointer:t.pointer})}_getDefaultCircularProgressSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{type:Y.circularProgress})}transformSpec(t){var e,i,s,r,a;super.transformSpec(t);let o=(e=t.series)===null||e===void 0?void 0:e.find(l=>l.type===Y.gauge||l.type===Y.circularProgress);P(o)&&(o=(i=t.gauge)!==null&&i!==void 0?i:this._getDefaultCircularProgressSeriesSpec(t),o.type==="circularProgress"&&(P(o.radiusField)&&P(o.categoryField)&&(o.radiusField=(r=(s=t.radiusField)!==null&&s!==void 0?s:t.categoryField)!==null&&r!==void 0?r:t.seriesField),P(o.valueField)&&P(o.angleField)&&(o.valueField=(a=t.valueField)!==null&&a!==void 0?a:t.angleField)),t.series.length===1?t.series.push(o):t.series.forEach(l=>{l.type===o.type&&Object.keys(o).forEach(h=>{h in l||(l[h]=o[h])})})),o.type===Y.circularProgress?this._transformProgressAxisSpec(t,{orient:"angle",visible:!0,domainLine:{visible:!1},grid:{visible:!1}},{orient:"radius",visible:!1},{zIndex:ee.Region+50}):this._transformGaugeAxisSpec(t)}_transformGaugeAxisSpec(t){var e;t.axes||(t.axes=[]);const i={radius:null,angle:null};((e=t.axes)!==null&&e!==void 0?e:[]).forEach(s=>{const{orient:r}=s;r==="radius"&&(i.radius=s),r==="angle"&&(i.angle=s)}),i.angle||(i.angle={orient:"angle",visible:!0},t.axes.push(i.angle)),i.radius||(i.radius={orient:"radius",visible:!1},t.axes.push(i.radius)),P(i.angle.type)&&(i.angle.type="linear"),P(i.radius.type)&&(i.radius.type="linear"),P(i.angle.zIndex)&&(i.angle.zIndex=ee.Region+50)}}class zd extends Se{constructor(){super(...arguments),this.transformerConstructor=cD,this.type="gauge",this.seriesType=Y.gaugePointer}}zd.type="gauge",zd.seriesType=Y.gaugePointer,zd.transformerConstructor=cD;const knt=()=>{Zit(),Jit(),D.registerChart(zd.type,zd)};class Bm extends Kn{transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class bS extends Se{constructor(){super(...arguments),this.transformerConstructor=Bm,this.type="wordCloud",this.seriesType=Y.wordCloud}}bS.transformerConstructor=Bm;class uD extends Bm{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,fontFamilyField:t.fontFamilyField,fontWeightField:t.fontWeightField,fontStyleField:t.fontStyleField,colorHexField:t.colorHexField,colorMode:t.colorMode,colorList:t.colorList,rotateAngles:t.rotateAngles,fontWeightRange:t.fontWeightRange,fontSizeRange:t.fontSizeRange,maskShape:t.maskShape,keepAspect:t.keepAspect,random:t.random,wordCloudConfig:t.wordCloudConfig,wordCloudShapeConfig:t.wordCloudShapeConfig,word:t.word,fillingWord:t.fillingWord,wordMask:t.wordMask}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}}class lo extends bS{constructor(){super(...arguments),this.transformerConstructor=uD,this.type="wordCloud",this.seriesType=Y.wordCloud}}lo.type="wordCloud",lo.seriesType=Y.wordCloud,lo.transformerConstructor=uD;const Tnt=()=>{DI(),D.registerChart(lo.type,lo)},Mnt=()=>{Cet(),DI(),D.registerChart(lo.type,lo)};class gD extends Bm{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,fontFamilyField:t.fontFamilyField,fontWeightField:t.fontWeightField,fontStyleField:t.fontStyleField,colorHexField:t.colorHexField,colorMode:t.colorMode,colorList:t.colorList,rotateAngles:t.rotateAngles,fontWeightRange:t.fontWeightRange,fontSizeRange:t.fontSizeRange,depth_3d:t.depth_3d,maskShape:t.maskShape,keepAspect:t.keepAspect,random:t.random,wordCloudConfig:t.wordCloudConfig,wordCloudShapeConfig:t.wordCloudShapeConfig,word:t.word,fillingWord:t.fillingWord}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}}class ho extends bS{constructor(){super(...arguments),this.transformerConstructor=gD,this.type="wordCloud3d",this.seriesType=Y.wordCloud3d}}ho.type="wordCloud3d",ho.seriesType=Y.wordCloud3d,ho.transformerConstructor=gD;const wnt=()=>{Ta(),FI(),D.registerChart(ho.type,ho)},Cnt=()=>{Ta(),Pet(),Ta(),FI(),D.registerChart(ho.type,ho)};class Lm extends Kn{needAxes(){return!1}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,funnelAlign:t.funnelAlign,funnelOrient:t.funnelOrient,heightRatio:t.heightRatio,shape:t.shape,funnel:t.funnel,transform:t.transform,outerLabel:t.outerLabel,transformLabel:t.transformLabel,isTransform:t.isTransform,maxSize:t.maxSize,minSize:t.minSize,gap:t.gap,isCone:t.isCone,range:t.range}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t);const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}}class jd extends Se{constructor(){super(...arguments),this.transformerConstructor=Lm,this.type="funnel",this.seriesType=Y.funnel}}jd.type="funnel",jd.seriesType=Y.funnel,jd.transformerConstructor=Lm;const Pnt=()=>{Get(),D.registerChart(jd.type,jd)};class Hd extends Se{constructor(){super(...arguments),this.transformerConstructor=Lm,this.type="funnel3d",this.seriesType=Y.funnel3d}}Hd.type="funnel3d",Hd.seriesType=Y.funnel3d,Hd.transformerConstructor=Lm;const Ent=()=>{Ta(),Net(),D.registerChart(Hd.type,Hd)};class pD extends fs{needAxes(){return!1}_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},s),{direction:(e=t.direction)!==null&&e!==void 0?e:"horizontal",cornerRadius:(i=t.cornerRadius)!==null&&i!==void 0?i:0,bandWidth:t.bandWidth,progress:t.progress,track:t.track})}transformSpec(t){var e,i;if(super.transformSpec(t),t.axes||(t.axes=[]),t.direction==="vertical"){let s=null,r=null;((e=t.axes)!==null&&e!==void 0?e:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(s=o),l==="bottom"&&(r=o)}),s||(s={orient:"left",visible:!1},t.axes.push(s)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),P(r.type)&&(r.type="band"),P(s.type)&&(s.type="linear");const a=Dc(s,{min:0,max:1});P(s.min)&&(s.min=a.min),P(s.max)&&(s.max=a.max)}else{let s=null,r=null;((i=t.axes)!==null&&i!==void 0?i:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(s=o),l==="bottom"&&(r=o)}),s||(s={type:"band",orient:"left",visible:!1},t.axes.push(s)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),P(r.type)&&(r.type="linear"),P(s.type)&&(s.type="band");const a=Dc(r,{min:0,max:1});P(r.min)&&(r.min=a.min),P(r.max)&&(r.max=a.max)}}}class Rl extends Se{constructor(){super(...arguments),this.transformerConstructor=pD,this.type="linearProgress",this.seriesType=Y.linearProgress}}Rl.type="linearProgress",Rl.seriesType=Y.linearProgress,Rl.transformerConstructor=pD,se(Rl,Vs);const Rnt=()=>{Btt(),D.registerChart(Rl.type,Rl)};class _D extends fs{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup,barBackground:t.barBackground,barMinHeight:t.barMinHeight,stackCornerRadius:t.stackCornerRadius});return s.bar=t.bar,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s}transformSpec(t){super.transformSpec(t),La(t)}}class Vd extends Se{constructor(){super(...arguments),this.transformerConstructor=_D,this.type="rangeColumn",this.seriesType=Y.rangeColumn}}Vd.type="rangeColumn",Vd.seriesType=Y.rangeColumn,Vd.transformerConstructor=_D;const Ont=()=>{LQ(),D.registerChart(Vd.type,Vd)};class fD extends fs{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barGapInGroup:t.barGapInGroup});return s.bar3d=t.bar3d,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s}}class Wd extends Se{constructor(){super(...arguments),this.transformerConstructor=fD,this.type="rangeColumn3d",this.seriesType=Y.rangeColumn3d}}Wd.type="rangeColumn3d",Wd.seriesType=Y.rangeColumn3d,Wd.transformerConstructor=fD;const Bnt=()=>{Ta(),IQ(),D.registerChart(Wd.type,Wd)};class mD extends Kn{_getDefaultSeriesSpec(t){const e=C(t.startAngle)?t.startAngle:Ox,i=C(t.endAngle)?t.endAngle:e+Ul(2*Math.PI),s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,centerX:t.centerX,centerY:t.centerY,offsetX:t.offsetX,offsetY:t.offsetY,startAngle:e,endAngle:i,innerRadius:t.innerRadius,outerRadius:t.outerRadius,gap:t.gap,labelLayout:t.labelLayout,label:t.label,labelAutoVisible:t.labelAutoVisible,drill:t.drill,drillField:t.drillField}),r=Y.sunburst;return s.type=r,s[r]=t[r],s}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class Gd extends Se{constructor(){super(...arguments),this.transformerConstructor=mD,this.type="sunburst",this.seriesType=Y.sunburst}}Gd.type="sunburst",Gd.seriesType=Y.sunburst,Gd.transformerConstructor=mD;const Lnt=()=>{pit(),D.registerChart(Gd.type,Gd)};class vD extends Kn{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,layoutPadding:t.layoutPadding,label:t.label,circlePacking:t.circlePacking,drill:t.drill,drillField:t.drillField}),i=Y.circlePacking;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class Nd extends Se{constructor(){super(...arguments),this.transformerConstructor=vD,this.type="circlePacking",this.seriesType=Y.circlePacking}}Nd.type="circlePacking",Nd.seriesType=Y.circlePacking,Nd.transformerConstructor=vD;const Int=()=>{bit(),D.registerChart(Nd.type,Nd)};class yD extends Kn{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,aspectRatio:t.aspectRatio,splitType:t.splitType,maxDepth:t.maxDepth,gapWidth:t.gapWidth,nodePadding:t.nodePadding,minVisibleArea:t.minVisibleArea,minChildrenVisibleArea:t.minChildrenVisibleArea,minChildrenVisibleSize:t.minChildrenVisibleSize,roam:t.roam,drill:t.drill,drillField:t.drillField,leaf:t.leaf,nonLeaf:t.nonLeaf,nonLeafLabel:t.nonLeafLabel}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class Ud extends Se{constructor(){super(...arguments),this.transformerConstructor=yD,this.type="treemap",this.seriesType=Y.treemap}}Ud.type="treemap",Ud.seriesType=Y.treemap,Ud.transformerConstructor=yD;const Dnt=()=>{Git(),D.registerChart(Ud.type,Ud)};class bD extends km{transformSpec(t){super.transformSpec(t),t.legends&&j(t.legends).forEach(e=>{e.select=!1,e.hover=!1,e.filter=!1}),La(t)}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{bar:t.bar,stackLabel:t.stackLabel,leaderLine:t.leaderLine,total:t.total})}}class $d extends Xr{constructor(){super(...arguments),this.transformerConstructor=bD,this.type="waterfall",this.seriesType=Y.waterfall}}$d.type="waterfall",$d.seriesType=Y.waterfall,$d.transformerConstructor=bD;const Fnt=()=>{SQ(),D.registerChart($d.type,$d)};class xD extends fs{_getDefaultSeriesSpec(t){var e;const i=[t.maxField,t.medianField,t.q1Field,t.q3Field,t.minField,t.outliersField],s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{boxPlot:t.boxPlot,direction:(e=t.direction)!==null&&e!==void 0?e:"vertical",minField:t.minField,maxField:t.maxField,q1Field:t.q1Field,medianField:t.medianField,q3Field:t.q3Field,outliersField:t.outliersField,outliersStyle:t.outliersStyle});return s[s.direction==="horizontal"?"xField":"yField"]=i,s}transformSpec(t){super.transformSpec(t),t.axes||(t.axes=[{orient:"bottom"},{orient:"left"}]),La(t)}}class Yd extends Se{constructor(){super(...arguments),this.transformerConstructor=xD,this.type="boxPlot",this.seriesType=Y.boxPlot}}Yd.type="boxPlot",Yd.seriesType=Y.boxPlot,Yd.transformerConstructor=xD;const znt=()=>{wQ(),D.registerChart(Yd.type,Yd)};class SD extends Kn{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,sourceField:t.sourceField,targetField:t.targetField,direction:t.direction,nodeAlign:t.nodeAlign,crossNodeAlign:t.crossNodeAlign,nodeGap:t.nodeGap,nodeWidth:t.nodeWidth,linkWidth:t.linkWidth,minStepWidth:t.minStepWidth,minNodeHeight:t.minNodeHeight,minLinkHeight:t.minLinkHeight,dropIsolatedNode:t.dropIsolatedNode,nodeHeight:t.nodeHeight,linkHeight:t.linkHeight,equalNodeHeight:t.equalNodeHeight,linkOverlap:t.linkOverlap,iterations:t.iterations,nodeKey:t.nodeKey,linkSortBy:t.linkSortBy,nodeSortBy:t.nodeSortBy,setNodeLayer:t.setNodeLayer,node:t.node,link:t.link,label:t.label,emphasis:t.emphasis,inverse:t.inverse}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class Xd extends Se{constructor(){super(...arguments),this.transformerConstructor=SD,this.type="sankey",this.seriesType=Y.sankey}_setStateInDatum(t,e,i,s,r){const a=U(i)?i[0]:i,o=a?Object.keys(a):null;this.getRegionsInQuerier(r).forEach(l=>{if(!a)return void l.interaction.clearEventElement(t,!0);let h=!1;l.getSeries().forEach(d=>{var c,u;let g=null;d.getMarksWithoutRoot().forEach(p=>{if(p.type==="text")return;let _=null;const f=p.getProduct();f&&((!s||N(s)&&s(d,p))&&(_=f.elements.find(m=>o.every(v=>{var y;let b=(y=m.getDatum())===null||y===void 0?void 0:y.datum;return U(b)&&(b=b[0]),a[v]==(b==null?void 0:b[v])}))),_&&(h=!0,l.interaction.startInteraction(t,_),(f.id().includes("node")||f.id().includes("link"))&&(g=_)))}),g&&((u=(c=d)._handleEmphasisElement)===null||u===void 0||u.call(c,{item:g}))}),e&&h&&l.interaction.reverseEventElement(t)})}}Xd.type="sankey",Xd.seriesType=Y.sankey,Xd.transformerConstructor=SD;const jnt=()=>{zit(),D.registerChart(Xd.type,Xd)};class AD extends fs{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign({},super._getDefaultSeriesSpec(t));return s.area=t.area,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s.stack=!1,s}transformSpec(t){super.transformSpec(t),La(t)}}class Kd extends Se{constructor(){super(...arguments),this.transformerConstructor=AD,this.type="rangeArea",this.seriesType=Y.rangeArea}}Kd.type="rangeArea",Kd.seriesType=Y.rangeArea,Kd.transformerConstructor=AD;const Hnt=()=>{zQ(),D.registerChart(Kd.type,Kd)};class kD extends fs{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},e),{valueField:t.valueField,cell:t.cell})}}class qd extends Se{constructor(){super(...arguments),this.transformerConstructor=kD,this.type="heatmap",this.seriesType=Y.heatmap}}qd.type="heatmap",qd.seriesType=Y.heatmap,qd.transformerConstructor=kD;const Vnt=()=>{snt(),D.registerChart(qd.type,qd)};class TD extends Kn{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,sizeField:t.sizeField,sizeRange:t.sizeRange,centerX:t.centerX,centerY:t.centerY,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,ripplePoint:t.ripplePoint,centerPoint:t.centerPoint,centerLabel:t.centerLabel,nodePoint:t.nodePoint,label:t.label}),i=Y.correlation;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class Zd extends Se{constructor(){super(...arguments),this.transformerConstructor=TD,this.type="correlation",this.seriesType=Y.correlation}}Zd.type="correlation",Zd.seriesType=Y.correlation,Zd.transformerConstructor=TD;const Wnt=()=>{unt(),D.registerChart(Zd.type,Zd)};function MD(n){var t,e;const i=Object.assign({},n);return ht(n.style)||(i.textStyle=mt(n.style)),ht(n.textStyle)||gt(i.textStyle,mt(n.textStyle)),!((t=n.shape)===null||t===void 0)&&t.style&&mt(i.shape.style),!((e=n.background)===null||e===void 0)&&e.style&&mt(i.background.style),i}var Gnt=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{const e=[],i={},{series:s,seriesField:r}=t;return s().forEach(a=>{const o=r(a);let l;l=o===a.getSeriesField()?a.getSeriesInfoList():a.getSeriesInfoInField(o),l.forEach(h=>{i[h.key]||(i[h.key]=!0,e.push(h))})}),e},$nt=(n,t)=>{var e,i,s;const{series:r,selected:a,field:o,data:l}=t,h=a(),d=l();if(h.length===0&&d.length)return[];if(h.length===d.length)return n;const c={};h.forEach(g=>{c[g]=!0});const u=(e=o())!==null&&e!==void 0?e:sn;return U(n)&&(!((i=n[0])===null||i===void 0)&&i.nodes)?(n[0].nodes=n[0].nodes.filter(g=>c[g.key]===!0),!((s=n[0])===null||s===void 0)&&s.links&&(n[0].links=n[0].links.filter(g=>c[g.source]===!0&&c[g.target]===!0))):C(u)&&(n=n.filter(g=>c[r.getSeriesFieldValue(g,u)]===!0)),n};class xS extends qi{constructor(){super(...arguments),this.layoutType="normal",this.layoutZIndex=ee.Legend,this.layoutLevel=us.Legend,this.specKey="legends",this._orient="left",this._visible=!0,this._position="middle",this._preSelectedData=[],this._selectedData=[],this.effect={onSelectedDataChange:()=>{Te(this._regions,t=>{var e;(e=t.getViewData())===null||e===void 0||e.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Te(this._regions,t=>{t.reFilterViewData()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}}}get orient(){return this._orient}get visible(){return this._visible}get position(){return this._position}getLegendData(){return this._legendData.getLatestData()}getSelectedData(){return this._selectedData}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._orient=Ex(this._spec.orient)?this._spec.orient:"left",this._position=(t=this._spec.position)!==null&&t!==void 0?t:"middle",this._visible=this._spec.visible!==!1;const{regionId:e,regionIndex:i,seriesId:s,seriesIndex:r}=this._spec;C(s)&&(this._seriesUserId=j(s)),C(e)&&(this._regionUserId=j(e)),C(r)&&(this._seriesIndex=j(r)),C(i)&&(this._regionUserIndex=j(i)),this._regions=this._option.getRegionsInUserIdOrIndex(this._regionUserId,this._regionUserIndex)}created(){super.created(),this.initData()}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reRender=!0,(t==null?void 0:t.orient)!==(e==null?void 0:e.orient)?(i.reMake=!0,i):(Jt(e,t)||(i.reCompile=!0),i)}changeRegions(t){}_bindLegendDataChange(){this._preSelectedData=this._selectedData.slice(),this._initSelectedData()}initData(){const t=this._initLegendData();t.target.addListener("change",this._bindLegendDataChange.bind(this)),this._legendData=new Fs(this._option,t),this._initSelectedData(),Te(this._regions,e=>{e.event.on(lt.rawDataUpdate,{filter:({model:i})=>(i==null?void 0:i.id)===e.id},()=>{this._legendData.getDataView().reRunAllTransform()})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}setSelectedData(t){var e,i,s;const r=this._selectedData;P(t)||JSON.stringify(r)===JSON.stringify(t)||(Te(this._regions,a=>{a.legendSelectedFilter&&(t=a.legendSelectedFilter(this,t))},{userId:this._seriesUserId,specIndex:this._seriesIndex}),this._selectedData=[...t],(i=(e=this.effect).onSelectedDataChange)===null||i===void 0||i.call(e),this.event.emit(lt.legendSelectedDataChange,{model:this}),(s=this._legendComponent)===null||s===void 0||s.setSelected(this._selectedData))}afterSetLayoutStartPoint(t){if(super.afterSetLayoutStartPoint(t),this._legendComponent){const{x:e,y:i}=t;H(e*i)&&this._legendComponent.setAttributes({x:e,y:i})}}getBoundsInRect(t,e){if(!this._visible)return this._legendComponent&&this._legendComponent.parent&&(this._legendComponent.parent.removeChild(this._legendComponent),this._legendComponent=null),{x1:0,y1:0,x2:0,y2:0};const i={x1:this.getLayoutStartPoint().x,y1:this.getLayoutStartPoint().y,x2:0,y2:0},s=this._getLegendAttributes(t);if(s.disableTriggerEvent=this._option.disableTriggerEvent,this._legendComponent)Jt(s,this._cacheAttrs)||this._legendComponent.setAttributes(gt({},s,{defaultSelected:this._selectedData}));else{const o=new(this._getLegendConstructor())(gt({},s,{defaultSelected:this._selectedData}));o.name="legend",this._legendComponent=o,this.getContainer().add(o),this._option.disableTriggerEvent||this._initEvent(),o.on("*",(l,h)=>this._delegateEvent(this._legendComponent,l,h))}this._cacheAttrs=s;const r=isFinite(this._legendComponent.AABBBounds.width())?this._legendComponent.AABBBounds.width():0,a=isFinite(this._legendComponent.AABBBounds.height())?this._legendComponent.AABBBounds.height():0;if(this.layoutType!=="normal-inline"){const o=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",l=this._position,{width:h,height:d}=e;let c=0,u=0;o==="horizontal"?l==="middle"?c=(h-r)/2:l==="end"&&(c=h-r):l==="middle"?u=(d-a)/2:l==="end"&&(u=d-a),this._legendComponent.setAttributes({dx:c,dy:u})}return i.x2=i.x1+r,i.y2=i.y1+a,i}onDataUpdate(){var t,e,i;if(JSON.stringify(this._preSelectedData)!==JSON.stringify(this._selectedData)){if(this._legendComponent){const s=this._getLegendAttributes(this.getLayoutRect());Jt(s,this._cacheAttrs)||this._legendComponent.setAttributes(gt({},s,{defaultSelected:this._selectedData}))}(e=(t=this.effect).onSelectedDataChange)===null||e===void 0||e.call(t),(i=this.getChart())===null||i===void 0||i.setLayoutTag(!0,null,!1),this.event.emit(lt.legendSelectedDataChange,{model:this})}}_getNeedClearVRenderComponents(){return[this._legendComponent]}clear(){super.clear(),this._cacheAttrs=null,this._preSelectedData=null}}xS.specKey="legends";class G_ extends xS{constructor(){super(...arguments),this.type=X.discreteLegend,this.name=X.discreteLegend}static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>!e.type||e.type==="discrete")}init(t){super.init(t),Te(this._regions,e=>{e.addViewDataFilter({type:"discreteLegendFilter",options:{series:e,selected:()=>this._selectedData,field:()=>this._getSeriesLegendField(e),data:()=>this.getLegendDefaultData()},level:cs.legendFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}_initLegendData(){vt(this._option.dataSet,"discreteLegendFilter",$nt),vt(this._option.dataSet,"discreteLegendDataMake",Unt);const t=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"discreteLegendDataMake",options:{series:()=>{const e=[];return Te(this._regions,i=>{e.push(i)},{specIndex:this._spec.seriesIndex,userId:this._spec.seriesId}),e},seriesField:e=>this._getSeriesLegendField(e)}}),t}_getSeriesLegendField(t){var e,i,s;const r=t.getSeriesField(),a=(e=this._spec.scaleName)!==null&&e!==void 0?e:this._spec.scale;if(P(a)||!t.getRawData())return r;const o=this._option.globalScale.getScaleSpec(a);if(!o)return r;if(this._spec.field)return this._spec.field;if(!fl(o.domain))return r;const l=o.domain.find(h=>h.dataId===t.getRawData().name);return l&&(s=(i=l.fields)===null||i===void 0?void 0:i[0])!==null&&s!==void 0?s:r}_initSelectedData(){const t=this.getLegendDefaultData();if(this._unselectedData){const e=[],i=[];t.forEach(s=>{this._unselectedData.includes(s)?i.push(s):e.push(s)}),this._selectedData=e,this._unselectedData=i}else this._spec.defaultSelected?this._selectedData=[...this._spec.defaultSelected]:this._selectedData=t}getLegendDefaultData(t){return N(this._spec.data)?this._getLegendItems().map(e=>e.label):this._legendData.getLatestData().map(t?e=>e.originalKey:e=>e.key)}_addDefaultTitleText(t){var e,i,s,r;if(!((e=t.title)===null||e===void 0)&&e.visible&&P(t.title.text)&&P((i=t.title.style)===null||i===void 0?void 0:i.text)){const a=(r=(s=this._regions)===null||s===void 0?void 0:s[0])===null||r===void 0?void 0:r.getSeries()[0];if(!a)return;t.title.text=x_(a.getRawData(),a.getSeriesField())}}_getLegendAttributes(t){const e=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",i=Object.assign(Object.assign({layout:e,items:this._getLegendItems(),zIndex:this.layoutZIndex},Nnt(this._spec,t)),{maxWidth:t.width,maxHeight:t.height});return this._addDefaultTitleText(i),this._addLegendItemFormatMethods(i),i}_getLegendConstructor(){return YO}setSelectedData(t){t&&(this._unselectedData=this.getLegendDefaultData().filter(e=>!t.includes(e))),super.setSelectedData(t)}_initEvent(){if(this._legendComponent){const t=this._spec.filter!==!1;this._legendComponent.addEventListener(Ii.legendItemClick,e=>{const i=wt(e,"detail.currentSelected");t&&this.setSelectedData(i),this.event.emit(lt.legendItemClick,{model:this,value:i,event:e})}),this._legendComponent.addEventListener(Ii.legendItemHover,e=>{const i=wt(e,"detail");this.event.emit(lt.legendItemHover,{model:this,value:i,event:e})}),this._legendComponent.addEventListener(Ii.legendItemUnHover,e=>{const i=wt(e,"detail");this.event.emit(lt.legendItemUnHover,{model:this,value:i,event:e})})}}_getLegendItems(){const t=(this._legendData.getLatestData()||[]).map(e=>{var i,s;const r=e.style("fillOpacity"),a=e.style("strokeOpacity"),o=e.style("opacity"),l=e.style("texture");return{label:e.key,shape:{symbolType:(s=(i=e.style("symbolType"))!==null&&i!==void 0?i:e.shapeType)!==null&&s!==void 0?s:"circle",fillOpacity:H(r)?r:1,strokeOpacity:H(a)?a:1,opacity:H(o)?o:1,texturePadding:l?1:null,textureSize:l?4:null,texture:l,fill:e.style("fill"),stroke:e.style("stroke"),textureColor:e.style("textureColor"),innerBorder:e.style("innerBorder"),outerBorder:e.style("outerBorder"),lineDash:e.style("lineDash"),lineDashOffset:e.style("lineDashOffset"),lineWidth:e.style("lineWidth")}}});return N(this._spec.data)?this._spec.data(t,this._option.globalScale.getScale("color"),this._option.globalScale):t}_addLegendItemFormatMethods(t){var e,i,s,r;const{formatMethod:a,formatter:o}=(i=(e=this._spec.item)===null||e===void 0?void 0:e.label)!==null&&i!==void 0?i:{},{formatMethod:l,formatter:h}=(r=(s=this._spec.item)===null||s===void 0?void 0:s.value)!==null&&r!==void 0?r:{},{formatFunc:d}=zs(a,o);o&&!a&&d&&(t.item.label.formatMethod=(u,g)=>d(u,g,o));const{formatFunc:c}=zs(l,h);h&&!l&&c&&(t.item.value.formatMethod=(u,g)=>c(h,u,g,o))}}G_.specKey="legends",G_.type=X.discreteLegend;const Ynt=()=>{D.registerComponent(G_.type,G_)},Xnt=(n,t)=>{const{series:e,field:i,scale:s}=t,r=i();if(i&&r){let a=1/0,o=-1/0;return e().forEach(l=>{const h=l.getRawDataStatisticsByField(r,!0),d=h==null?void 0:h.min,c=h==null?void 0:h.max;H(d)&&(a=Math.min(d,a)),H(c)&&(o=Math.max(c,o))}),[a,o]}if(s){const a=s();return a?a.domain():[]}return[]},Knt=(n,t)=>{const{selected:e,field:i,data:s,isHierarchyData:r}=t,a=e(),o=i(),l=r||(h=>h&&h.some(d=>d&&e7(d)));if(a===s())return n;if(o&&!ht(a)){const[h,d]=a;return l(n)?kB(n,+h,+d,o):n.filter(c=>c[o]>=h&&c[o]<=d)}return n};var qnt=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sJnt(i.type));return e&&e.forEach(i=>{i.type=i.spec.type==="color"?X.colorLegend:X.sizeLegend}),e}constructor(t,e){super(t,e),this.type=X.colorLegend,this.name=X.colorLegend;const i=this._spec.type==="color"?X.colorLegend:X.sizeLegend;this.type=i,this.name=i}setAttrFromSpec(){super.setAttrFromSpec(),this._field=this._spec.field,this._legendType=this._spec.type}init(t){super.init(t),Te(this._regions,e=>{e.addViewDataFilter({type:"continuousLegendFilter",options:{selected:()=>this._selectedData,field:()=>this._field,data:()=>this._legendData.getLatestData(),isHierarchyData:e.isHierarchyData},level:cs.legendFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}_getScaleInGlobal(){const t=this._option.globalScale;let e=this._spec.scale;return e||(e=this._legendType),t.getScale(e)}_initLegendData(){vt(this._option.dataSet,"continuousLegendFilter",Knt),vt(this._option.dataSet,"continuousLegendDataMake",Xnt);const t=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"continuousLegendDataMake",options:{series:()=>rB(this._regions,{userId:this._seriesUserId,specIndex:this._seriesIndex}),field:()=>this._field,scale:this._getScaleInGlobal.bind(this)}}),t}_initSelectedData(){this._spec.defaultSelected?this._selectedData=this._spec.defaultSelected.slice():this._selectedData=this._legendData.getLatestData()}_addDefaultTitleText(t){var e,i,s,r;if(!((e=t.title)===null||e===void 0)&&e.visible&&P(t.title.text)&&P((i=t.title.style)===null||i===void 0?void 0:i.text)){const a=this._field;if(a){const d=(r=(s=this._regions)===null||s===void 0?void 0:s[0])===null||r===void 0?void 0:r.getSeries()[0];return d?void(t.title.text=x_(d.getRawData(),a)):void 0}let o=this._spec.scale;o||(o=this._legendType);const l=this._option.globalScale.getScaleSpec(o);if(!fl(l==null?void 0:l.domain))return;const h=l.domain[0];if(h.fields.length===0)return;t.title.text=x_(this._option.dataSet.getDataView(h.dataId),h.fields[0])}}_getLegendAttributes(t){var e,i;const s=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",r=s==="horizontal"?"bottom":this.layoutOrient;let a=[];const o=this._getScaleInGlobal();o&&o.type==="linear"&&(a=o.range()),ht(a)&&(a=this._legendType==="color"?tst:est);let l=(e=this._legendData.getLatestData()[0])!==null&&e!==void 0?e:0,h=(i=this._legendData.getLatestData()[1])!==null&&i!==void 0?i:1;this._legendData.getLatestData()[0]===this._legendData.getLatestData()[1]&&(l=Math.min(0,this._legendData.getLatestData()[0]),h=this._legendData.getLatestData()[0]===0?1:Math.max(0,this._legendData.getLatestData()[0]));const d=Object.assign({layout:s,align:r,zIndex:this.layoutZIndex,min:l,max:h,value:this._spec.defaultSelected,[this._legendType==="color"?"colors":"sizeRange"]:a},Znt(this._spec));return this._addDefaultTitleText(d),d}_getLegendConstructor(){return Qnt[this._legendType]}_initEvent(){if(this._legendComponent){const t=this._spec.filter!==!1;this._legendComponent.addEventListener("change",wa(e=>{const i=wt(e,"detail.value");t&&this.setSelectedData(i),this.event.emit(lt.legendFilter,{model:this,value:i,event:e})},30))}}}N_.specKey="legends",N_.type=X.continuousLegend;const ist=()=>{D.registerComponent(N_.type,N_)},Qo=(n,t)=>C(t)?n.map(e=>t[e]):void 0,io=(n,t)=>e=>n.every((i,s)=>e[i]===(t==null?void 0:t[s])),Wh=n=>!P(n)&&(U(n)?n.length>0&&n.every(C):Object.keys(n).length>0);function nst(n,t,e){var i,s,r;const a=Object.assign({regionIndex:0},t),o=e.getOption(),l=o.getRegionsInUserIdOrIndex(C(a.regionId)?[a.regionId]:void 0,C(a.regionIndex)?[a.regionIndex]:void 0)[0];if(!l)return"none";const h=sst(n,l),d=(i=a.activeType)!==null&&i!==void 0?i:h.length>1?"dimension":"mark",c=l.getLayoutStartPoint(),u=l.getLayoutRect(),g=o.globalInstance.getContainer(),p=Object.assign({x:0,y:0},g?K2(g):{}),_=m=>{var v;const{dimensionFields:y,dimensionData:b,measureFields:x,measureData:S,groupField:A,groupData:k}=m.data;return(v=m.series.getViewData())===null||v===void 0?void 0:v.latestData.find(w=>io(y,b)(w)&&io(x,S)(w)&&(P(A)||io([A],[k])(w)))},f=m=>{var v,y;const b=(A=>({x:Math.min(Math.max(A.x,0),u.width),y:Math.min(Math.max(A.y,0),u.height)}))(m),x=(v=a.x)!==null&&v!==void 0?v:c.x+b.x,S=(y=a.y)!==null&&y!==void 0?y:c.y+b.y;return{canvasX:x,canvasY:S,clientX:p.x+x,clientY:p.y+S}};if(d==="dimension"){const m=h[0];if(!m)return"none";const v=new Map;h.forEach(S=>{var A;v.has(S.series)||v.set(S.series,[]),(A=v.get(S.series))===null||A===void 0||A.push(S)});const y=[{value:n[m.data.dimensionFields[0]],data:[...v.keys()].map(S=>{var A,k;return{series:S,datum:(k=(A=v.get(S))===null||A===void 0?void 0:A.map(T=>_(T)))!==null&&k!==void 0?k:[]}})}];C(m.dimType)&&(y[0].position=m.pos[m.dimType],y[0].dimType=m.dimType);const b={changePositionOnly:!1,action:"enter",tooltip:null,dimensionInfo:y,chart:(s=o.globalInstance.getChart())!==null&&s!==void 0?s:void 0,datum:void 0,model:void 0,source:Vt.chart,event:f({x:h.reduce((S,A)=>S+A.pos.x,0)/h.length,y:h.reduce((S,A)=>S+A.pos.y,0)/h.length}),item:void 0,itemMap:new Map};e.processor.dimension.showTooltip(y,b,!1);const x=o.globalInstance;return ai.globalConfig.uniqueTooltip&&ai.hideTooltip(x.id),d}if(d==="mark"){const m=h[0];if(!m)return"none";const v=Object.assign(Object.assign({},_(m)),n),y=[{datum:[v],series:m.series}],b={changePositionOnly:!1,tooltip:null,dimensionInfo:[{value:v[m.data.dimensionFields[0]],data:y}],chart:(r=o.globalInstance.getChart())!==null&&r!==void 0?r:void 0,datum:v,model:m.series,source:Vt.chart,event:f(m.pos),item:void 0,itemMap:new Map};e.processor.mark.showTooltip({datum:v,mark:null,series:m.series},b,!1);const x=o.globalInstance;return ai.globalConfig.uniqueTooltip&&ai.hideTooltip(x.id),d}return"none"}const sst=(n,t)=>{const e=t.getSeries(),i=[];return e.forEach(s=>{var r,a,o,l,h,d,c;const u=s.getDimensionField(),g=s.getMeasureField(),p=s.getSeriesField(),_=C(p)?n[p]:void 0,f=C(p)&&(l=(o=(a=(r=s.getViewDataStatistics)===null||r===void 0?void 0:r.call(s))===null||a===void 0?void 0:a.latestData[p])===null||o===void 0?void 0:o.values)!==null&&l!==void 0?l:[],m=Qo(u,n);let v=Qo(g,n);const y=Wh(v),b=!y&&C(p)&&P(_)&&f.length>0,x=()=>{var S;const A=(S=s.getViewData())===null||S===void 0?void 0:S.latestData.find(io(u,m));if(!y&&(v=Qo(g,A),!Wh(v)))return;const k=s.type===Y.pie?s.dataToCentralPosition(A):s.dataToPosition(A);P(k)||isNaN(k.x)||isNaN(k.y)||i.push({pos:k,data:{dimensionFields:u,dimensionData:m,measureFields:g,measureData:v,hasMeasureData:y,groupField:p,groupData:_},series:s})};if(s.coordinate==="cartesian"){const S=s,A=mi((d=(h=s.getYAxisHelper())===null||h===void 0?void 0:h.getScale(0))===null||d===void 0?void 0:d.type)?"y":"x",k=u.map((w,M)=>[w,M]).filter(([,w])=>P(m==null?void 0:m[w]));let T=[m??[]];k.length>0&&k.forEach(([w,M])=>{var R,O,L,E;const B=(E=(L=(O=(R=s.getViewDataStatistics)===null||R===void 0?void 0:R.call(s))===null||O===void 0?void 0:O.latestData[w])===null||L===void 0?void 0:L.values)!==null&&E!==void 0?E:[],I=[];T.forEach(F=>{B.forEach(z=>{var V;const W=(V=F==null?void 0:F.slice())!==null&&V!==void 0?V:[];W[M]=z,I.push(W)})}),T=I}),T.forEach(w=>{var M,R;if(b){const O=(M=S.getViewData())===null||M===void 0?void 0:M.latestData.filter(io(u,w));f.forEach(L=>{const E=O.find(I=>I[p]===L);if(v=Qo(g,E),!Wh(v))return;const B=S.dataToPosition(E);P(B)||isNaN(B.x)||isNaN(B.y)||i.push({pos:B,data:{dimensionFields:u,dimensionData:w,measureFields:g,measureData:v,hasMeasureData:y,groupField:p,groupData:L},series:s,dimType:A})})}else{const O=(R=S.getViewData())===null||R===void 0?void 0:R.latestData.find(io(u,w));if(!y&&(v=Qo(g,O),!Wh(v)))return;const L=S.dataToPosition(O);if(P(L)||isNaN(L.x)||isNaN(L.y))return;i.push({pos:L,data:{dimensionFields:u,dimensionData:w,measureFields:g,measureData:v,hasMeasureData:y,groupField:p,groupData:_},dimType:A,series:s})}})}else if(s.coordinate==="polar")if(s.type===Y.pie)x();else{const S=s;if(b){const A=((c=S.getViewData())===null||c===void 0?void 0:c.latestData.filter(io(u,m))).find(k=>k[p]===_);f.forEach(k=>{if(v=Qo(g,A),!Wh(v))return;const T=S.dataToPosition(A);P(T)||isNaN(T.x)||isNaN(T.y)||i.push({pos:T,data:{dimensionFields:u,dimensionData:m,measureFields:g,measureData:v,hasMeasureData:y,groupField:p,groupData:k},series:s})})}else x()}else s.coordinate==="geo"&&x()}),i},rst=["updateTitle","updateContent","updatePosition","maxLineCount","othersLine"],ast=(n,t,e,i,s)=>{var r,a,o;const l={activeType:n};switch(n){case"mark":case"group":if(e){const h=(r=e.getSpec())===null||r===void 0?void 0:r.tooltip;return l.visible=!0,h!=null&&h.handler&&(l.handler=h.handler),!((a=l.handler)===null||a===void 0)&&a.showTooltip?l:(h!=null&&h[n]&&rst.forEach(d=>{C(h[n][d])&&(l[d]=h[n][d])}),Object.assign(Object.assign({},l),e.tooltipHelper.getTooltipData(n,t,i,i[0].datum,s)))}break;case"dimension":if(i!=null&&i.length){if(ost(i).every(d=>{var c;return!Zx("dimension",(c=d.tooltipHelper)===null||c===void 0?void 0:c.spec)})?l.visible=!1:l.visible=!0,l.handler=t.handler,(o=l.handler)===null||o===void 0?void 0:o.showTooltip)return l;const h=[];return i.forEach(d=>d.data.forEach(c=>{const{series:u}=c,g=u.tooltipHelper.getTooltipData(n,t,i,c.datum,s);g&&h.push(g)})),_Z(h)}}return null},ost=n=>{const t=[];return n.forEach(e=>{e.data.forEach(i=>{C(i.series)&&t.push(i.series)})}),t},mh={dom:`${_t}_TOOLTIP_HANDLER_DOM`,canvas:`${_t}_TOOLTIP_HANDLER_CANVAS`},lst="vchart-tooltip-element",hst=20,BC={key:"其他",value:"..."},LC=["group","mark","dimension"],H0=50;class SS{constructor(t){this._showTooltipByHandler=(e,i)=>{var s,r,a;if(P(e))return 1;i.changePositionOnly||this.clearCache(),this._updateViewSpec(e,i);const o=this._cacheActiveSpec;if(P(o)||o.visible===!1)return 1;i.tooltipSpec=this.component.getSpec(),i.activeTooltipSpec=o;const{title:l,content:h}=o,d=P(l==null?void 0:l.key)&&P(l==null?void 0:l.value)&&!(h!=null&&h.length);if(this.component.event.emit(lt.tooltipShow,Object.assign(Object.assign({},i),{isEmptyTooltip:d,tooltipData:e,activeType:this.activeType,tooltip:this.component})),d)return 1;let c;return!((s=o.handler)===null||s===void 0)&&s.showTooltip?c=o.handler.showTooltip.bind(o.handler):!((r=this.component.tooltipHandler)===null||r===void 0)&&r.showTooltip&&(c=this.component.tooltipHandler.showTooltip.bind(this.component.tooltipHandler)),c?(a=c(this.activeType,e,i))!==null&&a!==void 0?a:0:1},this.component=t}_preprocessDimensionInfo(t){const e=[];if(t==null||t.forEach(i=>{const s=Object.assign(Object.assign({},i),{data:i.data.filter(({series:r})=>{var a,o;return((o=(a=r.getSpec())===null||a===void 0?void 0:a.tooltip)===null||o===void 0?void 0:o.visible)!==!1})});s.data.length>0&&e.push(s)}),e.length>0)return e}_updateViewSpec(t,e){var i,s,r,a,o,l,h,d,c;const{changePositionOnly:u,model:g}=e;if(!u||!this._cacheActiveSpec){const p=this.component.getSpec();if(this._cacheActiveSpec=ast(this.activeType,this.component.getSpec(),g,t,e),this._cacheActiveSpec){P(this._cacheActiveSpec.handler)&&C(p.handler)&&(this._cacheActiveSpec.handler=p.handler);const _=(i=p[this.activeType])!==null&&i!==void 0?i:{},f=(s=this._cacheActiveSpec.updateTitle)!==null&&s!==void 0?s:_.updateTitle,m=(r=this._cacheActiveSpec.updateContent)!==null&&r!==void 0?r:_.updateContent,v=(o=(a=this._cacheActiveSpec.maxLineCount)!==null&&a!==void 0?a:_.maxLineCount)!==null&&o!==void 0?o:hst;if(f&&(this._cacheActiveSpec.title=(l=f(this._cacheActiveSpec.title,t,e))!==null&&l!==void 0?l:this._cacheActiveSpec.title),m)this._cacheActiveSpec.content=(h=m(this._cacheActiveSpec.content,t,e))!==null&&h!==void 0?h:this._cacheActiveSpec.content;else if(v>=1&&((d=this._cacheActiveSpec.content)===null||d===void 0?void 0:d.length)>v){const y=(c=this._cacheActiveSpec.othersLine)!==null&&c!==void 0?c:_.othersLine,b=y?Object.assign(Object.assign({},BC),y):BC;this._cacheActiveSpec.content=[...this._cacheActiveSpec.content.slice(0,v-1),Object.assign(Object.assign({},this._cacheActiveSpec.content[v-1]),b)]}}}}shouldHandleTooltip(t,e){var i,s;return!P(e)&&Zx(this.activeType,(s=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper)===null||s===void 0?void 0:s.spec)}clearCache(){this._cacheActiveSpec=void 0}}class dst extends SS{constructor(){super(...arguments),this.activeType="dimension"}showTooltip(t,e,i){const s=Object.assign(Object.assign({},e),{dimensionInfo:this._preprocessDimensionInfo(t),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(t,s)}_getDimensionInfo(t){var e,i;let s;const r=this.component.getChart(),a=r.getCompiler().getStage().getLayer(void 0),o={x:t.event.viewX,y:t.event.viewY};if(a.globalTransMatrix.transformPoint({x:t.event.viewX,y:t.event.viewY},o),s=[...(e=gL(r,o,!0))!==null&&e!==void 0?e:[],...(i=hL(r,o))!==null&&i!==void 0?i:[]],s.length===0)s=void 0;else if(s.length>1){const l=s.filter(h=>{var d;const c=h.axis;if(c.getSpec().hasDimensionTooltip)return!0;if(!mi(c.getScale().type))return!1;let u;for(const g of(d=c==null?void 0:c.getRegions())!==null&&d!==void 0?d:[]){for(const p of g.getSeries())if(p.coordinate==="cartesian"){u=p;break}if(C(u))break}return C(u)&&u.getDimensionField()[0]===u.fieldY[0]?c.getOrient()==="left"||c.getOrient()==="right":c.getOrient()==="bottom"||c.getOrient()==="top"});if(s=l.length?l:s.slice(0,1),s.length>1){const h=new Set;s.forEach(d=>{d.data=d.data.filter(({key:c})=>!h.has(c)&&(h.add(c),!0))})}}return s}getMouseEventData(t){return{tooltipInfo:this._getDimensionInfo(t),ignore:!1}}}class cst extends SS{constructor(){super(...arguments),this.activeType="mark"}showTooltip(t,e,i){var s,r,a;const{datum:o,series:l}=t,h=this.component.getSpec(),d=[{datum:[o],series:l}],c=l.tooltipHelper,u=(s=l.getSpec())===null||s===void 0?void 0:s.tooltip,g=(r=u==null?void 0:u.mark)===null||r===void 0?void 0:r.checkOverlap;let p=!1;if(g===!0||((a=h.mark)===null||a===void 0?void 0:a.checkOverlap)===!0&&g!==!1){const f=c==null?void 0:c.activeTriggerSet.mark;if(f){p=!0;const m=this.component.getChart().getCompiler().getStage().getLayer(void 0),v={x:e.event.viewX,y:e.event.viewY};m.globalTransMatrix.transformPoint({x:e.event.viewX,y:e.event.viewY},v),f.forEach(y=>{y.getProductElements().forEach(b=>{const x=b.getGraphicItem();b!==e.item&&x&&x.containsPoint(v.x,v.y,Xl.GLOBAL,x.stage.getPickerService())&&d[0].datum.push(b.getDatum())})})}}const _=Object.assign(Object.assign({},e),{changePositionOnly:i,tooltip:this.component});if(i&&p){const f=this._cacheActiveSpec&&this._cacheActiveSpec.data;f&&f[0].series===d[0].series&&f[0].datum.length===d[0].datum.length&&!f[0].datum.some((m,v)=>m!==d[0].datum[v])||(_.changePositionOnly=!1)}return this._showTooltipByHandler(d,_)}getMouseEventData(t){var e;let i,s;if(((e=t.model)===null||e===void 0?void 0:e.modelType)==="series"){const r=t.model,a=r.tooltipHelper,o=a==null?void 0:a.activeTriggerSet.mark,l=a==null?void 0:a.ignoreTriggerSet.mark;o!=null&&o.has(t.mark)?i={mark:t.mark,datum:t.datum,series:r}:l!=null&&l.has(t.mark)&&(s=!0)}return{tooltipInfo:i,ignore:s}}}class ust extends SS{constructor(){super(...arguments),this.activeType="group"}showTooltip(t,e,i){const{datum:s,series:r}=t,a=[{datum:j(s),series:r}],o=Object.assign(Object.assign({},e),{groupDatum:this._getGroupDatum(e),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(a,o)}getMouseEventData(t){var e,i;let s;if(((e=t.model)===null||e===void 0?void 0:e.modelType)==="series"){const r=t.model,a=r.tooltipHelper,o=a==null?void 0:a.activeTriggerSet.group;if(o!=null&&o.has(t.mark)){const l=this.component.getSpec()[this.activeType];(l!=null&&l.triggerMark?j(l.triggerMark):[]).includes((i=t.mark)===null||i===void 0?void 0:i.name)&&(s={mark:t.mark,datum:t.datum,series:r})}}return{tooltipInfo:s,ignore:!1}}_getGroupDatum(t){const{model:e,mark:i,datum:s}=t,r=e;if(["line","area"].includes(i.type))return j(s);const a=r.getViewData().latestData,o=r.getSeriesField();if(!o)return a;const l=j(s)[0][o];return a.filter(h=>h[o]===l)}}const IC=n=>C(n)&&!U(n),DC=n=>C(n)&&U(n);class wD extends Au{_shouldMergeThemeToSpec(){return!1}_initTheme(t,e){var i;const{spec:s,theme:r}=super._initTheme(t,e);return s.style=gt({},this._theme,s.style),s.offset=gt({},r.offset,t.offset),s.transitionDuration=(i=t.transitionDuration)!==null&&i!==void 0?i:r.transitionDuration,{spec:s,theme:r}}_transformSpecAfterMergingTheme(t,e,i){var s,r,a,o,l,h,d;super._transformSpecAfterMergingTheme(t,e,i),t.visible=(s=t.visible)===null||s===void 0||s,t.activeType=uZ(t),t.renderMode=(r=t.renderMode)!==null&&r!==void 0?r:Pa(this._option.mode)||!ls(this._option.mode)?"canvas":"html",t.trigger=(a=t.trigger)!==null&&a!==void 0?a:"hover",t.className=(o=t.className)!==null&&o!==void 0?o:lst,t.enterable=(l=t.enterable)!==null&&l!==void 0&&l,t.transitionDuration=(h=t.transitionDuration)!==null&&h!==void 0?h:150,t.confine=(d=t.confine)!==null&&d!==void 0?d:t.renderMode==="canvas",C(t.parentElement)?tt(t.parentElement)&&(t.parentElement=Et.getElementById(t.parentElement)):ls(this._option.mode)&&(t.parentElement=Gr==null?void 0:Gr.body)}}class Jd extends qi{constructor(){super(...arguments),this.layoutZIndex=1,this.type=X.tooltip,this.name=X.tooltip,this.transformerConstructor=wD,this.specKey="tooltip",this.layoutType="none",this._isReleased=!1,this._alwaysShow=!1,this._eventList=[],this._isTooltipShown=!1,this._clickLock=!1,this._mountEvent=(t,e,i)=>{this.event.on(t,e,i),this._eventList.push({eventType:t,handler:i})},this._handleClickToLock=t=>{this._clickLock?(this._handleChartMouseOut(t),this._clickLock=!1):this._clickLock=!0},this._getMouseOutHandler=t=>e=>{var i,s,r,a;if(this._isReleased||this._alwaysShow||this._clickLock||!this._isTooltipShown&&!(!((s=(i=this.tooltipHandler)===null||i===void 0?void 0:i.isTooltipShown)===null||s===void 0)&&s.call(i)))return;const o=ls((r=this._option)===null||r===void 0?void 0:r.mode),{clientX:l,clientY:h}=e.event;o&&t&&this._isPointerInChart({x:l,y:h})||(this._enterable?this._outTimer=setTimeout(()=>{this._handleChartMouseOut(e)},(a=this._spec.showDelay)!==null&&a!==void 0?a:H0):this._handleChartMouseOut(e))},this._handleChartMouseOut=t=>{this._alwaysShow||this._spec.triggerOff!=="none"&&(this._hideTooltipByHandler(Object.assign(Object.assign({},t),{tooltip:this})),this._handleMouseMove&&this._handleMouseMove.cancel&&this._handleMouseMove.cancel(),this._cacheEnterableRect=null,this._cacheInfo=void 0,this._cacheParams=void 0,this._cacheActiveType=void 0)},this._getMouseMoveHandler=t=>e=>{var i,s,r;this._isReleased||(this._outTimer&&(clearTimeout(this._outTimer),this._outTimer=null),this.tooltipHandler||this._initHandler(),this.processor||this._initProcessor(),this._alwaysShow||(this._clickLock?t&&(this._handleChartMouseOut(e),this._clickLock=!1):!t&&this._enterable&&(!((s=(i=this.tooltipHandler)===null||i===void 0?void 0:i.isTooltipShown)===null||s===void 0)&&s.call(i))?(this._showTimer&&clearTimeout(this._showTimer),this._showTimer=setTimeout(()=>{this._handleChartMouseMove(e,t)},(r=this._spec.showDelay)!==null&&r!==void 0?r:H0)):this._handleChartMouseMove(e,t)))},this._handleChartMouseMove=(t,e)=>{const i=this._getMouseEventData(t),{tooltipInfo:{dimension:s},ignore:{mark:r}}=i,a={mark:!1,dimension:!1,group:!1};for(let o=0,l=LC.length;o!o)&&!gZ(t)&&(r&&IC(this._cacheInfo)?a.mark=this._showTooltipByMouseEvent("mark",i,t,e,!0):C(s)&&(a.dimension=this._showTooltipByMouseEvent("dimension",i,t,e))),a.mark||a.group||a.dimension&&!P(s)?this._initEventOfTooltipContent():this._handleChartMouseOut(t)},this._showTooltipByMouseEvent=(t,e,i,s,r)=>{var a;const o=this.processor[t];if(!o.shouldHandleTooltip(i,e.tooltipInfo[t]))return!1;let l;if(this._hideTimer&&clearTimeout(this._hideTimer),r)l=!o.showTooltip(this._cacheInfo,i,!0);else{const d=e.tooltipInfo[t],c=this._isSameAsCache(d,i,t);l=!o.showTooltip(d,i,c),l&&(this._cacheInfo=d,this._cacheParams=i,this._cacheActiveType=t)}l&&(this._isTooltipShown=!0,s&&this._spec.lockAfterClick&&!this._clickLock?this._clickLock=!0:Number.isFinite(this._spec.hideTimer)&&(this._hideTimer=setTimeout(()=>{this._handleChartMouseOut()},this._spec.hideTimer)));const h=(a=this._option)===null||a===void 0?void 0:a.globalInstance;return l&&ai.globalConfig.uniqueTooltip&&h&&ai.hideTooltip(h.id),l},this._getMouseEventData=t=>{const e={tooltipInfo:{},ignore:{}};return Object.keys(this.processor).forEach(i=>{const{tooltipInfo:s,ignore:r}=this.processor[i].getMouseEventData(t);e.tooltipInfo[i]=s,e.ignore[i]=r}),e},this._hideTooltipByHandler=t=>{var e,i,s;if(!this._isTooltipShown&&!(!((i=(e=this.tooltipHandler)===null||e===void 0?void 0:e.isTooltipShown)===null||i===void 0)&&i.call(e)))return 0;this.event.emit(lt.tooltipHide,Object.assign(Object.assign({},t),{source:Vt.chart,tooltip:this})),Object.values(this.processor).forEach(a=>{a.clearCache()});const r=(s=this._spec.handler)!==null&&s!==void 0?s:this.tooltipHandler;if(r.hideTooltip){const a=r.hideTooltip.call(r,t);return a||(this._isTooltipShown=!1),a}return 1},this.hideTooltip=()=>{const t={changePositionOnly:!1,tooltip:this,item:void 0,datum:void 0,source:Vt.chart};return this._alwaysShow=!1,!this._hideTooltipByHandler(t)}}isTooltipShown(){return this._isTooltipShown}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}_registerEvent(){}_releaseEvent(){}onLayout(t){}onLayoutEnd(t){}onRender(t){}created(){super.created(),this._regions=this._option.getAllRegions(),this._initEvent()}release(){var t,e;super.release(),this._isReleased=!0,this._hideTimer&&clearTimeout(this._hideTimer),this._eventList.forEach(({eventType:i,handler:s})=>{this.event.off(i,s)}),this._eventList=[],(e=(t=this.tooltipHandler)===null||t===void 0?void 0:t.release)===null||e===void 0||e.call(t),this._isTooltipShown=!1}beforeRelease(){this.event.emit(lt.tooltipHide,{tooltip:this,chart:this.getChart()}),this.event.emit(lt.tooltipRelease,{tooltip:this,chart:this.getChart()})}_initHandler(){var t,e,i;const s=(t=this._spec.renderMode)!==null&&t!==void 0?t:"html",r=this._option.globalInstance.getTooltipHandlerByUser();if(r)this.tooltipHandler=r,this._enterable=!1;else{const a=s==="canvas"?mh.canvas:mh.dom,o=D.getComponentPluginInType(a);o||vc("Can not find tooltip handler: "+a);const l=new o;l.name=`${this._spec.className}-${(e=this._option.globalInstance.id)!==null&&e!==void 0?e:0}-${this.getSpecIndex()}`,(i=this.pluginService)===null||i===void 0||i.load([l]),this.tooltipHandler=l,this._spec.enterable&&s==="html"&&this.tooltipHandler?(this._enterable=!0,this._needInitEventOfTooltip=!0):this._enterable=!1}}_initEventOfTooltipContent(){var t,e;if(!this._needInitEventOfTooltip)return;const i=(e=(t=this.tooltipHandler).getTooltipContainer)===null||e===void 0?void 0:e.call(t),s=i==null?void 0:i.firstChild;s&&(s.addEventListener("pointerenter",()=>{var r;if(!this._enterable)return;const a=(r=s.getBoundingClientRect)===null||r===void 0?void 0:r.call(s);a&&(this._cacheEnterableRect={x:a.x,y:a.y,width:a.width,height:a.height}),this._outTimer&&(clearTimeout(this._outTimer),this._outTimer=null),this._showTimer&&(clearTimeout(this._showTimer),this._showTimer=null)}),s.addEventListener("pointerleave",()=>{var r,a;if(this._enterable&&this._cacheEnterableRect){const o=(r=s.getBoundingClientRect)===null||r===void 0?void 0:r.call(s);o&&Object.keys(this._cacheEnterableRect).every(l=>this._cacheEnterableRect[l]===o[l])&&(this._cacheEnterableRect=null,this._outTimer=setTimeout(this.hideTooltip,(a=this._spec.showDelay)!==null&&a!==void 0?a:H0))}}),this._needInitEventOfTooltip=!1)}_initProcessor(){const t=this._spec.activeType;this.processor={},t.includes("dimension")&&(this.processor.dimension=new dst(this)),t.includes("group")&&(this.processor.group=new ust(this)),t.includes("mark")&&(this.processor.mark=new cst(this))}_initEvent(){var t;if(this._option.disableTriggerEvent)return;const e=j((t=this._spec.trigger)!==null&&t!==void 0?t:"hover"),i=j(this._spec.triggerOff),s=this._option.mode;e.forEach(r=>{var a;r==="hover"?(this._handleMouseMove=this._throttle(this._getMouseMoveHandler(!1)),this._mountEvent("pointermove",{source:"chart"},this._handleMouseMove),(xa(s)||Pa(s))&&(this._mountEvent("pointerdown",{source:"chart"},this._getMouseMoveHandler(!1)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0))),this._mountEvent("pointerleave",{source:"chart"},this._getMouseOutHandler(!1))):r==="click"?(this._mountEvent("pointertap",{source:"chart"},this._getMouseMoveHandler(!0)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0))):yt(r)&&this._mountEvent(r.eventType,{source:(a=r.source)!==null&&a!==void 0?a:"chart",consume:r.consume},this._getMouseMoveHandler(!0))}),i.filter(r=>yt(r)).forEach(r=>{var a,o;this._mountEvent(r.eventType,{source:(a=r.source)!==null&&a!==void 0?a:"chart",consume:r.consume},this._getMouseOutHandler((o=r.checkOutside)!==null&&o!==void 0&&o))}),!e.includes("click")&&this._spec.lockAfterClick&&this._mountEvent("pointertap",{source:"chart"},this._handleClickToLock)}_throttle(t){let e;return e=J(this._spec.throttleInterval)?this._spec.throttleInterval:this._spec.renderMode==="html"&&this._spec.transitionDuration?50:10,yr(t,e)}reInit(t){var e,i,s;if(super.reInit(t),this.tooltipHandler){const r=(e=this._spec.renderMode)!==null&&e!==void 0?e:"html",a=this._spec.enterable&&r==="html";a&&!this._enterable&&(this._needInitEventOfTooltip=!0),this._enterable=a,(s=(i=this.tooltipHandler).reInit)===null||s===void 0||s.call(i)}else this._initHandler()}showTooltip(t,e){var i;if(this.tooltipHandler||this._initHandler(),this.processor||this._initProcessor(),!(!((i=this.tooltipHandler)===null||i===void 0)&&i.showTooltip))return!1;const s=nst(t,e,this);return s!=="none"&&(this._alwaysShow=!!(e!=null&&e.alwaysShow)),s}_isSameAsCache(t,e,i){if(i!==this._cacheActiveType)return!1;if(t===this._cacheInfo)return!0;if(P(this._cacheInfo)||P(t))return!1;if(DC(t)){if(IC(this._cacheInfo))return!1;const a=this._cacheInfo;return a.length===t.length&&t.every((o,l)=>lL(o,a[l]))}if(DC(this._cacheInfo))return!1;const s=this._cacheInfo;if(!((t==null?void 0:t.datum)===s.datum&&(t==null?void 0:t.mark)===s.mark&&(t==null?void 0:t.series)===s.series))return!1;const r=this._cacheParams;return!P(r)&&!P(e)&&r.mark===e.mark&&r.model===e.model&&r.datum===e.datum}_isPointerInChart(t){var e;const i=(e=this._option)===null||e===void 0?void 0:e.globalInstance;if(!i||!i.getChart())return!1;const{x:s,y:r}=t,a=i.getCanvas(),{x:o,y:l,width:h,height:d}=a.getBoundingClientRect();return s>=o&&s<=o+h&&r>=l&&r<=l+d}getVisible(){return this._spec.visible!==!1}}Jd.type=X.tooltip,Jd.transformerConstructor=wD,Jd.specKey="tooltip";const gst=()=>{D.registerComponent(Jd.type,Jd)};function pst(n){return n===Ue["desktop-browser"]||n===Ue["desktop-miniApp"]?{click:"pointertap",hover:"pointermove",hoverOut:"pointerleave",clickOut:"pointerleave"}:xa(n)||Pa(n)?{click:"tap",hover:["pointerdown","pointermove"],hoverOut:"pointerleave",clickOut:"pointerleave"}:null}var FC;(function(n){n[n.ALL=3]="ALL",n[n.HORIZONTAL=2]="HORIZONTAL",n[n.VERTICAL=1]="VERTICAL"})(FC||(FC={}));var zC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{if(!this._option)return;const{x:s,y:r}=this.calculateTriggerPoint(i);this.showDefault=!1,this._layoutCrosshair(s,r);const a=this._getNeedClearVRenderComponents();this._hasActive=a.some(o=>o&&o.attribute.visible!==!1)},this._handleClickInEvent=i=>{if(!this._hasActive||!this._spec.lockAfterClick||this._clickLock)return this._clickLock?(this._clickLock=!1,void this._handleOutEvent()):void(this._onlyLockClick||(this._handleIn(i),J(this.triggerOff)&&(this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this._handleOutEvent()},this.triggerOff))));this._clickLock=!0},this._handleHoverInEvent=yr(i=>{this._clickLock||this._handleIn(i)},10),this._handleOutEvent=()=>{this.enableRemain||this._clickLock||!this._hasActive||(this.clearOutEvent(),this.hide())},this._handleTooltipShow=i=>{const s=i.tooltipData;if(i.isEmptyTooltip||!s||!s.length)return void this._handleTooltipHideOrRelease();if(yt(this._spec.followTooltip)&&this._spec.followTooltip[i.activeType]===!1)return void this._handleTooltipHideOrRelease();const{x:r,y:a}=this.calculateTriggerPoint(i);this.showDefault=!1,this._layoutCrosshair(r,a,s,i.activeType);const o=this._getNeedClearVRenderComponents();this._hasActive=o.some(l=>l&&l.attribute.visible!==!1)},this._handleTooltipHideOrRelease=()=>{this.clearOutEvent(),this.hide()},this.enable=!0,this.showDefault=!0}_getLimitBounds(){var t,e;if(!this._limitBounds){const{width:i,height:s}=(e=(t=this._option.globalInstance.getChart())===null||t===void 0?void 0:t.getViewRect())!==null&&e!==void 0?e:{width:0,height:0};this._limitBounds={x1:0,y1:0,x2:i,y2:s}}return this._limitBounds}_showDefaultCrosshair(){this.showDefault&&this._showDefaultCrosshairBySpec()}setAttrFromSpec(){super.setAttrFromSpec(),this._parseCrosshairSpec()}created(){super.created(),this._initEvent()}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||Jt(e,t)||(i.reRender=!0,i.reMake=!0),i}_initEvent(){if(!this._option.disableTriggerEvent)if(this._spec.followTooltip)this._registerTooltipEvent();else{const t=this._getTriggerEvent();t&&t.forEach(e=>{this._registerEvent(e.in,!1,e.click),e.out&&this._registerEvent(e.out,!0)})}}_registerEvent(t,e,i){const s=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent,r=e?{level:pe.chart}:{source:Vt.chart};U(t)?t.forEach(a=>{this.event.on(a,r,s)}):this.event.on(t,r,s)}_eventOff(t,e,i){const s=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent;U(t)?t.forEach(r=>{this.event.off(r,s)}):this.event.off(t,s)}updateLayoutAttribute(){this._limitBounds=null,this._showDefaultCrosshair()}calculateTriggerPoint(t){const{event:e}=t,i=this._option.getCompiler().getStage().getLayer(void 0),s={x:e.viewX,y:e.viewY};return i.globalTransMatrix.transformPoint({x:e.viewX,y:e.viewY},s),{x:s.x-this.getLayoutStartPoint().x,y:s.y-this.getLayoutStartPoint().y}}_getTriggerEvent(){const{mode:t=Ue["desktop-browser"]}=this._option,e=pst(t);if(e){const i=j(this.trigger||"hover"),s=a=>a==="click"?this.triggerOff==="none"?null:e.clickOut:e.hoverOut;this._spec.lockAfterClick&&!i.includes("click")?(i.push("click"),this._onlyLockClick=!0):this._onlyLockClick=!1;const r=[];return i.forEach(a=>{r.push({click:a==="click",in:e[a],out:s(a)})}),r}return null}_registerTooltipEvent(){this.event.on(lt.tooltipHide,{source:Vt.chart},this._handleTooltipHideOrRelease),this.event.on(lt.tooltipShow,{source:Vt.chart},this._handleTooltipShow),this.event.on(lt.tooltipRelease,{source:Vt.chart},this._handleTooltipHideOrRelease)}_getAxisInfoByField(t){var e,i;const s=(i=(e=this._option).getComponentsByKey)===null||i===void 0?void 0:i.call(e,"axes");if(!(s!=null&&s.length))return null;let r=wt(this._spec,`${t}Field.bindingAxesIndex`);if(r||(r=[],s.forEach((g,p)=>{_st[t].includes(g.getOrient())&&r.push(p)})),!r.length)return null;const a=new Map;let o=1/0,l=1/0,h=-1/0,d=-1/0;const{x:c,y:u}=this.getLayoutStartPoint();return r.forEach(g=>{o=1/0,l=1/0,h=-1/0,d=-1/0;const p=s.find(_=>_.getSpecIndex()===g);p&&(p.getRegions().forEach(_=>{const{x:f,y:m}=_.getLayoutStartPoint();o=Math.min(o,f-c),l=Math.min(l,m-u),h=Math.max(h,f+_.getLayoutRect().width-c),d=Math.max(d,m+_.getLayoutRect().height-u)}),a.set(g,{x1:o,y1:l,x2:h,y2:d,axis:p}))}),a}changeRegions(t){}onLayoutEnd(t){const e=this._regions[0];this.setLayoutRect(e.getLayoutRect()),this.setLayoutStartPosition(e.getLayoutStartPoint()),super.onLayoutEnd(t)}onRender(t){}_releaseEvent(){this.clearOutEvent();const t=this._getTriggerEvent();t&&t.forEach(e=>{this._eventOff(e.in,!1,e.click),e.out&&this._eventOff(e.out,!0)})}_parseCrosshairSpec(){this._parseFieldInfo();const{trigger:t,triggerOff:e,labelZIndex:i,gridZIndex:s}=this._spec;t&&(this.trigger=t),(e==="none"||J(e)&&e>0)&&(this.triggerOff=e),i!==void 0&&(this.labelZIndex=i),s!==void 0&&(this.gridZIndex=s)}_parseField(t,e){var i,s,r;const a={},{line:o={},label:l={},visible:h}=t;if(a.visible=h,a.type=o.type||"line",o.visible===!1)a.style={visible:!1};else{const d=o.style||{},{stroke:c,fill:u,lineWidth:g}=d,p=d,{strokeOpacity:_,fillOpacity:f,opacity:m}=p,v=zC(p,["strokeOpacity","fillOpacity","opacity"]),y=a.type==="line";let b=y?_:f;if(J(m)&&(b=(b??1)*m),a.style=Object.assign({opacity:b,pickable:!1,visible:!0},v),y)a.style.stroke=c||u,a.style.lineWidth=wt(o,"width",g||2);else{a.style.fill=u||c,!((r=(s=(i=this._spec[e])===null||i===void 0?void 0:i.line)===null||s===void 0?void 0:s.style)===null||r===void 0)&&r.stroke&&(a.style.stroke=this._spec[e].line.style.stroke);const x=wt(o,"width");if(typeof x=="string"){const S=parseInt(x.substring(0,x.length-1),10)/100;a.style.sizePercent=S}else typeof x!="number"&&typeof x!="function"||(a.style.size=x)}}if(l.visible){const d=l.labelBackground||{},c=l.style||{},u=d.style||{},{fill:g="rgba(47, 59, 82, 0.9)",stroke:p,outerBorder:_}=u,f=zC(u,["fill","stroke","outerBorder"]);a.label={visible:!0,formatMethod:l.formatMethod,formatter:l.formatter,minWidth:d.minWidth,maxWidth:d.maxWidth,padding:d.padding,textStyle:Object.assign(Object.assign({fontSize:14,pickable:!1},c),{fill:c.fill||"#fff",stroke:wt(c,"stroke")}),panel:(Me(d.visible)?d.visible:d)?Object.assign({visible:!0,pickable:!1,fill:g,stroke:p,outerBorder:Object.assign({stroke:g,distance:0,lineWidth:3},_)},f):{visible:!1},zIndex:this.labelZIndex,childrenPickable:!1,pickable:!1}}else a.label={visible:!1};return a}_filterAxisByPoint(t,e,i){return t&&t.forEach(s=>{const r=s.axis;if(u8(s,e,i)&&t.delete(r.getSpecIndex()),r.type.startsWith("polarAxis")){const a=r.getCenter(),o=r.getInnerRadius(),l=r.getOuterRadius(),h=Ke.distancePP({x:e,y:i},a);(h>l||h{const d=1&n,c=2&n;e||(e={x:0,y:0});let u=null,g=null,p=0,_=0;if(i.size){const w=Array.from(i.values())[0];p=w.axis.getScale().scale(w.value)+w.axis.getLayoutStartPoint().x-e.x,u=w.axis}if(s.size){const w=Array.from(s.values())[0];_=w.axis.getScale().scale(w.value)+w.axis.getLayoutStartPoint().y-e.y,g=w.axis}const f=!!i.size&&Number.isFinite(p),m=!!s.size&&Number.isFinite(_),v=o&&!f&&C(l),y=o&&!m&&C(h);let b,x,S;d&&(b=v?l:{height:0,leftPos:0,rightPos:0,topPos:0,x:0,bottom:{visible:!1,text:"",dx:0,dy:0},top:{visible:!1,text:"",dx:0,dy:0},visible:f,axis:u}),c&&(x=y?h:{width:0,leftPos:0,topPos:0,bottomPos:0,y:0,left:{visible:!1,text:"",dx:0,dy:0},right:{visible:!1,text:"",dx:0,dy:0},visible:m,axis:g});let A,k=0,T=0;if(r&&i.forEach(({axis:w,value:M})=>{var R;M=M??"";let O=null;const L=w.getScale();if(mi(L.type))S=L.bandwidth(),S===0&&L.step&&(k=L.step());else if(Qt(L.type)){const E=t.fieldX[0],B=t.fieldX2,I=jw(t.getViewData().latestData,+M,E,B);if(I){const F=t.dataToPositionX(I);B?(S=Math.abs(F-t.dataToPositionX1(I)),M=`${I[E]} ~ ${I[B]}`):S=1,p=F}O=w.niceLabelFormatter}if(b&&(!((R=r.label)===null||R===void 0)&&R.visible)&&!v){const E=Ic(w.getSpec());w.getOrient()==="bottom"?(b.bottom.visible=!0,b.bottom.defaultFormatter=O,b.bottom.text=M,b.bottom.dx=0,b.bottom.dy=E):w.getOrient()==="top"&&(b.top.visible=!0,b.top.defaultFormatter=O,b.top.text=M,b.top.dx=0,b.top.dy=-E)}}),a&&s.forEach(({axis:w,value:M})=>{var R;M=M??"";let O=null;const L=w.getScale();if(mi(L.type))A=L.bandwidth(),A===0&&L.step&&(T=L.step());else if(Qt(L.type)){const E=t.fieldY[0],B=t.fieldY2,I=jw(t.getViewData().latestData,+M,E,B);if(I){const F=t.dataToPositionY(I);B?(A=Math.abs(F-t.dataToPositionY1(I)),M=`${I[E]} ~ ${I[B]}`):A=1,_=F}O=w.niceLabelFormatter}if(x&&(!((R=a.label)===null||R===void 0)&&R.visible)&&!y){const E=Ic(w.getSpec());w.getOrient()==="left"?(x.left.visible=!0,x.left.defaultFormatter=O,x.left.text=M,x.left.dx=-E,x.left.dy=0):w.getOrient()==="right"&&(x.right.visible=!0,x.right.defaultFormatter=O,x.right.text=M,x.right.dx=E,x.right.dy=0)}}),b&&!v){const w={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(jC(w,i),b.leftPos=w.x1,b.rightPos=w.x2,b.topPos=w.y1,b.height=w.y2-w.y1,b.x=p+e.x,r&&r.label){const{top:M,bottom:R}=b;M.visible&&_g(M,"top",r.label),R.visible&&_g(R,"bottom",r.label)}}if(x&&!y){const w={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(jC(w,s),x.leftPos=w.x1,x.topPos=w.y1,x.bottomPos=w.y2,x.width=w.x2-w.x1,x.y=_+e.y,a&&a.label){const{left:M,right:R}=x;M.visible&&_g(M,"left",a.label),R.visible&&_g(R,"right",a.label)}}return{x:d&&b?b:void 0,y:c&&x?x:void 0,offsetWidth:k,offsetHeight:T,bandWidth:S??0,bandHeight:A??0}},_g=(n,t,e)=>{const{formatMethod:i,formatter:s}=e,{formatFunc:r,args:a}=zs(i,s,n.text,{label:n.text,position:t});r?n.text=r(...a):n.defaultFormatter&&(n.text=n.defaultFormatter(n.text))},jC=(n,t)=>{t.forEach(({axis:e})=>{e.getRegions().forEach(i=>{n.x1=Math.min(n.x1,i.getLayoutStartPoint().x),n.y1=Math.min(n.y1,i.getLayoutStartPoint().y),n.x2=Math.max(n.x2,i.getLayoutStartPoint().x+i.getLayoutRect().width),n.y2=Math.max(n.y2,i.getLayoutStartPoint().y+i.getLayoutRect().height)})})},PD=(n,t,e,i)=>{const{x:s,topPos:r,height:a}=t,o=n.type;let l;if(o==="line")l={visible:!0,start:{x:s+e/2,y:r},end:{x:s+e/2,y:r+a}};else if(o==="rect"){const h=RD(n,e,t.axis),{leftPos:d,rightPos:c}=t;l={visible:!0,start:{x:Math.max(s-h/2-i/2,d),y:r},end:{x:Math.min(s+e+h/2+i/2,c),y:r+a}}}return l},ED=(n,t,e,i)=>{const{leftPos:s,width:r,y:a}=t,o=n.type;let l;if(o==="line")l={visible:!0,start:{x:s,y:a+e/2},end:{x:s+r,y:a+e/2}};else if(o==="rect"){const h=RD(n,e,t.axis),{topPos:d,bottomPos:c}=t;l={visible:!0,start:{x:s,y:Math.max(a-h/2-i/2,d)},end:{x:s+r,y:Math.min(a+e+h/2+i/2,c)}}}return l},RD=(n,t,e)=>{var i,s,r;let a=0;if(!((i=n.style)===null||i===void 0)&&i.sizePercent)a=(n.style.sizePercent-1)*t;else if(typeof((s=n.style)===null||s===void 0?void 0:s.size)=="number")a=n.style.size-t;else if(typeof((r=n.style)===null||r===void 0?void 0:r.size)=="function"){const o=e.getLayoutRect();a=n.style.size(o,e)-t}return a};class U_ extends AS{static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>e.xField&&e.xField.visible!==!1||e.yField&&e.yField.visible!==!1)}constructor(t,e){super(t,e),this.type=X.cartesianCrosshair,this.name=X.cartesianCrosshair,this._currValueX=new Map,this._currValueY=new Map}_showDefaultCrosshairBySpec(){const{xField:t,yField:e}=this._spec;if(t!=null&&t.visible&&t.defaultSelect){const{axisIndex:i,datum:s}=t.defaultSelect;this._defaultCrosshair(i,s,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:s}=e.defaultSelect;this._defaultCrosshair(i,s,2)}}_defaultCrosshair(t,e,i){const s=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);s&&(i===1?(this._currValueX.clear(),this._currValueX.set(t,{axis:s,value:e})):(this._currValueY.clear(),this._currValueY.set(t,{axis:s,value:e})),this.layoutByValue(i))}_findAllAxisContains(t,e){const i=this._getAxisInfoByField("x"),s=this._getAxisInfoByField("y");return{xAxisMap:this._filterAxisByPoint(i,t,e),yAxisMap:this._filterAxisByPoint(s,t,e)}}_getValueAt(t,e){return t.getScale().invert(e)}clearAxisValue(){this._currValueX.clear(),this._currValueY.clear()}setAxisValue(t,e){ye(e.getOrient())?this._currValueX.set(e.getSpecIndex(),{value:t,axis:e}):this._currValueY.set(e.getSpecIndex(),{value:t,axis:e})}_getAllAxisValues(t,e,i,s){let r=!1;return t.forEach(a=>{mi(a.axis.getScale().type)&&(r?this.enable=!1:r=!0)}),!!this.enable&&(t.forEach((a,o)=>{const l=a.axis;i.set(o,{value:this._getValueAt(l,e-(s?l.getLayoutStartPoint().x-this.getLayoutStartPoint().x:l.getLayoutStartPoint().y-this.getLayoutStartPoint().y)),axis:l})}),!0)}_layoutCrosshair(t,e,i,s){var r;let a=t,o=e;if(i&&i.length){if(s==="dimension"){const d=i[0],c=d.data.findIndex(g=>g.datum.length>0);let u;if(c>-1){const g=d.data[c];u=g.series.dataToPosition(g.datum[0])}(C(d.dimType)?d.dimType==="y":ws((r=d==null?void 0:d.axis)===null||r===void 0?void 0:r.getOrient()))?o=u==null?void 0:u.y:a=u==null?void 0:u.x}else if(s==="mark"){const d=i[0],c=d.series.dataToPosition(d.datum[0]);a=c==null?void 0:c.x,o=c==null?void 0:c.y}}const{xAxisMap:l,yAxisMap:h}=this._findAllAxisContains(a,o);if(l&&l.size===0||h&&h.size===0){if(this.enableRemain)return;this.hide()}else this._currValueX.clear(),this._currValueY.clear(),l&&l.size&&this._getAllAxisValues(l,a,this._currValueX,!0),h&&h.size&&this._getAllAxisValues(h,o,this._currValueY,!1),this.layoutByValue(3)}hide(){this._xCrosshair&&this._xCrosshair.hideAll(),this._xTopLabel&&this._xTopLabel.hideAll(),this._xBottomLabel&&this._xBottomLabel.hideAll(),this._yCrosshair&&this._yCrosshair.hideAll(),this._yLeftLabel&&this._yLeftLabel.hideAll(),this._yRightLabel&&this._yRightLabel.hideAll()}layoutByValue(t=3){if(!this.enable)return;const e=Cx(this._regions,"cartesian");if(!e)return;const{x:i,y:s,offsetWidth:r,offsetHeight:a,bandWidth:o,bandHeight:l}=CD(t,e,this.getLayoutStartPoint(),this._currValueX,this._currValueY,this._xHair,this._yHair,this.enableRemain,this._cacheXCrossHairInfo,this._cacheYCrossHairInfo);this.enableRemain&&(i&&(this._cacheXCrossHairInfo=Object.assign(Object.assign({},i),{_isCache:!0})),s&&(this._cacheYCrossHairInfo=Object.assign(Object.assign({},s),{_isCache:!0}))),i&&this._layoutVertical(i,o,r),s&&this._layoutHorizontal(s,l,a)}_layoutVertical(t,e,i){var s,r;if(t._isCache&&this.enableRemain||!this._xHair)return;const{x:a,topPos:o,height:l,top:h,bottom:d,visible:c}=t;if(c){const u=this._xHair.type,g=PD(this._xHair,t,e,i);if(this._updateCrosshair("x",u,g),h.visible){const p=Object.assign(Object.assign(Object.assign({x:a+e/2,y:o},h),this._xHair.label),{textStyle:Object.assign(Object.assign({},(s=this._xHair.label)===null||s===void 0?void 0:s.textStyle),{textAlign:"center",textBaseline:"bottom"}),zIndex:this.labelZIndex,visible:!0});this._updateCrosshairLabel(this._xTopLabel,p,_=>{_.name="crosshair-x-top-label",this._xTopLabel=_})}else this._xTopLabel&&this._xTopLabel.hideAll();if(d.visible){const p=Object.assign(Object.assign(Object.assign({x:a+e/2,y:o+l},d),this._xHair.label),{textStyle:Object.assign(Object.assign({},(r=this._xHair.label)===null||r===void 0?void 0:r.textStyle),{textAlign:"center",textBaseline:"top"}),zIndex:this.labelZIndex,visible:!0});this._updateCrosshairLabel(this._xBottomLabel,p,_=>{_.name="crosshair-x-bottom-label",this._xBottomLabel=_})}else this._xBottomLabel&&this._xBottomLabel.hideAll()}}_layoutHorizontal(t,e,i){var s,r;if(t._isCache&&this.enableRemain||!this._yHair)return;const{leftPos:a,width:o,y:l,left:h,right:d,visible:c}=t;if(c){const u=this._yHair.type,g=ED(this._yHair,t,e,i);if(this._updateCrosshair("y",u,g),h.visible){const p=Object.assign(Object.assign(Object.assign({x:a,y:l+e/2},h),this._yHair.label),{textStyle:Object.assign(Object.assign({},(s=this._yHair.label)===null||s===void 0?void 0:s.textStyle),{textAlign:"right",textBaseline:"middle"}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._yLeftLabel,p,_=>{_.name="crosshair-y-left-label",this._yLeftLabel=_})}else this._yLeftLabel&&this._yLeftLabel.hideAll();if(d.visible){const p=Object.assign(Object.assign(Object.assign({x:a+o,y:l+e},d),this._yHair.label),{textStyle:Object.assign(Object.assign({},(r=this._yHair.label)===null||r===void 0?void 0:r.textStyle),{textAlign:"left",textBaseline:"middle"}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._yRightLabel,p,_=>{_.name="crosshair-y-right-label",this._yRightLabel=_})}else this._yRightLabel&&this._yRightLabel.hideAll()}}_parseFieldInfo(){const{xField:t,yField:e}=this._spec;this._parseAndSetCrosshair(t,"x"),this._parseAndSetCrosshair(e,"y")}_parseAndSetCrosshair(t,e){const i=`_${e}Hair`,s=`_${e}Crosshair`;if(t&&t.visible){if(this[i]=this._parseField(t,`${e}Field`),this[s]){const{style:r,type:a}=this[i],o=a==="rect"?"rectStyle":"lineStyle";this[s].setAttributes({[o]:r})}}else this[s]&&this[s].parent&&this[s].parent.removeChild(this[s])}_updateCrosshair(t,e,i){const s=this.getContainer();let r;if(r=t==="x"?this._xCrosshair:this._yCrosshair,r)r.setAttributes(i);else{const a=t==="x"?this._xHair.style:this._yHair.style;e==="line"?r=new gu(Object.assign(Object.assign({},i),{lineStyle:a,zIndex:this.gridZIndex+1,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1})):e==="rect"&&(r=new Hf(Object.assign(Object.assign({},i),{rectStyle:a,zIndex:this.gridZIndex,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1}))),s==null||s.add(r),t==="x"?this._xCrosshair=r:this._yCrosshair=r}}_updateCrosshairLabel(t,e,i){const s=this.getContainer();t?t.setAttributes(e):(i(t=new kn(e)),s==null||s.add(t)),VL(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._xCrosshair,this._xTopLabel,this._xBottomLabel,this._yCrosshair,this._yLeftLabel,this._yRightLabel]}}U_.specKey="crosshair",U_.type=X.cartesianCrosshair;const fst=()=>{D.registerComponent(U_.type,U_)};var HC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{let l={x:0,y:0,center:{x:0,y:0},radius:0,distance:0,startAngle:0,endAngle:0,innerRadius:0,visible:!1,label:{visible:!1,text:"",offset:0}},h={x:0,y:0,center:{x:0,y:0},radius:0,distance:0,startAngle:0,endAngle:0,innerRadius:0,visible:!1,sides:n.angleAxisHelper.getScale(0).domain().length,label:{visible:!1,text:"",offset:0}};if(i){l.visible=!!t.size;const d=n.angleAxisHelper.getBandwidth(0);t.forEach(c=>{var u,{axis:g,value:p,coord:_}=c,f=HC(c,["axis","value","coord"]);p=p??"",gt(l,f);const m=n.angleAxisHelper.dataToPosition([p]);l.angle=m;const v=g.niceLabelFormatter;!((u=i.label)===null||u===void 0)&&u.visible&&(l.label.visible=!0,l.label.defaultFormatter=v,l.label.text=p,l.label.offset=Ic(g.getSpec())),l.startAngle=m-d/2,l.endAngle=m+d/2})}if(s&&(h.visible=!!e.size,e.forEach(d=>{var c,{axis:u,value:g,coord:p}=d,_=HC(d,["axis","value","coord"]);g=g??"";const f=u.niceLabelFormatter;!((c=s.label)===null||c===void 0)&&c.visible&&(h.label.visible=!0,h.label.defaultFormatter=f,h.label.text=g,h.label.offset=Ic(u.getSpec())),h.angle=p.angle,h.axis=u,gt(h,_)})),r&&!l.visible&&C(a))l=a;else if(l.label.visible&&i&&i.label){const{label:d}=l,{formatMethod:c,formatter:u}=i.label,{formatFunc:g,args:p}=zs(c,u,d.text,{label:d.text,orient:"angle"});g?d.text=g(...p):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}if(r&&!h.visible&&C(o))h=o;else if(h.label.visible&&s&&s.label){const{label:d}=h,{formatMethod:c,formatter:u}=s.label,{formatFunc:g,args:p}=zs(c,u,d.text,{label:d.text,orient:"radius"});g?d.text=g(...p):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}return{angle:l,radius:h}},vst=(n,t)=>{const{angle:e,innerRadius:i,radius:s,startAngle:r,endAngle:a,center:o}=t;let l;return l=(n.type==="rect"?"sector":"line")=="sector"?{center:o,innerRadius:i,radius:s,startAngle:r,endAngle:a}:{start:ue(o,i,e),end:ue(o,s,e)},l},yst=(n,t)=>{const{center:e,startAngle:i,endAngle:s,distance:r,sides:a,axis:o,point:l,radius:h,innerRadius:d}=t;let c=r;if((n.smooth?"circle":"polygon")=="polygon"){const u=o.getCenter(),g=fP(u,l),p=(s-i)/a,_=Math.floor((g-i)/p),f=_*p+i,m=Math.min((_+1)*p+i,s),v=ue(u,r,f),y=ue(u,r,m),b=D2([y.x,y.y],[v.x,v.y],[u.x,u.y],[l.x,l.y]);b&&(c=be(Ke.distancePN(l,b[0],b[1])+r,d,h))}return{center:e,startAngle:i,endAngle:s,radius:c,sides:a}};class $_ extends AS{static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>e.categoryField&&e.categoryField.visible!==!1||e.valueField&&e.valueField.visible!==!1)}constructor(t,e){super(t,e),this.type=X.polarCrosshair,this.name=X.polarCrosshair,this._currValueAngle=new Map,this._currValueRadius=new Map}_showDefaultCrosshairBySpec(){const{categoryField:t,valueField:e}=this._spec;if(t!=null&&t.visible&&t.defaultSelect){const{axisIndex:i,datum:s}=t.defaultSelect;this._defaultCrosshair(i,s,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:s}=e.defaultSelect;this._defaultCrosshair(i,s,2)}}_defaultCrosshair(t,e,i){const s=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);if(s){if(i===1){this._currValueAngle.clear();const r={angle:s.valueToPosition(e),radius:s.getOuterRadius()},a=s.coordToPoint(r);this._currValueAngle.set(t,this._getValueByAxis(s,a))}else{this._currValueRadius.clear();const r={angle:s.startAngle,radius:s.valueToPosition(e)},a=s.coordToPoint(r);this._currValueRadius.set(t,this._getValueByAxis(s,a))}this.layoutByValue(3)}}hide(){this._radiusCrosshair&&this._radiusCrosshair.hideAll(),this._radiusLabelCrosshair&&this._radiusLabelCrosshair.hideAll(),this._angleCrosshair&&this._angleCrosshair.hideAll(),this._angleLabelCrosshair&&this._angleLabelCrosshair.hideAll()}_findAllAxisContains(t,e){const i=this._getAxisInfoByField("category"),s=this._getAxisInfoByField("value");return{angleAxisMap:this._filterAxisByPoint(i,t,e),radiusAxisMap:this._filterAxisByPoint(s,t,e)}}_getAllAxisValues(t,e,i){let s=!1;return t.forEach(r=>{mi(r.axis.getScale().type)&&(s?this.enable=!1:s=!0)}),!!this.enable&&(t.forEach((r,a)=>{const o=r.axis;i.set(a,this._getValueByAxis(o,e))}),!0)}_getValueByAxis(t,e){const{x:i,y:s}=t.getLayoutStartPoint(),{x:r,y:a}=this.getLayoutStartPoint(),o=t.positionToData({x:e.x-(i-r),y:e.y-(s-a)}),l={x:t.getCenter().x+this.getLayoutStartPoint().x,y:t.getCenter().y+this.getLayoutStartPoint().y};return{value:o,axis:t,center:l,innerRadius:t.getInnerRadius(),radius:t.getOuterRadius(),startAngle:t.startAngle,endAngle:t.endAngle,distance:Ke.distancePP(e,t.getCenter()),coord:t.pointToCoord(e),point:e}}_layoutCrosshair(t,e,i,s){let r=t,a=e;if(i&&i.length){if(s==="dimension"){const h=i[0];if(h.axis){const d=h.axis.pointToCoord({x:r,y:a}),c=h.axis.getOrient()==="radius"?{radius:h.position,angle:d.angle}:{radius:d.radius,angle:h.position},u=h.axis.coordToPoint(c);r=u.x,a=u.y}}else if(s==="mark"){const h=i[0],d=h.series.dataToPosition(h.datum[0]);r=d.x,a=d.y}}const{angleAxisMap:o,radiusAxisMap:l}=this._findAllAxisContains(r,a);if(o.size!==0||l.size!==0)this._currValueAngle.clear(),this._currValueRadius.clear(),o&&this._getAllAxisValues(o,{x:r,y:a},this._currValueAngle),l&&this._getAllAxisValues(l,{x:r,y:a},this._currValueRadius),this.layoutByValue(3);else{if(this.enableRemain)return;this.hide()}}layoutByValue(t=3){if(!this.enable)return;const e=Cx(this._regions,"polar");if(!e)return;const{angle:i,radius:s}=mst(e,this._currValueAngle,this._currValueRadius,this._angleHair,this._radiusHair,this.enableRemain,this._cacheAngleCrossHairInfo,this._cacheRadiusCrossHairInfo);this.enableRemain&&(this._cacheAngleCrossHairInfo=Object.assign(Object.assign({},i),{_isCache:!0}),this._cacheRadiusCrossHairInfo=Object.assign(Object.assign({},s),{_isCache:!0})),t&&(this._layoutRadius(s),this._layoutAngle(i))}_layoutAngle(t){var e;if(t._isCache&&this.enableRemain)return;const i=this.getContainer(),{angle:s,radius:r,label:a,center:o,visible:l}=t;if(l){const h=this._angleHair.type==="rect"?"sector":"line",d=vst(this._angleHair,t);if(this._angleCrosshair)this._angleCrosshair.setAttributes(d);else{let c;h==="line"?c=new gu(Object.assign(Object.assign({},d),{lineStyle:this._angleHair.style,zIndex:this.gridZIndex,pickable:!1})):h==="sector"&&(c=new Wf(Object.assign(Object.assign({},d),{sectorStyle:this._angleHair.style,zIndex:this.gridZIndex,pickable:!1}))),this._angleCrosshair=c,i.add(c)}if(a.visible){const c=h$(s),u=Object.assign(Object.assign(Object.assign(Object.assign({},ue(o,r+a.offset,s)),this._angleHair.label),a),{textStyle:Object.assign(Object.assign({},(e=this._angleHair.label)===null||e===void 0?void 0:e.textStyle),{textAlign:c.align,textBaseline:c.baseline}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._angleLabelCrosshair,u,g=>{g.name="crosshair-angle-label",this._angleLabelCrosshair=g})}else this._angleLabelCrosshair&&this._angleLabelCrosshair.hideAll()}}_layoutRadius(t){var e;if(t._isCache&&this.enableRemain)return;const{center:i,startAngle:s,label:r,visible:a}=t,o=this.getContainer();if(a){const l=this._radiusHair.smooth?"circle":"polygon",h=yst(this._radiusHair,t),d=h.radius;if(this._radiusCrosshair)this._radiusCrosshair.setAttributes(h);else{let c;c=l==="polygon"?new Gf(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex+1})):new Vf(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex})),this._radiusCrosshair=c,o.add(c)}if(r.visible){const c=f8(s),u=Object.assign(Object.assign(Object.assign(Object.assign({},ue(i,d,s)),this._radiusHair.label),r),{textStyle:Object.assign(Object.assign({},(e=this._radiusHair.label)===null||e===void 0?void 0:e.textStyle),{textAlign:c.align,textBaseline:c.baseline}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._radiusLabelCrosshair,u,g=>{g.name="crosshair-radius-label",this._radiusLabelCrosshair=g})}else this._radiusLabelCrosshair&&this._radiusLabelCrosshair.hideAll()}}_parseFieldInfo(){var t;const{categoryField:e,valueField:i}=this._spec;e&&e.visible&&(this._angleHair=this._parseField(e,"categoryField")),i&&i.visible&&(this._radiusHair=this._parseField(i,"valueField"),this._radiusHair.smooth=(t=i==null?void 0:i.line)===null||t===void 0?void 0:t.smooth)}_updateCrosshairLabel(t,e,i){const s=this.getContainer();t?t.setAttributes(e):(t=new kn(e),s==null||s.add(t),i(t)),VL(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._radiusCrosshair,this._radiusLabelCrosshair,this._angleCrosshair,this._angleLabelCrosshair]}}$_.specKey="crosshair",$_.type=X.polarCrosshair;const bst=()=>{D.registerComponent($_.type,$_)},xst=(n,t)=>{const{getNewDomain:e,isContinuous:i,field:s}=t,r=s(),a=e();if(P(a)||P(r))return n;if(a.length===0)return[];const o={};a.forEach(h=>{o[h]||(o[h]=1)});let l=null;return l=i()?h=>{let d=!1;return j(r).every(c=>{h[c]>=a[0]&&h[c]<=$t(a)&&(d=!0)}),d}:h=>{let d=!1;return j(r).every(c=>{(o[h[c]+""]||o[h[c]])&&(d=!0)}),d},n.filter(l)},Sst=(n,t)=>{const{stateFields:e,valueFields:i,dataCollection:s}=t.input,{stateField:r,valueField:a}=t.output,o={},l=[];return s.forEach((h,d)=>{var c;if(P(e[d]))return;const u=(c=h.getFields())===null||c===void 0?void 0:c[e[d]];u&&u.lockStatisticsByDomain&&u.domain.forEach(g=>{o[g]=0}),h.latestData.forEach(g=>{j(e[d]).forEach(p=>{P(g[p])||(P(o[g[p]])&&(o[g[p]]=0),P(i[d])||(o[g[p]]+=isNaN(parseFloat(g[i[d]]))?1:parseFloat(g[i[d]])))})})}),Object.keys(o).forEach((h,d)=>{const c={[r]:h};a&&(c[a]=o[h]),l.push(c)}),l};class kS extends qi{get relatedAxisComponent(){return this._relatedAxisComponent}setStartAndEnd(t,e,i=["percent","percent"]){const[s="percent",r="percent"]=i,a=s==="percent"?t:this.dataToStatePoint(t),o=r==="percent"?e:this.dataToStatePoint(e);this._handleChange(a,o,!0)}enableInteraction(){this._activeRoam=!0}disableInteraction(){this._activeRoam=!1}zoomIn(t){this._handleChartZoom({zoomDelta:1.2,zoomX:t==null?void 0:t.x,zoomY:t==null?void 0:t.y})}zoomOut(t){this._handleChartZoom({zoomDelta:.8,zoomX:t==null?void 0:t.x,zoomY:t==null?void 0:t.y})}_handleChange(t,e,i){var s,r;(r=(s=this._spec)===null||s===void 0?void 0:s.zoomLock)!==null&&r!==void 0&&r||e-t!==this._spanCache&&(e-tthis._maxSpan)?this._shouldChange=!1:(this._shouldChange=!0,this._spanCache=e-t)}_isReverse(){const t=this._relatedAxisComponent;if(!t)return!1;const e=t.getScale();return e.range()[0]>e.range()[1]&&(!t.getInverse()||this._isHorizontal)}_updateRangeFactor(t){const e=this._relatedAxisComponent.getScale(),i=this._isReverse(),s=i?[1-this._end,1-this._start]:[this._start,this._end];if(i)switch(t){case"startHandler":e.rangeFactorEnd(s[1]);break;case"endHandler":e.rangeFactorStart(s[0]);break;default:e.rangeFactorStart(s[0],!0),e.rangeFactorEnd(s[1])}else switch(t){case"startHandler":e.rangeFactorStart(s[0]);break;case"endHandler":e.rangeFactorEnd(s[1]);break;default:e.rangeFactorEnd(s[1],!0),e.rangeFactorStart(s[0])}const r=e.rangeFactor();r?(this._start=i?1-r[1]:r[0],this._end=i?1-r[0]:r[1]):(this._start=0,this._end=1)}get visible(){return this._visible}constructor(t,e){super(t,e),this.layoutType="none",this._orient="left",this._cacheVisibility=void 0,this._dataUpdating=!1,this._shouldChange=!0,this._stateField="x",this._activeRoam=!0,this._zoomAttr={enable:!0,rate:1,focus:!0},this._dragAttr={enable:!0,rate:1,reverse:!0},this._scrollAttr={enable:!0,rate:1,reverse:!0},this.effect={onZoomChange:i=>{var s,r;const a=this._relatedAxisComponent;if(a&&this._filterMode==="axis"){const o=a.getScale(),l=a.getSpec();this._auto&&this._getAxisBandSize(l)&&this._spec.ignoreBandSize&&(o.bandwidth("auto"),o.maxBandwidth("auto"),o.minBandwidth("auto")),this._updateRangeFactor(i),this._auto&&((r=(s=this._component)===null||s===void 0?void 0:s.setStartAndEnd)===null||r===void 0||r.call(s,this._start,this._end)),a.effect.scaleUpdate({value:"force"})}else Te(this._regions,o=>{var l;(l=o.getViewData())===null||l===void 0||l.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Te(this._regions,o=>{o.reFilterViewData()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._visible=!0,this._handleStateChange=(i,s,r)=>{var a,o;return this._startValue=i,this._endValue=s,this._newDomain=this._parseDomainFromState(this._startValue,this._endValue),(o=(a=this.effect).onZoomChange)===null||o===void 0||o.call(a,r),!0},this._handleChartZoom=i=>{var s,r;if(!this._activeRoam)return;const{zoomDelta:a,zoomX:o,zoomY:l}=i,{x:h,y:d}=this._regions[0].getLayoutStartPoint(),{width:c,height:u}=this._regions[0].getLayoutRect(),g=Math.abs(this._start-this._end),p=(r=(s=this._spec.roamZoom)===null||s===void 0?void 0:s.rate)!==null&&r!==void 0?r:1;if(g>=1&&a<1||g<=.01&&a>1)return;const _=this._isHorizontal?o:l,f=g*(a-1)*p;let m=f/2,v=f/2;if(_){const x=this._isHorizontal?h:d,S=this._isHorizontal?c:u;m=Math.abs(x-_)/Math.abs(S-x)*f,v=Math.abs(S-_)/Math.abs(S-x)*f}const y=be(this._start+m,0,1),b=be(this._end-v,0,1);this._handleChange(Math.min(y,b),Math.max(y,b),!0)},this._handleChartScroll=(i,s)=>{var r;if(!this._activeRoam)return!1;const{scrollX:a,scrollY:o}=i;let l=this._isHorizontal?a:o;const h=this._isHorizontal?Wt(a/o)>=.5:Wt(o/a)>=.5;this._scrollAttr.reverse||(l=-l),h&&this._handleChartMove(l,(r=this._scrollAttr.rate)!==null&&r!==void 0?r:1);const d=this._start!==0&&this._end!==1;return h&&d},this._handleChartDrag=(i,s)=>{var r;if(!this._activeRoam)return;const[a,o]=i;let l=this._isHorizontal?a:o;this._dragAttr.reverse&&(l=-l),this._handleChartMove(l,(r=this._dragAttr.rate)!==null&&r!==void 0?r:1)},this._handleChartMove=(i,s)=>{const r=this._isHorizontal?this.getLayoutRect().width:this.getLayoutRect().height;if(Math.abs(i)>=1e-6){if(i>0&&this._end<1){const a=Math.min(1-this._end,i/r)*s;this._handleChange(this._start+a,this._end+a,!0)}else if(i<0&&this._start>0){const a=Math.max(-this._start,i/r)*s;this._handleChange(this._start+a,this._end+a,!0)}}return!1},this._orient=Xa(t),this._isHorizontal=dL(this._orient)==="horizontal"}created(){super.created(),this._setAxisFromSpec(),this._setRegionsFromSpec(),this._initEvent(),this._initData(),this._initStateScale(),this._setStateFromSpec()}initLayout(){super.initLayout(),this._layout&&(this._layout.layoutOrient=this._orient)}_setAxisFromSpec(){if(C(this._spec.axisId)?this._relatedAxisComponent=this._option.getComponentByUserId(this._spec.axisId):C(this._spec.axisIndex)&&(this._relatedAxisComponent=this._option.getComponentByIndex("axes",this._spec.axisIndex)),P(this._spec.field)&&!this._relatedAxisComponent){const t=this._option.getComponentsByKey("axes"),e=t.find(i=>i._orient===this._orient);if(e)this._relatedAxisComponent=e;else{const i=t.find(s=>!Qt(s.getScale().type));this._relatedAxisComponent=i}}this._relatedAxisComponent&&this._filterMode==="axis"&&(this._relatedAxisComponent.autoIndentOnce=!0)}_setRegionsFromSpec(){var t,e;this._regions=this._relatedAxisComponent?this._relatedAxisComponent.getRegions():this._option.getAllRegions();const i=this._relatedAxisComponent?(e=(t=this._relatedAxisComponent).getBindSeriesFilter)===null||e===void 0?void 0:e.call(t):null;if(C(i)&&(C(i.userId)&&(this._seriesUserId=j(i.userId)),C(i.specIndex)&&(this._seriesIndex=j(i.specIndex))),C(this._spec.seriesId)){const s=j(this._spec.seriesId);this._seriesUserId?this._seriesUserId=this._seriesUserId.filter(r=>s.includes(r)):this._seriesUserId=s}if(C(this._spec.seriesIndex)){const s=j(this._spec.seriesIndex);this._seriesIndex?this._seriesIndex=this._seriesIndex.filter(r=>s.includes(r)):this._seriesIndex=s}if(C(this._spec.regionIndex)){const s=this._option.getRegionsInIndex(j(this._spec.regionIndex));this._regions=this._regions.filter(r=>s.includes(r))}else if(C(this._spec.regionId)){const s=j(this._spec.regionId);this._regions=s.length?this._regions.filter(r=>s.includes(r.id)):[]}}onDataUpdate(){var t;const e=this._computeDomainOfStateScale(Qt(this._stateScale.type));this._stateScale.domain(e,!1),this._handleChange(this._start,this._end,!0),this._spec.auto&&(this._dataUpdating=!0,(t=this.getChart())===null||t===void 0||t.setLayoutTag(!0,null,!1))}_computeDomainOfStateScale(t){if(this._spec.customDomain)return this._spec.customDomain;const e=this._data.getLatestData().map(i=>i[this._stateField]);if(t){const i=e.map(s=>1*s);return e.length?[Ze(i),Fe(i)]:[-1/0,1/0]}return e}_initEvent(){this._initCommonEvent()}_initData(){const t=[],e=[],i=[];if(this._relatedAxisComponent){const a={};Te(this._regions,o=>{var l,h;const d=o.coordinate==="cartesian"?o.getXAxisHelper():o.coordinate==="polar"?o.angleAxisHelper:null,c=o.coordinate==="cartesian"?o.getYAxisHelper():o.coordinate==="polar"?o.radiusAxisHelper:null;if(!d||!c)return;const u=d.getAxisId()===this._relatedAxisComponent.id?d:c.getAxisId()===this._relatedAxisComponent.id?c:this._isHorizontal?d:c,g=u===d?c:d,p=Qt(g.getScale(0).type),_=Qt(u.getScale(0).type);t.push(o.getRawData());const f=o.getSpec(),m=o.coordinate==="cartesian"?j(f.xField):j((l=f.angleField)!==null&&l!==void 0?l:f.categoryField),v=o.coordinate==="cartesian"?j(f.yField):j((h=f.radiusField)!==null&&h!==void 0?h:f.valueField);if(a[o.id]=o.type==="link"?["from_xField"]:u===d?m:v,_?e.push(a[o.id]):e.push(a[o.id][0]),this._valueField){const y=o.type==="link"?["from_yField"]:g===d?m:v;p&&i.push(...y)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),this._originalStateFields=a}else Te(this._regions,a=>{t.push(a.getRawData()),e.push(this._field),this._valueField&&i.push(this._spec.valueField)},{userId:this._seriesUserId,specIndex:this._seriesIndex});const{dataSet:s}=this._option;dr(s,"dataview",vf),vt(s,"dataFilterComputeDomain",Sst);const r=new Gt(s,{name:`${this.type}_${this.id}_data`});r.transform({type:"dataFilterComputeDomain",options:{input:{dataCollection:t,stateFields:e,valueFields:i},output:{stateField:this._stateField,valueField:this._valueField}}},!1),this._data=new Fs(this._option,r),r.reRunAllTransform(),s.multipleDataViewAddListener(t,"change",this._handleDataCollectionChange.bind(this))}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._spec.roamZoom===!0||this._spec.roamZoom?this._zoomAttr=$({},this._zoomAttr,this._spec.roamZoom):this._zoomAttr.enable=!1,this._spec.roamDrag===!0||this._spec.roamDrag?this._dragAttr=$({},this._dragAttr,this._spec.roamDrag):this._dragAttr.enable=!1,this._spec.roamScroll===!0||this._spec.roamScroll?this._scrollAttr=$({},this._scrollAttr,this._spec.roamScroll):this._scrollAttr.enable=!1,this._field=this._spec.field,this._width=this._computeWidth(),this._height=this._computeHeight(),this._visible=(t=this._spec.visible)===null||t===void 0||t}_statePointToData(t){const e=this._stateScale,i=e.domain();if(Qt(e.type))return this._isReverse()?i[0]+($t(i)-i[0])*(1-t):i[0]+($t(i)-i[0])*t;let s=e.range();this._isReverse()&&(s=s.slice().reverse());const r=s[0]+($t(s)-s[0])*t;return e.invert(r)}dataToStatePoint(t){const e=this._stateScale,i=e.scale(t);let s=e.range();return!this._isHorizontal&&Qt(e.type)&&(s=s.slice().reverse()),(i-s[0])/($t(s)-s[0])}_modeCheck(t,e){return t==="start"?e==="percent"&&C(this._spec.start)||e==="value"&&C(this._spec.startValue):e==="percent"&&C(this._spec.end)||e==="value"&&C(this._spec.endValue)}_setStateFromSpec(){var t,e;let i,s;if(this._auto=!!this._spec.auto,this._spec.rangeMode){const[r,a]=this._spec.rangeMode;this._modeCheck("start",r)&&this._modeCheck("end",a)&&(i=r==="percent"?this._spec.start:this.dataToStatePoint(this._spec.startValue),s=a==="percent"?this._spec.end:this.dataToStatePoint(this._spec.endValue))}else i=this._spec.start?this._spec.start:this._spec.startValue?this.dataToStatePoint(this._spec.startValue):0,s=this._spec.end?this._spec.end:this._spec.endValue?this.dataToStatePoint(this._spec.endValue):1;this._startValue=this._statePointToData(i),this._endValue=this._statePointToData(s),this._start=i,this._end=s,this._minSpan=(t=this._spec.minSpan)!==null&&t!==void 0?t:0,this._maxSpan=(e=this._spec.maxSpan)!==null&&e!==void 0?e:1,Qt(this._stateScale.type)&&this._stateScale.domain()[0]!==$t(this._stateScale.domain())&&(this._spec.minValueSpan&&(this._minSpan=this._spec.minValueSpan/($t(this._stateScale.domain())-this._stateScale.domain()[0])),this._spec.maxValueSpan&&(this._maxSpan=this._spec.maxValueSpan/($t(this._stateScale.domain())-this._stateScale.domain()[0]))),this._minSpan=Math.max(0,this._minSpan),this._maxSpan=Math.min(this._maxSpan,1),this._relatedAxisComponent&&this._filterMode==="axis"||this._start===0&&this._end===1||(this._newDomain=this._parseDomainFromState(this._startValue,this._endValue))}_parseFieldOfSeries(t){var e;return(e=this._originalStateFields)===null||e===void 0?void 0:e[t.id]}_initStateScale(){const t=[0,1];if(this._relatedAxisComponent){const e=this._relatedAxisComponent.getScale(),i=Qt(e.type),s=this._computeDomainOfStateScale(i);if(this._stateScale=e.clone(),i){const r=s.map(a=>1*a);this._stateScale.domain(s.length?[Ze(r),Fe(r)]:[0,1],!0).range(t)}else this._stateScale.domain(s,!0).range(t)}else this._stateScale=new Ho,this._stateScale.domain(this._computeDomainOfStateScale(),!0).range(t)}init(t){super.init(t),this._addTransformToSeries(),this._start===0&&this._end===1||this.effect.onZoomChange()}_addTransformToSeries(){this._relatedAxisComponent&&this._filterMode==="axis"||(vt(this._option.dataSet,"dataFilterWithNewDomain",xst),Te(this._regions,t=>{t.addViewDataFilter({type:"dataFilterWithNewDomain",options:{getNewDomain:()=>this._newDomain,field:()=>{var e;return(e=this._field)!==null&&e!==void 0?e:this._parseFieldOfSeries(t)},isContinuous:()=>Qt(this._stateScale.type)},level:cs.dataZoomFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex}))}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||Jt(e,t)||(i.reRender=!0,i.reMake=!0),i}reInit(t){super.reInit(t),this._marks.forEach(e=>{e.getMarks().forEach(i=>{this.initMarkStyleWithSpec(i,this._spec[i.name])})})}changeRegions(){}update(t){}resize(t){}_parseDomainFromState(t,e){if(Qt(this._stateScale.type))return[Math.min(e,t),Math.max(e,t)];const i=this._stateScale.domain(),s=i.indexOf(t),r=i.indexOf(e);return i.slice(Math.min(s,r),Math.max(s,r)+1)}_initCommonEvent(){var t,e,i,s,r,a,o;const l={delayType:(e=(t=this._spec)===null||t===void 0?void 0:t.delayType)!==null&&e!==void 0?e:"throttle",delayTime:C((i=this._spec)===null||i===void 0?void 0:i.delayType)?(r=(s=this._spec)===null||s===void 0?void 0:s.delayTime)!==null&&r!==void 0?r:30:0,realTime:(o=(a=this._spec)===null||a===void 0?void 0:a.realTime)===null||o===void 0||o};this._zoomAttr.enable&&this.initZoomEventOfRegions(this._regions,null,this._handleChartZoom,l),this._scrollAttr.enable&&this.initScrollEventOfRegions(this._regions,null,this._handleChartScroll,l),this._dragAttr.enable&&this.initDragEventOfRegions(this._regions,null,this._handleChartDrag,l)}updateLayoutAttribute(){this._visible&&this._createOrUpdateComponent(),super.updateLayoutAttribute()}onLayoutStart(t,e,i){super.onLayoutStart(t,e,i);const s=this._autoUpdate(t),r=this._isHorizontal?"height":"width";this.layout.setLayoutRect({[r]:s?this[`_${r}`]:0},{[r]:Z.Built_In}),this._dataUpdating=!1}getBoundsInRect(t){const e={x1:this.getLayoutStartPoint().x,y1:this.getLayoutStartPoint().y,x2:0,y2:0};return this._isHorizontal?(e.y2=e.y1+this._height,e.x2=e.x1+t.width):(e.x2=e.x1+this._width,e.y2=e.y1+t.height),e}hide(){var t;(t=this._component)===null||t===void 0||t.hideAll()}show(){var t;(t=this._component)===null||t===void 0||t.showAll()}_getAxisBandSize(t){const e=t==null?void 0:t.bandSize,i=t==null?void 0:t.maxBandSize,s=t==null?void 0:t.minBandSize;if(e||s||i)return{bandSize:e,maxBandSize:i,minBandSize:s}}_autoUpdate(t){var e,i,s,r,a,o;if(!this._auto)return this._cacheVisibility=void 0,!0;const l=this._relatedAxisComponent,h=l==null?void 0:l.getSpec(),d=l==null?void 0:l.getScale(),c=this._getAxisBandSize(h);if(!this._dataUpdating&&mi(d.type)&&(t==null?void 0:t.height)===((e=this._cacheRect)===null||e===void 0?void 0:e.height)&&(t==null?void 0:t.width)===((i=this._cacheRect)===null||i===void 0?void 0:i.width)&&this._fixedBandSize===(c==null?void 0:c.bandSize))return this._cacheVisibility;let u=!0;if(this._isHorizontal&&(t==null?void 0:t.width)!==((s=this._cacheRect)===null||s===void 0?void 0:s.width)?d.range(l.getInverse()?[t.width,0]:[0,t.width]):(t==null?void 0:t.height)!==((r=this._cacheRect)===null||r===void 0?void 0:r.height)&&d.range(l.getInverse()?[0,t.height]:[t.height,0]),this._cacheRect={width:t==null?void 0:t.width,height:t==null?void 0:t.height},this._fixedBandSize=c==null?void 0:c.bandSize,mi(d.type)){c&&(this._start||this._end)&&(this.type===X.scrollBar&&(this._start=0,this._end=1),this._updateRangeFactor());const[g,p]=(a=d.rangeFactor())!==null&&a!==void 0?a:[];u=(!P(g)||!P(p))&&!(g===0&&p===1)}else{const[g,p]=(o=d.rangeFactor())!==null&&o!==void 0?o:[this._start,this._end];u=!(g===0&&p===1)}return this.setStartAndEnd(this._start,this._end),u?this.show():this.hide(),this._cacheVisibility=u,u}_getNeedClearVRenderComponents(){return[this._component]}}se(kS,oS);class OD extends Au{_mergeThemeToSpec(t,e){const i=this._theme;let s=t;if(this._shouldMergeThemeToSpec()){const r=o=>{const l=gt({selectedBackgroundChart:{line:{},area:{}}},this._theme,o),{selectedBackgroundChart:h={}}=o,{line:d,area:c}=h;return d&&d.visible!==!1&&(l.selectedBackgroundChart.line.style=Object.assign(Object.assign({},l.selectedBackgroundChart.line.style),{visible:!0})),c&&c.visible!==!1&&(l.selectedBackgroundChart.area.style=Object.assign(Object.assign({},l.selectedBackgroundChart.area.style),{visible:!0})),l},a=t;s=U(a)?a.map(o=>r(o)):r(a)}return this._adjustPadding(s),{spec:s,theme:i}}}class Qd extends kS{constructor(t,e){var i;super(t,e),this.type=X.dataZoom,this.name=X.dataZoom,this.transformerConstructor=OD,this.specKey="dataZoom",this.layoutZIndex=ee.DataZoom,this.layoutLevel=us.DataZoom,this.layoutType="region-relative",this._isReverseCache=!1,this._dataToPositionX=s=>{const r=this._orient==="left"?this._middleHandlerSize:0,a=this._isHorizontal?this._startHandlerSize/2:0,o=this._isHorizontal?this._stateScale:this._valueScale,l=this._isHorizontal?this._stateField:this._valueField;return o.scale(s[l])+this.getLayoutStartPoint().x+r+a},this._dataToPositionX2=s=>{const r=this._orient==="left"?this._middleHandlerSize:0,a=this._isHorizontal?this._startHandlerSize/2:0,o=this._isHorizontal?this._stateScale:this._valueScale,l=o.domain()[0];return o.scale(l)+this.getLayoutStartPoint().x+r+a},this._dataToPositionY=s=>{const r=this._isHorizontal?this._middleHandlerSize:0,a=this._isHorizontal?0:this._startHandlerSize/2,o=this._isHorizontal?this._valueScale:this._stateScale,l=this._isHorizontal?this._valueField:this._stateField;return o.scale(s[l])+this.getLayoutStartPoint().y+r+a},this._dataToPositionY2=s=>{const r=this._isHorizontal?this._middleHandlerSize:0,a=this._isHorizontal?0:this._startHandlerSize/2,o=this._isHorizontal?this._valueScale:this._stateScale,l=o.domain()[0];return o.scale(l)+this.getLayoutStartPoint().y+r+a},this._valueField="y",this._filterMode=(i=t.filterMode)!==null&&i!==void 0?i:"filter"}created(){super.created(),this._initValueScale()}setAttrFromSpec(){var t,e,i,s,r,a,o,l,h,d;super.setAttrFromSpec(),Me(this._spec.roam)&&(this._zoomAttr.enable=this._spec.roam,this._dragAttr.enable=this._spec.roam,this._scrollAttr.enable=this._spec.roam),(this._zoomAttr.enable||this._dragAttr.enable||this._scrollAttr.enable)&&this.initZoomable(this.event,this._option.mode),this._backgroundSize=(e=(t=this._spec.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:30,this._middleHandlerSize=this._computeMiddleHandlerSize(),this._width=this._computeWidth(),this._height=this._computeHeight(),P((r=(s=(i=this._spec)===null||i===void 0?void 0:i.startHandler)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.size)&&(this._spec.startHandler.style.size=this._isHorizontal?this._height-this._middleHandlerSize:this._width-this._middleHandlerSize),P((l=(o=(a=this._spec)===null||a===void 0?void 0:a.endHandler)===null||o===void 0?void 0:o.style)===null||l===void 0?void 0:l.size)&&(this._spec.endHandler.style.size=this._isHorizontal?this._height-this._middleHandlerSize:this._width-this._middleHandlerSize);const c=(h=this._spec.startHandler.style.visible)===null||h===void 0||h,u=(d=this._spec.endHandler.style.visible)===null||d===void 0||d;this._startHandlerSize=c?this._spec.startHandler.style.size:0,this._endHandlerSize=u?this._spec.endHandler.style.size:0}onLayoutEnd(t){this._updateScaleRange(),this._isReverse()&&!this._isReverseCache&&(this._isReverseCache=this._isReverse(),this.effect.onZoomChange()),this._cacheVisibility!==!1&&super.onLayoutEnd(t)}_initValueScale(){const t=this._computeDomainOfValueScale();if(t){const e=new Tn;e.domain(t),this._valueScale=e}}_updateScaleRange(){var t,e;const i=this._startHandlerSize+this._endHandlerSize;if(!this._stateScale||!this._valueScale)return;let s;const r=this._isHorizontal?this.getLayoutRect().width-i:this.getLayoutRect().height-i,a=(e=(t=this._relatedAxisComponent)===null||t===void 0?void 0:t.getScale().range())!==null&&e!==void 0?e:[this._startHandlerSize/2,r+this._startHandlerSize/2];this._isHorizontal?(s=this._visible?[this._startHandlerSize/2,this._computeWidth()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([this._computeHeight()-this._middleHandlerSize,0])):this.layoutOrient==="left"?(s=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([this._computeWidth()-this._middleHandlerSize,0])):(s=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([0,this._computeWidth()-this._middleHandlerSize])),this._component&&this._cacheVisibility!==!1&&this._component.setAttributes({size:{width:this._computeWidth(),height:this._computeHeight()},position:{x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y}})}_computeDomainOfValueScale(){const t=this._data.getLatestData().map(i=>i[this._valueField]),e=t.map(i=>1*i);return t.length?[Ze(e),Fe(e)]:null}_computeMiddleHandlerSize(){var t,e,i,s;let r=0;if(!((e=(t=this._spec)===null||t===void 0?void 0:t.middleHandler)===null||e===void 0)&&e.visible){const a=(i=this._spec.middleHandler.icon.style.size)!==null&&i!==void 0?i:8,o=(s=this._spec.middleHandler.background.size)!==null&&s!==void 0?s:40;r+=Math.max(a,o)}return r}_computeWidth(){return this._visible===!1?0:J(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:this._backgroundSize+this._middleHandlerSize}_computeHeight(){return this._visible===!1?0:J(this._spec.height)?this._spec.height:this._isHorizontal?this._backgroundSize+this._middleHandlerSize:this.getLayoutRect().height-(this._startHandlerSize+this._endHandlerSize)/2}_isScaleValid(t){if(!t||!t.domain())return!1;const e=t.domain();return(!Qt(t.type)||e[0]!==$t(e))&&(!mi(t.type)||v2(e).length!==1)}_getAttrs(t){var e,i,s,r,a;const o=(e=this._spec)!==null&&e!==void 0?e:{};return Object.assign({zIndex:this.layoutZIndex,start:this._start,end:this._end,position:{x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y},orient:this._orient,size:{width:this.getLayoutRect().width,height:this.getLayoutRect().height},showDetail:o.showDetail,brushSelect:(i=o.brushSelect)!==null&&i!==void 0&&i,zoomLock:(s=o.zoomLock)!==null&&s!==void 0&&s,minSpan:this._minSpan,maxSpan:this._maxSpan,delayType:o.delayType,delayTime:C(o.delayType)?(r=o.delayTime)!==null&&r!==void 0?r:30:0,realTime:(a=o.realTime)===null||a===void 0||a,previewData:t&&this._data.getLatestData(),previewPointsX:t&&this._dataToPositionX,previewPointsY:t&&this._dataToPositionY,tolerance:this._spec.tolerance},this._getComponentAttrs(t))}_createOrUpdateComponent(){if(this._visible){const t=this._isHorizontal?this._stateScale:this._valueScale,e=this._isHorizontal?this._valueScale:this._stateScale,i=this._isScaleValid(t)&&this._isScaleValid(e)&&this._spec.showBackgroundChart!==!1,s=this._getAttrs(i);if(this._component)this._component.setAttributes(s);else{const r=this.getContainer();this._component=new BO(s),this._isHorizontal?i&&this._component.setPreviewPointsY1(this._dataToPositionY2):i&&this._component.setPreviewPointsX1(this._dataToPositionX2),this._component.setStatePointToData(a=>this._statePointToData(a)),this._component.addEventListener("change",a=>{const{start:o,end:l,tag:h}=a.detail;this._handleChange(o,l,void 0,h)}),r.add(this._component),this._updateScaleRange()}}}_handleChange(t,e,i,s){if(super._handleChange(t,e,i),this._shouldChange){i&&this._component&&this._component.setStartAndEnd(t,e),this._start=t,this._end=e;const r=this._statePointToData(t),a=this._statePointToData(e);(N(this._spec.updateDataAfterChange)?this._spec.updateDataAfterChange(t,e,r,a):this._handleStateChange(r,a,s))&&this.event.emit(lt.dataZoomChange,{model:this,value:{filterData:this._filterMode!=="axis",start:t,end:e,startValue:this._startValue,endValue:this._endValue,newDomain:this._newDomain}})}}_handleDataCollectionChange(){var t;const e=this._data.getDataView();if(e.reRunAllTransform(),(t=this._component)===null||t===void 0||t.setPreviewData(e.latestData),this._valueScale){const i=this._computeDomainOfValueScale();i&&this._valueScale.domain(i)}}_getComponentAttrs(t){var e,i,s,r,a,o,l,h,d,c,u;const{middleHandler:g={},startText:p={},endText:_={},backgroundChart:f={},selectedBackgroundChart:m={}}=this._spec;return{backgroundStyle:mt((e=this._spec.background)===null||e===void 0?void 0:e.style),startHandlerStyle:mt((i=this._spec.startHandler)===null||i===void 0?void 0:i.style),middleHandlerStyle:g.visible?{visible:!0,icon:mt((s=g.icon)===null||s===void 0?void 0:s.style),background:{size:(r=g.background)===null||r===void 0?void 0:r.size,style:mt((a=g.background)===null||a===void 0?void 0:a.style)}}:{visible:!1},endHandlerStyle:mt((o=this._spec.endHandler)===null||o===void 0?void 0:o.style),startTextStyle:{padding:p.padding,formatMethod:this._getHandlerTextFormatMethod(p),textStyle:mt(p.style)},endTextStyle:{padding:_.padding,formatMethod:this._getHandlerTextFormatMethod(_),textStyle:mt(_.style)},selectedBackgroundStyle:mt(this._spec.selectedBackground.style),dragMaskStyle:mt((l=this._spec.dragMask)===null||l===void 0?void 0:l.style),backgroundChartStyle:t?{line:gt(mt((h=f.line)===null||h===void 0?void 0:h.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},mt((d=f.area)===null||d===void 0?void 0:d.style))}:{line:{visible:!1},area:{visible:!1}},selectedBackgroundChartStyle:t?{line:gt(mt((c=m.line)===null||c===void 0?void 0:c.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},mt((u=m.area)===null||u===void 0?void 0:u.style))}:{line:{visible:!1},area:{visible:!1}},disableTriggerEvent:this._option.disableTriggerEvent}}_getHandlerTextFormatMethod(t){const{formatMethod:e,formatter:i}=t,{formatFunc:s}=zs(e,i);return s?r=>s(r,{label:r},i):void 0}_getNeedClearVRenderComponents(){return[this._component]}clear(){if(this._component){const t=this.getContainer();this._component.removeAllChild(),t&&t.removeChild(this._component),this._component=null}super.clear()}}Qd.type=X.dataZoom,Qd.transformerConstructor=OD,Qd.specKey="dataZoom";const Ast=()=>{D.registerComponent(Qd.type,Qd)};class Y_ extends kS{constructor(t,e){var i;super(t,e),this.type=X.scrollBar,this.name=X.scrollBar,this.specKey="scrollBar",this.layoutZIndex=ee.DataZoom,this.layoutLevel=us.DataZoom,this.layoutType="region-relative",this._filterMode=(i=t.filterMode)!==null&&i!==void 0?i:"axis"}setAttrFromSpec(){super.setAttrFromSpec(),Me(this._spec.roam)&&(this._zoomAttr.enable=!1,this._dragAttr.enable=this._spec.roam,this._scrollAttr.enable=this._spec.roam),(this._zoomAttr.enable||this._dragAttr.enable||this._scrollAttr.enable)&&this.initZoomable(this.event,this._option.mode)}onLayoutEnd(t){var e,i;this._updateScaleRange(),(i=(e=this.effect).onZoomChange)===null||i===void 0||i.call(e),super.onLayoutEnd(t)}_updateScaleRange(){this._component&&this._component.setAttributes({x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y,width:this.getLayoutRect().width,height:this.getLayoutRect().height})}_computeWidth(){return J(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:fb}_computeHeight(){return J(this._spec.height)?this._spec.height:this._isHorizontal?fb:this.getLayoutRect().height}_getAttrs(){var t,e,i,s,r,a;return Object.assign({zIndex:this.layoutZIndex,x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y,width:this.getLayoutRect().width,height:this.getLayoutRect().height,range:[this._start,this._end],direction:this._isHorizontal?"horizontal":"vertical",delayType:(t=this._spec)===null||t===void 0?void 0:t.delayType,delayTime:C((e=this._spec)===null||e===void 0?void 0:e.delayType)?(s=(i=this._spec)===null||i===void 0?void 0:i.delayTime)!==null&&s!==void 0?s:30:0,realTime:(a=(r=this._spec)===null||r===void 0?void 0:r.realTime)===null||a===void 0||a},this._getComponentAttrs())}_createOrUpdateComponent(){const t=this._getAttrs();if(this._component)this._component.setAttributes(t);else{const e=this.getContainer();this._component=new o_(t),this._component.addEventListener("scrollDrag",i=>{const s=i.detail.value;this._handleChange(s[0],s[1])}),e.add(this._component)}}_handleChange(t,e,i){super._handleChange(t,e,i);const s=__(this._start,t)&&__(this._end,e);if(this._shouldChange&&!s){i&&this._component&&this._component.setAttribute("range",[t,e]),this._start=t,this._end=e;const r=this._statePointToData(t),a=this._statePointToData(e);(N(this._spec.updateDataAfterChange)?this._spec.updateDataAfterChange(t,e,r,a):this._handleStateChange(this._statePointToData(t),this._statePointToData(e)))&&this.event.emit(lt.scrollBarChange,{model:this,value:{filterData:this._filterMode!=="axis",start:this._start,end:this._end,startValue:this._startValue,endValue:this._endValue,newDomain:this._newDomain}})}}_handleDataCollectionChange(){}_initCommonEvent(){super._initCommonEvent(),this._component&&this._component.on("scrollDrag",t=>{const e=t.detail.value;this._handleChange(e[0],e[1])})}_getComponentAttrs(){const{rail:t,slider:e,innerPadding:i}=this._spec,s={};return P(i)||(s.padding=i),ht(t==null?void 0:t.style)||(s.railStyle=mt(t.style)),ht(e==null?void 0:e.style)||(s.sliderStyle=mt(e.style)),s.disableTriggerEvent=this._option.disableTriggerEvent,s}_getNeedClearVRenderComponents(){return[this._component]}}Y_.type=X.scrollBar,Y_.specKey="scrollBar";const kst=()=>{D.registerComponent(Y_.type,Y_)},Tst=(n,t)=>{const{datum:e,title:i,content:s}=t,r=[],a=e.call(null);return i.visible&&r.push({type:"title",index:0,datum:a,spec:i}),j(s).forEach((o,l)=>{o.visible&&r.push({type:"content",index:l,datum:a,spec:o})}),r};var Mst=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);se&&e.visible!==!1)}created(){super.created(),this.initData(),this.initEvent()}setAttrFromSpec(){super.setAttrFromSpec(),this._gap=this._spec.gap||0,this._title=this._spec.title,this._content=j(this._spec.content),this._regions=this._option.getRegionsInUserIdOrIndex(j(this._spec.regionId),j(this._spec.regionIndex))}onRender(t){}changeRegions(t){}initEvent(){var t;if(this._option.disableTriggerEvent||this._spec.trigger==="none")return;const e=(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView();e&&(this._spec.trigger==="hover"?(e.addEventListener("element-highlight:start",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(i.elements[0].getDatum())}),e.addEventListener("element-highlight:reset",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(null)})):(e.addEventListener("element-select:start",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(i.elements[0].getDatum())}),e.addEventListener("element-select:reset",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(null)})))}updateDatum(t){this._activeDatum=t,this._displayData.updateData();const e=this._getIndicatorAttrs();this._createOrUpdateIndicatorComponent(e)}initData(){vt(this._option.dataSet,"indicatorFilter",Tst);const t=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_data`});t.transform({type:"indicatorFilter",options:{title:this._title,content:this._content,datum:()=>this._activeDatum}}),t.target.addListener("change",this.updateDatum.bind(this)),this._displayData=new Fs(this._option,t)}updateLayoutAttribute(){const t=this._getIndicatorAttrs();this._createOrUpdateIndicatorComponent(t),super.updateLayoutAttribute()}_getIndicatorAttrs(){if(this._spec.visible===!1||this._spec.fixed===!1&&this._activeDatum===null)return{visible:!1};const t=this._regions[0],{width:e,height:i}=t.getLayoutRect(),{x:s,y:r}=t.getLayoutStartPoint(),a=this._spec,{content:o,offsetX:l,offsetY:h,limitRatio:d,title:c}=a,u=Mst(a,["content","offsetX","offsetY","limitRatio","title"]),g=[];return j(o).forEach(p=>{const _=gt({},this._theme.content,p);g.push({visible:_.visible!==!1&&(!_.field||this._activeDatum!==null),space:_.space||this._gap,autoLimit:_.autoLimit,autoFit:_.autoFit,fitPercent:_.fitPercent,fitStrategy:_.fitStrategy,style:Object.assign(Object.assign({},WM(ma(_.style,["text"]),this._activeDatum)),{text:this._createText(_.field,_.style.text)})})}),Object.assign({visible:!0,size:{width:e,height:i},zIndex:this.layoutZIndex,x:s,y:r,dx:l?bl(l,this._computeLayoutRadius()):0,dy:h?bl(h,this._computeLayoutRadius()):0,limitRatio:d||1/0,title:{visible:c.visible!==!1&&(!C(c.field)||this._activeDatum!==null),space:c.space||this._gap,autoLimit:c.autoLimit,autoFit:c.autoFit,fitPercent:c.fitPercent,fitStrategy:c.fitStrategy,style:Object.assign(Object.assign({},WM(ma(c.style,["text"]),this._activeDatum)),{text:this._createText(c.field,c.style.text)})},content:g},u)}_createOrUpdateIndicatorComponent(t){if(this._indicatorComponent)Jt(t,this._cacheAttrs)||this._indicatorComponent.setAttributes(t);else{const e=this.getContainer(),i=new HY(t);i.name="indicator",e.add(i),this._indicatorComponent=i,this._indicatorComponent.on("*",(s,r)=>this._delegateEvent(this._indicatorComponent,s,r))}return this._cacheAttrs=t,this._indicatorComponent}_createText(t,e){var i;return t?this._activeDatum?this._activeDatum[t]:"":N(e)?(i=e(this._activeDatum,void 0))!==null&&i!==void 0?i:"":e??""}_computeLayoutRadius(){const t=this._regions[0],{width:e,height:i}=t.getLayoutRect();return Math.min(e/2,i/2)}isRelativeModel(t){return this._regions.some(e=>e.id===t)}_getNeedClearVRenderComponents(){return[this._indicatorComponent]}clear(){this._cacheAttrs=null,super.clear()}getIndicatorComponent(){return this._indicatorComponent}}X_.type=X.indicator,X_.specKey="indicator";const wst=()=>{D.registerComponent(X_.type,X_)},Cst=["sum","average","min","max","variance","standardDeviation","median"];var Pst=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s1*a),s=Ze(i),r=Fe(i);return tr}function VC(n,t,e,i,s,r){var a,o;const{relativeSeries:l}=i;let h;return J(n.x)&&Ma(t,n.x,e)&&((o=l==null?void 0:(a=l.getXAxisHelper()).setExtendDomain)===null||o===void 0||o.call(a,"marker_xAxis_extend",n.x)),h=bn(n.x)?K_(n.x,s)+r.x:l.getXAxisHelper().dataToPosition([n.x])+r.x,h}function WC(n,t,e,i,s,r){var a,o;const{relativeSeries:l}=i;let h;return J(n.y)&&Ma(t,n.y,e)&&((o=(a=l.getYAxisHelper())===null||a===void 0?void 0:a.setExtendDomain)===null||o===void 0||o.call(a,"marker_yAxis_extend",n.y)),h=bn(n.y)?K_(n.y,s)+r.y:l.getYAxisHelper().dataToPosition([n.y])+r.y,h}function GC(n,t,e,i){var s,r;const{relativeSeries:a}=i;return J(n.angle)&&Ma(t,n.angle,e)&&((r=(s=a.angleAxisHelper)===null||s===void 0?void 0:s.setExtendDomain)===null||r===void 0||r.call(s,"marker_angleAxis_extend",n.angle)),a.angleAxisHelper.dataToPosition([n.angle])}function NC(n,t,e,i){var s,r;const{relativeSeries:a}=i;return J(n.radius)&&Ma(t,n.radius,e)&&((r=(s=a.radiusAxisHelper)===null||s===void 0?void 0:s.setExtendDomain)===null||r===void 0||r.call(s,"marker_radiusAxis_extend",n.radius)),a.radiusAxisHelper.dataToPosition([n.radius])}function K_(n,t){return Number(n.substring(0,n.length-1))*t/100}function ad(n){return Cst.includes(n)}function q_(n,t,e,i,s){const r=t.getRegion(),a=r.getLayoutStartPoint(),o=e.getRegion(),l=o.getLayoutStartPoint(),h=Math.abs(Math.min(a.x,l.x)-Math.max(a.x+r.getLayoutRect().width,l.x+o.getLayoutRect().width)),d=Math.abs(Math.min(a.y,l.y)-Math.max(a.y+r.getLayoutRect().height,l.y+o.getLayoutRect().height)),c={relativeSeries:i,startRelativeSeries:t,endRelativeSeries:e},u=[],g=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,p=i.getXAxisHelper().getScale(0).domain(),_=i.getYAxisHelper().getScale(0).domain();return g.forEach(f=>{const m=C(f.x),v=C(f.y);if(m&&v){const y=VC(f,p,s,c,h,a),b=WC(f,_,s,c,d,a);u.push([{x:y,y:b}])}else if(m){const y=VC(f,p,s,c,h,a),b=Math.max(a.y+r.getLayoutRect().height,l.y+o.getLayoutRect().height),x=Math.min(a.y,l.y);u.push([{x:y,y:b},{x:y,y:x}])}else if(v){const y=Math.min(a.x,l.x),b=WC(f,_,s,c,d,a),x=Math.max(a.x+r.getLayoutRect().width,l.x+o.getLayoutRect().width);u.push([{x:y,y:b},{x,y:b}])}}),u}function TS(n,t,e,i,s){const r={relativeSeries:i,startRelativeSeries:t,endRelativeSeries:e},a=[],o=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,l=i.angleAxisHelper.getScale(0).domain(),h=i.radiusAxisHelper.getScale(0).domain(),d=Math.min(i.getRegion().getLayoutRect().width/2,i.getRegion().getLayoutRect().height/2);return o.forEach(c=>{const u=C(c.angle),g=C(c.radius);if(u&&g){const p=GC(c,l,s,r),_=NC(c,h,s,r);a.push([{angle:p,radius:_}])}else if(u){const p=GC(c,l,s,r);a.push([{angle:p,radius:-d},{angle:p,radius:d}])}else if(g){const p=NC(c,h,s,r);a.push([{radius:p,angle:0},{radius:p,angle:2*Math.PI}])}}),a}function Est(n,t){const e=[];return(n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData).forEach(i=>{C(i.areaName)&&e.push([{x:t.nameValueToPosition(i.areaName).x+t.getRegion().getLayoutStartPoint().x,y:t.nameValueToPosition(i.areaName).y+t.getRegion().getLayoutStartPoint().y}])}),e}function MS(n,t,e,i){const s=[],r=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,a=U(i);return r.forEach((o,l)=>{var h,d,c,u;const g=o!=null&&o.getRefRelativeSeries?o.getRefRelativeSeries():t,p=g.getRegion(),_=p.getLayoutStartPoint(),{width:f,height:m}=p.getLayoutRect();let v=0,y=0;if(i){const k=a?i[l]:i,T=k.x,w=k.y;T&&(v=bn(T)?Number(T.substring(0,T.length-1))*f/100:T),w&&(y=bn(w)?Number(w.substring(0,w.length-1))*m/100:w)}const b=g.getXAxisHelper().getScale(0).domain(),x=g.getYAxisHelper().getScale(0).domain(),S=j(o.x),A=j(o.y);S.length===1&&J(S[0])&&Ma(b,S[0],e)&&((d=(h=g.getXAxisHelper())===null||h===void 0?void 0:h.setExtendDomain)===null||d===void 0||d.call(h,"marker_xAxis_extend",S[0])),A.length===1&&J(A[0])&&Ma(x,A[0],e)&&((u=(c=g.getYAxisHelper())===null||c===void 0?void 0:c.setExtendDomain)===null||u===void 0||u.call(c,"marker_yAxis_extend",A[0])),s.push({x:g.getXAxisHelper().dataToPosition(S)+_.x+v,y:g.getYAxisHelper().dataToPosition(A)+_.y+y})}),s}function BD(n,t,e){const i=[];return(n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData).forEach(s=>{var r,a,o,l;const h=s!=null&&s.getRefRelativeSeries?s.getRefRelativeSeries():t,d=h.angleAxisHelper.getScale(0).domain(),c=h.radiusAxisHelper.getScale(0).domain(),u=j(s.angle),g=j(s.radius);u.length===1&&J(u[0])&&Ma(d,u[0],e)&&((a=(r=h.angleAxisHelper)===null||r===void 0?void 0:r.setExtendDomain)===null||a===void 0||a.call(r,"marker_xAxis_extend",u[0])),g.length===1&&J(g[0])&&Ma(c,g[0],e)&&((l=(o=h.radiusAxisHelper)===null||o===void 0?void 0:o.setExtendDomain)===null||l===void 0||l.call(o,"marker_yAxis_extend",g[0])),i.push({angle:h.angleAxisHelper.dataToPosition(u),radius:h.radiusAxisHelper.dataToPosition(g)})}),i}function UC(n,t,e){let{x:i,y:s}=n;return bn(i)&&(i=K_(i,t)),bn(s)&&(s=K_(s,e)),{x:i,y:s}}function wS(n,t,e){let i;if(i=N(n)?j(n(t.getData().getLatestData(),t)):j(n),e){const a=t.getRegion(),{x:o,y:l}=a.getLayoutStartPoint(),{width:h,height:d}=a.getLayoutRect();return i.map(c=>{let{x:u,y:g}=UC(c,h,d);return u+=o,g+=l,{x:u,y:g}})}const{width:s,height:r}=t.getOption().getChart().getViewRect();return i.map(a=>UC(a,s,r))}function CS(n){let t=1/0,e=-1/0,i=1/0,s=-1/0;return n.forEach(r=>{const a=r.getLayoutStartPoint(),o=r.getLayoutRect();a.xe&&(e=a.x+o.width),a.ys&&(s=a.y+o.height)}),{minX:t,maxX:e,minY:i,maxY:s}}function PS(n,t){const{labelBackground:e={},style:i,shape:s}=n,r=Pst(n,["labelBackground","style","shape"]);if(n.visible!==!1){const a=r;return s!=null&&s.visible?a.shape=Object.assign({visible:!0},mt(s.style)):a.shape={visible:!1},e.visible!==!1?(a.panel=Object.assign({visible:!0,customShape:e.customShape},Zr(mt(e.style),t)),C(e.padding)&&(a.padding=Yi(e.padding))):(a.panel={visible:!1},a.padding=0),i&&(a.textStyle=Zr(mt(i),t)),a}return{visible:!1}}function gi(n,t){for(const e in n)N(n[e])&&(n[e]=n[e](t));return n}function Zr(n,t){return N(n)?n(t):n}function $C(n,t){return N(n)?n(t):n}function YC(n,t,e){return C(n)?t==="regionLeft"?e.getLayoutStartPoint().x-n.x:t==="regionRight"?e.getLayoutStartPoint().x+e.getLayoutRect().width-n.x:t==="regionTop"?e.getLayoutStartPoint().y-n.y:t==="regionBottom"?e.getLayoutStartPoint().y+e.getLayoutRect().height-n.y:t:t}function co(n){const t="x"in n,e="y"in n,i="x1"in n,s="y1"in n,r="angle"in n,a="radius"in n,o="angle1"in n,l="radius1"in n;return{doXProcess:t&&!e&&!s,doXYY1Process:t&&e&&s,doYProcess:e&&!t&&!i,doYXX1Process:e&&t&&i,doXYProcess:t&&e&&i&&s,doAngleProcess:r&&!o&&!a&&!l,doRadiusProcess:a&&!l&&!r&&!o,doAngRadRad1Process:r&&!o&&a&&l,doRadAngAng1Process:a&&r&&o&&!l,doRadAngProcess:r&&a&&o&&l,doCoordinatesProcess:"coordinates"in n&&(!("process"in n)||"process"in n&&"xy"in n.process)}}function uo(n){const t="x"in n,e="x1"in n,i="y"in n,s="y1"in n,r="angle"in n,a="radius"in n,o="angle1"in n,l="radius1"in n;return{doXProcess:t&&e&&!i&&!s,doYProcess:i&&s&&!t&&!e,doXYProcess:t&&e&&i&&s,doAngleProcess:r&&o&&!a&&!l,doRadiusProcess:a&&l&&!r&&!o,doRadAngProcess:r&&a&&o&&l,doCoordinatesProcess:"coordinates"in n}}function mb(n){return{doXYProcess:C(n.x)&&C(n.y),doPolarProcess:C(n.angle)&&C(n.radius),doGeoProcess:C(n.areaName)}}function Rst(n,t,e,i=0){const s=[],r=n.y-t.y,a=n.x-t.x;switch(e){case"top":s.push(n),s.push({x:n.x,y:r>0?n.y-i-Math.abs(r):n.y-i}),s.push({x:t.x,y:r>0?t.y-i:t.y-i-Math.abs(r)}),s.push(t);break;case"bottom":s.push(n),s.push({x:n.x,y:r<0?n.y+i+Math.abs(r):n.y+i}),s.push({x:t.x,y:r<0?t.y+i:t.y+i+Math.abs(r)}),s.push(t);break;case"left":s.push(n),s.push({x:a>0?n.x-i-Math.abs(a):n.x-i,y:n.y}),s.push({x:a>0?t.x-i:t.x-i-Math.abs(a),y:t.y}),s.push(t);break;case"right":s.push(n),s.push({x:a>0?n.x+i:n.x+i+Math.abs(a),y:n.y}),s.push({x:a>0?t.x+i+Math.abs(a):t.x+i,y:t.y}),s.push(t)}return s}function Ost(n,t,e,i=0){const s=n.y-t.y,r=n.x-t.x;return e==="bottom"?{dx:r>0?-r/2:Math.abs(r/2),dy:s>0?i:Math.abs(s)+i}:e==="top"?{dx:r>0?-Math.abs(r/2):+Math.abs(r/2),dy:s>0?-(Math.abs(s)+i):-i}:e==="left"?{dx:r>0?-r-i:-i,dy:s>0?-s/2:Math.abs(s/2)}:e==="right"?{dx:r>0?i:Math.abs(r)+i,dy:s>0?-s/2:Math.abs(s/2)}:{}}var Bst=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{const e=n[0].latestData;return eB(e,t.field)},Ist=(n,t)=>{const e=n[0].latestData;return wx(e,t.field)};function Dst(n,t){const e=n[0].latestData;return iB(e,t.field)}function Fst(n,t){const e=n[0].latestData;return nB(e,t.field)}function zst(n,t){const e=n[0].latestData;return sB(e,t.field)}function jst(n,t){const e=n[0].latestData;return g8(e,t.field)}function Hst(n,t){const e=n[0].latestData;return p8(e,t.field)}function ES(n,t){let e;if(t.coordinates){const s=t,{coordinates:r,coordinateType:a,getSeriesByIdOrIndex:o}=s,l=Bst(s,["coordinates","coordinateType","getSeriesByIdOrIndex"]);let h,d;if(N(r)){const c=t.getRelativeSeries();h=r(c.getData().getLatestData(),c)}else h=r;h=j(h),e=h.map(c=>{const u=o(c.refRelativeSeriesId,c.refRelativeSeriesIndex);if(a==="cartesian"){const{xField:g,yField:p}=u.getSpec(),{xFieldDim:_,xFieldIndex:f,yFieldDim:m,yFieldIndex:v}=c;let y=g;C(f)&&(y=j(g)[f]),_&&j(g).includes(_)&&(y=_);let b=p;C(v)&&(b=j(p)[v]),m&&j(p).includes(m)&&(b=m),d=Object.assign({x:void 0,y:void 0},l),tt(c[y])&&ad(c[y])?d.x={field:y,aggrType:c[y]}:d.x=j(y).map(x=>c[x]),tt(c[b])&&ad(c[b])?d.y={field:b,aggrType:c[b]}:d.y=j(b).map(x=>c[x])}else if(a==="polar"){const{valueField:g,categoryField:p}=u.getSpec(),{angleFieldDim:_,angleFieldIndex:f}=c;let m=p;C(f)&&(m=j(p)[f]),_&&j(p).includes(_)&&(m=_);const v=g;d=Object.assign({angle:void 0,radius:void 0},l),tt(c[m])&&ad(c[m])?d.angle={field:m,aggrType:c[m]}:d.angle=j(m).map(y=>c[y]),tt(c[v])&&ad(c[v])?d.radius={field:v,aggrType:c[v]}:d.radius=j(v).map(y=>c[y])}return d.getRefRelativeSeries=()=>u,d})}else e=t;const i=[];return e.forEach(s=>{const r={x:null,y:null,angle:null,radius:null,areaName:null};if(C(s.x)){const a=s.x;U(a)?r.x=a.map(o=>$s(o,n,s)):r.x=$s(a,n,s)}if(C(s.y)){const a=s.y;U(a)?r.y=a.map(o=>$s(o,n,s)):r.y=$s(a,n,s)}if(C(s.angle)){const a=s.angle;U(a)?r.angle=a.map(o=>$s(o,n,s)):r.angle=$s(a,n,s)}if(C(s.radius)){const a=s.radius;U(a)?r.radius=a.map(o=>$s(o,n,s)):r.radius=$s(a,n,s)}if(C(s.areaName)){const a=s.areaName;r.areaName=$s(a,n,s)}s.getRefRelativeSeries&&(r.getRefRelativeSeries=s.getRefRelativeSeries),i.push(r)}),i}const Vst={min:Lst,max:Ist,sum:Dst,average:Fst,variance:zst,standardDeviation:jst,median:Hst};function $s(n,t,e){const i=e.getRelativeSeries(),s=e.getStartRelativeSeries(),r=e.getEndRelativeSeries(),a=i.getData().getLatestData(),o=s.getData().getLatestData(),l=r.getData().getLatestData();if(N(n))return n(a,o,l,i,s,r);if(Ls(n)){const{aggrType:h,field:d}=n;return Vst[h](t,{field:d})}return n}class RS extends qi{constructor(){super(...arguments),this.layoutType="none",this._layoutOffsetX=0,this._layoutOffsetY=0}getRelativeSeries(){return this._relativeSeries}getMarkerData(){return this._markerData}static _getMarkerCoordinateType(t){return"cartesian"}static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>e.visible!==!1&&this._getMarkerCoordinateType(e)===this.coordinateType)}created(){super.created(),this._bindSeries(),this._initDataView(),this.initEvent()}_getAllRelativeSeries(){return{getRelativeSeries:()=>this._relativeSeries,getStartRelativeSeries:()=>this._startRelativeSeries,getEndRelativeSeries:()=>this._endRelativeSeries}}_getFieldInfoFromSpec(t,e,i){const s={x:"xField",y:"yField",radius:"valueField",angle:"categoryField",areaName:"nameField"};return tt(e)&&ad(e)?{field:i.getSpec()[s[t]],aggrType:e}:e}_processSpecByDims(t){const e=this._relativeSeries,i={};return t.forEach(s=>i[s.dim]=this._getFieldInfoFromSpec(s.dim,s.specValue,e)),Object.assign(Object.assign({},i),this._getAllRelativeSeries())}_processSpecCoo(t){return Object.assign(Object.assign({coordinates:t.coordinates||t.coordinate},this._getAllRelativeSeries()),{getSeriesByIdOrIndex:(e,i)=>this._getSeriesByIdOrIndex(e,i),coordinateType:this.coordinateType})}_getRelativeDataView(){if(this._specifiedDataSeries){let t=[];j(this._specifiedDataSeries).forEach(i=>{t=t.concat(i.getViewData().latestData)});const e=new ya;return e.registerParser("array",rP),new Gt(e).parse(t,{type:"array"})}return this._relativeSeries.getViewData()}updateLayoutAttribute(){var t,e,i;if((t=this._spec.visible)===null||t===void 0||t){if(!this._markerComponent){const s=this._createMarkerComponent();s.name=(e=this._spec.name)!==null&&e!==void 0?e:this.type,s.id=(i=this._spec.id)!==null&&i!==void 0?i:`${this.type}-${this.id}`,this._markerComponent=s,this.getContainer().add(this._markerComponent),this._markerComponent.on("*",(r,a)=>{this._delegateEvent(this._markerComponent,r,a,null,this.getMarkerData.bind(this))})}this._markerLayout()}super.updateLayoutAttribute()}_getSeriesByIdOrIndex(t,e){var i,s;let r;return r=(i=this._option.getSeriesInUserIdOrIndex(C(t)?[t]:[],[e]))===null||i===void 0?void 0:i[0],r||(r=(s=this._relativeSeries)!==null&&s!==void 0?s:this._getFirstSeries()),r}_bindSeries(){const t=this._spec;this._relativeSeries=this._getSeriesByIdOrIndex(t.relativeSeriesId,t.relativeSeriesIndex),this._startRelativeSeries=this._getSeriesByIdOrIndex(t.startRelativeSeriesId,t.startRelativeSeriesIndex),this._endRelativeSeries=this._getSeriesByIdOrIndex(t.endRelativeSeriesId,t.endRelativeSeriesIndex),t.specifiedDataSeriesIndex&&t.specifiedDataSeriesIndex==="all"||t.specifiedDataSeriesId&&t.specifiedDataSeriesId==="all"?this._specifiedDataSeries=this._option.getAllSeries():(t.specifiedDataSeriesIndex||t.specifiedDataSeriesId)&&(this._specifiedDataSeries=this._getSeriesByIdOrIndex(t.specifiedDataSeriesId,t.specifiedDataSeriesIndex))}initEvent(){this._relativeSeries.coordinate!=="cartesian"&&(this._relativeSeries.event.on("zoom",this._markerLayout.bind(this)),this._relativeSeries.event.on("panmove",this._markerLayout.bind(this)),this._relativeSeries.event.on("scroll",this._markerLayout.bind(this)))}onRender(t){}changeRegions(t){}clear(){super.clear(),this._firstSeries=null}_getFirstSeries(){var t;if(this._firstSeries)return this._firstSeries;const e=Cx(this._regions);return e?(this._firstSeries=e,e):((t=this._option)===null||t===void 0||t.onError("need at least one series"),null)}_getNeedClearVRenderComponents(){return[this._markerComponent]}onLayoutStart(t,e,i){P(this._spec.offsetX)||(this._layoutOffsetX=$e(this._spec.offsetX,e.width,e)),P(this._spec.offsetY)||(this._layoutOffsetY=$e(this._spec.offsetY,e.height,e)),super.onLayoutStart(t,e,i)}_compareSpec(t,e){const i=super._compareSpec(t,e);return Jt(e,t)||(i.reRender=!0,i.reMake=!0,i.change=!0),i}}function Wst(n,t){const e=n[0].latestData;return _8(e,t.fieldX,t.fieldY)}function OS(n,t){if(t&&t.getRelativeSeries){const e=t.getRelativeSeries();if(e){const i=e.getViewData();return i&&i.latestData&&i.latestData.length?n:[]}}return n}class BS extends RS{constructor(){super(...arguments),this.specKey="markLine",this.layoutZIndex=ee.MarkLine}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:s,doRadAngAng1Process:r,doRadAngProcess:a}=co(t);return t.coordinateType==="polar"||e||i||s||r||a?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,s,r,a,o,l,h,d,c,u,g,p,_,f,m,v,y;const{label:b={},startSymbol:x={},endSymbol:S={}}=this._spec,A={zIndex:this.layoutZIndex,interactive:(t=this._spec.interactive)===null||t===void 0||t,hover:(e=this._spec.interactive)===null||e===void 0||e,select:(i=this._spec.interactive)===null||i===void 0||i,points:[{x:0,y:0},{x:0,y:0}],center:{x:0,y:0},radius:0,startAngle:0,endAngle:0,lineStyle:Zr(mt((s=this._spec.line)===null||s===void 0?void 0:s.style),this._markerData),clipInRange:(r=this._spec.clip)!==null&&r!==void 0&&r,label:PS(b,this._markerData),state:{line:gi((o=(a=this._spec.line)===null||a===void 0?void 0:a.state)!==null&&o!==void 0?o:{},this._markerData),lineStartSymbol:gi((h=(l=this._spec.startSymbol)===null||l===void 0?void 0:l.state)!==null&&h!==void 0?h:{},this._markerData),lineEndSymbol:gi((c=(d=this._spec.endSymbol)===null||d===void 0?void 0:d.state)!==null&&c!==void 0?c:{},this._markerData),label:gi((p=(g=(u=this._spec)===null||u===void 0?void 0:u.label)===null||g===void 0?void 0:g.state)!==null&&p!==void 0?p:{},this._markerData),labelBackground:gi((v=(m=(f=(_=this._spec)===null||_===void 0?void 0:_.label)===null||f===void 0?void 0:f.labelBackground)===null||m===void 0?void 0:m.state)!==null&&v!==void 0?v:{},this._markerData)},animation:(y=this._spec.animation)!==null&&y!==void 0&&y,animationEnter:this._spec.animationEnter,animationExit:this._spec.animationExit,animationUpdate:this._spec.animationUpdate};return x.visible?A.startSymbol=Object.assign(Object.assign({},x),{visible:!0,style:mt(x.style)}):A.startSymbol={visible:!1},S.visible?A.endSymbol=Object.assign(Object.assign({},S),{visible:!0,style:mt(S.style)}):A.endSymbol={visible:!1},this._newMarkLineComponent(A)}_getUpdateMarkerAttrs(){var t,e,i,s;const r=this._spec,a=this._markerData,o=this._startRelativeSeries,l=this._endRelativeSeries,h=this._relativeSeries,d=this._computePointsAttr(),c=h.getViewData().latestData,u=a.latestData[0]&&a.latestData[0].latestData?a.latestData[0].latestData:a.latestData;let g;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:f,maxX:m,minY:v,maxY:y}=CS([o.getRegion(),l.getRegion(),h.getRegion()]);g={x:f,y:v,width:m-f,height:y-v}}const p=(i=(e=this._markerComponent)===null||e===void 0?void 0:e.attribute)!==null&&i!==void 0?i:{},_=Object.assign(Object.assign({},p.label),{text:this._spec.label.formatMethod?this._spec.label.formatMethod(u,c):(s=p.label)===null||s===void 0?void 0:s.text});return Object.assign(Object.assign({},d),{label:_,limitRect:g,dx:this._layoutOffsetX,dy:this._layoutOffsetY})}_markerLayout(){var t;const e=this._getUpdateMarkerAttrs();(t=this._markerComponent)===null||t===void 0||t.setAttributes(e)}_initDataView(){const t=this._spec,e="coordinates"in t,{doXProcess:i,doYProcess:s,doXYY1Process:r,doYXX1Process:a,doXYProcess:o,doAngleProcess:l,doRadiusProcess:h,doAngRadRad1Process:d,doRadAngAng1Process:c,doRadAngProcess:u}=co(t);if(this._markerData=this._getRelativeDataView(),!(i||s||r||a||o||l||h||d||c||u||e))return;vt(this._option.dataSet,"markerAggregation",ES),vt(this._option.dataSet,"markerRegression",Wst),vt(this._option.dataSet,"markerFilter",OS);const{options:g,needAggr:p,needRegr:_,processData:f}=this._computeOptions(),m=new Gt(this._option.dataSet);m.parse([f],{type:"dataview"}),p&&m.transform({type:"markerAggregation",options:g}),_&&m.transform({type:"markerRegression",options:g}),m.transform({type:"markerFilter",options:this._getAllRelativeSeries()}),m.target.on("change",()=>{this._markerLayout()}),this._markerData=m}}BS.specKey="markLine";class Z_ extends BS{constructor(){super(...arguments),this.type=X.markLine,this.name=X.markLine,this.coordinateType="cartesian"}_newMarkLineComponent(t){return new Qr(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,o=C(e.coordinates),l=C(e.process),h=l&&C(e.process.x),d=l&&C(e.process.y),c=C(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t,{doXProcess:g,doYProcess:p,doXYY1Process:_,doYXX1Process:f,doXYProcess:m,doCoordinatesProcess:v}=co(e);let y=[];if(g||_||p||f||m||o&&h||o&&d){const b=q_(i,s,r,a,u);y=b.length===1?b[0]:b.map(x=>x[0])}else v?y=MS(i,a,u,e.coordinatesOffset):c&&(y=wS(e.positions,a,e.regionRelative));return{points:y}}_markerLayout(){var t,e,i,s,r,a,o,l;const h=this._getUpdateMarkerAttrs();if(this._spec.type==="type-step"){const d=this._startRelativeSeries,c=this._endRelativeSeries,{multiSegment:u,mainSegmentIndex:g}=this._spec.line||{},{connectDirection:p,expandDistance:_=0}=this._spec;let f;if(bn(_)){const A=d.getRegion(),k=A.getLayoutStartPoint(),T=c.getRegion(),w=T.getLayoutStartPoint();if(p==="bottom"||p==="top"){const M=Math.abs(Math.min(k.y,w.y)-Math.max(k.y+A.getLayoutRect().height,w.y+T.getLayoutRect().height));f=Number(_.substring(0,_.length-1))*M/100}else{const M=Math.abs(Math.min(k.x,w.x)-Math.max(k.x+A.getLayoutRect().width,w.x+T.getLayoutRect().width));f=Number(_.substring(0,_.length-1))*M/100}}else f=_;const{points:m,label:v,limitRect:y}=h,b=Rst(m[0],m[1],p,f);let x;x=u&&C(g)?{position:"middle",autoRotate:!1,refX:0,refY:0}:Object.assign(Object.assign({position:"start",autoRotate:!1},Ost(m[0],m[1],p,f)),{refX:0,refY:0}),H((t=this._spec.label)===null||t===void 0?void 0:t.refX)&&(x.refX+=this._spec.label.refX),H((e=this._spec.label)===null||e===void 0?void 0:e.refY)&&(x.refY+=this._spec.label.refY),H((i=this._spec.label)===null||i===void 0?void 0:i.dx)&&(x.dx=(x.dx||0)+this._spec.label.dx),H((s=this._spec.label)===null||s===void 0?void 0:s.dy)&&(x.dy=(x.dy||0)+this._spec.label.dy);const S=(a=(r=this._markerComponent)===null||r===void 0?void 0:r.attribute)!==null&&a!==void 0?a:{};(o=this._markerComponent)===null||o===void 0||o.setAttributes({points:u?[[b[0],b[1]],[b[1],b[2]],[b[2],b[3]]]:b,label:Object.assign(Object.assign(Object.assign({},v),x),{textStyle:Object.assign(Object.assign({},S.label.textStyle),{textAlign:"center",textBaseline:"middle"})}),limitRect:y,multiSegment:u,mainSegmentIndex:g,dx:this._layoutOffsetX,dy:this._layoutOffsetY})}else(l=this._markerComponent)===null||l===void 0||l.setAttributes(h)}_computeOptions(){let t,e=this._getRelativeDataView(),i=!0,s=!1;const r=this._spec,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYY1Process:h,doYXX1Process:d,doXYProcess:c,doCoordinatesProcess:u}=co(r);if(c)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x1},{dim:"y",specValue:r.y1}])];else if(o)t=[this._processSpecByDims([{dim:"x",specValue:r.x}])];else if(l)t=[this._processSpecByDims([{dim:"y",specValue:r.y}])];else if(h)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y1}])];else if(d)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x1},{dim:"y",specValue:r.y}])];else if(u){if(t=this._processSpecCoo(r),i=!1,e=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_data`}).parse([a.getViewData()],{type:"dataview"}).transform({type:"markerAggregation",options:t}),r.process&&"x"in r.process&&(t=[this._processSpecByDims([{dim:"x",specValue:r.process.x}])],i=!0),r.process&&"y"in r.process&&(t=t=[this._processSpecByDims([{dim:"y",specValue:r.process.y}])],i=!0),r.process&&"xy"in r.process){const{xField:g,yField:p}=a.getSpec();t={fieldX:g,fieldY:p},s=!0}}else i=!1;return{options:t,needAggr:i,needRegr:s,processData:e}}}Z_.type=X.markLine,Z_.coordinateType="cartesian";const Gst=()=>{D.registerComponent(Z_.type,Z_),VO()};class J_ extends BS{constructor(){super(...arguments),this.type=X.polarMarkLine,this.name=X.polarMarkLine,this.coordinateType="polar"}_newMarkLineComponent(t){const{doRadiusProcess:e,doRadAngAng1Process:i}=co(this._spec);return e||i?new ro(t):new Qr(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,o=(t=e.autoRange)!==null&&t!==void 0&&t,{doAngleProcess:l,doRadiusProcess:h,doAngRadRad1Process:d,doRadAngAng1Process:c,doRadAngProcess:u,doCoordinatesProcess:g}=co(e);let p=[],_={};const f={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};if(l||h||d||c||u){const m=TS(i,s,r,a,o);p=m.length===1?m[0]:m.map(v=>v[0]),_=p[0].radius===p[1].radius?{radius:p[0].radius,startAngle:p[0].angle,endAngle:p[1].angle,center:f}:{points:p.map(v=>ue(f,v.radius,v.angle))}}else g&&(p=BD(i,a,o),_={points:p.map(m=>ue(f,m.radius,m.angle))});return _}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:s,doRadAngAng1Process:r,doRadAngProcess:a,doCoordinatesProcess:o}=co(t);let l;const h=this._getRelativeDataView();return a?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius1}])]:e?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle}])]:i?l=[this._processSpecByDims([{dim:"radius",specValue:t.radius}])]:s?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius1}])]:r?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius}])]:o&&(l=this._processSpecCoo(t)),{options:l,needAggr:!0,needRegr:!1,processData:h}}}J_.type=X.polarMarkLine,J_.coordinateType="polar";const Nst=()=>{D.registerComponent(J_.type,J_),PY(),VO()};class Q_ extends qi{get orient(){return this._orient}constructor(t,e){super(t,e),this.type=X.title,this.specKey=X.title,this.layoutType="normal",this.layoutZIndex=ee.Title,this.layoutLevel=us.Title,this._orient="top",this._orient=Ex(t.orient)?t.orient:"top"}initLayout(){super.initLayout(),this._layout&&(this._layout.layoutOrient=this._orient)}static getSpecInfo(t){return gs(t,this.specKey,X.title,e=>e.visible!==!1)}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return(e==null?void 0:e.orient)===(t==null?void 0:t.orient)&&(e==null?void 0:e.visible)===t.visible||(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}update(t){}resize(t){}afterSetLayoutStartPoint(t){H(t.x)&&this._titleComponent&&this._titleComponent.setAttribute("x",t.x),H(t.y)&&this._titleComponent&&this._titleComponent.setAttribute("y",t.y),super.afterSetLayoutStartPoint(t)}getBoundsInRect(t){let e={};this.setLayoutRect(t);const i=this._getTitleAttrs();this._createOrUpdateTitleComponent(i),e=this._getTitleLayoutRect();const{x:s,y:r}=this.getLayoutStartPoint();return{x1:s,y1:r,x2:s+e.width,y2:r+e.height}}_getTitleLayoutRect(){const t=this._titleComponent.AABBBounds;return{width:this._spec.width?this._spec.width:H(t.width())?t.width():0,height:this._spec.height?this._spec.height:H(t.height())?t.height():0}}_getTitleAttrs(){var t,e,i,s,r,a,o,l;if(this._spec.visible===!1)return{visible:!1};const h=this.getLayoutRect(),d=$e(this._spec.width,h.width,null,h.width),c=$e(this._spec.maxWidth,h.width,null,h.width),u=Math.max(Math.min(d,c,h.width),0),g=Object.assign(Object.assign({},ma(this._spec,["padding"])),{textType:(t=this._spec.textType)!==null&&t!==void 0?t:"text",text:(e=this._spec.text)!==null&&e!==void 0?e:"",subtextType:(i=this._spec.subtextType)!==null&&i!==void 0?i:"text",subtext:(s=this._spec.subtext)!==null&&s!==void 0?s:"",x:(r=this._spec.x)!==null&&r!==void 0?r:0,y:(a=this._spec.y)!==null&&a!==void 0?a:0,height:this._spec.height,minWidth:this._spec.minWidth,maxWidth:u,minHeight:this._spec.minHeight,maxHeight:this._spec.maxHeight,padding:this._spec.innerPadding,align:(o=this._spec.align)!==null&&o!==void 0?o:"left",verticalAlign:(l=this._spec.verticalAlign)!==null&&l!==void 0?l:"top",textStyle:Object.assign({width:u,maxLineWidth:u},this._spec.textStyle),subtextStyle:Object.assign({maxLineWidth:u},this._spec.subtextStyle)});return C(this._spec.width)&&(g.textStyle.width=Math.max(d,h.width),g.subtextStyle.width=g.textStyle.width),g}_createOrUpdateTitleComponent(t){if(this._titleComponent)Jt(t,this._cacheAttrs)||this._titleComponent.setAttributes(t);else{const e=this.getContainer(),i=new KO(t);i.name="title",e.add(i),this._titleComponent=i,i.on("*",(s,r)=>this._delegateEvent(i,s,r))}return this._cacheAttrs=t,this._titleComponent}_getNeedClearVRenderComponents(){return[this._titleComponent]}clear(){super.clear(),this._cacheAttrs=null}}Q_.type=X.title,Q_.specKey=X.title;const Ust=()=>{D.registerComponent(Q_.type,Q_)};class LS extends RS{constructor(){super(...arguments),this.specKey="markArea",this.layoutZIndex=ee.MarkArea}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:s}=uo(t);return t.coordinateType==="polar"||e||i||s?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,s,r,a,o,l,h,d,c,u;const g=(t=this._spec.label)!==null&&t!==void 0?t:{},p={zIndex:this.layoutZIndex,interactive:(e=this._spec.interactive)===null||e===void 0||e,hover:(i=this._spec.interactive)===null||i===void 0||i,select:(s=this._spec.interactive)===null||s===void 0||s,points:[{x:0,y:0}],center:{x:0,y:0},innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,areaStyle:Zr(mt((r=this._spec.area)===null||r===void 0?void 0:r.style),this._markerData),clipInRange:(a=this._spec.clip)!==null&&a!==void 0&&a,label:PS(g,this._markerData),state:{area:gi((o=this._spec.area)===null||o===void 0?void 0:o.state,this._markerData),label:gi((l=this._spec.label)===null||l===void 0?void 0:l.state,this._markerData),labelBackground:gi((c=(d=(h=this._spec)===null||h===void 0?void 0:h.label)===null||d===void 0?void 0:d.labelBackground)===null||c===void 0?void 0:c.state,this._markerData)},animation:(u=this._spec.animation)!==null&&u!==void 0&&u,animationEnter:this._spec.animationEnter,animationExit:this._spec.animationExit,animationUpdate:this._spec.animationUpdate};return this._newMarkAreaComponent(p)}_markerLayout(){var t,e,i,s;const r=this._spec,a=this._markerData,o=this._startRelativeSeries,l=this._endRelativeSeries,h=this._relativeSeries,d=this._computePointsAttr(),c=this._getRelativeDataView().latestData,u=a?a.latestData[0]&&a.latestData[0].latestData?a.latestData[0].latestData:a.latestData:c;let g;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:p,maxX:_,minY:f,maxY:m}=CS([o.getRegion(),l.getRegion(),h.getRegion()]);g={x:p,y:f,width:_-p,height:m-f}}this._markerComponent&&this._markerComponent.setAttributes(Object.assign(Object.assign({},d),{label:Object.assign(Object.assign({},(e=this._markerComponent.attribute)===null||e===void 0?void 0:e.label),{text:this._spec.label.formatMethod?this._spec.label.formatMethod(u,c):(s=(i=this._markerComponent.attribute)===null||i===void 0?void 0:i.label)===null||s===void 0?void 0:s.text}),limitRect:g,dx:this._layoutOffsetX,dy:this._layoutOffsetY}))}_initDataView(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:s,doAngleProcess:r,doRadiusProcess:a,doRadAngProcess:o,doCoordinatesProcess:l}=uo(t);if(!(e||i||s||r||a||o||l))return null;const{options:h}=this._computeOptions(),d=this._getRelativeDataView();vt(this._option.dataSet,"markerAggregation",ES),vt(this._option.dataSet,"markerFilter",OS);const c=new Gt(this._option.dataSet,{name:`${this.type}_${this.id}_data`});c.parse([d],{type:"dataview"}),c.transform({type:"markerAggregation",options:h}),c.transform({type:"markerFilter",options:this._getAllRelativeSeries()}),c.target.on("change",()=>{this._markerLayout()}),this._markerData=c}}LS.specKey="markArea";class tf extends LS{constructor(){super(...arguments),this.type=X.markArea,this.name=X.markArea,this.coordinateType="cartesian"}_newMarkAreaComponent(t){return new ta(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYProcess:h,doCoordinatesProcess:d}=uo(e),c=C(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t;let g=[],p=[];if(h){p=q_(i,s,r,a,u);const[_,f]=p;_&&_.length&&f&&f.length&&(g=[{x:_[0].x,y:f[0].y},_[0],{x:f[0].x,y:_[0].y},f[0]])}else if(o||l){p=q_(i,s,r,a,u);const[_,f]=p;_&&_.length&&f&&f.length&&(g=[..._,f[1],f[0]])}else d?g=MS(i,a,u,e.coordinatesOffset):c&&(g=wS(e.positions,a,e.regionRelative));return{points:g}}_computeOptions(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:s,doCoordinatesProcess:r}=uo(t);let a;return s?a=[this._processSpecByDims([{dim:"x",specValue:t.x},{dim:"y",specValue:t.y}]),this._processSpecByDims([{dim:"x",specValue:t.x1},{dim:"y",specValue:t.y1}])]:e?a=[this._processSpecByDims([{dim:"x",specValue:t.x}]),this._processSpecByDims([{dim:"x",specValue:t.x1}])]:i?a=[this._processSpecByDims([{dim:"y",specValue:t.y}]),this._processSpecByDims([{dim:"y",specValue:t.y1}])]:r&&(a=this._processSpecCoo(t)),{options:a}}}tf.type=X.markArea,tf.coordinateType="cartesian";const $st=()=>{D.registerComponent(tf.type,tf),WO()};class ef extends LS{constructor(){super(...arguments),this.type=X.polarMarkArea,this.name=X.polarMarkArea,this.coordinateType="polar"}_newMarkAreaComponent(t){const{doRadiusProcess:e,doAngleProcess:i,doRadAngProcess:s}=uo(this._spec);return i||e||s?new ao(t):new ta(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doAngleProcess:o,doRadiusProcess:l,doRadAngProcess:h,doCoordinatesProcess:d}=uo(e),c=(t=e.autoRange)!==null&&t!==void 0&&t;let u,g={};const p={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};if(o||l||h){const _=TS(i,s,r,a,c);h?g={innerRadius:_[0][0].radius,outerRadius:_[1][0].radius,startAngle:_[0][0].angle,endAngle:_[1][0].angle,center:p}:o?g={innerRadius:0,outerRadius:Math.abs(_[0][0].radius),startAngle:_[0][1].angle,endAngle:_[1][1].angle,center:p}:l&&(g={innerRadius:_[0][0].radius,outerRadius:_[1][0].radius,startAngle:_[0][0].angle,endAngle:_[1][1].angle,center:p})}else d&&(u=BD(i,a,c),g={points:u.map(_=>ue(p,_.radius,_.angle))});return g}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:s,doCoordinatesProcess:r}=uo(t);let a;return s?a=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius1}])]:e?a=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius}])]:i?a=[this._processSpecByDims([{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"radius",specValue:t.radius1}])]:r&&(a=this._processSpecCoo(t)),{options:a}}}ef.type=X.polarMarkArea,ef.coordinateType="polar";const Yst=()=>{D.registerComponent(ef.type,ef),EY(),WO()},XC=n=>{const t=Object.assign({},n);return mt(t)},Xst=n=>{const t=Object.assign({},n);return mt(t)},fg=n=>Object.assign(Object.assign({},n),{style:Object.assign({},mt(n.style))}),LD=n=>{var t,e,i,s,r,a,o,l,h,d,c,u,g,p,_;const f=XC((e=(t=n==null?void 0:n.slider)===null||t===void 0?void 0:t.trackStyle)!==null&&e!==void 0?e:{}),m=XC((s=(i=n==null?void 0:n.slider)===null||i===void 0?void 0:i.railStyle)!==null&&s!==void 0?s:{}),v=Xst((a=(r=n==null?void 0:n.slider)===null||r===void 0?void 0:r.handlerStyle)!==null&&a!==void 0?a:{}),y=fg((l=(o=n==null?void 0:n.controller)===null||o===void 0?void 0:o.start)!==null&&l!==void 0?l:{}),b=fg((d=(h=n==null?void 0:n.controller)===null||h===void 0?void 0:h.pause)!==null&&d!==void 0?d:{}),x=fg((u=(c=n==null?void 0:n.controller)===null||c===void 0?void 0:c.backward)!==null&&u!==void 0?u:{}),S=fg((p=(g=n==null?void 0:n.controller)===null||g===void 0?void 0:g.forward)!==null&&p!==void 0?p:{}),A=Object.assign(Object.assign({},n),{direction:n.direction,interval:n.interval,visible:n.visible,orient:(_=n.orient)!==null&&_!==void 0?_:"bottom",slider:Object.assign(Object.assign({},n.slider),{trackStyle:f,railStyle:m,handlerStyle:v}),controller:Object.assign(Object.assign({},n.controller),{start:y,pause:b,backward:x,forward:S})});return n.visible||(A.controller.visible=!1,A.slider.visible=!1),A},Kst=(n,t)=>Object.assign(Object.assign({},LD(n)),{data:t,type:"continuous"}),qst=(n,t)=>Object.assign(Object.assign({},LD(n)),{data:t,type:"discrete"}),Gh=n=>n==="left"||n==="right",V0=n=>n==="top"||n==="bottom";class nf extends qi{constructor(){super(...arguments),this.layoutZIndex=ee.Player,this.layoutLevel=us.Player,this.specKey="player",this.type=X.player,this._orient="bottom",this._getPlayerAttrs=()=>{var t,e,i,s,r,a;const o=this._spec.type,l={size:{width:this._width,height:this._height},dx:(t=this._spec.dx)!==null&&t!==void 0?t:0+this._dx,dy:(e=this._spec.dy)!==null&&e!==void 0?e:0+this._dy};return o==="discrete"?Object.assign(Object.assign(Object.assign({},qst(this._spec,this._specs)),l),{disableTriggerEvent:this._option.disableTriggerEvent,loop:(s=(i=this._spec)===null||i===void 0?void 0:i.loop)===null||s===void 0||s}):Object.assign(Object.assign(Object.assign({},Kst(this._spec,this._specs)),l),{disableTriggerEvent:this._option.disableTriggerEvent,loop:(a=(r=this._spec)===null||r===void 0?void 0:r.loop)===null||a===void 0||a})},this._createOrUpdatePlayerComponent=()=>{const t=Object.assign({},this._getPlayerAttrs()),e=this.getContainer();this._playerComponent?Jt(t,this._cacheAttrs)||(this._cacheAttrs=t,this._playerComponent.setAttributes(t),this._playerComponent._initAttributes(),this._playerComponent.render()):(t.type==="discrete"?this._playerComponent=new i8(t):this._playerComponent=new s8(t),this._cacheAttrs=t,this._playerComponent.name="player",e.add(this._playerComponent),this._initEvent())},this._maxSize=()=>{var t,e,i,s,r,a,o,l,h;return Math.max(...j((e=(t=this._spec.controller.start)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.size),...j((s=(i=this._spec.controller.pause)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.size),...j((a=(r=this._spec.controller.backward)===null||r===void 0?void 0:r.style)===null||a===void 0?void 0:a.size),...j((l=(o=this._spec.controller.forward)===null||o===void 0?void 0:o.style)===null||l===void 0?void 0:l.size),(h=Gh(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&h!==void 0?h:10)},this._sliderExceededSize=()=>{var t,e,i,s,r,a,o,l,h;const d=(t=Gh(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&t!==void 0?t:10,c=Math.max(...j((i=(e=this._spec.controller.start)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.size),...j((r=(s=this._spec.controller.pause)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.size),...j((o=(a=this._spec.controller.backward)===null||a===void 0?void 0:a.style)===null||o===void 0?void 0:o.size),...j((h=(l=this._spec.controller.forward)===null||l===void 0?void 0:l.style)===null||h===void 0?void 0:h.size));return d>=c?d-c:0},this._initEvent=()=>{this._option.disableTriggerEvent||(this._option.globalInstance.on(lt.rendered,()=>{var t;!((t=this._spec)===null||t===void 0)&&t.auto&&this._playerComponent.play()}),this._playerComponent.addEventListener(Le.end,()=>{var t;this.event.emit(lt.playerEnd,{model:this}),this._alternate&&this._spec.type==="discrete"&&(this._direction=this._direction==="default"?"reverse":"default",this._playerComponent.setAttributes({direction:this._direction,dataIndex:this._direction==="reverse"?this._specs.length-2:1})),!((t=this._spec)===null||t===void 0)&&t.loop&&this._playerComponent.play()}),this._playerComponent.addEventListener(Le.change,t=>{const{index:e}=t.detail;this.changePlayerIndex(e)}),this._playerComponent.addEventListener(Le.backward,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(lt.playerBackward,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(Le.forward,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(lt.playerForward,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(Le.play,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(lt.playerPlay,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(Le.pause,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(lt.playerPause,{model:this,value:{spec:i,index:e,specs:this._specs}})}))}}get orient(){return this._orient}set layoutOrient(t){this._orient=t}setAttrFromSpec(){var t,e,i,s,r,a,o,l;super.setAttrFromSpec(),this._orient=(t=this._spec.orient)!==null&&t!==void 0?t:"bottom",this._specs=(e=this._spec.specs)!==null&&e!==void 0?e:[],this._direction=(i=this._spec.direction)!==null&&i!==void 0?i:"default",this._alternate=(s=this._spec.alternate)!==null&&s!==void 0&&s,this._dx=(r=this._spec.dx)!==null&&r!==void 0?r:0,this._dy=(a=this._spec.dy)!==null&&a!==void 0?a:0,this._position=(o=this._spec.position)!==null&&o!==void 0?o:"middle",this._visible=(l=this._spec.visible)===null||l===void 0||l}afterSetLayoutStartPoint(t){if(super.afterSetLayoutStartPoint(t),H(t.x)){const e=Gh(this._orient)?t.x+this._sliderExceededSize()/2:t.x;this._playerComponent&&this._playerComponent.setAttribute("x",e)}if(H(t.y)){const e=V0(this._orient)?t.y+this._sliderExceededSize()/2:t.y;this._playerComponent&&this._playerComponent.setAttribute("y",e)}}getBoundsInRect(t,e){this._width=this._computeWidth(t),this._height=this._computeHeight(t),this._dx=this._computeDx(e),this._dy=this._computeDy(e);const i=this._computeLayoutRect(t,this._width,this._height);return this._createOrUpdatePlayerComponent(),i}changeRegions(t){}onRender(t){}_getNeedClearVRenderComponents(){return[this._playerComponent]}_computeLayoutRect(t,e,i){if(this._visible===!1)return{x1:0,x2:0,y1:0,y2:0};switch(this._orient){case"top":case"left":return{x1:0,y1:0,x2:e,y2:i};case"right":return{x1:t.width-e,y1:0,x2:t.width,y2:t.height};default:return{x1:0,y1:t.height-i,x2:t.width,y2:t.height}}}_computeWidth(t){return J(this._spec.width)?Math.min(t.width,Number(this._spec.width)):Gh(this._orient)?this._maxSize():t.width}_computeHeight(t){return J(this._spec.height)?(this._height=this._spec.height,Math.min(t.height,Number(this._spec.height))):V0(this._orient)?this._maxSize():t.height}_computeDx(t){return Gh(this._orient)||this._position==="start"?0:this._position==="middle"?(t.width-this._width)/2:t.width-this._width}_computeDy(t){return V0(this._orient)||this._position==="start"?0:this._position==="middle"?(t.height-this._height)/2:t.height-this._height}changePlayerIndex(t){const e=this._specs[t];j(e.data).forEach(i=>{var s,r;(r=(s=this._option)===null||s===void 0?void 0:s.globalInstance)===null||r===void 0||r.updateData(i.id,i.values)}),this.event.emit(lt.playerChange,{model:this,value:{spec:e,index:t,specs:this._specs}})}}nf.specKey="player",nf.type=X.player;const Zst=()=>{D.registerComponent(nf.type,nf)};class IS extends qi{constructor(t,e){super(t,e),this.type=X.label,this.name=X.label,this.layoutType="none",this.layoutZIndex=ee.Label,this._regions=e.getRegionsInIndex(e.regionIndexes)}_interactiveConfig(t){const{interactive:e}=t,i={hover:!1,select:!1,state:t.state};if(e!==!0)return i;const{hover:s,select:r}=this._option.getChart().getSpec();return s===!1&&s.enable===!1||(i.hover=!0),r===!1&&r.enable===!1||(i.select=!0),i}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reRender=!0,Jt(e,t)||(i.reMake=!0),i}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}}IS.type=X.label;class sf extends uh{constructor(){super(...arguments),this.skipEncode=!1}getRule(){return this._rule}setRule(t){this._rule=t}getTarget(){return this._target}setTarget(t){this._target=t,this._rule||this.setRule(t.type)}getComponent(){return this._component}setComponent(t){this._component=t}}sf.type="text",sf.constructorType="label";const ID=()=>{D.registerMark(sf.constructorType,sf),VB()};class DD extends Au{_initTheme(t,e){return{spec:t,theme:this._theme}}}class tc extends IS{constructor(t,e){super(t,e),this.type=X.label,this.name=X.label,this.specKey="label",this.transformerConstructor=DD,this.layoutZIndex=ee.Label,this._layoutRule=t.labelLayout||"series"}static getSpecInfo(t,e){const i=[];return((e==null?void 0:e.region)||[]).forEach((r,a)=>{(r.seriesIndexes||[]).some(o=>{const l=e.series[o],{markLabelSpec:h={}}=l;return Object.values(h).some(d=>Array.isArray(d)&&(c=>c.some(u=>u.visible))(d))})&&i.push({spec:t,type:X.label,specInfoPath:["component",this.specKey,a],regionIndexes:[a]})}),i}init(t){super.init(t),this.initEvent(),this._initTextMark(),this._initLabelComponent(),this._initTextMarkStyle()}reInit(t){super.reInit(t),this._labelInfoMap&&this._labelInfoMap.clear(),this._initTextMark(),this._initTextMarkStyle()}initEvent(){this.event.on(lt.dataZoomChange,()=>{this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&s.disableAnimation()}),this.event.on(ut.AFTER_MARK_RENDER_END,t)});const t=()=>{this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&s.enableAnimation()}),this.event.off(ut.AFTER_MARK_RENDER_END,t)}}_initTextMark(){this._labelInfoMap||(this._labelInfoMap=new Map),this._labelComponentMap||(this._labelComponentMap=new Map),Te(this._regions,t=>{const{markLabelSpec:e={}}=t.getSpecInfo(),i=Object.keys(e),s=t.getRegion();this._labelInfoMap.get(s)||this._labelInfoMap.set(s,[]);for(let r=0;r{if(l.visible){const d=this._labelInfoMap.get(s),c=this._createMark({type:"label",name:`${a}-label-${h}`},{noSeparateStyle:!0,attributeContext:t.getMarkAttributeContext()});c.setTarget(o),d.push({labelMark:c,baseMark:o,series:t,labelSpec:l})}})}})}_initLabelComponent(){this._labelInfoMap.forEach((t,e)=>{if(this._layoutRule==="region"){const i=this._createMark({type:"component",name:`${e.getGroupMark().name}-label-component`},{componentType:"label",noSeparateStyle:!0},{support3d:this._spec.support3d});i&&(i.setSkipBeforeLayouted(!0),t[0]&&C(t[0].labelSpec.zIndex)&&i.setMarkConfig({zIndex:t[0].labelSpec.zIndex}),this._marks.addMark(i),this._labelComponentMap.set(i,()=>this._labelInfoMap.get(e)))}else t.forEach((i,s)=>{const r=this._createMark({type:"component",name:`${i.labelMark.name}-component`},{componentType:"label",noSeparateStyle:!0},{support3d:i.baseMark.getMarkConfig().support3d});r&&(C(i.labelSpec.zIndex)&&r.setMarkConfig({zIndex:i.labelSpec.zIndex}),r.setSkipBeforeLayouted(!0),this._marks.addMark(r),this._labelComponentMap.set(r,()=>this._labelInfoMap.get(e)[s]))})})}_initTextMarkStyle(){this._labelComponentMap.forEach((t,e)=>{j(t()).forEach(({labelMark:i})=>{i.setComponent(e)})}),this._labelInfoMap.forEach(t=>{t.forEach(e=>{var i,s;const{labelMark:r,labelSpec:a,series:o}=e;if(this.initMarkStyleWithSpec(r,a,void 0),N(a==null?void 0:a.getStyleHandler)){const l=a.getStyleHandler(o);l==null||l.call(o,r,a)}!((s=(i=r.stateStyle)===null||i===void 0?void 0:i.normal)===null||s===void 0)&&s.lineWidth&&r.setAttribute("stroke",o.getColorAttribute(),"normal",Z.Base_Series)})})}updateLayoutAttribute(){super.updateLayoutAttribute(),this._labelComponentMap.forEach((t,e)=>{const i=t();U(i)?this._updateMultiLabelAttribute(i,e):this._updateSingleLabelAttribute(i,e)})}_updateMultiLabelAttribute(t,e){this._updateLabelComponentAttribute(e.getProduct(),t.map(({baseMark:i})=>i.getProduct()),t)}_updateSingleLabelAttribute(t,e){const{baseMark:i}=t;this._updateLabelComponentAttribute(e.getProduct(),i.getProduct(),[t])}_updateLabelComponentAttribute(t,e,i){const s=this._option.getComponentsByType("totalLabel");t.target(e).configure({interactive:!1}).depend(s.map(r=>r.getMarks()[0].getProduct())).labelStyle((r,a)=>{var o,l;const h=i[a.labelIndex];if(h){const{labelSpec:d,labelMark:c,series:u}=h,g=c.getRule(),p=this._interactiveConfig(d),_=(l=(o=this._spec)===null||o===void 0?void 0:o.centerOffset)!==null&&l!==void 0?l:0;let f=gt({textStyle:Object.assign({pickable:d.interactive===!0},d.style),overlap:{avoidMarks:s.map(m=>m.getMarks()[0].getProductId())}},cQ(g,h),Object.assign(Object.assign(Object.assign({},ma(d,["position","style","state","type","stackDataFilterType","getStyleHandler"])),p),{centerOffset:_}),d.stackDataFilterType?{dataFilter:d.stackDataFilterType==="min"?m=>m.filter(v=>v.data[fB]):m=>m.filter(v=>v.data[Cc])}:{});return u&&u.parseLabelStyle&&(f=u.parseLabelStyle(f,d,c)),g!=="line"&&g!=="area"||(f.type=g),f}}).encode((r,a,o)=>{if(i[o.labelIndex]){const{labelSpec:l,labelMark:h}=i[o.labelIndex];return h.skipEncode?{data:r}:lS(i[o.labelIndex],r,l.formatMethod,l.formatter)}}).size(()=>i[0].series.getRegion().getLayoutRect())}compileMarks(){this.getMarks().forEach(t=>{const e=this._labelComponentMap.get(t)();let i;i=U(e)?e[0].series.getRegion().getGroupMark().getProduct():e.series.getRegion().getGroupMark().getProduct(),t.compile({group:i,context:{model:this,labelInfo:e}})})}getVRenderComponents(){const t=[];return this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&t.push(s)}),t}}tc.type=X.label,tc.specKey="label",tc.transformerConstructor=DD;const Jst=()=>{ZB(),ID(),bm(),D.registerComponent(tc.type,tc,!0)};class rf extends IS{constructor(){super(...arguments),this.type=X.totalLabel,this.name=X.totalLabel,this.specKey="totalLabel",this.layoutZIndex=ee.Label}static getSpecInfo(t,e){var i;const s=[];return(i=e==null?void 0:e.region)===null||i===void 0||i.forEach((r,a)=>{var o;(o=r.seriesIndexes)===null||o===void 0||o.forEach(l=>{const{spec:h}=e.series[l],d=h[this.specKey];d!=null&&d.visible&&s.push({spec:d,type:X.totalLabel,specPath:["series",l,this.specKey],specInfoPath:["component",this.specKey,l],regionIndexes:[a],seriesIndexes:[l]})})}),s}init(t){super.init(t),this._initTextMark(),this._initLabelComponent()}reInit(t){super.reInit(t),this._initTextMark()}_initTextMark(){var t;const e=this._getSeries();if(!((t=e.getSpec().totalLabel)===null||t===void 0)&&t.visible){const i=e.getSeriesMark();if(i){const s=this._createMark({type:"label",name:`${i.name}-total-label`});this._baseMark=i,this._textMark=s,this._initTextMarkStyle()}}}_initTextMarkStyle(){var t;super.initMarkStyleWithSpec(this._textMark,this._spec),this.setMarkStyle(this._textMark,{text:i=>i[_B]},"normal",Z.Default);const e=this._getSeries();(t=e.initTotalLabelMarkStyle)===null||t===void 0||t.call(e,this._textMark)}_initLabelComponent(){const t=this._getSeries(),e=this._createMark({type:"component",name:`${t.name}-total-label-component`},{componentType:"label",noSeparateStyle:!0},{support3d:this._spec.support3d});e&&this._marks.addMark(e)}updateLayoutAttribute(){super.updateLayoutAttribute();const t=this._getSeries();this._marks.forEach((e,i)=>{e.getProduct().target(this._baseMark.getProduct()).configure({interactive:!1}).labelStyle(()=>{var s,r;if(this._baseMark){const{offset:a,animation:o,overlap:l}=this._spec,h=this._interactiveConfig(this._spec);return gt({textStyle:{pickable:this._spec.interactive===!0},position:Qst(t,this._baseMark.type),x:0,y:0},(r=(s=t.getTotalLabelComponentStyle)===null||s===void 0?void 0:s.call(t,{baseMark:this._baseMark,labelMark:this._textMark}))!==null&&r!==void 0?r:{},Object.assign({offset:a,animation:o,overlap:l,dataFilter:d=>d.filter(c=>c.data[Cc])},h))}}).encode(s=>lS({baseMark:this._baseMark,labelMark:this._textMark,series:t,labelSpec:t.getSpec().totalLabel},s,this._spec.formatMethod)).size(()=>this._regions[0].getLayoutRect())})}compileMarks(){this.getMarks().forEach(t=>{const e=this._regions[0].getGroupMark().getProduct();t.compile({group:e,context:{model:this}})})}getVRenderComponents(){const t=[];return this.getMarks().forEach(e=>{const i=e.getProduct().getGroupGraphicItem();i&&t.push(i)}),t}_getSeries(){return this._option.getSeriesInIndex([this.getSpecPath()[1]])[0]}}rf.type=X.totalLabel,rf.specKey="totalLabel";function Qst(n,t){var e,i;let s;const{direction:r}=n,a={vertical:["top","bottom"],horizontal:["right","left"]},o=(r==="horizontal"?!((e=n.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=n.getYAxisHelper())===null||i===void 0)&&i.isInverse())?1:0;switch(t){case"rect":case"symbol":s=a[r][o];break;default:s="top"}return s}const trt=()=>{ZB(),ID(),bm(),D.registerComponent(rf.type,rf,!0)};var KC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this._markerLayout()}),this._markerData=a}}Im.specKey="markPoint";class af extends Im{constructor(){super(...arguments),this.type=X.markPoint,this.name=X.markPoint,this.coordinateType="cartesian"}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._relativeSeries,r="x"in e&&"y"in e,a="coordinate"in e,o="position"in e,l=(t=e==null?void 0:e.autoRange)!==null&&t!==void 0&&t;let h;return r?h=q_(i,s,s,s,l)[0][0]:a?h=MS(i,s,l,e.coordinatesOffset)[0]:o&&(h=wS(e.position,s,e.regionRelative)[0]),{point:h}}_computeOptions(){const t=this._spec,{doXYProcess:e}=mb(t),i=C(t.coordinate);let s;return e?s=[this._processSpecByDims([{dim:"x",specValue:t.x},{dim:"y",specValue:t.y}])]:i&&(s=this._processSpecCoo(t)),{options:s}}}af.type=X.markPoint,af.coordinateType="cartesian";const ert=()=>{D.registerComponent(af.type,af),kx()};class of extends Im{constructor(){super(...arguments),this.type=X.polarMarkPoint,this.name=X.polarMarkPoint,this.coordinateType="polar"}_computePointsAttr(){var t,e;const i=this._markerData,s=this._relativeSeries,r=(e=(t=this._spec)===null||t===void 0?void 0:t.autoRange)!==null&&e!==void 0&&e,a=TS(i,s,s,s,r)[0][0],o={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};return{point:ue(o,a.radius,a.angle)}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"radius",specValue:t.radius},{dim:"angle",specValue:t.angle}])]}}}of.type=X.polarMarkPoint,of.coordinateType="polar";const irt=()=>{D.registerComponent(of.type,of),kx()};class lf extends Im{constructor(){super(...arguments),this.type=X.geoMarkPoint,this.name=X.geoMarkPoint,this.coordinateType="geo"}_computePointsAttr(){const t=this._markerData,e=this._relativeSeries;return{point:Est(t,e)[0][0]}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"areaName",specValue:t.areaName}])]}}}lf.type=X.geoMarkPoint,lf.coordinateType="geo";const nrt=()=>{D.registerComponent(lf.type,lf),kx()};class hf extends qi{constructor(){super(...arguments),this.layoutType="none",this.type=X.brush,this.name=X.brush,this.specKey="brush",this.layoutZIndex=ee.Brush,this._linkedSeries=[],this._itemMap={},this._linkedItemMap={},this._inBrushElementsMap={},this._outOfBrushElementsMap={},this._linkedInBrushElementsMap={},this._linkedOutOfBrushElementsMap={},this._needInitOutState=!0,this._cacheInteractiveRangeAttrs=[],this._needDisablePickable=!1,this._releatedAxes=[],this._regionAxisMap={},this._axisDataZoomMap={},this._zoomRecord=[]}init(){const t=this._transformBrushedMarkAttr(this._spec.inBrush),e=this._transformBrushedMarkAttr(this._spec.outOfBrush);this._option.getAllSeries().forEach(i=>{i.getActiveMarks().forEach(s=>{s&&(i.setMarkStyle(s,Object.assign({},t),"inBrush",Z.Series),i.setMarkStyle(s,Object.assign({},e),"outOfBrush",Z.Series))})})}static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>e.visible!==!1)}created(){super.created(),this.initEvent(),this._bindRegions(),this._bindLinkedSeries(),this._initRegionAxisMap(),this._initAxisDataZoomMap(),this._initNeedOperatedItem()}_extendDataInBrush(t){const e=[];for(const i in t)for(const s in t[i])e.push(Object.assign({},t[i][s].data[0]));return e}_extendDatumOutOfBrush(t){var e;const i=[];for(const s in t)i.push((e=t[s].data)===null||e===void 0?void 0:e[0]);return i}_getBrushInteractiveAttr(t){const e=t.getLayoutStartPoint(),i=t.getLayoutRect(),s=e.x,r=s+i.width,a=e.y,o=a+i.height;return{interactiveRange:{minY:a,maxY:o,minX:s,maxX:r},xRange:[s,r],yRange:[a,o]}}_updateBrushComponent(t,e){const i=this._getBrushInteractiveAttr(t),s=this._brushComponents[e];s.setAttributes(i),this._initMarkBrushState(e,""),s.children[0].removeAllChild(),this._needInitOutState=!0}_createBrushComponent(t,e){var i,s;const r=this._getBrushInteractiveAttr(t),a=new JO(Object.assign(Object.assign(Object.assign({zIndex:this.layoutZIndex,brushStyle:mt((i=this._spec)===null||i===void 0?void 0:i.style)},r),this._spec),{disableTriggerEvent:this._option.disableTriggerEvent}));a.id=(s=this._spec.id)!==null&&s!==void 0?s:`brush-${this.id}`,this.getContainer().add(a);const{brushMode:o="single"}=this._spec;this._brushComponents.push(a),this._cacheInteractiveRangeAttrs.push(r),a.addEventListener(Di.drawStart,l=>{this._emitEvent(lt.brushStart,t)}),a.addEventListener(Di.moveStart,l=>{this._emitEvent(lt.brushStart,t)}),a.addEventListener(Di.drawing,l=>{this._needInitOutState&&o==="single"&&this._initMarkBrushState(e,"outOfBrush"),this._needInitOutState=!1,this._needDisablePickable=!0,this._handleBrushChange(lt.brushChange,t,l),this._emitEvent(lt.brushChange,t)}),a.addEventListener(Di.moving,l=>{this._handleBrushChange(lt.brushChange,t,l),this._emitEvent(lt.brushChange,t)}),a.addEventListener(Di.brushClear,l=>{this._initMarkBrushState(e,""),this._needInitOutState=!0,this._needDisablePickable=!1,this._handleBrushChange(lt.brushChange,t,l),this._handleBrushChange(lt.brushClear,t,l),this._emitEvent(lt.brushChange,t),this._emitEvent(lt.brushClear,t)}),a.addEventListener(Di.drawEnd,l=>{this._needInitOutState=!0,this._needDisablePickable=!1;const{operateMask:h}=l.detail;this._handleBrushChange(lt.brushEnd,t,l);const d=this._extendDataInBrush(this._inBrushElementsMap);!this._spec.zoomWhenEmpty&&d.length>0&&this._setAxisAndDataZoom(h,t),this._emitEvent(lt.brushEnd,t)}),a.addEventListener(Di.moveEnd,l=>{const{operateMask:h}=l.detail;this._handleBrushChange(lt.brushEnd,t,l);const d=this._extendDataInBrush(this._inBrushElementsMap);!this._spec.zoomWhenEmpty&&d.length>0&&this._setAxisAndDataZoom(h,t),this._emitEvent(lt.brushEnd,t)})}_handleBrushChange(t,e,i){const{operateMask:s}=i.detail;this._reconfigItem(s,e),this._reconfigLinkedItem(s,e)}_emitEvent(t,e){this.event.emit(t,{model:this,value:{operateType:t,operateRegion:e,inBrushData:this._extendDataInBrush(this._inBrushElementsMap),outOfBrushData:this._extendDatumOutOfBrush(this._outOfBrushElementsMap),linkInBrushData:this._extendDataInBrush(this._linkedInBrushElementsMap),linkOutOfBrushData:this._extendDatumOutOfBrush(this._linkedOutOfBrushElementsMap),inBrushElementsMap:this._inBrushElementsMap,outOfBrushElementsMap:this._outOfBrushElementsMap,linkedInBrushElementsMap:this._linkedInBrushElementsMap,linkedOutOfBrushElementsMap:this._linkedOutOfBrushElementsMap,zoomRecord:this._zoomRecord}})}_transformBrushedMarkAttr(t){const e={};return t!=null&&t.symbol&&(e.symbolType=t.symbol),t!=null&&t.symbolSize&&(e.size=t.symbolSize),t!=null&&t.color&&(e.fill=t.color),t!=null&&t.colorAlpha&&(e.fillOpacity=t.colorAlpha),Object.assign(Object.assign({},mt(t)),e)}_reconfigItem(t,e){this._itemMap[e.id].forEach(i=>{const s=i.getProduct();!s||!s.elements||!s.elements.length||s.elements.forEach(r=>{var a,o,l;const h=r.getGraphicItem(),d=i.id+"_"+r.key;!((a=this._outOfBrushElementsMap)===null||a===void 0)&&a[d]&&this._isBrushContainItem(t,h)?(r.addState("inBrush"),this._inBrushElementsMap[t==null?void 0:t.name]||(this._inBrushElementsMap[t==null?void 0:t.name]={}),this._inBrushElementsMap[t==null?void 0:t.name][d]=r,delete this._outOfBrushElementsMap[d]):!((l=(o=this._inBrushElementsMap)===null||o===void 0?void 0:o[t==null?void 0:t.name])===null||l===void 0)&&l[d]&&!this._isBrushContainItem(t,h)&&(r.removeState("inBrush"),r.addState("outOfBrush"),this._outOfBrushElementsMap[d]=r,delete this._inBrushElementsMap[t.name][d]),h.setAttribute("pickable",!this._needDisablePickable)})})}_reconfigLinkedItem(t,e){const i=e.getLayoutStartPoint(),s=e.getSeries().map(r=>r.id);this._linkedSeries.forEach(r=>{if(!s.includes(r.id)){const a=r.getRegion().getLayoutStartPoint(),o=a.x-i.x,l=a.y-i.y;this._linkedItemMap[r.id].forEach(h=>{const d=h.getProduct();!d||!d.elements||!d.elements.length||d.elements.forEach(c=>{var u,g,p;const _=c.getGraphicItem(),f=h.id+"_"+c.key;!((u=this._linkedOutOfBrushElementsMap)===null||u===void 0)&&u[f]&&this._isBrushContainItem(t,_,{dx:o,dy:l})?(c.addState("inBrush"),this._linkedInBrushElementsMap[t==null?void 0:t.name]||(this._linkedInBrushElementsMap[t==null?void 0:t.name]={}),this._linkedInBrushElementsMap[t==null?void 0:t.name][f]=c,delete this._linkedOutOfBrushElementsMap[f]):!((p=(g=this._linkedInBrushElementsMap)===null||g===void 0?void 0:g[t==null?void 0:t.name])===null||p===void 0)&&p[f]&&!this._isBrushContainItem(t,_,{dx:o,dy:l})&&(c.removeState("inBrush"),c.addState("outOfBrush"),this._linkedOutOfBrushElementsMap[f]=c),_.setAttribute("pickable",!this._needDisablePickable)})})}})}_isBrushContainItem(t,e,i){var s,r,a;if(!(t!=null&&t.globalTransMatrix)||!(!((s=t==null?void 0:t.attribute)===null||s===void 0)&&s.points))return!1;const o=(a=(r=t==null?void 0:t.attribute)===null||r===void 0?void 0:r.points)!==null&&a!==void 0?a:[],{a:l,b:h,c:d,d:c,e:u,f:g}=t.globalTransMatrix,p=(i==null?void 0:i.dx)||0,_=(i==null?void 0:i.dy)||0,f=o.map(b=>({x:l*b.x+d*b.y+u+p,y:h*b.x+c*b.y+g+_}));t.globalAABBBounds.clone().set(t.globalAABBBounds.x1+p,t.globalAABBBounds.y1+_,t.globalAABBBounds.x2+p,t.globalAABBBounds.y2+_);const m=e.globalTransMatrix.e,v=e.globalTransMatrix.f;let y=[];if(e.type==="symbol"){const{size:b=0}=e==null?void 0:e.attribute,x=j(b)[0]/2;return y=[{x:m-x,y:v-x},{x:m+x,y:v-x},{x:m+x,y:v+x},{x:m-x,y:v+x}],KS(f,y)}if(e.type==="rect"){const{x1:b,x2:x,y1:S,y2:A}=e==null?void 0:e.AABBBounds,k=Math.abs(b-x),T=Math.abs(S-A);return y=[{x:m,y:v},{x:m+k,y:v},{x:m+k,y:v+T},{x:m,y:v+T}],KS(f,y)}return t.globalAABBBounds.intersects(e.globalAABBBounds)}_stateClamp(t){return Math.min(Math.max(0,t),1)}_setAxisAndDataZoom(t,e){var i;if(this._zoomRecord=[],this._spec.zoomAfterBrush){const s=t.AABBBounds;(i=this._regionAxisMap["region_"+e.id])===null||i===void 0||i.forEach(r=>{var a,o;const l=r.layoutOrient==="bottom"||r.layoutOrient==="top",h=(a=this._spec.axisRangeExpand)!==null&&a!==void 0?a:0,{x1:d,x2:c,y1:u,y2:g}=s,p=l?"x":"y",_=l?d:u,f=l?c:g;if(this._axisDataZoomMap[r.id]){const m=this._axisDataZoomMap[r.id],v=m.relatedAxisComponent,y=v.getScale().invert(_-e.getLayoutStartPoint()[p]),b=v.getScale().invert(f-e.getLayoutStartPoint()[p]),x=m.dataToStatePoint(y),S=m.dataToStatePoint(b),A=this._stateClamp(x-h),k=this._stateClamp(S+h);m.setStartAndEnd(Math.min(A,k),Math.max(A,k),["percent","percent"]),this._zoomRecord.push({operateComponent:m,start:A,end:k})}else{const m=r.getScale().range(),v=(o=r.getScale().rangeFactor())!==null&&o!==void 0?o:[0,1],y=$t(m){this._releatedAxes.push(this._option.getComponentByUserId(t))}):C(this._spec.axisIndex)?j(this._spec.axisIndex).forEach(t=>{this._releatedAxes.push(this._option.getComponentByIndex("axes",t))}):this._releatedAxes=this._option.getComponentsByKey("axes"),this._releatedAxes.forEach(t=>{t==null||t.getRegions().forEach(e=>{this._regionAxisMap["region_"+e.id]?this._regionAxisMap["region_"+e.id].push(t):this._regionAxisMap["region_"+e.id]=[t]})})}_initAxisDataZoomMap(){this._option.getComponentsByKey("dataZoom").forEach(t=>{t.relatedAxisComponent&&(this._axisDataZoomMap[t.relatedAxisComponent.id]=t)})}_initNeedOperatedItem(){const t=this._spec.seriesId,e=this._spec.seriesIndex;this._relativeRegions.forEach(i=>{const s=[];i.getSeries().forEach(r=>{(t&&j(t).includes(r.userId.toString())||e&&j(e).includes(r.getSpecIndex())||!e&&!t)&&s.push(...r.getMarksWithoutRoot()),this._itemMap[i.id]=s})}),this._linkedSeries.forEach(i=>{this._linkedItemMap[i.id]=i.getMarksWithoutRoot()})}_initMarkBrushState(t,e){this._brushComponents.forEach((i,s)=>{s!==t&&i.children[0].removeAllChild()}),this._inBrushElementsMap={},this._outOfBrushElementsMap={},this._linkedInBrushElementsMap={},this._linkedOutOfBrushElementsMap={},this._option.getAllSeries().forEach(i=>{i.getMarksWithoutRoot().forEach(s=>{const r=s.getProduct();!r||!r.elements||!r.elements.length||r.elements.forEach(a=>{const o=s.id+"_"+a.key;a.removeState("inBrush"),a.removeState("outOfBrush"),a.addState(e),this._outOfBrushElementsMap[o]=a,this._linkedOutOfBrushElementsMap[o]=a})})})}initEvent(){}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return this._brushComponents}_compareSpec(t,e){this._brushComponents&&this._relativeRegions.forEach((s,r)=>{this._updateBrushComponent(s,r)});const i=super._compareSpec(t,e);return Jt(e,t)||(i.reRender=!0,i.reMake=!0),i}onLayoutEnd(t){var e;super.onLayoutEnd(t),!this._option.disableTriggerEvent&&((e=this._spec.visible)===null||e===void 0||e)&&(this._brushComponents?this._relativeRegions.forEach((i,s)=>{this._updateBrushComponent(i,s)}):(this._brushComponents=[],this._relativeRegions.forEach((i,s)=>{this._createBrushComponent(i,s)})))}clearGraphic(){this._brushComponents&&this._brushComponents.forEach(t=>{t._container.incrementalClearChild()})}clear(){if(this._brushComponents){const t=this.getContainer();this._brushComponents.forEach(e=>{e.removeAllChild(),e.releaseBrushEvents(),t&&t.removeChild(e)}),this._brushComponents=null}}}hf.type=X.brush,hf.specKey="brush";const srt=()=>{D.registerComponent(hf.type,hf)};class df extends qi{constructor(){super(...arguments),this.type=X.customMark,this.specKey="customMark",this.layoutType="none",this.layoutZIndex=ee.CustomMark,this.layoutLevel=us.CustomMark}created(){super.created(),this.initMarks(),this.initEvent()}getMarkAttributeContext(){return this._markAttributeContext}_buildMarkAttributeContext(){this._markAttributeContext={vchart:this._option.globalInstance,globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)}}}initMarks(){if(!this._spec)return;const t=this._option&&this._option.getAllSeries(),e=this._option.animation!==!1,i=[];t&&t.length&&t.forEach(s=>{const r=s&&s.getMarksWithoutRoot();r&&r.length&&r.forEach(a=>{i.push(a)})}),this._createExtensionMark(this._spec,null,`${_t}_series_${this.id}_extensionMark`,0,{depend:i,hasAnimation:e})}_createExtensionMark(t,e,i,s=0,r){var a;const o=this._createMark({type:t.type,name:C(t.name)?`${t.name}`:`${i}_${s}`},{skipBeforeLayouted:!0,attributeContext:this._getMarkAttributeContext(),componentType:t.componentType,key:t.dataKey});if(o){if(C(t.id)&&o.setUserId(t.id),r.hasAnimation&&t.animation){const l=It({},Nt(t.type,t,this._markAttributeContext));o.setAnimationConfig(l)}if(r.depend&&r.depend.length&&o.setDepend(...r.depend),P(e)?this._marks.addMark(o):e&&e.addMark(o),this.initMarkStyleWithSpec(o,t),t.type==="group"&&(i=`${i}_${s}`,(a=t.children)===null||a===void 0||a.forEach((l,h)=>{this._createExtensionMark(l,o,i,h,r)})),C(t.dataId)||H(t.dataIndex)){const l=this.getChart().getSeriesData(t.dataId,t.dataIndex);l&&(l.target.addListener("change",()=>{o.getData().updateData()}),o.setDataView(l))}}}initEvent(){}_compareSpec(t,e){const i=super._compareSpec(t,e);return Jt(e,t)||(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}onRender(t){}_getMarkAttributeContext(){return{vchart:this._option.globalInstance,chart:this.getChart(),globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)},getLayoutBounds:()=>{const{x:t,y:e}=this.getLayoutStartPoint(),{width:i,height:s}=this.getLayoutRect();return new wi().set(t,e,t+i,e+s)}}}_getLayoutRect(){const t=new wi;return this.getMarks().forEach(e=>{const i=e.getProduct();i&&t.union(i.getBounds())}),t.empty()?{width:0,height:0}:{width:t.width(),height:t.height()}}getBoundsInRect(t){this.setLayoutRect(t);const e=this._getLayoutRect(),{x:i,y:s}=this.getLayoutStartPoint();return{x1:i,y1:s,x2:i+e.width,y2:s+e.height}}}df.type=X.customMark,df.specKey="customMark";const rrt=()=>{D.registerComponent(df.type,df)};function qC(n,t,e=0){return e>Math.max(t.x1-n.x2,n.x1-t.x2,t.y1-n.y2,n.y1-t.y2)}function art(n){return{x1:n.x,x2:n.x+n.width,y1:n.y,y2:n.y+n.height}}function ort(n){return{x:n.x1,y:n.y1,width:n.x2-n.x1,height:n.y2-n.y1}}function FD(n){var t;if(!n||n.length===0)return[];if(n.length===1)return[n[0].rect];const e=n.map(s=>{var r;return Object.assign(Object.assign({},s),{bound:art(s.rect),anchorCandidates:drt((r=s.anchors)!==null&&r!==void 0?r:[],s.point,s.rect,s.offset)})}),i=[];i.push(e[0].bound);for(let s=1;s<=e.length-1;s++){const r=e[s],a=r.bound;let o=i.some(l=>qC(l,a));if(r.anchorCandidates)if(o&&((t=r.anchorCandidates)===null||t===void 0?void 0:t.length)>0){for(let l=0;lqC(c,d))){i.push(d),o=!1;break}}o&&i.push(r.bound)}else i.push(r.bound)}return i.map(s=>ort(s))}function lrt(n,t,e){const i=n.map(h=>h.pointCoord),{x1:s,x2:r,y1:a,y2:o}=z2(i),l=e([(s+r)/2,(a+o)/2]);return l?FD(n.map(h=>{const d=h.rect,c=zD(t,h.pointCoord)?e(hrt(t,[h.pointCoord.x,h.pointCoord.y],ZC(JC(h.point,l)))):h.point;c&&(d.x=c.x,d.y=c.y);const u=ZC(JC(h.point,l));let g;const p=[];return u>=-45&&u<45?(g="top",p.push("left","right")):u>=45&&u<135?g="right":u>=-135&&u<-45?(g="left",p.push("left")):(g="bottom",p.push("left","right")),h.anchors=p,h.offset=20,h.rect=DS(h.rect,g,0),h})):[]}function ZC(n){return n>180?n-360:n}function JC(n,t){return 180*Math.atan2(n.y-t.y,n.x-t.x)/Math.PI+90}function hrt(n,t,e,i=200){const s=5621/i;let r=t;for(let a=1;a<=s;a++){const o=iF(r,i,e);if(!zD(n,o))return[o.x,o.y];r=[o.x,o.y]}return t}function zD(n,t){for(let e=0;e{const{x:a,y:o}=DS(Object.assign(Object.assign({},t),{width:e.width,height:e.height}),r,i);s.push({x:a,y:o})}),s}class cf extends qi{constructor(){super(...arguments),this.type=X.mapLabel,this.name=X.mapLabel,this.specKey="mapLabel",this.layoutType="none",this.layoutZIndex=ee.MarkPoint,this._activeDatum=[]}static getSpecInfo(t){return gs(t,this.specKey,this.type,e=>e.visible&&C(e.seriesId))}setAttrFromSpec(){var t,e,i,s;this.nameField=(t=this._spec.nameField)!==null&&t!==void 0?t:(e=this._series)===null||e===void 0?void 0:e.getDimensionField()[0],this.valueField=(i=this._spec.valueField)!==null&&i!==void 0?i:(s=this._series)===null||s===void 0?void 0:s.getMeasureField()[0]}created(){super.created(),this._spec.visible&&(this.initRelatedInfo(),this.initData(),this.initEvent())}initRelatedInfo(){var t,e,i,s,r,a,o,l;this._series=this._option.getSeriesInUserIdOrIndex([this._spec.seriesId])[0],this._spec.position==="outer"&&(this._map=(e=(t=this._regions[0].getSeriesInType("map")[0])===null||t===void 0?void 0:t.getMapViewData())===null||e===void 0?void 0:e.latestData,this._longitudeField=(r=(s=(i=this._regions[0]).getSpec)===null||s===void 0?void 0:s.call(i))===null||r===void 0?void 0:r.longitudeField,this._latitudeField=(l=(o=(a=this._regions[0]).getSpec)===null||o===void 0?void 0:o.call(a))===null||l===void 0?void 0:l.latitudeField)}initData(){const t=this._series;if(!t)return;const e=t.getViewData();if(e){const i=new Gt(this._option.dataSet,{name:`${this.name}_data`});i.parse([e],{type:"dataview"}),i.transform({type:"copyDataView",level:cs.copyDataView},!1),this._data=new Fs(this._option,i),i.target.addListener("change",()=>{this._spec.trigger!=="hover"&&this._spec.trigger!=="click"&&(this._activeDatum=this._data.getLatestData())})}}initEvent(){var t;this.event.on("zoom",{filter:s=>this._isRelativeModel(s.model)},s=>(this.handleZoom(s),!0)),this.event.on("panmove",{filter:s=>this._isRelativeModel(s.model)},s=>(this.handlePan(s),!0));const e=this._spec.trigger;if(e==="none")return;const i=(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView();i&&(e==="hover"?(i.addEventListener("element-highlight:start",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(s.elements[0].getDatum())}),i.addEventListener("element-highlight:reset",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(null)})):e==="click"&&(i.addEventListener("element-select:start",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(s.elements[0].getDatum())}),i.addEventListener("elementSelectReset",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum([])})))}handlePan(t){const{delta:e}=t;this._markerComponents.forEach(i=>{i.translate(e[0],e[1])})}handleZoom(t){this._updateMarkerLayoutAttribute()}_updateDatum(t){this._activeDatum=t,this._markerComponents.forEach((e,i)=>{var s;const r=(s=this._data)===null||s===void 0?void 0:s.getLatestData()[i];this._activeDatum.includes(r)?e.setAttribute("visible",!0):e.setAttribute("visible",!1)})}dataToPosition(t){return this._series.dataToPosition(t)}updateLayoutAttribute(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.getLatestData();e&&e.length!==0&&(super.updateLayoutAttribute(),this._updateMarkerLayoutAttribute())}_updateMarkerLayoutAttribute(){var t;const e=[],i=[];this._markerComponents||(this._markerComponents=(t=this._data)===null||t===void 0?void 0:t.getLatestData().map((r,a)=>{var o;const l=new ea({position:void 0,animation:!1});return l&&(l.name=`${this.name}_marker_${a}`,l.id=(o=this._spec.id)!==null&&o!==void 0?o:`${this.name}_marker_${this.id}`,l.setAttribute("zIndex",this.layoutZIndex)),l})),this._markerComponents.forEach((r,a)=>{r.removeAllChild();const{pairInfo:o,contentMarks:l}=this._evaluateMarker(this._data.getLatestData()[a],a);o&&e.push(o),l&&i.push(l)});const s=this._layoutLabels(e);this._layoutMarkers(s,i),this._renderMarkers()}_evaluateMarker(t,e){var i,s,r,a,o,l,h,d,c,u,g,p;let _=0,f=0,m=0,v=0,y=0;const b=this._spec.position||"top",x=this._spec.offset,S=mr((i=this._spec.background)===null||i===void 0?void 0:i.padding),A=this._spec.space||0;f+=((S==null?void 0:S.left)||0)+((S==null?void 0:S.right)||0),m+=((S==null?void 0:S.top)||0)+((S==null?void 0:S.bottom)||0);const k={},T=this.dataToPosition(t),w=qb({});if(w.name=`${this.name}_marker_itemContainer_${e}`,k.container=w,(s=this._spec.background)===null||s===void 0?void 0:s.visible){const E=hu(mt(Object.assign({},this._spec.background.style)));E.setAttributes(T),k.labelBackground=E,w.appendChild(E)}if(!((r=this._spec.icon)===null||r===void 0)&&r.visible){const E=Bf(mt(Object.assign({},this._spec.icon.style)));E.setAttributes(T),E.setAttribute("symbolType",(a=this._spec.icon.style)===null||a===void 0?void 0:a.shape);const B=E.AABBBounds,I=(o=(B==null?void 0:B.y2)-(B==null?void 0:B.y1))!==null&&o!==void 0?o:0,F=(l=(B==null?void 0:B.x2)-(B==null?void 0:B.x1))!==null&&l!==void 0?l:0;k.icon=E,w.appendChild(E),y=I,v+=F,_++}if(!((h=this._spec.nameLabel)===null||h===void 0)&&h.visible){const E=Zl(mt(Object.assign({},this._spec.nameLabel.style)));E.setAttributes(T),E.setAttribute("text",t[this.nameField]);const B=E.AABBBounds,I=(d=(B==null?void 0:B.y2)-(B==null?void 0:B.y1))!==null&&d!==void 0?d:0,F=(c=(B==null?void 0:B.x2)-(B==null?void 0:B.x1))!==null&&c!==void 0?c:0;k.nameLabel=E,w.appendChild(E),y=Math.max(y,I),v+=F,_++}if(!((u=this._spec.valueLabel)===null||u===void 0)&&u.visible&&C(t[this.valueField])){const E=Zl(mt(Object.assign({},this._spec.valueLabel.style)));E.setAttributes(T),E.setAttribute("text",t[this.valueField]);const B=E.AABBBounds,I=(g=(B==null?void 0:B.y2)-(B==null?void 0:B.y1))!==null&&g!==void 0?g:0,F=(p=(B==null?void 0:B.x2)-(B==null?void 0:B.x1))!==null&&p!==void 0?p:0;k.valueLabel=E,w.appendChild(E),y=Math.max(y,I),v+=F,_++}const M=Object.values(k).find(E=>!!E&&E.type!=="group"),R={x:M==null?void 0:M.getComputedAttribute("x"),y:M==null?void 0:M.getComputedAttribute("y")},O={x:R.x,y:R.y,width:0,height:0};O.width=f+v+(_-1)*A,O.height=m+y;const L={rect:O,point:R,index:e};if(b!=="outer"){const E=["top","right","left","bottom"].filter(B=>B!==b);L.rect=DS(O,b,x),L.anchors=E,L.offset=x}else L.pointCoord={x:+(t==null?void 0:t[this._longitudeField]),y:+(t==null?void 0:t[this._latitudeField])};return{pairInfo:L,contentMarks:k}}_layoutMarkers(t,e){var i,s,r;for(let a=0;a{var A,k;if(x){const T=x.AABBBounds;let w=0;x.type==="symbol"&&(w+=((A=T.x2-T.x1)!==null&&A!==void 0?A:0)/2),x.setAttributes({x:f+w,y:_}),f+=(k=T.x2-T.x1)!==null&&k!==void 0?k:0,S!==2&&(f+=p)}}),d==null||d.setAttributes({x:0,y:0,width:u.width,height:u.height}),c==null||c.setAttributes({dx:-u.width/2,dy:-u.height/2});const m=this._data.getLatestData()[a],v=this.dataToPosition(m),y=this.getRegions()[0].getLayoutStartPoint(),b=!(!(!((s=this._spec.leader)===null||s===void 0)&&s.visible)||!(o||l||h));this._markerComponents[a].setAttributes({x:y.x,y:y.y,position:v,visible:this._activeDatum.includes(m),itemContent:{refX:0,type:"custom",renderCustomCallback:()=>c,autoRotate:!1,offsetX:u.x+u.width/2-v.x,offsetY:u.y+u.height/2-v.y},itemLine:{visible:b,type:"type-po",lineStyle:mt(Object.assign({},(r=this._spec.leader)===null||r===void 0?void 0:r.style)),startSymbol:{visible:!1}}})}}_renderMarkers(){if(this._markerComponents&&this._markerComponents.length)for(let t=0;tthis._series.dataToPosition({[this._longitudeField]:e[0],[this._latitudeField]:e[1]})):FD(t)}_isRelativeModel(t){var e,i,s;const r=(i=(e=this._series.getXAxisHelper())===null||e===void 0?void 0:e.getAxisId())!==null&&i!==void 0?i:(s=this._series.getCoordinateHelper())===null||s===void 0?void 0:s.getCoordinateId();return(t==null?void 0:t.id)===r}_isRelativeSeries(t){return(t==null?void 0:t.id)===this._series.id}onRender(t){}changeRegions(){}_getNeedClearVRenderComponents(){return this._markerComponents}}cf.type=X.mapLabel,cf.specKey="mapLabel";const crt=()=>{D.registerComponent(cf.type,cf)};class vb{constructor(t,e){this._chartLayoutRect={x:0,y:0,width:1,height:1},this._col=1,this._row=1,this._elementMap=new Map,this.standardizationSpec(t),this._gridInfo=t,this._col=t.col,this._row=t.row,this._colSize=new Array(this._col).fill(null),this._rowSize=new Array(this._row).fill(null),this._colElements=new Array(this._col).fill([]),this._rowElements=new Array(this._row).fill([]),this._onError=e==null?void 0:e.onError,this.initUserSetting()}standardizationSpec(t){var e,i,s;t.col=(e=t.col)!==null&&e!==void 0?e:1,t.row=(i=t.row)!==null&&i!==void 0?i:1,t.elements=(s=t.elements)!==null&&s!==void 0?s:[]}initUserSetting(){this._gridInfo.colWidth&&this.setSizeFromUserSetting(this._gridInfo.colWidth,this._colSize,this._col,this._chartLayoutRect.width),this._gridInfo.rowHeight&&this.setSizeFromUserSetting(this._gridInfo.rowHeight,this._rowSize,this._row,this._chartLayoutRect.height),this._colSize.forEach((t,e)=>{t||(this._colSize[e]={value:0,isUserSetting:!1,isLayoutSetting:!1})}),this._rowSize.forEach((t,e)=>{t||(this._rowSize[e]={value:0,isUserSetting:!1,isLayoutSetting:!1})})}setSizeFromUserSetting(t,e,i,s){t.forEach(r=>{r.index<0&&r.index>=i||(H(r.size)?e[r.index]={value:+r.size,isUserSetting:!0,isLayoutSetting:!1}:N(r.size)&&(e[r.index]={value:r.size(s),isUserSetting:!0,isLayoutSetting:!1}))})}clearLayoutSize(){this._colSize.forEach(t=>{t.isLayoutSetting=!1,t.isUserSetting||(t.value=0)}),this._rowSize.forEach(t=>{t.isLayoutSetting=!1,t.isUserSetting||(t.value=0)})}getItemGridInfo(t){var e;const i=this._elementMap.get(t);if(i)return i;let s;return s=(e=this._gridInfo.elements)===null||e===void 0?void 0:e.find(r=>{var a;if("modelId"in r&&C(r.modelId)){if(C(t.model.userId)&&t.model.userId===r.modelId)return!0}else if("modelKey"in r&&C(r.modelKey)&&"modelIndex"in r&&C(r.modelIndex)&&((a=t.model.specKey)!==null&&a!==void 0?a:t.model.type)===r.modelKey&&t.model.getSpecIndex()===r.modelIndex)return!0;return!1}),s||(s={col:0,colSpan:1,row:0,rowSpan:1}),this._elementMap.set(t,s),s}getSizeFromGrid(t,e){var i;const s=e==="col"?this._colSize:this._rowSize;let r=0;for(let a=t[e];a1||this._colSize[e.col].isUserSetting)return;this._colSize[e.col].value=Math.max(this._colSize[e.col].value,t.getLayoutRect().width+t.layoutPaddingLeft+t.layoutPaddingRight),this._colSize[e.col].isLayoutSetting=!0}else{if(e.rowSpan&&e.rowSpan>1||this._rowSize[e.row].isUserSetting)return;this._rowSize[e.row].value=Math.max(this._rowSize[e.row].value,t.getLayoutRect().height+t.layoutPaddingTop+t.layoutPaddingBottom),this._rowSize[e.row].isLayoutSetting=!0}}layoutGrid(t){const e=t==="col"?this._colSize:this._rowSize;let i=t==="col"?this._chartLayoutRect.width:this._chartLayoutRect.height;const s=[];e.forEach(r=>{r.isUserSetting||r.isLayoutSetting?i-=r.value:s.push(r)}),i<0&&console.warn(`layout content ${t} size bigger than chart`),s.forEach(r=>r.value=i/s.length)}getItemPosition(t){const e=this.getItemGridInfo(t),i={x:this._chartLayoutRect.x,y:this._chartLayoutRect.y};for(let s=0;su.layoutLevel-c.layoutLevel);const r=e.filter(c=>c.layoutType==="normal"&&c.getModelVisible()!==!1),a=r.filter(c=>Nh(c)),o=r.filter(c=>!Nh(c));r.forEach(c=>{this.layoutOneItem(c,"user",!1)});const l=e.filter(c=>c.layoutType==="region-relative"),h=l.filter(c=>Nh(c)),d=l.filter(c=>!Nh(c));h.forEach(c=>this.layoutOneItem(c,"user",!1)),this.layoutGrid("col"),o.forEach(c=>this.layoutOneItem(c,"colGrid",!1)),d.forEach(c=>{this.layoutOneItem(c,"colGrid",!1)}),this.layoutGrid("row"),d.forEach(c=>{this.layoutOneItem(c,"grid",!1)}),a.forEach(c=>this.layoutOneItem(c,"grid",!1)),h.forEach(c=>{this.layoutOneItem(c,"grid",!0)}),this.layoutGrid("col"),e.filter(c=>c.layoutType==="region").forEach(c=>this.layoutOneItem(c,"grid",!1)),this.layoutAbsoluteItems(e.filter(c=>c.layoutType==="absolute")),e.filter(c=>c.layoutType!=="absolute").forEach(c=>{c.setLayoutStartPosition(this.getItemPosition(c))})}layoutAbsoluteItems(t){t.forEach(e=>{e.absoluteLayoutInRect(this._chartLayoutRect)})}layoutOneItem(t,e,i){var s,r;const a=e==="rowGrid"||e==="grid"?this.getSizeFromGrid.bind(this):this.getSizeFromUser.bind(this),o=e==="colGrid"||e==="grid"?this.getSizeFromGrid.bind(this):this.getSizeFromUser.bind(this),l=this.getItemGridInfo(t),h={width:((s=o(l,"col"))!==null&&s!==void 0?s:this._chartLayoutRect.width)-t.layoutPaddingLeft-t.layoutPaddingRight,height:((r=a(l,"row"))!==null&&r!==void 0?r:this._chartLayoutRect.height)-t.layoutPaddingTop-t.layoutPaddingBottom},d=t.computeBoundsInRect(h);H(d.width)||(d.width=h.width),H(d.height)||(d.height=h.height),t.setLayoutRect(e!=="grid"?d:h),this.setItemLayoutSizeToGrid(t,l)}}function Nh(n){return n.layoutOrient==="left"||n.layoutOrient==="right"}vb.type="grid";const urt=()=>{D.registerLayout(vb.type,vb)};class yb extends qx{layoutItems(t,e,i,s){this._layoutInit(t,e,i,s),this._layoutNormalItems(e);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},a=e.filter(m=>m.layoutType==="absolute"),o=a.filter(m=>m.layoutOrient==="z");let l={width:0,height:0};o.length&&(l=o[0].getLayoutRect()),this.leftCurrent+=l.width/8,this.rightCurrent-=l.width/8,this.topCurrent+=l.height/8,this.bottomCurrent-=l.height/8;const{regionItems:h,relativeItems:d,relativeOverlapItems:c,allRelatives:u,overlapItems:g}=this._groupItems(e);this.layoutRegionItems(h,d,c,g),this._processAutoIndent(h,d,c,g,u,r);const p=a.filter(m=>m.layoutOrient!=="z");this.layoutAbsoluteItems(p);const _=d.filter(m=>m.model.specKey==="axes"&&ye(m.layoutOrient))[0],f=d.filter(m=>m.model.specKey==="axes"&&ws(m.layoutOrient))[0];if(_&&o.length){const m=_.getLayoutStartPoint(),v=_.getLayoutRect(),y={x:f.layoutOrient==="left"?m.x+v.width:m.x,y:m.y,width:this._chartLayoutRect.width,height:this._chartLayoutRect.height};o[0].model.directionStr=f.layoutOrient==="left"?"r2l":"l2r";const b=_.getLayoutRect(),x=f.getLayoutRect(),S={length:o[0].getLayoutRect().width,width:b.width,height:x.height};_.model.setLayout3dBox&&_.model.setLayout3dBox(S),f.model.setLayout3dBox&&f.model.setLayout3dBox(S),o[0].model.setLayout3dBox&&o[0].model.setLayout3dBox(S),this.layoutZAxisItems(o,y)}}layoutZAxisItems(t,e){t.forEach(i=>{i.absoluteLayoutInRect(e)})}getItemComputeLayoutRect(t,e){return e||(e={offsetLeft:0,offsetRight:0,offsetTop:0,offsetBottom:0}),{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight-(e.offsetLeft+e.offsetRight),height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom-(e.offsetTop+e.offsetBottom)}}_checkAutoIndent(t){const e={top:0,left:0,bottom:0,right:0},i=this._chartViewBox.x2-this._chartViewBox.x1-this.rightCurrent,s=this._chartViewBox.y2-this._chartViewBox.y1-this.bottomCurrent;return t.forEach(r=>{if(!r.getModelVisible()||!r.autoIndent)return;const a=r.layoutOrient==="left"||r.layoutOrient==="right",o=r.getLastComputeOutBounds();a?(e.top=Math.max(e.top,o.y1-this.topCurrent),e.bottom=Math.max(e.bottom,o.y2-s)):(e.left=Math.max(e.left,o.x1-this.leftCurrent),e.right=Math.max(e.right,o.x2-i))}),e}}yb.type="layout3d";const grt=()=>{D.registerLayout(yb.type,yb)},prt=()=>{k4()};function _rt(n){return String(n).replace(/&/g,"&").replace(//g,">").replace(/\(/g,"(").replace(/ /g,"  ")}const QC=(n,t)=>n?(t||(t=n.getBoundingClientRect()),n.offsetWidth>0?t.width/n.offsetWidth:t.height/n.offsetHeight):1,W0=(n,t)=>{var e;let i,s;(n==null?void 0:n.type)!=="rich"&&(n==null?void 0:n.type)!=="html"?(n=(n??"").toString(),t.multiLine?(i=n.split(` +`),i=i.map((a,o)=>oObject.assign(Object.assign({},t),{text:a}))):(s=n.text,i=n);const r=aV({wordBreak:(e=t.wordBreak)!==null&&e!==void 0?e:"break-word",maxWidth:t.maxWidth?t.maxWidth:void 0,width:0,height:0,textConfig:s});return{width:r.width(),height:r.height(),text:i}},tP="vchart-tooltip-container",eP="",G0={offsetX:10,offsetY:10,sanitize:_rt},Uh=(n,t)=>{let e;if(C(n)){if(J(n))e=n;else if(N(n)){const i=n(t);J(i)&&(e=i)}}return e},frt={left:[-2,0],right:[2,0],top:[0,-2],lt:[-2,-2],tl:[-2,-2],rt:[2,-2],tr:[2,-2],bottom:[0,2],bl:[-2,2],lb:[-2,2],br:[2,2],rb:[2,2],inside:[0,0],center:[0,0],centerBottom:[0,1],centerTop:[0,-1],centerLeft:[-1,0],centerRight:[1,0]},iP=(n,t,e=2)=>{var i,s;return(s=(i=frt[n])===null||i===void 0?void 0:i[t==="x"?0:1])!==null&&s!==void 0?s:e},mrt=(n,t)=>{var e;const i=new Map,s=new Map,{series:r,datum:a}=n,o=r.direction==="horizontal",l=(o?r.getYAxisHelper():r.getXAxisHelper()).getAxisId(),h=r.getChart().getComponentsByKey("axes").find(v=>v.id===l);if(!h)return;(o?s:i).set(h.getSpecIndex(),{value:(e=r.getDatumPositionValues(a[0],r.getDimensionField()))===null||e===void 0?void 0:e[0],axis:h});const d={visible:!!i.size,type:"rect"},c={visible:!!s.size,type:"rect"},{x:u,y:g,offsetWidth:p,offsetHeight:_,bandWidth:f,bandHeight:m}=CD(3,r,t,i,s,d,c);return u?PD(d,u,f,p):g?ED(c,g,m,_):void 0},vrt=n=>yt(n)&&(C(n.left)||C(n.right)||C(n.top)||C(n.bottom)),yrt=n=>yt(n)&&(C(n.x)||C(n.y)),brt={fontFamily:y_.fontFamily,spacing:10,wordBreak:"break-word"};function tl(n={},t,e){var i,s;return Object.assign(Object.assign({},e??brt),{fill:(i=n.fill)!==null&&i!==void 0?i:n.fontColor,textAlign:n.textAlign,textBaseline:n.textBaseline,fontFamily:(s=n.fontFamily)!==null&&s!==void 0?s:t==null?void 0:t.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,spacing:n.spacing,multiLine:n.multiLine,maxWidth:n.maxWidth,wordBreak:n.wordBreak,autoWidth:n.autoWidth})}const xrt=n=>{var t;const{backgroundColor:e,border:i,shadow:s}=n,r={lineWidth:(t=i==null?void 0:i.width)!==null&&t!==void 0?t:0,shadow:!!s};i!=null&&i.color&&(r.stroke=i.color),e&&(r.fill=e),s&&(r.shadowColor=s.color,r.shadowBlur=s.blur,r.shadowOffsetX=s.x,r.shadowOffsetY=s.y,r.shadowSpread=s.spread);const{radius:a}=i??{};return C(a)&&(r.cornerRadius=[a,a,a,a]),r},Srt=(n,t,e)=>{var i,s,r,a,o;const{style:l={},enterable:h,transitionDuration:d}=t,{panel:c={},titleLabel:u,shape:g,keyLabel:p,valueLabel:_,spaceRow:f,maxContentHeight:m,align:v}=l,y=Yi(c.padding),b=mr(c.padding),x=tl(Object.assign({textAlign:v==="right"?"right":"left"},u),e),S=tl(Object.assign({textAlign:v==="right"?"right":"left"},p),e),A=tl(_,e),k={fill:!0,size:(i=g==null?void 0:g.size)!==null&&i!==void 0?i:8,spacing:(s=g==null?void 0:g.spacing)!==null&&s!==void 0?s:6},T={panel:xrt(c),padding:y,title:{},content:[],titleStyle:{value:x,spaceRow:f},contentStyle:{shape:k,key:S,value:A,spaceRow:f},hasContentShape:!1,keyWidth:0,valueWidth:0,maxContentHeight:m,enterable:h,transitionDuration:d,align:v},{title:w={},content:M=[]}=n;let R=b.left+b.right,O=b.top+b.bottom,L=b.top+b.bottom,E=0;const B=!!M.length;let I=0,F=0,z=0,V=0;if(B){const Bt=[],ct=[],bt=[],Dt=[];let he=0;T.content=M.map((Ct,Tt)=>{let qt=0;const{hasShape:ie,key:Ce,shapeType:St="",shapeFill:Pe,shapeStroke:vi,shapeLineWidth:Pr,shapeSize:yi,value:zS,isKeyAdaptive:ND,spaceRow:jS,keyStyle:UD,valueStyle:$D,shapeHollow:YD}=Ct,Da={height:0,spaceRow:jS??f};if(C(Ce)){const qn=gt({},S,tl(UD,void 0,{})),{width:Ws,height:Rh,text:zm}=W0(Ce,qn);Da.key=Object.assign(Object.assign({width:Ws,height:Rh},qn),{text:zm}),ND?ct.push(Ws):Bt.push(Ws),qt=Math.max(qt,Rh)}if(C(zS)){const qn=gt({},A,tl($D,void 0,{})),{width:Ws,height:Rh,text:zm}=W0(zS,qn);Da.value=Object.assign(Object.assign({width:Ws,height:Rh},qn),{text:zm}),bt.push(Ws),qt=Math.max(qt,Rh)}if(ie){const qn={visible:!0,symbolType:St};YD?qn.stroke=Pe:qn.fill=Pe,qn.stroke=vi??Pe,qn.lineWidth=Pr,Da.shape=qn;const Ws=yi??k.size;qt=Math.max(Ws,qt),Dt.push(Ws)}else Da.shape={visible:!1};return Da.height=qt,he+=qt,TtK.autoWidth&&K.multiLine!==!1;if(dt){K=gt({},x,tl(st,void 0,{})),ft()&&(K.multiLine=(r=K.multiLine)===null||r===void 0||r,K.maxWidth=(a=K.maxWidth)!==null&&a!==void 0?a:B?Math.ceil(E):void 0);const{text:Bt,width:ct,height:bt}=W0(nt,K);T.title.value=Object.assign(Object.assign({width:ft()?Math.min(ct,(o=K.maxWidth)!==null&&o!==void 0?o:Number.MAX_VALUE):ct,height:bt},K),{text:Bt}),W=T.title.value.width,at=T.title.value.height,ot=at+(B?T.title.spaceRow:0)}return O+=ot,L+=ot,T.title.width=W,T.title.height=at,ft()?R+=E||W:R+=Math.max(W,E),B&&T.content.forEach(Bt=>{var ct;const bt=Bt.value;bt&&((ct=bt.autoWidth)===null||ct===void 0||ct)&&(bt.width=R-b.left-b.right-V-I-S.spacing-A.spacing,bt.maxWidth||(bt.maxWidth=Math.ceil(bt.width)),T.valueWidth=Math.max(T.valueWidth,bt.width))}),T.panel.width=R,T.panel.height=O,T.panelDomHeight=L,T};class FS extends eS{constructor(){super(...arguments),this._visible=!0,this._attributes=null,this._isReleased=!1,this.showTooltip=(t,e,i)=>{const{changePositionOnly:s}=i;return s?this.changeTooltipPosition(i,e):this.changeTooltip(!0,i,e)},this.changeTooltip=(t,e,i)=>this._isReleased?1:t?this.changeTooltipPosition(e,i):(this._updateTooltip(!1,e),0),this.changeTooltipPosition=(t,e)=>{var i,s,r,a,o;if(this._isReleased)return 1;const l=t.event,{tooltipSpec:h,activeTooltipSpec:d,changePositionOnly:c}=t;if(!d)return 1;const u=d.activeType;if(d.handler)return(r=(s=(i=d.handler).showTooltip)===null||s===void 0?void 0:s.call(i,u,e,t))!==null&&r!==void 0?r:0;const g=d,p=this._getActualTooltipPosition(d,t,this._getTooltipBoxSize(d,c));d.position=p;const _=(a=d.updatePosition)!==null&&a!==void 0?a:(o=h[u])===null||o===void 0?void 0:o.updatePosition;_&&(d.position=_(d.position,e,t));let f=(g==null?void 0:g.visible)!==!1;return e&&l.type!=="pointerout"&&d.visible&&(d.title||d.content)||(f=!1),this._updateTooltip(f,Object.assign(Object.assign({},t),{changePositionOnly:c})),0},this._getActualTooltipPosition=(t,e,i)=>{var s,r,a,o,l,h,d,c,u;const{tooltipSpec:g}=e,p={x:1/0,y:1/0};if(!g)return p;const _=e.event,{activeType:f,data:m}=t,v=f==="dimension"?(r=(s=m[0])===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r[0]:m==null?void 0:m[0],{offsetX:y,offsetY:b}=this._option,x=g[f],S=bw(x==null?void 0:x.position,m,e),A=(a=bw(x==null?void 0:x.positionMode,m,e))!==null&&a!==void 0?a:f==="mark"?"mark":"pointer",{width:k=0,height:T=0}=i??{},w=g.renderMode==="canvas",M=(o=e==null?void 0:e.chart)===null||o===void 0?void 0:o.getCanvasRect(),R=(l=M==null?void 0:M.width)!==null&&l!==void 0?l:xl,O=(h=M==null?void 0:M.height)!==null&&h!==void 0?h:Sl;let L=!1;const E={width:0,height:0};let B={x:0,y:0},I={x:0,y:0},F=1,z=1;if(ls(this._env)&&!g.confine){if(E.width=window.innerWidth,E.height=window.innerHeight,!w){const K=this._getParentElement(g);I=(c=(d=K==null?void 0:K.getBoundingClientRect)===null||d===void 0?void 0:d.call(K))!==null&&c!==void 0?c:p;const ft=(u=this._compiler.getCanvas())!==null&&u!==void 0?u:this._chartContainer,Bt=ft==null?void 0:ft.getBoundingClientRect();B={x:Bt.x-I.x,y:Bt.y-I.y},F=QC(ft,Bt),z=QC(K,I)}}else E.width=R,E.height=O;const V=z/F,W={},at={x:S,y:S},ot={x:["left","right"],y:["top","bottom"]},dt=({orient:K,mode:ft,offset:Bt},ct)=>{var bt;let Dt,he;const Ct=e.model,Tt=Ct==null?void 0:Ct.getLayoutStartPoint(),qt=Bt??(ct==="x"?y:b);if(ft==="mark"){L=!0;const ie=e.item,Ce=ie==null?void 0:ie.getBounds();Ce&&Tt&&(Dt=(ct==="x"?Ce.x1:Ce.y1)+Tt[ct],he=(ct==="x"?Ce.x2:Ce.y2)+Tt[ct])}else if(ft==="crosshair"&&((bt=v==null?void 0:v.series)===null||bt===void 0?void 0:bt.coordinate)==="cartesian"&&v.datum&&v.datum.length){L=!0;const ie=mrt(v,Tt);ie&&(Dt=ie.start[ct],he=ie.end[ct])}else at[ct]=K;if(L){const ie=ot[ct][0],Ce=ct==="x"?k:T;switch(iP(K,ct)){case-2:W[ie]=Dt-Ce*V-qt;break;case 0:W[ie]=(Dt+he)/2-Ce*V/2;break;case-1:W[ie]=(Dt+he)/2-Ce*V-qt;break;case 1:W[ie]=(Dt+he)/2+qt;break;case 2:W[ie]=he+qt}}},nt=["x","y"];if(yt(S))if(vrt(S)){const{left:K,right:ft,top:Bt,bottom:ct}=S;W.left=Uh(K,_),W.top=Uh(Bt,_),W.right=Uh(ft,_),W.bottom=Uh(ct,_)}else yrt(S)&&nt.forEach(K=>{const ft=S[K];J(ft)||N(ft)?W[ot[K][0]]=Uh(ft,_):dt(ft,K)});else C(S)&&(dt({orient:S,mode:A},"x"),dt({orient:S,mode:A},"y"));const st={x:null,y:null},et=ls(this._env);return nt.forEach(K=>{const ft=K==="x"?k:T,Bt=K==="x"?R:O,ct=K==="x"?y:b,bt=iP(at[K],K);if(H(W[ot[K][0]]))st[K]=W[ot[K][0]];else if(H(W[ot[K][1]]))st[K]=Bt-ft*V-W[ot[K][1]];else{const Tt=K==="x"?_.canvasX:_.canvasY;st[K]=bt>0?Tt+ct:bt===0?Tt-ft*V/2:Tt-ft*V-ct}st[K]*=F,et&&(st[K]+=B[K]),st[K]/=z;const Dt=K==="x"?E.width:E.height,he=-I[K]/z,Ct=(Dt-I[K])/z-ft;bt!==2&&st[K]Ct&&(st[K]=Ct)):bt!==-2&&st[K]>Ct&&(L?st[K]=Ct:(st[K]-=bt===0?ct+ft/2:2*ct+ft,st[K]C(n)?U(n)?n.map(e=>`${e}px`).join(" "):`${n}px`:t??"initial",jD=n=>{const t=n.split(" ").map(e=>Number.isNaN(e)?Number.parseFloat(e.substring(0,e.length-2)):Number.parseFloat(e));return t.length===1?t[0]:t};let N0;const Art=(n=document.body)=>{if(P(N0)){const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",n.appendChild(t);const e=document.createElement("div");t.appendChild(e),N0=t.offsetWidth-e.offsetWidth,t.parentNode.removeChild(t)}return N0};function krt(n){var t,e,i;const{panel:s={},title:r,content:a,titleStyle:o={},contentStyle:l={},padding:h,keyWidth:d,valueWidth:c,enterable:u,transitionDuration:g,panelDomHeight:p=0,align:_="left"}=n??{},{fill:f,shadow:m,shadowBlur:v,shadowColor:y,shadowOffsetX:b,shadowOffsetY:x,shadowSpread:S,cornerRadius:A,stroke:k,lineWidth:T=0,width:w=0}=s,{value:M={}}=o,{shape:R={},key:O={},value:L={}}=l,E=Trt(R),B=$h(O),I=$h(L),{bottom:F,left:z,right:V,top:W}=mr(h),at=_==="right"?"marginLeft":"marginRight";return{align:_,panel:{width:ve(w+2*T),minHeight:ve(p+2*T),paddingBottom:ve(F),paddingLeft:ve(z),paddingRight:ve(V),paddingTop:ve(W),borderColor:k,borderWidth:ve(T),borderRadius:ve(A),backgroundColor:f?`${f}`:"transparent",boxShadow:m?`${b}px ${x}px ${v}px ${S}px ${y}`:"initial",pointerEvents:u?"auto":"none",transitionDuration:g?`${g}ms`:"initial",transitionProperty:g?"transform":"initial",transitionTimingFunction:g?"ease-out":"initial"},title:Object.assign({marginTop:"0px",marginBottom:a!=null&&a.length?ve(r==null?void 0:r.spaceRow):"0px"},$h(gt({},M,r==null?void 0:r.value))),content:{},shapeColumn:{common:E,items:a==null?void 0:a.map(({spaceRow:ot},dt)=>({marginTop:"0px",marginBottom:dtObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:ntObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:nte.setOption(t))}getParentEl(){return Vn.isInstance(this.parent)?this.parent.product:this.parent}constructor(t,e,i){this.type=Vn.type,this._renderContentCache=null,this.children={},this.parent=t,this._option=e,this.childIndex=i??0}init(t,e){}initAll(){this.init(),Object.values(this.children).forEach(t=>t.initAll())}setStyle(t){this.product&&t&&Object.keys(t).forEach(e=>{this.product.style[e]!==t[e]&&(this.product.style[e]=t[e])})}setContent(t){}setVisibility(t){if(!this.product)return;const{style:e}=this.product;e.visibility=t?"visible":"hidden",Object.values(this.children).forEach(i=>i.setVisibility(t))}getVisibility(){var t,e;return!!(!((e=(t=this.product)===null||t===void 0?void 0:t.style)===null||e===void 0)&&e.visibility)&&this.product.style.visibility!=="hidden"}release(){var t;if(Object.values(this.children).forEach(e=>e.release()),this.children={},this.product){try{(t=this.getParentEl())===null||t===void 0||t.removeChild(this.product)}catch{}this.product=null}}createElement(t,e,i,s){const r=Gr==null?void 0:Gr.createElement(t),a=this.getParentEl();if(!r||!a)return;e&&r.classList.add(...e),i&&Object.keys(i).forEach(l=>{r.style[l]=i[l]}),s&&(r.id=s);let o=this.childIndex;if(Vn.isInstance(this.parent)){let l=Number.MAX_VALUE;for(let h=0;hc.product===a.children[h]);d.childIndex>this.childIndex&&d.childIndex=a.children.length?a.appendChild(r):a.insertBefore(r,a.children[o]),r}}Vn.type="tooltipModel";const Mrt={fontSize:"13px",marginBottom:"0px",fontWeight:"normal"},wrt={boxSizing:"border-box"},Crt={display:"inline-block",verticalAlign:"top"},Prt={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},Ert={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},Rrt={paddingTop:"0px",paddingBottom:"0px",textAlign:"right",fontWeight:"normal"},Ort={lineHeight:"normal",boxSizing:"border-box"};class HD extends Vn{init(t,e,i){if(!this.product){const s=this.createElement(i??"div",[...t??[],"shape"],void 0,e);this.product=s}}setStyle(t,e){super.setStyle(t),this.setSvg(e)}setContent(t){this.setSvg(t)}setSvg(t){const e=Brt(t,this._option.valueToHtml);this.product&&e!==this._svgHtmlCache&&(this._svgHtmlCache=e,this.product.innerHTML=e)}release(){super.release(),this._svgHtmlCache=""}}function Brt(n,t){var e,i,s,r,a,o;if(!(n!=null&&n.hasShape)||!n.symbolType)return"";const{symbolType:l,fill:h,stroke:d,hollow:c=!1}=n,u=n.size?t(n.size):"8px",g=n.lineWidth?t(n.lineWidth)+"px":"0px";let p="currentColor";const _=()=>d?t(d):p,f=jD(u),m=A=>new cc({symbolType:A,size:f,fill:!0});let v=m(l);const y=v.getParsedPath();let b,x;if(!y.path&&y.pathStr&&(v=m(y.pathStr)),v.getParsedPath().path){const A=v.getParsedPath().path;x=A.toString(),b=A.bounds}else y.isSvg&&y.svgCache&&(x=y.svgCache.map(A=>A.path.toString()).join(),b=y.svgCache.reduce((A,k)=>A.union(k.path.bounds),new wi));let S=`${b.x1} ${b.y1} ${b.width()} ${b.height()}`;if(g!=="0px"){const[A,k,T,w]=S.split(" ").map(R=>Number(R)),M=Number(g.slice(0,-2));S=`${A-M/2} ${k-M/2} ${T+M} ${w+M}`}if(!h||tt(h)||c)return p=c?"none":h?t(h):"currentColor",` + + + + `;if(yt(h)){p=(e="gradientColor"+n.index)!==null&&e!==void 0?e:"";let A="";const k=((i=h.stops)!==null&&i!==void 0?i:[]).map(T=>``).join("");return h.gradient==="radial"?A=` + ${k} + `:h.gradient==="linear"&&(A=` + ${k} + `),` + + ${A} + + + `}return""}class VD extends Vn{init(t,e,i){this.product||(this.product=this.createElement(i??"span",t,void 0,e))}setContent(t,e){if(!this.product)return;let i=this._option.valueToHtml(t);e&&(i=i.replaceAll(` +`,"
")),i!==this.product.innerHTML&&(this.product.innerHTML=i)}}const nP={overflowWrap:"normal",wordWrap:"normal"};class Lrt extends Vn{constructor(t,e,i,s){super(t,e,s),this.className=i}init(){var t,e;this.product||(this.product=this.createElement("div",[this.className]));const i=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[];if(this.className!=="shape-box"||i.some(s=>s.hasShape&&s.shapeType)){Object.keys(this.children).forEach(s=>{const r=Ps(s);r>=i.length&&(this.children[r].release(),delete this.children[r])});for(let s=0;s{const r=Ps(s);this.children[r].release(),delete this.children[r]})}setStyle(){var t,e,i,s;const r=this._option.getTooltipStyle();super.setStyle(gt({},Crt,r.content,this._getContentColumnStyle()));const a=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[],o=(s=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&s!==void 0?s:[],l=(h,d,c)=>{var u,g;const{key:p,isKeyAdaptive:_}=h,{height:f}=d,{keyColumn:m}=r,v=gt({},_?Ert:Prt,Object.assign(Object.assign(Object.assign({height:ve(f)},nP),m.common),(u=m.items)===null||u===void 0?void 0:u[c]));return tt(p)&&((g=p==null?void 0:p.trim)===null||g===void 0?void 0:g.call(p))!==""||J(p)||v.visibility?v.visibility="visible":v.visibility="hidden",v};o.forEach((h,d)=>{var c;const u=a[d];this.className==="key-box"?this.children[d].setStyle(l(u,h,d)):this.className==="value-box"?this.children[d].setStyle(((g,p,_)=>{var f;const{height:m}=p,{valueColumn:v}=r;return gt({},Rrt,Object.assign(Object.assign(Object.assign({height:ve(m)},nP),v.common),(f=v.items)===null||f===void 0?void 0:f[_]))})(0,h,d)):this.className==="shape-box"&&((c=this.children[d])===null||c===void 0||c.setStyle(((g,p,_)=>{var f,m,v,y;const{height:b}=p,{shapeColumn:x}=r,S=l(g,p,_),A=`calc((${(m=(f=S.lineHeight)!==null&&f!==void 0?f:S.fontSize)!==null&&m!==void 0?m:"18px"} - ${(v=x.width)!==null&&v!==void 0?v:"8px"}) / 2)`;return gt({},Ort,Object.assign(Object.assign({height:ve(b),paddingTop:A},x.common),(y=x.items)===null||y===void 0?void 0:y[_]))})(u,h,d),this._getShapeSvgOption(u,d)))})}setContent(){var t,e,i,s;const r=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[];((s=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&s!==void 0?s:[]).forEach((a,o)=>{var l,h,d,c,u,g,p;let _;const f=r[o];if(this.className==="key-box"){const m=f.key;_=tt(m)&&((l=m==null?void 0:m.trim)===null||l===void 0?void 0:l.call(m))!==""||J(m)?m:eP,(h=this.children[o])===null||h===void 0||h.setContent(_,(d=a.key)===null||d===void 0?void 0:d.multiLine)}else if(this.className==="value-box"){const m=f.value;_=tt(m)&&((c=m==null?void 0:m.trim)===null||c===void 0?void 0:c.call(m))!==""||J(m)?m:eP,(u=this.children[o])===null||u===void 0||u.setContent(_,(g=a.value)===null||g===void 0?void 0:g.multiLine)}else this.className==="shape-box"&&(_=this._getShapeSvgOption(f,o),(p=this.children[o])===null||p===void 0||p.setContent(_))})}_getContentColumnStyle(){var t,e;const i=this._option.getTooltipStyle();switch(this.className){case"shape-box":const s=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[];return Object.assign(Object.assign({},i.shapeColumn),this.className!=="shape-box"||s.some(r=>r.hasShape&&r.shapeType)?{}:{display:"none"});case"key-box":return i.keyColumn;case"value-box":return i.valueColumn}}_getShapeSvgOption(t,e){var i;const s=this._option.getTooltipStyle(),r=Object.assign(Object.assign({},s.shapeColumn),(i=s.shapeColumn.items)===null||i===void 0?void 0:i[e]);return{hasShape:t.hasShape,symbolType:t.shapeType,size:r.width,fill:t.shapeFill,stroke:t.shapeStroke,lineWidth:t.shapeLineWidth,hollow:t.shapeHollow,index:e}}}class Irt extends Vn{init(){this.product||(this.product=this.createElement("div",["container-box"]));const{align:t}=this._option.getTooltipAttributes();t==="right"?(this.valueBox||(this.valueBox=this._initBox("value-box",0)),this.keyBox||(this.keyBox=this._initBox("key-box",1)),this.shapeBox||(this.shapeBox=this._initBox("shape-box",2))):(this.shapeBox||(this.shapeBox=this._initBox("shape-box",0)),this.keyBox||(this.keyBox=this._initBox("key-box",1)),this.valueBox||(this.valueBox=this._initBox("value-box",2)))}_initBox(t,e){const i=new Lrt(this.product,this._option,t,e);return i.init(),this.children[i.childIndex]=i,i}setStyle(t){super.setStyle(gt(this._getContentContainerStyle(),t)),Object.values(this.children).forEach(e=>{e.setStyle()})}setContent(){Object.values(this.children).forEach(t=>{t.setContent()})}_getContentContainerStyle(){const t={whiteSpace:"nowrap",lineHeight:"0px"},{panelDomHeight:e,panel:i,maxContentHeight:s}=this._option.getTooltipAttributes();if(C(s)&&ed+jD(c),0);return Object.assign(Object.assign({},t),{width:`${h+Art(this._option.getContainer())}px`,maxHeight:ve(s),overflow:"auto"})}return t}release(){super.release(),this.shapeBox=null,this.keyBox=null,this.valueBox=null}}class Drt extends Vn{init(){const t=this._option.getTooltipActual();this.product||(this.product=this.createElement("h2"));const{align:e}=this._option.getTooltipAttributes();e!=="right"||this.textSpan||this._initTextSpan(0);const{title:i}=t;i!=null&&i.hasShape&&(i!=null&&i.shapeType)?this.shape||this._initShape(e==="right"?1:0):this.shape&&this._releaseShape(),e==="right"||this.textSpan||this._initTextSpan(1)}_initShape(t=0){const e=new HD(this.product,this._option,t);e.init(),this.shape=e,this.children[e.childIndex]=e}_releaseShape(){this.shape&&(this.shape.release(),delete this.children[this.shape.childIndex],this.shape=null)}_initTextSpan(t=1){const e=new VD(this.product,this._option,t);e.init(),this.textSpan=e,this.children[e.childIndex]=e}setStyle(t){var e,i,s,r;const a=this._option.getTooltipStyle(),o=this._option.getTooltipActual(),{title:l}=o;super.setStyle(gt({},Mrt,a.title,t)),(e=this.shape)===null||e===void 0||e.setStyle({paddingRight:(i=a.shapeColumn.common)===null||i===void 0?void 0:i.marginRight},{hasShape:l==null?void 0:l.hasShape,symbolType:l==null?void 0:l.shapeType,size:(s=a.shapeColumn.common)===null||s===void 0?void 0:s.width,fill:l==null?void 0:l.shapeFill,hollow:l==null?void 0:l.shapeHollow}),(r=this.textSpan)===null||r===void 0||r.setStyle({color:"inherit"})}setContent(){var t,e,i,s,r,a;const o=this._option.getTooltipStyle(),l=this._option.getTooltipActual(),h=this._option.getTooltipAttributes(),{title:d}=l;this.init(),(t=this.shape)===null||t===void 0||t.setStyle(void 0,{hasShape:d==null?void 0:d.hasShape,symbolType:d==null?void 0:d.shapeType,size:(e=o.shapeColumn.common)===null||e===void 0?void 0:e.width,fill:d==null?void 0:d.shapeFill,hollow:d==null?void 0:d.shapeHollow}),(i=this.textSpan)===null||i===void 0||i.setStyle({color:"inherit"}),(s=this.textSpan)===null||s===void 0||s.setContent(d==null?void 0:d.value,(a=(r=h.title)===null||r===void 0?void 0:r.value)===null||a===void 0?void 0:a.multiLine)}release(){super.release(),this.shape=null,this.textSpan=null}}const WD="99999999999999";class Frt extends Vn{constructor(t,e,i){super(t.getContainer(),t,0),this.title=null,this.content=null,this._classList=e,this._id=i}setVisibility(t){if(super.setVisibility(t),!this.product)return;const{classList:e}=this.product;t?e.add("visible"):e.remove("visible")}init(){var t;const e=this._option.getTooltipActual();this.product||this._initPanel(this._classList,this._id);const{title:i}=e;(i==null?void 0:i.visible)!==!1&&C(i==null?void 0:i.value)?this.title||this._initTitle():this.title&&this._releaseTitle(),((t=e.content)!==null&&t!==void 0?t:[]).length>0?this.content||this._initContent():this.content&&this._releaseContent()}_initPanel(t,e){const i=this.createElement("div",t,{left:"0",top:"0",pointerEvents:"none",padding:"12px",position:"absolute",zIndex:WD,fontFamily:"sans-serif",fontSize:"11px",borderRadius:"3px",borderStyle:"solid",lineHeight:"initial",background:"#fff",boxShadow:"2px 2px 4px rgba(0, 0, 0, 0.1)",maxWidth:"100wh",maxHeight:"100vh"},e);this.product=i}_initTitle(){const t=new Drt(this.product,this._option,0);t.init(),this.title=t,this.children[t.childIndex]=t}_releaseTitle(){this.title&&(this.title.release(),delete this.children[this.title.childIndex],this.title=null)}_initContent(){const t=new Irt(this.product,this._option,1);t.init(),this.content=t,this.children[t.childIndex]=t}_releaseContent(){this.content&&(this.content.release(),delete this.children[this.content.childIndex],this.content=null)}setStyle(){const t=this._option.getTooltipStyle();super.setStyle(gt({},wrt,t.panel)),Object.values(this.children).forEach(e=>e.setStyle())}setContent(){Object.values(this.children).forEach(t=>{t.setContent()})}release(){super.release(),this.title=null,this.content=null}}const GD=n=>{D.registerComponentPlugin(n.type,n)};class Dm extends FS{getVisibility(){var t;return!!(!((t=this.model)===null||t===void 0)&&t.getVisibility())}setVisibility(t){var e;t!==this.getVisibility()&&((e=this.model)===null||e===void 0||e.setVisibility(t))}constructor(){super(Dm.type),this.type=mh.dom,this._tooltipContainer=Gr==null?void 0:Gr.body}onAdd(t){super.onAdd(t),this._initStyle(),this.initEl()}initEl(){const t=this._component.getSpec(),e=t.parentElement;if(Gr&&e&&e.children&&e.children.length){for(let i=0;ithis._domStyle,getTooltipActual:()=>this._tooltipActual,getTooltipAttributes:()=>this._attributes,getContainer:()=>this._container},[t.className],this.name)}}_removeTooltip(){var t;(t=this.model)===null||t===void 0||t.release(),this._container=null}_updateTooltip(t,e){var i,s;if(t&&this.model){const{tooltipSpec:r,activeTooltipSpec:a}=e;e.changePositionOnly||(this._tooltipActual=a,this._initStyle(),this.model.initAll(),this.model.setStyle(),this.model.setContent()),this.setVisibility(t);const o=this.model.product;if(o){const{x:l=0,y:h=0}=(i=a.position)!==null&&i!==void 0?i:{};if(r.updateElement){this._updatePosition((s=this._cacheCustomTooltipPosition)!==null&&s!==void 0?s:{x:l,y:h}),r.updateElement(o,a,e);const d=this._getActualTooltipPosition(a,e,{width:o.offsetWidth,height:o.offsetHeight});this._updatePosition(d),this._cacheCustomTooltipPosition=d}else this._updatePosition({x:l,y:h})}}else this.setVisibility(t),this._cacheCustomTooltipPosition=void 0}_initStyle(){this._domStyle=krt(this._attributes)}_getParentElement(t){var e;return(e=this._container)!==null&&e!==void 0?e:super._getParentElement(t)}isTooltipShown(){return this.getVisibility()}reInit(){super.reInit(),this._initStyle()}_updatePosition({x:t,y:e}){const i=this.model.product;i&&(i.style.transform=`translate3d(${t}px, ${e}px, 0)`)}}Dm.type=mh.dom;const zrt=()=>{GD(Dm)};class Fm extends FS{constructor(){super(Fm.type),this.type=mh.canvas}onAdd(t){var e;super.onAdd(t),this._tooltipCanvasId=(e=this._chartOption.modeParams)===null||e===void 0?void 0:e.tooltipCanvasId}_initTooltipComponent(t){const e=this._getLayer(t);this._tooltipComponent=new tB({autoCalculatePosition:!1,autoMeasure:!1}),e.add(this._tooltipComponent)}_getLayer(t){if(this._layer)return this._layer;this._layer=t.createLayer(this._tooltipCanvasId);const e=this._layer.layerHandler.canvas.nativeCanvas;return e&&e.style&&(e.style.touchAction="none",e.style.pointerEvents="none"),this._layer}_removeTooltip(){this._layer&&this._layer.removeAllChild(),this._attributes=null}_updateTooltip(t,e){this._visible=t;const i=this._compiler.getStage();if(!i)return;if(!t)return void(this._tooltipComponent&&this._tooltipComponent.attribute.visible&&(this._tooltipComponent.hideAll(),this._tooltipComponent.setAttributes({visibleAll:!1})));this._tooltipComponent||this._initTooltipComponent(i);const{activeTooltipSpec:s}=e,r=s.position;e.changePositionOnly?C(r)&&this._tooltipComponent.setAttributes(r):this._tooltipComponent.setAttributes(Object.assign(Object.assign({},this._attributes),r)),this._tooltipComponent.attribute.visible||(this._tooltipComponent.showAll(),this._tooltipComponent.setAttributes({visibleAll:!0}))}isTooltipShown(){var t;return(t=this._tooltipComponent)===null||t===void 0?void 0:t.attribute.visibleAll}release(){var t;super.release(),(t=this._layer)===null||t===void 0||t.release()}}Fm.type=mh.canvas;const jrt=()=>{GD(Fm)},Hrt=n=>{D.registerChartPlugin(n.type,n)},Vrt=/\{([^}]+)\}/,Wrt=/\{([^}]+)\}/g,Grt=/:/;class go extends eS{constructor(){super(go.type),this.type="formatterPlugin",this._timeModeFormat={utc:ns.getInstance().timeUTCFormat,local:ns.getInstance().timeFormat},this._formatter=this._format,this._timeFormatter=this._timeModeFormat.local,this._numericFormatter=Ka.getInstance().format,this._numericSpecifier=Ka.getInstance().formatter,this._numericFormatterCache=new Map,this._isNumericFormatterCache=new Map}onInit(t,e){var i;const{globalInstance:s}=t;if(!s)return;this._spec=(i=e==null?void 0:e[go.specKey])!==null&&i!==void 0?i:{};const{timeMode:r,customFormatter:a,numericFormatter:o,timeFormatter:l}=this._spec;N(a)?this._formatter=a:(this._formatter=this._format.bind(this),N(l)?this._timeFormatter=l:r&&this._timeModeFormat[r]&&(this._timeFormatter=this._timeModeFormat[r]),o&&(this._numericFormatter=o,this._numericSpecifier=null,this._numericFormatterCache=null)),D.registerFormatter(this._formatter)}_format(t,e,i){return U(t)?t.map((s,r)=>{const a=U(i)?i[r]:i;return a?this._formatSingleLine(s,e,a):s}):U(i)?i.map(s=>this._formatSingleLine(t,e,s)):this._formatSingleLine(t,e,i)}_formatSingleLine(t,e,i){let s;return this._isNumericFormatterCache&&(this._isNumericFormatterCache.get(i)?s=this._isNumericFormatterCache.get(i):(s=Vrt.test(i),this._isNumericFormatterCache.set(i,s))),s?i.replace(Wrt,(r,a)=>{if(!Grt.test(a)){const d=e[a.trim()];return d!==void 0?d:r}const o=a.split(":"),l=e[o.shift()],h=o.join(":");return this._formatSingleText(l,h)}):this._formatSingleText(t,i)}_formatSingleText(t,e){if(MP.test(e)&&this._numericFormatter){let i;return this._numericFormatterCache&&this._numericSpecifier?(this._numericFormatterCache.get(e)?i=this._numericFormatterCache.get(e):(i=this._numericSpecifier(e),this._numericFormatterCache.set(e,i)),i(Number(t))):this._numericFormatter(e,Number(t))}return e.includes("%")&&this._timeFormatter?this._timeFormatter(e,t):t}release(){super.release(),this._format=null,this._timeFormatter=null,this._numericFormatter=null,this._numericSpecifier=null,this._numericFormatterCache=null,this._isNumericFormatterCache=null}}go.pluginType="chart",go.specKey="formatter",go.type="formatterPlugin";const Nrt=()=>{Hrt(go)};class tu extends Ci{constructor(){super(...arguments),this.type=tu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}tu.type="image";const Urt=()=>{D.registerMark(tu.type,tu),X6()},$rt=()=>{ML(),ym(),wr(),wh(),dn(),Sm(),Cr(),aS(),Uo(),jI(),Urt(),tD(),bm(),yI(),sS(),HI()};ai.useRegisters([dJ,pJ,yJ,EJ,pnt,fnt,mnt,xnt,gnt,knt,Tnt,Mnt,Pnt,Fnt,znt,Ant,Rnt,Ont,Hnt,Lnt,Int,Dnt,jnt,Vnt,bnt,Wnt,vnt,xJ,_nt,Snt,Ent,Bnt,wnt,Cnt,ln,hn,eJ,iJ,nJ,Mu,Ch,Ynt,ist,gst,fst,bst,Ast,kst,wst,nI,Gst,$st,ert,Nst,Yst,irt,nrt,Ust,Zst,Jst,trt,srt,rrt,crt,prt,urt,grt,$rt,zrt,jrt,Nrt,D7,V7,W7,G7,H7,j7,bJ,c5,h5]);const Yrt={class:"whitespace-break-spaces p-4 space-y-2"},Xrt={class:"space-x-2"},aat=qD({__name:"vchart",setup(n){const t=ZD(!1),e=Eu("chart1Ref"),i=Eu("chart2Ref"),s=Eu("chart3Ref"),r=Eu("chart4Ref");let a,o,l,h;JD(()=>{d(),c(),u(),g()});function d(){if(!e.value)return;const p={type:"bar",data:{values:[{type:"Nail polish",country:"Africa",value:4229},{type:"Nail polish",country:"EU",value:4376},{type:"Nail polish",country:"China",value:3054},{type:"Nail polish",country:"USA",value:12814},{type:"Eyebrow pencil",country:"Africa",value:3932},{type:"Eyebrow pencil",country:"EU",value:3987},{type:"Eyebrow pencil",country:"China",value:5067},{type:"Eyebrow pencil",country:"USA",value:13012},{type:"Rouge",country:"Africa",value:5221},{type:"Rouge",country:"EU",value:3574},{type:"Rouge",country:"China",value:7004},{type:"Rouge",country:"USA",value:11624},{type:"Lipstick",country:"Africa",value:9256},{type:"Lipstick",country:"EU",value:4376},{type:"Lipstick",country:"China",value:9054},{type:"Lipstick",country:"USA",value:8814},{type:"Eyeshadows",country:"Africa",value:3308},{type:"Eyeshadows",country:"EU",value:4572},{type:"Eyeshadows",country:"China",value:12043},{type:"Eyeshadows",country:"USA",value:12998}]},xField:["type","country"],yField:"value",seriesField:"country",legends:[{visible:!0,position:"middle",orient:"bottom"}],animationAppear:{duration:500,oneByOne:!0},axes:[{orient:"left",label:{formatMethod(_){return`${(_*100).toFixed(2)}%`}}}]};a=new ai(p,{dom:e.value}),a.renderSync()}function c(){if(!i.value)return;const p={type:"line",data:{values:[{type:"Nail polish",country:"Africa",value:4229},{type:"Nail polish",country:"EU",value:4376},{type:"Nail polish",country:"China",value:3054},{type:"Nail polish",country:"USA",value:12814},{type:"Eyebrow pencil",country:"Africa",value:3932},{type:"Eyebrow pencil",country:"EU",value:3987},{type:"Eyebrow pencil",country:"China",value:5067},{type:"Eyebrow pencil",country:"USA",value:13012},{type:"Rouge",country:"Africa",value:5221},{type:"Rouge",country:"EU",value:3574},{type:"Rouge",country:"China",value:7004},{type:"Rouge",country:"USA",value:11624},{type:"Lipstick",country:"Africa",value:9256},{type:"Lipstick",country:"EU",value:4376},{type:"Lipstick",country:"China",value:9054},{type:"Lipstick",country:"USA",value:8814},{type:"Eyeshadows",country:"Africa",value:3308},{type:"Eyeshadows",country:"EU",value:4572},{type:"Eyeshadows",country:"China",value:12043},{type:"Eyeshadows",country:"USA",value:12998},{type:"Eyeliner",country:"Africa",value:5432},{type:"Eyeliner",country:"EU",value:3417},{type:"Eyeliner",country:"China",value:15067},{type:"Eyeliner",country:"USA",value:12321},{type:"Foundation",country:"Africa",value:13701},{type:"Foundation",country:"EU",value:5231},{type:"Foundation",country:"China",value:10119},{type:"Foundation",country:"USA",value:10342},{type:"Lip gloss",country:"Africa",value:4008},{type:"Lip gloss",country:"EU",value:4572},{type:"Lip gloss",country:"China",value:12043},{type:"Lip gloss",country:"USA",value:22998},{type:"Mascara",country:"Africa",value:18712},{type:"Mascara",country:"EU",value:6134},{type:"Mascara",country:"China",value:10419},{type:"Mascara",country:"USA",value:11261}]},percent:!0,xField:"type",yField:"value",seriesField:"country",animationAppear:{duration:1500,easing:"linear"},legends:[{visible:!0,position:"middle",orient:"bottom"}],axes:[{orient:"left",label:{formatMethod(_){return`${(_*100).toFixed(2)}%`}}}]};o=new ai(p,{dom:i.value}),o.renderSync()}function u(){if(!s.value)return;const p={type:"common",padding:{top:10},layout:{type:"grid",col:3,row:2,elements:[{modelId:"legend",col:0,row:1,colSpan:3},{modelId:"DAU",col:0,row:0},{modelId:"新增",col:1,row:0},{modelId:"MAU",col:2,row:0}]},region:[{id:"DAU"},{id:"新增"},{id:"MAU"}],legends:{visible:!0,orient:"bottom",id:"legend",regionId:["DAU","新增","MAU","DAU/MAU"],item:{visible:!0,background:{style:{fill:"transparent"}}}},series:[{id:"DAUseries0",regionId:"DAU",type:"pie",valueField:"value",categoryField:"type",data:{id:"DAU",values:[{type:"首页",value:120},{type:"大屏",value:100},{type:"看板",value:200}]},seriesField:"type",label:{style:{visible:!1}}},{id:"新增series0",regionId:"新增",type:"pie",animationAppear:{preset:"fadeIn"},valueField:"value",categoryField:"type",data:{id:"新增",values:[{type:"首页",value:80},{type:"大屏",value:200},{type:"看板",value:400}]},seriesField:"type",label:{style:{visible:!1}}},{id:"MAUseries0",regionId:"MAU",type:"pie",valueField:"value",categoryField:"type",animationAppear:{preset:"growRadius"},data:{id:"MAU",values:[{type:"首页",value:123},{type:"大屏",value:245},{type:"看板",value:367}]},seriesField:"type",label:{style:{visible:!1}}}]};l=new ai(p,{dom:s.value}),l.renderSync()}function g(){if(!r.value)return;const p={type:"radar",data:[{id:"radarData",values:[{key:"Strength",value:5},{key:"Speed",value:5},{key:"Shooting",value:3},{key:"Endurance",value:5},{key:"Precision",value:5},{key:"Growth",value:5}]}],categoryField:"key",valueField:"value",point:{visible:!1},area:{visible:!0,state:{hover:{fillOpacity:.5}}},line:{style:{lineWidth:4}},axes:[{orient:"radius",zIndex:100,min:0,max:8,domainLine:{visible:!1},label:{visible:!0,space:0,style:{textAlign:"center",stroke:"#fff",lineWidth:4}},grid:{smooth:!1,style:{lineDash:[0]}}},{orient:"angle",zIndex:50,tick:{visible:!1},domainLine:{visible:!1},label:{space:20},grid:{style:{lineDash:[0]}}}]};h=new ai(p,{dom:r.value}),h.renderSync()}return(p,_)=>{const f=s2,m=HS("van-tag"),v=HS("van-action-sheet"),y=KD,b=XD;return t2(),QD(b,{navbar:"","navbar-start-side":"back"},{"navbar-end":Er(()=>[Gs("div",{class:"h-full flex-center px-1",onClick:_[0]||(_[0]=x=>t.value=!0)},[Fa(f,{name:"i-mdi:information",class:"text-4"})]),Fa(v,{show:i2(t),"onUpdate:show":_[1]||(_[1]=x=>n2(t)?t.value=x:null),teleport:"body"},{default:Er(()=>[Gs("div",Yrt,[_[3]||(_[3]=Gs("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),_[4]||(_[4]=Gs("div",null,"安装命令:",-1)),Gs("div",Xrt,[Fa(m,{type:"primary",plain:""},{default:Er(()=>_[2]||(_[2]=[e2(" pnpm add @visactor/vchart ")])),_:1})])])]),_:1},8,["show"])]),default:Er(()=>[Fa(y,{title:"柱状图"},{default:Er(()=>[Gs("div",{ref_key:"chart1Ref",ref:e,class:"h-[400px] w-full"},null,512)]),_:1}),Fa(y,{title:"折线图"},{default:Er(()=>[Gs("div",{ref_key:"chart2Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1}),Fa(y,{title:"饼图"},{default:Er(()=>[Gs("div",{ref_key:"chart3Ref",ref:s,style:{width:"100%",height:"400px"}},null,512)]),_:1}),Fa(y,{title:"雷达图"},{default:Er(()=>[Gs("div",{ref_key:"chart4Ref",ref:r,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{aat as default}; diff --git a/assets/vchart-DbIrQOOZ.js.br b/assets/vchart-DbIrQOOZ.js.br new file mode 100644 index 0000000..0aca526 Binary files /dev/null and b/assets/vchart-DbIrQOOZ.js.br differ diff --git a/assets/vchart-DbIrQOOZ.js.gz b/assets/vchart-DbIrQOOZ.js.gz new file mode 100644 index 0000000..72e8962 Binary files /dev/null and b/assets/vchart-DbIrQOOZ.js.gz differ diff --git a/assets/watermark-CaopLkAC.js b/assets/watermark-CaopLkAC.js new file mode 100644 index 0000000..4563826 --- /dev/null +++ b/assets/watermark-CaopLkAC.js @@ -0,0 +1,9 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as b}from"./index-DkxdnFkg.js";import{d as g,Y as w,a4 as V,O as W,c as x,w as a,m as l,o as S,a as C,b as n,u as s,i as Y,V as p,W as c,e as i,Q as B}from"./index-DD358c5I.js";const D={class:"flex flex-col items-center gap-4 p-4"},H=g({__name:"watermark",setup(N){const o=w(),r=V(),t=W({get(){return o.settings.app.enableWatermark},set(m){o.$patch(e=>{e.settings.app.enableWatermark=m})}});function d(){r.update({content:B().format(`YYYY-MM-DD +HH:mm:ss`)})}function _(){r.update()}return(m,e)=>{const f=l("van-switch"),u=l("van-button"),k=b;return S(),x(k,{navbar:"","navbar-start-side":"back"},{default:a(()=>[C("div",D,[n(f,{modelValue:s(t),"onUpdate:modelValue":e[0]||(e[0]=v=>Y(t)?t.value=v:null)},null,8,["modelValue"]),p(n(u,{onClick:d},{default:a(()=>e[1]||(e[1]=[i(" 更新水印 ")])),_:1},512),[[c,s(t)]]),p(n(u,{onClick:_},{default:a(()=>e[2]||(e[2]=[i(" 重置水印 ")])),_:1},512),[[c,s(t)]])])]),_:1})}}});export{H as default}; diff --git a/assets/watermark-CaopLkAC.js.br b/assets/watermark-CaopLkAC.js.br new file mode 100644 index 0000000..fed240f Binary files /dev/null and b/assets/watermark-CaopLkAC.js.br differ diff --git a/assets/watermark-CaopLkAC.js.gz b/assets/watermark-CaopLkAC.js.gz new file mode 100644 index 0000000..5647704 Binary files /dev/null and b/assets/watermark-CaopLkAC.js.gz differ diff --git a/assets/zoomable-B52EiMgA.js b/assets/zoomable-B52EiMgA.js new file mode 100644 index 0000000..6cbb63c --- /dev/null +++ b/assets/zoomable-B52EiMgA.js @@ -0,0 +1,8 @@ + +/** + * 由 Fantastic-mobile 提供技术支持 + * Powered by Fantastic-mobile + * https://fantastic-mobile.hurui.me/ + */ + +import{_ as s}from"./index-DkxdnFkg.js";import{_ as c}from"./index.vue_vue_type_script_setup_true_lang-BYV3n9o0.js";import{z as n,c as r,w as e,a5 as _,o as i,b as l,V as m,a as f}from"./index-DD358c5I.js";const p={},u={class:"block h-20 w-20",src:"https://fantastic-mobile.hurui.me/logo.png"};function d(b,h){const o=c,a=s,t=_("zoomable");return i(),r(a,{navbar:"","navbar-start-side":"back"},{default:e(()=>[l(o,null,{default:e(()=>[m(f("img",u,null,512),[[t]])]),_:1})]),_:1})}const w=n(p,[["render",d]]);export{w as default}; diff --git a/assets/zoomable-B52EiMgA.js.br b/assets/zoomable-B52EiMgA.js.br new file mode 100644 index 0000000..24dcc3a Binary files /dev/null and b/assets/zoomable-B52EiMgA.js.br differ diff --git a/assets/zoomable-B52EiMgA.js.gz b/assets/zoomable-B52EiMgA.js.gz new file mode 100644 index 0000000..4338f8d Binary files /dev/null and b/assets/zoomable-B52EiMgA.js.gz differ diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 0000000..0778dfc Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..e2b17c8 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + + + + + + + +
+ + diff --git a/index.html.br b/index.html.br new file mode 100644 index 0000000..65c5f8b --- /dev/null +++ b/index.html.br @@ -0,0 +1 @@ + n1%̹Ov(ԗWxȈXBҗ&a%lC X'+B+/o*ojrwQm F V@ OPh$ns㉣̶TH 6@;YH*%gýGAu0$?h(S)y!.+ L7$jjy‚7Oщ; Čo[& \ No newline at end of file diff --git a/index.html.gz b/index.html.gz new file mode 100644 index 0000000..cada005 Binary files /dev/null and b/index.html.gz differ