diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/assets/_...all_-BkhaQ2CA.js b/assets/_...all_-BkhaQ2CA.js new file mode 100644 index 00000000..1c64e6c5 --- /dev/null +++ b/assets/_...all_-BkhaQ2CA.js @@ -0,0 +1 @@ +import{d as l,r,g as i,h as u,o as _,i as d,b as o,a as t,w as m,e as f,t as x,u as v,j as p,_ as w,f as h}from"./index-B4fCF_Xu.js";const N={class:"min-h-screen flex flex-col items-center justify-center"},g={class:"flex flex-col items-center gap-4"},B=t("h1",{class:"m-0 text-6xl font-sans"}," 404 ",-1),k=t("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你访问的页面不存在 ",-1),j=l({__name:"[...all]",setup(I){const s=p(),e=r({inter:Number.NaN,countdown:5});i(()=>{e.value.inter&&window.clearInterval(e.value.inter)}),u(()=>{e.value.inter=window.setInterval(()=>{e.value.countdown--,e.value.countdown===0&&(e.value.inter&&window.clearInterval(e.value.inter),n())},1e3)});function n(){s.push("/")}return(C,V)=>{const a=w,c=h;return _(),d("div",N,[o(a,{name:"404",class:"text-[300px] -mt-9xl"}),t("div",g,[B,k,o(c,{onClick:n},{default:m(()=>[f(x(v(e).countdown)+" 秒后,返回首页 ",1)]),_:1})])])}}});export{j as default}; diff --git a/assets/_...all_-BkhaQ2CA.js.br b/assets/_...all_-BkhaQ2CA.js.br new file mode 100644 index 00000000..dbfcb105 Binary files /dev/null and b/assets/_...all_-BkhaQ2CA.js.br differ diff --git a/assets/_...all_-BkhaQ2CA.js.gz b/assets/_...all_-BkhaQ2CA.js.gz new file mode 100644 index 00000000..99932760 Binary files /dev/null and b/assets/_...all_-BkhaQ2CA.js.gz differ diff --git a/assets/animation-B-gXXBrj.css b/assets/animation-B-gXXBrj.css new file mode 100644 index 00000000..93fde861 --- /dev/null +++ b/assets/animation-B-gXXBrj.css @@ -0,0 +1,7 @@ +@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,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,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,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,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,-4px,0) scaleY(1.02);transform:translate3d(0,-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,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,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,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,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,-4px,0) scaleY(1.02);transform:translate3d(0,-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(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,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,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,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(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(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(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(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(-1200px) scale(.7);transform:translateY(-1200px) 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(-1200px) scale(.7);transform:translateY(-1200px) 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(-2000px) scale(.7);transform:translate(-2000px) 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(-2000px) scale(.7);transform:translate(-2000px) 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(2000px) scale(.7);transform:translate(2000px) 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(2000px) scale(.7);transform:translate(2000px) 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(1200px) scale(.7);transform:translateY(1200px) 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(1200px) scale(.7);transform:translateY(1200px) 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(700px) scale(.7);transform:translateY(700px) 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(700px) scale(.7);transform:translateY(700px) 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(-2000px) scale(.7);transform:translate(-2000px) 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(-2000px) scale(.7);transform:translate(-2000px) 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(2000px) scale(.7);transform:translate(2000px) 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(2000px) scale(.7);transform:translate(2000px) 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(-700px) scale(.7);transform:translateY(-700px) 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(-700px) scale(.7);transform:translateY(-700px) 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,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,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,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,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(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,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(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,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(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,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(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,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,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,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,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,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,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,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,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,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(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,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(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,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,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,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,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,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(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,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(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,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,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,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(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) 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(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.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(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.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(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) 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(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) 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,700px,0);transform:translate3d(0,700px,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,700px,0);transform:translate3d(0,700px,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,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,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,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,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,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,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,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,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(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,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(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,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(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,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(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,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(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,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(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,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(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,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(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,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,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,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,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,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,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,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,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,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,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,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,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,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,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,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,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,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(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,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(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,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,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,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,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,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,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,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,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,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-B-gXXBrj.css.br b/assets/animation-B-gXXBrj.css.br new file mode 100644 index 00000000..495fb2f8 Binary files /dev/null and b/assets/animation-B-gXXBrj.css.br differ diff --git a/assets/animation-B-gXXBrj.css.gz b/assets/animation-B-gXXBrj.css.gz new file mode 100644 index 00000000..30d3285e Binary files /dev/null and b/assets/animation-B-gXXBrj.css.gz differ diff --git a/assets/animation-l2iDL9JK.js b/assets/animation-l2iDL9JK.js new file mode 100644 index 00000000..72fa509d --- /dev/null +++ b/assets/animation-l2iDL9JK.js @@ -0,0 +1 @@ +import{_ as T}from"./index-g5ePWcIs.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as $,r as i,l as _,o as w,c as y,w as o,a as m,b as n,e as p,u as a,H as r,t as O,T as V,i as X,n as Y,_ as j}from"./index-B4fCF_Xu.js";const N={class:"whitespace-break-spaces p-4 space-y-2"},P=m("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),E=m("div",null,"安装命令:",-1),H={class:"space-x-2"},M={class:"m-4"},q={key:0,class:"mt-2 h-100px w-100px bg-blue"},K=$({__name:"animation",setup(A){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"),c=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,c.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=S,C=T;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=>r(f)?f.value=e:null),teleport:"body"},{default:o(()=>[m("div",N,[P,E,m("div",H,[n(B,{type:"primary",plain:""},{default:o(()=>[p(" pnpm add animate.css ")]),_:1})])])]),_:1},8,["show"])]),default:o(()=>[m("div",M,[n(g,{"is-link":"",readonly:"",label:"进入动画(显示)","label-width":"8em",onClick:t[2]||(t[2]=e=>u.value=!0)},{input:o(()=>{var e;return[p(O((e=a(v).find(I=>I.value===a(x)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(u),"onUpdate:show":t[4]||(t[4]=e=>r(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(O((e=a(v).find(I=>I.value===a(c)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(l),"onUpdate:show":t[7]||(t[7]=e=>r(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(O(a(s)?"隐藏":"显示"),1)]),_:1}),n(V,{"enter-active-class":`animate__animated ${a(x)}`,"leave-active-class":`animate__animated ${a(c)}`},{default:o(()=>[a(s)?(w(),X("div",q)):Y("",!0)]),_:1},8,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}});export{K as default}; diff --git a/assets/animation-l2iDL9JK.js.br b/assets/animation-l2iDL9JK.js.br new file mode 100644 index 00000000..c5a239e7 Binary files /dev/null and b/assets/animation-l2iDL9JK.js.br differ diff --git a/assets/animation-l2iDL9JK.js.gz b/assets/animation-l2iDL9JK.js.gz new file mode 100644 index 00000000..cbf5106e Binary files /dev/null and b/assets/animation-l2iDL9JK.js.gz differ diff --git a/assets/badge-BrnTN2MM.js b/assets/badge-BrnTN2MM.js new file mode 100644 index 00000000..081fbf36 --- /dev/null +++ b/assets/badge-BrnTN2MM.js @@ -0,0 +1 @@ +import{_ as c}from"./index-g5ePWcIs.js";import{d as b,af as v,l as _,o as k,c as C,w as e,a as m,b as n,u as a,e as s,_ as $}from"./index-B4fCF_Xu.js";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";const x={class:"flex flex-col gap-4 p-4"},B=m("div",null,"角标可以搭配 Pinia 一起使用,实现动态控制。",-1),P=b({__name:"badge",setup(N){const o=v();return(d,t)=>{const l=_("VanButton"),r=g,u=$,f=_("van-button"),p=c;return k(),C(p,{navbar:!1,tabbar:"","tabbar-name":"third"},{default:e(()=>[m("div",x,[B,n(r,{title:"点标记",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[0]||(t[0]=i=>a(o).switchDot())},{default:e(()=>[s(" 切换 ")]),_:1})]),_:1}),n(r,{title:"数字标记,小于等于 0 时隐藏",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[1]||(t[1]=i=>a(o).setNumber(a(o).number+1))},{icon:e(()=>[n(u,{name:"i-ep:plus"})]),default:e(()=>[s(" 1 ")]),_:1}),n(l,{onClick:t[2]||(t[2]=i=>a(o).setNumber(a(o).number-1))},{icon:e(()=>[n(u,{name:"i-ep:minus"})]),default:e(()=>[s(" 1 ")]),_:1})]),_:1}),n(r,{title:"文字标记",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[3]||(t[3]=i=>a(o).setText(a(o).text==="热门"?"促销":"热门"))},{default:e(()=>[s(" 切换 ")]),_:1}),n(l,{onClick:t[4]||(t[4]=i=>a(o).setText(""))},{default:e(()=>[s(" 清空 ")]),_:1})]),_:1}),n(f,{onClick:t[5]||(t[5]=i=>d.$router.back())},{default:e(()=>[s(" 返回 ")]),_:1})])]),_:1})}}});export{P as default}; diff --git a/assets/badge-BrnTN2MM.js.br b/assets/badge-BrnTN2MM.js.br new file mode 100644 index 00000000..adb4662f Binary files /dev/null and b/assets/badge-BrnTN2MM.js.br differ diff --git a/assets/badge-BrnTN2MM.js.gz b/assets/badge-BrnTN2MM.js.gz new file mode 100644 index 00000000..f39e803c Binary files /dev/null and b/assets/badge-BrnTN2MM.js.gz differ diff --git a/assets/custom-area-C8khfZzT.js b/assets/custom-area-C8khfZzT.js new file mode 100644 index 00000000..6a07e048 --- /dev/null +++ b/assets/custom-area-C8khfZzT.js @@ -0,0 +1 @@ +import{_ as u}from"./index-g5ePWcIs.js";import{d as m,r as f,l as c,o as v,c as x,w as n,a as e,b as t,s as h,v as b,u as i,H as g,e as w,_ as V}from"./index-B4fCF_Xu.js";const k={class:"flex-center flex-1"},C={class:"flex-center flex-1"},B={class:"flex-center flex-1"},N={class:"flex flex-col gap-4 p-4"},$=e("div",null,"可以根据业务逻辑做更精细化的处理,比如动态切换显示内容。",-1),D=m({__name:"custom-area",setup(S){const o=f(!1);return(_,s)=>{const a=V,r=c("van-switch"),d=c("van-button"),p=u;return v(),x(p,{navbar:!1,tabbar:""},{tabbar:n(()=>[e("div",k,[t(a,{name:"https://fantastic-admin.github.io/logo.png",class:"text-8"})]),h(e("div",C,[t(a,{name:"https://fantastic-mobile.github.io/logo.png",class:"text-8"})],512),[[b,i(o)]]),e("div",B,[t(a,{name:"https://one-step-admin.github.io/logo.png",class:"text-8"})])]),default:n(()=>[e("div",N,[$,e("div",null,[t(r,{modelValue:i(o),"onUpdate:modelValue":s[0]||(s[0]=l=>g(o)?o.value=l:null),size:"16px"},null,8,["modelValue"])]),t(d,{onClick:s[1]||(s[1]=l=>_.$router.back())},{default:n(()=>[w(" 返回 ")]),_:1})])]),_:1})}}});export{D as default}; diff --git a/assets/custom-area-C8khfZzT.js.br b/assets/custom-area-C8khfZzT.js.br new file mode 100644 index 00000000..0d2dc6ea Binary files /dev/null and b/assets/custom-area-C8khfZzT.js.br differ diff --git a/assets/custom-area-C8khfZzT.js.gz b/assets/custom-area-C8khfZzT.js.gz new file mode 100644 index 00000000..39b21b58 Binary files /dev/null and b/assets/custom-area-C8khfZzT.js.gz differ diff --git a/assets/custom-area-jbZ6-ffy.js b/assets/custom-area-jbZ6-ffy.js new file mode 100644 index 00000000..91530b27 --- /dev/null +++ b/assets/custom-area-jbZ6-ffy.js @@ -0,0 +1 @@ +import{_ as h}from"./index-g5ePWcIs.js";import{d as k,r as i,l as u,o as x,c as V,w as a,b as s,u as r,H as m,e as p,a as _,t as C,M as g}from"./index-B4fCF_Xu.js";const B={class:"flex flex-col gap-4 p-4"},y=k({__name:"custom-area",setup(N){const t=i(!1),n=i(!1),d=[{name:"选项一"},{name:"选项二"},{name:"选项三"}];function v(l){n.value=!1,g(l.name)}return(l,e)=>{const f=u("van-switch"),c=u("van-button"),w=u("van-action-sheet"),b=h;return x(),V(b,{navbar:""},{"navbar-start":a(()=>[s(f,{modelValue:r(t),"onUpdate:modelValue":e[0]||(e[0]=o=>m(t)?t.value=o:null),size:"16px"},null,8,["modelValue"])]),"navbar-end":a(()=>[s(c,{size:"small",onClick:e[1]||(e[1]=o=>n.value=!0)},{default:a(()=>[p(" 操作按钮 ")]),_:1}),s(w,{show:r(n),"onUpdate:show":e[2]||(e[2]=o=>m(n)?n.value=o:null),actions:d,onSelect:v},null,8,["show"])]),default:a(()=>[_("div",B,[_("div",null," Switch: "+C(r(t)),1),s(c,{onClick:e[3]||(e[3]=o=>l.$router.back())},{default:a(()=>[p(" 返回 ")]),_:1})])]),_:1})}}});export{y as default}; diff --git a/assets/custom-area-jbZ6-ffy.js.br b/assets/custom-area-jbZ6-ffy.js.br new file mode 100644 index 00000000..ea3a68b3 Binary files /dev/null and b/assets/custom-area-jbZ6-ffy.js.br differ diff --git a/assets/custom-area-jbZ6-ffy.js.gz b/assets/custom-area-jbZ6-ffy.js.gz new file mode 100644 index 00000000..b4ea301e Binary files /dev/null and b/assets/custom-area-jbZ6-ffy.js.gz differ diff --git a/assets/custom-navbar-CrZSyYTv.css b/assets/custom-navbar-CrZSyYTv.css new file mode 100644 index 00000000..932185cc --- /dev/null +++ b/assets/custom-navbar-CrZSyYTv.css @@ -0,0 +1 @@ +header[data-v-aae1f37a]{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-CrZSyYTv.css.br b/assets/custom-navbar-CrZSyYTv.css.br new file mode 100644 index 00000000..5ac1e70a Binary files /dev/null and b/assets/custom-navbar-CrZSyYTv.css.br differ diff --git a/assets/custom-navbar-CrZSyYTv.css.gz b/assets/custom-navbar-CrZSyYTv.css.gz new file mode 100644 index 00000000..e85c2d98 Binary files /dev/null and b/assets/custom-navbar-CrZSyYTv.css.gz differ diff --git a/assets/custom-navbar-DeDVH8RE.js b/assets/custom-navbar-DeDVH8RE.js new file mode 100644 index 00000000..06fd1a7a --- /dev/null +++ b/assets/custom-navbar-DeDVH8RE.js @@ -0,0 +1 @@ +import{_ as i}from"./index-g5ePWcIs.js";import{d,r as f,l as u,o as n,c as m,w as r,a as e,p as x,u as v,e as l,b as g,i as b,m as h,F as k,t as w,q as C}from"./index-B4fCF_Xu.js";const B={class:"h-full flex flex-col"},N={class:"mt-[80px] flex flex-1 flex-col gap-4 p-4"},y=d({__name:"custom-navbar",setup(T){const o=f(0);function c(t){o.value=t.target.scrollTop}return(t,s)=>{const p=u("van-button"),_=i;return n(),m(_,{navbar:!1,onScroll:c},{default:r(()=>[e("div",B,[e("header",{class:x(["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]!":v(o)>50}])}," 头部导航 ",2),e("div",N,[l(" 使用自定义导航可以满足更复杂的业务场景,例如当前页面,你可以滚动页面试试。 "),g(p,{onClick:s[0]||(s[0]=a=>t.$router.back())},{default:r(()=>[l(" 返回 ")]),_:1}),(n(),b(k,null,h(50,a=>e("div",{key:a,class:"text-center"},w(a),1)),64))])])]),_:1})}}}),L=C(y,[["__scopeId","data-v-aae1f37a"]]);export{L as default}; diff --git a/assets/custom-navbar-DeDVH8RE.js.br b/assets/custom-navbar-DeDVH8RE.js.br new file mode 100644 index 00000000..5c15f6f9 Binary files /dev/null and b/assets/custom-navbar-DeDVH8RE.js.br differ diff --git a/assets/custom-navbar-DeDVH8RE.js.gz b/assets/custom-navbar-DeDVH8RE.js.gz new file mode 100644 index 00000000..4369da47 Binary files /dev/null and b/assets/custom-navbar-DeDVH8RE.js.gz differ diff --git a/assets/custom-title-B5APfY_c.js b/assets/custom-title-B5APfY_c.js new file mode 100644 index 00000000..bba325e4 --- /dev/null +++ b/assets/custom-title-B5APfY_c.js @@ -0,0 +1 @@ +import{_ as r}from"./index-g5ePWcIs.js";import{q as _,l,o as u,c as d,w as e,e as t,a,b as i}from"./index-B4fCF_Xu.js";const p={},f={class:"flex flex-col gap-4 p-4"},m=a("div",null,"但也要注意,这种方式只能自定义 Navbar 区域的标题,并不会影响网页标题。如需同时修改网页标题,请参考动态标题。",-1);function v(n,o){const s=l("van-button"),c=r;return u(),d(c,{navbar:""},{navbar:e(()=>[t(" 这是一段自定义的标题这是一段自定义的标题这是一段自定义的标题 ")]),default:e(()=>[a("div",f,[m,i(s,{onClick:o[0]||(o[0]=b=>n.$router.back())},{default:e(()=>[t(" 返回 ")]),_:1})])]),_:1})}const N=_(p,[["render",v]]);export{N as default}; diff --git a/assets/custom-title-B5APfY_c.js.br b/assets/custom-title-B5APfY_c.js.br new file mode 100644 index 00000000..de93e624 Binary files /dev/null and b/assets/custom-title-B5APfY_c.js.br differ diff --git a/assets/custom-title-B5APfY_c.js.gz b/assets/custom-title-B5APfY_c.js.gz new file mode 100644 index 00000000..f201f6a7 Binary files /dev/null and b/assets/custom-title-B5APfY_c.js.gz differ diff --git a/assets/default-BxyEo86l.js b/assets/default-BxyEo86l.js new file mode 100644 index 00000000..eaeb4314 --- /dev/null +++ b/assets/default-BxyEo86l.js @@ -0,0 +1 @@ +import{_ as s}from"./index-g5ePWcIs.js";import{q as c,l as r,o as _,c as l,w as o,a as f,b as p,e as u}from"./index-B4fCF_Xu.js";const d={},i={class:"flex flex-col gap-4 p-4"};function m(t,e){const a=r("van-button"),n=s;return _(),l(n,{navbar:""},{default:o(()=>[f("div",i,[p(a,{onClick:e[0]||(e[0]=v=>t.$router.back())},{default:o(()=>[u(" 返回 ")]),_:1})])]),_:1})}const k=c(d,[["render",m]]);export{k as default}; diff --git a/assets/default-BxyEo86l.js.br b/assets/default-BxyEo86l.js.br new file mode 100644 index 00000000..8d39ddcf Binary files /dev/null and b/assets/default-BxyEo86l.js.br differ diff --git a/assets/default-BxyEo86l.js.gz b/assets/default-BxyEo86l.js.gz new file mode 100644 index 00000000..408bc6bc Binary files /dev/null and b/assets/default-BxyEo86l.js.gz differ diff --git a/assets/default-Dh5tlTAt.js b/assets/default-Dh5tlTAt.js new file mode 100644 index 00000000..c53c77c9 --- /dev/null +++ b/assets/default-Dh5tlTAt.js @@ -0,0 +1 @@ +import{_}from"./index-g5ePWcIs.js";import{q as c,l as r,o as l,c as d,w as o,a as e,b as u,e as f}from"./index-B4fCF_Xu.js";const i={},p={class:"flex flex-col gap-4 p-4"},m=e("div",null,"底部导航默认是全局关闭的,可以单独给指定路由设置开启底部导航。",-1),b=e("div",null,"当然也可以设置为全局开启,指定路由设置关闭。",-1);function v(a,t){const n=r("van-button"),s=_;return l(),d(s,{navbar:!1,tabbar:"","tabbar-name":"default"},{default:o(()=>[e("div",p,[m,b,u(n,{onClick:t[0]||(t[0]=x=>a.$router.back())},{default:o(()=>[f(" 返回 ")]),_:1})])]),_:1})}const h=c(i,[["render",v]]);export{h as default}; diff --git a/assets/default-Dh5tlTAt.js.br b/assets/default-Dh5tlTAt.js.br new file mode 100644 index 00000000..bd295a76 Binary files /dev/null and b/assets/default-Dh5tlTAt.js.br differ diff --git a/assets/default-Dh5tlTAt.js.gz b/assets/default-Dh5tlTAt.js.gz new file mode 100644 index 00000000..52742391 Binary files /dev/null and b/assets/default-Dh5tlTAt.js.gz differ diff --git a/assets/digital-7-webfont-Be4rWpNL.woff2 b/assets/digital-7-webfont-Be4rWpNL.woff2 new file mode 100644 index 00000000..012a409a 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 00000000..ce1a7560 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 00000000..d02c78f0 --- /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 00000000..9e5bd430 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 00000000..1f6ac245 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 00000000..c622d756 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 00000000..516bc56a 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 00000000..5ef075d0 --- /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 00000000..6eaf0592 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 00000000..8a9b9c61 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 00000000..d7545f51 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 00000000..7af0eb4e Binary files /dev/null and b/assets/digital-7_mono-webfont-p3QHBSNF.eot differ diff --git a/assets/echarts-BmkUu6Th.js b/assets/echarts-BmkUu6Th.js new file mode 100644 index 00000000..c193352f --- /dev/null +++ b/assets/echarts-BmkUu6Th.js @@ -0,0 +1,60 @@ +import{_ as G2}from"./index-g5ePWcIs.js";import{_ as F2}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as H2,r as Co,h as W2,g as U2,l as rm,o as Y2,c as X2,w as _a,a as Qr,b as rn,e as $2,u as Z2,H as q2,_ as K2}from"./index-B4fCF_Xu.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 ip=function(r,e){return ip=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])},ip(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");ip(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Q2=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),J2=function(){function r(){this.browser=new Q2,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 J2;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):j2(navigator.userAgent,mt);function j2(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 $d=12,sw="sans-serif",Xa=$d+"px "+sw,tI=20,eI=100,rI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function aI(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 TI(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?om(s,o):om(o,s))}function pw(r){return r.nodeName.toUpperCase()==="CANVAS"}var AI=/([&<>"'])/g,CI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ve(r){return r==null?"":(r+"").replace(AI,function(e,t){return CI[t]})}var DI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Bh=[],MI=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function vp(r,e,t,a){return t=t||{},a?lm(r,e,t):MI&&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):lm(r,e,t),t}function lm(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(hp(Bh,r,a,n)){t.zrX=Bh[0],t.zrY=Bh[1];return}}t.zrX=t.zrY=0}function tg(r){return r||window.event}function qe(r,e,t){if(e=tg(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&&vp(r,o,e,t)}else{vp(r,e,e,t);var i=II(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&DI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function II(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 cp(r,e,t,a){r.addEventListener(e,t,a)}function LI(r,e,t,a){r.removeEventListener(e,t,a)}var sa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function um(r){return r.which===2||r.which===3}var PI=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=fm(a)/fm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=RI(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 eg(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 rg(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 EI(r){var e=Fe();return eg(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]),rg(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 kI(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:OI}}function OI(){sa(this.event)}var NI=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}(),BI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],zh=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 NI,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new SI(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(BI,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=kI(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(hm(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)&&(zh.copy(v.getBoundingRect()),v.transform&&zh.applyTransform(v.transform),zh.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 VI(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 hm(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=VI(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 zI(r){for(var e=0;r>=mw;)e|=r&1,r>>=1;return r+e}function vm(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 GI(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 Gh(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 Fh(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 FI(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-Gh(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),cm(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,pm=!1;function Hh(){pm||(pm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var HI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Hh(),f.z=0),isNaN(f.z2)&&(Hh(),f.z2=0),isNaN(f.zlevel)&&(Hh(),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,gm=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 ym(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+gm*Math.sin(x)))/(3*o),A=(-s+w*(T-gm*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 Za(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 $I=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=K(e)?e:ds[e]||ag(e)},r}(),Aw=function(){function r(e){this.value=e}return r}(),ZI=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 ZI,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}(),mm={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 Wh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function $n(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Rs(parseFloat(e)/100):Rs(parseFloat(e))}function Uh(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 Ze(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function dp(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&&dp(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 dp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in mm)return dp(e,mm[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)){Ze(e,0,0,0,1);return}return Ze(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)){Ze(e,0,0,0,1);return}return Ze(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?Ze(e,+u[0],+u[1],+u[2],1):Ze(e,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return Ze(e,Wh(u[0]),Wh(u[1]),Wh(u[2]),u.length===3?f:$n(u[3])),yi(r,e),e;Ze(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ze(e,0,0,0,1);return}return u[3]=$n(u[3]),gp(u,e),yi(r,e),e;case"hsl":if(u.length!==3){Ze(e,0,0,0,1);return}return gp(u,e),yi(r,e),e;default:return}}Ze(e,0,0,0,1)}}function gp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$n(r[1]),n=$n(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ze(e,yr(Uh(o,i,t+1/3)*255),yr(Uh(o,i,t)*255),yr(Uh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function KI(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 yp(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 Yh(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 QI(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=KI(n),e!=null&&(n[0]=qI(e)),t!=null&&(n[1]=$n(t)),a!=null&&(n[2]=$n(a)),na(gp(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 _m=new nl(100);function mp(r){if(U(r)){var e=_m.get(r);return e||(e=yp(r,-.1),_m.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:yp(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 Sm=1e-4;function Va(r){return r-Sm}function kl(r){return sf(r*1e3)/1e3}function _p(r){return sf(r*1e4)/1e4}function JI(r){return"matrix("+kl(r[0])+","+kl(r[1])+","+kl(r[2])+","+kl(r[3])+","+_p(r[4])+","+_p(r[5])+")"}var jI={left:"start",right:"end",center:"middle",middle:"middle"};function tL(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function eL(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function rL(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 aL(r){return r&&!!r.svgElement}function ng(r){return Dw(r)||aL(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 nL=function(){return mt.hasGlobalWindow&&K(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}}(),Sp=Array.prototype.slice;function Jr(r,e,t){return(e-r)*t+r}function Xh(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=bm,l=t;if(ge(t)){var u=lL(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=xp:Iw(t)&&(s=bp),l=h}i===0?this.valType=s:(s!==this.valType||s===bm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:ds[a]||ag(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=wm(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?Xh(m,c[n],p[n],y):iL(m,c[n],p[n],y);else if(wm(i)){var _=c[n],S=p[n],b=i===xp;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(Xh([],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)Xh(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&&xm(e[a],e[a],n,1)},r}(),ig=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){Kd("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 fL=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 ig(t,a.loop);return this.addAnimator(n),n},e}(or),hL=300,$h=mt.domSupported,Zh=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}}(),Tm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Am=!1;function wp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function vL(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 qh(r){r&&(r.zrByTouch=!0)}function cL(r,e){return qe(r.dom,new pL(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 pL=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){Am=!0,r=qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Am||(r=qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=qe(this.dom,r),qh(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),qh(r),this.handler.processGesture(r,"change"),vr.mousemove.call(this,r)},touchend:function(r){r=qe(this.dom,r),qh(r),this.handler.processGesture(r,"end"),vr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentMm||r<-Mm}var un=[],mi=[],Qh=Fe(),Jh=Math.abs,_L=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&&(Dm(a),this.invTransform=null);return}a=a||Fe(),t?this.getLocalTransform(a):Dm(a),e&&(t?aa(a,e,a):eg(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)&&(Qh[4]=a,Qh[5]=n,aa(mi,t,Qh),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 jh="__zr_normal__",tv=Fr.concat(["ignore"]),SL=zr(Fr,function(r,e){return r[e]=!0,r},{ignore:!1}),_i={},xL=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=xL;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()?Dp:Cp},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(jh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===jh,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){Kd("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]),wL(t,a,y)}}var b=new ig(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)?RL(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 EL(r)}function EL(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 kL(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 OL(r,e){var t=Math.max(Er(r),Er(e)),a=r+e;return t>zw?a:Ut(a,t)}var Em=9007199254740991;function Fw(r){var e=Math.PI*2;return(r%e+e)%e}function ks(r){return r>-Rm&&r=10&&e++,e}function Hw(r,e){var t=og(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 av(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 km(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 sP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lP=ai(sP),uP=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return lP(this,e,t)},r}(),Lp=new nl(50);function fP(r){if(typeof r=="string"){var e=Lp.get(r);return e&&e.image}else return r}function fg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Lp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!ah(e)&&i.pending.push(o)):(e=$a.loadImage(r,Vm,Vm),e.__zrImageSrc=r,Lp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Vm(){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?vP(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 vP(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&&iv(t,r.substring(s,u),e,o),iv(t,l[2],e,o,l[1]),s=nv.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=fP(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 mP=zr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function _P(r){return yP(r)?!!mP[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 Pp="__zr_style_"+Math.round(Math.random()*10),Zn={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}};Zn[Pp]=!0;var Gm=["z","z2","invisible"],SP=["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]=uv(n)*t+r,Vl[1]=lv(n)*a+e,zl[0]=uv(i)*t+r,zl[1]=lv(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]=uv(c)*t+r,Gl[1]=lv(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=[],fv=Math.min,hv=Math.max,pn=Math.cos,dn=Math.sin,Zr=Math.abs,Rp=Math.PI,Ia=Rp*2,vv=typeof Float32Array<"u",Ro=[];function cv(r){var e=Math.round(r/Rp*1e8)/1e8;return e%2*Rp}function hg(r,e){var t=cv(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-cv(t-n)):e&&t0&&(this._ux=Zr(a/lf/e)||0,this._uy=Zr(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=Zr(e-this._xi),n=Zr(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,hg(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)&&vv&&(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||Zr(_)>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=WI(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=YI(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=hv(D,M)*fv(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=Zr(h-u),D=Zr(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;Za(u,P,E,O,I,vn),Za(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++],Z=a[x++],Q=a[x++],J=a[x++],ct=a[x++],xt=a[x++],pt=!a[x++],et=Z>Q?Z:Q,dt=Zr(Z-Q)>.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,Z,Q,xt,J,st,pt):e.arc(F,H,et,J,st,pt),q)break t;T&&(s=pn(J)*Z+F,l=dn(J)*Q+H),u=pn(st)*Z+F,f=dn(st)*Q+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 wt=m-g;e.moveTo(h,v),e.lineTo(h+fv(wt,lt),v),wt-=lt,wt>0&&e.lineTo(h+lt,v+fv(wt,zt)),wt-=zt,wt>0&&e.lineTo(h+hv(lt-wt,0),v+zt),wt-=lt,wt>0&&e.lineTo(h,v+hv(zt-wt,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,DP=1e-4;function MP(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&IP(),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(AP(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=LP(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+=PP(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(CP(y,m,S,b,b+x,w,e,T,n))return!0}else s+=RP(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&&!MP(u,h)&&(s+=jr(l,u,f,h,a,n)||0),s!==0}function EP(r,e,t){return nT(r,0,!1,e,t)}function kP(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},Zn),OP={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nh.style)},pv=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?Cp:a>.2?mL:Dp}else if(t)return Dp}return Cp},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)),kP(s,l/u,t,a)))return!0}if(this.hasFill())return EP(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(NP,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 BP=j({x:0,y:0},Zn),VP={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nh.style)};function zP(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(BP,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=zP(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 VP},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 GP(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 FP=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),HP={},bt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FP},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=oT(HP,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?GP(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 Ym={fill:"#000"},Xm=2,WP={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)},Tt=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Ym,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&&dv(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=Qm("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=Km("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Xm,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),Zm(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),UP={left:!0,right:1,center:1},YP={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)?$d+"px":r+"px"}function Zm(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 XP(r){return qm(r),C(r.rich,qm),r}function qm(r){if(r){r.font=Tt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||UP[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||YP[t]?t:"top";var a=r.padding;a&&(r.padding=jd(r.padding))}}function Km(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Qm(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 jm(r){var e=r.text;return e!=null&&(e+=""),e}function dv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var nt=At(),Ep=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"})}},t0=1,e0={},uT=At(),vg=At(),cg=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",cg)}function pg(r){sh(r,"blur",sl)}function vT(r){r.hoverState===sl&&sh(r,"normal",cg)}function ZP(r){r.selected=!0}function qP(r){r.selected=!1}function r0(r,e,t){e(r,t)}function da(r,e,t){r0(r,e,t),r.isGroup&&r.traverse(function(a){r0(a,e,t)})}function hf(r,e){switch(e){case"emphasis":r.hoverState=oh;break;case"normal":r.hoverState=cg;break;case"blur":r.hoverState=sl;break;case"select":r.selected=!0}}function KP(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=mp(s)):!Si(u.stroke)&&Si(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=mp(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 jP(r,e,t){var a=vt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:KP(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 gv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return QP(this,r,e,t);if(r==="blur")return jP(this,r,t);if(r==="select")return JP(this,r,t)}return t}function ni(r){r.stateProxy=gv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=gv),t&&(t.stateProxy=gv)}function a0(r,e){!gT(r,e)&&!r.__highByOuter&&da(r,fT)}function n0(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,pg)}function dg(r){da(r,vT)}function pT(r){da(r,ZP)}function dT(r){da(r,qP)}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=vg(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 kp(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),Np(r,e,t)}function iR(r){Gn(r,!1)}function Ht(r,e,t,a){a?iR(r):Kn(r,e,t)}function Np(r,e,t){var a=nt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var o0=["emphasis","blur","select"],oR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fe(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=yv(p),s*=yv(p));var d=(n===i?-1:1)*yv((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=f0([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=f0(b,x);if(Vp(b,x)<=-1&&(w=ko),Vp(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 vR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pR(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(vR);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 xR(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 bR(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=v0(u-l),p=c>mv&&c%mv;if(p>hr&&(c=p),!(a>hr))r.moveTo(f,h);else if(c>mv-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=xR(F),d=t[0],g=t[1],y=t[2],m=t[3]);var H=v0(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 wR=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 wR},e.prototype.buildPath=function(t,a){bR(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 TR=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 TR},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 AR(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=AR(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){_g("update",r,e,t,a,n,i)}function Vt(r,e,t,a,n,i){_g("enter",r,e,t,a,n,i)}function $i(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 d0(r){return!r.isGroup}function WR(r){return r.shape!=null}function hl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){d0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return WR(o)&&(s.shape=V({},o.shape)),s}var i=a(r);e.traverse(function(o){if(d0(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 UR(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=_v(c,p,f,h)/v;return!(g<0||g>1)}function _v(r,e,t,a){return r*a-t*e}function YR(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){X(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,formatterParams:s},n)}}function g0(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 aE={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:". "}}}},nE={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",bg="EN",Zi=bg,Wu={},wg={},VT=mt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Zi).toUpperCase();return r.indexOf(gf)>-1?gf:Zi}():Zi;function zT(r,e){r=r.toUpperCase(),wg[r]=new It(e),Wu[r]=e}function iE(r){if(U(r)){var e=Wu[r.toUpperCase()]||{};return r===gf||r===bg?rt(e):ft(rt(e),rt(Wu[Zi]),!1)}else return ft(rt(r),rt(Wu[Zi]),!1)}function Fp(r){return wg[r]}function oE(){return wg[Zi]}zT(bg,aE);zT(gf,nE);var Tg=1e3,Ag=Tg*60,ws=Ag*60,rr=ws*24,x0=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}",b0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xl,hour:Xl+" "+ss.hour,minute:Xl+" "+ss.minute,second:Xl+" "+ss.second,millisecond:ss.none},bv=["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 sE(r){return r===qi(r)}function lE(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[Cg(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=a instanceof It?a:Fp(a||VT)||oE(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ba(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[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,_[u]).replace(/{ee}/g,S[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 uE(r,e,t,a,n){var i=null;if(U(t))i=t;else if(K(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 w0(r,e,t){var a=Ct(r)?Hr(r):r;switch(e=e||FT(r,t),e){case"year":return a[Cg(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 Cg(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 fE(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 $T(r){return r?"setUTCMilliseconds":"setMilliseconds"}function ZT(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=jd;function Hp(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 op(r)?n(r):Ct(r)&&i(r)?r+"":"-";var u=la(r);return i(u)?ZT(u):op(r)?n(r):typeof r=="boolean"?r+"":"-"}var T0=["a","b","c","d","e","f","g"],wv=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 Dg(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=Dg;ot(Dg,"vertical");ot(Dg,"horizontal");function cE(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 pE(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);eE(_t);rE(_t,gE);function gE(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 yE={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=At();function mE(r){rA(r).datasetMap=$()}function aA(r,e,t){var a={},n=Ig(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:wE(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 TE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var $l,Oo,C0,D0="\0_ec_inner",AE=1,Pg=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=L0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,L0(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"?C0(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;mE(this),C(t,function(h,v){h!=null&&(_t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?rt(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=xE(this,h,Rt(t[h])),c=i.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=Zw(c,v,p);XL(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"&&$l(this)}this._seriesIndices||$l(this)},e.prototype.getOption=function(){var t=rt(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[D0],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 kE(r,e){return r.join(",")===e.join(",")}var ur=C,Fs=tt,P0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Av(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=P0.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=OL(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};V0=(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 H0(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ts(r){return new QE(r)}var QE=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}},jE=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}(),tk=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 ek(r,e){return r==="eq"||r==="ne"?new tk(r==="eq",e):X(yA,r)?new jE(r,e):null}var rk=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 ak(r,e){var t=new rk,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 _="";X(l,y)&&Mt(_),l[y]=m}});else for(var f=0;f65535?hk:vk}function Ti(){return[1/0,-1/0]}function ck(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Y0(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])}Mv={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(Zl(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=Ne(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?[Yp(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=[Yp(_,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=uk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[UE(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 gk(r,e,t,a){var n=e.noHeader,i=mk(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(X(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):Zp(o.join(""),n?t:i.html);if(n)return h;var v=Hp(e.header,"ordinal",r.useUTC),c=TA(a,r.renderMode).nameStyle;return r.renderMode==="richText"?DA(r,v,c)+i.richText+h:Zp('
'+Ve(v)+"
"+h,t)}function yk(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 Hp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Hp(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?"":xk(r,p,d,g,_)):Zp((s?"":h)+(i?"":_k(v,!s,m))+(o?"":Sk(p,d,g,_)),t)}}function Z0(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 mk(r){return{html:pk[r],richText:dk[r]}}function Zp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function _k(r,e,t){var a=e?"margin-left:2px":"";return''+Ve(r)+""}function Sk(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 Ve(o)}).join("  ")+""}function DA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function xk(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 Iv=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=vE({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=bk(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=sg(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 bk(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=At();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:Tk,reset:Ak}),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);K0(o,this),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,q0(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);K0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,q0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ne(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=Lg.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,Og);Kt(Bt,Lg);jw(Bt,_t);function q0(r){var e=r.name;sg(r)||(r.name=wk(r)||e)}function wk(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 Tk(r){return r.model.getRawData().count()}function Ak(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),Ck}function Ck(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function K0(r,e){C(tf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(Dk,e))})}function Dk(r,e){var t=qp(r);return t&&t.setOutputEnd((e||this).count()),e}function qp(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}();ug(Gt);rh(Gt);function bo(){var r=At();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=At(),Mk=bo(),Et=function(){function r(){this.group=new at,this.uid=mo("viewChart"),this.renderTask=Ts({plan:Ik,reset:Lk}),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 Q0(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?lR(e.highlightKey):null;a!=null?C(Rt(a),function(i){Q0(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){Q0(i,t,n)})}ug(Et);rh(Et);function Ik(r){return Mk(r.model)}function Lk(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),Pk[l]}var Pk={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",j0="\0__throttleRate",t_="\0__throttleType";function Bg(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[t_],s=n[j0];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Bg(i,t,a==="debounce"),n[mf]=i,n[t_]=a,n[j0]=t}return n}}function Hs(r,e){var t=r[e];t&&t[mf]&&(t.clear&&t.clear(),r[e]=t[mf])}var e_=At(),r_={itemStyle:ai(BT,!0),lineStyle:ai(NT,!0)},Rk={lineStyle:"stroke",itemStyle:"fill"};function RA(r,e){var t=r.visualStyleMapper||r_[e];return t||(console.warn("Unknown style type '"+e+"'."),r_.itemStyle)}function EA(r,e){var t=r.visualDrawType||Rk[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ek={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=K(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"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(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,kk={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}}}},Ok={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)),e_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=e_(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 Nk(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 Tt({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:Fk,reset:Hk,count:Uk}));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:Bk});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:Vk,onDirty:Gk})));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 K(e)&&(e={overallReset:e,seriesType:Yk(e)}),e.uid=mo("stageHandler"),t&&(e.visualType=t),e},r}();function Bk(r){r.overallReset(r.ecModel,r.api,r.payload)}function Vk(r){return r.overallProgress&&zk}function zk(){this.agent.dirty(),this.getDownstream().dirty()}function Gk(){this.agent&&this.agent.dirty()}function Fk(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Hk(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)}):Wk}var Wk=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}(),Kp=["symbol","symbolSize","symbolRotate","symbolOffset"],o_=Kp.concat(["symbolKeepAspect"]),Zk={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 Qp(r,e,t){for(var a=e.type==="radial"?uO(r,e,t):lO(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 zg(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&hO(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 vO=new Wr(!0);function xf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function s_(r){return typeof r=="string"&&r!=="none"}function bf(r){var e=r.fill;return e!=null&&e!=="none"}function l_(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 u_(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=fg(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 cO(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||vO,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?Qp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Qp(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=zg(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&&u_(r,t),o&&l_(r,t)):(o&&l_(r,t),i&&u_(r,t))),T&&r.setLineDash([])}function pO(r,e,t){var a=e.__image=fg(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 dO(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=zg(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 f_=["shadowBlur","shadowOffsetX","shadowOffsetY"],h_=[["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){Oe(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Zn.opacity:o}(a||e.blend!==t.blend)&&(i||(Oe(r,n),i=!0),r.globalCompositeOperation=e.blend||Zn.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 LE(this._api),u=this._theme,f=this._model=new Pg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},td);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(C_[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(rt(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=$a.createCanvas(),y=Pm(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 kv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return kv(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?Vg(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(GO,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)}),Kk(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(),Hg,"");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(),!!ed[t]){var n=ed[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;Nv.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(),Ev(h,!0),Ev(h,!1),v.plan()},Ev=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($i(y))return;if(y instanceof yt&&uR(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)}})}T_=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){dg(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)){D_.push(t);var i=kA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function lC(r,e){ed[r]=e}function $O(r,e,t){var a=AO("registerMap");a&&a(r,e,t)}var ZO=lk;vi(Gg,Ek);vi(xh,kk);vi(xh,Ok);vi(Gg,Zk);vi(xh,qk);vi(KA,wO);oC(uA);sC(MO,HE);lC("default",Nk);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",Xk);iC("dark",VA);var M_=[],qO={registerPreprocessor:oC,registerProcessor:sC,registerPostInit:WO,registerPostUpdate:UO,registerUpdateLifecycle:Wg,registerAction:Yr,registerCoordinateSystem:YO,registerLayout:XO,registerVisual:vi,registerTransform:ZO,registerLoading:lC,registerMap:$O,registerImpl:TO,PRIORITY:BO,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){IL(r,e)}};function gt(r){if(z(r)){C(r,function(e){gt(e)});return}vt(M_,r)>=0||(M_.push(r),K(r)&&(r={install:r}),r.install(qO))}function Fo(r){return r==null?0:r.length||1}function I_(r){return r}var ha=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||I_,this._newKeyGetter=n||I_,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,eN=typeof Int32Array>"u"?Array:Int32Array,rN="e\0\0",L_=-1,aN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nN=["_approximateExtent"],P_,ru,Wo,Uo,zv,au,Gv,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;Ep(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)),zv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];K(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Jd(arguments)))})},r.internalField=function(){P_=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 eN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();function dl(r,e){Rg(r)||(r=Eg(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=$(),i=[],o=oN(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 oN(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 sN(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 lN=function(){function r(e){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=e}return r}();function uN(r){var e=r.get("coordinateSystem"),t=new lN(e),a=fN[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var fN={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Zt).models[0],i=r.getReferringComponents("yAxis",Zt).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",Zt).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",Zt).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 hN(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;vN(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 vN(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 cN(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 pN(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=Eg(r)):(n=a.getSource(),i=n.sourceFormat===sr);var o=uN(e),s=cN(e,o),l=t.useEncodeDefaulter,u=K(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=pN(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=hN(e,{schema:h,store:c}),d=new we(h,e);d.setCalculationInfo(p);var g=v!=null&&dN(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 dN(r){if(r.sourceFormat===sr){var e=gN(r.data||[]);return!z(vo(e))}}function gN(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 yN=0,rd=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++yN}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,mN);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 mN(r){return tt(r)&&r.value!=null?r.value:r+""}function ad(r){return r.type==="interval"||r.type==="log"}function _N(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 SN(l,r),n}function Fv(r){var e=Math.pow(10,og(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 R_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function SN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),R_(r,0,e),R_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function bh(r,e){return r>=e[0]&&r<=e[1]}function wh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Th(r,e){return r*(e[1]-e[0])+e[0]}var Ah=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 rd({})),z(n)&&(n=new rd({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),bh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),wh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Th(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(Ah);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 bh(t,this._extent)},e.prototype.normalize=function(t){return wh(t,this._extent)},e.prototype.scale=function(t){return Th(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=wN(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:Xg(i),stackId:Yg(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 TN(r,e,t){if(r&&e){var a=r[Xg(e)];return a!=null&&t!=null?a[Yg(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=Yg(n),u=a[Xg(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=AN(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 Z=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([N,R]);E=Q[0]}O=E,B=Z[1]+m,F=Z[0]-E,H=y,Math.abs(F)>>1;r[n][1]n&&(this._approxInterval=n);var s=nu.length,l=Math.min(CN(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 bh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return wh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Th(t,this._extent)},e.type="time",e}(va),nu=[["second",Tg],["minute",Ag],["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",x0/2],["year",x0]];function DN(r,e,t,a){var n=Hr(e),i=Hr(t),o=function(p){return w0(n,p,a)===w0(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 MN(r,e){return r/=rr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function IN(r){var e=30*rr;return r/=e,r>6?6:r>3?3:r>2?2:1}function LN(r){return r/=ws,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function E_(r,e){return r/=e?Ag:Tg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function PN(r){return Hw(r)}function RN(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[$T(t)](0)}return a.getTime()}function EN(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(NN(a[0]/i)*i),Ut(ON(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),bh(t,this._extent)},e.prototype.normalize=function(t){return t=fr(t)/fr(this.base),wh(t,this._extent)},e.prototype.scale=function(t){return t=Th(t,this._extent),iu(this.base,t)},e.type="log",e}(Xr),TC=Zg.prototype;TC.getMinorTicks=Ds.getMinorTicks;TC.getLabel=Ds.getLabel;function ou(r,e){return kN(r,Er(e))}Xr.registerClass(Zg);var BN=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[zN[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=VN[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),VN={min:"_determinedMin",max:"_determinedMax"},zN={min:"_dataMin",max:"_dataMax"};function AC(r,e,t){var a=r.rawExtentInfo;return a||(a=new BN(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=GN(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function GN(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=TN(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 Zg&&(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 Ch(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ah({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 FN(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function gl(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):K(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(qg(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function qg(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function HN(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof Ah?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=gl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var yl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),YN=1e-8;function O_(r,e){return Math.abs(r-e)n&&(a=o,n=l)}if(a)return $N(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"?N_(s.exterior,n,i,t):C(s.points,function(l){N_(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 KN(r,e){return r=qN(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 B_(o[0],o.slice(1)));break;case"MultiPolygon":C(n.coordinates,function(l){l[0]&&i.push(new B_(l[0],l.slice(1)))});break;case"LineString":i.push(new V_([n.coordinates]));break;case"MultiLineString":i.push(new V_(n.coordinates))}var s=new IC(a[e||"name"],i,a.cp);return s.properties=a,s})}var Ys=At();function QN(r){return r.type==="category"?jN(r):eB(r)}function JN(r,e){return r.type==="category"?tB(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function jN(r){var e=r.getLabelModel(),t=PC(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function PC(r,e){var t=RC(r,"labels"),a=Kg(e),n=EC(t,a);if(n)return n;var i,o;return K(a)?i=NC(r,a):(o=a==="auto"?rB(r):a,i=OC(r,o)),kC(t,a,{labels:i,labelCategoryInterval:o})}function tB(r,e){var t=RC(r,"ticks"),a=Kg(e),n=EC(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),K(a))i=NC(r,a,!0);else if(a==="auto"){var s=PC(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=OC(r,o,!0);return kC(t,a,{ticks:i,tickCategoryInterval:o})}function eB(r){var e=r.scale.getTicks(),t=gl(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 RC(r,e){return Ys(r)[e]||(Ys(r)[e]=[])}function EC(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 nB(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 OC(r,e,t){var a=gl(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 NC(r,e,t){var a=r.scale,n=gl(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 z_=[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(),G_(a,n.count())),Lt(e,z_,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),G_(a,n.count()));var i=Lt(e,a,z_,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=JN(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 iB(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 QN(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 aB(this)},r}();function G_(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function iB(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 BC(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 uB(r,e,t){var a=BC(e.x,e.y,e.width,e.height,r.x,r.y,pr);return t.set(pr[0],pr[1]),a}function fB(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 hB(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 Uv(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 vB(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 cB(r,e,t,a){return GC(r,"x","width",e,t,a)}function FC(r,e,t,a){return GC(r,"y","height",e,t,a)}function HC(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=gB(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}(),Xv=At();function mB(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Xv(t).labelManager;n||(n=Xv(t).labelManager=new yB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Xv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var $v=Math.sin,Zv=Math.cos,WC=Math.PI,An=Math.PI*2,_B=180/WC,UC=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>=WC==!!f;var d=e+a*Zv(o),g=t+n*$v(o);this._start&&this._add("M",d,g);var y=Math.round(i*_B);if(v){var m=1/this._p,_=(f?1:-1)*(An-m);this._add("A",a,n,y,1,+f,e+a*Zv(o+_),t+n*$v(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*Zv(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 MB(r){return""}function ty(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 DB(o,s)+(o!=="style"?Ve(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+MB(o)}return a(r)}function IB(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 od(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function U_(r,e,t,a){return ee("svg","root",{width:r,height:e,xmlns:YC,"xmlns:xlink":XC,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var LB=0;function ZC(){return LB++}var Y_={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 PB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new UC;return n.reset(Pw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function RB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Mn]=t+"px "+a+"px")}var EB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qC(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function kB(r,e,t){var a=r.shape.paths,n={},i,o;if(C(a,function(l){var u=od(t.zrId);u.animation=!0,Dh(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=qC(n,t);return i.replace(o,s)}}function X_(r){return U(r)?Y_[r]?"cubic-bezier("+Y_[r]+")":ag(r)?r:"":""}function Dh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof mg){var s=kB(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=qC(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-"+ZC();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function OB(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=mp(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-"+ZC(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var Xs=Math.round;function KC(r){return r&&U(r.src)}function QC(r){return r&&K(r.toDataURL)}function ey(r,e,t,a){TB(function(n,i){var o=n==="fill"||n==="stroke";o&&Lw(i)?jC(e,r,n,a):o&&ng(i)?tD(t,r,n,a):o&&i==="none"?r[n]="transparent":r[n]=i},e,t,!1),HB(t,r,a)}function ry(r,e){var t=LL(e);t&&(t.each(function(a,n){a!=null&&(r[(W_+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[W_+"silent"]="true"))}function Z_(r){return Va(r[0]-1)&&Va(r[1])&&Va(r[2])&&Va(r[3]-1)}function NB(r){return Va(r[4])&&Va(r[5])}function ay(r,e,t){if(e&&!(NB(e)&&Z_(e))){var a=1e4;r.transform=Z_(e)?"translate("+Xs(e[4]*a)/a+" "+Xs(e[5]*a)/a+")":JI(e)}}function q_(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=fg(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=rt(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=ty(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 WB(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 j_(r,e){r.removeChild(e)}function t1(r,e){r.appendChild(e)}function eD(r){return r.parentNode}function rD(r){return r.nextSibling}function qv(r,e){r.textContent=e}var e1=58,UB=120,YB=ee("","");function sd(r){return r===void 0}function Lr(r){return r!==void 0}function XB(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 $s(r){var e,t=r.children,a=r.tag;if(Lr(a)){var n=r.elm=$C(a);if(ny(YB,r),z(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,aD(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&&(ny(r,e),sd(e.text)?Lr(a)&&Lr(n)?a!==n&&$B(t,a,n):Lr(n)?(Lr(r.text)&&qv(t,""),aD(t,null,n,0,n.length-1)):Lr(a)?If(t,a,0,a.length-1):Lr(r.text)&&qv(t,""):r.text!==e.text&&(Lr(a)&&If(t,a,0,a.length-1),qv(t,e.text)))}function ZB(r,e){if(us(r,e))zi(r,e);else{var t=r.elm,a=eD(t);$s(e),a!==null&&(On(a,e.elm,rD(t)),If(a,[r],0,0))}return e}var qB=0,KB=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=r1(),this.configLayer=r1(),this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+qB++,this._oldVNode=U_(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");ny(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",ZB(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return Q_(e,od(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=od(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],s=this._bgVNode=QB(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=IB(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=ee("style","stl",{},[],f);o.push(h)}}return U_(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ty(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__||Kd("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 ml=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=iV,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 iV(r,e){this.parent.drift(r,e)}function Qv(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 i1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function o1(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 _l=function(){function r(e){this.group=new at,this._SymbolCtor=e||ml}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=i1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=o1(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(Qv(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(!Qv(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=o1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=i1(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 oD(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 sV(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 lV(r,e,t,a,n,i,o,s){for(var l=sV(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=iD(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 sD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),uV=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 sD},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),fV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(sD),lD=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 fV},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 cV(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=vV(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 pV(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&dV(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 dV(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 gV(r,e){return isNaN(r)||isNaN(e)}function yV(r){for(var e=r.length/2;e>0&&gV(r[e*2-2],r[e*2-1]);e--);return e-1}function h1(r,e){return[r[e*2],r[e*2+1]]}function mV(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 hD(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=f1(t.get("smooth")),Z=t.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:Z,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(J=f1(Q.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:J,smoothMonotone:Z,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 ml(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 uV({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 lD({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");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(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=K(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(hD(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 Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=yV(l);f>=0&&(he(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?nD(o,c):no(o,h)},enableTextSetter:!0},_V(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=mV(h,S,w),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=h1(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=h1(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=lV(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)),u1(c,d)>3e3||f&&u1(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]}},bV=function(r){return Math.round(r.length/2)};function vD(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=xV[i]:K(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,bV))}}}}}function wV(r){r.registerChartView(SV),r.registerSeriesModel(nV),r.registerLayout(xl("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,vD("line"))}var Zs=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(Zs);var TV=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(Zs.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}(Zs),AV=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 AV},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),v1={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=jv(e.x,r.x),s=tc(e.x+e.width,n),l=jv(e.y,r.y),u=tc(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=tc(e.r,r.r),i=jv(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}},c1={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=cD(n);if(f.calculateTextPosition=CV(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 LV(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 p1(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 d1(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 EV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function cD(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 y1(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,DV(r,g==="outside"?c:g,cD(o),a.get(["label","rotate"]))}kT(d,p,i.getRawValue(t),function(m){return nD(e,m)});var y=a.getModel(["emphasis"]);Ht(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),fe(r,a),EV(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function kV(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 OV=function(){function r(){}return r}(),m1=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 OV},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 NV(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 pD(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 BV(r,e,t){var a=r.type==="polar"?De:bt;return new a({shape:pD(e,t,r),silent:!0,z2:0})}function VV(r){r.registerChartView(IV),r.registerSeriesModel(TV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vD("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 x1=Math.PI*2,pu=Math.PI/180;function dD(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gD(r,e){var t=dD(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 zV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=dD(a,t),s=gD(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-x1:-c*pu;var d=a.get("minAngle")*pu,g=d+p,y=0;n.each(i,function(E){!isNaN(E)&&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;hg(A,!S),v=A[0],c=A[1];var M=Math.abs(c-v),I=M,L=0,P=v;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(E,N){var O;if(isNaN(E)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?O=m===0&&x?_:E*_:O=M/y,OO?(F=P+T*O/2,H=F):(F=P+D,H=B-D),n.setItemLayout(N,{angle:O,startAngle:F,endAngle:H,clockwise:S,cx:l,cy:u,r0:h,r:b?Lt(E,w,[h,f]):f}),P=B}),It?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 ec(r){return r.position==="center"}function HV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*GV,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":Z>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 $r=Z<0?-H+Wt:-H;Ft=$r}else if(ve==="tangential"&&L!=="outside"&&L!=="outer"){var Le=Math.atan2(Z,Q);Le<0&&(Le=Wt*2+Le);var Dl=Q>0;Dl&&(Le=Wt+Le),Ft=Le-Wt}if(i=!!Ft,A.x=J,A.y=ct,A.rotation=Ft,A.setStyle({verticalAlign:"middle"}),et){A.setStyle({align:pt});var Oh=A.states.select;Oh&&(Oh.x+=A.x,Oh.y+=A.y)}else{var ma=A.getBoundingRect().clone();ma.applyTransform(A.getComputedTransform());var em=(A.style.margin||0)+2.1;ma.y-=em/2,ma.height+=em,t.push({label:A,labelLine:D,position:L,len:B,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Z,Q),linePoints:xt,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ma,unconstrainedWidth:ma.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:et})}}),!i&&r.get("avoidLabelOverlap")&&FV(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 Ao(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 wl=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}(),YV=At(),XV=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 wl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ao(this,{coordDimensions:["value"],encodeDefaulter:ot(Mg,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=YV(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=kL(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 $V(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 ZV(r){r.registerChartView(UV),r.registerSeriesModel(XV),GA("pie",r.registerAction),r.registerLayout(ot(zV,"pie")),r.registerProcessor(bl("pie")),r.registerProcessor($V("pie"))}var qV=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),mD=4,KV=function(){function r(){}return r}(),QV=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 KV},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}(),jV=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=xl("").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 JV:new _l,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),tz=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),ud=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zt).models[0]},e.type="cartesian2dAxis",e}(_t);Kt(ud,yl);var _D={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)"]}}},ez=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_D),iy=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}}},_D),rz=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iy),az=j({logBase:10},iy);const SD={category:ez,value:iy,time:rz,log:az};var nz={value:1,category:1,time:1,log:1};function io(r,e,t,a){C(nz,function(n,i){var o=ft(ft({},SD[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=w1(f),v&&Ka(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=rd.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",w1)}function w1(r){return r.type||(r.data?"category":"value")}var iz=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}(),fd=["x","y"];function T1(r){return r.type==="interval"||r.type==="time"}var oz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=fd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!T1(t)||!T1(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}(iz),sz=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 hd(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 A1(r){return r.get("coordinateSystem")==="cartesian2d"}function C1(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Zt).models[0];e[a]=i}),e}var rc=Math.log;function xD(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=rc(r.base);u=[rc(u[0])/v,rc(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=Fv(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Fv(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 lz=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fd,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;ad(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(ao(d,p),ad(d)&&(s=c))}f.length&&(s||(s=f.pop(),ao(s.scale,s.model)),C(f,function(g){xD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};C(a.x,function(o){D1(a,"y",o,i)}),C(a.y,function(o){D1(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=HN(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]),uz(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}(),I1={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=vz(t,a,e,r),i=pz(t,a,e,r);if(hz(e,i,n),cz(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=zC(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));HC(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,P1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*za/180);var p;P1(i)?v=Te.innerTextLayout(r.rotation,c??r.rotation,o):(v=fz(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 Tt({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 fz(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 hz(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)):L1(i,o)&&(a?(Ye(o),Ye(f)):(Ye(i),Ye(u))),n===!1?(Ye(s),Ye(h)):L1(l,s)&&(n?(Ye(l),Ye(v)):(Ye(s),Ye(h)))}}function Ye(r){r&&(r.ignore=!0)}function L1(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 P1(r){return r==="middle"||r==="center"}function bD(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function Sz(r){var e=oy(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=vd(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(rt(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 K(f)&&(g.name=f(g.name,g));var m=new It(g,null,this.ecModel);return Kt(m,yl.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),Ez=["axisLine","axisTickLabel","axisName"],kz=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(Ez,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;ic(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);ic(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!B1(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;ic(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function ic(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(sa(a.event),MD(r,e,t,a,n))}function MD(r,e,t,a,n){n.isAvailableBehavior=Y($u,null,t,a),r.trigger(e,n)}function $u(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}function ly(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function uy(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 Fz={axisPointer:1,tooltip:1,brush:1};function Mh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Fz.hasOwnProperty(a.mainType)&&n&&n.model!==t}function ID(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 oc,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"},V1=St(Pf),Rf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},z1=St(Rf),Hz=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=ID(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),Be(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Yz(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Ih(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=PD(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=oc[s];if(f&&X(oc,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=G1[s];if(c&&X(G1,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),Be(e,a,this._defsUsePending,!1,!1),Wz(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(){oc={g:function(e,t){var a=new at;return Xe(t,a),Be(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Xe(t,a),Be(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),Be(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),Be(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),Be(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=W1(a));var i=new Me({shape:{points:n||[]},silent:!0});return Xe(t,i),Be(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=W1(a));var i=new Ie({shape:{points:n||[]},silent:!0});return Xe(t,i),Be(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new se;return Xe(t,a),Be(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),Be(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),Be(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),Be(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),G1={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 F1(r,i),H1(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 F1(r,n),H1(r,n),n}};function F1(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function H1(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={};LD(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 W1(r){for(var e=Ih(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Ih(o);switch(n=n||Fe(),s){case"translate":Gr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":rg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ui(n,n,-parseFloat(l[0])*sc,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*sc);aa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*sc);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 Y1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function LD(r,e,t){var a=r.getAttribute("style");if(a){Y1.lastIndex=0;for(var n;(n=Y1.exec(a))!=null;){var i=n[1],o=X(Pf,i)?Pf[i]:null;o&&(e[o]=n[2]);var s=X(Rf,i)?Rf[i]:null;s&&(t[s]=n[2])}}}function qz(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&&(RD(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 K1(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 Q1(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&&sR(e,n,t),o}function j1(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 d5(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 _5(r,e){C(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var S5=function(){function r(){this.dimensions=kD}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 aS(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 aS(s,s,V({nameMap:Qd(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,_5(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 C5(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){I5(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=L5(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function D5(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:E5}function fs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function M5(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function I5(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 L5(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=lc(s),i=uc(i),s&&i;){n=lc(n),o=uc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(R5(P5(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&&!lc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!uc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function lc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function uc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function P5(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function R5(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 E5(r,e){return r.parentNode===e.parentNode?1:2}var k5=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),O5=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 k5},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),B5(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 B5(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:dd(f,h,v,n,n)})),Dt(d,{shape:dd(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 FD(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function py(r,e){var t=FD(r);return vt(t,e)>=0}function Lh(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 X5=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=cy.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=Lh(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 $5(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 Z5(r,e){r.eachSeriesByType("tree",function(t){q5(t,e)})}function q5(r,e){var t=M5(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){A5(s),$5(l,C5,o),s.hierNode.modifier=-l.hierNode.prelim,Zo(l,D5);var u=l,f=l,h=l;Zo(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),Zo(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),Zo(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),Zo(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function K5(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 Q5(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=hy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function J5(r){r.registerChartView(N5),r.registerSeriesModel(X5),r.registerLayout(Z5),r.registerVisual(K5),Q5(r)}var hS=["treemapZoomToNode","treemapRender","treemapMove"];function j5(r){for(var e=0;e1;)i=i.parentNode;var o=Up(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var tG=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};WD(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new It({itemStyle:o},this,a);i=t.levels=eG(i,a);var l=G(i||[],function(h){return new It(h,s,a)},this),u=cy.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=Lh(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(){HD(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,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 WD(r){var e=0;C(r.children,function(a){WD(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 eG(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 rG=8,vS=8,fc=5,aG=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+rG*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=cE(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:nG(l,0,m,f,d===c.length-1,d===0)},style:j(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tt({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),iG(S,e,y),l+=m+vS}},r.prototype.remove=function(){this.group.removeAll()},r}();function nG(r,e,t,a,n,i){var o=[[n?r:r-fc,e],[r+t,e],[r+t,e+a],[n?r:r-fc,e+a]];return!i&&o.splice(2,0,[r+t+fc,e+a/2]),!n&&o.push([r,e+a/2]),o}function iG(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&&Lh(t,e)}}var oG=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;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=Fe();Gr(u,u,[-a,-n]),rg(u,u,[t.scale,t.scale]),Gr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var 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 aG(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(py(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 vG(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",gd);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,uG);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),Np(I,N,R));else{var O=J("content",cS,u,fG);O&&F(M,O),I.disableMorphing=!0,I&&Bs(I)&&Gn(I,!1),Gn(M,!E),h.setItemGraphicEl(o.dataIndex,M),Np(M,N,R)}return M;function B(pt,et,dt){var st=nt(et);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:c,height:p,r:D}),g)H(et);else{et.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=yS(x);zt.fill=lt;var wt=Ln(w);wt.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;Z(et,lt,q.opacity,{x:d,y:0,width:ve,height:S})}else et.removeTextContent();et.setStyle(zt),et.ensureState("emphasis").style=wt,et.ensureState("blur").style=Wt,et.ensureState("select").style=Ft,ni(et)}pt.add(et)}function F(pt,et){var dt=nt(et);dt.dataIndex=o.dataIndex,dt.seriesIndex=r.seriesIndex;var st=Math.max(c-2*d,0),q=Math.max(p-2*d,0);if(et.culling=!0,et.setShape({x:d,y:d,width:st,height:q,r:D}),g)H(et);else{et.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,wt=yS(x);wt.fill=zt,wt.decal=lt.decal;var Wt=Ln(w),Ft=Ln(T),ve=Ln(A);Z(et,zt,lt.opacity,null),et.setStyle(wt),et.ensureState("emphasis").style=Wt,et.ensureState("blur").style=Ft,et.ensureState("select").style=ve,ni(et)}pt.add(et)}function H(pt){!pt.invisible&&i.push(pt)}function Z(pt,et,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:et,defaultOpacity:dt,labelFetcher:r,labelDataIndex:o.dataIndex});var wt=pt.getTextContent();if(wt){var Wt=wt.style,Ft=jd(Wt.padding||0);st&&(pt.setTextConfig({layoutRect:st}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var $r=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!==$r||Wt.height!==Le)&&wt.setStyle({width:$r,height:Le})},Wt.truncateMinChar=2,Wt.lineOverflow="truncate",Q(Wt,st,f);var ve=wt.getState("emphasis");Q(ve?ve.style:null,st,f)}}function Q(pt,et,dt){var st=pt?pt.text:null;if(!et&&dt.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+st:st}}function J(pt,et,dt,st){var q=m!=null&&t[pt][m],lt=n[pt];return q?(t[pt][m]=null,ct(lt,q)):g||(q=new et,q instanceof ir&&(q.z2=cG(dt,st)),xt(lt,q)),e[pt][y]=q}function ct(pt,et){var dt=pt[y]={};et instanceof gd?(dt.oldX=et.x,dt.oldY=et.y):dt.oldShape=V({},et.shape)}function xt(pt,et){var dt=pt[y]={},st=o.parentNode,q=et instanceof at;if(st&&(!a||a.direction==="drillDown")){var lt=0,zt=0,wt=n.background[st.getRawIndex()];!a&&wt&&wt.oldShape&&(lt=wt.oldShape.width,zt=wt.oldShape.height),q?(dt.oldX=0,dt.oldY=zt):dt.oldShape={x:lt,y:zt,width:0,height:0}}dt.fadein=!q}}function cG(r,e){return r*lG+e}var Qs=C,pG=tt,kf=-1,re=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=rt(e);this.type=a,this.mappingMethod=t,this._normalizeData=yG[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(hc(n),dG(n)):t==="category"?n.categories?gG(n):hc(n,!0):(Ae(t!=="linear"||n.dataExtent),hc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(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(pG(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 hc(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]),UD(r,a)}function yu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:yd([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 yd(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:hs,piecewise:function(e,t){var a=md.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Pn}}function md(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 UD(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 yG={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=wG(n,l,d,g,p,a);XD(d,y,t,a)}})}}}function SG(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=vc(r,"color");if(e){var t=vc(r,"colorAlpha"),a=vc(r,"colorSaturation");return a&&(e=gs(e,null,null,a)),t&&(e=nf(e,t)),e}}function xG(r,e){return e!=null?gs(e,null,null,r):null}function vc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function bG(r,e,t,a,n,i){if(!(!i||!i.length)){var o=cc(e,"color")||n.color!=null&&n.color!=="none"&&(cc(e,"colorAlpha")||cc(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 YD(v).drColorMappingBy=f,v}}}function cc(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function wG(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l=s==="color"&&YD(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,dy=C,$D=["itemStyle","borderWidth"],TG=["itemStyle","gapWidth"],AG=["upperLabel","show"],CG=["upperLabel","height"];const DG={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=FD(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?EG(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),ZD(d,_,!1,0),S=d.getLayout(),dy(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(kG(s,p,c),!0),r.setLayoutInfo(s),qD(b,new ht(-s.x,-s.y,n,i),g,d,0)}};function ZD(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(TG)/2,f=KD(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=MG(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 RG(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;hEm&&(u=Em),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),Sy=function(){function r(e){this.group=new at,this._LineCtor=e||_y}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&&!JG(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 mc(r){return r&&!MS(r[0])&&!MS(r[1])}var _c=[],Sc=[],xc=[],Li=ie,bc=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){_c[0]=Li(a[0],n[0],i[0],f),_c[1]=Li(a[1],n[1],i[1],f);var h=IS(bc(_c,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function wc(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);sp(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=cs(s.node2);sp(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 jG=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 _l,i=new Sy,o=this.group;this._controller=new Tl(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)}wc(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),my(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),yy(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(_){tM(_,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)&&!Mh(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){ly(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){uy(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(),wc(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){wc(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 t3=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 rM(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,aM("hostGraph","data"));Kt(rM,aM("hostGraph","edgeData"));function nM(r,e,t,a,n){for(var i=new t3(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),zD({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var e3=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 wl(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){FG(this);var s=nM(i,n,this,!0,l);return C(s.edges,function(u){HG(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),r3={type:"graphRoam",event:"graphRoam",update:"none"};function a3(r){r.registerChartView(jG),r.registerSeriesModel(e3),r.registerProcessor(NG),r.registerVisual(BG),r.registerVisual(VG),r.registerLayout(WG),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,YG),r.registerLayout($G),r.registerCoordinateSystem("graphView",{dimensions:Al.dimensions,create:qG}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(r3,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=hy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var n3=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),i3=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 n3},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 o3(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):K(e)&&(t=e(r))),t}var s3=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=o3(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];hg(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)):Q==="tangential"?J=-T-Math.PI/2:Ct(Q)&&(J=Q*Math.PI/180),J===0?h.add(new Tt({style:Nt(_,{text:B,x:H,y:Z,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Tt({style:Nt(_,{text:B,x:H,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:Z,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 i3({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),Ep(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),Ep(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 Tt({silent:!0}),p[y]=new Tt({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,Z,Q,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),l3=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 Ao(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 u3(r){r.registerChartView(s3),r.registerSeriesModel(l3)}var f3=["itemStyle","opacity"],h3=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ie,s=new Tt;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(f3);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}),Qg(n,Jg(l),{stroke:v})},e}(Me),v3=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 h3(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),c3=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 wl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Ao(this,{coordDimensions:["value"],encodeDefaulter:ot(Mg,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 p3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d3(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();oP3)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||!Ac(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 Ac(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var k3=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),O3=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=Cc(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=Cc(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Cc(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 Dc=C,oM=Math.min,sM=Math.max,kS=Math.floor,N3=Math.ceil,OS=Ut,B3=Math.PI,V3=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;Dc(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new O3(o,Ch(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();Dc(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,N3(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])}),Dc(a,function(o,s){var l=(n.axisExpandable?G3:z3)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:B3/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=[sM(0,p-c/2)],n[1]=oM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function xu(r,e){return oM(sM(r,e[0]),e[1])}function z3(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function G3(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;iY3}function cM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function pM(r,e,t,a){var n=new at;return n.add(new bt({name:"main",style:Ay(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 dM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=oo(n,X3),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;Kr(r,e,"main",o,s,p,d),a.transformable&&(Kr(r,e,"w",l,u,i,y),Kr(r,e,"e",v,u,i,y),Kr(r,e,"n",l,u,g,i),Kr(r,e,"s",l,c,g,i),Kr(r,e,"nw",l,u,i,i),Kr(r,e,"ne",v,u,i,i),Kr(r,e,"sw",l,c,i,i),Kr(r,e,"se",v,c,i,i))}function Td(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Ay(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?Ad(r,i[0]):J3(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?Z3[s]+"-resize":null})})}function Kr(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(tF(Cy(r,e,[[a,n],[a+i,n+o]])))}function Ay(r){return j({strokeNoScale:!0},r.brushStyle)}function gM(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 Q3(r){return Qn(r.group)}function Ad(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],Q3(r));return a[n]}function J3(r,e){var t=[Ad(r,e[0]),Ad(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=yM(e,n,i);C(a,function(u){var f=$3[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(gM(s[0][0],s[1][0],s[0][1],s[1][1])),by(e,t),si(e,{isEnd:!1})}function j3(r,e,t,a){var n=e.__brushOption.range,i=yM(r,t,a);C(n,function(o){o[0]+=i[0],o[1]+=i[1]}),by(r,e),si(r,{isEnd:!1})}function yM(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 Cy(r,e,t){var a=vM(r,e);return a&&a!==oi?a.clipPath(t,r._transform):rt(t)}function tF(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 eF(r,e,t){if(!(!r._brushType||aF(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Ty(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Rh={lineX:FS(0),lineY:FS(1),rect:{createCover:function(r,e){function t(a){return a}return pM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=cM(r);return gM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){dM(r,e,t,a)},updateCommon:Td,contain:Dd},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ie({name:"main",style:Ay(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(j3,r,e),ondragend:ot(si,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Cy(r,e,t)})},updateCommon:Td,contain:Dd}};function FS(r){return{createCover:function(e,t){return pM({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=cM(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=vM(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(),dM(e,t,l,n)},updateCommon:Td,contain:Dd}}function _M(r){return r=Dy(r),function(e){return PT(e,r)}}function SM(r,e){return r=Dy(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 xM(r,e,t){var a=Dy(r);return function(n,i){return a.contain(i[0],i[1])&&!Mh(n,e,t)}}function Dy(r){return ht.create(r)}var nF=["axisLine","axisTickLabel","axisName"],iF=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 xy(a.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!oF(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=lF(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(nF,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:_M(h),isTargetByCursor:xM(h,s,i),getLinearBrushOtherExtent:SM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(sF(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 oF(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function sF(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 lF(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var uF={type:"axisAreaSelect",event:"axisAreaSelected"};function fF(r){r.registerAction(uF,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 hF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bM(r){r.registerComponentView(R3),r.registerComponentModel(k3),r.registerCoordinateSystem("parallel",H3),r.registerPreprocessor(M3),r.registerComponentModel(bd),r.registerComponentView(iF),io(r,"parallel",bd,hF),fF(r)}function vF(r){gt(bM),r.registerChartView(S3),r.registerSeriesModel(w3),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,D3)}var cF=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}(),pF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new cF},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),dF=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 pF,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"),Z=ae(y,"edgeLabel");he(d,Z,{labelFetcher:{getFormattedLabel:function(ct,xt,pt,et,dt,st){return t.getFormattedLabel(ct,xt,"edge",et,Br(dt,Z.normal&&Z.normal.get("formatter"),H),st)}},labelDataIndex:p.dataIndex,defaultText:H}),d.setTextConfig({position:"inside"});var Q=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=Q.get("focus");Ht(d,J==="adjacency"?p.getAdjacentDataIndices():J==="trajectory"?p.getTrajectoryDataIndices():J,Q.get("blurScope"),Q.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=new bt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});he(S,ae(g),{labelFetcher:{getFormattedLabel:function(x,w){return t.getFormattedLabel(x,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),fe(S,g),s.add(S),h.setItemGraphicEl(p.dataIndex,S),nt(S).dataType="node";var b=_.get("focus");Ht(S,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,_.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(gF(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 gF(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 yF=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=nM(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 mF(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=_F(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;xF(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");SF(u,f,a,n,o,s,v,c,p)})}function _F(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function SF(r,e,t,a,n,i,o,s,l){bF(r,e,t,n,i,s,l),CF(r,e,i,n,a,o,s),OF(r,s)}function xF(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 bF(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"&&wF(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;AF(r,T,i)}function wM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function wF(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,IF(s,l,o),Mc(s,n,t,a,o),kF(s,l,o),Mc(s,n,t,a,o)}function DF(r,e){var t=[],a=e==="vertical"?"y":"x",n=Ip(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 MF(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 IF(r,e,t){C(r.slice().reverse(),function(a){C(a,function(n){if(n.outEdges.length){var i=Ya(n.outEdges,LF,t)/Ya(n.outEdges,Nf);if(isNaN(i)){var o=n.outEdges.length;i=o?Ya(n.outEdges,PF,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 LF(r,e){return Ja(r.node2,e)*r.getValue()}function PF(r,e){return Ja(r.node2,e)}function RF(r,e){return Ja(r.node1,e)*r.getValue()}function EF(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 BF(r){r.registerChartView(dF),r.registerSeriesModel(yF),r.registerLayout(mF),r.registerVisual(NF),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 TM=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 Ao(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}(),AM=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(AM,TM,!0);var VF=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),CM(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),zF=function(){function r(){}return r}(),GF=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 zF},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 $F={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ye){var a="";Mt(a)}var n=XF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function ZF(r){r.registerSeriesModel(AM),r.registerChartView(VF),r.registerLayout(HF),r.registerTransform($F)}var qF=["color","borderColor"],KF=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=Ic(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Lc(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=Ic(c),Lc(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)?Sl(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=Ic(s);Lc(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),QF=function(){function r(){}return r}(),JF=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 QF},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 Ic(r,e,t){var a=r.ends;return new JF({shape:{points:t?jF(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(qF);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var DM=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(DM,TM,!0);function e4(r){!r||!z(r.series)||C(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var r4=["itemStyle","borderColor"],a4=["itemStyle","borderColor0"],n4=["itemStyle","borderColorDoji"],i4=["itemStyle","color"],o4=["itemStyle","color0"],s4={seriesType:"candlestick",plan:bo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?i4:o4)}function a(i,o){return o.get(i===0?n4:i>0?r4:a4)}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)}}}}}},l4={seriesType:"candlestick",plan:bo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=u4(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,Z){var Q=[];return Q[n]=Z,Q[i]=H,isNaN(Z)||isNaN(H)?[NaN,NaN]:e.dataToPoint(Q)}function O(H,Z,Q){var J=Z.slice(),ct=Z.slice();J[n]=Hu(J[n]+a/2,1,!1),ct[n]=Hu(ct[n]-a/2,1,!0),Q?H.push(J,ct):H.push(ct,J)}function B(H,Z,Q){var J=N(H,Q),ct=N(Z,Q);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 u4(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 f4(r){r.registerChartView(KF),r.registerSeriesModel(DM),r.registerPreprocessor(e4),r.registerVisual(s4),r.registerLayout(l4)}function $S(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 h4=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new ml(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;K(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=pp;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}(MM),g4=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),y4=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 g4},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}(),LM={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)&&Sl(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=LM.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 m4:new Sy(o?i?d4:IM:i?MM:_y),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),S4=typeof Uint32Array>"u"?Array:Uint32Array,x4=typeof Float64Array>"u"?Array:Float64Array;function ZS(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),Qd([n,t[0],t[1]])}))}var b4=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||[],ZS(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(ZS(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 w4={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 T4(r){r.registerChartView(_4),r.registerSeriesModel(b4),r.registerLayout(LM),r.registerVisual(w4)}var A4=256,C4=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$a.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=$a.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 D4(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 I4=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 C4;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"?M4(S,n.option.range):D4(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),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.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 P4(r){r.registerChartView(I4),r.registerSeriesModel(L4)}var R4=["itemStyle","borderWidth"],KS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ec=new ga,E4=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),_=NM(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?G4(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)?Sl(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};k4(t,i,n,a,v),O4(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),N4(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=hi(t.get("symbolOffset"),c);return B4(t,c,n,i,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function k4(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=[kc(s,o[0])-l,kc(s,o[1])-l];h[1]0?1:-1}function kc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function O4(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 N4(r,e,t,a,n){var i=r.get(R4)||0;i&&(Ec.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Ec.updateTransform(),i/=Ec.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function B4(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 PM(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 RM(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(My(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 EM(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=PM(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 kM(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 OM(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=V4,t.isAnimationEnabled=z4,t}function V4(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function z4(){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?RM(n,e,t):EM(n,e,t),kM(n,t,a),OM(n,e,t,a),n.__pictorialShapeStr=NM(r,t),n.__pictorialSymbolMeta=t,n}function G4(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?RM(r,e,t,!0):EM(r,e,t,!0),kM(r,t,!0),OM(r,e,t,!0)}function tx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];My(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 NM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function My(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");My(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 F4=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(Zs.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}(Zs);function H4(r){r.registerChartView(E4),r.registerSeriesModel(F4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("pictorialBar"))}var W4=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(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(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 Z4(r){r.registerChartView(W4),r.registerSeriesModel(Y4),r.registerLayout(X4),r.registerProcessor(bl("themeRiver"))}var q4=2,K4=4,nx=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=q4,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new Tt({z2:K4,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:Md,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),tH=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};BM(n);var i=this._levelModels=G(t.levels||[],function(l){return new It(l,this,a)},this),o=cy.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=Lh(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(){HD(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 BM(r){var e=0;C(r.children,function(a){BM(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 eH(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&&VM(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=yp(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 nH(r){r.registerChartView(j4),r.registerSeriesModel(tH),r.registerLayout(ot(eH,"sunburst")),r.registerProcessor(ot(bl,"sunburst")),r.registerVisual(aH),J4(r)}var sx={color:"fill",borderColor:"stroke"},iH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=At(),oH=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 sH(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 lH(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:Y(sH,r)}}}function uH(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 fH(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:Y(uH,r)}}}function hH(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 vH(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:Y(hH,r)}}}function cH(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 pH(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:Y(cH,r)}}}function dH(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 zM(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||X(r,"text")))}function GM(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},X(a,"text")&&(o.text=a.text),X(a,"rich")&&(o.rich=a.rich),X(a,"textFill")&&(o.fill=a.textFill),X(a,"textStroke")&&(o.stroke=a.textStroke),X(a,"fontFamily")&&(o.fontFamily=a.fontFamily),X(a,"fontSize")&&(o.fontSize=a.fontSize),X(a,"fontStyle")&&(o.fontStyle=a.fontStyle),X(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=X(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),X(a,"textPosition")&&(n.position=a.textPosition),X(a,"textOffset")&&(n.offset=a.textOffset),X(a,"textRotation")&&(n.rotation=a.textRotation),X(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,X(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),X(e,"textAlign")&&(r.align=e.textAlign),X(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),X(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),X(e,"textWidth")&&(r.width=e.textWidth),X(e,"textHeight")&&(r.height=e.textHeight),X(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),X(e,"textPadding")&&(r.padding=e.textPadding),X(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),X(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),X(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),X(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),X(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),X(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),X(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&&(X(e,"fill")&&(r.textFill=e.fill),X(e,"stroke")&&(r.textStroke=e.fill),X(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),X(e,"font")&&(r.font=e.font),X(e,"fontStyle")&&(r.fontStyle=e.fontStyle),X(e,"fontWeight")&&(r.fontWeight=e.fontWeight),X(e,"fontSize")&&(r.fontSize=e.fontSize),X(e,"fontFamily")&&(r.fontFamily=e.fontFamily),X(e,"align")&&(r.textAlign=e.align),X(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),X(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),X(e,"width")&&(r.textWidth=e.width),X(e,"height")&&(r.textHeight=e.height),X(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),X(e,"padding")&&(r.textPadding=e.padding),X(e,"borderColor")&&(r.textBorderColor=e.borderColor),X(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),X(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),X(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),X(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),X(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),X(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),X(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),X(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),X(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),X(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var FM={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},hx=St(FM);zr(Fr,function(r,e){return r[e]=1,r},{});Fr.join(", ");var Bf=["","style","shape","extra"],so=At();function Iy(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?Y(SH,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function Zu(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(bH(r,e,h),cx("shape",e,h),cx("extra",e,h),!i&&s&&(xH(r,e,f),vx("shape",r,e,f),vx("extra",r,e,f),wH(r,e,u,f)),h.style=u,gH(r,h,o),mH(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=Iy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else yH(r,e,n||0,t,f);HM(r,e),u?r.dirty():r.markRedraw()}function HM(r,e){for(var t=so(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function mH(r,e){X(e,"silent")&&(r.silent=e.silent),X(e,"ignore")&&(r.ignore=e.ignore),r instanceof ir&&X(e,"invisible")&&(r.invisible=e.invisible),r instanceof yt&&X(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Mr={},_H={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 SH(){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(_H)}}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),Z=Nt(H,null,F,!1,!0);Z.text=H.getShallow("show")?it(r.getFormattedLabel(R,Ga),no(e,R)):null;var Q=df(H,F,!1);return A(P,B),B=ux(B,Z,Q),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)X(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),X(sx,P)){var E=e.getItemVisual(R,"style");return E?E[sx[P]]:null}if(X(iH,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return bN(j({axis:R},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return xg(P,t)}}function EH(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 Vc(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=ky(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ht(s,a.focus,a.blurScope,a.emphasisDisabled),s}function ky(r,e,t,a,n,i){var o=-1,s=e;e&&XM(e,a,n)&&(o=vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ry(a),s&&IH(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$e.normal.cfg=$e.normal.conOpt=$e.emphasis.cfg=$e.emphasis.conOpt=$e.blur.cfg=$e.blur.conOpt=$e.select.cfg=$e.select.conOpt=null,$e.isLegacy=!1,OH(u,t,a,n,l,$e),kH(u,t,a,n,l),Ey(r,u,t,a,$e,n,l),X(a,"info")&&(ia(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function XM(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"&&GH(i)&&$M(i)!==a.customPathData||n==="image"&&X(o,"image")&&o.image!==a.customImagePath}function kH(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&&XM(o,i,a)&&(o=null),o||(o=Ry(i),r.setClipPath(o)),Ey(null,o,e,i,null,a,n)}}function OH(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=Ry(o),r.setTextContent(f)),Ey(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var p=e.childAt(c);BH(e,p,n)}}}function BH(r,e,t){e&&Eh(e,ia(r).option,t)}function VH(r){new ha(r.oldChildren,r.newChildren,gx,gx,r).add(yx).update(yx).remove(zH).execute()}function gx(r,e){var t=r&&r.name;return t??DH+e}function yx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;ky(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function zH(r){var e=this.context,t=e.oldChildren[r];t&&Eh(t,ia(t).option,e.seriesModel)}function $M(r){return r&&(r.pathData||r.d)}function GH(r){return r&&(X(r,"pathData")||X(r,"d"))}function FH(r){r.registerChartView(LH),r.registerSeriesModel(oH)}var Nn=At(),mx=rt,zc=Y,Ny=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=oy(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 Tt(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:zc(this._onHandleDragMove,this,0,0),drift:zc(this._onHandleDragMove,this),ondragend:zc(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,Gc(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(Gc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Gc(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){ZM(Nn(t).lastProp,a)||(Nn(t).lastProp=a,e?Dt(t,a,r):(t.stopAnimation(),t.attr(a)))}function ZM(r,e){if(tt(r)&&tt(e)){var t=!0;return C(e,function(a,n){t=t&&ZM(r[n],a)}),!!t}else return r===e}function Sx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Gc(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 By(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 qM(r,e,t,a,n){var i=t.get("value"),o=KM(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),HH(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 HH(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 KM(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:qg(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):K(o)&&(i=o(s))}return i}function Vy(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 QM(r,e,t,a,n,i){var o=Te.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),qM(e,a,n,i,{position:Vy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zy(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 WH=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=By(i),c=UH[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=hd(l.model,n);QM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=hd(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Vy(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}(Ny);function Tx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var UH={line:function(r,e,t){var a=zy([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 YH=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=At(),XH=C;function jM(r,e,t){if(!mt.node){var a=e.getZr();ea(a).records||(ea(a).records={}),$H(a,e);var n=ea(a).records[r]||(ea(a).records[r]={});n.handler=t}}function $H(r,e){if(ea(r).initialized)return;ea(r).initialized=!0,t("click",ot(Cx,"click")),t("mousemove",ot(Cx,"mousemove")),t("globalout",qH);function t(a,n){r.on(a,function(i){var o=KH(e);XH(ea(r).records,function(s){s&&n(s,i,o.dispatchAction)}),ZH(o.pendings,e)})}}function ZH(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 qH(r,e,t){r.handler("leave",null,t)}function Cx(r,e,t,a){e.handler(r,t,a)}function KH(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 Pd(r,e){if(!mt.node){var t=e.getZr(),a=(ea(t).records||{})[r];a&&(ea(t).records[r]=null)}}var QH=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";jM("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){Pd("axisPointer",a)},e.prototype.dispose=function(t,a){Pd("axisPointer",a)},e.type="axisPointer",e}(Gt);function t2(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=At();function JH(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){qu(n)&&(n=t2({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(tW,c),showTooltip:ot(eW,p)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);C(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=iW(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)}),rW(c,f,v),aW(p,n,r,o),nW(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=jH(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 jH(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 tW(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function eW(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 rW(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 aW(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 nW(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 iW(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 Cl(r){pi.registerAxisPointerClass("CartesianAxisPointer",WH),r.registerComponentModel(YH),r.registerComponentView(QH),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=dz(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JH)}function oW(r){gt(DD),gt(Cl)}var sW=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=By(i),p=uW[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=lW(a,n,i,l,d);qM(t,n,i,o,g)},e}(Ny);function lW(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 uW={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:zy(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)}}},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.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),Gy=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Zt).models[0]},e.type="polarAxis",e}(_t);Kt(Gy,yl);var hW=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}(Gy),vW=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}(Gy),Fy=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);Fy.prototype.dataToRadius=br.prototype.dataToCoord;Fy.prototype.radiusToData=br.prototype.coordToData;var cW=At(),Hy=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=cW(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);Hy.prototype.dataToAngle=br.prototype.dataToCoord;Hy.prototype.angleToData=br.prototype.coordToData;var e2=["radius","angle"],pW=function(){function r(e){this.dimensions=e2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fy,this._angleAxis=new Hy,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}const dW=pW;function gW(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 yW(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 mW(r){return r.mainType==="angleAxis"}function Px(r,e){var t;if(r.type=e.get("type"),r.scale=Ch(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),mW(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 _W={dimensions:e2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new dW(n+"");i.update=yW;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Px(o,l),Px(s,u),gW(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",Zt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},SW=["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 xW=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=rt(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(SW,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&bW[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(pi),bW={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 Tt({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",L=w;b&&(a[f][M]||(a[f][M]={p:w,n:w}),L=a[f][M][I]);var P=void 0,R=void 0,E=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(D)-w,B=l.dataToCoord(M);Math.abs(O)=N})}}})}function IW(r){var e={};C(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=a2(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=r2(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 GW(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new zW(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",Zt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var FW={create:GW,dimensions:n2},kx=["x","y"],HW=["width","height"],WW=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=Fc(l,1-Gf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=By(i),c=UW[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Rd(n);QM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Rd(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Vy(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=Fc(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=Fc(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}(Ny),UW={line:function(r,e,t){var a=zy([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 Fc(r,e){var t=r.getRect();return[t[kx[e]],t[kx[e]]+t[HW[e]]]}var YW=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 XW(r){gt(Cl),pi.registerAxisPointerClass("SingleAxisPointer",WW),r.registerComponentView(YW),r.registerComponentView(NW),r.registerComponentModel(Ku),io(r,"single",Ku,Ku.defaultOption),r.registerCoordinateSystem("single",FW)}var $W=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 pE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ka(r,e,{type:"box",ignoreSize:n})}var ZW=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?hE(t,a):K(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 Tt({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=Fp(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/Hc)-Math.floor(t[0].time/Hc)+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 KW(r){r.registerComponentModel($W),r.registerComponentView(ZW),r.registerCoordinateSystem("calendar",qW)}function QW(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 JW(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 i2=["transition","enterFrom","leaveTo"],jW=i2.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?i2:jW,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 Ed(r){var e=X(Vx,r)?Vx[r]:Sg(r),t=new e({});return Je(t).type=r,t}function zx(r,e,t,a){var n=Ed(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)}),Eh(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];X(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]=K(i)?i:null}}),X(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function a6(r){return r=V({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QT),function(e){delete r[e]}),r}function n6(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 i6(r){r.registerComponentModel(e6),r.registerComponentView(r6),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"],o6=["cartesian2d","polar","singleAxis"];function s6(r){var e=r.get("coordinateSystem");return vt(o6,e)>=0}function Fa(r){return r+"Axis"}function l6(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 o2(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 Wc=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),KL);if(i.specified){a=!0;var o=new Wc;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 Wc;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Zt).models[0];c&&C(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Zt).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 Wc;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 v6(r,e,t){var a=[1/0,-1/0];Gi(t,function(o){UN(a,o.getData(),e)});var n=r.getAxisModel(),i=AC(n.axis.scale,n,a).calculate();return[i.min,i.max]}var c6={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 h6(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 p6(r){r.registerAction("dataZoom",function(e,t){var a=l6(t,e);C(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Ux=!1;function Uy(r){Ux||(Ux=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,c6),p6(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function d6(r){r.registerComponentModel(u6),r.registerComponentView(f6),Uy(r)}var tr=function(){function r(){}return r}(),s2={};function Fi(r,e){s2[r]=e}function l2(r){return s2[r]}var g6=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=l2(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 y6(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 u2(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 m6=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(_6(g))S={onclick:_.option.onclick,featureName:g};else{var b=l2(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 Tt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:xg({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",Y(d.onclick,d,a,n,A)),w[A]=D})}y6(o,t,n),o.add(u2(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(_&&!K(_)&&d){var S=_.style||(_.style={}),b=il(d,Tt.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 _6(r){return r.indexOf("my")===0}var S6=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(K(MouseEvent)&&(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__",x6=[["line","bar"],["stack"]],b6=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,Zt).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(x6,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 kh=new Array(60).join("-"),lo=" ";function w6(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 T6(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 kd=new RegExp("["+lo+"]+","g");function M6(r){for(var e=r.split(/\n+/g),t=Ff(e.shift()).split(kd),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 k6(r){var e=Yy(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return f2(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 O6(r){h2(r).snapshots=null}function N6(r){return Yy(r).length}function Yy(r){var e=h2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var B6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){O6(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 V6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Xy=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=$x(t,e);C(z6,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=Uc[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=Uc[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=Uc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Qx[a.brushType](i.values,o.offset,G6(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:_M(n),isTargetByCursor:xM(n,e,a.coordSysModel),getLinearBrushOtherExtent:SM(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=$x(t,e),i=0;ir[1]&&r.reverse(),r}function $x(r,e){return _s(r,e,{includeMainTypes:V6})}var z6={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})})}},Zx=[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}},Uc={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=[Od([n[0],i[0]]),Od([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=Od(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 G6(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 Nd=C,F6=YL("toolbox-dataZoom_"),H6=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 xy(n.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),Y6(t,a,this,i,n),U6(t,a)},e.prototype.onclick=function(t,a,n){W6[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 Xy($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)}}),E6(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=[];Nd(t,function(n,i){a.push(rt(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),W6={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(k6(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 U6(r,e){r.setIconStatus("back",N6(e)>1?"emphasis":"normal")}function Y6(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 Xy($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)}SE("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);Nd(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Nd(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:F6+u+h};v[f]=h,n.push(v)}return n});function X6(r){r.registerComponentModel(g6),r.registerComponentView(m6),Fi("saveAsImage",S6),Fi("magicType",b6),Fi("dataView",P6),Fi("dataZoom",H6),Fi("restore",B6),gt(d6)}var $6=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 v2(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function c2(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 tU(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?","+Zy+a:",left"+a+",top"+a),K6+":"+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;"+Zy+":"+o+";":[["top",0],["left",0],[p2,o]]}function eU(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 rU(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(tU(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(eU(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&&bI(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 aU=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:K(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=q6(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=Q6+rU(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"&&!v2(a)&&(s=j6(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=fU(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=iU;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=t2(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=Y(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 Iv;C(t,function(m){C(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=KM(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=qg(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",ii(M.color),l);var I=H0(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=Z0(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 Iv;y.marker=m.makeTooltipMarker("item",ii(y.color),c);var _=H0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?Z0(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=nt(a),o=i.tooltipConfig,s=o.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=Qo(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Iv;this._showOrMove(v,function(){var g=rt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),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(K(v)){var _=Y(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),K(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=uU(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=sU(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),v2(t)){var y=lU(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(),Pd("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||Y(e.dispatchAction,e)}function sU(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 lU(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 uU(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 fU(r,e,t){var a=lg(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 hU(r){gt(Cl),r.registerComponentModel($6),r.registerComponentView(oU),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var vU=["rect","polygon","keep","clear"];function cU(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),pU(s),e&&!s.length&&s.push.apply(s,vU)}}function pU(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 Bd(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=rt(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 g2(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]=rt(e[n]):delete r[n]})}function dU(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 Vg(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 wU=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 xy(a.getZr())).on("brush",Y(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){y2(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:rt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:rt(n),$from:a})},e.type="brush",e}(Gt),TU="#ddd",AU=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&&g2(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:TU},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 CU=["rect","polygon","lineX","lineY","keep","clear"],DU=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:CU.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 MU(r){r.registerComponentView(wU),r.registerComponentModel(AU),r.registerPreprocessor(cU),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,mU),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",DU)}var IU=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),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.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 Tt({style:Nt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Tt({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 PU(r){r.registerComponentModel(IU),r.registerComponentView(LU)}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=rt(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),m2=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(m2,Og.prototype);var RU=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),EU=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),Xc=Math.PI,db=At(),kU=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=NU(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:Xc/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*Xc/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,-Xc/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=OU(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 EU("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:Y(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 Tt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(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",Y(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",Y(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],_=BU(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=Y(u._handlePointerDrag,u),h.ondragend=Y(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(!WU(e)&&!z(e.coord)&&z(n)){var i=_2(e,t,a,r);if(e=rt(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]=Ky(t,t.mapDimension(n[f]),u[f]));return e}}function _2(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(UU(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 UU(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function al(r,e){return r&&r.containData&&e.coord&&!zd(e)?r.containData(e.coord):!0}function YU(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!zd(e)&&!zd(t)?r.containZone(e.coord,t.coord):!0}function S2(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 Ky(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 Zc=At(),Qy=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){Zc(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){!Zc(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Zc(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):dg(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 XU=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 _l),h=$U(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(K(p)||K(d)||K(g)||K(y)){var _=a.getRawValue(v),S=a.getDataParams(v);K(p)&&(p=p(_,S)),K(d)&&(d=d(_,S)),K(g)&&(g=g(_,S)),K(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}(Qy);function $U(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=S2(!!r,a);return n.initData(i,null,o),n}function ZU(r){r.registerComponentModel(HU),r.registerComponentView(XU),r.registerPreprocessor(function(e){qy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}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="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=At(),KU=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=_2(a,n,e,r);s=u.valueAxis;var f=pC(n,u.valueDataDim);l=Ky(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=rt(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 QU(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 qc(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 JU=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){qc(l,f,!0,i,n),qc(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 Sy);this.group.add(f.group);var h=jU(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);qc(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}(Qy);function jU(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(KU,e,r,t));r&&(s=Pt(s,ot(QU,r)));var l=S2(!!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 t8(r){r.registerComponentModel(qU),r.registerComponentView(JU),r.registerPreprocessor(function(e){qy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var e8=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=At(),r8=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=Qd([{},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 a8(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:YU(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"]],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.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=i8(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}(Qy);function i8(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(r8,e,r,t));r&&(s=Pt(s,ot(a8,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 o8(r){r.registerComponentModel(e8),r.registerComponentView(n8),r.registerPreprocessor(function(e){qy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var s8=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"])}},Gd=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,s8(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,Fd=C,Pu=at,x2=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=u2(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)}),Fd(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(Hd,y.name,null,i,v)).on("mouseout",Ei(Wd,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(Hd,null,d,i,v)).on("mouseout",Ei(Wd,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();Fd(t,function(u){var f=u.type,h=new Tt({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=l8(f,i,l,u,c,g,v),b=new Pu,x=i.getModel("textStyle");if(K(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(u8({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??""):K(D)&&(M=D(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Tt({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 l8(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Fd(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 u8(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){Wd(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Hd(r,e,t,a)}function b2(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=Kc[o],l=Qc[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}(x2);function p8(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 d8(r){gt(w2),r.registerComponentModel(v8),r.registerComponentView(c8),p8(r)}function g8(r){gt(w2),gt(d8)}var y8=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=At();function m8(r,e,t){Jy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function _8(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 T8(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=o2(i);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,S8(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){T2(n,i);return}var f=w8(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),wo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var A8=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(),m8(n,t,{pan:Y(Jc.pan,this),zoom:Y(Jc.zoom,this),scrollMove:Y(Jc.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){_8(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Wy),Jc={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=jc[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=jc[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=jc[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 jc={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 A2(r){Uy(r),r.registerComponentModel(y8),r.registerComponentView(A8),T8(r)}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.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,D8=1,tp=30,M8=7,es="horizontal",Ib="vertical",I8=5,L8=["line","bar","candlestick","scatter"],P8={easing:"cubicOut",duration:100,delay:0},R8=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=Y(this._onBrush,this),this._onBrushEnd=Y(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?M8: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-tp-Mb-i,width:o.width,height:tp}:{right:Mb,top:o.y,width:tp,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:Y(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(L8,u.get("type"))<0)){var f=i.getComponent(Fa(o),s).axis,h=E8(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:D8,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:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=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 Tt({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:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},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?P8:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=o2(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}(Wy);function E8(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 C2(r){r.registerComponentModel(C8),r.registerComponentView(R8),Uy(r)}function k8(r){gt(A2),gt(C2)}var D2={get:function(r,e,t){var a=rt((O8[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},O8={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,N8=re.eachVisual,B8=z,Rb=C,V8=ar,z8=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&&g2(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=Bd(this.option.controller,a,t),this.targetVisuals=Bd(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(K(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=V8([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){B8(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=D2.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&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(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;N8(S,function(x){x>b&&(b=x)}),_.symbolSize=Pb(S,function(x){return z8(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],G8=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();F8([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=ZL(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 q8(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(X8,$8),C(Z8,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(K8))}function P2(r){r.registerComponentModel(G8),r.registerComponentView(U8),L2(r)}var Q8=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=[],J8[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=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=rt(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]=D2.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=rt(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),J8={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 j8=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=Y(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 Tt({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 I2(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 Tt({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=rt(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}(M2);function R2(r){r.registerComponentModel(Q8),r.registerComponentView(j8),L2(r)}function tY(r){gt(P2),gt(R2)}var eY={label:{enabled:!0},decal:{show:!1}},Wb=At(),rY={};function aY(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=rt(eY);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(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Up(v.ecModel,v.name,rY,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=Up(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=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=j(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?f.get(["series","multiple",I]):f.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=f.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oY=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):cI(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}(),sY=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),lY=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 Yd(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=[];Za(r,t,n,o,.5,A),Za(e,a,i,s,.5,D),Yd(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Yd(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function bY(r,e){var t=Ud(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=k2([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=k2([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 AY(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 CY(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),CY(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 DY(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 Zf(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:NY(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 B2(r){return LY(r.path,r.count)}function Xd(){return{fromIndividuals:[],toIndividuals:[],count:0}}function BY(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 zY={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;tm(T,A,D),i(T,A,T,A,D)}}else for(var M=j({dividePath:zY[t],individualDelay:s&&function(N,O,B,F){return s(N+_,S)}},l),I=m?BY(x,w,M):VY(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;dV2))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 XY(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&&z2(n,i,a)}function ZY(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()})}),U2(()=>{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=K2,y=rm("van-tag"),m=rm("van-action-sheet"),_=F2,S=G2;return Y2(),X2(S,{navbar:"","navbar-start-side":"back"},{"navbar-end":_a(()=>[Qr("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:Z2(e),"onUpdate:show":d[1]||(d[1]=b=>q2(e)?e.value=b:null),teleport:"body"},{default:_a(()=>[Qr("div",qY,[KY,QY,Qr("div",JY,[rn(y,{type:"primary",plain:""},{default:_a(()=>[$2(" pnpm add echarts ")]),_:1})])])]),_:1},8,["show"])]),default:_a(()=>[rn(_,{title:"柱状图"},{default:_a(()=>[Qr("div",{ref_key:"chart1Ref",ref:t,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"折线图"},{default:_a(()=>[Qr("div",{ref_key:"chart2Ref",ref:a,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"饼图"},{default:_a(()=>[Qr("div",{ref_key:"chart3Ref",ref:n,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"雷达图"},{default:_a(()=>[Qr("div",{ref_key:"chart4Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{r7 as default}; diff --git a/assets/echarts-BmkUu6Th.js.br b/assets/echarts-BmkUu6Th.js.br new file mode 100644 index 00000000..b6eaf066 Binary files /dev/null and b/assets/echarts-BmkUu6Th.js.br differ diff --git a/assets/echarts-BmkUu6Th.js.gz b/assets/echarts-BmkUu6Th.js.gz new file mode 100644 index 00000000..2e972497 Binary files /dev/null and b/assets/echarts-BmkUu6Th.js.gz differ diff --git a/assets/errorLog-clrcVXXO.js b/assets/errorLog-clrcVXXO.js new file mode 100644 index 00000000..09d8152e --- /dev/null +++ b/assets/errorLog-clrcVXXO.js @@ -0,0 +1 @@ +import{_ as y}from"./index-g5ePWcIs.js";import{d as L,A as w,r as S,z as B,l as p,o as t,c as C,w as i,u as c,i as o,a as e,b as d,e as x,F as N,m as T,B as V,t as r}from"./index-B4fCF_Xu.js";const E={key:0,class:"flex flex-col items-center gap-4 p-4"},F={key:0},I={key:1,class:"w-full"},$={class:"flex justify-evenly"},j=e("div",null,"错误信息",-1),z={class:"text-xs text-gray-5"},A=e("div",null,"错误详情",-1),D={class:"text-xs text-gray-5"},J=e("div",null,"错误链接",-1),M={class:"text-xs text-gray-5"},O=e("div",null,"时间",-1),P={class:"text-xs text-gray-5"},q={key:1,class:"flex flex-col items-center p-4"},Q=L({__name:"errorLog",setup(G){const g=w(),f="example",l=S(""),m=B(()=>l.value?[JSON.parse(l.value)]:[]);function _(u){switch(V(()=>{l.value=sessionStorage.getItem("errorLog")||""}),u){case 1:a=abc;break;case 2:testMethod();break}}return(u,n)=>{const v=p("van-button"),k=p("van-divider"),h=y;return t(),C(h,{navbar:"","navbar-start-side":"back"},{default:i(()=>[c(f)!=="development"?(t(),o("div",E,[c(g).settings.app.enableErrorLog?(t(),o("div",I,[e("div",$,[d(v,{onClick:n[0]||(n[0]=s=>_(1))},{default:i(()=>[x(" 模拟触发错误1 ")]),_:1}),d(v,{onClick:n[1]||(n[1]=s=>_(2))},{default:i(()=>[x(" 模拟触发错误2 ")]),_:1})]),d(k),(t(!0),o(N,null,T(c(m),(s,b)=>(t(),o("div",{key:b,class:"flex flex-col gap-2 break-words rounded bg-white p-4"},[e("div",null,[j,e("div",z,r(s.err.message),1)]),e("div",null,[A,e("div",D,r(s.err.stack),1)]),e("div",null,[J,e("div",M,r(s.url),1)]),e("div",null,[O,e("div",P,r(s.datetime),1)])]))),128))])):(t(),o("div",F," 请到 /src/settings.ts 里打开错误日志功能,再进入该页面查看演示 "))])):(t(),o("div",q," 当前为开发环境,该功能关闭演示 "))]),_:1})}}});export{Q as default}; diff --git a/assets/errorLog-clrcVXXO.js.br b/assets/errorLog-clrcVXXO.js.br new file mode 100644 index 00000000..d25762f6 Binary files /dev/null and b/assets/errorLog-clrcVXXO.js.br differ diff --git a/assets/errorLog-clrcVXXO.js.gz b/assets/errorLog-clrcVXXO.js.gz new file mode 100644 index 00000000..97711071 Binary files /dev/null and b/assets/errorLog-clrcVXXO.js.gz differ diff --git a/assets/esign-L8gvZECO.css b/assets/esign-L8gvZECO.css new file mode 100644 index 00000000..be278a2a --- /dev/null +++ b/assets/esign-L8gvZECO.css @@ -0,0 +1 @@ +canvas[data-v-1fcc7cb1]{max-width:100%;display:block} diff --git a/assets/esign-L8gvZECO.css.br b/assets/esign-L8gvZECO.css.br new file mode 100644 index 00000000..4c3f0c9d Binary files /dev/null and b/assets/esign-L8gvZECO.css.br differ diff --git a/assets/esign-XYBNGHGj.js b/assets/esign-XYBNGHGj.js new file mode 100644 index 00000000..793a7261 --- /dev/null +++ b/assets/esign-XYBNGHGj.js @@ -0,0 +1 @@ +import{_ as B}from"./index-g5ePWcIs.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{q as M,o as y,i as R,d as S,r as p,l as T,c as b,w as u,a as f,b as v,e as x,u as d,H as E,n as I,B as X,_ as Y}from"./index-B4fCF_Xu.js";import{s as N}from"./function-call-D5oQs1DN.js";const P={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,s)=>{if(!this.hasDrew){s("Warning: Not Signned!");return}var a=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 c=this.resultImg;if(this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.canvasTxt.putImageData(a,0,0),this.canvasTxt.globalCompositeOperation="source-over",this.isCrop){const n=this.getCropArea(a.data);var r=document.createElement("canvas");const l=r.getContext("2d");r.width=n[2]-n[0],r.height=n[3]-n[1];const g=this.canvasTxt.getImageData(...n);l.globalCompositeOperation="destination-over",l.putImageData(g,0,0),l.fillStyle=this.myBg,l.fillRect(0,0,r.width,r.height),c=r.toDataURL(e,i),r=null}h(c)})},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,s=0;s0||t[c+1]>0||t[c+2]||t[c+3]>0)&&(h=Math.max(a,h),i=Math.max(s,i),o=Math.min(a,o),e=Math.min(s,e))}return e++,i++,o++,h++,[e,o,i,h]}}};function W(t,e,i,o,h,s){return y(),R("canvas",{ref:"canvas",onMousedown:e[0]||(e[0]=(...a)=>s.mouseDown&&s.mouseDown(...a)),onMousemove:e[1]||(e[1]=(...a)=>s.mouseMove&&s.mouseMove(...a)),onMouseup:e[2]||(e[2]=(...a)=>s.mouseUp&&s.mouseUp(...a)),onTouchstart:e[3]||(e[3]=(...a)=>s.touchStart&&s.touchStart(...a)),onTouchmove:e[4]||(e[4]=(...a)=>s.touchMove&&s.touchMove(...a)),onTouchend:e[5]||(e[5]=(...a)=>s.touchEnd&&s.touchEnd(...a))},null,544)}const C=M(P,[["render",W],["__scopeId","data-v-1fcc7cb1"]]);C.install=function(t){this.installed||(this.installed=!0,t.component("vueEsign",C))};const U={class:"whitespace-break-spaces p-4 space-y-2"},z=f("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),V=f("div",null,"安装命令:",-1),q={class:"space-x-2"},H={class:"mt-2 space-x-2"},L=["src"],G=S({__name:"esign",setup(t){const e=p(!1),i=p(),o=p({lineWidth:6,lineColor:"#000000",bgColor:"#f0f0f0",isCrop:!1}),h=p("");function s(){i.value.reset(),X(()=>{o.value.bgColor="#f0f0f0"})}function a(){i.value.generate().then(r=>{h.value=r}).catch(()=>{N({message:"画板为空,无法生成图片"})})}function c(){i.value.generate().then(r=>{const n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=()=>{const l=document.createElement("a"),g=new MouseEvent("click");l.download=Date.parse(new Date().toString()).toString(),l.href=n.src,l.dispatchEvent(g)},n.src=r})}return(r,n)=>{const l=Y,g=T("van-tag"),D=T("van-action-sheet"),w=T("VanButton"),_=k,$=B;return y(),b($,{navbar:"","navbar-start-side":"back"},{"navbar-end":u(()=>[f("div",{class:"h-full flex-center px-1",onClick:n[0]||(n[0]=m=>e.value=!0)},[v(l,{name:"i-mdi:information",class:"text-4"})]),v(D,{show:d(e),"onUpdate:show":n[1]||(n[1]=m=>E(e)?e.value=m:null),teleport:"body"},{default:u(()=>[f("div",U,[z,V,f("div",q,[v(g,{type:"primary",plain:""},{default:u(()=>[x(" pnpm add vue-esign ")]),_:1})])])]),_:1},8,["show"])]),default:u(()=>[v(_,null,{default:u(()=>[v(d(C),{ref_key:"esignRef",ref:i,bgColor:d(o).bgColor,"onUpdate:bgColor":n[2]||(n[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,["bgColor","is-crop","line-width","line-color"]),f("div",H,[v(w,{onClick:s},{default:u(()=>[x(" 清空画板 ")]),_:1}),v(w,{onClick:a},{default:u(()=>[x(" 生成图片 ")]),_:1}),v(w,{onClick:c},{default:u(()=>[x(" 下载图片 ")]),_:1})])]),_:1}),d(h)?(y(),b(_,{key:0},{default:u(()=>[f("img",{src:d(h),class:"aspect-ratio-[800/400] w-full"},null,8,L)]),_:1})):I("",!0)]),_:1})}}});export{G as default}; diff --git a/assets/esign-XYBNGHGj.js.br b/assets/esign-XYBNGHGj.js.br new file mode 100644 index 00000000..fe774833 Binary files /dev/null and b/assets/esign-XYBNGHGj.js.br differ diff --git a/assets/esign-XYBNGHGj.js.gz b/assets/esign-XYBNGHGj.js.gz new file mode 100644 index 00000000..9cd95efc Binary files /dev/null and b/assets/esign-XYBNGHGj.js.gz differ diff --git a/assets/font-CHXxEasN.js b/assets/font-CHXxEasN.js new file mode 100644 index 00000000..7dc9dcd3 --- /dev/null +++ b/assets/font-CHXxEasN.js @@ -0,0 +1 @@ +import{_ as i}from"./index-g5ePWcIs.js";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{q as d,o as l,c as p,w as a,b as c,e as r,C as m,D as f,a as e}from"./index-B4fCF_Xu.js";const u={},o=t=>(m("data-v-57e8900c"),t=t(),f(),t),g=o(()=>e("p",{class:"digital-7"}," Fantastic-mobile ",-1)),h=o(()=>e("p",{class:"digital-7"}," 1234567890,. ",-1)),b=o(()=>e("p",{class:"digital-7_mono"}," Fantastic-mobile ",-1)),x=o(()=>e("p",{class:"digital-7_mono"}," 1234567890,. ",-1));function v(t,I){const s=n,_=i;return l(),p(_,{navbar:"","navbar-start-side":"back"},{default:a(()=>[c(s,null,{default:a(()=>[r(" 自定义字体需要下载字体文件,不建议在非英文环境中使用。以下为框架预设字体: ")]),_:1}),c(s,{title:"Digital 7"},{default:a(()=>[g,h]),_:1}),c(s,{title:"Digital 7(等宽)"},{default:a(()=>[b,x]),_:1})]),_:1})}const D=d(u,[["render",v],["__scopeId","data-v-57e8900c"]]);export{D as default}; diff --git a/assets/font-CHXxEasN.js.br b/assets/font-CHXxEasN.js.br new file mode 100644 index 00000000..28c2140f Binary files /dev/null and b/assets/font-CHXxEasN.js.br differ diff --git a/assets/font-CHXxEasN.js.gz b/assets/font-CHXxEasN.js.gz new file mode 100644 index 00000000..88a9c20c Binary files /dev/null and b/assets/font-CHXxEasN.js.gz differ diff --git a/assets/font-DAgcaxG4.css b/assets/font-DAgcaxG4.css new file mode 100644 index 00000000..8a15fb14 --- /dev/null +++ b/assets/font-DAgcaxG4.css @@ -0,0 +1 @@ +@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-57e8900c],.digital-7_mono[data-v-57e8900c]{margin:min(2.667vw,16px) 0;font-size:min(9.6vw,57.6px)}.digital-7[data-v-57e8900c]{font-family:digital-7regular}.digital-7_mono[data-v-57e8900c]{font-family:digital-7_monomono} diff --git a/assets/font-DAgcaxG4.css.br b/assets/font-DAgcaxG4.css.br new file mode 100644 index 00000000..52dea794 Binary files /dev/null and b/assets/font-DAgcaxG4.css.br differ diff --git a/assets/font-DAgcaxG4.css.gz b/assets/font-DAgcaxG4.css.gz new file mode 100644 index 00000000..b2a839ea Binary files /dev/null and b/assets/font-DAgcaxG4.css.gz differ diff --git a/assets/function-call-D5oQs1DN.js b/assets/function-call-D5oQs1DN.js new file mode 100644 index 00000000..dbe9f8a8 --- /dev/null +++ b/assets/function-call-D5oQs1DN.js @@ -0,0 +1 @@ +import{S as s,U as i,V as a,W as r,X as l,b as c,Y as u,Z as d}from"./index-B4fCF_Xu.js";let o,t;const f=e=>a(e)?e:{message:e};function p(){({instance:t}=r({setup(){const{state:e,toggle:n}=l();return()=>c(d,u(e,{"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=()=>{t&&t.toggle(!1)};function N(e){if(s)return t||p(),e=i({},g,f(e)),t.open(e),clearTimeout(o),e.duration>0&&(o=setTimeout(v,e.duration)),t}export{N as s}; diff --git a/assets/function-call-D5oQs1DN.js.br b/assets/function-call-D5oQs1DN.js.br new file mode 100644 index 00000000..6e774074 Binary files /dev/null and b/assets/function-call-D5oQs1DN.js.br differ diff --git a/assets/function-call-D5oQs1DN.js.gz b/assets/function-call-D5oQs1DN.js.gz new file mode 100644 index 00000000..b4875009 Binary files /dev/null and b/assets/function-call-D5oQs1DN.js.gz differ diff --git a/assets/i18n-voRZWsea.js b/assets/i18n-voRZWsea.js new file mode 100644 index 00000000..e615e8ad --- /dev/null +++ b/assets/i18n-voRZWsea.js @@ -0,0 +1 @@ +import{_ as f}from"./index-g5ePWcIs.js";import{_ as m}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as v,k as g,l as _,o as b,c as h,w as s,b as t,a,e as i,t as x,u as y,E as k,G as w}from"./index-B4fCF_Xu.js";const z=a("div",{class:"m-4 c-gray"}," Vant 组件国际化 ",-1),C=a("div",{class:"m-4 c-gray"}," 延迟加载 ",-1),L={class:"flex justify-center gap-4"},V={class:"mt-4 text-center"},$=v({__name:"i18n",setup(j){const{t:d}=g();function l(o){const e=k(),n=w();n&&(o==="zh-cn"?(Object.assign(n["zh-cn"],{hello:{world:"你好,世界!"}}),e.global.setLocaleMessage(o,n["zh-cn"])):(Object.assign(n["en-us"],{hello:{world:"Hello World !"}}),e.global.setLocaleMessage(o,n["en-us"])))}return(o,e)=>{const n=_("van-calendar"),c=m,r=_("van-button"),u=f;return b(),h(u,{navbar:"","navbar-start-side":"back","navbar-end-side":"i18n"},{default:s(()=>[z,t(c,null,{default:s(()=>[t(n,{poppable:!1,"show-confirm":!1,style:{height:"500px"}})]),_:1}),C,t(c,null,{default:s(()=>[a("div",L,[t(r,{onClick:e[0]||(e[0]=p=>l("zh-cn"))},{default:s(()=>[i(" 载入中文 ")]),_:1}),t(r,{onClick:e[1]||(e[1]=p=>l("en-us"))},{default:s(()=>[i(" 载入英文 ")]),_:1})]),a("div",V,x(y(d)("hello.world")),1)]),_:1})]),_:1})}}});export{$ as default}; diff --git a/assets/i18n-voRZWsea.js.br b/assets/i18n-voRZWsea.js.br new file mode 100644 index 00000000..3ef58de9 Binary files /dev/null and b/assets/i18n-voRZWsea.js.br differ diff --git a/assets/i18n-voRZWsea.js.gz b/assets/i18n-voRZWsea.js.gz new file mode 100644 index 00000000..e474fd9a Binary files /dev/null and b/assets/i18n-voRZWsea.js.gz differ diff --git a/assets/icon-CtmLSi2i.js b/assets/icon-CtmLSi2i.js new file mode 100644 index 00000000..e75be85a --- /dev/null +++ b/assets/icon-CtmLSi2i.js @@ -0,0 +1 @@ +import{_ as z}from"./index-g5ePWcIs.js";import{_ as V}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as b,r as m,l as _,o as h,c as g,w as i,b as l,a as o,u as e,H as c,e as r,_ as y}from"./index-B4fCF_Xu.js";const I=o("p",null,"单色 Icon",-1),k=o("p",null,"彩色 Icon",-1),w=o("p",null,"Iconify Icon",-1),B=o("p",null,"翻转:",-1),C=o("p",null,"旋转:",-1),N={class:"p-4"},M=b({__name:"icon",setup(P){const a=m(),n=m(0);return(U,s)=>{const t=y,p=_("van-radio"),d=_("van-radio-group"),f=_("van-slider"),v=V,x=z;return h(),g(x,{navbar:"","navbar-start-side":"back"},{default:i(()=>[l(v,null,{default:i(()=>[I,o("div",null,[l(t,{name:"example-emotion-line",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"example-emotion-laugh-line",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"example-emotion-unhappy-line",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"])]),k,o("div",null,[l(t,{name:"example-crown",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"example-star",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"example-vip",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"])]),w,o("div",null,[l(t,{name:"i-carbon:4k",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"i-carbon:play-filled-alt",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"]),l(t,{name:"i-carbon:pause-filled",size:48,flip:e(a),rotate:e(n)},null,8,["flip","rotate"])]),o("div",null,[B,l(d,{modelValue:e(a),"onUpdate:modelValue":s[0]||(s[0]=u=>c(a)?a.value=u:null),class:"space-y-1"},{default:i(()=>[l(p,null,{default:i(()=>[r(" 无 ")]),_:1}),l(p,{name:"horizontal"},{default:i(()=>[r(" 水平翻转 ")]),_:1}),l(p,{name:"vertical"},{default:i(()=>[r(" 垂直翻转 ")]),_:1}),l(p,{name:"both"},{default:i(()=>[r(" 水平垂直翻转 ")]),_:1})]),_:1},8,["modelValue"]),C,o("div",N,[l(f,{modelValue:e(n),"onUpdate:modelValue":s[1]||(s[1]=u=>c(n)?n.value=u:null),min:0,max:360},null,8,["modelValue"])])])]),_:1})]),_:1})}}});export{M as default}; diff --git a/assets/icon-CtmLSi2i.js.br b/assets/icon-CtmLSi2i.js.br new file mode 100644 index 00000000..f5eda770 Binary files /dev/null and b/assets/icon-CtmLSi2i.js.br differ diff --git a/assets/icon-CtmLSi2i.js.gz b/assets/icon-CtmLSi2i.js.gz new file mode 100644 index 00000000..99c32798 Binary files /dev/null and b/assets/icon-CtmLSi2i.js.gz differ diff --git a/assets/index-B4fCF_Xu.js b/assets/index-B4fCF_Xu.js new file mode 100644 index 00000000..a670dee0 --- /dev/null +++ b/assets/index-B4fCF_Xu.js @@ -0,0 +1,443 @@ +const __vite__fileDeps=["./index-C7Y6HP8P.js","./index-g5ePWcIs.js","./index-BZLKYeHE.css","./logo-DvfkIia2.js","./index-y0e0JgNz.js","./pagemain-demo-C3p34l1S.js","./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js","./sparkline-demo-maNuZwMh.js","./sparkline-demo-Db5NT6B3.css","./trend-demo-Ce3JuaFI.js","./errorLog-clrcVXXO.js","./font-CHXxEasN.js","./font-DAgcaxG4.css","./i18n-voRZWsea.js","./icon-CtmLSi2i.js","./keepAlive-D9fBWCqp.js","./scroll-BlGcgvyM.js","./scroll2--egNRTcH.js","./title-DLLSA1W4.js","./unocss-CnYgWujU.js","./watermark-CVaFhT-P.js","./zoomable-KsXoW0bU.js","./custom-area-jbZ6-ffy.js","./custom-navbar-DeDVH8RE.js","./custom-navbar-CrZSyYTv.css","./custom-title-B5APfY_c.js","./default-BxyEo86l.js","./mode-BjoIPSlE.js","./none-C5QehyT3.js","./preset-BAC2u6pR.js","./title-no-center-CiXLMMyS.js","./schedule-DIRA3reu.js","./schedule-KNKxvh1h.css","./index-DKphaQLY.js","./function-call-D5oQs1DN.js","./test-BdXkX4eU.js","./animation-l2iDL9JK.js","./animation-B-gXXBrj.css","./echarts-BmkUu6Th.js","./esign-XYBNGHGj.js","./esign-L8gvZECO.css","./qrcode-HOUDYqkT.js","./swiper-CSwQl3sK.js","./swiper-DONcVYaF.css","./vchart-BoiZFfSn.js","./badge-BrnTN2MM.js","./custom-area-C8khfZzT.js","./default-Dh5tlTAt.js","./multi-DyDiDDK1.js","./login-vaW7q3sF.js","./login-at_66M8Y.css","./index-CFqdiz_8.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[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",version:"2.1.1",type:"module",license:"MIT",author:"Condor Hero",description:"A fake server plugin for Vite.",exports:{".":{require:"./dist/index.cjs",import:"./dist/index.mjs"},"./client":{require:"./dist/client.cjs",import:"./dist/client.mjs"}},main:"dist/index.cjs",module:"dist/index.mjs",types:"dist/index.d.cts",typesVersions:{"*":{"*":["./dist/*","./dist/index.d.ts"]}},files:["dist"],keywords:["vite-plugin-fake-server","vite-plugin-fake","vite-plugin-faker","vite-plugin-mock-server","vite-plugin-mock","faker-server"],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"},homepage:"https://github.com/condorheroblog/vite-plugin-fake-server/blob/main/README.md",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.1",chokidar:"^3.5.3","fast-glob":"^3.3.2","path-to-regexp":"^6.2.1",picocolors:"^1.0.0"},devDependencies:{vite:"^5.0.11"},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}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),be=oe(25),ve;typeof window<"u"&&(ve=oe(27));/*! + Mock - 模拟请求 & 模拟数据 + https://github.com/nuysoft/Mock + 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com +*/var ye={Handler:ae,Random:se,Util:ie,XHR:ve,RE:de,toJSONSchema:fe,valid:be,heredoc:ie.heredoc,setup:function(_e){return ve.setup(_e)},_mocked:{}};ye.version="1.0.1-beta3",ve&&(ve.Mock=ye),ye.mock=function(_e,we,Ae){return arguments.length===1?ae.gen(_e):(arguments.length===2&&(Ae=we,we=void 0),ve&&(window.XMLHttpRequest=ve),ye._mocked[_e+(we||"")]={rurl:_e,rtype:we,template:Ae},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,be=this.natural(ie,se);fe1&&ve--,6*ve<1?_e=fe+(be-fe)*6*ve:2*ve<1?_e=be:3*ve<2?_e=fe+(be-fe)*(2/3-ve)*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,be;return de*=2,se*=de<=1?de:2-de,be=(de+se)/2,fe=2*se/(de+se),[ie,fe*100,be*100]},hsv2rgb:function(ae){var ie=ae[0]/60,se=ae[1]/100,de=ae[2]/100,fe=Math.floor(ie)%6,be=ie-Math.floor(ie),ve=255*de*(1-se),ye=255*de*(1-se*be),_e=255*de*(1-se*(1-be));switch(de=255*de,fe){case 0:return[de,_e,ve];case 1:return[ye,de,ve];case 2:return[ve,de,_e];case 3:return[ve,ye,de];case 4:return[_e,ve,de];case 5:return[de,ve,ye]}},hsv2hsl:function(ae){var ie=ae[0],se=ae[1]/100,de=ae[2]/100,fe,be;return be=(2-se)*de,fe=se*de,fe/=be<=1?be:2-be,be/=2,[ie,fe*100,be*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,be,ve){return be===void 0?ae.natural(de,fe):ve===void 0?be:ae.natural(parseInt(be,10),parseInt(ve,10))}ee.exports={paragraph:function(de,fe){for(var be=se(3,7,de,fe),ve=[],ye=0;ye1&&(se=[].slice.call(arguments,0));var de=ie.options,fe=de.context.templatePath.join("."),be=ie.cache[fe]=ie.cache[fe]||{index:0,array:se};return be.array[be.index++%be.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),be=this.pick(fe.children)||{name:"-"};return se?[de.name,fe.name,be.name].join(" "):be.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,be;fepo;po++)Ho=Ie.charAt(po),Ho===` +`?(An.seenCR||An.line++,An.column=1,An.seenCR=!1):Ho==="\r"||Ho==="\u2028"||Ho==="\u2029"?(An.line++,An.column=1,An.seenCR=!0):(An.column++,An.seenCR=!1)}return zo!==Ue&&(zo>Ue&&(zo=0,na={line:1,column:1,seenCR:!1}),Lt(na,zo,Ue),zo=Ue),na}function Be(Ue){ra>nn||(nn>ra&&(ra=nn,oa=[]),oa.push(Ue))}function Fe(Ue){var Lt=0;for(Ue.sort();Ltnn?(An=Ie.charAt(nn),nn++):(An=null,Xn===0&&Be(ho)),An!==null?(hr=Ue,Lt=No(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)):(nn=Ue,Ue=Bn),Ue}function Fn(){var Ue,Lt,An;return Ue=nn,Ie.charCodeAt(nn)===92?(Lt=Ro,nn++):(Lt=null,Xn===0&&Be(jo)),Lt!==null?(Io.test(Ie.charAt(nn))?(An=Ie.charAt(nn),nn++):(An=null,Xn===0&&Be(Br)),An!==null?(hr=Ue,Lt=Do(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)):(nn=Ue,Ue=Bn),Ue}function Sn(){var Ue,Lt,An,rr;if(Ue=nn,Ie.substr(nn,2)===Ao?(Lt=Ao,nn+=2):(Lt=null,Xn===0&&Be(Qo)),Lt!==null){if(An=[],_a.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(xa)),rr!==null)for(;rr!==null;)An.push(rr),_a.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(xa));else An=Bn;An!==null?(hr=Ue,Lt=Ca(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)}else nn=Ue,Ue=Bn;return Ue}function _n(){var Ue,Lt,An,rr;if(Ue=nn,Ie.substr(nn,2)===Aa?(Lt=Aa,nn+=2):(Lt=null,Xn===0&&Be(Sa)),Lt!==null){if(An=[],ea.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(ta)),rr!==null)for(;rr!==null;)An.push(rr),ea.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(ta));else An=Bn;An!==null?(hr=Ue,Lt=Na(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)}else nn=Ue,Ue=Bn;return Ue}function On(){var Ue,Lt,An,rr;if(Ue=nn,Ie.substr(nn,2)===wa?(Lt=wa,nn+=2):(Lt=null,Xn===0&&Be(Ra)),Lt!==null){if(An=[],ea.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(ta)),rr!==null)for(;rr!==null;)An.push(rr),ea.test(Ie.charAt(nn))?(rr=Ie.charAt(nn),nn++):(rr=null,Xn===0&&Be(ta));else An=Bn;An!==null?(hr=Ue,Lt=Ia(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)}else nn=Ue,Ue=Bn;return Ue}function Pn(){var Ue,Lt;return Ue=nn,Ie.substr(nn,2)===Ao?(Lt=Ao,nn+=2):(Lt=null,Xn===0&&Be(Qo)),Lt!==null&&(hr=Ue,Lt=$a()),Lt===null&&(nn=Ue),Ue=Lt,Ue}function Un(){var Ue,Lt,An;return Ue=nn,Ie.charCodeAt(nn)===92?(Lt=Ro,nn++):(Lt=null,Xn===0&&Be(jo)),Lt!==null?(Ie.length>nn?(An=Ie.charAt(nn),nn++):(An=null,Xn===0&&Be(ho)),An!==null?(hr=Ue,Lt=Mo(An),Lt===null&&(nn=Ue),Ue=Lt):(nn=Ue,Ue=Bn)):(nn=Ue,Ue=Bn),Ue}var lr,or=arguments.length>1?arguments[1]:{},fr={regexp:Ze},yr=Ze,Bn=null,kr="",Nr="|",Gr='"|"',ro=function(Ue,Lt){return Lt?new ae(Ue,Lt[1]):Ue},br=function(Ue,Lt,An){return new ie([Ue].concat(Lt).concat([An]))},pr="^",ar='"^"',$n=function(){return new oe("start")},Vn="$",Cn='"$"',an=function(){return new oe("end")},ur=function(Ue,Lt){return new fe(Ue,Lt)},Sr="Quantifier",xr=function(Ue,Lt){return Lt&&(Ue.greedy=!1),Ue},Qn="{",er='"{"',Wn=",",En='","',Tn="}",zn='"}"',mr=function(Ue,Lt){return new be(Ue,Lt)},cr=",}",ir='",}"',tr=function(Ue){return new be(Ue,1/0)},vr=function(Ue){return new be(Ue,Ue)},dr="+",_r='"+"',Or=function(){return new be(1,1/0)},Ir="*",Lr='"*"',Vr=function(){return new be(0,1/0)},Yr="?",Hr='"?"',Jr=function(){return new be(0,1)},qr=/^[0-9]/,jr="[0-9]",oo=function(Ue){return+Ue.join("")},Zr="(",go='"("',Kr=")",no='")"',lo=function(Ue){return Ue},So=function(Ue){return new de(Ue)},$o="?:",ao='"?:"',Uo=function(Ue){return new se("non-capture-group",Ue)},Wo="?=",aa='"?="',Lo=function(Ue){return new se("positive-lookahead",Ue)},Go="?!",Eo='"?!"',ia=function(Ue){return new se("negative-lookahead",Ue)},Zo="CharacterSet",sa="[",vo='"["',la="]",Yo='"]"',ca=function(Ue,Lt){return new ve(!!Ue,Lt)},ko="CharacterRange",ua="-",da='"-"',fa=function(Ue,Lt){return new ye(Ue,Lt)},Qr="Character",ha=/^[^\\\]]/,Pr="[^\\\\\\]]",Mo=function(Ue){return new _e(Ue)},fo=".",ma='"."',pa=function(){return new oe("any-character")},ga="Literal",bo=/^[^|\\\/.[()?+*$\^]/,va="[^|\\\\\\/.[()?+*$\\^]",To="\\b",Bo='"\\\\b"',ba=function(){return new oe("backspace")},qo=function(){return new oe("word-boundary")},Ko="\\B",ya='"\\\\B"',Xo=function(){return new oe("non-word-boundary")},Jo="\\d",Fo='"\\\\d"',nr=function(){return new oe("digit")},Cr="\\D",Jn='"\\\\D"',Wt=function(){return new oe("non-digit")},jt="\\f",dn='"\\\\f"',bn=function(){return new oe("form-feed")},jn="\\n",kn='"\\\\n"',Yn=function(){return new oe("line-feed")},qn="\\r",sr='"\\\\r"',$r=function(){return new oe("carriage-return")},Er="\\s",Dr='"\\\\s"',zr=function(){return new oe("white-space")},Ar="\\S",Mr='"\\\\S"',Xr=function(){return new oe("non-white-space")},Ur="\\t",yo='"\\\\t"',Po=function(){return new oe("tab")},_o="\\v",co='"\\\\v"',to=function(){return new oe("vertical-tab")},eo="\\w",uo='"\\\\w"',mo=function(){return new oe("word")},wo="\\W",Oo='"\\\\W"',xo=function(){return new oe("non-word")},Co="\\c",Vo='"\\\\c"',ho="any character",No=function(Ue){return new ke(Ue)},Ro="\\",jo='"\\\\"',Io=/^[1-9]/,Br="[1-9]",Do=function(Ue){return new $e(Ue)},Ao="\\0",Qo='"\\\\0"',_a=/^[0-7]/,xa="[0-7]",Ca=function(Ue){return new Ce(Ue.join(""))},Aa="\\x",Sa='"\\\\x"',ea=/^[0-9a-fA-F]/,ta="[0-9a-fA-F]",Na=function(Ue){return new Ae(Ue.join(""))},wa="\\u",Ra='"\\\\u"',Ia=function(Ue){return new we(Ue.join(""))},$a=function(){return new oe("null-character")},nn=0,hr=0,zo=0,na={line:1,column:1,seenCR:!1},ra=0,oa=[],Xn=0;if("startRule"in or){if(!(or.startRule in fr))throw new Error(`Can't start parsing from rule "`+or.startRule+'".');yr=fr[or.startRule]}if(oe.offset=We,oe.text=Le,lr=yr(),lr!==null&&nn===Ie.length)return lr;throw Fe(oa),hr=Math.max(nn,ra),new Re(oa,hrwe)return!0;var $e={path:ye,type:ve,actual:_e,expected:we,action:"is greater than",message:Ce};return $e.message=be.message($e),Ae.push($e),!1},lessThan:function(ve,ye,_e,we,Ae,Ce){if(_e=we)return!0;var $e={path:ye,type:ve,actual:_e,expected:we,action:"is greater than or equal to",message:Ce};return $e.message=be.message($e),Ae.push($e),!1},lessThanOrEqualTo:function(ve,ye,_e,we,Ae,Ce){if(_e<=we)return!0;var $e={path:ye,type:ve,actual:_e,expected:we,action:"is less than or equal to",message:Ce};return $e.message=be.message($e),Ae.push($e),!1}};de.Diff=fe,de.Assert=be,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(Ce,$e,ke,Pe){var Ee=document.createEvent("CustomEvent");return Ee.initCustomEvent(Ce,$e,ke,Pe),Ee}}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(" "),be={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 ve(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}ve._settings={timeout:"10-100"},ve.setup=function(Ae){return ae.extend(ve._settings,Ae),ve._settings},ae.extend(ve,ie),ae.extend(ve.prototype,ie),ve.prototype.mock=!0,ve.prototype.match=!1,ae.extend(ve.prototype,{open:function(Ae,Ce,$e,ke,Pe){var Ee=this;ae.extend(this.custom,{method:Ae,url:Ce,async:typeof $e=="boolean"?$e:!0,username:ke,password:Pe,options:{url:Ce,type:Ae}}),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 We=Le.split("-"),He=parseInt(We[0],10),Be=parseInt(We[1],10);return Math.round(Math.random()*(Be-He))+He}}(ve._settings.timeout);var Oe=_e(this.custom.options);function Ne(Le){for(var We=0;We({error:"",status:1,data:Mock.mock({account:ee.account,token:`${ee.account}_@string`,avatar:"https://fantastic-mobile.github.io/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_0=Object.freeze(Object.defineProperty({__proto__:null,default:user},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"/src/mock/user.ts":__vite_glob_0_0}),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,je)=>Array.prototype.slice.call(ze,je);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),be=function(ze,je){for(let Qe in ze){if(fe(Qe))continue;const At=ze[Qe];try{je[Qe]=At}catch{}}return je},ve=function(ze,je,Qe){const At=Rt=>function(Dt){const Ke={};for(let Vt in Dt){if(fe(Vt))continue;const tn=Dt[Vt];Ke[Vt]=tn===je?Qe:tn}return Qe.dispatchEvent(Rt,Ke)};for(let Rt of Array.from(ze))Qe._has(Rt)&&(je[`on${Rt}`]=At(Rt))},ye=function(ze){if(ie&&ie.createEventObject!=null){const je=ie.createEventObject();return je.type=ze,je}try{return new Event(ze)}catch{return{type:ze}}},_e=function(ze){let je={};const Qe=Rt=>je[Rt]||[],At={};return At.addEventListener=function(Rt,Dt,Ke){je[Rt]=Qe(Rt),!(je[Rt].indexOf(Dt)>=0)&&(Ke=Ke===void 0?je[Rt].length:Ke,je[Rt].splice(Ke,0,Dt))},At.removeEventListener=function(Rt,Dt){if(Rt===void 0){je={};return}Dt===void 0&&(je[Rt]=[]);const Ke=Qe(Rt).indexOf(Dt);Ke!==-1&&Qe(Rt).splice(Ke,1)},At.dispatchEvent=function(){const Rt=ne(arguments),Dt=Rt.shift();ze||(Rt[0]=be(Rt[0],ye(Dt)),Object.defineProperty(Rt[0],"target",{writable:!1,value:this}));const Ke=At[`on${Dt}`];Ke&&Ke.apply(At,Rt);const Vt=Qe(Dt).concat(Qe("*"));for(let tn=0;tn!!(je[Rt]||At[`on${Rt}`]),ze&&(At.listeners=Rt=>ne(Qe(Rt)),At.on=At.addEventListener,At.off=At.removeEventListener,At.fire=At.dispatchEvent,At.once=function(Rt,Dt){var Ke=function(){return At.off(Rt,Ke),Dt.apply(null,arguments)};return At.on(Rt,Ke)},At.destroy=()=>je={}),At},we=`\r +`,Ae=function(ze){return Object.entries(ze).map(([At,Rt])=>`${At.toLowerCase()}: ${Rt}`).join(we)},Ce=function(ze,je){const Qe=ze.split(we);je==null&&(je={});for(let At of Qe)if(/([^:]+):\s*(.+)/.test(At)){const Rt=RegExp.$1!=null?RegExp.$1.toLowerCase():void 0,Dt=RegExp.$2;je[Rt]==null&&(je[Rt]=Dt)}return je};var ke={convert:function(ze,je){switch(typeof ze){case"object":return Ae(ze);case"string":return Ce(ze,je)}return[]}};const Pe=_e(!0),Ee=ze=>ze===void 0?null:ze,Oe=ae.XMLHttpRequest,Ne=function(){const je=new Oe,Qe={};let At=null,Rt,Dt,Ke;var Vt=0;const tn=function(){if(Ke.status=At||je.status,At!==-1&&(Ke.statusText=je.statusText),At!==-1){const un=ke.convert(je.getAllResponseHeaders());for(let Xe in un){const Nt=un[Xe];if(!Ke.headers[Xe]){const Mt=Xe.toLowerCase();Ke.headers[Mt]=Nt}}return}},ln=function(){if(!je.responseType||je.responseType==="text"){Ke.text=je.responseText,Ke.data=je.responseText;try{Ke.xml=je.responseXML}catch{}}else je.responseType==="document"?(Ke.xml=je.responseXML,Ke.data=je.responseXML):Ke.data=je.response;"responseURL"in je&&(Ke.responseURL=je.responseURL)},Gt=function(){Zt.status=Ke.status,Zt.statusText=Ke.statusText},rn=function(){if("text"in Ke&&(Zt.responseText=Ke.text),"xml"in Ke&&(Zt.responseXML=Ke.xml),"data"in Ke)Zt.response=Ke.data;else{const un={"":"",text:"",json:null,blob:new Blob([],{type:new Headers(Ke.headers??{}).get("content-type")}),arraybuffer:new ArrayBuffer};Zt.response=un[Zt.responseType]}("responseURL"in Ke||Qe.url)&&(Zt.responseURL=Ke.responseURL??(ee(Qe.url)?Qe.url:new URL(location.href).origin+Qe.url))},ct=function(){Rt||Zt.dispatchEvent("load",{}),Zt.dispatchEvent("loadend",{}),Rt&&(Zt.readyState=0)},Ft=function(un){for(;un>Vt&&Vt<4;)Zt.readyState=++Vt,Vt===1&&Zt.dispatchEvent("loadstart",{}),Vt===2&&Gt(),Vt===4&&(Gt(),rn()),Zt.dispatchEvent("readystatechange",{}),Vt===4&&(Qe.async===!1?ct():setTimeout(ct,0))},Kt=function(un){if(un!==4){Ft(un);return}const Xe=Pe.listeners("after");var Nt=function(){if(Xe.length>0){const Mt=Xe.shift();Mt.length===2?(Mt(Qe,Ke),Nt()):Mt.length===3&&Qe.async?Mt(Qe,Ke,Nt):Nt()}else Ft(4)};Nt()};var Zt=_e();Qe.xhr=Zt,je.onreadystatechange=function(un){try{je.readyState===2&&tn()}catch{}je.readyState===4&&(Dt=!1,tn(),ln()),Kt(je.readyState)};const hn=function(){Rt=!0};Zt.addEventListener("error",hn),Zt.addEventListener("timeout",hn),Zt.addEventListener("abort",hn),Zt.addEventListener("progress",function(un){Vt<3?Kt(3):je.readyState<=3&&Zt.dispatchEvent("readystatechange",{})}),"withCredentials"in je&&(Zt.withCredentials=!1),Zt.status=0;for(let un of Array.from(de.concat(se)))Zt[`on${un}`]=null;if(Zt.open=function(un,Xe,Nt,Mt,Xt){Vt=0,Rt=!1,Dt=!1,Qe.headers={},Qe.headerNames={},Qe.status=0,Qe.method=un,Qe.url=Xe,Qe.async=Nt!==!1,Qe.user=Mt,Qe.pass=Xt,Ke={},Ke.headers={},Kt(1)},Zt.send=function(un){let Xe,Nt;for(Xe of["type","timeout","withCredentials"])Nt=Xe==="type"?"responseType":Xe,Nt in Zt&&(Qe[Xe]=Zt[Nt]);Qe.body=un;const Mt=function(){ve(de,je,Zt),Zt.upload&&ve(de.concat(se),je.upload,Zt.upload),Dt=!0,je.open(Qe.method,Qe.url,Qe.async,Qe.user,Qe.pass);for(Xe of["type","timeout","withCredentials"])Nt=Xe==="type"?"responseType":Xe,Xe in Qe&&(je[Nt]=Qe[Xe]);for(let pn in Qe.headers){const gn=Qe.headers[pn];pn&&je.setRequestHeader(pn,gn)}je.send(Qe.body)},Xt=Pe.listeners("before");var on=function(){if(!Xt.length)return Mt();const pn=function(Pt){if(typeof Pt=="object"&&(typeof Pt.status=="number"||typeof Ke.status=="number")){be(Pt,Ke),"data"in Pt||(Pt.data=Pt.response||Pt.text),Kt(4);return}on()};pn.head=function(Pt){be(Pt,Ke),Kt(2)},pn.progress=function(Pt){be(Pt,Ke),Kt(3)};const gn=Xt.shift();gn.length===1?pn(gn(Qe)):gn.length===2&&Qe.async?gn(Qe,pn):pn()};on()},Zt.abort=function(){At=-1,Dt?je.abort():Zt.dispatchEvent("abort",{})},Zt.setRequestHeader=function(un,Xe){const Nt=un!=null?un.toLowerCase():void 0,Mt=Qe.headerNames[Nt]=Qe.headerNames[Nt]||un;Qe.headers[Mt]&&(Xe=Qe.headers[Mt]+", "+Xe),Qe.headers[Mt]=Xe},Zt.getResponseHeader=un=>Ee(Ke.headers[un?un.toLowerCase():void 0]),Zt.getAllResponseHeaders=()=>Ee(ke.convert(Ke.headers)),je.overrideMimeType&&(Zt.overrideMimeType=function(){je.overrideMimeType.apply(je,arguments)}),je.upload){let un=_e();Zt.upload=un,Qe.upload=un}return Zt.UNSENT=0,Zt.OPENED=1,Zt.HEADERS_RECEIVED=2,Zt.LOADING=3,Zt.DONE=4,Zt.response="",Zt.responseText="",Zt.responseXML=null,Zt.readyState=0,Zt.statusText="",Zt};Ne.UNSENT=0,Ne.OPENED=1,Ne.HEADERS_RECEIVED=2,Ne.LOADING=3,Ne.DONE=4;var Re={patch(){Oe&&(ae.XMLHttpRequest=Ne)},unpatch(){Oe&&(ae.XMLHttpRequest=Oe)},Native:Oe,Xhook:Ne};function De(ze,je){var Qe={};for(var At in ze)Object.prototype.hasOwnProperty.call(ze,At)&&je.indexOf(At)<0&&(Qe[At]=ze[At]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,At=Object.getOwnPropertySymbols(ze);RtQe[At]=ze[At]),Qe}function He(ze){return ze instanceof Headers?Be([...ze.entries()]):Array.isArray(ze)?Be(ze):ze}function Be(ze){return ze.reduce((je,[Qe,At])=>(je[Qe]=At,je),{})}const Fe=function(ze,je={headers:{}}){let Qe=Object.assign(Object.assign({},je),{isFetch:!0});if(ze instanceof Request){const Dt=We(ze),Ke=Object.assign(Object.assign({},He(Dt.headers)),He(Qe.headers));Qe=Object.assign(Object.assign(Object.assign({},Dt),je),{headers:Ke,acceptedRequest:!0,isFetch:!0})}else Qe.url=ze;const At=Pe.listeners("before"),Rt=Pe.listeners("after");return new Promise(function(Dt,Ke){let Vt=Dt;const tn=function(ct){if(!Rt.length)return Vt(ct);const Ft=Rt.shift();return Ft.length===2?(Ft(Qe,ct),tn(ct)):Ft.length===3?Ft(Qe,ct,tn):tn(ct)},ln=function(ct){if(ct!==void 0){const Ft=new Response(ct.body||ct.text,ct);Object.defineProperty(Ft,"url",{value:ee(Qe.url)?Qe.url:new URL(location.href).origin+Qe.url}),Dt(Ft),tn(Ft);return}Gt()},Gt=function(){if(!At.length){rn();return}const ct=At.shift();if(ct.length===1)return ln(ct(Qe));if(ct.length===2)return ct(Qe,ln)},rn=()=>Ie(this,void 0,void 0,function*(){const{url:ct,isFetch:Ft,acceptedRequest:Kt}=Qe,Zt=De(Qe,["url","isFetch","acceptedRequest"]);return ze instanceof Request&&Zt.body instanceof ReadableStream&&(Zt.body=yield new Response(Zt.body).text()),Le(ct,Zt).then(hn=>tn(hn)).catch(function(hn){return Vt=Ke,tn(hn),Ke(hn)})});Gt()})};var Ze={patch(){Le&&(ae.fetch=Fe)},unpatch(){Le&&(ae.fetch=Le)},Native:Le,Xhook:Fe};const qe=Pe;return qe.EventEmitter=_e,qe.before=function(ze,je){if(ze.length<1||ze.length>2)throw"invalid hook";return qe.on("before",ze,je)},qe.after=function(ze,je){if(ze.length<2||ze.length>3)throw"invalid hook";return qe.on("after",ze,je)},qe.enable=function(){Re.patch(),Ze.patch()},qe.disable=function(){Re.unpatch(),Ze.unpatch()},qe.XMLHttpRequest=Re.Native,qe.fetch=Ze.Native,qe.headers=ke.convert,qe.enable(),qe}window.__VITE__PLUGIN__FAKE__SERVER__.xhook=xhook();function lexer(ee){for(var ne=[],oe=0;oe=48&&de<=57||de>=65&&de<=90||de>=97&&de<=122||de===95){ie+=ee[se++];continue}break}if(!ie)throw new TypeError("Missing parameter name at ".concat(oe));ne.push({type:"NAME",index:oe,value:ie}),oe=se;continue}if(ae==="("){var fe=1,be="",se=oe+1;if(ee[se]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(se));for(;se)?(?!\?)/g,ae=0,ie=oe.exec(ee.source);ie;)ne.push({name:ie[1]||ae++,prefix:"",suffix:"",modifier:"",pattern:""}),ie=oe.exec(ee.source);return ee}function arrayToRegexp(ee,ne,oe){var ae=ee.map(function(ie){return pathToRegexp$1(ie,ne,oe).source});return new RegExp("(?:".concat(ae.join("|"),")"),flags(oe))}function stringToRegexp(ee,ne,oe){return tokensToRegexp(parse$1(ee,oe),ne,oe)}function tokensToRegexp(ee,ne,oe){oe===void 0&&(oe={});for(var ae=oe.strict,ie=ae===void 0?!1:ae,se=oe.start,de=se===void 0?!0:se,fe=oe.end,be=fe===void 0?!0:fe,ve=oe.encode,ye=ve===void 0?function(He){return He}:ve,_e=oe.delimiter,we=_e===void 0?"/#?":_e,Ae=oe.endsWith,Ce=Ae===void 0?"":Ae,$e="[".concat(escapeString(Ce),"]|$"),ke="[".concat(escapeString(we),"]"),Pe=de?"^":"",Ee=0,Oe=ee;Ee-1:Le===void 0;ie||(Pe+="(?:".concat(ke,"(?=").concat($e,"))?")),We||(Pe+="(?=".concat(ke,"|").concat($e,")"))}return new RegExp(Pe,flags(oe))}function pathToRegexp$1(ee,ne,oe){return ee instanceof RegExp?regexpToRegexp(ee,ne):Array.isArray(ee)?arrayToRegexp(ee,ne,oe):stringToRegexp(ee,ne,oe)}window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp={pathToRegexp:pathToRegexp$1,match:match$1};const fakeModuleList=window.__VITE__PLUGIN__FAKE__SERVER__.fakeModuleList,{pathToRegexp,match}=window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp;window.__VITE__PLUGIN__FAKE__SERVER__.xhook.before(async function(ee,ne){function oe(be){return new Promise(ve=>{const ye=setTimeout(()=>{ve(ye),clearTimeout(ye)},be)})}function ae(be){let ve="";try{ve=JSON.parse(be)}catch{ve=be}return ve}async function ie({URL:be,req:ve,fakeModuleList:ye,pathToRegexp:_e,match:we,basename:Ae,defaultTimeout:Ce,globalResponseHeaders:$e}){function ke(Pe,Ee){const Oe=new be(Pe,"http://localhost:5173/").pathname,Ne=new be(Ee,"http://localhost:5173/").pathname;return Oe.endsWith("/")?Oe.slice(0,-1)+Ne:Oe+Ne}if(ve.url){const Pe=new be(ve.url,"http://localhost:5173/"),Ee=Pe.pathname,Oe=ye.find(Ne=>{if(!Ee||!Ne||!Ne.url)return!1;const Re=Ne.method??"GET",De=ve.method??"GET";if(Re.toUpperCase()!==De.toUpperCase())return!1;const Ie=ke(Ae,Ne.url);return _e(Ie).test(Ee)});if(Oe){const{response:Ne,rawResponse:Re,timeout:De=Ce,statusCode:Ie,statusText:Le,url:We,headers:He={}}=Oe;De&&await oe(De);const Be=ke(Ae,We),Fe=we(Be,{encode:encodeURI}),Ze=Pe.searchParams,qe={};for(const[je,Qe]of Ze.entries())if(qe.hasOwnProperty(je)){const At=qe[je];Array.isArray(At)?At.push(Qe):qe[je]=[At,Qe]}else qe[je]=Qe;let ze={};if(Ee){const je=Fe(Ee);je&&(ze=je.params)}return{response:Ne,rawResponse:Re,timeout:De,statusCode:Ie??200,statusText:Le,url:ve.url,query:qe,params:ze,responseHeaders:new Headers({...$e,...He})}}}}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(be){const ve={};for(const[ye,_e]of be.entries())ve[ye]=_e;return ve}const fe=await ie({URL,req:ee,fakeModuleList,pathToRegexp,match,basename:"",defaultTimeout:void 0,globalResponseHeaders:{}});if(fe){const{response:be,statusCode:ve,statusText:ye=se[ve],url:_e,query:we,params:Ae,responseHeaders:Ce}=fe??{},$e="",ke=typeof be=="function",Pe={};for(const Oe in ee.headers)Pe[Oe.toLowerCase()]=ee.headers[Oe];const Ee=!ke||await Promise.resolve(be({url:_e,body:ae(ee.body),rawBody:ee.body,query:we,params:Ae,headers:Pe}));if(ee.isFetch)typeof Ee=="string"?(Ce.get("Content-Type")||Ce.set("Content-Type","text/plain"),ne(new Response(ke?Ee:null,{statusText:$e,status:ve,headers:de(Ce)}))):(Ce.get("Content-Type")||Ce.set("Content-Type","application/json"),ne(new Response(ke?JSON.stringify(Ee,null,2):null,{statusText:$e,status:ve,headers:de(Ce)})));else{const Oe=ke?{data:Ee}:{};if(!ee.type||ee.type.toLowerCase()==="text")Ce.get("Content-Type")||Ce.set("Content-Type","text/plain"),ne({statusText:$e,status:ve,text:Ee,...Oe,headers:de(Ce)});else if(ee.type.toLowerCase()==="json")Ce.get("Content-Type")||Ce.set("Content-Type","application/json"),ne({statusText:$e,status:ve,...Oe,headers:de(Ce)});else if(ee.type.toLowerCase()==="document"){Ce.get("Content-Type")||Ce.set("Content-Type","application/xml");const Re=new DOMParser().parseFromString(Ee,"application/xml");ne({statusText:$e,status:ve,xml:Re,data:Re,headers:de(Ce)})}else ne({statusText:$e,status:ve,...Oe,headers:de(Ce)})}}else 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.github.io`):console.info("%cPowered by%cFantastic-mobile",oe,ne,` +https://fantastic-mobile.github.io`)}/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function makeMap(ee,ne){const oe=new Set(ee.split(","));return ae=>oe.has(ae)}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$6=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$5=ee=>typeof ee=="function",isString$5=ee=>typeof ee=="string",isSymbol=ee=>typeof ee=="symbol",isObject$a=ee=>ee!==null&&typeof ee=="object",isPromise$2=ee=>(isObject$a(ee)||isFunction$5(ee))&&isFunction$5(ee.then)&&isFunction$5(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$5(ee)&&ee!=="NaN"&&ee[0]!=="-"&&""+parseInt(ee,10)===ee,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction$1=ee=>{const ne=Object.create(null);return oe=>ne[oe]||(ne[oe]=ee(oe))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction$1(ee=>ee.replace(camelizeRE$1,(ne,oe)=>oe?oe.toUpperCase():"")),hyphenateRE$1=/\B([A-Z])/g,hyphenate$1=cacheStringFunction$1(ee=>ee.replace(hyphenateRE$1,"-$1").toLowerCase()),capitalize$1=cacheStringFunction$1(ee=>ee.charAt(0).toUpperCase()+ee.slice(1)),toHandlerKey=cacheStringFunction$1(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$5(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$1(ee){if(isArray$6(ee)){const ne={};for(let oe=0;oe{if(oe){const ae=oe.split(propertyDelimiterRE$1);ae.length>1&&(ne[ae[0].trim()]=ae[1].trim())}}),ne}function normalizeClass$1(ee){let ne="";if(isString$5(ee))ne=ee;else if(isArray$6(ee))for(let oe=0;oeisString$5(ee)?ee:ee==null?"":isArray$6(ee)||isObject$a(ee)&&(ee.toString===objectToString$2||!isFunction$5(ee.toString))?JSON.stringify(ee,replacer,2):String(ee),replacer=(ee,ne)=>ne&&ne.__v_isRef?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$a(ne)&&!isArray$6(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.4.27 +* (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.parent=activeEffectScope,!ne&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(ne){if(this._active){const oe=activeEffectScope;try{return activeEffectScope=this,ne()}finally{activeEffectScope=oe}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(ne){if(this._active){let oe,ae;for(oe=0,ae=this.effects.length;oe=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(ne){this._dirtyLevel=ne?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let ne=shouldTrack,oe=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=oe,shouldTrack=ne}}stop(){this.active&&(preCleanupEffect(this),postCleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function triggerComputed(ee){return ee.value}function preCleanupEffect(ee){ee._trackId++,ee._depsLength=0}function postCleanupEffect(ee){if(ee.deps.length>ee._depsLength){for(let ne=ee._depsLength;ne{const oe=new Map;return oe.cleanup=ee,oe.computed=ne,oe},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(ee,ne,oe){if(shouldTrack&&activeEffect){let ae=targetMap.get(ee);ae||targetMap.set(ee,ae=new Map);let ie=ae.get(oe);ie||ae.set(oe,ie=createDep(()=>ae.delete(oe))),trackEffect(activeEffect,ie)}}function trigger(ee,ne,oe,ae,ie,se){const de=targetMap.get(ee);if(!de)return;let fe=[];if(ne==="clear")fe=[...de.values()];else if(oe==="length"&&isArray$6(ee)){const be=Number(ae);de.forEach((ve,ye)=>{(ye==="length"||!isSymbol(ye)&&ye>=be)&&fe.push(ve)})}else switch(oe!==void 0&&fe.push(de.get(oe)),ne){case"add":isArray$6(ee)?isIntegerKey(oe)&&fe.push(de.get("length")):(fe.push(de.get(ITERATE_KEY)),isMap$1(ee)&&fe.push(de.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$6(ee)||(fe.push(de.get(ITERATE_KEY)),isMap$1(ee)&&fe.push(de.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(ee)&&fe.push(de.get(ITERATE_KEY));break}pauseScheduling();for(const be of fe)be&&triggerEffects(be,4);resetScheduling()}function getDepFromReactive(ee,ne){const oe=targetMap.get(ee);return oe&&oe.get(ne)}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)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const ee={};return["includes","indexOf","lastIndexOf"].forEach(ne=>{ee[ne]=function(...oe){const ae=toRaw(this);for(let se=0,de=this.length;se{ee[ne]=function(...oe){pauseTracking(),pauseScheduling();const ae=toRaw(this)[ne].apply(this,oe);return resetScheduling(),resetTracking(),ae}}),ee}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){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$6(ne);if(!ie){if(de&&hasOwn$1(arrayInstrumentations,oe))return Reflect.get(arrayInstrumentations,oe,ae);if(oe==="hasOwnProperty")return hasOwnProperty$f}const fe=Reflect.get(ne,oe,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$a(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 be=isReadonly(se);if(!isShallow(ae)&&!isReadonly(ae)&&(se=toRaw(se),ae=toRaw(ae)),!isArray$6(ne)&&isRef(se)&&!isRef(ae))return be?!1:(se.value=ae,!0)}const de=isArray$6(ne)&&isIntegerKey(oe)?Number(oe)ee,getProto=ee=>Reflect.getPrototypeOf(ee);function get$1(ee,ne,oe=!1,ae=!1){ee=ee.__v_raw;const ie=toRaw(ee),se=toRaw(ne);oe||(hasChanged(ne,se)&&track(ie,"get",ne),track(ie,"get",se));const{has:de}=getProto(ie),fe=ae?toShallow:oe?toReadonly:toReactive;if(de.call(ie,ne))return fe(ee.get(ne));if(de.call(ie,se))return fe(ee.get(se));ee!==ie&&ee.get(ne)}function has(ee,ne=!1){const oe=this.__v_raw,ae=toRaw(oe),ie=toRaw(ee);return ne||(hasChanged(ee,ie)&&track(ae,"has",ee),track(ae,"has",ie)),ee===ie?oe.has(ee):oe.has(ee)||oe.has(ie)}function size(ee,ne=!1){return ee=ee.__v_raw,!ne&&track(toRaw(ee),"iterate",ITERATE_KEY),Reflect.get(ee,"size",ee)}function add(ee){ee=toRaw(ee);const ne=toRaw(this);return getProto(ne).has.call(ne,ee)||(ne.add(ee),trigger(ne,"add",ee,ee)),this}function set(ee,ne){ne=toRaw(ne);const oe=toRaw(this),{has:ae,get:ie}=getProto(oe);let se=ae.call(oe,ee);se||(ee=toRaw(ee),se=ae.call(oe,ee));const de=ie.call(oe,ee);return oe.set(ee,ne),se?hasChanged(ne,de)&&trigger(oe,"set",ee,ne):trigger(oe,"add",ee,ne),this}function deleteEntry(ee){const ne=toRaw(this),{has:oe,get:ae}=getProto(ne);let ie=oe.call(ne,ee);ie||(ee=toRaw(ee),ie=oe.call(ne,ee)),ae&&ae.call(ne,ee);const se=ne.delete(ee);return ie&&trigger(ne,"delete",ee,void 0),se}function clear(){const ee=toRaw(this),ne=ee.size!==0,oe=ee.clear();return ne&&trigger(ee,"clear",void 0,void 0),oe}function createForEach(ee,ne){return function(ae,ie){const se=this,de=se.__v_raw,fe=toRaw(de),be=ne?toShallow:ee?toReadonly:toReactive;return!ee&&track(fe,"iterate",ITERATE_KEY),de.forEach((ve,ye)=>ae.call(ie,be(ve),be(ye),se))}}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,be=ee==="keys"&&de,ve=ie[ee](...ae),ye=oe?toShallow:ne?toReadonly:toReactive;return!ne&&track(se,"iterate",be?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:_e,done:we}=ve.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(){const ee={get(se){return get$1(this,se)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},ne={get(se){return get$1(this,se,!1,!0)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},oe={get(se){return get$1(this,se,!0)},get size(){return size(this,!0)},has(se){return has.call(this,se,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ae={get(se){return get$1(this,se,!0,!0)},get size(){return size(this,!0)},has(se){return has.call(this,se,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(se=>{ee[se]=createIterableMethod(se,!1,!1),oe[se]=createIterableMethod(se,!0,!1),ne[se]=createIterableMethod(se,!1,!0),ae[se]=createIterableMethod(se,!0,!0)}),[ee,oe,ne,ae]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(ee,ne){const oe=ne?ee?shallowReadonlyInstrumentations:shallowInstrumentations:ee?readonlyInstrumentations:mutableInstrumentations;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$a(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 Object.isExtensible(ee)&&def(ee,"__v_skip",!0),ee}const toReactive=ee=>isObject$a(ee)?reactive(ee):ee,toReadonly=ee=>isObject$a(ee)?readonly(ee):ee;class ComputedRefImpl{constructor(ne,oe,ae,ie){this.getter=ne,this._setter=oe,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>ne(this._value),()=>triggerRefValue(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!ie,this.__v_isReadonly=ae}get value(){const ne=toRaw(this);return(!ne._cacheable||ne.effect.dirty)&&hasChanged(ne._value,ne._value=ne.effect.run())&&triggerRefValue(ne,4),trackRefValue(ne),ne.effect._dirtyLevel>=2&&triggerRefValue(ne,2),ne._value}set value(ne){this._setter(ne)}get _dirty(){return this.effect.dirty}set _dirty(ne){this.effect.dirty=ne}}function computed$1(ee,ne,oe=!1){let ae,ie;const se=isFunction$5(ee);return se?(ae=ee,ie=NOOP):(ae=ee.get,ie=ee.set),new ComputedRefImpl(ae,ie,se||!ie,oe)}function trackRefValue(ee){var ne;shouldTrack&&activeEffect&&(ee=toRaw(ee),trackEffect(activeEffect,(ne=ee.dep)!=null?ne:ee.dep=createDep(()=>ee.dep=void 0,ee instanceof ComputedRefImpl?ee:void 0)))}function triggerRefValue(ee,ne=4,oe){ee=toRaw(ee);const ae=ee.dep;ae&&triggerEffects(ae,ne)}function isRef(ee){return!!(ee&&ee.__v_isRef===!0)}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.__v_isShallow=oe,this.dep=void 0,this.__v_isRef=!0,this._rawValue=oe?ne:toRaw(ne),this._value=oe?ne:toReactive(ne)}get value(){return trackRefValue(this),this._value}set value(ne){const oe=this.__v_isShallow||isShallow(ne)||isReadonly(ne);ne=oe?ne:toRaw(ne),hasChanged(ne,this._rawValue)&&(this._rawValue=ne,this._value=oe?ne:toReactive(ne),triggerRefValue(this,4))}}function unref(ee){return isRef(ee)?ee.value:ee}const shallowUnwrapHandlers={get:(ee,ne,oe)=>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.dep=void 0,this.__v_isRef=!0;const{get:oe,set:ae}=ne(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=oe,this._set=ae}get value(){return this._get()}set value(ne){this._set(ne)}}function customRef(ee){return new CustomRefImpl(ee)}function toRefs(ee){const ne=isArray$6(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}get value(){const ne=this._object[this._key];return ne===void 0?this._defaultValue:ne}set value(ne){this._object[this._key]=ne}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function propertyToRef(ee,ne,oe){const ae=ee[ne];return isRef(ae)?ae:new ObjectRefImpl(ee,ne,oe)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const stack=[];function warn$1(ee,...ne){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()}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$5(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$5(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$5(ee)){const ie=callWithErrorHandling(ee,ne,oe,ae);return ie&&isPromise$2(ie)&&ie.catch(se=>{handleError(se,ne,oe)}),ie}if(isArray$6(ee)){const ie=[];for(let se=0;se>>1,ie=queue$1[ae],se=getId(ie);seflushIndex&&queue$1.splice(ne,1)}function queuePostFlushCb(ee){isArray$6(ee)?pendingPostFlushCbs.push(...ee):(!activePostFlushCbs||!activePostFlushCbs.includes(ee,ee.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(ee),queueFlush()}function flushPreFlushCbs(ee,ne,oe=isFlushing?flushIndex+1:0){for(;oegetId(oe)-getId(ae));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...ne);return}for(activePostFlushCbs=ne,postFlushIndex=0;postFlushIndexee.id==null?1/0:ee.id,comparator=(ee,ne)=>{const oe=getId(ee)-getId(ne);if(oe===0){if(ee.pre&&!ne.pre)return-1;if(ne.pre&&!ee.pre)return 1}return oe};function flushJobs(ee){isFlushPending=!1,isFlushing=!0,queue$1.sort(comparator);try{for(flushIndex=0;flushIndexisString$5(Ae)?Ae.trim():Ae)),_e&&(ie=oe.map(looseToNumber))}let fe,be=ae[fe=toHandlerKey(ne)]||ae[fe=toHandlerKey(camelize$1(ne))];!be&&se&&(be=ae[fe=toHandlerKey(hyphenate$1(ne))]),be&&callWithAsyncErrorHandling(be,ee,6,ie);const ve=ae[fe+"Once"];if(ve){if(!ee.emitted)ee.emitted={};else if(ee.emitted[fe])return;ee.emitted[fe]=!0,callWithAsyncErrorHandling(ve,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$5(ee)){const be=ve=>{const ye=normalizeEmitsOptions(ve,ne,!0);ye&&(fe=!0,extend$2(de,ye))};!oe&&ne.mixins.length&&ne.mixins.forEach(be),ee.extends&&be(ee.extends),ee.mixins&&ee.mixins.forEach(be)}return!se&&!fe?(isObject$a(ee)&&ae.set(ee,null),null):(isArray$6(se)?se.forEach(be=>de[be]=null):extend$2(de,se),isObject$a(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$1(ne))||hasOwn$1(ee,ne))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(ee){const ne=currentRenderingInstance;return currentRenderingInstance=ee,currentScopeId=ee&&ee.type.__scopeId||null,ne}function pushScopeId(ee){currentScopeId=ee}function popScopeId(){currentScopeId=null}function withCtx(ee,ne=currentRenderingInstance,oe){if(!ne||ee._n)return ee;const ae=(...ie)=>{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 markAttrsAccessed(){}function renderComponentRoot(ee){const{type:ne,vnode:oe,proxy:ae,withProxy:ie,propsOptions:[se],slots:de,attrs:fe,emit:be,render:ve,renderCache:ye,props:_e,data:we,setupState:Ae,ctx:Ce,inheritAttrs:$e}=ee,ke=setCurrentRenderingInstance(ee);let Pe,Ee;try{if(oe.shapeFlag&4){const Ne=ie||ae,Re=Ne;Pe=normalizeVNode(ve.call(Re,Ne,ye,_e,Ae,we,Ce)),Ee=fe}else{const Ne=ne;Pe=normalizeVNode(Ne.length>1?Ne(_e,{attrs:fe,slots:de,emit:be}):Ne(_e,null)),Ee=ne.props?fe:getFunctionalFallthrough(fe)}}catch(Ne){blockStack.length=0,handleError(Ne,ee,1),Pe=createVNode(Comment$1)}let Oe=Pe;if(Ee&&$e!==!1){const Ne=Object.keys(Ee),{shapeFlag:Re}=Oe;Ne.length&&Re&7&&(se&&Ne.some(isModelListener)&&(Ee=filterModelListeners(Ee,se)),Oe=cloneVNode(Oe,Ee,!1,!0))}return oe.dirs&&(Oe=cloneVNode(Oe,null,!1,!0),Oe.dirs=Oe.dirs?Oe.dirs.concat(oe.dirs):oe.dirs),oe.transition&&(Oe.transition=oe.transition),Pe=Oe,setCurrentRenderingInstance(ke),Pe}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:be}=ne,ve=se.emitsOptions;if(ne.dirs||ne.transition)return!0;if(oe&&be>=0){if(be&1024)return!0;if(be&16)return ae?hasPropsChanged(ae,de,ve):!!de;if(be&8){const ye=ne.dynamicProps;for(let _e=0;_eee.__isSuspense;function queueEffectWithSuspense(ee,ne){ne&&ne.pendingBranch?isArray$6(ee)?ne.effects.push(...ee):ne.effects.push(ee):queuePostFlushCb(ee)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(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"})}const INITIAL_WATCHER_VALUE={};function watch(ee,ne,oe){return doWatch(ee,ne,oe)}function doWatch(ee,ne,{immediate:oe,deep:ae,flush:ie,once:se,onTrack:de,onTrigger:fe}=EMPTY_OBJ){if(ne&&se){const De=ne;ne=(...Ie)=>{De(...Ie),Re()}}const be=currentInstance,ve=De=>ae===!0?De:traverse(De,ae===!1?1:void 0);let ye,_e=!1,we=!1;if(isRef(ee)?(ye=()=>ee.value,_e=isShallow(ee)):isReactive(ee)?(ye=()=>ve(ee),_e=!0):isArray$6(ee)?(we=!0,_e=ee.some(De=>isReactive(De)||isShallow(De)),ye=()=>ee.map(De=>{if(isRef(De))return De.value;if(isReactive(De))return ve(De);if(isFunction$5(De))return callWithErrorHandling(De,be,2)})):isFunction$5(ee)?ne?ye=()=>callWithErrorHandling(ee,be,2):ye=()=>(Ae&&Ae(),callWithAsyncErrorHandling(ee,be,3,[Ce])):ye=NOOP,ne&&ae){const De=ye;ye=()=>traverse(De())}let Ae,Ce=De=>{Ae=Oe.onStop=()=>{callWithErrorHandling(De,be,4),Ae=Oe.onStop=void 0}},$e;if(isInSSRComponentSetup)if(Ce=NOOP,ne?oe&&callWithAsyncErrorHandling(ne,be,3,[ye(),we?[]:void 0,Ce]):ye(),ie==="sync"){const De=useSSRContext();$e=De.__watcherHandles||(De.__watcherHandles=[])}else return NOOP;let ke=we?new Array(ee.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Pe=()=>{if(!(!Oe.active||!Oe.dirty))if(ne){const De=Oe.run();(ae||_e||(we?De.some((Ie,Le)=>hasChanged(Ie,ke[Le])):hasChanged(De,ke)))&&(Ae&&Ae(),callWithAsyncErrorHandling(ne,be,3,[De,ke===INITIAL_WATCHER_VALUE?void 0:we&&ke[0]===INITIAL_WATCHER_VALUE?[]:ke,Ce]),ke=De)}else Oe.run()};Pe.allowRecurse=!!ne;let Ee;ie==="sync"?Ee=Pe:ie==="post"?Ee=()=>queuePostRenderEffect(Pe,be&&be.suspense):(Pe.pre=!0,be&&(Pe.id=be.uid),Ee=()=>queueJob(Pe));const Oe=new ReactiveEffect(ye,NOOP,Ee),Ne=getCurrentScope(),Re=()=>{Oe.stop(),Ne&&remove(Ne.effects,Oe)};return ne?oe?Pe():ke=Oe.run():ie==="post"?queuePostRenderEffect(Oe.run.bind(Oe),be&&be.suspense):Oe.run(),$e&&$e.push(Re),Re}function instanceWatch(ee,ne,oe){const ae=this.proxy,ie=isString$5(ee)?ee.includes(".")?createPathGetter(ae,ee):()=>ae[ee]:ee.bind(ae,ae);let se;isFunction$5(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{traverse(ae,ne,oe)});else if(isPlainObject$5(ee))for(const ae in ee)traverse(ee[ae],ne,oe);return ee}function withDirectives(ee,ne){if(currentRenderingInstance===null)return ee;const oe=getExposeProxy(currentRenderingInstance)||currentRenderingInstance.proxy,ae=ee.dirs||(ee.dirs=[]);for(let ie=0;ie{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},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;let se=ie[0];if(ie.length>1){for(const we of ie)if(we.type!==Comment$1){se=we;break}}const de=toRaw(ee),{mode:fe}=de;if(ae.isLeaving)return emptyPlaceholder(se);const be=getKeepAliveChild(se);if(!be)return emptyPlaceholder(se);const ve=resolveTransitionHooks(be,de,ae,oe);setTransitionHooks(be,ve);const ye=oe.subTree,_e=ye&&getKeepAliveChild(ye);if(_e&&_e.type!==Comment$1&&!isSameVNodeType(be,_e)){const we=resolveTransitionHooks(_e,de,ae,oe);if(setTransitionHooks(_e,we),fe==="out-in"&&be.type!==Comment$1)return ae.isLeaving=!0,we.afterLeave=()=>{ae.isLeaving=!1,oe.update.active!==!1&&(oe.effect.dirty=!0,oe.update())},emptyPlaceholder(se);fe==="in-out"&&be.type!==Comment$1&&(we.delayLeave=(Ae,Ce,$e)=>{const ke=getLeavingNodesForType(ae,_e);ke[String(_e.key)]=_e,Ae[leaveCbKey]=()=>{Ce(),Ae[leaveCbKey]=void 0,delete ve.delayedLeave},ve.delayedLeave=$e})}return se}}},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){const{appear:ie,mode:se,persisted:de=!1,onBeforeEnter:fe,onEnter:be,onAfterEnter:ve,onEnterCancelled:ye,onBeforeLeave:_e,onLeave:we,onAfterLeave:Ae,onLeaveCancelled:Ce,onBeforeAppear:$e,onAppear:ke,onAfterAppear:Pe,onAppearCancelled:Ee}=ne,Oe=String(ee.key),Ne=getLeavingNodesForType(oe,ee),Re=(Le,We)=>{Le&&callWithAsyncErrorHandling(Le,ae,9,We)},De=(Le,We)=>{const He=We[1];Re(Le,We),isArray$6(Le)?Le.every(Be=>Be.length<=1)&&He():Le.length<=1&&He()},Ie={mode:se,persisted:de,beforeEnter(Le){let We=fe;if(!oe.isMounted)if(ie)We=$e||fe;else return;Le[leaveCbKey]&&Le[leaveCbKey](!0);const He=Ne[Oe];He&&isSameVNodeType(ee,He)&&He.el[leaveCbKey]&&He.el[leaveCbKey](),Re(We,[Le])},enter(Le){let We=be,He=ve,Be=ye;if(!oe.isMounted)if(ie)We=ke||be,He=Pe||ve,Be=Ee||ye;else return;let Fe=!1;const Ze=Le[enterCbKey]=qe=>{Fe||(Fe=!0,qe?Re(Be,[Le]):Re(He,[Le]),Ie.delayedLeave&&Ie.delayedLeave(),Le[enterCbKey]=void 0)};We?De(We,[Le,Ze]):Ze()},leave(Le,We){const He=String(ee.key);if(Le[enterCbKey]&&Le[enterCbKey](!0),oe.isUnmounting)return We();Re(_e,[Le]);let Be=!1;const Fe=Le[leaveCbKey]=Ze=>{Be||(Be=!0,We(),Ze?Re(Ce,[Le]):Re(Ae,[Le]),Le[leaveCbKey]=void 0,Ne[He]===ee&&delete Ne[He])};Ne[He]=ee,we?De(we,[Le,Fe]):Fe()},clone(Le){return resolveTransitionHooks(Le,ne,oe,ae)}};return Ie}function emptyPlaceholder(ee){if(isKeepAlive(ee))return ee=cloneVNode(ee),ee.children=null,ee}function getKeepAliveChild(ee){if(!isKeepAlive(ee))return ee;const{shapeFlag:ne,children:oe}=ee;if(oe){if(ne&16)return oe[0];if(ne&32&&isFunction$5(oe.default))return oe.default()}}function setTransitionHooks(ee,ne){ee.shapeFlag&6&&ee.component?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;se!!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 Ee=ne.default&&ne.default();return Ee&&Ee.length===1?Ee[0]:Ee};const ie=new Map,se=new Set;let de=null;const fe=oe.suspense,{renderer:{p:be,m:ve,um:ye,o:{createElement:_e}}}=ae,we=_e("div");ae.activate=(Ee,Oe,Ne,Re,De)=>{const Ie=Ee.component;ve(Ee,Oe,Ne,0,fe),be(Ie.vnode,Ee,Oe,Ne,Ie,fe,Re,Ee.slotScopeIds,De),queuePostRenderEffect(()=>{Ie.isDeactivated=!1,Ie.a&&invokeArrayFns(Ie.a);const Le=Ee.props&&Ee.props.onVnodeMounted;Le&&invokeVNodeHook(Le,Ie.parent,Ee)},fe)},ae.deactivate=Ee=>{const Oe=Ee.component;ve(Ee,we,null,1,fe),queuePostRenderEffect(()=>{Oe.da&&invokeArrayFns(Oe.da);const Ne=Ee.props&&Ee.props.onVnodeUnmounted;Ne&&invokeVNodeHook(Ne,Oe.parent,Ee),Oe.isDeactivated=!0},fe)};function Ae(Ee){resetShapeFlag(Ee),ye(Ee,oe,fe,!0)}function Ce(Ee){ie.forEach((Oe,Ne)=>{const Re=getComponentName(Oe.type);Re&&(!Ee||!Ee(Re))&&$e(Ne)})}function $e(Ee){const Oe=ie.get(Ee);!de||!isSameVNodeType(Oe,de)?Ae(Oe):de&&resetShapeFlag(de),ie.delete(Ee),se.delete(Ee)}watch(()=>[ee.include,ee.exclude],([Ee,Oe])=>{Ee&&Ce(Ne=>matches(Ee,Ne)),Oe&&Ce(Ne=>!matches(Oe,Ne))},{flush:"post",deep:!0});let ke=null;const Pe=()=>{ke!=null&&ie.set(ke,getInnerChild(oe.subTree))};return onMounted(Pe),onUpdated(Pe),onBeforeUnmount(()=>{ie.forEach(Ee=>{const{subTree:Oe,suspense:Ne}=oe,Re=getInnerChild(Oe);if(Ee.type===Re.type&&Ee.key===Re.key){resetShapeFlag(Re);const De=Re.component.da;De&&queuePostRenderEffect(De,Ne);return}Ae(Ee)})}),()=>{if(ke=null,!ne.default)return null;const Ee=ne.default(),Oe=Ee[0];if(Ee.length>1)return de=null,Ee;if(!isVNode$1(Oe)||!(Oe.shapeFlag&4)&&!(Oe.shapeFlag&128))return de=null,Oe;let Ne=getInnerChild(Oe);const Re=Ne.type,De=getComponentName(isAsyncWrapper(Ne)?Ne.type.__asyncResolved||{}:Re),{include:Ie,exclude:Le,max:We}=ee;if(Ie&&(!De||!matches(Ie,De))||Le&&De&&matches(Le,De))return de=Ne,Oe;const He=Ne.key==null?Re:Ne.key,Be=ie.get(He);return Ne.el&&(Ne=cloneVNode(Ne),Oe.shapeFlag&128&&(Oe.ssContent=Ne)),ke=He,Be?(Ne.el=Be.el,Ne.component=Be.component,Ne.transition&&setTransitionHooks(Ne,Ne.transition),Ne.shapeFlag|=512,se.delete(He),se.add(He)):(se.add(He),We&&se.size>parseInt(We,10)&&$e(se.values().next().value)),Ne.shapeFlag|=256,de=Ne,isSuspense(Oe.type)?Oe:Ne}}},KeepAlive=KeepAliveImpl;function matches(ee,ne){return isArray$6(ee)?ee.some(oe=>matches(oe,ne)):isString$5(ee)?ee.split(",").includes(ne):isRegExp$2(ee)?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)=>{if(oe.isUnmounted)return;pauseTracking();const fe=setCurrentInstance(oe),be=callWithAsyncErrorHandling(ne,oe,ee,de);return fe(),resetTracking(),be});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)}function renderList(ee,ne,oe,ae){let ie;const se=oe;if(isArray$6(ee)||isString$5(ee)){ie=new Array(ee.length);for(let de=0,fe=ee.length;dene(de,fe,void 0,se));else{const de=Object.keys(ee);ie=new Array(de.length);for(let fe=0,be=de.length;fe{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.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return ne!=="default"&&(oe.name=ne),createVNode("slot",oe,ae&&ae());let se=ee[ne];se&&se._c&&(se._d=!1),openBlock();const de=se&&ensureValidVNode(se(oe)),fe=createBlock(Fragment,{key:oe.key||de&&de.key||`_${ne}`},de||(ae?ae():[]),de&&ee._===1?64:-2);return!ie&&fe.scopeId&&(fe.slotScopeIds=[fe.scopeId+"-s"]),se&&se._c&&(se._d=!0),fe}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)?getExposeProxy(ee)||ee.proxy: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),$emit:ee=>ee.emit,$options:ee=>resolveMergedOptions(ee),$forceUpdate:ee=>ee.f||(ee.f=()=>{ee.effect.dirty=!0,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:be}=ee;let ve;if(ne[0]!=="$"){const Ae=de[ne];if(Ae!==void 0)switch(Ae){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((ve=ee.propsOptions[0])&&hasOwn$1(ve,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=be.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$6(ee)?ee.reduce((ne,oe)=>(ne[oe]=null,ne),{}):ee}function mergeModels(ee,ne){return!ee||!ne?ee||ne:isArray$6(ee)&&isArray$6(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:be,inject:ve,created:ye,beforeMount:_e,mounted:we,beforeUpdate:Ae,updated:Ce,activated:$e,deactivated:ke,beforeDestroy:Pe,beforeUnmount:Ee,destroyed:Oe,unmounted:Ne,render:Re,renderTracked:De,renderTriggered:Ie,errorCaptured:Le,serverPrefetch:We,expose:He,inheritAttrs:Be,components:Fe,directives:Ze,filters:qe}=ne;if(ve&&resolveInjections(ve,ae,null),de)for(const Qe in de){const At=de[Qe];isFunction$5(At)&&(ae[Qe]=At.bind(oe))}if(ie){const Qe=ie.call(oe,oe);isObject$a(Qe)&&(ee.data=reactive(Qe))}if(shouldCacheAccess=!0,se)for(const Qe in se){const At=se[Qe],Rt=isFunction$5(At)?At.bind(oe,oe):isFunction$5(At.get)?At.get.bind(oe,oe):NOOP,Dt=!isFunction$5(At)&&isFunction$5(At.set)?At.set.bind(oe):NOOP,Ke=computed({get:Rt,set:Dt});Object.defineProperty(ae,Qe,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Vt=>Ke.value=Vt})}if(fe)for(const Qe in fe)createWatcher(fe[Qe],ae,oe,Qe);if(be){const Qe=isFunction$5(be)?be.call(oe):be;Reflect.ownKeys(Qe).forEach(At=>{provide(At,Qe[At])})}ye&&callHook$1(ye,ee,"c");function je(Qe,At){isArray$6(At)?At.forEach(Rt=>Qe(Rt.bind(oe))):At&&Qe(At.bind(oe))}if(je(onBeforeMount,_e),je(onMounted,we),je(onBeforeUpdate,Ae),je(onUpdated,Ce),je(onActivated,$e),je(onDeactivated,ke),je(onErrorCaptured,Le),je(onRenderTracked,De),je(onRenderTriggered,Ie),je(onBeforeUnmount,Ee),je(onUnmounted,Ne),je(onServerPrefetch,We),isArray$6(He))if(He.length){const Qe=ee.exposed||(ee.exposed={});He.forEach(At=>{Object.defineProperty(Qe,At,{get:()=>oe[At],set:Rt=>oe[At]=Rt})})}else ee.exposed||(ee.exposed={});Re&&ee.render===NOOP&&(ee.render=Re),Be!=null&&(ee.inheritAttrs=Be),Fe&&(ee.components=Fe),Ze&&(ee.directives=Ze)}function resolveInjections(ee,ne,oe=NOOP){isArray$6(ee)&&(ee=normalizeInject(ee));for(const ae in ee){const ie=ee[ae];let se;isObject$a(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$6(ee)?ee.map(ae=>ae.bind(ne.proxy)):ee.bind(ne.proxy),ne,oe)}function createWatcher(ee,ne,oe,ae){const ie=ae.includes(".")?createPathGetter(oe,ae):()=>oe[ae];if(isString$5(ee)){const se=ne[ee];isFunction$5(se)&&watch(ie,se)}else if(isFunction$5(ee))watch(ie,ee.bind(oe));else if(isObject$a(ee))if(isArray$6(ee))ee.forEach(se=>createWatcher(se,ne,oe,ae));else{const se=isFunction$5(ee.handler)?ee.handler.bind(oe):ne[ee.handler];isFunction$5(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 be;return fe?be=fe:!ie.length&&!oe&&!ae?be=ne:(be={},ie.length&&ie.forEach(ve=>mergeOptions$1(be,ve,de,!0)),mergeOptions$1(be,ne,de)),isObject$a(ne)&&se.set(ne,be),be}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$5(ee)?ee.call(this,this):ee,isFunction$5(ne)?ne.call(this,this):ne)}:ne:ee}function mergeInject(ee,ne){return mergeObjectOptions(normalizeInject(ee),normalizeInject(ne))}function normalizeInject(ee){if(isArray$6(ee)){const ne={};for(let oe=0;oe1)return oe&&isFunction$5(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),[be]=ee.propsOptions;let ve=!1;if((ae||de>0)&&!(de&16)){if(de&8){const ye=ee.vnode.dynamicProps;for(let _e=0;_e{be=!0;const[we,Ae]=normalizePropsOptions(_e,ne,!0);extend$2(de,we),Ae&&fe.push(...Ae)};!oe&&ne.mixins.length&&ne.mixins.forEach(ye),ee.extends&&ye(ee.extends),ee.mixins&&ee.mixins.forEach(ye)}if(!se&&!be)return isObject$a(ee)&&ae.set(ee,EMPTY_ARR),EMPTY_ARR;if(isArray$6(se))for(let ye=0;ye-1,Ae[1]=$e<0||Ce<$e,(Ce>-1||hasOwn$1(Ae,"default"))&&fe.push(_e)}}}const ve=[de,fe];return isObject$a(ee)&&ae.set(ee,ve),ve}function validatePropName(ee){return ee[0]!=="$"&&!isReservedProp(ee)}function getType(ee){return ee===null?"null":typeof ee=="function"?ee.name||"":typeof ee=="object"&&ee.constructor&&ee.constructor.name||""}function isSameType(ee,ne){return getType(ee)===getType(ne)}function getTypeIndex(ee,ne){return isArray$6(ne)?ne.findIndex(oe=>isSameType(oe,ee)):isFunction$5(ne)&&isSameType(ne,ee)?0:-1}const isInternalKey=ee=>ee[0]==="_"||ee==="$stable",normalizeSlotValue=ee=>isArray$6(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$5(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},initSlots=(ee,ne)=>{const oe=ee.slots=createInternalObject();if(ee.vnode.shapeFlag&32){const ae=ne._;ae?(extend$2(oe,ne),def(oe,"_",ae,!0)):normalizeObjectSlots(ne,oe)}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:(extend$2(ie,ne),!oe&&fe===1&&delete ie._):(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]};function setRef(ee,ne,oe,ae,ie=!1){if(isArray$6(ee)){ee.forEach((we,Ae)=>setRef(we,ne&&(isArray$6(ne)?ne[Ae]:ne),oe,ae,ie));return}if(isAsyncWrapper(ae)&&!ie)return;const se=ae.shapeFlag&4?getExposeProxy(ae.component)||ae.component.proxy:ae.el,de=ie?null:se,{i:fe,r:be}=ee,ve=ne&&ne.r,ye=fe.refs===EMPTY_OBJ?fe.refs={}:fe.refs,_e=fe.setupState;if(ve!=null&&ve!==be&&(isString$5(ve)?(ye[ve]=null,hasOwn$1(_e,ve)&&(_e[ve]=null)):isRef(ve)&&(ve.value=null)),isFunction$5(be))callWithErrorHandling(be,fe,12,[de,ye]);else{const we=isString$5(be),Ae=isRef(be);if(we||Ae){const Ce=()=>{if(ee.f){const $e=we?hasOwn$1(_e,be)?_e[be]:ye[be]:be.value;ie?isArray$6($e)&&remove($e,se):isArray$6($e)?$e.includes(se)||$e.push(se):we?(ye[be]=[se],hasOwn$1(_e,be)&&(_e[be]=ye[be])):(be.value=[se],ee.k&&(ye[ee.k]=be.value))}else we?(ye[be]=de,hasOwn$1(_e,be)&&(_e[be]=de)):Ae&&(be.value=de,ee.k&&(ye[ee.k]=de))};de?(Ce.id=-1,queuePostRenderEffect(Ce,oe)):Ce()}}}const 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:be,setText:ve,setElementText:ye,parentNode:_e,nextSibling:we,setScopeId:Ae=NOOP,insertStaticContent:Ce}=ee,$e=(Xe,Nt,Mt,Xt=null,on=null,pn=null,gn=void 0,Pt=null,lt=!!Nt.dynamicChildren)=>{if(Xe===Nt)return;Xe&&!isSameVNodeType(Xe,Nt)&&(Xt=ct(Xe),Vt(Xe,on,pn,!0),Xe=null),Nt.patchFlag===-2&&(lt=!1,Nt.dynamicChildren=null);const{type:Jt,ref:en,shapeFlag:mn}=Nt;switch(Jt){case Text$1:ke(Xe,Nt,Mt,Xt);break;case Comment$1:Pe(Xe,Nt,Mt,Xt);break;case Static:Xe==null&&Ee(Nt,Mt,Xt,gn);break;case Fragment:Fe(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt);break;default:mn&1?Re(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt):mn&6?Ze(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt):(mn&64||mn&128)&&Jt.process(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt,Zt)}en!=null&&on&&setRef(en,Xe&&Xe.ref,pn,Nt||Xe,!Nt)},ke=(Xe,Nt,Mt,Xt)=>{if(Xe==null)ae(Nt.el=fe(Nt.children),Mt,Xt);else{const on=Nt.el=Xe.el;Nt.children!==Xe.children&&ve(on,Nt.children)}},Pe=(Xe,Nt,Mt,Xt)=>{Xe==null?ae(Nt.el=be(Nt.children||""),Mt,Xt):Nt.el=Xe.el},Ee=(Xe,Nt,Mt,Xt)=>{[Xe.el,Xe.anchor]=Ce(Xe.children,Nt,Mt,Xt,Xe.el,Xe.anchor)},Oe=({el:Xe,anchor:Nt},Mt,Xt)=>{let on;for(;Xe&&Xe!==Nt;)on=we(Xe),ae(Xe,Mt,Xt),Xe=on;ae(Nt,Mt,Xt)},Ne=({el:Xe,anchor:Nt})=>{let Mt;for(;Xe&&Xe!==Nt;)Mt=we(Xe),ie(Xe),Xe=Mt;ie(Nt)},Re=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt)=>{Nt.type==="svg"?gn="svg":Nt.type==="math"&&(gn="mathml"),Xe==null?De(Nt,Mt,Xt,on,pn,gn,Pt,lt):We(Xe,Nt,on,pn,gn,Pt,lt)},De=(Xe,Nt,Mt,Xt,on,pn,gn,Pt)=>{let lt,Jt;const{props:en,shapeFlag:mn,transition:fn,dirs:Yt}=Xe;if(lt=Xe.el=de(Xe.type,pn,en&&en.is,en),mn&8?ye(lt,Xe.children):mn&16&&Le(Xe.children,lt,null,Xt,on,resolveChildrenNamespace(Xe,pn),gn,Pt),Yt&&invokeDirectiveHook(Xe,null,Xt,"created"),Ie(lt,Xe,Xe.scopeId,gn,Xt),en){for(const yn in en)yn!=="value"&&!isReservedProp(yn)&&se(lt,yn,null,en[yn],pn,Xe.children,Xt,on,rn);"value"in en&&se(lt,"value",null,en.value,pn),(Jt=en.onVnodeBeforeMount)&&invokeVNodeHook(Jt,Xt,Xe)}Yt&&invokeDirectiveHook(Xe,null,Xt,"beforeMount");const sn=needTransition(on,fn);sn&&fn.beforeEnter(lt),ae(lt,Nt,Mt),((Jt=en&&en.onVnodeMounted)||sn||Yt)&&queuePostRenderEffect(()=>{Jt&&invokeVNodeHook(Jt,Xt,Xe),sn&&fn.enter(lt),Yt&&invokeDirectiveHook(Xe,null,Xt,"mounted")},on)},Ie=(Xe,Nt,Mt,Xt,on)=>{if(Mt&&Ae(Xe,Mt),Xt)for(let pn=0;pn{for(let Jt=lt;Jt{const Pt=Nt.el=Xe.el;let{patchFlag:lt,dynamicChildren:Jt,dirs:en}=Nt;lt|=Xe.patchFlag&16;const mn=Xe.props||EMPTY_OBJ,fn=Nt.props||EMPTY_OBJ;let Yt;if(Mt&&toggleRecurse(Mt,!1),(Yt=fn.onVnodeBeforeUpdate)&&invokeVNodeHook(Yt,Mt,Nt,Xe),en&&invokeDirectiveHook(Nt,Xe,Mt,"beforeUpdate"),Mt&&toggleRecurse(Mt,!0),Jt?He(Xe.dynamicChildren,Jt,Pt,Mt,Xt,resolveChildrenNamespace(Nt,on),pn):gn||At(Xe,Nt,Pt,null,Mt,Xt,resolveChildrenNamespace(Nt,on),pn,!1),lt>0){if(lt&16)Be(Pt,Nt,mn,fn,Mt,Xt,on);else if(lt&2&&mn.class!==fn.class&&se(Pt,"class",null,fn.class,on),lt&4&&se(Pt,"style",mn.style,fn.style,on),lt&8){const sn=Nt.dynamicProps;for(let yn=0;yn{Yt&&invokeVNodeHook(Yt,Mt,Nt,Xe),en&&invokeDirectiveHook(Nt,Xe,Mt,"updated")},Xt)},He=(Xe,Nt,Mt,Xt,on,pn,gn)=>{for(let Pt=0;Pt{if(Mt!==Xt){if(Mt!==EMPTY_OBJ)for(const Pt in Mt)!isReservedProp(Pt)&&!(Pt in Xt)&&se(Xe,Pt,Mt[Pt],null,gn,Nt.children,on,pn,rn);for(const Pt in Xt){if(isReservedProp(Pt))continue;const lt=Xt[Pt],Jt=Mt[Pt];lt!==Jt&&Pt!=="value"&&se(Xe,Pt,Jt,lt,gn,Nt.children,on,pn,rn)}"value"in Xt&&se(Xe,"value",Mt.value,Xt.value,gn)}},Fe=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt)=>{const Jt=Nt.el=Xe?Xe.el:fe(""),en=Nt.anchor=Xe?Xe.anchor:fe("");let{patchFlag:mn,dynamicChildren:fn,slotScopeIds:Yt}=Nt;Yt&&(Pt=Pt?Pt.concat(Yt):Yt),Xe==null?(ae(Jt,Mt,Xt),ae(en,Mt,Xt),Le(Nt.children||[],Mt,en,on,pn,gn,Pt,lt)):mn>0&&mn&64&&fn&&Xe.dynamicChildren?(He(Xe.dynamicChildren,fn,Mt,on,pn,gn,Pt),(Nt.key!=null||on&&Nt===on.subTree)&&traverseStaticChildren(Xe,Nt,!0)):At(Xe,Nt,Mt,en,on,pn,gn,Pt,lt)},Ze=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt)=>{Nt.slotScopeIds=Pt,Xe==null?Nt.shapeFlag&512?on.ctx.activate(Nt,Mt,Xt,gn,lt):qe(Nt,Mt,Xt,on,pn,gn,lt):ze(Xe,Nt,lt)},qe=(Xe,Nt,Mt,Xt,on,pn,gn)=>{const Pt=Xe.component=createComponentInstance(Xe,Xt,on);if(isKeepAlive(Xe)&&(Pt.ctx.renderer=Zt),setupComponent(Pt),Pt.asyncDep){if(on&&on.registerDep(Pt,je),!Xe.el){const lt=Pt.subTree=createVNode(Comment$1);Pe(null,lt,Nt,Mt)}}else je(Pt,Xe,Nt,Mt,on,pn,gn)},ze=(Xe,Nt,Mt)=>{const Xt=Nt.component=Xe.component;if(shouldUpdateComponent(Xe,Nt,Mt))if(Xt.asyncDep&&!Xt.asyncResolved){Qe(Xt,Nt,Mt);return}else Xt.next=Nt,invalidateJob(Xt.update),Xt.effect.dirty=!0,Xt.update();else Nt.el=Xe.el,Xt.vnode=Nt},je=(Xe,Nt,Mt,Xt,on,pn,gn)=>{const Pt=()=>{if(Xe.isMounted){let{next:en,bu:mn,u:fn,parent:Yt,vnode:sn}=Xe;{const Kn=locateNonHydratedAsyncRoot(Xe);if(Kn){en&&(en.el=sn.el,Qe(Xe,en,gn)),Kn.asyncDep.then(()=>{Xe.isUnmounted||Pt()});return}}let yn=en,Nn;toggleRecurse(Xe,!1),en?(en.el=sn.el,Qe(Xe,en,gn)):en=sn,mn&&invokeArrayFns(mn),(Nn=en.props&&en.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Nn,Yt,en,sn),toggleRecurse(Xe,!0);const Zn=renderComponentRoot(Xe),Hn=Xe.subTree;Xe.subTree=Zn,$e(Hn,Zn,_e(Hn.el),ct(Hn),Xe,on,pn),en.el=Zn.el,yn===null&&updateHOCHostEl(Xe,Zn.el),fn&&queuePostRenderEffect(fn,on),(Nn=en.props&&en.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Nn,Yt,en,sn),on)}else{let en;const{el:mn,props:fn}=Nt,{bm:Yt,m:sn,parent:yn}=Xe,Nn=isAsyncWrapper(Nt);if(toggleRecurse(Xe,!1),Yt&&invokeArrayFns(Yt),!Nn&&(en=fn&&fn.onVnodeBeforeMount)&&invokeVNodeHook(en,yn,Nt),toggleRecurse(Xe,!0),mn&&un){const Zn=()=>{Xe.subTree=renderComponentRoot(Xe),un(mn,Xe.subTree,Xe,on,null)};Nn?Nt.type.__asyncLoader().then(()=>!Xe.isUnmounted&&Zn()):Zn()}else{const Zn=Xe.subTree=renderComponentRoot(Xe);$e(null,Zn,Mt,Xt,Xe,on,pn),Nt.el=Zn.el}if(sn&&queuePostRenderEffect(sn,on),!Nn&&(en=fn&&fn.onVnodeMounted)){const Zn=Nt;queuePostRenderEffect(()=>invokeVNodeHook(en,yn,Zn),on)}(Nt.shapeFlag&256||yn&&isAsyncWrapper(yn.vnode)&&yn.vnode.shapeFlag&256)&&Xe.a&&queuePostRenderEffect(Xe.a,on),Xe.isMounted=!0,Nt=Mt=Xt=null}},lt=Xe.effect=new ReactiveEffect(Pt,NOOP,()=>queueJob(Jt),Xe.scope),Jt=Xe.update=()=>{lt.dirty&<.run()};Jt.id=Xe.uid,toggleRecurse(Xe,!0),Jt()},Qe=(Xe,Nt,Mt)=>{Nt.component=Xe;const Xt=Xe.vnode.props;Xe.vnode=Nt,Xe.next=null,updateProps(Xe,Nt.props,Xt,Mt),updateSlots(Xe,Nt.children,Mt),pauseTracking(),flushPreFlushCbs(Xe),resetTracking()},At=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt=!1)=>{const Jt=Xe&&Xe.children,en=Xe?Xe.shapeFlag:0,mn=Nt.children,{patchFlag:fn,shapeFlag:Yt}=Nt;if(fn>0){if(fn&128){Dt(Jt,mn,Mt,Xt,on,pn,gn,Pt,lt);return}else if(fn&256){Rt(Jt,mn,Mt,Xt,on,pn,gn,Pt,lt);return}}Yt&8?(en&16&&rn(Jt,on,pn),mn!==Jt&&ye(Mt,mn)):en&16?Yt&16?Dt(Jt,mn,Mt,Xt,on,pn,gn,Pt,lt):rn(Jt,on,pn,!0):(en&8&&ye(Mt,""),Yt&16&&Le(mn,Mt,Xt,on,pn,gn,Pt,lt))},Rt=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt)=>{Xe=Xe||EMPTY_ARR,Nt=Nt||EMPTY_ARR;const Jt=Xe.length,en=Nt.length,mn=Math.min(Jt,en);let fn;for(fn=0;fnen?rn(Xe,on,pn,!0,!1,mn):Le(Nt,Mt,Xt,on,pn,gn,Pt,lt,mn)},Dt=(Xe,Nt,Mt,Xt,on,pn,gn,Pt,lt)=>{let Jt=0;const en=Nt.length;let mn=Xe.length-1,fn=en-1;for(;Jt<=mn&&Jt<=fn;){const Yt=Xe[Jt],sn=Nt[Jt]=lt?cloneIfMounted(Nt[Jt]):normalizeVNode(Nt[Jt]);if(isSameVNodeType(Yt,sn))$e(Yt,sn,Mt,null,on,pn,gn,Pt,lt);else break;Jt++}for(;Jt<=mn&&Jt<=fn;){const Yt=Xe[mn],sn=Nt[fn]=lt?cloneIfMounted(Nt[fn]):normalizeVNode(Nt[fn]);if(isSameVNodeType(Yt,sn))$e(Yt,sn,Mt,null,on,pn,gn,Pt,lt);else break;mn--,fn--}if(Jt>mn){if(Jt<=fn){const Yt=fn+1,sn=Ytfn)for(;Jt<=mn;)Vt(Xe[Jt],on,pn,!0),Jt++;else{const Yt=Jt,sn=Jt,yn=new Map;for(Jt=sn;Jt<=fn;Jt++){const Ln=Nt[Jt]=lt?cloneIfMounted(Nt[Jt]):normalizeVNode(Nt[Jt]);Ln.key!=null&&yn.set(Ln.key,Jt)}let Nn,Zn=0;const Hn=fn-sn+1;let Kn=!1,Mn=0;const wn=new Array(Hn);for(Jt=0;Jt=Hn){Vt(Ln,on,pn,!0);continue}let Rn;if(Ln.key!=null)Rn=yn.get(Ln.key);else for(Nn=sn;Nn<=fn;Nn++)if(wn[Nn-sn]===0&&isSameVNodeType(Ln,Nt[Nn])){Rn=Nn;break}Rn===void 0?Vt(Ln,on,pn,!0):(wn[Rn-sn]=Jt+1,Rn>=Mn?Mn=Rn:Kn=!0,$e(Ln,Nt[Rn],Mt,null,on,pn,gn,Pt,lt),Zn++)}const In=Kn?getSequence(wn):EMPTY_ARR;for(Nn=In.length-1,Jt=Hn-1;Jt>=0;Jt--){const Ln=sn+Jt,Rn=Nt[Ln],Fn=Ln+1{const{el:pn,type:gn,transition:Pt,children:lt,shapeFlag:Jt}=Xe;if(Jt&6){Ke(Xe.component.subTree,Nt,Mt,Xt);return}if(Jt&128){Xe.suspense.move(Nt,Mt,Xt);return}if(Jt&64){gn.move(Xe,Nt,Mt,Zt);return}if(gn===Fragment){ae(pn,Nt,Mt);for(let mn=0;mnPt.enter(pn),on);else{const{leave:mn,delayLeave:fn,afterLeave:Yt}=Pt,sn=()=>ae(pn,Nt,Mt),yn=()=>{mn(pn,()=>{sn(),Yt&&Yt()})};fn?fn(pn,sn,yn):yn()}else ae(pn,Nt,Mt)},Vt=(Xe,Nt,Mt,Xt=!1,on=!1)=>{const{type:pn,props:gn,ref:Pt,children:lt,dynamicChildren:Jt,shapeFlag:en,patchFlag:mn,dirs:fn}=Xe;if(Pt!=null&&setRef(Pt,null,Mt,Xe,!0),en&256){Nt.ctx.deactivate(Xe);return}const Yt=en&1&&fn,sn=!isAsyncWrapper(Xe);let yn;if(sn&&(yn=gn&&gn.onVnodeBeforeUnmount)&&invokeVNodeHook(yn,Nt,Xe),en&6)Gt(Xe.component,Mt,Xt);else{if(en&128){Xe.suspense.unmount(Mt,Xt);return}Yt&&invokeDirectiveHook(Xe,null,Nt,"beforeUnmount"),en&64?Xe.type.remove(Xe,Nt,Mt,on,Zt,Xt):Jt&&(pn!==Fragment||mn>0&&mn&64)?rn(Jt,Nt,Mt,!1,!0):(pn===Fragment&&mn&384||!on&&en&16)&&rn(lt,Nt,Mt),Xt&&tn(Xe)}(sn&&(yn=gn&&gn.onVnodeUnmounted)||Yt)&&queuePostRenderEffect(()=>{yn&&invokeVNodeHook(yn,Nt,Xe),Yt&&invokeDirectiveHook(Xe,null,Nt,"unmounted")},Mt)},tn=Xe=>{const{type:Nt,el:Mt,anchor:Xt,transition:on}=Xe;if(Nt===Fragment){ln(Mt,Xt);return}if(Nt===Static){Ne(Xe);return}const pn=()=>{ie(Mt),on&&!on.persisted&&on.afterLeave&&on.afterLeave()};if(Xe.shapeFlag&1&&on&&!on.persisted){const{leave:gn,delayLeave:Pt}=on,lt=()=>gn(Mt,pn);Pt?Pt(Xe.el,pn,lt):lt()}else pn()},ln=(Xe,Nt)=>{let Mt;for(;Xe!==Nt;)Mt=we(Xe),ie(Xe),Xe=Mt;ie(Nt)},Gt=(Xe,Nt,Mt)=>{const{bum:Xt,scope:on,update:pn,subTree:gn,um:Pt}=Xe;Xt&&invokeArrayFns(Xt),on.stop(),pn&&(pn.active=!1,Vt(gn,Xe,Nt,Mt)),Pt&&queuePostRenderEffect(Pt,Nt),queuePostRenderEffect(()=>{Xe.isUnmounted=!0},Nt),Nt&&Nt.pendingBranch&&!Nt.isUnmounted&&Xe.asyncDep&&!Xe.asyncResolved&&Xe.suspenseId===Nt.pendingId&&(Nt.deps--,Nt.deps===0&&Nt.resolve())},rn=(Xe,Nt,Mt,Xt=!1,on=!1,pn=0)=>{for(let gn=pn;gnXe.shapeFlag&6?ct(Xe.component.subTree):Xe.shapeFlag&128?Xe.suspense.next():we(Xe.anchor||Xe.el);let Ft=!1;const Kt=(Xe,Nt,Mt)=>{Xe==null?Nt._vnode&&Vt(Nt._vnode,null,null,!0):$e(Nt._vnode||null,Xe,Nt,null,null,null,Mt),Ft||(Ft=!0,flushPreFlushCbs(),flushPostFlushCbs(),Ft=!1),Nt._vnode=Xe},Zt={p:$e,um:Vt,m:Ke,r:tn,mt:qe,mc:Le,pc:At,pbc:He,n:ct,o:ee};let hn,un;return{render:Kt,hydrate:hn,createApp:createAppAPI(Kt,hn)}}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,update:ne},oe){ee.allowRecurse=ne.allowRecurse=oe}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$6(ae)&&isArray$6(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)}const isTeleport=ee=>ee.__isTeleport,isTeleportDisabled=ee=>ee&&(ee.disabled||ee.disabled===""),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$5(oe)?ne?ne(oe):null:oe},TeleportImpl={name:"Teleport",__isTeleport:!0,process(ee,ne,oe,ae,ie,se,de,fe,be,ve){const{mc:ye,pc:_e,pbc:we,o:{insert:Ae,querySelector:Ce,createText:$e,createComment:ke}}=ve,Pe=isTeleportDisabled(ne.props);let{shapeFlag:Ee,children:Oe,dynamicChildren:Ne}=ne;if(ee==null){const Re=ne.el=$e(""),De=ne.anchor=$e("");Ae(Re,oe,ae),Ae(De,oe,ae);const Ie=ne.target=resolveTarget(ne.props,Ce),Le=ne.targetAnchor=$e("");Ie&&(Ae(Le,Ie),de==="svg"||isTargetSVG(Ie)?de="svg":(de==="mathml"||isTargetMathML(Ie))&&(de="mathml"));const We=(He,Be)=>{Ee&16&&ye(Oe,He,Be,ie,se,de,fe,be)};Pe?We(oe,De):Ie&&We(Ie,Le)}else{ne.el=ee.el;const Re=ne.anchor=ee.anchor,De=ne.target=ee.target,Ie=ne.targetAnchor=ee.targetAnchor,Le=isTeleportDisabled(ee.props),We=Le?oe:De,He=Le?Re:Ie;if(de==="svg"||isTargetSVG(De)?de="svg":(de==="mathml"||isTargetMathML(De))&&(de="mathml"),Ne?(we(ee.dynamicChildren,Ne,We,ie,se,de,fe),traverseStaticChildren(ee,ne,!0)):be||_e(ee,ne,We,He,ie,se,de,fe,!1),Pe)Le?ne.props&&ee.props&&ne.props.to!==ee.props.to&&(ne.props.to=ee.props.to):moveTeleport(ne,oe,Re,ve,1);else if((ne.props&&ne.props.to)!==(ee.props&&ee.props.to)){const Be=ne.target=resolveTarget(ne.props,Ce);Be&&moveTeleport(ne,Be,null,ve,0)}else Le&&moveTeleport(ne,De,Ie,ve,1)}updateCssVars(ne)},remove(ee,ne,oe,ae,{um:ie,o:{remove:se}},de){const{shapeFlag:fe,children:be,anchor:ve,targetAnchor:ye,target:_e,props:we}=ee;if(_e&&se(ye),de&&se(ve),fe&16){const Ae=de||!isTeleportDisabled(we);for(let Ce=0;Ce0?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$5(ee)||isRef(ee)||isFunction$5(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 be={__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,targetAnchor:null,staticCount:0,shapeFlag:se,patchFlag:ae,dynamicProps:ie,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return fe?(normalizeChildren(be,oe),se&128&&ee.normalize(be)):oe&&(be.shapeFlag|=isString$5(oe)?8:16),isBlockTreeEnabled>0&&!de&¤tBlock&&(be.patchFlag>0||se&6)&&be.patchFlag!==32&¤tBlock.push(be),be}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:be}=ne;fe&&!isString$5(fe)&&(ne.class=normalizeClass$1(fe)),isObject$a(be)&&(isProxy(be)&&!isArray$6(be)&&(be=extend$2({},be)),ne.style=normalizeStyle$1(be))}const de=isString$5(ee)?1:isSuspense(ee)?128:isTeleport(ee)?64:isObject$a(ee)?4:isFunction$5(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:be}=ee,ve=ne?mergeProps(ie||{},ne):ie,ye={__v_isVNode:!0,__v_skip:!0,type:ee.type,props:ve,key:ve&&normalizeKey(ve),ref:ne&&ne.ref?oe&&se?isArray$6(se)?se.concat(normalizeRef(ne)):[se,normalizeRef(ne)]:normalizeRef(ne):se,scopeId:ee.scopeId,slotScopeIds:ee.slotScopeIds,children:fe,target:ee.target,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:be,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 be&&ae&&(ye.transition=be.clone(ye)),ye}function createTextVNode(ee=" ",ne=0){return createVNode(Text$1,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$6(ee)?createVNode(Fragment,null,ee.slice()):typeof ee=="object"?cloneIfMounted(ee):createVNode(Text$1,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$6(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$5(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){ne&&setInSSRSetupState(ne);const{props:oe,children:ae}=ee.vnode,ie=isStatefulComponent(ee);initProps(ee,oe,ie,ne),initSlots(ee,ae);const se=ie?setupStatefulComponent(ee,ne):void 0;return ne&&setInSSRSetupState(!1),se}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){const ie=ee.setupContext=ae.length>1?createSetupContext(ee):null,se=setCurrentInstance(ee);pauseTracking();const de=callWithErrorHandling(ae,ee,0,[ee.props,ie]);if(resetTracking(),se(),isPromise$2(de)){if(de.then(unsetCurrentInstance,unsetCurrentInstance),ne)return de.then(fe=>{handleSetupResult(ee,fe,ne)}).catch(fe=>{handleError(fe,ee,0)});ee.asyncDep=de}else handleSetupResult(ee,de,ne)}else finishComponentSetup(ee,ne)}function handleSetupResult(ee,ne,oe){isFunction$5(ne)?ee.type.__ssrInlineRender?ee.ssrRender=ne:ee.render=ne:isObject$a(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:be}=ae,ve=extend$2(extend$2({isCustomElement:se,delimiters:fe},de),be);ae.render=compile$1(ie,ve)}}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 getExposeProxy(ee){if(ee.exposed)return 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}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=ee=>ee.replace(classifyRE,ne=>ne.toUpperCase()).replace(/[-_]/g,"");function getComponentName(ee,ne=!0){return isFunction$5(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$5(ee)&&"__vccOpts"in ee}const computed=(ee,ne)=>computed$1(ee,ne,isInSSRComponentSetup);function useModel(ee,ne,oe=EMPTY_OBJ){const ae=getCurrentInstance(),ie=camelize$1(ne),se=hyphenate$1(ne),de=customRef((be,ve)=>{let ye;return watchSyncEffect(()=>{const _e=ee[ne];hasChanged(ye,_e)&&(ye=_e,ve())}),{get(){return be(),oe.get?oe.get(ye):ye},set(_e){const we=ae.vnode.props;!(we&&(ne in we||ie in we||se in we)&&(`onUpdate:${ne}`in we||`onUpdate:${ie}`in we||`onUpdate:${se}`in we))&&hasChanged(_e,ye)&&(ye=_e,ve()),ae.emit(`update:${ne}`,oe.set?oe.set(_e):_e)}}}),fe="modelModifiers";return de[Symbol.iterator]=()=>{let be=0;return{next(){return be<2?{value:be++?ee[fe]||{}:de,done:!1}:{done:!0}}}},de}function h$2(ee,ne,oe){const ae=arguments.length;return ae===2?isObject$a(ne)&&!isArray$6(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.4.27";/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const 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):doc.createElement(ee,oe?{is:oe}:void 0);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=ae==="svg"?`${ee}`:ae==="mathml"?`${ee}`:ee;const fe=templateContainer.content;if(ae==="svg"||ae==="mathml"){const be=fe.firstChild;for(;be.firstChild;)fe.appendChild(be.firstChild);fe.removeChild(be)}ne.insertBefore(fe,oe)}return[de?de.nextSibling:ne.firstChild,oe?oe.previousSibling:ne.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(ee,{slots:ne})=>h$2(BaseTransition,resolveTransitionProps(ee),ne);Transition.displayName="Transition";const 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};Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(ee,ne=[])=>{isArray$6(ee)?ee.forEach(oe=>oe(...ne)):ee&&ee(...ne)},hasExplicitCallback=ee=>ee?isArray$6(ee)?ee.some(ne=>ne.length>1):ee.length>1:!1;function resolveTransitionProps(ee){const ne={};for(const Fe in ee)Fe in DOMTransitionPropsValidators||(ne[Fe]=ee[Fe]);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:be=se,appearActiveClass:ve=de,appearToClass:ye=fe,leaveFromClass:_e=`${oe}-leave-from`,leaveActiveClass:we=`${oe}-leave-active`,leaveToClass:Ae=`${oe}-leave-to`}=ee,Ce=normalizeDuration(ie),$e=Ce&&Ce[0],ke=Ce&&Ce[1],{onBeforeEnter:Pe,onEnter:Ee,onEnterCancelled:Oe,onLeave:Ne,onLeaveCancelled:Re,onBeforeAppear:De=Pe,onAppear:Ie=Ee,onAppearCancelled:Le=Oe}=ne,We=(Fe,Ze,qe)=>{removeTransitionClass(Fe,Ze?ye:fe),removeTransitionClass(Fe,Ze?ve:de),qe&&qe()},He=(Fe,Ze)=>{Fe._isLeaving=!1,removeTransitionClass(Fe,_e),removeTransitionClass(Fe,Ae),removeTransitionClass(Fe,we),Ze&&Ze()},Be=Fe=>(Ze,qe)=>{const ze=Fe?Ie:Ee,je=()=>We(Ze,Fe,qe);callHook(ze,[Ze,je]),nextFrame(()=>{removeTransitionClass(Ze,Fe?be:se),addTransitionClass(Ze,Fe?ye:fe),hasExplicitCallback(ze)||whenTransitionEnds(Ze,ae,$e,je)})};return extend$2(ne,{onBeforeEnter(Fe){callHook(Pe,[Fe]),addTransitionClass(Fe,se),addTransitionClass(Fe,de)},onBeforeAppear(Fe){callHook(De,[Fe]),addTransitionClass(Fe,be),addTransitionClass(Fe,ve)},onEnter:Be(!1),onAppear:Be(!0),onLeave(Fe,Ze){Fe._isLeaving=!0;const qe=()=>He(Fe,Ze);addTransitionClass(Fe,_e),addTransitionClass(Fe,we),forceReflow(),nextFrame(()=>{Fe._isLeaving&&(removeTransitionClass(Fe,_e),addTransitionClass(Fe,Ae),hasExplicitCallback(Ne)||whenTransitionEnds(Fe,ae,ke,qe))}),callHook(Ne,[Fe,qe])},onEnterCancelled(Fe){We(Fe,!1),callHook(Oe,[Fe])},onAppearCancelled(Fe){We(Fe,!0),callHook(Le,[Fe])},onLeaveCancelled(Fe){He(Fe),callHook(Re,[Fe])}})}function normalizeDuration(ee){if(ee==null)return null;if(isObject$a(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)return setTimeout(se,oe);const{type:de,timeout:fe,propCount:be}=getTransitionInfo(ee,ne);if(!de)return ae();const ve=de+"end";let ye=0;const _e=()=>{ee.removeEventListener(ve,we),se()},we=Ae=>{Ae.target===ee&&++ye>=be&&_e()};setTimeout(()=>{ye(oe[Ce]||"").split(", "),ie=ae(`${TRANSITION}Delay`),se=ae(`${TRANSITION}Duration`),de=getTimeout(ie,se),fe=ae(`${ANIMATION}Delay`),be=ae(`${ANIMATION}Duration`),ve=getTimeout(fe,be);let ye=null,_e=0,we=0;ne===TRANSITION?de>0&&(ye=TRANSITION,_e=de,we=se.length):ne===ANIMATION?ve>0&&(ye=ANIMATION,_e=ve,we=be.length):(_e=Math.max(de,ve),ye=_e>0?de>ve?TRANSITION:ANIMATION:null,we=ye?ye===TRANSITION?se.length:be.length:0);const Ae=ye===TRANSITION&&/\b(transform|all)(,|$)/.test(ae(`${TRANSITION}Property`).toString());return{type:ye,timeout:_e,propCount:we,hasTransform:Ae}}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);setVarsOnVNode(ne.subTree,ie),oe(ie)};onMounted(()=>{watchPostEffect(ae);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$5(oe);let se=!1;if(oe&&!ie){if(ne)if(isString$5(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$6(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$1(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$6(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,de,fe,be)=>{const ve=ie==="svg";ne==="class"?patchClass(ee,ae,ve):ne==="style"?patchStyle(ee,oe,ae):isOn(ne)?isModelListener(ne)||patchEvent(ee,ne,oe,ae,de):(ne[0]==="."?(ne=ne.slice(1),!0):ne[0]==="^"?(ne=ne.slice(1),!1):shouldSetAsProp(ee,ne,ae,ve))?patchDOMProp(ee,ne,ae,se,de,fe,be):(ne==="true-value"?ee._trueValue=ae:ne==="false-value"&&(ee._falseValue=ae),patchAttr(ee,ne,ae,ve))};function shouldSetAsProp(ee,ne,oe,ae){if(ae)return!!(ne==="innerHTML"||ne==="textContent"||ne in ee&&isNativeOn(ne)&&isFunction$5(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$5(oe)?!1:ne in ee}const getModelAssigner=ee=>{const ne=ee.props["onUpdate:modelValue"]||!1;return isArray$6(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,modifiers:{lazy:oe,trim:ae,number:ie}},se){if(ee[assignKey$1]=getModelAssigner(se),ee.composing)return;const de=(ie||ee.type==="number")&&!/^0\d/.test(ee.value)?looseToNumber(ee.value):ee.value,fe=ne??"";de!==fe&&(document.activeElement===ee&&ee.type!=="range"&&(oe||ae&&ee.value.trim()===fe)||(ee.value=fe))}},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$1(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$5(se)&&!se.render&&!se.template&&(se.template=ie.innerHTML),ie.innerHTML="";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$5(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},be=()=>{ae.collapsed=!ae.collapsed,oe("collapsed",ae.collapsed)},ve=()=>{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:be,handleClose:ve}}}),_hoisted_1$7=["id"],_hoisted_2$5={key:0,class:"m-message-icons"},_hoisted_3$3=["src"],_hoisted_4$2={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$1(["m-message-wrapper",ee.wrapperClassName]),id:ee.id,style:normalizeStyle$1({width:ee.width})},[createBaseVNode("div",{class:normalizeClass$1(["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$3)):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$2,[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$1(["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 be=createVNode(MessageComponent,oe,fe),ve=document.createElement("div");be.appContext=ee.ctx||message._context||null,be.props.onClose=ee.onClose,be.props.onDestroy=()=>{de.count--,de.count===0&&(delete containers[se],de.el.remove()),render$1(null,ve)},render$1(be,ve),ae.indexOf("bottom")===0&&de.el.firstChild?de.el.insertBefore(ve.firstElementChild,de.el.firstChild):de.el.appendChild(ve.firstElementChild);const ye={id:ne,close(){var _e,we;(we=(_e=be==null?void 0:be.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(),be=ie.pop(),ve={provider:ie.length>0?ie[0]:ae,prefix:be,name:fe};return ne&&!validateIconName(ve)?null:ve}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,be=fe&&se(fe);be&&(ie[de]=[fe].concat(be))}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($e=>{const ke=[],Pe=$e.hFlip,Ee=$e.vFlip;let Oe=$e.rotate;Pe?Ee?Oe+=2:(ke.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),ke.push("scale(-1 1)"),ie.top=ie.left=0):Ee&&(ke.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),ke.push("scale(1 -1)"),ie.top=ie.left=0);let Ne;switch(Oe<0&&(Oe-=Math.floor(Oe/4)*4),Oe=Oe%4,Oe){case 1:Ne=ie.height/2+ie.top,ke.unshift("rotate(90 "+Ne.toString()+" "+Ne.toString()+")");break;case 2:ke.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:Ne=ie.width/2+ie.left,ke.unshift("rotate(-90 "+Ne.toString()+" "+Ne.toString()+")");break}Oe%2===1&&(ie.left!==ie.top&&(Ne=ie.left,ie.left=ie.top,ie.top=Ne),ie.width!==ie.height&&(Ne=ie.width,ie.width=ie.height,ie.height=Ne)),ke.length&&(se=wrapSVGContent(se,'',""))});const de=ae.width,fe=ae.height,be=ie.width,ve=ie.height;let ye,_e;de===null?(_e=fe===null?"1em":fe==="auto"?ve:fe,ye=calculateSize(_e,be/ve)):(ye=de==="auto"?be:de,_e=fe===null?calculateSize(ye,ve/be):fe==="auto"?ve:fe);const we={},Ae=($e,ke)=>{isUnsetKeyword(ke)||(we[$e]=ke.toString())};Ae("width",ye),Ae("height",_e);const Ce=[ie.left,ie.top,be,ve];return we.viewBox=Ce.join(" "),{attributes:we,viewBox:Ce,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((be,ve)=>{fe+=be.length+1,fe>=ie&&ve>0&&(ae.push(de),de={type:se,provider:ee,prefix:ne,icons:[]},fe=be.length),de.icons.push(be)}),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(","),be=new URLSearchParams({icons:fe});ae+=se+".json?"+be.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,be=oe[se]||(oe[se]=Object.create(null)),ve=be[de]||(be[de]=getStorage(se,de));let ye;fe in ve.icons?ye=ne.loaded:de===""||ve.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(be=>{if(be.prefix!==ie)return!0;const ve=be.name;if(ee.icons[ve])de.loaded.push({provider:ae,prefix:ie,name:ve});else if(ee.missing.has(ve))de.missing.push({provider:ae,prefix:ie,name:ve});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 De=ee.resources.slice(0);for(de=[];De.length>1;){const Ie=Math.floor(Math.random()*De.length);de.push(De[Ie]),De=De.slice(0,Ie).concat(De.slice(Ie+1))}de=de.concat(De)}else de=ee.resources.slice(se).concat(ee.resources.slice(0,se));const fe=Date.now();let be="pending",ve=0,ye,_e=null,we=[],Ae=[];typeof ae=="function"&&Ae.push(ae);function Ce(){_e&&(clearTimeout(_e),_e=null)}function $e(){be==="pending"&&(be="aborted"),Ce(),we.forEach(De=>{De.status==="pending"&&(De.status="aborted")}),we=[]}function ke(De,Ie){Ie&&(Ae=[]),typeof De=="function"&&Ae.push(De)}function Pe(){return{startTime:fe,payload:ne,status:be,queriesSent:ve,queriesPending:we.length,subscribe:ke,abort:$e}}function Ee(){be="failed",Ae.forEach(De=>{De(void 0,ye)})}function Oe(){we.forEach(De=>{De.status==="pending"&&(De.status="aborted")}),we=[]}function Ne(De,Ie,Le){const We=Ie!=="success";switch(we=we.filter(He=>He!==De),be){case"pending":break;case"failed":if(We||!ee.dataAfterTimeout)return;break;default:return}if(Ie==="abort"){ye=Le,Ee();return}if(We){ye=Le,we.length||(de.length?Re():Ee());return}if(Ce(),Oe(),!ee.random){const He=ee.resources.indexOf(De.resource);He!==-1&&He!==ee.index&&(ee.index=He)}be="completed",Ae.forEach(He=>{He(Le)})}function Re(){if(be!=="pending")return;Ce();const De=de.shift();if(De===void 0){if(we.length){_e=setTimeout(()=>{Ce(),be==="pending"&&(Oe(),Ee())},ee.timeout);return}Ee();return}const Ie={status:"pending",resource:De,callback:(Le,We)=>{Ne(Ie,Le,We)}};we.push(Ie),ve++,_e=setTimeout(Re,ee.rotate),oe(De,ne,Ie.callback)}return setTimeout(Re),Pe}function initRedundancy(ee){const ne={...defaultConfig$1,...ee};let oe=[];function ae(){oe=oe.filter(fe=>fe().status==="pending")}function ie(fe,be,ve){const ye=sendQuery(ne,fe,be,(_e,we)=>{ae(),ve&&ve(_e,we)});return oe.push(ye),ye}function se(fe){return oe.find(be=>fe(be))||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 be=0;be{const be=browserCachePrefix+fe.toString(),ve=getStoredItem(oe,be);if(typeof ve=="string"){try{const ye=JSON.parse(ve);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,be)}};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,be=>{if(typeof be!="object")fe.icons.forEach(ve=>{ee.missing.add(ve)});else try{const ve=addIconSet(ee,be);if(!ve.length)return;const ye=ee.pendingIcons;ye&&ve.forEach(_e=>{ye.delete(_e)}),storeInBrowserStorage(ee,be)}catch(ve){console.error(ve)}loadedNewIcons(ee)})})}))}const loadIcons=(ee,ne)=>{const oe=listToIcons(ee,!0,allowSimpleNames()),ae=sortIcons(oe);if(!ae.pending.length){let be=!0;return ne&&setTimeout(()=>{be&&ne(ae.loaded,ae.missing,ae.pending,emptyCallback)}),()=>{be=!1}}const ie=Object.create(null),se=[];let de,fe;return ae.pending.forEach(be=>{const{provider:ve,prefix:ye}=be;if(ye===fe&&ve===de)return;de=ve,fe=ye,se.push(getStorage(ve,ye));const _e=ie[ve]||(ie[ve]=Object.create(null));_e[ye]||(_e[ye]=[])}),ae.pending.forEach(be=>{const{provider:ve,prefix:ye,name:_e}=be,we=getStorage(ve,ye),Ae=we.pendingIcons||(we.pendingIcons=new Set);Ae.has(_e)||(Ae.add(_e),ie[ve][ye].push(_e))}),se.forEach(be=>{const{provider:ve,prefix:ye}=be;ie[ve][ye].length&&loadNewIcons(be,ie[ve][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 $e in ne){const ke=ne[$e];if(ke!==void 0)switch($e){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[$e]=ke===!0||ke==="true"||ke===1;break;case"flip":typeof ke=="string"&&flipFromString(oe,ke);break;case"color":se.color=ke;break;case"rotate":typeof ke=="string"?oe[$e]=rotateFromString(ke):typeof ke=="number"&&(oe[$e]=ke);break;case"ariaHidden":case"aria-hidden":ke!==!0&&ke!=="true"&&delete ae["aria-hidden"];break;default:{const Pe=customisationAliases[$e];Pe?(ke===!0||ke==="true"||ke===1)&&(oe[Pe]=!0):defaultExtendedIconCustomisations[$e]===void 0&&(ae[$e]=ke)}}}const be=iconToSVG(ee,oe),ve=be.attributes;if(oe.inline&&(se.verticalAlign="-0.125em"),ie==="svg"){ae.style={...se,...fe},Object.assign(ae,ve);let $e=0,ke=ne.id;return typeof ke=="string"&&(ke=ke.replace(/-/g,"_")),ae.innerHTML=replaceIDs(be.body,ke?()=>ke+"ID"+$e++:"iconifyVue"),h$2("svg",ae)}const{body:ye,width:_e,height:we}=ee,Ae=ie==="mask"||(ie==="bg"?!1:ye.indexOf("currentColor")!==-1),Ce=iconToHTML(ye,{...ve,width:_e+"",height:we+""});return ae.style={...se,"--svg":svgToURL(Ce),width:fixSize(ve.width),height:fixSize(ve.height),...commonProps,...Ae?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)}}),_hoisted_1$6={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_hoisted_2$4=["xlink:href"],_hoisted_3$2=["src"],_sfc_main$9=defineComponent({name:"SvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{}},setup(ee){const ne=ee,oe=computed(()=>/^https?:\/\//.test(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:normalizeClass$1(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em]",{[ie.name]:unref(oe)==="unocss"}]),style:normalizeStyle$1(unref(ae))},[unref(oe)==="iconify"?(openBlock(),createBlock(unref(Icon$1),{key:0,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(),createElementBlock("img",{key:2,src:ie.name,class:"h-[1em] w-[1em]"},null,8,_hoisted_3$2)):createCommentVNode("",!0)],6))}});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$s(ee){typeof queueMicrotask=="function"?queueMicrotask(ee):Promise.resolve().then(ee).catch(ne=>setTimeout(()=>{throw ne}))}function o$3(){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$s(()=>{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$3();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}let t$r=Symbol("headlessui.useid"),i$6=0;function I$2(){return inject(t$r,()=>`${++i$6}`)()}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(Ce=>!ie.includes(Ce))),ae=ae??de.activeElement;let be=(()=>{if(ne&5)return 1;if(ne&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ve=(()=>{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,Ae;do{if(_e>=we||_e+we<=0)return 0;let Ce=ve+_e;if(ne&16)Ce=(Ce+we)%we;else{if(Ce<0)return 3;if(Ce>=we)return 1}Ae=fe[Ce],Ae==null||Ae.focus(ye),_e+=be}while(Ae!==de.activeElement);return ne&6&&I$1(Ae)&&Ae.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 be=function ve(ye){return typeof ye=="function"?ve(ye()):Array.isArray(ye)||ye instanceof Set?ye:[ye]}(ee);for(let ve of be){if(ve===null)continue;let ye=ve instanceof HTMLElement?ve:o$2(ve);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 be=(se=de.unmount)==null||se?0:1;return u$6(be,{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,...be}=T$2(ee,["unmount","static"]),ve=(se=oe.default)==null?void 0:se.call(oe,ae),ye={};if(ae){let _e=!1,we=[];for(let[Ae,Ce]of Object.entries(ae))typeof Ce=="boolean"&&(_e=!0),Ce===!0&&we.push(Ae);_e&&(ye["data-headlessui-state"]=we.join(" "))}if(fe==="template"){if(ve=b$1(ve??[]),Object.keys(be).length>0||Object.keys(ne).length>0){let[_e,...we]=ve??[];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(be).concat(Object.keys(ne)).map($e=>$e.trim()).filter(($e,ke,Pe)=>Pe.indexOf($e)===ke).sort(($e,ke)=>$e.localeCompare(ke)).map($e=>` - ${$e}`).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($e=>` - ${$e}`).join(` +`)].join(` +`));let Ae=j$1((de=_e.props)!=null?de:{},be,ye),Ce=cloneVNode(_e,Ae,!0);for(let $e in Ae)$e.startsWith("on")&&(Ce.props||(Ce.props={}),Ce.props[$e]=Ae[$e]);return Ce}return Array.isArray(ve)&&ve.length===1?ve[0]:ve}return h$2(fe,Object.assign({},be,ye),{default:()=>ve})}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 be=n$1();function ve(Ae){let Ce=o$2(ie);Ce&&($e=>$e())(()=>{u$6(be.value,{[d$5.Forwards]:()=>{P$2(Ce,N$5.First,{skipElements:[Ae.relatedTarget]})},[d$5.Backwards]:()=>{P$2(Ce,N$5.Last,{skipElements:[Ae.relatedTarget]})}})})}let ye=ref(!1);function _e(Ae){Ae.key==="Tab"&&(ye.value=!0,requestAnimationFrame(()=>{ye.value=!1}))}function we(Ae){if(!de.value)return;let Ce=B$1(ee.containers);o$2(ie)instanceof HTMLElement&&Ce.add(o$2(ie));let $e=Ae.relatedTarget;$e instanceof HTMLElement&&$e.dataset.headlessuiFocusGuard!=="true"&&(N$3(Ce,$e)||(ye.value?P$2(o$2(ie),u$6(be.value,{[d$5.Forwards]:()=>N$5.Next,[d$5.Backwards]:()=>N$5.Previous})|N$5.WrapAround,{relativeTo:Ae.target}):Ae.target instanceof HTMLElement&&S$2(Ae.target)))}return()=>{let Ae={},Ce={ref:ie,onKeydown:_e,onFocusout:we},{features:$e,initialFocus:ke,containers:Pe,...Ee}=ee;return h$2(Fragment,[!!($e&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:ve,features:u$4.Focusable}),A$3({ourProps:Ce,theirProps:{...ne,...Ee},slot:Ae,attrs:ne,slots:oe,name:"FocusTrap"}),!!($e&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:ve,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$s(()=>{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((ve,ye)=>(fe==null?void 0:fe[ye])===ve)||!ae.value)return;let be=o$2(ne);be&&t$s(()=>{var ve,ye;if(!se.value)return;let _e=o$2(oe),we=(ve=ee.value)==null?void 0:ve.activeElement;if(_e){if(_e===we){ie.value=we;return}}else if(be.contains(we)){ie.value=we;return}_e?S$2(_e):P$2(be,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 be=ae.value;if(!be)return;let ve=de.target;ve&&ve instanceof HTMLElement?N$3(fe,ve)?(ae.value=ve,S$2(ve)):(de.preventDefault(),de.stopPropagation(),S$2(be)):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$3();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 be=fe.target.closest("a");if(!be)return;let{hash:ve}=new URL(be.href),ye=ee.querySelector(ve);ye&&!ae(ye)&&(de=ye)}catch{}},!0),ne.addEventListener(ee,"touchstart",fe=>{if(fe.target instanceof HTMLElement)if(ae(fe.target)){let be=fe.target;for(;be.parentElement&&ae(be.parentElement);)be=be.parentElement;ne.style(be,"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 be=fe.target;for(;be.parentElement&&be.dataset.headlessuiPortal!==""&&!(be.scrollHeight>be.clientHeight||be.scrollWidth>be.clientWidth);)be=be.parentElement;be.dataset.headlessuiPortal===""&&fe.preventDefault()}else fe.preventDefault()}},{passive:!1}),ne.add(()=>{var fe;let be=(fe=window.scrollY)!=null?fe:window.pageYOffset;se!==be&&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$3(),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],be)=>{if(!se||!de)return;a$1.dispatch("PUSH",se,oe);let ve=!1;be(()=>{ve||(a$1.dispatch("POP",fe??se,oe),ve=!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 be=i$1.get(ie);be&&(be["aria-hidden"]===null?ie.removeAttribute("aria-hidden"):ie.setAttribute("aria-hidden",be["aria-hidden"]),ie.inert=be.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,be;let ve=[];for(let ye of ee)ye!==null&&(ye instanceof HTMLElement?ve.push(ye):"value"in ye&&ye.value instanceof HTMLElement&&ve.push(ye.value));if(ne!=null&&ne.value)for(let ye of ne.value)ve.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((be=(fe=o$2(ae))==null?void 0:fe.getRootNode())==null?void 0:be.host)||ve.some(_e=>ye.contains(_e))||ve.push(ye));return ve}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$2()}`,se=w$1();return onMounted(()=>onUnmounted(se.register(ie))),()=>{let{name:de="Description",slot:fe=ref({}),props:be={}}=se,{...ve}=ee,ye={...Object.entries(be).reduce((_e,[we,Ae])=>Object.assign(_e,{[we]:unref(Ae)}),{}),id:ie};return A$3({ourProps:ye,theirProps:ve,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 be=ref(!1);onMounted(()=>{be.value=!0}),watchEffect(()=>{se||de!=null&&(fe.value=de.resolveTarget())});let ve=inject(d$3,null),ye=!1,_e=getCurrentInstance();return watch(ae,()=>{if(ye||!ve)return;let we=o$2(ae);we&&(onUnmounted(ve.register(we),_e),ye=!0)}),onUnmounted(()=>{var we,Ae;let Ce=(we=ie.value)==null?void 0:we.getElementById("headlessui-portal-root");!Ce||fe.value!==Ce||M$1(fe.value,$e=>$e-1)||fe.value.children.length>0||(Ae=fe.value.parentElement)==null||Ae.removeChild(fe.value)}),()=>{if(!be.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$2()}`,be=ref(!1);onMounted(()=>{be.value=!0});let ve=!1,ye=computed(()=>ee.role==="dialog"||ee.role==="alertdialog"?ee.role:(ve||(ve=!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(),Ae=computed(()=>ee.open===A$1&&we!==null?(we.value&i$2.Open)===i$2.Open:ee.open),Ce=ref(null),$e=computed(()=>i$4(Ce));if(ie({el:Ce,$el:Ce}),!(ee.open!==A$1||we!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof Ae.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${Ae.value===A$1?void 0:ee.open}`);let ke=computed(()=>be.value&&Ae.value?0:1),Pe=computed(()=>ke.value===0),Ee=computed(()=>_e.value>1),Oe=inject(H$1,null)!==null,[Ne,Re]=q$1(),{resolveContainers:De,mainTreeNodeRef:Ie,MainTreeNode:Le}=N$2({portals:Ne,defaultContainers:[computed(()=>{var Ke;return(Ke=Qe.panelRef.value)!=null?Ke:Ce.value})]}),We=computed(()=>Ee.value?"parent":"leaf"),He=computed(()=>we!==null?(we.value&i$2.Closing)===i$2.Closing:!1),Be=computed(()=>Oe||He.value?!1:Pe.value),Fe=computed(()=>{var Ke,Vt,tn;return(tn=Array.from((Vt=(Ke=$e.value)==null?void 0:Ke.querySelectorAll("body > *"))!=null?Vt:[]).find(ln=>ln.id==="headlessui-portal-root"?!1:ln.contains(o$2(Ie))&&ln instanceof HTMLElement))!=null?tn:null});E$1(Fe,Be);let Ze=computed(()=>Ee.value?!0:Pe.value),qe=computed(()=>{var Ke,Vt,tn;return(tn=Array.from((Vt=(Ke=$e.value)==null?void 0:Ke.querySelectorAll("[data-headlessui-portal]"))!=null?Vt:[]).find(ln=>ln.contains(o$2(Ie))&&ln instanceof HTMLElement))!=null?tn:null});E$1(qe,Ze),R$2({type:"Dialog",enabled:computed(()=>ke.value===0),element:Ce,onUpdate:(Ke,Vt)=>{if(Vt==="Dialog")return u$6(Ke,{[s$1.Add]:()=>_e.value+=1,[s$1.Remove]:()=>_e.value-=1})}});let ze=k$1({name:"DialogDescription",slot:computed(()=>({open:Ae.value}))}),je=ref(null),Qe={titleId:je,panelRef:ref(null),dialogState:ke,setTitleId(Ke){je.value!==Ke&&(je.value=Ke)},close(){ne("close",!1)}};provide(H$1,Qe);let At=computed(()=>!(!Pe.value||Ee.value));w$3(De,(Ke,Vt)=>{Ke.preventDefault(),Qe.close(),nextTick(()=>Vt==null?void 0:Vt.focus())},At);let Rt=computed(()=>!(Ee.value||ke.value!==0));E$2((de=$e.value)==null?void 0:de.defaultView,"keydown",Ke=>{Rt.value&&(Ke.defaultPrevented||Ke.key===o$1.Escape&&(Ke.preventDefault(),Ke.stopPropagation(),Qe.close()))});let Dt=computed(()=>!(He.value||ke.value!==0||Oe));return d$4($e,Dt,Ke=>{var Vt;return{containers:[...(Vt=Ke.containers)!=null?Vt:[],De]}}),watchEffect(Ke=>{if(ke.value!==0)return;let Vt=o$2(Ce);if(!Vt)return;let tn=new ResizeObserver(ln=>{for(let Gt of ln){let rn=Gt.target.getBoundingClientRect();rn.x===0&&rn.y===0&&rn.width===0&&rn.height===0&&Qe.close()}});tn.observe(Vt),Ke(()=>tn.disconnect())}),()=>{let{open:Ke,initialFocus:Vt,...tn}=ee,ln={...oe,ref:Ce,id:fe,role:ye.value,"aria-modal":ke.value===0?!0:void 0,"aria-labelledby":je.value,"aria-describedby":ze.value},Gt={open:ke.value===0};return h$2(u$3,{force:!0},()=>[h$2($$1,()=>h$2(z$1,{target:Ce.value},()=>h$2(u$3,{force:!1},()=>h$2(ue$1,{initialFocus:Vt,containers:De,features:Pe.value?u$6(We.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:ln,theirProps:{...tn,...oe},slot:Gt,attrs:oe,slots:ae,visible:ke.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$2()}`,de=T$1("DialogPanel");ae({el:de.panelRef,$el:de.panelRef});function fe(be){be.stopPropagation()}return()=>{let{...be}=ee,ve={id:se,ref:de.panelRef,onClick:fe};return A$3({ourProps:ve,theirProps:be,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$2()}`,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$2()}`,fe=inject(C$2,null),[be,ve]=d$7(computed(()=>ee.modelValue),Ee=>ne("update:modelValue",Ee),computed(()=>ee.defaultChecked));function ye(){ve(!be.value)}let _e=ref(null),we=fe===null?_e:fe.switchRef,Ae=s$4(computed(()=>({as:ee.as,type:oe.type})),we);ie({el:we,$el:we});function Ce(Ee){Ee.preventDefault(),ye()}function $e(Ee){Ee.key===o$1.Space?(Ee.preventDefault(),ye()):Ee.key===o$1.Enter&&p$1(Ee.currentTarget)}function ke(Ee){Ee.preventDefault()}let Pe=computed(()=>{var Ee,Oe;return(Oe=(Ee=o$2(we))==null?void 0:Ee.closest)==null?void 0:Oe.call(Ee,"form")});return onMounted(()=>{watch([Pe],()=>{if(!Pe.value||ee.defaultChecked===void 0)return;function Ee(){ve(ee.defaultChecked)}return Pe.value.addEventListener("reset",Ee),()=>{var Oe;(Oe=Pe.value)==null||Oe.removeEventListener("reset",Ee)}},{immediate:!0})}),()=>{let{name:Ee,value:Oe,form:Ne,tabIndex:Re,...De}=ee,Ie={checked:be.value},Le={id:de,ref:we,role:"switch",type:Ae.value,tabIndex:Re===-1?0:Re,"aria-checked":be.value,"aria-labelledby":fe==null?void 0:fe.labelledby.value,"aria-describedby":fe==null?void 0:fe.describedby.value,onClick:Ce,onKeyup:$e,onKeypress:ke};return h$2(Fragment,[Ee!=null&&be.value!=null?h$2(f$2,E$3({features:u$4.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:be.value,form:Ne,disabled:De.disabled,name:Ee,value:Oe})):null,A$3({ourProps:Le,theirProps:{...oe,...T$2(De,["modelValue","defaultChecked"])},slot:Ie,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([]),be=computed(()=>ee.selectedIndex!==null),ve=computed(()=>be.value?ee.selectedIndex:se.value);function ye($e){var ke;let Pe=O$1(_e.tabs.value,o$2),Ee=O$1(_e.panels.value,o$2),Oe=Pe.filter(Ne=>{var Re;return!((Re=o$2(Ne))!=null&&Re.hasAttribute("disabled"))});if($e<0||$e>Pe.length-1){let Ne=u$6(se.value===null?0:Math.sign($e-se.value),{[-1]:()=>1,0:()=>u$6(Math.sign($e),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),Re=u$6(Ne,{0:()=>Pe.indexOf(Oe[0]),1:()=>Pe.indexOf(Oe[Oe.length-1])});Re!==-1&&(se.value=Re),_e.tabs.value=Pe,_e.panels.value=Ee}else{let Ne=Pe.slice(0,$e),Re=[...Pe.slice($e),...Ne].find(Ie=>Oe.includes(Ie));if(!Re)return;let De=(ke=Pe.indexOf(Re))!=null?ke:_e.selectedIndex.value;De===-1&&(De=_e.selectedIndex.value),se.value=De,_e.tabs.value=Pe,_e.panels.value=Ee}}let _e={selectedIndex:computed(()=>{var $e,ke;return(ke=($e=se.value)!=null?$e:ee.defaultIndex)!=null?ke:null}),orientation:computed(()=>ee.vertical?"vertical":"horizontal"),activation:computed(()=>ee.manual?"manual":"auto"),tabs:de,panels:fe,setSelectedIndex($e){ve.value!==$e&&ae("change",$e),be.value||ye($e)},registerTab($e){var ke;if(de.value.includes($e))return;let Pe=de.value[se.value];if(de.value.push($e),de.value=O$1(de.value,o$2),!be.value){let Ee=(ke=de.value.indexOf(Pe))!=null?ke:se.value;Ee!==-1&&(se.value=Ee)}},unregisterTab($e){let ke=de.value.indexOf($e);ke!==-1&&de.value.splice(ke,1)},registerPanel($e){fe.value.includes($e)||(fe.value.push($e),fe.value=O$1(fe.value,o$2))},unregisterPanel($e){let ke=fe.value.indexOf($e);ke!==-1&&fe.value.splice(ke,1)}};provide(U$1,_e);let we=ref({tabs:[],panels:[]}),Ae=ref(!1);onMounted(()=>{Ae.value=!0}),provide(G$1,computed(()=>Ae.value?null:we.value));let Ce=computed(()=>ee.selectedIndex);return onMounted(()=>{watch([Ce],()=>{var $e;return ye(($e=ee.selectedIndex)!=null?$e:ee.defaultIndex)},{immediate:!0})}),watchEffect(()=>{if(!be.value||ve.value==null||_e.tabs.value.length<=0)return;let $e=O$1(_e.tabs.value,o$2);$e.some((ke,Pe)=>o$2(_e.tabs.value[Pe])!==o$2(ke))&&_e.setSelectedIndex($e.findIndex(ke=>o$2(ke)===o$2(_e.tabs.value[ve.value])))}),()=>{let $e={selectedIndex:se.value};return h$2(Fragment,[de.value.length<=0&&h$2(d$2,{onFocus:()=>{for(let ke of de.value){let Pe=o$2(ke);if((Pe==null?void 0:Pe.tabIndex)===0)return Pe.focus(),!0}return!1}}),A$3({theirProps:{...oe,...T$2(ee,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:$e,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$2()}`,de=C$1("Tab"),fe=ref(null);ae({el:fe,$el:fe}),onMounted(()=>de.registerTab(fe)),onUnmounted(()=>de.unregisterTab(fe));let be=inject(G$1),ve=computed(()=>{if(be.value){let Ee=be.value.tabs.indexOf(se);return Ee===-1?be.value.tabs.push(se)-1:Ee}return-1}),ye=computed(()=>{let Ee=de.tabs.value.indexOf(fe);return Ee===-1?ve.value:Ee}),_e=computed(()=>ye.value===de.selectedIndex.value);function we(Ee){var Oe;let Ne=Ee();if(Ne===T$3.Success&&de.activation.value==="auto"){let Re=(Oe=i$4(fe))==null?void 0:Oe.activeElement,De=de.tabs.value.findIndex(Ie=>o$2(Ie)===Re);De!==-1&&de.setSelectedIndex(De)}return Ne}function Ae(Ee){let Oe=de.tabs.value.map(Ne=>o$2(Ne)).filter(Boolean);if(Ee.key===o$1.Space||Ee.key===o$1.Enter){Ee.preventDefault(),Ee.stopPropagation(),de.setSelectedIndex(ye.value);return}switch(Ee.key){case o$1.Home:case o$1.PageUp:return Ee.preventDefault(),Ee.stopPropagation(),we(()=>P$2(Oe,N$5.First));case o$1.End:case o$1.PageDown:return Ee.preventDefault(),Ee.stopPropagation(),we(()=>P$2(Oe,N$5.Last))}if(we(()=>u$6(de.orientation.value,{vertical(){return Ee.key===o$1.ArrowUp?P$2(Oe,N$5.Previous|N$5.WrapAround):Ee.key===o$1.ArrowDown?P$2(Oe,N$5.Next|N$5.WrapAround):T$3.Error},horizontal(){return Ee.key===o$1.ArrowLeft?P$2(Oe,N$5.Previous|N$5.WrapAround):Ee.key===o$1.ArrowRight?P$2(Oe,N$5.Next|N$5.WrapAround):T$3.Error}}))===T$3.Success)return Ee.preventDefault()}let Ce=ref(!1);function $e(){var Ee;Ce.value||(Ce.value=!0,!ee.disabled&&((Ee=o$2(fe))==null||Ee.focus({preventScroll:!0}),de.setSelectedIndex(ye.value),t$s(()=>{Ce.value=!1})))}function ke(Ee){Ee.preventDefault()}let Pe=s$4(computed(()=>({as:ee.as,type:ne.type})),fe);return()=>{var Ee,Oe;let Ne={selected:_e.value,disabled:(Ee=ee.disabled)!=null?Ee:!1},{...Re}=ee,De={ref:fe,onKeydown:Ae,onMousedown:ke,onClick:$e,id:se,role:"tab",type:Pe.value,"aria-controls":(Oe=o$2(de.panels.value[ye.value]))==null?void 0:Oe.id,"aria-selected":_e.value,tabIndex:_e.value?0:-1,disabled:ee.disabled?!0:void 0};return A$3({ourProps:De,theirProps:Re,slot:Ne,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$3();if(!ee)return oe.dispose;let{transitionDuration:ae,transitionDelay:ie}=getComputedStyle(ee),[se,de]=[ae,ie].map(fe=>{let[be=0]=fe.split(",").filter(Boolean).map(ve=>ve.includes("ms")?parseFloat(ve):parseFloat(ve)*1e3).sort((ve,ye)=>ye-ve);return be});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$3(),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,be=>(d$1(ee,...ae,...ne),m$1(ee,...ie),fe(be))))}),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:be})=>be===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 be(){se.value|=i$2.Closing,ne("beforeLeave")}function ve(){se.value&=~i$2.Closing,ne("afterLeave")}if(!me()&&s$3())return()=>h$2(Se,{...ee,onBeforeEnter:de,onAfterEnter:fe,onBeforeLeave:be,onAfterLeave:ve},ae);let ye=ref(null),_e=computed(()=>ee.unmount?S$1.Unmount:S$1.Hidden);ie({el:ye,$el:ye});let{show:we,appear:Ae}=Te(),{register:Ce,unregister:$e}=ge(),ke=ref(we.value?"visible":"hidden"),Pe={value:!0},Ee=I$2(),Oe={value:!1},Ne=Q$1(()=>{!Oe.value&&ke.value!=="hidden"&&(ke.value="hidden",$e(Ee),ve())});onMounted(()=>{let Ze=Ce(Ee);onUnmounted(Ze)}),watchEffect(()=>{if(_e.value===S$1.Hidden&&Ee){if(we.value&&ke.value!=="visible"){ke.value="visible";return}u$6(ke.value,{hidden:()=>$e(Ee),visible:()=>Ce(Ee)})}});let Re=g$2(ee.enter),De=g$2(ee.enterFrom),Ie=g$2(ee.enterTo),Le=g$2(ee.entered),We=g$2(ee.leave),He=g$2(ee.leaveFrom),Be=g$2(ee.leaveTo);onMounted(()=>{watchEffect(()=>{if(ke.value==="visible"){let Ze=o$2(ye);if(Ze instanceof Comment&&Ze.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function Fe(Ze){let qe=Pe.value&&!Ae.value,ze=o$2(ye);!ze||!(ze instanceof HTMLElement)||qe||(Oe.value=!0,we.value&&de(),we.value||be(),Ze(we.value?L$2(ze,Re,De,Ie,Le,je=>{Oe.value=!1,je===g$3.Finished&&fe()}):L$2(ze,We,He,Be,Le,je=>{Oe.value=!1,je===g$3.Finished&&(L$1(Ne)||(ke.value="hidden",$e(Ee),ve()))})))}return onMounted(()=>{watch([we],(Ze,qe,ze)=>{Fe(ze),Pe.value=!1},{immediate:!0})}),provide(N$1,Ne),t$p(computed(()=>u$6(ke.value,{visible:i$2.Open,hidden:i$2.Closed})|se.value)),()=>{let{appear:Ze,show:qe,enter:ze,enterFrom:je,enterTo:Qe,entered:At,leave:Rt,leaveFrom:Dt,leaveTo:Ke,...Vt}=ee,tn={ref:ye},ln={...Vt,...Ae.value&&we.value&&c$3.isServer?{class:normalizeClass$1([oe.class,Vt.class,...Re,...De])}:{}};return A$3({theirProps:ln,ourProps:tn,slot:{},slots:ae,attrs:oe,features:W$1,visible:ke.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"}),be=ref(!0),ve={show:se,appear:computed(()=>ee.appear||!be.value)};return onMounted(()=>{watchEffect(()=>{be.value=!1,se.value?de.value="visible":L$1(fe)||(de.value="hidden")})}),provide(N$1,fe),provide(R$1,ve),()=>{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.8.3 + * + * 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,Ae=ye,Ce=_e||(ae?!ae(we,Ae):we!==Ae);return(Ce||ie)&&(se=Ae,de=we),[se,Ce,de]};return[ne?ye=>fe(ne(se,de),ye):fe,ye=>[se,!!ye,de]]},t$l=typeof window<"u"&&typeof document<"u",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"),p=getApi("ScrollTimeline"),v=t$l&&Node.ELEMENT_NODE,{toString:h,hasOwnProperty:g$1}=Object.prototype,isUndefined$1=ee=>ee===void 0,isNull=ee=>ee===null,isNumber$2=ee=>typeof ee=="number",isString$4=ee=>typeof ee=="string",isBoolean$2=ee=>typeof ee=="boolean",isFunction$4=ee=>typeof ee=="function",isArray$5=ee=>Array.isArray(ee),isObject$9=ee=>typeof ee=="object"&&!isArray$5(ee)&&!isNull(ee),isArrayLike$1=ee=>{const ne=!!ee&&ee.length,oe=isNumber$2(ne)&&ne>-1&&ne%1==0;return isArray$5(ee)||!isFunction$4(ee)&&oe?ne>0&&isObject$9(ee)?ne-1 in ee:!0:!1},isPlainObject$4=ee=>{if(!ee||!isObject$9(ee))return!1;let ne;const oe="constructor",ae=ee[oe],ie=ae&&ae.prototype,se=g$1.call(ee,oe),de=ie&&g$1.call(ie,"isPrototypeOf");if(ae&&!se&&!de)return!1;for(ne in ee);return isUndefined$1(ne)||g$1.call(ee,ne)},isHTMLElement$1=ee=>{const ne=HTMLElement;return ee?ne?ee instanceof ne:ee.nodeType===v:!1},isElement$2=ee=>{const ne=Element;return ee?ne?ee instanceof ne:ee.nodeType===v:!1};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$4(ne)&&isArrayLike$1(ne)?Array.prototype.push.apply(ee,ne):ee.push(ne),ee),from=ee=>Array.from(ee||[]),createOrKeepArray=ee=>isArray$5(ee)?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||[])),!oe&&(ee.length=0)},b="paddingTop",w="paddingRight",y="paddingLeft",m="paddingBottom",S="marginLeft",O="marginRight",$="marginBottom",C="overflowX",x$1="overflowY",H="width",E="height",z="visible",I="hidden",A="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$5=()=>{},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$4(ee)?ee():ee)},()=>ae(ne)]},debounce$1=(ee,ne)=>{const{_:oe,p:ae,v:ie,m:se}=ne||{};let de,fe,be,ve,ye=noop$5;const _e=function(ke){ye(),u(de),ve=de=fe=void 0,ye=noop$5,ee.apply(this,ke)},we=$e=>se&&fe?se(fe,$e):$e,Ae=()=>{ye!==noop$5&&_e(we(be)||be)},Ce=function(){const ke=from(arguments),Pe=isFunction$4(oe)?oe():oe;if(isNumber$2(Pe)&&Pe>=0){const Oe=isFunction$4(ae)?ae():ae,Ne=isNumber$2(Oe)&&Oe>=0,Re=Pe>0?a:i,De=Pe>0?u:l,Le=we(ke)||ke,We=_e.bind(0,Le);let He;ye(),ie&&!ve?(We(),ve=!0,He=Re(()=>ve=void 0,Pe)):(He=Re(We,Pe),Ne&&!de&&(de=a(Ae,Oe))),ye=()=>De(He),fe=be=Le}else _e(ke)};return Ce.S=Ae,Ce},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$4(ee)&&(ee={}),each(fe,be=>{each(be,(ve,ye)=>{const _e=be[ye];if(ee===_e)return!0;const we=isArray$5(_e);if(_e&&isPlainObject$4(_e)){const Ae=ee[ye];let Ce=Ae;we&&!isArray$5(Ae)?Ce=[]:!we&&!isPlainObject$4(Ae)&&(Ce={}),ee[ye]=assignDeep(Ce,_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=>{for(const ne in ee)return!1;return!0},capNumber=(ee,ne,oe)=>o(ee,s(ne,oe)),getDomTokensArray=ee=>from(new Set((isArray$5(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),be=>{fe[de](be)}),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,be)=>fe&&oe.includes(be),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=[],ae=ne?isElement$2(ne)&&ne:document;return ae?push(oe,ae.querySelectorAll(ee)):oe},findFirst=(ee,ne)=>{const oe=ne?isElement$2(ne)&&ne:document;return oe?oe.querySelector(ee):null},is=(ee,ne)=>isElement$2(ee)?ee.matches(ne):!1,isBodyElement=ee=>is(ee,"body"),contents=ee=>ee?from(ee.childNodes):[],parent$1=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=>{if(isArrayLike$1(ee))each(from(ee),ne=>removeElements(ne));else if(ee){const ne=parent$1(ee);ne&&ne.removeChild(ee)}},before=(ee,ne,oe)=>{if(oe&&ee){let ae=ne,ie;return isArrayLike$1(oe)?(ie=document.createDocumentFragment(),each(oe,se=>{se===ae&&(ae=se.previousSibling),ie.appendChild(se)})):ie=oe,ne&&(ae?ae!==ne&&(ae=ae.nextSibling):ae=ee.firstChild),ee.insertBefore(ie,ae||null),()=>removeElements(oe)}return noop$5},appendChildren=(ee,ne)=>before(ee,null,ne),insertAfter=(ee,ne)=>before(parent$1(ee),ee&&ee.nextSibling,ne),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))},T=/^--/,getCSSVal=(ee,ne)=>ee.getPropertyValue(ne)||ee[ne]||"",validFiniteNumber=ee=>{const ne=ee||0;return isFinite(ne)?ne:0},parseToZeroOrNumber=ee=>validFiniteNumber(parseFloat(ee||"")),ratioToCssPercent=ee=>`${(validFiniteNumber(ee)*100).toFixed(3)}%`,numberToCssPx=ee=>`${validFiniteNumber(ee)}px`;function setStyles(ee,ne){ee&&ne&&each(ne,(oe,ae)=>{try{const ie=ee.style,se=isNumber$2(oe)?numberToCssPx(oe):(oe||"")+"";T.test(ae)?ie.setProperty(ae,se):ie[ae]=se}catch{}})}function getStyles(ee,ne,oe){const ae=isString$4(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}`,be=`${ae}left${ie}`,ve=getStyles(ee,[se,de,fe,be]);return{t:parseToZeroOrNumber(ve[se]),r:parseToZeroOrNumber(ve[de]),b:parseToZeroOrNumber(ve[fe]),l:parseToZeroOrNumber(ve[be])}},getTrasformTranslateValue=(ee,ne)=>`translate${isObject$9(ee)?`(${ee.x},${ee.y})`:`${ne?"X":"Y"}(${ee})`}`,elementHasDimensions=ee=>!!(ee.offsetWidth||ee.offsetHeight||ee.getClientRects().length),D={w:0,h:0},getElmWidthHeightProperty=(ee,ne)=>ne?{w:ne[`${ee}Width`],h:ne[`${ee}Height`]}:D,getWindowSize=ee=>getElmWidthHeightProperty("inner",ee||n),k=bind$1(getElmWidthHeightProperty,"offset"),M=bind$1(getElmWidthHeightProperty,"client"),R=bind$1(getElmWidthHeightProperty,"scroll"),getFractionalSize=ee=>{const ne=parseFloat(getStyles(ee,H))||0,oe=parseFloat(getStyles(ee,E))||0;return{w:ne-e(ne),h:oe-e(oe)}},getBoundingClientRect$1=ee=>ee.getBoundingClientRect(),hasDimensions=ee=>!!ee&&elementHasDimensions(ee),domRectHasDimensions=ee=>!!(ee&&(ee[E]||ee[H])),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,be={passive:se,capture:de};return bind$1(runEachAndClear,getDomTokensArray(ne).map(ve=>{const ye=fe?_e=>{removeEventListener(ee,ve,ye,de),oe&&oe(_e)}:oe;return ee&&ee.addEventListener(ve,ye,be),bind$1(removeEventListener,ee,ve,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=()=>({T:{x:0,y:0},D:{x:0,y:0}}),sanitizeScrollCoordinates=(ee,ne)=>{const{T:oe,D:ae}=ee,{w:ie,h:se}=ne,de=(_e,we,Ae)=>{let Ce=r(_e)*Ae,$e=r(we)*Ae;if(Ce===$e){const ke=c(_e),Pe=c(we);$e=ke>Pe?0:$e,Ce=ke{const oe=(ae,ie)=>ae===0&&ae<=ie;return{x:oe(ee.x,ne.x),y:oe(ee.y,ne.y)}},getScrollCoordinatesPercent=({T:ee,D: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(be=>{fe&&fe[be?"delete":"clear"](be)},de)}else ne.forEach(fe=>{fe.clear()}),ne.clear()},ae=(se,de)=>{if(isString$4(se)){const ve=ne.get(se)||new Set;return ne.set(se,ve),manageListener(ye=>{isFunction$4(ye)&&ve.add(ye)},de),bind$1(oe,se,de)}isBoolean$2(de)&&de&&oe();const fe=keys$1(se),be=[];return each(fe,ve=>{const ye=se[ve];ye&&push(be,ae(ve,ye))}),bind$1(runEachAndClear,be)},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$4(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,V={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$9(se)&&isObject$9(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$5(se)||isArray$5(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],L="data-overlayscrollbars",P$1="os-environment",U=`${P$1}-scrollbar-hidden`,N=`${L}-initialize`,q="noClipping",B=`${L}-body`,F=L,j="host",X=`${L}-viewport`,Y=C,W=x$1,J="arrange",K="measuring",G="scrollbarHidden",Q="scrollbarPressed",Z="noContent",tt=`${L}-padding`,nt=`${L}-content`,ot="os-size-observer",st=`${ot}-appear`,et=`${ot}-listener`,it="os-trinsic-observer",at="os-theme-none",ut="os-scrollbar",_t=`${ut}-rtl`,dt=`${ut}-horizontal`,ft=`${ut}-vertical`,pt=`${ut}-track`,vt=`${ut}-handle`,ht=`${ut}-visible`,gt=`${ut}-cornerless`,bt=`${ut}-interaction`,wt=`${ut}-unusable`,yt=`${ut}-auto-hide`,mt=`${yt}-hidden`,St=`${ut}-wheel`,Ot=`${pt}-interactive`,$t$1=`${vt}-interactive`;let Ct;const createEnvironment=()=>{const ee=(Ee,Oe,Ne)=>{appendChildren(document.body,Ee),appendChildren(document.body,Ee);const Re=M(Ee),De=k(Ee),Ie=getFractionalSize(Oe);return Ne&&removeElements(Ee),{x:De.h-Re.h+Ie.h,y:De.w-Re.w+Ie.w}},ne=Ee=>{let Oe=!1;const Ne=addClass(Ee,U);try{Oe=getStyles(Ee,"scrollbar-width")==="none"||getStyles(Ee,"display","::-webkit-scrollbar")==="none"}catch{}return Ne(),Oe},oe=`.${P$1}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${P$1} div{width:200%;height:200%;margin:10px 0}.${U}{scrollbar-width:none!important}.${U}::-webkit-scrollbar,.${U}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,ie=createDOM(`
`)[0],se=ie.firstChild,[de,,fe]=createEventListenerHub(),[be,ve]=createCache({o:ee(ie,se),i:equalXY},bind$1(ee,ie,se,!0)),[ye]=ve(),_e=ne(ie),we={x:ye.x===0,y:ye.y===0},Ae={elements:{host:null,padding:!_e,viewport:Ee=>_e&&isBodyElement(Ee)&&Ee,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},Ce=assignDeep({},V),$e=bind$1(assignDeep,{},Ce),ke=bind$1(assignDeep,{},Ae),Pe={k:ye,M:we,R:_e,V:!!p,L:bind$1(de,"r"),P:ke,U:Ee=>assignDeep(Ae,Ee)&&ke(),N:$e,q:Ee=>assignDeep(Ce,Ee)&&$e(),B:assignDeep({},Ae),F:assignDeep({},Ce)};if(removeAttrs(ie,"style"),removeElements(ie),addEventListener(n,"resize",()=>{fe("r",[])}),isFunction$4(n.matchMedia)&&!_e&&(!we.x||!we.y)){const Ee=Oe=>{const Ne=n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);addEventListener(Ne,"change",()=>{Oe(),Ee(Oe)},{A:!0})};Ee(()=>{const[Oe,Ne]=be();assignDeep(Pe.k,Oe),fe("r",[Ne])})}return Pe},getEnvironment=()=>(Ct||(Ct=createEnvironment()),Ct),resolveInitialization=(ee,ne)=>isFunction$4(ne)?ne.apply(0,ee):ne,staticInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$1(ae)?oe:ae;return resolveInitialization(ee,ie)||ne.apply(0,ee)},dynamicInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$1(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||{},{M:ie,R:se,P:de}=getEnvironment(),{nativeScrollbarsOverlaid:fe,body:be}=de().cancel,ve=oe??fe,ye=isUndefined$1(ae)?be:ae,_e=(ie.x||ie.y)&&ve,we=ee&&(isNull(ye)?!se:ye);return!!_e||!!we},xt=new WeakMap,addInstance=(ee,ne)=>{xt.set(ee,ne)},removeInstance=ee=>{xt.delete(ee)},getInstance$1=ee=>xt.get(ee),createEventContentChange=(ee,ne,oe)=>{let ae=!1;const ie=oe?new WeakMap:!1,se=()=>{ae=!0},de=fe=>{if(ie&&oe){const be=oe.map(ve=>{const[ye,_e]=ve||[];return[_e&&ye?(fe||find)(ye,ee):[],_e]});each(be,ve=>each(ve[0],ye=>{const _e=ve[1],we=ie.get(ye)||[];if(ee.contains(ye)&&_e){const Ce=addEventListener(ye,_e,$e=>{ae?(Ce(),ie.delete(ye)):ne($e)});ie.set(ye,push(we,Ce))}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:be,J:ve,K:ye}=ae||{},_e=debounce$1(()=>ie&&oe(!0),{_:33,p:99}),[we,Ae]=createEventContentChange(ee,_e,fe),Ce=se||[],$e=de||[],ke=concat(Ce,$e),Pe=(Oe,Ne)=>{if(!isEmptyArray(Ne)){const Re=ve||noop$5,De=ye||noop$5,Ie=[],Le=[];let We=!1,He=!1;if(each(Ne,Be=>{const{attributeName:Fe,target:Ze,type:qe,oldValue:ze,addedNodes:je,removedNodes:Qe}=Be,At=qe==="attributes",Rt=qe==="childList",Dt=ee===Ze,Ke=At&&Fe,Vt=Ke&&getAttr(Ze,Fe||""),tn=isString$4(Vt)?Vt:null,ln=Ke&&ze!==tn,Gt=inArray($e,Fe)&&ln;if(ne&&(Rt||!Dt)){const rn=At&&ln,ct=rn&&be&&is(Ze,be),Kt=(ct?!Re(Ze,Fe,ze,tn):!At||rn)&&!De(Be,!!ct,ee,ae);each(je,Zt=>push(Ie,Zt)),each(Qe,Zt=>push(Ie,Zt)),He=He||Kt}!ne&&Dt&&ln&&!Re(Ze,Fe,ze,tn)&&(push(Le,Fe),We=We||Gt)}),Ae(Be=>deduplicateArray(Ie).reduce((Fe,Ze)=>(push(Fe,find(Be,Ze)),is(Ze,Be)?push(Fe,Ze):Fe),[])),ne)return!Oe&&He&&oe(!1),[!1];if(!isEmptyArray(Le)||We){const Be=[deduplicateArray(Le),We];return!Oe&&oe.apply(0,Be),Be}}},Ee=new _(bind$1(Pe,!1));return[()=>(Ee.observe(ee,{attributes:!0,attributeOldValue:!0,attributeFilter:ke,subtree:ne,childList:ne,characterData:ne}),ie=!0,()=>{ie&&(we(),Ee.disconnect(),ie=!1)}),()=>{if(ie)return _e.S(),Pe(!0,Ee.takeRecords())}]},Ht={},Et={},addPlugins=ee=>{each(ee,ne=>each(ne,(oe,ae)=>{Ht[ae]=ne[ae]}))},registerPluginModuleInstances=(ee,ne,oe)=>keys$1(ee).map(ae=>{const{static:ie,instance:se}=ee[ae],[de,fe,be]=oe||[],ve=oe?se:ie;if(ve){const ye=oe?ve(de,fe,ne):ve(ne);return(be||Et)[ae]=ye}}),getStaticPluginModuleInstance=ee=>Et[ee],zt="__osOptionsValidationPlugin",It="__osSizeObserverPlugin",getShowNativeOverlaidScrollbars=(ee,ne)=>{const{M:oe}=ne,[ae,ie]=ee("showNativeOverlaidScrollbars");return[ae&&oe.x&&oe.y,ie]},overflowIsVisible=ee=>ee.indexOf(z)===0,createViewportOverflowState=(ee,ne)=>{const oe=(ie,se,de,fe)=>{const be=ie===z?I:ie.replace(`${z}-`,""),ve=overflowIsVisible(ie),ye=overflowIsVisible(de);return!se&&!fe?I:ve&&ye?z:ve?se&&fe?be:se?z:I:se?be:ye&&fe?z:I},ae={x:oe(ne.x,ee.x,ne.y,ee.y),y:oe(ne.y,ee.y,ne.x,ee.x)};return{G:ae,Z:{x:ae.x===A,y:ae.y===A}}},Tt="__osScrollbarsHidingPlugin",kt="__osClickScrollPlugin",createSizeObserver=(ee,ne,oe)=>{const{dt:ae}=oe||{},ie=getStaticPluginModuleInstance(It),[se]=createCache({o:!1,u:!0});return()=>{const de=[],be=createDOM(`
`)[0],ve=be.firstChild,ye=_e=>{const we=_e instanceof ResizeObserverEntry;let Ae=!1,Ce=!1;if(we){const[$e,,ke]=se(_e.contentRect),Pe=domRectHasDimensions($e);Ce=domRectAppeared($e,ke),Ae=!Ce&&!Pe}else Ce=_e===!0;Ae||ne({ft:!0,dt:Ce})};if(f){const _e=new f(we=>ye(we.pop()));_e.observe(ve),push(de,()=>{_e.disconnect()})}else if(ie){const[_e,we]=ie(ve,ye,ae);push(de,concat([addClass(be,st),addEventListener(be,"animationstart",_e)],we))}else return noop$5;return bind$1(runEachAndClear,push(de,appendChildren(ee,be)))}},createTrinsicObserver=(ee,ne)=>{let oe;const ae=be=>be.h===0||be.isIntersecting||be.intersectionRatio>0,ie=createDiv(it),[se]=createCache({o:!1}),de=(be,ve)=>{if(be){const ye=se(ae(be)),[,_e]=ye;return _e&&!ve&&ne(ye)&&[ye]}},fe=(be,ve)=>de(ve.pop(),be);return[()=>{const be=[];if(d)oe=new d(bind$1(fe,!1),{root:ee}),oe.observe(ie),push(be,()=>{oe.disconnect()});else{const ve=()=>{const ye=k(ie);de(ye)};push(be,createSizeObserver(ie,ve)()),ve()}return bind$1(runEachAndClear,push(be,appendChildren(ee,ie)))},()=>oe&&fe(!0,oe.takeRecords())]},createObserversSetup=(ee,ne,oe,ae)=>{let ie,se,de,fe,be,ve;const ye=`[${F}]`,_e=`[${X}]`,we=[],Ae=["wrap","cols","rows"],Ce=["id","class","style","open"],{vt:$e,ht:ke,ot:Pe,gt:Ee,bt:Oe,wt:Ne,nt:Re,yt:De,St:Ie,Ot:Le}=ee,We=Ft=>getStyles(Ft,"direction")==="rtl",He={$t:!1,ct:We($e)},Be=getEnvironment(),Fe=getStaticPluginModuleInstance(Tt),[Ze]=createCache({i:equalWH,o:{w:0,h:0}},()=>{const Ft=Fe&&Fe.tt(ee,ne,He,Be,oe).ut,Zt=!(De&&Re)&&hasAttrClass(ke,F,q),hn=!Re&&Ie(J),un=hn&&getElementScroll(Ee),Xe=Le(K,Zt),Nt=hn&&Ft&&Ft()[0],Mt=R(Pe),Xt=getFractionalSize(Pe);return Nt&&Nt(),scrollElementTo(Ee,un),Zt&&Xe(),{w:Mt.w+Xt.w,h:Mt.h+Xt.h}}),qe=Ne?Ae:concat(Ce,Ae),ze=debounce$1(ae,{_:()=>ie,p:()=>se,m(Ft,Kt){const[Zt]=Ft,[hn]=Kt;return[concat(keys$1(Zt),keys$1(hn)).reduce((un,Xe)=>(un[Xe]=Zt[Xe]||hn[Xe],un),{})]}}),je=Ft=>{const Kt=We($e);assignDeep(Ft,{Ct:ve!==Kt}),assignDeep(He,{ct:Kt}),ve=Kt},Qe=(Ft,Kt)=>{const[Zt,hn]=Ft,un={xt:hn};return assignDeep(He,{$t:Zt}),!Kt&&ae(un),un},At=({ft:Ft,dt:Kt})=>{const hn=!(Ft&&!Kt)&&Be.R?ze:ae,un={ft:Ft||Kt,dt:Kt};je(un),hn(un)},Rt=(Ft,Kt)=>{const[,Zt]=Ze(),hn={Ht:Zt};return je(hn),Zt&&!Kt&&(Ft?ae:ze)(hn),hn},Dt=(Ft,Kt,Zt)=>{const hn={Et:Kt};return je(hn),Kt&&!Zt&&ze(hn),hn},[Ke,Vt]=Oe?createTrinsicObserver(ke,Qe):[],tn=!Re&&createSizeObserver(ke,At,{dt:!0}),[ln,Gt]=createDOMObserver(ke,!1,Dt,{X:Ce,j:concat(Ce,we)}),rn=Re&&f&&new f(Ft=>{const Kt=Ft[Ft.length-1].contentRect;At({ft:!0,dt:domRectAppeared(Kt,be)}),be=Kt}),ct=debounce$1(()=>{const[,Ft]=Ze();ae({Ht:Ft})},{_:222,v:!0});return[()=>{rn&&rn.observe(ke);const Ft=tn&&tn(),Kt=Ke&&Ke(),Zt=ln(),hn=Be.L(un=>{un?ze({zt:un}):ct()});return()=>{rn&&rn.disconnect(),Ft&&Ft(),Kt&&Kt(),fe&&fe(),Zt(),hn()}},({It:Ft,At:Kt,Tt:Zt})=>{const hn={},[un]=Ft("update.ignoreMutation"),[Xe,Nt]=Ft("update.attributes"),[Mt,Xt]=Ft("update.elementEvents"),[on,pn]=Ft("update.debounce"),gn=Xt||Nt,Pt=Kt||Zt,lt=Jt=>isFunction$4(un)&&un(Jt);if(gn){de&&de(),fe&&fe();const[Jt,en]=createDOMObserver(Oe||Pe,!0,Rt,{j:concat(qe,Xe||[]),Y:Mt,W:ye,K:(mn,fn)=>{const{target:Yt,attributeName:sn}=mn;return(!fn&&sn&&!Re?liesBetween(Yt,ye,_e):!1)||!!closest$1(Yt,`.${ut}`)||!!lt(mn)}});fe=Jt(),de=en}if(pn)if(ze.S(),isArray$5(on)){const Jt=on[0],en=on[1];ie=isNumber$2(Jt)&&Jt,se=isNumber$2(en)&&en}else isNumber$2(on)?(ie=on,se=!1):(ie=!1,se=!1);if(Pt){const Jt=Gt(),en=Vt&&Vt(),mn=de&&de();Jt&&assignDeep(hn,Dt(Jt[0],Jt[1],Pt)),en&&assignDeep(hn,Qe(en[0],Pt)),mn&&assignDeep(hn,Rt(mn[0],Pt))}return je(hn),hn},He]},createScrollbarsSetupElements=(ee,ne,oe,ae)=>{const{P:ie}=getEnvironment(),{scrollbars:se}=ie(),{slot:de}=se,{vt:fe,ht:be,ot:ve,Dt:ye,gt:_e,yt:we,nt:Ae}=ne,{scrollbars:Ce}=ye?{}:ee,{slot:$e}=Ce||{},ke=new Map,Pe=Gt=>p&&new p({source:_e,axis:Gt}),Ee={x:Pe("x"),y:Pe("y")},Oe=dynamicInitializationElement([fe,be,ve],()=>Ae&&we?fe:be,de,$e),Ne=(Gt,rn)=>{if(rn){const un=Gt?H:E,{kt:Xe,Mt:Nt}=rn,Mt=getBoundingClientRect$1(Nt)[un],Xt=getBoundingClientRect$1(Xe)[un];return capNumber(0,1,Mt/Xt||0)}const ct=Gt?"x":"y",{Rt:Ft,Vt:Kt}=oe,Zt=Kt[ct],hn=Ft[ct];return capNumber(0,1,Zt/(Zt+hn)||0)},Re=(Gt,rn,ct)=>{const Ft=Ne(ct,Gt);return 1/Ft*(1-Ft)*rn},De=Gt=>assignDeep(Gt,{clear:["left"]}),Ie=Gt=>{ke.forEach((rn,ct)=>{(Gt?inArray(createOrKeepArray(Gt),ct):!0)&&(each(rn||[],Kt=>{Kt&&Kt.cancel()}),ke.delete(ct))})},Le=(Gt,rn,ct,Ft)=>{const Kt=ke.get(Gt)||[],Zt=Kt.find(hn=>hn&&hn.timeline===rn);Zt?Zt.effect=new KeyframeEffect(Gt,ct,{composite:Ft}):ke.set(Gt,concat(Kt,[Gt.animate(ct,{timeline:rn,composite:Ft})]))},We=(Gt,rn,ct)=>{const Ft=ct?addClass:removeClass;each(Gt,Kt=>{Ft(Kt.Lt,rn)})},He=(Gt,rn)=>{each(Gt,ct=>{const[Ft,Kt]=rn(ct);setStyles(Ft,Kt)})},Be=(Gt,rn)=>{He(Gt,ct=>{const{Mt:Ft}=ct;return[Ft,{[rn?H:E]:ratioToCssPercent(Ne(rn))}]})},Fe=(Gt,rn)=>{const{Pt:ct}=oe,Ft=rn?"x":"y",Kt=Ee[Ft],Zt=isDefaultDirectionScrollCoordinates(ct)[Ft],hn=(un,Xe)=>getTrasformTranslateValue(ratioToCssPercent(Re(un,Zt?Xe:1-Xe,rn)),rn);Kt?each(Gt,un=>{const{Mt:Xe}=un;Le(Xe,Kt,De({transform:[0,1].map(Nt=>hn(un,Nt))}))}):He(Gt,un=>[un.Mt,{transform:hn(un,getScrollCoordinatesPercent(ct,getElementScroll(_e))[Ft])}])},Ze=Gt=>Ae&&!we&&parent$1(Gt)===ve,qe=[],ze=[],je=[],Qe=(Gt,rn,ct)=>{const Ft=isBoolean$2(ct),Kt=Ft?ct:!0,Zt=Ft?!ct:!0;Kt&&We(ze,Gt,rn),Zt&&We(je,Gt,rn)},At=()=>{Be(ze,!0),Be(je)},Rt=()=>{Fe(ze,!0),Fe(je)},Dt=()=>{if(Ae){const{Rt:Gt,Pt:rn}=oe,ct=isDefaultDirectionScrollCoordinates(rn),Ft=.5;if(Ee.x&&Ee.y)each(concat(je,ze),({Lt:Kt})=>{if(Ze(Kt)){const Zt=hn=>Le(Kt,Ee[hn],De({transform:[0,ct[hn]?1:-1].map(un=>getTrasformTranslateValue(numberToCssPx(un*(Gt[hn]-Ft)),hn==="x"))}),"add");Zt("x"),Zt("y")}else Ie(Kt)});else{const Kt=getScrollCoordinatesPercent(rn,getElementScroll(_e)),Zt=hn=>{const{Lt:un}=hn,Xe=Ze(un)&&un,Nt=(Mt,Xt,on)=>{const pn=Xt*Mt;return numberToCssPx(on?pn:-pn)};return[Xe,Xe&&{transform:getTrasformTranslateValue({x:Nt(Kt.x,Gt.x,ct.x),y:Nt(Kt.y,Gt.y,ct.y)})}]};He(ze,Zt),He(je,Zt)}}},Ke=Gt=>{const ct=createDiv(`${ut} ${Gt?dt:ft}`),Ft=createDiv(pt),Kt=createDiv(vt),Zt={Lt:ct,kt:Ft,Mt:Kt};return push(Gt?ze:je,Zt),push(qe,[appendChildren(ct,Ft),appendChildren(Ft,Kt),bind$1(removeElements,ct),Ie,ae(Zt,Qe,Fe,Gt)]),Zt},Vt=bind$1(Ke,!0),tn=bind$1(Ke,!1),ln=()=>(appendChildren(Oe,ze[0].Lt),appendChildren(Oe,je[0].Lt),bind$1(runEachAndClear,qe));return Vt(),tn(),[{Ut:At,Nt:Rt,qt:Dt,Bt:Qe,Ft:{V:Ee.x,jt:ze,Xt:Vt,Yt:bind$1(He,ze)},Wt:{V:Ee.y,jt:je,Xt:tn,Yt:bind$1(He,je)}},ln]},createScrollbarsSetupEvents=(ee,ne,oe,ae)=>(ie,se,de,fe)=>{const{ht:be,ot:ve,nt:ye,gt:_e,Jt:we,Ot:Ae}=ne,{Lt:Ce,kt:$e,Mt:ke}=ie,[Pe,Ee]=selfClearTimeout(333),[Oe,Ne]=selfClearTimeout(444),[Re,De]=selfClearTimeout(),Ie=bind$1(de,[ie],fe),Le=Ze=>{isFunction$4(_e.scrollBy)&&_e.scrollBy({behavior:"smooth",left:Ze.x,top:Ze.y})},We=fe?H:E,He=()=>{const Ze="pointerup pointercancel lostpointercapture",qe=`client${fe?"X":"Y"}`,ze=fe?"left":"top",je=fe?"w":"h",Qe=fe?"x":"y",At=(Rt,Dt)=>Ke=>{const{Rt:Vt}=oe,tn=k($e)[je]-k(ke)[je],Gt=Dt*Ke/tn*Vt[Qe];scrollElementTo(_e,{[Qe]:Rt+Gt})};return addEventListener($e,"pointerdown",Rt=>{const Dt=closest$1(Rt.target,`.${vt}`)===ke,Ke=Dt?ke:$e,Vt=ee.scrollbars,{button:tn,isPrimary:ln,pointerType:Gt}=Rt,{pointers:rn}=Vt;if(tn===0&&ln&&Vt[Dt?"dragScroll":"clickScroll"]&&(rn||[]).includes(Gt)){Ne();const Ft=!Dt&&Rt.shiftKey,Kt=bind$1(getBoundingClientRect$1,ke),Zt=bind$1(getBoundingClientRect$1,$e),hn=(fn,Yt)=>(fn||Kt())[ze]-(Yt||Zt())[ze],un=e(getBoundingClientRect$1(_e)[We])/k(_e)[je]||1,Xe=At(getElementScroll(_e)[Qe],1/un),Nt=Rt[qe],Mt=Kt(),Xt=Zt(),on=Mt[We],pn=hn(Mt,Xt)+on/2,gn=Nt-Xt[ze],Pt=Dt?0:gn-pn,lt=fn=>{runEachAndClear(mn),Ke.releasePointerCapture(fn.pointerId)},Jt=()=>Ae(Q,!0),en=Jt(),mn=[()=>{const fn=getElementScroll(_e);en();const Yt=getElementScroll(_e),sn={x:Yt.x-fn.x,y:Yt.y-fn.y};(c(sn.x)>3||c(sn.y)>3)&&(Jt(),scrollElementTo(_e,fn),Le(sn),Oe(en))},addEventListener(we,Ze,lt),addEventListener(we,"selectstart",fn=>preventDefault$1(fn),{H:!1}),addEventListener($e,Ze,lt),addEventListener($e,"pointermove",fn=>{const Yt=fn[qe]-Nt;(Dt||Ft)&&Xe(Pt+Yt)})];if(Ke.setPointerCapture(Rt.pointerId),Ft)Xe(Pt);else if(!Dt){const fn=getStaticPluginModuleInstance(kt);fn&&push(mn,fn(Xe,hn,Pt,on,gn))}}})};let Be=!0;const Fe=Ze=>Ze.propertyName.indexOf(We)>-1;return bind$1(runEachAndClear,[addEventListener(ke,"pointermove pointerleave",ae),addEventListener(Ce,"pointerenter",()=>{se(bt,!0)}),addEventListener(Ce,"pointerleave pointercancel",()=>{se(bt,!1)}),!ye&&addEventListener(Ce,"mousedown",()=>{const Ze=getFocusedElement();(hasAttr(Ze,X)||hasAttr(Ze,F)||Ze===document.body)&&a(bind$1(focusElement,ve),25)}),addEventListener(Ce,"wheel",Ze=>{const{deltaX:qe,deltaY:ze,deltaMode:je}=Ze;Be&&je===0&&parent$1(Ce)===be&&Le({x:qe,y:ze}),Be=!1,se(St,!0),Pe(()=>{Be=!0,se(St)}),preventDefault$1(Ze)},{H:!1,I:!0}),addEventListener(ke,"transitionstart",Ze=>{if(Fe(Ze)){const qe=()=>{Ie(),Re(qe)};qe()}}),addEventListener(ke,"transitionend transitioncancel",Ze=>{Fe(Ze)&&(De(),Ie())}),addEventListener(Ce,"pointerdown",bind$1(addEventListener,we,"click",stopAndPrevent,{A:!0,I:!0,H:!1}),{I:!0}),He(),Ee,Ne,De])},createScrollbarsSetup=(ee,ne,oe,ae,ie,se)=>{let de,fe,be,ve,ye,_e=noop$5,we=0;const Ae=Dt=>Dt.pointerType==="mouse",[Ce,$e]=selfClearTimeout(),[ke,Pe]=selfClearTimeout(100),[Ee,Oe]=selfClearTimeout(100),[Ne,Re]=selfClearTimeout(()=>we),[De,Ie]=createScrollbarsSetupElements(ee,ie,ae,createScrollbarsSetupEvents(ne,ie,ae,Dt=>Ae(Dt)&&je())),{ht:Le,Kt:We,yt:He}=ie,{Bt:Be,Ut:Fe,Nt:Ze,qt:qe}=De,ze=(Dt,Ke)=>{if(Re(),Dt)Be(mt);else{const Vt=bind$1(Be,mt,!0);we>0&&!Ke?Ne(Vt):Vt()}},je=()=>{(be?!de:!ve)&&(ze(!0),ke(()=>{ze(!1)}))},Qe=Dt=>{Be(yt,Dt,!0),Be(yt,Dt,!1)},At=Dt=>{Ae(Dt)&&(de=be,be&&ze(!0))},Rt=[Re,Pe,Oe,$e,()=>_e(),addEventListener(Le,"pointerover",At,{A:!0}),addEventListener(Le,"pointerenter",At),addEventListener(Le,"pointerleave",Dt=>{Ae(Dt)&&(de=!1,be&&ze(!1))}),addEventListener(Le,"pointermove",Dt=>{Ae(Dt)&&fe&&je()}),addEventListener(We,"scroll",Dt=>{Ce(()=>{Ze(),je()}),se(Dt),qe()})];return[()=>bind$1(runEachAndClear,push(Rt,Ie())),({It:Dt,Tt:Ke,Gt:Vt,Qt:tn})=>{const{Zt:ln,tn:Gt,nn:rn,sn:ct}=tn||{},{Ct:Ft,dt:Kt}=Vt||{},{ct:Zt}=oe,{M:hn}=getEnvironment(),{G:un,en:Xe}=ae,[Nt,Mt]=Dt("showNativeOverlaidScrollbars"),[Xt,on]=Dt("scrollbars.theme"),[pn,gn]=Dt("scrollbars.visibility"),[Pt,lt]=Dt("scrollbars.autoHide"),[Jt,en]=Dt("scrollbars.autoHideSuspend"),[mn]=Dt("scrollbars.autoHideDelay"),[fn,Yt]=Dt("scrollbars.dragScroll"),[sn,yn]=Dt("scrollbars.clickScroll"),[Nn,Zn]=Dt("overflow"),Hn=Kt&&!Ke,Kn=Xe.x||Xe.y,Mn=ln||Gt||ct||Ft||Ke,wn=rn||gn||Zn,In=Nt&&hn.x&&hn.y,Ln=(Rn,Fn,Sn)=>{const _n=Rn.includes(A)&&(pn===z||pn==="auto"&&Fn===A);return Be(ht,_n,Sn),_n};if(we=mn,Hn&&(Jt&&Kn?(Qe(!1),_e(),Ee(()=>{_e=addEventListener(We,"scroll",bind$1(Qe,!0),{A:!0})})):Qe(!0)),Mt&&Be(at,In),on&&(Be(ye),Be(Xt,!0),ye=Xt),en&&!Jt&&Qe(!0),lt&&(fe=Pt==="move",be=Pt==="leave",ve=Pt==="never",ze(ve,!0)),Yt&&Be($t$1,fn),yn&&Be(Ot,sn),wn){const Rn=Ln(Nn.x,un.x,!0),Fn=Ln(Nn.y,un.y,!1);Be(gt,!(Rn&&Fn))}Mn&&(Fe(),Ze(),qe(),Be(wt,!Xe.x,!0),Be(wt,!Xe.y,!1),Be(_t,Zt&&!He))},{},De]},createStructureSetupElements=ee=>{const ne=getEnvironment(),{P:oe,R:ae}=ne,{elements:ie}=oe(),{host:se,padding:de,viewport:fe,content:be}=ie,ve=isHTMLElement$1(ee),ye=ve?{}:ee,{elements:_e}=ye,{host:we,padding:Ae,viewport:Ce,content:$e}=_e||{},ke=ve?ee:ye.target,Pe=isBodyElement(ke),Ee=is(ke,"textarea"),Oe=ke.ownerDocument,Ne=Oe.documentElement,Re=()=>Oe.defaultView||n,De=bind$1(staticInitializationElement,[ke]),Ie=bind$1(dynamicInitializationElement,[ke]),Le=bind$1(createDiv,""),We=bind$1(De,Le,fe),He=bind$1(Ie,Le,be),Be=We(Ce),Fe=Be===ke,Ze=Fe&&Pe,qe=!Fe&&He($e),ze=!Fe&&Be===qe,je=Ze?Ne:Be,Qe=Ee?De(Le,se,we):ke,At=Ze?je:Qe,Rt=!Fe&&Ie(Le,de,Ae),Dt=!ze&&qe,Ke=[Dt,je,Rt,At].map(Xt=>isHTMLElement$1(Xt)&&!parent$1(Xt)&&Xt),Vt=Xt=>Xt&&inArray(Ke,Xt),tn=Vt(je)?ke:je,ln={vt:ke,ht:At,ot:je,cn:Rt,bt:Dt,gt:Ze?Ne:je,Kt:Ze?Oe:je,rn:Pe?Ne:tn,Jt:Oe,wt:Ee,yt:Pe,Dt:ve,nt:Fe,ln:Re,St:Xt=>hasAttrClass(je,X,Xt),Ot:(Xt,on)=>addRemoveAttrClass(je,X,Xt,on)},{vt:Gt,ht:rn,cn:ct,ot:Ft,bt:Kt}=ln,Zt=[()=>{removeAttrs(rn,[F,N]),removeAttrs(Gt,N),Pe&&removeAttrs(Ne,[N,F])}],hn=Ee&&Vt(rn);let un=Ee?Gt:contents([Kt,Ft,ct,rn,Gt].find(Xt=>Xt&&!Vt(Xt)));const Xe=Ze?Gt:Kt||Ft,Nt=bind$1(runEachAndClear,Zt);return[ln,()=>{const Xt=Re(),on=getFocusedElement(),pn=en=>{appendChildren(parent$1(en),contents(en)),removeElements(en)},gn=en=>addEventListener(en,"focusin focusout focus blur",stopAndPrevent,{I:!0,H:!1}),Pt="tabindex",lt=getAttr(Ft,Pt),Jt=gn(on);return setAttrs(rn,F,Fe?"":j),setAttrs(ct,tt,""),setAttrs(Ft,X,""),setAttrs(Kt,nt,""),Fe||(setAttrs(Ft,Pt,lt||"-1"),Pe&&setAttrs(Ne,B,"")),hn&&(insertAfter(Gt,rn),push(Zt,()=>{insertAfter(rn,Gt),removeElements(rn)})),appendChildren(Xe,un),appendChildren(rn,ct),appendChildren(ct||rn,!Fe&&Ft),appendChildren(Ft,Kt),push(Zt,[Jt,()=>{const en=getFocusedElement(),mn=Vt(Ft),fn=mn&&en===Ft?Gt:en,Yt=gn(fn);removeAttrs(ct,tt),removeAttrs(Kt,nt),removeAttrs(Ft,X),Pe&&removeAttrs(Ne,B),lt?setAttrs(Ft,Pt,lt):removeAttrs(Ft,Pt),Vt(Kt)&&pn(Kt),mn&&pn(Ft),Vt(ct)&&pn(ct),focusElement(fn),Yt()}]),ae&&!Fe&&(addAttrClass(Ft,X,G),push(Zt,bind$1(removeAttrs,Ft,X))),focusElement(!Fe&&Pe&&on===Gt&&Xt.top===Xt?Ft:on),Jt(),un=0,Nt},Nt]},createTrinsicUpdateSegment=({bt:ee})=>({Gt:ne,an:oe,Tt:ae})=>{const{xt:ie}=ne||{},{$t:se}=oe;ee&&(ie||ae)&&setStyles(ee,{[E]:se&&"100%"})},createPaddingUpdateSegment=({ht:ee,cn:ne,ot:oe,nt:ae},ie)=>{const[se,de]=createCache({i:equalTRBL,o:topRightBottomLeft()},bind$1(topRightBottomLeft,ee,"padding",""));return({It:fe,Gt:be,an:ve,Tt:ye})=>{let[_e,we]=de(ye);const{R:Ae}=getEnvironment(),{ft:Ce,Ht:$e,Ct:ke}=be||{},{ct:Pe}=ve,[Ee,Oe]=fe("paddingAbsolute");(Ce||we||(ye||$e))&&([_e,we]=se(ye));const Re=!ae&&(Oe||ke||we);if(Re){const De=!Ee||!ne&&!Ae,Ie=_e.r+_e.l,Le=_e.t+_e.b,We={[O]:De&&!Pe?-Ie:0,[$]:De?-Le:0,[S]:De&&Pe?-Ie:0,top:De?-_e.t:0,right:De?Pe?-_e.r:"auto":0,left:De?Pe?"auto":-_e.l:0,[H]:De&&`calc(100% + ${Ie}px)`},He={[b]:De?_e.t:0,[w]:De?_e.r:0,[m]:De?_e.b:0,[y]:De?_e.l:0};setStyles(ne||oe,We),setStyles(oe,He),assignDeep(ie,{cn:_e,un:!De,rt:ne?He:assignDeep({},We,He)})}return{_n:Re}}},createOverflowUpdateSegment=(ee,ne)=>{const oe=getEnvironment(),{ht:ae,cn:ie,ot:se,nt:de,Kt:fe,gt:be,yt:ve,Ot:ye,ln:_e}=ee,{R:we}=oe,Ae=ve&&de,Ce=bind$1(o,0),$e=["display","direction","flexDirection","writingMode"],ke={i:equalWH,o:{w:0,h:0}},Pe={i:equalXY,o:{}},Ee=Dt=>{ye(K,!Ae&&Dt)},Oe=(Dt,Ke)=>{const Vt=n.devicePixelRatio%1!==0?1:0,tn={w:Ce(Dt.w-Ke.w),h:Ce(Dt.h-Ke.h)};return{w:tn.w>Vt?tn.w:0,h:tn.h>Vt?tn.h:0}},[Ne,Re]=createCache(ke,bind$1(getFractionalSize,se)),[De,Ie]=createCache(ke,bind$1(R,se)),[Le,We]=createCache(ke),[He]=createCache(Pe),[Be,Fe]=createCache(ke),[Ze]=createCache(Pe),[qe]=createCache({i:(Dt,Ke)=>equal(Dt,Ke,$e),o:{}},()=>hasDimensions(se)?getStyles(se,$e):{}),[ze,je]=createCache({i:(Dt,Ke)=>equalXY(Dt.T,Ke.T)&&equalXY(Dt.D,Ke.D),o:getZeroScrollCoordinates()},()=>{Ee(!0);const Dt=getElementScroll(be),Ke=ye(Z,!0),Vt=addEventListener(fe,A,ct=>{const Ft=getElementScroll(be);ct.isTrusted&&Ft.x===Dt.x&&Ft.y===Dt.y&&stopPropagation$1(ct)},{I:!0,A:!0});scrollElementTo(be,{x:0,y:0}),Ke();const tn=getElementScroll(be),ln=R(be);scrollElementTo(be,{x:ln.w,y:ln.h});const Gt=getElementScroll(be);scrollElementTo(be,{x:Gt.x-tn.x<1&&-ln.w,y:Gt.y-tn.y<1&&-ln.h});const rn=getElementScroll(be);return scrollElementTo(be,Dt),i(()=>Vt()),{T:tn,D:rn}}),Qe=getStaticPluginModuleInstance(Tt),At=(Dt,Ke)=>`${Ke?Y:W}${capitalizeFirstLetter(Dt)}`,Rt=Dt=>{const Ke=tn=>[z,I,A].map(ln=>At(ln,tn)),Vt=Ke(!0).concat(Ke()).join(" ");ye(Vt),ye(keys$1(Dt).map(tn=>At(Dt[tn],tn==="x")).join(" "),!0)};return({It:Dt,Gt:Ke,an:Vt,Tt:tn},{_n:ln})=>{const{ft:Gt,Ht:rn,Ct:ct,dt:Ft,zt:Kt}=Ke||{},Zt=Qe&&Qe.tt(ee,ne,Vt,oe,Dt),{it:hn,ut:un,_t:Xe}=Zt||{},[Nt,Mt]=getShowNativeOverlaidScrollbars(Dt,oe),[Xt,on]=Dt("overflow"),pn=overflowIsVisible(Xt.x),gn=overflowIsVisible(Xt.y),Pt=Gt||ln||rn||ct||Kt||Mt;let lt=Re(tn),Jt=Ie(tn),en=We(tn),mn=Fe(tn);if(Mt&&we&&ye(G,!Nt),Pt){hasAttrClass(ae,F,q)&&Ee(!0);const[lr]=un?un():[],[or]=lt=Ne(tn),[fr]=Jt=De(tn),yr=M(se),Bn=Ae&&getWindowSize(_e()),kr={w:Ce(fr.w+or.w),h:Ce(fr.h+or.h)},Nr={w:Ce((Bn?Bn.w:yr.w+Ce(yr.w-fr.w))+or.w),h:Ce((Bn?Bn.h:yr.h+Ce(yr.h-fr.h))+or.h)};lr&&lr(),mn=Be(Nr),en=Le(Oe(kr,Nr),tn)}const[fn,Yt]=mn,[sn,yn]=en,[Nn,Zn]=Jt,[Hn,Kn]=lt,[Mn,wn]=He({x:sn.w>0,y:sn.h>0}),In=pn&&gn&&(Mn.x||Mn.y)||pn&&Mn.x&&!Mn.y||gn&&Mn.y&&!Mn.x,Ln=ln||ct||Kt||Kn||Zn||Yt||yn||on||Mt||Pt,Rn=createViewportOverflowState(Mn,Xt),[Fn,Sn]=Ze(Rn.G),[,_n]=qe(tn),On=ct||Ft||_n||wn||tn,[Pn,Un]=On?ze(tn):je();return Ln&&(Sn&&Rt(Rn.G),Xe&&hn&&setStyles(se,Xe(Rn,Vt,hn(Rn,Nn,Hn)))),Ee(!1),addRemoveAttrClass(ae,F,q,In),addRemoveAttrClass(ie,tt,q,In),assignDeep(ne,{G:Fn,Vt:{x:fn.w,y:fn.h},Rt:{x:sn.w,y:sn.h},en:Mn,Pt:sanitizeScrollCoordinates(Pn,sn)}),{nn:Sn,Zt:Yt,tn:yn,sn:Un||yn,dn:On}}},createStructureSetup=ee=>{const[ne,oe,ae]=createStructureSetupElements(ee),ie={cn:{t:0,r:0,b:0,l:0},un:!1,rt:{[O]:0,[$]:0,[S]:0,[b]:0,[w]:0,[m]:0,[y]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},G:{x:I,y:I},en:{x:!1,y:!1},Pt:getZeroScrollCoordinates()},{vt:se,gt:de,nt:fe}=ne,{R:be,M:ve}=getEnvironment(),ye=!be&&(ve.x||ve.y),_e=[createTrinsicUpdateSegment(ne),createPaddingUpdateSegment(ne,ie),createOverflowUpdateSegment(ne,ie)];return[oe,we=>{const Ae={},$e=ye&&getElementScroll(de);return each(_e,ke=>{assignDeep(Ae,ke(we,Ae)||{})}),scrollElementTo(de,$e),!fe&&scrollElementTo(se,0),Ae},ie,ne,ae]},createSetups=(ee,ne,oe,ae,ie)=>{const se=createOptionCheck(ne,{}),[de,fe,be,ve,ye]=createStructureSetup(ee),[_e,we,Ae]=createObserversSetup(ve,be,se,Oe=>{Ee({},Oe)}),[Ce,$e,,ke]=createScrollbarsSetup(ee,ne,Ae,be,ve,ie),Pe=Oe=>keys$1(Oe).some(Ne=>!!Oe[Ne]),Ee=(Oe,Ne)=>{if(oe())return!1;const{fn:Re,Tt:De,At:Ie,pn:Le}=Oe,We=Re||{},He=!!De,Be={It:createOptionCheck(ne,We,He),fn:We,Tt:He};if(Le)return $e(Be),!1;const Fe=Ne||we(assignDeep({},Be,{At:Ie})),Ze=fe(assignDeep({},Be,{an:Ae,Gt:Fe}));$e(assignDeep({},Be,{Gt:Fe,Qt:Ze}));const qe=Pe(Fe),ze=Pe(Ze),je=qe||ze||!isEmptyObject$1(We)||He;return je&&ae(Oe,{Gt:Fe,Qt:Ze}),je};return[()=>{const{rn:Oe,gt:Ne}=ve,Re=getElementScroll(Oe),De=[_e(),de(),Ce()];return scrollElementTo(Ne,Re),bind$1(runEachAndClear,De)},Ee,()=>({vn:Ae,hn:be}),{gn:ve,bn:ke},ye]},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 be=[],ve={},ye=He=>{const Be=removeUndefinedProperties(He),Fe=getStaticPluginModuleInstance(zt);return Fe?Fe(Be,!0):Be},_e=assignDeep({},ae(),ye(ne)),[we,Ae,Ce]=createEventListenerHub(),[$e,ke,Pe]=createEventListenerHub(oe),Ee=(He,Be)=>{Pe(He,Be),Ce(He,Be)},[Oe,Ne,Re,De,Ie]=createSetups(ee,_e,()=>fe,({fn:He,Tt:Be},{Gt:Fe,Qt:Ze})=>{const{ft:qe,Ct:ze,xt:je,Ht:Qe,Et:At,dt:Rt}=Fe,{Zt:Dt,tn:Ke,nn:Vt,sn:tn}=Ze;Ee("updated",[We,{updateHints:{sizeChanged:!!qe,directionChanged:!!ze,heightIntrinsicChanged:!!je,overflowEdgeChanged:!!Dt,overflowAmountChanged:!!Ke,overflowStyleChanged:!!Vt,scrollCoordinatesChanged:!!tn,contentMutation:!!Qe,hostMutation:!!At,appear:!!Rt},changedOptions:He||{},force:!!Be}])},He=>Ee("scroll",[We,He])),Le=He=>{removeInstance(se),runEachAndClear(be),fe=!0,Ee("destroyed",[We,He]),Ae(),ke()},We={options(He,Be){if(He){const Fe=Be?ae():{},Ze=getOptionsDiff(_e,assignDeep(Fe,ye(He)));isEmptyObject$1(Ze)||(assignDeep(_e,Ze),Ne({fn:Ze}))}return assignDeep({},_e)},on:$e,off:(He,Be)=>{He&&Be&&ke(He,Be)},state(){const{vn:He,hn:Be}=Re(),{ct:Fe}=He,{Vt:Ze,Rt:qe,G:ze,en:je,cn:Qe,un:At,Pt:Rt}=Be;return assignDeep({},{overflowEdge:Ze,overflowAmount:qe,overflowStyle:ze,hasOverflow:je,scrollCoordinates:{start:Rt.T,end:Rt.D},padding:Qe,paddingAbsolute:At,directionRTL:Fe,destroyed:fe})},elements(){const{vt:He,ht:Be,cn:Fe,ot:Ze,bt:qe,gt:ze,Kt:je}=De.gn,{Ft:Qe,Wt:At}=De.bn,Rt=Ke=>{const{Mt:Vt,kt:tn,Lt:ln}=Ke;return{scrollbar:ln,track:tn,handle:Vt}},Dt=Ke=>{const{jt:Vt,Xt:tn}=Ke,ln=Rt(Vt[0]);return assignDeep({},ln,{clone:()=>{const Gt=Rt(tn());return Ne({pn:!0}),Gt}})};return assignDeep({},{target:He,host:Be,padding:Fe||Ze,viewport:Ze,content:qe||Ze,scrollOffsetElement:ze,scrollEventElement:je,scrollbarHorizontal:Dt(Qe),scrollbarVertical:Dt(At)})},update:He=>Ne({Tt:He,At:!0}),destroy:bind$1(Le,!1),plugin:He=>ve[keys$1(He)[0]]};return push(be,[Ie]),addInstance(se,We),registerPluginModuleInstances(Ht,OverlayScrollbars,[We,we,ve]),cancelInitialization(De.gn.yt,!ie&&ee.cancel)?(Le(!0),We):(push(be,Oe()),Ee("initialized",[We]),We.update(!0),We)}return de};OverlayScrollbars.plugin=ee=>{const ne=isArray$5(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$4(ne)&&ne();return isPlainObject$4(oe)&&!!getInstance$1(oe.target)};OverlayScrollbars.env=()=>{const{k:ee,M:ne,R:oe,V:ae,B:ie,F:se,P:de,U:fe,N:be,q:ve}=getEnvironment();return assignDeep({},{scrollbarsSize:ee,scrollbarsOverlaid:ne,scrollbarsHiding:oe,scrollTimeline:ae,staticDefaultInitialization:ie,staticDefaultOptions:se,getDefaultInitialization:de,setDefaultInitialization:fe,getDefaultOptions:be,setDefaultOptions:ve})};const g=()=>{if(typeof window>"u"){const ve=()=>{};return[ve,ve]}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,be=()=>{fe(ee),se(ne)};return[(ve,ye)=>{be(),ee=de(ae?()=>{be(),ne=ie(ve)}:ve,typeof ye=="object"?ye:{timeout:2233})},be]},x=ee=>{let ne=null,oe,ae,ie;const se=shallowRef(ee||{}),[de,fe]=g();return watch(()=>{var be;return unref((be=se.value)==null?void 0:be.defer)},be=>{ie=be},{deep:!0,immediate:!0}),watch(()=>{var be;return unref((be=se.value)==null?void 0:be.options)},be=>{oe=be,OverlayScrollbars.valid(ne)&&ne.options(oe||{},!0)},{deep:!0,immediate:!0}),watch(()=>{var be;return unref((be=se.value)==null?void 0:be.events)},be=>{ae=be,OverlayScrollbars.valid(ne)&&ne.on(ae||{},!0)},{deep:!0,immediate:!0}),onUnmounted(()=>{fe(),ne==null||ne.destroy()}),[be=>{if(OverlayScrollbars.valid(ne))return ne;const ve=()=>ne=OverlayScrollbars(be,oe||{},ae||{});ie?de(ve,ie):ve()},()=>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:be}=toRefs(ae),ve=shallowRef(null),ye=shallowRef(null),_e=ref(),[we,Ae]=x({options:de,events:_e,defer:be});return ne({osInstance:Ae,getElement:()=>ve.value}),watchPostEffect(Ce=>{const{value:$e}=ve,{value:ke}=ye;$e&&(we(se.value==="body"?{target:$e,cancel:{body:null}}:{target:$e,elements:{viewport:ke,content:ke}}),Ce(()=>{var Pe;return(Pe=Ae())==null?void 0:Pe.destroy()}))}),watch(()=>unref(fe),Ce=>{const $e=Ce||{};_e.value=Object.keys(ie).reduce((ke,Pe)=>{const Ee=$e[Pe];return ke[Pe]=[(...Oe)=>oe(ie[Pe],...Oe),...(Array.isArray(Ee)?Ee:[Ee]).filter(Boolean)],ke},{})},{deep:!0,immediate:!0}),(Ce,$e)=>(openBlock(),createBlock(resolveDynamicComponent(unref(se)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:ve},{default:withCtx(()=>[unref(se)==="body"?renderSlot(Ce.$slots,"default",{key:0}):(openBlock(),createElementBlock("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:ye},[renderSlot(Ce.$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 be(){ie.value=!1,ae("close")}return(ve,ye)=>{const _e=_sfc_main$9;return openBlock(),createBlock(unref(Se),{as:"template",appear:ve.appear,show:ie.value},{default:withCtx(()=>[createVNode(unref(Ye),{class:"fixed inset-0 z-2000 flex justify-end",onClose:ye[0]||(ye[0]=we=>!ve.preventClose&&be())},{default:withCtx(()=>[createVNode(unref(he),mergeProps({as:"template",appear:ve.appear},unref(de)),{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass$1(["fixed inset-0 bg-stone-2/75 transition-opacity dark-bg-stone-8/75",{"backdrop-blur-sm":ve.overlay}])},null,2)]),_:1},16,["appear"]),(openBlock(),createBlock(unref(he),mergeProps(unref(fe),{key:JSON.stringify(unref(fe)),as:"template",appear:ve.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(ve.title),1)]),_:1}),createVNode(_e,{name:"i-carbon:close","cursor-pointer":"",onClick:be})]),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(ve.$slots,"default")]),_:3})]),_:3}),unref(se).footer?(openBlock(),createElementBlock("div",_hoisted_2$3,[renderSlot(ve.$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$1(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=ref();return ne({ref:ae}),(ie,se)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[withDirectives(createBaseVNode("input",{"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$1(["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$1(["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,be)=>{const ve=_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$1(["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(ve,{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"])}}});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$8=ee=>toString$1.call(ee)==="[object Object]",noop$4=()=>{};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 tryOnMounted(ee,ne=!0,oe){getLifeCycleTarget()?onMounted(ee,oe):ne?ee():nextTick(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 be(...ve){de(),ie.value=!0,se=setTimeout(()=>{ie.value=!1,se=null,ee(...ve)},toValue(ne))}return ae&&(ie.value=!0,isClient&&be()),tryOnScopeDispose(fe),{isPending:readonly(ie),start:be,stop:fe}}function unrefElement(ee){var ne;const oe=toValue(ee);return(ne=oe==null?void 0:oe.$el)!=null?ne:oe}const defaultWindow=isClient?window:void 0,defaultNavigator=isClient?window.navigator:void 0;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$4;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const se=[],de=()=>{se.forEach(ye=>ye()),se.length=0},fe=(ye,_e,we,Ae)=>(ye.addEventListener(_e,we,Ae),()=>ye.removeEventListener(_e,we,Ae)),be=watch(()=>[unrefElement(ne),toValue(ie)],([ye,_e])=>{if(de(),!ye)return;const we=isObject$8(_e)?{..._e}:_e;se.push(...oe.flatMap(Ae=>ae.map(Ce=>fe(ye,Ae,Ce,we))))},{immediate:!0,flush:"post"}),ve=()=>{be(),de()};return tryOnScopeDispose(ve),ve}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);let se;const de=typeof ee=="string"?{name:ee}:ee,fe=ref(),be=()=>{se&&(fe.value=se.state)},ve=createSingletonPromise(async()=>{if(ie.value){if(!se)try{se=await ae.permissions.query(de),useEventListener$1(se,"change",be),be()}catch{fe.value="prompt"}return se}});return ve(),oe?{state:fe,isSupported:ie,query:ve}: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"),be=usePermission("clipboard-write"),ve=computed(()=>de.value||se),ye=ref(""),_e=ref(!1),we=useTimeoutFn(()=>_e.value=!1,ie);function Ae(){de.value&&Pe(fe.value)?ne.clipboard.readText().then(Ee=>{ye.value=Ee}):ye.value=ke()}ve.value&&oe&&useEventListener$1(["copy","cut"],Ae);async function Ce(Ee=toValue(ae)){ve.value&&Ee!=null&&(de.value&&Pe(be.value)?await ne.clipboard.writeText(Ee):$e(Ee),ye.value=Ee,_e.value=!0,we.start())}function $e(Ee){const Oe=document.createElement("textarea");Oe.value=Ee??"",Oe.style.position="absolute",Oe.style.opacity="0",document.body.appendChild(Oe),Oe.select(),document.execCommand("copy"),Oe.remove()}function ke(){var Ee,Oe,Ne;return(Ne=(Oe=(Ee=document==null?void 0:document.getSelection)==null?void 0:Ee.call(document))==null?void 0:Oe.toString())!=null?Ne:""}function Pe(Ee){return Ee==="granted"||Ee==="prompt"}return{isSupported:ve,text:ye,copied:_e,copy:Ce}}function useResizeObserver(ee,ne,oe={}){const{window:ae=defaultWindow,...ie}=oe;let se;const de=useSupported(()=>ae&&"ResizeObserver"in ae),fe=()=>{se&&(se.disconnect(),se=void 0)},be=computed(()=>Array.isArray(ee)?ee.map(_e=>unrefElement(_e)):[unrefElement(ee)]),ve=watch(be,_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(),ve()};return tryOnScopeDispose(ye),{isSupported:de,stop:ye}}function useElementSize(ee,ne={width:0,height:0},oe={}){const{window:ae=defaultWindow,box:ie="content-box"}=oe,se=computed(()=>{var _e,we;return(we=(_e=unrefElement(ee))==null?void 0:_e.namespaceURI)==null?void 0:we.includes("svg")}),de=ref(ne.width),fe=ref(ne.height),{stop:be}=useResizeObserver(ee,([_e])=>{const we=ie==="border-box"?_e.borderBoxSize:ie==="content-box"?_e.contentBoxSize:_e.devicePixelContentBoxSize;if(ae&&se.value){const Ae=unrefElement(ee);if(Ae){const Ce=Ae.getBoundingClientRect();de.value=Ce.width,fe.value=Ce.height}}else if(we){const Ae=Array.isArray(we)?we:[we];de.value=Ae.reduce((Ce,{inlineSize:$e})=>Ce+$e,0),fe.value=Ae.reduce((Ce,{blockSize:$e})=>Ce+$e,0)}else de.value=_e.contentRect.width,fe.value=_e.contentRect.height},oe);tryOnMounted(()=>{const _e=unrefElement(ee);_e&&(de.value="offsetWidth"in _e?_e.offsetWidth:ne.width,fe.value="offsetHeight"in _e?_e.offsetHeight:ne.height)});const ve=watch(()=>unrefElement(ee),_e=>{de.value=_e?ne.width:0,fe.value=_e?ne.height:0});function ye(){be(),ve()}return{width:de,height:fe,stop:ye}}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 Pe=0;Pe>>=1,Le&&(Re=-2147483648|-Re),Oe[Ne]+=Re,Ee}function we(Pe,Ee,Oe){return Ee>=Oe?!1:Pe.charCodeAt(Ee)!==44}function Ae(Pe){Pe.sort(Ce)}function Ce(Pe,Ee){return Pe[0]-Ee[0]}function $e(Pe){const Ee=new Int32Array(5),Oe=1024*16,Ne=Oe-36,Re=new Uint8Array(Oe),De=Re.subarray(0,Ne);let Ie=0,Le="";for(let We=0;We0&&(Ie===Oe&&(Le+=be.decode(Re),Ie=0),Re[Ie++]=59),He.length!==0){Ee[0]=0;for(let Be=0;BeNe&&(Le+=be.decode(De),Re.copyWithin(0,Ne,Ie),Ie-=Ne),Be>0&&(Re[Ie++]=44),Ie=ke(Re,Ie,Ee,Fe,0),Fe.length!==1&&(Ie=ke(Re,Ie,Ee,Fe,1),Ie=ke(Re,Ie,Ee,Fe,2),Ie=ke(Re,Ie,Ee,Fe,3),Fe.length!==4&&(Ie=ke(Re,Ie,Ee,Fe,4)))}}}return Le+be.decode(Re.subarray(0,Ie))}function ke(Pe,Ee,Oe,Ne,Re){const De=Ne[Re];let Ie=De-Oe[Re];Oe[Re]=De,Ie=Ie<0?-Ie<<1|1:Ie<<1;do{let Le=Ie&31;Ie>>>=5,Ie>0&&(Le|=32),Pe[Ee++]=de[Le]}while(Ie>0);return Ee}oe.decode=ve,oe.encode=$e,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"}},globalSettingsDefault={app:{lightTheme:"light",darkTheme:"dark",colorScheme:"light",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:""}};function isObject$7(ee){return typeof ee=="object"&&!Array.isArray(ee)}function getTwoObjectDiff(ee,ne){if(!isObject$7(ee)||!isObject$7(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$7(ie)&&isObject$7(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();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$4=Array.isArray;function isObject$6(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$3(ee){if(!isObject$6(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$6(ee)||isMasked(ee))return!1;var ne=isFunction$3(ee)?reIsNative:reIsHostCtor;return ne.test(toSource(ee))}function getValue$1(ee,ne){return ee==null?void 0:ee[ne]}function getNative(ee,ne){var oe=getValue$1(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$6(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$3(ee)}function isIterateeCall(ee,ne,oe){if(!isObject$6(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$3=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$3=Array.isArray,isFunction$2=ee=>typeof ee=="function",isString$3=ee=>typeof ee=="string",isBoolean$1=ee=>typeof ee=="boolean",isObject$5=ee=>ee!==null&&typeof ee=="object",isPromise$1=ee=>isObject$5(ee)&&isFunction$2(ee.then)&&isFunction$2(ee.catch),objectToString=Object.prototype.toString,toTypeString=ee=>objectToString.call(ee),isPlainObject$2=ee=>{if(!isObject$5(ee))return!1;const ne=Object.getPrototypeOf(ee);return ne===null||ne.constructor===Object},toDisplayString=ee=>ee==null?"":isArray$3(ee)||isPlainObject$2(ee)&&ee.toString===objectToString?JSON.stringify(ee,null,2):String(ee);function join$1(ee,ne=""){return ee.reduce((oe,ae,ie)=>ie===0?oe+ae:oe+ne+ae,"")}function incrementer(ee){let ne=ee;return()=>++ne}function warn(ee,ne){typeof console<"u"&&(console.warn("[intlify] "+ee),ne&&console.warn(ne.stack))}const isNotObjectOrIsArray=ee=>!isObject$5(ee)||isArray$3(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=>{isNotObjectOrIsArray(ae[se])||isNotObjectOrIsArray(ie[se])?ie[se]=ae[se]:oe.push({src:ae[se],des:ie[se]})})}}/*! + * message-compiler v9.13.1 + * (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 RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$3(ee,...ne){return ne.length===1&&isObject$4(ne[0])&&(ne=ne[0]),(!ne||!ne.hasOwnProperty)&&(ne={}),ee.replace(RE_ARGS,(oe,ae)=>ne.hasOwnProperty(ae)?ne[ae]:"")}const assign$2=Object.assign,isString$2=ee=>typeof ee=="string",isObject$4=ee=>ee!==null&&typeof ee=="object";function join(ee,ne=""){return ee.reduce((oe,ae,ie)=>ie===0?oe+ae:oe+ne+ae,"")}const CompileWarnCodes={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},warnMessages={[CompileWarnCodes.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function createCompileWarn(ee,ne,...oe){const ae=format$3(warnMessages[ee],...oe||[]),ie={message:String(ae),code:ee};return ne&&(ie.location=ne),ie}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,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(ee,ne,oe={}){const{domain:ae,messages:ie,args:se}=oe,de=format$3((ie||errorMessages)[ee]||"",...se||[]),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=Ie=>ne[Ie]===CHAR_CR&&ne[Ie+1]===CHAR_LF,fe=Ie=>ne[Ie]===CHAR_LF,be=Ie=>ne[Ie]===CHAR_PS,ve=Ie=>ne[Ie]===CHAR_LS,ye=Ie=>de(Ie)||fe(Ie)||be(Ie)||ve(Ie),_e=()=>oe,we=()=>ae,Ae=()=>ie,Ce=()=>se,$e=Ie=>de(Ie)||be(Ie)||ve(Ie)?CHAR_LF:ne[Ie],ke=()=>$e(oe),Pe=()=>$e(oe+se);function Ee(){return se=0,ye(oe)&&(ae++,ie=0),de(oe)&&oe++,oe++,ie++,ne[oe]}function Oe(){return de(oe+se)&&se++,se++,ne[oe+se]}function Ne(){oe=0,ae=1,ie=1,se=0}function Re(Ie=0){se=Ie}function De(){const Ie=oe+se;for(;Ie!==oe;)Ee();se=0}return{index:_e,line:we,column:Ae,peekOffset:Ce,charAt:$e,currentChar:ke,currentPeek:Pe,next:Ee,peek:Oe,reset:Ne,resetPeek:Re,skipToPeek:De}}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(),be={currentType:14,offset:fe,startLoc:de,endLoc:de,lastType:14,lastOffset:fe,lastStartLoc:de,lastEndLoc:de,braceNest:0,inLinked:!1,text:""},ve=()=>be,{onError:ye}=ne;function _e(Pt,lt,Jt,...en){const mn=ve();if(lt.column+=Jt,lt.offset+=Jt,ye){const fn=oe?createLocation(mn.startLoc,lt):null,Yt=createCompileError(Pt,fn,{domain:ERROR_DOMAIN$3,args:en});ye(Yt)}}function we(Pt,lt,Jt){Pt.endLoc=se(),Pt.currentType=lt;const en={type:lt};return oe&&(en.loc=createLocation(Pt.startLoc,Pt.endLoc)),Jt!=null&&(en.value=Jt),en}const Ae=Pt=>we(Pt,14);function Ce(Pt,lt){return Pt.currentChar()===lt?(Pt.next(),lt):(_e(CompileErrorCodes.EXPECTED_TOKEN,se(),0,lt),"")}function $e(Pt){let lt="";for(;Pt.currentPeek()===CHAR_SP||Pt.currentPeek()===CHAR_LF;)lt+=Pt.currentPeek(),Pt.peek();return lt}function ke(Pt){const lt=$e(Pt);return Pt.skipToPeek(),lt}function Pe(Pt){if(Pt===EOF)return!1;const lt=Pt.charCodeAt(0);return lt>=97&<<=122||lt>=65&<<=90||lt===95}function Ee(Pt){if(Pt===EOF)return!1;const lt=Pt.charCodeAt(0);return lt>=48&<<=57}function Oe(Pt,lt){const{currentType:Jt}=lt;if(Jt!==2)return!1;$e(Pt);const en=Pe(Pt.currentPeek());return Pt.resetPeek(),en}function Ne(Pt,lt){const{currentType:Jt}=lt;if(Jt!==2)return!1;$e(Pt);const en=Pt.currentPeek()==="-"?Pt.peek():Pt.currentPeek(),mn=Ee(en);return Pt.resetPeek(),mn}function Re(Pt,lt){const{currentType:Jt}=lt;if(Jt!==2)return!1;$e(Pt);const en=Pt.currentPeek()===LITERAL_DELIMITER;return Pt.resetPeek(),en}function De(Pt,lt){const{currentType:Jt}=lt;if(Jt!==8)return!1;$e(Pt);const en=Pt.currentPeek()===".";return Pt.resetPeek(),en}function Ie(Pt,lt){const{currentType:Jt}=lt;if(Jt!==9)return!1;$e(Pt);const en=Pe(Pt.currentPeek());return Pt.resetPeek(),en}function Le(Pt,lt){const{currentType:Jt}=lt;if(!(Jt===8||Jt===12))return!1;$e(Pt);const en=Pt.currentPeek()===":";return Pt.resetPeek(),en}function We(Pt,lt){const{currentType:Jt}=lt;if(Jt!==10)return!1;const en=()=>{const fn=Pt.currentPeek();return fn==="{"?Pe(Pt.peek()):fn==="@"||fn==="%"||fn==="|"||fn===":"||fn==="."||fn===CHAR_SP||!fn?!1:fn===CHAR_LF?(Pt.peek(),en()):Fe(Pt,!1)},mn=en();return Pt.resetPeek(),mn}function He(Pt){$e(Pt);const lt=Pt.currentPeek()==="|";return Pt.resetPeek(),lt}function Be(Pt){const lt=$e(Pt),Jt=Pt.currentPeek()==="%"&&Pt.peek()==="{";return Pt.resetPeek(),{isModulo:Jt,hasSpace:lt.length>0}}function Fe(Pt,lt=!0){const Jt=(mn=!1,fn="",Yt=!1)=>{const sn=Pt.currentPeek();return sn==="{"?fn==="%"?!1:mn:sn==="@"||!sn?fn==="%"?!0:mn:sn==="%"?(Pt.peek(),Jt(mn,"%",!0)):sn==="|"?fn==="%"||Yt?!0:!(fn===CHAR_SP||fn===CHAR_LF):sn===CHAR_SP?(Pt.peek(),Jt(!0,CHAR_SP,Yt)):sn===CHAR_LF?(Pt.peek(),Jt(!0,CHAR_LF,Yt)):!0},en=Jt();return lt&&Pt.resetPeek(),en}function Ze(Pt,lt){const Jt=Pt.currentChar();return Jt===EOF?EOF:lt(Jt)?(Pt.next(),Jt):null}function qe(Pt){const lt=Pt.charCodeAt(0);return lt>=97&<<=122||lt>=65&<<=90||lt>=48&<<=57||lt===95||lt===36}function ze(Pt){return Ze(Pt,qe)}function je(Pt){const lt=Pt.charCodeAt(0);return lt>=97&<<=122||lt>=65&<<=90||lt>=48&<<=57||lt===95||lt===36||lt===45}function Qe(Pt){return Ze(Pt,je)}function At(Pt){const lt=Pt.charCodeAt(0);return lt>=48&<<=57}function Rt(Pt){return Ze(Pt,At)}function Dt(Pt){const lt=Pt.charCodeAt(0);return lt>=48&<<=57||lt>=65&<<=70||lt>=97&<<=102}function Ke(Pt){return Ze(Pt,Dt)}function Vt(Pt){let lt="",Jt="";for(;lt=Rt(Pt);)Jt+=lt;return Jt}function tn(Pt){ke(Pt);const lt=Pt.currentChar();return lt!=="%"&&_e(CompileErrorCodes.EXPECTED_TOKEN,se(),0,lt),Pt.next(),"%"}function ln(Pt){let lt="";for(;;){const Jt=Pt.currentChar();if(Jt==="{"||Jt==="}"||Jt==="@"||Jt==="|"||!Jt)break;if(Jt==="%")if(Fe(Pt))lt+=Jt,Pt.next();else break;else if(Jt===CHAR_SP||Jt===CHAR_LF)if(Fe(Pt))lt+=Jt,Pt.next();else{if(He(Pt))break;lt+=Jt,Pt.next()}else lt+=Jt,Pt.next()}return lt}function Gt(Pt){ke(Pt);let lt="",Jt="";for(;lt=Qe(Pt);)Jt+=lt;return Pt.currentChar()===EOF&&_e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Jt}function rn(Pt){ke(Pt);let lt="";return Pt.currentChar()==="-"?(Pt.next(),lt+=`-${Vt(Pt)}`):lt+=Vt(Pt),Pt.currentChar()===EOF&&_e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),lt}function ct(Pt){return Pt!==LITERAL_DELIMITER&&Pt!==CHAR_LF}function Ft(Pt){ke(Pt),Ce(Pt,"'");let lt="",Jt="";for(;lt=Ze(Pt,ct);)lt==="\\"?Jt+=Kt(Pt):Jt+=lt;const en=Pt.currentChar();return en===CHAR_LF||en===EOF?(_e(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,se(),0),en===CHAR_LF&&(Pt.next(),Ce(Pt,"'")),Jt):(Ce(Pt,"'"),Jt)}function Kt(Pt){const lt=Pt.currentChar();switch(lt){case"\\":case"'":return Pt.next(),`\\${lt}`;case"u":return Zt(Pt,lt,4);case"U":return Zt(Pt,lt,6);default:return _e(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,se(),0,lt),""}}function Zt(Pt,lt,Jt){Ce(Pt,lt);let en="";for(let mn=0;mn{const en=Pt.currentChar();return en==="{"||en==="%"||en==="@"||en==="|"||en==="("||en===")"||!en||en===CHAR_SP?Jt:(Jt+=en,Pt.next(),lt(Jt))};return lt("")}function Mt(Pt){ke(Pt);const lt=Ce(Pt,"|");return ke(Pt),lt}function Xt(Pt,lt){let Jt=null;switch(Pt.currentChar()){case"{":return lt.braceNest>=1&&_e(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,se(),0),Pt.next(),Jt=we(lt,2,"{"),ke(Pt),lt.braceNest++,Jt;case"}":return lt.braceNest>0&<.currentType===2&&_e(CompileErrorCodes.EMPTY_PLACEHOLDER,se(),0),Pt.next(),Jt=we(lt,3,"}"),lt.braceNest--,lt.braceNest>0&&ke(Pt),lt.inLinked&<.braceNest===0&&(lt.inLinked=!1),Jt;case"@":return lt.braceNest>0&&_e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Jt=on(Pt,lt)||Ae(lt),lt.braceNest=0,Jt;default:{let mn=!0,fn=!0,Yt=!0;if(He(Pt))return lt.braceNest>0&&_e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Jt=we(lt,1,Mt(Pt)),lt.braceNest=0,lt.inLinked=!1,Jt;if(lt.braceNest>0&&(lt.currentType===5||lt.currentType===6||lt.currentType===7))return _e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),lt.braceNest=0,pn(Pt,lt);if(mn=Oe(Pt,lt))return Jt=we(lt,5,Gt(Pt)),ke(Pt),Jt;if(fn=Ne(Pt,lt))return Jt=we(lt,6,rn(Pt)),ke(Pt),Jt;if(Yt=Re(Pt,lt))return Jt=we(lt,7,Ft(Pt)),ke(Pt),Jt;if(!mn&&!fn&&!Yt)return Jt=we(lt,13,un(Pt)),_e(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,se(),0,Jt.value),ke(Pt),Jt;break}}return Jt}function on(Pt,lt){const{currentType:Jt}=lt;let en=null;const mn=Pt.currentChar();switch((Jt===8||Jt===9||Jt===12||Jt===10)&&(mn===CHAR_LF||mn===CHAR_SP)&&_e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),mn){case"@":return Pt.next(),en=we(lt,8,"@"),lt.inLinked=!0,en;case".":return ke(Pt),Pt.next(),we(lt,9,".");case":":return ke(Pt),Pt.next(),we(lt,10,":");default:return He(Pt)?(en=we(lt,1,Mt(Pt)),lt.braceNest=0,lt.inLinked=!1,en):De(Pt,lt)||Le(Pt,lt)?(ke(Pt),on(Pt,lt)):Ie(Pt,lt)?(ke(Pt),we(lt,12,Xe(Pt))):We(Pt,lt)?(ke(Pt),mn==="{"?Xt(Pt,lt)||en:we(lt,11,Nt(Pt))):(Jt===8&&_e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),lt.braceNest=0,lt.inLinked=!1,pn(Pt,lt))}}function pn(Pt,lt){let Jt={type:14};if(lt.braceNest>0)return Xt(Pt,lt)||Ae(lt);if(lt.inLinked)return on(Pt,lt)||Ae(lt);switch(Pt.currentChar()){case"{":return Xt(Pt,lt)||Ae(lt);case"}":return _e(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,se(),0),Pt.next(),we(lt,3,"}");case"@":return on(Pt,lt)||Ae(lt);default:{if(He(Pt))return Jt=we(lt,1,Mt(Pt)),lt.braceNest=0,lt.inLinked=!1,Jt;const{isModulo:mn,hasSpace:fn}=Be(Pt);if(mn)return fn?we(lt,0,ln(Pt)):we(lt,4,tn(Pt));if(Fe(Pt))return we(lt,0,ln(Pt));break}}return Jt}function gn(){const{currentType:Pt,offset:lt,startLoc:Jt,endLoc:en}=be;return be.lastType=Pt,be.lastOffset=lt,be.lastStartLoc=Jt,be.lastEndLoc=en,be.offset=ie(),be.startLoc=se(),ae.currentChar()===EOF?we(be,14):pn(ae,be)}return{nextToken:gn,currentOffset:ie,currentPosition:se,context:ve}}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,onWarn:ae}=ee;function ie(Oe,Ne,Re,De,...Ie){const Le=Oe.currentPosition();if(Le.offset+=De,Le.column+=De,oe){const We=ne?createLocation(Re,Le):null,He=createCompileError(Ne,We,{domain:ERROR_DOMAIN$2,args:Ie});oe(He)}}function se(Oe,Ne,Re,De,...Ie){const Le=Oe.currentPosition();if(Le.offset+=De,Le.column+=De,ae){const We=ne?createLocation(Re,Le):null;ae(createCompileWarn(Ne,We,Ie))}}function de(Oe,Ne,Re){const De={type:Oe};return ne&&(De.start=Ne,De.end=Ne,De.loc={start:Re,end:Re}),De}function fe(Oe,Ne,Re,De){ne&&(Oe.end=Ne,Oe.loc&&(Oe.loc.end=Re))}function be(Oe,Ne){const Re=Oe.context(),De=de(3,Re.offset,Re.startLoc);return De.value=Ne,fe(De,Oe.currentOffset(),Oe.currentPosition()),De}function ve(Oe,Ne){const Re=Oe.context(),{lastOffset:De,lastStartLoc:Ie}=Re,Le=de(5,De,Ie);return Le.index=parseInt(Ne,10),Oe.nextToken(),fe(Le,Oe.currentOffset(),Oe.currentPosition()),Le}function ye(Oe,Ne,Re){const De=Oe.context(),{lastOffset:Ie,lastStartLoc:Le}=De,We=de(4,Ie,Le);return We.key=Ne,Re===!0&&(We.modulo=!0),Oe.nextToken(),fe(We,Oe.currentOffset(),Oe.currentPosition()),We}function _e(Oe,Ne){const Re=Oe.context(),{lastOffset:De,lastStartLoc:Ie}=Re,Le=de(9,De,Ie);return Le.value=Ne.replace(KNOWN_ESCAPES,fromEscapeSequence),Oe.nextToken(),fe(Le,Oe.currentOffset(),Oe.currentPosition()),Le}function we(Oe){const Ne=Oe.nextToken(),Re=Oe.context(),{lastOffset:De,lastStartLoc:Ie}=Re,Le=de(8,De,Ie);return Ne.type!==12?(ie(Oe,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,Re.lastStartLoc,0),Le.value="",fe(Le,De,Ie),{nextConsumeToken:Ne,node:Le}):(Ne.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Re.lastStartLoc,0,getTokenCaption(Ne)),Le.value=Ne.value||"",fe(Le,Oe.currentOffset(),Oe.currentPosition()),{node:Le})}function Ae(Oe,Ne){const Re=Oe.context(),De=de(7,Re.offset,Re.startLoc);return De.value=Ne,fe(De,Oe.currentOffset(),Oe.currentPosition()),De}function Ce(Oe){const Ne=Oe.context(),Re=de(6,Ne.offset,Ne.startLoc);let De=Oe.nextToken();if(De.type===9){const Ie=we(Oe);Re.modifier=Ie.node,De=Ie.nextConsumeToken||Oe.nextToken()}switch(De.type!==10&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(De)),De=Oe.nextToken(),De.type===2&&(De=Oe.nextToken()),De.type){case 11:De.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(De)),Re.key=Ae(Oe,De.value||"");break;case 5:De.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(De)),Re.key=ye(Oe,De.value||"");break;case 6:De.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(De)),Re.key=ve(Oe,De.value||"");break;case 7:De.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(De)),Re.key=_e(Oe,De.value||"");break;default:{ie(Oe,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,Ne.lastStartLoc,0);const Ie=Oe.context(),Le=de(7,Ie.offset,Ie.startLoc);return Le.value="",fe(Le,Ie.offset,Ie.startLoc),Re.key=Le,fe(Re,Ie.offset,Ie.startLoc),{nextConsumeToken:De,node:Re}}}return fe(Re,Oe.currentOffset(),Oe.currentPosition()),{node:Re}}function $e(Oe){const Ne=Oe.context(),Re=Ne.currentType===1?Oe.currentOffset():Ne.offset,De=Ne.currentType===1?Ne.endLoc:Ne.startLoc,Ie=de(2,Re,De);Ie.items=[];let Le=null,We=null;do{const Fe=Le||Oe.nextToken();switch(Le=null,Fe.type){case 0:Fe.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(Fe)),Ie.items.push(be(Oe,Fe.value||""));break;case 6:Fe.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(Fe)),Ie.items.push(ve(Oe,Fe.value||""));break;case 4:We=!0;break;case 5:Fe.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(Fe)),Ie.items.push(ye(Oe,Fe.value||"",!!We)),We&&(se(Oe,CompileWarnCodes.USE_MODULO_SYNTAX,Ne.lastStartLoc,0,getTokenCaption(Fe)),We=null);break;case 7:Fe.value==null&&ie(Oe,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Ne.lastStartLoc,0,getTokenCaption(Fe)),Ie.items.push(_e(Oe,Fe.value||""));break;case 8:{const Ze=Ce(Oe);Ie.items.push(Ze.node),Le=Ze.nextConsumeToken||null;break}}}while(Ne.currentType!==14&&Ne.currentType!==1);const He=Ne.currentType===1?Ne.lastOffset:Oe.currentOffset(),Be=Ne.currentType===1?Ne.lastEndLoc:Oe.currentPosition();return fe(Ie,He,Be),Ie}function ke(Oe,Ne,Re,De){const Ie=Oe.context();let Le=De.items.length===0;const We=de(1,Ne,Re);We.cases=[],We.cases.push(De);do{const He=$e(Oe);Le||(Le=He.items.length===0),We.cases.push(He)}while(Ie.currentType!==14);return Le&&ie(Oe,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,Re,0),fe(We,Oe.currentOffset(),Oe.currentPosition()),We}function Pe(Oe){const Ne=Oe.context(),{offset:Re,startLoc:De}=Ne,Ie=$e(Oe);return Ne.currentType===14?Ie:ke(Oe,Re,De,Ie)}function Ee(Oe){const Ne=createTokenizer(Oe,assign$2({},ee)),Re=Ne.context(),De=de(0,Re.offset,Re.startLoc);return ne&&De.loc&&(De.loc.source=Oe),De.body=Pe(Ne),ee.onCacheKey&&(De.cacheKey=ee.onCacheKey(Oe)),Re.currentType!==14&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Re.lastStartLoc,0,Oe[Re.offset]||""),fe(De,Ne.currentOffset(),Ne.currentPosition()),De}return{parse:Ee}}function getTokenCaption(ee){if(ee.type===14)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 ve(ke,Pe){fe.code+=ke}function ye(ke,Pe=!0){const Ee=Pe?ie:"";ve(se?Ee+" ".repeat(ke):Ee)}function _e(ke=!0){const Pe=++fe.indentLevel;ke&&ye(Pe)}function we(ke=!0){const Pe=--fe.indentLevel;ke&&ye(Pe)}function Ae(){ye(fe.indentLevel)}return{context:be,push:ve,indent:_e,deindent:we,newline:Ae,helper:ke=>`_${ke}`,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||[],be=createCodeGenerator(ee,{mode:oe,filename:ae,sourceMap:ie,breakLineCode:se,needIndent:de});be.push(oe==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),be.indent(de),fe.length>0&&(be.push(`const { ${join(fe.map(_e=>`${_e}: _${_e}`),", ")} } = ctx`),be.newline()),be.push("return "),generateNode(be,ee),be.deindent(de),be.push("}"),delete ee.helpers;const{code:ve,map:ye}=be.context();return{ast:ee,code:ve,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 v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(ee){return literalValueRE.test(ee)}function stripQuotes(ee){const ne=ee.charCodeAt(0),oe=ee.charCodeAt(ee.length-1);return ne===oe&&(ne===34||ne===39)?ee.slice(1,-1):ee}function getPathCharType(ee){if(ee==null)return"o";switch(ee.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return ee;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(ee){const ne=ee.trim();return ee.charAt(0)==="0"&&isNaN(parseInt(ee))?!1:isLiteral(ne)?stripQuotes(ne):"*"+ne}function parse(ee){const ne=[];let oe=-1,ae=0,ie=0,se,de,fe,be,ve,ye,_e;const we=[];we[0]=()=>{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 Ae(){const Ce=ee[oe+1];if(ae===5&&Ce==="'"||ae===6&&Ce==='"')return oe++,fe="\\"+Ce,we[0](),!0}for(;ae!==null;)if(oe++,se=ee[oe],!(se==="\\"&&Ae())){if(be=getPathCharType(se),_e=pathStateMachine[ae],ve=_e[be]||_e.l||8,ve===8||(ae=ve[0],ve[1]!==void 0&&(ye=we[ve[1]],ye&&(fe=se,ye()===!1))))return;if(ae===7)return ne}}const cache=new Map;function resolveWithKeyValue(ee,ne){return isObject$5(ee)?ee[ne]:null}function resolveValue(ee,ne){if(!isObject$5(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(;seee,DEFAULT_MESSAGE=ee=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=ee=>ee.length===0?"":join$1(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$5(ee.pluralRules)&&isString$3(ne)&&isFunction$2(ee.pluralRules[ne])?ee.pluralRules[ne]:pluralDefault,ie=isObject$5(ee.pluralRules)&&isString$3(ne)&&isFunction$2(ee.pluralRules[ne])?pluralDefault:void 0,se=Pe=>Pe[ae(oe,Pe.length,ie)],de=ee.list||[],fe=Pe=>de[Pe],be=ee.named||{};isNumber$1(ee.pluralIndex)&&normalizeNamed(oe,be);const ve=Pe=>be[Pe];function ye(Pe){const Ee=isFunction$2(ee.messages)?ee.messages(Pe):isObject$5(ee.messages)?ee.messages[Pe]:!1;return Ee||(ee.parent?ee.parent.message(Pe):DEFAULT_MESSAGE)}const _e=Pe=>ee.modifiers?ee.modifiers[Pe]:DEFAULT_MODIFIER,we=isPlainObject$2(ee.processor)&&isFunction$2(ee.processor.normalize)?ee.processor.normalize:DEFAULT_NORMALIZE,Ae=isPlainObject$2(ee.processor)&&isFunction$2(ee.processor.interpolate)?ee.processor.interpolate:DEFAULT_INTERPOLATE,Ce=isPlainObject$2(ee.processor)&&isString$3(ee.processor.type)?ee.processor.type:DEFAULT_MESSAGE_DATA_TYPE,ke={list:fe,named:ve,plural:se,linked:(Pe,...Ee)=>{const[Oe,Ne]=Ee;let Re="text",De="";Ee.length===1?isObject$5(Oe)?(De=Oe.modifier||De,Re=Oe.type||Re):isString$3(Oe)&&(De=Oe||De):Ee.length===2&&(isString$3(Oe)&&(De=Oe||De),isString$3(Ne)&&(Re=Ne||Re));const Ie=ye(Pe)(ke),Le=Re==="vnode"&&isArray$3(Ie)&&De?Ie[0]:Ie;return De?_e(De)(Le,Re):Le},message:ye,type:Ce,interpolate:Ae,normalize:we,values:assign$3({},de,be)};return ke}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 code$1$1=CompileWarnCodes.__EXTEND_POINT__,inc$1$1=incrementer(code$1$1),CoreWarnCodes={NOT_FOUND_KEY:code$1$1,FALLBACK_TO_TRANSLATE:inc$1$1(),CANNOT_FORMAT_NUMBER:inc$1$1(),FALLBACK_TO_NUMBER_FORMAT:inc$1$1(),CANNOT_FORMAT_DATE:inc$1$1(),FALLBACK_TO_DATE_FORMAT:inc$1$1(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:inc$1$1(),__EXTEND_POINT__:inc$1$1()},code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};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$3(ee))return ee;if(isFunction$2(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$3(ne)?ne:isObject$5(ne)?Object.keys(ne):isString$3(ne)?[ne]:[oe]])]}function fallbackWithLocaleChain(ee,ne,oe){const ae=isString$3(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$3(de);)de=appendBlockToChain(se,de,ne);const fe=isArray$3(ne)||!isPlainObject$2(ne)?ne:ne.default?ne.default:null;de=isString$3(fe)?[fe]:fe,isArray$3(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`${ee.charAt(0).toLocaleUpperCase()}${ee.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(ee,ne)=>ne==="text"&&isString$3(ee)?ee.toUpperCase():ne==="vnode"&&isObject$5(ee)&&"__v_isVNode"in ee?ee.children.toUpperCase():ee,lower:(ee,ne)=>ne==="text"&&isString$3(ee)?ee.toLowerCase():ne==="vnode"&&isObject$5(ee)&&"__v_isVNode"in ee?ee.children.toLowerCase():ee,capitalize:(ee,ne)=>ne==="text"&&isString$3(ee)?capitalize(ee):ne==="vnode"&&isObject$5(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$2(ee.onWarn)?ee.onWarn:warn,oe=isString$3(ee.version)?ee.version:VERSION$2,ae=isString$3(ee.locale)||isFunction$2(ee.locale)?ee.locale:DEFAULT_LOCALE,ie=isFunction$2(ae)?DEFAULT_LOCALE:ae,se=isArray$3(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||isString$3(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:ie,de=isPlainObject$2(ee.messages)?ee.messages:{[ie]:{}},fe=isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[ie]:{}},be=isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[ie]:{}},ve=assign$3({},ee.modifiers||{},getDefaultLinkedModifiers()),ye=ee.pluralRules||{},_e=isFunction$2(ee.missing)?ee.missing:null,we=isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,Ae=isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,Ce=!!ee.fallbackFormat,$e=!!ee.unresolving,ke=isFunction$2(ee.postTranslation)?ee.postTranslation:null,Pe=isPlainObject$2(ee.processor)?ee.processor:null,Ee=isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,Oe=!!ee.escapeParameter,Ne=isFunction$2(ee.messageCompiler)?ee.messageCompiler:_compiler,Re=isFunction$2(ee.messageResolver)?ee.messageResolver:_resolver||resolveWithKeyValue,De=isFunction$2(ee.localeFallbacker)?ee.localeFallbacker:_fallbacker||fallbackWithSimple,Ie=isObject$5(ee.fallbackContext)?ee.fallbackContext:void 0,Le=ee,We=isObject$5(Le.__datetimeFormatters)?Le.__datetimeFormatters:new Map,He=isObject$5(Le.__numberFormatters)?Le.__numberFormatters:new Map,Be=isObject$5(Le.__meta)?Le.__meta:{};_cid++;const Fe={version:oe,cid:_cid,locale:ae,fallbackLocale:se,messages:de,modifiers:ve,pluralRules:ye,missing:_e,missingWarn:we,fallbackWarn:Ae,fallbackFormat:Ce,unresolving:$e,postTranslation:ke,processor:Pe,warnHtmlMessage:Ee,escapeParameter:Oe,messageCompiler:Ne,messageResolver:Re,localeFallbacker:De,fallbackContext:Ie,onWarn:ne,__meta:Be};return Fe.datetimeFormats=fe,Fe.numberFormats=be,Fe.__datetimeFormatters=We,Fe.__numberFormatters=He,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(Fe,oe,Be),Fe}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$3(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;aeformatParts(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)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$5(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$3(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)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=ee=>isFunction$2(ee);function translate(ee,...ne){const{fallbackFormat:oe,postTranslation:ae,unresolving:ie,messageCompiler:se,fallbackLocale:de,messages:fe}=ee,[be,ve]=parseTranslateArgs(...ne),ye=isBoolean$1(ve.missingWarn)?ve.missingWarn:ee.missingWarn,_e=isBoolean$1(ve.fallbackWarn)?ve.fallbackWarn:ee.fallbackWarn,we=isBoolean$1(ve.escapeParameter)?ve.escapeParameter:ee.escapeParameter,Ae=!!ve.resolvedMessage,Ce=isString$3(ve.default)||isBoolean$1(ve.default)?isBoolean$1(ve.default)?se?be:()=>be:ve.default:oe?se?be:()=>be:"",$e=oe||Ce!=="",ke=getLocale(ee,ve);we&&escapeParams(ve);let[Pe,Ee,Oe]=Ae?[be,ke,fe[ke]||{}]:resolveMessageFormat(ee,be,ke,de,_e,ye),Ne=Pe,Re=be;if(!Ae&&!(isString$3(Ne)||isMessageAST(Ne)||isMessageFunction(Ne))&&$e&&(Ne=Ce,Re=Ne),!Ae&&(!(isString$3(Ne)||isMessageAST(Ne)||isMessageFunction(Ne))||!isString$3(Ee)))return ie?NOT_REOSLVED:be;let De=!1;const Ie=()=>{De=!0},Le=isMessageFunction(Ne)?Ne:compileMessageFormat(ee,be,Ee,Ne,Re,Ie);if(De)return Ne;const We=getMessageContextOptions(ee,Ee,Oe,ve),He=createMessageContext(We),Be=evaluateMessage(ee,Le,He),Fe=ae?ae(Be,be):Be;if(__INTLIFY_PROD_DEVTOOLS__){const Ze={timestamp:Date.now(),key:isString$3(be)?be:isMessageFunction(Ne)?Ne.key:"",locale:Ee||(isMessageFunction(Ne)?Ne.locale:""),format:isString$3(Ne)?Ne:isMessageFunction(Ne)?Ne.source:"",message:Fe};Ze.meta=assign$3({},ee.__meta,getAdditionalMeta()||{}),translateDevTools(Ze)}return Fe}function escapeParams(ee){isArray$3(ee.list)?ee.list=ee.list.map(ne=>isString$3(ne)?escapeHtml(ne):ne):isObject$5(ee.named)&&Object.keys(ee.named).forEach(ne=>{isString$3(ee.named[ne])&&(ee.named[ne]=escapeHtml(ee.named[ne]))})}function resolveMessageFormat(ee,ne,oe,ae,ie,se){const{messages:de,onWarn:fe,messageResolver:be,localeFallbacker:ve}=ee,ye=ve(ee,ae,oe);let _e={},we,Ae=null;const Ce="translate";for(let $e=0;$eae;return ve.locale=oe,ve.key=ne,ve}const be=de(ae,getCompileContext(ee,oe,ie,ae,fe,se));return be.locale=oe,be.key=ne,be.source=ae,be}function evaluateMessage(ee,ne,oe){return ne(oe)}function parseTranslateArgs(...ee){const[ne,oe,ae]=ee,ie={};if(!isString$3(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$3(oe)?ie.default=oe:isPlainObject$2(oe)&&!isEmptyObject(oe)?ie.named=oe:isArray$3(oe)&&(ie.list=oe),isNumber$1(ae)?ie.plural=ae:isString$3(ae)?ie.default=ae:isPlainObject$2(ae)&&assign$3(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:be,missingWarn:ve,fallbackContext:ye}=ee,we={locale:ne,modifiers:ie,pluralRules:se,messages:Ae=>{let Ce=de(oe,Ae);if(Ce==null&&ye){const[,,$e]=resolveMessageFormat(ye,Ae,ne,fe,be,ve);Ce=de($e,Ae)}if(isString$3(Ce)||isMessageAST(Ce)){let $e=!1;const Pe=compileMessageFormat(ee,Ae,ne,Ce,Ae,()=>{$e=!0});return $e?NOOP_MESSAGE_FUNCTION:Pe}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}function datetime(ee,...ne){const{datetimeFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:se,localeFallbacker:de}=ee,{__datetimeFormatters:fe}=ee,[be,ve,ye,_e]=parseDateTimeArgs(...ne),we=isBoolean$1(ye.missingWarn)?ye.missingWarn:ee.missingWarn;isBoolean$1(ye.fallbackWarn)?ye.fallbackWarn:ee.fallbackWarn;const Ae=!!ye.part,Ce=getLocale(ee,ye),$e=de(ee,ie,Ce);if(!isString$3(be)||be==="")return new Intl.DateTimeFormat(Ce,_e).format(ve);let ke={},Pe,Ee=null;const Oe="datetime format";for(let De=0;De<$e.length&&(Pe=$e[De],ke=oe[Pe]||{},Ee=ke[be],!isPlainObject$2(Ee));De++)handleMissing(ee,be,Pe,we,Oe);if(!isPlainObject$2(Ee)||!isString$3(Pe))return ae?NOT_REOSLVED:be;let Ne=`${Pe}__${be}`;isEmptyObject(_e)||(Ne=`${Ne}__${JSON.stringify(_e)}`);let Re=fe.get(Ne);return Re||(Re=new Intl.DateTimeFormat(Pe,assign$3({},Ee,_e)),fe.set(Ne,Re)),Ae?Re.formatToParts(ve):Re.format(ve)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...ee){const[ne,oe,ae,ie]=ee,se={};let de={},fe;if(isString$3(ne)){const be=ne.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!be)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const ve=be[3]?be[3].trim().startsWith("T")?`${be[1].trim()}${be[3].trim()}`:`${be[1].trim()}T${be[3].trim()}`:be[1].trim();fe=new Date(ve);try{fe.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(ne)){if(isNaN(ne.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);fe=ne}else if(isNumber$1(ne))fe=ne;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$3(oe)?se.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(be=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(be)?de[be]=oe[be]:se[be]=oe[be]}),isString$3(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,[be,ve,ye,_e]=parseNumberArgs(...ne),we=isBoolean$1(ye.missingWarn)?ye.missingWarn:ee.missingWarn;isBoolean$1(ye.fallbackWarn)?ye.fallbackWarn:ee.fallbackWarn;const Ae=!!ye.part,Ce=getLocale(ee,ye),$e=de(ee,ie,Ce);if(!isString$3(be)||be==="")return new Intl.NumberFormat(Ce,_e).format(ve);let ke={},Pe,Ee=null;const Oe="number format";for(let De=0;De<$e.length&&(Pe=$e[De],ke=oe[Pe]||{},Ee=ke[be],!isPlainObject$2(Ee));De++)handleMissing(ee,be,Pe,we,Oe);if(!isPlainObject$2(Ee)||!isString$3(Pe))return ae?NOT_REOSLVED:be;let Ne=`${Pe}__${be}`;isEmptyObject(_e)||(Ne=`${Ne}__${JSON.stringify(_e)}`);let Re=fe.get(Ne);return Re||(Re=new Intl.NumberFormat(Pe,assign$3({},Ee,_e)),fe.set(Ne,Re)),Ae?Re.formatToParts(ve):Re.format(ve)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...ee){const[ne,oe,ae,ie]=ee,se={};let de={};if(!isNumber$1(ne))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const fe=ne;return isString$3(oe)?se.key=oe:isPlainObject$2(oe)&&Object.keys(oe).forEach(be=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(be)?de[be]=oe[be]:se[be]=oe[be]}),isString$3(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)}}initFeatureFlags$1();/*! + * vue-i18n v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const VERSION$1="9.13.1";function initFeatureFlags(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};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$5(ee))return ee;for(const ne in ee)if(hasOwn(ee,ne))if(!ne.includes("."))isObject$5(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:be,resource:ve}=fe;be?(de[be]=de[be]||{},deepCopy(ve,de[be])):deepCopy(ve,de)}else isString$3(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$5(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$5(ne.datetimeFormats)){const se=Object.keys(ne.datetimeFormats);se.length&&se.forEach(de=>{ee.mergeDateTimeFormat(de,ne.datetimeFormats[de])})}if(isObject$5(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$1,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={},ne){const{__root:oe,__injectWithOption:ae}=ee,ie=oe===void 0,se=ee.flatJson,de=inBrowser$2?ref:shallowRef,fe=!!ee.translateExistCompatible;let be=isBoolean$1(ee.inheritLocale)?ee.inheritLocale:!0;const ve=de(oe&&be?oe.locale.value:isString$3(ee.locale)?ee.locale:DEFAULT_LOCALE),ye=de(oe&&be?oe.fallbackLocale.value:isString$3(ee.fallbackLocale)||isArray$3(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:ve.value),_e=de(getLocaleMessages(ve.value,ee)),we=de(isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[ve.value]:{}}),Ae=de(isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[ve.value]:{}});let Ce=oe?oe.missingWarn:isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,$e=oe?oe.fallbackWarn:isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,ke=oe?oe.fallbackRoot:isBoolean$1(ee.fallbackRoot)?ee.fallbackRoot:!0,Pe=!!ee.fallbackFormat,Ee=isFunction$2(ee.missing)?ee.missing:null,Oe=isFunction$2(ee.missing)?defineCoreMissingHandler(ee.missing):null,Ne=isFunction$2(ee.postTranslation)?ee.postTranslation:null,Re=oe?oe.warnHtmlMessage:isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,De=!!ee.escapeParameter;const Ie=oe?oe.modifiers:isPlainObject$2(ee.modifiers)?ee.modifiers:{};let Le=ee.pluralRules||oe&&oe.pluralRules,We;We=(()=>{ie&&setFallbackContext(null);const Yt={version:VERSION$1,locale:ve.value,fallbackLocale:ye.value,messages:_e.value,modifiers:Ie,pluralRules:Le,missing:Oe===null?void 0:Oe,missingWarn:Ce,fallbackWarn:$e,fallbackFormat:Pe,unresolving:!0,postTranslation:Ne===null?void 0:Ne,warnHtmlMessage:Re,escapeParameter:De,messageResolver:ee.messageResolver,messageCompiler:ee.messageCompiler,__meta:{framework:"vue"}};Yt.datetimeFormats=we.value,Yt.numberFormats=Ae.value,Yt.__datetimeFormatters=isPlainObject$2(We)?We.__datetimeFormatters:void 0,Yt.__numberFormatters=isPlainObject$2(We)?We.__numberFormatters:void 0;const sn=createCoreContext(Yt);return ie&&setFallbackContext(sn),sn})(),updateFallbackLocale(We,ve.value,ye.value);function Be(){return[ve.value,ye.value,_e.value,we.value,Ae.value]}const Fe=computed({get:()=>ve.value,set:Yt=>{ve.value=Yt,We.locale=ve.value}}),Ze=computed({get:()=>ye.value,set:Yt=>{ye.value=Yt,We.fallbackLocale=ye.value,updateFallbackLocale(We,ve.value,Yt)}}),qe=computed(()=>_e.value),ze=computed(()=>we.value),je=computed(()=>Ae.value);function Qe(){return isFunction$2(Ne)?Ne:null}function At(Yt){Ne=Yt,We.postTranslation=Yt}function Rt(){return Ee}function Dt(Yt){Yt!==null&&(Oe=defineCoreMissingHandler(Yt)),Ee=Yt,We.missing=Oe}const Ke=(Yt,sn,yn,Nn,Zn,Hn)=>{Be();let Kn;try{__INTLIFY_PROD_DEVTOOLS__,ie||(We.fallbackContext=oe?getFallbackContext():void 0),Kn=Yt(We)}finally{__INTLIFY_PROD_DEVTOOLS__,ie||(We.fallbackContext=void 0)}if(yn!=="translate exists"&&isNumber$1(Kn)&&Kn===NOT_REOSLVED||yn==="translate exists"&&!Kn){const[Mn,wn]=sn();return oe&&ke?Nn(oe):Zn(Mn)}else{if(Hn(Kn))return Kn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Vt(...Yt){return Ke(sn=>Reflect.apply(translate,null,[sn,...Yt]),()=>parseTranslateArgs(...Yt),"translate",sn=>Reflect.apply(sn.t,sn,[...Yt]),sn=>sn,sn=>isString$3(sn))}function tn(...Yt){const[sn,yn,Nn]=Yt;if(Nn&&!isObject$5(Nn))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Vt(sn,yn,assign$3({resolvedMessage:!0},Nn||{}))}function ln(...Yt){return Ke(sn=>Reflect.apply(datetime,null,[sn,...Yt]),()=>parseDateTimeArgs(...Yt),"datetime format",sn=>Reflect.apply(sn.d,sn,[...Yt]),()=>MISSING_RESOLVE_VALUE,sn=>isString$3(sn))}function Gt(...Yt){return Ke(sn=>Reflect.apply(number,null,[sn,...Yt]),()=>parseNumberArgs(...Yt),"number format",sn=>Reflect.apply(sn.n,sn,[...Yt]),()=>MISSING_RESOLVE_VALUE,sn=>isString$3(sn))}function rn(Yt){return Yt.map(sn=>isString$3(sn)||isNumber$1(sn)||isBoolean$1(sn)?createTextNode(String(sn)):sn)}const Ft={normalize:rn,interpolate:Yt=>Yt,type:"vnode"};function Kt(...Yt){return Ke(sn=>{let yn;const Nn=sn;try{Nn.processor=Ft,yn=Reflect.apply(translate,null,[Nn,...Yt])}finally{Nn.processor=null}return yn},()=>parseTranslateArgs(...Yt),"translate",sn=>sn[TranslateVNodeSymbol](...Yt),sn=>[createTextNode(sn)],sn=>isArray$3(sn))}function Zt(...Yt){return Ke(sn=>Reflect.apply(number,null,[sn,...Yt]),()=>parseNumberArgs(...Yt),"number format",sn=>sn[NumberPartsSymbol](...Yt),NOOP_RETURN_ARRAY,sn=>isString$3(sn)||isArray$3(sn))}function hn(...Yt){return Ke(sn=>Reflect.apply(datetime,null,[sn,...Yt]),()=>parseDateTimeArgs(...Yt),"datetime format",sn=>sn[DatetimePartsSymbol](...Yt),NOOP_RETURN_ARRAY,sn=>isString$3(sn)||isArray$3(sn))}function un(Yt){Le=Yt,We.pluralRules=Le}function Xe(Yt,sn){return Ke(()=>{if(!Yt)return!1;const yn=isString$3(sn)?sn:ve.value,Nn=Xt(yn),Zn=We.messageResolver(Nn,Yt);return fe?Zn!=null:isMessageAST(Zn)||isMessageFunction(Zn)||isString$3(Zn)},()=>[Yt],"translate exists",yn=>Reflect.apply(yn.te,yn,[Yt,sn]),NOOP_RETURN_FALSE,yn=>isBoolean$1(yn))}function Nt(Yt){let sn=null;const yn=fallbackWithLocaleChain(We,ye.value,ve.value);for(let Nn=0;Nn{be&&(ve.value=Yt,We.locale=Yt,updateFallbackLocale(We,ve.value,ye.value))}),watch(oe.fallbackLocale,Yt=>{be&&(ye.value=Yt,We.fallbackLocale=Yt,updateFallbackLocale(We,ve.value,ye.value))}));const fn={id:composerID,locale:Fe,fallbackLocale:Ze,get inheritLocale(){return be},set inheritLocale(Yt){be=Yt,Yt&&oe&&(ve.value=oe.locale.value,ye.value=oe.fallbackLocale.value,updateFallbackLocale(We,ve.value,ye.value))},get availableLocales(){return Object.keys(_e.value).sort()},messages:qe,get modifiers(){return Ie},get pluralRules(){return Le||{}},get isGlobal(){return ie},get missingWarn(){return Ce},set missingWarn(Yt){Ce=Yt,We.missingWarn=Ce},get fallbackWarn(){return $e},set fallbackWarn(Yt){$e=Yt,We.fallbackWarn=$e},get fallbackRoot(){return ke},set fallbackRoot(Yt){ke=Yt},get fallbackFormat(){return Pe},set fallbackFormat(Yt){Pe=Yt,We.fallbackFormat=Pe},get warnHtmlMessage(){return Re},set warnHtmlMessage(Yt){Re=Yt,We.warnHtmlMessage=Yt},get escapeParameter(){return De},set escapeParameter(Yt){De=Yt,We.escapeParameter=Yt},t:Vt,getLocaleMessage:Xt,setLocaleMessage:on,mergeLocaleMessage:pn,getPostTranslationHandler:Qe,setPostTranslationHandler:At,getMissingHandler:Rt,setMissingHandler:Dt,[SetPluralRulesSymbol]:un};return fn.datetimeFormats=ze,fn.numberFormats=je,fn.rt=tn,fn.te=Xe,fn.tm=Mt,fn.d=ln,fn.n=Gt,fn.getDateTimeFormat=gn,fn.setDateTimeFormat=Pt,fn.mergeDateTimeFormat=lt,fn.getNumberFormat=Jt,fn.setNumberFormat=en,fn.mergeNumberFormat=mn,fn[InejctWithOptionSymbol]=ae,fn[TranslateVNodeSymbol]=Kt,fn[DatetimePartsSymbol]=hn,fn[NumberPartsSymbol]=Zt,fn}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(ee){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$3({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$3(ee.plural)?+ee.plural:ee.plural);const fe=getInterpolateArg(ne,se),be=ie[TranslateVNodeSymbol](ee.keypath,fe,de),ve=assign$3({},ae),ye=isString$3(ee.tag)||isObject$5(ee.tag)?ee.tag:getFragmentableTag();return h$2(ye,ve,be)}}}),Translation=TranslationImpl;function isVNode(ee){return isArray$3(ee)&&!isString$3(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$3(ee.format)?de.key=ee.format:isObject$5(ee.format)&&(isString$3(ee.format.key)&&(de.key=ee.format.key),fe=Object.keys(ee.format).reduce((we,Ae)=>oe.includes(Ae)?assign$3({},we,{[Ae]:ee.format[Ae]}):we,{}));const be=ae(ee.value,de,fe);let ve=[de.key];isArray$3(be)?ve=be.map((we,Ae)=>{const Ce=ie[we.type],$e=Ce?Ce({[we.type]:we.value,index:Ae,parts:be}):[we.value];return isVNode($e)&&($e[0].key=`${we.type}-${Ae}`),$e}):isString$3(be)&&(ve=[be]);const ye=assign$3({},se),_e=isString$3(ee.tag)||isObject$5(ee.tag)?ee.tag:getFragmentableTag();return h$2(_e,ye,ve)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$3({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$3({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$2(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,modifiers:be,value:ve}=de;if(!fe||!fe.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const ye=getComposer$2(ee,fe.$),_e=parseValue(ve);return[Reflect.apply(ye.t,ye,[...makeParams(_e)]),ye]};return{created:(de,fe)=>{const[be,ve]=ne(fe);inBrowser$2&&ee.global===ve&&(de.__i18nWatcher=watch(ve.locale,()=>{fe.instance&&fe.instance.$forceUpdate()})),de.__composer=ve,de.textContent=be},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 be=de.__composer,ve=parseValue(fe);de.textContent=Reflect.apply(be.t,be,[...makeParams(ve)])}},getSSRProps:de=>{const[fe]=ne(de);return{textContent:fe}}}}function parseValue(ee){if(isString$3(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$3(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]:{},ie=!!ae.useI18nComponentName;(isBoolean$1(ae.globalInstall)?ae.globalInstall:!0)&&([ie?"i18n":Translation.name,"I18nT"].forEach(de=>ee.component(de,Translation)),[NumberFormat.name,"I18nN"].forEach(de=>ee.component(de,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(de=>ee.component(de,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=!0,ie=new Map,[se,de]=createGlobal(ee),fe=makeSymbol("");function be(_e){return ie.get(_e)||null}function ve(_e,we){ie.set(_e,we)}function ye(_e){ie.delete(_e)}{const _e={get mode(){return"composition"},get allowComposition(){return ae},async install(we,...Ae){if(we.__VUE_I18N_SYMBOL__=fe,we.provide(we.__VUE_I18N_SYMBOL__,_e),isPlainObject$2(Ae[0])){const ke=Ae[0];_e.__composerExtend=ke.__composerExtend,_e.__vueI18nExtend=ke.__vueI18nExtend}let Ce=null;oe&&(Ce=injectGlobalFields(we,_e.global)),apply(we,_e,...Ae);const $e=we.unmount;we.unmount=()=>{Ce&&Ce(),_e.dispose(),$e()}},get global(){return de},dispose(){se.stop()},__instances:ie,__getInstance:be,__setInstance:ve,__deleteInstance:ye};return _e}}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 be=getComposer(oe,ne,ee.__useComponent);return be==null&&(be=ae),be}const de=oe;let fe=de.__getInstance(ne);if(fe==null){const be=assign$3({},ee);"__i18n"in ie&&(be.__i18n=ie.__i18n),ae&&(be.__root=ae),fe=createComposer(be),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();{const 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__)}const isObject$3=ee=>ee&&typeof ee=="object"&&!Array.isArray(ee),mergeDeep=(ee,...ne)=>{if(!ne.length)return ee;const oe=ne.shift();if(isObject$3(ee)&&isObject$3(oe))for(const ae in oe)isObject$3(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:ee=>{const{normalize:ne}=ee;return ne(["Navbar"])},default:ee=>{const{normalize:ne}=ee;return ne(["Default navbar"])},none:ee=>{const{normalize:ne}=ee;return ne(["No navbar"])},preset:ee=>{const{normalize:ne}=ee;return ne(["Preset button"])},mode:ee=>{const{normalize:ne}=ee;return ne(["Navbar mode"])},"title-no-center":ee=>{const{normalize:ne}=ee;return ne(["Title not centered"])},"custom-title":ee=>{const{normalize:ne}=ee;return ne(["Custom title"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["Custom area"])},"custom-navbar":ee=>{const{normalize:ne}=ee;return ne(["Custom navbar"])}},tabbar:{root:ee=>{const{normalize:ne}=ee;return ne(["Tabbar"])},default:ee=>{const{normalize:ne}=ee;return ne(["Default tabbar"])},multi:ee=>{const{normalize:ne}=ee;return ne(["Multiple sets of tabbars"])},badge:ee=>{const{normalize:ne}=ee;return ne(["Badge"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["Custom area"])}},permission:{root:ee=>{const{normalize:ne}=ee;return ne(["Permission validation"])}},function:{root:ee=>{const{normalize:ne}=ee;return ne(["Function"])},errorLog:ee=>{const{normalize:ne}=ee;return ne(["Error log"])},font:ee=>{const{normalize:ne}=ee;return ne(["Costom Font"])},i18n:ee=>{const{normalize:ne}=ee;return ne(["Internationalization"])},icon:ee=>{const{normalize:ne}=ee;return ne(["Icon"])},keepAlive:ee=>{const{normalize:ne}=ee;return ne(["Page cache"])},watermark:ee=>{const{normalize:ne}=ee;return ne(["Watermark"])},zoomable:ee=>{const{normalize:ne}=ee;return ne(["Zoomable"])},title:ee=>{const{normalize:ne}=ee;return ne(["Dynamic title"])},scroll:ee=>{const{normalize:ne}=ee;return ne(["Saved posotion"])}}},tabbar:{default:{feature:ee=>{const{normalize:ne}=ee;return ne(["Feature"])},index:ee=>{const{normalize:ne}=ee;return ne(["Index"])},user:ee=>{const{normalize:ne}=ee;return ne(["User"])}},second:{flower:ee=>{const{normalize:ne}=ee;return ne(["Flower"])},grass:ee=>{const{normalize:ne}=ee;return ne(["Grass"])}},third:{dot:ee=>{const{normalize:ne}=ee;return ne(["Dot"])},number:ee=>{const{normalize:ne}=ee;return ne(["Number"])},text:ee=>{const{normalize:ne}=ee;return ne(["Text"])}}}}},{"zh-cn":{pages:{navbar:{root:ee=>{const{normalize:ne}=ee;return ne(["导航栏"])},default:ee=>{const{normalize:ne}=ee;return ne(["默认导航栏"])},none:ee=>{const{normalize:ne}=ee;return ne(["无导航栏"])},preset:ee=>{const{normalize:ne}=ee;return ne(["预设按钮"])},mode:ee=>{const{normalize:ne}=ee;return ne(["导航栏模式"])},"title-no-center":ee=>{const{normalize:ne}=ee;return ne(["标题非居中"])},"custom-title":ee=>{const{normalize:ne}=ee;return ne(["自定义标题"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["自定义区域"])},"custom-navbar":ee=>{const{normalize:ne}=ee;return ne(["自定义导航栏"])}},tabbar:{root:ee=>{const{normalize:ne}=ee;return ne(["标签栏"])},default:ee=>{const{normalize:ne}=ee;return ne(["默认标签栏"])},multi:ee=>{const{normalize:ne}=ee;return ne(["多套标签栏"])},badge:ee=>{const{normalize:ne}=ee;return ne(["角标"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["自定义区域"])}},permission:{root:ee=>{const{normalize:ne}=ee;return ne(["权限验证"])}},function:{root:ee=>{const{normalize:ne}=ee;return ne(["功能"])},errorLog:ee=>{const{normalize:ne}=ee;return ne(["错误日志"])},font:ee=>{const{normalize:ne}=ee;return ne(["自定义字体"])},i18n:ee=>{const{normalize:ne}=ee;return ne(["国际化"])},icon:ee=>{const{normalize:ne}=ee;return ne(["图标"])},keepAlive:ee=>{const{normalize:ne}=ee;return ne(["页面缓存"])},watermark:ee=>{const{normalize:ne}=ee;return ne(["水印"])},zoomable:ee=>{const{normalize:ne}=ee;return ne(["图片预览"])},title:ee=>{const{normalize:ne}=ee;return ne(["动态标题"])},scroll:ee=>{const{normalize:ne}=ee;return ne(["记录滚动位置"])}}},tabbar:{default:{feature:ee=>{const{normalize:ne}=ee;return ne(["特色"])},index:ee=>{const{normalize:ne}=ee;return ne(["主页"])},user:ee=>{const{normalize:ne}=ee;return ne(["我的"])}},second:{flower:ee=>{const{normalize:ne}=ee;return ne(["花花"])},grass:ee=>{const{normalize:ne}=ee;return ne(["草草"])}},third:{dot:ee=>{const{normalize:ne}=ee;return ne(["点"])},number:ee=>{const{normalize:ne}=ee;return ne(["数字"])},text:ee=>{const{normalize:ne}=ee;return ne(["文本"])}}}}});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}var isVue2=!1;/*! + * pinia v2.1.7 + * (c) 2023 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();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 be;function ve(){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 Ae=oe._s.get(ee);return de[we].call(Ae,Ae)})),_e),{}))}return be=createSetupStore(ee,ve,ne,oe,ae,!0),be}function createSetupStore(ee,ne,oe={},ae,ie,se){let de;const fe=assign$1({actions:{}},oe),be={deep:!0};let ve,ye,_e=[],we=[],Ae;const Ce=ae.state.value[ee];!se&&!Ce&&(ae.state.value[ee]={}),ref({});let $e;function ke(Le){let We;ve=ye=!1,typeof Le=="function"?(Le(ae.state.value[ee]),We={type:MutationType.patchFunction,storeId:ee,events:Ae}):(mergeReactiveObjects(ae.state.value[ee],Le),We={type:MutationType.patchObject,payload:Le,storeId:ee,events:Ae});const He=$e=Symbol();nextTick().then(()=>{$e===He&&(ve=!0)}),ye=!0,triggerSubscriptions(_e,We,ae.state.value[ee])}const Pe=se?function(){const{state:We}=oe,He=We?We():{};this.$patch(Be=>{assign$1(Be,He)})}:noop$3;function Ee(){de.stop(),_e=[],we=[],ae._s.delete(ee)}function Oe(Le,We){return function(){setActivePinia(ae);const He=Array.from(arguments),Be=[],Fe=[];function Ze(je){Be.push(je)}function qe(je){Fe.push(je)}triggerSubscriptions(we,{args:He,name:Le,store:Re,after:Ze,onError:qe});let ze;try{ze=We.apply(this&&this.$id===ee?this:Re,He)}catch(je){throw triggerSubscriptions(Fe,je),je}return ze instanceof Promise?ze.then(je=>(triggerSubscriptions(Be,je),je)).catch(je=>(triggerSubscriptions(Fe,je),Promise.reject(je))):(triggerSubscriptions(Be,ze),ze)}}const Ne={_p:ae,$id:ee,$onAction:addSubscription.bind(null,we),$patch:ke,$reset:Pe,$subscribe(Le,We={}){const He=addSubscription(_e,Le,We.detached,()=>Be()),Be=de.run(()=>watch(()=>ae.state.value[ee],Fe=>{(We.flush==="sync"?ye:ve)&&Le({storeId:ee,type:MutationType.direct,events:Ae},Fe)},assign$1({},be,We)));return He},$dispose:Ee},Re=reactive(Ne);ae._s.set(ee,Re);const Ie=(ae._a&&ae._a.runWithContext||fallbackRunWithContext)(()=>ae._e.run(()=>(de=effectScope()).run(ne)));for(const Le in Ie){const We=Ie[Le];if(isRef(We)&&!isComputed(We)||isReactive(We))se||(Ce&&shouldHydrate(We)&&(isRef(We)?We.value=Ce[Le]:mergeReactiveObjects(We,Ce[Le])),ae.state.value[ee][Le]=We);else if(typeof We=="function"){const He=Oe(Le,We);Ie[Le]=He,fe.actions[Le]=We}}return assign$1(Re,Ie),assign$1(toRaw(Re),Ie),Object.defineProperty(Re,"$state",{get:()=>ae.state.value[ee],set:Le=>{ke(We=>{assign$1(We,Le)})}}),ae._p.forEach(Le=>{assign$1(Re,de.run(()=>Le({store:Re,app:ae._a,pinia:ae,options:fe})))}),Ce&&se&&oe.hydrate&&oe.hydrate(Re.$state,Ce),ve=!0,ye=!0,Re}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,be){const ve=hasInjectionContext();return fe=fe||(ve?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 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}}),pinia=createPinia(),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.github.io"}},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,_e=>{_e===""?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 _e=ee.value.app.colorScheme;switch(_e===""&&(_e=ne.matches?"dark":"light"),oe.value=_e,_e){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}}const ie=ref("");function se(_e){ie.value=_e}const de=ref([]);function fe(_e,we){const Ae=de.value.findIndex(Ce=>Ce.fullPath===_e);Ae>-1?de.value[Ae].title=we:de.value.push({fullPath:_e,title:we})}function be(_e){const we=de.value.findIndex(Ae=>Ae.fullPath===_e);we>-1&&de.value.splice(we,1)}const ve=computed(()=>{if(ee.value.app.defaultLang===""){const _e=navigator.language.toLowerCase(),we=getLocales();if(we!=null&&we[_e])return _e}return ee.value.app.defaultLang||"zh-cn"});function ye(_e){ee.value.app.defaultLang=_e}return{settings:ee,currentColorScheme:oe,title:ie,setTitle:se,customTitleList:de,setCustomTitle:fe,resetCustomTitle:be,lang:ve,setDefaultLang:ye}}),_withScopeId=ee=>(pushScopeId("data-v-ad954dd7"),ee=ee(),popScopeId(),ee),_hoisted_1$1=_withScopeId(()=>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)),_hoisted_2$1=_withScopeId(()=>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)),_hoisted_3$1={class:"flex items-center justify-center pb-4"},_hoisted_4$1={class:"flex flex-wrap items-center justify-center gap-4 pb-4"},_hoisted_5=["onClick"],_hoisted_6=_withScopeId(()=>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)),_hoisted_7={class:"flex items-center justify-center pb-4"},_hoisted_8={key:0,class:"flex items-center justify-center gap-4 pb-4"},_hoisted_9=_withScopeId(()=>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)),_hoisted_10={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_11=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用 ",-1)),_hoisted_12={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_13=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 日期 ",-1)),_hoisted_14={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_15=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 公司 ",-1)),_hoisted_16={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_17=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 网址 ",-1)),_hoisted_18={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_19=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 备案 ",-1)),_hoisted_20=_withScopeId(()=>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)),_hoisted_21={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_22=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用权限 ",-1)),_hoisted_23={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_24=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 载入进度条 ",-1)),_hoisted_25={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_26=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 返回顶部 ",-1)),_hoisted_27={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_28=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 动态标题 ",-1)),_hoisted_29={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_30=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," Storage 前缀 ",-1)),_hoisted_31={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_32=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 页面水印 ",-1)),_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(be=>({label:be,value:themes[be]})).filter(be=>be.value["color-scheme"]===ne.currentColorScheme)),{copy:ie,copied:se,isSupported:de}=useClipboard();watch(se,be=>{be&&index.success("复制成功,请粘贴到 src/settings.ts 文件中!",{zIndex:2e3})});function fe(){ie(JSON.stringify(getTwoObjectDiff(globalSettingsDefault,ne.settings),null,2))}return(be,ve)=>{const ye=_sfc_main$4,_e=_sfc_main$5,we=_sfc_main$6,Ae=_sfc_main$9,Ce=_sfc_main$7,$e=_sfc_main$8;return openBlock(),createBlock($e,{modelValue:unref(oe),"onUpdate:modelValue":ve[18]||(ve[18]=ke=>isRef(oe)?oe.value=ke:null),title:"应用配置"},createSlots({default:withCtx(()=>[_hoisted_1$1,createBaseVNode("div",null,[_hoisted_2$1,createBaseVNode("div",_hoisted_3$1,[createVNode(ye,{modelValue:unref(ne).settings.app.colorScheme,"onUpdate:modelValue":ve[0]||(ve[0]=ke=>unref(ne).settings.app.colorScheme=ke),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_4$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ae),ke=>(openBlock(),createElementBlock("div",{key:ke.label,class:normalizeClass$1(["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===ke.label:unref(ne).settings.app.lightTheme===ke.label}]),onClick:Pe=>unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme=ke.label:unref(ne).settings.app.lightTheme=ke.label},[createBaseVNode("div",{class:normalizeClass$1(["h-4 w-6 rounded-1/2 transition -rotate-45",{"rotate-0!":unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme===ke.label:unref(ne).settings.app.lightTheme===ke.label}]),style:normalizeStyle$1(`background-color: rgb(${ke.value["--ui-primary"]});`)},null,6)],10,_hoisted_5))),128))])]),createBaseVNode("div",null,[_hoisted_6,createBaseVNode("div",_hoisted_7,[createVNode(_e,{modelValue:unref(ne).settings.mainPage.enableTransition,"onUpdate:modelValue":ve[1]||(ve[1]=ke=>unref(ne).settings.mainPage.enableTransition=ke)},null,8,["modelValue"])]),unref(ne).settings.mainPage.enableTransition?(openBlock(),createElementBlock("div",_hoisted_8,[createBaseVNode("div",{class:normalizeClass$1(["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:ve[2]||(ve[2]=ke=>unref(ne).settings.mainPage.transitionMode="fade")},null,2),createBaseVNode("div",{class:normalizeClass$1(["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:ve[3]||(ve[3]=ke=>unref(ne).settings.mainPage.transitionMode="slide-left")},null,2),createBaseVNode("div",{class:normalizeClass$1(["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:ve[4]||(ve[4]=ke=>unref(ne).settings.mainPage.transitionMode="slide-right")},null,2),createBaseVNode("div",{class:normalizeClass$1(["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:ve[5]||(ve[5]=ke=>unref(ne).settings.mainPage.transitionMode="slide-top")},null,2),createBaseVNode("div",{class:normalizeClass$1(["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:ve[6]||(ve[6]=ke=>unref(ne).settings.mainPage.transitionMode="slide-bottom")},null,2)])):createCommentVNode("",!0)]),createBaseVNode("div",null,[_hoisted_9,createBaseVNode("div",_hoisted_10,[_hoisted_11,createVNode(_e,{modelValue:unref(ne).settings.copyright.enable,"onUpdate:modelValue":ve[7]||(ve[7]=ke=>unref(ne).settings.copyright.enable=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_12,[_hoisted_13,createVNode(we,{modelValue:unref(ne).settings.copyright.dates,"onUpdate:modelValue":ve[8]||(ve[8]=ke=>unref(ne).settings.copyright.dates=ke),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_14,[_hoisted_15,createVNode(we,{modelValue:unref(ne).settings.copyright.company,"onUpdate:modelValue":ve[9]||(ve[9]=ke=>unref(ne).settings.copyright.company=ke),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_16,[_hoisted_17,createVNode(we,{modelValue:unref(ne).settings.copyright.website,"onUpdate:modelValue":ve[10]||(ve[10]=ke=>unref(ne).settings.copyright.website=ke),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_18,[_hoisted_19,createVNode(we,{modelValue:unref(ne).settings.copyright.beian,"onUpdate:modelValue":ve[11]||(ve[11]=ke=>unref(ne).settings.copyright.beian=ke),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])])]),createBaseVNode("div",null,[_hoisted_20,createBaseVNode("div",_hoisted_21,[_hoisted_22,createVNode(_e,{modelValue:unref(ne).settings.app.enablePermission,"onUpdate:modelValue":ve[12]||(ve[12]=ke=>unref(ne).settings.app.enablePermission=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_23,[_hoisted_24,createVNode(_e,{modelValue:unref(ne).settings.app.enableProgress,"onUpdate:modelValue":ve[13]||(ve[13]=ke=>unref(ne).settings.app.enableProgress=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_25,[_hoisted_26,createVNode(_e,{modelValue:unref(ne).settings.app.enableBackTop,"onUpdate:modelValue":ve[14]||(ve[14]=ke=>unref(ne).settings.app.enableBackTop=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_27,[_hoisted_28,createVNode(_e,{modelValue:unref(ne).settings.app.enableDynamicTitle,"onUpdate:modelValue":ve[15]||(ve[15]=ke=>unref(ne).settings.app.enableDynamicTitle=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_29,[_hoisted_30,createVNode(we,{modelValue:unref(ne).settings.app.storagePrefix,"onUpdate:modelValue":ve[16]||(ve[16]=ke=>unref(ne).settings.app.storagePrefix=ke)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_31,[_hoisted_32,createVNode(_e,{modelValue:unref(ne).settings.app.enableWatermark,"onUpdate:modelValue":ve[17]||(ve[17]=ke=>unref(ne).settings.app.enableWatermark=ke)},null,8,["modelValue"])])])]),_:2},[unref(de)?{name:"footer",fn:withCtx(()=>[createVNode(Ce,{block:"",onClick:fe},{default:withCtx(()=>[createVNode(Ae,{name:"i-ep:document-copy"}),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-ad954dd7"]]);/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const isBrowser=typeof document<"u";function isESModule(ee){return ee.__esModule||ee[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams(ee,ne){const oe={};for(const ae in ne){const ie=ne[ae];oe[ae]=isArray$2(ie)?ie.map(ee):ee(ie)}return oe}const noop$2=()=>{},isArray$2=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 be=ne.indexOf("?");return fe=0&&(be=-1),be>-1&&(ae=ne.slice(0,be),se=ne.slice(be+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$2(ee)?isEquivalentArray(ee,ne):isArray$2(ne)?isEquivalentArray(ne,ee):ee===ne}function isEquivalentArray(ee,ne){return isArray$2(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("/")}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,be=ie.slice(fe);return be[0]!=="/"&&(be="/"+be),stripBase(be,"")}return stripBase(oe,ee)+ae+ie}function useHistoryListeners(ee,ne,oe,ae){let ie=[],se=[],de=null;const fe=({state:we})=>{const Ae=createCurrentLocation(ee,location),Ce=oe.value,$e=ne.value;let ke=0;if(we){if(oe.value=Ae,ne.value=we,de&&de===Ce){de=null;return}ke=$e?we.position-$e.position:0}else ae(Ae);ie.forEach(Pe=>{Pe(oe.value,Ce,{delta:ke,type:NavigationType.pop,direction:ke?ke>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function be(){de=oe.value}function ve(we){ie.push(we);const Ae=()=>{const Ce=ie.indexOf(we);Ce>-1&&ie.splice(Ce,1)};return se.push(Ae),Ae}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:be,listen:ve,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(be,ve,ye){const _e=ee.indexOf("#"),we=_e>-1?(oe.host&&document.querySelector("base")?ee:ee.slice(_e))+be:createBaseLocation()+ee+be;try{ne[ye?"replaceState":"pushState"](ve,"",we),ie.value=ve}catch(Ae){console.error(Ae),oe[ye?"replace":"assign"](we)}}function de(be,ve){const ye=assign({},ne.state,buildState(ie.value.back,be,ie.value.forward,!0),ve,{position:ie.value.position});se(be,ye,!0),ae.value=be}function fe(be,ve){const ye=assign({},ie.value,ne.state,{forward:be,scroll:computeScrollPosition()});se(ye.current,ye,!0);const _e=assign({},buildState(ae.value,be,null),{position:ye.position+1},ve);se(be,_e,!1),ae.value=be}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 START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},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 ve of ee){const ye=ve.length?[]:[90];oe.strict&&!ve.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(Ae){throw new Error(`ERR (${oe})/"${ve}": ${Ae}`)}let oe=0,ae=oe;const ie=[];let se;function de(){se&&ie.push(se),se=[]}let fe=0,be,ve="",ye="";function _e(){ve&&(oe===0?se.push({type:0,value:ve}):oe===1||oe===2||oe===3?(se.length>1&&(be==="*"||be==="+")&&ne(`A repeatable param (${ve}) must be alone in its segment. eg: '/:ids+.`),se.push({type:1,value:ve,regexp:ye,repeatable:be==="*"||be==="+",optional:be==="*"||be==="?"})):ne("Invalid state to consume buffer"),ve="")}function we(){ve+=be}for(;fe{de(Ee)}:noop$2}function de(ye){if(isRouteName(ye)){const _e=ae.get(ye);_e&&(ae.delete(ye),oe.splice(oe.indexOf(_e),1),_e.children.forEach(de),_e.alias.forEach(de))}else{const _e=oe.indexOf(ye);_e>-1&&(oe.splice(_e,1),ye.record.name&&ae.delete(ye.record.name),ye.children.forEach(de),ye.alias.forEach(de))}}function fe(){return oe}function be(ye){let _e=0;for(;_e=0&&(ye.record.path!==oe[_e].record.path||!isRecordChildOf(ye,oe[_e]));)_e++;oe.splice(_e,0,ye),ye.record.name&&!isAliasRecord(ye)&&ae.set(ye.record.name,ye)}function ve(ye,_e){let we,Ae={},Ce,$e;if("name"in ye&&ye.name){if(we=ae.get(ye.name),!we)throw createRouterError(1,{location:ye});$e=we.record.name,Ae=assign(paramsFromLocation(_e.params,we.keys.filter(Ee=>!Ee.optional).concat(we.parent?we.parent.keys.filter(Ee=>Ee.optional):[]).map(Ee=>Ee.name)),ye.params&¶msFromLocation(ye.params,we.keys.map(Ee=>Ee.name))),Ce=we.stringify(Ae)}else if(ye.path!=null)Ce=ye.path,we=oe.find(Ee=>Ee.re.test(Ce)),we&&(Ae=we.parse(Ce),$e=we.record.name);else{if(we=_e.name?ae.get(_e.name):oe.find(Ee=>Ee.re.test(_e.path)),!we)throw createRouterError(1,{location:ye,currentLocation:_e});$e=we.record.name,Ae=assign({},_e.params,ye.params),Ce=we.stringify(Ae)}const ke=[];let Pe=we;for(;Pe;)ke.unshift(Pe.record),Pe=Pe.parent;return{name:$e,path:Ce,params:Ae,matched:ke,meta:mergeMetaFields(ke)}}return ee.forEach(ye=>se(ye)),{addRoute:se,resolve:ve,removeRoute:de,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){return{path:ee.path,redirect:ee.redirect,name:ee.name,meta:ee.meta||{},aliasOf:void 0,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}}}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 isRecordChildOf(ee,ne){return ne.children.some(oe=>oe===ee||isRecordChildOf(ee,oe))}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$2(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,be)=>{const ve=we=>{we===!1?be(createRouterError(4,{from:oe,to:ne})):we instanceof Error?be(we):isRouteLocation(we)?be(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,ve));let _e=Promise.resolve(ye);ee.length<3&&(_e=_e.then(ve)),_e.catch(we=>be(we))})}function extractComponentsGuards(ee,ne,oe,ae,ie=se=>se()){const se=[];for(const de of ee)for(const fe in de.components){let be=de.components[fe];if(!(ne!=="beforeRouteEnter"&&!de.instances[fe]))if(isRouteComponent(be)){const ye=(be.__vccOpts||be)[ne];ye&&se.push(guardToPromiseFn(ye,oe,ae,de,fe,ie))}else{let ve=be();se.push(()=>ve.then(ye=>{if(!ye)return Promise.reject(new Error(`Couldn't resolve component "${fe}" at "${de.path}"`));const _e=isESModule(ye)?ye.default:ye;de.components[fe]=_e;const Ae=(_e.__vccOpts||_e)[ne];return Ae&&guardToPromiseFn(Ae,oe,ae,de,fe,ie)()}))}}return se}function isRouteComponent(ee){return typeof ee=="object"||"displayName"in ee||"props"in ee||"__vccOpts"in ee}function useLink(ee){const ne=inject(routerKey),oe=inject(routeLocationKey),ae=computed(()=>{const be=unref(ee.to);return ne.resolve(be)}),ie=computed(()=>{const{matched:be}=ae.value,{length:ve}=be,ye=be[ve-1],_e=oe.matched;if(!ye||!_e.length)return-1;const we=_e.findIndex(isSameRouteRecord.bind(null,ye));if(we>-1)return we;const Ae=getOriginalPath(be[ve-2]);return ve>1&&getOriginalPath(ye)===Ae&&_e[_e.length-1].path!==Ae?_e.findIndex(isSameRouteRecord.bind(null,be[ve-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(be={}){return guardEvent(be)?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$2(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 ve=unref(se);const{matched:ye}=ie.value;let _e;for(;(_e=ye[ve])&&!_e.components;)ve++;return ve}),fe=computed(()=>ie.value.matched[de.value]);provide(viewDepthKey,computed(()=>de.value+1)),provide(matchedRouteKey,fe),provide(routerViewLocationKey,ie);const be=ref();return watch(()=>[be.value,fe.value,ee.name],([ve,ye,_e],[we,Ae,Ce])=>{ye&&(ye.instances[_e]=ve,Ae&&Ae!==ye&&ve&&ve===we&&(ye.leaveGuards.size||(ye.leaveGuards=Ae.leaveGuards),ye.updateGuards.size||(ye.updateGuards=Ae.updateGuards))),ve&&ye&&(!Ae||!isSameRouteRecord(ye,Ae)||!we)&&(ye.enterCallbacks[_e]||[]).forEach($e=>$e(ve))},{flush:"post"}),()=>{const ve=ie.value,ye=ee.name,_e=fe.value,we=_e&&_e.components[ye];if(!we)return normalizeSlot(oe.default,{Component:we,route:ve});const Ae=_e.props[ye],Ce=Ae?Ae===!0?ve.params:typeof Ae=="function"?Ae(ve):Ae:null,ke=h$2(we,assign({},Ce,ne,{onVnodeUnmounted:Pe=>{Pe.component.isUnmounted&&(_e.instances[ye]=null)},ref:be}));return normalizeSlot(oe.default,{Component:ke,route:ve})||ke}}});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(),be=shallowRef(START_LOCATION_NORMALIZED);let ve=START_LOCATION_NORMALIZED;isBrowser&&ee.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const ye=applyToParams.bind(null,ct=>""+ct),_e=applyToParams.bind(null,encodeParam),we=applyToParams.bind(null,decode);function Ae(ct,Ft){let Kt,Zt;return isRouteName(ct)?(Kt=ne.getRecordMatcher(ct),Zt=Ft):Zt=ct,ne.addRoute(Zt,Kt)}function Ce(ct){const Ft=ne.getRecordMatcher(ct);Ft&&ne.removeRoute(Ft)}function $e(){return ne.getRoutes().map(ct=>ct.record)}function ke(ct){return!!ne.getRecordMatcher(ct)}function Pe(ct,Ft){if(Ft=assign({},Ft||be.value),typeof ct=="string"){const Nt=parseURL(oe,ct,Ft.path),Mt=ne.resolve({path:Nt.path},Ft),Xt=ie.createHref(Nt.fullPath);return assign(Nt,Mt,{params:we(Mt.params),hash:decode(Nt.hash),redirectedFrom:void 0,href:Xt})}let Kt;if(ct.path!=null)Kt=assign({},ct,{path:parseURL(oe,ct.path,Ft.path).path});else{const Nt=assign({},ct.params);for(const Mt in Nt)Nt[Mt]==null&&delete Nt[Mt];Kt=assign({},ct,{params:_e(Nt)}),Ft.params=_e(Ft.params)}const Zt=ne.resolve(Kt,Ft),hn=ct.hash||"";Zt.params=ye(we(Zt.params));const un=stringifyURL(ae,assign({},ct,{hash:encodeHash(hn),path:Zt.path})),Xe=ie.createHref(un);return assign({fullPath:un,hash:hn,query:ae===stringifyQuery?normalizeQuery(ct.query):ct.query||{}},Zt,{redirectedFrom:void 0,href:Xe})}function Ee(ct){return typeof ct=="string"?parseURL(oe,ct,be.value.path):assign({},ct)}function Oe(ct,Ft){if(ve!==ct)return createRouterError(8,{from:Ft,to:ct})}function Ne(ct){return Ie(ct)}function Re(ct){return Ne(assign(Ee(ct),{replace:!0}))}function De(ct){const Ft=ct.matched[ct.matched.length-1];if(Ft&&Ft.redirect){const{redirect:Kt}=Ft;let Zt=typeof Kt=="function"?Kt(ct):Kt;return typeof Zt=="string"&&(Zt=Zt.includes("?")||Zt.includes("#")?Zt=Ee(Zt):{path:Zt},Zt.params={}),assign({query:ct.query,hash:ct.hash,params:Zt.path!=null?{}:ct.params},Zt)}}function Ie(ct,Ft){const Kt=ve=Pe(ct),Zt=be.value,hn=ct.state,un=ct.force,Xe=ct.replace===!0,Nt=De(Kt);if(Nt)return Ie(assign(Ee(Nt),{state:typeof Nt=="object"?assign({},hn,Nt.state):hn,force:un,replace:Xe}),Ft||Kt);const Mt=Kt;Mt.redirectedFrom=Ft;let Xt;return!un&&isSameRouteLocation(ae,Zt,Kt)&&(Xt=createRouterError(16,{to:Mt,from:Zt}),Ke(Zt,Zt,!0,!1)),(Xt?Promise.resolve(Xt):He(Mt,Zt)).catch(on=>isNavigationFailure(on)?isNavigationFailure(on,2)?on:Dt(on):At(on,Mt,Zt)).then(on=>{if(on){if(isNavigationFailure(on,2))return Ie(assign({replace:Xe},Ee(on.to),{state:typeof on.to=="object"?assign({},hn,on.to.state):hn,force:un}),Ft||Mt)}else on=Fe(Mt,Zt,!0,Xe,hn);return Be(Mt,Zt,on),on})}function Le(ct,Ft){const Kt=Oe(ct,Ft);return Kt?Promise.reject(Kt):Promise.resolve()}function We(ct){const Ft=ln.values().next().value;return Ft&&typeof Ft.runWithContext=="function"?Ft.runWithContext(ct):ct()}function He(ct,Ft){let Kt;const[Zt,hn,un]=extractChangingRecords(ct,Ft);Kt=extractComponentsGuards(Zt.reverse(),"beforeRouteLeave",ct,Ft);for(const Nt of Zt)Nt.leaveGuards.forEach(Mt=>{Kt.push(guardToPromiseFn(Mt,ct,Ft))});const Xe=Le.bind(null,ct,Ft);return Kt.push(Xe),rn(Kt).then(()=>{Kt=[];for(const Nt of se.list())Kt.push(guardToPromiseFn(Nt,ct,Ft));return Kt.push(Xe),rn(Kt)}).then(()=>{Kt=extractComponentsGuards(hn,"beforeRouteUpdate",ct,Ft);for(const Nt of hn)Nt.updateGuards.forEach(Mt=>{Kt.push(guardToPromiseFn(Mt,ct,Ft))});return Kt.push(Xe),rn(Kt)}).then(()=>{Kt=[];for(const Nt of un)if(Nt.beforeEnter)if(isArray$2(Nt.beforeEnter))for(const Mt of Nt.beforeEnter)Kt.push(guardToPromiseFn(Mt,ct,Ft));else Kt.push(guardToPromiseFn(Nt.beforeEnter,ct,Ft));return Kt.push(Xe),rn(Kt)}).then(()=>(ct.matched.forEach(Nt=>Nt.enterCallbacks={}),Kt=extractComponentsGuards(un,"beforeRouteEnter",ct,Ft,We),Kt.push(Xe),rn(Kt))).then(()=>{Kt=[];for(const Nt of de.list())Kt.push(guardToPromiseFn(Nt,ct,Ft));return Kt.push(Xe),rn(Kt)}).catch(Nt=>isNavigationFailure(Nt,8)?Nt:Promise.reject(Nt))}function Be(ct,Ft,Kt){fe.list().forEach(Zt=>We(()=>Zt(ct,Ft,Kt)))}function Fe(ct,Ft,Kt,Zt,hn){const un=Oe(ct,Ft);if(un)return un;const Xe=Ft===START_LOCATION_NORMALIZED,Nt=isBrowser?history.state:{};Kt&&(Zt||Xe?ie.replace(ct.fullPath,assign({scroll:Xe&&Nt&&Nt.scroll},hn)):ie.push(ct.fullPath,hn)),be.value=ct,Ke(ct,Ft,Kt,Xe),Dt()}let Ze;function qe(){Ze||(Ze=ie.listen((ct,Ft,Kt)=>{if(!Gt.listening)return;const Zt=Pe(ct),hn=De(Zt);if(hn){Ie(assign(hn,{replace:!0}),Zt).catch(noop$2);return}ve=Zt;const un=be.value;isBrowser&&saveScrollPosition(getScrollKey(un.fullPath,Kt.delta),computeScrollPosition()),He(Zt,un).catch(Xe=>isNavigationFailure(Xe,12)?Xe:isNavigationFailure(Xe,2)?(Ie(Xe.to,Zt).then(Nt=>{isNavigationFailure(Nt,20)&&!Kt.delta&&Kt.type===NavigationType.pop&&ie.go(-1,!1)}).catch(noop$2),Promise.reject()):(Kt.delta&&ie.go(-Kt.delta,!1),At(Xe,Zt,un))).then(Xe=>{Xe=Xe||Fe(Zt,un,!1),Xe&&(Kt.delta&&!isNavigationFailure(Xe,8)?ie.go(-Kt.delta,!1):Kt.type===NavigationType.pop&&isNavigationFailure(Xe,20)&&ie.go(-1,!1)),Be(Zt,un,Xe)}).catch(noop$2)}))}let ze=useCallbacks(),je=useCallbacks(),Qe;function At(ct,Ft,Kt){Dt(ct);const Zt=je.list();return Zt.length?Zt.forEach(hn=>hn(ct,Ft,Kt)):console.error(ct),Promise.reject(ct)}function Rt(){return Qe&&be.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((ct,Ft)=>{ze.add([ct,Ft])})}function Dt(ct){return Qe||(Qe=!ct,qe(),ze.list().forEach(([Ft,Kt])=>ct?Kt(ct):Ft()),ze.reset()),ct}function Ke(ct,Ft,Kt,Zt){const{scrollBehavior:hn}=ee;if(!isBrowser||!hn)return Promise.resolve();const un=!Kt&&getSavedScrollPosition(getScrollKey(ct.fullPath,0))||(Zt||!Kt)&&history.state&&history.state.scroll||null;return nextTick().then(()=>hn(ct,Ft,un)).then(Xe=>Xe&&scrollToPosition(Xe)).catch(Xe=>At(Xe,ct,Ft))}const Vt=ct=>ie.go(ct);let tn;const ln=new Set,Gt={currentRoute:be,listening:!0,addRoute:Ae,removeRoute:Ce,hasRoute:ke,getRoutes:$e,resolve:Pe,options:ee,push:Ne,replace:Re,go:Vt,back:()=>Vt(-1),forward:()=>Vt(1),beforeEach:se.add,beforeResolve:de.add,afterEach:fe.add,onError:je.add,isReady:Rt,install(ct){const Ft=this;ct.component("RouterLink",RouterLink),ct.component("RouterView",RouterView),ct.config.globalProperties.$router=Ft,Object.defineProperty(ct.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(be)}),isBrowser&&!tn&&be.value===START_LOCATION_NORMALIZED&&(tn=!0,Ne(ie.location).catch(hn=>{}));const Kt={};for(const hn in START_LOCATION_NORMALIZED)Object.defineProperty(Kt,hn,{get:()=>be.value[hn],enumerable:!0});ct.provide(routerKey,Ft),ct.provide(routeLocationKey,shallowReactive(Kt)),ct.provide(routerViewLocationKey,be);const Zt=ct.unmount;ln.add(ct),ct.unmount=function(){ln.delete(ct),ln.size<1&&(ve=START_LOCATION_NORMALIZED,Ze&&Ze(),Ze=null,be.value=START_LOCATION_NORMALIZED,tn=!1,Qe=!1),Zt()}}};function rn(ct){return ct.reduce((Ft,Kt)=>Ft.then(()=>We(Kt)),Promise.resolve())}return Gt}function extractChangingRecords(ee,ne){const oe=[],ae=[],ie=[],se=Math.max(ne.matched.length,ee.matched.length);for(let de=0;deisSameRouteRecord(ve,fe))?ae.push(fe):oe.push(fe));const be=ee.matched[de];be&&(ne.matched.find(ve=>isSameRouteRecord(ve,be))||ie.push(be))}return[oe,ae,ie]}function useRouter(){return inject(routerKey)}function useRoute$1(){return inject(routeLocationKey)}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'),createRouter$1(Object.assign(ee,{routes:typeof ne=="function"&&ne(oe)||oe}))}const _hoisted_1={class:"min-h-screen flex flex-col items-center justify-center"},_hoisted_2={class:"flex flex-col items-center gap-4"},_hoisted_3=createBaseVNode("h1",{class:"m-0 text-6xl font-sans"}," 403 ",-1),_hoisted_4=createBaseVNode("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你无权访问该页面 ",-1),_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,[_hoisted_3,_hoisted_4,createBaseVNode("div",null,[createVNode(fe,{onClick:ae},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe).countdown)+" 秒后,返回首页 ",1)]),_:1})])])])}}});var eruda={exports:{}};/*! eruda v3.0.1 https://eruda.liriliri.io/ */(function(module,exports){(function(ee,ne){module.exports=ne()})(self,function(){return function(){var __webpack_modules__={422:function(ee,ne,oe){oe.d(ne,{Z:function(){return Ft}});var ae=oe(5671),ie=oe(3144),se=oe(9340),de=oe(2963),fe=oe(1120),be=oe(2461),ve=oe.n(be),ye=oe(3990),_e=oe.n(ye),we=oe(6768),Ae=oe.n(we),Ce=oe(4331),$e=oe.n(Ce),ke=oe(5610),Pe=oe.n(ke),Ee=oe(7483),Oe=oe.n(Ee),Ne=oe(6341),Re=oe.n(Ne),De=oe(3875),Ie=oe.n(De),Le=oe(6954),We=oe.n(Le);oe(9585);function He(Zt){var hn="luna-".concat(Zt,"-");function un(Xe){return ve()($e()(Xe).split(/\s+/),function(Nt){return Re()(Nt,hn)?Nt:Nt.replace(/[\w-]+/,function(Mt){return"".concat(hn).concat(Mt)})}).join(" ")}return function(Xe){if(/<[^>]*>/g.test(Xe))try{var Nt=Oe().parse(Xe);return Be(Nt,function(Mt){Mt.attrs&&Mt.attrs.class&&(Mt.attrs.class=un(Mt.attrs.class))}),Oe().stringify(Nt)}catch{return un(Xe)}return un(Xe)}}function Be(Zt,hn){for(var un=0,Xe=Zt.length;un"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,Xe=(0,fe.Z)(Zt);if(hn){var Nt=(0,fe.Z)(this).constructor;un=Reflect.construct(Xe,arguments,Nt)}else un=Xe.apply(this,arguments);return(0,de.Z)(this,un)}}var rn=function(Zt){(0,se.Z)(un,Zt);var hn=Gt(un);function un(Xe,Nt){var Mt,Xt=Nt.compName,on=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,pn=on===void 0?"light":on;return(0,ae.Z)(this,un),(Mt=hn.call(this)).subComponents=[],Mt.compName=Xt,Mt.c=He(Xt),Mt.options={},Mt.container=Xe,Mt.$container=je()(Xe),Mt.$container.addClass(["luna-".concat(Xt),Mt.c("platform-".concat(Fe()))]),Mt.on("optionChange",function(gn,Pt,lt){var Jt=Mt.c;gn==="theme"&&(Mt.$container.rmClass(Jt("theme-".concat(lt))).addClass(Jt("theme-".concat(Pt))),At()(Mt.subComponents,function(en){return en.setOption("theme",Pt)}))}),Mt.setOption("theme",pn),Mt}return(0,ie.Z)(un,[{key:"destroy",value:function(){this.destroySubComponents();var Xe=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Xe("platform-".concat(Fe()))).rmClass(Xe("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Xe,Nt){var Mt=this,Xt=this.options,on={};typeof Xe=="string"?on[Xe]=Nt:on=Xe,At()(on,function(pn,gn){var Pt=Xt[gn];Xt[gn]=pn,Mt.emit("optionChange",gn,pn,Pt)})}},{key:"getOption",value:function(Xe){return this.options[Xe]}},{key:"addSubComponent",value:function(Xe){Xe.setOption("theme",this.options.theme),this.subComponents.push(Xe)}},{key:"removeSubComponent",value:function(Xe){ln()(this.subComponents,function(Nt){return Nt===Xe})}},{key:"destroySubComponents",value:function(){At()(this.subComponents,function(Xe){return Xe.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Xe){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt()(Xe,Nt),Dt()(this.options,Xe)}},{key:"find",value:function(Xe){return this.$container.find(this.c(Xe))}}]),un}(qe());function ct(Zt){var hn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var un,Xe=(0,fe.Z)(Zt);if(hn){var Nt=(0,fe.Z)(this).constructor;un=Reflect.construct(Xe,arguments,Nt)}else un=Xe.apply(this,arguments);return(0,de.Z)(this,un)}}ee=oe.hmd(ee);var Ft=function(Zt){(0,se.Z)(un,Zt);var hn=ct(un);function un(Xe){var Nt,Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ae.Z)(this,un),(Nt=hn.call(this,Xe,{compName:"box-model"})).initOptions(Mt),Nt.options.element&&Nt.render(),Nt.bindEvent(),Nt}return(0,ie.Z)(un,[{key:"bindEvent",value:function(){var Xe=this;this.on("optionChange",function(Nt){Nt==="element"&&Xe.render()})}},{key:"render",value:function(){var Xe=this.c,Nt=this.getBoxModelData();this.$container.html(['
'),Nt.position?'
'):"",Nt.position?'
position
').concat(Nt.position.top,'

').concat(Nt.position.left,"
"):"",'
'),'
margin
').concat(Nt.margin.top,'

').concat(Nt.margin.left,"
"),'
'),'
border
').concat(Nt.border.top,'

').concat(Nt.border.left,"
"),'
'),'
padding
').concat(Nt.padding.top,'

').concat(Nt.padding.left,"
"),'
'),"".concat(Nt.content.width," × ").concat(Nt.content.height,""),"
",'
').concat(Nt.padding.right,'

').concat(Nt.padding.bottom,"
"),"
",'
').concat(Nt.border.right,'

').concat(Nt.border.bottom,"
"),"
",'
').concat(Nt.margin.right,'

').concat(Nt.margin.bottom,"
"),"
",Nt.position?'
').concat(Nt.position.right,'

').concat(Nt.position.bottom,"
"):"",Nt.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var Xe=this.options.element,Nt=window.getComputedStyle(Xe);function Mt(on){var pn=["top","left","right","bottom"];return on!=="position"&&(pn=ve()(pn,function(gn){return"".concat(on,"-").concat(gn)})),on==="border"&&(pn=ve()(pn,function(gn){return"".concat(gn,"-width")})),{top:Kt(Nt[pn[0]],on),left:Kt(Nt[pn[1]],on),right:Kt(Nt[pn[2]],on),bottom:Kt(Nt[pn[3]],on)}}var Xt={margin:Mt("margin"),border:Mt("border"),padding:Mt("padding"),content:{width:Kt(Nt.width),height:Kt(Nt.height)}};return Nt.position!=="static"&&(Xt.position=Mt("position")),Xt}}]),un}(rn);function Kt(Zt,hn){if(_e()(Zt))return Zt;if(!Ae()(Zt))return"‒";var un,Xe=(un=Zt,Ie()(un.replace("px","")));return isNaN(Xe)?Zt:hn==="position"?Xe:Xe===0?"‒":Xe}(function(Zt,hn){try{Zt.exports=hn,Zt.exports.default=hn}catch{}})(ee,Ft)},8816:function(ee,ne,oe){oe.d(ne,{Z:function(){return Xo}});var ae=oe(168),ie=oe(181);function se(nr,Cr){return function(Jn){if(Array.isArray(Jn))return Jn}(nr)||function(Jn,Wt){var jt=Jn==null?null:typeof Symbol<"u"&&Jn[Symbol.iterator]||Jn["@@iterator"];if(jt!=null){var dn,bn,jn,kn,Yn=[],qn=!0,sr=!1;try{if(jn=(jt=jt.call(Jn)).next,Wt===0){if(Object(jt)!==jt)return;qn=!1}else for(;!(qn=(dn=jn.call(jt)).done)&&(Yn.push(dn.value),Yn.length!==Wt);qn=!0);}catch($r){sr=!0,bn=$r}finally{try{if(!qn&&jt.return!=null&&(kn=jt.return(),Object(kn)!==kn))return}finally{if(sr)throw bn}}return Yn}}(nr,Cr)||(0,ie.Z)(nr,Cr)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var de=oe(5671),fe=oe(3144),be=oe(1752),ve=oe(9340),ye=oe(2963),_e=oe(1120),we=oe(7326),Ae=oe(8901),Ce=oe.n(Ae),$e=oe(3367),ke=oe.n($e),Pe=oe(6341),Ee=oe.n(Pe),Oe=oe(6930),Ne=oe.n(Oe),Re=oe(4187),De=oe.n(Re),Ie=oe(3783),Le=oe.n(Ie),We=oe(4858),He=oe.n(We),Be=oe(8887),Fe=oe.n(Be),Ze=oe(7756),qe=oe.n(Ze),ze=oe(3023),je=oe.n(ze);function Qe(nr){return nr.constructor&&nr.constructor.name?nr.constructor.name:je()({}.toString.call(nr).replace(/(\[object )|]/g,""))}var At=oe(2461),Rt=oe.n(At),Dt=oe(4331),Ke=oe.n(Dt),Vt=oe(5610),tn=oe.n(Vt),ln=oe(7483),Gt=oe.n(ln),rn=oe(3990),ct=oe.n(rn),Ft=oe(3875),Kt=oe.n(Ft),Zt=oe(6954),hn=oe.n(Zt),un=oe(9585),Xe=oe.n(un);function Nt(nr){var Cr="luna-".concat(nr,"-");function Jn(Wt){return Rt()(Ke()(Wt).split(/\s+/),function(jt){return Ee()(jt,Cr)?jt:jt.replace(/[\w-]+/,function(dn){return"".concat(Cr).concat(dn)})}).join(" ")}return function(Wt){if(/<[^>]*>/g.test(Wt))try{var jt=Gt().parse(Wt);return Mt(jt,function(dn){dn.attrs&&dn.attrs.class&&(dn.attrs.class=Jn(dn.attrs.class))}),Gt().stringify(jt)}catch{return Jn(Wt)}return Jn(Wt)}}function Mt(nr,Cr){for(var Jn=0,Wt=nr.length;Jn1&&arguments[1]!==void 0?arguments[1]:{},Wt=Jn.topObj,jt=Jn.level,dn=jt===void 0?0:jt,bn=Jn.getterVal,jn=bn!==void 0&&bn,kn=Jn.unenumerable,Yn=kn===void 0||kn,qn="",sr="",$r=[],Er=[],Dr="";Wt=Wt||nr;var zr={getterVal:jn,unenumerable:Yn,level:dn+1},Ar=dn===0,Mr=''),Xr=''),Ur=''),yo=''),Po=''),_o=''),co=function(Br){return Ce()(Br).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},to="";function eo(Br){return Br=ke()(Br),Ee()(pn,Br)||Ne()(Br,"Array[")?_o+co(Br)+to:(Br.length>100&&(Br=qe()(Br,100,{separator:" ",ellipsis:"…"})),yo+co('"'.concat(Br,'"'))+to)}function uo(Br){if(Cr>5)Dr=", …";else{var Do=function(Qo){return Mr+co(Qo)+to}(Pt(Br));if(!jn){var Ao=Object.getOwnPropertyDescriptor(nr,Br);if(Ao&&Ao.get)return $r.push("".concat(Do,": ").concat(eo("(...)"))),void Cr++}$r.push("".concat(Do,": ").concat(on(Wt[Br],zr))),Cr++}}try{sr={}.toString.call(nr)}catch{sr="[object Object]"}var mo,wo=sr=="[object Array]",Oo=sr=="[object Object]",xo=sr=="[object Number]",Co=sr=="[object RegExp]",Vo=sr=="[object Symbol]",ho=sr=="[object Function]",No=sr=="[object Boolean]";if(sr=="[object String]")qn=eo(Pt(nr));else if(Co)mo=Pt(nr.toString()),qn=yo+mo+to;else if(ho)qn=eo("ƒ");else if(wo)if(Ar){qn="[";var Ro=nr.length,jo="";Ro>100&&(Ro=100,jo=", …");for(var Io=0;Io"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Jn,Wt=(0,_e.Z)(nr);if(Cr){var jt=(0,_e.Z)(this).constructor;Jn=Reflect.construct(Wt,arguments,jt)}else Jn=Wt.apply(this,arguments);return(0,ye.Z)(this,Jn)}}var aa=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,Lo={comment:"",string:"",number:"",keyword:"",operator:""},Go=function(nr){(0,ve.Z)(Jn,nr);var Cr=Wo(Jn);function Jn(Wt,jt){var dn,bn=jt.type,jn=bn===void 0?"log":bn,kn=jt.args,Yn=kn===void 0?[]:kn,qn=jt.id,sr=jt.group,$r=jt.targetGroup,Er=jt.header,Dr=jt.ignoreFilter,zr=Dr!==void 0&&Dr,Ar=jt.accessGetter,Mr=jt.unenumerable,Xr=jt.lazyEvaluation;(0,de.Z)(this,Jn),(dn=Cr.call(this)).container=er()("div"),dn.count=1,dn.width=0,dn.height=0,dn.isHidden=!1,dn.columns=[],dn.elements={},dn.objects={},dn.console=Wt,dn.type=jn,dn.group=sr,dn.targetGroup=$r,dn.args=Yn,dn.id=qn,dn.header=Er,dn.ignoreFilter=zr,dn.collapsed=!1,dn.container.log=(0,we.Z)(dn),dn.height=0,dn.width=0,dn.$container=xr()(dn.container),dn.accessGetter=Ar,dn.unenumerable=Mr,dn.lazyEvaluation=Xr;var Ur="info";switch(jn){case"debug":Ur="verbose";break;case"error":Ur="error";break;case"warn":Ur="warning"}return dn.level=Ur,dn.resizeSensor=new(Yt())(dn.container),dn.onResize=zn()(function(){Xe()(dn.container)?dn.isHidden=!0:(dn.isHidden||dn.updateSize(!1),dn.isHidden=!1)},16),dn.formatMsg(),dn.group&&dn.checkGroup(),dn.bindEvent(),dn}return(0,fe.Z)(Jn,[{key:"checkGroup",value:function(){for(var Wt=this.group,jt=!1;Wt;){if(Wt.collapsed){jt=!0;break}Wt=Wt.parent}return jt!==this.collapsed&&(this.collapsed=jt,!0)}},{key:"updateIcon",value:function(Wt){var jt=this.console.c;return this.$container.find(jt(".icon-container")).find(jt(".icon")).rmAttr("class").addClass([jt("icon"),jt("icon-".concat(Wt))]),this}},{key:"addCount",value:function(){this.count++;var Wt=this.$container,jt=this.count,dn=this.console.c,bn=Wt.find(dn(".count-container")),jn=Wt.find(dn(".icon-container")),kn=bn.find(dn(".count"));return jt===2&&bn.rmClass(dn("hidden")),kn.text(ke()(jt)),jn.addClass(dn("hidden")),this}},{key:"groupEnd",value:function(){var Wt=this.$container,jt=this.console.c;return Wt.find(".".concat(jt("nesting-level"),":not(.").concat(jt("group-closed"),")")).last().addClass(jt("group-closed")),this}},{key:"updateTime",value:function(Wt){var jt=this.$container.find(this.console.c(".time-container"));return this.header&&(jt.find("span").eq(0).text(Wt),this.header.time=Wt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!Jr()(this.args,function(Wt){return yn()(Wt)})}},{key:"updateSize",value:function(){var Wt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],jt=this.container.getBoundingClientRect(),dn=jt.width,bn=jt.height-1;this.height!==bn&&(this.height=bn,Wt||this.emit("updateHeight")),this.width!==dn&&(this.width=dn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var Wt=this.args,jt="";Le()(Wt,function(dn,bn){bn!==0&&(jt+=" "),yn()(dn)?jt+=cr()(dn):jt+=ke()(dn)}),tr()(jt)}},{key:"bindEvent",value:function(){var Wt=this,jt=this.console.c,dn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",jt(".dom-viewer"),function(bn){return bn.stopPropagation()}).on("click",jt(".preview"),function(bn){bn.stopPropagation();var jn=xr()(this).find(jt(".preview-icon-container")).find(jt(".icon")),kn="caret-down";jn.hasClass(jt("icon-caret-down"))&&(kn="caret-right"),jn.rmAttr("class").addClass([jt("icon"),jt("icon-".concat(kn))]),dn.renderObjectViewer(this)}).on("click",function(){return Wt.click()})}},{key:"renderEl",value:function(){var Wt=this.elements,jt=this.console.c,dn=this;this.$container.find(jt(".dom-viewer")).each(function(){var bn=xr()(this).data("id");new mn.Z(this,{node:Wt[bn],theme:dn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(Wt){var jt=this.console,dn=this.unenumerable,bn=this.accessGetter,jn=this.lazyEvaluation,kn=jt.c,Yn=xr()(Wt),qn=Yn.data("id");if(qn){var sr=this.objects[qn],$r=Yn.find(kn(".json"));if($r.hasClass(kn("hidden"))){if($r.data("init")!=="true"){if(jn){var Er=new Jt.Z($r.get(0),{unenumerable:dn,accessGetter:bn});Er.setOption("theme",jt.getOption("theme")),Er.set(sr)}else{var Dr=new Jt.q($r.get(0));Dr.setOption("theme",jt.getOption("theme")),Dr.set(sr)}$r.data("init","true")}$r.rmClass(kn("hidden"))}else $r.addClass(kn("hidden"))}}},{key:"renderTable",value:function(Wt){var jt=this,dn="__LunaConsoleValue",bn=this.columns,jn=this.$container,kn=this.console,Yn=kn.c,qn=jn.find(Yn(".data-grid")),sr=Wt[0],$r=new en.Z(qn.get(0),{columns:Pn()([{id:"(index)",title:"(index)",sortable:!0}],Rt()(bn,function(Er){return{id:Er,title:Er===dn?"Value":Er,sortable:!0}})),theme:kn.getOption("theme")});Le()(sr,function(Er,Dr){var zr={"(index)":ke()(Dr)};bn.forEach(function(Ar){yn()(Er)?zr[Ar]=Ar===dn?"":jt.formatTableVal(Er[Ar]):wn()(Er)&&(zr[Ar]=Ar===dn?jt.formatTableVal(Er):"")}),$r.append(zr)})}},{key:"extractObj",value:function(Wt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=arguments.length>2?arguments[2]:void 0,bn=this.accessGetter,jn=this.unenumerable;Ln()(jt,{accessGetter:bn,unenumerable:jn,symbol:jn,timeout:1e3}),function(kn,Yn,qn){var sr=dr()(kn,Yn);Or()(function(){return qn(sr)})}(Wt,jt,function(kn){return dn(JSON.parse(kn))})}},{key:"click",value:function(){var Wt=this.type,jt=this.$container,dn=this.console,bn=dn.c;switch(Wt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":dn.toggleGroup(this);break;case"error":jt.find(bn(".stack")).toggleClass(bn("hidden"))}}},{key:"formatMsg",value:function(){var Wt=this.args,jt=this.type,dn=this.id,bn=this.header,jn=this.group,kn=this.console.c;Wt=$n()(Wt);var Yn,qn,sr="";switch(jt!=="group"&&jt!=="groupCollapsed"||Wt.length===0&&(Wt=["console.group"]),jt){case"log":case"info":case"debug":sr=this.formatCommon(Wt);break;case"dir":sr=this.formatDir(Wt);break;case"warn":Yn="warn",sr=this.formatCommon(Wt);break;case"error":Zn()(Wt[0])&&Wt.length!==1&&(Wt=this.substituteStr(Wt)),qn=Wt[0],Yn="error",qn=Kn()(qn)?qn:new Error(this.formatCommon(Wt)),sr=this.formatErr(qn);break;case"table":sr=this.formatTable(Wt);break;case"html":sr=Wt[0];break;case"input":sr=this.formatJs(Wt[0]),Yn="input";break;case"output":sr=this.formatCommon(Wt),Yn="output";break;case"groupCollapsed":sr=this.formatCommon(Wt),Yn="caret-right";break;case"group":sr=this.formatCommon(Wt),Yn="caret-down"}Ee()(["log","debug","warn"],jt)&&this.isSimple()&&(sr=Lr()(sr,function($r){return'').concat($r,"")})),sr=this.render({msg:sr,type:jt,icon:Yn,id:dn,header:bn,group:jn}),this.$container.addClass("".concat(kn("log-container"))).html(sr),jt==="table"&&(Fe()(this.columns)||this.renderTable(Wt)),Fe()(this.elements)||this.renderEl(),this.$content=this.$container.find(kn(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(Wt){var jt=this.console.c,dn="",bn="";if(Wt.group)for(var jn=Wt.group.indentLevel,kn=0;kn');Wt.header&&(dn+=jr()(lt||(lt=(0,ae.Z)([` +
+ `,` +
+ `," ",` +
+
`])),jt("header"),bn,jt("time-from-container"),Wt.header.time,Wt.header.from));var Yn="";return Wt.icon&&(Yn='
')),dn+=` +
+ `).concat(bn,` + `).concat(Yn,` +
+
+
+
+
').concat(Wt.msg,`
+
+
`)}},{key:"formatTable",value:function(Wt){var jt=Wt[0],dn=Wt[1],bn=[];return Zn()(dn)&&(dn=Nr()(dn)),ro()(dn)||(dn=null),yn()(jt)?(Le()(jt,function(jn){wn()(jn)?bn.push("__LunaConsoleValue"):yn()(jn)&&(bn=bn.concat(ur()(jn)))}),(bn=pr()(bn)).sort(),dn&&(bn=bn.filter(function(jn){return Ee()(dn,jn)})),bn.length>20&&(bn=bn.slice(0,20)),Fe()(bn)?this.formatCommon(Wt):(this.columns=bn,this.console.c('
')+this.formatPreview(jt))):this.formatCommon(Wt)}},{key:"formatErr",value:function(Wt){var jt=Wt.stack?Wt.stack.split(` +`):[],dn="".concat(Wt.message||jt[0],"
");return jt=jt.map(function(bn){return Ce()(bn)}),dn+'
').concat(jt.slice(1).join("
"),"
").replace(aa,function(bn){return'').concat(bn,"")})}},{key:"formatCommon",value:function(Wt){var jt=this.console.c,dn=Zn()(Wt[0])&&Wt.length!==1;dn&&(Wt=this.substituteStr(Wt));for(var bn=0,jn=Wt.length;bn').concat(Ce()(ke()(kn)),"
"):yn()(kn)?Wt[bn]=this.formatPreview(kn):fr()(kn)?Wt[bn]='undefined'):lr()(kn)?Wt[bn]='null'):ct()(kn)?Wt[bn]='').concat(ke()(kn),""):typeof kn=="bigint"?Wt[bn]='').concat(ke()(kn),"n"):lo()(kn)?Wt[bn]='').concat(ke()(kn),""):$o()(kn)?Wt[bn]='').concat(Ce()(ke()(kn)),""):(kn=ke()(kn),bn===0&&dn||(kn=Ce()(kn)),kn.length>5e3&&(kn=qe()(kn,5e3,{separator:" ",ellipsis:"…"})),Wt[bn]=kn)}return Wt.join(" ")}},{key:"formatDir",value:function(Wt){return yn()(Wt[0])?this.formatPreview(Wt[0]):this.formatCommon(Wt)}},{key:"formatTableVal",value:function(Wt){var jt=this.console.c;return yn()(Wt)?"{…}":wn()(Wt)?Zr()('
').concat(on(Wt),"
")):ke()(Wt)}},{key:"formatPreview",value:function(Wt){var jt=this,dn=this.console.c,bn=Kr()();this.lazyEvaluation?this.objects[bn]=Wt:this.extractObj(Wt,{},function(Yn){jt.objects[bn]=Yn});var jn=Ee()(["dir","table"],this.type),kn=Qe(Wt);return kn==="Array"&&Wt.length>1?(kn="(".concat(Wt.length,")"),jn&&(kn="Array".concat(kn))):kn==="RegExp"?kn=ke()(Wt):Fn()(Wt)&&(kn=this.formatElName(Wt)),'
')+'
')+'
')+'')+'').concat(Ce()(kn)," ")+'').concat(jn?"":on(Wt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(Wt){var jt=Ce()(Wt[0]),dn=!1,bn="";Wt.shift();for(var jn=0,kn=jt.length;jn"),dn=!0,bn+='');break;default:jn--,Wt.unshift(qn),bn+=Yn}}else bn+=Yn}return dn&&(bn+=""),Wt.unshift(bn),Wt}},{key:"formatJs",value:function(Wt){return'
').concat(this.console.c(Yr()(Wt,"js",Lo)),"
")}},{key:"formatFn",value:function(Wt){return'
'.concat(this.formatJs(Wt.toString()),"
")}},{key:"formatElName",value:function(Wt){var jt=Wt.id,dn=Wt.className,bn=Wt.tagName.toLowerCase();if(jt!==""&&(bn+="#".concat(jt)),Zn()(dn)){var jn="";Le()(dn.split(/\s+/g),function(kn){kn.trim()!==""&&(jn+=".".concat(kn))}),bn+=jn}return bn}},{key:"formatEl",value:function(Wt){var jt=Kr()();return this.elements[jt]=Wt,this.console.c('
'))}}]),Jn}(En());function Eo(nr){var Cr=(nr=Cn()(nr)).split(";"),Jn={};Le()(Cr,function(jt){if(Ee()(jt,":")){var dn=se(jt.split(":"),2),bn=dn[0],jn=dn[1];Jn[Ke()(bn)]=Ke()(jn)}}),Jn.display="inline-block",Jn["max-width"]="100%",delete Jn.width,delete Jn.height;var Wt="";return Le()(Jn,function(jt,dn){Wt+="".concat(dn,":").concat(jt,";")}),Wt}var ia=oe(1194),Zo=oe.n(ia),sa=oe(8847),vo=oe.n(sa),la=oe(6329),Yo=oe.n(la),ca=oe(9001),ko=oe.n(ca),ua=oe(9702),da=oe.n(ua),fa=oe(2439),Qr=oe.n(fa),ha=oe(8933),Pr=oe.n(ha),Mo=oe(4407),fo=oe.n(Mo),ma=oe(5852),pa=oe.n(ma);function ga(nr){var Cr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Jn,Wt=(0,_e.Z)(nr);if(Cr){var jt=(0,_e.Z)(this).constructor;Jn=Reflect.construct(Wt,arguments,jt)}else Jn=Wt.apply(this,arguments);return(0,ye.Z)(this,Jn)}}var bo,va=function(nr){(0,ve.Z)(Jn,nr);var Cr=ga(Jn);function Jn(Wt,jt){var dn,bn,jn=jt.compName,kn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Yn=kn===void 0?"light":kn;return(0,de.Z)(this,Jn),(dn=Cr.call(this)).subComponents=[],dn.compName=jn,dn.c=Nt(jn),dn.options={},dn.container=Wt,dn.$container=xr()(Wt),dn.$container.addClass(["luna-".concat(jn),dn.c("platform-".concat((bn=hn()(),bn==="os x"?"mac":bn)))]),dn.on("optionChange",function(qn,sr,$r){var Er=dn.c;qn==="theme"&&(dn.$container.rmClass(Er("theme-".concat($r))).addClass(Er("theme-".concat(sr))),Le()(dn.subComponents,function(Dr){return Dr.setOption("theme",sr)}))}),dn.setOption("theme",Yn),dn}return(0,fe.Z)(Jn,[{key:"destroy",value:function(){var Wt=this;this.destroySubComponents();var jt=this.$container,dn=jt.attr("class");Le()(dn.split(/\s+/),function(bn){Ne()(bn,"luna-".concat(Wt.compName))&&jt.rmClass(bn)}),jt.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Wt,jt){var dn=this,bn=this.options,jn={};typeof Wt=="string"?jn[Wt]=jt:jn=Wt,Le()(jn,function(kn,Yn){var qn=bn[Yn];bn[Yn]=kn,dn.emit("optionChange",Yn,kn,qn)})}},{key:"getOption",value:function(Wt){return this.options[Wt]}},{key:"addSubComponent",value:function(Wt){Wt.setOption("theme",this.options.theme),this.subComponents.push(Wt)}},{key:"removeSubComponent",value:function(Wt){pa()(this.subComponents,function(jt){return jt===Wt})}},{key:"destroySubComponents",value:function(){Le()(this.subComponents,function(Wt){return Wt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Wt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ln()(Wt,jt),Yo()(this.options,Wt)}},{key:"find",value:function(Wt){return this.$container.find(this.c(Wt))}}]),Jn}(En()),To=oe(1571),Bo=oe.n(To);function ba(nr){var Cr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Jn,Wt=(0,_e.Z)(nr);if(Cr){var jt=(0,_e.Z)(this).constructor;Jn=Reflect.construct(Wt,arguments,jt)}else Jn=Wt.apply(this,arguments);return(0,ye.Z)(this,Jn)}}ee=oe.hmd(ee);var qo=navigator.userAgent,Ko=qo.indexOf("Android")>-1||qo.indexOf("Adr")>-1,ya=0,Xo=function(nr){(0,ve.Z)(Jn,nr);var Cr=ba(Jn);function Jn(Wt){var jt,dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,de.Z)(this,Jn),(jt=Cr.call(this,Wt,{compName:"console"},dn)).spaceHeight=0,jt.topSpaceHeight=0,jt.bottomSpaceHeight=0,jt.lastScrollTop=0,jt.lastTimestamp=0,jt.speedToleranceFactor=100,jt.maxSpeedTolerance=2e3,jt.minSpeedTolerance=100,jt.logs=[],jt.displayLogs=[],jt.timer={},jt.counter={},jt.asyncList=[],jt.asyncTimer=null,jt.isAtBottom=!0,jt.groupStack=new(ko()),jt.selectedLog=null,jt.onScroll=function(){var bn=jt.container,jn=bn.scrollHeight,kn=bn.offsetHeight,Yn=bn.scrollTop;if(!(Yn<=0||kn+Yn>jn)){var qn=!1;(jn===kn||Yn===jn-kn)&&(qn=!0),jt.isAtBottom=qn;var sr=jt.lastScrollTop,$r=jt.lastTimestamp,Er=vo()(),Dr=Er-$r,zr=Yn-sr,Ar=Math.abs(zr/Dr)*jt.speedToleranceFactor;Dr>1e3&&(Ar=1e3),Ar>jt.maxSpeedTolerance&&(Ar=jt.maxSpeedTolerance),ArYn+kn+Xr||jt.renderViewport({topTolerance:2*Mr,bottomTolerance:2*Xr})}},jt.initTpl(),jt.initOptions(dn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),jt.$el=jt.find(".logs"),jt.el=jt.$el.get(0),jt.$fakeEl=jt.find(".fake-logs"),jt.fakeEl=jt.$fakeEl.get(0),jt.$space=jt.find(".logs-space"),jt.space=jt.$space.get(0),Ko&&(jt.speedToleranceFactor=800,jt.maxSpeedTolerance=3e3,jt.minSpeedTolerance=800),jt.resizeSensor=new(Yt())(Wt),jt.renderViewport=Qr()(function(bn){jt._renderViewport(bn)},16),jt.global={copy:function(bn){Zn()(bn)||(bn=JSON.stringify(bn,null,2)),tr()(bn)},$:function(bn){return document.querySelector(bn)},$$:function(bn){return Nr()(document.querySelectorAll(bn))},$x:function(bn){return Pr()(bn)},clear:function(){jt.clear()},dir:function(bn){jt.dir(bn)},table:function(bn,jn){jt.table(bn,jn)},keys:ur()},jt.bindEvent(),jt}return(0,fe.Z)(Jn,[{key:"setGlobal",value:function(Wt,jt){this.global[Wt]=jt}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,be.Z)((0,_e.Z)(Jn.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",jt=this.counter;fr()(jt[Wt])?jt[Wt]=1:jt[Wt]++,this.info("".concat(Wt,": ").concat(jt[Wt]))}},{key:"countReset",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[Wt]=0}},{key:"assert",value:function(){for(var Wt=arguments.length,jt=new Array(Wt),dn=0;dn0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[Wt])return this.insert("warn",["Timer '".concat(Wt,"' already exists")]);this.timer[Wt]=Zo()()}},{key:"timeLog",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",jt=this.timer[Wt];if(!jt)return this.insert("warn",["Timer '".concat(Wt,"' does not exist")]);this.info("".concat(Wt,": ").concat(Zo()()-jt,"ms"))}},{key:"timeEnd",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(Wt),delete this.timer[Wt]}},{key:"clear",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(ko()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),Wt?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var Wt=arguments.length,jt=new Array(Wt),dn=0;dn0&&(bn.group=Yn.peek()),Yo()(bn,{id:++ya,accessGetter:$r,unenumerable:Er,lazyEvaluation:Dr}),bn.type==="group"||bn.type==="groupCollapsed"){var zr={id:Kr()("group"),collapsed:!1,parent:Yn.peek(),indentLevel:Yn.size+1};bn.type==="groupCollapsed"&&(zr.collapsed=!0),bn.targetGroup=zr,Yn.push(zr)}var Ar=new Go(this,bn);Ar.on("updateHeight",function(){jn.isAtBottom=!1,jn.renderViewport()});var Mr=this.lastLog;if(Mr&&!Ee()(["html","group","groupCollapsed"],Ar.type)&&Mr.type===Ar.type&&Ar.isSimple()&&Mr.text()===Ar.text()?(Mr.addCount(),Ar.header&&Mr.updateTime(Ar.header.time),Ar=Mr,this.detachLog(Mr)):(kn.push(Ar),this.lastLog=Ar),sr!==0&&kn.length>sr){var Xr=kn[0];this.detachLog(Xr),kn.shift()}this.attachLog(Ar),this.emit("insert",Ar)}},{key:"updateTopSpace",value:function(Wt){this.topSpaceHeight=Wt,this.el.style.top=Wt+"px"}},{key:"updateBottomSpace",value:function(Wt){this.bottomSpaceHeight=Wt}},{key:"updateSpace",value:function(Wt){this.spaceHeight!==Wt&&(this.spaceHeight=Wt,this.space.style.height=Wt+"px")}},{key:"detachLog",value:function(Wt){var jt=this.displayLogs,dn=jt.indexOf(Wt);dn>-1&&(jt.splice(dn,1),this.renderViewport())}},{key:"attachLog",value:function(Wt){if(this.filterLog(Wt)&&!Wt.collapsed){var jt=this.displayLogs;if(jt.length===0)return jt.push(Wt),void this.renderViewport();var dn=da()(jt);if(Wt.id>dn.id)return jt.push(Wt),void this.renderViewport();for(var bn,jn=0,kn=jt.length-1,Yn=0;jn<=kn;){if((bn=jt[Yn=jn+Math.floor((kn-jn)/2)]).id===Wt.id)return;bn.id0&&arguments[0]!==void 0?arguments[0]:20,dn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){Wt.asyncTimer=null;var bn,jn,kn=!1,Yn=dn.length;Yn<1e3?(jn=200,bn=400):Yn<5e3?(jn=500,bn=800):Yn<1e4?(jn=800,bn=1e3):Yn<25e3?(jn=1e3,bn=1200):Yn<5e4?(jn=1500,bn=1500):(jn=2e3,bn=2500),jn>Yn&&(jn=Yn,kn=!0);for(var qn=0;qn0&&Yn.length>kn&&(Wt.logs=Yn.slice(Yn.length-kn),Wt.render());break;case"filter":Wt.render();break;case"level":Wt.options.level=Nr()(kn),Wt.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},jt=Wt.topTolerance,dn=jt===void 0?500:jt,bn=Wt.bottomTolerance,jn=bn===void 0?500:bn,kn=this.el,Yn=this.container,qn=this.space;if(!Xe()(Yn)){for(var sr=Yn.scrollTop,$r=Yn.offsetHeight,Er=qn.getBoundingClientRect().width,Dr=sr-dn,zr=sr+$r+jn,Ar=this.displayLogs,Mr=0,Xr=0,Ur=0,yo=Ar.length,Po=this.fakeEl,_o=document.createDocumentFragment(),co=[],to=0;to0){Po.appendChild(_o);for(var mo=0,wo=co.length;mozr?Xr+=ho:Ur+ho>Dr?Oo.appendChild(Vo):Ur +
+
+ + `])))))}}]),Jn}(va),Jo=function(){return fo()("HH:MM:ss ")};function Fo(){for(var nr=new Error,Cr="",Jn=nr.stack?nr.stack.split(` +`):"",Wt=0,jt=Jn.length;Wt-1&&Wt]*>/g.test($n))try{var Vn=Le().parse($n);return je(Vn,function(Cn){Cn.attrs&&Cn.attrs.class&&(Cn.attrs.class=ar(Cn.attrs.class))}),Le().stringify(Vn)}catch{return ar($n)}return ar($n)}}function je(br,pr){for(var ar=0,$n=br.length;ar<$n;ar++){var Vn=br[ar];pr(Vn),Vn.content&&je(Vn.content,pr)}}var Qe="ontouchstart"in De(),At="PointerEvent"in De(),Rt={start:"touchstart",move:"touchmove",end:"touchend"},Dt={start:"mousedown",move:"mousemove",end:"mouseup"},Ke={start:"pointerdown",move:"pointermove",end:"pointerup"};function Vt(br){return At?Ke[br]:Qe?Rt[br]:Dt[br]}function tn(br,pr){var ar="clientX";return pr[ar]?pr[ar]:pr.changedTouches?pr.changedTouches[0][ar]:0}function ln(br){return Fe()(br.replace("px",""))}var Gt=oe(3783),rn=oe.n(Gt),ct=oe(6329),Ft=oe.n(ct),Kt=oe(4193),Zt=oe.n(Kt),hn=oe(5852),un=oe.n(hn),Xe=oe(6930),Nt=oe.n(Xe);function Mt(br){var pr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ar,$n=(0,ye.Z)(br);if(pr){var Vn=(0,ye.Z)(this).constructor;ar=Reflect.construct($n,arguments,Vn)}else ar=$n.apply(this,arguments);return(0,ve.Z)(this,ar)}}var Xt,on=function(br){(0,be.Z)(ar,br);var pr=Mt(ar);function ar($n,Vn){var Cn,an,ur=Vn.compName,Sr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,xr=Sr===void 0?"light":Sr;return(0,ie.Z)(this,ar),(Cn=pr.call(this)).subComponents=[],Cn.compName=ur,Cn.c=ze(ur),Cn.options={},Cn.container=$n,Cn.$container=we()($n),Cn.$container.addClass(["luna-".concat(ur),Cn.c("platform-".concat((an=qe()(),an==="os x"?"mac":an)))]),Cn.on("optionChange",function(Qn,er,Wn){var En=Cn.c;Qn==="theme"&&(Cn.$container.rmClass(En("theme-".concat(Wn))).addClass(En("theme-".concat(er))),rn()(Cn.subComponents,function(Tn){return Tn.setOption("theme",er)}))}),Cn.setOption("theme",xr),Cn}return(0,se.Z)(ar,[{key:"destroy",value:function(){var $n=this;this.destroySubComponents();var Vn=this.$container,Cn=Vn.attr("class");rn()(Cn.split(/\s+/),function(an){Nt()(an,"luna-".concat($n.compName))&&Vn.rmClass(an)}),Vn.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function($n,Vn){var Cn=this,an=this.options,ur={};typeof $n=="string"?ur[$n]=Vn:ur=$n,rn()(ur,function(Sr,xr){var Qn=an[xr];an[xr]=Sr,Cn.emit("optionChange",xr,Sr,Qn)})}},{key:"getOption",value:function($n){return this.options[$n]}},{key:"addSubComponent",value:function($n){$n.setOption("theme",this.options.theme),this.subComponents.push($n)}},{key:"removeSubComponent",value:function($n){un()(this.subComponents,function(Vn){return Vn===$n})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function($n){return $n.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function($n){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zt()($n,Vn),Ft()(this.options,$n)}},{key:"find",value:function($n){return this.$container.find(this.c($n))}}]),ar}(ke()),pn=oe(8901),gn=oe.n(pn),Pt=oe(8613),lt=oe.n(Pt),Jt=oe(3367),en=oe.n(Jt),mn=oe(9833),fn=oe.n(mn),Yt=oe(1286),sn=oe.n(Yt),yn=oe(242),Nn=oe.n(yn),Zn=oe(2439),Hn=oe.n(Zn),Kn=oe(6156),Mn=oe.n(Kn),wn=oe(4777),In=oe.n(wn),Ln=oe(1754),Rn=oe.n(Ln),Fn=oe(6768),Sn=oe.n(Fn),_n=oe(3063),On=oe.n(_n),Pn=oe(9882),Un=oe.n(Pn),lr=oe(9853),or=oe.n(lr),fr=oe(6435),yr=oe.n(fr);function Bn(br){var pr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ar,$n=(0,ye.Z)(br);if(pr){var Vn=(0,ye.Z)(this).constructor;ar=Reflect.construct($n,arguments,Vn)}else ar=$n.apply(this,arguments);return(0,ve.Z)(this,ar)}}ee=oe.hmd(ee);var kr=we()(document),Nr=function(br){(0,be.Z)(ar,br);var pr=Bn(ar);function ar($n,Vn){var Cn;(0,ie.Z)(this,ar),(Cn=pr.call(this,$n,{compName:"data-grid"},Vn)).resizeIdx=0,Cn.resizeStartX=0,Cn.resizeStartLeft=0,Cn.resizeDeltaX=0,Cn.nodes=[],Cn.colWidthsInitialized=!1,Cn.colMap={},Cn.selectedNode=null,Cn.isAscending=!0,Cn.colWidths=[],Cn.onResizeColMove=function(Qn){var er=(0,de.Z)(Cn),Wn=er.resizeIdx,En=er.$resizers,Tn=er.colWidths,zn=er.$colgroup,mr=tn("x",Qn=Qn.origEvent)-Cn.resizeStartX,cr=Tn[Wn],ir=Tn[Wn+1],tr=yr()(24-cr,0),vr=or()(ir-24,0);mr=Un()(mr,tr,vr),zn.each(function(){var _r=we()(this).find("col");_r.eq(Wn).css("width",cr+mr+"px"),_r.eq(Wn+1).css("width",ir-mr+"px")}),Cn.resizeDeltaX=mr;var dr=Cn.resizeStartLeft+mr;En.eq(Wn).css("left","".concat(dr,"px"))},Cn.onResizeColEnd=function(Qn){Cn.onResizeColMove(Qn);var er=(0,de.Z)(Cn),Wn=er.c,En=er.colWidths,Tn=er.resizeIdx,zn=er.resizeDeltaX,mr=Cn.options.columns,cr=mr[Tn],ir=mr[Tn+1],tr=En[Tn]+zn,vr=tr+(En[Tn+1]-zn),dr=cr.weight+ir.weight,_r=dr*(tr/vr),Or=dr-_r;cr.weight=_r,ir.weight=Or,Cn.applyColWeights(),we()(document.body).rmClass(Wn("resizing")),kr.off(Vt("move"),Cn.onResizeColMove),kr.off(Vt("end"),Cn.onResizeColEnd)},Cn.$container.attr("tabindex","0"),Cn.resizeSensor=new(Nn())($n),Cn.onResize=Hn()(function(){Cn.updateHeight(),Cn.updateWeights()},16),Vn.height&&(Vn.maxHeight=Vn.height,Vn.minHeight=Vn.height),Cn.initOptions(Vn,{minHeight:41,maxHeight:1/0,filter:""});var an=Cn.options,ur=an.columns,Sr=an.minHeight,xr=an.maxHeight;return rn()(ur,function(Qn){Zt()(Qn,{sortable:!1}),Cn.colMap[Qn.id]=Qn}),xr-1&&($n.detach(),Vn.splice(Cn,1),$n===this.selectedNode&&this.selectNode(Vn[Cn]||Vn[Cn-1]||null),this.updateHeight())}},{key:"append",value:function($n,Vn){var Cn=new Gr(this,$n,Vn);return this.nodes.push(Cn),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(Cn)&&(this.tableBody.insertBefore(Cn.container,this.fillerRow),this.updateHeight()),Cn}},{key:"clear",value:function(){rn()(this.nodes,function($n){return $n.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var $n=this.$fillerRow,Vn=this.c,Cn=this.$container,an=this.options,ur=an.maxHeight,Sr=an.minHeight;this.$dataContainer.css({height:"auto"});var xr=this.$headerRow.offset().height+ln(Cn.css("border-top-width"))+ln(Cn.css("border-bottom-width"));(Sr-=xr)<0&&(Sr=0),ur-=xr;var Qn=this.$dataContainer.find(Vn(".node")),er=Qn.length,Wn=0;er>0&&(Wn=Qn.offset().height*er),Wn>Sr?$n.hide():$n.show(),Wn=ur&&(Wn=ur),this.$dataContainer.css({height:Wn})}},{key:"selectNode",value:function($n){var Vn;(Mn()($n)||$n!=null&&$n.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),Mn()($n)?this.emit("deselect"):(this.selectedNode=$n,(Vn=this.selectedNode)===null||Vn===void 0||Vn.select(),this.emit("select",$n)))}},{key:"onResizeColStart",value:function($n){var Vn=this.c,Cn=this.resizeIdx,an=this.$resizers;$n.stopPropagation(),$n.preventDefault(),$n=$n.origEvent,this.resizeStartX=tn("x",$n),this.resizeStartLeft=ln(an.eq(Cn).css("left")),we()(document.body).addClass(Vn("resizing")),kr.on(Vt("move"),this.onResizeColMove),kr.on(Vt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var $n=this,Vn=this.c,Cn=this.$headerRow,an=this.$tableBody,ur=this.$resizers;this.resizeSensor.addListener(this.onResize);var Sr=this;an.on("click",Vn(".node"),function(){Sr.selectNode(this.dataGridNode)}),Cn.on("click",Vn(".sortable"),function(xr){xr.stopPropagation();var Qn=we()(this),er=Qn.data("id"),Wn=Qn.data("order")!=="descending";Qn.data("order",Wn?"descending":"ascending"),Sr.sortNodes(er,Wn),Cn.find("th").each(function(){var En=we()(this);En.data("id")!==er&&En.rmAttr("data-order")})}),ur.on(Vt("start"),function(xr){var Qn=we()(this);Sr.resizeIdx=Fe()(Qn.data("idx")),Sr.onResizeColStart(xr)}),this.on("optionChange",function(xr){switch(xr){case"minHeight":case"maxHeight":$n.updateHeight();break;case"filter":$n.renderData()}})}},{key:"sortNodes",value:function($n,Vn){var Cn=this.colMap[$n].comparator||ro;this.nodes.sort(function(an,ur){var Sr=an.data[$n],xr=ur.data[$n];return fn()(Sr)&&(Sr=Sr.innerText),fn()(xr)&&(xr=xr.innerText),Vn?Cn(Sr,xr):Cn(xr,Sr)}),this.renderData(),this.sortId=$n,this.isAscending=Vn}},{key:"updateWeights",value:function(){var $n=this.container,Vn=this.$headerRow,Cn=this.options.columns,an=$n.offsetWidth;if(!this.colWidthsInitialized&&an){for(var ur=0,Sr=Cn.length;ur'),this.colWidths[En]=zn}Vn.html(Qn),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var $n=this.colWidths,Vn=[],Cn=$n.length-1,an=0;an').concat(ur,"")):Vn+="".concat(ur,""),Cn+=""}),this.$headerRow.html(Vn),this.$fillerRow.html(Cn)}},{key:"renderResizers",value:function(){for(var $n="",Vn=this.options.columns.length-1,Cn=0;Cn'));this.$container.append($n),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(Ce()(Xt||(Xt=(0,ae.Z)([` +
+ + + + + +
+
+
+ + + + + +
+
+ `])))))}}]),ar}(on),Gr=function(){function br(pr,ar){var $n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,ie.Z)(this,br),this.container=lt()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=we()(this.container),this.$container.addClass(pr.c("node")),this.dataGrid=pr,this.data=ar,$n.selectable&&(this.selectable=$n.selectable),this.render()}return(0,se.Z)(br,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var pr=this.data,ar=this.$container,$n=this.container,Vn=this.dataGrid.getOption("columns");ar.html(""),rn()(Vn,function(Cn){var an=lt()("td"),ur=pr[Cn.id];sn()(ur)||(fn()(ur)?an.appendChild(ur):an.innerText=en()(ur)),$n.appendChild(an)})}}]),br}();function ro(br,pr){if(br=en()(br),pr=en()(pr),Nt()(br,"_")&&!Nt()(pr,"_"))return 1;if(Nt()(pr,"_")&&!Nt()(br,"_"))return-1;for(var ar,$n,Vn,Cn,an=/^\d+|^\D+/;;){if(!br)return pr?-1:0;if(!pr)return 1;if(ar=br.match(an)[0],$n=pr.match(an)[0],Vn=!isNaN(ar),Cn=!isNaN($n),Vn&&!Cn)return-1;if(Cn&&!Vn)return 1;if(Vn&&Cn){var ur=ar-$n;if(ur)return ur;if(ar.length!==$n.length)return+ar||+$n?$n.length-ar.length:ar.length-$n.length}else if(ar!==$n)return ar<$n?-1:1;br=br.substring(ar.length),pr=pr.substring($n.length)}}(function(br,pr){try{br.exports=pr,br.exports.default=pr}catch{}})(ee,Nr)},8209:function(ee,ne,oe){oe.d(ne,{Z:function(){return yn}});var ae=oe(168),ie=oe(4942),se=oe(5671),de=oe(3144),fe=oe(7326),be=oe(9340),ve=oe(2963),ye=oe(1120),_e=oe(1443),we=oe.n(_e),Ae=oe(1512),Ce=oe.n(Ae),$e=oe(2461),ke=oe.n($e),Pe=oe(4331),Ee=oe.n(Pe),Oe=oe(5610),Ne=oe.n(Oe),Re=oe(7483),De=oe.n(Re),Ie=(oe(3990),oe(6341)),Le=oe.n(Ie),We=(oe(3875),oe(6954)),He=oe.n(We);oe(9585);function Be(Hn){var Kn="luna-".concat(Hn,"-");function Mn(wn){return ke()(Ee()(wn).split(/\s+/),function(In){return Le()(In,Kn)?In:In.replace(/[\w-]+/,function(Ln){return"".concat(Kn).concat(Ln)})}).join(" ")}return function(wn){if(/<[^>]*>/g.test(wn))try{var In=De().parse(wn);return Fe(In,function(Ln){Ln.attrs&&Ln.attrs.class&&(Ln.attrs.class=Mn(Ln.attrs.class))}),De().stringify(In)}catch{return Mn(wn)}return Mn(wn)}}function Fe(Hn,Kn){for(var Mn=0,wn=Hn.length;Mn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Mn,wn=(0,ye.Z)(Hn);if(Kn){var In=(0,ye.Z)(this).constructor;Mn=Reflect.construct(wn,arguments,In)}else Mn=wn.apply(this,arguments);return(0,ve.Z)(this,Mn)}}var ln,Gt=function(Hn){(0,be.Z)(Mn,Hn);var Kn=tn(Mn);function Mn(wn,In){var Ln,Rn=In.compName,Fn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Sn=Fn===void 0?"light":Fn;return(0,se.Z)(this,Mn),(Ln=Kn.call(this)).subComponents=[],Ln.compName=Rn,Ln.c=Be(Rn),Ln.options={},Ln.container=wn,Ln.$container=Ce()(wn),Ln.$container.addClass(["luna-".concat(Rn),Ln.c("platform-".concat(qe()))]),Ln.on("optionChange",function(_n,On,Pn){var Un=Ln.c;_n==="theme"&&(Ln.$container.rmClass(Un("theme-".concat(Pn))).addClass(Un("theme-".concat(On))),je()(Ln.subComponents,function(lr){return lr.setOption("theme",On)}))}),Ln.setOption("theme",Sn),Ln}return(0,de.Z)(Mn,[{key:"destroy",value:function(){this.destroySubComponents();var wn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(wn("platform-".concat(qe()))).rmClass(wn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(wn,In){var Ln=this,Rn=this.options,Fn={};typeof wn=="string"?Fn[wn]=In:Fn=wn,je()(Fn,function(Sn,_n){var On=Rn[_n];Rn[_n]=Sn,Ln.emit("optionChange",_n,Sn,On)})}},{key:"getOption",value:function(wn){return this.options[wn]}},{key:"addSubComponent",value:function(wn){wn.setOption("theme",this.options.theme),this.subComponents.push(wn)}},{key:"removeSubComponent",value:function(wn){Vt()(this.subComponents,function(In){return In===wn})}},{key:"destroySubComponents",value:function(){je()(this.subComponents,function(wn){return wn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(wn){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt()(wn,In),At()(this.options,wn)}},{key:"find",value:function(wn){return this.$container.find(this.c(wn))}}]),Mn}(we()),rn=oe(8613),ct=oe.n(rn),Ft=oe(5972),Kt=oe.n(Ft),Zt=oe(1907),hn=oe.n(Zt),un=oe(1352),Xe=oe.n(un),Nt=oe(2289),Mt=oe.n(Nt),Xt=oe(3651),on=oe.n(Xt),pn=oe(7756),gn=oe.n(pn),Pt=oe(8901),lt=oe.n(Pt),Jt=oe(1672),en=oe.n(Jt);function mn(Hn,Kn){var Mn=Object.keys(Hn);if(Object.getOwnPropertySymbols){var wn=Object.getOwnPropertySymbols(Hn);Kn&&(wn=wn.filter(function(In){return Object.getOwnPropertyDescriptor(Hn,In).enumerable})),Mn.push.apply(Mn,wn)}return Mn}function fn(Hn){for(var Kn=1;Kn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Mn,wn=(0,ye.Z)(Hn);if(Kn){var In=(0,ye.Z)(this).constructor;Mn=Reflect.construct(wn,arguments,In)}else Mn=wn.apply(this,arguments);return(0,ve.Z)(this,Mn)}}ee=oe.hmd(ee);var sn={comment:"",string:"",number:"",keyword:"",operator:""},yn=function(Hn){(0,be.Z)(Mn,Hn);var Kn=Yt(Mn);function Mn(wn){var In,Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,se.Z)(this,Mn),(In=Kn.call(this,wn,{compName:"dom-viewer"},Ln)).isExpanded=!1,In.childNodes=[],In.childNodeDomViewers=[],In.toggle=function(){In.isExpanded?In.collapse():In.expand()},In.initOptions(Ln,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:wn,rootDomViewer:(0,fe.Z)(In),ignore:function(){return!1}}),In.initTpl(),In.bindEvent(),In.options.isEndTag||In.initObserver(),In}return(0,de.Z)(Mn,[{key:"select",value:function(wn){var In=this.c,Ln=this.options;if(!wn||wn&&Ln.node===wn)return this.$tag.hasClass(In("selected"))?void 0:(Ce()(this.options.rootContainer).find(In(".selected")).rmClass(In("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(In("selected")),void Ln.rootDomViewer.emit("select",Ln.node));if(wn.nodeType===Node.ELEMENT_NODE)for(var Rn=wn,Fn=wn.parentElement;Fn;){if(Fn===Ln.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(Rn)].select(wn);break}Rn=Fn,Fn=Fn.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var wn=this.c;this.$tag.hasClass(wn("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(wn("platform-".concat(qe()))).rmClass(wn("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var wn=this.$tag,In=this.c,Ln=this.options.node;wn.html(this.renderHtmlTag(fn(fn({},Nn(Ln)),{},{hasTail:!1,hasToggleButton:!0}))),wn.addClass(In("expanded")),this.$children.rmClass(In("hidden"))}},{key:"renderCollapseTag",value:function(){var wn=this.$tag,In=this.c,Ln=this.options.node;this.$children.addClass(In("hidden")),this.$tag.html(this.renderHtmlTag(fn(fn({},Nn(Ln)),{},{hasTail:!0,hasToggleButton:!0}))),wn.rmClass(In("expanded"))}},{key:"initObserver",value:function(){var wn=this;this.observer=new(Mt())(function(In){je()(In,function(Ln){wn.handleMutation(Ln)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(wn){var In=this.$tag,Ln=this.c,Rn=this.options,Fn=Rn.node,Sn=Rn.ignore;if(Le()(["attributes","childList"],wn.type)){if(wn.type==="childList"){if(en()(wn.addedNodes,Sn)&&en()(wn.removedNodes,Sn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass(Ln("hidden")),In.html(this.renderHtmlTag(fn(fn({},Nn(Fn)),{},{hasTail:!1}))))}else wn.type==="characterData"&&(Fn.nodeType===Node.TEXT_NODE?In.html(this.renderTextNode(Fn)):Fn.nodeType===Node.COMMENT_NODE&&In.html(this.renderHtmlComment(Fn.nodeValue)))}},{key:"bindEvent",value:function(){var wn=this,In=this.c,Ln=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&Ln.on("click",In(".toggle"),function(Rn){Rn.stopPropagation(),wn.toggle()}),Ze?Ln.on("click",function(){return wn.select()}):Ln.on("mousedown",function(){return wn.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var wn=this.options,In=wn.rootContainer,Ln=wn.ignore,Rn=this.options.node,Fn=Xe()(Rn.childNodes);return Fn=Kt()(Fn,function(Sn){if(Sn.nodeType===Node.TEXT_NODE||Sn.nodeType===Node.COMMENT_NODE){var _n=Sn.nodeValue;if(Ee()(_n)==="")return!1}return Sn!==In&&!Ln(Sn)})}},{key:"initTpl",value:function(){var wn=this.container,In=this.c,Ln=this.options,Rn=Ln.node,Fn=Ln.isEndTag,Sn=Ce()(ct()("li"));if(Sn.addClass(In("tree-item")),this.$tag=Sn,Fn)Sn.html(In('</'.concat(Rn.tagName.toLocaleLowerCase(),'>')));else if(Rn.nodeType===Node.ELEMENT_NODE){var _n=this.isExpandable(),On=fn(fn({},Nn(Rn)),{},{hasTail:_n,hasToggleButton:_n});Sn.html(this.renderHtmlTag(On))}else if(Rn.nodeType===Node.TEXT_NODE)Sn.html(this.renderTextNode(Rn));else{if(Rn.nodeType!==Node.COMMENT_NODE)return;var Pn=Rn.nodeValue;if(Pn.trim()==="")return;Sn.html(this.renderHtmlComment(Pn))}if(wn.appendChild(Sn.get(0)),Rn.nodeType===Rn.ELEMENT_NODE){var Un=Ce()(ct()("ul"));Un.addClass([In("children"),In("hidden")]),wn.appendChild(Un.get(0)),this.$children=Un}}},{key:"renderChildNodes",value:function(){var wn=this,In=this.options.node,Ln=this.options,Rn=Ln.rootContainer,Fn=Ln.ignore,Sn=Ln.rootDomViewer,_n=this.$children.get(0),On=this.childNodes,Pn=this.childNodeDomViewers;je()(Pn,function(or){or.detach(),wn.removeSubComponent(or)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var Un=this.getChildNodes();this.childNodes=Un;var lr=[];this.childNodeDomViewers=lr,je()(Un,function(or,fr){var yr,Bn=On.indexOf(or);(yr=Bn>-1?Pn[Bn]:new Mn(_n,{node:or,parent:wn,rootContainer:Rn,rootDomViewer:Sn,ignore:Fn})).attach(),lr[fr]=yr,wn.addSubComponent(yr)}),je()(Pn,function(or){or.isAttached()||or.destroy()}),In&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new Mn(_n,{node:In,parent:this,isEndTag:!0,rootContainer:Rn,rootDomViewer:Sn,ignore:Fn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(wn){var In=ke()(wn.attributes,function(Fn){var Sn=Fn.name,_n=Fn.value,On=Fn.isLink;return` + `.concat(lt()(Sn),"").concat(_n?'="').concat(lt()(_n),'"'):"","")}).join(""),Ln="";wn.hasTail?Ln="".concat(wn.hasTail?"…":"",'</').concat(wn.tagName,">"):this.isExpandable()||(Ln='</'.concat(wn.tagName,">"));var Rn="";return wn.hasToggleButton&&(Rn='
'),this.c(hn()(ln||(ln=(0,ae.Z)([` + `,` + <`,"",">",` + `])),Rn,wn.tagName,In,Ln))}},{key:"renderTextNode",value:function(wn){var In=this.c,Ln=wn.nodeValue,Rn=wn.parentElement,Fn='',Sn='';if(Rn&&Ln.length<1e4){if(Rn.tagName==="STYLE")return In("".concat(Fn).concat(on()(Ln,"css",sn)).concat(Sn));if(Rn.tagName==="SCRIPT")return In("".concat(Fn).concat(on()(Ln,"js",sn)).concat(Sn))}return In('"'.concat(Fn).concat(lt()(gn()(Ln,1e4,{separator:" ",ellipsis:"…"}))).concat(Sn,'"'))}},{key:"renderHtmlComment",value:function(wn){return this.c('<!-- '.concat(lt()(wn),' -->'))}}]),Mn}(Gt);function Nn(Hn){var Kn={tagName:"",attributes:[]};Kn.tagName=Hn.tagName.toLocaleLowerCase();var Mn=[];return je()(Hn.attributes,function(wn){var In=wn.name,Ln=wn.value;Mn.push({name:In,value:Ln,isLink:Zn(Hn,In)})}),Kn.attributes=Mn,Kn}function Zn(Hn,Kn){var Mn=Hn.tagName;return(Mn==="SCRIPT"||Mn==="IMAGE"||Mn==="VIDEO"||Mn==="AUDIO")&&Kn==="src"||Mn==="LINK"&&Kn==="href"}(function(Hn,Kn){try{Hn.exports=Kn,Hn.exports.default=Kn}catch{}})(ee,yn)},129:function(ee,ne,oe){oe.d(ne,{Z:function(){return Nt}});var ae=oe(907),ie=oe(181);function se(Pt){return function(lt){if(Array.isArray(lt))return(0,ae.Z)(lt)}(Pt)||function(lt){if(typeof Symbol<"u"&<[Symbol.iterator]!=null||lt["@@iterator"]!=null)return Array.from(lt)}(Pt)||(0,ie.Z)(Pt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var de=oe(168),fe=oe(5671),be=oe(3144),ve=oe(7326),ye=oe(1752),_e=oe(9340),we=oe(2963),Ae=oe(1120),Ce=oe(1443),$e=oe.n(Ce),ke=oe(1512),Pe=oe.n(ke),Ee=oe(2461),Oe=oe.n(Ee),Ne=oe(4331),Re=oe.n(Ne),De=oe(5610),Ie=oe.n(De),Le=oe(7483),We=oe.n(Le),He=(oe(3990),oe(6341)),Be=oe.n(He),Fe=(oe(3875),oe(6954)),Ze=oe.n(Fe);oe(9585);function qe(Pt){var lt="luna-".concat(Pt,"-");function Jt(en){return Oe()(Re()(en).split(/\s+/),function(mn){return Be()(mn,lt)?mn:mn.replace(/[\w-]+/,function(fn){return"".concat(lt).concat(fn)})}).join(" ")}return function(en){if(/<[^>]*>/g.test(en))try{var mn=We().parse(en);return ze(mn,function(fn){fn.attrs&&fn.attrs.class&&(fn.attrs.class=Jt(fn.attrs.class))}),We().stringify(mn)}catch{return Jt(en)}return Jt(en)}}function ze(Pt,lt){for(var Jt=0,en=Pt.length;Jt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Jt,en=(0,Ae.Z)(Pt);if(lt){var mn=(0,Ae.Z)(this).constructor;Jt=Reflect.construct(en,arguments,mn)}else Jt=en.apply(this,arguments);return(0,we.Z)(this,Jt)}}var ct,Ft=function(Pt){(0,_e.Z)(Jt,Pt);var lt=rn(Jt);function Jt(en,mn){var fn,Yt,sn=mn.compName,yn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Nn=yn===void 0?"light":yn;return(0,fe.Z)(this,Jt),(fn=lt.call(this)).subComponents=[],fn.compName=sn,fn.c=qe(sn),fn.options={},fn.container=en,fn.$container=Pe()(en),fn.$container.addClass(["luna-".concat(sn),fn.c("platform-".concat((Yt=Ze()(),Yt==="os x"?"mac":Yt)))]),fn.on("optionChange",function(Zn,Hn,Kn){var Mn=fn.c;Zn==="theme"&&(fn.$container.rmClass(Mn("theme-".concat(Kn))).addClass(Mn("theme-".concat(Hn))),Qe()(fn.subComponents,function(wn){return wn.setOption("theme",Hn)}))}),fn.setOption("theme",Nn),fn}return(0,be.Z)(Jt,[{key:"destroy",value:function(){var en=this;this.destroySubComponents();var mn=this.$container,fn=mn.attr("class");Qe()(fn.split(/\s+/),function(Yt){Gt()(Yt,"luna-".concat(en.compName))&&mn.rmClass(Yt)}),mn.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(en,mn){var fn=this,Yt=this.options,sn={};typeof en=="string"?sn[en]=mn:sn=en,Qe()(sn,function(yn,Nn){var Zn=Yt[Nn];Yt[Nn]=yn,fn.emit("optionChange",Nn,yn,Zn)})}},{key:"getOption",value:function(en){return this.options[en]}},{key:"addSubComponent",value:function(en){en.setOption("theme",this.options.theme),this.subComponents.push(en)}},{key:"removeSubComponent",value:function(en){tn()(this.subComponents,function(mn){return mn===en})}},{key:"destroySubComponents",value:function(){Qe()(this.subComponents,function(en){return en.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(en){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ke()(en,mn),Rt()(this.options,en)}},{key:"find",value:function(en){return this.$container.find(this.c(en))}}]),Jt}($e()),Kt=oe(1907),Zt=oe.n(Kt),hn=oe(8613),un=oe.n(hn);function Xe(Pt){var lt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Jt,en=(0,Ae.Z)(Pt);if(lt){var mn=(0,Ae.Z)(this).constructor;Jt=Reflect.construct(en,arguments,mn)}else Jt=en.apply(this,arguments);return(0,we.Z)(this,Jt)}}ee=oe.hmd(ee);var Nt=function(Pt){(0,_e.Z)(Jt,Pt);var lt=Xe(Jt);function Jt(en){var mn,fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,fe.Z)(this,Jt),(mn=lt.call(this,en,{compName:"modal"},fn)).render=function(){var Yt=(0,ve.Z)(mn),sn=Yt.options,yn=Yt.c,Nn=Yt.$body;sn.title?(Nn.rmClass(yn("no-title")),mn.$title.text(sn.title)):Nn.addClass(yn("no-title")),sn.footer?(Nn.rmClass(yn("no-footer")),mn.$footer.html("").append(sn.footer)):Nn.addClass(yn("no-footer")),sn.showClose?mn.$close.show():mn.$close.hide(),mn.$body.css("width",sn.width+"px"),mn.$content.html("").append(sn.content)},mn.hide(),mn.initOptions(fn,{title:"",content:"",footer:"",showClose:!0,width:gn()}),mn.initTpl(),mn.$title=mn.find(".title"),mn.$content=mn.find(".content"),mn.$body=mn.find(".body"),mn.$footer=mn.find(".footer"),mn.$close=mn.find(".icon-close"),mn.bindEvent(),mn}return(0,be.Z)(Jt,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"hide",value:function(){this.$container.addClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,ye.Z)((0,Ae.Z)(Jt.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){var en=this;this.$body.on("click",this.c(".icon-close"),function(){return en.hide()}),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(Zt()(ct||(ct=(0,de.Z)([` +
+ +
+
+ +
+ `])))))}}],[{key:"alert",value:function(en){var mn=on(),fn=mn.c;mn.setOption({title:"",content:en,width:gn(),footer:pn({OK:{type:"primary",onclick:function(){mn.hide()}}},fn)}),mn.show()}},{key:"confirm",value:function(en){return new Promise(function(mn){var fn=on(),Yt=fn.c;fn.setOption({title:"",content:en,width:gn(),footer:pn({Cancel:{type:"secondary",onclick:function(){fn.hide(),mn(!1)}},OK:{type:"primary",onclick:function(){fn.hide(),mn(!0)}}},Yt)}),fn.show()})}},{key:"prompt",value:function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(fn){var Yt=on(),sn=Yt.c,yn=un()("input"+sn(".input"),{value:mn});function Nn(){Yt.hide(),fn(yn.value)}Pe()(yn).on("keypress",function(Hn){(Hn=Hn.origEvent).key==="Enter"&&Nn()}),Yt.setOption({title:en,content:yn,width:gn(),footer:pn({Cancel:{type:"secondary",onclick:function(){Yt.hide(),fn(null)}},OK:{type:"primary",onclick:Nn}},sn)}),Yt.show();var Zn=yn.value.length;yn.setSelectionRange(Zn,Zn),yn.focus()})}},{key:"setContainer",value:function(en){Xt=en}}]),Jt}(Ft),Mt=null,Xt=null;function on(){return Xt||(Xt=un()("div"),document.body.append(Xt)),Mt||(Mt=new Nt(Xt,{showClose:!1})),Mt}function pn(Pt,lt){var Jt=Oe()(Pt,function(en,mn){return un()(lt(".button")+lt("."+en.type),{onclick:en.onclick},mn)});return un().apply(void 0,[lt(".button-group"),{}].concat(se(Jt)))}function gn(){return window.innerWidth<500?window.innerWidth-32:500}(function(Pt,lt){try{Pt.exports=lt,Pt.exports.default=lt}catch{}})(ee,Nt)},8299:function(ee,ne,oe){oe.d(ne,{q:function(){return an},Z:function(){return xr}});var ae=oe(1002),ie=oe(5671),se=oe(3144),de=oe(7326),fe=oe(1752),be=oe(9340),ve=oe(2963),ye=oe(1120),_e=oe(415),we=oe.n(_e),Ae=oe(3990),Ce=oe.n(Ae),$e=oe(4696),ke=oe.n($e),Pe=oe(3063),Ee=oe.n(Pe),Oe=oe(5166),Ne=oe.n(Oe),Re=oe(6472),De=oe.n(Re),Ie=oe(3023),Le=oe.n(Ie),We=oe(2533),He=oe.n(We),Be=oe(3783),Fe=oe.n(Be),Ze=oe(300),qe=oe.n(Ze),ze=oe(4321),je=oe.n(ze),Qe=oe(3085),At=oe.n(Qe),Rt=oe(1512),Dt=oe.n(Rt),Ke=oe(801),Vt=oe.n(Ke),tn=oe(7756),ln=oe.n(tn),Gt=oe(6768),rn=oe.n(Gt),ct=oe(1116),Ft=oe.n(ct),Kt=oe(5972),Zt=oe.n(Kt),hn=oe(996),un=oe.n(hn),Xe=oe(3367),Nt=oe.n(Xe),Mt=oe(1214),Xt=oe.n(Mt),on=oe(6339),pn=oe.n(on),gn=oe(6329),Pt=oe.n(gn),lt=function(){function Qn(){(0,ie.Z)(this,Qn),this.id=0,this.visited=[]}return(0,se.Z)(Qn,[{key:"set",value:function(er,Wn){var En=this.visited,Tn=this.id,zn={id:Tn,val:er};return Pt()(zn,Wn),En.push(zn),this.id++,Tn}},{key:"get",value:function(er){for(var Wn=this.visited,En=0,Tn=Wn.length;En500&&(Qn=Qn.slice(0,500)+"..."),"ƒ "+en()(function(er){var Wn=er.match(yn);return Wn?Wn[0]:er}(Qn).replace("function",""))}var yn=/function(.*?)\((.*?)\)/,Nn=oe(6930),Zn=oe.n(Nn),Hn=oe(5229),Kn=oe.n(Hn),Mn=oe(3875),wn=oe.n(Mn),In=oe(9433),Ln=oe.n(In),Rn=oe(1443),Fn=oe.n(Rn),Sn=oe(2461),_n=oe.n(Sn),On=oe(5610),Pn=oe.n(On),Un=oe(7483),lr=oe.n(Un),or=oe(6341),fr=oe.n(or),yr=oe(6954),Bn=oe.n(yr);oe(9585);function kr(Qn){var er="luna-".concat(Qn,"-");function Wn(En){return _n()(en()(En).split(/\s+/),function(Tn){return fr()(Tn,er)?Tn:Tn.replace(/[\w-]+/,function(zn){return"".concat(er).concat(zn)})}).join(" ")}return function(En){if(/<[^>]*>/g.test(En))try{var Tn=lr().parse(En);return Nr(Tn,function(zn){zn.attrs&&zn.attrs.class&&(zn.attrs.class=Wn(zn.attrs.class))}),lr().stringify(Tn)}catch{return Wn(En)}return Wn(En)}}function Nr(Qn,er){for(var Wn=0,En=Qn.length;Wn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Wn,En=(0,ye.Z)(Qn);if(er){var Tn=(0,ye.Z)(this).constructor;Wn=Reflect.construct(En,arguments,Tn)}else Wn=En.apply(this,arguments);return(0,ve.Z)(this,Wn)}}var Vn=function(Qn){(0,be.Z)(Wn,Qn);var er=$n(Wn);function Wn(En,Tn){var zn,mr=Tn.compName,cr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,ir=cr===void 0?"light":cr;return(0,ie.Z)(this,Wn),(zn=er.call(this)).subComponents=[],zn.compName=mr,zn.c=kr(mr),zn.options={},zn.container=En,zn.$container=Dt()(En),zn.$container.addClass(["luna-".concat(mr),zn.c("platform-".concat(Gr()))]),zn.on("optionChange",function(tr,vr,dr){var _r=zn.c;tr==="theme"&&(zn.$container.rmClass(_r("theme-".concat(dr))).addClass(_r("theme-".concat(vr))),Fe()(zn.subComponents,function(Or){return Or.setOption("theme",vr)}))}),zn.setOption("theme",ir),zn}return(0,se.Z)(Wn,[{key:"destroy",value:function(){this.destroySubComponents();var En=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(En("platform-".concat(Gr()))).rmClass(En("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(En,Tn){var zn=this,mr=this.options,cr={};typeof En=="string"?cr[En]=Tn:cr=En,Fe()(cr,function(ir,tr){var vr=mr[tr];mr[tr]=ir,zn.emit("optionChange",tr,ir,vr)})}},{key:"getOption",value:function(En){return this.options[En]}},{key:"addSubComponent",value:function(En){En.setOption("theme",this.options.theme),this.subComponents.push(En)}},{key:"removeSubComponent",value:function(En){ar()(this.subComponents,function(Tn){return Tn===En})}},{key:"destroySubComponents",value:function(){Fe()(this.subComponents,function(En){return En.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(En){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};br()(En,Tn),Pt()(this.options,En)}},{key:"find",value:function(En){return this.$container.find(this.c(En))}}]),Wn}(Fn());function Cn(Qn){var er=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Wn,En=(0,ye.Z)(Qn);if(er){var Tn=(0,ye.Z)(this).constructor;Wn=Reflect.construct(En,arguments,Tn)}else Wn=En.apply(this,arguments);return(0,ve.Z)(this,Wn)}}var an=function(Qn){(0,be.Z)(Wn,Qn);var er=Cn(Wn);function Wn(En){var Tn;return(0,ie.Z)(this,Wn),(Tn=er.call(this,En,{compName:"object-viewer"})).onItemClick=function(zn){var mr=(0,de.Z)(Tn),cr=mr.map,ir=mr.c,tr=Dt()(zn.curTarget),vr=tr.data("object-id"),dr=tr.find("span").eq(0);if(!tr.data("first-level")&&(vr&&(tr.find("ul").html(Tn.objToHtml(cr[vr],!1)),tr.rmAttr("data-object-id")),zn.stopImmediatePropagation(),dr.hasClass(ir("expanded")))){var _r=tr.find("ul").eq(0);dr.hasClass(ir("collapsed"))?(dr.rmClass(ir("collapsed")),_r.show()):(dr.addClass(ir("collapsed")),_r.hide()),Tn.emit("change")}},Tn.bindEvent(),Tn}return(0,se.Z)(Wn,[{key:"set",value:function(En){rn()(En)&&(En=JSON.parse(En)),this.data={id:Kn()("json"),enumerable:{0:En}},this.map={},ur(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,fe.Z)((0,ye.Z)(Wn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(En,Tn){var zn=this,mr="";return Fe()(["enumerable","unenumerable","symbol"],function(cr){if(En[cr]){var ir=He()(En[cr]);pn()(ir);for(var tr=0,vr=ir.length;tr3&&arguments[3]!==void 0&&arguments[3],cr=this.c,ir=(0,ae.Z)(Tn);if(Tn===null)return"
  • ".concat(Ir(En),'null
  • ');if(Ce()(Tn)||ke()(Tn))return"
  • ".concat(Ir(En),'').concat(Yt(Tn),"
  • ");if(Tn.type==="RegExp"&&(ir="regexp"),Tn.type==="Number"&&(ir="number"),Tn.type==="Number"||Tn.type==="RegExp")return"
  • ".concat(Ir(En),'').concat(Yt(Tn.value),"
  • ");if(Tn.type==="Undefined"||Tn.type==="Symbol")return"
  • ".concat(Ir(En),'').concat(Ee()(Tn.type),"
  • ");if(Tn==="(...)")return"
  • ".concat(Ir(En),'').concat(Tn,"
  • ");if(Ne()(Tn)){var tr=Tn.id,vr=Tn.reference,dr=function(Lr){var Vr=Lr.type,Yr=Lr.value;if(Vr)return Vr==="Function"?sn(Yr):Vr==="Array"&&Lr.unenumerable?"Array(".concat(Lr.unenumerable.length,")"):Lr.type}(Tn)||Le()(ir),_r=mr?"":''),Or="
  • ").concat(_r).concat(Ir(En),'').concat(mr?"":dr,'
      ");return mr&&(Or+=this.objToHtml(this.map[tr])),Or+'
  • ')}function Ir(Lr){if(mr||Ne()(Tn)&&Tn.jsonSplitArr)return"";var Vr=cr("key");return zn==="unenumerable"||zn==="symbol"?Vr=cr("key-lighter"):zn==="proto"&&(Vr=cr("key-special")),'').concat(Yt(Lr),": ")}return rn()(Tn)&&Tn.length>1e4&&(Tn=ln()(Tn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(Ir(En),'"').concat(Yt(Tn),'"
  • ')}},{key:"render",value:function(){var En=this.map[this.data.id];this.$container.html(this.objToHtml(En,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),Wn}(Vn);function ur(Qn,er){var Wn=er.id;if(Wn||Wn===0){if(er.type&&Zn()(er.type,"Array")&&er.enumerable){var En=function(ir,tr,vr){var dr=[],_r={};return Fe()(ir.enumerable,function(Or,Ir){var Lr=wn()(Ir);Ln()(Lr)?_r[Ir]=Or:dr[Lr]=Or}),dr.enumerable=_r,dr.type=vr,dr.id=tr,ir.unenumerable&&(dr.unenumerable=ir.unenumerable),ir.symbol&&(dr.symbol=ir.symbol),ir.proto&&(dr.proto=ir.proto),dr}(er,Wn,er.type);En.length>100&&(er=function(ir){var tr=0,vr={};Fe()(un()(ir,100),function(_r){var Or={},Ir=tr;Or.type="["+Ir,Or.enumerable={},Fe()(_r,function(Vr){Or.enumerable[tr]=Vr,tr+=1});var Lr=tr-1;Or.type+=(Lr-Ir>0?" … "+Lr:"")+"]",Or.id=Kn()("json"),Or.jsonSplitArr=!0,vr[tr]=Or});var dr={};return dr.enumerable=vr,dr.id=ir.id,dr.type=ir.type,ir.unenumerable&&(dr.unenumerable=ir.unenumerable),ir.symbol&&(dr.symbol=ir.symbol),ir.proto&&(dr.proto=ir.proto),dr}(En))}Qn[Wn]=er;var Tn=[];Fe()(["enumerable","unenumerable","symbol"],function(ir){if(er[ir])for(var tr in er[ir])Tn.push(er[ir][tr])}),er.proto&&Tn.push(er.proto);for(var zn=0,mr=Tn.length;zn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Wn,En=(0,ye.Z)(Qn);if(er){var Tn=(0,ye.Z)(this).constructor;Wn=Reflect.construct(En,arguments,Tn)}else Wn=En.apply(this,arguments);return(0,ve.Z)(this,Wn)}}ee=oe.hmd(ee);var xr=function(Qn){(0,be.Z)(Wn,Qn);var er=Sr(Wn);function Wn(En){var Tn,zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ie.Z)(this,Wn),(Tn=er.call(this,En,{compName:"object-viewer"})).onItemClick=function(mr){var cr=(0,de.Z)(Tn),ir=cr.map,tr=cr.c,vr=Dt()(mr.curTarget),dr=vr.data("object-id"),_r=vr.find("span").eq(0);if(!vr.data("first-level")&&(dr&&(vr.find("ul").html(Tn.objToHtml(ir[dr],!1)),vr.rmAttr("data-object-id")),mr.stopImmediatePropagation(),_r.hasClass(tr("expanded")))){var Or=vr.find("ul").eq(0);_r.hasClass(tr("collapsed"))?(_r.rmClass(tr("collapsed")),Or.show()):(_r.addClass(tr("collapsed")),Or.hide()),Tn.emit("change")}},Tn.initOptions(zn,{unenumerable:!1,accessGetter:!1}),Tn.bindEvent(),Tn}return(0,se.Z)(Wn,[{key:"set",value:function(En){this.data=[En],this.visitor=new lt,this.map={},this.render()}},{key:"destroy",value:function(){(0,fe.Z)((0,ye.Z)(Wn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(En,Tn){var zn=this,mr=this.visitor,cr=En,ir=!1,tr=mr.get(En);tr&&tr.self&&(cr=tr.self);var vr="",dr=["enumerable"],_r=He()(En),Or=[],Ir=[],Lr=[],Vr={};if(this.options.unenumerable&&!Tn&&(dr.push("unenumerable"),dr.push("symbol"),Or=Vt()(Ft()(En,{prototype:!1,unenumerable:!0}),_r),Ir=Zt()(Ft()(En,{prototype:!1,symbol:!0}),function(jr){return(0,ae.Z)(jr)==="symbol"})),De()(En)&&En.length>100){dr.unshift("virtual"),ir=!0;var Yr=0,Hr={};Fe()(un()(En,100),function(jr){var oo=Object.create(null),Zr=Yr,go="["+Zr;Fe()(jr,function(no){oo[Yr]=no,Hr[Yr]=!0,Yr++});var Kr=Yr-1;Vr[go+=(Kr-Zr>0?" … "+Kr:"")+"]"]=oo}),Lr=He()(Vr),_r=Zt()(_r,function(jr){return!Hr[jr]})}Fe()(dr,function(jr){var oo=[];oo=jr==="symbol"?Ir:jr==="unenumerable"?Or:jr==="virtual"?Lr:_r,ir||pn()(oo);for(var Zr=0,go=oo.length;Zr4&&arguments[4]!==void 0&&arguments[4],ir=this.visitor,tr=this.c,vr=(0,ae.Z)(zn),dr=At()(zn,!1);if(mr==="virtual"&&(dr=En),zn===null)return"
  • ".concat(Hr(En),'null
  • ');if(Ce()(zn)||ke()(zn))return"
  • ".concat(Hr(En),'').concat(Yt(zn),"
  • ");if(dr==="RegExp"&&(vr="regexp"),dr==="Number"&&(vr="number"),dr==="Undefined"||dr==="Symbol")return"
  • ".concat(Hr(En),'').concat(Ee()(dr),"
  • ");if(zn==="(...)")return"
  • ".concat(Hr(En),'').concat(zn,"
  • ");if(Ne()(zn)){var _r,Or=ir.get(zn);if(Or)_r=Or.id;else{var Ir={};mr==="proto"&&(Ir.self=Tn),_r=ir.set(zn,Ir),this.map[_r]=zn}var Lr="Object";Lr=vr==="regexp"?'').concat(Yt(zn)):Yt(function(Jr,qr){if(qr)return qr==="Function"?sn(qe()(Jr)):qr==="Array"?"Array(".concat(Jr.length,")"):qr}(zn,dr)||Le()(vr));var Vr=cr?"":''),Yr="
  • ").concat(Vr).concat(Hr(En),'').concat(cr?"":Lr,'
      ");return cr&&(Yr+=this.objToHtml(zn)),Yr+'
  • ')}function Hr(Jr){if(cr||Ne()(zn)&&mr==="virtual")return"";var qr=tr("key");return mr==="unenumerable"||mr==="symbol"?qr=tr("key-lighter"):mr==="proto"&&(qr=tr("key-special")),'').concat(Yt(Jr),": ")}return rn()(zn)&&zn.length>1e4&&(zn=ln()(zn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(Hr(En),'"').concat(Yt(zn),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),Wn}(Vn);xr.Static=an,function(Qn,er){try{Qn.exports=er,Qn.exports.default=er}catch{}}(ee,xr)},8692:function(ee,ne,oe){oe.d(ne,{Z:function(){return sn}});var ae=oe(7326),ie=oe(5671),se=oe(3144),de=oe(9340),fe=oe(2963),be=oe(1120),ve=oe(1512),ye=oe.n(ve),_e=oe(8613),we=oe.n(_e),Ae=oe(8901),Ce=oe.n(Ae),$e=oe(5229),ke=oe.n($e),Pe=oe(5166),Ee=oe.n(Pe),Oe=oe(4193),Ne=oe.n(Oe),Re=oe(2461),De=oe.n(Re),Ie=oe(3875),Le=oe.n(Ie),We=oe(3367),He=oe.n(We),Be=oe(4777),Fe=oe.n(Be),Ze=oe(9702),qe=oe.n(Ze),ze=oe(1754),je=oe.n(ze),Qe=oe(6768),At=oe.n(Qe),Rt=oe(4331),Dt=oe.n(Rt),Ke=oe(6341),Vt=oe.n(Ke),tn=oe(3063),ln=oe.n(tn),Gt=oe(6156),rn=oe.n(Gt),ct=oe(3783),Ft=oe.n(ct),Kt=oe(1443),Zt=oe.n(Kt),hn=oe(5610),un=oe.n(hn),Xe=oe(7483),Nt=oe.n(Xe),Mt=(oe(3990),oe(6954)),Xt=oe.n(Mt);oe(9585);function on(Rn){var Fn="luna-".concat(Rn,"-");function Sn(_n){return De()(Dt()(_n).split(/\s+/),function(On){return Vt()(On,Fn)?On:On.replace(/[\w-]+/,function(Pn){return"".concat(Fn).concat(Pn)})}).join(" ")}return function(_n){if(/<[^>]*>/g.test(_n))try{var On=Nt().parse(_n);return pn(On,function(Pn){Pn.attrs&&Pn.attrs.class&&(Pn.attrs.class=Sn(Pn.attrs.class))}),Nt().stringify(On)}catch{return Sn(_n)}return Sn(_n)}}function pn(Rn,Fn){for(var Sn=0,_n=Rn.length;Sn<_n;Sn++){var On=Rn[Sn];Fn(On),On.content&&pn(On.content,Fn)}}un();function gn(){var Rn=Xt()();return Rn==="os x"?"mac":Rn}var Pt=oe(6329),lt=oe.n(Pt),Jt=oe(5852),en=oe.n(Jt);function mn(Rn){var Fn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sn,_n=(0,be.Z)(Rn);if(Fn){var On=(0,be.Z)(this).constructor;Sn=Reflect.construct(_n,arguments,On)}else Sn=_n.apply(this,arguments);return(0,fe.Z)(this,Sn)}}var fn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=mn(Sn);function Sn(_n,On){var Pn,Un=On.compName,lr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,or=lr===void 0?"light":lr;return(0,ie.Z)(this,Sn),(Pn=Fn.call(this)).subComponents=[],Pn.compName=Un,Pn.c=on(Un),Pn.options={},Pn.container=_n,Pn.$container=ye()(_n),Pn.$container.addClass(["luna-".concat(Un),Pn.c("platform-".concat(gn()))]),Pn.on("optionChange",function(fr,yr,Bn){var kr=Pn.c;fr==="theme"&&(Pn.$container.rmClass(kr("theme-".concat(Bn))).addClass(kr("theme-".concat(yr))),Ft()(Pn.subComponents,function(Nr){return Nr.setOption("theme",yr)}))}),Pn.setOption("theme",or),Pn}return(0,se.Z)(Sn,[{key:"destroy",value:function(){this.destroySubComponents();var _n=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(_n("platform-".concat(gn()))).rmClass(_n("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(_n,On){var Pn=this,Un=this.options,lr={};typeof _n=="string"?lr[_n]=On:lr=_n,Ft()(lr,function(or,fr){var yr=Un[fr];Un[fr]=or,Pn.emit("optionChange",fr,or,yr)})}},{key:"getOption",value:function(_n){return this.options[_n]}},{key:"addSubComponent",value:function(_n){_n.setOption("theme",this.options.theme),this.subComponents.push(_n)}},{key:"removeSubComponent",value:function(_n){en()(this.subComponents,function(On){return On===_n})}},{key:"destroySubComponents",value:function(){Ft()(this.subComponents,function(_n){return _n.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(_n){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ne()(_n,On),lt()(this.options,_n)}},{key:"find",value:function(_n){return this.$container.find(this.c(_n))}}]),Sn}(Zt());function Yt(Rn){var Fn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sn,_n=(0,be.Z)(Rn);if(Fn){var On=(0,be.Z)(this).constructor;Sn=Reflect.construct(_n,arguments,On)}else Sn=_n.apply(this,arguments);return(0,fe.Z)(this,Sn)}}ee=oe.hmd(ee);var sn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n){var On,Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ie.Z)(this,Sn),(On=Fn.call(this,_n,{compName:"setting"},Pn)).items=[],On.selectedItem=null,On.initOptions(Pn,{separatorCollapse:!0,filter:""}),On.bindEvent(),On}return(0,se.Z)(Sn,[{key:"appendTitle",value:function(_n){var On=new Nn(this,_n);return this.append(On),On}},{key:"appendSeparator",value:function(){var _n=this.items,On=this.options.separatorCollapse,Pn=qe()(_n);if(On&&Pn instanceof Zn)return Pn;var Un=new Zn(this);return this.append(Un),Un}},{key:"appendNumber",value:function(_n,On,Pn,Un,lr){Ee()(Un)&&(lr=Un,Un="");var or=new Kn(this,_n,On,Pn,Un,lr);return this.append(or),or}},{key:"appendButton",value:function(_n,On,Pn){Fe()(On)&&(Pn=On,On="");var Un=new Ln(this,_n,On,Pn);return this.append(Un),Un}},{key:"appendInput",value:function(_n,On,Pn){var Un=new Hn(this,_n,On,Pn,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(Un),Un}},{key:"appendCheckbox",value:function(_n,On,Pn,Un){Un||(Un=Pn,Pn="");var lr=new wn(this,_n,On,Pn,Un);return this.append(lr),lr}},{key:"appendSelect",value:function(_n,On,Pn,Un,lr){Ee()(Un)&&(lr=Un,Un="");var or=new In(this,_n,On,Pn,Un,lr);return this.append(or),or}},{key:"remove",value:function(_n){var On=this.items,Pn=On.indexOf(_n);Pn>-1&&(_n.detach(),On.splice(Pn,1),_n===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){Ft()(this.items,function(_n){return _n.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(_n){var On;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),rn()(_n)||(this.selectedItem=_n,(On=this.selectedItem)===null||On===void 0||On.select())}},{key:"renderSettings",value:function(){var _n=this,On=this.items;Ft()(On,function(Pn){return Pn.detach()}),Ft()(On,function(Pn){_n.filterItem(Pn)&&_n.$container.append(Pn.container)})}},{key:"bindEvent",value:function(){var _n=this,On=this.c;this.on("optionChange",function(Un){Un==="filter"&&_n.renderSettings()});var Pn=this;this.$container.on("click",On(".item"),function(){Pn.selectItem(this.settingItem)})}},{key:"filterItem",value:function(_n){var On=this.options.filter;if(On){if(Fe()(On))return On(_n);if(je()(On))return On.test(_n.text());if(At()(On)&&(On=Dt()(On)))return Vt()(ln()(_n.text()),ln()(On))}return!0}},{key:"append",value:function(_n){this.items.push(_n),this.filterItem(_n)&&this.$container.append(_n.container)}}]),Sn}(fn),yn=function(){function Rn(Fn,Sn,_n,On){(0,ie.Z)(this,Rn),this.container=we()("div",{tabindex:"0"}),this.setting=Fn,this.container.settingItem=this,this.$container=ye()(this.container),this.$container.addClass(Fn.c("item")).addClass(Fn.c("item-".concat(On))),this.key=Sn,this.value=_n}return(0,se.Z)(Rn,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(Fn){this.setting.emit("change",this.key,Fn,this.value),this.value=Fn}}]),Rn}(),Nn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On){var Pn;return(0,ie.Z)(this,Sn),(Pn=Fn.call(this,_n,"","","title")).$container.text(On),Pn}return(0,se.Z)(Sn)}(yn),Zn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n){return(0,ie.Z)(this,Sn),Fn.call(this,_n,"","","separator")}return(0,se.Z)(Sn)}(yn),Hn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On,Pn,Un,lr){var or;(0,ie.Z)(this,Sn),or=Fn.call(this,_n,On,Pn,"input");var fr=_n.c;or.$container.html('
    ').concat(Ce()(Un),`
    +
    ').concat(lr,`
    +
    + +
    `));var yr=or.$container.find("input");return yr.val(Pn),yr.on("change",function(){return or.onChange(yr.val())}),or}return(0,se.Z)(Sn)}(yn),Kn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On,Pn,Un,lr){var or,fr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};(0,ie.Z)(this,Sn),or=Fn.call(this,_n,On,Pn,"number"),Ne()(fr,{min:0,max:10,step:1});var yr=(0,ae.Z)(or).$container,Bn=_n.c,kr=!!fr.range;delete fr.range;var Nr=fr.min,Gr=fr.max,ro='");kr&&(ro="".concat(Nr,'
    +
    +
    +
    +
    +
    + `).concat(ro,` +
    ').concat(Pn,"/").concat(Gr)),yr.html('
    ').concat(Ce()(Un),`
    +
    ').concat(lr,`
    +
    ').concat(ro,"
    "));var br=yr.find(Bn(".value")),pr=yr.find("input"),ar=yr.find(Bn(".range-track-progress"));return pr.val(He()(Pn)),pr.on("change",function(){var $n=Le()(pr.val());or.onChange($n)}),pr.on("input",function(){var $n=Le()(pr.val());ar.css("width",Mn($n,Nr,Gr)+"%"),br.text(He()($n))}),or}return(0,se.Z)(Sn)}(yn),Mn=function(Rn,Fn,Sn){return((Rn-Fn)/(Sn-Fn)*100).toFixed(2)},wn=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On,Pn,Un,lr){var or;(0,ie.Z)(this,Sn),or=Fn.call(this,_n,On,Pn,"checkbox");var fr=_n.c,yr=ke()(_n.c("checkbox-"));or.$container.html('
    ').concat(Ce()(Un),`
    +
    + + +
    `));var Bn=or.$container.find("input"),kr=Bn.get(0);return kr.checked=Pn,Bn.on("change",function(){return or.onChange(kr.checked)}),or}return(0,se.Z)(Sn)}(yn),In=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On,Pn,Un,lr,or){var fr;(0,ie.Z)(this,Sn),fr=Fn.call(this,_n,On,Pn,"select");var yr=_n.c;fr.$container.html('
    ').concat(Ce()(Un),`
    +
    ').concat(lr,`
    +
    +
    + +
    +
    `));var Bn=fr.$container.find("select");return Bn.on("change",function(){return fr.onChange(Bn.val())}),fr}return(0,se.Z)(Sn)}(yn),Ln=function(Rn){(0,de.Z)(Sn,Rn);var Fn=Yt(Sn);function Sn(_n,On,Pn,Un){var lr;return(0,ie.Z)(this,Sn),Pn||(Pn=On,On=""),(lr=Fn.call(this,_n,"","","button")).$container.html(_n.c('
    '.concat(Ce()(On),`
    +
    + +
    `))),lr.$container.find("button").on("click",Un),lr}return(0,se.Z)(Sn)}(yn);(function(Rn,Fn){try{Rn.exports=Fn,Rn.exports.default=Fn}catch{}})(ee,sn)},7638:function(ee,ne,oe){oe.d(ne,{Z:function(){return hn}});var ae=oe(168),ie=oe(5671),se=oe(3144),de=oe(9340),fe=oe(2963),be=oe(1120),ve=oe(1443),ye=oe.n(ve),_e=oe(1512),we=oe.n(_e),Ae=oe(2461),Ce=oe.n(Ae),$e=oe(4331),ke=oe.n($e),Pe=oe(5610),Ee=oe.n(Pe),Oe=oe(7483),Ne=oe.n(Oe),Re=oe(3990),De=oe.n(Re),Ie=oe(6341),Le=oe.n(Ie),We=(oe(3875),oe(6954)),He=oe.n(We);oe(9585);function Be(un){var Xe="luna-".concat(un,"-");function Nt(Mt){return Ce()(ke()(Mt).split(/\s+/),function(Xt){return Le()(Xt,Xe)?Xt:Xt.replace(/[\w-]+/,function(on){return"".concat(Xe).concat(on)})}).join(" ")}return function(Mt){if(/<[^>]*>/g.test(Mt))try{var Xt=Ne().parse(Mt);return Fe(Xt,function(on){on.attrs&&on.attrs.class&&(on.attrs.class=Nt(on.attrs.class))}),Ne().stringify(Xt)}catch{return Nt(Mt)}return Nt(Mt)}}function Fe(un,Xe){for(var Nt=0,Mt=un.length;Nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Nt,Mt=(0,be.Z)(un);if(Xe){var Xt=(0,be.Z)(this).constructor;Nt=Reflect.construct(Mt,arguments,Xt)}else Nt=Mt.apply(this,arguments);return(0,fe.Z)(this,Nt)}}var ln,Gt=function(un){(0,de.Z)(Nt,un);var Xe=tn(Nt);function Nt(Mt,Xt){var on,pn=Xt.compName,gn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Pt=gn===void 0?"light":gn;return(0,ie.Z)(this,Nt),(on=Xe.call(this)).subComponents=[],on.compName=pn,on.c=Be(pn),on.options={},on.container=Mt,on.$container=we()(Mt),on.$container.addClass(["luna-".concat(pn),on.c("platform-".concat(qe()))]),on.on("optionChange",function(lt,Jt,en){var mn=on.c;lt==="theme"&&(on.$container.rmClass(mn("theme-".concat(en))).addClass(mn("theme-".concat(Jt))),je()(on.subComponents,function(fn){return fn.setOption("theme",Jt)}))}),on.setOption("theme",Pt),on}return(0,se.Z)(Nt,[{key:"destroy",value:function(){this.destroySubComponents();var Mt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Mt("platform-".concat(qe()))).rmClass(Mt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Mt,Xt){var on=this,pn=this.options,gn={};typeof Mt=="string"?gn[Mt]=Xt:gn=Mt,je()(gn,function(Pt,lt){var Jt=pn[lt];pn[lt]=Pt,on.emit("optionChange",lt,Pt,Jt)})}},{key:"getOption",value:function(Mt){return this.options[Mt]}},{key:"addSubComponent",value:function(Mt){Mt.setOption("theme",this.options.theme),this.subComponents.push(Mt)}},{key:"removeSubComponent",value:function(Mt){Vt()(this.subComponents,function(Xt){return Xt===Mt})}},{key:"destroySubComponents",value:function(){je()(this.subComponents,function(Mt){return Mt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Mt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt()(Mt,Xt),At()(this.options,Mt)}},{key:"find",value:function(Mt){return this.$container.find(this.c(Mt))}}]),Nt}(ye()),rn=oe(1907),ct=oe.n(rn),Ft=oe(8901),Kt=oe.n(Ft);function Zt(un){var Xe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Nt,Mt=(0,be.Z)(un);if(Xe){var Xt=(0,be.Z)(this).constructor;Nt=Reflect.construct(Mt,arguments,Xt)}else Nt=Mt.apply(this,arguments);return(0,fe.Z)(this,Nt)}}ee=oe.hmd(ee);var hn=function(un){(0,de.Z)(Nt,un);var Xe=Zt(Nt);function Nt(Mt){var Xt,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ie.Z)(this,Nt),(Xt=Xe.call(this,Mt,{compName:"tab"},on)).initOptions(on,{height:30}),Xt.initTpl(),Xt.$tabs=Xt.find(".tabs"),Xt.tabs=Xt.$tabs.get(0),Xt.$slider=Xt.find(".slider"),Xt.bindEvent(),Xt.updateHeight(),Xt}return(0,se.Z)(Nt,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(Mt,Xt){var on=this.c,pn=this.$tabs,gn=this.options.height-1,Pt=pn.find(on(".item")),lt=Pt.length,Jt='
    ').concat(Kt()(Xt.title),"
    ");Mt>lt-1?pn.append(Jt):Pt.eq(Mt).before(Jt),this.updateSlider()}},{key:"append",value:function(Mt){this.insert(this.length,Mt)}},{key:"remove",value:function(Mt){var Xt=this.c,on=this;this.$tabs.find(Xt(".item")).each(function(){var pn=we()(this);if(pn.data("id")===Mt){if(pn.hasClass(Xt("selected")))if(on.length>0){var gn=on.$tabs.find(Xt(".item")).eq(0).data("id");on.select(gn)}else on.emit("deselect");pn.remove()}}),this.updateSlider()}},{key:"select",value:function(Mt){var Xt=this.c,on=this;this.$tabs.find(Xt(".item")).each(function(){var pn=we()(this);pn.data("id")===Mt?(pn.addClass(Xt("selected")),on.updateSlider(),on.scrollToSelected(),on.emit("select",Mt)):pn.rmClass(Xt("selected"))})}},{key:"scrollToSelected",value:function(){var Mt,Xt=this.$tabs,on=this.tabs,pn=this.c,gn=Xt.find(pn(".selected")).get(0),Pt=gn.offsetLeft,lt=gn.offsetWidth,Jt=on.offsetWidth,en=on.scrollLeft;PtJt+en&&(Mt=Pt+lt-Jt),De()(Mt)&&(on.scrollLeft=Mt)}},{key:"hideScrollbar",value:function(){var Mt=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var Xt=function(){if(De()(Ze))return Ze;if(!document)return 16;var on=document.createElement("div"),pn=document.createElement("div");on.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),pn.setAttribute("style","height: 200px"),on.appendChild(pn);var gn=document.body||document.documentElement;return gn.appendChild(on),Ze=on.offsetWidth-on.clientWidth,gn.removeChild(on),Ze}();Mt.css("height",this.options.height-1+Xt+"px")}}},{key:"updateSlider",value:function(){var Mt=this.$slider,Xt=this.$tabs,on=this.c,pn=Xt.find(on(".selected")).get(0);pn?Mt.css({width:pn.offsetWidth,left:pn.offsetLeft-Xt.get(0).scrollLeft}):Mt.css({width:0})}},{key:"updateHeight",value:function(){var Mt=this.options.height,Xt=Mt-1;this.find(".tabs-container").css("height",Mt+"px"),this.find(".item").css({height:Xt,lineHeight:Xt}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var Mt=this,Xt=this.tabs,on=this.c;this.on("optionChange",function(gn){gn==="height"&&Mt.updateHeight()});var pn=this;this.$tabs.on("wheel",function(gn){gn.preventDefault(),Xt.scrollLeft+=gn.origEvent.deltaY}).on("click",on(".item"),function(){var gn=we()(this);pn.select(gn.data("id"))}).on("scroll",function(){Mt.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(ct()(ln||(ln=(0,ae.Z)([` +
    +
    +
    +
    + `])))))}}]),Nt}(Gt);(function(un,Xe){try{un.exports=Xe,un.exports.default=Xe}catch{}})(ee,hn)},7049:function(ee,ne,oe){oe.d(ne,{Z:function(){return lt}});var ae=oe(5671),ie=oe(3144),se=oe(7326),de=oe(1752),fe=oe(9340),be=oe(2963),ve=oe(1120),ye=oe(1443),_e=oe.n(ye),we=oe(1512),Ae=oe.n(we),Ce=oe(2461),$e=oe.n(Ce),ke=oe(4331),Pe=oe.n(ke),Ee=oe(5610),Oe=oe.n(Ee),Ne=oe(7483),Re=oe.n(Ne),De=(oe(3990),oe(6341)),Ie=oe.n(De),Le=(oe(3875),oe(6954)),We=oe.n(Le);oe(9585);function He(en){var mn="luna-".concat(en,"-");function fn(Yt){return $e()(Pe()(Yt).split(/\s+/),function(sn){return Ie()(sn,mn)?sn:sn.replace(/[\w-]+/,function(yn){return"".concat(mn).concat(yn)})}).join(" ")}return function(Yt){if(/<[^>]*>/g.test(Yt))try{var sn=Re().parse(Yt);return Be(sn,function(yn){yn.attrs&&yn.attrs.class&&(yn.attrs.class=fn(yn.attrs.class))}),Re().stringify(sn)}catch{return fn(Yt)}return fn(Yt)}}function Be(en,mn){for(var fn=0,Yt=en.length;fn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var fn,Yt=(0,ve.Z)(en);if(mn){var sn=(0,ve.Z)(this).constructor;fn=Reflect.construct(Yt,arguments,sn)}else fn=Yt.apply(this,arguments);return(0,be.Z)(this,fn)}}var tn=function(en){(0,fe.Z)(fn,en);var mn=Vt(fn);function fn(Yt,sn){var yn,Nn=sn.compName,Zn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Hn=Zn===void 0?"light":Zn;return(0,ae.Z)(this,fn),(yn=mn.call(this)).subComponents=[],yn.compName=Nn,yn.c=He(Nn),yn.options={},yn.container=Yt,yn.$container=Ae()(Yt),yn.$container.addClass(["luna-".concat(Nn),yn.c("platform-".concat(Ze()))]),yn.on("optionChange",function(Kn,Mn,wn){var In=yn.c;Kn==="theme"&&(yn.$container.rmClass(In("theme-".concat(wn))).addClass(In("theme-".concat(Mn))),ze()(yn.subComponents,function(Ln){return Ln.setOption("theme",Mn)}))}),yn.setOption("theme",Hn),yn}return(0,ie.Z)(fn,[{key:"destroy",value:function(){this.destroySubComponents();var Yt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Yt("platform-".concat(Ze()))).rmClass(Yt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Yt,sn){var yn=this,Nn=this.options,Zn={};typeof Yt=="string"?Zn[Yt]=sn:Zn=Yt,ze()(Zn,function(Hn,Kn){var Mn=Nn[Kn];Nn[Kn]=Hn,yn.emit("optionChange",Kn,Hn,Mn)})}},{key:"getOption",value:function(Yt){return this.options[Yt]}},{key:"addSubComponent",value:function(Yt){Yt.setOption("theme",this.options.theme),this.subComponents.push(Yt)}},{key:"removeSubComponent",value:function(Yt){Ke()(this.subComponents,function(sn){return sn===Yt})}},{key:"destroySubComponents",value:function(){ze()(this.subComponents,function(Yt){return Yt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Yt){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Rt()(Yt,sn),Qe()(this.options,Yt)}},{key:"find",value:function(Yt){return this.$container.find(this.c(Yt))}}]),fn}(_e()),ln=oe(9702),Gt=oe.n(ln),rn=oe(8887),ct=oe.n(rn),Ft=oe(2439),Kt=oe.n(Ft),Zt=oe(6049),hn=oe.n(Zt),un=oe(2327),Xe=oe.n(un),Nt=oe(8901),Mt=oe.n(Nt),Xt=oe(7387),on=oe.n(Xt),pn=oe(6677),gn=oe.n(pn);function Pt(en){var mn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var fn,Yt=(0,ve.Z)(en);if(mn){var sn=(0,ve.Z)(this).constructor;fn=Reflect.construct(Yt,arguments,sn)}else fn=Yt.apply(this,arguments);return(0,be.Z)(this,fn)}}ee=oe.hmd(ee);var lt=function(en){(0,fe.Z)(fn,en);var mn=Pt(fn);function fn(Yt){var sn,yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,ae.Z)(this,fn),(sn=mn.call(this,Yt,{compName:"text-viewer"},yn)).lineNum=0,sn.copy=function(){var Nn=(0,se.Z)(sn).c,Zn=sn.options,Hn=Zn.text,Kn=Zn.escape;Xe()(Kn?Hn:on()(gn()(Hn)));var Mn=sn.$copy.find(Nn(".icon"));Mn.addClass(Nn("icon-check")).rmClass(Nn("icon-copy")),setTimeout(function(){Mn.rmClass(Nn("icon-check")).addClass(Nn("icon-copy"))},1e3)},sn._updateCopyPos=function(){var Nn=(0,se.Z)(sn).container;sn.$copy.css({top:Nn.scrollTop+5,right:5-Nn.scrollLeft})},sn.initOptions(yn,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),sn.render=Kt()(function(){return sn._render()},16),sn.updateCopyPos=hn()(function(){return sn._updateCopyPos()},300),sn.initTpl(),sn.$text=sn.find(".text"),sn.$copy=sn.find(".copy"),Fe&&sn.$copy.css("opacity","1"),sn.options.text&&sn.render(),sn.bindEvent(),sn.updateHeight(),sn}return(0,ie.Z)(fn,[{key:"append",value:function(Yt){var sn=this,yn=this.options,Nn=this.$copy,Zn=this.c,Hn=this.$text,Kn=yn.showLineNumbers;if(this.options.text+=Yt,!Kn)return this.$text.append(yn.escape?Mt()(Yt):Yt);var Mn=function(In){return In.length===0?[]:In.split(Jt)}(Yt);ct()(Mn)&&(Mn=[" "]),Pe()(Gt()(Mn))||Mn.pop();var wn="";ze()(Mn,function(In,Ln){sn.lineNum+=1,wn+='
    ').concat(sn.lineNum,'
    ').concat(yn.escape?Mt()(In):In||" ","
    ")}),Hn.find(Zn(".table")).append(wn),Nn.hide(),Hn.offset().height>40&&Nn.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,de.Z)((0,ve.Z)(fn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Yt=this.options.maxHeight;Yt>0&&Yt!==1/0?this.$text.css("max-height",Yt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Yt=this;this.on("optionChange",function(sn){sn==="maxHeight"?Yt.updateHeight():Yt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Yt=this.c,sn=this.$text,yn=this.options,Nn=yn.text,Zn=yn.wrapLongLines,Hn=yn.showLineNumbers;Zn?sn.addClass(Yt("wrap-long-lines")):sn.rmClass(Yt("wrap-long-lines")),Hn?sn.addClass(Yt("line-numbers")):sn.rmClass(Yt("line-numbers")),sn.html('
    ')),this.lineNum=0,this.options.text="",this.append(Nn)}}]),fn}(tn),Jt=/\r\n|\r|\n/g;(function(en,mn){try{en.exports=mn,en.exports.default=mn}catch{}})(ee,lt)},6672:function(ee,ne,oe){oe.d(ne,{Z:function(){return Ci}});var ae={};oe.r(ae),oe.d(ae,{classPrefix:function(){return an},drag:function(){return Tn},escapeJsonStr:function(){return ro},evalCss:function(){return Cn},eventClient:function(){return zn},eventPage:function(){return mr},getFileName:function(){return pr},hasSafeArea:function(){return Gr},isChobitsuEl:function(){return Vn},isErudaEl:function(){return $n},pxToNum:function(){return ar},safeStorage:function(){return br}});var ie=oe(5671),se=oe(3144),de=oe(7326),fe=oe(9340),be=oe(2963),ve=oe(1120),ye=oe(4942),_e=oe(1443),we=oe.n(_e),Ae=new(we());Ae.ADD="ADD",Ae.SHOW="SHOW",Ae.SCALE="SCALE";var Ce=Ae,$e=oe(1752),ke=oe(7496),Pe=oe.n(ke)()({init:function(Qt){this._$el=Qt},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),Ee=oe(1512),Oe=oe.n(Ee),Ne=oe(125),Re=oe.n(Ne),De=oe(5229),Ie=oe.n(De),Le=oe(3783),We=oe.n(Le),He=oe(5972),Be=oe.n(He),Fe=oe(6768),Ze=oe.n(Fe),qe=oe(6341),ze=oe.n(qe),je=oe(4675),Qe=oe.n(je),At=oe(3367),Rt=oe.n(At),Dt=oe(2533),Ke=oe.n(Dt),Vt=oe(7622),tn=oe.n(Vt),ln=oe(4193),Gt=oe.n(ln),rn=oe(6329),ct=oe.n(rn),Ft=oe(6472),Kt=oe.n(Ft),Zt=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],hn=Zt.length;function un(Qt){for(var qt={},Ut=0;Ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var Yt=function(Qt){(0,fe.Z)(Ut,Qt);var qt=fn(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),(Me=qt.call(this))._style=en(oe(8011)),Me.name="settings",Me._settings=[],Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._setting=new mn.Z(Me.get(0)),this._bindEvent()}},{key:"remove",value:function(Me,rt){var Bt=this;if(Ze()(Me)){var cn=this;this._$el.find(".luna-setting-item-title").each(function(){Oe()(this).text()===Me&&cn._setting.remove(this.settingItem)})}else this._settings=Be()(this._settings,function(vn){return vn.config!==Me||vn.key!==rt||(Bt._setting.remove(vn.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),en.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(Me,rt,Bt){var cn=this._genId(),vn=this._setting.appendCheckbox(cn,!!Me.get(rt),Bt);return this._settings.push({config:Me,key:rt,id:cn,item:vn}),this}},{key:"select",value:function(Me,rt,Bt,cn){var vn=this._genId(),xn={};We()(cn,function(Gn){return xn[Gn]=Gn});var Dn=this._setting.appendSelect(vn,Me.get(rt),"",Bt,xn);return this._settings.push({config:Me,key:rt,id:vn,item:Dn}),this}},{key:"range",value:function(Me,rt,Bt,cn){var vn=cn.min,xn=vn===void 0?0:vn,Dn=cn.max,Gn=Dn===void 0?1:Dn,gr=cn.step,Tr=gr===void 0?.1:gr,Rr=this._genId(),Fr=this._setting.appendNumber(Rr,Me.get(rt),Bt,{max:Gn,min:xn,step:Tr,range:!0});return this._settings.push({config:Me,key:rt,min:xn,max:Gn,step:Tr,id:Rr,item:Fr}),this}},{key:"button",value:function(Me,rt){return this._setting.appendButton(Me,rt),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(Me){return this._setting.appendTitle(Me),this}},{key:"_cleanSeparator",value:function(){var Me=Qe()(this._$el.get(0).children);function rt(vn){return ze()(vn.getAttribute("class"),"luna-setting-item-separator")}for(var Bt=0,cn=Me.length;Bt0)return!0}return!1}function ro(Qt){return wn()(Qt).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function br(Qt,qt){var Ut;switch(Ln()(qt)&&(qt=!0),Qt){case"local":Ut=window.localStorage;break;case"session":Ut=window.sessionStorage}try{var Me="test-localStorage-"+Date.now();Ut.setItem(Me,Me);var rt=Ut.getItem(Me);if(Ut.removeItem(Me),rt!==Me)throw new Error}catch{return qt?Pn():void 0}return Ut}function pr(Qt){var qt=Fn()(Qt.split("/"));return qt===""&&(qt=(Qt=new(Kn())(Qt)).hostname),qt}function ar(Qt){return fr()(Qt.replace("px",""))}function $n(Qt){for(;Qt;){if(Qt.id==="eruda")return!0;Qt=Qt.parentNode}return!1}function Vn(Qt){for(;Qt;){var qt="";if(Qt.getAttribute&&(qt=Qt.getAttribute("class")||""),ze()(qt,"__chobitsu-hide__"))return!0;Qt=Qt.parentNode}return!1}var Cn=en;function an(Qt){if(/<[^>]*>/g.test(Qt))try{var qt=Nr().parse(Qt);return ur(qt,function(Ut){Ut.attrs&&Ut.attrs.class&&(Ut.attrs.class=Sr(Ut.attrs.class))}),Nr().stringify(qt)}catch{return Sr(Qt)}return Sr(Qt)}function ur(Qt,qt){for(var Ut=0,Me=Qt.length;Ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var ir,tr=Oe()(document),vr=function(Qt){(0,fe.Z)(Ut,Qt);var qt=cr(Ut);function Ut(Me){var rt;return(0,ie.Z)(this,Ut),rt=qt.call(this),(0,ye.Z)((0,de.Z)(rt),"_onDragStart",function(Bt){var cn=rt._$el;cn.addClass(an("active")),rt._isClick=!0,Bt=Bt.origEvent,rt._startX=zn("x",Bt),rt._oldX=ar(cn.css("left")),rt._oldY=ar(cn.css("top")),rt._startY=zn("y",Bt),tr.on(Tn("move"),rt._onDragMove),tr.on(Tn("end"),rt._onDragEnd)}),(0,ye.Z)((0,de.Z)(rt),"_onDragMove",function(Bt){var cn=rt._$el.get(0).offsetWidth,vn=rt._$container.get(0).offsetWidth,xn=rt._$container.get(0).offsetHeight,Dn=zn("x",Bt=Bt.origEvent)-rt._startX,Gn=zn("y",Bt)-rt._startY;(Math.abs(Dn)>3||Math.abs(Gn)>3)&&(rt._isClick=!1);var gr=rt._oldX+Dn,Tr=rt._oldY+Gn;gr<0?gr=0:gr>vn-cn&&(gr=vn-cn),Tr<0?Tr=0:Tr>xn-cn&&(Tr=xn-cn),rt._$el.css({left:gr,top:Tr})}),(0,ye.Z)((0,de.Z)(rt),"_onDragEnd",function(Bt){var cn=rt._$el;rt._isClick&&rt.emit("click"),rt._onDragMove(Bt),tr.off(Tn("move"),rt._onDragMove),tr.off(Tn("end"),rt._onDragEnd);var vn=rt.config;vn.get("rememberPos")&&vn.set("pos",{x:ar(cn.css("left")),y:ar(cn.css("top"))}),cn.rmClass("eruda-active")}),rt._style=en(oe(9195)),rt._$container=Me,rt._initTpl(),rt._bindEvent(),rt._registerListener(),rt}return(0,se.Z)(Ut,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(Me){this._isOutOfRange(Me)&&(Me=this._getDefPos()),this._$el.css({left:Me.x,top:Me.y}),this.config.set("pos",Me)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){en.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(Me){Me=Me||this.config.get("pos");var rt=this._getDefPos();return Me.x>rt.x+10||Me.x<0||Me.y<0||Me.y>rt.y+10}},{key:"_registerListener",value:function(){var Me=this;this._scaleListener=function(){return yn()(function(){Me._isOutOfRange()&&Me._resetPos()})},Ce.on(Ce.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){Ce.off(Ce.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var Me=this._$container;Me.append(an('
    ')),this._$el=Me.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(Me){var rt=this.config,Bt=rt.get("pos"),cn=this._getDefPos();rt.get("rememberPos")&&!Me||(Bt=cn),this.setPos(Bt)}},{key:"_bindEvent",value:function(){var Me=this;this._$el.on(Tn("start"),this._onDragStart),Zn().on("change",function(){return Me._resetPos(!0)}),window.addEventListener("resize",function(){return Me._resetPos()})}},{key:"initCfg",value:function(Me){var rt=this.config=Yt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});Me.switch(rt,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var Me=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-Me,y:window.innerHeight-Me}}}]),Ut}(we()),dr=oe(4989),_r=ir=new(oe.n(dr)())("[Eruda]","warn");ir.formatter=function(Qt,qt){return qt.unshift(this.name),qt};var Or=oe(3990),Ir=oe.n(Or),Lr=oe(2520),Vr=oe.n(Lr),Yr=oe(6930),Hr=oe.n(Yr),Jr=oe(4270),qr=oe.n(Jr),jr=oe(6093),oo=oe.n(jr),Zr=oe(129),go=oe(7638);function Kr(Qt){var qt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var no=function(Qt){(0,fe.Z)(Ut,Qt);var qt=Kr(Ut);function Ut(Me){var rt,Bt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,cn=Bt===void 0?{}:Bt;return(0,ie.Z)(this,Ut),rt=qt.call(this),(0,ye.Z)((0,de.Z)(rt),"_checkSafeArea",function(){var vn=(0,de.Z)(rt).$container;Gr()?vn.addClass(an("safe-area")):vn.rmClass(an("safe-area"))}),(0,ye.Z)((0,de.Z)(rt),"_updateTabHeight",function(vn){rt._tab.setOption("height",40*vn),yn()(function(){rt._tab.updateSlider()})}),rt._defCfg=ct()({transparency:1,displaySize:80,theme:Vr()()?"Dark":"Light"},cn),rt._style=en(oe(13)),rt.$container=Me,rt._isShow=!1,rt._opacity=1,rt._tools={},rt._isResizing=!1,rt._resizeTimer=null,rt._resizeStartY=0,rt._resizeStartSize=0,rt._initTpl(),rt._initTab(),rt._initNotification(),rt._initModal(),qr()(function(){return rt._checkSafeArea()}),rt._bindEvent(),rt}return(0,se.Z)(Ut,[{key:"show",value:function(){var Me=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){Me._$el.css("opacity",Me._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var Me=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return Me._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(Me){var rt=this._tab;if(!(Me instanceof Pe)){var Bt=new Pe,cn=Bt.init,vn=Bt.show,xn=Bt.hide,Dn=Bt.destroy;Gt()(Me,{init:cn,show:vn,hide:xn,destroy:Dn})}var Gn=Me.name;return Gn?(Gn=Gn.toLowerCase(),this._tools[Gn]?_r.warn("Tool ".concat(Gn," already exists")):(this._$tools.prepend('
    ')),Me.init(this._$tools.find(".".concat(an(Gn),".").concat(an("tool"))),this),Me.active=!1,this._tools[Gn]=Me,Gn==="settings"?rt.append({id:Gn,title:Gn}):rt.insert(rt.length-1,{id:Gn,title:Gn}),this)):_r.error("You must specify a name for a tool")}},{key:"remove",value:function(Me){var rt=this._tools;if(!rt[Me])return _r.warn("Tool ".concat(Me," doesn't exist"));this._tab.remove(Me);var Bt=rt[Me];if(delete rt[Me],Bt.active){var cn=Ke()(rt);cn.length>0&&this.showTool(rt[Fn()(cn)].name)}return Bt.destroy(),this}},{key:"removeAll",value:function(){var Me=this;return We()(this._tools,function(rt){return Me.remove(rt.name)}),this}},{key:"get",value:function(Me){var rt=this._tools[Me];if(rt)return rt}},{key:"showTool",value:function(Me){if(this._curTool===Me)return this;this._curTool=Me;var rt=this._tools,Bt=rt[Me];if(Bt){var cn={};return We()(rt,function(vn){vn.active&&(cn=vn,vn.active=!1,vn.hide())}),Bt.active=!0,Bt.show(),this._tab.select(Me),this.emit("showTool",Me,cn),this}}},{key:"initCfg",value:function(Me){var rt=this,Bt=this.config=Yt.createCfg("dev-tools",this._defCfg);this._setTransparency(Bt.get("transparency")),this._setDisplaySize(Bt.get("displaySize")),this._setTheme(Bt.get("theme")),Bt.on("change",function(cn,vn){switch(cn){case"transparency":return rt._setTransparency(vn);case"displaySize":return rt._setDisplaySize(vn);case"theme":return rt._setTheme(vn)}}),Me.separator().select(Bt,"theme","Theme",Ke()(en.getThemes())).range(Bt,"transparency","Transparency",{min:.2,max:1,step:.01}).range(Bt,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var cn=br("local"),vn=JSON.parse(JSON.stringify(cn));We()(vn,function(xn,Dn){Ze()(xn)&&Hr()(Dn,"eruda")&&cn.removeItem(Dn)}),window.location.reload()}).separator()}},{key:"notify",value:function(Me,rt){this._notification.notify(Me,rt)}},{key:"destroy",value:function(){en.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),Ce.off(Ce.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(Me){var rt=this.$container;(function(Bt){return ze()(Mt,Bt)})(Me)?rt.addClass(an("dark")):rt.rmClass(an("dark")),en.setTheme(Me)}},{key:"_setTransparency",value:function(Me){Ir()(Me)&&(this._opacity=Me,this._isShow&&this._$el.css({opacity:Me}))}},{key:"_setDisplaySize",value:function(Me){Ir()(Me)&&this._$el.css({height:Me+"%"})}},{key:"_initTpl",value:function(){var Me=this.$container;Me.append(an(` +
    +
    +
    +
    +
    + +
    + `)),this._$el=Me.find(an(".dev-tools")),this._$tools=this._$el.find(an(".tools"))}},{key:"_initTab",value:function(){var Me=this;this._tab=new go.Z(this._$el.find(an(".tab")).get(0),{height:40}),this._tab.on("select",function(rt){return Me.showTool(rt)})}},{key:"_initNotification",value:function(){this._notification=new(oo())(this._$el.find(an(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Zr.Z.setContainer(this._$el.find(an(".modal")).get(0))}},{key:"_bindEvent",value:function(){var Me=this,rt=this._$el.find(an(".resizer")),Bt=this._$el.find(an(".nav-bar")),cn=Oe()(document),vn=function(Dn){if(Me._isResizing){Dn.preventDefault(),Dn.stopPropagation(),Dn=Dn.origEvent;var Gn=(Me._resizeStartY-zn("y",Dn))/window.innerHeight*100,gr=Me._resizeStartSize+Gn;gr<40?gr=40:gr>100&&(gr=100),Me.config.set("displaySize",fr()(gr.toFixed(2)))}},xn=function Dn(){clearTimeout(Me._resizeTimer),Me._isResizing=!1,rt.css("height",10),cn.off(Tn("move"),vn),cn.off(Tn("end"),Dn)};rt.css("height",10),rt.on(Tn("start"),function(Dn){Dn.preventDefault(),Dn.stopPropagation(),Dn=Dn.origEvent,Me._isResizing=!0,Me._resizeStartSize=Me.config.get("displaySize"),Me._resizeStartY=zn("y",Dn),rt.css("height","100%"),cn.on(Tn("move"),vn),cn.on(Tn("end"),xn)}),Bt.on("contextmenu",function(Dn){return Dn.preventDefault()}),this.$container.on("click",function(Dn){return Dn.stopPropagation()}),window.addEventListener("resize",this._checkSafeArea),Ce.on(Ce.SCALE,this._updateTabHeight)}}]),Ut}(we()),lo=oe(1214),So=oe.n(lo),$o=oe(4777),ao=oe.n($o),Uo=oe(1754),Wo=oe.n(Uo),aa=oe(5484),Lo=oe.n(aa),Go=oe(3023),Eo=oe.n(Go),ia=oe(9585),Zo=oe.n(ia),sa=oe(6156),vo=oe.n(sa),la=oe(8816);function Yo(Qt){var qt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}Lo().start();var ca=function(Qt){(0,fe.Z)(Ut,Qt);var qt=Yo(Ut);function Ut(){var Me,rt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).name,Bt=rt===void 0?"console":rt;return(0,ie.Z)(this,Ut),Me=qt.call(this),(0,ye.Z)((0,de.Z)(Me),"_handleShow",function(){Zo()(Me._$el.get(0))||Me._logger.renderViewport()}),(0,ye.Z)((0,de.Z)(Me),"_handleErr",function(cn){Me._logger.error(cn)}),we().mixin((0,de.Z)(Me)),Me.name=Bt,Me._selectedLog=null,Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._appendTpl(),this._initCfg(),this._initLogger(),this._exposeLogger(),this._bindEvent()}},{key:"show",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"show",this).call(this),this._handleShow()}},{key:"overrideConsole",value:function(){var Me=this,rt=this._origConsole={},Bt=window.console;return ko.forEach(function(cn){var vn=rt[cn]=So();Bt[cn]&&(vn=rt[cn]=Bt[cn].bind(Bt)),Bt[cn]=function(){Me[cn].apply(Me,arguments),vn.apply(void 0,arguments)}}),this}},{key:"setGlobal",value:function(Me,rt){this._logger.setGlobal(Me,rt)}},{key:"restoreConsole",value:function(){var Me=this;return this._origConsole?(ko.forEach(function(rt){return window.console[rt]=Me._origConsole[rt]}),delete this._origConsole,this):this}},{key:"catchGlobalErr",value:function(){return Lo().addListener(this._handleErr),this}},{key:"ignoreGlobalErr",value:function(){return Lo().rmListener(this._handleErr),this}},{key:"filter",value:function(Me){var rt=this._$filterText,Bt=this._logger;Ze()(Me)?(rt.text(Me),Bt.setOption("filter",Bn()(Me))):Wo()(Me)?(rt.text(Rt()(Me)),Bt.setOption("filter",Me)):ao()(Me)&&(rt.text("ƒ"),Bt.setOption("filter",Me))}},{key:"destroy",value:function(){this._logger.destroy(),(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),this._container.off("show",this._handleShow),this._style&&en.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(Me){var rt=this._$el,Bt=rt.find(an(".js-input"));Me?(Bt.show(),rt.rmClass(an("js-input-hidden"))):(Bt.hide(),rt.addClass(an("js-input-hidden")))}},{key:"_appendTpl",value:function(){var Me=this._$el;this._style=en(oe(3191)),Me.append(an(` +
    + + All + Info + Warning + Error + + + +
    +
    +
    +
    +
    Cancel
    +
    Execute
    +
    + + +
    + `));var rt=Me.find(an(".js-input")),Bt=rt.find("textarea"),cn=rt.find(an(".buttons"));ct()(this,{_$control:Me.find(an(".control")),_$logs:Me.find(an(".logs-container")),_$inputContainer:rt,_$input:Bt,_$inputBtns:cn,_$filterText:Me.find(an(".filter-text"))})}},{key:"_initLogger",value:function(){var Me=this.config,rt=Me.get("maxLogNum");rt=rt==="infinite"?0:+rt;var Bt=this._$control.find(an(".level")),cn=new la.Z(this._$logs.get(0),{asyncRender:Me.get("asyncRender"),maxNum:rt,showHeader:Me.get("displayExtraInfo"),unenumerable:Me.get("displayUnenumerable"),accessGetter:Me.get("displayGetterVal"),lazyEvaluation:Me.get("lazyEvaluation")});cn.on("optionChange",function(vn,xn){vn==="level"&&Bt.each(function(){var Dn=Oe()(this),Gn=Dn.data("level");Dn[Gn===xn||Gn==="all"&&Kt()(xn)?"addClass":"rmClass"](an("active"))})}),Me.get("overrideConsole")&&this.overrideConsole(),this._logger=cn}},{key:"_exposeLogger",value:function(){var Me=this,rt=this._logger;["html"].concat(ko).forEach(function(Bt){return Me[Bt]=function(){for(var cn=arguments.length,vn=new Array(cn),xn=0;xn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var To=function(Qt){(0,fe.Z)(Ut,Qt);var qt=va(Ut);function Ut(Me,rt){var Bt;return(0,ie.Z)(this,Ut),Bt=qt.call(this),(0,ye.Z)((0,de.Z)(Bt),"_copyRes",function(){var cn=Bt._detailData,vn="".concat(cn.method," ").concat(cn.url," ").concat(cn.status,` +`);Qr()(cn.data)||(vn+=` +Request Data + +`,vn+="".concat(cn.data,` +`)),Qr()(cn.reqHeaders)||(vn+=` +Request Headers + +`,We()(cn.reqHeaders,function(xn,Dn){return vn+="".concat(Dn,": ").concat(xn,` +`)})),Qr()(cn.resHeaders)||(vn+=` +Response Headers + +`,We()(cn.resHeaders,function(xn,Dn){return vn+="".concat(Dn,": ").concat(xn,` +`)})),cn.resTxt&&(vn+=` +`.concat(cn.resTxt,` +`)),fo()(vn),Bt._devtools.notify("Copied")}),Bt._$container=Me,Bt._devtools=rt,Bt._detailData={},Bt._bindEvent(),Bt}return(0,se.Z)(Ut,[{key:"show",value:function(Me){Me.resTxt&&Bn()(Me.resTxt)===""&&delete Me.resTxt,Qr()(Me.resHeaders)&&delete Me.resHeaders,Qr()(Me.reqHeaders)&&delete Me.reqHeaders;var rt="";Me.data&&(rt='
    ').concat(Pr()(Me.data),"
    "));var Bt="Empty";Me.reqHeaders&&(Bt=_n()(Me.reqHeaders,function(Gn,gr){return` + ').concat(Pr()(gr),` + `).concat(Pr()(Gn),` + `)}).join(""));var cn="Empty";Me.resHeaders&&(cn=_n()(Me.resHeaders,function(Gn,gr){return` + ').concat(Pr()(gr),` + `).concat(Pr()(Gn),` + `)}).join(""));var vn="";if(Me.resTxt){var xn=Me.resTxt;xn.length>Bo&&(xn=bo()(xn,Bo)),vn='
    ').concat(Pr()(xn),"
    ")}var Dn='
    + + + ').concat(Pr()(Me.url),` + +
    +
    + `).concat(rt,` +
    +

    Response Headers

    + + + `).concat(cn,` + +
    +
    +
    +

    Request Headers

    + + + `).concat(Bt,` + +
    +
    + `).concat(vn,` +
    `);this._$container.html(Dn).show(),this._detailData=Me}},{key:"hide",value:function(){this._$container.hide(),this.emit("hide")}},{key:"_bindEvent",value:function(){var Me=this,rt=this._devtools;this._$container.on("click",an(".back"),function(){return Me.hide()}).on("click",an(".copy-res"),this._copyRes).on("click",an(".http .response"),function(){var cn=Me._detailData,vn=cn.resTxt;if(pa()(vn))return Bt("object",vn);switch(cn.subType){case"css":return Bt("css",vn);case"html":return Bt("html",vn);case"javascript":return Bt("js",vn);case"json":return Bt("object",vn)}return cn.type==="image"?Bt("img",cn.url):void 0});var Bt=function(cn,vn){var xn=rt.get("sources");xn&&(xn.set(cn,vn),rt.showTool("sources"))}}}]),Ut}(we()),Bo=1e5,ba=oe(2439),qo=oe.n(ba),Ko=oe(9143),ya=oe.n(Ko),Xo=oe(2139),Jo=oe(8689),Fo=oe(7935),nr=oe(9119);function Cr(Qt,qt){var Ut=Object.keys(Qt);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(Qt);qt&&(Me=Me.filter(function(rt){return Object.getOwnPropertyDescriptor(Qt,rt).enumerable})),Ut.push.apply(Ut,Me)}return Ut}function Jn(Qt){for(var qt=1;qt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var zr=function(Qt){(0,fe.Z)(Ut,Qt);var qt=Dr(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),Me=qt.call(this),(0,ye.Z)((0,de.Z)(Me),"_reqWillBeSent",function(rt){if(Me._isRecording){var Bt,cn={name:pr(rt.request.url),url:rt.request.url,status:"pending",type:"unknown",subType:"unknown",size:0,data:rt.request.postData,method:rt.request.method,startTime:1e3*rt.timestamp,time:0,resTxt:"",done:!1,reqHeaders:rt.request.headers||{},resHeaders:{}};cn.render=function(){var vn={name:cn.name,method:cn.method,status:cn.status,type:cn.subType,size:cn.size,time:cn.displayTime};Bt?(Bt.data=vn,Bt.render()):(Bt=Me._requestDataGrid.append(vn,{selectable:!0}),Oe()(Bt.container).data("id",rt.requestId)),cn.hasErr&&Oe()(Bt.container).addClass(an("request-error"))},cn.render(),Me._requests[rt.requestId]=cn}}),(0,ye.Z)((0,de.Z)(Me),"_resReceivedExtraInfo",function(rt){var Bt=Me._requests[rt.requestId];Me._isRecording&&Bt&&(Bt.resHeaders=rt.headers,Me._updateType(Bt),Bt.render())}),(0,ye.Z)((0,de.Z)(Me),"_resReceived",function(rt){var Bt=Me._requests[rt.requestId];if(Me._isRecording&&Bt){var cn=rt.response,vn=cn.status,xn=cn.headers;Bt.status=vn,(vn<200||vn>=300)&&(Bt.hasErr=!0),xn&&(Bt.resHeaders=xn,Me._updateType(Bt)),Bt.render()}}),(0,ye.Z)((0,de.Z)(Me),"_loadingFinished",function(rt){var Bt=Me._requests[rt.requestId];if(Me._isRecording&&Bt){var cn=1e3*rt.timestamp;Bt.time=cn-Bt.startTime,Bt.displayTime=da()(Bt.time),Bt.size=rt.encodedDataLength,Bt.done=!0,Bt.resTxt=jt.domain("Network").getResponseBody({requestId:rt.requestId}).body,Bt.render()}}),(0,ye.Z)((0,de.Z)(Me),"_copyCurl",function(){var rt=Me._selectedRequest;fo()(function(Bt){var cn=sr()();cn==="windows"&&(cn="win");var vn=[],xn=Er()(["accept-encoding","host","method","path","scheme","version"]),Dn=cn==="win"?function(so){var Pa=/[\r\n]/.test(so)?'^"':'"';return Pa+so.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`&]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^ + +`)+Pa}:function(so){return/[\0-\x1F\x7F-\x9F!]|\'/.test(so)?"$'"+so.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,function(Pa){for(var Oa=Pa.charCodeAt(0).toString(16);Oa.length<4;)Oa="0"+Oa;return"\\u"+Oa})+"'":"'"+so+"'"};vn.push(Dn(Bt.url()).replace(/[[{}\]]/g,"\\$&"));var Gn="GET",gr=[],Tr=Bt.requestFormData();Tr&&(gr.push("--data-raw "+Dn(Tr)),xn["content-length"]=!0,Gn="POST"),Bt.requestMethod!==Gn&&vn.push("-X "+Dn(Bt.requestMethod));for(var Rr=Bt.requestHeaders(),Fr=0;Fr=3?cn==="win"?` ^ + `:` \\ + `:" ")}({requestMethod:rt.method,url:function(){return rt.url},requestFormData:function(){return rt.data},requestHeaders:function(){var Bt=rt.reqHeaders||{};return ct()(Bt,{"User-Agent":navigator.userAgent,Referer:location.href}),_n()(Bt,function(cn,vn){return{name:vn,value:cn}})}})),Me._container.notify("Copied")}),(0,ye.Z)((0,de.Z)(Me),"_toggleRecording",function(){Me._$control.find(an(".record")).toggleClass(an("recording")),Me._isRecording=!Me._isRecording}),(0,ye.Z)((0,de.Z)(Me),"_showDetail",function(){Me._selectedRequest&&(Me._splitMode&&Me._$network.css("width","50%"),Me._detail.show(Me._selectedRequest))}),(0,ye.Z)((0,de.Z)(Me),"_updateScale",function(rt){Me._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*rt,"px)"))}),Me._style=en(oe(3180)),Me.name="network",Me._requests={},Me._selectedRequest=null,Me._isRecording=!0,Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._initTpl(),this._detail=new To(this._$detail,rt),this._splitMediaQuery=new(Yn())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._requestDataGrid=new dn.Z(this._$requests.get(0),{columns:[{id:"name",title:"Name",sortable:!0,weight:30},{id:"method",title:"Method",sortable:!0,weight:14},{id:"status",title:"Status",sortable:!0,weight:14},{id:"type",title:"Type",sortable:!0,weight:14},{id:"size",title:"Size",sortable:!0,weight:14},{id:"time",title:"Time",sortable:!0,weight:14}]}),this._resizeSensor=new(jn())(Me.get(0)),this._bindEvent()}},{key:"show",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"show",this).call(this),this._updateDataGridHeight()}},{key:"clear",value:function(){this._requests={},this._requestDataGrid.clear()}},{key:"requests",value:function(){var Me=[];return We()(this._requests,function(rt){Me.push(rt)}),Me}},{key:"_updateDataGridHeight",value:function(){var Me=this._$el.offset().height-this._$control.offset().height;this._requestDataGrid.setOption({minHeight:Me,maxHeight:Me})}},{key:"_updateType",value:function(Me){var rt=function(vn){if(!vn)return"unknown";var xn=vn.split(";")[0].split("/");return{type:xn[0],subType:Fn()(xn)}}(Me.resHeaders["content-type"]||""),Bt=rt.type,cn=rt.subType;Me.type=Bt,Me.subType=cn}},{key:"_updateButtons",value:function(){var Me=this._$control,rt=Me.find(an(".show-detail")),Bt=Me.find(an(".copy-curl")),cn=an("icon-disabled");rt.addClass(cn),Bt.addClass(cn),this._selectedRequest&&(rt.rmClass(cn),Bt.rmClass(cn))}},{key:"_bindEvent",value:function(){var Me=this,rt=this._$control,Bt=this._$filterText,cn=this._requestDataGrid,vn=this;rt.on("click",an(".clear-request"),function(){return Me.clear()}).on("click",an(".show-detail"),this._showDetail).on("click",an(".copy-curl"),this._copyCurl).on("click",an(".record"),this._toggleRecording).on("click",an(".filter"),function(){Zr.Z.prompt("Filter").then(function(Dn){vo()(Dn)||(Bt.text(Dn),cn.setOption("filter",Bn()(Dn)))})}),cn.on("select",function(Dn){var Gn=Oe()(Dn.container).data("id"),gr=vn._requests[Gn];Me._selectedRequest=gr,Me._updateButtons(),Me._splitMode&&Me._showDetail()}),cn.on("deselect",function(){Me._selectedRequest=null,Me._updateButtons(),Me._detail.hide()}),this._resizeSensor.addListener(qo()(function(){return Me._updateDataGridHeight()},15)),this._splitMediaQuery.on("match",function(){Me._detail.hide(),Me._splitMode=!0}),this._splitMediaQuery.on("unmatch",function(){Me._detail.hide(),Me._splitMode=!1}),this._detail.on("hide",function(){Me._splitMode&&Me._$network.css("width","100%")}),jt.domain("Network").enable();var xn=jt.domain("Network");xn.on("requestWillBeSent",this._reqWillBeSent),xn.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),xn.on("responseReceived",this._resReceived),xn.on("loadingFinished",this._loadingFinished),Ce.on(Ce.SCALE,this._updateScale)}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),this._resizeSensor.destroy(),en.remove(this._style),this._splitMediaQuery.removeAllListeners();var Me=jt.domain("Network");Me.off("requestWillBeSent",this._reqWillBeSent),Me.off("responseReceivedExtraInfo",this._resReceivedExtraInfo),Me.off("responseReceived",this._resReceived),Me.off("loadingFinished",this._loadingFinished),Ce.off(Ce.SCALE,this._updateScale)}},{key:"_initTpl",value:function(){var Me=this._$el;Me.html(an(`
    +
    + + + + + + +
    +
    +
    +
    `)),this._$network=Me.find(an(".network")),this._$detail=Me.find(an(".detail")),this._$requests=Me.find(an(".requests")),this._$control=Me.find(an(".control")),this._$filterText=Me.find(an(".filter-text"))}}]),Ut}(Pe),Ar=oe(9833),Mr=oe.n(Ar),Xr=oe(9956),Ur=oe.n(Xr),yo=oe(8209),Po=oe(3063),_o=oe.n(Po),co=oe(3487),to=oe.n(co),eo=oe(42),uo=oe.n(eo),mo=oe(4696),wo=oe.n(mo),Oo=oe(7653),xo=oe.n(Oo),Co=oe(8613),Vo=oe.n(Co),ho=oe(2289),No=oe.n(ho),Ro=oe(3629),jo=oe.n(Ro);function Io(Qt){for(var qt={},Ut=0,Me=Qt.length;UtDn?Dn:xn,gr=0;grDn?1:xn(qt=_a(qt))?1:Qt1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,Ut=qt!==void 0&&qt;if(Qt.nodeType===Node.TEXT_NODE)return'(text)');if(Qt.nodeType===Node.COMMENT_NODE)return'');var Me=Qt.id,rt=Qt.className,Bt=Qt.attributes,cn=''.concat(Qt.tagName.toLowerCase(),"");if(Me!==""&&(cn+='#'.concat(Me,"")),Ze()(rt)){var vn="";We()(rt.split(/\s+/g),function(xn){xn.trim()!==""&&(vn+=".".concat(xn))}),cn+=''.concat(vn,"")}return Ut||We()(Bt,function(xn){var Dn=xn.name;Dn!=="id"&&Dn!=="class"&&Dn!=="style"&&(cn+=' '.concat(Dn,'="').concat(xn.value,'"'))}),cn}var Aa=function(){function Qt(qt,Ut){var Me=this;(0,ie.Z)(this,Qt),(0,ye.Z)(this,"hide",function(){Me._$container.hide(),Me._disableObserver(),jt.domain("Overlay").hideHighlight()}),this._$container=qt,this._devtools=Ut,this._curEl=document.documentElement,this._bindEvent(),this._initObserver(),this._initCfg(),this._initTpl()}return(0,se.Z)(Qt,[{key:"show",value:function(qt){this._curEl=qt,this._rmDefComputedStyle=!0,this._computedStyleSearchKeyword="",this._enableObserver(),this._render();var Ut=jt.domain("DOM").getNodeId({node:qt}).nodeId;jt.domain("Overlay").highlightNode({nodeId:Ut,highlightConfig:{showInfo:!0,contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}})}},{key:"destroy",value:function(){this._disableObserver(),this.restoreEventTarget(),this._rmCfg()}},{key:"overrideEventTarget",value:function(){var qt=nn(),Ut=this._origAddEvent=qt.addEventListener,Me=this._origRmEvent=qt.removeEventListener;qt.addEventListener=function(rt,Bt,cn){(function(vn,xn,Dn){var Gn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Mr()(vn)||!ao()(Dn)||!wo()(Gn))){var gr=vn.erudaEvents=vn.erudaEvents||{};gr[xn]=gr[xn]||[],gr[xn].push({listener:Dn,listenerStr:Dn.toString(),useCapture:Gn})}})(this,rt,Bt,cn),Ut.apply(this,arguments)},qt.removeEventListener=function(rt,Bt,cn){(function(vn,xn,Dn){var Gn=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Mr()(vn)||!ao()(Dn)||!wo()(Gn))){var gr=vn.erudaEvents;if(!(!gr||!gr[xn])){for(var Tr=gr[xn],Rr=0,Fr=Tr.length;Rr + + + + +
    +
    +
    +
    +
    +
    `);qt.html(Ut),this._$elementName=qt.find(an(".element-name")),this._$attributes=qt.find(an(".attributes")),this._$styles=qt.find(an(".styles")),this._$listeners=qt.find(an(".listeners")),this._$computedStyle=qt.find(an(".computed-style"));var Me=Vo()("div");this._$boxModel=Oe()(Me),this._boxModel=new xa.Z(Me)}},{key:"_toggleAllComputedStyle",value:function(){this._rmDefComputedStyle=!this._rmDefComputedStyle,this._render()}},{key:"_render",value:function(){var qt=this._getData(this._curEl),Ut=this._$attributes,Me=this._$elementName,rt=this._$styles,Bt=this._$computedStyle,cn=this._$listeners;Me.html(qt.name);var vn="Empty";Qr()(qt.attributes)||(vn=_n()(qt.attributes,function(Rr){var Fr=Rr.name,Wr=Rr.value;return` + ').concat(Pr()(Fr),` + ').concat(Wr,` + `)}).join("")),vn=`

    Attributes

    +
    + + + `).concat(vn,` + +
    +
    `),Ut.html(vn);var xn="";if(Qr()(qt.styles))rt.hide();else{var Dn=_n()(qt.styles,function(Rr){var Fr=Rr.selectorText,Wr=Rr.style;return Wr=_n()(Wr,function(io,so){return'
    ').concat(Pr()(so),": ").concat(io,";
    ")}).join(""),'
    +
    `).concat(Pr()(Fr),` {
    + `).concat(Wr,` +
    }
    +
    `)}).join("");xn=`

    Styles

    +
    + `).concat(Dn,` +
    `),rt.html(xn).show()}var Gn="";if(qt.computedStyle){var gr=an(`
    + +
    `);qt.rmDefComputedStyle&&(gr=an(`
    + +
    `)),Gn=`

    + Computed Style + `.concat(gr,` +
    + +
    + `).concat(qt.computedStyleSearchKeyword?'
    ').concat(Pr()(qt.computedStyleSearchKeyword),"
    "):"",` +

    +
    +
    + + + `).concat(_n()(qt.computedStyle,function(Rr,Fr){return` + + + `)}).join(""),` + +
    ').concat(Pr()(Fr),``).concat(Rr,`
    +
    `),Bt.html(Gn).show(),this._boxModel.setOption("element",this._curEl),Bt.find(an(".box-model")).append(this._$boxModel.get(0))}else Bt.text("").hide();var Tr="";qt.listeners?(Tr=_n()(qt.listeners,function(Rr,Fr){return Rr=_n()(Rr,function(Wr){var io=Wr.useCapture,so=Wr.listenerStr;return"
  • ").concat(Pr()(so),"
  • ")}).join(""),'
    +
    ').concat(Pr()(Fr),`
    +
      + `).concat(Rr,` +
    +
    `)}).join(""),Tr=`

    Event Listeners

    +
    + `).concat(Tr,` +
    `),cn.html(Tr).show()):cn.hide(),this._$container.show()}},{key:"_getData",value:function(qt){var Ut={},Me=new Ao(qt),rt=qt.className,Bt=qt.id,cn=qt.attributes,vn=qt.tagName;Ut.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ut.attributes=ea(cn),Ut.name=Ca({tagName:vn,id:Bt,className:rt,attributes:cn});var xn=qt.erudaEvents;if(xn&&Ke()(xn).length!==0&&(Ut.listeners=xn),Ia(vn))return Ut;var Dn=Me.getComputedStyle(),Gn=Me.getMatchedCSSRules();Gn.unshift(function(Tr){for(var Rr={selectorText:"element.style",style:{}},Fr=0,Wr=Tr.length;Fr
    $&').replace(Na,function(qt,Ut){return'url("'.concat($a(Ut),'")')})}var Ra=["script","style","meta","title","link","head"],Ia=function(Qt){return Ra.indexOf(Qt.toLowerCase())>-1},$a=function(Qt){return'').concat(Qt,"")},nn=function(){return xo()(window,"EventTarget.prototype")||window.Node.prototype};function hr(Qt){var qt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var zo=function(Qt){(0,fe.Z)(Ut,Qt);var qt=hr(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),Me=qt.call(this),(0,ye.Z)((0,de.Z)(Me),"_showDetail",function(){Me._isShow&&Me._curNode&&(Me._curNode.nodeType===Node.ELEMENT_NODE?Me._detail.show(Me._curNode):Me._detail.show(Me._curNode.parentNode))}),(0,ye.Z)((0,de.Z)(Me),"_back",function(){if(Me._curNode!==Me._htmlEl){for(var rt=Me._curParentQueue,Bt=rt.shift();!na(Bt);)Bt=rt.shift();Me.set(Bt)}}),(0,ye.Z)((0,de.Z)(Me),"_updateScale",function(rt){Me._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*rt,"px)"))}),(0,ye.Z)((0,de.Z)(Me),"_deleteNode",function(){var rt=Me._curNode;rt.parentNode&&rt.parentNode.removeChild(rt)}),(0,ye.Z)((0,de.Z)(Me),"_copyNode",function(){var rt=Me._curNode;rt.nodeType===Node.ELEMENT_NODE?fo()(rt.outerHTML):fo()(rt.nodeValue),Me._container.notify("Copied")}),(0,ye.Z)((0,de.Z)(Me),"_toggleSelect",function(){Me._$el.find(an(".select")).toggleClass(an("active")),Me._selectElement=!Me._selectElement,Me._selectElement?(jt.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!Ur()(),showRulers:!1,showAccessibilityInfo:!Ur()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),Me._container.hide()):(jt.domain("Overlay").setInspectMode({mode:"none"}),jt.domain("Overlay").hideHighlight())}),(0,ye.Z)((0,de.Z)(Me),"_inspectNodeRequested",function(rt){var Bt=rt.backendNodeId;Me._container.show(),Me._toggleSelect();var cn=jt.domain("DOM").getNode({nodeId:Bt}).node;Me.select(cn)}),(0,ye.Z)((0,de.Z)(Me),"_setNode",function(rt){if(rt!==Me._curNode){Me._curNode=rt,Me._renderCrumbs();for(var Bt=[],cn=rt.parentNode;cn;)Bt.push(cn),cn=cn.parentNode;Me._curParentQueue=Bt,Me._splitMode&&Me._showDetail(),Me._updateButtons(),Me._updateHistory()}}),Me._style=en(oe(5896)),Me.name="elements",Me._selectElement=!1,Me._observeElement=!0,Me._history=[],we().mixin((0,de.Z)(Me)),Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){var Bt=this;(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new Aa(this._$detail,rt),this.config=this._detail.config,this._splitMediaQuery=new(Yn())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new yo.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(cn){return $n(cn)||Vn(cn)}}),this._domViewer.expand(),this._bindEvent(),jt.domain("Overlay").enable(),yn()(function(){return Bt._updateHistory()})}},{key:"show",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"hide",this).call(this),this._isShow=!1,jt.domain("Overlay").hideHighlight()}},{key:"set",value:function(Me){return this.select(Me)}},{key:"select",value:function(Me){return this._domViewer.select(Me),this._setNode(Me),this.emit("change",Me),this}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),Ce.off(Ce.SCALE,this._updateScale),en.remove(this._style),this._detail.destroy(),jt.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),jt.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var Me=this._$control,rt=Me.find(an(".show-detail")),Bt=Me.find(an(".copy-node")),cn=Me.find(an(".delete-node")),vn=an("icon-disabled");rt.addClass(vn),Bt.addClass(vn),cn.addClass(vn);var xn=this._curNode;xn&&(xn!==document.documentElement&&xn!==document.body&&cn.rmClass(vn),Bt.rmClass(vn),xn.nodeType===Node.ELEMENT_NODE&&rt.rmClass(vn))}},{key:"_initTpl",value:function(){var Me=this._$el;Me.html(an(`
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    `)),this._$detail=Me.find(an(".detail")),this._$domViewer=Me.find(an(".dom-viewer")),this._$control=Me.find(an(".control")),this._$crumbs=Me.find(an(".crumbs"))}},{key:"_renderCrumbs",value:function(){var Me=function(Bt){for(var cn=[],vn=0;Bt;)cn.push({text:Ca(Bt,{noAttr:!0}),idx:vn++}),Bt=Bt.parentElement;return cn.reverse()}(this._curNode),rt="";Qr()(Me)||(rt=_n()(Me,function(Bt){var cn=Bt.text,vn=Bt.idx;return'
  • ').concat(cn,"
  • ")}).join("")),this._$crumbs.html(rt)}},{key:"_bindEvent",value:function(){var Me=this,rt=this;this._$el.on("click",an(".crumb"),function(){for(var Bt=fr()(Oe()(this).data("idx")),cn=rt._curNode;Bt--&&cn.parentElement;)cn=cn.parentElement;na(cn)&&rt.select(cn)}),this._$control.on("click",an(".select"),this._toggleSelect).on("click",an(".show-detail"),this._showDetail).on("click",an(".copy-node"),this._copyNode).on("click",an(".delete-node"),this._deleteNode),this._domViewer.on("select",this._setNode).on("deselect",this._back),jt.domain("Overlay").on("inspectNodeRequested",this._inspectNodeRequested),this._splitMediaQuery.on("match",function(){Me._splitMode=!0,Me._showDetail()}),this._splitMediaQuery.on("unmatch",function(){Me._splitMode=!1,Me._detail.hide()}),Ce.on(Ce.SCALE,this._updateScale)}},{key:"_updateHistory",value:function(){var Me=this._container.get("console");if(Me){var rt=this._history;rt.unshift(this._curNode),rt.length>5&&rt.pop();for(var Bt=0;Bt<5;Bt++)Me.setGlobal("$".concat(Bt),rt[Bt])}}}]),Ut}(Pe),na=function(Qt){return Mr()(Qt)&&Qt.parentNode},ra=oe(8847),oa=oe.n(ra),Xn=oe(9622),Ue=oe.n(Xn),Lt=null,An=[{name:"Border All",fn:function(){if(Lt)return en.remove(Lt),void(Lt=null);Lt=en("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var Qt=new(Kn());Qt.setQuery("timestamp",oa()()),window.location.replace(Qt.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Zr.Z.prompt("Enter the text").then(function(Qt){Qt&&Bn()(Qt)!==""&&function(qt){var Ut=document.body,Me=new RegExp(qt,"ig");rr(Ut,function(rt){var Bt=Oe()(rt);if(Bt.hasClass("eruda-search-highlight-block"))return document.createTextNode(Bt.text())}),rr(Ut,function(rt){if(rt.nodeType===3){var Bt=rt.nodeValue;if((Bt=Bt.replace(Me,function(vn){return''.concat(vn,"")}))!==rt.nodeValue){var cn=Oe()(document.createElement("div"));return cn.html(Bt),cn.addClass("eruda-search-highlight-block"),cn.get(0)}}})}(Qt)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var Qt=document.body;Qt.contentEditable=Qt.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var Qt=document.body,qt=document.documentElement,Ut=Oe()(Qt);if(Ut.data("scaled"))window.scrollTo(0,+Ut.data("scaled")),Ut.rmAttr("data-scaled"),Ut.css("transform","none");else{var Me=Math.max(Qt.scrollHeight,Qt.offsetHeight,qt.clientHeight,qt.scrollHeight,qt.offsetHeight),rt=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Bt=rt/Me;Ut.css("transform","scale(".concat(Bt,")")),Ut.data("scaled",window.scrollY),window.scrollTo(0,Me/2-rt/2)}},desc:"Scale down the whole page to fit screen"},{name:"Load Monitor Plugin",fn:function(){wr("monitor")},desc:"Display page fps and memory"},{name:"Load Features Plugin",fn:function(){wr("features")},desc:"Browser feature detections"},{name:"Load Timing Plugin",fn:function(){wr("timing")},desc:"Show performance and resource timing"},{name:"Load Code Plugin",fn:function(){wr("code")},desc:"Edit and run JavaScript"},{name:"Load Benchmark Plugin",fn:function(){wr("benchmark")},desc:"Run JavaScript benchmarks"},{name:"Load Geolocation Plugin",fn:function(){wr("geolocation")},desc:"Test geolocation"},{name:"Load Orientation Plugin",fn:function(){wr("orientation")},desc:"Test orientation api"},{name:"Load Touches Plugin",fn:function(){wr("touches")},desc:"Visualize screen touches"}];function rr(Qt,qt){var Ut=Qt.childNodes;if(!$n(Qt)){for(var Me=0,rt=Ut.length;Me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var Wa=function(Qt){(0,fe.Z)(Ut,Qt);var qt=Ua(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),(Me=qt.call(this))._style=en(oe(5571)),Me.name="snippets",Me._snippets=[],Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._bindEvent(),this._addDefSnippets()}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),en.remove(this._style)}},{key:"add",value:function(Me,rt,Bt){return this._snippets.push({name:Me,fn:rt,desc:Bt}),this._render(),this}},{key:"remove",value:function(Me){return Ha()(this._snippets,function(rt){return rt.name===Me}),this._render(),this}},{key:"run",value:function(Me){for(var rt=this._snippets,Bt=0,cn=rt.length;Bt +

    ').concat(Pr()(rt.name),` +
    + +
    +

    +
    + `).concat(Pr()(rt.desc),` +
    + `)}).join("");this._renderHtml(Me)}},{key:"_renderHtml",value:function(Me){Me!==this._lastHtml&&(this._lastHtml=Me,this._$el.html(Me))}}]),Ut}(Pe),Ga=oe(4224),Za=oe.n(Ga),Ya=oe(8991),La=oe.n(Ya),qa=oe(1352),Da=oe.n(qa),Ka=oe(8099),Xa=oe.n(Ka),Ma=function(){function Qt(qt,Ut,Me,rt){var Bt=this;(0,ie.Z)(this,Qt),(0,ye.Z)(this,"_updateGridHeight",function(cn){Bt._dataGrid.setOption({minHeight:60*cn,maxHeight:223*cn})}),this._type=rt,this._$container=qt,this._devtools=Ut,this._resources=Me,this._selectedItem=null,this._storeData=[],this._initTpl(),this._dataGrid=new dn.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,se.Z)(Qt,[{key:"destroy",value:function(){Ce.off(Ce.SCALE,this._updateGridHeight)}},{key:"refresh",value:function(){var qt=this._dataGrid;this._refreshStorage(),qt.clear(),We()(this._storeData,function(Ut){var Me=Ut.key,rt=Ut.val;qt.append({key:Me,value:rt},{selectable:!0})})}},{key:"_refreshStorage",value:function(){var qt=this._resources,Ut=br(this._type,!1);if(Ut){var Me=[];Ut=JSON.parse(JSON.stringify(Ut)),We()(Ut,function(rt,Bt){Ze()(rt)&&(qt.config.get("hideErudaSetting")&&(Hr()(Bt,"eruda")||Bt==="active-eruda")||Me.push({key:Bt,val:bo()(rt,200)}))}),this._storeData=Me}}},{key:"_updateButtons",value:function(){var qt=this._$container,Ut=qt.find(an(".show-detail")),Me=qt.find(an(".delete-storage")),rt=qt.find(an(".copy-storage")),Bt=an("btn-disabled");Ut.addClass(Bt),Me.addClass(Bt),rt.addClass(Bt),this._selectedItem&&(Ut.rmClass(Bt),Me.rmClass(Bt),rt.rmClass(Bt))}},{key:"_initTpl",value:function(){var qt=this._$container,Ut=this._type;qt.html(an(`

    + `.concat(Ut==="local"?"Local":"Session",` Storage +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +

    +
    `))),this._$dataGrid=qt.find(an(".data-grid")),this._$filterText=qt.find(an(".filter-text"))}},{key:"_getVal",value:function(qt){return this._type==="local"?localStorage.getItem(qt):sessionStorage.getItem(qt)}},{key:"_bindEvent",value:function(){var qt=this,Ut=this._type,Me=this._devtools;function rt(Bt,cn){var vn=Me.get("sources");if(vn)return vn.set(Bt,cn),Me.showTool("sources"),!0}this._$container.on("click",an(".refresh-storage"),function(){Me.notify("Refreshed"),qt.refresh()}).on("click",an(".clear-storage"),function(){We()(qt._storeData,function(Bt){Ut==="local"?localStorage.removeItem(Bt.key):sessionStorage.removeItem(Bt.key)}),qt.refresh()}).on("click",an(".show-detail"),function(){var Bt=qt._selectedItem,cn=qt._getVal(Bt);try{rt("object",JSON.parse(cn))}catch{rt("raw",cn)}}).on("click",an(".copy-storage"),function(){var Bt=qt._selectedItem;fo()(qt._getVal(Bt)),Me.notify("Copied")}).on("click",an(".filter"),function(){Zr.Z.prompt("Filter").then(function(Bt){vo()(Bt)||(Bt=Bn()(Bt),qt._$filterText.text(Bt),qt._dataGrid.setOption("filter",Bt))})}).on("click",an(".delete-storage"),function(){var Bt=qt._selectedItem;Ut==="local"?localStorage.removeItem(Bt):sessionStorage.removeItem(Bt),qt.refresh()}),this._dataGrid.on("select",function(Bt){qt._selectedItem=Bt.data.key,qt._updateButtons()}).on("deselect",function(){qt._selectedItem=null,qt._updateButtons()}),Ce.on(Ce.SCALE,this._updateGridHeight)}}]),Qt}();function Ea(Qt,qt){Qt.rmClass(an("ok")).rmClass(an("danger")).rmClass(an("warn")).addClass(an(qt))}function ka(Qt,qt){if(qt===0)return"";var Ut=0,Me=0;switch(Qt){case"cookie":Ut=30,Me=60;break;case"script":Ut=5,Me=10;break;case"stylesheet":Ut=4,Me=8;break;case"image":Ut=50,Me=100}return qt>=Me?"danger":qt>=Ut?"warn":"ok"}var Ja=function(){function Qt(qt,Ut){(0,ie.Z)(this,Qt),this._$container=qt,this._devtools=Ut,this._selectedItem=null,this._initTpl(),this._dataGrid=new dn.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,se.Z)(Qt,[{key:"refresh",value:function(){var qt=this._$container,Ut=this._dataGrid,Me=jt.domain("Network").getCookies().cookies,rt=_n()(Me,function(Bt){return{key:Bt.name,val:Bt.value}});Ut.clear(),We()(rt,function(Bt){var cn=Bt.key,vn=Bt.val;Ut.append({key:cn,value:vn},{selectable:!0})}),Ea(qt,ka("cookie",rt.length))}},{key:"_initTpl",value:function(){var qt=this._$container;qt.html(an(`

    + Cookie + +
    + +
    + + + +
    + +
    +
    +

    +
    `)),this._$dataGrid=qt.find(an(".data-grid")),this._$filterText=qt.find(an(".filter-text"))}},{key:"_updateButtons",value:function(){var qt=this._$container,Ut=qt.find(an(".show-detail")),Me=qt.find(an(".delete-cookie")),rt=qt.find(an(".copy-cookie")),Bt=an("btn-disabled");Ut.addClass(Bt),Me.addClass(Bt),rt.addClass(Bt),this._selectedItem&&(Ut.rmClass(Bt),Me.rmClass(Bt),rt.rmClass(Bt))}},{key:"_getVal",value:function(qt){for(var Ut=jt.domain("Network").getCookies().cookies,Me=0,rt=Ut.length;Me=Qt.length?{done:!0}:{done:!1,value:Qt[Me++]}},e:function(xn){throw xn},f:rt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bt,cn=!0,vn=!1;return{s:function(){Ut=Ut.call(Qt)},n:function(){var xn=Ut.next();return cn=xn.done,xn},e:function(xn){vn=!0,Bt=xn},f:function(){try{cn||Ut.return==null||Ut.return()}finally{if(vn)throw Bt}}}}function Ba(Qt,qt){(qt==null||qt>Qt.length)&&(qt=Qt.length);for(var Ut=0,Me=new Array(qt);Ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var ti=function(Qt){(0,fe.Z)(Ut,Qt);var qt=ei(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),(Me=qt.call(this))._style=en(oe(2488)),Me.name="resources",Me._hideErudaSetting=!1,Me._observeElement=!0,Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._initTpl(),this._localStorage=new Ma(this._$localStorage,rt,this,"local"),this._sessionStorage=new Ma(this._$sessionStorage,rt,this,"session"),this._cookie=new Ja(this._$cookie,rt),this._bindEvent(),this._initObserver(),this._initCfg()}},{key:"refresh",value:function(){return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),this._localStorage.destroy(),this._sessionStorage.destroy(),this._disableObserver(),en.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var Me=[];Oe()("script").each(function(){var xn=this.src;xn!==""&&Me.push(xn)});var rt=ka("script",(Me=uo()(Me)).length),Bt="
  • Empty
  • ";Qr()(Me)||(Bt=_n()(Me,function(xn){return xn=Pr()(xn),'
  • ').concat(xn,"
  • ")}).join(""));var cn='

    + Script +
    + +
    +

    +
      + `).concat(Bt,` +
    `),vn=this._$script;return Ea(vn,rt),vn.html(cn),this}},{key:"refreshStylesheet",value:function(){var Me=[];Oe()("link").each(function(){this.rel==="stylesheet"&&Me.push(this.href)});var rt=ka("stylesheet",(Me=uo()(Me)).length),Bt="
  • Empty
  • ";Qr()(Me)||(Bt=_n()(Me,function(xn){return xn=Pr()(xn),'
  • ').concat(xn,"
  • ")}).join(""));var cn='

    + Stylesheet +
    + +
    +

    +
      + `).concat(Bt,` +
    `),vn=this._$stylesheet;return Ea(vn,rt),vn.html(cn),this}},{key:"refreshIframe",value:function(){var Me=[];Oe()("iframe").each(function(){var cn=Oe()(this).attr("src");cn&&Me.push(cn)}),Me=uo()(Me);var rt="
  • Empty
  • ";Qr()(Me)||(rt=_n()(Me,function(cn){return cn=Pr()(cn),'
  • ').concat(cn,"
  • ")}).join(""));var Bt='

    + Iframe +
    + +
    +

    +
      + `).concat(rt,` +
    `);return this._$iframe.html(Bt),this}},{key:"refreshLocalStorage",value:function(){return this._localStorage.refresh(),this}},{key:"refreshSessionStorage",value:function(){return this._sessionStorage.refresh(),this}},{key:"refreshCookie",value:function(){return this._cookie.refresh(),this}},{key:"refreshImage",value:function(){var Me=[],rt=this._performance=window.webkitPerformance||window.performance;rt&&rt.getEntries?this._performance.getEntries().forEach(function(Dn){if(Dn.initiatorType==="img"||ri(Dn.name)){if(ze()(Dn.name,"exclude=true"))return;Me.push(Dn.name)}}):Oe()("img").each(function(){var Dn=Oe()(this),Gn=Dn.attr("src");Dn.data("exclude")!=="true"&&Me.push(Gn)}),(Me=uo()(Me)).sort();var Bt=ka("image",Me.length),cn="
  • Empty
  • ";Qr()(Me)||(cn=_n()(Me,function(Dn){return'
  • + +
  • `)}).join(""));var vn='

    + Image +
    + +
    +

    +
      + `).concat(cn,` +
    `),xn=this._$image;return Ea(xn,Bt),xn.html(vn),this}},{key:"show",value:function(){return(0,$e.Z)((0,ve.Z)(Ut.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this.refresh()}},{key:"hide",value:function(){return this._disableObserver(),(0,$e.Z)((0,ve.Z)(Ut.prototype),"hide",this).call(this)}},{key:"_initTpl",value:function(){var Me=this._$el;Me.html(an(`
    +
    + +
    +
    +
    +
    `)),this._$localStorage=Me.find(an(".local-storage")),this._$sessionStorage=Me.find(an(".session-storage")),this._$cookie=Me.find(an(".cookie")),this._$script=Me.find(an(".script")),this._$stylesheet=Me.find(an(".stylesheet")),this._$iframe=Me.find(an(".iframe")),this._$image=Me.find(an(".image"))}},{key:"_bindEvent",value:function(){var Me=this,rt=this._$el,Bt=this._container;function cn(xn,Dn){var Gn=Bt.get("sources");if(Gn)return Gn.set(xn,Dn),Bt.showTool("sources"),!0}function vn(xn){return function(Dn){if(Bt.get("sources")){Dn.preventDefault();var Gn=Oe()(this).attr("href");xn!=="iframe"&&Za()(location.href,Gn)?La()({url:Gn,success:function(gr){cn(xn,gr)},dataType:"raw"}):cn("iframe",Gn)}}}rt.on("click",".eruda-refresh-script",function(){Bt.notify("Refreshed"),Me.refreshScript()}).on("click",".eruda-refresh-stylesheet",function(){Bt.notify("Refreshed"),Me.refreshStylesheet()}).on("click",".eruda-refresh-iframe",function(){Bt.notify("Refreshed"),Me.refreshIframe()}).on("click",".eruda-refresh-image",function(){Bt.notify("Refreshed"),Me.refreshImage()}).on("click",".eruda-img-link",function(){cn("img",Oe()(this).attr("src"))}).on("click",".eruda-css-link",vn("css")).on("click",".eruda-js-link",vn("js")).on("click",".eruda-iframe-link",vn("iframe"))}},{key:"_rmCfg",value:function(){var Me=this.config,rt=this._container.get("settings");rt&&rt.remove(Me,"hideErudaSetting").remove(Me,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var Me=this,rt=this.config=Yt.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});rt.get("hideErudaSetting")&&(this._hideErudaSetting=!0),rt.get("observeElement")||(this._observeElement=!1),rt.on("change",function(Bt,cn){switch(Bt){case"hideErudaSetting":return void(Me._hideErudaSetting=cn);case"observeElement":return Me._observeElement=cn,cn?Me._enableObserver():Me._disableObserver()}}),this._container.get("settings").text("Resources").switch(rt,"hideErudaSetting","Hide Eruda Setting").switch(rt,"observeElement","Auto Refresh Elements").separator()}},{key:"_initObserver",value:function(){var Me=this;this._observer=new(No())(function(rt){We()(rt,function(Bt){Me._handleMutation(Bt)})})}},{key:"_handleMutation",value:function(Me){var rt=this;if(!$n(Me.target)){var Bt=function(Dn){var Gn=function(gr){return gr.tagName?gr.tagName.toLowerCase():""}(Dn);switch(Gn){case"script":rt.refreshScript();break;case"img":rt.refreshImage();break;case"link":rt.refreshStylesheet()}};if(Me.type==="attributes")Bt(Me.target);else if(Me.type==="childList"){Bt(Me.target);var cn,vn=Da()(Me.addedNodes),xn=Qa(vn=Xa()(vn,Da()(Me.removedNodes)));try{for(xn.s();!(cn=xn.n()).done;)Bt(cn.value)}catch(Dn){xn.e(Dn)}finally{xn.f()}}}}},{key:"_enableObserver",value:function(){this._observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}}]),Ut}(Pe),ni=/\.(jpeg|jpg|gif|png)$/,ri=function(Qt){return ni.test(Qt)},oi=oe(4541),Fa=oe.n(oi),Va=Fa()(),ai=[{name:"Location",val:function(){return Pr()(location.href)}},{name:"User Agent",val:navigator.userAgent},{name:"Device",val:["",'"),""),""),"
    screen'.concat(screen.width," * ").concat(screen.height,"
    viewport".concat(window.innerWidth," * ").concat(window.innerHeight,"
    pixel ratio".concat(window.devicePixelRatio,"
    "].join("")},{name:"System",val:["",'"),""),"
    os'.concat(sr()(),"
    browser".concat(Va.name+" "+Va.version,"
    "].join("")},{name:"About",val:'Eruda v3.0.1'},{name:"Backers",val:function(){return'')}}],ii=oe(550),si=oe.n(ii);function li(Qt){var qt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var ci=function(Qt){(0,fe.Z)(Ut,Qt);var qt=li(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),(Me=qt.call(this))._style=en(oe(879)),Me.name="info",Me._infos=[],Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._addDefInfo(),this._bindEvent()}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),en.remove(this._style)}},{key:"add",value:function(Me,rt){var Bt=this._infos,cn=!1;return We()(Bt,function(vn){Me===vn.name&&(vn.val=rt,cn=!0)}),cn||Bt.push({name:Me,val:rt}),this._render(),this}},{key:"get",value:function(Me){var rt,Bt=this._infos;return Ln()(Me)?si()(Bt):(We()(Bt,function(cn){Me===cn.name&&(rt=cn.val)}),rt)}},{key:"remove",value:function(Me){for(var rt=this._infos,Bt=rt.length-1;Bt>=0;Bt--)rt[Bt].name===Me&&rt.splice(Bt,1);return this._render(),this}},{key:"clear",value:function(){return this._infos=[],this._render(),this}},{key:"_addDefInfo",value:function(){var Me=this;We()(ai,function(rt){return Me.add(rt.name,rt.val)})}},{key:"_render",value:function(){var Me=[];We()(this._infos,function(Bt){var cn=Bt.name,vn=Bt.val;ao()(vn)&&(vn=vn()),Me.push({name:cn,val:vn})});var rt="
      ".concat(_n()(Me,function(Bt){return'
    • ').concat(Pr()(Bt.name),'

      ').concat(Bt.val,"
    • ")}).join(""),"
    ");this._renderHtml(rt)}},{key:"_bindEvent",value:function(){var Me=this._container;this._$el.on("click",an(".copy"),function(){var rt=Oe()(this).parent().parent(),Bt=rt.find(an(".title")).text(),cn=rt.find(an(".content")).text();fo()("".concat(Bt,": ").concat(cn)),Me.notify("Copied")})}},{key:"_renderHtml",value:function(Me){Me!==this._lastHtml&&(this._lastHtml=Me,this._$el.html(Me))}}]),Ut}(Pe),di=oe(8299),fi=oe(8368),hi=oe.n(fi),mi=oe(3651),pi=oe.n(mi),ja=oe(7049);function gi(Qt){var qt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ut,Me=(0,ve.Z)(Qt);if(qt){var rt=(0,ve.Z)(this).constructor;Ut=Reflect.construct(Me,arguments,rt)}else Ut=Me.apply(this,arguments);return(0,be.Z)(this,Ut)}}var vi=function(Qt){(0,fe.Z)(Ut,Qt);var qt=gi(Ut);function Ut(){var Me;return(0,ie.Z)(this,Ut),(Me=qt.call(this))._style=en(oe(1344)),Me.name="sources",Me._showLineNum=!0,Me}return(0,se.Z)(Ut,[{key:"init",value:function(Me,rt){(0,$e.Z)((0,ve.Z)(Ut.prototype),"init",this).call(this,Me),this._container=rt,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){(0,$e.Z)((0,ve.Z)(Ut.prototype),"destroy",this).call(this),en.remove(this._style),this._rmCfg()}},{key:"set",value:function(Me,rt){if(Me==="img"){this._isFetchingData=!0;var Bt=new Image,cn=this;return Bt.onload=function(){cn._isFetchingData=!1,cn._data={type:"img",val:{width:this.width,height:this.height,src:rt}},cn._render()},Bt.onerror=function(){cn._isFetchingData=!1},void(Bt.src=rt)}return this._data={type:Me,val:rt},this._render(),this}},{key:"show",value:function(){return(0,$e.Z)((0,ve.Z)(Ut.prototype),"show",this).call(this),this._data||this._isFetchingData||this._renderDef(),this}},{key:"_renderDef",value:function(){var Me=this;if(this._html)return this._data={type:"html",val:this._html},this._render();this._isGettingHtml||(this._isGettingHtml=!0,La()({url:location.href,success:function(rt){return Me._html=rt},error:function(){return Me._html="Sorry, unable to fetch source code:("},complete:function(){Me._isGettingHtml=!1,Me._renderDef()},dataType:"raw"}))}},{key:"_bindEvent",value:function(){var Me=this;this._container.on("showTool",function(rt,Bt){rt!==Me.name&&Bt.name===Me.name&&delete Me._data})}},{key:"_rmCfg",value:function(){var Me=this.config,rt=this._container.get("settings");rt&&rt.remove(Me,"showLineNum").remove("Sources")}},{key:"_initCfg",value:function(){var Me=this,rt=this.config=Yt.createCfg("sources",{showLineNum:!0});rt.get("showLineNum")||(this._showLineNum=!1),rt.on("change",function(Bt,cn){Bt!=="showLineNum"||(Me._showLineNum=cn)}),this._container.get("settings").text("Sources").switch(rt,"showLineNum","Show Line Numbers").separator()}},{key:"_render",value:function(){switch(this._isInit=!0,this._data.type){case"html":case"js":case"css":return this._renderCode();case"img":return this._renderImg();case"object":return this._renderObj();case"raw":return this._renderRaw();case"iframe":return this._renderIframe()}}},{key:"_renderImg",value:function(){var Me=this._data.val,rt=Me.width,Bt=Me.height,cn=Me.src;this._renderHtml('
    +
    ').concat(Pr()(cn),`
    +
    + +
    +
    ').concat(Pr()(rt)," × ").concat(Pr()(Bt),`
    +
    `))}},{key:"_renderCode",value:function(){var Me=this._data;this._renderHtml('
    '),!1);var rt=Me.val,Bt=Me.val.length;Bt>Ta&&(rt=bo()(rt,Ta)),Bt'),!1);var Me=this._data.val;try{Ze()(Me)&&(Me=JSON.parse(Me))}catch{}new di.Z(this._$el.find(".eruda-json").get(0),{unenumerable:!0,accessGetter:!0}).set(Me)}},{key:"_renderRaw",value:function(){var Me=this._data;this._renderHtml('
    +
    +
    `));var rt=Me.val,Bt=this._$el.find(an(".raw")).get(0);rt.length>Ta&&(rt=bo()(rt,Ta)),new ja.Z(Bt,{text:rt,wrapLongLines:!0,showLineNumbers:rt.length'))}},{key:"_renderHtml",value:function(Me){var rt=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&Me===this._lastHtml||(this._lastHtml=Me,this._$el.html(Me),setTimeout(function(){return rt._$el.get(0).scrollTop=0},0))}}]),Ut}(Pe),bi=3e4,za=8e4,Ta=1e5,yi=oe(5166),_i=oe.n(yi),wi=oe(3514),xi=oe.n(wi),Ci={init:function(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qt=Qt.container,Ut=Qt.tool,Me=Qt.autoScale,rt=Me===void 0||Me,Bt=Qt.useShadowDom,cn=Bt===void 0||Bt,vn=Qt.defaults,xn=vn===void 0?{}:vn;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(qt,cn),this._initStyle(),this._initDevTools(xn),this._initEntryBtn(),this._initSettings(),this._initTools(Ut),this._registerListener(),rt&&this._autoScale())},_isInit:!1,version:"3.0.1",util:ae,chobitsu:jt,Tool:Pe,Console:ca,Elements:zo,Network:zr,Sources:vi,Resources:ti,Info:ci,Snippets:Wa,Settings:Yt,get:function(Qt){if(this._checkInit()){if(Qt==="entryBtn")return this._entryBtn;var qt=this._devTools;return Qt?qt.get(Qt):qt}},add:function(Qt){if(this._checkInit())return ao()(Qt)&&(Qt=Qt(this)),this._devTools.add(Qt),this},remove:function(Qt){return this._devTools.remove(Qt),this},show:function(Qt){if(this._checkInit()){var qt=this._devTools;return Qt?qt.showTool(Qt):qt.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),Oe()(this._container).remove(),en.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(Qt){return Ir()(Qt)?(this._scale=Qt,Ce.emit(Ce.SCALE,Qt),this):this._scale},position:function(Qt){var qt=this._entryBtn;return _i()(Qt)?(qt.setPos(Qt),this):qt.getPos()},_autoScale:function(){Ur()()&&this.scale(1/xi()())},_registerListener:function(){var Qt=this;this._addListener=function(){return Qt.add.apply(Qt,arguments)},this._showListener=function(){return Qt.show.apply(Qt,arguments)},Ce.on(Ce.ADD,this._addListener),Ce.on(Ce.SHOW,this._showListener),Ce.on(Ce.SCALE,en.setScale)},_unregisterListener:function(){Ce.off(Ce.ADD,this._addListener),Ce.off(Ce.SHOW,this._showListener),Ce.off(Ce.SCALE,en.setScale)},_checkInit:function(){return this._isInit||_r.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(Qt,qt){var Ut,Me;Qt||(Qt=document.createElement("div"),document.documentElement.appendChild(Qt)),Qt.id="eruda",Qt.style.all="initial",this._container=Qt,qt&&(Qt.attachShadow?Ut=Qt.attachShadow({mode:"open"}):Qt.createShadowRoot&&(Ut=Qt.createShadowRoot()),Ut&&(en.container=document.head,en(oe(5357)+oe(9327)+oe(4821)+oe(8903)+oe(5777)),Me=document.createElement("div"),Ut.appendChild(Me),this._shadowRoot=Ut)),this._shadowRoot||(Me=document.createElement("div"),Qt.appendChild(Me)),ct()(Me,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),Fa()().name==="ios"&&Me.setAttribute("ontouchstart",""),this._$el=Oe()(Me)},_initDevTools:function(Qt){this._devTools=new no(this._$el,{defaults:Qt})},_initStyle:function(){var Qt="eruda-style-container",qt=this._$el;this._shadowRoot?(en.container=this._shadowRoot,en(":host { all: initial }")):(qt.append('
    ')),en.container=qt.find(".".concat(Qt)).get(0)),en(oe(8020)+oe(4821)+oe(9327)+oe(7591)+oe(4987)+oe(8903)+oe(5512)+oe(2156)+oe(5777)+oe(7871)+oe(6833)+oe(8516)+oe(5357))},_initEntryBtn:function(){var Qt=this;this._entryBtn=new vr(this._$el),this._entryBtn.on("click",function(){return Qt._devTools.toggle()})},_initSettings:function(){var Qt=this._devTools,qt=new Yt;Qt.add(qt),this._entryBtn.initCfg(qt),Qt.initCfg(qt)},_initTools:function(){var Qt=this,qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];qt=Da()(qt);var Ut=this._devTools;qt.forEach(function(Me){var rt=Qt[Eo()(Me)];try{rt&&Ut.add(new rt)}catch(Bt){yn()(function(){_r.error("Something wrong when initializing tool ".concat(Me,":"),Bt.message)})}}),Ut.showTool(qt[0]||"settings")}}},2027:function(ee,ne,oe){var ae=oe(6672).Z;ee.exports=ae,ee.exports.default=ae},6610:function(ee,ne,oe){oe.r(ne),ne.default={}},9143:function(ee,ne,oe){var ae=this&&this.__awaiter||function(Ae,Ce,$e,ke){return new($e||($e=Promise))(function(Pe,Ee){function Oe(De){try{Re(ke.next(De))}catch(Ie){Ee(Ie)}}function Ne(De){try{Re(ke.throw(De))}catch(Ie){Ee(Ie)}}function Re(De){var Ie;De.done?Pe(De.value):(Ie=De.value,Ie instanceof $e?Ie:new $e(function(Le){Le(Ie)})).then(Oe,Ne)}Re((ke=ke.apply(Ae,Ce||[])).next())})},ie=this&&this.__generator||function(Ae,Ce){var $e,ke,Pe,Ee,Oe={label:0,sent:function(){if(1&Pe[0])throw Pe[1];return Pe[1]},trys:[],ops:[]};return Ee={next:Ne(0),throw:Ne(1),return:Ne(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Ne(Re){return function(De){return function(Ie){if($e)throw new TypeError("Generator is already executing.");for(;Oe;)try{if($e=1,ke&&(Pe=2&Ie[0]?ke.return:Ie[0]?ke.throw||((Pe=ke.return)&&Pe.call(ke),0):ke.next)&&!(Pe=Pe.call(ke,Ie[1])).done)return Pe;switch(ke=0,Pe&&(Ie=[2&Ie[0],Pe.value]),Ie[0]){case 0:case 1:Pe=Ie;break;case 4:return Oe.label++,{value:Ie[1],done:!1};case 5:Oe.label++,ke=Ie[1],Ie=[0];continue;case 7:Ie=Oe.ops.pop(),Oe.trys.pop();continue;default:if(Pe=Oe.trys,!((Pe=Pe.length>0&&Pe[Pe.length-1])||Ie[0]!==6&&Ie[0]!==2)){Oe=0;continue}if(Ie[0]===3&&(!Pe||Ie[1]>Pe[0]&&Ie[1]",ze))return void je.push(At);var Ke=[];Ne.default(At.attributes,function(ln){var Gt=ln.name,rn=ln.value;return Ke.push(Gt,rn)});for(var Vt=0,tn=Ke.length;Vt",$e.default.parse(ze)[0].attrs))},ne.setAttributeValue=function(qe){var ze=qe.nodeId,je=qe.name,Qe=qe.value;ve.getNode(ze).setAttribute(je,Qe)};var Fe=[];function Ze(qe,ze){for(var je=be.filterNodes(qe.childNodes),Qe=0,At=je.length;Qe5&&Fe.pop();for(var je=0;je<5;je++)Le.setGlobal("$"+je,Fe[je])},ne.setNodeValue=function(qe){var ze=qe.nodeId,je=qe.value;ve.getNode(ze).nodeValue=je},ne.setOuterHTML=function(qe){var ze=qe.nodeId,je=qe.outerHTML;ve.getNode(ze).outerHTML=je},ne.getDOMNodeId=function(qe){var ze=qe.node;return{nodeId:be.getOrCreateNodeId(ze)}},ne.getDOMNode=function(qe){var ze=qe.nodeId;return{node:ve.getNode(ze)}},_e.default.on("attributes",function(qe,ze){var je=ve.getNodeId(qe);if(je){var Qe=qe.getAttribute(ze);Ae.default(Qe)?fe.default.trigger("DOM.attributeRemoved",{nodeId:je,name:ze}):fe.default.trigger("DOM.attributeModified",{nodeId:je,name:ze,value:Qe})}}),_e.default.on("childList",function(qe,ze,je){var Qe=ve.getNodeId(qe);if(Qe){if(ze=be.filterNodes(ze),je=be.filterNodes(je),!Ce.default(ze)){ln();for(var At=0,Rt=ze.length;At0||Be)&&(Le.children=ke(Oe,De)),Le}function ke(Oe,Ne){var Re=Pe(Oe.childNodes);return ie.default(Re,function(De){return $e(De,{depth:Ne-1})})}function Pe(Oe){return se.default(Oe,function(Ne){return Ee(Ne)})}function Ee(Oe){if(Oe.nodeType===1){var Ne=Oe.getAttribute("class")||"";if(be.default(Ne,"__chobitsu-hide__")||be.default(Ne,"html2canvas-container"))return!1}var Re=!(Oe.nodeType===3&&fe.default(Oe.nodeValue||"")==="");return Re&&Oe.parentNode?Ee(Oe.parentNode):Re}ne.getOrCreateNodeId=Ce,ne.clear=function(){_e.clear(),we.clear()},ne.getNodeId=function(Oe){return we.get(Oe)},ne.wrap=$e,ne.getChildNodes=ke,ne.getPreviousNode=function(Oe){var Ne=Oe.previousSibling;if(Ne){for(;!Ee(Ne)&&Ne.previousSibling;)Ne=Ne.previousSibling;return Ne&&Ee(Ne)?Ne:void 0}},ne.filterNodes=Pe,ne.isValidNode=Ee,ne.getNode=function(Oe){var Ne=_e.get(Oe);if(!Ne||Ne.nodeType===10)throw ye.createErr(-32e3,"Could not find node with given id");return Ne}},7923:function(ee,ne,oe){var ae=this&&this.__importDefault||function(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.getProperties=ne.releaseObj=ne.getObj=ne.wrap=ne.clear=void 0;var ie=ae(oe(3367)),se=ae(oe(6156)),de=ae(oe(6472)),fe=ae(oe(4777)),be=ae(oe(9833)),ve=ae(oe(2749)),ye=ae(oe(3708)),_e=ae(oe(7470)),we=ae(oe(1754)),Ae=ae(oe(3085)),Ce=ae(oe(2533)),$e=ae(oe(300)),ke=ae(oe(1116)),Pe=ae(oe(8740)),Ee=ae(oe(415)),Oe=ae(oe(9804)),Ne=ae(oe(6257)),Re=new Map,De=new Map,Ie=new Map,Le=new Map,We=1;function He(Dt,Ke){var Vt=De.get(Dt);return Vt||(Vt=JSON.stringify({injectedScriptId:0,id:We++}),De.set(Dt,Vt),Re.set(Vt,Dt),Ie.set(Vt,Ke),Vt)}function Be(Dt,Ke){var Vt=Ke===void 0?{}:Ke,tn=Vt.generatePreview,ln=tn!==void 0&&tn,Gt=Vt.self,rn=Gt===void 0?Dt:Gt,ct=Qe(Dt),Ft=ct.type,Kt=ct.subtype;return Ft==="undefined"?ct:Ft==="string"||Ft==="boolean"||Kt==="null"?(ct.value=Dt,ct):(ct.description=je(Dt,rn),Ft==="number"?(ct.value=Dt,ct):Ft==="symbol"?(ct.objectId=He(Dt,rn),ct):(ct.className=Ft==="function"?"Function":Kt==="array"?"Array":Kt==="map"?"Map":Kt==="set"?"Set":Kt==="regexp"?"RegExp":Kt==="error"?Dt.name:Ae.default(Dt,!1),ln&&(ct.preview=qe(Dt,rn)),ct.objectId=He(Dt,rn),ct))}function Fe(Dt){return Re.get(Dt)}ne.clear=function(){Re.clear(),De.clear(),Ie.clear()},ne.wrap=Be,ne.getObj=Fe,ne.releaseObj=function(Dt){var Ke=Fe(Dt);De.delete(Ke),Ie.delete(Dt),Re.delete(Dt)},ne.getProperties=function(Dt){for(var Ke=Dt.accessorPropertiesOnly,Vt=Dt.objectId,tn=Dt.ownProperties,ln=Dt.generatePreview,Gt=[],rn={prototype:!tn,unenumerable:!0,symbol:!Ke},ct=Re.get(Vt),Ft=Ie.get(Vt),Kt=ke.default(ct,rn),Zt=Ee.default(ct),hn=0,un=Kt.length;hnZe&&(rn=Ze,tn=!0);for(var ct=0;ctZe){tn=!0;break}Kt.push({key:qe(hn),value:qe(Dt.get(hn))}),ct++,hn=Zt.next().value}Vt.entries=Kt}else if(_e.default(Dt)){var un=[],Xe=(ct=0,Dt.keys());for(hn=Xe.next().value;hn;){if(ct>Ze){tn=!0;break}un.push({value:qe(hn)}),ct++,hn=Xe.next().value}Vt.entries=un}return Vt.overflow=tn,Vt}function ze(Dt,Ke){var Vt=Qe(Ke);Vt.name=Dt;var tn,ln=Vt.subtype;return tn=Vt.type==="object"?ln==="null"?"null":ln==="array"?"Array("+Ke.length+")":ln==="map"?"Map("+Ke.size+")":ln==="set"?"Set("+Ke.size+")":Ae.default(Ke,!1):ie.default(Ke),Vt.value=tn,Vt}function je(Dt,Ke){Ke===void 0&&(Ke=Dt);var Vt=Qe(Dt),tn=Vt.type,ln=Vt.subtype;return tn==="string"?Dt:tn==="number"||tn==="symbol"?ie.default(Dt):tn==="function"?$e.default(Dt):ln==="array"?"Array("+Dt.length+")":ln==="map"?"Map("+Ke.size+")":ln==="set"?"Set("+Ke.size+")":ln==="regexp"?ie.default(Dt):ln==="error"?Dt.stack:ln==="internal#entry"?Dt.name?'{"'+ie.default(Dt.name)+'" => "'+ie.default(Dt.value)+'"}':'"'+ie.default(Dt.value)+'"':Ae.default(Dt,!1)}function Qe(Dt){var Ke=typeof Dt,Vt="object";if(Dt instanceof At)Vt="internal#entry";else if(se.default(Dt))Vt="null";else if(de.default(Dt))Vt="array";else if(we.default(Dt))Vt="regexp";else if(ve.default(Dt))Vt="error";else if(ye.default(Dt))Vt="map";else if(_e.default(Dt))Vt="set";else try{be.default(Dt)&&(Vt="node")}catch{}return{type:Ke,subtype:Vt}}var At=function(Dt,Ke){Ke&&(this.name=Ke),this.value=Dt};function Rt(Dt){return Dt instanceof At||!!(Dt[0]&&Dt[0]instanceof At)}},2636:function(ee,ne,oe){var ae,ie=this&&this.__extends||(ae=function(Ze,qe){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,je){ze.__proto__=je}||function(ze,je){for(var Qe in je)je.hasOwnProperty(Qe)&&(ze[Qe]=je[Qe])},ae(Ze,qe)},function(Ze,qe){function ze(){this.constructor=Ze}ae(Ze,qe),Ze.prototype=qe===null?Object.create(qe):(ze.prototype=qe.prototype,new ze)}),se=this&&this.__importDefault||function(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.fullUrl=ne.FetchRequest=ne.XhrRequest=void 0;var de=se(oe(1443)),fe=se(oe(6768)),be=se(oe(9702)),ve=se(oe(6334)),ye=se(oe(8887)),_e=se(oe(4331)),we=se(oe(8847)),Ae=se(oe(3783)),Ce=se(oe(6930)),$e=se(oe(3875)),ke=oe(316),Pe=function(Ze){function qe(ze,je,Qe){var At=Ze.call(this)||this;return At.xhr=ze,At.reqHeaders={},At.method=je,At.url=Le(Qe),At.id=ke.createId(),At}return ie(qe,Ze),qe.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},qe.prototype.handleSend=function(ze){fe.default(ze)||(ze=""),ze={name:We(this.url),url:this.url,data:ze,time:we.default(),reqHeaders:this.reqHeaders,method:this.method},ye.default(this.reqHeaders)||(ze.reqHeaders=this.reqHeaders),this.emit("send",this.id,ze)},qe.prototype.handleReqHeadersSet=function(ze,je){ze&&je&&(this.reqHeaders[ze]=je)},qe.prototype.handleHeadersReceived=function(){var ze=this.xhr,je=He(ze.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:je.type,subType:je.subType,size:De(ze,!0,this.url),time:we.default(),resHeaders:Re(ze)})},qe.prototype.handleDone=function(){var ze,je,Qe,At=this,Rt=this.xhr,Dt=Rt.responseType,Ke="",Vt=function(){At.emit("done",At.id,{status:Rt.status,size:De(Rt,!1,At.url),time:we.default(),resTxt:Ke})},tn=He(Rt.getResponseHeader("Content-Type")||"");Dt!=="blob"||tn.type!=="text"&&tn.subType!=="javascript"&&tn.subType!=="json"?(Dt!==""&&Dt!=="text"||(Ke=Rt.responseText),Dt==="json"&&(Ke=JSON.stringify(Rt.response)),Vt()):(ze=Rt.response,je=function(ln,Gt){Gt&&(Ke=Gt),Vt()},(Qe=new FileReader).onload=function(){je(null,Qe.result)},Qe.onerror=function(ln){je(ln)},Qe.readAsText(ze))},qe}(de.default);ne.XhrRequest=Pe;var Ee=function(Ze){function qe(ze,je){je===void 0&&(je={});var Qe=Ze.call(this)||this;return ze instanceof window.Request&&(ze=ze.url),Qe.url=Le(ze),Qe.id=ke.createId(),Qe.options=je,Qe.reqHeaders=je.headers||{},Qe.method=je.method||"GET",Qe}return ie(qe,Ze),qe.prototype.send=function(ze){var je=this,Qe=this.options,At=fe.default(Qe.body)?Qe.body:"";this.emit("send",this.id,{name:We(this.url),url:this.url,data:At,reqHeaders:this.reqHeaders,time:we.default(),method:this.method}),ze.then(function(Rt){var Dt=He((Rt=Rt.clone()).headers.get("Content-Type"));return Rt.text().then(function(Ke){var Vt={type:Dt.type,subType:Dt.subType,time:we.default(),size:Oe(Rt,Ke),resTxt:Ke,resHeaders:Ne(Rt),status:Rt.status};ye.default(je.reqHeaders)||(Vt.reqHeaders=je.reqHeaders),je.emit("done",je.id,Vt)}),Rt})},qe}(de.default);function Oe(Ze,qe){var ze=Ze.headers.get("Content-length");return ze?$e.default(ze):Fe(qe)}function Ne(Ze){var qe={};return Ze.headers.forEach(function(ze,je){return qe[je]=ze}),qe}function Re(Ze){var qe=Ze.getAllResponseHeaders().split(` +`),ze={};return Ae.default(qe,function(je){if((je=_e.default(je))!==""){var Qe=je.split(":",2),At=Qe[0],Rt=Qe[1];ze[At]=_e.default(Rt)}}),ze}function De(Ze,qe,ze){var je=0;function Qe(){if(!qe){var At=Ze.responseType,Rt="";At!==""&&At!=="text"||(Rt=Ze.responseText),Rt&&(je=Fe(Rt))}}if(function(At){return!Ce.default(At,Be)}(ze))Qe();else try{je=$e.default(Ze.getResponseHeader("Content-Length"))}catch{Qe()}return je===0&&Qe(),je}ne.FetchRequest=Ee;var Ie=document.createElement("a");function Le(Ze){return Ie.href=Ze,Ie.protocol+"//"+Ie.host+Ie.pathname+Ie.search+Ie.hash}function We(Ze){var qe=be.default(Ze.split("/"));return qe.indexOf("?")>-1&&(qe=_e.default(qe.split("?")[0])),qe===""&&(qe=new ve.default(Ze).hostname),qe}function He(Ze){if(!Ze)return{type:"unknown",subType:"unknown"};var qe=Ze.split(";")[0].split("/");return{type:qe[0],subType:be.default(qe)}}ne.fullUrl=Le;var Be=window.location.origin;function Fe(Ze){var qe=encodeURIComponent(Ze).match(/%[89ABab]/g);return Ze.length+(qe?qe.length:0)}},316:function(ee,ne,oe){var ae,ie=this&&this.__extends||(ae=function(Ee,Oe){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ne,Re){Ne.__proto__=Re}||function(Ne,Re){for(var De in Re)Re.hasOwnProperty(De)&&(Ne[De]=Re[De])},ae(Ee,Oe)},function(Ee,Oe){function Ne(){this.constructor=Ee}ae(Ee,Oe),Ee.prototype=Oe===null?Object.create(Oe):(Ne.prototype=Oe.prototype,new Ne)}),se=this&&this.__awaiter||function(Ee,Oe,Ne,Re){return new(Ne||(Ne=Promise))(function(De,Ie){function Le(Be){try{He(Re.next(Be))}catch(Fe){Ie(Fe)}}function We(Be){try{He(Re.throw(Be))}catch(Fe){Ie(Fe)}}function He(Be){var Fe;Be.done?De(Be.value):(Fe=Be.value,Fe instanceof Ne?Fe:new Ne(function(Ze){Ze(Fe)})).then(Le,We)}He((Re=Re.apply(Ee,Oe||[])).next())})},de=this&&this.__generator||function(Ee,Oe){var Ne,Re,De,Ie,Le={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return Ie={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ie[Symbol.iterator]=function(){return this}),Ie;function We(He){return function(Be){return function(Fe){if(Ne)throw new TypeError("Generator is already executing.");for(;Le;)try{if(Ne=1,Re&&(De=2&Fe[0]?Re.return:Fe[0]?Re.throw||((De=Re.return)&&De.call(Re),0):Re.next)&&!(De=De.call(Re,Fe[1])).done)return De;switch(Re=0,De&&(Fe=[2&Fe[0],De.value]),Fe[0]){case 0:case 1:De=Fe;break;case 4:return Le.label++,{value:Fe[1],done:!1};case 5:Le.label++,Re=Fe[1],Fe=[0];continue;case 7:Fe=Le.ops.pop(),Le.trys.pop();continue;default:if(De=Le.trys,!((De=De.length>0&&De[De.length-1])||Fe[0]!==6&&Fe[0]!==2)){Le=0;continue}if(Fe[0]===3&&(!De||Fe[1]>De[0]&&Fe[1]*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}`,""]),ee.exports=ne},4987:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,'.luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:"Segoe UI",Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;touch-action:none;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}',""]),ee.exports=ne},8903:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#a5a5a5;background-color:#242424}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),ee.exports=ne},5512:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,`@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:"Segoe UI",Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal.luna-modal-theme-dark{color:#a5a5a5;background-color:#242424}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:"";opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}`,""]),ee.exports=ne},7591:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),ee.exports=ne},4821:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),ee.exports=ne},7871:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),ee.exports=ne},2156:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),ee.exports=ne},5777:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),ee.exports=ne},5357:function(ee,ne,oe){(ne=oe(3645)(!1)).push([ee.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),ee.exports=ne},3645:function(ee){ee.exports=function(ne){var oe=[];return oe.toString=function(){return this.map(function(ae){var ie=function(se,de){var fe=se[1]||"",be=se[3];if(!be)return fe;if(de&&typeof btoa=="function"){var ve=(_e=be,we=btoa(unescape(encodeURIComponent(JSON.stringify(_e)))),Ae="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(we),"/*# ".concat(Ae," */")),ye=be.sources.map(function(Ce){return"/*# sourceURL=".concat(be.sourceRoot||"").concat(Ce," */")});return[fe].concat(ye).concat([ve]).join(` +`)}var _e,we,Ae;return[fe].join(` +`)}(ae,ne);return ae[2]?"@media ".concat(ae[2]," {").concat(ie,"}"):ie}).join("")},oe.i=function(ae,ie,se){typeof ae=="string"&&(ae=[[null,ae,""]]);var de={};if(se)for(var fe=0;fe-1&&_e[ve].splice(we,1),this}},once:function(ve,ye){return this.on(ve,fe(ye)),this},emit:function(ve){var ye=this;if(ie(this._events,ve)){var _e=de(arguments,1),we=be(this._events[ve]);return se(we,function(Ae){return Ae.apply(ye,_e)},this),this}},removeAllListeners:function(ve){return ve?delete this._events[ve]:this._events={},this}},{mixin:function(ve){se(["on","off","once","emit","removeAllListeners"],function(ye){ve[ye]=ne.prototype[ye]}),ve._events=ve._events||{}}}),ee.exports=ne},9640:function(ee,ne,oe){var ae=oe(7496),ie=oe(4454),se=oe(6472),de=oe(3783),fe=oe(2533);ne=ae({initialize:function(be){se(be)?(this.size=be.length,de(be,function(ve,ye){this[ve]=ye},this)):(this.size=fe(be).length,de(be,function(ve,ye){this[ye]=ve},this)),ie(this)}}),ee.exports=ne},125:function(ee,ne,oe){var ae=oe(5128),ie=oe(615),se=oe(8887),de=oe(4400),fe=oe(4193),be=oe(5166),ve=ie("local");ne=ae.extend({initialize:function(ye,_e){this._name=ye,_e=_e||{};var we=ve.getItem(ye);try{we=JSON.parse(we)}catch{we={}}be(we)||(we={}),_e=fe(we,_e),this.callSuper(ae,"initialize",[_e])},save:function(ye){if(se(ye))return ve.removeItem(this._name);ve.setItem(this._name,de(ye))}}),ee.exports=ne},4989:function(ee,ne,oe){var ae=oe(1443),ie=oe(9640),se=oe(1352),de=oe(1286),fe=oe(4675),be=oe(6768),ve=oe(3990);ne=ae.extend({initialize:function(ye,_e){this.name=ye,this.setLevel(de(_e)?ne.level.DEBUG:_e),this.callSuper(ae,"initialize",arguments)},setLevel:function(ye){return be(ye)?((ye=ne.level[ye.toUpperCase()])&&(this._level=ye),this):(ve(ye)&&(this._level=ye),this)},getLevel:function(){return this._level},formatter:function(ye,_e){return _e},trace:function(){return this._log("trace",arguments)},debug:function(){return this._log("debug",arguments)},info:function(){return this._log("info",arguments)},warn:function(){return this._log("warn",arguments)},error:function(){return this._log("error",arguments)},_log:function(ye,_e){return(_e=se(_e)).length===0?this:(this.emit("all",ye,fe(_e)),ne.level[ye.toUpperCase()]-1&&this._listeners.splice(be,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var fe=this,be=de(arguments),ve=ie(this._listeners);se(ve,function(ye){return ye.apply(fe,be)},this)}},{mixin:function(fe){se(["addListener","rmListener","emit","rmAllListeners"],function(be){fe[be]=ne.prototype[be]}),fe._listeners=fe._listeners||[]}}),ee.exports=ne},9001:function(ee,ne,oe){var ae=oe(7496),ie=oe(1527);ne=ae({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function(se){return this._items.push(se),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function(se,de){de=arguments.length>1?de:this;for(var fe=this._items,be=this.size-1,ve=0;be>=0;be--,ve++)se.call(de,fe[be],ve,this)},toArr:function(){return ie(this._items)}}),ee.exports=ne},5128:function(ee,ne,oe){var ae=oe(1443),ie=oe(6768),se=oe(5166),de=oe(3783),fe=oe(1352);ne=ae.extend({initialize:function(be){this.callSuper(ae,"initialize",arguments),this._data=be||{},this.save(this._data)},set:function(be,ve){var ye;ie(be)?(ye={})[be]=ve:se(be)&&(ye=be);var _e=this;de(ye,function(we,Ae){var Ce=_e._data[Ae];_e._data[Ae]=we,_e.emit("change",Ae,we,Ce)}),this.save(this._data)},get:function(be){var ve=this._data;if(ie(be))return ve[be];var ye={};return de(be,function(_e){ye[_e]=ve[_e]}),ye},remove:function(be){be=fe(be);var ve=this._data;de(be,function(ye){delete ve[ye]}),this.save(ve)},clear:function(){this._data={},this.save(this._data)},each:function(be){de(this._data,be)},save:function(be){this._data=be}}),ee.exports=ne},6334:function(ee,ne,oe){var ae=oe(7496),ie=oe(6329),se=oe(4331),de=oe(1745),fe=oe(8887),be=oe(3783),ve=oe(6472),ye=oe(1352),_e=oe(2727),we=oe(5166),Ae=oe(3367);ne=ae({className:"Url",initialize:function(Pe){!Pe&&_e&&(Pe=window.location.href),ie(this,ne.parse(Pe||""))},setQuery:function(Pe,Ee){var Oe=this.query;return we(Pe)?be(Pe,function(Ne,Re){Oe[Re]=Ae(Ne)}):Oe[Pe]=Ae(Ee),this},rmQuery:function(Pe){var Ee=this.query;return ve(Pe)||(Pe=ye(Pe)),be(Pe,function(Oe){delete Ee[Oe]}),this},toString:function(){return ne.stringify(this)}},{parse:function(Pe){var Ee={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},Oe=se(Pe),Ne=!1,Re=Oe.match(Ce);if(Re&&(Re=Re[0],Ee.protocol=Re.toLowerCase(),Oe=Oe.substr(Re.length)),Re&&(Ne=Oe.substr(0,2)==="//")&&(Oe=Oe.slice(2),Ee.slashes=!0),Ne){for(var De=Oe,Ie=-1,Le=0,We=ke.length;Le-1&&(De=Oe.slice(0,Ie),Oe=Oe.slice(Ie));var Be=De.lastIndexOf("@");Be!==-1&&(Ee.auth=decodeURIComponent(De.slice(0,Be)),De=De.slice(Be+1)),Ee.hostname=De;var Fe=De.match($e);Fe&&((Fe=Fe[0])!==":"&&(Ee.port=Fe.substr(1)),Ee.hostname=De.substr(0,De.length-Fe.length))}var Ze=Oe.indexOf("#");Ze!==-1&&(Ee.hash=Oe.substr(Ze),Oe=Oe.slice(0,Ze));var qe=Oe.indexOf("?");return qe!==-1&&(Ee.query=de.parse(Oe.substr(qe+1)),Oe=Oe.slice(0,qe)),Ee.pathname=Oe||"/",Ee},stringify:function(Pe){var Ee=Pe.protocol+(Pe.slashes?"//":"")+(Pe.auth?encodeURIComponent(Pe.auth)+"@":"")+Pe.hostname+(Pe.port?":"+Pe.port:"")+Pe.pathname;return fe(Pe.query)||(Ee+="?"+de.stringify(Pe.query)),Pe.hash&&(Ee+=Pe.hash),Ee}});var Ce=/^([a-z0-9.+-]+:)/i,$e=/:[0-9]*$/,ke=["/","?","#"];ee.exports=ne},8991:function(ee,ne,oe){var ae=oe(4777),ie=oe(1214),se=oe(4193),de=oe(5166),fe=oe(1745);function be(ve,ye,_e,we){return ae(ye)&&(we=_e,_e=ye,ye={}),{url:ve,data:ye,success:_e,dataType:we}}(ne=function(ve){se(ve,ne.setting);var ye,_e=ve.type,we=ve.url,Ae=ve.data,Ce=ve.dataType,$e=ve.success,ke=ve.error,Pe=ve.timeout,Ee=ve.complete,Oe=ve.xhr();return Oe.onreadystatechange=function(){if(Oe.readyState===4){var Ne;clearTimeout(ye);var Re=Oe.status;if(Re>=200&&Re<300||Re===304){Ne=Oe.responseText,Ce==="xml"&&(Ne=Oe.responseXML);try{Ce==="json"&&(Ne=JSON.parse(Ne))}catch{}$e(Ne,Oe)}else ke(Oe);Ee(Oe)}},_e==="GET"?(Ae=fe.stringify(Ae))&&(we+=we.indexOf("?")>-1?"&"+Ae:"?"+Ae):ve.contentType==="application/x-www-form-urlencoded"?de(Ae)&&(Ae=fe.stringify(Ae)):ve.contentType==="application/json"&&de(Ae)&&(Ae=JSON.stringify(Ae)),Oe.open(_e,we,!0),Oe.setRequestHeader("Content-Type",ve.contentType),Pe>0&&(ye=setTimeout(function(){Oe.onreadystatechange=ie,Oe.abort(),ke(Oe,"timeout"),Ee(Oe)},Pe)),Oe.send(_e==="GET"?null:Ae),Oe}).setting={type:"GET",success:ie,error:ie,complete:ie,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},ne.get=function(){return ne(be.apply(null,arguments))},ne.post=function(){var ve=be.apply(null,arguments);return ve.type="POST",ne(ve)},ee.exports=ne},1116:function(ee,ne,oe){var ae=oe(2533),ie=oe(415),se=oe(42),de=Object.getOwnPropertyNames,fe=Object.getOwnPropertySymbols;ne=function(be){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=ve.prototype,_e=ye===void 0||ye,we=ve.unenumerable,Ae=we!==void 0&&we,Ce=ve.symbol,$e=Ce!==void 0&&Ce,ke=[];if((Ae||$e)&&de){var Pe=ae;Ae&&de&&(Pe=de);do ke=ke.concat(Pe(be)),$e&&fe&&(ke=ke.concat(fe(be)));while(_e&&(be=ie(be))&&be!==Object.prototype);ke=se(ke)}else if(_e)for(var Ee in be)ke.push(Ee);else ke=ae(be);return ke},ee.exports=ne},7913:function(ee,ne,oe){var ae=oe(3783),ie=oe(1286),se=oe(4777);ne=function(de,fe){ie(fe)&&(fe=!0);var be=se(fe),ve={};return ae(de,function(ye){ve[ye]=be?fe(ye):fe}),ve},ee.exports=ne},3901:function(ee,ne){ne={encode:function(de){var fe,be,ve=[],ye=de.length,_e=ye%3;ye-=_e;for(var we=0;we>18&63]+ae[fe>>12&63]+ae[fe>>6&63]+ae[63&fe]));return ye=de.length,_e===1?(be=de[ye-1],ve.push(ae[be>>2]),ve.push(ae[be<<4&63]),ve.push("==")):_e===2&&(be=(de[ye-2]<<8)+de[ye-1],ve.push(ae[be>>10]),ve.push(ae[be>>4&63]),ve.push(ae[be<<2&63]),ve.push("=")),ve.join("")},decode:function(de){var fe=de.length,be=0;de[fe-2]==="="?be=2:de[fe-1]==="="&&(be=1);var ve,ye,_e,we,Ae,Ce,$e,ke=new Array(3*fe/4-be);for(fe=be>0?fe-4:fe,ve=0,ye=0;ve>16&255,ke[ye++]=Pe>>8&255,ke[ye++]=255&Pe}return be===2?($e=oe[de.charCodeAt(ve)]<<2|oe[de.charCodeAt(ve+1)]>>4,ke[ye++]=255&$e):be===1&&($e=oe[de.charCodeAt(ve)]<<10|oe[de.charCodeAt(ve+1)]<<4|oe[de.charCodeAt(ve+2)]>>2,ke[ye++]=$e>>8&255,ke[ye++]=255&$e),ke}};for(var oe=[],ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=0,se=ae.length;ie0&&(ie=ae.apply(this,arguments)),oe<=1&&(ae=null),ie}},ee.exports=ne},7494:function(ee,ne,oe){var ae=oe(8935);function ie(se,de){this[de]=se.replace(/\w/,function(fe){return fe.toUpperCase()})}ne=function(se){var de=ae(se),fe=de[0];return de.shift(),de.forEach(ie,de),fe+=de.join("")},ee.exports=ne},1694:function(ee,ne,oe){var ae=oe(6257),ie=oe(6472);ne=function(fe,be){if(ie(fe))return fe;if(be&&ae(be,fe))return[fe];var ve=[];return fe.replace(se,function(ye,_e,we,Ae){ve.push(we?Ae.replace(de,"$1"):_e||ye)}),ve};var se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/\\(\\)?/g;ee.exports=ne},996:function(ee,ne){ne=function(oe,ae){var ie=[];ae=ae||1;for(var se=0,de=Math.ceil(oe.length/ae);sede?de:ie},ee.exports=ne},4675:function(ee,ne,oe){var ae=oe(5166),ie=oe(6472),se=oe(6329);ne=function(de){return ae(de)?ie(de)?de.slice():se({},de):de},ee.exports=ne},550:function(ee,ne,oe){var ae=oe(5166),ie=oe(4777),se=oe(6472),de=oe(8820);ne=function(fe){return se(fe)?fe.map(function(be){return ne(be)}):ae(fe)&&!ie(fe)?de(fe,function(be){return ne(be)}):fe},ee.exports=ne},8099:function(ee,ne,oe){var ae=oe(1352);ne=function(){for(var ie=ae(arguments),se=[],de=0,fe=ie.length;de-1:(se(fe)||(fe=de(fe)),ae(fe,be)>=0)},ee.exports=ne},1792:function(ee,ne,oe){var ae=oe(6768),ie=oe(3901),se=oe(385),de=oe(6472),fe=oe(2349),be=oe(3085),ve=oe(3063);(ne=function(ye,_e){var we;if(_e=ve(_e),ae(ye))we=new Uint8Array(ie.decode(ye));else if(se(ye))ye=ye.slice(0),we=new Uint8Array(ye);else if(de(ye))we=new Uint8Array(ye);else if(be(ye)==="uint8array")we=ye.slice(0);else if(fe(ye)){we=new Uint8Array(ye.length);for(var Ae=0;Ae0?"-":"+")+fe(100*Math.floor(Math.abs(He)/60)+Math.abs(He)%60,4),S:["th","st","nd","rd"][Ee%10>3?0:(Ee%100-Ee%10!=10)*Ee%10]};return Ae.replace(be,function(Fe){return Fe in Be?Be[Fe]:Fe.slice(1,Fe.length-1)})};var fe=function(we){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return de(se(we),Ae,"0")},be=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,ve=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ye=/\d/,_e=/[^-+\dA-Z]/g;ne.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ne.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},ee.exports=ne},6049:function(ee,ne){ne=function(oe,ae,ie){var se;return function(){var de=this,fe=arguments;ie||clearTimeout(se),ie&&se||(se=setTimeout(function(){se=null,oe.apply(de,fe)},ae))}},ee.exports=ne},1420:function(ee,ne,oe){var ae=oe(3783),ie=oe(8166),se=oe(2461),de=oe(5742);function fe(ve){return+("0x"+ve)}ne=function(ve){try{return decodeURIComponent(ve)}catch{var ye=ve.match(be);return ye&&ae(ye,function(we){ve=ve.replace(we,function(Ae){Ae=Ae.split("%").slice(1);var Ce=se(Ae,fe);return Ae=ie.encode(Ce),Ae=de.decode(Ae,!0),Ae}(we))}),ve}};var be=/(%[a-f0-9]{2})+/gi;ee.exports=ne},4193:function(ee,ne,oe){ne=oe(4427)(oe(1116),!0),ee.exports=ne},9803:function(ee,ne,oe){var ae=oe(1694),ie=oe(6768),se=oe(5166),de=oe(3783);function fe(be,ve,ye){for(var _e=ae(ve,be),we=_e.pop();ve=_e.shift();)be[ve]||(be[ve]={}),be=be[ve];Object.defineProperty(be,we,ye)}ne=function(be,ve,ye){return ie(ve)?fe(be,ve,ye):se(ve)&&de(ve,function(_e,we){fe(be,we,_e)}),be},ee.exports=ne},2443:function(ee,ne,oe){var ae=oe(7496),ie=oe(6341);function se(){return!0}function de(){return!1}function fe(ve){var ye,_e=this.events[ve.type],we=be.call(this,ve,_e);ve=new ne.Event(ve);for(var Ae,Ce,$e=0;(Ce=we[$e++])&&!ve.isPropagationStopped();)for(ve.curTarget=Ce.el,Ae=0;(ye=Ce.handlers[Ae++])&&!ve.isImmediatePropagationStopped();)ye.handler.apply(Ce.el,[ve])===!1&&(ve.preventDefault(),ve.stopPropagation())}function be(ve,ye){var _e,we,Ae,Ce,$e=ve.target,ke=[],Pe=ye.delegateCount;if($e.nodeType)for(;$e!==this;$e=$e.parentNode||this){for(we=[],Ce=0;Ce-1)return ie(ye.substring(we+_e.length,ye.indexOf(".",we)))}ee.exports=ne},6954:function(ee,ne,oe){var ae=oe(2727);ne=function(ie){if(ie=(ie=ie||(ae?navigator.userAgent:"")).toLowerCase(),se("windows phone"))return"windows phone";if(se("win"))return"windows";if(se("android"))return"android";if(se("ipad")||se("iphone")||se("ipod"))return"ios";if(se("mac"))return"os x";if(se("linux"))return"linux";function se(de){return ie.indexOf(de)>-1}return"unknown"},ee.exports=ne},801:function(ee,ne,oe){var ae=oe(1137),ie=oe(288),se=oe(5972),de=oe(6341);ne=ae(function(fe,be){return be=ie(be),se(fe,function(ve){return!de(be,ve)})}),ee.exports=ne},3783:function(ee,ne,oe){var ae=oe(1369),ie=oe(2533),se=oe(3955);ne=function(de,fe,be){var ve,ye;if(fe=se(fe,be),ae(de))for(ve=0,ye=de.length;ve=0&&oe.indexOf(ae,ie)===ie},ee.exports=ne},8901:function(ee,ne,oe){var ae=oe(2533),ie=(ne=function(ve){return de.test(ve)?ve.replace(fe,be):ve}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},se="(?:"+ae(ie).join("|")+")",de=new RegExp(se),fe=new RegExp(se,"g"),be=function(ve){return ie[ve]};ee.exports=ne},4187:function(ee,ne,oe){var ae=oe(3367);ne=function(se){return ae(se).replace(ie,function(de){switch(de){case'"':case"'":case"\\":return"\\"+de;case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var ie=/["'\\\n\r\u2028\u2029]/g;ee.exports=ne},2337:function(ee,ne){ne=function(oe){return oe.replace(/\W/g,"\\$&")},ee.exports=ne},642:function(ee,ne){ne=function(oe){var ae=document.createElement("style");return ae.textContent=oe,ae.type="text/css",document.head.appendChild(ae),ae},ee.exports=ne},1672:function(ee,ne,oe){var ae=oe(2838),ie=oe(1369),se=oe(2533);ne=function(de,fe,be){fe=ae(fe,be);for(var ve=!ie(de)&&se(de),ye=(ve||de).length,_e=0;_e[\]\u2100-\uFFFF(),]*/gi;ee.exports=ne},5972:function(ee,ne,oe){var ae=oe(2838),ie=oe(3783);ne=function(se,de,fe){var be=[];return de=ae(de,fe),ie(se,function(ve,ye,_e){de(ve,ye,_e)&&be.push(ve)}),be},ee.exports=ne},2244:function(ee,ne,oe){var ae=oe(2267),ie=oe(4072),se=oe(1369),de=oe(1286);ne=function(fe,be,ve){var ye=(se(fe)?ie:ae)(fe,be,ve);if(!de(ye)&&ye!==-1)return fe[ye]},ee.exports=ne},4072:function(ee,ne,oe){var ae=oe(2838);ne=function(ie,se,de,fe){fe=fe||1,se=ae(se,de);for(var be=ie.length,ve=fe>0?0:be-1;ve>=0&&ve2?we-2:0),Ce=2;Ce>>4).toString(16)),se.push((15&be).toString(16))}return se.join("")},decode:function(ie){var se=[],de=ie.length;ae(de)&&de--;for(var fe=0;fe1&&arguments[1]!==void 0?arguments[1]:"js",ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(ve,se),fe=fe.replace(//g,">"),be=de[be];var ye=0,_e=[];ae(be,function(Ae){Ae.language&&(fe=fe.replace(Ae.re,function(Ce,$e){return $e?(_e[ye++]=ne($e,Ae.language,ve),Ce.replace($e,"___subtmpl"+(ye-1)+"___")):Ce}))}),ae(be,function(Ae,Ce){de[Ae.language]||(fe=fe.replace(Ae.re,"___"+Ce+"___$1___end"+Ce+"___"))});var we=[];return fe=fe.replace(/___(?!subtmpl)\w+?___/g,function(Ae){var Ce=Ae.substr(3,3)==="end",$e=(Ce?Ae.substr(6):Ae.substr(3)).replace(/_/g,""),ke=we.length>0?we[we.length-1]:null;return!Ce&&(ke==null||$e==ke||ke!=null&&be[ke]&&be[ke].embed!=null&&be[ke].embed.indexOf($e)>-1)?(we.push($e),Ae):Ce&&$e==ke?(we.pop(),Ae):""}),ae(be,function(Ae,Ce){var $e=ve[Ae.style]?' style="'.concat(ve[Ae.style],'"'):"";fe=fe.replace(new RegExp("___end"+Ce+"___","g"),"
    ").replace(new RegExp("___"+Ce+"___","g"),'"))}),ae(be,function(Ae){Ae.language&&(fe=fe.replace(/___subtmpl\d+___/g,function(Ce){var $e=parseInt(Ce.replace(/___subtmpl(\d+)___/,"$1"),10);return _e[$e]}))}),fe};var se={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},de={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};de.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:de.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},de.css={comment:de.js.comment,string:de.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},ee.exports=ne},5925:function(ee,ne){ne=function(ae){var ie,se,de,fe=ae[0]/360,be=ae[1]/100,ve=ae[2]/100,ye=[];if(ae[3]&&(ye[3]=ae[3]),be===0)return de=oe(255*ve),ye[0]=ye[1]=ye[2]=de,ye;for(var _e=2*ve-(ie=ve<.5?ve*(1+be):ve+be-ve*be),we=0;we<3;we++)(se=fe+.3333333333333333*-(we-1))<0&&se++,se>1&&se--,de=6*se<1?_e+6*(ie-_e)*se:2*se<1?ie:3*se<2?_e+(ie-_e)*(.6666666666666666-se)*6:_e,ye[we]=oe(255*de);return ye};var oe=Math.round;ee.exports=ne},7483:function(ee,ne,oe){var ae=oe(8702),ie=oe(9001),se=oe(6472),de=oe(3783),fe=oe(6768),be=oe(8820),ve=function(_e){return _e.replace(/"/g,'"')},ye=function(_e){return _e.replace(/"/g,""")};ne={parse:function(_e){var we=[],Ae=new ie;return ae(_e,{start:function(Ce,$e){$e=be($e,function(ke){return ve(ke)}),Ae.push({tag:Ce,attrs:$e})},end:function(){var Ce=Ae.pop();if(Ae.size){var $e=Ae.peek();se($e.content)||($e.content=[]),$e.content.push(Ce)}else we.push(Ce)},comment:function(Ce){var $e=""),ke=Ae.peek();ke?(ke.content||(ke.content=[]),ke.content.push($e)):we.push($e)},text:function(Ce){var $e=Ae.peek();$e?($e.content||($e.content=[]),$e.content.push(Ce)):we.push(Ce)}}),we},stringify:function _e(we){var Ae="";return se(we)?de(we,function(Ce){return Ae+=_e(Ce)}):fe(we)?Ae=we:(Ae+="<".concat(we.tag),de(we.attrs,function(Ce,$e){return Ae+=" ".concat($e,'="').concat(ye(Ce),'"')}),Ae+=">",we.content&&(Ae+=_e(we.content)),Ae+="")),Ae}},ee.exports=ne},6362:function(ee,ne){ne=function(oe){return oe},ee.exports=ne},496:function(ee,ne){ne=function(oe,ae,ie){return Array.prototype.indexOf.call(oe,ae,ie)},ee.exports=ne},5022:function(ee,ne,oe){var ae=oe(1662);ne=function(ie,se){ie.prototype=ae(se.prototype)},ee.exports=ne},7190:function(ee,ne,oe){var ae=oe(3783);ne=function(ie){var se={};return ae(ie,function(de,fe){se[de]=fe}),se},ee.exports=ne},7403:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object Arguments]"},ee.exports=ne},6472:function(ee,ne,oe){var ae=oe(106);ne=Array.isArray?Array.isArray:function(ie){return ae(ie)==="[object Array]"},ee.exports=ne},385:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object ArrayBuffer]"},ee.exports=ne},1369:function(ee,ne,oe){var ae=oe(3990),ie=oe(4777),se=Math.pow(2,53)-1;ne=function(de){if(!de)return!1;var fe=de.length;return ae(fe)&&fe>=0&&fe<=se&&!ie(de)},ee.exports=ne},4696:function(ee,ne){ne=function(oe){return oe===!0||oe===!1},ee.exports=ne},2727:function(ee,ne){ne=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,ee.exports=ne},2349:function(ee,ne,oe){var ae=oe(4777);ne=function(ie){return ie!=null&&(!!ie._isBuffer||ie.constructor&&ae(ie.constructor.isBuffer)&&ie.constructor.isBuffer(ie))},ee.exports=ne},2520:function(ee,ne,oe){var ae=new(oe(2765))("(prefers-color-scheme: dark)");ne=function(){return ae.isMatch()},ee.exports=ne},2106:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object Date]"},ee.exports=ne},9833:function(ee,ne){ne=function(oe){return!(!oe||oe.nodeType!==1)},ee.exports=ne},8887:function(ee,ne,oe){var ae=oe(1369),ie=oe(6472),se=oe(6768),de=oe(7403),fe=oe(2533);ne=function(be){return be==null||(ae(be)&&(ie(be)||se(be)||de(be))?be.length===0:fe(be).length===0)},ee.exports=ne},2749:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object Error]"},ee.exports=ne},4777:function(ee,ne,oe){var ae=oe(106);ne=function(ie){var se=ae(ie);return se==="[object Function]"||se==="[object GeneratorFunction]"||se==="[object AsyncFunction]"},ee.exports=ne},9585:function(ee,ne,oe){var ae=oe(5610),ie=ae.getComputedStyle,se=ae.document;function de(fe,be){return fe.rightbe.right||fe.bottombe.bottom}ne=function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=be.display,ye=ve===void 0||ve,_e=be.visibility,we=_e!==void 0&&_e,Ae=be.opacity,Ce=Ae!==void 0&&Ae,$e=be.size,ke=$e!==void 0&&$e,Pe=be.viewport,Ee=Pe!==void 0&&Pe,Oe=be.overflow,Ne=Oe!==void 0&&Oe,Re=ie(fe);if(ye){var De=fe.tagName;if(De==="BODY"||De==="HTML"||Re.position==="fixed"){if(Re.display==="none")return!0;for(var Ie=fe;Ie=Ie.parentElement;)if(ie(Ie).display==="none")return!0}else if(fe.offsetParent===null)return!0}if(we&&Re.visibility==="hidden")return!0;if(Ce){if(Re.opacity==="0")return!0;for(var Le=fe;Le=Le.parentElement;)if(ie(Le).opacity==="0")return!0}var We=fe.getBoundingClientRect();if(ke&&(We.width===0||We.height===0))return!0;if(Ee)return de(We,{top:0,left:0,right:se.documentElement.clientWidth,bottom:se.documentElement.clientHeight});if(Ne)for(var He=fe;He=He.parentElement;){var Be=ie(He).overflow;if((Be==="scroll"||Be==="hidden")&&de(We,He.getBoundingClientRect()))return!0}return!1},ee.exports=ne},2246:function(ee,ne,oe){var ae=oe(3990);ne=function(ie){return ae(ie)&&ie%1==0},ee.exports=ne},4219:function(ee,ne){ne=function(oe){try{return JSON.parse(oe),!0}catch{return!1}},ee.exports=ne},3708:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object Map]"},ee.exports=ne},7949:function(ee,ne,oe){var ae=oe(2533);ne=function(ie,se){var de=ae(se),fe=de.length;if(ie==null)return!fe;ie=Object(ie);for(var be=0;be1&&arguments[1]!==void 0?arguments[1]:ne.defComparator,ie=0,se=oe.length;ie0)return!1;return!0},ne.defComparator=function(oe,ae){return oeae?1:0},ee.exports=ne},6768:function(ee,ne,oe){var ae=oe(106);ne=function(ie){return ae(ie)==="[object String]"},ee.exports=ne},9804:function(ee,ne){ne=function(oe){return typeof oe=="symbol"},ee.exports=ne},1286:function(ee,ne){ne=function(oe){return oe===void 0},ee.exports=ne},7622:function(ee,ne,oe){var ae=oe(8935);ne=function(ie){return ae(ie).join("-")},ee.exports=ne},2533:function(ee,ne,oe){var ae=oe(6257);ne=Object.keys?Object.keys:function(ie){var se=[];for(var de in ie)ae(ie,de)&&se.push(de);return se},ee.exports=ne},9702:function(ee,ne){ne=function(oe){var ae=oe?oe.length:0;if(ae)return oe[ae-1]},ee.exports=ne},3988:function(ee,ne,oe){var ae=oe(2581),ie=oe(3783),se=oe(2337);function de(fe){return''+fe+""}ne=function(fe,be){be=be||de;var ve=ae(fe);return ie(ve,function(ye){fe=fe.replace(new RegExp(se(ye),"g"),be)}),fe},ee.exports=ne},9622:function(ee,ne){ne=function(oe,ae){var ie=document.createElement("script");ie.src=oe,ie.onload=function(){var se=ie.readyState&&ie.readyState!="complete"&&ie.readyState!="loaded";ae&&ae(!se)},ie.onerror=function(){ae(!1)},document.body.appendChild(ie)},ee.exports=ne},3063:function(ee,ne,oe){var ae=oe(3367);ne=function(ie){return ae(ie).toLocaleLowerCase()},ee.exports=ne},5351:function(ee,ne,oe){var ae=oe(4552),ie=oe(3367);ne=function(se,de,fe){var be=(se=ie(se)).length;return fe=fe||" ",be=be?"":ae.substr(fe,be)},ee.exports=ne},2461:function(ee,ne,oe){var ae=oe(2838),ie=oe(2533),se=oe(1369);ne=function(de,fe,be){fe=ae(fe,be);for(var ve=!se(de)&&ie(de),ye=(ve||de).length,_e=Array(ye),we=0;weae&&(ae=oe[ie]);return ae},ee.exports=ne},5026:function(ee,ne,oe){var ae=oe(2533);ne={getItem:function(ve){return(se[ve]?ie[ve]:this[ve])||null},setItem:function(ve,ye){se[ve]?ie[ve]=ye:this[ve]=ye},removeItem:function(ve){se[ve]?delete ie[ve]:delete this[ve]},key:function(ve){var ye=de();return ve>=0&&ve=se[de[we]]){_e=de[we];break}return+(ye/se[_e]).toFixed(2)+_e};var se={ms:1,s:1e3};se.m=60*se.s,se.h=60*se.m,se.d=24*se.h,se.y=365.25*se.d;var de=["y","d","h","m","s"],fe=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;ee.exports=ne},6339:function(ee,ne,oe){var ae=oe(6930),ie=oe(5610),se=oe(3367);function de(fe,be){if(fe=se(fe),be=se(be),ae(fe,"_")&&!ae(be,"_"))return 1;if(ae(be,"_")&&!ae(fe,"_"))return-1;for(var ve,ye,_e,we,Ae=/^\d+|^\D+/;;){if(!fe)return be?-1:0;if(!be)return 1;if(ve=fe.match(Ae)[0],ye=be.match(Ae)[0],_e=!ie.isNaN(ve),we=!ie.isNaN(ye),_e&&!we)return-1;if(we&&!_e)return 1;if(_e&&we){var Ce=ve-ye;if(Ce)return Ce;if(ve.length!==ye.length)return+ve||+ye?ye.length-ve.length:ve.length-ye.length}else if(ve!==ye)return vewindow.innerHeight?"landscape":"portrait"}},ae.mixin(ne),window.addEventListener("orientationchange",function(){setTimeout(function(){ne.emit("change",ne.get())},200)},!1),ee.exports=ne},8702:function(ee,ne,oe){var ae=oe(9702),ie=oe(7913),se=oe(6930),de=oe(3063);ne=function(we,Ae){for(var Ce,$e=[],ke=we;we;){if(Ce=!0,ae($e)&&_e[ae($e)]){var Pe=new RegExp("]*>")).exec(we);if(Pe){var Ee=we.substring(0,Pe.index);we=we.substring(Pe.index+Pe[0].length),Ee&&Ae.text&&Ae.text(Ee)}He("",ae($e))}else{if(se(we,"");Oe>=0&&(Ae.comment&&Ae.comment(we.substring(4,Oe)),we=we.substring(Oe+3),Ce=!1)}else if(se(we,"=0&&$e[Ze]!==Fe;Ze--);else Ze=0;if(Ze>=0){for(var qe=$e.length-1;qe>=Ze;qe--)Ae.end&&Ae.end($e[qe]);$e.length=Ze}}He()};var fe=/^\s]+))?)*)\s*(\/?)>/i,be=/^<\/([-A-Za-z0-9_]+)[^>]*>/,ve=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,ye=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,_e=ie("script,style".split(","));ee.exports=ne},4198:function(ee,ne,oe){var ae=oe(1137),ie=oe(1352);ne=ae(function(se,de){return function(){var fe=[];return fe=(fe=fe.concat(de)).concat(ie(arguments)),se.apply(this,fe)}}),ee.exports=ne},1194:function(ee,ne,oe){var ae,ie=oe(8847),se=oe(5610),de=se.performance,fe=se.process;if(de&&de.now)ne=function(){return de.now()};else if(fe&&fe.hrtime){var be=function(){var ve=fe.hrtime();return 1e9*ve[0]+ve[1]};ae=be()-1e9*fe.uptime(),ne=function(){return(be()-ae)/1e6}}else ae=ie(),ne=function(){return ie()-ae};ee.exports=ne},3487:function(ee,ne,oe){var ae=oe(6768),ie=oe(6472),se=oe(6341),de=oe(3783);ne=function(fe,be,ve){if(ae(be)&&(be=[be]),ie(be)){var ye=be;be=function(Ae,Ce){return se(ye,Ce)}}var _e={},we=function(Ae,Ce){be(Ae,Ce)&&(_e[Ce]=Ae)};return ve&&(we=function(Ae,Ce){be(Ae,Ce)||(_e[Ce]=Ae)}),de(fe,we),_e},ee.exports=ne},747:function(ee,ne,oe){var ae=oe(1475),ie=oe(7494),se=oe(3023),de=oe(6257),fe=oe(7622);(ne=ae(function(_e){if(_e=_e.replace(ve,""),_e=ie(_e),de(ye,_e))return _e;for(var we=be.length;we--;){var Ae=be[we]+se(_e);if(de(ye,Ae))return Ae}return _e})).dash=ae(function(_e){var we=ne(_e);return(ve.test(we)?"-":"")+fe(we)});var be=["O","ms","Moz","Webkit"],ve=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,ye=document.createElement("p").style;ee.exports=ne},2994:function(ee,ne,oe){var ae=oe(6472),ie=oe(7653);ne=function(se){return ae(se)?function(fe){return ie(fe,se)}:(de=se,function(fe){return fe==null?void 0:fe[de]});var de},ee.exports=ne},1745:function(ee,ne,oe){var ae=oe(4331),ie=oe(3783),se=oe(1286),de=oe(6472),fe=oe(2461),be=oe(8887),ve=oe(5972),ye=oe(5166);ne={parse:function(we){var Ae={};return we=ae(we).replace(_e,""),ie(we.split("&"),function(Ce){var $e=Ce.split("="),ke=$e.shift(),Pe=$e.length>0?$e.join("="):null;ke=decodeURIComponent(ke),Pe=decodeURIComponent(Pe),se(Ae[ke])?Ae[ke]=Pe:de(Ae[ke])?Ae[ke].push(Pe):Ae[ke]=[Ae[ke],Pe]}),Ae},stringify:function(we,Ae){return ve(fe(we,function(Ce,$e){return ye(Ce)&&be(Ce)?"":de(Ce)?ne.stringify(Ce,$e):encodeURIComponent(Ae||$e)+"="+encodeURIComponent(Ce)}),function(Ce){return Ce.length>0}).join("&")}};var _e=/^(\?|#|&)/g;ee.exports=ne},1571:function(ee,ne,oe){var ae,ie,se=oe(8847),de=oe(2727),fe=0;if(de){ae=window.requestAnimationFrame,ie=window.cancelAnimationFrame;for(var be=["ms","moz","webkit","o"],ve=0,ye=be.length;ve0;)1&ae&&(ie+=oe),ae>>=1,oe+=oe;return ie},ee.exports=ne},8368:function(ee,ne,oe){var ae=oe(2337);ne=function(ie,se,de){return ie.replace(new RegExp(ae(se),"g"),de)},ee.exports=ne},1137:function(ee,ne){ne=function(oe,ae){return ae=ae==null?oe.length-1:+ae,function(){var ie,se=Math.max(arguments.length-ae,0),de=new Array(se);for(ie=0;ie=0;Ae--){var Ce=ve[Ae];if(Ce!==""){if(Pe({domain:_e=_e===""?Ce:Ce+"."+_e,path:se="/"})||Pe({domain:_e}))return;for(var $e=0;$e=0;)for(be=!1,ie=-1,se=oe.charAt(de);++ie=0?oe.substring(0,de+1):""},ee.exports=ne},2838:function(ee,ne,oe){var ae=oe(4777),ie=oe(5166),se=oe(6472),de=oe(3955),fe=oe(4491),be=oe(6362),ve=oe(2994);ne=function(ye,_e,we){return ye==null?be:ae(ye)?de(ye,_e,we):ie(ye)&&!se(ye)?fe(ye):ve(ye)},ee.exports=ne},7653:function(ee,ne,oe){var ae=oe(1286),ie=oe(1694);ne=function(se,de){var fe;for(fe=(de=ie(de,se)).shift();!ae(fe);){if((se=se[fe])==null)return;fe=de.shift()}return se},ee.exports=ne},8079:function(ee,ne,oe){var ae=oe(1694),ie=oe(1286),se=oe(3367),de=oe(9804),fe=oe(6768);ne=function(be,ve,ye){var _e,we=(ve=ae(ve,be)).pop();for(_e=ve.shift();!ie(_e);){if(fe(_e)||de(_e)||(_e=se(_e)),_e==="__proto__"||_e==="constructor"||_e==="prototype")return;be[_e]||(be[_e]={}),be=be[_e],_e=ve.shift()}be[we]=ye},ee.exports=ne},615:function(ee,ne,oe){var ae=oe(5026);ne=function(ie){var se;switch(ie=ie||"local"){case"local":se=window.localStorage;break;case"session":se=window.sessionStorage}try{var de="test-localStorage-"+Date.now();se.setItem(de,de);var fe=se.getItem(de);if(se.removeItem(de),fe!==de)throw new Error}catch{return ae}return se},ee.exports=ne},4224:function(ee,ne,oe){var ae=oe(6334);ne=function(ie,se){return ie=new ae(ie),se=new ae(se),ie.port=0|ie.port||(ie.protocol==="https"?443:80),se.port=0|se.port||(se.protocol==="https"?443:80),ie.protocol===se.protocol&&ie.hostname===se.hostname&&ie.port===se.port},ee.exports=ne},9677:function(ee,ne){ne=function(oe,ae,ie){var se=oe.length;ae=ae==null?0:ae<0?Math.max(se+ae,0):Math.min(ae,se),ie=ie==null?se:ie<0?Math.max(se+ie,0):Math.min(ie,se);for(var de=[];ae1&&arguments[1]!==void 0?arguments[1]:{};ie(ye,be);var _e=ye.deep,we=ye.comparator,Ae=[],Ce=[];return function $e(ke){var Pe,Ee=Ae.indexOf(ke);if(Ee>-1)return Ce[Ee];if(de(ke)){Pe=[],Ae.push(ke),Ce.push(Pe);for(var Oe=0,Ne=ke.length;Oe0){var $e=_e.indexOf(this);$e>-1?(_e.splice($e+1),we.splice($e,1/0,Ae)):(_e.push(this),we.push(Ae));var ke=_e.indexOf(Ce);ke>-1&&(Ce=_e[0]===Ce?"[Circular ~]":"[Circular ~."+we.slice(0,ke).join(".")+"]")}else _e.push(Ce);return be(Ce)||fe(Ce)?Ce="["+ie(ae(Ce))+" "+se(Ce)+"]":de(Ce)&&(Ce=null),Ce}),ye);var _e,we},ee.exports=ne},9963:function(ee,ne,oe){var ae=oe(4187),ie=oe(3085),se=oe(3367),de=oe(4858),fe=oe(300),be=oe(2533),ve=oe(3783),ye=oe(7496),_e=oe(415),we=oe(801),Ae=oe(6329),Ce=oe(4321),$e=oe(5972),ke=oe(8847),Pe=oe(1116),Ee=oe(6341),Oe=oe(5166),Ne=oe(9537),Re=oe(1662),De=oe(6930),Ie=oe(8079),Le=oe(9803),We=oe(3487),He=oe(1369);function Be(At,Rt,Dt,Ke){var Vt=[];return ve(Rt,function(tn){var ln,Gt=Object.getOwnPropertyDescriptor(Dt,tn),rn=Gt&&Gt.get,ct=Gt&&Gt.set;if(!Ke.accessGetter&&rn)ln="(...)";else try{if(ln=Dt[tn],Ee(Ke.ignore,ln))return;Ce(ln)&&ln.catch(function(){})}catch(Ft){ln=Ft.message}Vt.push("".concat(Fe(tn),":").concat(ne(ln,Ke))),rn&&Vt.push("".concat(Fe("get "+se(tn)),":").concat(ne(Gt.get,Ke))),ct&&Vt.push("".concat(Fe("set "+se(tn)),":").concat(ne(Gt.set,Ke)))}),'"'.concat(At,'":{')+Vt.join(",")+"}"}function Fe(At){return'"'.concat(qe(At),'"')}function Ze(At){return'"'.concat(qe(se(At)),'"')}function qe(At){return ae(At).replace(/\\'/g,"'").replace(/\t/g,"\\t")}ne=function(At){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dt=Rt.self,Ke=Rt.startTime,Vt=Ke===void 0?ke():Ke,tn=Rt.timeout,ln=tn===void 0?0:tn,Gt=Rt.depth,rn=Gt===void 0?0:Gt,ct=Rt.curDepth,Ft=ct===void 0?1:ct,Kt=Rt.visitor,Zt=Kt===void 0?new ze:Kt,hn=Rt.unenumerable,un=hn!==void 0&&hn,Xe=Rt.symbol,Nt=Xe!==void 0&&Xe,Mt=Rt.accessGetter,Xt=Mt!==void 0&&Mt,on=Rt.ignore,pn=on===void 0?[]:on,gn="",Pt={visitor:Zt,unenumerable:un,symbol:Nt,accessGetter:Xt,depth:rn,curDepth:Ft+1,timeout:ln,startTime:Vt,ignore:pn},lt=ie(At,!1);if(lt==="String")gn=Ze(At);else if(lt==="Number")gn=se(At),de(gn,"Infinity")&&(gn='{"value":"'.concat(gn,'","type":"Number"}'));else if(lt==="NaN")gn='{"value":"NaN","type":"Number"}';else if(lt==="Boolean")gn=At?"true":"false";else if(lt==="Null")gn="null";else if(lt==="Undefined")gn='{"type":"Undefined"}';else if(lt==="Symbol"){var Jt="Symbol";try{Jt=se(At)}catch{}gn='{"value":'.concat(Ze(Jt),',"type":"Symbol"}')}else{if(ln&&ke()-Vt>ln)return Ze("Timeout");if(rn&&Ft>rn)return Ze("{...}");gn="{";var en,mn=[],fn=Zt.get(At);if(fn?(en=fn.id,mn.push('"reference":'.concat(en))):(en=Zt.set(At),mn.push('"id":'.concat(en))),mn.push('"type":"'.concat(lt,'"')),de(lt,"Function")?mn.push('"value":'.concat(Ze(fe(At)))):lt==="RegExp"&&mn.push('"value":'.concat(Ze(At))),!fn){var Yt=be(At);if(Yt.length&&mn.push(Be("enumerable",Yt,Dt||At,Pt)),un){var sn=we(Pe(At,{prototype:!1,unenumerable:!0}),Yt);sn.length&&mn.push(Be("unenumerable",sn,Dt||At,Pt))}if(Nt){var yn=$e(Pe(At,{prototype:!1,symbol:!0}),function(Hn){return typeof Hn=="symbol"});yn.length&&mn.push(Be("symbol",yn,Dt||At,Pt))}var Nn=_e(At);if(Nn&&!Ee(pn,Nn)){var Zn='"proto":'.concat(ne(Nn,Ae(Pt,{self:Dt||At})));mn.push(Zn)}}gn+=mn.join(",")+"}"}return gn};var ze=ye({initialize:function(){this.id=1,this.visited=[]},set:function(At){var Rt=this.visited,Dt=this.id,Ke={id:Dt,val:At};return Rt.push(Ke),this.id++,Dt},get:function(At){for(var Rt=this.visited,Dt=0,Ke=Rt.length;Dt]*>/g;ne=function(ae){return ae.replace(oe,"")},ee.exports=ne},1907:function(ee,ne,oe){var ae=oe(6768),ie=oe(1352),se=oe(6435),de=oe(2461),fe=oe(4331);ne=function(ve){ae(ve)&&(ve=ie(ve));for(var ye="",_e=arguments.length,we=new Array(_e>1?_e-1:0),Ae=1;Ae<_e;Ae++)we[Ae-1]=arguments[Ae];for(var Ce=0,$e=ve.length;Ce<$e;Ce++)ye+=ve[Ce],we[Ce]&&(ye+=we[Ce]);for(var ke=ye.split(` +`),Pe=[],Ee=0,Oe=ke.length;Ee0?se.apply(null,Pe):0;return fe(de(ke,function(De){return De[0]===" "?De.slice(Re):De}).join(` +`))};var be=/^(\s+)\S+/;ee.exports=ne},2439:function(ee,ne,oe){var ae=oe(6049);ne=function(ie,se){return ae(ie,se,!0)},ee.exports=ne},1352:function(ee,ne,oe){var ae=oe(1369),ie=oe(2461),se=oe(6472),de=oe(6768);ne=function(fe){return fe?se(fe)?fe:ae(fe)&&!de(fe)?ie(fe):[fe]:[]},ee.exports=ne},3474:function(ee,ne,oe){var ae=oe(6768);ne=function(ie){return ae(ie)?(ie=ie.toLowerCase())!=="0"&&ie!==""&&ie!=="false":!!ie},ee.exports=ne},4891:function(ee,ne){var oe=document;if(ne=function(ie){var se=oe.createElement("body");return se.innerHTML=ie,se.childNodes[0]},oe.createRange&&oe.body){var ae=oe.createRange();ae.selectNode(oe.body),ae.createContextualFragment&&(ne=function(ie){return ae.createContextualFragment(ie).childNodes[0]})}ee.exports=ne},9296:function(ee,ne,oe){var ae=oe(3875);ne=function(ie){return ie?(ie=ae(ie))-ie%1:ie===0?ie:0},ee.exports=ne},3875:function(ee,ne,oe){var ae=oe(3990),ie=oe(5166),se=oe(4777),de=oe(6768);ne=function(fe){if(ae(fe))return fe;if(ie(fe)){var be=se(fe.valueOf)?fe.valueOf():fe;fe=ie(be)?be+"":be}return de(fe)?+fe:fe===0?fe:+fe},ee.exports=ne},300:function(ee,ne,oe){var ae=oe(2763);ne=function(se){if(ae(se))return"";try{return ie.call(se)}catch{}try{return se+""}catch{}return""};var ie=Function.prototype.toString;ee.exports=ne},3367:function(ee,ne){ne=function(oe){return oe==null?"":oe.toString()},ee.exports=ne},4331:function(ee,ne,oe){var ae=oe(7767),ie=oe(3597);ne=function(se,de){return de==null&&se.trim?se.trim():ae(ie(se,de),de)},ee.exports=ne},7756:function(ee,ne,oe){var ae=oe(4193),ie=oe(1286);ne=function(de,fe){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ae(be,se);var ve=be.ellipsis,ye=be.separator;if(fe>de.length)return de;var _e=fe-ve.length;if(_e<1)return ve;var we=de.slice(0,_e);if(ie(ye))return we+ve;if(de.indexOf(ye,_e)!==_e){var Ae=we.lastIndexOf(ye);Ae>-1&&(we=we.slice(0,Ae))}return we+ve};var se={ellipsis:"..."};ee.exports=ne},3085:function(ee,ne,oe){var ae=oe(106),ie=oe(9433),se=oe(3063),de=oe(2349);ne=function(be){var ve,ye=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return be===null&&(ve="Null"),be===void 0&&(ve="Undefined"),ie(be)&&(ve="NaN"),de(be)&&(ve="Buffer"),ve||(ve=ae(be).match(fe))&&(ve=ve[1]),ve?ye?se(ve):ve:""};var fe=/^\[object\s+(.*?)]$/;ee.exports=ne},8166:function(ee,ne,oe){var ae=oe(996),ie=oe(2461);ne={encode:function(se){return se.length<32768?String.fromCodePoint.apply(String,se):ie(ae(se,32767),function(de){return String.fromCodePoint.apply(String,de)}).join("")},decode:function(se){for(var de=[],fe=0,be=se.length;fe=55296&&ve<=56319&&fe>6*Pe)+Ee);Pe>0;)Oe+=we(128|63&ke>>6*(Pe-1)),Pe--;return Oe}function Ce(ke){for(;;){if(se>=de&&ve){if(ke)return $e();throw new Error("Invalid byte index")}if(se===de)return!1;var Pe=ie[se];if(se++,ve){if(Pe_e){if(ke)return se--,$e();throw new Error("Invalid continuation byte")}if(ye=128,_e=191,fe=fe<<6|63&Pe,++be===ve){var Ee=fe;return fe=0,ve=0,be=0,Ee}}else{if(!(128&Pe))return Pe;if((224&Pe)==192)ve=1,fe=31&Pe;else if((240&Pe)==224)Pe===224&&(ye=160),Pe===237&&(_e=159),ve=2,fe=15&Pe;else{if((248&Pe)!=240){if(ke)return $e();throw new Error("Invalid UTF-8 detected")}Pe===240&&(ye=144),Pe===244&&(_e=143),ve=3,fe=7&Pe}}}}function $e(){var ke=se-be-1;return se=ke+1,fe=0,ve=0,be=0,ye=128,_e=191,ie[ke]}ee.exports=ne},5936:function(ee,ne,oe){var ae=oe(3366);ne=function(){var de=ae(16);return de[6]=15&de[6]|64,de[8]=63&de[8]|128,ie[de[0]]+ie[de[1]]+ie[de[2]]+ie[de[3]]+"-"+ie[de[4]]+ie[de[5]]+"-"+ie[de[6]]+ie[de[7]]+"-"+ie[de[8]]+ie[de[9]]+"-"+ie[de[10]]+ie[de[11]]+ie[de[12]]+ie[de[13]]+ie[de[14]]+ie[de[15]]};for(var ie=[],se=0;se<256;se++)ie[se]=(se+256).toString(16).substr(1);ee.exports=ne},2578:function(ee,ne,oe){var ae=oe(3783);ne=function(ie){var se=[];return ae(ie,function(de){se.push(de)}),se},ee.exports=ne},3514:function(ee,ne,oe){var ae=oe(8573),ie=oe(9882),se=oe(4331),de=oe(3783),fe=oe(2461),be=oe(9433);ne=function(){var ve=ae("viewport");if(!ve)return 1;ve=fe(ve.split(","),function(Ce){return se(Ce)});var ye=.25,_e=5,we=1;de(ve,function(Ce){var $e=(Ce=Ce.split("="))[0];Ce=Ce[1],$e==="initial-scale"&&(we=+Ce),$e==="maximum-scale"&&(_e=+Ce),$e==="minimum-scale"&&(ye=+Ce)});var Ae=ie(we,ye,_e);return be(Ae)?1:Ae},ee.exports=ne},8933:function(ee,ne){ne=function(oe){for(var ae=[],ie=document.evaluate(oe,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),se=0;se=Ze.length&&(Ze=void 0),{value:Ze&&Ze[je++],done:!Ze}}};throw new TypeError(qe?"Object is not iterable.":"Symbol.iterator is not defined.")},fe=this&&this.__importDefault||function(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}};Object.defineProperty(ne,"__esModule",{value:!0});var be=fe(oe(1160)),ve=oe(7669),ye=oe(2062),_e=fe(oe(242)),we=fe(oe(2439)),Ae=fe(oe(3063)),Ce=fe(oe(3783)),$e=fe(oe(3009)),ke=fe(oe(5044)),Pe=fe(oe(4502)),Ee=fe(oe(6329)),Oe=fe(oe(7494)),Ne=fe(oe(6341)),Re=fe(oe(3875)),De=fe(oe(3577)),Ie=fe(oe(6768));oe(8169);var Le=function(Ze){function qe(ze,je){je===void 0&&(je={});var Qe=Ze.call(this,ze,{compName:"dom-highlighter"},je)||this;return Qe.overlay=new ve.HighlightOverlay(window),Qe.reset=function(){var At=document.documentElement.clientWidth,Rt=document.documentElement.clientHeight;Qe.overlay.reset({viewportSize:{width:At,height:Rt},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},Qe.initOptions(je,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),Qe.overlay.setContainer(ze),Qe.overlay.setPlatform("mac"),Qe.redraw=(0,we.default)(function(){Qe.reset(),Qe.draw()},16),Qe.redraw(),Qe.bindEvent(),Qe}return ie(qe,Ze),qe.prototype.highlight=function(ze,je){je&&(0,Ee.default)(this.options,je),this.target=ze,ze instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new _e.default(ze),this.resizeSensor.addListener(this.redraw)),this.redraw()},qe.prototype.hide=function(){this.target=null,this.redraw()},qe.prototype.intercept=function(ze){this.interceptor=ze},qe.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Ze.prototype.destroy.call(this)},qe.prototype.draw=function(){var ze=this.target;ze&&(ze instanceof Text?this.drawText(ze):this.drawElement(ze))},qe.prototype.drawText=function(ze){var je=this.options,Qe=document.createRange();Qe.selectNode(ze);var At=Qe.getBoundingClientRect(),Rt=At.left,Dt=At.top,Ke=At.width,Vt=At.height;Qe.detach();var tn={paths:[{path:this.rectToPath({left:Rt,top:Dt,width:Ke,height:Vt}),fillColor:Be(je.contentColor),name:"content"}],showExtensionLines:je.showExtensionLines,showRulers:je.showRulers};je.showInfo&&(tn.elementInfo={tagName:"#text",nodeWidth:Ke,nodeHeight:Vt}),this.overlay.drawHighlight(tn)},qe.prototype.drawElement=function(ze){var je={paths:this.getPaths(ze),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(je.elementInfo=this.getElementInfo(ze)),this.interceptor){var Qe=this.interceptor(je);Qe&&(je=Qe)}this.overlay.drawHighlight(je)},qe.prototype.getPaths=function(ze){var je=this.options,Qe=window.getComputedStyle(ze),At=ze.getBoundingClientRect(),Rt=At.left,Dt=At.top,Ke=At.width,Vt=At.height,tn=function(Xt){return(0,ye.pxToNum)(Qe.getPropertyValue(Xt))},ln=tn("margin-left"),Gt=tn("margin-right"),rn=tn("margin-top"),ct=tn("margin-bottom"),Ft=tn("border-left-width"),Kt=tn("border-right-width"),Zt=tn("border-top-width"),hn=tn("border-bottom-width"),un=tn("padding-left"),Xe=tn("padding-right"),Nt=tn("padding-top"),Mt=tn("padding-bottom");return[{path:this.rectToPath({left:Rt+Ft+un,top:Dt+Zt+Nt,width:Ke-Ft-un-Kt-Xe,height:Vt-Zt-Nt-hn-Mt}),fillColor:Be(je.contentColor),name:"content"},{path:this.rectToPath({left:Rt+Ft,top:Dt+Zt,width:Ke-Ft-Kt,height:Vt-Zt-hn}),fillColor:Be(je.paddingColor),name:"padding"},{path:this.rectToPath({left:Rt,top:Dt,width:Ke,height:Vt}),fillColor:Be(je.borderColor),name:"border"},{path:this.rectToPath({left:Rt-ln,top:Dt-rn,width:Ke+ln+Gt,height:Vt+rn+ct}),fillColor:Be(je.marginColor),name:"margin"}]},qe.prototype.getElementInfo=function(ze){var je=ze.getBoundingClientRect(),Qe=je.width,At=je.height,Rt=ze.getAttribute("class")||"";Rt=Rt.split(/\s+/).map(function(Ke){return"."+Ke}).join("");var Dt={tagName:(0,Ae.default)(ze.tagName),className:Rt,idValue:ze.id,nodeWidth:Qe,nodeHeight:At};return this.options.showStyles&&(Dt.style=this.getStyles(ze)),this.options.showAccessibilityInfo&&(0,Ee.default)(Dt,this.getAccessibilityInfo(ze)),Dt},qe.prototype.getStyles=function(ze){for(var je=window.getComputedStyle(ze),Qe=!1,At=ze.childNodes,Rt=0,Dt=At.length;Rt-1)},qe.prototype.getAccessibleNameAndRole=function(ze){var je=ze.getAttribute("labelledby")||ze.getAttribute("aria-label"),Qe=ze.getAttribute("role"),At=(0,Ae.default)(ze.tagName);return De.default.forEach(function(Rt){var Dt,Ke;if(!Qe){var Vt=Rt[0],tn=Rt[2];if(Vt===At){if(tn)try{for(var ln=de(tn),Gt=ln.next();!Gt.done;Gt=ln.next()){var rn=Gt.value;if(ze.getAttribute(rn[0])!==rn[1])return}}catch(ct){Dt={error:ct}}finally{try{Gt&&!Gt.done&&(Ke=ln.return)&&Ke.call(ln)}finally{if(Dt)throw Dt.error}}Qe=Rt[1]}}}),{accessibleName:je||ze.getAttribute("title")||"",accessibleRole:Qe||"generic"}},qe.prototype.bindEvent=function(){var ze=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return ze.redraw()})},qe.prototype.rectToPath=function(ze){var je=ze.left,Qe=ze.top,At=ze.width,Rt=ze.height,Dt=[];return Dt.push("M",je,Qe),Dt.push("L",je+At,Qe),Dt.push("L",je+At,Qe+Rt),Dt.push("L",je,Qe+Rt),Dt.push("Z"),Dt},qe}(be.default);ne.default=Le,ee.exports=Le,ee.exports.default=Le;var We=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,He=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function Be(Ze){return(0,Ie.default)(Ze)?Ze:Ze.a?"rgba(".concat(Ze.r,", ").concat(Ze.g,", ").concat(Ze.b,", ").concat(Ze.a,")"):"rgb(".concat(Ze.r,", ").concat(Ze.g,", ").concat(Ze.b,")")}function Fe(Ze,qe,ze){ze===void 0&&(ze=!1);var je={};return(0,Ce.default)(qe,function(Qe){var At,Rt=Ze[Qe==="text-opacity"?"color":Qe];Rt&&(At=Rt,(We.test(At)||He.test(At))&&(Rt=function(Dt){var Ke=$e.default.parse(Dt),Vt=Ke.val[3]||1;return Ke.val=Ke.val.slice(0,3),Ke.val.push(Math.round(255*Vt)),"#"+(0,Pe.default)(ke.default.encode(Ke.val))}(Rt),Qe==="text-opacity"&&(Rt=Rt.slice(7),Rt=ke.default.decode(Rt)[0]/255)),ze&&(Qe=(0,Oe.default)(Qe)),je[Qe]=Rt)}),je}},9706:function(ee,ne){var oe=this&&this.__read||function(Be,Fe){var Ze=typeof Symbol=="function"&&Be[Symbol.iterator];if(!Ze)return Be;var qe,ze,je=Ze.call(Be),Qe=[];try{for(;(Fe===void 0||Fe-- >0)&&!(qe=je.next()).done;)Qe.push(qe.value)}catch(At){ze={error:At}}finally{try{qe&&!qe.done&&(Ze=je.return)&&Ze.call(je)}finally{if(ze)throw ze.error}}return Qe},ae=this&&this.__values||function(Be){var Fe=typeof Symbol=="function"&&Symbol.iterator,Ze=Fe&&Be[Fe],qe=0;if(Ze)return Ze.call(Be);if(Be&&typeof Be.length=="number")return{next:function(){return Be&&qe>=Be.length&&(Be=void 0),{value:Be&&Be[qe++],done:!Be}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")};function ie(Be,Fe){var Ze=Be[3];return[(1-Ze)*Fe[0]+Ze*Be[0],(1-Ze)*Fe[1]+Ze*Be[1],(1-Ze)*Fe[2]+Ze*Be[2],Ze+Fe[3]*(1-Ze)]}function se(Be){var Fe=oe(Be,3),Ze=Fe[0],qe=Fe[1],ze=Fe[2];return .2126*(Ze<=.03928?Ze/12.92:Math.pow((Ze+.055)/1.055,2.4))+.7152*(qe<=.03928?qe/12.92:Math.pow((qe+.055)/1.055,2.4))+.0722*(ze<=.03928?ze/12.92:Math.pow((ze+.055)/1.055,2.4))}Object.defineProperty(ne,"__esModule",{value:!0}),ne.getContrastThreshold=ne.isLargeFont=ne.getAPCAThreshold=ne.desiredLuminanceAPCA=ne.contrastRatioByLuminanceAPCA=ne.contrastRatioAPCA=ne.luminanceAPCA=ne.contrastRatio=ne.luminance=ne.rgbaToHsla=ne.blendColors=void 0,ne.blendColors=ie,ne.rgbaToHsla=function(Be){var Fe=oe(Be,4),Ze=Fe[0],qe=Fe[1],ze=Fe[2],je=Fe[3],Qe=Math.max(Ze,qe,ze),At=Math.min(Ze,qe,ze),Rt=Qe-At,Dt=Qe+At,Ke=.5*Dt;return[At===Qe?0:Ze===Qe?(.16666666666666666*(qe-ze)/Rt+1)%1:qe===Qe?.16666666666666666*(ze-Ze)/Rt+.3333333333333333:.16666666666666666*(Ze-qe)/Rt+.6666666666666666,Ke===0||Ke===1?0:Ke<=.5?Rt/Dt:Rt/(2-Dt),Ke,je]},ne.luminance=se,ne.contrastRatio=function(Be,Fe){var Ze=se(ie(Be,Fe)),qe=se(Fe);return(Math.max(Ze,qe)+.05)/(Math.min(Ze,qe)+.05)};var de=2.4,fe=.55,be=.58,ve=.62,ye=.57,_e=.03,we=1.45,Ae=1.25,Ce=1.25,$e=5e-4,ke=.078,Pe=12.82051282051282,Ee=.06,Oe=.001;function Ne(Be){var Fe=oe(Be,3),Ze=Fe[0],qe=Fe[1],ze=Fe[2];return .2126729*Math.pow(Ze,de)+.7151522*Math.pow(qe,de)+.072175*Math.pow(ze,de)}function Re(Be){return Be>_e?Be:Be+Math.pow(_e-Be,we)}function De(Be,Fe){if(Be=Re(Be),Fe=Re(Fe),Math.abs(Be-Fe)<$e)return 0;var Ze=0;return 100*(Ze=Fe>=Be?(Ze=(Math.pow(Fe,fe)-Math.pow(Be,be))*Ae)-Oe?0:Ze>-ke?Ze-Ze*Pe*Ee:Ze+Ee)}ne.luminanceAPCA=Ne,ne.contrastRatioAPCA=function(Be,Fe){return De(Ne(Be),Ne(Fe))},ne.contrastRatioByLuminanceAPCA=De,ne.desiredLuminanceAPCA=function(Be,Fe,Ze){function qe(){return Ze?Math.pow(Math.abs(Math.pow(Be,ve)-(-Fe-Ee)/Ce),1/ye):Math.pow(Math.abs(Math.pow(Be,fe)-(Fe+Ee)/Ae),1/be)}Be=Re(Be),Fe/=100;var ze=qe();return(ze<0||ze>1)&&(Ze=!Ze,ze=qe()),ze};var Ie=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function Le(Be,Fe){var Ze=72*parseFloat(Be.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(Fe)!==-1?Ze>=14:Ze>=18}Ie.reverse(),ne.getAPCAThreshold=function(Be,Fe){var Ze,qe,ze,je,Qe=parseFloat(Be.replace("px","")),At=parseFloat(Fe);try{for(var Rt=ae(Ie),Dt=Rt.next();!Dt.done;Dt=Rt.next()){var Ke=oe(Dt.value),Vt=Ke[0],tn=Ke.slice(1);if(Qe>=Vt)try{for(var ln=(ze=void 0,ae([900,800,700,600,500,400,300,200,100].entries())),Gt=ln.next();!Gt.done;Gt=ln.next()){var rn=oe(Gt.value,2),ct=rn[0];if(At>=rn[1]){var Ft=tn[tn.length-1-ct];return Ft===-1?null:Ft}}}catch(Kt){ze={error:Kt}}finally{try{Gt&&!Gt.done&&(je=ln.return)&&je.call(ln)}finally{if(ze)throw ze.error}}}}catch(Kt){Ze={error:Kt}}finally{try{Dt&&!Dt.done&&(qe=Rt.return)&&qe.call(Rt)}finally{if(Ze)throw Ze.error}}return null},ne.isLargeFont=Le;var We={aa:3,aaa:4.5},He={aa:4.5,aaa:7};ne.getContrastThreshold=function(Be,Fe){return Le(Be,Fe)?We:He}},9434:function(ee,ne){var oe=this&&this.__values||function(ve){var ye=typeof Symbol=="function"&&Symbol.iterator,_e=ye&&ve[ye],we=0;if(_e)return _e.call(ve);if(ve&&typeof ve.length=="number")return{next:function(){return ve&&we>=ve.length&&(ve=void 0),{value:ve&&ve[we++],done:!ve}}};throw new TypeError(ye?"Object is not iterable.":"Symbol.iterator is not defined.")},ae=this&&this.__read||function(ve,ye){var _e=typeof Symbol=="function"&&ve[Symbol.iterator];if(!_e)return ve;var we,Ae,Ce=_e.call(ve),$e=[];try{for(;(ye===void 0||ye-- >0)&&!(we=Ce.next()).done;)$e.push(we.value)}catch(ke){Ae={error:ke}}finally{try{we&&!we.done&&(_e=Ce.return)&&_e.call(Ce)}finally{if(Ae)throw Ae.error}}return $e},ie=this&&this.__spreadArray||function(ve,ye,_e){if(_e||arguments.length===2)for(var we,Ae=0,Ce=ye.length;Ae_e&&(ve=_e),ve},ne.adoptStyleSheet=be},1521:function(ee,ne,oe){var ae=this&&this.__values||function(Pe){var Ee=typeof Symbol=="function"&&Symbol.iterator,Oe=Ee&&Pe[Ee],Ne=0;if(Oe)return Oe.call(Pe);if(Pe&&typeof Pe.length=="number")return{next:function(){return Pe&&Ne>=Pe.length&&(Pe=void 0),{value:Pe&&Pe[Ne++],done:!Pe}}};throw new TypeError(Ee?"Object is not iterable.":"Symbol.iterator is not defined.")},ie=this&&this.__read||function(Pe,Ee){var Oe=typeof Symbol=="function"&&Pe[Symbol.iterator];if(!Oe)return Pe;var Ne,Re,De=Oe.call(Pe),Ie=[];try{for(;(Ee===void 0||Ee-- >0)&&!(Ne=De.next()).done;)Ie.push(Ne.value)}catch(Le){Re={error:Le}}finally{try{Ne&&!Ne.done&&(Oe=De.return)&&Oe.call(De)}finally{if(Re)throw Re.error}}return Ie},se=this&&this.__spreadArray||function(Pe,Ee,Oe){if(Oe||arguments.length===2)for(var Ne,Re=0,De=Ee.length;Retn&&rnln,Kt=je-Vt;Kt=(0,be.constrainNumber)(Kt,Dt,Be-Qe-Dt);var Zt=He.minY-Rt-At,hn=!0;Zt<0?(Zt=Math.min(Fe-At,He.maxY+Rt),hn=!1):He.minY>Fe&&(Zt=Fe-Rt-At);var un=Kt>=He.minX&&Kt+Qe<=He.maxX&&Zt>=He.minY&&Zt+At<=He.maxY,Xe=KtHe.minX&&ZtHe.minY;if(Xe&&!un)return void(qe.style.display="none");if(qe.style.top=Zt+"px",qe.style.left=Kt+"px",!Ft){var Nt=(0,be.createChild)(qe,"div","tooltip-arrow");Nt.style.clipPath=hn?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",Nt.style.top=(hn?At-1:-Rt)+"px",Nt.style.left=je-Kt+"px"}}(this.tooltip,Pe.elementInfo,Pe.colorFormat,Ee,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:Ee}},ke.prototype.drawAxis=function(Pe,Ee,Oe){Pe.save();var Ne=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,Re=this.scrollX*this.pageScaleFactor,De=this.scrollY*this.pageScaleFactor;function Ie(Qe){return Math.round(Qe*Ne)}function Le(Qe){return Math.round(Qe/Ne)}var We=this.canvasWidth/Ne,He=this.canvasHeight/Ne,Be=50;Pe.save(),Pe.fillStyle=Ae,Oe?Pe.fillRect(0,Ie(He)-15,Ie(We),Ie(He)):Pe.fillRect(0,0,Ie(We),15),Pe.globalCompositeOperation="destination-out",Pe.fillStyle="red",Ee?Pe.fillRect(Ie(We)-15,0,Ie(We),Ie(He)):Pe.fillRect(0,0,15,Ie(He)),Pe.restore(),Pe.fillStyle=Ae,Ee?Pe.fillRect(Ie(We)-15,0,Ie(We),Ie(He)):Pe.fillRect(0,0,15,Ie(He)),Pe.lineWidth=1,Pe.strokeStyle=we,Pe.fillStyle=we,Pe.save(),Pe.translate(-Re,.5-De);for(var Fe=He+Le(De),Ze=100;Ze]*>/g.test(Re))try{var De=fe.default.parse(Re);return Ae(De,function(Ie){Ie.attrs&&Ie.attrs.class&&(Ie.attrs.class=Ne(Ie.attrs.class))}),fe.default.stringify(De)}catch{return Ne(Re)}return Ne(Re)}};var Ce,$e="ontouchstart"in de.default,ke={start:"touchstart",move:"touchmove",end:"touchend"},Pe={start:"mousedown",move:"mousemove",end:"mouseup"};ne.drag=function(Ee){return $e?ke[Ee]:Pe[Ee]},ne.eventClient=function(Ee,Oe){var Ne=Ee==="x"?"clientX":"clientY";return Oe[Ne]?Oe[Ne]:Oe.changedTouches?Oe.changedTouches[0][Ne]:0},ne.eventPage=function(Ee,Oe){var Ne=Ee==="x"?"pageX":"pageY";return Oe[Ne]?Oe[Ne]:Oe.changedTouches?Oe.changedTouches[0][Ne]:0},ne.measuredScrollbarWidth=function(){if((0,be.default)(Ce))return Ce;if(!document)return 16;var Ee=document.createElement("div"),Oe=document.createElement("div");return Ee.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Oe.setAttribute("style","height: 200px"),Ee.appendChild(Oe),document.body.appendChild(Ee),Ce=Ee.offsetWidth-Ee.clientWidth,document.body.removeChild(Ee),Ce},ne.hasVerticalScrollbar=function(Ee){return Ee.scrollHeight>Ee.offsetHeight},ne.executeAfterTransition=function(Ee,Oe){if((0,we.default)(Ee))return Oe();var Ne=function(Re){Re.target===Ee&&(Ee.removeEventListener("transitionend",Ne),Oe())};Ee.addEventListener("transitionend",Ne)},ne.pxToNum=function(Ee){return(0,ye.default)(Ee.replace("px",""))},ne.getPlatform=function(){var Ee=(0,_e.default)();return Ee==="os x"?"mac":Ee},ne.resetCanvasSize=function(Ee){Ee.width=Math.round(Ee.offsetWidth*window.devicePixelRatio),Ee.height=Math.round(Ee.offsetHeight*window.devicePixelRatio)}},6093:function(ee,ne,oe){var ae,ie=this&&this.__extends||(ae=function(we,Ae){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,$e){Ce.__proto__=$e}||function(Ce,$e){for(var ke in $e)Object.prototype.hasOwnProperty.call($e,ke)&&(Ce[ke]=$e[ke])},ae(we,Ae)},function(we,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");function Ce(){this.constructor=we}ae(we,Ae),we.prototype=Ae===null?Object.create(Ae):(Ce.prototype=Ae.prototype,new Ce)}),se=this&&this.__importDefault||function(we){return we&&we.__esModule?we:{default:we}};Object.defineProperty(ne,"__esModule",{value:!0});var de=se(oe(1512)),fe=se(oe(5229)),be=se(oe(2244)),ve=se(oe(8613)),ye=function(we){function Ae(Ce,$e){$e===void 0&&($e={});var ke=we.call(this,Ce,{compName:"notification"},$e)||this;return ke.notifications=[],ke.initOptions($e,{position:{x:"right",y:"bottom"},duration:2e3}),ke.initTpl(),ke}return ie(Ae,we),Ae.prototype.notify=function(Ce,$e){var ke=this;$e===void 0&&($e={duration:this.options.duration});var Pe=new _e(this,Ce);this.notifications.push(Pe),this.add(Pe),setTimeout(function(){return ke.remove(Pe.id)},$e.duration)},Ae.prototype.dismissAll=function(){for(var Ce=this.notifications,$e=Ce[0];$e;)this.remove($e.id),$e=Ce[0]},Ae.prototype.add=function(Ce){this.container.appendChild(Ce.container)},Ae.prototype.remove=function(Ce){var $e=this.notifications,ke=(0,be.default)($e,function(Ee){return Ee.id===Ce});if(ke){ke.destroy();var Pe=$e.indexOf(ke);$e.splice(Pe,1)}},Ae.prototype.initTpl=function(){var Ce=this.$container,$e=this.options.position,ke=$e.x,Pe=$e.y,Ee="flex-end",Oe="flex-end";switch(ke){case"center":Oe="center";break;case"left":Oe="flex-start"}Pe==="top"&&(Ee="flex-start"),Ce.attr("style","justify-content: ".concat(Ee,"; align-items: ").concat(Oe))},Ae}(se(oe(5404)).default);ne.default=ye;var _e=function(){function we(Ae,Ce){this.container=(0,ve.default)("div"),this.$container=(0,de.default)(this.container),this.notification=Ae,this.content=Ce,this.id=(0,fe.default)("luna-notification-"),this.$container.attr({id:this.id,class:Ae.c("item ".concat(Ae.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return we.prototype.destroy=function(){this.$container.remove()},we.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},we}();ee.exports=ye,ee.exports.default=ye},5404:function(ee,ne,oe){var ae,ie=this&&this.__extends||(ae=function(Ce,$e){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Pe){ke.__proto__=Pe}||function(ke,Pe){for(var Ee in Pe)Object.prototype.hasOwnProperty.call(Pe,Ee)&&(ke[Ee]=Pe[Ee])},ae(Ce,$e)},function(Ce,$e){if(typeof $e!="function"&&$e!==null)throw new TypeError("Class extends value "+String($e)+" is not a constructor or null");function ke(){this.constructor=Ce}ae(Ce,$e),Ce.prototype=$e===null?Object.create($e):(ke.prototype=$e.prototype,new ke)}),se=this&&this.__importDefault||function(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}};Object.defineProperty(ne,"__esModule",{value:!0});var de=se(oe(1443)),fe=se(oe(1512)),be=oe(164),ve=se(oe(3783)),ye=se(oe(6329)),_e=se(oe(4193)),we=se(oe(5852)),Ae=function(Ce){function $e(ke,Pe,Ee){var Oe=Pe.compName,Ne=(Ee===void 0?{}:Ee).theme,Re=Ne===void 0?"light":Ne,De=Ce.call(this)||this;return De.subComponents=[],De.compName=Oe,De.c=(0,be.classPrefix)(Oe),De.options={},De.container=ke,De.$container=(0,fe.default)(ke),De.$container.addClass(["luna-".concat(Oe),De.c("platform-".concat((0,be.getPlatform)()))]),De.on("optionChange",function(Ie,Le,We){var He=De.c;Ie==="theme"&&(De.$container.rmClass(He("theme-".concat(We))).addClass(He("theme-".concat(Le))),(0,ve.default)(De.subComponents,function(Be){return Be.setOption("theme",Le)}))}),De.setOption("theme",Re),De}return ie($e,Ce),$e.prototype.destroy=function(){this.destroySubComponents();var ke=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ke("platform-".concat((0,be.getPlatform)()))).rmClass(ke("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},$e.prototype.setOption=function(ke,Pe){var Ee=this,Oe=this.options,Ne={};typeof ke=="string"?Ne[ke]=Pe:Ne=ke,(0,ve.default)(Ne,function(Re,De){var Ie=Oe[De];Oe[De]=Re,Ee.emit("optionChange",De,Re,Ie)})},$e.prototype.getOption=function(ke){return this.options[ke]},$e.prototype.addSubComponent=function(ke){ke.setOption("theme",this.options.theme),this.subComponents.push(ke)},$e.prototype.removeSubComponent=function(ke){(0,we.default)(this.subComponents,function(Pe){return Pe===ke})},$e.prototype.destroySubComponents=function(){(0,ve.default)(this.subComponents,function(ke){return ke.destroy()}),this.subComponents=[]},$e.prototype.initOptions=function(ke,Pe){Pe===void 0&&(Pe={}),(0,_e.default)(ke,Pe),(0,ye.default)(this.options,ke)},$e.prototype.find=function(ke){return this.$container.find(this.c(ke))},$e}(de.default);ne.default=Ae},164:function(ee,ne,oe){var ae=this&&this.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.resetCanvasSize=ne.getPlatform=ne.pxToNum=ne.executeAfterTransition=ne.hasVerticalScrollbar=ne.measuredScrollbarWidth=ne.eventClient=ne.drag=ne.classPrefix=void 0;var ie=ae(oe(2461)),se=ae(oe(4331)),de=ae(oe(5610)),fe=ae(oe(7483)),be=ae(oe(3990)),ve=ae(oe(6341)),ye=ae(oe(3875)),_e=ae(oe(6954)),we=ae(oe(9585));function Ae(Ee,Oe){for(var Ne=0,Re=Ee.length;Ne]*>/g.test(Re))try{var De=fe.default.parse(Re);return Ae(De,function(Ie){Ie.attrs&&Ie.attrs.class&&(Ie.attrs.class=Ne(Ie.attrs.class))}),fe.default.stringify(De)}catch{return Ne(Re)}return Ne(Re)}};var Ce,$e="ontouchstart"in de.default,ke={start:"touchstart",move:"touchmove",end:"touchend"},Pe={start:"mousedown",move:"mousemove",end:"mouseup"};ne.drag=function(Ee){return $e?ke[Ee]:Pe[Ee]},ne.eventClient=function(Ee,Oe){var Ne=Ee==="x"?"clientX":"clientY";return Oe[Ne]?Oe[Ne]:Oe.changedTouches?Oe.changedTouches[0][Ne]:0},ne.measuredScrollbarWidth=function(){if((0,be.default)(Ce))return Ce;if(!document)return 16;var Ee=document.createElement("div"),Oe=document.createElement("div");return Ee.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Oe.setAttribute("style","height: 200px"),Ee.appendChild(Oe),document.body.appendChild(Ee),Ce=Ee.offsetWidth-Ee.clientWidth,document.body.removeChild(Ee),Ce},ne.hasVerticalScrollbar=function(Ee){return Ee.scrollHeight>Ee.offsetHeight},ne.executeAfterTransition=function(Ee,Oe){if((0,we.default)(Ee))return Oe();var Ne=function(Re){Re.target===Ee&&(Ee.removeEventListener("transitionend",Ne),Oe())};Ee.addEventListener("transitionend",Ne)},ne.pxToNum=function(Ee){return(0,ye.default)(Ee.replace("px",""))},ne.getPlatform=function(){var Ee=(0,_e.default)();return Ee==="os x"?"mac":Ee},ne.resetCanvasSize=function(Ee){Ee.width=Math.round(Ee.offsetWidth*window.devicePixelRatio),Ee.height=Math.round(Ee.offsetHeight*window.devicePixelRatio)}},8169:function(ee,ne,oe){oe.r(ne),oe.d(ne,{default:function(){return ke}});var ae={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},ie=/([astvzqmhlc])([^astvzqmhlc]*)/gi,se=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,de=function(Pe){var Ee=[],Oe=String(Pe).trim();return Oe[0]!=="M"&&Oe[0]!=="m"||Oe.replace(ie,function(Ne,Re,De){var Ie=Re.toLowerCase(),Le=function(He){var Be=He.match(se);return Be?Be.map(Number):[]}(De),We=Re;if(Ie==="m"&&Le.length>2&&(Ee.push([We].concat(Le.splice(0,2))),Ie="l",We=We==="m"?"l":"L"),Le.length=ae[Ie]&&Le.length&&ae[Ie];)Ee.push([We].concat(Le.splice(0,ae[Ie])));return""}),Ee};function fe(Pe,Ee){for(var Oe=0;OePe.length)&&(Ee=Pe.length);for(var Oe=0,Ne=new Array(Ee);Oe1&&(ln*=je=Math.sqrt(je),Gt*=je),Qe=ln*ln*Gt*Gt,At=ln*ln*qe.y*qe.y+Gt*Gt*qe.x*qe.x,we(Kt={x:ln*qe.y/Gt,y:-Gt*qe.x/ln},Fe!==Be?Math.sqrt((Qe-At)/At)||0:-Math.sqrt((Qe-At)/At)||0),He=Math.atan2((qe.y-Kt.y)/Gt,(qe.x-Kt.x)/ln),We=Math.atan2(-(qe.y+Kt.y)/Gt,-(qe.x+Kt.x)/ln),_e(Kt,ze),Mt=Kt,Xt=(Ze.x+gn.x)/2,on=(Ze.y+gn.y)/2,Mt.x+=Xt,Mt.y+=on,Ie.save(),Ie.translate(Kt.x,Kt.y),Ie.rotate(ze),Ie.scale(ln,Gt),Ie.arc(0,0,1,He,We,!Fe),Ie.restore();break;case"C":Zt=lt[3],hn=lt[4],Rt=lt[5],Ke=lt[6],Ie.bezierCurveTo(lt[1],lt[2],Zt,hn,Rt,Ke);break;case"c":Ie.bezierCurveTo(lt[1]+Rt,lt[2]+Ke,lt[3]+Rt,lt[4]+Ke,lt[5]+Rt,lt[6]+Ke),Zt=lt[3]+Rt,hn=lt[4]+Ke,Rt+=lt[5],Ke+=lt[6];break;case"S":Zt!==null&&hn!==null||(Zt=Rt,hn=Ke),Ie.bezierCurveTo(2*Rt-Zt,2*Ke-hn,lt[1],lt[2],lt[3],lt[4]),Zt=lt[1],hn=lt[2],Rt=lt[3],Ke=lt[4];break;case"s":Zt!==null&&hn!==null||(Zt=Rt,hn=Ke),Ie.bezierCurveTo(2*Rt-Zt,2*Ke-hn,lt[1]+Rt,lt[2]+Ke,lt[3]+Rt,lt[4]+Ke),Zt=lt[1]+Rt,hn=lt[2]+Ke,Rt+=lt[3],Ke+=lt[4];break;case"Q":un=lt[1],Xe=lt[2],Rt=lt[3],Ke=lt[4],Ie.quadraticCurveTo(un,Xe,Rt,Ke);break;case"q":un=lt[1]+Rt,Xe=lt[2]+Ke,Rt+=lt[3],Ke+=lt[4],Ie.quadraticCurveTo(un,Xe,Rt,Ke);break;case"T":un!==null&&Xe!==null||(un=Rt,Xe=Ke),un=2*Rt-un,Xe=2*Ke-Xe,Rt=lt[1],Ke=lt[2],Ie.quadraticCurveTo(un,Xe,Rt,Ke);break;case"t":un!==null&&Xe!==null||(un=Rt,Xe=Ke),un=2*Rt-un,Xe=2*Ke-Xe,Rt+=lt[1],Ke+=lt[2],Ie.quadraticCurveTo(un,Xe,Rt,Ke);break;case"z":case"Z":Rt=pn.x,Ke=pn.y,pn=void 0,Ie.closePath();break;case"AC":Rt=lt[1],Ke=lt[2],tn=lt[3],He=lt[4],We=lt[5],Nt=lt[6],Ie.arc(Rt,Ke,tn,He,We,Nt);break;case"AT":Dt=lt[1],Vt=lt[2],Rt=lt[3],Ke=lt[4],tn=lt[5],Ie.arcTo(Dt,Vt,Rt,Ke,tn);break;case"E":Rt=lt[1],Ke=lt[2],ln=lt[3],Gt=lt[4],ze=lt[5],He=lt[6],We=lt[7],Nt=lt[8],Ie.save(),Ie.translate(Rt,Ke),Ie.rotate(ze),Ie.scale(ln,Gt),Ie.arc(0,0,1,He,We,Nt),Ie.restore();break;case"R":Rt=lt[1],Ke=lt[2],rn=lt[3],ct=lt[4],pn={x:Rt,y:Ke},Ie.rect(Rt,Ke,rn,ct)}gn.x=Rt,gn.y=Ke}}},Ce=de,$e=Ae;typeof window<"u"&&$e(window);var ke={path2dPolyfill:$e,parsePath:Ce}},2777:function(ee){ee.exports=`.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml,')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}} + +/*# sourceMappingURL=luna-dom-highlighter.css.map*/`},907:function(ee,ne,oe){function ae(ie,se){(se==null||se>ie.length)&&(se=ie.length);for(var de=0,fe=new Array(se);deee!==null&&typeof ee=="object",isDef=ee=>ee!=null,isFunction$1=ee=>typeof ee=="function",isPromise=ee=>isObject$2(ee)&&isFunction$1(ee.then)&&isFunction$1(ee.catch),isDate$1=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$2(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$1=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),be=ie.indexOf(de);return fe-be})}function useChildren(ee){const ne=reactive([]),oe=reactive([]),ae=getCurrentInstance();return{children:ne,linkChildren:se=>{provide(ee,Object.assign({link:be=>{be.proxy&&(oe.push(be),ne.push(be.proxy),sortChildren(ae,ne,oe))},unlink:be=>{const ve=oe.indexOf(be);ne.splice(ve,1),oe.splice(ve,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)},be=()=>Math.max(oe-Date.now(),0),ve=$e=>{var ke,Pe;se.value=$e,(ke=ee.onChange)==null||ke.call(ee,de.value),$e===0&&(fe(),(Pe=ee.onFinish)==null||Pe.call(ee))},ye=()=>{ne=raf(()=>{ae&&(ve(be()),se.value>0&&ye())})},_e=()=>{ne=raf(()=>{if(ae){const $e=be();(!isSameSecond($e,se.value)||$e===0)&&ve($e),se.value>0&&_e()}})},we=()=>{inBrowser&&(ee.millisecond?ye():_e())},Ae=()=>{ae||(oe=Date.now()+se.value,ae=!0,we())},Ce=($e=ee.time)=>{fe(),se.value=$e};return onBeforeUnmount(fe),onActivated(()=>{ie&&(ae=!0,ie=!1,we())}),onDeactivated(()=>{ae&&(fe(),ie=!0)}),{start:Ae,pause:fe,reset:Ce,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 be=_e=>{if(de)return;const we=unref(_e);we&&!fe&&(we.addEventListener(ee,ne,{capture:se,passive:ie}),fe=!0)},ve=_e=>{if(de)return;const we=unref(_e);we&&fe&&(we.removeEventListener(ee,ne,se),fe=!1)};onUnmounted(()=>ve(ae)),onDeactivated(()=>ve(ae)),onMountedOrActivated(()=>be(ae));let ye;return isRef(ae)&&(ye=watch(ae,(_e,we)=>{ve(we),be(_e)})),()=>{ye==null||ye(),ve(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(be=>{const ve=unref(be);return ve&&!ve.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:hasOwnProperty$1}=Object.prototype;function assignKey(ee,ne,oe){const ae=ne[oe];isDef(ae)&&(!hasOwnProperty$1.call(ee,oe)||!isObject$2(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$1(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$1):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$1(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:be}=ee;return isDef(fe)&&fe!==""&&(be||fe!==0&&fe!=="0")},ae=()=>{const{dot:fe,max:be,content:ve}=ee;if(!fe&&oe())return ne.content?ne.content():isDef(be)&&isNumeric(ve)&&+ve>+be?`${be}+`:ve},ie=fe=>fe.startsWith("-")?fe.replace("-",""):`-${fe}`,se=computed(()=>{const fe={background:ee.color};if(ee.offset){const[be,ve]=ee.offset,{position:ye}=ee,[_e,we]=ye.split("-");ne.default?(typeof ve=="number"?fe[_e]=addUnit(_e==="top"?ve:-ve):fe[_e]=_e==="top"?addUnit(ve):ie(ve),typeof be=="number"?fe[we]=addUnit(we==="left"?be:-be):fe[we]=we==="left"?addUnit(be):ie(be)):(fe.marginTop=addUnit(ve),fe.marginLeft=addUnit(be))}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$1({},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:be,color:ve}=ee,ye=isImage$1(de);return createVNode(Badge,mergeProps({dot:se,tag:ie,class:[ae.value,ye?"":`${ae.value}-${de}`],style:{color:ve,fontSize:addUnit(fe)},content:be},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$1({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$1({},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 ve;if(ee.loading?ve=ee.loadingText:ve=oe.default?oe.default():ee.text,ve)return createVNode("span",{class:bem$1A("text")},[ve])},fe=()=>{const{color:ve,plain:ye}=ee;if(ve){const _e={color:ye?ve:"white"};return ye||(_e.background=ve),ve.includes("gradient")?_e.border=0:_e.borderColor=ve,_e}},be=ve=>{ee.loading?preventDefault(ve):ee.disabled||(ne("click",ve),ae())};return()=>{const{tag:ve,type:ye,size:_e,block:we,round:Ae,plain:Ce,square:$e,loading:ke,disabled:Pe,hairline:Ee,nativeType:Oe,iconPosition:Ne}=ee,Re=[bem$1A([ye,_e,{plain:Ce,block:we,round:Ae,square:$e,loading:ke,disabled:Pe,hairline:Ee}]),{[BORDER_SURROUND]:Ee}];return createVNode(ve,{type:Oe,class:Re,style:fe(),disabled:Pe,onClick:be},{default:()=>[createVNode("div",{class:bem$1A("content")},[Ne==="left"&&se(),de(),Ne==="right"&&se()])]})}}});const Button=withInstall(stdin_default$1M),[name$1E,bem$1z]=createNamespace("action-bar-button"),actionBarButtonProps=extend$1({},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:be,text:ve,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:be,color:ye,loading:_e,disabled:we,onClick:oe},{default:()=>[ne.default?ne.default():ve]})}}});const ActionBarButton=withInstall(stdin_default$1L),[name$1D,bem$1y]=createNamespace("action-bar-icon"),actionBarIconProps=extend$1({},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:be,badgeProps:ve,iconPrefix:ye}=ee;return ne.icon?createVNode(Badge,mergeProps({dot:ie,class:bem$1y("icon"),content:se},ve),{default:ne.icon}):createVNode(Icon,{tag:"div",dot:ie,name:de,badge:se,color:fe,class:[bem$1y("icon"),be],badgeProps:ve,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),be=()=>de.value==="vertical",ve=()=>de.value==="horizontal",ye=()=>{oe.value=0,ae.value=0,ie.value=0,se.value=0,de.value="",fe.value=!0};return{move:Ae=>{const Ce=Ae.touches[0];oe.value=(Ce.clientX<0?0:Ce.clientX)-ee.value,ae.value=Ce.clientY-ne.value,ie.value=Math.abs(oe.value),se.value=Math.abs(ae.value);const $e=10;(!de.value||ie.value<$e&&se.value<$e)&&(de.value=getDirection(ie.value,se.value)),fe.value&&(ie.value>TAP_OFFSET||se.value>TAP_OFFSET)&&(fe.value=!1)},start:Ae=>{ye(),ee.value=Ae.touches[0].clientX,ne.value=Ae.touches[0].clientY},reset:ye,startX:ee,startY:ne,deltaX:oe,deltaY:ae,offsetX:ie,offsetY:se,direction:de,isVertical:be,isHorizontal:ve,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:Ae,offsetHeight:Ce,scrollTop:$e}=we;let ke="11";$e===0?ke=Ce>=Ae?"00":"01":$e+Ce>=Ae&&(ke="10"),ke!=="11"&&oe.isVertical()&&!(parseInt(ke,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))},be=()=>ne()&&de(),ve=()=>ne()&&fe();onMountedOrActivated(be),onDeactivated(ve),onBeforeUnmount(ve),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};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$1(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}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:se})}});const Overlay=withInstall(stdin_default$1J),popupProps$2=extend$1({},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(),be=useLazyRender(()=>ee.show||!ee.lazyRender),ve=computed(()=>{const De={zIndex:de.value};if(isDef(ee.duration)){const Ie=ee.position==="center"?"animationDuration":"transitionDuration";De[Ie]=`${ee.duration}s`}return De}),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=De=>{ne("clickOverlay",De),ee.closeOnClickOverlay&&_e()},Ae=()=>{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"]})},Ce=De=>{ne("clickCloseIcon",De),_e()},$e=()=>{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:Ce},null)};let ke;const Pe=()=>{ke&&clearTimeout(ke),ke=setTimeout(()=>{ne("opened")})},Ee=()=>ne("closed"),Oe=De=>ne("keydown",De),Ne=be(()=>{var De;const{round:Ie,position:Le,safeAreaInsetTop:We,safeAreaInsetBottom:He}=ee;return withDirectives(createVNode("div",mergeProps({ref:fe,style:ve.value,role:"dialog",tabindex:0,class:[bem$1w({round:Ie,[Le]:Le}),{"van-safe-area-top":We,"van-safe-area-bottom":He}],onKeydown:Oe},oe,useScopeId()),[(De=ae.default)==null?void 0:De.call(ae),$e()]),[[vShow,ee.show]])}),Re=()=>{const{position:De,transition:Ie,transitionAppear:Le}=ee,We=De==="center"?"van-fade":`van-popup-slide-${De}`;return createVNode(Transition,{name:Ie||We,appear:Le,onAfterEnter:Pe,onAfterLeave:Ee},{default:Ne})};return watch(()=>ee.show,De=>{De&&!ie&&(ye(),oe.tabindex===0&&nextTick(()=>{var Ie;(Ie=fe.value)==null||Ie.focus()})),!De&&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:()=>[Ae(),Re()]}):createVNode(Fragment,null,[Ae(),Re()])}});const Popup=withInstall(stdin_default$1I),[name$1A,bem$1v]=createNamespace("action-sheet"),actionSheetProps=extend$1({},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)},be=(_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])],ve=(_e,we)=>{const{color:Ae,loading:Ce,callback:$e,disabled:ke,className:Pe}=_e,Ee=()=>{ke||Ce||($e&&$e(_e),ee.closeOnClickAction&&ae(!1),nextTick(()=>oe("select",_e,we)))};return createVNode("button",{type:"button",style:{color:Ae},class:[bem$1v("item",{loading:Ce,disabled:ke}),Pe],onClick:Ee},[fe(_e),be(_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(ve),(_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 be=getFirstEnabledOption(de)[ne.value];ie=findOptionByValue(de,be,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$1({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 be=ref(),ve=ref(),ye=ref(0),_e=ref(0),we=useTouch(),Ae=()=>ee.options.length,Ce=()=>ee.optionHeight*(+ee.visibleOptionNum-1)/2,$e=He=>{let Be=findIndexOfEnabledOption(ee.options,He);const Fe=-Be*ee.optionHeight,Ze=()=>{Be>Ae()-1&&(Be=findIndexOfEnabledOption(ee.options,He));const qe=ee.options[Be][ee.fields.value];qe!==ee.value&&ne("change",qe)};ae&&Fe!==ye.value?fe=Ze:Ze(),ye.value=Fe},ke=()=>ee.readonly||!ee.options.length,Pe=He=>{ae||ke()||(fe=null,_e.value=DEFAULT_DURATION,$e(He),ne("clickOption",ee.options[He]))},Ee=He=>clamp(Math.round(-He/ee.optionHeight),0,Ae()-1),Oe=computed(()=>Ee(ye.value)),Ne=(He,Be)=>{const Fe=Math.abs(He/Be);He=ye.value+Fe/.003*(He<0?-1:1);const Ze=Ee(He);_e.value=+ee.swipeDuration,$e(Ze)},Re=()=>{ae=!1,_e.value=0,fe&&(fe(),fe=null)},De=He=>{if(!ke()){if(we.start(He),ae){const Be=getElementTranslateY(ve.value);ye.value=Math.min(0,Be-Ce())}_e.value=0,ie=ye.value,se=Date.now(),de=ie,fe=null}},Ie=He=>{if(ke())return;we.move(He),we.isVertical()&&(ae=!0,preventDefault(He,!0));const Be=clamp(ie+we.deltaY.value,-(Ae()*ee.optionHeight),ee.optionHeight),Fe=Ee(Be);Fe!==Oe.value&&ne("scrollInto",ee.options[Fe]),ye.value=Be;const Ze=Date.now();Ze-se>MOMENTUM_TIME&&(se=Ze,de=Be)},Le=()=>{if(ke())return;const He=ye.value-de,Be=Date.now()-se;if(BeMOMENTUM_DISTANCE){Ne(He,Be);return}const Ze=Ee(ye.value);_e.value=DEFAULT_DURATION,$e(Ze),setTimeout(()=>{ae=!1},0)},We=()=>{const He={height:`${ee.optionHeight}px`};return ee.options.map((Be,Fe)=>{const Ze=Be[ee.fields.text],{disabled:qe}=Be,ze=Be[ee.fields.value],je={role:"button",style:He,tabindex:qe?-1:0,class:[bem$1t("item",{disabled:qe,selected:ze===ee.value}),Be.className],onClick:()=>Pe(Fe)},Qe={class:"van-ellipsis",[ee.allowHtml?"innerHTML":"textContent"]:Ze};return createVNode("li",je,[oe.option?oe.option(Be,Fe):createVNode("div",Qe,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Re}),watchEffect(()=>{const He=ae?Math.floor(-ye.value/ee.optionHeight):ee.options.findIndex(Ze=>Ze[ee.fields.value]===ee.value),Be=findIndexOfEnabledOption(ee.options,He),Fe=-Be*ee.optionHeight;ae&&BecreateVNode("div",{ref:be,class:bem$1t(),onTouchstartPassive:De,onTouchend:Le,onTouchcancel:Le},[createVNode("ul",{ref:ve,style:{transform:`translate3d(0, ${ye.value+Ce()}px, 0)`,transitionDuration:`${_e.value}ms`,transitionProperty:_e.value?"all":"none"},class:bem$1t("wrapper"),onTransitionend:Re},[We()])])}});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 be;const ve=(be=ee.cancelButtonText)!=null?be:t$k("cancel");if(!(!oe.cancel&&!ve))return createVNode("button",{type:"button",class:[bem$1u("cancel"),HAPTICS_FEEDBACK],onClick:ie},[oe.cancel?oe.cancel():ve])},fe=()=>{var be;const ve=(be=ee.confirmButtonText)!=null?be:t$k("confirm");if(!(!oe.confirm&&!ve))return createVNode("button",{type:"button",class:[bem$1u("confirm"),HAPTICS_FEEDBACK],onClick:se},[oe.confirm?oe.confirm():ve])};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};/** +* @vue/shared v3.4.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const isArray$1=Array.isArray,isString$1=ee=>typeof ee=="string",isObject$1=ee=>ee!==null&&typeof ee=="object",cacheStringFunction=ee=>{const ne=Object.create(null);return oe=>ne[oe]||(ne[oe]=ee(oe))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(ee=>ee.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(ee){if(isArray$1(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){let ne="";if(!ee||isString$1(ee))return ne;for(const oe in ee){const ae=ee[oe],ie=oe.startsWith("--")?oe:hyphenate(oe);(isString$1(ae)||typeof ae=="number")&&(ne+=`${ie}:${ae};`)}return ne}function normalizeClass(ee){let ne="";if(isString$1(ee))ne=ee;else if(isArray$1(ee))for(let oe=0;oene||!de&&sene?ie=raf(ye):ae&&(ie=raf(ae))}return ye(),ve}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)),be=computed(()=>{if(de.value)return;const{fixed:we,height:Ae,width:Ce}=se;if(we)return{width:`${Ce}px`,height:`${Ae}px`}}),ve=computed(()=>{if(!se.fixed||de.value)return;const we=extend$1(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:Ae}=ee,Ce=useRect(ae),$e=getScrollTop(window);if(se.width=Ce.width,se.height=Ce.height,Ae==="top")if(we){const ke=useRect(we),Pe=ke.bottom-fe.value-se.height;se.fixed=fe.value>Ce.top&&ke.bottom>0,se.transform=Pe<0?Pe:0}else se.fixed=fe.value>Ce.top;else{const{clientHeight:ke}=document.documentElement;if(we){const Pe=useRect(we),Ee=ke-Pe.top-fe.value-se.height;se.fixed=ke-fe.valuePe.top,se.transform=Ee<0?-Ee:0}else se.fixed=ke-fe.valuese.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:be.value},[createVNode("div",{class:bem$1s({fixed:se.fixed&&!de.value}),style:ve.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:be,linkChildren:ve}=useChildren(SWIPE_KEY),ye=computed(()=>be.length),_e=computed(()=>se[ee.vertical?"height":"width"]),we=computed(()=>ee.vertical?fe.deltaY.value:fe.deltaX.value),Ae=computed(()=>se.rect?(ee.vertical?se.rect.height:se.rect.width)-_e.value*ye.value:0),Ce=computed(()=>_e.value?Math.ceil(Math.abs(Ae.value)/_e.value):ye.value),$e=computed(()=>ye.value*_e.value),ke=computed(()=>(se.active+ye.value)%ye.value),Pe=computed(()=>{const Ke=ee.vertical?"vertical":"horizontal";return fe.direction.value===Ke}),Ee=computed(()=>{const Ke={transitionDuration:`${se.swiping?0:ee.duration}ms`,transform:`translate${ee.vertical?"Y":"X"}(${+se.offset.toFixed(2)}px)`};if(_e.value){const Vt=ee.vertical?"height":"width",tn=ee.vertical?"width":"height";Ke[Vt]=`${$e.value}px`,Ke[tn]=ee[tn]?`${ee[tn]}px`:""}return Ke}),Oe=Ke=>{const{active:Vt}=se;return Ke?ee.loop?clamp(Vt+Ke,-1,ye.value):clamp(Vt+Ke,0,Ce.value):Vt},Ne=(Ke,Vt=0)=>{let tn=Ke*_e.value;ee.loop||(tn=Math.min(tn,-Ae.value));let ln=Vt-tn;return ee.loop||(ln=clamp(ln,Ae.value,0)),ln},Re=({pace:Ke=0,offset:Vt=0,emitChange:tn})=>{if(ye.value<=1)return;const{active:ln}=se,Gt=Oe(Ke),rn=Ne(Gt,Vt);if(ee.loop){if(be[0]&&rn!==Ae.value){const ct=rn0;be[ye.value-1].setOffset(ct?-$e.value:0)}}se.active=Gt,se.offset=rn,tn&&Gt!==ln&&ne("change",ke.value)},De=()=>{se.swiping=!0,se.active<=-1?Re({pace:ye.value}):se.active>=ye.value&&Re({pace:-ye.value})},Ie=()=>{De(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:-1,emitChange:!0})})},Le=()=>{De(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:1,emitChange:!0})})};let We;const He=()=>clearTimeout(We),Be=()=>{He(),+ee.autoplay>0&&ye.value>1&&(We=setTimeout(()=>{Le(),Be()},+ee.autoplay))},Fe=(Ke=+ee.initialSwipe)=>{if(!ae.value)return;const Vt=()=>{var tn,ln;if(!isHidden(ae)){const Gt={width:ae.value.offsetWidth,height:ae.value.offsetHeight};se.rect=Gt,se.width=+((tn=ee.width)!=null?tn:Gt.width),se.height=+((ln=ee.height)!=null?ln:Gt.height)}ye.value&&(Ke=Math.min(ye.value-1,Ke),Ke===-1&&(Ke=ye.value-1)),se.active=Ke,se.swiping=!0,se.offset=Ne(Ke),be.forEach(Gt=>{Gt.setOffset(0)}),Be()};isHidden(ae)?nextTick().then(Vt):Vt()},Ze=()=>Fe(se.active);let qe;const ze=Ke=>{!ee.touchable||Ke.touches.length>1||(fe.start(Ke),de=!1,qe=Date.now(),He(),De())},je=Ke=>{ee.touchable&&se.swiping&&(fe.move(Ke),Pe.value&&(!ee.loop&&(se.active===0&&we.value>0||se.active===ye.value-1&&we.value<0)||(preventDefault(Ke,ee.stopPropagation),Re({offset:we.value}),de||(ne("dragStart",{index:ke.value}),de=!0))))},Qe=()=>{if(!ee.touchable||!se.swiping)return;const Ke=Date.now()-qe,Vt=we.value/Ke;if((Math.abs(Vt)>.25||Math.abs(we.value)>_e.value/2)&&Pe.value){const ln=ee.vertical?fe.offsetY.value:fe.offsetX.value;let Gt=0;ee.loop?Gt=ln>0?we.value>0?-1:1:0:Gt=-Math[we.value>0?"ceil":"floor"](we.value/_e.value),Re({pace:Gt,emitChange:!0})}else we.value&&Re({pace:0});de=!1,se.swiping=!1,ne("dragEnd",{index:ke.value}),Be()},At=(Ke,Vt={})=>{De(),fe.reset(),doubleRaf(()=>{let tn;ee.loop&&Ke===ye.value?tn=se.active===0?0:Ke:tn=Ke%ye.value,Vt.immediate?doubleRaf(()=>{se.swiping=!1}):se.swiping=!1,Re({pace:tn-se.active,emitChange:!0})})},Rt=(Ke,Vt)=>{const tn=Vt===ke.value,ln=tn?{backgroundColor:ee.indicatorColor}:void 0;return createVNode("i",{style:ln,class:bem$1r("indicator",{active:tn})},null)},Dt=()=>{if(oe.indicator)return oe.indicator({active:ke.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(Rt)])};return useExpose({prev:Ie,next:Le,state:se,resize:Ze,swipeTo:At}),ve({size:_e,props:ee,count:ye,activeIndicator:ke}),watch(()=>ee.initialSwipe,Ke=>Fe(+Ke)),watch(ye,()=>Fe(se.active)),watch(()=>ee.autoplay,Be),watch([windowWidth,windowHeight,()=>ee.width,()=>ee.height],Ze),watch(usePageVisibility(),Ke=>{Ke==="visible"?Be():He()}),onMounted(Fe),onActivated(()=>Fe(se.active)),onPopupReopen(()=>Fe(se.active)),onDeactivated(He),onBeforeUnmount(He),useEventListener("touchmove",je,{target:ie}),()=>{var Ke;return createVNode("div",{ref:ae,class:bem$1r()},[createVNode("div",{ref:ie,style:Ee.value,class:bem$1r("track",{vertical:ee.vertical}),onTouchstartPassive:ze,onTouchend:Qe,onTouchcancel:Qe},[(Ke=oe.default)==null?void 0:Ke.call(oe)]),Dt()])}}});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 be=(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:()=>[be]}):be},de=fe=>{const be=ae.value;be&&be.state.active!==fe&&be.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 be=ref(),ve=ref(),ye=ref(),_e=ref(),we=useId(),Ae=useScrollParent(be),[Ce,$e]=useRefs(),{children:ke,linkChildren:Pe}=useChildren(TABS_KEY),Ee=reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),Oe=computed(()=>ke.length>+ee.swipeThreshold||!ee.ellipsis||ee.shrink),Ne=computed(()=>({borderColor:ee.color,background:ee.background})),Re=(Gt,rn)=>{var ct;return(ct=Gt.name)!=null?ct:rn},De=computed(()=>{const Gt=ke[Ee.currentIndex];if(Gt)return Re(Gt,Ee.currentIndex)}),Ie=computed(()=>unitToPx(ee.offsetTop)),Le=computed(()=>ee.sticky?Ie.value+ae:0),We=Gt=>{const rn=ve.value,ct=Ce.value;if(!Oe.value||!rn||!ct||!ct[Ee.currentIndex])return;const Ft=ct[Ee.currentIndex].$el,Kt=Ft.offsetLeft-(rn.offsetWidth-Ft.offsetWidth)/2;de&&de(),de=scrollLeftTo(rn,Kt,Gt?0:+ee.duration)},He=()=>{const Gt=Ee.inited;nextTick(()=>{const rn=Ce.value;if(!rn||!rn[Ee.currentIndex]||ee.type!=="line"||isHidden(be.value))return;const ct=rn[Ee.currentIndex].$el,{lineWidth:Ft,lineHeight:Kt}=ee,Zt=ct.offsetLeft+ct.offsetWidth/2,hn={width:addUnit(Ft),backgroundColor:ee.color,transform:`translateX(${Zt}px) translateX(-50%)`};if(Gt&&(hn.transitionDuration=`${ee.duration}s`),isDef(Kt)){const un=addUnit(Kt);hn.height=un,hn.borderRadius=un}Ee.lineStyle=hn})},Be=Gt=>{const rn=Gt=0&&Gt{const ct=Be(Gt);if(!isDef(ct))return;const Ft=ke[ct],Kt=Re(Ft,ct),Zt=Ee.currentIndex!==null;Ee.currentIndex!==ct&&(Ee.currentIndex=ct,rn||We(),He()),Kt!==ee.active&&(ne("update:active",Kt),Zt&&ne("change",Kt,Ft.title)),se&&!ee.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(be.value)-Ie.value))},Ze=(Gt,rn)=>{const ct=ke.find((Kt,Zt)=>Re(Kt,Zt)===Gt),Ft=ct?ke.indexOf(ct):0;Fe(Ft,rn)},qe=(Gt=!1)=>{if(ee.scrollspy){const rn=ke[Ee.currentIndex].$el;if(rn&&Ae.value){const ct=getElementTop(rn,Ae.value)-Le.value;ie=!0,fe&&fe(),fe=scrollTopTo(Ae.value,ct,Gt?0:+ee.duration,()=>{ie=!1})}}},ze=(Gt,rn,ct)=>{const{title:Ft,disabled:Kt}=ke[rn],Zt=Re(ke[rn],rn);Kt||(callInterceptor(ee.beforeChange,{args:[Zt],done:()=>{Fe(rn),qe()}}),route(Gt)),ne("clickTab",{name:Zt,title:Ft,event:ct,disabled:Kt})},je=Gt=>{se=Gt.isFixed,ne("scroll",Gt)},Qe=Gt=>{nextTick(()=>{Ze(Gt),qe(!0)})},At=()=>{for(let Gt=0;GtLe.value)return Gt===0?0:Gt-1}return ke.length-1},Rt=()=>{if(ee.scrollspy&&!ie){const Gt=At();Fe(Gt)}},Dt=()=>{if(ee.type==="line"&&ke.length)return createVNode("div",{class:bem$1p("line"),style:Ee.lineStyle},null)},Ke=()=>{var Gt,rn,ct;const{type:Ft,border:Kt,sticky:Zt}=ee,hn=[createVNode("div",{ref:Zt?void 0:ye,class:[bem$1p("wrap"),{[BORDER_TOP_BOTTOM]:Ft==="line"&&Kt}]},[createVNode("div",{ref:ve,role:"tablist",class:bem$1p("nav",[Ft,{shrink:ee.shrink,complete:Oe.value}]),style:Ne.value,"aria-orientation":"horizontal"},[(Gt=oe["nav-left"])==null?void 0:Gt.call(oe),ke.map(un=>un.renderTitle(ze)),Dt(),(rn=oe["nav-right"])==null?void 0:rn.call(oe)])]),(ct=oe["nav-bottom"])==null?void 0:ct.call(oe)];return Zt?createVNode("div",{ref:ye},[hn]):hn},Vt=()=>{He(),nextTick(()=>{var Gt,rn;We(!0),(rn=(Gt=_e.value)==null?void 0:Gt.swipeRef.value)==null||rn.resize()})};watch(()=>[ee.color,ee.duration,ee.lineWidth,ee.lineHeight],He),watch(windowWidth,Vt),watch(()=>ee.active,Gt=>{Gt!==De.value&&Ze(Gt)}),watch(()=>ke.length,()=>{Ee.inited&&(Ze(ee.active),He(),nextTick(()=>{We(!0)}))});const tn=()=>{Ze(ee.active,!0),nextTick(()=>{Ee.inited=!0,ye.value&&(ae=useRect(ye.value).height),We(!0)})},ln=(Gt,rn)=>ne("rendered",Gt,rn);return useExpose({resize:Vt,scrollTo:Qe}),onActivated(He),onPopupReopen(He),onMountedOrActivated(tn),useVisibilityChange(be,He),useEventListener("scroll",Rt,{target:Ae,passive:!0}),Pe({id:we,props:ee,setLine:He,scrollable:Oe,onRendered:ln,currentName:De,setTitleRefs:$e,scrollIntoView:We}),()=>createVNode("div",{ref:be,class:bem$1p([ee.type])},[ee.showHeader?ee.sticky?createVNode(Sticky,{container:be.value,offsetTop:Ie.value,onScroll:je},{default:()=>[Ke()]}):Ke():null,createVNode(stdin_default$1C,{ref:_e,count:ke.length,inited:Ee.inited,animated:ee.animated,duration:ee.duration,swipeable:ee.swipeable,lazyRender:ee.lazyRender,currentIndex:Ee.currentIndex,onChange:Fe},{default:()=>{var Gt;return[(Gt=oe.default)==null?void 0:Gt.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:be,activeColor:ve,inactiveColor:ye}=ee;de&&se==="card"&&(ie.borderColor=de,fe||(be?ie.backgroundColor=de:ie.color=de));const we=be?ve: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},[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 ve={},{vertical:ye}=ie.props;return ie.size.value&&(ve[ye?"height":"width"]=`${ie.size.value}px`),ae.offset&&(ve.transform=`translate${ye?"Y":"X"}(${ae.offset}px)`),ve}),fe=computed(()=>{const{loop:ve,lazyRender:ye}=ie.props;if(!ye||oe)return!0;if(!ae.mounted)return!1;const _e=ie.activeIndicator.value,we=ie.count.value-1,Ae=_e===0&&ve?we:_e-1,Ce=_e===we&&ve?0:_e+1;return oe=se.value===_e||se.value===Ae||se.value===Ce,oe}),be=ve=>{ae.offset=ve};return onMounted(()=>{nextTick(()=>{ae.mounted=!0})}),useExpose({setOffset:be}),()=>{var ve;return createVNode("div",{class:bem$1n(),style:de.value},[fe.value?(ve=ne.default)==null?void 0:ve.call(ne):null])}}});const SwipeItem=withInstall(stdin_default$1A),[name$1q,bem$1m]=createNamespace("tab"),tabProps=extend$1({},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 Ce;return(Ce=ee.name)!=null?Ce:de.value},be=()=>{ae.value=!0,se.props.lazyRender&&nextTick(()=>{se.onRendered(fe(),ee.title)})},ve=computed(()=>{const Ce=fe()===se.currentName.value;return Ce&&!ae.value&&be(),Ce}),ye=ref(""),_e=ref("");watchEffect(()=>{const{titleClass:Ce,titleStyle:$e}=ee;ye.value=Ce?normalizeClass(Ce):"",_e.value=$e&&typeof $e!="string"?stringifyStyle(normalizeStyle($e)):$e});const we=Ce=>createVNode(TabTitle,mergeProps({key:oe,id:`${se.id}-${de.value}`,ref:se.setTitleRefs(de.value),style:_e.value,class:ye.value,isActive:ve.value,controls:oe,scrollable:se.scrollable.value,activeColor:se.props.titleActiveColor,inactiveColor:se.props.titleInactiveColor,onClick:$e=>Ce(ie.proxy,de.value,$e)},pick(se.props,["type","color","shrink"]),pick(ee,["dot","badge","title","disabled","showZeroBadge"])),{title:ne.title}),Ae=ref(!ve.value);return watch(ve,Ce=>{Ce?Ae.value=!1:doubleRaf(()=>{Ae.value=!0})}),watch(()=>ee.title,()=>{se.setLine(),se.scrollIntoView()}),provide(TAB_STATUS_KEY,ve),useExpose({id:oe,renderTitle:we}),()=>{var Ce;const $e=`${se.id}-${de.value}`,{animated:ke,swipeable:Pe,scrollspy:Ee,lazyRender:Oe}=se.props;if(!ne.default&&!ke)return;const Ne=Ee||ve.value;if(ke||Pe)return createVNode(SwipeItem,{id:oe,role:"tabpanel",class:bem$1m("panel-wrapper",{inactive:Ae.value}),tabindex:ve.value?0:-1,"aria-hidden":!ve.value,"aria-labelledby":$e},{default:()=>{var Ie;return[createVNode("div",{class:bem$1m("panel")},[(Ie=ne.default)==null?void 0:Ie.call(ne)])]}});const De=ae.value||Ee||!Oe?(Ce=ne.default)==null?void 0:Ce.call(ne):null;return withDirectives(createVNode("div",{id:oe,role:"tabpanel",class:bem$1m("panel"),tabindex:Ne?0:-1,"aria-labelledby":$e},[De]),[[vShow,Ne]])}}});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$1({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,ve=>ne("update:activeTab",ve)),{children:ie,linkChildren:se}=useChildren(PICKER_GROUP_KEY);se();const de=()=>+ae.value{de()?ae.value=+ae.value+1:ne("confirm",ie.map(ve=>ve.confirm()))},be=()=>ne("cancel");return()=>{var ve,ye;let _e=(ye=(ve=oe.default)==null?void 0:ve.call(oe))==null?void 0:ye.filter(Ae=>Ae.type!==Comment$1).map(Ae=>Ae.type===Fragment?Ae.children:Ae);_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:be},pick(oe,pickerToolbarSlots)):null,createVNode(Tabs,{active:ae.value,"onUpdate:active":Ae=>ae.value=Ae,class:bem$1l("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[ee.tabs.map((Ae,Ce)=>createVNode(Tab,{title:Ae,titleClass:bem$1l("tab-title")},{default:()=>[_e==null?void 0:_e[Ce]]}))]})])}}});const pickerSharedProps=extend$1({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend$1({},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 be=computed(()=>assignDefaultFields(ee.columnsFieldNames)),ve=computed(()=>unitToPx(ee.optionHeight)),ye=computed(()=>getColumnsType(ee.columns,be.value)),_e=computed(()=>{const{columns:Be}=ee;switch(ye.value){case"multiple":return Be;case"cascade":return formatCascadeColumns(Be,be.value,ie);default:return[Be]}}),we=computed(()=>_e.value.some(Be=>Be.length)),Ae=computed(()=>_e.value.map((Be,Fe)=>findOptionByValue(Be,ie.value[Fe],be.value))),Ce=computed(()=>_e.value.map((Be,Fe)=>Be.findIndex(Ze=>Ze[be.value.value]===ie.value[Fe]))),$e=(Be,Fe)=>{if(ie.value[Be]!==Fe){const Ze=ie.value.slice(0);Ze[Be]=Fe,ie.value=Ze}},ke=()=>({selectedValues:ie.value.slice(0),selectedOptions:Ae.value,selectedIndexes:Ce.value}),Pe=(Be,Fe)=>{$e(Fe,Be),ye.value==="cascade"&&ie.value.forEach((Ze,qe)=>{const ze=_e.value[qe];isOptionExist(ze,Ze,be.value)||$e(qe,ze.length?ze[0][be.value.value]:void 0)}),nextTick(()=>{ne("change",extend$1({columnIndex:Fe},ke()))})},Ee=(Be,Fe)=>{const Ze={columnIndex:Fe,currentOption:Be};ne("clickOption",extend$1(ke(),Ze)),ne("scrollInto",Ze)},Oe=()=>{de.forEach(Fe=>Fe.stopMomentum());const Be=ke();return nextTick(()=>{ne("confirm",Be)}),Be},Ne=()=>ne("cancel",ke()),Re=()=>_e.value.map((Be,Fe)=>createVNode(stdin_default$1G,{value:ie.value[Fe],fields:be.value,options:Be,readonly:ee.readonly,allowHtml:ee.allowHtml,optionHeight:ve.value,swipeDuration:ee.swipeDuration,visibleOptionNum:ee.visibleOptionNum,onChange:Ze=>Pe(Ze,Fe),onClickOption:Ze=>Ee(Ze,Fe),onScrollInto:Ze=>{ne("scrollInto",{currentOption:Ze,columnIndex:Fe})}},{option:oe.option})),De=Be=>{if(we.value){const Fe={height:`${ve.value}px`},Ze={backgroundSize:`100% ${(Be-ve.value)/2}px`};return[createVNode("div",{class:bem$1u("mask"),style:Ze},null),createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$1u("frame")],style:Fe},null)]}},Ie=()=>{const Be=ve.value*+ee.visibleOptionNum,Fe={height:`${Be}px`};return createVNode("div",{ref:ae,class:bem$1u("columns"),style:Fe},[Re(),De(Be)])},Le=()=>{if(ee.showToolbar&&!se)return createVNode(stdin_default$1F,mergeProps(pick(ee,pickerToolbarPropKeys),{onConfirm:Oe,onCancel:Ne}),pick(oe,pickerToolbarSlots))};watch(_e,Be=>{Be.forEach((Fe,Ze)=>{Fe.length&&!isOptionExist(Fe,ie.value[Ze],be.value)&&$e(Ze,getFirstEnabledOption(Fe)[be.value.value])})},{immediate:!0});let We;return watch(()=>ee.modelValue,Be=>{!isSameValue(Be,ie.value)&&!isSameValue(Be,We)&&(ie.value=Be.slice(0),We=Be.slice(0))},{deep:!0}),watch(ie,Be=>{isSameValue(Be,ee.modelValue)||(We=Be.slice(0),ne("update:modelValue",We))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:ae}),useExpose({confirm:Oe,getSelectedOptions:()=>Ae.value}),()=>{var Be,Fe;return createVNode("div",{class:bem$1u()},[ee.toolbarPosition==="top"?Le():null,ee.loading?createVNode(Loading,{class:bem$1u("loading")},null):null,(Be=oe["columns-top"])==null?void 0:Be.call(oe),Ie(),(Fe=oe["columns-bottom"])==null?void 0:Fe.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,be=()=>{if(de)return oe.length?[makeOption(oe[0],AREA_EMPTY_CODE,fe?[]:void 0)]:[]},ve=new Map;Object.keys(se).forEach(we=>{ve.set(we.slice(0,2),makeOption(se[we],we,be()))});const ye=new Map;if(de){const we=()=>{if(fe)return oe.length?[makeOption(oe[1])]:[]};Object.keys(ae).forEach(Ae=>{const Ce=makeOption(ae[Ae],Ae,we());ye.set(Ae.slice(0,4),Ce);const $e=ve.get(Ae.slice(0,2));$e&&$e.children.push(Ce)})}fe&&Object.keys(ie).forEach(we=>{const Ae=ye.get(we.slice(0,4));Ae&&Ae.children.push(makeOption(ie[we],we))});const _e=Array.from(ve.values());if(oe.length){const we=fe?[makeOption(oe[2])]:void 0,Ae=de?[makeOption(oe[1],AREA_EMPTY_CODE,we)]:void 0;_e.unshift(makeOption(oe[0],AREA_EMPTY_CODE,Ae))}return _e}const Picker=withInstall(stdin_default$1x),[name$1o,bem$1k]=createNamespace("area"),areaProps=extend$1({},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=(...ve)=>ne("change",...ve),fe=(...ve)=>ne("cancel",...ve),be=(...ve)=>ne("confirm",...ve);return watch(ae,ve=>{const ye=ve.length?ve[ve.length-1]:"";ye&&ye!==ee.modelValue&&ne("update:modelValue",ye)},{deep:!0}),watch(()=>ee.modelValue,ve=>{if(ve){const ye=ae.value.length?ae.value[ae.value.length-1]:"";ve!==ye&&(ae.value=[`${ve.slice(0,2)}0000`,`${ve.slice(0,4)}00`,ve].slice(0,+ee.columnsNum))}else ae.value=[]},{immediate:!0}),useExpose({confirm:()=>{var ve;return(ve=ie.value)==null?void 0:ve.confirm()},getSelectedOptions:()=>{var ve;return((ve=ie.value)==null?void 0:ve.getSelectedOptions())||[]}}),()=>createVNode(Picker,mergeProps({ref:ie,modelValue:ae.value,"onUpdate:modelValue":ve=>ae.value=ve,class:bem$1k(),columns:se.value,onChange:de,onCancel:fe,onConfirm:be},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$1({},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 be;if(ne.title||isDef(ee.title)){const ve=(be=ne.title)==null?void 0:be.call(ne);return Array.isArray(ve)&&ve.length===0?void 0:createVNode("div",{class:[bem$1j("title"),ee.titleClass],style:ee.titleStyle},[ve||createVNode("span",null,[ee.title]),ae()])}},se=()=>{const be=ne.value||ne.default;if(be||isDef(ee.value))return createVNode("div",{class:[bem$1j("value"),ee.valueClass]},[be?be():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 be=ee.arrowDirection&&ee.arrowDirection!=="right"?`arrow-${ee.arrowDirection}`:"arrow";return createVNode(Icon,{name:be,class:bem$1j("right-icon")},null)}};return()=>{var be;const{tag:ve,size:ye,center:_e,border:we,isLink:Ae,required:Ce}=ee,$e=(be=ee.clickable)!=null?be:Ae,ke={center:_e,required:!!Ce,clickable:$e,borderless:!we};return ye&&(ke[ye]=!!ye),createVNode(ve,{class:bem$1j(ke),role:$e?"button":void 0,tabindex:$e?0:void 0,onClick:oe},{default:()=>{var Pe;return[de(),ie(),se(),fe(),(Pe=ne.extra)==null?void 0:Pe.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,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=ke=>ke?ae.filter(Pe=>ke.includes(Pe.name)):ae,de=ke=>new Promise((Pe,Ee)=>{const Oe=[];se(ke).reduce((Re,De)=>Re.then(()=>{if(!Oe.length)return De.validate().then(Ie=>{Ie&&Oe.push(Ie)})}),Promise.resolve()).then(()=>{Oe.length?Ee(Oe):Pe()})}),fe=ke=>new Promise((Pe,Ee)=>{const Oe=se(ke);Promise.all(Oe.map(Ne=>Ne.validate())).then(Ne=>{Ne=Ne.filter(Boolean),Ne.length?Ee(Ne):Pe()})}),be=ke=>{const Pe=ae.find(Ee=>Ee.name===ke);return Pe?new Promise((Ee,Oe)=>{Pe.validate().then(Ne=>{Ne?Oe(Ne):Ee()})}):Promise.reject()},ve=ke=>typeof ke=="string"?be(ke):ee.validateFirst?de(ke):fe(ke),ye=ke=>{typeof ke=="string"&&(ke=[ke]),se(ke).forEach(Ee=>{Ee.resetValidation()})},_e=()=>ae.reduce((ke,Pe)=>(ke[Pe.name]=Pe.getValidationStatus(),ke),{}),we=(ke,Pe)=>{ae.some(Ee=>Ee.name===ke?(Ee.$el.scrollIntoView(Pe),!0):!1)},Ae=()=>ae.reduce((ke,Pe)=>(Pe.name!==void 0&&(ke[Pe.name]=Pe.formValue.value),ke),{}),Ce=()=>{const ke=Ae();ve().then(()=>ne("submit",ke)).catch(Pe=>{ne("failed",{values:ke,errors:Pe}),ee.scrollToError&&Pe[0].name&&we(Pe[0].name)})},$e=ke=>{preventDefault(ke),Ce()};return ie({props:ee}),useExpose({submit:Ce,validate:ve,getValues:Ae,scrollToField:we,resetValidation:ye,getValidationStatus:_e}),()=>{var ke;return createVNode("form",{class:bem$1i(),onSubmit:$e},[(ke=oe.default)==null?void 0:ke.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$1(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$2(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){return ee==="number"?{type:"text",inputmode:"decimal"}:ee==="digit"?{type:"tel",inputmode:"numeric"}:{type:ee}}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,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}},fieldProps=extend$1({},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:be}=useParent(FORM_KEY),ve=()=>{var ct;return String((ct=ee.modelValue)!=null?ct:"")},ye=ct=>{if(isDef(ee[ct]))return ee[ct];if(be&&isDef(be.props[ct]))return be.props[ct]},_e=computed(()=>{const ct=ye("readonly");if(ee.clearable&&!ct){const Ft=ve()!=="",Kt=ee.clearTrigger==="always"||ee.clearTrigger==="focus"&&ie.focused;return Ft&&Kt}return!1}),we=computed(()=>fe.value&&oe.input?fe.value():ee.modelValue),Ae=computed(()=>{var ct;const Ft=ye("required");return Ft==="auto"?(ct=ee.rules)==null?void 0:ct.some(Kt=>Kt.required):Ft}),Ce=ct=>ct.reduce((Ft,Kt)=>Ft.then(()=>{if(ie.status==="failed")return;let{value:Zt}=we;if(Kt.formatter&&(Zt=Kt.formatter(Zt,Kt)),!runSyncRule(Zt,Kt)){ie.status="failed",ie.validateMessage=getRuleMessage(Zt,Kt);return}if(Kt.validator)return isEmptyValue(Zt)&&Kt.validateEmpty===!1?void 0:runRuleValidator(Zt,Kt).then(hn=>{hn&&typeof hn=="string"?(ie.status="failed",ie.validateMessage=hn):hn===!1&&(ie.status="failed",ie.validateMessage=getRuleMessage(Zt,Kt))})}),Promise.resolve()),$e=()=>{ie.status="unvalidated",ie.validateMessage=""},ke=()=>ne("endValidate",{status:ie.status,message:ie.validateMessage}),Pe=(ct=ee.rules)=>new Promise(Ft=>{$e(),ct?(ne("startValidate"),Ce(ct).then(()=>{ie.status==="failed"?(Ft({name:ee.name,message:ie.validateMessage}),ke()):(ie.status="passed",Ft(),ke())})):Ft()}),Ee=ct=>{if(be&&ee.rules){const{validateTrigger:Ft}=be.props,Kt=toArray$1(Ft).includes(ct),Zt=ee.rules.filter(hn=>hn.trigger?toArray$1(hn.trigger).includes(ct):Kt);Zt.length&&Pe(Zt)}},Oe=ct=>{var Ft;const{maxlength:Kt}=ee;if(isDef(Kt)&&getStringLength(ct)>+Kt){const Zt=ve();if(Zt&&getStringLength(Zt)===+Kt)return Zt;const hn=(Ft=se.value)==null?void 0:Ft.selectionEnd;if(ie.focused&&hn){const un=[...ct],Xe=un.length-+Kt;return un.splice(hn-Xe,Xe),un.join("")}return cutString(ct,+Kt)}return ct},Ne=(ct,Ft="onChange")=>{const Kt=ct;ct=Oe(ct);const Zt=getStringLength(Kt)-getStringLength(ct);if(ee.type==="number"||ee.type==="digit"){const un=ee.type==="number";ct=formatNumber(ct,un,un)}let hn=0;if(ee.formatter&&Ft===ee.formatTrigger){const{formatter:un,maxlength:Xe}=ee;if(ct=un(ct),isDef(Xe)&&getStringLength(ct)>+Xe&&(ct=cutString(ct,+Xe)),se.value&&ie.focused){const{selectionEnd:Nt}=se.value,Mt=cutString(Kt,Nt);hn=getStringLength(un(Mt))-getStringLength(Mt)}}if(se.value&&se.value.value!==ct)if(ie.focused){let{selectionStart:un,selectionEnd:Xe}=se.value;if(se.value.value=ct,isDef(un)&&isDef(Xe)){const Nt=getStringLength(ct);Zt?(un-=Zt,Xe-=Zt):hn&&(un+=hn,Xe+=hn),se.value.setSelectionRange(Math.min(un,Nt),Math.min(Xe,Nt))}}else se.value.value=ct;ct!==ee.modelValue&&ne("update:modelValue",ct)},Re=ct=>{ct.target.composing||Ne(ct.target.value)},De=()=>{var ct;return(ct=se.value)==null?void 0:ct.blur()},Ie=()=>{var ct;return(ct=se.value)==null?void 0:ct.focus()},Le=()=>{const ct=se.value;ee.type==="textarea"&&ee.autosize&&ct&&resizeTextarea(ct,ee.autosize)},We=ct=>{ie.focused=!0,ne("focus",ct),nextTick(Le),ye("readonly")&&De()},He=ct=>{ie.focused=!1,Ne(ve(),"onBlur"),ne("blur",ct),!ye("readonly")&&(Ee("onBlur"),nextTick(Le),resetScroll())},Be=ct=>ne("clickInput",ct),Fe=ct=>ne("clickLeftIcon",ct),Ze=ct=>ne("clickRightIcon",ct),qe=ct=>{preventDefault(ct),ne("update:modelValue",""),ne("clear",ct)},ze=computed(()=>{if(typeof ee.error=="boolean")return ee.error;if(be&&be.props.showError&&ie.status==="failed")return!0}),je=computed(()=>{const ct=ye("labelWidth"),Ft=ye("labelAlign");if(ct&&Ft!=="top")return{width:addUnit(ct)}}),Qe=ct=>{ct.keyCode===13&&(!(be&&be.props.submitOnEnter)&&ee.type!=="textarea"&&preventDefault(ct),ee.type==="search"&&De()),ne("keypress",ct)},At=()=>ee.id||`${ae}-input`,Rt=()=>ie.status,Dt=()=>{const ct=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:ct,onClick:Be},[oe.input()]);const Ft={id:At(),ref:se,name:ee.name,rows:ee.rows!==void 0?+ee.rows:void 0,class:ct,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,onBlur:He,onFocus:We,onInput:Re,onClick:Be,onChange:endComposing,onKeypress:Qe,onCompositionend:endComposing,onCompositionstart:startComposing};return ee.type==="textarea"?createVNode("textarea",Ft,null):createVNode("input",mergeProps(mapInputType(ee.type),Ft),null)},Ke=()=>{const ct=oe["left-icon"];if(ee.leftIcon||ct)return createVNode("div",{class:bem$1h("left-icon"),onClick:Fe},[ct?ct():createVNode(Icon,{name:ee.leftIcon,classPrefix:ee.iconPrefix},null)])},Vt=()=>{const ct=oe["right-icon"];if(ee.rightIcon||ct)return createVNode("div",{class:bem$1h("right-icon"),onClick:Ze},[ct?ct():createVNode(Icon,{name:ee.rightIcon,classPrefix:ee.iconPrefix},null)])},tn=()=>{if(ee.showWordLimit&&ee.maxlength){const ct=getStringLength(ve());return createVNode("div",{class:bem$1h("word-limit")},[createVNode("span",{class:bem$1h("word-num")},[ct]),createTextVNode("/"),ee.maxlength])}},ln=()=>{if(be&&be.props.showErrorMessage===!1)return;const ct=ee.errorMessage||ie.validateMessage;if(ct){const Ft=oe["error-message"],Kt=ye("errorMessageAlign");return createVNode("div",{class:bem$1h("error-message",Kt)},[Ft?Ft({message:ct}):ct])}},Gt=()=>{const ct=ye("labelWidth"),Ft=ye("labelAlign"),Kt=ye("colon")?":":"";if(oe.label)return[oe.label(),Kt];if(ee.label)return createVNode("label",{id:`${ae}-label`,for:oe.input?void 0:At(),onClick:Zt=>{preventDefault(Zt),Ie()},style:Ft==="top"&&ct?{width:addUnit(ct)}:void 0},[ee.label+Kt])},rn=()=>[createVNode("div",{class:bem$1h("body")},[Dt(),_e.value&&createVNode(Icon,{ref:de,name:ee.clearIcon,class:bem$1h("clear")},null),Vt(),oe.button&&createVNode("div",{class:bem$1h("button")},[oe.button()])]),tn(),ln()];return useExpose({blur:De,focus:Ie,validate:Pe,formValue:we,resetValidation:$e,getValidationStatus:Rt}),provide(CUSTOM_FIELD_INJECTION_KEY,{customValue:fe,resetValidation:$e,validateWithTrigger:Ee}),watch(()=>ee.modelValue,()=>{Ne(ve()),$e(),Ee("onChange"),nextTick(Le)}),onMounted(()=>{Ne(ve(),ee.formatTrigger),nextTick(Le)}),useEventListener("touchstart",qe,{target:computed(()=>{var ct;return(ct=de.value)==null?void 0:ct.$el})}),()=>{const ct=ye("disabled"),Ft=ye("labelAlign"),Kt=Ke(),Zt=()=>{const hn=Gt();return Ft==="top"?[Kt,hn].filter(Boolean):hn||[]};return createVNode(Cell,{size:ee.size,class:bem$1h({error:ze.value,disabled:ct,[`label-${Ft}`]:Ft}),center:ee.center,border:ee.border,isLink:ee.isLink,clickable:ee.clickable,titleStyle:je.value,valueClass:bem$1h("value"),titleClass:[bem$1h("label",[Ft,{required:Ae.value}]),ee.labelClass],arrowDirection:ee.arrowDirection},{icon:Kt&&Ft!=="top"?()=>Kt:null,title:Zt,value:rn,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)},be=()=>clearTimeout(ae),ve=()=>{const{icon:_e,type:we,iconSize:Ae,iconPrefix:Ce,loadingType:$e}=ee;if(_e||we==="success"||we==="fail")return createVNode(Icon,{name:_e||we,size:Ae,class:bem$1g("icon"),classPrefix:Ce},null);if(we==="loading")return createVNode(Loading,{class:bem$1g("loading"),size:Ae,type:$e},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],()=>{be(),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:be,"onUpdate:show":de},pick(ee,popupInheritProps$1)),{default:()=>[ve(),ye()]})}});function usePopupState(){const ee=reactive({show:!1}),ne=ie=>{ee.show=ie},oe=ie=>{extend$1(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$1({},defaultOptions);const defaultOptionsMap=new Map;function parseOptions(ee){return isObject$2(ee)?ee:{message:ee}}function createInstance$1(){const{instance:ee,unmount:ne}=mountComponent({setup(){const oe=ref(""),{open:ae,state:ie,close:se,toggle:de}=usePopupState(),fe=()=>{},be=()=>createVNode(stdin_default$1s,mergeProps(ie,{onClosed:fe,"onUpdate:show":de}),null);return watch(oe,ve=>{ie.message=ve}),getCurrentInstance().render=be,{open:ae,close:se,message:oe}}});return ee}function getInstance(){if(!queue.length||allowMultiple){const ee=createInstance$1();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$1({},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:be,disabled:ve,activeColor:ye,inactiveColor:_e}=ee,we=ae(),Ae={fontSize:addUnit(fe),backgroundColor:we?ye:_e};return createVNode("div",{role:"switch",class:bem$1f({on:we,loading:be,disabled:ve}),style:Ae,tabindex:ve?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=ve=>{ne("selectSearch",ve),ne("input",`${ve.address||""} ${ve.name||""}`.trim())},se=()=>{if(!ae())return;const{searchResult:ve}=ee;return ve.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=ve=>ne("blur",ve),fe=ve=>ne("focus",ve),be=ve=>ne("input",ve);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":be},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$1({},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$2(ee.areaList)&&Object.keys(ee.areaList).length),be=computed(()=>{const{province:De,city:Ie,county:Le,areaCode:We}=ie;if(We){const He=[De,Ie,Le];return De&&De===Ie&&He.splice(1,1),He.filter(Boolean).join("/")}return""}),ve=computed(()=>{var De;return((De=ee.searchResult)==null?void 0:De.length)&&de.value}),ye=De=>{de.value=De==="addressDetail",ne("focus",De)},_e=(De,Ie)=>{ne("change",{key:De,value:Ie})},we=computed(()=>{const{validator:De,telValidator:Ie}=ee,Le=(We,He)=>({validator:Be=>{if(De){const Fe=De(We,Be);if(Fe)return Fe}return Be?!0:He}});return{name:[Le("name",t$i("nameEmpty"))],tel:[Le("tel",t$i("telInvalid")),{validator:Ie,message:t$i("telInvalid")}],areaCode:[Le("areaCode",t$i("areaEmpty"))],addressDetail:[Le("addressDetail",t$i("addressEmpty"))]}}),Ae=()=>ne("save",ie),Ce=De=>{ie.addressDetail=De,ne("changeDetail",De)},$e=De=>{ie.province=De[0].text,ie.city=De[1].text,ie.county=De[2].text},ke=({selectedValues:De,selectedOptions:Ie})=>{De.some(Le=>Le===AREA_EMPTY_CODE)?showToast(t$i("areaEmpty")):(se.value=!1,$e(Ie),ne("changeArea",Ie))},Pe=()=>ne("delete",ie),Ee=De=>{ie.areaCode=De||""},Oe=()=>{setTimeout(()=>{de.value=!1})},Ne=De=>{ie.addressDetail=De},Re=()=>{if(ee.showSetDefault){const De={"right-icon":()=>createVNode(Switch,{modelValue:ie.isDefault,"onUpdate:modelValue":Ie=>ie.isDefault=Ie,onChange:Ie=>ne("changeDefault",Ie)},null)};return withDirectives(createVNode(Cell,{center:!0,border:!1,title:t$i("defaultAddress"),class:bem$1d("default")},De),[[vShow,!ve.value]])}};return useExpose({setAreaCode:Ee,setAddressDetail:Ne}),watch(()=>ee.addressInfo,De=>{extend$1(ie,DEFAULT_DATA,De),nextTick(()=>{var Ie;const Le=(Ie=ae.value)==null?void 0:Ie.getSelectedOptions();Le&&Le.every(We=>We&&We.value!==AREA_EMPTY_CODE)&&$e(Le)})},{deep:!0,immediate:!0}),()=>{const{disableArea:De}=ee;return createVNode(Form,{class:bem$1d(),onSubmit:Ae},{default:()=>{var Ie;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":!De,modelValue:be.value,rules:ee.showArea?we.value.areaCode:void 0,placeholder:ee.areaPlaceholder||t$i("area"),onFocus:()=>ye("areaCode"),onClick:()=>{ne("clickArea"),se.value=!De}},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:Oe,onFocus:()=>ye("addressDetail"),onInput:Ce,onSelectSearch:Le=>ne("selectSearch",Le)},null),(Ie=oe.default)==null?void 0:Ie.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:Pe},null)]),[[vShow,!ve.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:ke,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("tag"),tagProps={size:String,mark:Boolean,show:truthProp,type:makeStringProp("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var stdin_default$1n=defineComponent({name:name$1f,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:be,plain:ve,round:ye,size:_e,closeable:we}=ee,Ae={mark:be,plain:ve,round:ye};_e&&(Ae[_e]=_e);const Ce=we&&createVNode(Icon,{name:"cross",class:[bem$1b("close"),HAPTICS_FEEDBACK],onClick:ae},null);return createVNode("span",{style:ie(),class:bem$1b([Ae,fe])},[(de=ne.default)==null?void 0:de.call(ne),Ce])};return()=>createVNode(Transition,{name:ee.closeable?"van-fade":void 0},{default:()=>[ee.show?se():null]})}});const Tag=withInstall(stdin_default$1n),checkerProps={name:unknownProp,disabled:Boolean,iconSize:numericProp,modelValue:unknownProp,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var stdin_default$1m=defineComponent({props:extend$1({},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 Ae=ie("modelValue").length,Ce=ie("max"),$e=Ce&&Ae>=+Ce;return we||$e&&!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}}),be=computed(()=>ee.shape||ie("shape")||"round"),ve=we=>{const{target:Ae}=we,Ce=ae.value,$e=Ce===Ae||(Ce==null?void 0:Ce.contains(Ae));!se.value&&($e||!ee.labelDisabled)&&ne("toggle"),ne("click",we)},ye=()=>{var we,Ae;const{bem:Ce,checked:$e,indeterminate:ke}=ee,Pe=ee.iconSize||ie("iconSize");return createVNode("div",{ref:ae,class:Ce("icon",[be.value,{disabled:se.value,checked:$e,indeterminate:ke}]),style:be.value!=="dot"?{fontSize:addUnit(Pe)}:{width:addUnit(Pe),height:addUnit(Pe),borderColor:(we=fe.value)==null?void 0:we.borderColor}},[oe.icon?oe.icon({checked:$e,disabled:se.value}):be.value!=="dot"?createVNode(Icon,{name:ke?"minus":"success",style:fe.value},null):createVNode("div",{class:Ce("icon--dot__icon"),style:{backgroundColor:(Ae=fe.value)==null?void 0:Ae.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:ve},[we])}}});const radioProps=extend$1({},checkerProps,{shape:String}),[name$1e,bem$1a]=createNamespace("radio");var stdin_default$1l=defineComponent({name:name$1e,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$1m,mergeProps({bem:bem$1a,role:"radio",parent:ae,checked:ie(),onToggle:se},ee),pick(oe,["default","icon"]))}});const Radio=withInstall(stdin_default$1l),[name$1d,bem$19]=createNamespace("address-item");var stdin_default$1k=defineComponent({name:name$1d,props:{address:makeRequiredProp(Object),disabled:Boolean,switchable: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$19("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$19("tag")},{default:()=>[ee.defaultTagText]})},de=()=>{const{address:fe,disabled:be,switchable:ve}=ee,ye=[createVNode("div",{class:bem$19("name")},[`${fe.name} ${fe.tel}`,se()]),createVNode("div",{class:bem$19("address")},[fe.address])];return ve&&!be?createVNode(Radio,{name:fe.id,iconSize:18},{default:()=>[ye]}):ye};return()=>{var fe;const{disabled:be}=ee;return createVNode("div",{class:bem$19({disabled:be}),onClick:ae},[createVNode(Cell,{border:!1,titleClass:bem$19("title")},{title:de,"right-icon":ie}),(fe=ne.bottom)==null?void 0:fe.call(ne,extend$1({},ee.address,{disabled:be}))])}}});const[name$1c,bem$18,t$h]=createNamespace("address-list"),addressListProps={list:makeArrayProp(),modelValue:numericProp,switchable:truthProp,disabledText:String,disabledList:makeArrayProp(),showAddButton:truthProp,addButtonText:String,defaultTagText:String,rightIcon:makeStringProp("edit")};var stdin_default$1j=defineComponent({name:name$1c,props:addressListProps,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(ee,{slots:ne,emit:oe}){const ae=(de,fe,be)=>{const ve=()=>oe(be?"editDisabled":"edit",de,fe),ye=we=>oe("clickItem",de,fe,{event:we}),_e=()=>{oe(be?"selectDisabled":"select",de,fe),be||oe("update:modelValue",de.id)};return createVNode(stdin_default$1k,{key:de.id,address:de,disabled:be,switchable:ee.switchable,defaultTagText:ee.defaultTagText,rightIcon:ee.rightIcon,onEdit:ve,onClick:ye,onSelect:_e},{bottom:ne["item-bottom"],tag:ne.tag})},ie=(de,fe)=>{if(de)return de.map((be,ve)=>ae(be,ve,fe))},se=()=>ee.showAddButton?createVNode("div",{class:[bem$18("bottom"),"van-safe-area-bottom"]},[createVNode(Button,{round:!0,block:!0,type:"primary",text:ee.addButtonText||t$h("add"),class:bem$18("add"),onClick:()=>oe("add")},null)]):void 0;return()=>{var de,fe;const be=ie(ee.list),ve=ie(ee.disabledList,!0),ye=ee.disabledText&&createVNode("div",{class:bem$18("disabled-text")},[ee.disabledText]);return createVNode("div",{class:bem$18()},[(de=ne.top)==null?void 0:de.call(ne),createVNode(RadioGroup,{modelValue:ee.modelValue},{default:()=>[be]}),ye,ve,(fe=ne.default)==null?void 0:fe.call(ne),se()])}}});const AddressList=withInstall(stdin_default$1j);function throttle$1(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$1b,bem$17]=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$1i=defineComponent({name:name$1b,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(),be=computed(()=>extend$1(getZIndexStyle(ee.zIndex),{right:addUnit(ee.right),bottom:addUnit(ee.bottom)})),ve=Ae=>{var Ce;ne("click",Ae),(Ce=fe.value)==null||Ce.scrollTo({top:0,behavior:ee.immediate?"auto":"smooth"})},ye=()=>{se.value=fe.value?getScrollTop(fe.value)>=+ee.offset:!1},_e=()=>{const{target:Ae}=ee;if(typeof Ae=="string"){const Ce=document.querySelector(Ae);if(Ce)return Ce}else return Ae},we=()=>{inBrowser$1&&nextTick(()=>{fe.value=ee.target?_e():getScrollParent$1(de.value),ye()})};return useEventListener("scroll",throttle$1(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 Ae=createVNode("div",mergeProps({ref:ee.teleport?void 0:de,class:bem$17({active:se.value}),style:be.value,onClick:ve},ae),[oe.default?oe.default():createVNode(Icon,{name:"back-top",class:bem$17("icon")},null)]);return ee.teleport?[createVNode("div",{ref:de,class:bem$17("placeholder")},null),createVNode(Teleport,{to:ee.teleport},{default:()=>[Ae]})]:Ae}}});const BackTop=withInstall(stdin_default$1i);var __async=(ee,ne,oe)=>new Promise((ae,ie)=>{var se=be=>{try{fe(oe.next(be))}catch(ve){ie(ve)}},de=be=>{try{fe(oe.throw(be))}catch(ve){ie(ve)}},fe=be=>be.done?ae(be.value):Promise.resolve(be.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$1a,bem$16]=createNamespace("barrage");var stdin_default$1h=defineComponent({name:name$1a,props:barrageProps,emits:["update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=bem$16("item"),se=ref(0),de=[],fe=($e,ke=ee.delay)=>{const Pe=document.createElement("span");return Pe.className=ie,Pe.innerText=String($e),Pe.style.animationDuration=`${ee.duration}ms`,Pe.style.animationDelay=`${ke}ms`,Pe.style.animationName="van-barrage",Pe.style.animationTimingFunction="linear",Pe},be=ref(!0),ve=ref(ee.autoPlay),ye=({id:$e,text:ke},Pe)=>{var Ee;const Oe=fe(ke,be.value?Pe*ee.delay:void 0);!ee.autoPlay&&ve.value===!1&&(Oe.style.animationPlayState="paused"),(Ee=ae.value)==null||Ee.append(Oe),se.value++;const Ne=(se.value-1)%+ee.rows*Oe.offsetHeight+ +ee.top;Oe.style.top=`${Ne}px`,Oe.dataset.id=String($e),de.push(Oe),Oe.addEventListener("animationend",()=>{ne("update:modelValue",[...ee.modelValue].filter(Re=>String(Re.id)!==Oe.dataset.id))})},_e=($e,ke)=>{const Pe=new Map(ke.map(Ee=>[Ee.id,Ee]));$e.forEach((Ee,Oe)=>{Pe.has(Ee.id)?Pe.delete(Ee.id):ye(Ee,Oe)}),Pe.forEach(Ee=>{const Oe=de.findIndex(Ne=>Ne.dataset.id===String(Ee.id));Oe>-1&&(de[Oe].remove(),de.splice(Oe,1))}),be.value=!1};watch(()=>ee.modelValue.slice(),($e,ke)=>_e($e??[],ke??[]),{deep:!0});const we=ref({});return onMounted(()=>__async(this,null,function*(){var $e;we.value["--move-distance"]=`-${($e=ae.value)==null?void 0:$e.offsetWidth}px`,yield nextTick(),_e(ee.modelValue,[])})),useExpose({play:()=>{ve.value=!0,de.forEach($e=>{$e.style.animationPlayState="running"})},pause:()=>{ve.value=!1,de.forEach($e=>{$e.style.animationPlayState="paused"})}}),()=>{var $e;return createVNode("div",{class:bem$16(),ref:ae,style:we.value},[($e=oe.default)==null?void 0:$e.call(oe)])}}});const Barrage=withInstall(stdin_default$1h),[name$19,bem$15,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}function getYearByOffset(ee,ne){const oe=cloneDate(ee);return oe.setFullYear(oe.getFullYear()+ne),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$1({},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 be=padZero(ee+fe);return ae(oe,{text:be,value:be})});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$18]=createNamespace("calendar-day");var stdin_default$1g=defineComponent({name:name$18,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:ve,index:ye,color:_e,offset:we,rowHeight:Ae}=ee,Ce={height:Ae};if(ve.type==="placeholder")return Ce.width="100%",Ce;if(ye===0&&(Ce.marginLeft=`${100*we/7}%`),_e)switch(ve.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":Ce.background=_e;break;case"middle":Ce.color=_e;break}return we+(((be=ve.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$15("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$15("bottom-info")},[oe["bottom-info"]?oe["bottom-info"](ee.item):be])},fe=()=>{const{item:be,color:ve,rowHeight:ye}=ee,{type:_e,text:we}=be,Ae=[se(),we,de()];return _e==="selected"?createVNode("div",{class:bem$15("selected-day"),style:{width:ye,height:ye,background:ve}},[Ae]):Ae};return()=>{const{type:be,className:ve}=ee.item;return be==="placeholder"?createVNode("div",{class:bem$15("day"),style:ae.value},null):createVNode("div",{role:"gridcell",style:ae.value,class:[bem$15("day",be),ve],tabindex:be==="disabled"?void 0:-1,onClick:ie},[fe()])}}});const[name$17]=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$1f=defineComponent({name:name$17,props:calendarMonthProps,emits:["click","clickDisabledDate"],setup(ee,{emit:ne,slots:oe}){const[ae,ie]=useToggle(),se=ref(),de=ref(),fe=useHeight(de),be=computed(()=>formatMonthTitle(ee.date)),ve=computed(()=>addUnit(ee.rowHeight)),ye=computed(()=>{const He=ee.date.getDate(),Fe=(ee.date.getDay()-He%7+8)%7;return ee.firstDayOfWeek?(Fe+7-ee.firstDayOfWeek)%7:Fe}),_e=computed(()=>getMonthEndDay(ee.date.getFullYear(),ee.date.getMonth()+1)),we=computed(()=>ae.value||!ee.lazyRender),Ae=()=>be.value,Ce=He=>{const Be=Fe=>ee.currentDate.some(Ze=>compareDay(Ze,Fe)===0);if(Be(He)){const Fe=getPrevDay(He),Ze=getNextDay(He),qe=Be(Fe),ze=Be(Ze);return qe&&ze?"multiple-middle":qe?"end":ze?"start":"multiple-selected"}return""},$e=He=>{const[Be,Fe]=ee.currentDate;if(!Be)return"";const Ze=compareDay(He,Be);if(!Fe)return Ze===0?"start":"";const qe=compareDay(He,Fe);return ee.allowSameDay&&Ze===0&&qe===0?"start-end":Ze===0?"start":qe===0?"end":Ze>0&&qe<0?"middle":""},ke=He=>{const{type:Be,minDate:Fe,maxDate:Ze,currentDate:qe}=ee;if(Fe&&compareDay(He,Fe)<0||Ze&&compareDay(He,Ze)>0)return"disabled";if(qe===null)return"";if(Array.isArray(qe)){if(Be==="multiple")return Ce(He);if(Be==="range")return $e(He)}else if(Be==="single")return compareDay(He,qe)===0?"selected":"";return""},Pe=He=>{if(ee.type==="range"){if(He==="start"||He==="end")return t$g(He);if(He==="start-end")return`${t$g("start")}/${t$g("end")}`}},Ee=()=>{if(ee.showMonthTitle)return createVNode("div",{class:bem$15("month-title")},[oe["month-title"]?oe["month-title"]({date:ee.date,text:be.value}):be.value])},Oe=()=>{if(ee.showMark&&we.value)return createVNode("div",{class:bem$15("month-mark")},[ee.date.getMonth()+1])},Ne=computed(()=>{const He=Math.ceil((_e.value+ye.value)/7);return Array(He).fill({type:"placeholder"})}),Re=computed(()=>{const He=[],Be=ee.date.getFullYear(),Fe=ee.date.getMonth();for(let Ze=1;Ze<=_e.value;Ze++){const qe=new Date(Be,Fe,Ze),ze=ke(qe);let je={date:qe,type:ze,text:Ze,bottomInfo:Pe(ze)};ee.formatter&&(je=ee.formatter(je)),He.push(je)}return He}),De=computed(()=>Re.value.filter(He=>He.type==="disabled")),Ie=(He,Be)=>{if(se.value){const Fe=useRect(se.value),Ze=Ne.value.length,ze=(Math.ceil((Be.getDate()+ye.value)/7)-1)*Fe.height/Ze;setScrollTop(He,Fe.top+ze+He.scrollTop-useRect(He).top)}},Le=(He,Be)=>createVNode(stdin_default$1g,{item:He,index:Be,color:ee.color,offset:ye.value,rowHeight:ve.value,onClick:Fe=>ne("click",Fe),onClickDisabledDate:Fe=>ne("clickDisabledDate",Fe)},pick(oe,["top-info","bottom-info"])),We=()=>createVNode("div",{ref:se,role:"grid",class:bem$15("days")},[Oe(),(we.value?Re:Ne).value.map(Le)]);return useExpose({getTitle:Ae,getHeight:()=>fe.value,setVisible:ie,scrollToDate:Ie,disabledDays:De}),()=>createVNode("div",{class:bem$15("month"),ref:de},[Ee(),We()])}});const[name$16]=createNamespace("calendar-header");var stdin_default$1e=defineComponent({name:name$16,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(()=>{const Ae=getPrevMonth(ee.date);return ee.minDate&&Ae{const Ae=getPrevYear(ee.date);return ee.minDate&&Ae{const Ae=getNextMonth(ee.date);return ee.maxDate&&Ae>ee.maxDate}),de=computed(()=>{const Ae=getNextYear(ee.date);return ee.maxDate&&Ae>ee.maxDate}),fe=()=>{if(ee.showTitle){const Ae=ee.title||t$g("title"),Ce=ne.title?ne.title():Ae;return createVNode("div",{class:bem$15("header-title")},[Ce])}},be=Ae=>oe("clickSubtitle",Ae),ve=Ae=>oe("panelChange",Ae),ye=Ae=>{const Ce=ee.switchMode==="year-month",$e=ne[Ae?"next-month":"prev-month"],ke=ne[Ae?"next-year":"prev-year"],Pe=Ae?se.value:ae.value,Ee=Ae?de.value:ie.value,Oe=Ae?"arrow":"arrow-left",Ne=Ae?"arrow-double-right":"arrow-double-left",Re=()=>ve((Ae?getNextMonth:getPrevMonth)(ee.date)),De=()=>ve((Ae?getNextYear:getPrevYear)(ee.date)),Ie=createVNode("view",{class:bem$15("header-action",{disabled:Pe}),onClick:Pe?void 0:Re},[$e?$e({disabled:Pe}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!Pe},name:Oe},null)]),Le=Ce&&createVNode("view",{class:bem$15("header-action",{disabled:Ee}),onClick:Ee?void 0:De},[ke?ke({disabled:Ee}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!Ee},name:Ne},null)]);return Ae?[Ie,Le]:[Le,Ie]},_e=()=>{if(ee.showSubtitle){const Ae=ne.subtitle?ne.subtitle({date:ee.date,text:ee.subtitle}):ee.subtitle,Ce=ee.switchMode!=="none";return createVNode("div",{class:bem$15("header-subtitle",{"with-swicth":Ce}),onClick:be},[Ce?[ye(),createVNode("div",{class:bem$15("header-subtitle-text")},[Ae]),ye(!0)]:Ae])}},we=()=>{const{firstDayOfWeek:Ae}=ee,Ce=t$g("weekdays"),$e=[...Ce.slice(Ae,7),...Ce.slice(0,Ae)];return createVNode("div",{class:bem$15("weekdays")},[$e.map(ke=>createVNode("span",{class:bem$15("weekday")},[ke]))])};return()=>createVNode("div",{class:bem$15("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$1},maxDate:{type:Date,validator:isDate$1},firstDayOfWeek:{type:numericProp,default:0,validator:ee=>ee>=0&&ee<=6}};var stdin_default$1d=defineComponent({name:name$19,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=(Ke,Vt=ie.value,tn=se.value)=>Vt&&compareDay(Ke,Vt)===-1?Vt:tn&&compareDay(Ke,tn)===1?tn:Ke,fe=(Ke=ee.defaultDate)=>{const{type:Vt,allowSameDay:tn}=ee;if(Ke===null)return Ke;const ln=getToday();if(Vt==="range"){Array.isArray(Ke)||(Ke=[]);const Gt=ie.value,rn=se.value,ct=de(Ke[0]||ln,Gt,rn?tn?rn:getPrevDay(rn):void 0),Ft=de(Ke[1]||(tn?ln:getNextDay(ln)),Gt?tn?Gt:getNextDay(Gt):void 0);return[ct,Ft]}return Vt==="multiple"?Array.isArray(Ke)?Ke.map(Gt=>de(Gt)):[de(ln)]:((!Ke||Array.isArray(Ke))&&(Ke=ln),de(Ke))},be=()=>{const Ke=Array.isArray(_e.value)?_e.value[0]:_e.value;return Ke||de(getToday())};let ve;const ye=ref(),_e=ref(fe()),we=ref(be()),Ae=ref(),[Ce,$e]=useRefs(),ke=computed(()=>ee.firstDayOfWeek?+ee.firstDayOfWeek%7:0),Pe=computed(()=>{const Ke=[];if(!ie.value||!se.value)return Ke;const Vt=new Date(ie.value);Vt.setDate(1);do Ke.push(new Date(Vt)),Vt.setMonth(Vt.getMonth()+1);while(compareMonth(Vt,se.value)!==1);return Ke}),Ee=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}),Oe=()=>_e.value,Ne=()=>{const Ke=getScrollTop(ye.value),Vt=Ke+ve,tn=Pe.value.map((Ft,Kt)=>Ce.value[Kt].getHeight()),ln=tn.reduce((Ft,Kt)=>Ft+Kt,0);if(Vt>ln&&Ke>0)return;let Gt=0,rn;const ct=[-1,-1];for(let Ft=0;Ft=Ke&&(ct[1]=Ft,rn||(rn=Kt,ct[0]=Ft),Ce.value[Ft].showed||(Ce.value[Ft].showed=!0,ne("monthShow",{date:Kt.date,title:Kt.getTitle()}))),Gt+=tn[Ft]}Pe.value.forEach((Ft,Kt)=>{const Zt=Kt>=ct[0]-1&&Kt<=ct[1]+1;Ce.value[Kt].setVisible(Zt)}),rn&&(Ae.value=rn)},Re=Ke=>{ae.value?we.value=Ke:raf(()=>{Pe.value.some((Vt,tn)=>compareMonth(Vt,Ke)===0?(ye.value&&Ce.value[tn].scrollToDate(ye.value,Ke),!0):!1),Ne()})},De=()=>{if(!(ee.poppable&&!ee.show))if(_e.value){const Ke=ee.type==="single"?_e.value:_e.value[0];isDate$1(Ke)&&Re(Ke)}else ae.value||raf(Ne)},Ie=()=>{ee.poppable&&!ee.show||(ae.value||raf(()=>{ve=Math.floor(useRect(ye).height)}),De())},Le=(Ke=fe())=>{_e.value=Ke,De()},We=Ke=>{const{maxRange:Vt,rangePrompt:tn,showRangePrompt:ln}=ee;return Vt&&calcDateNum(Ke)>+Vt?(ln&&showToast(tn||t$g("rangePrompt",Vt)),ne("overRange"),!1):!0},He=Ke=>{we.value=Ke,ne("panelChange",{date:Ke})},Be=()=>{var Ke;return ne("confirm",(Ke=_e.value)!=null?Ke:cloneDates(_e.value))},Fe=(Ke,Vt)=>{const tn=ln=>{_e.value=ln,ne("select",cloneDates(ln))};if(Vt&&ee.type==="range"&&!We(Ke)){tn([Ke[0],getDayByOffset(Ke[0],+ee.maxRange-1)]);return}tn(Ke),Vt&&!ee.showConfirm&&Be()},Ze=(Ke,Vt,tn)=>{var ln;return(ln=Ke.find(Gt=>compareDay(Vt,Gt.date)===-1&&compareDay(Gt.date,tn)===-1))==null?void 0:ln.date},qe=computed(()=>Ce.value.reduce((Ke,Vt)=>{var tn,ln;return Ke.push(...(ln=(tn=Vt.disabledDays)==null?void 0:tn.value)!=null?ln:[]),Ke},[])),ze=Ke=>{if(ee.readonly||!Ke.date)return;const{date:Vt}=Ke,{type:tn}=ee;if(tn==="range"){if(!_e.value){Fe([Vt]);return}const[ln,Gt]=_e.value;if(ln&&!Gt){const rn=compareDay(Vt,ln);if(rn===1){const ct=Ze(qe.value,ln,Vt);if(ct){const Ft=getPrevDay(ct);compareDay(ln,Ft)===-1?Fe([ln,Ft]):Fe([Vt])}else Fe([ln,Vt],!0)}else rn===-1?Fe([Vt]):ee.allowSameDay&&Fe([Vt,Vt],!0)}else Fe([Vt])}else if(tn==="multiple"){if(!_e.value){Fe([Vt]);return}const ln=_e.value,Gt=ln.findIndex(rn=>compareDay(rn,Vt)===0);if(Gt!==-1){const[rn]=ln.splice(Gt,1);ne("unselect",cloneDate(rn))}else ee.maxRange&&ln.length>=+ee.maxRange?showToast(ee.rangePrompt||t$g("rangePrompt",ee.maxRange)):Fe([...ln,Vt])}else Fe(Vt,!0)},je=Ke=>ne("update:show",Ke),Qe=(Ke,Vt)=>{const tn=Vt!==0||!ee.showSubtitle;return createVNode(stdin_default$1f,mergeProps({ref:ae.value?Ae:$e(Vt),date:Ke,currentDate:_e.value,showMonthTitle:tn,firstDayOfWeek:ke.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:ln=>ne("clickDisabledDate",ln)}),pick(oe,["top-info","bottom-info","month-title"]))},At=()=>{if(oe.footer)return oe.footer();if(ee.showConfirm){const Ke=oe["confirm-text"],Vt=Ee.value,tn=Vt?ee.confirmDisabledText:ee.confirmText;return createVNode(Button,{round:!0,block:!0,type:"primary",color:ee.color,class:bem$15("confirm"),disabled:Vt,nativeType:"button",onClick:Be},{default:()=>[Ke?Ke({disabled:Vt}):tn||t$g("confirm")]})}},Rt=()=>createVNode("div",{class:[bem$15("footer"),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[At()]),Dt=()=>{var Ke,Vt;return createVNode("div",{class:bem$15()},[createVNode(stdin_default$1e,{date:(Ke=Ae.value)==null?void 0:Ke.date,maxDate:se.value,minDate:ie.value,title:ee.title,subtitle:(Vt=Ae.value)==null?void 0:Vt.getTitle(),showTitle:ee.showTitle,showSubtitle:ee.showSubtitle,switchMode:ee.switchMode,firstDayOfWeek:ke.value,onClickSubtitle:tn=>ne("clickSubtitle",tn),onPanelChange:He},pick(oe,["title","subtitle","prev-month","prev-year","next-month","next-year"])),createVNode("div",{ref:ye,class:bem$15("body"),onScroll:ae.value?void 0:Ne},[ae.value?Qe(we.value,0):Pe.value.map(Qe)]),Rt()])};return watch(()=>ee.show,Ie),watch(()=>[ee.type,ee.minDate,ee.maxDate,ee.switchMode],()=>Le(fe(_e.value))),watch(()=>ee.defaultDate,(Ke=null)=>{_e.value=Ke,De()}),useExpose({reset:Le,scrollToDate:Re,getSelectedDate:Oe}),onMountedOrActivated(Ie),()=>ee.poppable?createVNode(Popup,{show:ee.show,class:bem$15("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":je},{default:Dt}):Dt()}});const Calendar=withInstall(stdin_default$1d),[name$15,bem$14]=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$1c=defineComponent({name:name$15,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 ke={width:addUnit(ee.width),height:addUnit(ee.height)};return isDef(ee.radius)&&(ke.overflow="hidden",ke.borderRadius=addUnit(ee.radius)),ke});watch(()=>ee.src,()=>{ae.value=!1,ie.value=!0});const be=ke=>{ie.value&&(ie.value=!1,ne("load",ke))},ve=()=>{const ke=new Event("load");Object.defineProperty(ke,"target",{value:se.value,enumerable:!0}),be(ke)},ye=ke=>{ae.value=!0,ie.value=!1,ne("error",ke)},_e=(ke,Pe,Ee)=>Ee?Ee():createVNode(Icon,{name:ke,size:ee.iconSize,class:Pe,classPrefix:ee.iconPrefix},null),we=()=>{if(ie.value&&ee.showLoading)return createVNode("div",{class:bem$14("loading")},[_e(ee.loadingIcon,bem$14("loading-icon"),oe.loading)]);if(ae.value&&ee.showError)return createVNode("div",{class:bem$14("error")},[_e(ee.errorIcon,bem$14("error-icon"),oe.error)])},Ae=()=>{if(ae.value||!ee.src)return;const ke={alt:ee.alt,class:bem$14("img"),style:{objectFit:ee.fit,objectPosition:ee.position},crossorigin:ee.crossorigin,referrerpolicy:ee.referrerpolicy};return ee.lazyLoad?withDirectives(createVNode("img",mergeProps({ref:se},ke),null),[[resolveDirective("lazy"),ee.src]]):createVNode("img",mergeProps({ref:se,src:ee.src,onLoad:be,onError:ye},ke),null)},Ce=({el:ke})=>{const Pe=()=>{ke===se.value&&ie.value&&ve()};se.value?Pe():nextTick(Pe)},$e=({el:ke})=>{ke===se.value&&!ae.value&&ye()};return de&&inBrowser$1&&(de.$on("loaded",Ce),de.$on("error",$e),onBeforeUnmount(()=>{de.$off("loaded",Ce),de.$off("error",$e)})),onMounted(()=>{nextTick(()=>{var ke;(ke=se.value)!=null&&ke.complete&&!ee.lazyLoad&&ve()})}),()=>{var ke;return createVNode("div",{class:bem$14({round:ee.round,block:ee.block}),style:fe.value},[Ae(),we(),(ke=oe.default)==null?void 0:ke.call(oe)])}}});const Image$1=withInstall(stdin_default$1c),[name$14,bem$13]=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$1b=defineComponent({name:name$14,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$13("title"),"van-multi-ellipsis--l2"]},[ee.title])},ie=()=>{if(ne.tag||ee.tag)return createVNode("div",{class:bem$13("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$13("thumb"),onClick:ve=>oe("clickThumb",ve)},[se(),ie()])},fe=()=>{if(ne.desc)return ne.desc();if(ee.desc)return createVNode("div",{class:[bem$13("desc"),"van-ellipsis"]},[ee.desc])},be=()=>{const ve=ee.price.toString().split(".");return createVNode("div",null,[createVNode("span",{class:bem$13("price-currency")},[ee.currency]),createVNode("span",{class:bem$13("price-integer")},[ve[0]]),createTextVNode("."),createVNode("span",{class:bem$13("price-decimal")},[ve[1]])])};return()=>{var ve,ye,_e;const we=ne.num||isDef(ee.num),Ae=ne.price||isDef(ee.price),Ce=ne["origin-price"]||isDef(ee.originPrice),$e=we||Ae||Ce||ne.bottom,ke=Ae&&createVNode("div",{class:bem$13("price")},[ne.price?ne.price():be()]),Pe=Ce&&createVNode("div",{class:bem$13("origin-price")},[ne["origin-price"]?ne["origin-price"]():`${ee.currency} ${ee.originPrice}`]),Ee=we&&createVNode("div",{class:bem$13("num")},[ne.num?ne.num():`x${ee.num}`]),Oe=ne.footer&&createVNode("div",{class:bem$13("footer")},[ne.footer()]),Ne=$e&&createVNode("div",{class:bem$13("bottom")},[(ve=ne["price-top"])==null?void 0:ve.call(ne),ke,Pe,Ee,(ye=ne.bottom)==null?void 0:ye.call(ne)]);return createVNode("div",{class:bem$13()},[createVNode("div",{class:bem$13("header")},[de(),createVNode("div",{class:bem$13("content",{centered:ee.centered})},[createVNode("div",null,[ae(),fe(),(_e=ne.tags)==null?void 0:_e.call(ne)]),Ne])]),Oe])}}});const Card=withInstall(stdin_default$1b),[name$13,bem$12,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$1a=defineComponent({name:name$13,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:be,children:ve}=extend$1({text:"text",value:"value",children:"children"},ee.fieldNames),ye=(Re,De)=>{for(const Ie of Re){if(Ie[be]===De)return[Ie];if(Ie[ve]){const Le=ye(Ie[ve],De);if(Le)return[Ie,...Le]}}},_e=()=>{const{options:Re,modelValue:De}=ee;if(De!==void 0){const Ie=ye(Re,De);if(Ie){let Le=Re;ae.value=Ie.map(We=>{const He={options:Le,selected:We},Be=Le.find(Fe=>Fe[be]===We[be]);return Be&&(Le=Be[ve]),He}),Le&&ae.value.push({options:Le,selected:null}),nextTick(()=>{ie.value=ae.value.length-1});return}}ae.value=[{options:Re,selected:null}]},we=(Re,De)=>{if(Re.disabled)return;if(ae.value[De].selected=Re,ae.value.length>De+1&&(ae.value=ae.value.slice(0,De+1)),Re[ve]){const We={options:Re[ve],selected:null};ae.value[De+1]?ae.value[De+1]=We:ae.value.push(We),nextTick(()=>{ie.value++})}const Ie=ae.value.map(We=>We.selected).filter(Boolean);oe("update:modelValue",Re[be]);const Le={value:Re[be],tabIndex:De,selectedOptions:Ie};oe("change",Le),Re[ve]||oe("finish",Le)},Ae=()=>oe("close"),Ce=({name:Re,title:De})=>oe("clickTab",Re,De),$e=()=>ee.showHeader?createVNode("div",{class:bem$12("header")},[createVNode("h2",{class:bem$12("title")},[ne.title?ne.title():ee.title]),ee.closeable?createVNode(Icon,{name:ee.closeIcon,class:[bem$12("close-icon"),HAPTICS_FEEDBACK],onClick:Ae},null):null]):null,ke=(Re,De,Ie)=>{const{disabled:Le}=Re,We=!!(De&&Re[be]===De[be]),He=Re.color||(We?ee.activeColor:void 0),Be=ne.option?ne.option({option:Re,selected:We}):createVNode("span",null,[Re[fe]]);return createVNode("li",{ref:We?de(Ie):void 0,role:"menuitemradio",class:[bem$12("option",{selected:We,disabled:Le}),Re.className],style:{color:He},tabindex:Le?void 0:We?0:-1,"aria-checked":We,"aria-disabled":Le||void 0,onClick:()=>we(Re,Ie)},[Be,We?createVNode(Icon,{name:"success",class:bem$12("selected-icon")},null):null])},Pe=(Re,De,Ie)=>createVNode("ul",{role:"menu",class:bem$12("options")},[Re.map(Le=>ke(Le,De,Ie))]),Ee=(Re,De)=>{const{options:Ie,selected:Le}=Re,We=ee.placeholder||t$f("select"),He=Le?Le[fe]:We;return createVNode(Tab,{title:He,titleClass:bem$12("tab",{unselected:!Le})},{default:()=>{var Be,Fe;return[(Be=ne["options-top"])==null?void 0:Be.call(ne,{tabIndex:De}),Pe(Ie,Le,De),(Fe=ne["options-bottom"])==null?void 0:Fe.call(ne,{tabIndex:De})]}})},Oe=()=>createVNode(Tabs,{active:ie.value,"onUpdate:active":Re=>ie.value=Re,shrink:!0,animated:!0,class:bem$12("tabs"),color:ee.activeColor,swipeable:ee.swipeable,onClickTab:Ce},{default:()=>[ae.value.map(Ee)]}),Ne=Re=>{const De=Re.parentElement;De&&(De.scrollTop=Re.offsetTop-(De.offsetHeight-Re.offsetHeight)/2)};return _e(),watch(ie,Re=>{const De=se.value[Re];De&&Ne(De)}),watch(()=>ee.options,_e,{deep:!0}),watch(()=>ee.modelValue,Re=>{Re!==void 0&&ae.value.map(Ie=>{var Le;return(Le=Ie.selected)==null?void 0:Le[be]}).includes(Re)||_e()}),()=>createVNode("div",{class:bem$12()},[$e(),Oe()])}});const Cascader=withInstall(stdin_default$1a),[name$12,bem$11]=createNamespace("cell-group"),cellGroupProps={title:String,inset:Boolean,border:truthProp};var stdin_default$19=defineComponent({name:name$12,inheritAttrs:!1,props:cellGroupProps,setup(ee,{slots:ne,attrs:oe}){const ae=()=>{var se;return createVNode("div",mergeProps({class:[bem$11({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$11("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$19),[name$11,bem$10]=createNamespace("checkbox-group"),checkboxGroupProps={max:numericProp,shape:makeStringProp("round"),disabled:Boolean,iconSize:numericProp,direction:String,modelValue:makeArrayProp(),checkedColor:String},CHECKBOX_GROUP_KEY=Symbol(name$11);var stdin_default$18=defineComponent({name:name$11,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:be,skipDisabled:ve}=fe,_e=ae.filter(we=>we.props.bindGroup?we.props.disabled&&ve?we.checked.value:be??!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$10([ee.direction])},[(fe=oe.default)==null?void 0:fe.call(oe)])}}});const[name$10,bem$$]=createNamespace("checkbox"),checkboxProps=extend$1({},checkerProps,{shape:String,bindGroup:truthProp,indeterminate:{type:Boolean,default:null}});var stdin_default$17=defineComponent({name:name$10,props:checkboxProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{parent:ae}=useParent(CHECKBOX_GROUP_KEY),ie=fe=>{const{name:be}=ee,{max:ve,modelValue:ye}=ae.props,_e=ye.slice();if(fe)!(ve&&_e.length>=+ve)&&!_e.includes(be)&&(_e.push(be),ee.bindGroup&&ae.updateValue(_e));else{const we=_e.indexOf(be);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$1m,mergeProps({bem:bem$$,role:"checkbox",parent:ae,checked:se.value,onToggle:de},ee),pick(oe,["default","icon"]))}});const Checkbox=withInstall(stdin_default$17),CheckboxGroup=withInstall(stdin_default$18),[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 Ae=Date.now(),Ce=ee.currentRate,$e=format$1(_e),ke=Math.abs((Ce-$e)*1e3/+ee.speed),Pe=()=>{const Ee=Date.now(),Ne=Math.min((Ee-Ae)/ke,1)*($e-Ce)+Ce;ne("update:currentRate",format$1(parseFloat(Ne.toFixed(1)))),($e>Ce?Ne<$e:Ne>$e)&&(we=raf(Pe))};ee.speed?(we&&cancelRaf(we),we=raf(Pe)):ne("update:currentRate",$e)},{immediate:!0});const fe=()=>{const{strokeWidth:we,currentRate:Ae,strokeLinecap:Ce}=ee,$e=3140*Ae/100,ke=isObject$2(ee.color)?`url(#${ae})`:ee.color,Pe={stroke:ke,strokeWidth:`${+we+1}px`,strokeLinecap:Ce,strokeDasharray:`${$e}px 3140px`};return createVNode("path",{d:se.value,style:Pe,class:bem$_("hover"),stroke:ke},null)},be=()=>{const _e={fill:ee.fill,stroke:ee.layerColor,strokeWidth:`${ee.strokeWidth}px`};return createVNode("path",{class:bem$_("layer"),style:_e,d:se.value},null)},ve=()=>{const{color:_e}=ee;if(!isObject$2(_e))return;const we=Object.keys(_e).sort((Ae,Ce)=>parseFloat(Ae)-parseFloat(Ce)).map((Ae,Ce)=>createVNode("stop",{key:Ce,offset:Ae,"stop-color":_e[Ae]},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},[ve(),be(),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 be=0;return oe.forEach((ve,ye)=>{be+=Number(ve.span),be>24?(fe.push([ye]),be-=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 be=[];return fe&&ie.value.forEach(ve=>{const ye=fe*(ve.length-1)/ve.length;ve.forEach((_e,we)=>{if(we===0)be.push({right:ye});else{const Ae=fe-be[_e-1].right,Ce=ye-Ae;be.push({left:Ae,right:Ce})}})}),be}),de=computed(()=>{const{gutter:fe}=ee,be=[];if(Array.isArray(fe)&&fe.length>1){const ve=Number(fe[1])||0;if(ve<=0)return be;ie.value.forEach((ye,_e)=>{_e!==ie.value.length-1&&ye.forEach(()=>{be.push({bottom:ve})})})}return be});return ae({spaces:se,verticalSpaces:de}),()=>{const{tag:fe,wrap:be,align:ve,justify:ye}=ee;return createVNode(fe,{class:bem$Z({[`align-${ve}`]:ve,[`justify-${ye}`]:ye,nowrap:!be})},{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:ve,right:ye}=se.value[ae.value];fe={paddingLeft:ve?`${ve}px`:null,paddingRight:ye?`${ye}px`:null}}const{bottom:be}=de.value[ae.value]||{};return extend$1(fe,{marginBottom:be?`${be}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 be;return[(be=ne.default)==null?void 0:be.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=ve=>{ne("change",ve),ne("update:modelValue",ve)},de=(ve,ye)=>{const{accordion:_e,modelValue:we}=ee;se(_e?ve===we?"":ve:ye?we.concat(ve):we.filter(Ae=>Ae!==ve))},fe=(ve={})=>{if(ee.accordion)return;typeof ve=="boolean"&&(ve={expanded:ve});const{expanded:ye,skipDisabled:_e}=ve,Ae=ie.filter(Ce=>Ce.disabled&&_e?Ce.expanded.value:ye??!Ce.expanded.value).map(Ce=>Ce.itemName.value);se(Ae)},be=ve=>{const{accordion:ye,modelValue:_e}=ee;return ye?_e===ve:_e.includes(ve)};return useExpose({toggleAll:fe}),ae({toggle:de,isExpanded:be}),()=>{var ve;return createVNode("div",{class:[bem$X(),{[BORDER_TOP_BOTTOM]:ee.border}]},[(ve=oe.default)==null?void 0:ve.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$1({},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 $e;return($e=ee.name)!=null?$e:se.value}),fe=computed(()=>ie.isExpanded(de.value)),be=ref(fe.value),ve=useLazyRender(()=>be.value||!ee.lazyRender),ye=()=>{fe.value?oe.value&&(oe.value.style.height=""):be.value=!1};watch(fe,($e,ke)=>{if(ke===null)return;$e&&(be.value=!0),($e?nextTick:raf)(()=>{if(!ae.value||!oe.value)return;const{offsetHeight:Ee}=ae.value;if(Ee){const Oe=`${Ee}px`;oe.value.style.height=$e?"0":Oe,doubleRaf(()=>{oe.value&&(oe.value.style.height=$e?Oe:"0")})}else ye()})});const _e=($e=!fe.value)=>{ie.toggle(de.value,$e)},we=()=>{!ee.disabled&&!ee.readonly&&_e()},Ae=()=>{const{border:$e,disabled:ke,readonly:Pe}=ee,Ee=pick(ee,Object.keys(cellSharedProps));return Pe&&(Ee.isLink=!1),(ke||Pe)&&(Ee.clickable=!1),createVNode(Cell,mergeProps({role:"button",class:bem$W("title",{disabled:ke,expanded:fe.value,borderless:!$e}),"aria-expanded":String(fe.value),onClick:we},Ee),pick(ne,CELL_SLOTS))},Ce=ve(()=>{var $e;return withDirectives(createVNode("div",{ref:oe,class:bem$W("wrapper"),onTransitionend:ye},[createVNode("div",{ref:ae,class:bem$W("content")},[($e=ne.default)==null?void 0:$e.call(ne)])]),[[vShow,be.value]])});return useExpose({toggle:_e,expanded:fe,itemName:de}),()=>createVNode("div",{class:[bem$W({border:se.value&&ee.border})]},[Ae(),Ce()])}});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$1({},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$1({},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":be=>oe.isDefault=be,onChange:be=>ne("changeDefault",be)},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,be=>extend$1(oe,DEFAULT_CONTACT,be)),()=>createVNode(Form,{class:bem$U(),onSubmit:ae},{default:()=>[createVNode("div",{class:bem$U("fields")},[createVNode(Field,{modelValue:oe.name,"onUpdate:modelValue":be=>oe.name=be,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":be=>oe.tel=be,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:ve=>{ve.stopPropagation(),ne("edit",ae,ie)}},null),be=()=>{const ve=[`${ae.name},${ae.tel}`];return ae.isDefault&&ee.defaultTagText&&ve.push(createVNode(Tag,{type:"primary",round:!0,class:bem$T("item-tag")},{default:()=>[ee.defaultTagText]})),ve};return createVNode(Cell,{key:ae.id,isLink:!0,center:!0,class:bem$T("item"),titleClass:bem$T("item-title"),onClick:se},{icon:fe,title:be,"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:ve=>ne("change",ve),onFinish:()=>ne("finish")}),fe=computed(()=>parseFormat(ee.format,de.value)),be=()=>{se(+ee.time),ee.autoStart&&ae()};return watch(()=>ee.time,be,{immediate:!0}),useExpose({start:ae,pause:ie,reset:be}),()=>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 Pe=ne.description?ne.description():ee.description;if(Pe)return createVNode("p",{class:bem$P("description")},[Pe])},ae=()=>{if(ne.default)return createVNode("div",{class:bem$P("bottom")},[ne.default()])},ie=useId(),se=Pe=>`${ie}-${Pe}`,de=Pe=>`url(#${se(Pe)})`,fe=(Pe,Ee,Oe)=>createVNode("stop",{"stop-color":Pe,offset:`${Ee}%`,"stop-opacity":Oe},null),be=(Pe,Ee)=>[fe(Pe,0),fe(Ee,100)],ve=Pe=>[createVNode("defs",null,[createVNode("radialGradient",{id:se(Pe),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[fe("#EBEDF0",0),fe("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:de(Pe),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],ye=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:se("a"),x1:"64%",y1:"100%",x2:"64%"},[fe("#FFF",0,.5),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[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%"},[fe("#F2F3F5",0,.3),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[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",null,[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%"},[be("#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"},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)},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[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)])])]),Ae=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(5)},[be("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:se(6)},[be("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:se(7)},[be("#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"},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)},[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"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),Ce=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(8)},[be("#EAEDF1","#DCDEE0")])]),ye(),_e(),ve("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)},null)]),$e=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:se(9)},[be("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:se(10)},[be("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(11)},[be("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(12)},[be("#FFF","#F7F8FA")])]),ye(),_e(),ve("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[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)])]),ke=()=>{var Pe;if(ne.image)return ne.image();const Ee={error:Ce,search:$e,network:we,default:Ae};return((Pe=Ee[ee.image])==null?void 0:Pe.call(Ee))||createVNode("img",{src:ee.image},null)};return()=>createVNode("div",{class:bem$P()},[createVNode("div",{class:bem$P("image"),style:getSizeStyle(ee.imageSize)},[ke()]),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),be=ref(0),ve=ref(ee.code),ye=computed(()=>!ee.exchangeButtonLoading&&(ee.exchangeButtonDisabled||!ve.value||ve.value.length{const Oe=useRect(se).height,Ne=useRect(de).height+44;be.value=(Oe>Ne?Oe:windowHeight.value)-Ne},we=()=>{ne("exchange",ve.value),ee.code||(ve.value="")},Ae=Ee=>{nextTick(()=>{var Oe;return(Oe=ae.value[Ee])==null?void 0:Oe.scrollIntoView()})},Ce=()=>createVNode(Empty,{image:ee.emptyImage},{default:()=>[createVNode("p",{class:bem$O("empty-tip")},[t$9("noCoupon")])]}),$e=()=>{if(ee.showExchangeBar)return createVNode("div",{ref:de,class:bem$O("exchange-bar")},[createVNode(Field,{modelValue:ve.value,"onUpdate:modelValue":Ee=>ve.value=Ee,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)])},ke=()=>{const{coupons:Ee,chosenCoupon:Oe}=ee,Ne=ee.showCount?` (${Ee.length})`:"",Re=(ee.enabledTitle||t$9("enable"))+Ne,De=(Ie=[],Le=0)=>Ie.includes(Le)?Ie.filter(We=>We!==Le):[...Ie,Le];return createVNode(Tab,{title:Re},{default:()=>{var Ie;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${be.value}px`}},[Ee.map((Le,We)=>createVNode(Coupon,{key:Le.id,ref:ie(We),coupon:Le,chosen:Array.isArray(Oe)?Oe.includes(We):We===Oe,currency:ee.currency,onClick:()=>ne("change",Array.isArray(Oe)?De(Oe,We):We)},null)),!Ee.length&&Ce(),(Ie=oe["list-footer"])==null?void 0:Ie.call(oe)])]}})},Pe=()=>{const{disabledCoupons:Ee}=ee,Oe=ee.showCount?` (${Ee.length})`:"",Ne=(ee.disabledTitle||t$9("disabled"))+Oe;return createVNode(Tab,{title:Ne},{default:()=>{var Re;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${be.value}px`}},[Ee.map(De=>createVNode(Coupon,{disabled:!0,key:De.id,coupon:De,currency:ee.currency},null)),!Ee.length&&Ce(),(Re=oe["disabled-list-footer"])==null?void 0:Re.call(oe)])]}})};return watch(()=>ee.code,Ee=>{ve.value=Ee}),watch(windowHeight,_e),watch(ve,Ee=>ne("update:code",Ee)),watch(()=>ee.displayedCouponIndex,Ae),onMounted(()=>{_e(),Ae(ee.displayedCouponIndex)}),()=>createVNode("div",{ref:se,class:bem$O()},[$e(),createVNode(Tabs,{active:fe.value,"onUpdate:active":Ee=>fe.value=Ee,class:bem$O("tab")},{default:()=>[ke(),Pe()]}),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$1({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate$1},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate$1}});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=()=>{const Ne=ee.minDate.getFullYear(),Re=ee.maxDate.getFullYear();return genOptions(Ne,Re,"year",ee.formatter,ee.filter)},fe=Ne=>Ne===ee.minDate.getFullYear(),be=Ne=>Ne===ee.maxDate.getFullYear(),ve=Ne=>Ne===ee.minDate.getMonth()+1,ye=Ne=>Ne===ee.maxDate.getMonth()+1,_e=Ne=>{const{minDate:Re,columnsType:De}=ee,Ie=De.indexOf(Ne),Le=ie.value?ee.modelValue[Ie]:ae.value[Ie];if(Le)return+Le;switch(Ne){case"year":return Re.getFullYear();case"month":return Re.getMonth()+1;case"day":return Re.getDate()}},we=()=>{const Ne=_e("year"),Re=fe(Ne)?ee.minDate.getMonth()+1:1,De=be(Ne)?ee.maxDate.getMonth()+1:12;return genOptions(Re,De,"month",ee.formatter,ee.filter)},Ae=()=>{const Ne=_e("year"),Re=_e("month"),De=fe(Ne)&&ve(Re)?ee.minDate.getDate():1,Ie=be(Ne)&&ye(Re)?ee.maxDate.getDate():getMonthEndDay(Ne,Re);return genOptions(De,Ie,"day",ee.formatter,ee.filter)},Ce=()=>{var Ne;return(Ne=se.value)==null?void 0:Ne.confirm()},$e=()=>ae.value,ke=computed(()=>ee.columnsType.map(Ne=>{switch(Ne){case"year":return de();case"month":return we();case"day":return Ae();default:return[]}}));watch(ae,Ne=>{isSameValue(Ne,ee.modelValue)||ne("update:modelValue",Ne)}),watch(()=>ee.modelValue,(Ne,Re)=>{ie.value=isSameValue(Re,ae.value),Ne=formatValueRange(Ne,ke.value),isSameValue(Ne,ae.value)||(ae.value=Ne),ie.value=!1},{immediate:!0});const Pe=(...Ne)=>ne("change",...Ne),Ee=(...Ne)=>ne("cancel",...Ne),Oe=(...Ne)=>ne("confirm",...Ne);return useExpose({confirm:Ce,getSelectedDate:$e}),()=>createVNode(Picker,mergeProps({ref:se,modelValue:ae.value,"onUpdate:modelValue":Ne=>ae.value=Ne,columns:ke.value,onChange:Pe,onCancel:Ee,onConfirm:Oe},pick(ee,pickerInheritKeys)),oe)}});const DatePicker=withInstall(stdin_default$V),[name$N,bem$N,t$8]=createNamespace("dialog"),dialogProps=extend$1({},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}),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=Pe=>ne("update:show",Pe),de=Pe=>{var Ee;se(!1),(Ee=ee.callback)==null||Ee.call(ee,Pe)},fe=Pe=>()=>{ee.show&&(ne(Pe),ee.beforeClose?(ie[Pe]=!0,callInterceptor(ee.beforeClose,{args:[Pe],done(){de(Pe),ie[Pe]=!1},canceled(){ie[Pe]=!1}})):de(Pe))},be=fe("cancel"),ve=fe("confirm"),ye=withKeys(Pe=>{var Ee,Oe;if(Pe.target!==((Oe=(Ee=ae.value)==null?void 0:Ee.popupRef)==null?void 0:Oe.value))return;({Enter:ee.showConfirmButton?ve:noop$1,Escape:ee.showCancelButton?be:noop$1})[Pe.key](),ne("keydown",Pe)},["enter","esc"]),_e=()=>{const Pe=oe.title?oe.title():ee.title;if(Pe)return createVNode("div",{class:bem$N("header",{isolated:!ee.message&&!oe.default})},[Pe])},we=Pe=>{const{message:Ee,allowHtml:Oe,messageAlign:Ne}=ee,Re=bem$N("message",{"has-title":Pe,[Ne]:Ne}),De=isFunction$1(Ee)?Ee():Ee;return Oe&&typeof De=="string"?createVNode("div",{class:Re,innerHTML:De},null):createVNode("div",{class:Re},[De])},Ae=()=>{if(oe.default)return createVNode("div",{class:bem$N("content")},[oe.default()]);const{title:Pe,message:Ee,allowHtml:Oe}=ee;if(Ee){const Ne=!!(Pe||oe.title);return createVNode("div",{key:Oe?1:0,class:bem$N("content",{isolated:!Ne})},[we(Ne)])}},Ce=()=>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:be},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:ve},null)]),$e=()=>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:be},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:ve},null)]}),ke=()=>oe.footer?oe.footer():ee.theme==="round-button"?$e():Ce();return()=>{const{width:Pe,title:Ee,theme:Oe,message:Ne,className:Re}=ee;return createVNode(Popup,mergeProps({ref:ae,role:"dialog",class:[bem$N([Oe]),Re],style:{width:addUnit(Pe)},tabindex:0,"aria-labelledby":Ee||Ne,onKeydown:ye,"onUpdate:show":se},pick(ee,popupInheritKeys$1)),{default:()=>[_e(),Ae(),ke()]})}}});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),be=useScrollParent(ae),ve=computed(()=>de.some(Ee=>Ee.state.showWrapper)),ye=computed(()=>ee.swipeThreshold&&de.length>+ee.swipeThreshold),_e=computed(()=>{if(ve.value&&isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),we=()=>{de.forEach(Ee=>{Ee.toggle(!1)})},Ae=()=>{ee.closeOnClickOutside&&we()},Ce=()=>{if(ie.value){const Ee=useRect(ie);ee.direction==="down"?se.value=Ee.bottom:se.value=windowHeight.value-Ee.top}},$e=()=>{ve.value&&Ce()},ke=Ee=>{de.forEach((Oe,Ne)=>{Ne===Ee?Oe.toggle():Oe.state.showPopup&&Oe.toggle(!1,{immediate:!0})})},Pe=(Ee,Oe)=>{const{showPopup:Ne}=Ee.state,{disabled:Re,titleClass:De}=Ee;return createVNode("div",{id:`${oe}-${Oe}`,role:"button",tabindex:Re?void 0:0,class:[bem$L("item",{disabled:Re,grow:ye.value}),{[HAPTICS_FEEDBACK]:!Re}],onClick:()=>{Re||ke(Oe)}},[createVNode("span",{class:[bem$L("title",{down:Ne===(ee.direction==="down"),active:Ne}),De],style:{color:Ne?ee.activeColor:""}},[createVNode("div",{class:"van-ellipsis"},[Ee.renderTitle()])])])};return useExpose({close:we}),fe({id:oe,props:ee,offset:se,updateOffset:Ce}),useClickAway(ae,Ae),useEventListener("scroll",$e,{target:be,passive:!0}),()=>{var Ee;return createVNode("div",{ref:ae,class:bem$L()},[createVNode("div",{ref:ie,style:_e.value,class:bem$L("bar",{opened:ve.value,scrollable:ye.value})},[de.map(Pe)]),(Ee=ne.default)==null?void 0:Ee.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 be=Ee=>()=>ne(Ee),ve=be("open"),ye=be("close"),_e=be("opened"),we=()=>{ie.showWrapper=!1,ne("closed")},Ae=Ee=>{ee.teleport&&Ee.stopPropagation()},Ce=(Ee=!ie.showPopup,Oe={})=>{Ee!==ie.showPopup&&(ie.showPopup=Ee,ie.transition=!Oe.immediate,Ee&&(de.updateOffset(),ie.showWrapper=!0))},$e=()=>{if(oe.title)return oe.title();if(ee.title)return ee.title;const Ee=ee.options.find(Oe=>Oe.value===ee.modelValue);return Ee?Ee.text:""},ke=Ee=>{const{activeColor:Oe}=de.props,{disabled:Ne}=Ee,Re=Ee.value===ee.modelValue,De=()=>{Ne||(ie.showPopup=!1,Ee.value!==ee.modelValue&&(ne("update:modelValue",Ee.value),ne("change",Ee.value)))},Ie=()=>{if(Re)return createVNode(Icon,{class:bem$K("icon"),color:Ne?void 0:Oe,name:"success"},null)};return createVNode(Cell,{role:"menuitem",key:String(Ee.value),icon:Ee.icon,title:Ee.text,class:bem$K("option",{active:Re,disabled:Ne}),style:{color:Re?Oe:""},tabindex:Re?0:-1,clickable:!Ne,onClick:De},{value:Ie})},Pe=()=>{const{offset:Ee}=de,{autoLocate:Oe,zIndex:Ne,overlay:Re,duration:De,direction:Ie,closeOnClickOverlay:Le}=de.props,We=getZIndexStyle(Ne);let He=Ee.value;if(Oe&&se.value){const Be=getContainingBlock$1(se.value);Be&&(He-=useRect(Be).top)}return Ie==="down"?We.top=`${He}px`:We.bottom=`${He}px`,withDirectives(createVNode("div",mergeProps({ref:se,style:We,class:bem$K([Ie]),onClick:Ae},ae),[createVNode(Popup,{show:ie.showPopup,"onUpdate:show":Be=>ie.showPopup=Be,role:"menu",class:bem$K("content"),overlay:Re,position:Ie==="down"?"top":"bottom",duration:ie.transition?De:0,lazyRender:ee.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${de.id}-${fe.value}`,closeOnClickOverlay:Le,onOpen:ve,onClose:ye,onOpened:_e,onClosed:we},{default:()=>{var Be;return[ee.options.map(ke),(Be=oe.default)==null?void 0:Be.call(oe)]}})]),[[vShow,ie.showWrapper]])};return useExpose({state:ie,toggle:Ce,renderTitle:$e}),()=>ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Pe()]}):Pe()}});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 be=!1;const ve=computed(()=>{const Oe={},Ne=addUnit(se.value.x),Re=addUnit(se.value.y);return Oe.transform=`translate3d(${Ne}, ${Re}, 0)`,(fe.value||!be)&&(Oe.transition="none"),Oe}),ye=()=>{if(!Ee.value)return;const{width:Oe,height:Ne}=useRect(ie.value),{offset:Re}=ee;se.value={x:Re.x>-1?Re.x:windowWidth.value-Oe-ee.gap,y:Re.y>-1?Re.y:windowHeight.value-Ne-ee.gap,width:Oe,height:Ne}},_e=useTouch();let we=0,Ae=0;const Ce=Oe=>{_e.start(Oe),fe.value=!0,we=se.value.x,Ae=se.value.y};useEventListener("touchmove",Oe=>{if(Oe.preventDefault(),_e.move(Oe),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=Ae+_e.deltaY.value;Rede.value.bottom&&(Re=de.value.bottom),se.value.y=Re}const Ne=pick(se.value,["x","y"]);oe("update:offset",Ne)}},{target:ie});const ke=()=>{fe.value=!1,nextTick(()=>{if(ee.magnetic==="x"){const Oe=closest([de.value.left,de.value.right],se.value.x);se.value.x=Oe}if(ee.magnetic==="y"){const Oe=closest([de.value.top,de.value.bottom],se.value.y);se.value.y=Oe}if(!_e.isTap.value){const Oe=pick(se.value,["x","y"]);oe("update:offset",Oe),(we!==Oe.x||Ae!==Oe.y)&&oe("offsetChange",Oe)}})},Pe=Oe=>{_e.isTap.value?oe("click",Oe):Oe.stopPropagation()};onMounted(()=>{ye(),nextTick(()=>{be=!0})}),watch([windowWidth,windowHeight,()=>ee.gap,()=>ee.offset],ye,{deep:!0});const Ee=ref(!0);return onActivated(()=>{Ee.value=!0}),onDeactivated(()=>{ee.teleport&&(Ee.value=!1)}),()=>{const Oe=withDirectives(createVNode("div",mergeProps({class:bem$J(),ref:ie,onTouchstartPassive:Ce,onTouchend:ke,onTouchcancel:ke,onClickCapture:Pe,style:ve.value},ae),[ne.default?ne.default():createVNode(stdin_default$1O,{name:ee.icon,class:bem$J("icon")},null)]),[[vShow,Ee.value]]);return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Oe]}):Oe}}});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,Ee=>ne("update:height",Ee)),fe=computed(()=>{var Ee,Oe;return{min:(Ee=ee.anchors[0])!=null?Ee:100,max:(Oe=ee.anchors[ee.anchors.length-1])!=null?Oe:Math.round(windowHeight.value*.6)}}),be=computed(()=>ee.anchors.length>=2?ee.anchors:[fe.value.min,fe.value.max]),ve=ref(!1),ye=computed(()=>({height:addUnit(fe.value.max),transform:`translateY(calc(100% + ${addUnit(-de.value)}))`,transition:ve.value?"none":`transform ${ee.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),_e=Ee=>{const Oe=Math.abs(Ee),{min:Ne,max:Re}=fe.value;return Oe>Re?-(Re+(Oe-Re)*.2):Oe{Ce.start(Ee),ve.value=!0,we=-de.value,Ae=-1},ke=Ee=>{var Oe;Ce.move(Ee);const Ne=Ee.target;if(se.value===Ne||(Oe=se.value)!=null&&Oe.contains(Ne)){const{scrollTop:De}=se.value;if(Ae=Math.max(Ae,De),!ee.contentDraggable)return;if(-we0)||Ae>0)return}const Re=Ce.deltaY.value+we;de.value=-_e(Re)},Pe=()=>{Ae=-1,ve.value=!1,de.value=closest(be.value,de.value),de.value!==-we&&ne("heightChange",{height:de.value})};return watch(fe,()=>{de.value=closest(be.value,de.value)},{immediate:!0}),useLockScroll(ie,()=>ee.lockScroll||ve.value),useEventListener("touchmove",ke,{target:ie}),()=>{var Ee;return createVNode("div",{class:[bem$I(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}],ref:ie,style:ye.value,onTouchstartPassive:$e,onTouchend:Pe,onTouchcancel:Pe},[createVNode("div",{class:bem$I("header")},[createVNode("div",{class:bem$I("header-bar")},null)]),createVNode("div",{class:bem$I("content"),ref:se},[(Ee=oe.default)==null?void 0:Ee.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$1({},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,Ae=`${100/+we}%`,Ce={flexBasis:Ae};if(ye)Ce.paddingTop=Ae;else if(_e){const $e=addUnit(_e);Ce.paddingRight=$e,ae.value>=+we&&(Ce.marginTop=$e)}return Ce}),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)},be=()=>{if(ne.text)return ne.text();if(ee.text)return createVNode("span",{class:bem$G("text")},[ee.text])},ve=()=>ne.default?ne.default():[fe(),be()];return()=>{const{center:ye,border:_e,square:we,gutter:Ae,reverse:Ce,direction:$e,clickable:ke}=oe.props,Pe=[bem$G("content",[$e,{center:ye,square:we,reverse:Ce,clickable:ke,surround:_e&&Ae}]),{[BORDER]:_e}];return createVNode("div",{class:[bem$G({square:we})],style:se.value},[createVNode("div",{role:ke?"button":void 0,class:Pe,style:de.value,tabindex:ke?0:void 0,onClick:ie},[ve()])])}}});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 ve=(Array.isArray(se)?se:[se]).filter(_e=>_e).reduce((_e,we)=>{ae&&(we=we.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const Ae=new RegExp(we,fe);let Ce;for(;Ce=Ae.exec(de);){const $e=Ce.index,ke=Ae.lastIndex;if($e>=ke){Ae.lastIndex++;continue}_e.push({start:$e,end:ke,highlight:!0})}return _e},[]);ve=ve.sort((_e,we)=>_e.start-we.start).reduce((_e,we)=>{const Ae=_e[_e.length-1];if(!Ae||we.start>Ae.end){const Ce=Ae?Ae.end:0,$e=we.start;Ce!==$e&&_e.push({start:Ce,end:$e,highlight:!1}),_e.push(we)}else Ae.end=Math.max(Ae.end,we.end);return _e},[]);const ye=ve[ve.length-1];return ye||ve.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(be=>{const{start:ve,end:ye,highlight:_e}=be,we=ae.slice(ve,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),be=ref(!1);let ve=0;const ye=computed(()=>{const{scale:je,moveX:Qe,moveY:At,moving:Rt,zooming:Dt,initializing:Ke}=ae,Vt={transitionDuration:Dt||Rt||Ke?"0s":".3s"};return(je!==1||be.value)&&(Vt.transform=`matrix(${je}, 0, 0, ${je}, ${Qe}, ${At})`),Vt}),_e=computed(()=>{if(ae.imageRatio){const{rootWidth:je,rootHeight:Qe}=ee,At=fe.value?Qe/ae.imageRatio:je;return Math.max(0,(ae.scale*At-je)/2)}return 0}),we=computed(()=>{if(ae.imageRatio){const{rootWidth:je,rootHeight:Qe}=ee,At=fe.value?Qe:je*ae.imageRatio;return Math.max(0,(ae.scale*At-Qe)/2)}return 0}),Ae=(je,Qe)=>{var At;if(je=clamp(je,+ee.minZoom,+ee.maxZoom+1),je!==ae.scale){const Rt=je/ae.scale;if(ae.scale=je,Qe){const Dt=useRect((At=se.value)==null?void 0:At.$el),Ke={x:Dt.width*.5,y:Dt.height*.5},Vt=ae.moveX-(Qe.x-Dt.left-Ke.x)*(Rt-1),tn=ae.moveY-(Qe.y-Dt.top-Ke.y)*(Rt-1);ae.moveX=clamp(Vt,-_e.value,_e.value),ae.moveY=clamp(tn,-we.value,we.value)}else ae.moveX=0,ae.moveY=be.value?ve:0;ne("scale",{scale:je,index:ee.active})}},Ce=()=>{Ae(1)},$e=()=>{const je=ae.scale>1?1:2;Ae(je,je===2||be.value?{x:ie.startX.value,y:ie.startY.value}:void 0)};let ke,Pe,Ee,Oe,Ne,Re,De,Ie,Le=!1;const We=je=>{const{touches:Qe}=je;if(ke=Qe.length,ke===2&&ee.disableZoom)return;const{offsetX:At}=ie;ie.start(je),Pe=ae.moveX,Ee=ae.moveY,Ie=Date.now(),Le=!1,ae.moving=ke===1&&(ae.scale!==1||be.value),ae.zooming=ke===2&&!At.value,ae.zooming&&(Oe=ae.scale,Ne=getDistance(Qe))},He=je=>{const{touches:Qe}=je;if(ie.move(je),ae.moving){const{deltaX:At,deltaY:Rt}=ie,Dt=At.value+Pe,Ke=Rt.value+Ee;if((ee.vertical?ie.isVertical()&&Math.abs(Ke)>we.value:ie.isHorizontal()&&Math.abs(Dt)>_e.value)&&!Le){ae.moving=!1;return}Le=!0,preventDefault(je,!0),ae.moveX=clamp(Dt,-_e.value,_e.value),ae.moveY=clamp(Ke,-we.value,we.value)}if(ae.zooming&&(preventDefault(je,!0),Qe.length===2)){const At=getDistance(Qe),Rt=Oe*At/Ne;Re=getCenter(Qe),Ae(Rt,Re)}},Be=je=>{var Qe;const At=(Qe=de.value)==null?void 0:Qe.$el;if(!At)return;const Rt=At.firstElementChild,Dt=je.target===At,Ke=Rt==null?void 0:Rt.contains(je.target);!ee.closeOnClickImage&&Ke||!ee.closeOnClickOverlay&&Dt||ne("close")},Fe=je=>{if(ke>1)return;const Qe=Date.now()-Ie,At=250;ie.isTap.value&&(Qe{Be(je),De=null},At):Be(je):Qe>LONG_PRESS_START_TIME&&ne("longPress"))},Ze=je=>{let Qe=!1;if((ae.moving||ae.zooming)&&(Qe=!0,ae.moving&&Pe===ae.moveX&&Ee===ae.moveY&&(Qe=!1),!je.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,Pe=0,Ee=0,Oe=1,ae.scale<1&&Ce();const At=+ee.maxZoom;ae.scale>At&&Ae(At,Re)}preventDefault(je,Qe),Fe(je),ie.reset()},qe=()=>{const{rootWidth:je,rootHeight:Qe}=ee,At=Qe/je,{imageRatio:Rt}=ae;fe.value=ae.imageRatio>At&&RtAt&&Rt>=longImageRatio,be.value&&(ve=(Rt*je-Qe)/2,ae.moveY=ve,ae.initializing=!0,raf(()=>{ae.initializing=!1})),Ce()},ze=je=>{const{naturalWidth:Qe,naturalHeight:At}=je.target;ae.imageRatio=At/Qe,qe()};return watch(()=>ee.active,Ce),watch(()=>ee.show,je=>{je||Ce()}),watch(()=>[ee.rootWidth,ee.rootHeight],qe),useEventListener("touchmove",He,{target:computed(()=>{var je;return(je=de.value)==null?void 0:je.$el})}),useExpose({resetScale:Ce}),()=>{const je={loading:()=>createVNode(Loading,{type:"spinner"},null)};return createVNode(SwipeItem,{ref:de,class:bem$E("swipe-item"),onTouchstartPassive:We,onTouchend:Ze,onTouchcancel:Ze},{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},je)]})}}});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 Oe=useRect(ae.value.$el);se.rootWidth=Oe.width,se.rootHeight=Oe.height,ae.value.resize()}},fe=Oe=>ne("scale",Oe),be=Oe=>ne("update:show",Oe),ve=()=>{callInterceptor(ee.beforeClose,{args:[se.active],done:()=>be(!1)})},ye=Oe=>{Oe!==se.active&&(se.active=Oe,ne("change",Oe))},_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()])},Ae=()=>{se.disableZoom=!0},Ce=()=>{se.disableZoom=!1},$e=()=>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:Ce,onDragStart:Ae},{default:()=>[ee.images.map((Oe,Ne)=>createVNode(stdin_default$L,{ref:Re=>{Ne===se.active&&(ie.value=Re)},src:Oe,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:ve,onLongPress:()=>ne("longPress",{index:Ne})},{image:oe.image}))]}),ke=()=>{if(ee.closeable)return createVNode(Icon,{role:"button",name:ee.closeIcon,class:[bem$D("close-icon",ee.closeIconPosition),HAPTICS_FEEDBACK],onClick:ve},null)},Pe=()=>ne("closed"),Ee=(Oe,Ne)=>{var Re;return(Re=ae.value)==null?void 0:Re.swipeTo(Oe,Ne)};return useExpose({resetScale:()=>{var Oe;(Oe=ie.value)==null||Oe.resetScale()},swipeTo:Ee}),onMounted(de),watch([windowWidth,windowHeight],de),watch(()=>ee.startPosition,Oe=>ye(+Oe)),watch(()=>ee.show,Oe=>{const{images:Ne,startPosition:Re}=ee;Oe?(ye(+Re),nextTick(()=>{de(),Ee(+Re,{immediate:!0})})):ne("close",{index:se.active,url:Ne[se.active]})}),()=>createVNode(Popup,mergeProps({class:[bem$D(),ee.className],overlayClass:[bem$D("overlay"),ee.overlayClass],onClosed:Pe,"onUpdate:show":be},pick(ee,popupProps$1)),{default:()=>[ke(),$e(),_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$1({},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:be,linkChildren:ve}=useChildren(INDEX_BAR_KEY);let ye;ve({props:ee});const _e=computed(()=>{if(isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),we=computed(()=>{if(ee.highlightColor)return{color:ee.highlightColor}}),Ae=(Le,We)=>{for(let He=be.length-1;He>=0;He--){const Be=He>0?We[He-1].height:0,Fe=ee.sticky?Be+ee.stickyOffsetTop:0;if(Le+Fe>=We[He].top)return He}return-1},Ce=Le=>be.find(We=>String(We.index)===Le),$e=()=>{if(isHidden(ae))return;const{sticky:Le,indexList:We}=ee,He=getScrollTop(fe.value),Be=useRect(fe),Fe=be.map(qe=>qe.getRect(fe.value,Be));let Ze=-1;if(ye){const qe=Ce(ye);if(qe){const ze=qe.getRect(fe.value,Be);ee.sticky&&ee.stickyOffsetTop?Ze=Ae(ze.top-ee.stickyOffsetTop,Fe):Ze=Ae(ze.top,Fe)}}else Ze=Ae(He,Fe);se.value=We[Ze],Le&&be.forEach((qe,ze)=>{const{state:je,$el:Qe}=qe;if(ze===Ze||ze===Ze-1){const At=Qe.getBoundingClientRect();je.left=At.left,je.width=At.width}else je.left=null,je.width=null;if(ze===Ze)je.active=!0,je.top=Math.max(ee.stickyOffsetTop,Fe[ze].top-He)+Be.top;else if(ze===Ze-1&&ye===""){const At=Fe[Ze].top-He;je.active=At>0,je.top=At+Be.top-Fe[ze].height}else je.active=!1}),ye=""},ke=()=>{nextTick($e)};useEventListener("scroll",$e,{target:fe,passive:!0}),onMounted(ke),watch(()=>ee.indexList,ke),watch(se,Le=>{Le&&ne("change",Le)});const Pe=()=>ee.indexList.map(Le=>{const We=Le===se.value;return createVNode("span",{class:bem$C("index",{active:We}),style:We?we.value:void 0,"data-index":Le},[Le])}),Ee=Le=>{ye=String(Le);const We=Ce(ye);if(We){const He=getScrollTop(fe.value),Be=useRect(fe),{offsetHeight:Fe}=document.documentElement;if(We.$el.scrollIntoView(),He===Fe-Be.height){$e();return}ee.sticky&&ee.stickyOffsetTop&&(getRootScrollTop()===Fe-Be.height?setRootScrollTop(getRootScrollTop()):setRootScrollTop(getRootScrollTop()-ee.stickyOffsetTop)),ne("select",We.index)}},Oe=Le=>{const{index:We}=Le.dataset;We&&Ee(We)},Ne=Le=>{Oe(Le.target)};let Re;const De=Le=>{if(de.move(Le),de.isVertical()){preventDefault(Le);const{clientX:We,clientY:He}=Le.touches[0],Be=document.elementFromPoint(We,He);if(Be){const{index:Fe}=Be.dataset;Fe&&Re!==Fe&&(Re=Fe,Oe(Be))}}},Ie=()=>createVNode("div",{ref:ie,class:bem$C("sidebar"),style:_e.value,onClick:Ne,onTouchstartPassive:de.start},[Pe()]);return useExpose({scrollTo:Ee}),useEventListener("touchmove",De,{target:ie}),()=>{var Le;return createVNode("div",{ref:ae,class:bem$C()},[ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ie()]}):Ie(),(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:be,highlightColor:ve}=ie.props;if(se())return extend$1(getZIndexStyle(be),{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:ve})});return useExpose({state:oe,getRect:(be,ve)=>{const ye=useRect(ae);return oe.rect.height=ye.height,be===window||be===document.body?oe.rect.top=ye.top+getRootScrollTop():oe.rect.top=ye.top+getScrollTop(be)-ve.top,oe.rect}}),()=>{const be=se();return createVNode("div",{ref:ae,style:{height:be?`${oe.rect.height}px`:void 0}},[createVNode("div",{style:de.value,class:[bem$B({sticky:be}),{[BORDER_BOTTOM]:be}]},[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),be=computed(()=>ee.scroller||fe.value),ve=()=>{nextTick(()=>{if(ae.value||ee.finished||ee.disabled||ee.error||(de==null?void 0:de.value)===!1)return;const{direction:Ce}=ee,$e=+ee.offset,ke=useRect(be);if(!ke.height||isHidden(ie))return;let Pe=!1;const Ee=useRect(se);Ce==="up"?Pe=ke.top-Ee.top<=$e:Pe=Ee.bottom-ke.bottom<=$e,Pe&&(ae.value=!0,ne("update:loading",!0),ne("load"))})},ye=()=>{if(ee.finished){const Ce=oe.finished?oe.finished():ee.finishedText;if(Ce)return createVNode("div",{class:bem$A("finished-text")},[Ce])}},_e=()=>{ne("update:error",!1),ve()},we=()=>{if(ee.error){const Ce=oe.error?oe.error():ee.errorText;if(Ce)return createVNode("div",{role:"button",class:bem$A("error-text"),tabindex:0,onClick:_e},[Ce])}},Ae=()=>{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],ve),de&&watch(de,Ce=>{Ce&&ve()}),onUpdated(()=>{ae.value=ee.loading}),onMounted(()=>{ee.immediateCheck&&ve()}),useExpose({check:ve}),useEventListener("scroll",ve,{target:be,passive:!0}),()=>{var Ce;const $e=(Ce=oe.default)==null?void 0:Ce.call(oe),ke=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"?$e:ke,Ae(),ye(),we(),ee.direction==="up"?$e:ke])}}});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])],be=()=>oe.right?oe.right():createVNode("span",{class:bem$z("text")},[ee.rightText]),ve=()=>{const{title:ye,fixed:_e,border:we,zIndex:Ae}=ee,Ce=getZIndexStyle(Ae),$e=ee.leftArrow||ee.leftText||oe.left,ke=ee.rightText||oe.right;return createVNode("div",{ref:ae,style:Ce,class:[bem$z({fixed:_e}),{[BORDER_BOTTOM]:we,"van-safe-area-top":ee.safeAreaInsetTop}]},[createVNode("div",{class:bem$z("content")},[$e&&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]),ke&&createVNode("div",{class:[bem$z("right",{disabled:ee.rightDisabled}),ee.clickable&&!ee.rightDisabled?HAPTICS_FEEDBACK:""],onClick:de},[be()])])])};return()=>ee.fixed&&ee.placeholder?ie(ve):ve()}});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(),be=reactive({show:!0,offset:0,duration:0}),ve=()=>{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=ke=>{ee.mode==="closeable"&&(be.show=!1,ne("close",ke))},we=()=>{if(oe["right-icon"])return oe["right-icon"]();const ke=ye();if(ke)return createVNode(Icon,{name:ke,class:bem$y("right-icon"),onClick:_e},null)},Ae=()=>{be.offset=ae,be.duration=0,raf(()=>{doubleRaf(()=>{be.offset=-ie,be.duration=(ie+ae)/+ee.speed,ne("replay")})})},Ce=()=>{const ke=ee.scrollable===!1&&!ee.wrapable,Pe={transform:be.offset?`translateX(${be.offset}px)`:"",transitionDuration:`${be.duration}s`};return createVNode("div",{ref:de,role:"marquee",class:bem$y("wrap")},[createVNode("div",{ref:fe,style:Pe,class:[bem$y("content"),{"van-ellipsis":ke}],onTransitionend:Ae},[oe.default?oe.default():ee.text])])},$e=()=>{const{delay:ke,speed:Pe,scrollable:Ee}=ee,Oe=isDef(ke)?+ke*1e3:0;ae=0,ie=0,be.offset=0,be.duration=0,clearTimeout(se),se=setTimeout(()=>{if(!de.value||!fe.value||Ee===!1)return;const Ne=useRect(de).width,Re=useRect(fe).width;(Ee||Re>Ne)&&doubleRaf(()=>{ae=Ne,ie=Re,be.offset=-ie,be.duration=ie/+Pe})},Oe)};return onPopupReopen($e),onMountedOrActivated($e),useEventListener("pageshow",$e),useExpose({reset:$e}),watch(()=>[ee.text,ee.scrollable],$e),()=>{const{color:ke,wrapable:Pe,background:Ee}=ee;return withDirectives(createVNode("div",{role:"alert",class:bem$y({wrapable:Pe}),style:{color:ke,background:Ee}},[ve(),Ce(),we()]),[[vShow,be.show]])}}});const NoticeBar=withInstall(stdin_default$F),[name$y,bem$x]=createNamespace("notify"),popupInheritProps=["lockScroll","position","show","teleport","zIndex"],notifyProps=extend$1({},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=ve=>{ie.start(ve),ae.value=!0},de=ve=>{ie.move(ve),ie.direction.value&&(ae.value=!1)},fe=ve=>{ae.value&&(oe.default||preventDefault(ve),ae.value=!1,ne("press",ee.text,ee.type))},be=()=>{if(ee.loading)return createVNode(Loading,{class:bem$w("loading-icon")},null);const ve=oe.default?oe.default():ee.text;switch(ee.type){case"delete":return ve||DeleteIcon;case"extra":return ve||CollapseIcon;default:return ve}};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"}])},[be()])])}});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 ke=Array(9).fill("").map((Pe,Ee)=>({text:Ee+1}));return ee.randomKeyOrder&&shuffle(ke),ke},de=()=>[...se(),{text:ee.extraKey,type:"extra"},{text:0},{text:ee.showDeleteKey?ee.deleteButtonText:"",type:ee.showDeleteKey?"delete":""}],fe=()=>{const ke=se(),{extraKey:Pe}=ee,Ee=Array.isArray(Pe)?Pe:[Pe];return Ee.length===1?ke.push({text:0,wider:!0},{text:Ee[0],type:"extra"}):Ee.length===2&&ke.push({text:Ee[0],type:"extra"},{text:0},{text:Ee[1],type:"extra"}),ke},be=computed(()=>ee.theme==="custom"?fe():de()),ve=()=>{ee.show&&ne("blur")},ye=()=>{ne("close"),ee.blurOnClose&&ve()},_e=()=>ne(ee.show?"show":"hide"),we=(ke,Pe)=>{if(ke===""){Pe==="extra"&&ve();return}const Ee=ee.modelValue;Pe==="delete"?(ne("delete"),ne("update:modelValue",Ee.slice(0,Ee.length-1))):Pe==="close"?ye():Ee.length<+ee.maxlength&&(ne("input",ke),ne("update:modelValue",Ee+ke))},Ae=()=>{const{title:ke,theme:Pe,closeButtonText:Ee}=ee,Oe=oe["title-left"],Ne=Ee&&Pe==="default";if(ke||Ne||Oe)return createVNode("div",{class:bem$v("header")},[Oe&&createVNode("span",{class:bem$v("title-left")},[Oe()]),ke&&createVNode("h2",{class:bem$v("title")},[ke]),Ne&&createVNode("button",{type:"button",class:[bem$v("close"),HAPTICS_FEEDBACK],onClick:ye},[Ee])])},Ce=()=>be.value.map(ke=>{const Pe={};return ke.type==="delete"&&(Pe.default=oe.delete),ke.type==="extra"&&(Pe.default=oe["extra-key"]),createVNode(stdin_default$D,{key:ke.text,text:ke.text,type:ke.type,wider:ke.wider,color:ke.color,onPress:we},Pe)}),$e=()=>{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,ke=>{ee.transition||ne(ke?"show":"hide")}),ee.hideOnClickOutside&&useClickAway(ie,ve,{eventName:"touchstart"}),()=>{const ke=Ae(),Pe=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":!!ke}),onAnimationend:_e,onTouchstartPassive:stopPropagation},ae),[ke,createVNode("div",{class:bem$v("body")},[createVNode("div",{class:bem$v("keys")},[Ce()]),$e()])]),[[vShow,ee.show]])]});return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Pe]}):Pe}}});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,Ae=+ye||Math.ceil(+_e/+we);return Math.max(1,Ae)}),ie=computed(()=>{const ye=[],_e=ae.value,we=+ee.showPageSize,{modelValue:Ae,forceEllipses:Ce}=ee;let $e=1,ke=_e;const Pe=we<_e;Pe&&($e=Math.max(Ae-Math.floor(we/2),1),ke=$e+we-1,ke>_e&&(ke=_e,$e=ke-we+1));for(let Ee=$e;Ee<=ke;Ee++){const Oe=makePage(Ee,Ee,Ee===Ae);ye.push(Oe)}if(Pe&&we>0&&Ce){if($e>1){const Ee=makePage($e-1,"...");ye.unshift(Ee)}if(ke<_e){const Ee=makePage(ke+1,"...");ye.push(Ee)}}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 Ae=oe["prev-text"],Ce=_e===1;return createVNode("li",{class:[bem$u("item",{disabled:Ce,border:ye==="simple",prev:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:Ce,onClick:()=>se(_e-1,!0)},[Ae?Ae():ee.prevText||t$6("prev")])])},be=()=>{const{mode:ye,modelValue:_e,showNextButton:we}=ee;if(!we)return;const Ae=oe["next-text"],Ce=_e===ae.value;return createVNode("li",{class:[bem$u("item",{disabled:Ce,border:ye==="simple",next:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:Ce,onClick:()=>se(_e+1,!0)},[Ae?Ae():ee.nextText||t$6("next")])])},ve=()=>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():ve(),be()])])}});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:be}=ee,ve=+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,be=!isLayoutViewport()&&oe,ve=(ae.left+(be&&fe?fe.offsetLeft:0))/ie,ye=(ae.top+(be&&fe?fe.offsetTop:0))/se,_e=ae.width/ie,we=ae.height/se;return{width:_e,height:we,top:ye,right:ve+_e,bottom:ye+we,left:ve,x:ve,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},be={x:0,y:0};return(ae||!ae&&!oe)&&((getNodeName(ne)!=="body"||isScrollParent(se))&&(fe=getNodeScroll(ne)),isHTMLElement(ne)?(be=getBoundingClientRect(ne,!0),be.x+=ne.clientLeft,be.y+=ne.clientTop):se&&(be.x=getWindowScrollBarX(se))),{x:de.left+fe.scrollLeft-be.x,y:de.top+fe.scrollTop-be.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 be=ne.get(fe);be&&ie(be)}}),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,be;switch(ie){case top:be={x:de,y:ne.y-oe.height};break;case bottom:be={x:de,y:ne.y+ne.height};break;case right:be={x:ne.x+ne.width,y:fe};break;case left:be={x:ne.x-oe.width,y:fe};break;default:be={x:ne.x,y:ne.y}}var ve=ie?getMainAxisFromPlacement(ie):null;if(ve!=null){var ye=ve==="y"?"height":"width";switch(se){case start:be[ve]=be[ve]-(ne[ye]/2-oe[ye]/2);break;case end:be[ve]=be[ve]+(ne[ye]/2-oe[ye]/2);break}}return be}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 De=ye.orderedModifiers[Re],Ie=De.fn,Le=De.options,We=Le===void 0?{}:Le,He=De.name;typeof Ie=="function"&&(ye=Ie({state:ye,options:We,name:He,instance:Ae})||ye)}}},update:debounce(function(){return new Promise(function(ke){Ae.forceUpdate(),ke(ye)})}),destroy:function(){$e(),we=!0}};if(!areValidElements(fe,be))return console.error(INVALID_ELEMENT_ERROR),Ae;Ae.setOptions(ve).then(function(ke){!we&&ve.onFirstUpdate&&ve.onFirstUpdate(ke)});function Ce(){ye.orderedModifiers.forEach(function(ke){var Pe=ke.name,Ee=ke.options,Oe=Ee===void 0?{}:Ee,Ne=ke.effect;if(typeof Ne=="function"){var Re=Ne({state:ye,name:Pe,instance:Ae,options:Oe}),De=function(){};_e.push(Re||De)}})}function $e(){_e.forEach(function(ke){return ke()}),_e=[]}return Ae}}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,be=getWindow(ne.elements.popper),ve=[].concat(ne.scrollParents.reference,ne.scrollParents.popper);return se&&ve.forEach(function(ye){ye.addEventListener("scroll",oe.update,passive)}),fe&&be.addEventListener("resize",oe.update,passive),function(){se&&ve.forEach(function(ye){ye.removeEventListener("scroll",oe.update,passive)}),fe&&be.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,be=ee.gpuAcceleration,ve=ee.adaptive,ye=ee.roundOffsets,_e=ee.isFixed,we=de.x,Ae=we===void 0?0:we,Ce=de.y,$e=Ce===void 0?0:Ce,ke=typeof ye=="function"?ye({x:Ae,y:$e}):{x:Ae,y:$e};Ae=ke.x,$e=ke.y;var Pe=de.hasOwnProperty("x"),Ee=de.hasOwnProperty("y"),Oe=left,Ne=top,Re=window;if(ve){var De=getOffsetParent(oe),Ie="clientHeight",Le="clientWidth";if(De===getWindow(oe)&&(De=getDocumentElement(oe),getComputedStyle$1(De).position!=="static"&&fe==="absolute"&&(Ie="scrollHeight",Le="scrollWidth")),De=De,ie===top||(ie===left||ie===right)&&se===end){Ne=bottom;var We=_e&&De===Re&&Re.visualViewport?Re.visualViewport.height:De[Ie];$e-=We-ae.height,$e*=be?1:-1}if(ie===left||(ie===top||ie===bottom)&&se===end){Oe=right;var He=_e&&De===Re&&Re.visualViewport?Re.visualViewport.width:De[Le];Ae-=He-ae.width,Ae*=be?1:-1}}var Be=Object.assign({position:fe},ve&&unsetSides),Fe=ye===!0?roundOffsetsByDPR({x:Ae,y:$e}):{x:Ae,y:$e};if(Ae=Fe.x,$e=Fe.y,be){var Ze;return Object.assign({},Be,(Ze={},Ze[Ne]=Ee?"0":"",Ze[Oe]=Pe?"0":"",Ze.transform=(Re.devicePixelRatio||1)<=1?"translate("+Ae+"px, "+$e+"px)":"translate3d("+Ae+"px, "+$e+"px, 0)",Ze))}return Object.assign({},Be,(ne={},ne[Ne]=Ee?$e+"px":"",ne[Oe]=Pe?Ae+"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,be=fe===void 0?!0:fe;{var ve=getComputedStyle$1(ne.elements.popper).transitionProperty||"";de&&["transform","top","right","bottom","left"].some(function(_e){return ve.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:be})))),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:be})))),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(be,ve){return be[ve]="",be},{});!isHTMLElement(ie)||!getNodeName(ie)||(Object.assign(ie.style,fe),Object.keys(se).forEach(function(be){ie.removeAttribute(be)}))})}}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],be=fe.x,ve=fe.y;ne.modifiersData.popperOffsets!=null&&(ne.modifiersData.popperOffsets.x+=be,ne.modifiersData.popperOffsets.y+=ve),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(),be=useSyncPropRef(()=>ee.show,Ee=>ne("update:show",Ee)),ve=()=>({placement:ee.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},extend$1({},offset_default,{options:{offset:ee.offset}})]}),ye=()=>de.value&&fe.value?createPopper(de.value,fe.value.popupRef.value,ve()):null,_e=()=>{nextTick(()=>{be.value&&(ie?ie.setOptions(ve()):(ie=ye(),inBrowser$1&&(window.addEventListener("animationend",_e),window.addEventListener("transitionend",_e))))})},we=Ee=>{be.value=Ee},Ae=()=>{ee.trigger==="click"&&(be.value=!be.value)},Ce=(Ee,Oe)=>{Ee.disabled||(ne("select",Ee,Oe),ee.closeOnClickAction&&(be.value=!1))},$e=()=>{be.value&&ee.closeOnClickOutside&&(!ee.overlay||ee.closeOnClickOverlay)&&(be.value=!1)},ke=(Ee,Oe)=>oe.action?oe.action({action:Ee,index:Oe}):[Ee.icon&&createVNode(Icon,{name:Ee.icon,classPrefix:ee.iconPrefix,class:bem$s("action-icon")},null),createVNode("div",{class:[bem$s("action-text"),{[BORDER_BOTTOM]:ee.actionsDirection==="vertical"}]},[Ee.text])],Pe=(Ee,Oe)=>{const{icon:Ne,color:Re,disabled:De,className:Ie}=Ee;return createVNode("div",{role:"menuitem",class:[bem$s("action",{disabled:De,"with-icon":Ne}),{[BORDER_RIGHT]:ee.actionsDirection==="horizontal"},Ie],style:{color:Re},tabindex:De?void 0:0,"aria-disabled":De||void 0,onClick:()=>Ce(Ee,Oe)},[ke(Ee,Oe)])};return onMounted(()=>{_e(),watchEffect(()=>{var Ee;se.value=(Ee=fe.value)==null?void 0:Ee.popupRef.value})}),onBeforeUnmount(()=>{ie&&(inBrowser$1&&(window.removeEventListener("animationend",_e),window.removeEventListener("transitionend",_e)),ie.destroy(),ie=null)}),watch(()=>[be.value,ee.offset,ee.placement],_e),useClickAway([de,se],$e,{eventName:"touchstart"}),()=>{var Ee;return createVNode(Fragment,null,[createVNode("span",{ref:de,class:bem$s("wrapper"),onClick:Ae},[(Ee=oe.reference)==null?void 0:Ee.call(oe)]),createVNode(Popup,mergeProps({ref:fe,show:be.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(Pe)])]})])}}});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 be={color:ae,left:`${+de}%`,transform:`translate(-${+de}%,-50%)`,background:se||ne.value};return createVNode("span",{style:be,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}),be=useTouch(),ve=()=>{if(ee.headHeight!==DEFAULT_HEAD_HEIGHT)return{height:`${ee.headHeight}px`}},ye=()=>fe.status!=="loading"&&fe.status!=="success"&&!ee.disabled,_e=Ne=>{const Re=+(ee.pullDistance||ee.headHeight);return Ne>Re&&(Ne{const De=+(ee.pullDistance||ee.headHeight);fe.distance=Ne,Re?fe.status="loading":Ne===0?fe.status="normal":Ne{const{status:Ne}=fe;return Ne==="normal"?"":ee[`${Ne}Text`]||t$5(Ne)},Ce=()=>{const{status:Ne,distance:Re}=fe;if(oe[Ne])return oe[Ne]({distance:Re});const De=[];return TEXT_STATUS.includes(Ne)&&De.push(createVNode("div",{class:bem$q("text")},[Ae()])),Ne==="loading"&&De.push(createVNode(Loading,{class:bem$q("loading")},{default:Ae})),De},$e=()=>{fe.status="success",setTimeout(()=>{we(0)},+ee.successDuration)},ke=Ne=>{ae=getScrollTop(de.value)===0,ae&&(fe.duration=0,be.start(Ne))},Pe=Ne=>{ye()&&ke(Ne)},Ee=Ne=>{if(ye()){ae||ke(Ne);const{deltaY:Re}=be;be.move(Ne),ae&&Re.value>=0&&be.isVertical()&&(preventDefault(Ne),we(_e(Re.value)))}},Oe=()=>{ae&&be.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,Ne=>{fe.duration=+ee.animationDuration,Ne?we(+ee.headHeight,!0):oe.success||ee.successText?$e():we(0,!1)}),useEventListener("touchmove",Ee,{target:se}),()=>{var Ne;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:Pe,onTouchend:Oe,onTouchcancel:Oe},[createVNode("div",{class:bem$q("head"),style:ve()},[Ce()]),(Ne=oe.default)==null?void 0:Ne.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),be=computed(()=>Array(+ee.count).fill("").map((Oe,Ne)=>getRateStatus(ee.modelValue,Ne+1,ee.allowHalf,ee.readonly)));let ve,ye,_e=Number.MAX_SAFE_INTEGER,we=Number.MIN_SAFE_INTEGER;const Ae=()=>{ye=useRect(se);const Oe=ae.value.map(useRect);ve=[],Oe.forEach((Ne,Re)=>{_e=Math.min(Ne.top,_e),we=Math.max(Ne.top,we),ee.allowHalf?ve.push({score:Re+.5,left:Ne.left,top:Ne.top,height:Ne.height},{score:Re+1,left:Ne.left+Ne.width/2,top:Ne.top,height:Ne.height}):ve.push({score:Re+1,left:Ne.left,top:Ne.top,height:Ne.height})})},Ce=(Oe,Ne)=>{for(let Re=ve.length-1;Re>0;Re--)if(Ne>=ye.top&&Ne<=ye.bottom){if(Oe>ve[Re].left&&Ne>=ve[Re].top&&Ne<=ve[Re].top+ve[Re].height)return ve[Re].score}else{const De=Neve[Re].left&&ve[Re].top===De)return ve[Re].score}return ee.allowHalf?.5:1},$e=Oe=>{de.value||Oe===ee.modelValue||(ne("update:modelValue",Oe),ne("change",Oe))},ke=Oe=>{fe.value||(oe.start(Oe),Ae())},Pe=Oe=>{if(!fe.value&&(oe.move(Oe),oe.isHorizontal()&&!oe.isTap.value)){const{clientX:Ne,clientY:Re}=Oe.touches[0];preventDefault(Oe),$e(Ce(Ne,Re))}},Ee=(Oe,Ne)=>{const{icon:Re,size:De,color:Ie,count:Le,gutter:We,voidIcon:He,disabled:Be,voidColor:Fe,allowHalf:Ze,iconPrefix:qe,disabledColor:ze}=ee,je=Ne+1,Qe=Oe.status==="full",At=Oe.status==="void",Rt=Ze&&Oe.value>0&&Oe.value<1;let Dt;We&&je!==+Le&&(Dt={paddingRight:addUnit(We)});const Ke=Vt=>{Ae();let tn=Ze?Ce(Vt.clientX,Vt.clientY):je;ee.clearable&&oe.isTap.value&&tn===ee.modelValue&&(tn=0),$e(tn)};return createVNode("div",{key:Ne,ref:ie(Ne),role:"radio",style:Dt,class:bem$p("item"),tabindex:Be?void 0:0,"aria-setsize":Le,"aria-posinset":je,"aria-checked":!At,onClick:Ke},[createVNode(Icon,{size:De,name:Qe?Re:He,class:bem$p("icon",{disabled:Be,full:Qe}),color:Be?ze:Qe?Ie:Fe,classPrefix:qe},null),Rt&&createVNode(Icon,{size:De,style:{width:Oe.value+"em"},name:At?He:Re,class:bem$p("icon",["half",{disabled:Be,full:!At}]),color:Be?ze:At?Fe:Ie,classPrefix:qe},null)])};return useCustomFieldValue(()=>ee.modelValue),useEventListener("touchmove",Pe,{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:ke},[be.value.map(Ee)])}});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 Ae=0;Aene.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],Ae=+ie.value[_e],Ce=[];for(let $e=we;$e<=9;$e++)Ce.push($e);for(let $e=0;$e<=CIRCLE_NUM;$e++)for(let ke=0;ke<=9;ke++)Ce.push(ke);for(let $e=0;$e<=Ae;$e++)Ce.push($e);return Ce},fe=(_e,we)=>ee.stopOrder==="ltr"?.2*_e:.2*(we-1-_e),be=ref(ee.autoStart),ve=()=>{be.value=!0},ye=()=>{be.value=!1,ee.autoStart&&raf(()=>ve())};return watch(()=>ee.autoStart,_e=>{_e&&ve()}),useExpose({start:ve,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:be.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$1({},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))},be=()=>ee.id||`${ie}-input`,ve=()=>{if(oe.label||ee.label)return createVNode("label",{class:bem$m("label"),for:be()},[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()},Ae=Re=>ne("blur",Re),Ce=Re=>ne("focus",Re),$e=Re=>ne("clear",Re),ke=Re=>ne("clickInput",Re),Pe=Re=>ne("clickLeftIcon",Re),Ee=Re=>ne("clickRightIcon",Re),Oe=Object.keys(fieldSharedProps),Ne=()=>{const Re=extend$1({},ae,pick(ee,Oe),{id:be()}),De=Ie=>ne("update:modelValue",Ie);return createVNode(Field,mergeProps({ref:se,type:"search",class:bem$m("field",{"with-message":Re.errorMessage}),border:!1,onBlur:Ae,onFocus:Ce,onClear:$e,onKeypress:fe,onClickInput:ke,onClickLeftIcon:Pe,onClickRightIcon:Ee,"onUpdate:modelValue":De},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)},[ve(),Ne()]),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$1({},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,Ae)=>ne("select",we,Ae),de=()=>{const we=oe.title?oe.title():ee.title,Ae=oe.description?oe.description():ee.description;if(we||Ae)return createVNode("div",{class:bem$l("header")},[we&&createVNode("h2",{class:bem$l("title")},[we]),Ae&&createVNode("span",{class:bem$l("description")},[Ae])])},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)]),be=(we,Ae)=>{const{name:Ce,icon:$e,className:ke,description:Pe}=we;return createVNode("div",{role:"button",tabindex:0,class:[bem$l("option"),ke,HAPTICS_FEEDBACK],onClick:()=>se(we,Ae)},[fe($e),Ce&&createVNode("span",{class:bem$l("name")},[Ce]),Pe&&createVNode("span",{class:bem$l("option-description")},[Pe])])},ve=(we,Ae)=>createVNode("div",{class:bem$l("options",{border:Ae})},[we.map(be)]),ye=()=>{const{options:we}=ee;return Array.isArray(we[0])?we.map((Ae,Ce)=>ve(Ae,Ce!==0)):ve(we)},_e=()=>{var we;const Ae=(we=ee.cancelText)!=null?we:t$3("cancel");if(oe.cancel||Ae)return createVNode("button",{type:"button",class:bem$l("cancel"),onClick:ie},[oe.cancel?oe.cancel():Ae])};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$1({},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:be,title:ve,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:be},ee.badgeProps),{default:()=>[oe.title?oe.title():ve]})])}}});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,be;const ve=()=>{if(!ie.value)return!1;ie.value.beginPath(),ie.value.lineWidth=ee.lineWidth,ie.value.strokeStyle=ee.penColor,be=useRect(oe),ne("start")},ye=Ee=>{if(!ie.value)return!1;preventDefault(Ee);const Oe=Ee.touches[0],Ne=Oe.clientX-((be==null?void 0:be.left)||0),Re=Oe.clientY-((be==null?void 0:be.top)||0);ie.value.lineCap="round",ie.value.lineJoin="round",ie.value.lineTo(Ne,Re),ie.value.stroke(),ne("signing",Ee)},_e=Ee=>{preventDefault(Ee),ne("end")},we=Ee=>{const Oe=document.createElement("canvas");if(Oe.width=Ee.width,Oe.height=Ee.height,ee.backgroundColor){const Ne=Oe.getContext("2d");Ae(Ne)}return Ee.toDataURL()===Oe.toDataURL()},Ae=Ee=>{Ee&&ee.backgroundColor&&(Ee.fillStyle=ee.backgroundColor,Ee.fillRect(0,0,de,fe))},Ce=()=>{var Ee,Oe;const Ne=oe.value;if(!Ne)return;const De=we(Ne)?"":((Oe=(Ee={jpg:()=>Ne.toDataURL("image/jpeg",.8),jpeg:()=>Ne.toDataURL("image/jpeg",.8)})[ee.type])==null?void 0:Oe.call(Ee))||Ne.toDataURL(`image/${ee.type}`);ne("submit",{image:De,canvas:Ne})},$e=()=>{ie.value&&(ie.value.clearRect(0,0,de,fe),ie.value.closePath(),Ae(ie.value)),ne("clear")},ke=()=>{var Ee,Oe,Ne;if(se&&oe.value){const Re=oe.value,De=inBrowser$1?window.devicePixelRatio:1;de=Re.width=(((Ee=ae.value)==null?void 0:Ee.offsetWidth)||0)*De,fe=Re.height=(((Oe=ae.value)==null?void 0:Oe.offsetHeight)||0)*De,(Ne=ie.value)==null||Ne.scale(De,De),Ae(ie.value)}},Pe=()=>{if(ie.value){const Ee=ie.value.getImageData(0,0,de,fe);ke(),ie.value.putImageData(Ee,0,0)}};return watch(windowWidth,Pe),onMounted(ke),useExpose({resize:Pe,clear:$e,submit:Ce}),()=>createVNode("div",{class:bem$i()},[createVNode("div",{class:bem$i("content"),ref:ae},[se?createVNode("canvas",{ref:oe,onTouchstartPassive:ve,onTouchmove:ye,onTouchend:_e},null):createVNode("p",null,[ee.tips])]),createVNode("div",{class:bem$i("footer")},[createVNode(Button,{size:"small",onClick:$e},{default:()=>[ee.clearButtonText||t$2("clear")]}),createVNode(Button,{type:"primary",size:"small",onClick:Ce},{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=be=>{const{rowWidth:ve}=ee;return ve===DEFAULT_ROW_WIDTH&&be===+ee.row-1?DEFAULT_LAST_ROW_WIDTH:Array.isArray(ve)?ve[be]:ve},de=()=>Array(+ee.row).fill("").map((be,ve)=>createVNode(stdin_default$j,{key:ve,round:ee.round,rowWidth:addUnit(se(ve))},null)),fe=()=>ne.template?ne.template():createVNode(Fragment,null,[ae(),createVNode("div",{class:bem$e("content")},[ie(),de()])]);return()=>{var be;return ee.loading?createVNode("div",mergeProps({class:bem$e({animate:ee.animate,round:ee.round})},oe),[fe()]):(be=ne.default)==null?void 0:be.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()],be=ref(),ve=useTouch(),ye=computed(()=>Number(ee.max)-Number(ee.min)),_e=computed(()=>{const Be=ee.vertical?"width":"height";return{background:ee.inactiveColor,[Be]:addUnit(ee.barHeight)}}),we=Be=>ee.range&&Array.isArray(Be),Ae=()=>{const{modelValue:Be,min:Fe}=ee;return we(Be)?`${(Be[1]-Be[0])*100/ye.value}%`:`${(Be-Number(Fe))*100/ye.value}%`},Ce=()=>{const{modelValue:Be,min:Fe}=ee;return we(Be)?`${(Be[0]-Number(Fe))*100/ye.value}%`:"0%"},$e=computed(()=>{const Fe={[ee.vertical?"height":"width"]:Ae(),background:ee.activeColor};be.value&&(Fe.transition="none");const Ze=()=>ee.vertical?ee.reverse?"bottom":"top":ee.reverse?"right":"left";return Fe[Ze()]=Ce(),Fe}),ke=Be=>{const Fe=+ee.min,Ze=+ee.max,qe=+ee.step;Be=clamp(Be,Fe,Ze);const ze=Math.round((Be-Fe)/qe)*qe;return addNumber(Fe,ze)},Pe=()=>{const Be=ee.modelValue;we(Be)?se=Be.map(ke):se=ke(Be)},Ee=Be=>{var Fe,Ze;const qe=(Fe=Be[0])!=null?Fe:Number(ee.min),ze=(Ze=Be[1])!=null?Ze:Number(ee.max);return qe>ze?[ze,qe]:[qe,ze]},Oe=(Be,Fe)=>{we(Be)?Be=Ee(Be).map(ke):Be=ke(Be),isSameValue(Be,ee.modelValue)||ne("update:modelValue",Be),Fe&&!isSameValue(Be,se)&&ne("change",Be)},Ne=Be=>{if(Be.stopPropagation(),ee.disabled||ee.readonly)return;Pe();const{min:Fe,reverse:Ze,vertical:qe,modelValue:ze}=ee,je=useRect(de),Qe=()=>qe?Ze?je.bottom-Be.clientY:Be.clientY-je.top:Ze?je.right-Be.clientX:Be.clientX-je.left,At=qe?je.height:je.width,Rt=Number(Fe)+Qe()/At*ye.value;if(we(ze)){const[Dt,Ke]=ze,Vt=(Dt+Ke)/2;Rt<=Vt?Oe([Rt,Ke],!0):Oe([Dt,Rt],!0)}else Oe(Rt,!0)},Re=Be=>{ee.disabled||ee.readonly||(ve.start(Be),ie=ee.modelValue,Pe(),be.value="start")},De=Be=>{if(ee.disabled||ee.readonly)return;be.value==="start"&&ne("dragStart",Be),preventDefault(Be,!0),ve.move(Be),be.value="dragging";const Fe=useRect(de),Ze=ee.vertical?ve.deltaY.value:ve.deltaX.value,qe=ee.vertical?Fe.height:Fe.width;let ze=Ze/qe*ye.value;if(ee.reverse&&(ze=-ze),we(se)){const je=ee.reverse?1-ae:ae;ie[je]=se[je]+ze}else ie=se+ze;Oe(ie)},Ie=Be=>{ee.disabled||ee.readonly||(be.value==="dragging"&&(Oe(ie,!0),ne("dragEnd",Be)),be.value="")},Le=Be=>typeof Be=="number"?bem$c("button-wrapper",["left","right"][Be]):bem$c("button-wrapper",ee.reverse?"left":"right"),We=(Be,Fe)=>{const Ze=be.value==="dragging";if(typeof Fe=="number"){const qe=oe[Fe===0?"left-button":"right-button"];let ze;if(Ze&&Array.isArray(ie)&&(ze=ie[0]>ie[1]?ae^1:ae),qe)return qe({value:Be,dragging:Ze,dragIndex:ze})}return oe.button?oe.button({value:Be,dragging:Ze}):createVNode("div",{class:bem$c("button"),style:getSizeStyle(ee.buttonSize)},null)},He=Be=>{const Fe=typeof Be=="number"?ee.modelValue[Be]:ee.modelValue;return createVNode("div",{ref:fe[Be??0],role:"slider",class:Le(Be),tabindex:ee.disabled?void 0:0,"aria-valuemin":ee.min,"aria-valuenow":Fe,"aria-valuemax":ee.max,"aria-disabled":ee.disabled||void 0,"aria-readonly":ee.readonly||void 0,"aria-orientation":ee.vertical?"vertical":"horizontal",onTouchstartPassive:Ze=>{typeof Be=="number"&&(ae=Be),Re(Ze)},onTouchend:Ie,onTouchcancel:Ie,onClick:stopPropagation},[We(Fe,Be)])};return Oe(ee.modelValue),useCustomFieldValue(()=>ee.modelValue),fe.forEach(Be=>{useEventListener("touchmove",De,{target:Be})}),()=>createVNode("div",{ref:de,style:_e.value,class:bem$c({vertical:ee.vertical,disabled:ee.disabled}),onClick:Ne},[createVNode("div",{class:bem$c("bar"),style:$e.value},[ee.range?[He(0),He(1)]:He()])])}});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$1&&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)}`,be=`${ae(Array.isArray(ee.size)?ee.size[1]:ee.size)}`;return se?ee.wrap?{marginBottom:be}:{}:(ee.direction==="horizontal"&&(de.marginRight=fe),(ee.direction==="vertical"||ee.wrap)&&(de.marginBottom=be),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,be)=>createVNode("div",{key:`item-${be}`,class:`${name$c}-item`,style:ie(be===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})),be=computed(()=>{if(de())return{color:ie.activeColor};if(se()==="waiting")return{color:ie.inactiveColor}}),ve=()=>oe.onClickStep(ae.value),ye=()=>{const{iconPrefix:_e,finishIcon:we,activeIcon:Ae,activeColor:Ce,inactiveIcon:$e}=ie;return de()?ne["active-icon"]?ne["active-icon"]():createVNode(Icon,{class:bem$9("icon","active"),name:Ae,color:Ce,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:Ce,classPrefix:_e},null):ne["inactive-icon"]?ne["inactive-icon"]():$e?createVNode(Icon,{class:bem$9("icon"),name:$e,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:be.value,onClick:ve},[(_e=ne.default)==null?void 0:_e.call(ne)]),createVNode("div",{class:bem$9("circle-container"),onClick:ve},[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,We=!0)=>{const{min:He,max:Be,allowEmpty:Fe,decimalLength:Ze}=ee;return Fe&&Le===""||(Le=formatNumber(String(Le),!ee.integer),Le=Le===""?0:+Le,Le=Number.isNaN(Le)?+He:Le,Le=We?Math.max(Math.min(+Be,Le),+He):Le,isDef(Ze)&&(Le=Le.toFixed(+Ze))),Le},ae=()=>{var Le;const We=(Le=ee.modelValue)!=null?Le:ee.defaultValue,He=oe(We);return isEqual(He,ee.modelValue)||ne("update:modelValue",He),He};let ie;const se=ref(),de=ref(ae()),fe=computed(()=>ee.disabled||ee.disableMinus||+de.value<=+ee.min),be=computed(()=>ee.disabled||ee.disablePlus||+de.value>=+ee.max),ve=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},Ae=()=>{if(ie==="plus"&&be.value||ie==="minus"&&fe.value){ne("overlimit",ie);return}const Le=ie==="minus"?-ee.step:+ee.step,We=oe(addNumber(+de.value,Le));we(We),ne(ie)},Ce=Le=>{const We=Le.target,{value:He}=We,{decimalLength:Be}=ee;let Fe=formatNumber(String(He),!ee.integer);if(isDef(Be)&&Fe.includes(".")){const qe=Fe.split(".");Fe=`${qe[0]}.${qe[1].slice(0,+Be)}`}ee.beforeChange?We.value=String(de.value):isEqual(He,Fe)||(We.value=Fe);const Ze=Fe===String(+Fe);we(Ze?+Fe:Fe)},$e=Le=>{var We;ee.disableInput?(We=se.value)==null||We.blur():ne("focus",Le)},ke=Le=>{const We=Le.target,He=oe(We.value,ee.autoFixed);We.value=String(He),de.value=He,nextTick(()=>{ne("blur",Le),resetScroll()})};let Pe,Ee;const Oe=()=>{Ee=setTimeout(()=>{Ae(),Oe()},LONG_PRESS_INTERVAL)},Ne=()=>{ee.longPress&&(Pe=!1,clearTimeout(Ee),Ee=setTimeout(()=>{Pe=!0,Ae(),Oe()},LONG_PRESS_START_TIME))},Re=Le=>{ee.longPress&&(clearTimeout(Ee),Pe&&preventDefault(Le))},De=Le=>{ee.disableInput&&preventDefault(Le)},Ie=Le=>({onClick:We=>{preventDefault(We),ie=Le,Ae()},onTouchstartPassive:()=>{ie=Le,Ne()},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},Ie("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:ve.value,disabled:ee.disabled,readonly:ee.disableInput,inputmode:ee.integer?"numeric":"decimal",placeholder:ee.placeholder,"aria-valuemax":ee.max,"aria-valuemin":ee.min,"aria-valuenow":de.value,onBlur:ke,onInput:Ce,onFocus:$e,onMousedown:De},null),[[vShow,ee.showInput]]),withDirectives(createVNode("button",mergeProps({type:"button",style:ye.value,class:[bem$8("plus",{disabled:be.value}),{[HAPTICS_FEEDBACK]:!be.value}],"aria-disabled":be.value||void 0},Ie("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:Ae,suffixLabel:Ce,decimalLength:$e}=ee;if(typeof ye=="number"){const ke=(ye/100).toFixed(+$e).split("."),Pe=$e?`.${ke[1]}`:"";return createVNode("div",{class:bem$7("text"),style:{textAlign:Ae}},[createVNode("span",null,[_e||t$1("label")]),createVNode("span",{class:bem$7("price")},[we,createVNode("span",{class:bem$7("price-integer")},[ke[0]]),Pe]),Ce&&createVNode("span",{class:bem$7("suffix-label")},[Ce])])}},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"),be=()=>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),ve=()=>{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(),be()])])};return()=>ee.placeholder?ie(ve):ve()}});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(),be=ref(),ve=ref(),ye=reactive({offset:0,dragging:!1}),_e=useTouch(),we=Le=>Le.value?useRect(Le).width:0,Ae=computed(()=>isDef(ee.leftWidth)?+ee.leftWidth:we(be)),Ce=computed(()=>isDef(ee.rightWidth)?+ee.rightWidth:we(ve)),$e=Le=>{ye.offset=Le==="left"?Ae.value:-Ce.value,ae||(ae=!0,ne("open",{name:ee.name,position:Le}))},ke=Le=>{ye.offset=0,ae&&(ae=!1,ne("close",{name:ee.name,position:Le}))},Pe=Le=>{const We=Math.abs(ye.offset),He=.15,Be=ae?1-He:He,Fe=Le==="left"?Ae.value:Ce.value;Fe&&We>Fe*Be?$e(Le):ke(Le)},Ee=Le=>{ee.disabled||(se=ye.offset,_e.start(Le))},Oe=Le=>{if(ee.disabled)return;const{deltaX:We}=_e;_e.move(Le),_e.isHorizontal()&&(ie=!0,ye.dragging=!0,(!ae||We.value*se<0)&&preventDefault(Le,ee.stopPropagation),ye.offset=clamp(We.value+se,-Ce.value,Ae.value))},Ne=()=>{ye.dragging&&(ye.dragging=!1,Pe(ye.offset>0?"left":"right"),setTimeout(()=>{ie=!1},0))},Re=(Le="outside")=>{de||(ne("click",Le),ae&&!ie&&(de=!0,callInterceptor(ee.beforeClose,{args:[{name:ee.name,position:Le}],done:()=>{de=!1,ke(Le)},canceled:()=>de=!1,error:()=>de=!1})))},De=(Le,We)=>He=>{We&&He.stopPropagation(),Re(Le)},Ie=(Le,We)=>{const He=oe[Le];if(He)return createVNode("div",{ref:We,class:bem$6(Le),onClick:De(Le,!0)},[He()])};return useExpose({open:$e,close:ke}),useClickAway(fe,()=>Re("outside"),{eventName:"touchstart"}),useEventListener("touchmove",Oe,{target:fe}),()=>{var Le;const We={transform:`translate3d(${ye.offset}px, 0, 0)`,transitionDuration:ye.dragging?"0s":".6s"};return createVNode("div",{ref:fe,class:bem$6(),onClick:De("cell",ie),onTouchstartPassive:Ee,onTouchend:Ne,onTouchcancel:Ne},[createVNode("div",{class:bem$6("wrapper"),style:We},[Ie("left",be),(Le=oe.default)==null?void 0:Le.call(oe),Ie("right",ve)])])}}});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 ve;return(ve=ee.safeAreaInsetBottom)!=null?ve:ee.fixed},fe=()=>{var ve;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()}]},[(ve=oe.default)==null?void 0:ve.call(oe)])};return ie({props:ee,setActive:(ve,ye)=>{callInterceptor(ee.beforeChange,{args:[ve],done(){ne("update:modelValue",ve),ne("change",ve),ye()}})}}),()=>ee.fixed&&ee.placeholder?se(fe):fe()}});const Tabbar=withInstall(stdin_default$9),[name$5,bem$4]=createNamespace("tabbar-item"),tabbarItemProps=extend$1({},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:Ae}=ie,{to:Ce}=ee,$e=isObject$2(Ce)?Ce:{path:Ce};return!!Ae.matched.find(ke=>{const Pe="path"in $e&&$e.path===ke.path,Ee="name"in $e&&$e.name===ke.name;return Pe||Ee})}return((ye=ee.name)!=null?ye:de.value)===we}),be=ye=>{var _e;fe.value||se.setActive((_e=ee.name)!=null?_e:de.value,ae),ne("click",ye)},ve=()=>{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:Ae,inactiveColor:Ce}=se.props,$e=fe.value?Ae:Ce;return createVNode("div",{role:"tab",class:bem$4({active:fe.value}),style:{color:$e},tabindex:0,"aria-selected":fe.value,onClick:be},[createVNode(Badge,mergeProps({dot:_e,class:bem$4("icon"),content:we},ee.badgeProps),{default:ve}),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(""),ie=ref(!1),se=ref(!1),de=ref();let fe=!1;const be=computed(()=>ie.value?ee.collapseText:ee.expandText),ve=$e=>{if(!$e)return 0;const ke=$e.match(/^\d*(\.\d*)?/);return ke?Number(ke[0]):0},ye=()=>{if(!de.value||!de.value.isConnected)return;const $e=window.getComputedStyle(de.value),ke=document.createElement("div");return Array.prototype.slice.apply($e).forEach(Ee=>{ke.style.setProperty(Ee,$e.getPropertyValue(Ee))}),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},_e=()=>{const $e=(Re,De)=>{const{content:Ie,position:Le,dots:We}=ee,He=Ie.length,Be=()=>{const qe=(ze,je)=>{if(je-ze<=1)return Le==="end"?Ie.slice(0,ze)+We:We+Ie.slice(je,He);const Qe=Math.round((ze+je)/2);return Le==="end"?Re.innerText=Ie.slice(0,Qe)+We+be.value:Re.innerText=We+Ie.slice(Qe,He)+be.value,Re.offsetHeight>De?Le==="end"?qe(ze,Qe):qe(Qe,je):Le==="end"?qe(Qe,je):qe(ze,Qe)};Re.innerText=qe(0,He)},Fe=(qe,ze)=>{if(qe[1]-qe[0]<=1&&ze[1]-ze[0]<=1)return Ie.slice(0,qe[0])+We+Ie.slice(ze[1],He);const je=Math.floor((qe[0]+qe[1])/2),Qe=Math.ceil((ze[0]+ze[1])/2);return Re.innerText=ee.content.slice(0,je)+ee.dots+ee.content.slice(Qe,He)+ee.expandText,Re.offsetHeight>=De?Fe([qe[0],je],[Qe,ze[1]]):Fe([je,qe[1]],[ze[0],Qe])},Ze=0+He>>1;return ee.position==="middle"?Re.innerText=Fe([0,Ze],[Ze,He]):Be(),Re.innerText},ke=ye();if(!ke){fe=!0;return}const{paddingBottom:Pe,paddingTop:Ee,lineHeight:Oe}=ke.style,Ne=Math.ceil((Number(ee.rows)+.5)*ve(Oe)+ve(Ee)+ve(Pe));Ne{ie.value=$e},Ae=$e=>{we(),ne("clickAction",$e)},Ce=()=>{const $e=oe.action?oe.action({expanded:ie.value}):be.value;return createVNode("span",{class:bem$3("action"),onClick:Ae},[$e])};return onMounted(_e),onActivated(()=>{fe&&(fe=!1,_e())}),watch([windowWidth,()=>[ee.content,ee.rows,ee.position]],_e),useExpose({toggle:we}),()=>createVNode("div",{ref:de,class:bem$3()},[ie.value?ee.content:ae.value,se.value?Ce():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$1({},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"]},filter:Function});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 Ae=we.split(":");return fullColumns.map((Ce,$e)=>ee.columnsType.includes(Ce)?Ae[$e]:"00")},de=()=>{var we;return(we=ie.value)==null?void 0:we.confirm()},fe=()=>ae.value,be=computed(()=>{let{minHour:we,maxHour:Ae,minMinute:Ce,maxMinute:$e,minSecond:ke,maxSecond:Pe}=ee;if(ee.minTime||ee.maxTime){const Ee={hour:0,minute:0,second:0};ee.columnsType.forEach((Re,De)=>{var Ie;Ee[Re]=(Ie=ae.value[De])!=null?Ie:0});const{hour:Oe,minute:Ne}=Ee;if(ee.minTime){const[Re,De,Ie]=se(ee.minTime);we=Re,Ce=+Oe<=+we?De:"00",ke=+Oe<=+we&&+Ne<=+Ce?Ie:"00"}if(ee.maxTime){const[Re,De,Ie]=se(ee.maxTime);Ae=Re,$e=+Oe>=+Ae?De:"59",Pe=+Oe>=+Ae&&+Ne>=+$e?Ie:"59"}}return ee.columnsType.map(Ee=>{const{filter:Oe,formatter:Ne}=ee;switch(Ee){case"hour":return genOptions(+we,+Ae,Ee,Ne,Oe,ae.value);case"minute":return genOptions(+Ce,+$e,Ee,Ne,Oe,ae.value);case"second":return genOptions(+ke,+Pe,Ee,Ne,Oe,ae.value);default:return[]}})});watch(ae,we=>{isSameValue(we,ee.modelValue)||ne("update:modelValue",we)}),watch(()=>ee.modelValue,we=>{we=formatValueRange(we,be.value),isSameValue(we,ae.value)||(ae.value=we)},{immediate:!0});const ve=(...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:be.value,onChange:ve,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=ve=>Array.isArray(ee.activeId)?ee.activeId.includes(ve):ee.activeId===ve,ie=ve=>{const ye=()=>{if(ve.disabled)return;let _e;if(Array.isArray(ee.activeId)){_e=ee.activeId.slice();const we=_e.indexOf(ve.id);we!==-1?_e.splice(we,1):_e.length<+ee.max&&_e.push(ve.id)}else _e=ve.id;ne("update:activeId",_e),ne("clickItem",ve)};return createVNode("div",{key:ve.id,class:["van-ellipsis",bem$2("item",{active:ae(ve.id),disabled:ve.disabled})],onClick:ye},[ve.text,ae(ve.id)&&createVNode(Icon,{name:ee.selectedIcon,class:bem$2("selected")},null)])},se=ve=>{ne("update:mainActiveIndex",ve)},de=ve=>ne("clickNav",ve),fe=()=>{const ve=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:()=>[ve]})},be=()=>{if(oe.content)return oe.content();const ve=ee.items[+ee.mainActiveIndex]||{};if(ve.children)return ve.children.map(ie)};return()=>createVNode("div",{class:bem$2(),style:{height:addUnit(ee.height)}},[fe(),createVNode("div",{class:bem$2("content")},[be()])])}});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$1(ee).some(oe=>oe.file?isFunction$1(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),Ae=isDef(_e)&&_e!=="";return createVNode("div",{class:bem$1("mask")},[we,Ae&&createVNode("div",{class:bem$1("mask-message")},[_e])])}},ie=ye=>{const{name:_e,item:we,index:Ae,beforeDelete:Ce}=ee;ye.stopPropagation(),callInterceptor(Ce,{args:[we,{name:_e,index:Ae}],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)])}},be=()=>{if(oe["preview-cover"]){const{index:ye,item:_e}=ee;return createVNode("div",{class:bem$1("preview-cover")},[oe["preview-cover"](extend$1({index:ye},_e))])}},ve=()=>{const{item:ye,lazyLoad:_e,imageFit:we,previewSize:Ae,reupload:Ce}=ee;return isImageFile(ye)?createVNode(Image$1,{fit:we,src:ye.objectUrl||ye.content||ye.url,class:bem$1("preview-image"),width:Array.isArray(Ae)?Ae[0]:Ae,height:Array.isArray(Ae)?Ae[1]:Ae,lazyLoad:_e,onClick:Ce?de:se},{default:be}):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]),be()])};return()=>createVNode("div",{class:bem$1("preview")},[ve(),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}),be=()=>{ae.value&&(ae.value.value="")},ve=Le=>{if(be(),isOversize(Le,ee.maxSize))if(Array.isArray(Le)){const We=filterFiles(Le,ee.maxSize);if(Le=We.valid,ne("oversize",We.invalid,fe()),!Le.length)return}else{ne("oversize",Le,fe());return}if(Le=reactive(Le),se.value>-1){const We=[...ee.modelValue];We.splice(se.value,1,Le),ne("update:modelValue",We),se.value=-1}else ne("update:modelValue",[...ee.modelValue,...toArray$1(Le)]);ee.afterRead&&ee.afterRead(Le,fe())},ye=Le=>{const{maxCount:We,modelValue:He,resultType:Be}=ee;if(Array.isArray(Le)){const Fe=+We-He.length;Le.length>Fe&&(Le=Le.slice(0,Fe)),Promise.all(Le.map(Ze=>readFileContent(Ze,Be))).then(Ze=>{const qe=Le.map((ze,je)=>{const Qe={file:ze,status:"",message:"",objectUrl:URL.createObjectURL(ze)};return Ze[je]&&(Qe.content=Ze[je]),Qe});ve(qe)})}else readFileContent(Le,Be).then(Fe=>{const Ze={file:Le,status:"",message:"",objectUrl:URL.createObjectURL(Le)};Fe&&(Ze.content=Fe),ve(Ze)})},_e=Le=>{const{files:We}=Le.target;if(ee.disabled||!We||!We.length)return;const He=We.length===1?We[0]:[].slice.call(We);if(ee.beforeRead){const Be=ee.beforeRead(He,fe());if(!Be){be();return}if(isPromise(Be)){Be.then(Fe=>{ye(Fe||He)}).catch(be);return}}ye(He)};let we;const Ae=()=>ne("closePreview"),Ce=Le=>{if(ee.previewFullImage){const We=ee.modelValue.filter(isImageFile),He=We.map(Be=>(Be.objectUrl&&!Be.url&&Be.status!=="failed"&&(Be.url=Be.objectUrl,ie.push(Be.url)),Be.url)).filter(Boolean);we=showImagePreview(extend$1({images:He,startPosition:We.indexOf(Le),onClose:Ae},ee.previewOptions))}},$e=()=>{we&&we.close()},ke=(Le,We)=>{const He=ee.modelValue.slice(0);He.splice(We,1),ne("update:modelValue",He),ne("delete",Le,fe(We))},Pe=Le=>{de.value=!0,se.value=Le,nextTick(()=>Ie())},Ee=()=>{de.value||(se.value=-1),de.value=!1},Oe=(Le,We)=>{const He=["imageFit","deletable","reupload","previewSize","beforeDelete"],Be=extend$1(pick(ee,He),pick(Le,He,!0));return createVNode(stdin_default$4,mergeProps({item:Le,index:We,onClick:()=>ne(ee.reupload?"clickReupload":"clickPreview",Le,fe(We)),onDelete:()=>ke(Le,We),onPreview:()=>Ce(Le),onReupload:()=>Pe(We)},pick(ee,["name","lazyLoad"]),Be),pick(oe,["preview-cover","preview-delete"]))},Ne=()=>{if(ee.previewImage)return ee.modelValue.map(Oe)},Re=Le=>ne("clickUpload",Le),De=()=>{if(ee.modelValue.length>=+ee.maxCount&&!ee.reupload)return;const Le=ee.modelValue.length>=+ee.maxCount&&ee.reupload,We=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:Ee},null);return oe.default?withDirectives(createVNode("div",{class:bem$1("input-wrapper"),onClick:Re},[oe.default(),We]),[[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]),We]),[[vShow,ee.showUpload&&!Le]])},Ie=()=>{ae.value&&!ee.disabled&&ae.value.click()};return onBeforeUnmount(()=>{ie.forEach(Le=>URL.revokeObjectURL(Le))}),useExpose({chooseFile:Ie,closeImagePreview:$e}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode("div",{class:bem$1()},[createVNode("div",{class:bem$1("wrapper",{disabled:ee.disabled})},[Ne(),De()])])}});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 be={transformOrigin:"center",transform:`rotate(${ee.rotate}deg)`},ve=()=>ee.image&&!ne.content?createVNode("image",{href:ie.value,"xlink:href":ie.value,x:"0",y:"0",width:ee.width,height:ee.height,style:be},null):createVNode("foreignObject",{x:"0",y:"0",width:ee.width,height:ee.height},[createVNode("div",{xmlns:"http://www.w3.org/1999/xhtml",style:be},[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}},[ve()])},de=be=>{const ve=document.createElement("canvas"),ye=new Image;ye.crossOrigin="anonymous",ye.referrerPolicy="no-referrer",ye.onload=()=>{ve.width=ye.naturalWidth,ve.height=ye.naturalHeight;const _e=ve.getContext("2d");_e==null||_e.drawImage(ye,0,0),ie.value=ve.toDataURL()},ye.src=be},fe=be=>{const ve=new Blob([be],{type:"image/svg+xml"});return URL.createObjectURL(ve)};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 be=extend$1({backgroundImage:`url(${ae.value})`},getZIndexStyle(ee.zIndex));return createVNode("div",{class:bem({full:ee.fullPage}),style:be},[createVNode("div",{class:bem("wrapper"),ref:oe},[se()])])}}});const Watermark=withInstall(stdin_default$2),version="4.9.0";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};(function(){if(typeof window>"u")return;var ee,ne="ontouchstart"in window;document.createTouch||(document.createTouch=function(ye,_e,we,Ae,Ce,$e,ke){return new oe(_e,we,{pageX:Ae,pageY:Ce,screenX:$e,screenY:ke,clientX:Ae-window.pageXOffset,clientY:Ce-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var ye=ae(),_e=0;_e`${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 install(ee){ee.use(stdin_default$1)}const locales={"zh-cn":stdin_default$1U,"en-us":stdin_default},ui={install},_sfc_main$1=defineComponent({__name:"index",setup(ee){const ne=useSettingsStore();return watch(()=>ne.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"])}}}),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}});function wmFn(){const ee={},ne={id:"wm_div_id",prefix:"mask_div_id",text:"测试水印",x:20,y:20,rows:0,cols:0,x_space:50,y_space:50,font:"微软雅黑",color:"black",fontsize:"18px",alpha:.15,width:100,height:100,angle:15,parent_width:0,parent_height:0,parent_node:null,monitor:!0};let oe=!1;const ae=new MutationObserver(de);function ie(ve){var We;Object.assign(ne,ve);const ye=document.getElementById(ne.id);(We=ye==null?void 0:ye.parentNode)==null||We.removeChild(ye);const _e=ne.parent_node,we=_e||document.body,Ae=Math.max(we.scrollWidth,we.clientWidth),Ce=Math.max(we.scrollHeight,we.clientHeight);let $e=0,ke=0;ve.parent_width||ve.parent_height?we&&($e=we.offsetTop||0,ke=we.offsetLeft||0,ne.x=ne.x+ke,ne.y=ne.y+$e):we&&($e=we.offsetTop||0,ke=we.offsetLeft||0);let Pe=document.getElementById(ne.id),Ee=null;if(Pe)Pe.shadowRoot&&(Ee=Pe.shadowRoot);else{Pe=document.createElement("div"),Pe.id=ne.id,Pe.setAttribute("style","pointer-events: none !important; display: block !important"),typeof Pe.attachShadow=="function"?Ee=Pe.attachShadow({mode:"open"}):Ee=Pe;const He=we.children,Be=Math.floor(Math.random()*(He.length-1));He[Be]?we.insertBefore(Pe,He[Be]):we.appendChild(Pe)}ne.cols=Math.floor((Ae-ne.x)/(ne.width+ne.x_space));const Oe=Math.floor((Ae-ne.x-ne.width*ne.cols)/ne.cols);ne.x_space=Oe&&ne.x_space;let Ne;ne.rows=Math.floor((Ce-ne.y)/(ne.height+ne.y_space));const Re=Math.floor((Ce-ne.y-ne.height*ne.rows)/ne.rows);ne.y_space=Re&&ne.y_space;let De;_e?(Ne=ne.x+ne.width*ne.cols+ne.x_space*(ne.cols-1),De=ne.y+ne.height*ne.rows+ne.y_space*(ne.rows-1)):(Ne=ke+ne.x+ne.width*ne.cols+ne.x_space*(ne.cols-1),De=$e+ne.y+ne.height*ne.rows+ne.y_space*(ne.rows-1));let Ie,Le;for(let He=0;He"),Fe.id=ne.prefix+He+Be,Fe.style.transform=`rotate(-${ne.angle}deg)`,Fe.style.visibility="",Fe.style.position="absolute",Fe.style.left=`${Ie}px`,Fe.style.top=`${Le}px`,Fe.style.overflow="hidden",Fe.style.zIndex="9999999",Fe.style.opacity=`${ne.alpha}`,Fe.style.fontSize=ne.fontsize,Fe.style.fontFamily=ne.font,Fe.style.color=ne.color,Fe.style.textAlign="center",Fe.style.width=`${ne.width}px`,Fe.style.height=`${ne.height}px`,Fe.style.display="block",Fe.style.userSelect="none",Ee==null||Ee.appendChild(Fe)}}if(ne.monitor){const He={childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"],attributeOldValue:!0};ae.observe(we,He),ae.observe(document.getElementById(ne.id).shadowRoot,He)}}function se(){var ye;const ve=document.getElementById(ne.id);(ye=ve==null?void 0:ve.parentNode)==null||ye.removeChild(ve),ae.disconnect()}function de(ve){if(oe){oe=!1;return}(ee&&ve.length===1||ve.length===1&&ve[0].removedNodes.length>=1)&&ie(ee)}return{init:function(ve){Object.assign(ee,ve),ie(ve)},remove:function(){oe=!0,se()}}}const useWatermarkStore=defineStore("watermark",()=>{const ee=useSettingsStore(),{init:ne,remove:oe}=wmFn(),ae=ref({}),ie=computed({get(){return Object.assign({text:`Fantastic-mobile +别具一格, 自成一派`,width:160,x:0,y:0,x_space:25,y_space:25,alpha:.1,color:ee.settings.app.colorScheme==="light"?"black":"white",parent_node:document.getElementById("app")},ae.value)},set(be){fe(be)}});watch(ie,()=>{ee.settings.app.enableWatermark&&se()},{deep:!0}),watch(()=>ee.settings.app.enableWatermark,be=>{be?se():de()},{immediate:!0}),watch(()=>ee.settings.app.colorScheme,()=>{ee.settings.app.enableWatermark&&se()});function se(){ne(ie.value)}function de(){try{oe()}catch{}}function fe(be={}){ae.value=be}return{update:fe}});function bind(ee,ne){return function(){return ee.apply(ne,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(ee=>ne=>{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(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=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=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=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=ee=>isObject(ee)&&isFunction(ee.pipe),isFormData=ee=>{let ne;return ee&&(typeof FormData=="function"&&ee instanceof FormData||isFunction(ee.append)&&((ne=kindOf(ee))==="formdata"||ne==="object"&&isFunction(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(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=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=(({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(ee)&&["arguments","caller","callee"].indexOf(oe)!==-1)return!1;const ae=ee[oe];if(isFunction(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=()=>{},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(ee.append)&&ee[Symbol.toStringTag]==="FormData"&&ee[Symbol.iterator])}const toJSONObject=ee=>{const ne=new Array(10),oe=(ae,ie)=>{if(isObject(ae)){if(ne.indexOf(ae)>=0)return;if(!("toJSON"in ae)){ne[ie]=ae;const se=isArray(ae)?[]:{};return forEach(ae,(de,fe)=>{const be=oe(de,ie+1);!isUndefined(be)&&(se[fe]=be)}),ne[ie]=void 0,se}}return ae};return oe(ee,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=ee=>ee&&(isObject(ee)||isFunction(ee))&&isFunction(ee.then)&&isFunction(ee.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};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)}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.response&&this.response.status?this.response.status:null}}});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(be){return be!==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($e,ke){return!utils$1.isUndefined(ke[$e])});const ae=oe.metaTokens,ie=oe.visitor||ye,se=oe.dots,de=oe.indexes,be=(oe.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(ne);if(!utils$1.isFunction(ie))throw new TypeError("visitor must be a function");function ve(Ce){if(Ce===null)return"";if(utils$1.isDate(Ce))return Ce.toISOString();if(!be&&utils$1.isBlob(Ce))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(Ce)||utils$1.isTypedArray(Ce)?be&&typeof Blob=="function"?new Blob([Ce]):Buffer.from(Ce):Ce}function ye(Ce,$e,ke){let Pe=Ce;if(Ce&&!ke&&typeof Ce=="object"){if(utils$1.endsWith($e,"{}"))$e=ae?$e:$e.slice(0,-2),Ce=JSON.stringify(Ce);else if(utils$1.isArray(Ce)&&isFlatArray(Ce)||(utils$1.isFileList(Ce)||utils$1.endsWith($e,"[]"))&&(Pe=utils$1.toArray(Ce)))return $e=removeBrackets($e),Pe.forEach(function(Oe,Ne){!(utils$1.isUndefined(Oe)||Oe===null)&&ne.append(de===!0?renderKey([$e],Ne,se):de===null?$e:$e+"[]",ve(Oe))}),!1}return isVisitable(Ce)?!0:(ne.append(renderKey(ke,$e,se),ve(Ce)),!1)}const _e=[],we=Object.assign(predicates,{defaultVisitor:ye,convertValue:ve,isVisitable});function Ae(Ce,$e){if(!utils$1.isUndefined(Ce)){if(_e.indexOf(Ce)!==-1)throw Error("Circular reference detected in "+$e.join("."));_e.push(Ce),utils$1.forEach(Ce,function(Pe,Ee){(!(utils$1.isUndefined(Pe)||Pe===null)&&ie.call(ne,Pe,utils$1.isString(Ee)?Ee.trim():Ee,$e,we))===!0&&Ae(Pe,$e?$e.concat(Ee):[Ee])}),_e.pop()}}if(!utils$1.isObject(ee))throw new TypeError("data must be an object");return Ae(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",hasStandardBrowserEnv=(ee=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(ee)<0)(typeof navigator<"u"&&navigator.product),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,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,be?(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(oe||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 be=this.env&&this.env.FormData;return toFormData(fe?{"files[]":ne}:ne,be&&new be,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,be,ve){const ye=normalizeHeader(be);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||ve===!0||ve===void 0&&ie[_e]!==!1)&&(ie[_e||be]=normalizeValue(fe))}const de=(fe,be)=>utils$1.forEach(fe,(ve,ye)=>se(ve,ye,be));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,be]of ne.entries())se(be,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(be){const ve=Date.now(),ye=ae[se];de||(de=ve),oe[ie]=be,ae[ie]=ve;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),ve-deae)return ie&&(clearTimeout(ie),ie=null),oe=fe,ee.apply(null,arguments);ie||(ie=setTimeout(()=>(ie=null,oe=Date.now(),ee.apply(null,arguments)),ae-(fe-oe)))}}const progressEventReducer=(ee,ne,oe=3)=>{let ae=0;const ie=speedometer(50,250);return throttle(se=>{const de=se.loaded,fe=se.lengthComputable?se.total:void 0,be=de-ae,ve=ie(be),ye=de<=fe;ae=de;const _e={loaded:de,total:fe,progress:fe?de/fe:void 0,bytes:be,rate:ve||void 0,estimated:ve&&fe&&ye?(fe-de)/ve:void 0,event:se,lengthComputable:fe!=null};_e[ne?"download":"upload"]=!0,ee(_e)},oe)},isURLSameOrigin=platform.hasStandardBrowserEnv?function ee(){const ne=/(msie|trident)/i.test(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(ve,ye,_e){return utils$1.isPlainObject(ve)&&utils$1.isPlainObject(ye)?utils$1.merge.call({caseless:_e},ve,ye):utils$1.isPlainObject(ye)?utils$1.merge({},ye):utils$1.isArray(ye)?ye.slice():ye}function ie(ve,ye,_e){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(ve))return ae(void 0,ve,_e)}else return ae(ve,ye,_e)}function se(ve,ye){if(!utils$1.isUndefined(ye))return ae(void 0,ye)}function de(ve,ye){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(ve))return ae(void 0,ve)}else return ae(void 0,ye)}function fe(ve,ye,_e){if(_e in ne)return ae(ve,ye);if(_e in ee)return ae(void 0,ve)}const be={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:(ve,ye)=>ie(headersToObject(ve),headersToObject(ye),!0)};return utils$1.forEach(Object.keys(Object.assign({},ee,ne)),function(ye){const _e=be[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 be;if(utils$1.isFormData(oe)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)de.setContentType(void 0);else if((be=de.getContentType())!==!1){const[ve,...ye]=be?be.split(";").map(_e=>_e.trim()).filter(Boolean):[];de.setContentType([ve||"multipart/form-data",...ye].join("; "))}}if(platform.hasStandardBrowserEnv&&(ae&&utils$1.isFunction(ae)&&(ae=ae(ne)),ae||ae!==!1&&isURLSameOrigin(ne.url))){const ve=ie&&se&&cookies.read(se);ve&&de.set(ie,ve)}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}=ie,be;function ve(){ie.cancelToken&&ie.cancelToken.unsubscribe(be),ie.signal&&ie.signal.removeEventListener("abort",be)}let ye=new XMLHttpRequest;ye.open(ie.method.toUpperCase(),ie.url,!0),ye.timeout=ie.timeout;function _e(){if(!ye)return;const Ae=AxiosHeaders.from("getAllResponseHeaders"in ye&&ye.getAllResponseHeaders()),$e={data:!fe||fe==="text"||fe==="json"?ye.responseText:ye.response,status:ye.status,statusText:ye.statusText,headers:Ae,config:ee,request:ye};settle(function(Pe){oe(Pe),ve()},function(Pe){ae(Pe),ve()},$e),ye=null}"onloadend"in ye?ye.onloadend=_e:ye.onreadystatechange=function(){!ye||ye.readyState!==4||ye.status===0&&!(ye.responseURL&&ye.responseURL.indexOf("file:")===0)||setTimeout(_e)},ye.onabort=function(){ye&&(ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,ie,ye)),ye=null)},ye.onerror=function(){ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ie,ye)),ye=null},ye.ontimeout=function(){let Ce=ie.timeout?"timeout of "+ie.timeout+"ms exceeded":"timeout exceeded";const $e=ie.transitional||transitionalDefaults;ie.timeoutErrorMessage&&(Ce=ie.timeoutErrorMessage),ae(new AxiosError(Ce,$e.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,ie,ye)),ye=null},se===void 0&&de.setContentType(null),"setRequestHeader"in ye&&utils$1.forEach(de.toJSON(),function(Ce,$e){ye.setRequestHeader($e,Ce)}),utils$1.isUndefined(ie.withCredentials)||(ye.withCredentials=!!ie.withCredentials),fe&&fe!=="json"&&(ye.responseType=ie.responseType),typeof ie.onDownloadProgress=="function"&&ye.addEventListener("progress",progressEventReducer(ie.onDownloadProgress,!0)),typeof ie.onUploadProgress=="function"&&ye.upload&&ye.upload.addEventListener("progress",progressEventReducer(ie.onUploadProgress)),(ie.cancelToken||ie.signal)&&(be=Ae=>{ye&&(ae(!Ae||Ae.type?new CanceledError(null,ee,ye):Ae),ye.abort(),ye=null)},ie.cancelToken&&ie.cancelToken.subscribe(be),ie.signal&&(ie.signal.aborted?be():ie.signal.addEventListener("abort",be)));const we=parseProtocol(ie.url);if(we&&platform.protocols.indexOf(we)===-1){ae(new AxiosError("Unsupported protocol "+we+":",AxiosError.ERR_BAD_REQUEST,ee));return}ye.send(se||null)})},composeSignals=(ee,ne)=>{let oe=new AbortController,ae;const ie=function(be){if(!ae){ae=!0,de();const ve=be instanceof Error?be:this.reason;oe.abort(ve instanceof AxiosError?ve:new CanceledError(ve instanceof Error?ve.message:ve))}};let se=ne&&setTimeout(()=>{ie(new AxiosError(`timeout ${ne} of ms exceeded`,AxiosError.ETIMEDOUT))},ne);const de=()=>{ee&&(se&&clearTimeout(se),se=null,ee.forEach(be=>{be&&(be.removeEventListener?be.removeEventListener("abort",ie):be.unsubscribe(ie))}),ee=null)};ee.forEach(be=>be&&be.addEventListener&&be.addEventListener("abort",ie));const{signal:fe}=oe;return fe.unsubscribe=de,[fe,()=>{se&&clearTimeout(se),se=null}]},streamChunk=function*(ee,ne){let oe=ee.byteLength;if(!ne||oe{const se=readBytes(ee,ne,ie);let de=0;return new ReadableStream({type:"bytes",async pull(fe){const{done:be,value:ve}=await se.next();if(be){fe.close(),ae();return}let ye=ve.byteLength;oe&&oe(de+=ye),fe.enqueue(new Uint8Array(ve))},cancel(fe){return ae(fe),se.return()}},{highWaterMark:2})},fetchProgressDecorator=(ee,ne)=>{const oe=ee!=null;return ae=>setTimeout(()=>ne({lengthComputable:oe,total:ee,loaded:ae}))},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())),supportsRequestStream=isReadableStreamSupported&&(()=>{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&&!!(()=>{try{return utils$1.isReadableStream(new Response("").body)}catch{}})(),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(ee).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(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:be,responseType:ve,headers:ye,withCredentials:_e="same-origin",fetchOptions:we}=resolveConfig(ee);ve=ve?(ve+"").toLowerCase():"text";let[Ae,Ce]=ie||se||de?composeSignals([ie,se],de):[],$e,ke;const Pe=()=>{!$e&&setTimeout(()=>{Ae&&Ae.unsubscribe()}),$e=!0};let Ee;try{if(be&&supportsRequestStream&&oe!=="get"&&oe!=="head"&&(Ee=await resolveBodyLength(ye,ae))!==0){let De=new Request(ne,{method:"POST",body:ae,duplex:"half"}),Ie;utils$1.isFormData(ae)&&(Ie=De.headers.get("content-type"))&&ye.setContentType(Ie),De.body&&(ae=trackStream(De.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(Ee,progressEventReducer(be)),null,encodeText))}utils$1.isString(_e)||(_e=_e?"cors":"omit"),ke=new Request(ne,{...we,signal:Ae,method:oe.toUpperCase(),headers:ye.normalize().toJSON(),body:ae,duplex:"half",withCredentials:_e});let Oe=await fetch(ke);const Ne=supportsResponseStream&&(ve==="stream"||ve==="response");if(supportsResponseStream&&(fe||Ne)){const De={};["status","statusText","headers"].forEach(Le=>{De[Le]=Oe[Le]});const Ie=utils$1.toFiniteNumber(Oe.headers.get("content-length"));Oe=new Response(trackStream(Oe.body,DEFAULT_CHUNK_SIZE,fe&&fetchProgressDecorator(Ie,progressEventReducer(fe,!0)),Ne&&Pe,encodeText),De)}ve=ve||"text";let Re=await resolvers[utils$1.findKey(resolvers,ve)||"text"](Oe,ee);return!Ne&&Pe(),Ce&&Ce(),await new Promise((De,Ie)=>{settle(De,Ie,{data:Re,headers:AxiosHeaders.from(Oe.headers),status:Oe.status,statusText:Oe.statusText,config:ee,request:ke})})}catch(Oe){throw Pe(),Oe&&Oe.name==="TypeError"&&/fetch/i.test(Oe.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ee,ke),{cause:Oe.cause||Oe}):AxiosError.from(Oe,Oe&&Oe.code,ee,ke)}}),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} `+(be===!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.2",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],be=fe===void 0||de(fe,se,ee);if(be!==!0)throw new AxiosError("option "+se+" must be "+be,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"],Ce=>{delete se[Ce]}),oe.headers=AxiosHeaders.concat(de,se);const fe=[];let be=!0;this.interceptors.request.forEach(function($e){typeof $e.runWhen=="function"&&$e.runWhen(oe)===!1||(be=be&&$e.synchronous,fe.unshift($e.fulfilled,$e.rejected))});const ve=[];this.interceptors.response.forEach(function($e){ve.push($e.fulfilled,$e.rejected)});let ye,_e=0,we;if(!be){const Ce=[dispatchRequest.bind(this),void 0];for(Ce.unshift.apply(Ce,fe),Ce.push.apply(Ce,ve),we=Ce.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)}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(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(mergeConfig(ee,ie))},oe}const axios=createInstance(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$1();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$1().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/"})},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 se=document.getElementsByTagName("link"),de=document.querySelector("meta[property=csp-nonce]"),fe=(de==null?void 0:de.nonce)||(de==null?void 0:de.getAttribute("nonce"));ie=Promise.all(oe.map(be=>{if(be=assetsURL(be,ae),be in seen)return;seen[be]=!0;const ve=be.endsWith(".css"),ye=ve?'[rel="stylesheet"]':"";if(!!ae)for(let Ae=se.length-1;Ae>=0;Ae--){const Ce=se[Ae];if(Ce.href===be&&(!ve||Ce.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${be}"]${ye}`))return;const we=document.createElement("link");if(we.rel=ve?"stylesheet":scriptRel,ve||(we.as="script",we.crossOrigin=""),we.href=be,fe&&we.setAttribute("nonce",fe),document.head.appendChild(we),ve)return new Promise((Ae,Ce)=>{we.addEventListener("load",Ae),we.addEventListener("error",()=>Ce(new Error(`Unable to preload CSS for ${be}`)))})}))}return ie.then(()=>ne()).catch(se=>{const de=new Event("vite:preloadError",{cancelable:!0});if(de.payload=se,window.dispatchEvent(de),!de.defaultPrevented)throw se})},_definePage_default_0={meta:{title:"找不到页面"}},_definePage_default_2={meta:{title:"tabbar.default.feature",cache:!0}},_definePage_default_3={meta:{title:"PageMain"}},_definePage_default_4={meta:{title:"Spartline"}},_definePage_default_5={meta:{title:"Trend"}},_definePage_default_6={meta:{title:"pages.function.errorLog"}},_definePage_default_7={meta:{title:"pages.function.font"}},_definePage_default_8={meta:{title:"pages.function.i18n"}},_definePage_default_9={meta:{title:"pages.function.icon"}},_definePage_default_10={meta:{title:"pages.function.keepAlive",cache:!0}},_definePage_default_11={meta:{title:"pages.function.scroll",cache:"/feature/function/scroll2"}},_definePage_default_12={meta:{title:"pages.function.scroll"}},_definePage_default_13={meta:{title:"pages.function.title"}},_definePage_default_14={meta:{title:"UnoCSS"}},_definePage_default_15={meta:{title:"pages.function.watermark"}},_definePage_default_16={meta:{title:"pages.function.zoomable"}},_definePage_default_17={meta:{title:"pages.navbar.custom-area"}},_definePage_default_18={meta:{title:"pages.navbar.custom-navbar"}},_definePage_default_19={meta:{title:"pages.navbar.custom-title"}},_definePage_default_20={meta:{title:"pages.navbar.default"}},_definePage_default_21={meta:{title:"pages.navbar.mode"}},_definePage_default_22={meta:{title:"pages.navbar.preset"}},_definePage_default_23={meta:{title:"pages.navbar.title-no-center"}},_definePage_default_24={meta:{title:"日程表"}},_definePage_default_25={meta:{title:"权限验证",auth:!0}},_definePage_default_26={meta:{title:"权限验证",auth:"permission.browse"}},_definePage_default_27={meta:{title:"过渡动画"}},_definePage_default_28={meta:{title:"ECharts"}},_definePage_default_29={meta:{title:"电子签名"}},_definePage_default_30={meta:{title:"二维码"}},_definePage_default_31={meta:{title:"轮播动画"}},_definePage_default_32={meta:{title:"VChart"}},_definePage_default_33={meta:{title:"pages.tabbar.badge"}},_definePage_default_34={meta:{title:"pages.tabbar.custom-area"}},_definePage_default_35={meta:{title:"pages.tabbar.default"}},_definePage_default_36={meta:{title:"pages.tabbar.multi"}},_definePage_default_37={name:"login",meta:{title:"登录"}},_definePage_default_38={name:"reload",meta:{title:"刷新页面",navbar:{enable:!1}}},_definePage_default_39={meta:{title:"tabbar.default.user",auth:!0}},routes=[{path:"/",name:"/",component:()=>__vitePreload(()=>import("./index-C7Y6HP8P.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},_mergeRouteRecord({path:"/:all(.*)",name:"/[...all]",component:()=>__vitePreload(()=>import("./_...all_-BkhaQ2CA.js"),[],import.meta.url)},_definePage_default_0),{path:"/feature",children:[_mergeRouteRecord({path:"",name:"/feature/",component:()=>__vitePreload(()=>import("./index-y0e0JgNz.js"),__vite__mapDeps([4,1,2]),import.meta.url)},_definePage_default_2),{path:"component",children:[_mergeRouteRecord({path:"pagemain-demo",name:"/feature/component/pagemain-demo",component:()=>__vitePreload(()=>import("./pagemain-demo-C3p34l1S.js"),__vite__mapDeps([5,1,2,6,3]),import.meta.url)},_definePage_default_3),_mergeRouteRecord({path:"sparkline-demo",name:"/feature/component/sparkline-demo",component:()=>__vitePreload(()=>import("./sparkline-demo-maNuZwMh.js"),__vite__mapDeps([7,1,2,6,8]),import.meta.url)},_definePage_default_4),_mergeRouteRecord({path:"trend-demo",name:"/feature/component/trend-demo",component:()=>__vitePreload(()=>import("./trend-demo-Ce3JuaFI.js"),__vite__mapDeps([9,1,2,6]),import.meta.url)},_definePage_default_5)]},{path:"function",children:[_mergeRouteRecord({path:"errorLog",name:"/feature/function/errorLog",component:()=>__vitePreload(()=>import("./errorLog-clrcVXXO.js"),__vite__mapDeps([10,1,2]),import.meta.url)},_definePage_default_6),_mergeRouteRecord({path:"font",name:"/feature/function/font",component:()=>__vitePreload(()=>import("./font-CHXxEasN.js"),__vite__mapDeps([11,1,2,6,12]),import.meta.url)},_definePage_default_7),_mergeRouteRecord({path:"i18n",name:"/feature/function/i18n",component:()=>__vitePreload(()=>import("./i18n-voRZWsea.js"),__vite__mapDeps([13,1,2,6]),import.meta.url)},_definePage_default_8),_mergeRouteRecord({path:"icon",name:"/feature/function/icon",component:()=>__vitePreload(()=>import("./icon-CtmLSi2i.js"),__vite__mapDeps([14,1,2,6]),import.meta.url)},_definePage_default_9),_mergeRouteRecord({path:"keepAlive",name:"/feature/function/keepAlive",component:()=>__vitePreload(()=>import("./keepAlive-D9fBWCqp.js"),__vite__mapDeps([15,1,2,6]),import.meta.url)},_definePage_default_10),_mergeRouteRecord({path:"scroll",name:"/feature/function/scroll",component:()=>__vitePreload(()=>import("./scroll-BlGcgvyM.js"),__vite__mapDeps([16,1,2]),import.meta.url)},_definePage_default_11),_mergeRouteRecord({path:"scroll2",name:"/feature/function/scroll2",component:()=>__vitePreload(()=>import("./scroll2--egNRTcH.js"),__vite__mapDeps([17,1,2]),import.meta.url)},_definePage_default_12),_mergeRouteRecord({path:"title",name:"/feature/function/title",component:()=>__vitePreload(()=>import("./title-DLLSA1W4.js"),__vite__mapDeps([18,1,2,6]),import.meta.url)},_definePage_default_13),_mergeRouteRecord({path:"unocss",name:"/feature/function/unocss",component:()=>__vitePreload(()=>import("./unocss-CnYgWujU.js"),__vite__mapDeps([19,1,2]),import.meta.url)},_definePage_default_14),_mergeRouteRecord({path:"watermark",name:"/feature/function/watermark",component:()=>__vitePreload(()=>import("./watermark-CVaFhT-P.js"),__vite__mapDeps([20,1,2]),import.meta.url)},_definePage_default_15),_mergeRouteRecord({path:"zoomable",name:"/feature/function/zoomable",component:()=>__vitePreload(()=>import("./zoomable-KsXoW0bU.js"),__vite__mapDeps([21,1,2,6]),import.meta.url)},_definePage_default_16)]},{path:"navbar",children:[_mergeRouteRecord({path:"custom-area",name:"/feature/navbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-jbZ6-ffy.js"),__vite__mapDeps([22,1,2]),import.meta.url)},_definePage_default_17),_mergeRouteRecord({path:"custom-navbar",name:"/feature/navbar/custom-navbar",component:()=>__vitePreload(()=>import("./custom-navbar-DeDVH8RE.js"),__vite__mapDeps([23,1,2,24]),import.meta.url)},_definePage_default_18),_mergeRouteRecord({path:"custom-title",name:"/feature/navbar/custom-title",component:()=>__vitePreload(()=>import("./custom-title-B5APfY_c.js"),__vite__mapDeps([25,1,2]),import.meta.url)},_definePage_default_19),_mergeRouteRecord({path:"default",name:"/feature/navbar/default",component:()=>__vitePreload(()=>import("./default-BxyEo86l.js"),__vite__mapDeps([26,1,2]),import.meta.url)},_definePage_default_20),_mergeRouteRecord({path:"mode",name:"/feature/navbar/mode",component:()=>__vitePreload(()=>import("./mode-BjoIPSlE.js"),__vite__mapDeps([27,1,2]),import.meta.url)},_definePage_default_21),{path:"none",name:"/feature/navbar/none",component:()=>__vitePreload(()=>import("./none-C5QehyT3.js"),__vite__mapDeps([28,1,2]),import.meta.url)},_mergeRouteRecord({path:"preset",name:"/feature/navbar/preset",component:()=>__vitePreload(()=>import("./preset-BAC2u6pR.js"),__vite__mapDeps([29,1,2]),import.meta.url)},_definePage_default_22),_mergeRouteRecord({path:"title-no-center",name:"/feature/navbar/title-no-center",component:()=>__vitePreload(()=>import("./title-no-center-CiXLMMyS.js"),__vite__mapDeps([30,1,2]),import.meta.url)},_definePage_default_23)]},{path:"page",children:[_mergeRouteRecord({path:"schedule",name:"/feature/page/schedule",component:()=>__vitePreload(()=>import("./schedule-DIRA3reu.js"),__vite__mapDeps([31,1,2,32]),import.meta.url)},_definePage_default_24)]},{path:"permission",children:[_mergeRouteRecord({path:"",name:"/feature/permission/",component:()=>__vitePreload(()=>import("./index-DKphaQLY.js"),__vite__mapDeps([33,1,2,6,34]),import.meta.url)},_definePage_default_25),_mergeRouteRecord({path:"test",name:"/feature/permission/test",component:()=>__vitePreload(()=>import("./test-BdXkX4eU.js"),__vite__mapDeps([35,1,2,6]),import.meta.url)},_definePage_default_26)]},{path:"plugin",children:[_mergeRouteRecord({path:"animation",name:"/feature/plugin/animation",component:()=>__vitePreload(()=>import("./animation-l2iDL9JK.js"),__vite__mapDeps([36,1,2,6,37]),import.meta.url)},_definePage_default_27),_mergeRouteRecord({path:"echarts",name:"/feature/plugin/echarts",component:()=>__vitePreload(()=>import("./echarts-BmkUu6Th.js"),__vite__mapDeps([38,1,2,6]),import.meta.url)},_definePage_default_28),_mergeRouteRecord({path:"esign",name:"/feature/plugin/esign",component:()=>__vitePreload(()=>import("./esign-XYBNGHGj.js"),__vite__mapDeps([39,1,2,6,34,40]),import.meta.url)},_definePage_default_29),_mergeRouteRecord({path:"qrcode",name:"/feature/plugin/qrcode",component:()=>__vitePreload(()=>import("./qrcode-HOUDYqkT.js"),__vite__mapDeps([41,1,2,6]),import.meta.url)},_definePage_default_30),_mergeRouteRecord({path:"swiper",name:"/feature/plugin/swiper",component:()=>__vitePreload(()=>import("./swiper-CSwQl3sK.js"),__vite__mapDeps([42,1,2,6,43]),import.meta.url)},_definePage_default_31),_mergeRouteRecord({path:"vchart",name:"/feature/plugin/vchart",component:()=>__vitePreload(()=>import("./vchart-BoiZFfSn.js"),__vite__mapDeps([44,1,2,6]),import.meta.url)},_definePage_default_32)]},{path:"tabbar",children:[_mergeRouteRecord({path:"badge",name:"/feature/tabbar/badge",component:()=>__vitePreload(()=>import("./badge-BrnTN2MM.js"),__vite__mapDeps([45,1,2,6]),import.meta.url)},_definePage_default_33),_mergeRouteRecord({path:"custom-area",name:"/feature/tabbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-C8khfZzT.js"),__vite__mapDeps([46,1,2]),import.meta.url)},_definePage_default_34),_mergeRouteRecord({path:"default",name:"/feature/tabbar/default",component:()=>__vitePreload(()=>import("./default-Dh5tlTAt.js"),__vite__mapDeps([47,1,2]),import.meta.url)},_definePage_default_35),_mergeRouteRecord({path:"multi",name:"/feature/tabbar/multi",component:()=>__vitePreload(()=>import("./multi-DyDiDDK1.js"),__vite__mapDeps([48,1,2]),import.meta.url)},_definePage_default_36)]}]},_mergeRouteRecord({path:"/login",name:"login",component:()=>__vitePreload(()=>import("./login-vaW7q3sF.js"),__vite__mapDeps([49,1,2,3,50]),import.meta.url)},_definePage_default_37),_mergeRouteRecord({path:"/reload",name:"reload",component:()=>__vitePreload(()=>import("./reload-CuiHr-za.js"),[],import.meta.url)},_definePage_default_38),{path:"/user",children:[_mergeRouteRecord({path:"",name:"/user/",component:()=>__vitePreload(()=>import("./index-CFqdiz_8.js"),__vite__mapDeps([51,1,2,6]),import.meta.url)},_definePage_default_39)]}];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 be=oe.lastIndexOf("/");if(be!==oe.length-1){be===-1?(oe="",ae=0):(oe=oe.slice(0,be),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;aeve){if(oe.charCodeAt(de+_e)===47)return oe.slice(de+_e+1);if(_e===0)return oe.slice(de+_e)}else se>ve&&(ne.charCodeAt(ae+_e)===47?ye=_e:_e===0&&(ye=0));break}var we=ne.charCodeAt(ae+_e),Ae=oe.charCodeAt(de+_e);if(we!==Ae)break;we===47&&(ye=_e)}var Ce="";for(_e=ae+ye+1;_e<=ie;++_e)(_e===ie||ne.charCodeAt(_e)===47)&&(Ce.length===0?Ce+="..":Ce+="/..");return Ce.length>0?Ce+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,be=-1;for(de=ne.length-1;de>=0;--de){var ve=ne.charCodeAt(de);if(ve===47){if(!se){ae=de+1;break}}else be===-1&&(se=!1,be=de+1),fe>=0&&(ve===oe.charCodeAt(fe)?--fe===-1&&(ie=de):(fe=-1,ie=be))}return ae===ie?ie=be: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 be=ne.charCodeAt(fe);if(be===47){if(!se){ae=fe+1;break}continue}ie===-1&&(se=!1,ie=fe+1),be===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,be=-1,ve=!0,ye=ne.length-1,_e=0;ye>=se;--ye){if(ae=ne.charCodeAt(ye),ae===47){if(!ve){fe=ye+1;break}continue}be===-1&&(ve=!1,be=ye+1),ae===46?de===-1?de=ye:_e!==1&&(_e=1):de!==-1&&(_e=-1)}return de===-1||be===-1||_e===0||_e===1&&de===be-1&&de===fe+1?be!==-1&&(fe===0&&ie?oe.base=oe.name=ne.slice(1,be):oe.base=oe.name=ne.slice(fe,be)):(fe===0&&ie?(oe.name=ne.slice(1,de),oe.base=ne.slice(1,be)):(oe.name=ne.slice(fe,de),oe.base=ne.slice(fe,be)),oe.ext=ne.slice(de,be)),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);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(Ce){var $e,ke;for($e in Ce)ke=Ce[$e],ke!==void 0&&Ce.hasOwnProperty($e)&&(ae[$e]=ke);return this},oe.status=null,oe.set=function(Ce){var $e=oe.isStarted();Ce=ie(Ce,ae.minimum,1),oe.status=Ce===1?null:Ce;var ke=oe.render(!$e),Pe=ke.querySelector(ae.barSelector),Ee=ae.speed,Oe=ae.easing;return ke.offsetWidth,fe(function(Ne){ae.positionUsing===""&&(ae.positionUsing=oe.getPositioningCSS()),be(Pe,de(Ce,Ee,Oe)),Ce===1?(be(ke,{transition:"none",opacity:1}),ke.offsetWidth,setTimeout(function(){be(ke,{transition:"all "+Ee+"ms linear",opacity:0}),setTimeout(function(){oe.remove(),Ne()},Ee)},Ee)):setTimeout(Ne,Ee)}),this},oe.isStarted=function(){return typeof oe.status=="number"},oe.start=function(){oe.status||oe.set(0);var Ce=function(){setTimeout(function(){oe.status&&(oe.trickle(),Ce())},ae.trickleSpeed)};return ae.trickle&&Ce(),this},oe.done=function(Ce){return!Ce&&!oe.status?this:oe.inc(.3+.5*Math.random()).set(1)},oe.inc=function(Ce){var $e=oe.status;return $e?(typeof Ce!="number"&&(Ce=(1-$e)*ie(Math.random()*$e,.1,.95)),$e=ie($e+Ce,0,.994),oe.set($e)):oe.start()},oe.trickle=function(){return oe.inc(Math.random()*ae.trickleRate)},function(){var Ce=0,$e=0;oe.promise=function(ke){return!ke||ke.state()==="resolved"?this:($e===0&&oe.start(),Ce++,$e++,ke.always(function(){$e--,$e===0?(Ce=0,oe.done()):oe.set((Ce-$e)/Ce)}),this)}}(),oe.render=function(Ce){if(oe.isRendered())return document.getElementById("nprogress");ye(document.documentElement,"nprogress-busy");var $e=document.createElement("div");$e.id="nprogress",$e.innerHTML=ae.template;var ke=$e.querySelector(ae.barSelector),Pe=Ce?"-100":se(oe.status||0),Ee=document.querySelector(ae.parent),Oe;return be(ke,{transition:"all 0 linear",transform:"translate3d("+Pe+"%,0,0)"}),ae.showSpinner||(Oe=$e.querySelector(ae.spinnerSelector),Oe&&Ae(Oe)),Ee!=document.body&&ye(Ee,"nprogress-custom-parent"),Ee.appendChild($e),$e},oe.remove=function(){_e(document.documentElement,"nprogress-busy"),_e(document.querySelector(ae.parent),"nprogress-custom-parent");var Ce=document.getElementById("nprogress");Ce&&Ae(Ce)},oe.isRendered=function(){return!!document.getElementById("nprogress")},oe.getPositioningCSS=function(){var Ce=document.body.style,$e="WebkitTransform"in Ce?"Webkit":"MozTransform"in Ce?"Moz":"msTransform"in Ce?"ms":"OTransform"in Ce?"O":"";return $e+"Perspective"in Ce?"translate3d":$e+"Transform"in Ce?"translate":"margin"};function ie(Ce,$e,ke){return Ce<$e?$e:Ce>ke?ke:Ce}function se(Ce){return(-1+Ce)*100}function de(Ce,$e,ke){var Pe;return ae.positionUsing==="translate3d"?Pe={transform:"translate3d("+se(Ce)+"%,0,0)"}:ae.positionUsing==="translate"?Pe={transform:"translate("+se(Ce)+"%,0)"}:Pe={"margin-left":se(Ce)+"%"},Pe.transition="all "+$e+"ms "+ke,Pe}var fe=function(){var Ce=[];function $e(){var ke=Ce.shift();ke&&ke($e)}return function(ke){Ce.push(ke),Ce.length==1&&$e()}}(),be=function(){var Ce=["Webkit","O","Moz","ms"],$e={};function ke(Ne){return Ne.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Re,De){return De.toUpperCase()})}function Pe(Ne){var Re=document.body.style;if(Ne in Re)return Ne;for(var De=Ce.length,Ie=Ne.charAt(0).toUpperCase()+Ne.slice(1),Le;De--;)if(Le=Ce[De]+Ie,Le in Re)return Le;return Ne}function Ee(Ne){return Ne=ke(Ne),$e[Ne]||($e[Ne]=Pe(Ne))}function Oe(Ne,Re,De){Re=Ee(Re),Ne.style[Re]=De}return function(Ne,Re){var De=arguments,Ie,Le;if(De.length==2)for(Ie in Re)Le=Re[Ie],Le!==void 0&&Re.hasOwnProperty(Ie)&&Oe(Ne,Ie,Le);else Oe(Ne,De[1],De[2])}}();function ve(Ce,$e){var ke=typeof Ce=="string"?Ce:we(Ce);return ke.indexOf(" "+$e+" ")>=0}function ye(Ce,$e){var ke=we(Ce),Pe=ke+$e;ve(ke,$e)||(Ce.className=Pe.substring(1))}function _e(Ce,$e){var ke=we(Ce),Pe;ve(Ce,$e)&&(Pe=ke.replace(" "+$e+" "," "),Ce.className=Pe.substring(1,Pe.length-1))}function we(Ce){return(" "+(Ce.className||"")+" ").replace(/\s+/gi," ")}function Ae(Ce){Ce&&Ce.parentNode&&Ce.parentNode.removeChild(Ce)}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()}}}const{isLoading}=useNProgress(null,{showSpinner:!1,parent:"#app"});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)});router.beforeEach(async(ee,ne,oe)=>{const ae=useSettingsStore(),ie=useUserStore$1();ae.settings.app.enableProgress&&(isLoading.value=!0),ee.meta.auth?ie.isLogin?(ae.settings.app.enablePermission&&!ie.isGetPermissions&&await ie.getPermissions(),oe()):oe({name:"login",query:{redirect:ee.fullPath}}):oe()});router.afterEach((ee,ne)=>{var ie,se,de,fe;const oe=useSettingsStore();oe.settings.app.enableProgress&&(isLoading.value=!1),oe.setTitle(ee.meta.title??"");const ae=useKeepAliveStore();if(ee.fullPath!==ne.fullPath){if(ee.meta.cache){const be=(se=(ie=ee.matched.at(-1))==null?void 0:ie.components)==null?void 0:se.default.name;be?ae.add(be):console.warn("[Fantastic-mobile] 该页面组件未设置组件名,会导致缓存失效,请检查")}if(ne.meta.cache){const be=(fe=(de=ne.matched.at(-1))==null?void 0:de.components)==null?void 0:fe.default.name;if(be){switch(typeof ne.meta.cache){case"string":ne.meta.cache!==ee.name&&ae.remove(be);break;case"object":ne.meta.cache.includes(ee.name)||ae.remove(be);break}if(ne.meta.noCache)switch(typeof ne.meta.noCache){case"string":ne.meta.noCache===ee.name&&ae.remove(be);break;case"object":ne.meta.noCache.includes(ee.name)&&ae.remove(be);break}}}}document.documentElement.scrollTop=0});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(ve){return new Promise((ye,_e)=>{apiUser.login(ve).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 be(){const ve=await apiUser.permission();ie.value=ve.data.permissions,ae.value=!0}return{account:ee,token:ne,avatar:oe,isLogin:se,isGetPermissions:ae,permissions:ie,login:de,logout:fe,getPermissions:be}}),useUserStore$1=useUserStore;function useAuth(){function ee(ae){const ie=useSettingsStore(),se=useUserStore$1();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:be}=useI18n();watch(()=>oe.lang,()=>{be.value=oe.lang}),watch([()=>oe.settings.app.enableDynamicTitle,()=>oe.title,()=>oe.customTitleList],()=>{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});const ve=!0;return(ye,_e)=>{const we=_sfc_main$2,Ae=resolveComponent("RouterView"),Ce=_sfc_main$9,$e=__unplugin_components_2;return openBlock(),createBlock(_sfc_main$1,null,{default:withCtx(()=>[createVNode(Ae,null,{default:withCtx(({Component:ke})=>[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(ke),{key:unref(ne).fullPath})):(openBlock(),createBlock(we,{key:1}))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),ve?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",{class:"app-setting",onClick:_e[0]||(_e[0]=ke=>unref(eventBus).emit("global-app-setting-toggle"))},[createVNode(Ce,{name:"i-uiw:setting-o",class:"icon"})]),createVNode($e)],64)):createCommentVNode("",!0)]),_:1})}}}),App=_export_sfc(_sfc_main,[["__scopeId","data-v-dc9e0a70"]]);/*! 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(Fe){function Ze(){}Fe(Ze,Ze)},ie=function(Fe){var Ze=Fe.target;if(Ze===We){Ce();return}Oe.indexOf(Ze)!==-1&&$e({target:Ze})},se=function(){if(!(Re||!Le.original)){var Fe=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(De-Fe)>Ie.scrollOffset&&setTimeout(Ce,150)}},de=function(Fe){var Ze=Fe.key||Fe.keyCode;(Ze==="Escape"||Ze==="Esc"||Ze===27)&&Ce()},fe=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Fe;if(Fe.background&&(We.style.background=Fe.background),Fe.container&&Fe.container instanceof Object&&(Ze.container=_extends({},Ie.container,Fe.container)),Fe.template){var qe=isNode(Fe.template)?Fe.template:document.querySelector(Fe.template);Ze.template=qe}return Ie=_extends({},Ie,Ze),Oe.forEach(function(ze){ze.dispatchEvent(createCustomEvent("medium-zoom:update",{detail:{zoom:He}}))}),He},be=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ee(_extends({},Ie,Fe))},ve=function(){for(var Fe=arguments.length,Ze=Array(Fe),qe=0;qe0?Ze.reduce(function(je,Qe){return[].concat(je,getImagesFromSelector(Qe))},[]):Oe;return ze.forEach(function(je){je.classList.remove("medium-zoom-image"),je.dispatchEvent(createCustomEvent("medium-zoom:detach",{detail:{zoom:He}}))}),Oe=Oe.filter(function(je){return ze.indexOf(je)===-1}),He},_e=function(Fe,Ze){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Oe.forEach(function(ze){ze.addEventListener("medium-zoom:"+Fe,Ze,qe)}),Ne.push({type:"medium-zoom:"+Fe,listener:Ze,options:qe}),He},we=function(Fe,Ze){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Oe.forEach(function(ze){ze.removeEventListener("medium-zoom:"+Fe,Ze,qe)}),Ne=Ne.filter(function(ze){return!(ze.type==="medium-zoom:"+Fe&&ze.listener.toString()===Ze.toString())}),He},Ae=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Fe.target,qe=function(){var je={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Qe=void 0,At=void 0;if(Ie.container)if(Ie.container instanceof Object)je=_extends({},je,Ie.container),Qe=je.width-je.left-je.right-Ie.margin*2,At=je.height-je.top-je.bottom-Ie.margin*2;else{var Rt=isNode(Ie.container)?Ie.container:document.querySelector(Ie.container),Dt=Rt.getBoundingClientRect(),Ke=Dt.width,Vt=Dt.height,tn=Dt.left,ln=Dt.top;je=_extends({},je,{width:Ke,height:Vt,left:tn,top:ln})}Qe=Qe||je.width-Ie.margin*2,At=At||je.height-Ie.margin*2;var Gt=Le.zoomedHd||Le.original,rn=isSvg(Gt)?Qe:Gt.naturalWidth||Qe,ct=isSvg(Gt)?At:Gt.naturalHeight||At,Ft=Gt.getBoundingClientRect(),Kt=Ft.top,Zt=Ft.left,hn=Ft.width,un=Ft.height,Xe=Math.min(Math.max(hn,rn),Qe)/hn,Nt=Math.min(Math.max(un,ct),At)/un,Mt=Math.min(Xe,Nt),Xt=(-Zt+(Qe-hn)/2+Ie.margin+je.left)/Mt,on=(-Kt+(At-un)/2+Ie.margin+je.top)/Mt,pn="scale("+Mt+") translate3d("+Xt+"px, "+on+"px, 0)";Le.zoomed.style.transform=pn,Le.zoomedHd&&(Le.zoomedHd.style.transform=pn)};return new ae(function(ze){if(Ze&&Oe.indexOf(Ze)===-1){ze(He);return}var je=function Ke(){Re=!1,Le.zoomed.removeEventListener("transitionend",Ke),Le.original.dispatchEvent(createCustomEvent("medium-zoom:opened",{detail:{zoom:He}})),ze(He)};if(Le.zoomed){ze(He);return}if(Ze)Le.original=Ze;else if(Oe.length>0){var Qe=Oe;Le.original=Qe[0]}else{ze(He);return}if(Le.original.dispatchEvent(createCustomEvent("medium-zoom:open",{detail:{zoom:He}})),De=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Re=!0,Le.zoomed=cloneTarget(Le.original),document.body.appendChild(We),Ie.template){var At=isNode(Ie.template)?Ie.template:document.querySelector(Ie.template);Le.template=document.createElement("div"),Le.template.appendChild(At.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",Ce),Le.zoomed.addEventListener("transitionend",je),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(Rt),console.warn("Unable to reach the zoom image target "+Le.zoomedHd.src),Le.zoomedHd=null,qe()};var Rt=setInterval(function(){Le.zoomedHd.complete&&(clearInterval(Rt),Le.zoomedHd.classList.add("medium-zoom-image--opened"),Le.zoomedHd.addEventListener("click",Ce),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 Dt=Le.zoomedHd.addEventListener("load",function(){Le.zoomedHd.removeEventListener("load",Dt),Le.zoomedHd.classList.add("medium-zoom-image--opened"),Le.zoomedHd.addEventListener("click",Ce),document.body.appendChild(Le.zoomedHd),qe()})}else qe()})},Ce=function(){return new ae(function(Fe){if(Re||!Le.original){Fe(He);return}var Ze=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(We),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:He}})),Le.original=null,Le.zoomed=null,Le.zoomedHd=null,Le.template=null,Fe(He)};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:He}})),Le.zoomed.addEventListener("transitionend",Ze)})},$e=function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Fe.target;return Le.original?Ce():Ae({target:Ze})},ke=function(){return Ie},Pe=function(){return Oe},Ee=function(){return Le.original},Oe=[],Ne=[],Re=!1,De=0,Ie=oe,Le={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(ne)==="[object Object]"?Ie=ne:(ne||typeof ne=="string")&&ve(ne),Ie=_extends({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},Ie);var We=createOverlay(Ie.background);document.addEventListener("click",ie),document.addEventListener("keyup",de),document.addEventListener("scroll",se),window.addEventListener("resize",Ce);var He={open:Ae,close:Ce,toggle:$e,update:fe,clone:be,attach:ve,detach:ye,on:_e,off:we,getOptions:ke,getImages:Pe,getZoomedImage:Ee};return He};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",{mounted:(ne,oe)=>{useAuth().auth(oe.value)||ne.remove()}}),ee.directive("auth-all",{mounted:(ne,oe)=>{useAuth().authAll(oe.value)||ne.remove()}}),ee.directive("zoomable",{mounted:ne=>{mediumZoom(ne,{background:"var(--g-bg)"})}})}var dayjs_min={exports:{}};(function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){var oe=1e3,ae=6e4,ie=36e5,se="millisecond",de="second",fe="minute",be="hour",ve="day",ye="week",_e="month",we="quarter",Ae="year",Ce="date",$e="Invalid Date",ke=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Pe=/\[([^\]]+)]|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,Ee={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"],je=qe%100;return"["+qe+(ze[(je-20)%10]||ze[je]||ze[0])+"]"}},Oe=function(qe,ze,je){var Qe=String(qe);return!Qe||Qe.length>=ze?qe:""+Array(ze+1-Qe.length).join(je)+qe},Ne={s:Oe,z:function(qe){var ze=-qe.utcOffset(),je=Math.abs(ze),Qe=Math.floor(je/60),At=je%60;return(ze<=0?"+":"-")+Oe(Qe,2,"0")+":"+Oe(At,2,"0")},m:function qe(ze,je){if(ze.date()1)return qe(Dt[0])}else{var Ke=ze.name;De[Ke]=ze,At=Ke}return!Qe&&At&&(Re=At),At||!Qe&&Re},He=function(qe,ze){if(Le(qe))return qe.clone();var je=typeof ze=="object"?ze:{};return je.date=qe,je.args=arguments,new Fe(je)},Be=Ne;Be.l=We,Be.i=Le,Be.w=function(qe,ze){return He(qe,{locale:ze.$L,utc:ze.$u,x:ze.$x,$offset:ze.$offset})};var Fe=function(){function qe(je){this.$L=We(je.locale,null,!0),this.parse(je),this.$x=this.$x||je.x||{},this[Ie]=!0}var ze=qe.prototype;return ze.parse=function(je){this.$d=function(Qe){var At=Qe.date,Rt=Qe.utc;if(At===null)return new Date(NaN);if(Be.u(At))return new Date;if(At instanceof Date)return new Date(At);if(typeof At=="string"&&!/Z$/i.test(At)){var Dt=At.match(ke);if(Dt){var Ke=Dt[2]-1||0,Vt=(Dt[7]||"0").substring(0,3);return Rt?new Date(Date.UTC(Dt[1],Ke,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Vt)):new Date(Dt[1],Ke,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Vt)}}return new Date(At)}(je),this.init()},ze.init=function(){var je=this.$d;this.$y=je.getFullYear(),this.$M=je.getMonth(),this.$D=je.getDate(),this.$W=je.getDay(),this.$H=je.getHours(),this.$m=je.getMinutes(),this.$s=je.getSeconds(),this.$ms=je.getMilliseconds()},ze.$utils=function(){return Be},ze.isValid=function(){return this.$d.toString()!==$e},ze.isSame=function(je,Qe){var At=He(je);return this.startOf(Qe)<=At&&At<=this.endOf(Qe)},ze.isAfter=function(je,Qe){return He(je){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 $,useSettingsStore as A,nextTick as B,pushScopeId as C,popScopeId as D,setupI18n as E,Fragment as F,getLocales as G,isRef as H,useRoute$1 as I,useWatermarkStore as J,dayjs as K,resolveDirective as L,showToast as M,_sfc_main$4 as N,withModifiers as O,renderSlot as P,useAuth as Q,useUserStore$1 as R,inBrowser$1 as S,Transition as T,extend$1 as U,isObject$2 as V,mountComponent as W,usePopupState as X,mergeProps as Y,stdin_default$E as Z,_sfc_main$9 as _,createBaseVNode as a,normalizeProps as a0,guardReactiveProps as a1,localesName as a2,resolveDynamicComponent as a3,onActivated as a4,useElementSize as a5,watch as a6,onBeforeRouteLeave as a7,useSlots as a8,onUpdated as a9,provide as aa,onBeforeUnmount as ab,h$2 as ac,onBeforeUpdate as ad,getDefaultExportFromCjs as ae,useTabbarBadgeStore as af,createVNode as b,createBlock as c,defineComponent as d,createTextVNode as e,_sfc_main$7 as f,onUnmounted as g,onMounted as h,createElementBlock as i,useRouter as j,useI18n as k,resolveComponent as l,renderList as m,createCommentVNode as n,openBlock as o,normalizeClass$1 as p,_export_sfc as q,ref as r,withDirectives as s,toDisplayString$1 as t,unref as u,vShow as v,withCtx as w,normalizeStyle$1 as x,useCssVars as y,computed as z}; diff --git a/assets/index-B4fCF_Xu.js.br b/assets/index-B4fCF_Xu.js.br new file mode 100644 index 00000000..d8f5e4b4 Binary files /dev/null and b/assets/index-B4fCF_Xu.js.br differ diff --git a/assets/index-B4fCF_Xu.js.gz b/assets/index-B4fCF_Xu.js.gz new file mode 100644 index 00000000..385c3b50 Binary files /dev/null and b/assets/index-B4fCF_Xu.js.gz differ diff --git a/assets/index-BBC8wC0o.css b/assets/index-BBC8wC0o.css new file mode 100644 index 00000000..2c9c4a0c --- /dev/null +++ b/assets/index-BBC8wC0o.css @@ -0,0 +1,9 @@ +.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:#fff0;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:#ffffff4d;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) #00000026;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(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes m-message-fade-out{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-45px}}/*! + * OverlayScrollbars + * Version: 2.8.3 + * + * 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;-moz-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~=scrollbarPressed]{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}.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}.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:0}.os-scrollbar-vertical .os-scrollbar-handle{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle,.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 .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 .os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar .os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar .os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar .os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar .os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar .os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.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-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-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)}.mode[data-v-ad954dd7]: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,outline-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-ad954dd7]:after{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.mode.mode-fade[data-v-ad954dd7]:after{animation:transition-mode-fade-after-ad954dd7 1.5s infinite}@keyframes transition-mode-fade-after-ad954dd7{0%{opacity:1}30%,35%{opacity:0}65%{opacity:1}}.mode.mode-slide-left[data-v-ad954dd7]:after{animation:transition-mode-slide-left-ad954dd7 1.5s infinite}@keyframes transition-mode-slide-left-ad954dd7{0%{opacity:1}30%{opacity:0;transform:translate(-30%)}35%{opacity:0;transform:translate(30%)}65%{opacity:1}}.mode.mode-slide-right[data-v-ad954dd7]:after{animation:transition-mode-slide-right-ad954dd7 1.5s infinite}@keyframes transition-mode-slide-right-ad954dd7{0%{opacity:1}30%{opacity:0;transform:translate(30%)}35%{opacity:0;transform:translate(-30%)}to{opacity:1}}.mode.mode-slide-top[data-v-ad954dd7]:after{animation:transition-mode-slide-top-ad954dd7 1.5s infinite}@keyframes transition-mode-slide-top-ad954dd7{0%{opacity:1}30%{opacity:0;transform:translateY(-30%)}35%{opacity:0;transform:translateY(30%)}to{opacity:1}}.mode.mode-slide-bottom[data-v-ad954dd7]:after{animation:transition-mode-slide-bottom-ad954dd7 1.5s infinite}@keyframes transition-mode-slide-bottom-ad954dd7{0%{opacity:1}30%{opacity:0;transform:translateY(30%)}35%{opacity:0;transform:translateY(-30%)}to{opacity:1}}: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) #0000001f;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:13px}}: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) #3232331f}.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:#0003}.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--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-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-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--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-swicth{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:9px}}.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}#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)}}.app-setting[data-v-dc9e0a70]{--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-dc9e0a70]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.app-setting .icon[data-v-dc9e0a70]{animation:rotate-dc9e0a70 5s linear infinite}@keyframes rotate-dc9e0a70{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.navbar-enter-active[data-v-dc9e0a70],.navbar-leave-active[data-v-dc9e0a70]{transition:transform .15s ease-in-out}.navbar-enter-from[data-v-dc9e0a70],.navbar-leave-to[data-v-dc9e0a70]{transform:translateY(-100%)}.tabbar-enter-active[data-v-dc9e0a70],.tabbar-leave-active[data-v-dc9e0a70]{transition:transform .15s ease-in-out}.tabbar-enter-from[data-v-dc9e0a70],.tabbar-leave-to[data-v-dc9e0a70]{transform:translateY(100%)}.fade-enter-active[data-v-dc9e0a70],.slide-left-enter-active[data-v-dc9e0a70],.slide-right-enter-active[data-v-dc9e0a70],.slide-top-enter-active[data-v-dc9e0a70],.slide-bottom-enter-active[data-v-dc9e0a70]{transition:.2s}.fade-leave-active[data-v-dc9e0a70],.slide-left-leave-active[data-v-dc9e0a70],.slide-right-leave-active[data-v-dc9e0a70],.slide-top-leave-active[data-v-dc9e0a70],.slide-bottom-leave-active[data-v-dc9e0a70]{transition:.15s}.fade-enter-from[data-v-dc9e0a70],.fade-leave-to[data-v-dc9e0a70]{opacity:0}.slide-left-enter-from[data-v-dc9e0a70]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-left-leave-to[data-v-dc9e0a70],.slide-right-enter-from[data-v-dc9e0a70]{margin-right:min(5.333vw,32px);margin-left:max(-5.333vw,-32px);opacity:0}.slide-right-leave-to[data-v-dc9e0a70]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-top-enter-from[data-v-dc9e0a70]{margin-top:min(5.333vw,32px);opacity:0}.slide-top-leave-to[data-v-dc9e0a70],.slide-bottom-enter-from[data-v-dc9e0a70]{margin-top:max(-5.333vw,-32px);opacity:0}.slide-bottom-leave-to[data-v-dc9e0a70]{margin-top:min(5.333vw,32px);opacity:0}*,: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.028 24.028 0 0 0-24 24v281a24.028 24.028 0 0 0 24 24H352a24.028 24.028 0 0 0 24-24V177a24.028 24.028 0 0 0-24-24m-8 32v45.22H48.247V185ZM48.247 450V262.22H344V450Z'/%3E%3Cpath fill='currentColor' d='M472 32H152a24.028 24.028 0 0 0-24 24v65h32V64h304v275.143h-56v32h64a24.028 24.028 0 0 0 24-24V56a24.028 24.028 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.41 4.41 0 0 1 .18-1.2a11.61 11.61 0 0 1-1-2.56a6.4 6.4 0 0 0 9.33 8.63a11.55 11.55 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.26 14.26 0 0 1-.37-2.85a9.58 9.58 0 0 0 .22 13.33a9.63 9.63 0 0 0 13.35.22a14.46 14.46 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.11 12.11 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-logos\:pinia{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 331' display='inline-block' vertical-align='middle' width='1em' 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.799c-10.328 1.015-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.415c-10.328-1.015-35.989 32.542-32.334 69.717c3.654 37.175 15.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.013c0-40.83-25.579-80.843-34.878-80.843S93.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.482c0-74.955-46.142-136.462-103.038-136.462c-56.897 0-103.002 61.507-103.002 136.462c0 74.954 46.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.672 14.672 0 0 1 10.551 3.945a14.67 14.67 0 0 1 4.672 10.25a14.671 14.671 0 0 1-3.945 10.55a14.672 14.672 0 0 1-10.25 4.672a14.67 14.67 0 0 1-10.551-3.945a14.672 14.672 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.671 14.671 0 0 1 10.552 3.944a14.67 14.67 0 0 1 4.67 10.25a14.672 14.672 0 0 1-3.944 10.551a14.67 14.67 0 0 1-10.25 4.671a14.671 14.671 0 0 1-10.55-3.945a14.671 14.671 0 0 1-4.672-10.25a14.67 14.67 0 0 1 3.945-10.55a14.671 14.671 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.165c.343 9.824-7.342 18.065-17.166 18.408c-9.824.343-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.224c6.423-.224 11.448-5.612 11.224-12.036m76.921-13.645c9.824-.343 18.065 7.342 18.408 17.165c.343 9.824-7.342 18.065-17.165 18.408c-9.824.343-18.065-7.342-18.408-17.165c-.343-9.824 7.342-18.065 17.165-18.408m12.251 17.38c-.224-6.423-5.612-11.447-12.036-11.223c-6.423.224-11.448 5.613-11.223 12.036c.224 6.423 5.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:1em;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%3Cg fill='%23333'%3E%3Cpath fill-opacity='.6' d='M137.176 195.927c0-32.812 26.6-59.412 59.412-59.412S256 163.115 256 195.927s-26.6 59.412-59.412 59.412s-59.412-26.6-59.412-59.412'/%3E%3Cpath fill-opacity='.3' d='M137.176 59.412C137.176 26.6 163.776 0 196.588 0S256 26.6 256 59.412v53.471a5.941 5.941 0 0 1-5.941 5.941H143.117a5.941 5.941 0 0 1-5.941-5.94z'/%3E%3Cpath d='M118.824 195.927c0 32.812-26.6 59.412-59.412 59.412S0 228.74 0 195.927v-53.471a5.94 5.94 0 0 1 5.941-5.941h106.942c3.28 0 5.941 2.66 5.941 5.941z'/%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-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.537 6.537 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.268 3.268 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='1em' 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:1em;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='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.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.002 5.002 0 0 0 4-4.9v-3c0-.701-.144-1.378-.415-2h-9.17A4.981 4.981 0 0 0 7 12v3a5.002 5.002 0 0 0 4 4.9V14h2zm-7.464-2.21A6.98 6.98 0 0 1 5 15H2v-2h3v-1c0-.643.087-1.265.249-1.856L3.036 8.866l1-1.732L6.056 8.3a7.01 7.01 0 0 1 .199-.3h11.49c.069.098.135.199.199.3l2.02-1.166l1 1.732l-2.213 1.278c.162.59.249 1.213.249 1.856v1h3v2h-3a6.96 6.96 0 0 1-.536 2.69l2.5 1.444l-1 1.732l-2.526-1.458A6.986 6.986 0 0 1 12 22a6.986 6.986 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.276 1.276 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.938A7.999 7.999 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\: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.896A6.502 6.502 0 0 1 12.078 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.512 4.512 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-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.957c.253.063.47.126.654.192c.201.072.46.181.78.33l1.644-.87a.702.702 0 0 1 .832.131l1.446 1.495c.192.199.246.49.138.744l-.771 1.807c.128.235.23.436.308.604c.084.183.188.435.312.76l1.797.77c.27.115.437.385.419.674l-.132 2.075a.69.69 0 0 1-.46.605l-1.702.605c-.049.235-.1.436-.154.606a8.79 8.79 0 0 1-.298.774l.855 1.89a.683.683 0 0 1-.168.793l-1.626 1.452a.703.703 0 0 1-.796.096l-1.676-.888a7.23 7.23 0 0 1-.81.367l-.732.274l-.65 1.8a.696.696 0 0 1-.64.457L9.11 20a.697.697 0 0 1-.669-.447l-.766-2.027a14.625 14.625 0 0 1-.776-.29a9.987 9.987 0 0 1-.618-.293l-1.9.812a.702.702 0 0 1-.755-.133L2.22 16.303a.683.683 0 0 1-.155-.783l.817-1.78a9.517 9.517 0 0 1-.302-.644a14.395 14.395 0 0 1-.3-.811L.49 11.74a.69.69 0 0 1-.49-.683l.07-1.921a.688.688 0 0 1 .392-.594L2.34 7.64c.087-.319.163-.567.23-.748a8.99 8.99 0 0 1 .314-.712L2.07 4.46a.683.683 0 0 1 .15-.79l1.404-1.326a.702.702 0 0 1 .75-.138l1.898.784c.21-.14.4-.253.572-.344c.205-.109.479-.223.824-.346l.66-1.841A.696.696 0 0 1 8.984 0zm-.49 1.377H9.475L8.87 3.071a.693.693 0 0 1-.434.423c-.436.145-.751.27-.935.367c-.195.103-.444.26-.74.47a.703.703 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.31 10.31 0 0 0-.27.922a.69.69 0 0 1-.37.45l-1.79.859l-.036.98l1.62.492c.215.065.385.23.456.442c.16.48.288.834.38 1.056a10 10 0 0 0 .404.827a.68.68 0 0 1 .019.606l-.751 1.638l.711.668l1.782-.762a.703.703 0 0 1 .603.024c.365.192.637.325.809.398c.175.073.51.195.996.361a.693.693 0 0 1 .424.41l.708 1.871l.926-.02l.597-1.654a.692.692 0 0 1 .409-.413l1.037-.388c.262-.097.58-.25.951-.46a.703.703 0 0 1 .674-.008l1.577.835l.887-.791L15.856 14a.681.681 0 0 1-.001-.56c.182-.407.305-.714.367-.91c.061-.192.124-.469.185-.825a.69.69 0 0 1 .451-.533l1.648-.585l.072-1.14l-1.62-.694a.692.692 0 0 1-.377-.394a15.337 15.337 0 0 0-.378-.944a11.01 11.01 0 0 0-.42-.794a.682.682 0 0 1-.035-.606l.725-1.7l-.764-.79l-1.488.788a.703.703 0 0 1-.633.013a11.296 11.296 0 0 0-.968-.426a7.185 7.185 0 0 0-.857-.23a.694.694 0 0 1-.508-.441zm-.564 4.264c2.435 0 4.41 1.953 4.41 4.361c0 2.408-1.975 4.36-4.41 4.36c-2.436 0-4.41-1.952-4.41-4.36c0-2.408 1.974-4.36 4.41-4.36m0 1.378c-1.667 0-3.018 1.335-3.018 2.983c0 1.648 1.351 2.984 3.018 2.984c1.666 0 3.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}.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}.left-0{left:0}.left-1\/5{left:20%}.right-\[-12px\]{right:max(-3.2vw,-19.2px)}.top--3{top:max(-3.2vw,-19.2px)}.top-0{top:0}.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}.z-0{z-index:0}.z-1{z-index:1}.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=""]{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-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)}.block,[block=""]{display:block}.before\:block:before{display:block}.inline-block{display:inline-block}.hidden{display:none}.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-screen,.min-h-vh{min-height:100vh}.min-w-0{min-width:0}.w-\[1em\]{width:1em}.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-20{width:min(21.333vw,128px)}.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;--un-rotate-y:0;--un-rotate-z:0;--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,-30px,0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-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-center,[flex~=items-center]{align-items:center}.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}.of-y-hidden,[of-y-hidden=""]{overflow-y:hidden}.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-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-right-width:min(.267vw,1.6px)}.border-b,.border-b-1,[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~="stone/15"]{border-bottom-color:#a8a29e26}[border-t~="stone/15"]{border-top-color:#a8a29e26}.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)}.before\:rounded-full:before{border-radius:min(2666.4vw,15998.4px)}.b-solid{border-style:solid}.b-r-solid{border-right-style:solid}.border-b-solid,[border-b~=solid]{border-bottom-style:solid}[border-t~=solid]{border-top-style:solid}.last\:border-b-none:last-child{border-bottom-style:none}.bg-\[\#d4af37\]{--un-bg-opacity:1;background-color:rgb(212 175 55 / var(--un-bg-opacity))}.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-inherit{background-color:inherit}.bg-rose\/20{background-color:#fb718533}.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:#e7e5e4bf}.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-\[\#d4af3730\]{--un-bg-opacity:.19;background-color:rgb(212 175 55 / 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-light{--un-bg-opacity:1;background-color:rgb(246 246 246 / 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:#292524bf}.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;--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;--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-4,[p-4=""]{padding:min(4.267vw,25.6px)}.px,.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{padding-top:min(3.2vw,19.2px);padding-bottom:min(3.2vw,19.2px)}.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}.-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-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:#f6f6f6cc}.dark .dark-text-stone-3{--un-text-opacity:1;color:rgb(214 211 209 / var(--un-text-opacity))}.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:#222c}.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))}.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-text{--un-text-opacity:1;color:rgb(var(--ui-text) / var(--un-text-opacity))}.c-green{--un-text-opacity:1;color:rgb(74 222 128 / 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))}.font-500,.font-medium{font-weight:500}.font-bold{font-weight:700}[fw100=""]{font-weight:100}.leading-\[1em\]{line-height:1em}.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"}.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)}.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,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-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,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-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}}:root{--g-navbar-height: min(13.333vw, 80px);--g-tabbar-height: min(16vw, 96px);color-scheme:light}:root.dark{color-scheme:dark}body{box-sizing:border-box}*{box-sizing:inherit}#app{overflow:hidden auto;font-size:min(3.733vw,22.4px);background-color:var(--g-bg);max-width:600px!important;margin-left:auto!important;margin-right:auto!important;box-shadow:0 0 0 1px #8888881f;min-height:100vh;height:auto!important}.medium-zoom-overlay,.medium-zoom-image--opened{z-index:1100}@supports (min-height: 100dvh){#app{min-height:100dvh}} diff --git a/assets/index-BBC8wC0o.css.br b/assets/index-BBC8wC0o.css.br new file mode 100644 index 00000000..d99b2d27 Binary files /dev/null and b/assets/index-BBC8wC0o.css.br differ diff --git a/assets/index-BBC8wC0o.css.gz b/assets/index-BBC8wC0o.css.gz new file mode 100644 index 00000000..afa2b540 Binary files /dev/null and b/assets/index-BBC8wC0o.css.gz differ diff --git a/assets/index-BZLKYeHE.css b/assets/index-BZLKYeHE.css new file mode 100644 index 00000000..fe179565 --- /dev/null +++ b/assets/index-BZLKYeHE.css @@ -0,0 +1 @@ +.navbar-static[data-v-38246138]{position:absolute;top:0;left:0;z-index:1000;width:100%}.navbar-fixed[data-v-38246138]{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.navbar.shadow-top[data-v-38246138]{box-shadow:0 min(2.667vw,16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.tabbar[data-v-38246138]{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.tabbar.shadow-bottom[data-v-38246138]{box-shadow:0 max(-2.667vw,-16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.backtop[data-v-38246138]{position:fixed;right:calc(50% - min(274.4px,45.733%));bottom:min(4.267vw,25.6px);z-index:1000} diff --git a/assets/index-BZLKYeHE.css.br b/assets/index-BZLKYeHE.css.br new file mode 100644 index 00000000..c4945328 Binary files /dev/null and b/assets/index-BZLKYeHE.css.br differ diff --git a/assets/index-BZLKYeHE.css.gz b/assets/index-BZLKYeHE.css.gz new file mode 100644 index 00000000..c4c99386 Binary files /dev/null and b/assets/index-BZLKYeHE.css.gz differ diff --git a/assets/index-C7Y6HP8P.js b/assets/index-C7Y6HP8P.js new file mode 100644 index 00000000..fed22a43 --- /dev/null +++ b/assets/index-C7Y6HP8P.js @@ -0,0 +1 @@ +import{_ as u}from"./index-g5ePWcIs.js";import{d as o,o as n,c as h,w as i,a as r,b as s,e as p,_ as m,f as x}from"./index-B4fCF_Xu.js";import{_ as d}from"./logo-DvfkIia2.js";const c=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),k={class:"z-1 flex flex-1 flex-col items-center justify-center gap-4"},w=r("img",{src:d,class:"h-40 w-40"},null,-1),y=r("div",{class:"bg-gradient-[120deg,#AE3FF5_30%,#6EC0F9] bg-gradient-linear bg-clip-text text-4xl text-transparent font-bold"}," Fantastic-mobile ",-1),_=r("div",{class:"text-3xl text-dark/80 font-bold dark-text-light/80"}," 别具一格, 自成一派 ",-1),g={class:"mt-4"},j=o({__name:"index",setup(v){function l(t){window.open(t,"_blank")}return(t,b)=>{const e=m,a=x,f=u;return n(),h(f,{navbar:!1,tabbar:"",copyright:""},{default:i(()=>[c,r("div",k,[w,y,_,r("div",g,[s(a,{onClick:b[0]||(b[0]=B=>l("https://fantastic-mobile.github.io"))},{default:i(()=>[s(e,{name:"i-ri:file-text-line"}),p(" 开发文档 ")]),_:1})])])]),_:1})}}});export{j as default}; diff --git a/assets/index-C7Y6HP8P.js.br b/assets/index-C7Y6HP8P.js.br new file mode 100644 index 00000000..0ce2b729 Binary files /dev/null and b/assets/index-C7Y6HP8P.js.br differ diff --git a/assets/index-C7Y6HP8P.js.gz b/assets/index-C7Y6HP8P.js.gz new file mode 100644 index 00000000..55b40a68 Binary files /dev/null and b/assets/index-C7Y6HP8P.js.gz differ diff --git a/assets/index-CFqdiz_8.js b/assets/index-CFqdiz_8.js new file mode 100644 index 00000000..7d4ac937 --- /dev/null +++ b/assets/index-CFqdiz_8.js @@ -0,0 +1 @@ +import{a as g,_ as v}from"./index-g5ePWcIs.js";import{d as p,R as b,r as h,a6 as u,o as l,c as d,w as i,a as e,b as t,u as n,i as k,t as w,e as o,_ as y,f as B}from"./index-B4fCF_Xu.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";const V={class:"flex flex-1 flex-col gap-8 p-4"},$={class:"flex flex-1 flex-col gap-4"},C={class:"flex items-center justify-end gap-4"},j={class:"flex items-center gap-4"},H=["src","onerror"],N={class:"text-8 font-bold"},P=e("div",{class:"mt-1 text-stone-5"}," 这是个人中心示例页面噢~ ",-1),E={class:"mb-2 mt-4 flex items-center text-4 font-mono"},U={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-1 flex-col items-center gap-2"},L={class:"flex flex-1 flex-col items-center gap-2"},M={class:"flex flex-col rounded-lg bg-[var(--g-container-bg)]"},R={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},T={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},q={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"},W=e("div",{class:"text-xs text-stone-5"}," 服务1 ",-1),X={class:"flex flex-col items-center gap-1"},Y=e("div",{class:"text-xs text-stone-5"}," 服务2 ",-1),Z={class:"flex flex-col items-center gap-1"},ee=e("div",{class:"text-xs text-stone-5"}," 服务3 ",-1),te={class:"flex flex-col items-center gap-1"},se=e("div",{class:"text-xs text-stone-5"}," 服务4 ",-1),oe={class:"flex flex-col items-center gap-1"},ae=e("div",{class:"text-xs text-stone-5"}," 服务5 ",-1),ne={class:"flex flex-col items-center gap-1"},ce=e("div",{class:"text-xs text-stone-5"}," 服务6 ",-1),ie={class:"flex flex-col items-center gap-1"},le=e("div",{class:"text-xs text-stone-5"}," 服务7 ",-1),re={class:"flex flex-col items-center gap-1"},de=e("div",{class:"text-xs text-stone-5"}," 服务8 ",-1),pe=p({__name:"index",setup(_e){const a=b(),c=h(!1);return u(()=>a.avatar,()=>{c.value&&(c.value=!1)}),(xe,r)=>{const s=y,_=g,x=S,f=B,m=v;return l(),d(m,{navbar:"","navbar-mode":"show-hide-fixed",tabbar:""},{default:i(()=>[e("div",V,[e("div",$,[e("div",C,[t(_,{value:10},{default:i(()=>[t(s,{name:"i-carbon:notification",class:"text-6"})]),_:1}),t(s,{name:"i-carbon:settings",class:"text-6"})]),e("div",j,[n(a).avatar&&!n(c)?(l(),k("img",{key:0,src:n(a).avatar,onerror:()=>c.value=!0,class:"h-20 w-20 rounded-full bg-dark p-2 dark-bg-light"},null,8,H)):(l(),d(s,{key:1,name:"i-carbon:user-avatar-filled-alt",class:"text-20 text-gray-400"})),e("div",null,[e("div",N," Hi, "+w(n(a).account),1),P])]),e("div",E,[e("div",U,[t(s,{name:"i-logos:vitejs",class:"text-8"}),o(" Vite ")]),e("div",D,[t(s,{name:"i-logos:vue",class:"text-8"}),o(" Vue.js ")]),e("div",I,[t(s,{name:"i-logos:unocss",class:"text-8"}),o(" UnoCSS ")]),e("div",L,[t(s,{name:"i-logos:pinia",class:"text-8"}),o(" Pinia ")])]),e("div",M,[e("div",R,[e("div",T,[t(s,{name:"i-carbon:thumbs-up",class:"text-4 text-[#53b7ad]"})]),o(" 点赞 "),e("div",q,[o(" 9+ "),t(s,{name:"i-carbon:chevron-right"})])]),e("div",z,[e("div",A,[t(s,{name:"i-carbon:favorite",class:"text-4 text-[#6ecc84]"})]),o(" 收藏 "),e("div",F,[o(" 99+ "),t(s,{name:"i-carbon:chevron-right"})])]),e("div",G,[e("div",J,[t(s,{name:"i-carbon:share",class:"text-4 text-[#4580dd]"})]),o(" 分享 "),e("div",K,[o(" 999+ "),t(s,{name:"i-carbon:chevron-right"})])])]),t(x,{title:"更多服务",class:"rounded-lg m-0!"},{default:i(()=>[e("div",O,[e("div",Q,[t(s,{name:"i-icon-park:ad",class:"text-8"}),W]),e("div",X,[t(s,{name:"i-icon-park:bitcoin",class:"text-8"}),Y]),e("div",Z,[t(s,{name:"i-icon-park:alarm-clock",class:"text-8"}),ee]),e("div",te,[t(s,{name:"i-icon-park:calendar-dot",class:"text-8"}),se]),e("div",oe,[t(s,{name:"i-icon-park:good-two",class:"text-8"}),ae]),e("div",ne,[t(s,{name:"i-icon-park:airplane",class:"text-8"}),ce]),e("div",ie,[t(s,{name:"i-icon-park:shopping",class:"text-8"}),le]),e("div",re,[t(s,{name:"i-icon-park:globe",class:"text-8"}),de])])]),_:1})]),t(f,{block:"",onClick:r[0]||(r[0]=fe=>n(a).logout())},{default:i(()=>[o(" 登出 ")]),_:1})])]),_:1})}}});export{pe as default}; diff --git a/assets/index-CFqdiz_8.js.br b/assets/index-CFqdiz_8.js.br new file mode 100644 index 00000000..addbe26a Binary files /dev/null and b/assets/index-CFqdiz_8.js.br differ diff --git a/assets/index-CFqdiz_8.js.gz b/assets/index-CFqdiz_8.js.gz new file mode 100644 index 00000000..e18af0db Binary files /dev/null and b/assets/index-CFqdiz_8.js.gz differ diff --git a/assets/index-DKphaQLY.js b/assets/index-DKphaQLY.js new file mode 100644 index 00000000..3f1e3b30 --- /dev/null +++ b/assets/index-DKphaQLY.js @@ -0,0 +1 @@ +import{_ as L}from"./index-g5ePWcIs.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as x,o as l,i as m,P as v,Q as C,R as U,l as $,L as V,c as j,w as e,b as s,u as k,a as t,t as E,e as o,s as f,N as H,j as M}from"./index-B4fCF_Xu.js";import{s as h}from"./function-call-D5oQs1DN.js";const Q=x({name:"AuthAll",__name:"index",props:{value:{}},setup(_){const u=_;function i(){return C().authAll(u.value)}return(r,b)=>(l(),m("div",null,[i()?v(r.$slots,"default",{key:0}):v(r.$slots,"no-auth",{key:1})]))}}),q=x({name:"Auth",__name:"index",props:{value:{}},setup(_){const u=_;function i(){return C().auth(u.value)}return(r,b)=>(l(),m("div",null,[i()?v(r.$slots,"default",{key:0}):v(r.$slots,"no-auth",{key:1})]))}}),F=t("h3",null,"切换帐号",-1),G=t("h3",null,"帐号权限",-1),I=t("h3",null,"访问鉴权页面",-1),J=t("h3",null,"鉴权组件(请对照代码查看)",-1),K=t("h3",null,"鉴权指令(请对照代码查看)",-1),O={class:"flex flex-col gap-2"},W=t("h3",null,"鉴权函数(请对照代码查看)",-1),X={class:"flex flex-col gap-2"},oe=x({__name:"index",setup(_){const u=M(),i=U(),{auth:r,authAll:b}=C();async function A(p){await i.login({account:p,password:""}),await i.getPermissions(),u.push("/reload")}function B(){u.push({path:"/feature/permission/test"})}function y(p){r(p)?h({type:"success",message:"校验通过"}):h({type:"danger",message:"校验不通过"})}function N(p){b(p)?h({type:"success",message:"校验通过"}):h({type:"danger",message:"校验不通过"})}return(p,n)=>{const T=H,c=$("VanButton"),a=$("VanTag"),w=q,z=Q,P=R,S=L,g=V("auth"),D=V("auth-all");return l(),j(S,{navbar:"","navbar-start-side":"back"},{default:e(()=>[s(P,null,{default:e(()=>[F,s(T,{modelValue:k(i).account,"onUpdate:modelValue":n[0]||(n[0]=d=>k(i).account=d),options:[{label:"admin",value:"admin"},{label:"test",value:"test"},{label:"hooray(无权限)",value:"hooray"}],onChange:A},null,8,["modelValue"]),G,t("div",null,E(k(i).permissions),1),I,t("div",null,[s(c,{onClick:B},{default:e(()=>[o(" 点击访问 ")]),_:1})]),J,t("div",null,[s(w,{value:"permission.browse",style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 权限 ")]),_:1})]),_:1}),s(w,{value:"permission.create",style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.create 权限 ")]),_:1})]),_:1}),s(w,{value:["permission.browse","permission.create"],style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 或 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 或 permission.create 权限 ")]),_:1})]),_:1}),s(z,{value:["permission.browse","permission.create"]},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 和 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 和 permission.create 权限 ")]),_:1})]),_:1})]),K,t("div",O,[f((l(),m("div",null,[o(" 如果你有 permission.browse 权限则能看到这句话 ")])),[[g,"permission.browse"]]),f((l(),m("div",null,[o(" 如果你有 permission.create 权限则能看到这句话 ")])),[[g,"permission.create"]]),f((l(),m("div",null,[o(" 如果你有 permission.browse 或 permission.create 权限则能看到这句话 ")])),[[g,["permission.browse","permission.create"]]]),f((l(),m("div",null,[o(" 如果你有 permission.browse 和 permission.create 权限则能看到这句话 ")])),[[D,["permission.browse","permission.create"]]])]),W,t("div",null,[t("div",X,[t("div",null,[s(c,{size:"small",onClick:n[1]||(n[1]=d=>y("permission.browse"))},{default:e(()=>[o(" 校验 permission.browse 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[2]||(n[2]=d=>y("permission.create"))},{default:e(()=>[o(" 校验 permission.create 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[3]||(n[3]=d=>y(["permission.browse","permission.create"]))},{default:e(()=>[o(" 校验 permission.browse 或 permission.create 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[4]||(n[4]=d=>N(["permission.browse","permission.create"]))},{default:e(()=>[o(" 校验 permission.browse 和 permission.create 权限 ")]),_:1})])])])]),_:1})]),_:1})}}});export{oe as default}; diff --git a/assets/index-DKphaQLY.js.br b/assets/index-DKphaQLY.js.br new file mode 100644 index 00000000..1703ea2c Binary files /dev/null and b/assets/index-DKphaQLY.js.br differ diff --git a/assets/index-DKphaQLY.js.gz b/assets/index-DKphaQLY.js.gz new file mode 100644 index 00000000..d2e68059 Binary files /dev/null and b/assets/index-DKphaQLY.js.gz differ diff --git a/assets/index-g5ePWcIs.js b/assets/index-g5ePWcIs.js new file mode 100644 index 00000000..404851b3 --- /dev/null +++ b/assets/index-g5ePWcIs.js @@ -0,0 +1 @@ +import{d as w,z as $,r as f,o as i,i as u,P as S,b,w as T,u as t,p as y,t as k,n as _,a0 as N,a1 as A,T as F,j as z,_ as B,A as ne,a2 as K,l as oe,a as v,H as pe,F as P,m as re,c as j,a3 as ve,k as fe,h as Q,a4 as X,a5 as Y,a6 as Z,a7 as be,s as ee,v as te,x as ae,C as he,D as ge,I as me,e as xe,B as ye,q as _e}from"./index-B4fCF_Xu.js";const ke={class:"relative inline-flex"},we=w({__name:"HBadge",props:{value:{type:[String,Number,Boolean]}},setup(s){const o=s,r=$(()=>{switch(typeof o.value){case"string":return o.value.length>0;case"number":return o.value>0;case"boolean":return o.value;default:return o.value!==void 0&&o.value!==null}}),l=f({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(n,e)=>(i(),u("div",ke,[S(n.$slots,"default"),b(F,N(A(t(l))),{default:T(()=>[t(r)?(i(),u("span",{key:0,class:y(["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":n.value===!0}])},k(n.value),3)):_("",!0)]),_:1},16)]))}}),Se=w({__name:"index",setup(s){const o=z();return(r,l)=>{const n=B;return i(),u("div",{class:"h-full flex-center px-1",onClick:l[0]||(l[0]=e=>t(o).back())},[b(n,{name:"i-ic:round-arrow-back-ios",class:"text-4"})])}}}),Ce=w({__name:"index",setup(s){const o=z();return(r,l)=>{const n=B;return i(),u("div",{class:"h-full flex-center px-1",onClick:l[0]||(l[0]=e=>t(o).forward())},[b(n,{name:"i-ic:round-arrow-forward-ios",class:"text-4"})])}}}),Te=w({__name:"index",setup(s){const o=z();return(r,l)=>{const n=B;return i(),u("div",{class:"h-full flex-center px-1",onClick:l[0]||(l[0]=e=>t(o).push("/"))},[b(n,{name:"i-ic:baseline-home",class:"text-4"})])}}}),$e=w({__name:"index",setup(s){const o=ne(),r=f(!1),l=$(()=>Object.keys(K).map(e=>({name:K[e],disabled:o.lang===e,callback:()=>n(e)})));function n(e){o.setDefaultLang(e)}return(e,d)=>{const g=B,p=oe("van-action-sheet");return i(),u(P,null,[v("div",{class:"h-full flex-center px-1",onClick:d[0]||(d[0]=h=>r.value=!0)},[b(g,{name:"i-ri:translate",class:"text-4"})]),b(p,{show:t(r),"onUpdate:show":d[1]||(d[1]=h=>pe(r)?r.value=h:null),actions:t(l),onSelect:d[2]||(d[2]=h=>r.value=!1)},null,8,["show","actions"])],64)}}}),Be=/\d/,Re=["-","_","/","."];function Ie(s=""){if(!Be.test(s))return s!==s.toLowerCase()}function Pe(s,o){const r=Re,l=[];if(!s||typeof s!="string")return l;let n="",e,d;for(const g of s){const p=r.includes(g);if(p===!0){l.push(n),n="",e=void 0;continue}const h=Ie(g);if(d===!1){if(e===!1&&h===!0){l.push(n),n=g,e=h;continue}if(e===!0&&h===!1&&n.length>1){const R=n.at(-1);l.push(n.slice(0,Math.max(0,n.length-1))),n=R+g,e=h;continue}}n+=g,e=h,d=p}return l.push(n),l}function Le(s){return s?s[0].toUpperCase()+s.slice(1):""}function Me(s,o){return s?(Array.isArray(s)?s:Pe(s)).map(r=>Le(o!=null&&o.normalize?r.toLowerCase():r)).join(""):""}const se=w({name:"HeaderSide",__name:"index",props:{side:{}},setup(s){const o=s,r=Object.assign({"./Back/index.vue":Se,"./Forward/index.vue":Ce,"./Home/index.vue":Te,"./I18n/index.vue":$e}),l=$(()=>o.side?typeof o.side=="string"?[o.side]:o.side:[]);return(n,e)=>(i(!0),u(P,null,re(t(l),d=>(i(),j(ve(t(r)[`./${t(Me)(d)}/index.vue`]),{key:d}))),128))}}),He=s=>(he("data-v-38246138"),s=s(),ge(),s),Ne={class:"h-full flex-center whitespace-nowrap px-2"},Ae={class:"truncate"},Fe={class:"h-full flex-center whitespace-nowrap px-2"},je={key:0,class:"copyright relative flex flex-wrap items-center justify-center p-4 text-sm text-stone-5 mix-blend-difference"},ze=He(()=>v("span",{class:"px-1"},"Copyright",-1)),Ee={key:0,class:"px-1"},Oe=["href"],Ue={key:1,class:"px-1"},De={key:2,href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},Ve={class:"h-full flex-center px-4"},We={key:1,class:"text-xs"},qe=w({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}},emits:["scroll"],setup(s,{emit:o}){const r=s,l=o,n=me(),e=ne(),{t:d,te:g}=fe(),p=f();function h(a){L(),M(),H(),l("scroll",a)}Q(()=>{L(),M(),H()}),X(()=>{L(),M(),H()});const R=f(),E=f(),C=f(0);Q(()=>{const{width:a}=Y(R,void 0,{box:"border-box"}),{width:m}=Y(E,void 0,{box:"border-box"});Z([a,m],x=>{C.value=Math.max(...x)},{immediate:!0})});const O=f(),I=f(0),U=f(!1),D=$(()=>{var a;return r.navbar??e.settings.navbar.enable?Number.parseInt((a=O.value)==null?void 0:a.clientHeight):0});function L(){I.value=p.value.scrollTop}Z(I,(a,m)=>{U.value=(r.navbarMode??e.settings.navbar.mode)==="sticky"&&a>m&&a>D.value});const V=f(!1);function M(){const a=p.value.scrollTop,m=p.value.clientHeight,x=p.value.scrollHeight;V.value=Math.ceil(a+m){var a;return e.settings.tabbar.list.length>0?Object.prototype.hasOwnProperty.call(e.settings.tabbar.list[0],"name")?((a=e.settings.tabbar.list.find(m=>m.name===r.tabbarName))==null?void 0:a.list)??e.settings.tabbar.list[0].list??[]:e.settings.tabbar.list:[]});function W(a){return n.fullPath===a.path?a.activeIcon??a.icon??void 0:a.icon??void 0}const q=f(0);function H(){q.value=p.value.scrollTop}function ie(){p.value.scrollTo({top:0,behavior:"smooth"})}const J=f(0),G=f(0);return X(()=>{r.savedPosition&&ye(()=>{p.value.scrollTo({top:J.value,left:G.value,behavior:"auto"})})}),be((a,m,x)=>{r.savedPosition&&(J.value=p.value.scrollTop,G.value=p.value.scrollLeft),x()}),(a,m)=>{const x=B,ce=we,ue=oe("RouterLink");return i(),u("div",{ref_key:"mainRef",ref:p,class:"relative h-vh flex flex-col overflow-auto supports-[(height:100dvh)]:h-dvh",onScroll:h},[ee(v("header",{ref_key:"navbarRef",ref:O,class:y(["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":(a.navbarMode??t(e).settings.navbar.mode)==="static","navbar-fixed":(a.navbarMode??t(e).settings.navbar.mode)!=="static",...(a.navbarMode??t(e).settings.navbar.mode)==="show-hide-fixed"&&{"-top-[var(--g-navbar-height)]!":t(I)[b(se,{side:a.navbarStartSide},null,8,["side"])],!0)])],512)],4),v("div",{class:y(["min-w-0 flex-1 text-sm",{"text-center":a.titleCenter}])},[v("div",Ae,[S(a.$slots,"navbar",{},()=>{var c;return[xe(k(((c=t(e).customTitleList.find(de=>de.fullPath===t(n).fullPath))==null?void 0:c.title)||t(e).title&&(t(g)(t(e).title)?t(d)(t(e).title):t(e).title)),1)]},!0)])],2),v("div",{class:"h-full flex items-center justify-end",style:ae({...a.titleCenter&&t(C)&&{width:`${t(C)}px`}})},[v("div",{ref_key:"endSideRef",ref:E,class:"h-full flex-center whitespace-nowrap"},[v("div",Fe,[S(a.$slots,"navbar-end",{},()=>[b(se,{side:a.navbarEndSide},null,8,["side"])],!0)])],512)],4)],2),[[te,a.navbar??t(e).settings.navbar.enable]]),v("div",{class:y(["relative flex flex-1 flex-col transition-margin",{...(a.navbar??t(e).settings.navbar.enable)&&{"mt-safe":(a.navbarMode??t(e).settings.navbar.mode)==="show-hide-fixed","mt+safe-[var(--g-navbar-height)]":(a.navbarMode??t(e).settings.navbar.mode)!=="show-hide-fixed"},"mb+safe-[var(--g-tabbar-height)]":a.tabbar??t(e).settings.tabbar.enable}])},[S(a.$slots,"default",{},void 0,!0),b(F,N(A({enterActiveClass:"ease-out",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"})),{default:T(()=>[a.copyright??t(e).settings.copyright.enable?(i(),u("div",je,[ze,b(x,{name:"i-ri:copyright-line",class:"text-lg"}),t(e).settings.copyright.dates?(i(),u("span",Ee,k(t(e).settings.copyright.dates),1)):_("",!0),t(e).settings.copyright.company?(i(),u(P,{key:1},[t(e).settings.copyright.website?(i(),u("a",{key:0,href:t(e).settings.copyright.website,target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},k(t(e).settings.copyright.company),9,Oe)):(i(),u("span",Ue,k(t(e).settings.copyright.company),1))],64)):_("",!0),t(e).settings.copyright.beian?(i(),u("a",De,k(t(e).settings.copyright.beian),1)):_("",!0)])):_("",!0)]),_:1},16)],2),ee(v("footer",{class:y(["tabbar w-full bg-[var(--g-tabbar-bg)] transition-all pb-safe h+safe-b-[calc(var(--g-tabbar-height))]",{"shadow-bottom":t(V)}])},[v("div",Ve,[S(a.$slots,"tabbar",{},()=>[(i(!0),u(P,null,re(t(le),c=>(i(),j(ue,{key:JSON.stringify(c),class:y(["flex flex-1 flex-col items-center text-[var(--g-tabbar-color)] transition-all",{"text-[var(--g-tabbar-active-color)]!":t(n).fullPath===c.path}]),to:c.path,replace:""},{default:T(()=>[b(ce,{value:c.badge?typeof c.badge=="boolean"?c.badge:typeof c.badge=="function"?c.badge():c.badge:!1,class:"flex-1 flex-col items-center gap-[2px]"},{default:T(()=>[W(c)?(i(),j(x,{key:0,name:W(c)??"",class:y(c.text?"text-6":"text-8")},null,8,["name","class"])):_("",!0),c.text?(i(),u("div",We,k(t(d)(c.text)),1)):_("",!0)]),_:2},1032,["value"])]),_:2},1032,["class","to"]))),128))],!0)])],2),[[te,a.tabbar??t(e).settings.tabbar.enable]]),b(F,N(A({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:T(()=>[(a.backTop??t(e).settings.app.enableBackTop)&&t(q)>=200?(i(),u("div",{key:0,class:y(["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)]!":a.tabbar??t(e).settings.tabbar.enable}]),onClick:ie},[b(x,{name:"i-icon-park-outline:to-top-one",class:"text-6"})],2)):_("",!0)]),_:1},16)],544)}}}),Ge=_e(qe,[["__scopeId","data-v-38246138"]]);export{Ge as _,we as a}; diff --git a/assets/index-g5ePWcIs.js.br b/assets/index-g5ePWcIs.js.br new file mode 100644 index 00000000..ffb345ab Binary files /dev/null and b/assets/index-g5ePWcIs.js.br differ diff --git a/assets/index-g5ePWcIs.js.gz b/assets/index-g5ePWcIs.js.gz new file mode 100644 index 00000000..5a702567 Binary files /dev/null and b/assets/index-g5ePWcIs.js.gz differ diff --git a/assets/index-y0e0JgNz.js b/assets/index-y0e0JgNz.js new file mode 100644 index 00000000..1463c475 --- /dev/null +++ b/assets/index-y0e0JgNz.js @@ -0,0 +1 @@ +import{_ as x}from"./index-g5ePWcIs.js";import{d as y,k as w,l as z,o as a,c as i,w as f,a as n,i as s,m as b,F as d,n as c,t as g,u as o,p as m,b as C,$ as t,_ as S}from"./index-B4fCF_Xu.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"},F={class:"grid grid-cols-2 mt-4 gap-3"},N={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($){const{t:u,te:p}=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/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/schedule",title:"日程表",pro:!0}]}];return(q,A)=>{const l=S,v=z("router-link"),_=x;return a(),i(_,{navbar:!1,"saved-position":"",tabbar:""},{default:f(()=>[n("div",B,[(a(),s(d,null,b(h,(r,k)=>n("div",{key:k,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,g(o(p)(r.title)?o(u)(r.title):r.title),1)]),n("div",F,[(a(!0),s(d,null,b(r.routes,e=>(a(),i(v,{key:e.path,to:e.path,class:m(["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 bg-[#d4af37] text-6xl absolute! dark-bg-[#d4af3730]"})):c("",!0),e.icon?(a(),s("div",N,[C(l,{name:e.icon},null,8,["name"])])):c("",!0),n("div",{class:m(["z-1 flex-1 truncate px-3 py-2",{"ps-2":e.icon}])},g(o(p)(e.title)?o(u)(e.title):e.title),3)]),_:2},1032,["to","class"]))),128))])])),64))])]),_:1})}}});export{P as default}; diff --git a/assets/index-y0e0JgNz.js.br b/assets/index-y0e0JgNz.js.br new file mode 100644 index 00000000..8cf09f8a Binary files /dev/null and b/assets/index-y0e0JgNz.js.br differ diff --git a/assets/index-y0e0JgNz.js.gz b/assets/index-y0e0JgNz.js.gz new file mode 100644 index 00000000..ed3e2a39 Binary files /dev/null and b/assets/index-y0e0JgNz.js.gz differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js new file mode 100644 index 00000000..e3eeaf29 --- /dev/null +++ b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js @@ -0,0 +1 @@ +import{d as m,a8 as u,r as b,o,i as a,P as n,n as r,a as f,u as s,b as g,p as h,x as v,_,e as y,t as k}from"./index-B4fCF_Xu.js";const x={key:0,class:"title-container border-b-1 border-b-[var(--g-bg)] border-b-solid px-4 py-3 transition-border-color-300"},C={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,S)=>{const d=_;return o(),a("div",{class:h(["page-main relative m-4 flex flex-col bg-[var(--g-container-bg)] transition-background-color-300",{"of-hidden":s(t)}]),style:v({height:s(t)?e.height:""})},[c||e.title?(o(),a("div",x,[n(e.$slots,"title",{},()=>[y(k(e.title),1)])])):r("",!0),f("div",C,[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},[g(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-DOfpQSqS.js.br b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js.br new file mode 100644 index 00000000..30333ad6 Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js.br differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js.gz b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js.gz new file mode 100644 index 00000000..8fe63fa0 Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js.gz differ diff --git a/assets/keepAlive-D9fBWCqp.js b/assets/keepAlive-D9fBWCqp.js new file mode 100644 index 00000000..4855e07d --- /dev/null +++ b/assets/keepAlive-D9fBWCqp.js @@ -0,0 +1 @@ +import{_}from"./index-g5ePWcIs.js";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as u,r as m,l as c,o as d,c as i,w as n,b as o,u as f,H as v}from"./index-B4fCF_Xu.js";const C=u({name:"FeatureStandardKeepAlive",__name:"keepAlive",setup(b){const e=m(1);return(k,a)=>{const t=c("van-stepper"),s=p,r=_;return d(),i(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-D9fBWCqp.js.br b/assets/keepAlive-D9fBWCqp.js.br new file mode 100644 index 00000000..c2ab45c8 Binary files /dev/null and b/assets/keepAlive-D9fBWCqp.js.br differ diff --git a/assets/keepAlive-D9fBWCqp.js.gz b/assets/keepAlive-D9fBWCqp.js.gz new file mode 100644 index 00000000..0c8086ed Binary files /dev/null and b/assets/keepAlive-D9fBWCqp.js.gz differ diff --git a/assets/login-at_66M8Y.css b/assets/login-at_66M8Y.css new file mode 100644 index 00000000..20961815 --- /dev/null +++ b/assets/login-at_66M8Y.css @@ -0,0 +1 @@ +.svg[data-v-0ca7fc1d]{position:absolute;bottom:0;z-index:0}.path-1[data-v-0ca7fc1d]{animation:path-anim-1-0ca7fc1d 4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes path-anim-1-0ca7fc1d{0%{d:path("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")}25%{d:path("M 0,600 L 0,150 C 93.35714285714286,124.89285714285714 186.71428571428572,99.78571428571429 297,90 C 407.2857142857143,80.21428571428571 534.5,85.75 658,114 C 781.5,142.25 901.2857142857142,193.21428571428572 1031,203 C 1160.7142857142858,212.78571428571428 1300.357142857143,181.39285714285714 1440,150 L 1440,600 L 0,600 Z")}50%{d:path("M 0,600 L 0,150 C 86.85714285714286,184.78571428571428 173.71428571428572,219.57142857142858 306,199 C 438.2857142857143,178.42857142857142 616,102.49999999999999 753,78 C 890,53.500000000000014 986.2857142857142,80.42857142857143 1094,101 C 1201.7142857142858,121.57142857142857 1320.857142857143,135.78571428571428 1440,150 L 1440,600 L 0,600 Z")}75%{d:path("M 0,600 L 0,150 C 106.82142857142858,152.5 213.64285714285717,155 325,144 C 436.35714285714283,133 552.2499999999999,108.49999999999999 694,108 C 835.7500000000001,107.50000000000001 1003.3571428571429,131.00000000000003 1132,142 C 1260.642857142857,152.99999999999997 1350.3214285714284,151.5 1440,150 L 1440,600 L 0,600 Z")}to{d:path("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")}}.path-2[data-v-0ca7fc1d]{animation:path-anim-2-0ca7fc1d 4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes path-anim-2-0ca7fc1d{0%{d:path("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")}25%{d:path("M 0,600 L 0,350 C 111.64285714285711,384.82142857142856 223.28571428571422,419.64285714285717 356,421 C 488.7142857142858,422.35714285714283 642.5000000000002,390.25 752,390 C 861.4999999999998,389.75 926.7142857142856,421.35714285714283 1034,420 C 1141.2857142857144,418.64285714285717 1290.6428571428573,384.32142857142856 1440,350 L 1440,600 L 0,600 Z")}50%{d:path("M 0,600 L 0,350 C 139.60714285714283,359.3571428571429 279.21428571428567,368.7142857142857 402,374 C 524.7857142857143,379.2857142857143 630.7500000000001,380.5 740,371 C 849.2499999999999,361.5 961.7857142857142,341.2857142857143 1079,336 C 1196.2142857142858,330.7142857142857 1318.107142857143,340.3571428571429 1440,350 L 1440,600 L 0,600 Z")}75%{d:path("M 0,600 L 0,350 C 136.53571428571428,364.5357142857143 273.07142857142856,379.07142857142856 370,362 C 466.92857142857144,344.92857142857144 524.2500000000001,296.25 654,282 C 783.7499999999999,267.75 985.9285714285716,287.92857142857144 1129,305 C 1272.0714285714284,322.07142857142856 1356.0357142857142,336.0357142857143 1440,350 L 1440,600 L 0,600 Z")}to{d:path("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")}} diff --git a/assets/login-at_66M8Y.css.br b/assets/login-at_66M8Y.css.br new file mode 100644 index 00000000..1057a1f2 Binary files /dev/null and b/assets/login-at_66M8Y.css.br differ diff --git a/assets/login-at_66M8Y.css.gz b/assets/login-at_66M8Y.css.gz new file mode 100644 index 00000000..607ed5ad Binary files /dev/null and b/assets/login-at_66M8Y.css.gz differ diff --git a/assets/login-vaW7q3sF.js b/assets/login-vaW7q3sF.js new file mode 100644 index 00000000..99884cdb --- /dev/null +++ b/assets/login-vaW7q3sF.js @@ -0,0 +1 @@ +import{_ as L}from"./index-g5ePWcIs.js";import{_ as S}from"./logo-DvfkIia2.js";import{d as D,R as F,r as v,l,o as I,c as q,w as a,a as e,b as s,u as i,e as d,I as B,C as A,D as N,j as R,q as U}from"./index-B4fCF_Xu.js";const g=r=>(A("data-v-0ca7fc1d"),r=r(),N(),r),j={class:"mx-4 flex flex-1 flex-col justify-center gap-8"},z=g(()=>e("img",{src:S,class:"mx-auto h-24 w-24"},null,-1)),E={class:"px-4"},G={class:"text-center space-x-4"},M=g(()=>e("svg",{width:"100%",viewBox:"0 0 1440 590",xmlns:"http://www.w3.org/2000/svg",class:"svg transition duration-300 delay-150 ease-in-out"},[e("defs",null,[e("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[e("stop",{offset:"5%","stop-color":"#F78DA7"}),e("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),e("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"}),e("defs",null,[e("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[e("stop",{offset:"5%","stop-color":"#F78DA7"}),e("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),e("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)),Z=D({__name:"login",setup(r){var _;const w=R(),x=B(),y=F(),C=v(((_=x.query.redirect)==null?void 0:_.toString())??"/"),o=v({account:"",password:""});function u(){y.login({account:o.value.account,password:o.value.password}).then(()=>{w.replace(C.value)})}function p(f){o.value.account=f,o.value.password="123456",u()}return(f,t)=>{const m=l("van-field"),h=l("van-cell-group"),b=l("van-form"),c=l("van-button"),k=l("van-divider"),V=L;return I(),q(V,{navbar:!1,copyright:""},{default:a(()=>[e("div",j,[z,s(b,{onSubmit:u},{default:a(()=>[s(h,{inset:""},{default:a(()=>[s(m,{modelValue:i(o).account,"onUpdate:modelValue":t[0]||(t[0]=n=>i(o).account=n),name:"用户名",label:"用户名",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),s(m,{modelValue:i(o).password,"onUpdate:modelValue":t[1]||(t[1]=n=>i(o).password=n),type:"password",name:"密码",label:"密码",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue"])]),_:1})]),_:1}),e("div",E,[s(c,{round:"",block:"",type:"primary","native-type":"submit"},{default:a(()=>[d(" 提交 ")]),_:1}),s(k,null,{default:a(()=>[d(" 演示账号一键登录 ")]),_:1}),e("div",G,[s(c,{type:"primary",size:"small",plain:"",onClick:t[2]||(t[2]=n=>p("admin"))},{default:a(()=>[d(" admin ")]),_:1}),s(c,{size:"small",plain:"",onClick:t[3]||(t[3]=n=>p("test"))},{default:a(()=>[d(" test ")]),_:1})])])]),M]),_:1})}}}),H=U(Z,[["__scopeId","data-v-0ca7fc1d"]]);export{H as default}; diff --git a/assets/login-vaW7q3sF.js.br b/assets/login-vaW7q3sF.js.br new file mode 100644 index 00000000..854242a8 Binary files /dev/null and b/assets/login-vaW7q3sF.js.br differ diff --git a/assets/login-vaW7q3sF.js.gz b/assets/login-vaW7q3sF.js.gz new file mode 100644 index 00000000..237e6e9f Binary files /dev/null and b/assets/login-vaW7q3sF.js.gz differ diff --git a/assets/logo-CvGq432t.png b/assets/logo-CvGq432t.png new file mode 100644 index 00000000..cec31016 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 00000000..01678c27 --- /dev/null +++ b/assets/logo-DvfkIia2.js @@ -0,0 +1 @@ +const o=""+new URL("logo-CvGq432t.png",import.meta.url).href;export{o as _}; diff --git a/assets/mode-BjoIPSlE.js b/assets/mode-BjoIPSlE.js new file mode 100644 index 00000000..a7bef171 --- /dev/null +++ b/assets/mode-BjoIPSlE.js @@ -0,0 +1 @@ +import{d as c,r as m,l as _,o,c as p,w as l,a as n,b as s,u as r,H as f,e as v,i as b,m as x,F as k,N as V,t as g}from"./index-B4fCF_Xu.js";import{_ as w}from"./index-g5ePWcIs.js";const B={class:"flex flex-col gap-4 p-4"},$=c({__name:"mode",setup(C){const a=m("fixed");return(u,t)=>{const d=V,i=_("van-button");return o(),p(w,{navbar:"","navbar-mode":r(a)},{default:l(()=>[n("div",B,[s(d,{modelValue:r(a),"onUpdate:modelValue":t[0]||(t[0]=e=>f(a)?a.value=e:null),options:[{label:"静止",value:"static"},{label:"固定",value:"fixed"},{label:"显隐固定",value:"show-hide-fixed"},{label:"粘性",value:"sticky"}],class:"w-full"},null,8,["modelValue"]),s(i,{onClick:t[1]||(t[1]=e=>u.$router.back())},{default:l(()=>[v(" 返回 ")]),_:1}),(o(),b(k,null,x(50,e=>n("div",{key:e,class:"text-center"},g(e),1)),64))])]),_:1},8,["navbar-mode"])}}});export{$ as default}; diff --git a/assets/mode-BjoIPSlE.js.br b/assets/mode-BjoIPSlE.js.br new file mode 100644 index 00000000..8c0b2be2 Binary files /dev/null and b/assets/mode-BjoIPSlE.js.br differ diff --git a/assets/mode-BjoIPSlE.js.gz b/assets/mode-BjoIPSlE.js.gz new file mode 100644 index 00000000..37407e0f Binary files /dev/null and b/assets/mode-BjoIPSlE.js.gz differ diff --git a/assets/multi-DyDiDDK1.js b/assets/multi-DyDiDDK1.js new file mode 100644 index 00000000..dc9706c2 --- /dev/null +++ b/assets/multi-DyDiDDK1.js @@ -0,0 +1 @@ +import{_ as c}from"./index-g5ePWcIs.js";import{q as r,l as _,o as l,c as d,w as o,a as t,b as u,e as f}from"./index-B4fCF_Xu.js";const i={},p={class:"flex flex-col gap-4 p-4"},m=t("div",null,"可以配置多套底部导航,并在不同页面选择启用某一套。",-1);function b(a,e){const n=_("van-button"),s=c;return l(),d(s,{navbar:!1,tabbar:"","tabbar-name":"second"},{default:o(()=>[t("div",p,[m,u(n,{onClick:e[0]||(e[0]=v=>a.$router.back())},{default:o(()=>[f(" 返回 ")]),_:1})])]),_:1})}const g=r(i,[["render",b]]);export{g as default}; diff --git a/assets/multi-DyDiDDK1.js.br b/assets/multi-DyDiDDK1.js.br new file mode 100644 index 00000000..59b3667d Binary files /dev/null and b/assets/multi-DyDiDDK1.js.br differ diff --git a/assets/multi-DyDiDDK1.js.gz b/assets/multi-DyDiDDK1.js.gz new file mode 100644 index 00000000..6eb0810f Binary files /dev/null and b/assets/multi-DyDiDDK1.js.gz differ diff --git a/assets/none-C5QehyT3.js b/assets/none-C5QehyT3.js new file mode 100644 index 00000000..4240767d --- /dev/null +++ b/assets/none-C5QehyT3.js @@ -0,0 +1 @@ +import{_ as s}from"./index-g5ePWcIs.js";import{q as c,l as r,o as _,c as l,w as o,a as f,b as p,e as u}from"./index-B4fCF_Xu.js";const d={},i={class:"flex flex-col gap-4 p-4"};function m(t,e){const n=r("van-button"),a=s;return _(),l(a,{navbar:!1},{default:o(()=>[f("div",i,[p(n,{onClick:e[0]||(e[0]=v=>t.$router.back())},{default:o(()=>[u(" 返回 ")]),_:1})])]),_:1})}const k=c(d,[["render",m]]);export{k as default}; diff --git a/assets/none-C5QehyT3.js.br b/assets/none-C5QehyT3.js.br new file mode 100644 index 00000000..fc4d30c1 Binary files /dev/null and b/assets/none-C5QehyT3.js.br differ diff --git a/assets/none-C5QehyT3.js.gz b/assets/none-C5QehyT3.js.gz new file mode 100644 index 00000000..f5fae421 Binary files /dev/null and b/assets/none-C5QehyT3.js.gz differ diff --git a/assets/pagemain-demo-C3p34l1S.js b/assets/pagemain-demo-C3p34l1S.js new file mode 100644 index 00000000..c9210ba2 --- /dev/null +++ b/assets/pagemain-demo-C3p34l1S.js @@ -0,0 +1 @@ +import{_ as c}from"./index-g5ePWcIs.js";import{_ as i}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{_ as l}from"./logo-DvfkIia2.js";import{q as r,l as m,o as f,c as u,w as t,b as e,e as a,a as n}from"./index-B4fCF_Xu.js";const d={},p={class:"flex items-center justify-between"},h=n("h1",{class:"mt-0"}," Fantastic-mobile ",-1),b=n("img",{src:l},null,-1);function g(v,x){const o=i,s=m("van-button"),_=c;return f(),u(_,{navbar:"","navbar-start-side":"back"},{default:t(()=>[e(o,null,{default:t(()=>[a(" PageMain 是最常用的页面组件,几乎所有页面都会使用到 ")]),_:1}),e(o,{title:"你可以设置一个自定义的标题"},{default:t(()=>[a(" 这里放页面内容 ")]),_:1}),e(o,null,{title:t(()=>[n("div",p,[a(" 通过 slot 设置标题 "),e(s,{size:"mini"},{default:t(()=>[a(" 还可以放置自定义按钮 ")]),_:1})])]),default:t(()=>[a(" 这里放页面内容 ")]),_:1}),e(o,{title:"带展开功能",collaspe:"",height:"20vh"},{default:t(()=>[h,b]),_:1})]),_:1})}const P=r(d,[["render",g]]);export{P as default}; diff --git a/assets/pagemain-demo-C3p34l1S.js.br b/assets/pagemain-demo-C3p34l1S.js.br new file mode 100644 index 00000000..4fe0bd8c Binary files /dev/null and b/assets/pagemain-demo-C3p34l1S.js.br differ diff --git a/assets/pagemain-demo-C3p34l1S.js.gz b/assets/pagemain-demo-C3p34l1S.js.gz new file mode 100644 index 00000000..1aaabbb3 Binary files /dev/null and b/assets/pagemain-demo-C3p34l1S.js.gz differ diff --git a/assets/preset-BAC2u6pR.js b/assets/preset-BAC2u6pR.js new file mode 100644 index 00000000..c4fdb8c2 --- /dev/null +++ b/assets/preset-BAC2u6pR.js @@ -0,0 +1 @@ +import{_ as y}from"./index-g5ePWcIs.js";import{d as L,r as b,l as u,o as r,c as N,w as s,a as i,b as a,i as k,m as x,F as g,u as c,H as C,e as O,O as h}from"./index-B4fCF_Xu.js";const T={class:"flex flex-col gap-4 p-4"},F={class:"flex gap-4"},U={class:"flex-1"},E=i("div",{class:"mb-2 text-center"}," 左侧 ",-1),H={class:"flex-1"},M=i("div",{class:"mb-2 text-center"}," 右侧 ",-1),q=L({__name:"preset",setup(P){const _=[{label:"主页",value:"home"},{label:"返回",value:"back"},{label:"前进",value:"forward"},{label:"语言",value:"i18n"}],o=b(["home"]);function V(n){o.value.includes(n)?o.value.splice(o.value.indexOf(n),1):o.value.push(n)}const t=b(["i18n"]);function w(n){t.value.includes(n)?t.value.splice(t.value.indexOf(n),1):t.value.push(n)}return(n,l)=>{const v=u("van-checkbox"),p=u("van-cell"),m=u("van-cell-group"),f=u("van-checkbox-group"),B=u("van-button"),S=y;return r(),N(S,{navbar:"","navbar-start-side":c(o),"navbar-end-side":c(t)},{default:s(()=>[i("div",T,[i("div",F,[i("div",U,[E,a(f,{modelValue:c(o),"onUpdate:modelValue":l[1]||(l[1]=e=>C(o)?o.value=e:null)},{default:s(()=>[a(m,null,{default:s(()=>[(r(),k(g,null,x(_,(e,d)=>a(p,{key:d,clickable:"",title:e.label,onClick:$=>V(e.value)},{"right-icon":s(()=>[a(v,{name:e.value,onClick:l[0]||(l[0]=h(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])]),i("div",H,[M,a(f,{modelValue:c(t),"onUpdate:modelValue":l[3]||(l[3]=e=>C(t)?t.value=e:null)},{default:s(()=>[a(m,null,{default:s(()=>[(r(),k(g,null,x(_,(e,d)=>a(p,{key:d,clickable:"",title:e.label,onClick:$=>w(e.value)},{"right-icon":s(()=>[a(v,{name:e.value,onClick:l[2]||(l[2]=h(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])])]),a(B,{onClick:l[4]||(l[4]=e=>n.$router.back())},{default:s(()=>[O(" 返回 ")]),_:1})])]),_:1},8,["navbar-start-side","navbar-end-side"])}}});export{q as default}; diff --git a/assets/preset-BAC2u6pR.js.br b/assets/preset-BAC2u6pR.js.br new file mode 100644 index 00000000..c91a98a7 Binary files /dev/null and b/assets/preset-BAC2u6pR.js.br differ diff --git a/assets/preset-BAC2u6pR.js.gz b/assets/preset-BAC2u6pR.js.gz new file mode 100644 index 00000000..87524e64 Binary files /dev/null and b/assets/preset-BAC2u6pR.js.gz differ diff --git a/assets/qrcode-HOUDYqkT.js b/assets/qrcode-HOUDYqkT.js new file mode 100644 index 00000000..96e3de1e --- /dev/null +++ b/assets/qrcode-HOUDYqkT.js @@ -0,0 +1,8 @@ +import{_ as Ft}from"./index-g5ePWcIs.js";import{_ as kt}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as zt,r as K,h as Vt,l as mt,o as Ht,c as Kt,w as P,a as S,b as L,e as wt,u as O,H as Jt,_ as $t}from"./index-B4fCF_Xu.js";var D={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},pt={},N={};let lt;const Ot=[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 Ot[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(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(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 jt=Bt;function Y(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)}Y.prototype.set=function(e,t,i,r){const o=e*this.size+t;this.data[o]=i,r&&(this.reservedBit[o]=!0)};Y.prototype.get=function(e,t){return this.data[e*this.size+t]};Y.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};Y.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=Y,At={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,n=t(r),s=n===145?26:Math.ceil((n-13)/(2*o-2))*2,a=[n-7];for(let u=1;u=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const n=o.size;let s=0,a=0,u=0,c=null,l=null;for(let C=0;C=5&&(s+=t.N1+(a-5)),c=f,a=1),f=o.get(h,C),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(o){const n=o.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|o.get(l,c),l>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let n=0;const s=o.data.length;for(let u=0;u=0;){const s=n[0];for(let u=0;u0){const n=new Uint8Array(this.degree);return n.set(r,o),n}return r};var Qt=ft,bt={},v={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var b={};const Mt="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let $="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$=$.replace(/u/g,"\\u");const Zt="(?:(?![A-Z0-9 $%*+\\-./:]|"+$+`)(?:.|[\r +]))+`;b.KANJI=new RegExp($,"g");b.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");b.BYTE=new RegExp(Zt,"g");b.NUMERIC=new RegExp(Mt,"g");b.ALPHANUMERIC=new RegExp(Wt,"g");const Xt=new RegExp("^"+$+"$"),xt=new RegExp("^"+Mt+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");b.testKanji=function(t){return Xt.test(t)};b.testNumeric=function(t){return xt.test(t)};b.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=b;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(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.from=function(n,s){if(e.isValid(n))return n;try{return r(n)}catch{return s}}})(v);(function(e){const t=N,i=Z,r=W,o=v,n=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 o.getCharCountIndicator(h,f)+4}function l(h,f){let w=0;return h.forEach(function(y){const _=c(y.mode,f);w+=_+y.getBitsLength()}),w}function C(h,f){for(let w=1;w<=40;w++)if(l(h,w)<=e.getCapacity(w,f,o.MIXED))return w}e.from=function(f,w){return n.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,y){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=o.BYTE);const _=t.getSymbolTotalCodewords(f),m=i.getTotalCodewordsCount(f,w),E=(_-m)*8;if(y===o.MIXED)return E;const g=E-c(y,f);switch(y){case o.NUMERIC:return Math.floor(g/10*3);case o.ALPHANUMERIC:return Math.floor(g/11*2);case o.KANJI:return Math.floor(g/13);case o.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let y;const _=r.from(w,r.M);if(Array.isArray(f)){if(f.length>1)return C(f,_);if(f.length===0)return 1;y=f[0]}else y=f;return u(y.mode,y.getLength(),_)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-a>=0;)w^=s<=0;)o^=St<0&&(r=this.data.substr(i),o=parseInt(r,10),t.put(o,n*3+1))};var oe=F;const re=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 k(e){this.mode=re.ALPHANUMERIC,this.data=e}k.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=et.indexOf(this.data[i])*45;r+=et.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(et.indexOf(this.data[i]),6)};var ie=k,se=function(t){for(var i=[],r=t.length,o=0;o=55296&&n<=56319&&r>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,o+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const ae=se,ue=v;function z(e){this.mode=ue.BYTE,typeof e=="string"&&(e=ae(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 de=V,Lt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,r,o){var n={},s={};s[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var u,c,l,C,h,f,w,y,_;!a.empty();){u=a.pop(),c=u.value,C=u.cost,h=i[c]||{};for(l in h)h.hasOwnProperty(l)&&(f=h[l],w=C+f,y=s[l],_=typeof s[l]>"u",(_||y>w)&&(s[l]=w,a.push(l,w),n[l]=c))}if(typeof o<"u"&&typeof s[o]>"u"){var m=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(m)}return n},extract_shortest_path_from_predecessor_list:function(i,r){for(var o=[],n=r;n;)o.push(n),i[n],n=i[n];return o.reverse(),o},find_path:function(i,r,o){var n=t.single_source_shortest_paths(i,r,o);return t.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(i){var r=t.PriorityQueue,o={},n;i=i||{};for(n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=i.sorter||r.default_sorter,o},default_sorter:function(i,r){return i.cost-r.cost},push:function(i,r){var o={value:i,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Lt);var ge=Lt.exports;(function(e){const t=v,i=oe,r=ie,o=ce,n=de,s=b,a=N,u=ge;function c(m){return unescape(encodeURIComponent(m)).length}function l(m,E,g){const d=[];let p;for(;(p=m.exec(g))!==null;)d.push({data:p[0],index:p.index,mode:E,length:p[0].length});return d}function C(m){const E=l(s.NUMERIC,t.NUMERIC,m),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,m);let d,p;return a.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,m),p=l(s.KANJI,t.KANJI,m)):(d=l(s.BYTE_KANJI,t.BYTE,m),p=[]),E.concat(g,d,p).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,E){switch(E){case t.NUMERIC:return i.getBitsLength(m);case t.ALPHANUMERIC:return r.getBitsLength(m);case t.KANJI:return n.getBitsLength(m);case t.BYTE:return o.getBitsLength(m)}}function f(m){return m.reduce(function(E,g){const d=E.length-1>=0?E[E.length-1]:null;return d&&d.mode===g.mode?(E[E.length-1].data+=g.data,E):(E.push(g),E)},[])}function w(m){const E=[];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(n+a,s+u,!0,!0):e.set(n+a,s+u,!1,!0))}}function Ae(e){const t=e.size;for(let i=8;i>a&1)===1,e.set(o,n,s,!0),e.set(n,o,s,!0)}function rt(e,t,i){const r=e.size,o=Ce.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(o>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(r-15+n,8,s,!0),n<8?e.set(8,r-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(r-8,8,1,!0)}function Ie(e,t){const i=e.size;let r=-1,o=i-1,n=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(o,a-u)){let c=!1;s>>n&1)===1),e.set(o,a-u,c),n--,n===-1&&(s++,n=7)}if(o+=r,o<0||i<=o){o-=r,r=-r;break}}}function Te(e,t,i){const r=new he;i.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),pe.getCharCountIndicator(u.mode,e)),u.write(r)});const o=x.getSymbolTotalCodewords(e),n=ut.getTotalCodewordsCount(e,t),s=(o-n)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let u=0;u=7&&Ne(u,t),Ie(u,s),isNaN(r)&&(r=at.getBestMask(u,rt.bind(null,u,i))),at.applyMask(r,u),rt(u,i,r),{modules:u,version:t,errorCorrectionLevel:i,maskPattern:r,segments:o}}pt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let r=nt.M,o,n;return typeof i<"u"&&(r=nt.from(i.errorCorrectionLevel,nt.M),o=Q.from(i.version),n=at.from(i.maskPattern),i.toSJISFunc&&x.setToSJISFunction(i.toSJISFunc)),Me(t,o,r,n)};var Dt={},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 r=i.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+i);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(n){return[n,n]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,n=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:n,scale:n?4:s,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const n=e.getScale(r,o);return Math.floor((r+o.margin*2)*n)},e.qrToImageData=function(r,o,n){const s=o.modules.size,a=o.modules.data,u=e.getScale(s,n),c=Math.floor((s+n.margin*2)*u),l=n.margin*u,C=[n.color.light,n.color.dark];for(let h=0;h=l&&f>=l&&h"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(c=r()),u=t.getOptions(u);const l=t.getImageWidth(n.modules.size,u),C=c.getContext("2d"),h=C.createImageData(l,l);return t.qrToImageData(h.data,n,u),i(C,c,l),C.putImageData(h,0,0),c},e.renderToDataURL=function(n,s,a){let u=a;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const c=e.render(n,s,u),l=u.type||"image/png",C=u.rendererOpts||{};return c.toDataURL(l,C.quality)}})(Dt);var Ut={};const Pe=gt;function Ct(e,t){const i=e.a/255,r=t+'="'+e.hex+'"';return i<1?r+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function it(e,t,i){let r=e+t;return typeof i<"u"&&(r+=" "+i),r}function Se(e,t,i){let r="",o=0,n=!1,s=0;for(let a=0;a0&&u>0&&e[a-1]||(r+=n?it("M",u+i,.5+c+i):it("m",o,0),o=0,n=!1),u+1':"",c="',l='viewBox="0 0 '+a+" "+a+'"',h=''+u+c+` +`;return typeof r=="function"&&r(null,h),h};const Re=Yt,ct=pt,vt=Dt,Le=Ut;function ht(e,t,i,r,o){const n=[].slice.call(arguments,1),s=n.length,a=typeof n[s-1]=="function";if(!a&&!Re())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=i,i=t,t=r=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=r=void 0):s===2&&!t.getContext&&(r=i,i=t,t=void 0),new Promise(function(u,c){try{const l=ct.create(i,r);u(e(l,t,r))}catch(l){c(l)}})}try{const u=ct.create(i,r);o(null,e(u,t,r))}catch(u){o(u)}}D.create=ct.create;D.toCanvas=ht.bind(null,vt.render);D.toDataURL=ht.bind(null,vt.renderToDataURL);D.toString=ht.bind(null,function(e,t,i){return Le.render(e,i)});const De={class:"whitespace-break-spaces p-4 space-y-2"},Ue=S("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),ve=S("div",null,"安装命令:",-1),Fe={class:"space-x-2"},ke=["src"],ze=["src"],Ve=["src"],$e=zt({__name:"qrcode",setup(e){const t=K(!1),i=K(""),r=K(""),o=K(""),n=K();return Vt(()=>{D.toDataURL("Fantastic-mobile 真棒!").then(s=>{i.value=s}).catch(s=>{console.log(s)}),D.toCanvas(n.value,"Fantastic-mobile 真棒!").then(()=>{}).catch(s=>{console.log(s)}),D.toDataURL("Fantastic-mobile 真棒!",{color:{dark:"#5482EE",light:"#E8E8E8"}}).then(s=>{r.value=s}).catch(s=>{console.log(s)}),D.toDataURL("Fantastic-mobile 真棒!",{width:100}).then(s=>{o.value=s}).catch(s=>{console.log(s)})}),(s,a)=>{const u=$t,c=mt("van-tag"),l=mt("van-action-sheet"),C=kt,h=Ft;return Ht(),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=>Jt(t)?t.value=f:null),teleport:"body"},{default:P(()=>[S("div",De,[Ue,ve,S("div",Fe,[L(c,{type:"primary",plain:""},{default:P(()=>[wt(" pnpm add qrcode ")]),_:1}),L(c,{type:"primary",plain:""},{default:P(()=>[wt(" pnpm add @types/qrcode -D ")]),_:1})])])]),_:1},8,["show"])]),default:P(()=>[L(C,{title:"渲染成 img 标签"},{default:P(()=>[S("img",{src:O(i)},null,8,ke)]),_:1}),L(C,{title:"渲染成 canvas 标签"},{default:P(()=>[S("canvas",{ref_key:"canvasRef",ref:n},null,512)]),_:1}),L(C,{title:"自定义颜色"},{default:P(()=>[S("img",{src:O(r)},null,8,ze)]),_:1}),L(C,{title:"指定宽度"},{default:P(()=>[S("img",{src:O(o)},null,8,Ve)]),_:1})]),_:1})}}});export{$e as default}; diff --git a/assets/qrcode-HOUDYqkT.js.br b/assets/qrcode-HOUDYqkT.js.br new file mode 100644 index 00000000..4fad6941 Binary files /dev/null and b/assets/qrcode-HOUDYqkT.js.br differ diff --git a/assets/qrcode-HOUDYqkT.js.gz b/assets/qrcode-HOUDYqkT.js.gz new file mode 100644 index 00000000..1d3a2b5c Binary files /dev/null and b/assets/qrcode-HOUDYqkT.js.gz differ diff --git a/assets/reload-CuiHr-za.js b/assets/reload-CuiHr-za.js new file mode 100644 index 00000000..c0e39a1d --- /dev/null +++ b/assets/reload-CuiHr-za.js @@ -0,0 +1 @@ +import{d as o,h as t,o as n,i as r,j as a}from"./index-B4fCF_Xu.js";const p=o({__name:"reload",setup(s){const e=a();return t(()=>{e.go(-1)}),(c,u)=>(n(),r("div"))}});export{p as default}; diff --git a/assets/reload-CuiHr-za.js.br b/assets/reload-CuiHr-za.js.br new file mode 100644 index 00000000..7384a6fa Binary files /dev/null and b/assets/reload-CuiHr-za.js.br differ diff --git a/assets/reload-CuiHr-za.js.gz b/assets/reload-CuiHr-za.js.gz new file mode 100644 index 00000000..db4605ac Binary files /dev/null and b/assets/reload-CuiHr-za.js.gz differ diff --git a/assets/schedule-DIRA3reu.js b/assets/schedule-DIRA3reu.js new file mode 100644 index 00000000..71df0644 --- /dev/null +++ b/assets/schedule-DIRA3reu.js @@ -0,0 +1 @@ +import{_ as S}from"./index-g5ePWcIs.js";import{d as D,r as p,l as L,o as e,c as y,w as f,a as t,i as o,m as h,u as d,F as m,C as N,D as V,t as v,e as k,b as z,q as F}from"./index-B4fCF_Xu.js";const $=c=>(N("data-v-2bc9fa6c"),c=c(),V(),c),q={class:"absolute left-0 top-0 h-full w-full of-auto bg-white"},A=$(()=>t("th",null,[t("span",{class:"col"},"时段"),t("span",{class:"row"},"日期")],-1)),E={key:0,class:"flex flex-col items-center gap-2"},P=D({__name:"schedule",setup(c){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"]),b=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"]),l=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 i(a,r){return l.value.findIndex(s=>s.row===a&&s.col===r)}function w(a,r){l.value.push({row:a,col:r,content:"某某"})}function C(a){l.value.splice(a,1)}return(a,r)=>{const s=L("van-button"),g=S;return e(),y(g,{navbar:"","navbar-start-side":"back"},{default:f(()=>[t("div",q,[t("table",null,[t("thead",null,[t("tr",null,[A,(e(!0),o(m,null,h(d(b),(n,_)=>(e(),o("th",{key:_},v(n),1))),128))])]),t("tbody",null,[(e(!0),o(m,null,h(d(x),(n,_)=>(e(),o("tr",{key:_},[t("td",null,v(n),1),(e(!0),o(m,null,h(d(b),(u,I)=>(e(),o("td",{key:I},[i(n,u)>=0?(e(),o("div",E,[k(v(d(l)[i(n,u)].content)+" ",1),z(s,{type:"danger",size:"mini",onClick:B=>C(i(n,u))},{default:f(()=>[k(" 取消预约 ")]),_:2},1032,["onClick"])])):(e(),y(s,{key:1,type:"primary",size:"mini",onClick:B=>w(n,u)},{default:f(()=>[k(" 预约 ")]),_:2},1032,["onClick"]))]))),128))]))),128))])])])]),_:1})}}}),G=F(P,[["__scopeId","data-v-2bc9fa6c"]]);export{G as default}; diff --git a/assets/schedule-DIRA3reu.js.br b/assets/schedule-DIRA3reu.js.br new file mode 100644 index 00000000..c11759a2 Binary files /dev/null and b/assets/schedule-DIRA3reu.js.br differ diff --git a/assets/schedule-DIRA3reu.js.gz b/assets/schedule-DIRA3reu.js.gz new file mode 100644 index 00000000..e9063e36 Binary files /dev/null and b/assets/schedule-DIRA3reu.js.gz differ diff --git a/assets/schedule-KNKxvh1h.css b/assets/schedule-KNKxvh1h.css new file mode 100644 index 00000000..fae548ce --- /dev/null +++ b/assets/schedule-KNKxvh1h.css @@ -0,0 +1 @@ +table[data-v-2bc9fa6c]{border-collapse:collapse}table th[data-v-2bc9fa6c],table td[data-v-2bc9fa6c]{padding:min(2.667vw,16px);text-align:center;border-right:min(.267vw,1.6px) solid #eee;border-bottom:min(.267vw,1.6px) solid #eee}table th[data-v-2bc9fa6c]{position:sticky;top:0;z-index:1;min-width:min(32vw,192px);background-color:#eee}table th[data-v-2bc9fa6c]:first-child{position:sticky;left:0;z-index:2;min-width:min(26.667vw,160px);background:#eee url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCUiIHkyPSIxMDAlIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=) no-repeat 100% center}table th:first-child .col[data-v-2bc9fa6c]{position:absolute;top:min(1.067vw,6.4px);right:min(1.067vw,6.4px)}table th:first-child .row[data-v-2bc9fa6c]{position:absolute;bottom:min(1.067vw,6.4px);left:min(1.067vw,6.4px)}table td[data-v-2bc9fa6c]{font-size:min(3.2vw,19.2px)}table td[data-v-2bc9fa6c]:first-child{position:sticky;left:0;z-index:1;background-color:#fff}table td[data-v-2bc9fa6c]:last-child{border-right:none}table tr:last-child td[data-v-2bc9fa6c]{border-bottom:none} diff --git a/assets/schedule-KNKxvh1h.css.br b/assets/schedule-KNKxvh1h.css.br new file mode 100644 index 00000000..139e5b07 Binary files /dev/null and b/assets/schedule-KNKxvh1h.css.br differ diff --git a/assets/schedule-KNKxvh1h.css.gz b/assets/schedule-KNKxvh1h.css.gz new file mode 100644 index 00000000..ac531e95 Binary files /dev/null and b/assets/schedule-KNKxvh1h.css.gz differ diff --git a/assets/scroll-BlGcgvyM.js b/assets/scroll-BlGcgvyM.js new file mode 100644 index 00000000..06a7c70b --- /dev/null +++ b/assets/scroll-BlGcgvyM.js @@ -0,0 +1 @@ +import{_ as c}from"./index-g5ePWcIs.js";import{d as _,l as i,o,c as d,w as a,b as u,e as p,a as e,i as m,m as v,F as f,t as b}from"./index-B4fCF_Xu.js";const k={class:"flex flex-col gap-4 p-4"},x=e("div",null,"随意滚动当前页面到任意位置并点击右上角的「下一页」按钮,再次返回页面时会定位在离开时的位置。",-1),g=e("div",null,"注意:这个特性需要当前页面设置页面缓存,当前页面是否被缓存直接影响滚动位置是否会被记录。例如当前页面,只有在进入下一页时才会被缓存,返回上一页则不会。",-1),y=_({name:"FeatureStandardScroll",__name:"scroll",setup(h){return(s,n)=>{const r=i("van-button"),l=c;return o(),d(l,{navbar:"","navbar-start-side":"back","saved-position":""},{"navbar-end":a(()=>[u(r,{size:"small",onClick:n[0]||(n[0]=t=>s.$router.push("/feature/function/scroll2"))},{default:a(()=>[p(" 下一页 ")]),_:1})]),default:a(()=>[e("div",k,[x,g,(o(),m(f,null,v(50,t=>e("div",{key:t,class:"text-center"},b(t),1)),64))])]),_:1})}}});export{y as default}; diff --git a/assets/scroll-BlGcgvyM.js.br b/assets/scroll-BlGcgvyM.js.br new file mode 100644 index 00000000..6221c1d4 Binary files /dev/null and b/assets/scroll-BlGcgvyM.js.br differ diff --git a/assets/scroll-BlGcgvyM.js.gz b/assets/scroll-BlGcgvyM.js.gz new file mode 100644 index 00000000..15846548 Binary files /dev/null and b/assets/scroll-BlGcgvyM.js.gz differ diff --git a/assets/scroll2--egNRTcH.js b/assets/scroll2--egNRTcH.js new file mode 100644 index 00000000..9a7b63b1 --- /dev/null +++ b/assets/scroll2--egNRTcH.js @@ -0,0 +1 @@ +import{_ as c}from"./index-g5ePWcIs.js";import{q as r,l as _,o as l,c as d,w as o,a as t,b as i,e as p}from"./index-B4fCF_Xu.js";const u={},f={class:"flex flex-col gap-4 p-4"},m=t("div",null,"现在你可以返回上一页查看效果。",-1);function v(a,e){const n=_("van-button"),s=c;return l(),d(s,{navbar:"","navbar-start-side":"back"},{default:o(()=>[t("div",f,[m,i(n,{onClick:e[0]||(e[0]=b=>a.$router.back())},{default:o(()=>[p(" 返回 ")]),_:1})])]),_:1})}const g=r(u,[["render",v]]);export{g as default}; diff --git a/assets/scroll2--egNRTcH.js.br b/assets/scroll2--egNRTcH.js.br new file mode 100644 index 00000000..f6f86c65 Binary files /dev/null and b/assets/scroll2--egNRTcH.js.br differ diff --git a/assets/scroll2--egNRTcH.js.gz b/assets/scroll2--egNRTcH.js.gz new file mode 100644 index 00000000..faebdefd Binary files /dev/null and b/assets/scroll2--egNRTcH.js.gz differ diff --git a/assets/sparkline-demo-Db5NT6B3.css b/assets/sparkline-demo-Db5NT6B3.css new file mode 100644 index 00000000..6142f361 --- /dev/null +++ b/assets/sparkline-demo-Db5NT6B3.css @@ -0,0 +1 @@ +.sparkline[data-v-54449392]{position:relative}.sparkline[data-v-54449392] .sparkline--cursor{stroke:var(--614d65b6)}.sparkline[data-v-54449392] .sparkline--spot{fill:var(--4d3a90f9);stroke:var(--4d3a90f9)}.sparkline .tooltip[data-v-54449392]{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:#000000b3} diff --git a/assets/sparkline-demo-Db5NT6B3.css.br b/assets/sparkline-demo-Db5NT6B3.css.br new file mode 100644 index 00000000..4e75e526 --- /dev/null +++ b/assets/sparkline-demo-Db5NT6B3.css.br @@ -0,0 +1 @@ + dh^}%]Rº /^R[(x:$(L(zETOYkIv& Vj{.rc@Ƽ3&BoOG3&H&86ÉsA~}xRS'G2(EX~EAJ&e4WF$W \ No newline at end of file diff --git a/assets/sparkline-demo-Db5NT6B3.css.gz b/assets/sparkline-demo-Db5NT6B3.css.gz new file mode 100644 index 00000000..25b6d581 Binary files /dev/null and b/assets/sparkline-demo-Db5NT6B3.css.gz differ diff --git a/assets/sparkline-demo-maNuZwMh.js b/assets/sparkline-demo-maNuZwMh.js new file mode 100644 index 00000000..1c66f33e --- /dev/null +++ b/assets/sparkline-demo-maNuZwMh.js @@ -0,0 +1 @@ +import{_ as H}from"./index-g5ePWcIs.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{d as B,r as C,h as G,o as y,i as E,s as J,v as K,u as i,x as Q,t as T,n as U,y as tt,q as et,c as ot,w as P,b as _}from"./index-B4fCF_Xu.js";function W(t,e,o,a){return Number.parseFloat((e-a*e/t+o).toFixed(2))}function at(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function lt(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 st(t,e,o){if(at(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,M=o.cursorWidth||2,g=Number.parseFloat(t.attributes["stroke-width"].value),R=o.fetch||lt,b=e.map(s=>R(s)),V=Number.parseFloat(t.attributes.width.value)-u*2,w=Number.parseFloat(t.attributes.height.value),N=w-g*2-u,D=Math.max(...b),c=-1e3,F=b.length-1,I=V/F,h=[],X=W(D,N,g+f,b[0]);let $=`M${u} ${X}`;b.forEach((s,d)=>{const r=d*I+u,p=W(D,N,g+f,s);h.push(Object.assign({},e[d],{index:d,x:r,y:p})),$+=` L ${r} ${p}`});const Y=k("path",{class:"sparkline--line",d:$,fill:"none"}),q=`${$} V ${w} L ${u} ${w} Z`,O=k("path",{class:"sparkline--fill",d:q,stroke:"none"});if(t.appendChild(O),t.appendChild(Y),!n)return;const m=k("line",{class:"sparkline--cursor",x1:c,x2:c,y1:0,y2:w,"stroke-width":M}),x=k("circle",{class:"sparkline--spot",cx:c,cy:c,r:f});t.appendChild(m),t.appendChild(x);const S=k("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(S),S.addEventListener("mouseout",s=>{m.setAttribute("x1",c.toString()),m.setAttribute("x2",c.toString()),x.setAttribute("cx",c.toString()),l&&l(s)}),S.addEventListener("mousemove",s=>{const d=s.offsetX;let r=h.find(z=>z.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 A=v.x,j=v.y;x.setAttribute("cx",A),x.setAttribute("cy",j),m.setAttribute("x1",A),m.setAttribute("x2",A),a&&a(s,v)})}const nt={class:"sparkline"},rt=["width","height","stroke-width","stroke","fill"],it=B({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){tt(l=>({"614d65b6":l.cursorColor,"4d3a90f9":l.spotColor}));const e=t,o=C(),a=C({show:!1,content:"",top:0,left:0});return G(()=>{st(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)=>(y(),E("div",nt,[(y(),E("svg",{ref_key:"sparklineRef",ref:o,width:l.width,height:l.height,"stroke-width":l.strokeWidth,stroke:l.strokeColor,fill:l.fillColor},null,8,rt)),l.tooltip?J((y(),E("span",{key:0,class:"tooltip",style:Q([`left: ${i(a).left}px`,`top: ${i(a).top}px`])},T(i(a).content),5)),[[K,i(a).show]]):U("",!0)]))}}),ut=et(it,[["__scopeId","data-v-54449392"]]),dt=B({__name:"sparkline-demo",setup(t){const e=C([1,5,2,4,8,3,7]),o=C([{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=ut,f=Z,u=H;return y(),ot(u,{navbar:"","navbar-start-side":"back"},{default:P(()=>[_(f,null,{default:P(()=>[_(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{dt as default}; diff --git a/assets/sparkline-demo-maNuZwMh.js.br b/assets/sparkline-demo-maNuZwMh.js.br new file mode 100644 index 00000000..7910964f Binary files /dev/null and b/assets/sparkline-demo-maNuZwMh.js.br differ diff --git a/assets/sparkline-demo-maNuZwMh.js.gz b/assets/sparkline-demo-maNuZwMh.js.gz new file mode 100644 index 00000000..fbf50497 Binary files /dev/null and b/assets/sparkline-demo-maNuZwMh.js.gz differ diff --git a/assets/swiper-CSwQl3sK.js b/assets/swiper-CSwQl3sK.js new file mode 100644 index 00000000..bf4ae0ef --- /dev/null +++ b/assets/swiper-CSwQl3sK.js @@ -0,0 +1 @@ +import{_ as et}from"./index-g5ePWcIs.js";import{_ as tt}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{r as H,a9 as ke,aa as Ge,a6 as it,B as st,h as Ne,ab as $e,ac as W,ad as nt,z as at,d as rt,l as Ie,o as lt,c as ot,w as I,a as ae,b as _,e as A,u as z,H as dt,_ as ut,C as ct,D as ft,q as pt}from"./index-B4fCF_Xu.js";function _e(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]:_e(e[i])&&_e(t[i])&&Object.keys(e[i]).length>0&&Pe(t[i],e[i])})}const Re={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,Re),t}const mt={document:Re,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,mt),t}function Q(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function gt(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function fe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function pe(){return Date.now()}function ht(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 vt(t,e){e===void 0&&(e="x");const i=j();let s,n,a;const l=ht(t);return i.WebKitCSSMatrix?(n=l.transform||l.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix(n==="none"?"":n)):(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=a.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=a.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 wt(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(a)<0);for(let a=0,l=n.length;aa?"next":"prev",d=(v,m)=>f==="next"&&v>=m||f==="prev"&&v<=m,c=()=>{o=new Date().getTime(),l===null&&(l=o);const v=Math.max(Math.min((o-l)/r,1),0),m=.5-Math.cos(v*Math.PI)/2;let g=a+m*(i-a);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(c)};c()}function Y(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}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 St(t){const e=j(),i=X(),s=t.getBoundingClientRect(),n=i.body,a=t.clientTop||n.clientTop||0,l=t.clientLeft||n.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:s.top+o-a,left:s.left+r-l}}function bt(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 yt(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 re(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 $(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 a=Y(t.el,`.${s[n]}`)[0];a||(a=ne("div",s[n]),a.className=s[n],t.el.append(a)),i[n]=a,e[n]=a}}),i}function xt(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 a(g){let w;return g&&typeof g=="string"&&e.isElement&&(w=e.el.querySelector(g),w)?w:(g&&(typeof g=="string"&&(w=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&w&&w.length>1&&e.el.querySelectorAll(g).length===1?w=e.el.querySelector(g):w&&w.length===1&&(w=w[0])),g&&!w?g:w)}function l(g,w){const C=e.params.navigation;g=$(g),g.forEach(u=>{u&&(u.classList[w?"add":"remove"](...C.disabledClass.split(" ")),u.tagName==="BUTTON"&&(u.disabled=w),e.params.watchOverflow&&e.enabled&&u.classList[e.isLocked?"add":"remove"](C.lockClass))})}function o(){const{nextEl:g,prevEl:w}=e.navigation;if(e.params.loop){l(w,!1),l(g,!1);return}l(w,e.isBeginning&&!e.params.rewind),l(g,e.isEnd&&!e.params.rewind)}function r(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function f(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 w=a(g.nextEl),C=a(g.prevEl);Object.assign(e.navigation,{nextEl:w,prevEl:C}),w=$(w),C=$(C);const u=(p,h)=>{p&&p.addEventListener("click",h==="next"?f:r),!e.enabled&&p&&p.classList.add(...g.lockClass.split(" "))};w.forEach(p=>u(p,"next")),C.forEach(p=>u(p,"prev"))}function c(){let{nextEl:g,prevEl:w}=e.navigation;g=$(g),w=$(w);const C=(u,p)=>{u.removeEventListener("click",p==="next"?f:r),u.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(u=>C(u,"next")),w.forEach(u=>C(u,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?m():(d(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{c()}),s("enable disable",()=>{let{nextEl:g,prevEl:w}=e.navigation;if(g=$(g),w=$(w),e.enabled){o();return}[...g,...w].filter(C=>!!C).forEach(C=>C.classList.add(e.params.navigation.lockClass))}),s("click",(g,w)=>{let{nextEl:C,prevEl:u}=e.navigation;C=$(C),u=$(u);const p=w.target;let h=u.includes(p)||C.includes(p);if(e.isElement&&!h){const y=w.path||w.composedPath&&w.composedPath();y&&(h=y.find(P=>C.includes(P)||u.includes(P)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===p||e.pagination.el.contains(p)))return;let y;C.length?y=C[0].classList.contains(e.params.navigation.hiddenClass):u.length&&(y=u[0].classList.contains(e.params.navigation.hiddenClass)),n(y===!0?"navigationShow":"navigationHide"),[...C,...u].filter(P=>!!P).forEach(P=>P.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(" ")),c()};Object.assign(e.navigation,{enable:v,disable:m,update:o,init:d,destroy:c})}function K(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Tt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a="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:u=>u,formatFractionTotal:u=>u,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let l,o=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function f(u,p){const{bulletActiveClass:h}=e.params.pagination;u&&(u=u[`${p==="prev"?"previous":"next"}ElementSibling`],u&&(u.classList.add(`${h}-${p}`),u=u[`${p==="prev"?"previous":"next"}ElementSibling`],u&&u.classList.add(`${h}-${p}-${p}`)))}function d(u){const p=u.target.closest(K(e.params.pagination.bulletClass));if(!p)return;u.preventDefault();const h=re(p)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function c(){const u=e.rtl,p=e.params.pagination;if(r())return;let h=e.pagination.el;h=$(h);let y,P;const N=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,V=e.params.loop?Math.ceil(N/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(y=e.snapIndex,P=e.previousSnapIndex):(P=e.previousIndex||0,y=e.activeIndex||0),p.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let E,T,D;if(p.dynamicBullets&&(l=Te(O[0],e.isHorizontal()?"width":"height"),h.forEach(b=>{b.style[e.isHorizontal()?"width":"height"]=`${l*(p.dynamicMainBullets+4)}px`}),p.dynamicMainBullets>1&&P!==void 0&&(o+=y-(P||0),o>p.dynamicMainBullets-1?o=p.dynamicMainBullets-1:o<0&&(o=0)),E=Math.max(y-o,0),T=E+(Math.min(O.length,p.dynamicMainBullets)-1),D=(T+E)/2),O.forEach(b=>{const x=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(M=>`${p.bulletActiveClass}${M}`)].map(M=>typeof M=="string"&&M.includes(" ")?M.split(" "):M).flat();b.classList.remove(...x)}),h.length>1)O.forEach(b=>{const x=re(b);x===y?b.classList.add(...p.bulletActiveClass.split(" ")):e.isElement&&b.setAttribute("part","bullet"),p.dynamicBullets&&(x>=E&&x<=T&&b.classList.add(...`${p.bulletActiveClass}-main`.split(" ")),x===E&&f(b,"prev"),x===T&&f(b,"next"))});else{const b=O[y];if(b&&b.classList.add(...p.bulletActiveClass.split(" ")),e.isElement&&O.forEach((x,M)=>{x.setAttribute("part",M===y?"bullet-active":"bullet")}),p.dynamicBullets){const x=O[E],M=O[T];for(let k=E;k<=T;k+=1)O[k]&&O[k].classList.add(...`${p.bulletActiveClass}-main`.split(" "));f(x,"prev"),f(M,"next")}}if(p.dynamicBullets){const b=Math.min(O.length,p.dynamicMainBullets+4),x=(l*b-l)/2-D*l,M=u?"right":"left";O.forEach(k=>{k.style[e.isHorizontal()?M:"top"]=`${x}px`})}}h.forEach((O,E)=>{if(p.type==="fraction"&&(O.querySelectorAll(K(p.currentClass)).forEach(T=>{T.textContent=p.formatFractionCurrent(y+1)}),O.querySelectorAll(K(p.totalClass)).forEach(T=>{T.textContent=p.formatFractionTotal(V)})),p.type==="progressbar"){let T;p.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(y+1)/V;let b=1,x=1;T==="horizontal"?b=D:x=D,O.querySelectorAll(K(p.progressbarFillClass)).forEach(M=>{M.style.transform=`translate3d(0,0,0) scaleX(${b}) scaleY(${x})`,M.style.transitionDuration=`${e.params.speed}ms`})}p.type==="custom"&&p.renderCustom?(O.innerHTML=p.renderCustom(e,y+1,V),E===0&&n("paginationRender",O)):(E===0&&n("paginationRender",O),n("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](p.lockClass)})}function v(){const u=e.params.pagination;if(r())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 h=e.pagination.el;h=$(h);let y="";if(u.type==="bullets"){let P=e.params.loop?Math.ceil(p/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>p&&(P=p);for(let N=0;N`}u.type==="fraction"&&(u.renderFraction?y=u.renderFraction.call(e,u.currentClass,u.totalClass):y=` / `),u.type==="progressbar"&&(u.renderProgressbar?y=u.renderProgressbar.call(e,u.progressbarFillClass):y=``),e.pagination.bullets=[],h.forEach(P=>{u.type!=="custom"&&(P.innerHTML=y||""),u.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(K(u.bulletClass)))}),u.type!=="custom"&&n("paginationRender",h[0])}function m(){e.params.pagination=Me(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const u=e.params.pagination;if(!u.el)return;let p;typeof u.el=="string"&&e.isElement&&(p=e.el.querySelector(u.el)),!p&&typeof u.el=="string"&&(p=[...document.querySelectorAll(u.el)]),p||(p=u.el),!(!p||p.length===0)&&(e.params.uniqueNavElements&&typeof u.el=="string"&&Array.isArray(p)&&p.length>1&&(p=[...e.el.querySelectorAll(u.el)],p.length>1&&(p=p.filter(h=>Fe(h,".swiper")[0]===e.el)[0])),Array.isArray(p)&&p.length===1&&(p=p[0]),Object.assign(e.pagination,{el:p}),p=$(p),p.forEach(h=>{u.type==="bullets"&&u.clickable&&h.classList.add(...(u.clickableClass||"").split(" ")),h.classList.add(u.modifierClass+u.type),h.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.type==="bullets"&&u.dynamicBullets&&(h.classList.add(`${u.modifierClass}${u.type}-dynamic`),o=0,u.dynamicMainBullets<1&&(u.dynamicMainBullets=1)),u.type==="progressbar"&&u.progressbarOpposite&&h.classList.add(u.progressbarOppositeClass),u.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(u.lockClass)}))}function g(){const u=e.params.pagination;if(r())return;let p=e.pagination.el;p&&(p=$(p),p.forEach(h=>{h.classList.remove(u.hiddenClass),h.classList.remove(u.modifierClass+u.type),h.classList.remove(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.clickable&&(h.classList.remove(...(u.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...u.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const u=e.params.pagination;let{el:p}=e.pagination;p=$(p),p.forEach(h=>{h.classList.remove(u.horizontalClass,u.verticalClass),h.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?C():(m(),v(),c())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&c()}),s("snapIndexChange",()=>{c()}),s("snapGridLengthChange",()=>{v(),c()}),s("destroy",()=>{g()}),s("enable disable",()=>{let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{c()}),s("click",(u,p)=>{const h=p.target,y=$(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const P=y[0].classList.contains(e.params.pagination.hiddenClass);n(P===!0?"paginationShow":"paginationHide"),y.forEach(N=>N.classList.toggle(e.params.pagination.hiddenClass))}});const w=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList.remove(e.params.pagination.paginationDisabledClass))),m(),v(),c()},C=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList.add(e.params.pagination.paginationDisabledClass))),g()};Object.assign(e.pagination,{enable:w,disable:C,render:v,update:c,init:m,destroy:g})}function Et(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a=X();let l=!1,o=null,r=null,f,d,c,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:b,rtlTranslate:x}=e,{dragEl:M,el:k}=b,R=e.params.scrollbar,S=e.params.loop?e.progressLoop:e.progress;let L=d,G=(c-d)*S;x?(G=-G,G>0?(L=d-G,G=0):-G+d>c&&(L=c+G)):G<0?(L=d+G,G=0):G+d>c&&(L=c-G),e.isHorizontal()?(M.style.transform=`translate3d(${G}px, 0, 0)`,M.style.width=`${L}px`):(M.style.transform=`translate3d(0px, ${G}px, 0)`,M.style.height=`${L}px`),R.hide&&(clearTimeout(o),k.style.opacity=1,o=setTimeout(()=>{k.style.opacity=0,k.style.transitionDuration="400ms"},1e3))}function g(b){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${b}ms`)}function w(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:b}=e,{dragEl:x,el:M}=b;x.style.width="",x.style.height="",c=e.isHorizontal()?M.offsetWidth:M.offsetHeight,v=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=c*v:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?x.style.width=`${d}px`:x.style.height=`${d}px`,v>=1?M.style.display="none":M.style.display="",e.params.scrollbar.hide&&(M.style.opacity=0),e.params.watchOverflow&&e.enabled&&b.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function C(b){return e.isHorizontal()?b.clientX:b.clientY}function u(b){const{scrollbar:x,rtlTranslate:M}=e,{el:k}=x;let R;R=(C(b)-St(k)[e.isHorizontal()?"left":"top"]-(f!==null?f:d/2))/(c-d),R=Math.max(Math.min(R,1),0),M&&(R=1-R);const S=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*R;e.updateProgress(S),e.setTranslate(S),e.updateActiveIndex(),e.updateSlidesClasses()}function p(b){const x=e.params.scrollbar,{scrollbar:M,wrapperEl:k}=e,{el:R,dragEl:S}=M;l=!0,f=b.target===S?C(b)-b.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,b.preventDefault(),b.stopPropagation(),k.style.transitionDuration="100ms",S.style.transitionDuration="100ms",u(b),clearTimeout(r),R.style.transitionDuration="0ms",x.hide&&(R.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",b)}function h(b){const{scrollbar:x,wrapperEl:M}=e,{el:k,dragEl:R}=x;l&&(b.preventDefault&&b.cancelable?b.preventDefault():b.returnValue=!1,u(b),M.style.transitionDuration="0ms",k.style.transitionDuration="0ms",R.style.transitionDuration="0ms",n("scrollbarDragMove",b))}function y(b){const x=e.params.scrollbar,{scrollbar:M,wrapperEl:k}=e,{el:R}=M;l&&(l=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",k.style.transitionDuration=""),x.hide&&(clearTimeout(r),r=fe(()=>{R.style.opacity=0,R.style.transitionDuration="400ms"},1e3)),n("scrollbarDragEnd",b),x.snapOnRelease&&e.slideToClosest())}function P(b){const{scrollbar:x,params:M}=e,k=x.el;if(!k)return;const R=k,S=M.passiveListeners?{passive:!1,capture:!1}:!1,L=M.passiveListeners?{passive:!0,capture:!1}:!1;if(!R)return;const G=b==="on"?"addEventListener":"removeEventListener";R[G]("pointerdown",p,S),a[G]("pointermove",h,S),a[G]("pointerup",y,L)}function N(){!e.params.scrollbar.el||!e.scrollbar.el||P("on")}function V(){!e.params.scrollbar.el||!e.scrollbar.el||P("off")}function O(){const{scrollbar:b,el:x}=e;e.params.scrollbar=Me(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const M=e.params.scrollbar;if(!M.el)return;let k;if(typeof M.el=="string"&&e.isElement&&(k=e.el.querySelector(M.el)),!k&&typeof M.el=="string"){if(k=a.querySelectorAll(M.el),!k.length)return}else k||(k=M.el);e.params.uniqueNavElements&&typeof M.el=="string"&&k.length>1&&x.querySelectorAll(M.el).length===1&&(k=x.querySelector(M.el)),k.length>0&&(k=k[0]),k.classList.add(e.isHorizontal()?M.horizontalClass:M.verticalClass);let R;k&&(R=k.querySelector(K(e.params.scrollbar.dragClass)),R||(R=ne("div",e.params.scrollbar.dragClass),k.append(R))),Object.assign(b,{el:k,dragEl:R}),M.draggable&&N(),k&&k.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}function E(){const b=e.params.scrollbar,x=e.scrollbar.el;x&&x.classList.remove(...Q(e.isHorizontal()?b.horizontalClass:b.verticalClass)),V()}s("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const b=e.params.scrollbar;let{el:x}=e.scrollbar;x=$(x),x.forEach(M=>{M.classList.remove(b.horizontalClass,b.verticalClass),M.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),s("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),w(),m())}),s("update resize observerUpdate lock unlock changeDirection",()=>{w()}),s("setTranslate",()=>{m()}),s("setTransition",(b,x)=>{g(x)}),s("enable disable",()=>{const{el:b}=e.scrollbar;b&&b.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}),s("destroy",()=>{E()});const T=()=>{e.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),O(),w(),m()},D=()=>{e.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),E()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:w,setTranslate:m,init:O,destroy:E})}function Ct(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,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let n=null,a,l,o=new Date().getTime();function r(S){const L=n;L.length!==0&&(L.innerHTML="",L.innerHTML=S)}function f(S){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(S).replace(/x/g,L)}function d(S){S=$(S),S.forEach(L=>{L.setAttribute("tabIndex","0")})}function c(S){S=$(S),S.forEach(L=>{L.setAttribute("tabIndex","-1")})}function v(S,L){S=$(S),S.forEach(G=>{G.setAttribute("role",L)})}function m(S,L){S=$(S),S.forEach(G=>{G.setAttribute("aria-roledescription",L)})}function g(S,L){S=$(S),S.forEach(G=>{G.setAttribute("aria-controls",L)})}function w(S,L){S=$(S),S.forEach(G=>{G.setAttribute("aria-label",L)})}function C(S,L){S=$(S),S.forEach(G=>{G.setAttribute("id",L)})}function u(S,L){S=$(S),S.forEach(G=>{G.setAttribute("aria-live",L)})}function p(S){S=$(S),S.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function h(S){S=$(S),S.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function y(S){if(S.keyCode!==13&&S.keyCode!==32)return;const L=e.params.a11y,G=S.target;if(!(e.pagination&&e.pagination.el&&(G===e.pagination.el||e.pagination.el.contains(S.target))&&!S.target.matches(K(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const F=$(e.navigation.prevEl);$(e.navigation.nextEl).includes(G)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(L.lastSlideMessage):r(L.nextSlideMessage)),F.includes(G)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(L.firstSlideMessage):r(L.prevSlideMessage))}e.pagination&&G.matches(K(e.params.pagination.bulletClass))&&G.click()}}function P(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:S,prevEl:L}=e.navigation;L&&(e.isBeginning?(p(L),c(L)):(h(L),d(L))),S&&(e.isEnd?(p(S),c(S)):(h(S),d(S)))}function N(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function V(){return N()&&e.params.pagination.clickable}function O(){const S=e.params.a11y;N()&&e.pagination.bullets.forEach(L=>{e.params.pagination.clickable&&(d(L),e.params.pagination.renderBullet||(v(L,"button"),w(L,S.paginationBulletMessage.replace(/\{\{index\}\}/,re(L)+1)))),L.matches(K(e.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const E=(S,L,G)=>{d(S),S.tagName!=="BUTTON"&&(v(S,"button"),S.addEventListener("keydown",y)),w(S,G),g(S,L)},T=S=>{l&&l!==S.target&&!l.contains(S.target)&&(a=!0),e.a11y.clicked=!0},D=()=>{a=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},b=S=>{o=new Date().getTime()},x=S=>{if(e.a11y.clicked||new Date().getTime()-o<100)return;const L=S.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!L||!e.slides.includes(L))return;l=L;const G=e.slides.indexOf(L)===e.activeIndex,F=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(L);G||F||S.sourceCapabilities&&S.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{a||(e.params.loop?e.slideToLoop(parseInt(L.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(L),0),a=!1)}))},M=()=>{const S=e.params.a11y;S.itemRoleDescriptionMessage&&m(e.slides,S.itemRoleDescriptionMessage),S.slideRole&&v(e.slides,S.slideRole);const L=e.slides.length;S.slideLabelMessage&&e.slides.forEach((G,F)=>{const Z=e.params.loop?parseInt(G.getAttribute("data-swiper-slide-index"),10):F,J=S.slideLabelMessage.replace(/\{\{index\}\}/,Z+1).replace(/\{\{slidesLength\}\}/,L);w(G,J)})},k=()=>{const S=e.params.a11y;e.el.append(n);const L=e.el;S.containerRoleDescriptionMessage&&m(L,S.containerRoleDescriptionMessage),S.containerMessage&&w(L,S.containerMessage);const G=e.wrapperEl,F=S.id||G.getAttribute("id")||`swiper-wrapper-${f(16)}`,Z=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";C(G,F),u(G,Z),M();let{nextEl:J,prevEl:le}=e.navigation?e.navigation:{};J=$(J),le=$(le),J&&J.forEach(oe=>E(oe,F,S.nextSlideMessage)),le&&le.forEach(oe=>E(oe,F,S.prevSlideMessage)),V()&&$(e.pagination.el).forEach(Qe=>{Qe.addEventListener("keydown",y)}),X().addEventListener("visibilitychange",b),e.el.addEventListener("focus",x,!0),e.el.addEventListener("focus",x,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function R(){n&&n.remove();let{nextEl:S,prevEl:L}=e.navigation?e.navigation:{};S=$(S),L=$(L),S&&S.forEach(F=>F.removeEventListener("keydown",y)),L&&L.forEach(F=>F.removeEventListener("keydown",y)),V()&&$(e.pagination.el).forEach(Z=>{Z.removeEventListener("keydown",y)}),X().removeEventListener("visibilitychange",b),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",x,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!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&&k()}),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&M()}),s("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&P()}),s("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),s("destroy",()=>{e.params.a11y.enabled&&R()})}let ge;function Pt(){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=Pt()),ge}let he;function Mt(t){let{userAgent:e}=t===void 0?{}:t;const i=He(),s=j(),n=s.navigator.platform,a=e||s.navigator.userAgent,l={ios:!1,android:!1},o=s.screen.width,r=s.screen.height,f=a.match(/(Android);?[\s\/]+([\d.]+)?/);let d=a.match(/(iPad).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),v=!d&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=n==="Win32";let g=n==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&i.touch&&w.indexOf(`${o}x${r}`)>=0&&(d=a.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),f&&!m&&(l.os="android",l.android=!0),(d||v||c)&&(l.os="ios",l.ios=!0),l}function je(t){return t===void 0&&(t={}),he||(he=Mt(t)),he}let ve;function Lt(){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[r,f]=o.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&f<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),a=s(),l=a||n&&e.ios;return{isSafari:i||a,needPerspectiveFix:i,need3dFix:l,isWebView:n}}function It(){return ve||(ve=Lt()),ve}function _t(t){let{swiper:e,on:i,emit:s}=t;const n=j();let a=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(c=>{l=n.requestAnimationFrame(()=>{const{width:v,height:m}=e;let g=v,w=m;c.forEach(C=>{let{contentBoxSize:u,contentRect:p,target:h}=C;h&&h!==e.el||(g=p?p.width:(u[0]||u).inlineSize,w=p?p.height:(u[0]||u).blockSize)}),(g!==v||w!==m)&&o()})}),a.observe(e.el))},f=()=>{l&&n.cancelAnimationFrame(l),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){r();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",d)}),i("destroy",()=>{f(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",d)})}function Ot(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a=[],l=j(),o=function(d,c){c===void 0&&(c={});const v=l.MutationObserver||l.WebkitMutationObserver,m=new v(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const w=function(){n("observerUpdate",g[0])};l.requestAnimationFrame?l.requestAnimationFrame(w):l.setTimeout(w,0)});m.observe(d,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fe(e.hostEl);for(let c=0;c{a.forEach(d=>{d.disconnect()}),a.splice(0,a.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",r),s("destroy",f)}var zt={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(a=>{s.eventsListeners[a]||(s.eventsListeners[a]=[]),s.eventsListeners[a][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 a=arguments.length,l=new Array(a),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,a)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(a,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,a=new Array(n),l=0;l{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(f=>{f.apply(s,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(f=>{f.apply(s,i)})}),t}};function At(){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 Bt(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:a,rtlTranslate:l,wrongRTL:o}=t,r=t.virtual&&i.virtual.enabled,f=r?t.virtual.slides.length:t.slides.length,d=Y(n,`.${t.params.slideClass}, swiper-slide`),c=r?t.virtual.slides.length:d.length;let v=[];const m=[],g=[];let w=i.slidesOffsetBefore;typeof w=="function"&&(w=i.slidesOffsetBefore.call(t));let C=i.slidesOffsetAfter;typeof C=="function"&&(C=i.slidesOffsetAfter.call(t));const u=t.snapGrid.length,p=t.slidesGrid.length;let h=i.spaceBetween,y=-w,P=0,N=0;if(typeof a>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*a:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(ue(s,"--swiper-centered-offset-before",""),ue(s,"--swiper-centered-offset-after",""));const V=i.grid&&i.grid.rows>1&&t.grid;V?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let O;const E=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T1&&v.push(t.virtualSize-a)}if(r&&i.loop){const T=g[0]+h;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),b=T*i.slidesPerGroup;for(let x=0;x!i.cssMode||i.loop?!0:b!==d.length-1).forEach(D=>{D.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;g.forEach(b=>{T+=b+(h||0)}),T-=h;const D=T-a;v=v.map(b=>b<=0?-w:b>D?D+C:b)}if(i.centerInsufficientSlides){let T=0;g.forEach(b=>{T+=b+(h||0)}),T-=h;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D{v[M]=x-b}),m.forEach((x,M)=>{m[M]=x+b})}}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 T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(b=>b+T),t.slidesGrid=t.slidesGrid.map(b=>b+D)}if(c!==f&&t.emit("slidesLengthChange"),v.length!==u&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==p&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);c<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function Dt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,a;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(a=0;ae.slides.length&&!s)break;i.push(l(o))}else i.push(l(e.activeIndex));for(a=0;an?o:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function kt(){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:a}=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 r=0;r=0&&m<=e.size-e.slidesSizesGrid[r],C=m>=0&&m1&&g<=e.size||m<=0&&g>=e.size;C&&(e.visibleSlides.push(f),e.visibleSlidesIndexes.push(r)),Oe(f,C,i.slideVisibleClass),Oe(f,w,i.slideFullyVisibleClass),f.progress=n?-c:c,f.originalProgress=n?-v:v}}function Nt(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:a,isEnd:l,progressLoop:o}=e;const r=a,f=l;if(s===0)n=0,a=!0,l=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,c=Math.abs(t-e.maxTranslate())<1;a=d||n<=0,l=c||n>=1,d&&(n=0),c&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),c=e.getSlideIndexByData(e.slides.length-1),v=e.slidesGrid[d],m=e.slidesGrid[c],g=e.slidesGrid[e.slidesGrid.length-1],w=Math.abs(t);w>=v?o=(w-v)/g:o=(w+g-m)/g,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:a,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!r&&e.emit("reachBeginning toEdge"),l&&!f&&e.emit("reachEnd toEdge"),(r&&!a||f&&!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 $t(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,a=t.virtual&&i.virtual.enabled,l=t.grid&&i.grid&&i.grid.rows>1,o=c=>Y(s,`.${i.slideClass}${c}, swiper-slide${c}`)[0];let r,f,d;if(a)if(i.loop){let c=n-t.virtual.slidesBefore;c<0&&(c=t.virtual.slides.length+c),c>=t.virtual.slides.length&&(c-=t.virtual.slides.length),r=o(`[data-swiper-slide-index="${c}"]`)}else r=o(`[data-swiper-slide-index="${n}"]`);else l?(r=e.filter(c=>c.column===n)[0],d=e.filter(c=>c.column===n+1)[0],f=e.filter(c=>c.column===n-1)[0]):r=e[n];r&&(l||(d=yt(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),f=bt(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!f===0&&(f=e[e.length-1]))),e.forEach(c=>{we(c,c===r,i.slideActiveClass),we(c,c===d,i.slideNextClass),we(c,c===f,i.slidePrevClass)}),t.emitSlidesClasses()}const ce=(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((r,f)=>l+s+f)),t.slides.forEach((r,f)=>{o.includes(r.column)&&Se(t,f)});return}const a=n+s-1;if(t.params.rewind||t.params.loop)for(let l=n-e;l<=a+e;l+=1){const o=(l%i+i)%i;(oa)&&Se(t,o)}else for(let l=Math.max(n-e,0);l<=Math.min(a+e,i-1);l+=1)l!==n&&(l>a||l=e[a]&&s=e[a]&&s=e[a]&&(n=a);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Vt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:l,snapIndex:o}=e;let r=t,f;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 r>"u"&&(r=Rt(e)),s.indexOf(i)>=0)f=s.indexOf(i);else{const m=Math.min(n.slidesPerGroupSkip,r);f=m+Math.floor((r-m)/n.slidesPerGroup)}if(f>=s.length&&(f=s.length-1),r===a&&!e.params.loop){f!==o&&(e.snapIndex=f,e.emit("snapIndexChange"));return}if(r===a&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const c=e.grid&&n.grid&&n.grid.rows>1;let v;if(e.virtual&&n.virtual.enabled&&n.loop)v=d(r);else if(c){const m=e.slides.filter(w=>w.column===r)[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[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?v=parseInt(m,10):v=r}else v=r;Object.assign(e,{previousSnapIndex:o,snapIndex:f,previousRealIndex:l,realIndex:v,previousIndex:a,activeIndex:r}),e.initialized&&Ee(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==v&&e.emit("realIndexChange"),e.emit("slideChange"))}function Ft(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 a=!1,l;if(n){for(let o=0;or?d=r:s&&tl?o="next":a"u"&&(e=a.params.speed);const w=Math.min(a.params.slidesPerGroupSkip,l);let C=w+Math.floor((l-w)/a.params.slidesPerGroup);C>=r.length&&(C=r.length-1);const u=-r[C];if(o.normalizeSlideIndex)for(let h=0;h=P&&y=P&&y=P&&(l=h)}if(a.initialized&&l!==c&&(!a.allowSlideNext&&(v?u>a.translate&&u>a.minTranslate():ua.translate&&u>a.maxTranslate()&&(c||0)!==l))return!1;l!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(u);let p;if(l>c?p="next":l0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[h?"scrollLeft":"scrollTop"]=y})):m[h?"scrollLeft":"scrollTop"]=y,P&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return Ve({swiper:a,targetPosition:y,side:h?"left":"top"}),!0;m.scrollTo({[h?"left":"top"]:y,behavior:"smooth"})}return!0}return a.setTransition(e),a.setTranslate(u),a.updateActiveIndex(l),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,s),a.transitionStart(i,p),e===0?a.transitionEnd(i,p):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(y){!a||a.destroyed||y.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,p))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function ti(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 a=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(a){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 r=a?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:f}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),f&&d%2===0&&(d=d+1));let c=r-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 ii(t,e,i){e===void 0&&(e=!0);const s=this,{enabled:n,params:a,animating:l}=s;if(!n||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const r=s.activeIndex{s.slideTo(s.activeIndex+r,t,e,i)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+r,t,e,i)}function si(t,e,i){e===void 0&&(e=!0);const s=this,{params:n,snapGrid:a,slidesGrid:l,rtlTranslate:o,enabled:r,animating:f}=s;if(!r||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(f&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const c=o?s.translate:-s.translate;function v(u){return u<0?-Math.floor(Math.abs(u)):Math.floor(u)}const m=v(c),g=a.map(u=>v(u));let w=a[g.indexOf(m)-1];if(typeof w>"u"&&n.cssMode){let u;a.forEach((p,h)=>{m>=p&&(u=h)}),typeof u<"u"&&(w=a[u>0?u-1:u])}let C=0;if(typeof w<"u"&&(C=l.indexOf(w),C<0&&(C=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(C=C-s.slidesPerViewDynamic("previous",!0)+1,C=Math.max(C,0))),n.rewind&&s.isBeginning){const u=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(u,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(C,t,e,i)}),!0;return s.slideTo(C,t,e,i)}function ni(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 ai(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 a=n.activeIndex;const l=Math.min(n.params.slidesPerGroupSkip,a),o=l+Math.floor((a-l)/n.params.slidesPerGroup),r=n.rtlTranslate?n.translate:-n.translate;if(r>=n.snapGrid[o]){const f=n.snapGrid[o],d=n.snapGrid[o+1];r-f>(d-f)*s&&(a+=n.params.slidesPerGroup)}else{const f=n.snapGrid[o-1],d=n.snapGrid[o];r-f<=(d-f)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,t,e,i)}function ri(){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,a;const l=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;a=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="${a}"]`)[0]),fe(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(Y(i,`${l}[data-swiper-slide-index="${a}"]`)[0]),fe(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var li={slideTo:ei,slideToLoop:ti,slideNext:ii,slidePrev:si,slideReset:ni,slideToClosest:ai,slideToClickedSlide:ri};function oi(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((c,v)=>{c.setAttribute("data-swiper-slide-index",v)})},a=e.grid&&i.grid&&i.grid.rows>1,l=i.slidesPerGroup*(a?i.grid.rows:1),o=e.slides.length%l!==0,r=a&&e.slides.length%i.grid.rows!==0,f=d=>{for(let c=0;c1;f.length"u"?a=r.getSlideIndex(f.filter(x=>x.classList.contains(m.slideActiveClass))[0]):P=a;const N=s==="next"||!s,V=s==="prev"||!s;let O=0,E=0;const T=p?Math.ceil(f.length/m.grid.rows):f.length,b=(p?f[a].column:a)+(g&&typeof n>"u"?-w/2+.5:0);if(b=0;R-=1)f[R].column===k&&h.push(R)}else h.push(T-M-1)}}else if(b+w>T-u){E=Math.max(b-(T-u*2),C);for(let x=0;x{k.column===M&&y.push(R)}):y.push(M)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),V&&h.forEach(x=>{f[x].swiperLoopMoveDOM=!0,v.prepend(f[x]),f[x].swiperLoopMoveDOM=!1}),N&&y.forEach(x=>{f[x].swiperLoopMoveDOM=!0,v.append(f[x]),f[x].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():p&&(h.length>0&&V||y.length>0&&N)&&r.slides.forEach((x,M)=>{r.grid.updateSlide(M,x,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&V){if(typeof e>"u"){const x=r.slidesGrid[P],k=r.slidesGrid[P+O]-x;o?r.setTranslate(r.translate-k):(r.slideTo(P+Math.ceil(O),0,!1,!0),n&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-k,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-k))}else if(n){const x=p?h.length/m.grid.rows:h.length;r.slideTo(r.activeIndex+x,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(y.length>0&&N)if(typeof e>"u"){const x=r.slidesGrid[P],k=r.slidesGrid[P-E]-x;o?r.setTranslate(r.translate-k):(r.slideTo(P-E,0,!1,!0),n&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-k,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-k))}else{const x=p?y.length/m.grid.rows:y.length;r.slideTo(r.activeIndex-x,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=c,r.controller&&r.controller.control&&!l){const x={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:a,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...x,slideTo:M.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...x,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function ui(){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 a=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[a]=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 ci={loopCreate:oi,loopFix:di,loopDestroy:ui};function fi(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 pi(){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 mi={setGrabCursor:fi,unsetGrabCursor:pi};function gi(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 ze(t,e,i){const s=j(),{params:n}=t,a=n.edgeSwipeDetection,l=n.edgeSwipeThreshold;return a&&(i<=l||i>=s.innerWidth-l)?a==="prevent"?(e.preventDefault(),!0):!1:!0}function hi(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"){ze(e,s,s.targetTouches[0].pageX);return}const{params:a,touches:l,enabled:o}=e;if(!o||!a.simulateTouch&&s.pointerType==="mouse"||e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let r=s.target;if(a.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const f=!!a.noSwipingClass&&a.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;f&&s.target&&s.target.shadowRoot&&d&&(r=d[0]);const c=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,v=!!(s.target&&s.target.shadowRoot);if(a.noSwiping&&(v?gi(c,r):r.closest(c))){e.allowClick=!0;return}if(a.swipeHandler&&!r.closest(a.swipeHandler))return;l.currentX=s.pageX,l.currentY=s.pageY;const m=l.currentX,g=l.currentY;if(!ze(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,a.threshold>0&&(n.allowThresholdMove=!1);let w=!0;r.matches(n.focusableElements)&&(w=!1,r.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const C=w&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||C)&&!r.isContentEditable&&s.preventDefault(),a.freeMode&&a.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function vi(t){const e=X(),i=this,s=i.touchEventsData,{params:n,touches:a,rtlTranslate:l,enabled:o}=i;if(!o||!n.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(s.touchId!==null||r.pointerId!==s.pointerId))return;let f;if(r.type==="touchmove"){if(f=[...r.changedTouches].filter(N=>N.identifier===s.touchId)[0],!f||f.identifier!==s.touchId)return}else f=r;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=f.pageX,c=f.pageY;if(r.preventedByNestedSwiper){a.startX=d,a.startY=c;return}if(!i.allowTouchMove){r.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(a,{startX:d,startY:c,currentX:d,currentY:c}),s.touchStartTime=pe());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(ca.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(da.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",r),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=d,a.currentY=c;const v=a.currentX-a.startX,m=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(v**2+m**2)"u"){let N;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:v*v+m*m>=25&&(N=Math.atan2(Math.abs(m),Math.abs(v))*180/Math.PI,s.isScrolling=i.isHorizontal()?N>n.touchAngle:90-N>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",r),typeof s.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(s.startMoving=!0),s.isScrolling||r.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&r.cancelable&&r.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&r.stopPropagation();let g=i.isHorizontal()?v:m,w=i.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;n.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),w=Math.abs(w)*(l?1:-1)),a.diff=g,g*=n.touchRatio,l&&(g=-g,w=-w);const C=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=w>0?"prev":"next";const u=i.params.loop&&!n.cssMode,p=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(u&&p&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const N=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(N)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let h;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&C!==i.touchesDirection&&u&&p&&Math.abs(g)>=1){Object.assign(a,{startX:d,startY:c,currentX:d,currentY:c,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",r),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let y=!0,P=n.resistanceRatio;if(n.touchReleaseOnEdges&&(P=0),g>0?(u&&p&&!h&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(y=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+g)**P))):g<0&&(u&&p&&!h&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]: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,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.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 wi(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(P=>P.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:r,slidesGrid:f,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 c=pe(),v=c-i.touchStartTime;if(e.allowClick){const P=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(P&&P[0]||s.target,P),e.emit("tap click",s),v<300&&c-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=pe(),fe(()=>{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=r?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 w=0,C=e.slidesSizesGrid[0];for(let P=0;P=f[P]&&m=f[P])&&(w=P,C=f[f.length-1]-f[f.length-2])}let u=null,p=null;l.rewind&&(e.isBeginning?p=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(u=0));const h=(m-f[w])/C,y=wl.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?u:w+y):e.slideTo(w)),e.swipeDirection==="prev"&&(h>1-l.longSwipesRatio?e.slideTo(w+y):p!==null&&h<0&&Math.abs(h)>l.longSwipesRatio?e.slideTo(p):e.slideTo(w))}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(w+y):e.slideTo(w):(e.swipeDirection==="next"&&e.slideTo(u!==null?u:w+y),e.swipeDirection==="prev"&&e.slideTo(p!==null?p:w))}}function Ae(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=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&&a!==t.snapGrid&&t.checkOverflow()}function Si(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function bi(){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 a=t.maxTranslate()-t.minTranslate();a===0?n=0:n=(t.translate-t.minTranslate())/a,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function yi(t){const e=this;ce(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function xi(){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:a,device:l}=t,o=!!s.nested,r=e==="on"?"addEventListener":"removeEventListener",f=e;!n||typeof n=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[r]("touchstart",t.onTouchStart,{passive:!1}),n[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[r]("click",t.onClick,!0),s.cssMode&&a[r]("scroll",t.onScroll),s.updateOnWindowResize?t[f](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ae,!0):t[f]("observerUpdate",Ae,!0),n[r]("load",t.onLoad,{capture:!0}))};function Ti(){const t=this,{params:e}=t;t.onTouchStart=hi.bind(t),t.onTouchMove=vi.bind(t),t.onTouchEnd=wi.bind(t),t.onDocumentTouchStart=xi.bind(t),e.cssMode&&(t.onScroll=bi.bind(t)),t.onClick=Si.bind(t),t.onLoad=yi.bind(t),We(t,"on")}function Ei(){We(this,"off")}var Ci={attachEvents:Ti,detachEvents:Ei};const Be=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Pi(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,a=s.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const l=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!l||t.currentBreakpoint===l)return;const r=(l in a?a[l]:void 0)||t.originalParams,f=Be(t,s),d=Be(t,r),c=t.params.grabCursor,v=r.grabCursor,m=s.enabled;f&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),c&&!v?t.unsetGrabCursor():!c&&v&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const y=s[h]&&s[h].enabled,P=r[h]&&r[h].enabled;y&&!P&&t[h].disable(),!y&&P&&t[h].enable()});const g=r.direction&&r.direction!==s.direction,w=s.loop&&(r.slidesPerView!==s.slidesPerView||g),C=s.loop;g&&i&&t.changeDirection(),q(t.params,r);const u=t.params.enabled,p=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!u?t.disable():!m&&u&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",r),i&&(w?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!C&&p?(t.loopCreate(e),t.updateSlides()):C&&!p&&t.loopDestroy()),t.emit("breakpoint",r)}function Mi(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=j(),a=e==="window"?n.innerHeight:i.clientHeight,l=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const r=parseFloat(o.substr(1));return{value:a*r,point:o}}return{value:o,point:o}});l.sort((o,r)=>parseInt(o.value,10)-parseInt(r.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 _i(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:a}=t,l=Ii(["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:a.android},{ios:a.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 Oi(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var zi={addClasses:_i,removeClasses:Oi};function Ai(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,a=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>a}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 Bi={checkOverflow:Ai},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 Di(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],a=s[n];if(typeof a!="object"||a===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 a)){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:zt,update:Ht,translate:Ut,transition:Qt,slide:li,loop:ci,grabCursor:mi,events:Ci,breakpoints:Li,checkOverflow:Bi,classes:zi},ye={};let Le=class U{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),a=0;a1){const d=[];return l.querySelectorAll(i.el).forEach(c=>{const v=q({},i,{el:c});d.push(new U(v))}),d}const o=this;o.__swiper__=!0,o.support=He(),o.device=je({userAgent:i.userAgent}),o.browser=It(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const r={};o.modules.forEach(d=>{d({params:i,swiper:o,extendParams:Di(i,r),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const f=q({},Ce,r);return o.params=q({},f,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`),a=re(n[0]);return re(e)-a}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:a,slidesGrid:l,slidesSizesGrid:o,size:r,activeIndex:f}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let c=a[f]?Math.ceil(a[f].swiperSlideSize):0,v;for(let m=f+1;mr&&(v=!0));for(let m=f-1;m>=0;m-=1)a[m]&&!v&&(c+=a[m].swiperSlideSize,d+=1,c>r&&(v=!0))}else if(e==="current")for(let c=f+1;c=0;c-=1)l[f]-l[c]{l.complete&&ce(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 a;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;a=e.slideTo(l.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||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(a=>{e==="vertical"?a.style.width="":a.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(a=>{a.complete?ce(i,a):a.addEventListener("load",l=>{ce(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:a,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(),a&&typeof a!="string"&&a.removeAttribute("style"),l&&l.removeAttribute("style"),o&&o.length&&o.forEach(r=>{r.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(r=>{s.off(r)}),e!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),gt(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([_t,Ot]);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 ki(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:a,prevEl:l,scrollbarEl:o,paginationEl:r}=t;const f=n.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:d,pagination:c,navigation:v,scrollbar:m,virtual:g,thumbs:w}=e;let C,u,p,h,y,P,N,V;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(C=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(u=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||r)&&(d.pagination||d.pagination===!1)&&c&&!c.el&&(p=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(h=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||l)&&(s.navigation.nextEl||a)&&(d.navigation||d.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(y=!0);const O=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),d[E].prevEl=void 0,d[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),d[E].el=void 0,e[E].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?P=!0:!d.loop&&s.loop?N=!0:V=!0),f.forEach(E=>{if(te(d[E])&&te(s[E]))Object.assign(d[E],s[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in s[E]&&!s[E].enabled&&O(E);else{const T=s[E];(T===!0||T===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?T===!1&&O(E):d[E]=s[E]}}),f.includes("controller")&&!u&&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&&(V=!0),C&&w.init()&&w.update(!0),u&&(e.controller.control=d.controller.control),p&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),c.init(),c.render(),c.update()),h&&(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()),y&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),a.innerHTML=e.hostEl.constructor.nextButtonSvg,a.part.add("button-next"),e.el.appendChild(a)),(!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))),a&&(d.navigation.nextEl=a),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),(P||V)&&e.loopDestroy(),(N||V)&&e.loopCreate(),e.update()}function De(t,e){t===void 0&&(t={});const i={on:{}},s={},n={};se(i,Ce),i._emitClasses=!0,i.init=!1;const a={},l=Ye.map(r=>r.replace(/_/,"")),o=Object.assign({},t);return Object.keys(o).forEach(r=>{typeof t[r]>"u"||(l.indexOf(r)>=0?te(t[r])?(i[r]={},n[r]={},se(i[r],t[r]),se(n[r],t[r])):(i[r]=t[r],n[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:a[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:n,rest:a,events:s}}function Ni(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:a,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)&&a&&(o.params.pagination.el=a,o.originalParams.pagination.el=a),Ke(e)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(i)}function $i(t,e,i,s,n){const a=[];if(!e)return a;const l=r=>{a.indexOf(r)<0&&a.push(r)};if(i&&s){const r=s.map(n),f=i.map(n);r.join("")!==f.join("")&&l("children"),s.length!==i.length&&l("children")}return Ye.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(te(t[r])&&te(e[r])){const f=Object.keys(t[r]),d=Object.keys(e[r]);f.length!==d.length?l(r):(f.forEach(c=>{t[r][c]!==e[r][c]&&l(r)}),d.forEach(c=>{t[r][c]!==e[r][c]&&l(r)}))}else t[r]!==e[r]&&l(r)}),a}const Ri=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":[]},a=(l,o)=>{Array.isArray(l)&&l.forEach(r=>{const f=typeof r.type=="symbol";o==="default"&&(o="container-end"),f&&r.children?a(r.children,o):r.type&&(r.type.name==="SwiperSlide"||r.type.name==="AsyncComponentWrapper")||r.componentOptions&&r.componentOptions.tag==="SwiperSlide"?s.push(r):n[o]&&n[o].push(r)})};return Object.keys(t).forEach(l=>{if(typeof t[l]!="function")return;const o=t[l]();a(o,l)}),i.value=e.value,e.value=s,{slides:s,slots:n}}function Vi(t,e,i){if(!i)return null;const s=d=>{let c=d;return d<0?c=e.length+d:c>=e.length&&(c=c-e.length),c},n=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:a,to:l}=i,o=t.value.params.loop?-e.length:0,r=t.value.params.loop?e.length*2:e.length,f=[];for(let d=o;d=a&&d<=l&&f.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},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","breakpointsBase","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:a}=t,l=H("swiper"),o=H(null),r=H(!1),f=H(!1),d=H(null),c=H(null),v=H(null),m={value:[]},g={value:[]},w=H(null),C=H(null),u=H(null),p=H(null),{params:h,passedParams:y}=De(t);xe(i,m,g),v.value=y,g.value=m.value;const P=()=>{xe(i,m,g),r.value=!0};h.onAny=function(O){for(var E=arguments.length,T=new Array(E>1?E-1:0),D=1;D{o.value=E},renderExternalUpdate:!1};se(c.value.params.virtual,O),se(c.value.originalParams.virtual,O)}ke(()=>{!f.value&&c.value&&(c.value.emitSlidesClasses(),f.value=!0);const{passedParams:O}=De(t),E=$i(O,v.value,m.value,g.value,T=>T.props&&T.props.key);v.value=O,(E.length||r.value)&&c.value&&!c.value.destroyed&&Gi({swiper:c.value,slides:m.value,passedParams:O,changedParams:E,nextEl:w.value,prevEl:C.value,scrollbarEl:p.value,paginationEl:u.value}),r.value=!1}),Ge("swiper",c),it(o,()=>{st(()=>{Ri(c.value)})}),Ne(()=>{d.value&&(Ni({el:d.value,nextEl:w.value,prevEl:C.value,paginationEl:u.value,scrollbarEl:p.value,swiper:c.value},h),s("swiper",c.value))}),$e(()=>{c.value&&!c.value.destroyed&&c.value.destroy(!0,!1)});function V(O){return h.virtual?Vi(c,O,o.value):(O.forEach((E,T)=>{E.props||(E.props={}),E.props.swiperRef=c,E.props.swiperSlideIndex=T}),O)}return()=>{const{slides:O,slots:E}=xe(i,m,g);return W(n,{ref:d,class:Ze(l.value)},[E["container-start"],W(a,{class:ki(h.wrapperClass)},[E["wrapper-start"],V(O),E["wrapper-end"]]),Xe(t)&&[W("div",{ref:C,class:"swiper-button-prev"}),W("div",{ref:w,class:"swiper-button-next"})],Ke(t)&&W("div",{ref:p,class:"swiper-scrollbar"}),Ue(t)&&W("div",{ref:u,class:"swiper-pagination"}),E["container-end"]])}}},B={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,a=H(null),l=H("swiper-slide"),o=H(!1);function r(c,v,m){v===a.value&&(l.value=m)}Ne(()=>{!n||!n.value||(n.value.on("_slideClass",r),s=!0)}),nt(()=>{s||!n||!n.value||(n.value.on("_slideClass",r),s=!0)}),ke(()=>{!a.value||!n||!n.value||(typeof t.swiperSlideIndex<"u"&&(a.value.swiperSlideIndex=t.swiperSlideIndex),n.value.destroyed&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),$e(()=>{!n||!n.value||n.value.off("_slideClass",r)});const f=at(()=>({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}));Ge("swiperSlide",f);const d=()=>{o.value=!0};return()=>W(t.tag,{class:Ze(`${l.value}`),ref:a,"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(f.value),t.lazy&&!o.value&&W("div",{class:"swiper-lazy-preloader"})]):[i.default&&i.default(f.value),t.lazy&&!o.value&&W("div",{class:"swiper-lazy-preloader"})])}},Je=t=>(ct("data-v-0bf21bd7"),t=t(),ft(),t),Fi={class:"whitespace-break-spaces p-4 space-y-2"},Hi=Je(()=>ae("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),ji=Je(()=>ae("div",null,"安装命令:",-1)),qi={class:"space-x-2"},Wi=rt({__name:"swiper",setup(t){const e=H(!1),i=[xt,Tt,Et,Ct];return(s,n)=>{const a=ut,l=Ie("van-tag"),o=Ie("van-action-sheet"),r=tt,f=et;return lt(),ot(f,{navbar:"","navbar-start-side":"back"},{"navbar-end":I(()=>[ae("div",{class:"h-full flex-center px-1",onClick:n[0]||(n[0]=d=>e.value=!0)},[_(a,{name:"i-mdi:information",class:"text-4"})]),_(o,{show:z(e),"onUpdate:show":n[1]||(n[1]=d=>dt(e)?e.value=d:null),teleport:"body"},{default:I(()=>[ae("div",Fi,[Hi,ji,ae("div",qi,[_(l,{type:"primary",plain:""},{default:I(()=>[A(" pnpm add swiper ")]),_:1})])])]),_:1},8,["show"])]),default:I(()=>[_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",autoplay:""},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{clickable:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",navigation:""},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{dynamicBullets:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{type:"fraction"}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",scrollbar:{draggable:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1})]),_:1})}}}),Zi=pt(Wi,[["__scopeId","data-v-0bf21bd7"]]);export{Zi as default}; diff --git a/assets/swiper-CSwQl3sK.js.br b/assets/swiper-CSwQl3sK.js.br new file mode 100644 index 00000000..d4db35ed Binary files /dev/null and b/assets/swiper-CSwQl3sK.js.br differ diff --git a/assets/swiper-CSwQl3sK.js.gz b/assets/swiper-CSwQl3sK.js.gz new file mode 100644 index 00000000..a9b3127b Binary files /dev/null and b/assets/swiper-CSwQl3sK.js.gz differ diff --git a/assets/swiper-DONcVYaF.css b/assets/swiper-DONcVYaF.css new file mode 100644 index 00000000..b08aee56 --- /dev/null +++ b/assets/swiper-DONcVYaF.css @@ -0,0 +1 @@ +@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:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.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-0bf21bd7]{width:100%;height:min(80vw,480px)}.swiper .swiper-slide[data-v-0bf21bd7]{display:flex;align-items:center;justify-content:center;font-size:min(9.707vw,58.24px);font-weight:700;text-align:center;background-color:#fff} diff --git a/assets/swiper-DONcVYaF.css.br b/assets/swiper-DONcVYaF.css.br new file mode 100644 index 00000000..0b516e83 Binary files /dev/null and b/assets/swiper-DONcVYaF.css.br differ diff --git a/assets/swiper-DONcVYaF.css.gz b/assets/swiper-DONcVYaF.css.gz new file mode 100644 index 00000000..34261929 Binary files /dev/null and b/assets/swiper-DONcVYaF.css.gz differ diff --git a/assets/test-BdXkX4eU.js b/assets/test-BdXkX4eU.js new file mode 100644 index 00000000..316a967d --- /dev/null +++ b/assets/test-BdXkX4eU.js @@ -0,0 +1 @@ +import{_ as o}from"./index-g5ePWcIs.js";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{q as c,o as _,c as s,w as e,b as r,e as f}from"./index-B4fCF_Xu.js";const m={};function i(p,u){const t=n,a=o;return _(),s(a,{navbar:"","navbar-start-side":"back"},{default:e(()=>[r(t,null,{default:e(()=>[f(" 你能看到这个页面,说明你有访问权限。 ")]),_:1})]),_:1})}const b=c(m,[["render",i]]);export{b as default}; diff --git a/assets/test-BdXkX4eU.js.br b/assets/test-BdXkX4eU.js.br new file mode 100644 index 00000000..4035f7bb Binary files /dev/null and b/assets/test-BdXkX4eU.js.br differ diff --git a/assets/test-BdXkX4eU.js.gz b/assets/test-BdXkX4eU.js.gz new file mode 100644 index 00000000..3a3661a1 Binary files /dev/null and b/assets/test-BdXkX4eU.js.gz differ diff --git a/assets/title-DLLSA1W4.js b/assets/title-DLLSA1W4.js new file mode 100644 index 00000000..9006e0ef --- /dev/null +++ b/assets/title-DLLSA1W4.js @@ -0,0 +1 @@ +import{_ as m}from"./index-g5ePWcIs.js";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{A as p,I as d,j as C,d as g,l as T,o as h,c as k,w as n,b as u,e as i}from"./index-B4fCF_Xu.js";function P(){const s=d(),t=C(),e=p();function a(){t.push({name:"reload"})}function r(o){e.setCustomTitle(s.fullPath,o)}function c(){e.resetCustomTitle(s.fullPath)}return{reload:a,setCustomTitle:r,resetCustomTitle:c}}const V=g({__name:"title",setup(s){const t=P();function e(){t.setCustomTitle("测试标题")}function a(){t.resetCustomTitle()}return(r,c)=>{const o=T("VanButton"),l=f,_=m;return h(),k(_,{navbar:"","navbar-start-side":"back"},{default:n(()=>[u(l,null,{default:n(()=>[u(o,{onClick:e},{default:n(()=>[i(" 标题设置为「 测试标题 」 ")]),_:1}),u(o,{onClick:a},{default:n(()=>[i(" 标题重置 ")]),_:1})]),_:1})]),_:1})}}});export{V as default}; diff --git a/assets/title-DLLSA1W4.js.br b/assets/title-DLLSA1W4.js.br new file mode 100644 index 00000000..e0c8579c Binary files /dev/null and b/assets/title-DLLSA1W4.js.br differ diff --git a/assets/title-DLLSA1W4.js.gz b/assets/title-DLLSA1W4.js.gz new file mode 100644 index 00000000..bcd5e931 Binary files /dev/null and b/assets/title-DLLSA1W4.js.gz differ diff --git a/assets/title-no-center-CiXLMMyS.js b/assets/title-no-center-CiXLMMyS.js new file mode 100644 index 00000000..fca25a36 --- /dev/null +++ b/assets/title-no-center-CiXLMMyS.js @@ -0,0 +1 @@ +import{_ as s}from"./index-g5ePWcIs.js";import{q as c,l as r,o as _,c as l,w as t,a as f,b as p,e as i}from"./index-B4fCF_Xu.js";const u={},d={class:"flex flex-col gap-4 p-4"};function m(o,e){const n=r("van-button"),a=s;return _(),l(a,{"title-center":!1,navbar:""},{default:t(()=>[f("div",d,[p(n,{onClick:e[0]||(e[0]=v=>o.$router.back())},{default:t(()=>[i(" 返回 ")]),_:1})])]),_:1})}const k=c(u,[["render",m]]);export{k as default}; diff --git a/assets/title-no-center-CiXLMMyS.js.br b/assets/title-no-center-CiXLMMyS.js.br new file mode 100644 index 00000000..0d3aad72 --- /dev/null +++ b/assets/title-no-center-CiXLMMyS.js.br @@ -0,0 +1,3 @@ +@26ݳL/+ONi1@Detey!^z} 46]BRE3$’gxdz9t{WqͿ6(IˤܙDGТ2 _Zyv~WggXjēJr"cn4b<3fm2)l1 +L*85z$& +\ˑ D\HP썝ogH I4c!+΅ZnN,l3`LioUF- &8ʇ;15[2'{let e=r.type==="up";return r.reverse&&(e=!e),e});return(e,p)=>{const _=y;return o(),l("div",{class:x(["flex items-center transition",`${f(a)?"c-green":"c-red"}`])},[e.prefix?(o(),l("span",$,c(e.prefix),1)):i("",!0),n("span",b,c(e.value),1),e.suffix?(o(),l("span",w,c(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(u,r){const a=B,e=C,p=d;return o(),h(p,{navbar:"","navbar-start-side":"back"},{default:s(()=>[t(a,null,{default:s(()=>[k(" 标记上升和下降趋势。通常用绿色代表“好”,红色代表“不好”,股票涨跌场景除外 ")]),_:1}),t(a,{title:"基础用法"},{default:s(()=>[n("p",null,[t(e,{value:"12.3"})]),n("p",null,[t(e,{value:"12.3",type:"down"})])]),_:1}),t(a,{title:"颜色反转"},{default:s(()=>[n("p",null,[t(e,{value:"12.3",reverse:""})]),n("p",null,[t(e,{value:"12.3",type:"down",reverse:""})])]),_:1}),t(a,{title:"前缀后缀"},{default:s(()=>[n("p",null,[t(e,{value:"12.3",prefix:"$"})]),n("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-Ce3JuaFI.js.br b/assets/trend-demo-Ce3JuaFI.js.br new file mode 100644 index 00000000..9ba9cb73 Binary files /dev/null and b/assets/trend-demo-Ce3JuaFI.js.br differ diff --git a/assets/trend-demo-Ce3JuaFI.js.gz b/assets/trend-demo-Ce3JuaFI.js.gz new file mode 100644 index 00000000..18783ecf Binary files /dev/null and b/assets/trend-demo-Ce3JuaFI.js.gz differ diff --git a/assets/unocss-CnYgWujU.js b/assets/unocss-CnYgWujU.js new file mode 100644 index 00000000..08213354 --- /dev/null +++ b/assets/unocss-CnYgWujU.js @@ -0,0 +1 @@ +import{_ as a}from"./index-g5ePWcIs.js";import{q as n,o,c,w as s,a as t}from"./index-B4fCF_Xu.js";const i={},r=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);function _(l,f){const e=a;return o(),c(e,{navbar:"","navbar-start-side":"back"},{default:s(()=>[r]),_:1})}const u=n(i,[["render",_]]);export{u as default}; diff --git a/assets/unocss-CnYgWujU.js.br b/assets/unocss-CnYgWujU.js.br new file mode 100644 index 00000000..d2673430 Binary files /dev/null and b/assets/unocss-CnYgWujU.js.br differ diff --git a/assets/unocss-CnYgWujU.js.gz b/assets/unocss-CnYgWujU.js.gz new file mode 100644 index 00000000..6aab3071 Binary files /dev/null and b/assets/unocss-CnYgWujU.js.gz differ diff --git a/assets/vchart-BoiZFfSn.js b/assets/vchart-BoiZFfSn.js new file mode 100644 index 00000000..e6835e9f --- /dev/null +++ b/assets/vchart-BoiZFfSn.js @@ -0,0 +1,64 @@ +var zF=Object.defineProperty;var HF=(s,t,e)=>t in s?zF(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var S=(s,t,e)=>(HF(s,typeof t!="symbol"?t+"":t,e),e);import{_ as jF}from"./index-g5ePWcIs.js";import{_ as VF}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{ae as RE,d as WF,r as Wh,h as GF,l as uA,o as NF,c as UF,w as Jr,a as mr,b as eo,e as $F,u as YF,H as XF,_ as KF}from"./index-B4fCF_Xu.js";const BE=s=>s;var $e;(function(s){s["desktop-browser"]="desktop-browser",s["mobile-browser"]="mobile-browser",s.node="node",s.worker="worker",s.miniApp="miniApp",s.wx="wx",s.tt="tt",s.harmony="harmony",s["desktop-miniApp"]="desktop-miniApp",s.lynx="lynx"})($e||($e={}));var Y;(function(s){s.cartesianAxis="cartesianAxis",s.cartesianBandAxis="cartesianAxis-band",s.cartesianLinearAxis="cartesianAxis-linear",s.cartesianTimeAxis="cartesianAxis-time",s.cartesianLogAxis="cartesianAxis-log",s.cartesianSymlogAxis="cartesianAxis-symlog",s.polarAxis="polarAxis",s.polarBandAxis="polarAxis-band",s.polarLinearAxis="polarAxis-linear",s.crosshair="crosshair",s.cartesianCrosshair="cartesianCrosshair",s.polarCrosshair="polarCrosshair",s.dataZoom="dataZoom",s.geoCoordinate="geoCoordinate",s.indicator="indicator",s.discreteLegend="discreteLegend",s.continuousLegend="continuousLegend",s.colorLegend="colorLegend",s.sizeLegend="sizeLegend",s.mapLabel="mapLabel",s.markLine="markLine",s.markArea="markArea",s.markPoint="markPoint",s.polarMarkLine="polarMarkLine",s.polarMarkArea="polarMarkArea",s.polarMarkPoint="polarMarkPoint",s.geoMarkPoint="geoMarkPoint",s.tooltip="tooltip",s.title="title",s.player="player",s.scrollBar="scrollBar",s.label="label",s.totalLabel="totalLabel",s.brush="brush",s.poptip="poptip",s.customMark="customMark"})(Y||(Y={}));var IE={exports:{}};(function(s){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function n(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 p=new n(d,c||l,u),g=e?e+h:h;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,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,p=c.length,g=new Array(p);uObject.prototype.toString.call(s)===`[object ${t}]`,ge=(s,t=!1)=>t?typeof s=="boolean":s===!0||s===!1||wh(s,"Boolean"),N=s=>typeof s=="function",P=s=>s==null,E=s=>s!=null,Et=s=>{const t=typeof s;return s!==null&&t==="object"||t==="function"},sy=s=>typeof s=="object"&&s!==null,Bs=function(s){if(!sy(s)||!wh(s,"Object"))return!1;if(Object.getPrototypeOf(s)===null)return!0;let t=s;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(s)===t},ke=s=>s===void 0,at=(s,t=!1)=>{const e=typeof s;return t?e==="string":e==="string"||wh(s,"String")},G=s=>Array.isArray?Array.isArray(s):wh(s,"Array"),cm=function(s){return s!==null&&typeof s!="function"&&Number.isFinite(s.length)},ZF=s=>wh(s,"Date"),nt=(s,t=!1)=>{const e=typeof s;return t?e==="number":e==="number"||wh(s,"Number")},JF=s=>typeof s=="string"&&!isNaN(Number(s))&&!isNaN(parseFloat(s)),W=s=>nt(s)&&Number.isFinite(s),LE=s=>new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(s),OE=s=>new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(s),QF=s=>({}).toString.call(s).replace(/^\[object /,"").replace(/]$/,""),t3=Object.prototype,e3=function(s){const t=s&&s.constructor;return s===(typeof t=="function"&&t.prototype||t3)},i3=Object.prototype.hasOwnProperty;function mt(s){if(P(s))return!0;if(cm(s))return!s.length;const t=QF(s);if(t==="Map"||t==="Set")return!s.size;if(e3(s))return!Object.keys(s).length;for(const e in s)if(i3.call(s,e))return!1;return!0}const Pt=(s,t,e)=>{const i=at(t)?t.split("."):t;for(let n=0;ns!=null&&n3.call(s,t);function pn(s){let t;if(!E(s)||typeof s!="object")return s;const e=G(s),i=s.length;t=e?new Array(i):typeof s=="object"?{}:ge(s)||nt(s)||at(s)?s:ZF(s)?new Date(+s):void 0;const n=e?void 0:Object.keys(Object(s));let r=-1;if(t)for(;++r<(n||s).length;){const a=n?n[r]:r,o=s[a];t[a]=pn(o)}return t}function DE(s,t,e=!1){if(t){if(s===t)return;if(E(t)&&typeof t=="object"){const i=Object(t),n=[];for(const o in i)n.push(o);let{length:r}=n,a=-1;for(;r--;){const o=n[++a];E(i[o])&&typeof i[o]=="object"?s3(s,t,o,e):FE(s,o,i[o])}}}}function s3(s,t,e,i=!1){const n=s[e],r=t[e];let a=t[e],o=!0;if(G(r)){if(i)a=[];else if(G(n))a=n;else if(cm(n)){a=new Array(n.length);let l=-1;const h=n.length;for(;++l{const n=s[i];let r=!1;t.forEach(a=>{(at(a)&&a===i||a instanceof RegExp&&i.match(a))&&(r=!0)}),r||(e[i]=n)}),e}function pA(s){return Object.prototype.toString.call(s)}function gA(s){return Object.keys(s)}function be(s,t,e){if(s===t)return!0;if(typeof s!=typeof t||s==null||t==null)return!1;if(Number.isNaN(s)&&Number.isNaN(t))return!0;if(pA(s)!==pA(t)||N(s)||typeof s!="object")return!1;if(G(s)){if(s.length!==t.length)return!1;for(let r=s.length-1;r>=0;r--)if(!be(s[r],t[r]))return!1;return!0}if(!Bs(s))return!1;const i=gA(s),n=gA(t);if(i.length!==n.length)return!1;i.sort(),n.sort();for(let r=i.length-1;r>=0;r--)if(i[r]!=n[r])return!1;for(let r=i.length-1;r>=0;r--){const a=i[r];if(!be(s[a],t[a]))return!1}return!0}function a3(s){if(!s)return[];if(Object.keys)return Object.keys(s);const t=[];for(const e in s)s.hasOwnProperty(e)&&t.push(e);return t}function o3(s,t,e){const i=a3(t);for(let n=0;n{var e;if(s.length===0)return;let i=s[0];for(let n=1;n0)&&(i=r)}return i},qe=(s,t)=>{var e;if(s.length===0)return;let i=s[0];for(let n=1;nt?1:s>=t?0:NaN}function Zs(s){return Number(s)}function h3(s,t,e=Zs){const i=s.length;if(!i)return;if(i<2)return e(s[0],0,s);const n=(i-1)*t,r=Math.floor(n),a=e(s[r],r,s);return a+(e(s[r+1],r+1,s)-a)*(n-r)}const d3=typeof console<"u";function np(s,t,e){const i=[t].concat([].slice.call(e));d3&&console[s].apply(console,i)}var Hn;(function(s){s[s.None=0]="None",s[s.Error=1]="Error",s[s.Warn=2]="Warn",s[s.Info=3]="Info",s[s.Debug=4]="Debug"})(Hn||(Hn={}));class Lt{static getInstance(t,e){return Lt._instance&&nt(t)?Lt._instance.level(t):Lt._instance||(Lt._instance=new Lt(t,e)),Lt._instance}static setInstance(t){return Lt._instance=t}static setInstanceLevel(t){Lt._instance?Lt._instance.level(t):Lt._instance=new Lt(t)}static clearInstance(){Lt._instance=null}constructor(t=Hn.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>=Hn.Info}canLogDebug(){return this._level>=Hn.Debug}canLogError(){return this._level>=Hn.Error}canLogWarn(){return this._level>=Hn.Warn}level(t){return arguments.length?(this._level=+t,this):this._level}error(...t){var e;return this._level>=Hn.Error&&(this._onErrorHandler.length?this.callErrorHandler(...t):np((e=this._method)!==null&&e!==void 0?e:"error","ERROR",t)),this}warn(...t){return this._level>=Hn.Warn&&np(this._method||"warn","WARN",t),this}info(...t){return this._level>=Hn.Info&&np(this._method||"log","INFO",t),this}debug(...t){return this._level>=Hn.Debug&&np(this._method||"log","DEBUG",t),this}}Lt._instance=null;function VE(s,t,e=0,i){for(P(i)&&(i=s.length);e>>1;jE(s[n],t)>0?i=n:e=n+1}return e}const c3=(s,t)=>{let e=s;return e=s.sort(jE),h3(e,.5)},u3=1e-10,p3=1e-10;function Qi(s,t,e=p3,i=u3){const n=i,r=e*Math.max(s,t);return Math.abs(s-t)<=Math.max(n,r)}function Ns(s,t,e,i){return s>t&&!Qi(s,t,e,i)}function vs(s,t,e,i){return s{let t=null,e=null;return(...i)=>(t&&i.every((n,r)=>n===t[r])||(t=i,e=s(...i)),e)},Ye=function(s,t,e){return se?e:s},ao=(s,t,e)=>{let[i,n]=s;n=e-t?[t,e]:(i=Math.min(Math.max(i,t),e-r),[i,i+r])};function Kx(s,t){let e;return s>t&&(e=s,s=t,t=e),i=>Math.max(s,Math.min(t,i))}let gg=!1;try{gg=typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"}catch{gg=!1}function or(s,t,e){let i,n,r,a,o,l,h=0,d=!1,c=!1,u=!0;const p=!t&&t!==0&≫if(typeof s!="function")throw new TypeError("Expected a function");function g(b){const x=i,A=n;return i=n=void 0,h=b,a=s.apply(A,x),a}function f(b,x){return p?(cancelAnimationFrame(o),requestAnimationFrame(b)):setTimeout(b,x)}function _(b){const x=b-l;return l===void 0||x>=t||x<0||c&&b-h>=r}function m(){const b=Date.now();if(_(b))return y(b);o=f(m,function(x){const A=x-h,T=t-(x-l);return c?Math.min(T,r-A):T}(b))}function y(b){return o=void 0,u&&i?g(b):(i=n=void 0,a)}function v(...b){const x=Date.now(),A=_(x);if(i=b,n=this,l=x,A){if(o===void 0)return function(T){return h=T,o=f(m,t),d?g(T):a}(l);if(c)return o=f(m,t),g(l)}return o===void 0&&(o=f(m,t)),a}return t=+t||0,Et(e)&&(d=!!e.leading,c="maxWait"in e,c&&(r=Math.max(W(e.maxWait)?e.maxWait:0,t)),u="trailing"in e?!!e.trailing:u),v.cancel=function(){o!==void 0&&function(b){if(p)return cancelAnimationFrame(b);clearTimeout(b)}(o),h=0,i=l=n=o=void 0},v.flush=function(){return o===void 0?a:y(Date.now())},v.pending=function(){return o!==void 0},v}gg=!1;function Ka(s,t,e){let i=!0,n=!0;if(typeof s!="function")throw new TypeError("Expected a function");return Et(e)&&(i="leading"in e?!!e.leading:i,n="trailing"in e?!!e.trailing:n),or(s,t,{leading:i,trailing:n,maxWait:t})}function yd(s,t){return e=>s*(1-e)+t*e}function g3(s,t){return function(e){return Math.round(s*(1-e)+t*e)}}function f3(s,t){const e=s.valueOf(),i=t.valueOf(),n=new Date;return r=>(n.setTime(e*(1-r)+i*r),n)}const ay=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,O0=new RegExp(ay.source,"g");function _3(s){return function(){return s}}function m3(s){return function(t){return s(t)+""}}function v3(s,t){let e,i,n,r=ay.lastIndex=O0.lastIndex=0,a=-1;const o=[],l=[];for(s+="",t+="";(e=ay.exec(s))&&(i=O0.exec(t));)(n=i.index)>r&&(n=t.slice(r,n),o[a]?o[a]+=n:o[++a]=n),(e=e[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:yd(e,i)})),r=O0.lastIndex;return r1?0:s<-1?ee:Math.acos(s)}function fA(s){return s>=1?ts:s<=-1?-ts:Math.asin(s)}function _A(s,t,e,i,n){let r,a;return typeof s=="number"&&typeof e=="number"&&(r=(1-n)*s+n*e),typeof t=="number"&&typeof i=="number"&&(a=(1-n)*t+n*i),{x:r,y:a}}function mA(s,t){return s[0]*t[1]-s[1]*t[0]}function b3(s,t){return Ut(s[0]-t[0])+Ut(s[1]-t[1])<1e-12}function GE(s,t=10){return Math.round(s*t)/t}function nh(s){const t=s.toString().split(/[eE]/),e=(t[0].split(".")[1]||"").length-(+t[1]||0);return e>0?e:0}function wc(s,t){return GE(s+t,10**Math.max(nh(s),nh(t)))}function oy(s,t){return GE(s-t,10**Math.max(nh(s),nh(t)))}class Oe{constructor(t=0,e=0,i,n){this.x=0,this.y=0,this.x=t,this.y=e,this.x1=i,this.y1=n}clone(){return new Oe(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 nt(t)?(this.x+=t,void(this.y+=t)):(this.x+=t.x,this.y+=t.y,this)}sub(t){return nt(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 Ce{static distancePP(t,e){return un(ul(t.x-e.x,2)+ul(t.y-e.y,2))}static distanceNN(t,e,i,n){return un(ul(t-i,2)+ul(e-n,2))}static distancePN(t,e,i){return un(ul(e-t.x,2)+ul(i-t.y,2))}static pointAtPP(t,e,i){return new Oe((e.x-t.x)*i+t.x,(e.y-t.y)*i+t.y)}}function ly(s,t,e){const{x1:i,y1:n,x2:r,y2:a}=t;return e.onlyTranslate()?(s!==t&&s.setValue(t.x1,t.y1,t.x2,t.y2),s.translate(e.e,e.f),t):(s.clear(),s.add(e.a*i+e.c*n+e.e,e.b*i+e.d*n+e.f),s.add(e.a*r+e.c*n+e.e,e.b*r+e.d*n+e.f),s.add(e.a*r+e.c*a+e.e,e.b*r+e.d*a+e.f),s.add(e.a*i+e.c*a+e.e,e.b*i+e.d*a+e.f),t)}class di{constructor(t){t?this.setValue(t.x1,t.y1,t.x2,t.y2):this.clear()}clone(){return new di(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,n=0){return this.x1=t,this.y1=e,this.x2=i,this.y2=n,this}set(t=0,e=0,i=0,n=0){return ithis.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this}expand(t=0){return G(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 n=this.rotatedPoints(t,e,i);return this.clear().add(n[0],n[1]).add(n[2],n[3]).add(n[4],n[5]).add(n[6],n[7])}scale(t=0,e=0,i=0,n=0){const r=this.scalePoints(t,e,i,n);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 ly(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:n,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*n-h*r+d,h*n+l*r+c,l*n-h*o+d,h*n+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,n){const{x1:r,y1:a,x2:o,y2:l}=this;return[t*r+(1-t)*i,e*a+(1-e)*n,t*o+(1-t)*i,e*l+(1-e)*n]}}class xe extends di{}function Qt(s){return s*(Math.PI/180)}function sh(s){return 180*s/Math.PI}const x3=(s=0)=>{if(s<0)for(;s<-li;)s+=li;else if(s>0)for(;s>li;)s-=li;return s},S3=x3;function gn(s,t,e){return{x:s.x+t*Math.cos(e),y:s.y+t*Math.sin(e)}}function fg(s,t){return Math.atan2(t.y-s.y,t.x-s.x)}class Ee{constructor(t=1,e=0,i=0,n=1,r=0,a=0){this.a=t,this.b=e,this.c=i,this.d=n,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,n,r,a){return!(this.e!==r||this.f!==a||this.a!==t||this.d!==n||this.b!==e||this.c!==i)}setValue(t,e,i,n,r,a){return this.a=t,this.b=e,this.c=i,this.d=n,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,n=this.d,r=this.e,a=this.f,o=new Ee,l=t*n-e*i;return o.a=n/l,o.b=-e/l,o.c=-i/l,o.d=t/l,o.e=(i*a-n*r)/l,o.f=-(t*a-e*r)/l,o}rotate(t){const e=Math.cos(t),i=Math.sin(t),n=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=n,this.b=r,this.c=a,this.d=o,this}rotateByCenter(t,e,i){const n=Math.cos(t),r=Math.sin(t),a=(1-n)*e+r*i,o=(1-n)*i-r*e,l=n*this.a-r*this.b,h=r*this.a+n*this.b,d=n*this.c-r*this.d,c=r*this.c+n*this.d,u=n*this.e-r*this.f+a,p=r*this.e+n*this.f+o;return this.a=l,this.b=h,this.c=d,this.d=c,this.e=u,this.f=p,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,n,r,a){return this.multiply(t,e,i,n,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:n,e:r,f:a}=this;return this.a=e,this.b=t,this.c=n,this.d=i,this.e=a,this.f=r,this}multiply(t,e,i,n,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,p=o*i+h*n,g=l*i+d*n,f=o*r+h*a+this.e,_=l*r+d*a+this.f;return this.a=c,this.b=u,this.c=p,this.d=g,this.e=f,this.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:n,c:r,d:a,e:o,f:l}=this,h=i*a-n*r,d=a/h,c=-n/h,u=-r/h,p=i/h,g=(r*l-a*o)/h,f=-(i*l-n*o)/h,{x:_,y:m}=t;e.x=_*d+m*u+g,e.y=_*c+m*p+f}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,n=this.d,r=t*n-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*n)/r,a.skewY=0}else if(i!==0||n!==0){const o=Math.sqrt(i*i+n*n);a.rotateDeg=Math.PI/2-(n>0?Math.acos(-i/o):-Math.acos(i/o)),a.scaleX=r/o,a.scaleY=o,a.skewX=0,a.skewY=(t*i+e*n)/r}return a.rotateDeg=sh(a.rotateDeg),a}}function A3(s,t,e,i,n,r,a,o){const l=t.a,h=t.b,d=t.c,c=t.d,u=t.e,p=t.f,g=se(a),f=qt(a);let _,m;o?(_=o[0],m=o[1]):(_=e,m=i);const y=_-e,v=m-i,b=l*g+d*f,x=h*g+c*f,A=d*g-l*f,T=c*g-h*f;s.a=n*b,s.b=n*x,s.c=r*A,s.d=r*T,s.e=u+l*_+d*m-b*y-A*v,s.f=p+h*_+c*m-x*y-T*v}class k3{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:n=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(cn;)h.timestamp.shift()}),a}addLimitedTimestamp(t,e,i){const{R_TIMESTAMP_MAX_SIZE:n=this.R_TIMESTAMP_MAX_SIZE}=i;t.timestamp.length>n&&t.timestamp.shift(),t.timestamp.push(e)}clearTimeStamp(t,e){const{L_TIME:i=this.L_TIME}=e,n=Date.now();t.forEach(r=>{for(;n-r.timestamp[0]>i;)r.timestamp.shift()})}clearItemTimestamp(t,e){const{L_TIME:i=this.L_TIME}=e,n=Date.now();for(;n-t.timestamp[0]>i;)t.timestamp.shift()}}function _g(s,t,e){t/=100,e/=100;const i=(1-Math.abs(2*e-1))*t,n=i*(1-Math.abs(s/60%2-1)),r=e-i/2;let a=0,o=0,l=0;return 0<=s&&s<60?(a=i,o=n,l=0):60<=s&&s<120?(a=n,o=i,l=0):120<=s&&s<180?(a=0,o=i,l=n):180<=s&&s<240?(a=0,o=n,l=i):240<=s&&s<300?(a=n,o=0,l=i):300<=s&&s<360&&(a=i,o=0,l=n),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 pm(s,t,e){s/=255,t/=255,e/=255;const i=Math.min(s,t,e),n=Math.max(s,t,e),r=n-i;let a=0,o=0,l=0;return a=r===0?0:n===s?(t-e)/r%6:n===t?(e-s)/r+2:(s-t)/r+4,a=Math.round(60*a),a<0&&(a+=360),l=(n+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 vA=/^#([0-9a-f]{3,8})$/,yA={transparent:4294967040},qp={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 sp(s){return((s=Math.max(0,Math.min(255,Math.round(s)||0)))<16?"0":"")+s.toString(16)}function D0(s){return nt(s)?new Pi(s>>16,s>>8&255,255&s,1):G(s)?new Pi(s[0],s[1],s[2]):new Pi(255,255,255)}function T3(s){return nt(s)?new Pi(s>>>24,s>>>16&255,s>>>8&255,255&s):G(s)?new Pi(s[0],s[1],s[2],s[3]):new Pi(255,255,255,1)}function F0(s){return s<.04045?.0773993808*s:Math.pow(.9478672986*s+.0521327014,2.4)}function z0(s){return s<.0031308?12.92*s:1.055*Math.pow(s,.41666)-.055}let cn=class oo{static Brighter(t,e=1){return e===1?t:new oo(t).brighter(e).toRGBA()}static SetOpacity(t,e=1){return e===1?t:new oo(t).setOpacity(e).toRGBA()}static getColorBrightness(t,e="hsl"){const i=t instanceof oo?t:new oo(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(E(yA[t]))return T3(yA[t]);if(E(qp[t]))return D0(qp[t]);const e=`${t}`.trim().toLowerCase(),i=vA.exec(e);if(i){const n=parseInt(i[1],16),r=i[1].length;return r===3?new Pi((n>>8&15)+((n>>8&15)<<4),(n>>4&15)+((n>>4&15)<<4),(15&n)+((15&n)<<4),1):r===6?D0(n):r===8?new Pi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):void 0}if(/^(rgb|RGB|rgba|RGBA)/.test(e)){const n=e.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,"").split(",");return new Pi(parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10),parseFloat(n[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(e)){const n=e.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,"").split(","),r=_g(parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10));return new Pi(r.r,r.g,r.b,parseFloat(n[3]))}}constructor(t){const e=oo.parseColorString(t);e?this.color=e:(console.warn(`Warn: 传入${t}无法解析为Color`),this.color=new Pi(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:n}=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(n*t))),this}add(t){const{r:e,g:i,b:n}=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,n+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:n}=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(n*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 n=this.color.opacity,r=pm(this.color.r,this.color.g,this.color.b),a=_g(P(t)?r.h:Ye(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 Pi(a.r,a.g,a.b,n),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=vA.exec(e),n=parseInt(i[1],16),r=i[1].length;return r===3?new Pi((n>>8&15)+((n>>8&15)<<4),(n>>4&15)+((n>>4&15)<<4),(15&n)+((15&n)<<4),1):r===6?D0(n):r===8?new Pi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):this}setColorName(t){const e=qp[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 oo(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=F0(t.color.r),this.color.g=F0(t.color.g),this.color.b=F0(t.color.b),this}copyLinearToSRGB(t){return this.color.r=z0(t.color.r),this.color.g=z0(t.color.g),this.color.b=z0(t.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}},Pi=class{constructor(t,e,i,n){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)),E(n)?this.opacity=isNaN(+n)?1:Math.max(0,Math.min(1,+n)):this.opacity=1}formatHex(){return`#${sp(this.r)+sp(this.g)+sp(this.b)+(this.opacity===1?"":sp(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:n}=pm(this.r,this.g,this.b);return`${t===1?"hsl(":"hsla("}${e},${i}%,${n}%${t===1?")":`,${t})`}`}toString(){return this.formatHex()}};function NE(s){let t="",e="",i="";const n=s[0]==="#"?1:0;for(let r=n;r{const c=Math.round(e*(1-d)+i*d),u=Math.round(n*(1-d)+r*d),p=Math.round(a*(1-d)+o*d);return new Pi(c,u,p,l*(1-d)+h*d)}}const C3=Object.freeze(Object.defineProperty({__proto__:null,Color:cn,DEFAULT_COLORS:qp,RGB:Pi,hexToRgb:NE,hslToRgb:_g,interpolateRgb:w3,rgbToHex:M3,rgbToHsl:pm},Symbol.toStringTag,{value:"Module"}));function H0(s,t,e){s[0]=t[0]-e[0],s[1]=t[1]-e[1]}let Xi,Ki,qi,Zi,Ss,As,ks,Ts;function UE(s,t,e,i){let n,r=s[0],a=t[0],o=e[0],l=i[0];return a=0&&o<=1&&[s[0]+n[0]*o,s[1]+n[1]*o]}function YE(s,t,e){return s===null?t:t===null?s:(Xi=s.x1,Ki=s.x2,qi=s.y1,Zi=s.y2,Ss=t.x1,As=t.x2,ks=t.y1,Ts=t.y2,Xi>=As||Ki<=Ss||qi>=Ts||Zi<=ks?{x1:0,y1:0,x2:0,y2:0}:{x1:Math.max(Xi,Ss),y1:Math.max(qi,ks),x2:Math.min(Ki,As),y2:Math.min(Zi,Ts)})}var Cl;(function(s){s[s.NONE=0]="NONE",s[s.BBOX1=1]="BBOX1",s[s.BBOX2=2]="BBOX2"})(Cl||(Cl={}));function P3(s,t,e){return s&&t?(Xi=s.x1,Ki=s.x2,qi=s.y1,Zi=s.y2,Ss=t.x1,As=t.x2,ks=t.y1,Ts=t.y2,Xi>Ss&&Kiks&&ZiXi&&Asqi&&TsKi&&([Xi,Ki]=[Ki,Xi]),qi>Zi&&([qi,Zi]=[Zi,qi]),Ss>As&&([Ss,As]=[As,Ss]),ks>Ts&&([ks,Ts]=[Ts,ks]),!(Xi>As||KiTs||Zit.x2||s.x2t.y2||s.y2Ki&&([Xi,Ki]=[Ki,Xi]),qi>Zi&&([qi,Zi]=[Zi,qi]),s.x>=Xi&&s.x<=Ki&&s.y>=qi&&s.y<=Zi):s.x>=t.x1&&s.x<=t.x2&&s.y>=t.y1&&s.y<=t.y2)}function j0(s,t){return Math.abs(t[0]*s[0]+t[1]*s[1])}function rp({x:s,y:t},e,i={x:0,y:0}){return{x:(s-i.x)*Math.cos(e)+(t-i.y)*Math.sin(e)+i.x,y:(s-i.x)*Math.sin(e)+(i.y-t)*Math.cos(e)+i.y}}function hy(s){return{x:(s.x1+s.x2)/2,y:(s.y1+s.y2)/2}}function bA(s,t){const e=t?s.angle:Qt(s.angle),i=hy(s);return[rp({x:s.x1,y:s.y1},e,i),rp({x:s.x2,y:s.y1},e,i),rp({x:s.x2,y:s.y2},e,i),rp({x:s.x1,y:s.y2},e,i)]}function E3(s,t,e=!1,i){const n=bA(s,e),r=bA(t,e),a=(v,b)=>[b.x-v.x,b.y-v.y],o=hy(s),l=hy(t),h=a(o,l),d=a(n[0],n[1]),c=a(n[1],n[2]),u=a(r[0],r[1]),p=a(r[1],r[2]),g=e?s.angle:Qt(s.angle);let f=e?s.angle+ts:Qt(90-s.angle);const _=e?t.angle:Qt(t.angle);let m=e?t.angle+ts:Qt(90-t.angle);f>Ft&&(f-=Ft),m>Ft&&(m-=Ft);const y=(v,b,x,A)=>{const T=[Math.cos(b),Math.sin(b)];return v+(j0(T,x)+j0(T,A))/2>j0(T,h)};return y((s.x2-s.x1)/2,g,u,p)&&y((s.y2-s.y1)/2,f,u,p)&&y((t.x2-t.x1)/2,_,d,c)&&y((t.y2-t.y1)/2,m,d,c)}let ap,op,lp,hp;function R3(s){return ap=1/0,op=1/0,lp=-1/0,hp=-1/0,s.forEach(t=>{ap>t.x&&(ap=t.x),lpt.y&&(op=t.y),hpt&&r>i||rn?o:0}function SA(s,t){return Math.abs(s-t)0&&I3(t[e-1].x,t[e-1].y,t[e].x,t[e].y,s))return!0;return!1}const kA=s=>{let t=s.charCodeAt(0),e=s.length===2?s.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 L3(s,t={}){const{fontStyle:e=t.fontStyle,fontVariant:i=t.fontVariant,fontWeight:n=t.fontWeight,fontSize:r=t.fontSize,fontFamily:a=t.fontFamily}=s;return(e?e+" ":"")+(i?i+" ":"")+(n?n+" ":"")+r+"px "+(a||"sans-serif")}class gi{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(),E(t.specialCharSet)&&(this.specialCharSet=t.specialCharSet),this._standardMethod=E(t.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(P(this._canvas)&&(E(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),P(this._canvas)&&typeof window<"u"&&window.document!==void 0&&globalThis&&E(globalThis.document)&&(this._canvas=globalThis.document.createElement("canvas"))),P(this._context)&&E(this._canvas)){const t=this._canvas.getContext("2d");E(t)&&(t.save(),t.font=L3(this.textSpec),this._contextSaved=!0,this._context=t)}return!P(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){var t,e,i;const{defaultFontParams:n={}}=this._option,{fontStyle:r=n.fontStyle,fontVariant:a=n.fontVariant,fontWeight:o=(t=n.fontWeight)!==null&&t!==void 0?t:"normal",fontSize:l=(e=n.fontSize)!==null&&e!==void 0?e:12,fontFamily:h=(i=n.fontFamily)!==null&&i!==void 0?i:"sans-serif",align:d,textAlign:c=d??"center",baseline:u,textBaseline:p=u??"middle",ellipsis:g,limit:f}=this._userSpec;let{lineHeight:_=l}=this._userSpec;if(at(_)&&_[_.length-1]==="%"){const m=Number.parseFloat(_.substring(0,_.length-1))/100;_=l*m}return{fontStyle:r,fontVariant:a,fontFamily:h,fontSize:l,fontWeight:o,textAlign:c,textBaseline:p,ellipsis:g,limit:f,lineHeight:_}}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:n,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:n,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:n,lineHeight:r}=this.textSpec;return{width:i.width,height:(e=r)!==null&&e!==void 0?e:n}}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:n)+1)+1}}return e(t.toString())}_measureNumberChar(){if(P(this._numberCharSize)){const t=this._standardMethod(gi.NUMBERS_CHAR_SET);this._numberCharSize={width:t.width/gi.NUMBERS_CHAR_SET.length,height:t.height}}return this._numberCharSize}_measureFullSizeChar(){return P(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(gi.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(P(this._letterCharSize)){const t=this._standardMethod(gi.ALPHABET_CHAR_SET);this._letterCharSize={width:t.width/gi.ALPHABET_CHAR_SET.length,height:t.height}}return this._letterCharSize}_measureSpecialChar(t){return E(this._specialCharSizeMap[t])?this._specialCharSizeMap[t]:this.specialCharSet.includes(t)?(this._specialCharSizeMap[t]=this._standardMethod(t),this._specialCharSizeMap[t]):null}release(){E(this._canvas)&&(this._canvas=null),E(this._context)&&(this._contextSaved&&(this._context.restore(),this._contextSaved=!1),this._context=null)}}gi.ALPHABET_CHAR_SET="abcdefghijklmnopqrstuvwxyz",gi.NUMBERS_CHAR_SET="0123456789",gi.FULL_SIZE_CHAR="字";const XE=(s,t)=>{const{x1:e,x2:i,y1:n,y2:r}=s,a=Math.abs(i-e),o=Math.abs(r-n);let l=(e+i)/2,h=(n+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 fn(s){if(W(s))return[s,s,s,s];if(G(s)){const t=s.length;if(t===1){const e=s[0];return[e,e,e,e]}if(t===2){const[e,i]=s;return[e,i,e,i]}if(t===3){const[e,i,n]=s;return[e,i,n,i]}if(t===4)return s}if(Et(s)){const{top:t=0,right:e=0,bottom:i=0,left:n=0}=s;return[t,e,i,n]}return[0,0,0,0]}function dy(s,t=0,e=0){if(!s)return{width:t,height:e};let i;try{i=window==null?void 0:window.getComputedStyle}catch{i=()=>({})}const n=i(s);if(/^(\d*\.?\d+)(px)$/.exec(n.width)){const r=parseFloat(n.width)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)||s.clientWidth-1,a=parseFloat(n.height)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)||s.clientHeight-1;return{width:r<=0?t:r,height:a<=0?e:a}}return{width:t,height:e}}function O3(s){const{x:t,y:e}=s.getBoundingClientRect();return{x:t,y:e}}function KE(s,t){let e=s.parentNode;for(;e!==null;){if(e===t)return!0;e=e.parentNode}return!1}const D3=(s="")=>{const t={};return s.split(";").forEach(e=>{if(e){const i=e.split(":");if(i.length===2){const n=i[0].trim(),r=i[1].trim();n&&r&&(t[n]=r)}}}),t},TA=s=>s.replace(/([A-Z])/g,"-$1").toLowerCase();var Sn=63710088e-1,F3={centimeters:Sn*100,centimetres:Sn*100,degrees:Sn/111325,feet:Sn*3.28084,inches:Sn*39.37,kilometers:Sn/1e3,kilometres:Sn/1e3,meters:Sn,metres:Sn,miles:Sn/1609.344,millimeters:Sn*1e3,millimetres:Sn*1e3,nauticalmiles:Sn/1852,radians:1,yards:Sn*1.0936};function MA(s,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=s,i}function qE(s,t){t===void 0&&(t={});var e={type:"FeatureCollection"};return t.id&&(e.id=t.id),t.bbox&&(e.bbox=t.bbox),e.features=s,e}function z3(s,t){t===void 0&&(t="kilometers");var e=F3[t];if(!e)throw new Error(t+" units is invalid");return s/e}function H3(s){return!!s&&s.constructor===Object}function j3(s){return s.type==="Feature"?s.geometry:s}function V3(s,t){if(!s||!t)return!1;const e=j3(t),i=e.type,n=t.bbox;let r=e.coordinates;if(n&&bd(s,{x1:n[0],x2:n[1],y1:n[1],y2:n[3]},!0)===!0)return!1;i==="Polygon"&&(r=[r]);let a=!1;for(let o=0;o({x:h[0],y:h[1]})),s.x,s.y))return a=!0,a;return a}function W3(s,t,e,i={}){const n=Qt(s[0]),r=Qt(s[1]),a=Qt(e),o=z3(t,i.units),l=Math.asin(Math.sin(r)*Math.cos(o)+Math.cos(r)*Math.sin(o)*Math.cos(a)),h=n+Math.atan2(Math.sin(a)*Math.sin(o)*Math.cos(r),Math.cos(o)-Math.sin(r)*Math.sin(l));return{x:sh(h),y:sh(l)}}class Cs{static getInstance(){return Cs.instance||(Cs.instance=new Cs),Cs.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 n=this.shortWeekdayRe.exec(e.slice(i));return n?(t.w=this.shortWeekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},this.parseWeekday=(t,e,i)=>{const n=this.weekdayRe.exec(e.slice(i));return n?(t.w=this.weekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},this.parseShortMonth=(t,e,i)=>{const n=this.shortMonthRe.exec(e.slice(i));return n?(t.m=this.shortMonthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},this.parseMonth=(t,e,i)=>{const n=this.monthRe.exec(e.slice(i));return n?(t.m=this.monthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},this.parseDayOfMonth=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+2));return n?(t.d=+n[0],i+n[0].length):-1},this.parseHour24=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+2));return n?(t.H=+n[0],i+n[0].length):-1},this.parseMilliseconds=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+3));return n?(t.L=+n[0],i+n[0].length):-1},this.parseMonthNumber=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+2));return n?(t.m=n-1,i+n[0].length):-1},this.parseMinutes=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+2));return n?(t.M=+n[0],i+n[0].length):-1},this.parsePeriod=(t,e,i)=>{const n=this.periodRe.exec(e.slice(i));return n?(t.p=this.periodLookup.get(n[0].toLowerCase()),i+n[0].length):-1},this.parseSeconds=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+2));return n?(t.S=+n[0],i+n[0].length):-1},this.parseFullYear=(t,e,i)=>{const n=this.numberRe.exec(e.slice(i,i+4));return n?(t.y=+n[0],i+n[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 n=t<0?"-":"",r=(n?-t:t)+"",a=r.length;return n+(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||(n=h(t,i,n))<0)return-1}else if(l!==i.charCodeAt(n++))return-1}return n}newParse(t,e){const i=this;return function(n){const r=i.newDate(1900,void 0,1);return i.parseSpecifier(r,t,n+="",0)!==n.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(n){const r=[];let a=-1,o=0;const l=t.length;let h,d,c;for(n instanceof Date||(n=new Date(+n));++a=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)}function mg(s,t){const e=t?s.toExponential(t-1):s.toExponential(),i=e.indexOf("e");if(i<0)return null;const n=e.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+e.slice(i+1)]}function N3(s,t){return function(e,i){let n=e.length;const r=[];let a=0,o=s[0],l=0;for(;n>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),r.push(e.substring(n-=o,n+o)),!((l+=o+1)>i));)o=s[a=(a+1)%s.length];return r.reverse().join(t)}}let ZE;function U3(s,t){const e=mg(s,t);if(!e)return s+"";const i=e[0],n=e[1],r=n-(ZE=3*Math.max(-8,Math.min(8,Math.floor(n/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")+mg(s,Math.max(0,t+r-1))[0]}function wA(s,t){const e=mg(s,t);if(!e)return s+"";const i=e[0],n=e[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}function $3(s){const t=s.length;let e,i=-1;t:for(let n=1;n0&&(i=0)}return i>0?s.slice(0,i)+s.slice(e+1):s}class Y3{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 JE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function CA(s){let t;if(t=JE.exec(s))return new Y3({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]});Lt.getInstance().error("invalid format: "+s)}const PA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];class po{constructor(){this.locale={thousands:",",grouping:[3],currency:["$",""]},this.group=this.locale.grouping===void 0||this.locale.thousands===void 0?t=>t:N3([...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:K3([...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 po.instance||(po.instance=new po),po.instance}newFormat(t){const e=CA(t);let i=e.fill,n=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"):EA[u]||(d===void 0&&(d=12),c=!0,u="g"),(o||i==="0"&&n==="=")&&(o=!0,i="0",n="=");const p=a==="$"?this.currencyPrefix:a==="#"&&/[boxX]/.test(u)?"0"+u.toLowerCase():"",g=a==="$"?this.currencySuffix:/[%p]/.test(u)?this.percent:"",f=EA[u],_=/[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:y,decimal:v,group:b,numerals:x}=this;function A(T){let k,M,w,C=p,R=g,I=T;if(u==="c")R=f(I)+R,I="";else{I=+I;let L=I<0||1/I<0;if(I=isNaN(I)?m:f(Math.abs(I),d),c&&(I=$3(I)),L&&+I==0&&r!=="+"&&(L=!1),C=(L?r==="("?r:y:r==="-"||r==="("?"":r)+C,R=(u==="s"?PA[8+ZE/3]:"")+R+(L&&r==="("?")":""),_){for(k=-1,M=I.length;++kw||w>57){R=(w===46?v+I.slice(k+1):I.slice(k))+R,I=I.slice(0,k);break}}}h&&!o&&(I=b(I,1/0));let O=C.length+I.length+R.length,B=O>1)+C+I+R+B.slice(O);break;default:I=B+C+I+R}return x(I)}return A.toString=function(){return t+""},A}_formatPrefix(t,e){const i=CA(t);i.type="f";const n=this.newFormat(i.toString()),r=3*Math.max(-8,Math.min(8,Math.floor(X3(e)/3))),a=Math.pow(10,-r),o=PA[8+r/3];return function(l){return n(a*l)+o}}}const EA={"%":(s,t)=>(100*s).toFixed(t),b:s=>Math.round(s).toString(2),c:s=>s+"",d:G3,f:(s,t)=>s.toFixed(t),e:(s,t)=>s.toExponential(t),g:(s,t)=>s.toPrecision(t),o:s=>Math.round(s).toString(8),p:(s,t)=>wA(100*s,t),r:wA,s:U3,X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16),t:(s,t)=>Number.isInteger(s)?s.toFixed(2):Math.floor(s*Math.pow(10,t))/Math.pow(10,t)+"",z:(s,t)=>s%1==0?s+"":s.toFixed(t)};function X3(s){const t=mg(Math.abs(s));return t?t[1]:NaN}function K3(s){return function(t){return t.replace(/[0-9]/g,e=>s[+e])}}const q3=(s,t)=>{const{callback:e}=t;return e&&(s=s.filter(e)),s};function gm(){return new vg}function vg(){this.reset()}vg.prototype={constructor:vg,reset:function(){this.s=this.t=0},add:function(s){RA(dp,s,this.t),RA(this,dp.s,this.s),this.s?this.t+=dp.t:this.s=dp.t},valueOf:function(){return this.s}};var dp=new vg;function RA(s,t,e){var i=s.s=t+e,n=i-t,r=i-n;s.t=t-r+(e-n)}var jt=1e-6,Z3=1e-12,Kt=Math.PI,Ke=Kt/2,BA=Kt/4,$n=Kt*2,Wi=180/Kt,Ve=Kt/180,pe=Math.abs,Ph=Math.atan,Dr=Math.atan2,Yt=Math.cos,QE=Math.exp,yg=Math.log,V0=Math.pow,Vt=Math.sin,ns=Math.sign||function(s){return s>0?1:s<0?-1:0},Rn=Math.sqrt,qx=Math.tan;function tR(s){return s>1?0:s<-1?Kt:Math.acos(s)}function os(s){return s>1?Ke:s<-1?-Ke:Math.asin(s)}function ss(){}function bg(s,t){s&&LA.hasOwnProperty(s.type)&&LA[s.type](s,t)}var IA={Feature:function(s,t){bg(s.geometry,t)},FeatureCollection:function(s,t){for(var e=s.features,i=-1,n=e.length;++iKt?s+Math.round(-s/$n)*$n:s,t]}fy.invert=fy;function eR(s,t,e){return(s%=$n)?t||e?gy(FA(s),zA(t,e)):FA(s):t||e?zA(t,e):fy}function DA(s){return function(t,e){return t+=s,[t>Kt?t-$n:t<-Kt?t+$n:t,e]}}function FA(s){var t=DA(s);return t.invert=DA(-s),t}function zA(s,t){var e=Yt(s),i=Vt(s),n=Yt(t),r=Vt(t);function a(o,l){var h=Yt(l),d=Yt(o)*h,c=Vt(o)*h,u=Vt(l),p=u*e+d*i;return[Dr(c*n-p*r,d*e-u*i),os(p*n+c*r)]}return a.invert=function(o,l){var h=Yt(l),d=Yt(o)*h,c=Vt(o)*h,u=Vt(l),p=u*n-c*r;return[Dr(c*n+u*r,d*e+p*i),os(p*e-d*i)]},a}function J3(s){s=eR(s[0]*Ve,s[1]*Ve,s.length>2?s[2]*Ve:0);function t(e){return e=s(e[0]*Ve,e[1]*Ve),e[0]*=Wi,e[1]*=Wi,e}return t.invert=function(e){return e=s.invert(e[0]*Ve,e[1]*Ve),e[0]*=Wi,e[1]*=Wi,e},t}function Q3(s,t,e,i,n,r){if(e){var a=Yt(t),o=Vt(t),l=i*e;n==null?(n=t+i*$n,r=t-l/2):(n=HA(a,n),r=HA(a,r),(i>0?nr)&&(n+=i*$n));for(var h,d=n;i>0?d>r:d1&&s.push(s.pop().concat(s.shift()))},result:function(){var e=s;return s=[],t=null,e}}}function Zp(s,t){return pe(s[0]-t[0])=0;--o)n.point((c=d[o])[0],c[1]);else i(u.x,u.p.x,-1,n);u=u.p}u=u.o,d=u.z,p=!p}while(!u.v);n.lineEnd()}}}function jA(s){if(t=s.length){for(var t,e=0,i=s[0],n;++e=0?1:-1,M=k*T,w=M>Kt,C=f*x;if(G0.add(Dr(C*k*Vt(M),_*A+C*Yt(M))),a+=w?T+k*$n:T,w^p>=e^v>=e){var R=xg(rh(u),rh(y));py(R);var I=xg(r,R);py(I);var O=(w^T>=0?-1:1)*os(I[2]);(i>O||i===O&&(R[0]||R[1]))&&(o+=w^T>=0?1:-1)}}return(a<-jt||at?1:s>=t?0:NaN}function ez(s){return s.length===1&&(s=iz(s)),{left:function(t,e,i,n){for(i==null&&(i=0),n==null&&(n=t.length);i>>1;s(t[r],e)<0?i=r+1:n=r}return i},right:function(t,e,i,n){for(i==null&&(i=0),n==null&&(n=t.length);i>>1;s(t[r],e)>0?n=r:i=r+1}return i}}}function iz(s){return function(t,e){return sR(s(t),e)}}ez(sR);function rR(s){for(var t=s.length,e,i=-1,n=0,r,a;++i=0;)for(a=s[t],e=a.length;--e>=0;)r[--n]=a[e];return r}function aR(s,t,e,i){return function(n){var r=t(n),a=iR(),o=t(a),l=!1,h,d,c,u={point:p,lineStart:f,lineEnd:_,polygonStart:function(){u.point=m,u.lineStart=y,u.lineEnd=v,d=[],h=[]},polygonEnd:function(){u.point=p,u.lineStart=f,u.lineEnd=_,d=rR(d);var b=tz(h,i);d.length?(l||(n.polygonStart(),l=!0),nR(d,sz,b,e,n)):b&&(l||(n.polygonStart(),l=!0),n.lineStart(),e(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),d=h=null},sphere:function(){n.polygonStart(),n.lineStart(),e(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function p(b,x){s(b,x)&&n.point(b,x)}function g(b,x){r.point(b,x)}function f(){u.point=g,r.lineStart()}function _(){u.point=p,r.lineEnd()}function m(b,x){c.push([b,x]),o.point(b,x)}function y(){o.lineStart(),c=[]}function v(){m(c[0][0],c[0][1]),o.lineEnd();var b=o.clean(),x=a.result(),A,T=x.length,k,M,w;if(c.pop(),h.push(c),c=null,!!T){if(b&1){if(M=x[0],(k=M.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),A=0;A1&&b&2&&x.push(x.pop().concat(x.shift())),d.push(x.filter(nz))}}return u}}function nz(s){return s.length>1}function sz(s,t){return((s=s.x)[0]<0?s[1]-Ke-jt:Ke-s[1])-((t=t.x)[0]<0?t[1]-Ke-jt:Ke-t[1])}const VA=aR(function(){return!0},rz,oz,[-Kt,-Ke]);function rz(s){var t=NaN,e=NaN,i=NaN,n;return{lineStart:function(){s.lineStart(),n=1},point:function(r,a){var o=r>0?Kt:-Kt,l=pe(r-t);pe(l-Kt)0?Ke:-Ke),s.point(i,e),s.lineEnd(),s.lineStart(),s.point(o,e),s.point(r,e),n=0):i!==o&&l>=Kt&&(pe(t-i)jt?Ph((Vt(t)*(r=Yt(i))*Vt(e)-Vt(i)*(n=Yt(t))*Vt(s))/(n*r*a)):(t+i)/2}function oz(s,t,e,i){var n;if(s==null)n=e*Ke,i.point(-Kt,n),i.point(0,n),i.point(Kt,n),i.point(Kt,0),i.point(Kt,-n),i.point(0,-n),i.point(-Kt,-n),i.point(-Kt,0),i.point(-Kt,n);else if(pe(s[0]-t[0])>jt){var r=s[0]0,n=pe(t)>jt;function r(d,c,u,p){Q3(p,s,e,u,d,c)}function a(d,c){return Yt(d)*Yt(c)>t}function o(d){var c,u,p,g,f;return{lineStart:function(){g=p=!1,f=1},point:function(_,m){var y=[_,m],v,b=a(_,m),x=i?b?0:h(_,m):b?h(_+(_<0?Kt:-Kt),m):0;if(!c&&(g=p=b)&&d.lineStart(),b!==p&&(v=l(c,y),(!v||Zp(c,v)||Zp(y,v))&&(y[2]=1)),b!==p)f=0,b?(d.lineStart(),v=l(y,c),d.point(v[0],v[1])):(v=l(c,y),d.point(v[0],v[1],2),d.lineEnd()),c=v;else if(n&&c&&i^b){var A;!(x&u)&&(A=l(y,c,!0))&&(f=0,i?(d.lineStart(),d.point(A[0][0],A[0][1]),d.point(A[1][0],A[1][1]),d.lineEnd()):(d.point(A[1][0],A[1][1]),d.lineEnd(),d.lineStart(),d.point(A[0][0],A[0][1],3)))}b&&(!c||!Zp(c,y))&&d.point(y[0],y[1]),c=y,p=b,u=x},lineEnd:function(){p&&d.lineEnd(),c=null},clean:function(){return f|(g&&p)<<1}}}function l(d,c,u){var p=rh(d),g=rh(c),f=[1,0,0],_=xg(p,g),m=cp(_,_),y=_[0],v=m-y*y;if(!v)return!u&&d;var b=t*m/v,x=-t*y/v,A=xg(f,_),T=up(f,b),k=up(_,x);W0(T,k);var M=A,w=cp(T,M),C=cp(M,M),R=w*w-C*(cp(T,T)-1);if(!(R<0)){var I=Rn(R),O=up(M,(-w-I)/C);if(W0(O,T),O=uy(O),!u)return O;var B=d[0],L=c[0],F=d[1],z=c[1],K;L0^O[1]<(pe(O[0]-B)Kt^(B<=O[0]&&O[0]<=L)){var ht=up(M,(-w+I)/C);return W0(ht,T),[O,uy(ht)]}}}function h(d,c){var u=i?s:Kt-s,p=0;return d<-u?p|=1:d>u&&(p|=2),c<-u?p|=4:c>u&&(p|=8),p}return aR(a,o,r,i?[0,-s]:[-Kt,s-Kt])}function hz(s,t,e,i,n,r){var a=s[0],o=s[1],l=t[0],h=t[1],d=0,c=1,u=l-a,p=h-o,g;if(g=e-a,!(!u&&g>0)){if(g/=u,u<0){if(g0){if(g>c)return;g>d&&(d=g)}if(g=n-a,!(!u&&g<0)){if(g/=u,u<0){if(g>c)return;g>d&&(d=g)}else if(u>0){if(g0)){if(g/=p,p<0){if(g0){if(g>c)return;g>d&&(d=g)}if(g=r-o,!(!p&&g<0)){if(g/=p,p<0){if(g>c)return;g>d&&(d=g)}else if(p>0){if(g0&&(s[0]=a+d*u,s[1]=o+d*p),c<1&&(t[0]=a+c*u,t[1]=o+c*p),!0}}}}}var od=1e9,gp=-od;function oR(s,t,e,i){function n(h,d){return s<=h&&h<=e&&t<=d&&d<=i}function r(h,d,c,u){var p=0,g=0;if(h==null||(p=a(h,c))!==(g=a(d,c))||l(h,d)<0^c>0)do u.point(p===0||p===3?s:e,p>1?i:t);while((p=(p+c+4)%4)!==g);else u.point(d[0],d[1])}function a(h,d){return pe(h[0]-s)0?0:3:pe(h[0]-e)0?2:1:pe(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=iR(),u,p,g,f,_,m,y,v,b,x,A,T={point:k,lineStart:R,lineEnd:I,polygonStart:w,polygonEnd:C};function k(B,L){n(B,L)&&d.point(B,L)}function M(){for(var B=0,L=0,F=p.length;Li&&(ut-st)*(i-ht)>(J-ht)*(s-st)&&++B:J<=i&&(ut-st)*(i-ht)<(J-ht)*(s-st)&&--B;return B}function w(){d=c,u=[],p=[],A=!0}function C(){var B=M(),L=A&&B,F=(u=rR(u)).length;(L||F)&&(h.polygonStart(),L&&(h.lineStart(),r(null,null,1,h),h.lineEnd()),F&&nR(u,o,B,r,h),h.polygonEnd()),d=h,u=p=g=null}function R(){T.point=O,p&&p.push(g=[]),x=!0,b=!1,y=v=NaN}function I(){u&&(O(f,_),m&&b&&c.rejoin(),u.push(c.result())),T.point=k,b&&d.lineEnd()}function O(B,L){var F=n(B,L);if(p&&g.push([B,L]),x)f=B,_=L,m=F,x=!1,F&&(d.lineStart(),d.point(B,L));else if(F&&b)d.point(B,L);else{var z=[y=Math.max(gp,Math.min(od,y)),v=Math.max(gp,Math.min(od,v))],K=[B=Math.max(gp,Math.min(od,B)),L=Math.max(gp,Math.min(od,L))];hz(z,K,s,t,e,i)?(b||(d.lineStart(),d.point(z[0],z[1])),d.point(K[0],K[1]),F||d.lineEnd(),A=!1):F&&(d.lineStart(),d.point(B,L),A=!1)}y=B,v=L,b=F}return T}}function Pc(s){return s}var U0=gm(),_y=gm(),lR,hR,my,vy,Ar={point:ss,lineStart:ss,lineEnd:ss,polygonStart:function(){Ar.lineStart=dz,Ar.lineEnd=uz},polygonEnd:function(){Ar.lineStart=Ar.lineEnd=Ar.point=ss,U0.add(pe(_y)),_y.reset()},result:function(){var s=U0/2;return U0.reset(),s}};function dz(){Ar.point=cz}function cz(s,t){Ar.point=dR,lR=my=s,hR=vy=t}function dR(s,t){_y.add(vy*s-my*t),my=s,vy=t}function uz(){dR(lR,hR)}var ah=1/0,Sg=ah,Ec=-ah,Ag=Ec,kg={point:pz,lineStart:ss,lineEnd:ss,polygonStart:ss,polygonEnd:ss,result:function(){var s=[[ah,Sg],[Ec,Ag]];return Ec=Ag=-(Sg=ah=1/0),s}};function pz(s,t){sEc&&(Ec=s),tAg&&(Ag=t)}var yy=0,by=0,ld=0,Tg=0,Mg=0,Pl=0,xy=0,Sy=0,hd=0,cR,uR,Ys,Xs,es={point:Oo,lineStart:WA,lineEnd:GA,polygonStart:function(){es.lineStart=_z,es.lineEnd=mz},polygonEnd:function(){es.point=Oo,es.lineStart=WA,es.lineEnd=GA},result:function(){var s=hd?[xy/hd,Sy/hd]:Pl?[Tg/Pl,Mg/Pl]:ld?[yy/ld,by/ld]:[NaN,NaN];return yy=by=ld=Tg=Mg=Pl=xy=Sy=hd=0,s}};function Oo(s,t){yy+=s,by+=t,++ld}function WA(){es.point=gz}function gz(s,t){es.point=fz,Oo(Ys=s,Xs=t)}function fz(s,t){var e=s-Ys,i=t-Xs,n=Rn(e*e+i*i);Tg+=n*(Ys+s)/2,Mg+=n*(Xs+t)/2,Pl+=n,Oo(Ys=s,Xs=t)}function GA(){es.point=Oo}function _z(){es.point=vz}function mz(){pR(cR,uR)}function vz(s,t){es.point=pR,Oo(cR=Ys=s,uR=Xs=t)}function pR(s,t){var e=s-Ys,i=t-Xs,n=Rn(e*e+i*i);Tg+=n*(Ys+s)/2,Mg+=n*(Xs+t)/2,Pl+=n,n=Xs*s-Ys*t,xy+=n*(Ys+s),Sy+=n*(Xs+t),hd+=n*3,Oo(Ys=s,Xs=t)}function gR(s){this._context=s}gR.prototype={_radius:4.5,pointRadius:function(s){return this._radius=s,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(s,t){switch(this._point){case 0:{this._context.moveTo(s,t),this._point=1;break}case 1:{this._context.lineTo(s,t);break}default:{this._context.moveTo(s+this._radius,t),this._context.arc(s,t,this._radius,0,$n);break}}},result:ss};var Ay=gm(),$0,fR,_R,dd,cd,Rc={point:ss,lineStart:function(){Rc.point=yz},lineEnd:function(){$0&&mR(fR,_R),Rc.point=ss},polygonStart:function(){$0=!0},polygonEnd:function(){$0=null},result:function(){var s=+Ay;return Ay.reset(),s}};function yz(s,t){Rc.point=mR,fR=dd=s,_R=cd=t}function mR(s,t){dd-=s,cd-=t,Ay.add(Rn(dd*dd+cd*cd)),dd=s,cd=t}function vR(){this._string=[]}vR.prototype={_radius:4.5,_circle:NA(4.5),pointRadius:function(s){return(s=+s)!==this._radius&&(this._radius=s,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(s,t){switch(this._point){case 0:{this._string.push("M",s,",",t),this._point=1;break}case 1:{this._string.push("L",s,",",t);break}default:{this._circle==null&&(this._circle=NA(this._radius)),this._string.push("M",s,",",t,this._circle);break}}},result:function(){if(this._string.length){var s=this._string.join("");return this._string=[],s}else return null}};function NA(s){return"m0,"+s+"a"+s+","+s+" 0 1,1 0,"+-2*s+"a"+s+","+s+" 0 1,1 0,"+2*s+"z"}function Zx(s,t){var e=4.5,i,n;function r(a){return a&&(typeof e=="function"&&n.pointRadius(+e.apply(this,arguments)),Sl(a,i(n))),n.result()}return r.area=function(a){return Sl(a,i(Ar)),Ar.result()},r.measure=function(a){return Sl(a,i(Rc)),Rc.result()},r.bounds=function(a){return Sl(a,i(kg)),kg.result()},r.centroid=function(a){return Sl(a,i(es)),es.result()},r.projection=function(a){return arguments.length?(i=a==null?(s=null,Pc):(s=a).stream,r):s},r.context=function(a){return arguments.length?(n=a==null?(t=null,new vR):new gR(t=a),typeof e!="function"&&n.pointRadius(e),r):t},r.pointRadius=function(a){return arguments.length?(e=typeof a=="function"?a:(n.pointRadius(+a),+a),r):e},r.projection(s).context(t)}function fm(s){return function(t){var e=new ky;for(var i in s)e[i]=s[i];return e.stream=t,e}}function ky(){}ky.prototype={constructor:ky,point:function(s,t){this.stream.point(s,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 Jx(s,t,e){var i=s.clipExtent&&s.clipExtent();return s.scale(150).translate([0,0]),i!=null&&s.clipExtent(null),Sl(e,s.stream(kg)),t(kg.result()),i!=null&&s.clipExtent(i),s}function _m(s,t,e){return Jx(s,function(i){var n=t[1][0]-t[0][0],r=t[1][1]-t[0][1],a=Math.min(n/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),o=+t[0][0]+(n-a*(i[1][0]+i[0][0]))/2,l=+t[0][1]+(r-a*(i[1][1]+i[0][1]))/2;s.scale(150*a).translate([o,l])},e)}function Qx(s,t,e){return _m(s,[[0,0],t],e)}function tS(s,t,e){return Jx(s,function(i){var n=+t,r=n/(i[1][0]-i[0][0]),a=(n-r*(i[1][0]+i[0][0]))/2,o=-r*i[0][1];s.scale(150*r).translate([a,o])},e)}function eS(s,t,e){return Jx(s,function(i){var n=+t,r=n/(i[1][1]-i[0][1]),a=-r*i[0][0],o=(n-r*(i[1][1]+i[0][1]))/2;s.scale(150*r).translate([a,o])},e)}var UA=16,bz=Yt(30*Ve);function $A(s,t){return+t?Sz(s,t):xz(s)}function xz(s){return fm({point:function(t,e){t=s(t,e),this.stream.point(t[0],t[1])}})}function Sz(s,t){function e(i,n,r,a,o,l,h,d,c,u,p,g,f,_){var m=h-i,y=d-n,v=m*m+y*y;if(v>4*t&&f--){var b=a+u,x=o+p,A=l+g,T=Rn(b*b+x*x+A*A),k=os(A/=T),M=pe(pe(A)-1)t||pe((m*I+y*O)/v-.5)>.3||a*u+o*p+l*g2?B[2]%360*Ve:0,I()):[o*Wi,l*Wi,h*Wi]},C.angle=function(B){return arguments.length?(c=B%360*Ve,I()):c*Wi},C.reflectX=function(B){return arguments.length?(u=B?-1:1,I()):u<0},C.reflectY=function(B){return arguments.length?(p=B?-1:1,I()):p<0},C.precision=function(B){return arguments.length?(A=$A(T,x=B*B),O()):Rn(x)},C.fitExtent=function(B,L){return _m(C,B,L)},C.fitSize=function(B,L){return Qx(C,B,L)},C.fitWidth=function(B,L){return tS(C,B,L)},C.fitHeight=function(B,L){return eS(C,B,L)};function I(){var B=YA(e,0,0,u,p,c).apply(null,t(r,a)),L=(c?YA:Tz)(e,i-B[0],n-B[1],u,p,c);return d=eR(o,l,h),T=gy(t,L),k=gy(d,T),A=$A(T,x),O()}function O(){return M=w=null,C}return function(){return t=s.apply(this,arguments),C.invert=t.invert&&R,I()}}function iS(s){var t=0,e=Kt/3,i=yR(s),n=i(t,e);return n.parallels=function(r){return arguments.length?i(t=r[0]*Ve,e=r[1]*Ve):[t*Wi,e*Wi]},n}function Mz(s){var t=Yt(s);function e(i,n){return[i*t,Vt(n)/t]}return e.invert=function(i,n){return[i/t,os(n*t)]},e}function wz(s,t){var e=Vt(s),i=(e+Vt(t))/2;if(pe(i)=.12&&_<.234&&f>=-.425&&f<-.214?n:_>=.166&&_<.234&&f>=-.214&&f<-.115?a:e).invert(u)},d.stream=function(u){return s&&t===u?s:s=Cz([e.stream(t=u),n.stream(u),a.stream(u)])},d.precision=function(u){return arguments.length?(e.precision(u),n.precision(u),a.precision(u),c()):e.precision()},d.scale=function(u){return arguments.length?(e.scale(u),n.scale(u*.35),a.scale(u),d.translate(e.translate())):e.scale()},d.translate=function(u){if(!arguments.length)return e.translate();var p=e.scale(),g=+u[0],f=+u[1];return i=e.translate(u).clipExtent([[g-.455*p,f-.238*p],[g+.455*p,f+.238*p]]).stream(h),r=n.translate([g-.307*p,f+.201*p]).clipExtent([[g-.425*p+jt,f+.12*p+jt],[g-.214*p-jt,f+.234*p-jt]]).stream(h),o=a.translate([g-.205*p,f+.212*p]).clipExtent([[g-.214*p+jt,f+.166*p+jt],[g-.115*p-jt,f+.234*p-jt]]).stream(h),c()},d.fitExtent=function(u,p){return _m(d,u,p)},d.fitSize=function(u,p){return Qx(d,u,p)},d.fitWidth=function(u,p){return tS(d,u,p)},d.fitHeight=function(u,p){return eS(d,u,p)};function c(){return s=t=null,d}return d.scale(1070)}function xR(s){return function(t,e){var i=Yt(t),n=Yt(e),r=s(i*n);return[r*n*Vt(t),r*Vt(e)]}}function Cu(s){return function(t,e){var i=Rn(t*t+e*e),n=s(i),r=Vt(n),a=Yt(n);return[Dr(t*r,i*a),os(i&&e*r/i)]}}var SR=xR(function(s){return Rn(2/(1+s))});SR.invert=Cu(function(s){return 2*os(s/2)});function Ez(){return Gr(SR).scale(124.75).clipAngle(180-.001)}var AR=xR(function(s){return(s=tR(s))&&s/Vt(s)});AR.invert=Cu(function(s){return s});function Rz(){return Gr(AR).scale(79.4188).clipAngle(180-.001)}function mm(s,t){return[s,yg(qx((Ke+t)/2))]}mm.invert=function(s,t){return[s,2*Ph(QE(t))-Ke]};function Bz(){return kR(mm).scale(961/$n)}function kR(s){var t=Gr(s),e=t.center,i=t.scale,n=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?(n(c),d()):n()},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=Kt*i(),u=t(J3(t.rotate()).invert([0,0]));return r(a==null?[[u[0]-c,u[1]-c],[u[0]+c,u[1]+c]]:s===mm?[[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 fp(s){return qx((Ke+s)/2)}function Iz(s,t){var e=Yt(s),i=s===t?Vt(s):yg(e/Yt(t))/yg(fp(t)/fp(s)),n=e*V0(fp(s),i)/i;if(!i)return mm;function r(a,o){n>0?o<-Ke+jt&&(o=-Ke+jt):o>Ke-jt&&(o=Ke-jt);var l=n/V0(fp(o),i);return[l*Vt(i*a),n-l*Yt(i*a)]}return r.invert=function(a,o){var l=n-o,h=ns(i)*Rn(a*a+l*l),d=Dr(a,pe(l))*ns(l);return l*i<0&&(d-=Kt*ns(a)*ns(l)),[d/i,2*Ph(V0(n/h,1/i))-Ke]},r}function Lz(){return iS(Iz).scale(109.5).parallels([30,30])}function Cg(s,t){return[s,t]}Cg.invert=Cg;function Oz(){return Gr(Cg).scale(152.63)}function Dz(s,t){var e=Yt(s),i=s===t?Vt(s):(e-Yt(t))/(t-s),n=e/i+s;if(pe(i)jt&&--i>0);return[s/(.8707+(r=e*e)*(-.131979+r*(-.013791+r*r*r*(.003971-.001529*r)))),e]};function Wz(){return Gr(wR).scale(175.295)}function CR(s,t){return[Yt(t)*Vt(s),Vt(t)]}CR.invert=Cu(os);function Gz(){return Gr(CR).scale(249.5).clipAngle(90+jt)}function PR(s,t){var e=Yt(t),i=1+Yt(s)*e;return[e*Vt(s)/i,Vt(t)/i]}PR.invert=Cu(function(s){return 2*Ph(s)});function Nz(){return Gr(PR).scale(250).clipAngle(142)}function ER(s,t){return[yg(qx((Ke+t)/2)),-s]}ER.invert=function(s,t){return[-t,2*Ph(QE(s))-Ke]};function Uz(){var s=kR(ER),t=s.center,e=s.rotate;return s.center=function(i){return arguments.length?t([-i[1],i[0]]):(i=t(),[i[1],-i[0]])},s.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 $z(s){return s}function Yz(s){if(s==null)return $z;var t,e,i=s.scale[0],n=s.scale[1],r=s.translate[0],a=s.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])*n+a;he&&(i=n,e=r)}if(e>t)var a=Ty(s.slice(0,i),t),o=Ty(s.slice(i,s.length),t),l=a.concat(o);else s.length>1?l=[s[0],s[s.length-1]]:l=[s[0]];return l},Qz=Ty;(function(s){var t=Qz;s.exports=function(n,r,a){return a||(n=JSON.parse(JSON.stringify(n))),n.features?i(n,r):n.type&&n.type==="Feature"?e(n,r):new Error("FeatureCollection or individual Feature required")},s.exports.simplify=function(n,r){return t(n,r)};function e(n,r){var a=n.geometry,o=a.type;if(o==="LineString")a.coordinates=s.exports.simplify(a.coordinates,r);else if(o==="Polygon"||o==="MultiLineString")for(var l=0;l{const e=vm(sH,t),{tolerance:i}=e;return eH(s,i)};var Do;(function(s){s.DSV="dsv",s.TREE="tree",s.GEO="geo",s.BYTE="bytejson",s.HEX="hex",s.GRAPH="graph",s.TABLE="table",s.GEO_GRATICULE="geo-graticule"})(Do||(Do={}));const aH=(s,t)=>{const{fields:e,key:i,value:n,retains:r}=t,a=[];for(let o=0;o{const h={};if(h[i]=l,h[n]=s[o][l],r)r.forEach(d=>{h[d]=s[o][d]});else for(const d in s[o])e.indexOf(d)===-1&&(h[d]=s[o][d]);a.push(h)});return a},IR=(s,t)=>{var e,i;if(!(t!=null&&t.fields)||s.length===0)return s;const n=t.fields,r=s[0],a={},o=[];for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)){const h=n[l];if(!h.type){let c=r;l in r||(c=(e=s.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,p)=>{c[u]=p,h._domainCache[u]=p}),d&&(d.sortIndex=c,d.sortIndexCount=h.domain.length)}else h.domain.length>=2&&(a[l]=h)}return Object.keys(a).length>0&&(s=s.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),s.sort((l,h)=>oH(l,h,o)),s};function oH(s,t,e){for(let i=0;i9999?"+"+An(s,6):An(s,4)}function dH(s){var t=s.getUTCHours(),e=s.getUTCMinutes(),i=s.getUTCSeconds(),n=s.getUTCMilliseconds();return isNaN(s)?"Invalid Date":hH(s.getUTCFullYear())+"-"+An(s.getUTCMonth()+1,2)+"-"+An(s.getUTCDate(),2)+(n?"T"+An(t,2)+":"+An(e,2)+":"+An(i,2)+"."+An(n,3)+"Z":i?"T"+An(t,2)+":"+An(e,2)+":"+An(i,2)+"Z":e||t?"T"+An(t,2)+":"+An(e,2)+"Z":"")}function nS(s){var t=new RegExp('["'+s+` +\r]`),e=s.charCodeAt(0);function i(c,u){var p,g,f=n(c,function(_,m){if(p)return p(_,m-1);g=_,p=u?lH(_,u):LR(_)});return f.columns=g||[],f}function n(c,u){var p=[],g=c.length,f=0,_=0,m,y=g<=0,v=!1;c.charCodeAt(g-1)===Gh&&--g,c.charCodeAt(g-1)===K0&&--g;function b(){if(y)return Y0;if(v)return v=!1,KA;var A,T=f,k;if(c.charCodeAt(T)===X0){for(;f++=g?y=!0:(k=c.charCodeAt(f++))===Gh?v=!0:k===K0&&(v=!0,c.charCodeAt(f)===Gh&&++f),c.slice(T+1,A-1).replace(/""/g,'"')}for(;f{e.type=Do.DSV;const i=vm(fH,t),{delimiter:n}=i;if(!at(n))throw new TypeError("Invalid delimiter: must be a string!");return nS(n).parse(s)},DR=(s,t={},e)=>(e.type=Do.DSV,uH(s)),FR=(s,t={},e)=>(e.type=Do.DSV,gH(s));function _H(s){if(!s)throw new Error("geojson is required");switch(s.type){case"Feature":return zR(s);case"FeatureCollection":return mH(s);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return sS(s);default:throw new Error("unknown GeoJSON type")}}function zR(s){var t={type:"Feature"};return Object.keys(s).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:t[e]=s[e]}}),t.properties=HR(s.properties),t.geometry=sS(s.geometry),t}function HR(s){var t={};return s&&Object.keys(s).forEach(function(e){var i=s[e];typeof i=="object"?i===null?t[e]=null:Array.isArray(i)?t[e]=i.map(function(n){return n}):t[e]=HR(i):t[e]=i}),t}function mH(s){var t={type:"FeatureCollection"};return Object.keys(s).forEach(function(e){switch(e){case"type":case"features":return;default:t[e]=s[e]}}),t.features=s.features.map(function(e){return zR(e)}),t}function sS(s){var t={type:s.type};return s.bbox&&(t.bbox=s.bbox),s.type==="GeometryCollection"?(t.geometries=s.geometries.map(function(e){return sS(e)}),t):(t.coordinates=jR(s.coordinates),t)}function jR(s){var t=s;return typeof t[0]!="object"?t.slice():t.map(function(e){return jR(e)})}function ud(s){if(Array.isArray(s))return s;if(s.type==="Feature"){if(s.geometry!==null)return s.geometry.coordinates}else if(s.coordinates)return s.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function My(s){for(var t=ud(s),e=0,i=1,n,r;i0}function ZA(s,t){if(s.type==="Feature")t(s,0);else if(s.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&&(s=_H(s));var n=[];switch(s.type){case"GeometryCollection":return rS(s,function(r){Jp(r,e)}),s;case"FeatureCollection":return ZA(s,function(r){ZA(Jp(r,e),function(a){n.push(a)})}),qE(n)}return Jp(s,e)}function Jp(s,t){var e=s.type==="Feature"?s.geometry.type:s.type;switch(e){case"GeometryCollection":return rS(s,function(i){Jp(i,t)}),s;case"LineString":return JA(ud(s),t),s;case"Polygon":return QA(ud(s),t),s;case"MultiLineString":return ud(s).forEach(function(i){JA(i,t)}),s;case"MultiPolygon":return ud(s).forEach(function(i){QA(i,t)}),s;case"Point":case"MultiPoint":return s}}function JA(s,t){My(s)===t&&s.reverse()}function QA(s,t){My(s[0])!==t&&s[0].reverse();for(var e=1;e{if(s.geometry.type.startsWith("Multi")){const t=bH(s).features[0];return Object.assign(Object.assign({},t),t.properties)}return Object.assign(Object.assign({},s),s.properties)},xH=s=>{const t=[];return s.forEach(e=>{e.type==="FeatureCollection"?e.features.forEach(i=>{t.push(ek(i))}):t.push(ek(e))}),t},WR=(s,t={},e)=>{e.type=Do.GEO;const i=vm(VR,t),{centroid:n,name:r,bbox:a,rewind:o}=i;if(Array.isArray(s))return xH(s);let l=s.features;return o&&(l=yH(s,{reverse:!Et(o)||o.reverse}).features),l.forEach(h=>{if(n){const d=tk.centroid(h);h.centroidX=d[0],h.centroidY=d[1]}if(r&&(h.name=h.properties.name),a){const d=tk.bounds(h);h.bbox=d}}),s.features=l,s},SH={},AH=(s,t,e)=>{e.type=Do.GEO;const i=vm(VR,SH,t),{object:n}=i;if(!at(n))throw new TypeError("Invalid object: must be a string!");const r=Kz(s,s.objects[n]);return WR(r,i,e)},ym=(s,t,e)=>{const i=!ge(t==null?void 0:t.dependencyUpdate)||(t==null?void 0:t.dependencyUpdate);if(!s||!G(s))throw new TypeError("Invalid data: must be DataView array!");return G(e.rawData)&&e.rawData.forEach(n=>{n.target&&(n.target.removeListener("change",e.reRunAllTransform),n.target.removeListener("markRunning",e.markRunning))}),i&&s.forEach(n=>{n.target.addListener("change",e.reRunAllTransform),n.target.addListener("markRunning",e.markRunning)}),s};let q0=0;const kH=1e8;function GR(s="dataset"){return q0>kH&&(q0=0),s+"_"+q0++}class Va{constructor(t){var e;let i;this.options=t,this.isDataSet=!0,this.transformMap={},this.parserMap={},this.dataViewMap={},this.target=new il,i=t!=null&&t.name?t.name:GR("dataset"),this.name=i,this._logger=(e=t==null?void 0:t.logger)!==null&&e!==void 0?e:Lt.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 n=this._callMap.get(i);n||(n=()=>{t.some(r=>r.isRunning)||i()}),t.forEach(r=>{r.target.addListener(e,n)}),this._callMap.set(i,n)}allDataViewAddListener(t,e){this.multipleDataViewAddListener(Object.values(this.dataViewMap),t,e)}multipleDataViewRemoveListener(t,e,i){if(this._callMap){const n=this._callMap.get(i);n&&t.forEach(r=>{r.target.removeListener(e,n)}),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 Z0="_data-view-diff-rank";class $t{constructor(t,e){let i;this.dataSet=t,this.options=e,this.isDataView=!0,this.target=new il,this.parseOption=null,this.transformsArr=[],this.isRunning=!1,this.rawData={},this.history=!1,this.parserData={},this.latestData={},this._fields=null,this.reRunAllTransform=(n={pushHistory:!0,emitMessage:!0})=>(this.isRunning=!0,this.resetTransformData(),this.transformsArr.forEach(r=>{this.executeTransform(r,{pushHistory:n.pushHistory,emitMessage:!1}),this.isLastTransform(r)&&this.diffLastData()}),this.isRunning=!1,n.emitMessage!==!1&&this.target.emit("change",[]),this),this.markRunning=()=>{this.isRunning=!0,this.target.emit("markRunning",[])},i=e!=null&&e.name?e.name:GR("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 n;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=((n=this.dataSet.getParser(e.type))!==null&&n!==void 0?n: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 n=this.transformsArr.findIndex(r=>r.type===t.type);n>=0&&(i=!1,this.transformsArr[n].options.fields=this._fields)}if(i&&this.transformsArr.push(t),e){const n=this.isLastTransform(t);this.executeTransform(t),n&&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,n;return((i=t.level)!==null&&i!==void 0?i:0)-((n=e.level)!==null&&n!==void 0?n:0)})}executeTransform(t,e={pushHistory:!0,emitMessage:!0}){const{pushHistory:i,emitMessage:n}=e,r=this.dataSet.getTransform(t.type)(this.latestData,t.options);this.history&&i!==!1&&this.historyData.push(r),this.latestData=r,n!==!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[Z0]=e,this._diffMap.set(this._diffKeys.reduce((n,r)=>n+i[r],""),i)}),this.latestDataAUD={add:Array.from(this.latestData),del:[],update:[]};else{let i;this.latestDataAUD={add:[],del:[],update:[]},this.latestData.forEach(n=>{n[Z0]=e,i=this._diffKeys.reduce((r,a)=>r+n[a],""),this._diffMap.get(i)?this.latestDataAUD.update.push(n):this.latestDataAUD.add.push(n),this._diffMap.set(i,n)}),this._diffMap.forEach((n,r)=>{n[Z0]n.type==="fields");!P(this._fields)&&P(i)?(this.dataSet.registerTransform("fields",IR),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}}const rm=class rm{static GenAutoIncrementId(){return rm.auto_increment_id++}};S(rm,"auto_increment_id",0);let Ze=rm;class Ct{constructor(t){S(this,"id");S(this,"registry");this.id=Ze.GenAutoIncrementId(),this.registry=t}}const bm="named",NR="inject",UR="multi_inject",$R="inversify:tagged",YR="inversify:paramtypes";class aS{constructor(t,e){S(this,"key");S(this,"value");this.key=t,this.value=e}toString(){return this.key===bm?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}}var ik={};const Xl=function(s){var t;return function(e){const i=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",r=n&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",a=n&&Symbol.iterator!==void 0?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",l={__proto__:[]}instanceof Array,h=!o&&!l,d={create:o?function(){return J(Object.create(null))}:l?function(){return J({__proto__:null})}:function(){return J({})},has:h?function($,Z){return i.call($,Z)}:function($,Z){return Z in $},get:h?function($,Z){return i.call($,Z)?$[Z]:void 0}:function($,Z){return $[Z]}},c=Object.getPrototypeOf(Function),u=typeof process=="object"&&ik&&ik.REFLECT_METADATA_USE_MAP_POLYFILL==="true",p=u||typeof Map!="function"||typeof Map.prototype.entries!="function"?st():Map,g=((u||typeof Set!="function"||typeof Set.prototype.entries!="function")&&ht(),new(u||typeof WeakMap!="function"?ut():WeakMap));function f($,Z,X,dt){if(!I(X))throw new TypeError;return k($,Z,X,dt)}function _($,Z,X){if(!I(Z))throw new TypeError;return w(X)||(X=z(X)),b($,Z,X)}function m($,Z,X){if(!I(Z))throw new TypeError;return w(X)||(X=z(X)),x($,Z,X)}function y($,Z,X){if(!I(Z))throw new TypeError;return w(X)||(X=z(X)),A($,Z,X)}function v($,Z,X){let dt=g.get($);if(w(dt)){if(!X)return;dt=new p,g.set($,dt)}let ct=dt.get(Z);if(w(ct)){if(!X)return;ct=new p,dt.set(Z,ct)}return ct}function b($,Z,X){if(x($,Z,X))return!0;const dt=j(Z);return!C(dt)&&b($,dt,X)}function x($,Z,X){const dt=v(Z,X,!1);return!w(dt)&&L(dt.has($))}function A($,Z,X){if(x($,Z,X))return T($,Z,X);const dt=j(Z);return C(dt)?void 0:A($,dt,X)}function T($,Z,X){const dt=v(Z,X,!1);if(!w(dt))return dt.get($)}function k($,Z,X,dt){v(X,dt,!0).set($,Z)}function M($){if($===null)return 1;switch(typeof $){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return $===null?1:6;default:return 6}}function w($){return $===void 0}function C($){return $===null}function R($){return typeof $=="symbol"}function I($){return typeof $=="object"?$!==null:typeof $=="function"}function O($,Z){switch(M($)){case 0:case 1:case 2:case 3:case 4:case 5:return $}const X="string",dt=et($,r);if(dt!==void 0){const ct=dt.call($,X);if(I(ct))throw new TypeError;return ct}return B($)}function B($,Z){{const X=$.toString;if(K(X)){const ct=X.call($);if(!I(ct))return ct}const dt=$.valueOf;if(K(dt)){const ct=dt.call($);if(!I(ct))return ct}}throw new TypeError}function L($){return!!$}function F($){return""+$}function z($){const Z=O($);return R(Z)?Z:F(Z)}function K($){return typeof $=="function"}function et($,Z){const X=$[Z];if(X!=null){if(!K(X))throw new TypeError;return X}}function j($){const Z=Object.getPrototypeOf($);if(typeof $!="function"||$===c||Z!==c)return Z;const X=$.prototype,dt=X&&Object.getPrototypeOf(X);if(dt==null||dt===Object.prototype)return Z;const ct=dt.constructor;return typeof ct!="function"||ct===$?Z:ct}function st(){const $={},Z=[],X=function(){function ot(yt,St,Dt){this._index=0,this._keys=yt,this._values=St,this._selector=Dt}return ot.prototype["@@iterator"]=function(){return this},ot.prototype[a]=function(){return this},ot.prototype.next=function(){const yt=this._index;if(yt>=0&&yt=this._keys.length?(this._index=-1,this._keys=Z,this._values=Z):this._index++,{value:St,done:!1}}return{value:void 0,done:!0}},ot.prototype.throw=function(yt){throw this._index>=0&&(this._index=-1,this._keys=Z,this._values=Z),yt},ot.prototype.return=function(yt){return this._index>=0&&(this._index=-1,this._keys=Z,this._values=Z),{value:yt,done:!0}},ot}();return function(){function ot(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ot.prototype.has=function(yt){return this._find(yt,!1)>=0},ot.prototype.get=function(yt){const St=this._find(yt,!1);return St>=0?this._values[St]:void 0},ot.prototype.set=function(yt,St){const Dt=this._find(yt,!0);return this._values[Dt]=St,this},ot.prototype.delete=function(yt){const St=this._find(yt,!1);if(St>=0){const Dt=this._keys.length;for(let At=St+1;At{MH(t,e,i,s)}}function KR(s){return t=>(e,i,n)=>XR(new aS(s,t))(e,i,n)}const Bt=KR(NR),qR=KR(UR);function gt(){return function(s){return Xl.defineMetadata(YR,null,s),s}}function fi(s){return XR(new aS(bm,s))}const Fo={Singleton:"Singleton",Transient:"Transient"},da={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};class oS{constructor(t,e){S(this,"id");S(this,"moduleId");S(this,"activated");S(this,"serviceIdentifier");S(this,"implementationType");S(this,"cache");S(this,"dynamicValue");S(this,"scope");S(this,"type");S(this,"factory");S(this,"provider");S(this,"constraint");this.id=Ze.GenAutoIncrementId(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=da.Invalid,this.constraint=i=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.dynamicValue=null}clone(){const t=new oS(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 wH{getConstructorMetadata(t){return{compilerGeneratedMetadata:Xl.getMetadata(YR,t),userGeneratedMetadata:Xl.getMetadata($R,t)||{}}}getPropertiesMetadata(t){throw new Error("暂未实现")}}const CH=s=>t=>{const e=i=>{if(i==null)return!1;if(i.key===s&&i.value===t)return!0;if(i.constructorArgsMetadata==null)return!1;const n=i.constructorArgsMetadata;for(let r=0;re.container.get(t))}}class RH{constructor(t){S(this,"id");S(this,"options");S(this,"_bindingDictionary");S(this,"_metadataReader");const e=t||{};e.defaultScope=e.defaultScope||Fo.Transient,this.options=e,this.id=Ze.GenAutoIncrementId(),this._bindingDictionary=new Map,this._metadataReader=new wH}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 n=this._getNotAllArgs(t,!1,e,i);return this._get(n)}getNamed(t,e){return this.getTagged(t,bm,e)}isBound(t){return this._bindingDictionary.has(t)}bind(t){const e=this.options.defaultScope,i=new oS(t,e),n=this._bindingDictionary.get(t)||[];return n.push(i),this._bindingDictionary.set(t,n),new EH(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),n=()=>a=>this.isBound(a),r=a=>o=>{const l=this.rebind(o);return t(l,a),l};return a=>({bindFunction:e(a),isboundFunction:n(),rebindFunction:r(a),unbindFunction:i(),unbindAsyncFunction:o=>null})}_getNotAllArgs(t,e,i,n){return{avoidConstraints:!1,isMultiInject:e,serviceIdentifier:t,key:i,value:n}}_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),n=Object.keys(i),r=[];for(let a=0;a{l[p.key]=p.value});const h={inject:l[NR],multiInject:l[UR]},d=h.inject||h.multiInject,c={serviceIdentifier:d,constructorArgsMetadata:o},u={injectIdentifier:d,metadata:o,bindings:this._bindingDictionary.get(d).filter(p=>p.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 da.ConstantValue:case da.Function:e=t.cache;break;case da.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 ZR{constructor(t,e){S(this,"caches");S(this,"serviceIdentifier");S(this,"container");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 Bi(s,t){s(ii).toDynamicValue(({container:e})=>new ZR(t,e)).inSingletonScope().whenTargetNamed(t)}function BH(s,t){s(ii).toDynamicValue(({container:e})=>new ZR(t,e)).whenTargetNamed(t)}class IH{constructor(t,e){S(this,"_args");S(this,"name");S(this,"taps");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(n=>n.name!==i&&(!e||n.fn===e)))}_parseOptions(t,e,i){let n;if(typeof e=="string")n={name:e.trim()};else if(typeof e!="object"||e===null)throw new Error("Invalid tap options");if(typeof n.name!="string"||n.name==="")throw new Error("Missing name for tap");return n=Object.assign({type:t,fn:i},n),n}_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 n=this.taps.length;for(;n>0;){n--;const r=this.taps[n];this.taps[n+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)){n++;break}}this.taps[n]=t}}class jn extends IH{call(...t){this.taps.map(e=>e.fn).forEach(e=>e(...t))}}const xm=Symbol.for("EnvContribution"),lS=Symbol.for("VGlobal");var LH=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},OH=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},nk=function(s,t){return function(e,i){t(e,i,s)}};let wy=class{constructor(s){S(this,"contributions");S(this,"id");S(this,"_env");S(this,"_isSafari");S(this,"_isChrome");S(this,"envContribution");S(this,"optimizeVisible");S(this,"envParams");this.contributions=s,this.id=Ze.GenAutoIncrementId(),this.hooks={onSetEnv:new jn(["lastEnv","env","global"])},this.measureTextMethod="native",this.optimizeVisible=!1}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(s){this._env||this.setEnv("browser"),this.envContribution.supportEvent=s}get supportsTouchEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents}set supportsTouchEvents(s){this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents=s}get supportsPointerEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents}set supportsPointerEvents(s){this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents=s}get supportsMouseEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents}set supportsMouseEvents(s){this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents=s}get applyStyles(){return this._env||this.setEnv("browser"),this.envContribution.applyStyles}set applyStyles(s){this._env||this.setEnv("browser"),this.envContribution.applyStyles=s}bindContribution(s){const t=[];if(this.contributions.getContributions().forEach(e=>{const i=e.configure(this,s);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(s,t){if(t&&t.force===!0||this._env!==s)return this.deactiveCurrentEnv(),this.activeEnv(s,t)}deactiveCurrentEnv(){this.envContribution&&this.envContribution.release()}activeEnv(s,t){const e=this._env;this._env=s;const i=this.bindContribution(t);if(i&&i.then)return i.then(()=>{this.envParams=t,this.hooks.onSetEnv.call(e,s,this)});this.envParams=t,this.hooks.onSetEnv.call(e,s,this)}setActiveEnvContribution(s){this.envContribution=s}createCanvas(s){return this._env||this.setEnv("browser"),this.envContribution.createCanvas(s)}createOffscreenCanvas(s){return this._env||this.setEnv("browser"),this.envContribution.createOffscreenCanvas(s)}releaseCanvas(s){return this._env||this.setEnv("browser"),this.envContribution.releaseCanvas(s)}addEventListener(s,t,e){return this._env||this.setEnv("browser"),this.envContribution.addEventListener(s,t,e)}removeEventListener(s,t,e){return this._env||this.setEnv("browser"),this.envContribution.removeEventListener(s,t,e)}dispatchEvent(s){return this._env||this.setEnv("browser"),this.envContribution.dispatchEvent(s)}getRequestAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getRequestAnimationFrame()}getCancelAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getCancelAnimationFrame()}getElementById(s){return this._env||this.setEnv("browser"),this.envContribution.getElementById?this.envContribution.getElementById(s):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(s,t){return this._env||this.setEnv("browser"),this.envContribution.mapToCanvasPoint?this.envContribution.mapToCanvasPoint(s,t):null}loadImage(s){return this._env||this.setEnv("browser"),this.envContribution.loadImage(s)}loadSvg(s){return this._env||this.setEnv("browser"),this.envContribution.loadSvg(s)}loadJson(s){return this._env||this.setEnv("browser"),this.envContribution.loadJson(s)}loadArrayBuffer(s){return this._env||this.setEnv("browser"),this.envContribution.loadArrayBuffer(s)}loadBlob(s){return this._env||this.setEnv("browser"),this.envContribution.loadBlob(s)}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(s){return this._env||this.setEnv("browser"),this.envContribution.getNativeAABBBounds(s)}removeDom(s){return this._env||this.setEnv("browser"),this.envContribution.removeDom(s)}createDom(s){return this._env||this.setEnv("browser"),this.envContribution.createDom(s)}updateDom(s,t){return this._env||this.setEnv("browser"),this.envContribution.updateDom(s,t)}getElementTop(s,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTop(s,t)}getElementLeft(s,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementLeft(s,t)}getElementTopLeft(s,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTopLeft(s,t)}};wy=LH([gt(),nk(0,Bt(ii)),nk(0,fi(xm)),OH("design:paramtypes",[Object])],wy);const DH=li-1e-8;class JR{constructor(t){S(this,"bounds");this.init(t)}init(t){this.bounds=t}arc(t,e,i,n,r,a){if(Math.abs(r-n)>DH)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,p=1/0,g=-1/0;function f(_){h=i*Math.cos(_),d=i*Math.sin(_),hu&&(u=h),dg&&(g=d)}if(f(n),f(r),r!==n)if((n%=li)<0&&(n+=li),(r%=li)<0&&(r+=li),rr;++l,o-=ts)f(o);else for(o=n-n%ts+ts,l=0;l<4&&ot.getLength())}getPointAt(t){return{x:0,y:0}}getLength(){return 0}getBounds(){return this.bounds}}const zH=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,HH={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},It={A:0,AT:1,C:2,Z:3,E:4,L:5,M:6,Q:7,R:8};let J0,sk,mp,rk,Q0,vp;function jH(s){if(!s)return[];const t=s.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);if(t===null)return[];let e,i;const n=[];for(let r=0,a=t.length;rvp){let o;for(let l=1,h=e.length;l1&&(g=Math.sqrt(g),e*=g,i*=g);const f=c/e,_=d/e,m=-d/i,y=c/i,v=f*o+_*l,b=m*o+y*l,x=f*s+_*t,A=m*s+y*t;let T=1/((x-v)*(x-v)+(A-b)*(A-b))-.25;T<0&&(T=0);let k=Math.sqrt(T);r===n&&(k=-k);const M=.5*(v+x)-k*(A-b),w=.5*(b+A)+k*(x-v),C=Math.atan2(b-w,v-M);let R=Math.atan2(A-w,x-M)-C;R<0&&r===1?R+=li:R>0&&r===0&&(R-=li);const I=Math.ceil(Math.abs(R/(ts+.001))),O=[];for(let B=0;B{const o=Math.abs(e-t),l=4*Math.tan(o/4)/3,h=et.arc(s[1]*n+e,s[2]*r+i,s[3]*(n+r)/2,s[4],s[5],s[6],a),(s,t,e,i,n,r,a)=>t.arcTo(s[1]*n+e,s[2]*r+i,s[3]*n+e,s[4]*r+i,s[5]*(n+r)/2,a),(s,t,e,i,n,r,a)=>t.bezierCurveTo(s[1]*n+e,s[2]*r+i,s[3]*n+e,s[4]*r+i,s[5]*n+e,s[6]*r+i,a),(s,t,e,i)=>t.closePath(),(s,t,e,i,n,r)=>t.ellipse(s[1]*n+e,s[2]*r+i,s[3]*n,s[4]*r,s[5],s[6],s[7],s[8]),(s,t,e,i,n,r,a)=>t.lineTo(s[1]*n+e,s[2]*r+i,a),(s,t,e,i,n,r,a)=>t.moveTo(s[1]*n+e,s[2]*r+i,a),(s,t,e,i,n,r,a)=>t.quadraticCurveTo(s[1]*n+e,s[2]*r+i,s[3]*n+e,s[4]*r+i,a),(s,t,e,i,n,r,a)=>t.rect(s[1]*n+e,s[2]*r+i,s[3]*n,s[4]*r,a)];function Mr(s,t,e=0,i=0,n=1,r=1,a){for(let o=0;oe+i.getLength(),0)),this.length}}class $H extends hS{bezierCurveTo(t,e,i,n,r,a,o,l){return super.bezierCurveTo(e,t,n,i,a,r,o,l)}lineTo(t,e,i,n){return super.lineTo(e,t,i,n)}moveTo(t,e,i){return super.moveTo(e,t,i)}clear(){return super.clear()}}function Eh(s,t,e=1){let i=!1;for(let n=0,r=t.length;n<=r;n++)n>=r===i&&((i=!i)?s.lineStart():s.lineEnd()),i&&s.point(t[n])}function Pu(s,t,e){const i=t??(Ut(e[e.length-1].x-e[0].x)>Ut(e[e.length-1].y-e[0].y)?ye.ROW:ye.COLUMN);return s==="monotoneY"?new $H(s,i):new hS(s,i)}class eB{constructor(t,e){S(this,"_lastDefined");S(this,"startPoint");S(this,"_x");S(this,"_y");S(this,"_x0");S(this,"_x1");S(this,"_y0");S(this,"_y1");S(this,"_line");S(this,"_point");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 Eu(s,t={}){const{direction:e,startPoint:i}=t;if(s.length<2-+!!i)return null;const n=Pu("linear",e,s);return YH(new eB(n,i),s),n}function YH(s,t){return Eh(s,t,1)}function hk(s,t,e,i,n){s.context.bezierCurveTo((2*s._x0+s._x1)/3,(2*s._y0+s._y1)/3,(s._x0+2*s._x1)/3,(s._y0+2*s._y1)/3,(s._x0+4*s._x1+t)/6,(s._y0+4*s._y1+e)/6,i,s.lastPoint1)}class XH{constructor(t,e){S(this,"_lastDefined1");S(this,"_lastDefined2");S(this,"startPoint");S(this,"lastPoint0");S(this,"lastPoint1");S(this,"_x");S(this,"_y");S(this,"_x0");S(this,"_x1");S(this,"_y0");S(this,"_y1");S(this,"_line");S(this,"_point");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&&hk(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:hk(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 KH(s,t){return Eh(s,t,2)}function iB(s,t={}){const{direction:e,startPoint:i}=t;if(s.length<2-+!!i)return null;if(s.length<3-+!!i)return Eu(s,t);const n=Pu("basis",e,s);return KH(new XH(n,i),s),n}function dk(s){return s<0?-1:1}function ck(s,t,e){const i=s._x1-s._x0,n=t-s._x1,r=(s._y1-s._y0)/(i||Number(n<0&&-0)),a=(e-s._y1)/(n||Number(i<0&&-0)),o=(r*n+a*i)/(i+n);return(dk(r)+dk(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(o))||0}function uk(s,t){const e=s._x1-s._x0;return e?(3*(s._y1-s._y0)/e-t)/2:t}function tv(s,t,e,i,n){const r=s._x0,a=s._y0,o=s._x1,l=s._y1,h=(o-r)/3;s.context.bezierCurveTo(r+h,a+h*t,o-h,l-h*e,o,l,i,s.lastPoint1)}class nB{constructor(t,e){S(this,"_lastDefined1");S(this,"_lastDefined2");S(this,"startPoint");S(this,"lastPoint0");S(this,"lastPoint1");S(this,"_x");S(this,"_y");S(this,"_x0");S(this,"_x1");S(this,"_y0");S(this,"_y1");S(this,"_line");S(this,"_point");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:tv(this,this._t0,uk(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,n=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(i,n,this._lastDefined1!==!1&&this._lastDefined2!==!1,t):this.context.moveTo(i,n,t);break;case 1:this._point=2;break;case 2:this._point=3,tv(this,uk(this,e=ck(this,i,n)),e,this._lastDefined1!==!1&&this._lastDefined2!==!1);break;default:tv(this,this._t0,e=ck(this,i,n),this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=n,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 qH extends nB{constructor(t,e){super(t,e)}point(t){return super.point({y:t.x,x:t.y,defined:t.defined})}}function ZH(s,t){return Eh(s,t,2)}function sB(s,t={}){const{direction:e,startPoint:i}=t;if(s.length<2-+!!i)return null;if(s.length<3-+!!i)return Eu(s,t);const n=Pu("monotoneX",e,s);return ZH(new nB(n,i),s),n}function JH(s,t){return Eh(s,t,2)}function rB(s,t={}){const{direction:e,startPoint:i}=t;if(s.length<2-+!!i)return null;if(s.length<3-+!!i)return Eu(s,t);const n=Pu("monotoneY",e,s);return JH(new qH(n,i),s),n}let QH=class{constructor(t,e=.5,i){S(this,"_lastDefined");S(this,"startPoint");S(this,"lastPoint");S(this,"_x");S(this,"_y");S(this,"_x0");S(this,"_x1");S(this,"_y0");S(this,"_y1");S(this,"_line");S(this,"_point");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 n=this._x*(1-this._t)+e*this._t;this.context.lineTo(n,this._y,this._lastDefined!==!1&&t.defined!==!1,this.lastPoint),this.context.lineTo(n,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 Kl(s,t,e={}){const{direction:i,startPoint:n}=e;if(s.length<2-+!!n)return null;const r=new hS("step",i??(Ut(s[s.length-1].x-s[0].x)>Ut(s[s.length-1].y-s[0].y)?ye.ROW:ye.COLUMN));return tj(new QH(r,t,n),s),r}function tj(s,t){return Eh(s,t,1)}class ej extends eB{lineEnd(){this.context.closePath()}}function aB(s,t={}){const{direction:e,startPoint:i}=t;if(s.length<2-+!!i)return null;const n=Pu("linear",e,s);return ij(new ej(n,i),s),n}function ij(s,t){return Eh(s,t,1)}function Ry(s,t,e){switch(t){case"linear":default:return Eu(s,e);case"basis":return iB(s,e);case"monotoneX":return sB(s,e);case"monotoneY":return rB(s,e);case"step":return Kl(s,.5,e);case"stepBefore":return Kl(s,0,e);case"stepAfter":return Kl(s,1,e);case"linearClosed":return aB(s,e)}}class ti extends FH{constructor(e){super();S(this,"commandList",[]);S(this,"_boundsContext");S(this,"_ctx");S(this,"direction");S(this,"transformCbList");S(this,"toStringCbList");e&&(this._ctx=e),this._boundsContext=new JR(this.bounds)}setCtx(e){this._ctx=e}moveTo(e,i){return this.commandList.push([It.M,e,i]),this._ctx&&this._ctx.moveTo(e,i),this}lineTo(e,i){return this.commandList.push([It.L,e,i]),this._ctx&&this._ctx.lineTo(e,i),this}quadraticCurveTo(e,i,n,r){return this.commandList.push([It.Q,e,i,n,r]),this._ctx&&this._ctx.quadraticCurveTo(e,i,n,r),this}bezierCurveTo(e,i,n,r,a,o){return this.commandList.push([It.C,e,i,n,r,a,o]),this._ctx&&this._ctx.bezierCurveTo(e,i,n,r,a,o),this}arcTo(e,i,n,r,a){return this.commandList.push([It.AT,e,i,n,r,a]),this._ctx&&this._ctx.arcTo(e,i,n,r,a),this}ellipse(e,i,n,r,a,o,l,h){return this.commandList.push([It.E,e,i,n,r,a,o,l,h]),this._ctx&&this._ctx.ellipse(e,i,n,r,a,o,l,h),this}rect(e,i,n,r){return this.commandList.push([It.R,e,i,n,r]),this._ctx&&this._ctx.rect(e,i,n,r),this}arc(e,i,n,r,a,o){return this.commandList.push([It.A,e,i,n,r,a,o]),this._ctx&&this._ctx.arc(e,i,n,r,a,o),this}closePath(){return this.commandList.push([It.Z]),this._ctx&&this._ctx.closePath(),this}addCurve(e){this.curves.push(e)}clear(){this.transformCbList=null,this.commandList.length=0,this.curves.length=0}beginPath(){this.clear()}toString(){if(!this.toStringCbList){const n=[];n[It.M]=r=>`M${r[1]} ${r[2]}`,n[It.L]=r=>`L${r[1]} ${r[2]}`,n[It.Q]=r=>`Q${r[1]} ${r[2]} ${r[3]} ${r[4]}`,n[It.C]=r=>`C${r[1]} ${r[2]} ${r[3]} ${r[4]} ${r[5]} ${r[6]}`,n[It.A]=r=>{const a=[];Qp(a,r[4],r[5],r[1],r[2],r[3],r[3]);let o="";for(let l=0;l`M${r[1]} ${r[2]} h${r[3]} v${r[4]} H${r[1]}Z`,n[It.Z]=r=>"Z",this.toStringCbList=n}const e=this.toStringCbList;let i="";return this.commandList.forEach(n=>{i+=e[n[0]](n)}),i}fromString(e,i,n,r,a){this.clear();const o=jH(e);return this._runCommandStrList(o,i,n,r,a),this._updateBounds(),this}fromLine(e){const{points:i,curveType:n,clipRangeByDimension:r}=e.attribute;if(!i)return;const a=Ry(i,n);r==="x"?this.direction=ye.ROW:r==="y"?this.direction=ye.COLUMN:r==="auto"&&(this.direction=a.direction),this.curves=a.curves}fromCustomPath2D(e,i,n,r,a){return this.clear(),this._runCommandList(e.commandList,i,n,r,a),this._updateBounds(),this}transform(e,i,n,r){const a=this.commandList;if(!this.transformCbList){const o=[];o[It.M]=this.moveToTransform,o[It.L]=this.lineToTransform,o[It.Q]=this.quadraticCurveToTransform,o[It.C]=this.bezierCurveToTransform,o[It.AT]=this.arcToTransform,o[It.E]=this.ellipseTransform,o[It.R]=this.rectTransform,o[It.A]=this.arcTransform,o[It.Z]=this.closePathTransform,this.transformCbList=o}a.forEach(o=>{this.transformCbList[o[0]](o,e,i,n,r)}),this._updateBounds()}moveToTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n}lineToTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n}quadraticCurveToTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*r+i,e[4]=e[4]*a+n}bezierCurveToTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*r+i,e[4]=e[4]*a+n,e[5]=e[5]*r+i,e[6]=e[6]*a+n}arcToTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*r+i,e[4]=e[4]*a+n,e[5]=e[5]*(r+a)/2}ellipseTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*r,e[4]=e[4]*a}rectTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*r,e[4]=e[4]*a}arcTransform(e,i,n,r,a){e[1]=e[1]*r+i,e[2]=e[2]*a+n,e[3]=e[3]*(r+a)/2}closePathTransform(){}_runCommandStrList(e,i=0,n=0,r=1,a=1){let o,l,h,d,c,u=null,p=0,g=0,f=0,_=0;for(let m=0,y=e.length;mo.slice())}_updateBounds(){this.bounds.clear(),Mr(this.commandList,this._boundsContext)}release(){this.commandList=[],this._boundsContext=null,this._ctx=null}getLength(){if(this.direction===ye.COLUMN){if(!this.curves.length)return 0;const e=this.curves[0],i=this.curves[this.curves.length-1];return Ut(e.p0.y-i.p1.y)}if(this.direction===ye.ROW){if(!this.curves.length)return 0;const e=this.curves[0],i=this.curves[this.curves.length-1];return Ut(e.p0.x-i.p1.x)}return this.curves.reduce((e,i)=>e+i.getLength(),0)}getAttrAt(e){if(!this.curves)return{pos:{x:0,y:0},angle:0};let i,n=0;for(let a=0;a=e)break;n+=o}const r=(e-n)/i.getLength(this.direction);return{pos:i.getPointAt(r),angle:i.getAngleAt(r)}}}const Kn=["l",0,0,0,0,0,0,0];function nj(s,t,e){const i=Kn[0]=s[0];if(i==="a"||i==="A")Kn[1]=t*s[1],Kn[2]=e*s[2],Kn[3]=s[3],Kn[4]=s[4],Kn[5]=s[5],Kn[6]=t*s[6],Kn[7]=e*s[7];else if(i==="h"||i==="H")Kn[1]=t*s[1];else if(i==="v"||i==="V")Kn[1]=e*s[1];else for(let n=1,r=s.length;n{Lt.getInstance().warn("空函数")}},fj={...He,points:[],cornerRadius:0,closePath:!0},_j={...He,width:0,height:0,x1:0,y1:0,strokeBoundsBuffer:0,cornerRadius:0},mj={...He,symbolType:"circle",size:10,keepDirIn3d:!0},dB={...He,...ir,strokeBoundsBuffer:0,keepDirIn3d:!0},Gs={...He,...ir,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},Ic={repeatX:"no-repeat",repeatY:"no-repeat",image:"",width:0,height:0,...He,fill:!0,cornerRadius:0},vj={...Ic,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 yj{constructor(){S(this,"global");S(this,"graphicUtil");S(this,"graphicService");S(this,"transformUtil");S(this,"layerService")}}const q=new yj,dS={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"}},cB={fontSize:16,fontFamily:"sans-serif",fill:!0,stroke:!1,fontWeight:"normal",lineHeight:"normal",fontStyle:"normal",textDecoration:"none",textAlign:"left",script:"normal"},pk=/\w|\(|\)|-/,bj=/[.?!,;:/,。?!、;:]/,xj=/\S/;function Sj(s,t){const e=t&&t.fill||cB.fill;if(!e)return void(s.globalAlpha=0);const{fillOpacity:i=1,opacity:n=1}=t;s.globalAlpha=i*n,s.fillStyle=e;let r=t.fontSize||16;switch(t.script){case"super":case"sub":r*=.8}s.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:r,fontFamily:t.fontFamily||"sans-serif"})}function Aj(s,t){const e=t&&t.stroke||cB.stroke;if(!e)return void(s.globalAlpha=0);const{strokeOpacity:i=1,opacity:n=1}=t;s.globalAlpha=i*n,s.lineWidth=t&&typeof t.lineWidth=="number"?t.lineWidth:1,s.strokeStyle=e;let r=t.fontSize||16;switch(t.script){case"super":case"sub":r*=.8}s.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:r,fontFamily:t.fontFamily||"sans-serif"})}function By(s,t,e,i,n){if(!t||t<=0)return 0;const r=q.graphicUtil.textMeasure;let a=i,o=s.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=s.slice(0,a+1),d=Math.floor(r.measureText(h,e).width);for(;l>t||d<=t;){if(l>t?a--:a++,a>s.length){a=s.length;break}if(a<0){a=0;break}o=s.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=s.slice(0,a+1),d=Math.floor(r.measureText(h,e).width)}return n&&(a=tg(s,a)),a}function tg(s,t){let e=t;for(;pk.test(s[e-1])&&pk.test(s[e])||bj.test(s[e]);)if(e--,e<=0)return t;return e}function Rl(s,t){const e=q.graphicUtil.textMeasure.measureText(s,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 kj=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Iy=class{constructor(){S(this,"release");S(this,"canvas");S(this,"context")}configure(s,t){this.canvas=s.canvas,this.context=s.context,s.bindTextMeasure(this)}measureTextWidth(s,t){return this.context?(this.context.setTextStyleWithoutAlignBaseline(t),this.context.measureText(s).width):this.estimate(s,t).width}estimate(s,{fontSize:t=dB.fontSize}){let e=0,i=0;for(let n=0;n{l.width=l.direction===0?n:this.measureTextWidth(l.text,t)});const r=[];let a=0,o=0;for(;o1){const l=this._clipText(s[o].text,t,e-a,0,s[o].text.length-1,"end",!1);if(i&&l.str!==s[o].text){let h="",d=0;for(let p=0;pe)return{str:"",width:0};const r=this._clipText(s,t,e,0,s.length-1,"end",!1);if(i&&r.str!==s){const a=tg(s,r.str.length);a!==r.str.length&&(r.str=s.substring(0,a),r.width=this.measureTextWidth(r.str,t))}return r}_clipText(s,t,e,i,n,r,a){let o;if(r==="start")o=this._clipTextStart(s,t,e,i,n),a&&(o.result=a+o.str);else if(r==="middle"){const l=this._clipTextMiddle(s,t,e,"","",0,0,1);o={str:"none",width:l.width,result:l.left+a+l.right}}else o=this._clipTextEnd(s,t,e,i,n),a&&(o.result=o.str+a);return o}_clipTextEnd(s,t,e,i,n){const r=Math.floor((i+n)/2),a=s.substring(0,r+1),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=s.substring(0,r);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextEnd(s,t,e,i,r)}if(o=s.length-1)return{str:s,width:this.measureTextWidth(s,t)};const h=s.substring(0,r+2);return l=this.measureTextWidth(h,t),l>=e?{str:a,width:o}:this._clipTextEnd(s,t,e,r,n)}return{str:a,width:o}}_clipTextStart(s,t,e,i,n){const r=Math.ceil((i+n)/2),a=s.substring(r-1,s.length-1),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=s.substring(r,s.length-1);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextStart(s,t,e,r,s.length-1)}if(o=e?{str:a,width:o}:this._clipTextStart(s,t,e,i,r)}return{str:a,width:o}}_clipTextMiddle(s,t,e,i,n,r,a,o){const l=s.substring(0,o),h=this.measureTextWidth(l,t);if(h+a>e)return{left:i,right:n,width:r+a};const d=s.substring(s.length-o,s.length),c=this.measureTextWidth(d,t);return h+c>e?{left:l,right:n,width:h+a}:this._clipTextMiddle(s,t,e,l,d,h,c,o+1)}clipTextWithSuffixVertical(s,t,e,i,n,r){if(i==="")return this.clipTextVertical(s,t,e,n);if(s.length===0)return{verticalList:s,width:0};const a=this.clipTextVertical(s,t,e,n);if(a.verticalList.length===s.length&&a.verticalList[a.verticalList.length-1].width===s[s.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(s);l=this.clipTextVertical(h,t,e,n);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(s,t,e/2,n),d=this.revertVerticalList(s),c=this.clipTextVertical(d,t,e/2,n);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(s,t,e,n),l.verticalList.push({text:i,direction:1,width:o});return l.width+=o,l}revertVerticalList(s){return s.reverse().map(t=>{const e=t.text.split("").reverse().join("");return{...t,text:e}})}clipTextWithSuffix(s,t,e,i,n,r,a=!1){if(i==="")return this.clipText(s,t,e,n);if(s.length===0)return{str:"",width:0};const o=this.measureTextWidth(s,t);if(!a&&o<=e)return{str:s,width:o};const l=this.measureTextWidth(i,t);if(l>e)return{str:"",width:0};if(a&&o+l<=e)return{str:s+i,width:o+l};e-=l;const h=this._clipText(s,t,e,0,s.length-1,r,i);if(n&&h.str!==s){const d=tg(s,h.str.length);d!==h.str.length&&(h.result=s.substring(0,d),h.width=this.measureTextWidth(h.str,t))}else a&&h.str===s&&(h.result=s+i);return h.str=h.result,h.width+=l,h}};Iy=kj([gt()],Iy);var Tj=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const Ly=Symbol.for("TextMeasureContribution");let Oy=class extends Iy{};Oy=Tj([gt()],Oy);const wt=new RH,uB=Symbol.for("CanvasFactory"),Mj=Symbol.for("Context2dFactory");function Rg(s){return wt.getNamed(uB,q.global.env)(s)}class wj{constructor(){S(this,"pools",[]);S(this,"_commonCanvas");S(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=Rg({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},n=Rg({nativeCanvas:q.global.createCanvas(i),...i});return this.allocatedCanvas.push(n),n}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 lh=new wj;var Cj=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},Pj=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};const Bg=Symbol.for("VWindow"),cS=Symbol.for("WindowHandlerContribution");let Dy=class{constructor(){S(this,"_width");S(this,"_height");S(this,"_handler");S(this,"hooks",{onChange:new jn(["x","y","width","height"])});S(this,"active",()=>{const s=this.global;!s.env||this.actived||(wt.getNamed(cS,s.env).configure(this,s),this.actived=!0)});this._uid=Ze.GenAutoIncrementId(),this.global=q.global,this.postInit()}get width(){if(this._handler){const s=this._handler.getWH();return this._width=s.width}return this._width}get height(){if(this._handler){const s=this._handler.getWH();return this._height=s.height}return this._height}get dpr(){return this._handler.getDpr()}postInit(){this.global.hooks.onSetEnv.tap("window",this.active),this.active()}get style(){return this._handler.getStyle()??{}}set style(s){this._handler.setStyle(s)}create(s){this._handler.createWindow(s);const t=this._handler.getWH();this._width=t.width,this._height=t.height,s.viewBox?this.setViewBox(s.viewBox):s.canvasControled!==!1?this.setViewBox({x1:0,y1:0,x2:this._width,y2:this._height}):this.setViewBox({x1:0,y1:0,x2:s.width??this._width,y2:s.height??this._height}),this.title=this._handler.getTitle(),this.resizable=!0}setWindowHandler(s){this._handler=s}setDpr(s){return this._handler.setDpr(s)}resize(s,t){return this._handler.resizeWindow(s,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(s){return this._handler.getImageBuffer?this._handler.getImageBuffer(s):null}addEventListener(s,t,e){return this._handler.addEventListener(s,t,e)}removeEventListener(s,t,e){return this._handler.removeEventListener(s,t,e)}dispatchEvent(s){return this._handler.dispatchEvent(s)}getBoundingClientRect(){return this._handler.getBoundingClientRect()}getContainer(){return this._handler.container}clearViewBox(s){this._handler.clearViewBox(s)}setViewBox(s){this._handler.setViewBox(s)}setViewBoxTransform(s,t,e,i,n,r){this._handler.setViewBoxTransform(s,t,e,i,n,r)}getViewBox(){return this._handler.getViewBox()}getViewBoxTransform(){return this._handler.getViewBoxTransform()}pointTransform(s,t){const e=this._handler.getViewBox(),i={x:s,y:t};return this._handler.getViewBoxTransform().transformPoint({x:s,y:t},i),i.x-=e.x1,i.y-=e.y1,i}hasSubView(){const s=this._handler.getViewBox();return!(s.x1===0&&s.y1===0&&this.width===s.width()&&this.height===s.height())}isVisible(s){return this._handler.isVisible(s)}onVisibleChange(s){return this._handler.onVisibleChange(s)}getTopLeft(s){return this._handler.getTopLeft(s)}};Dy=Cj([gt(),Pj("design:paramtypes",[])],Dy);var pB=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},gB=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},gk=function(s,t){return function(e,i){t(e,i,s)}};let Fy=class{constructor(s){S(this,"contributions");S(this,"_canvas");S(this,"_context");S(this,"_textMeasure");S(this,"configured");S(this,"global");this.contributions=s,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 canvas(){return this.tryInitCanvas(),this._canvas}get context(){return this.tryInitCanvas(),this._context}get textMeasure(){return this._textMeasure||this.configure(this.global,this.global.env),this._textMeasure}configure(s,t){this.configured||(this.contributions.getContributions().forEach(e=>{e.configure(this,t)}),this.configured=!0)}tryInitCanvas(){if(!this._canvas){const s=lh.shareCanvas();this._canvas=s,this._context=s.getContext("2d")}}bindTextMeasure(s){this._textMeasure=s}measureText(s,t,e="native"){this.configure(this.global,this.global.env);const i=this.global.measureTextMethod;this.global.measureTextMethod=e;const n={width:this._textMeasure.measureTextWidth(s,t),height:t.fontSize??ir.fontSize};return this.global.measureTextMethod=i,n}createTextMeasureInstance(s,t,e){return this.configure(this.global,this.global.env),new gi({defaultFontParams:{fontFamily:ir.fontFamily,fontSize:ir.fontSize},getCanvasForMeasure:e||(()=>this.canvas),getTextBounds:void 0,specialCharSet:`-/: .,@%'"~`+gi.ALPHABET_CHAR_SET+gi.ALPHABET_CHAR_SET.toUpperCase(),...t??{}},s)}drawGraphicToCanvas(s,t,e){if(!t.defaultLayer)return null;const i=wt.get(Bg),n=s.AABBBounds,r=n.width(),a=n.height(),o=-n.x1,l=-n.y1;i.create({viewBox:{x1:o,y1:l,x2:n.x2,y2:n.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,[s],{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}};Fy=pB([gt(),gk(0,Bt(ii)),gk(0,fi(Ly)),gB("design:paramtypes",[Object])],Fy);var sa;(function(s){s[s.transform=0]="transform",s[s.matrix=1]="matrix"})(sa||(sa={}));const Qe=new Ee;let zy=class{constructor(){S(this,"matrix");S(this,"originTransform");S(this,"outSourceMatrix");S(this,"outTargetMatrix");S(this,"mode");this.matrix=new Ee}init(s){return this.mode=sa.transform,this.originTransform=s,this.matrix.reset(),this}fromMatrix(s,t){return this.mode=sa.matrix,this.outSourceMatrix=s,this.outTargetMatrix=t,this}scaleMatrix(s,t,e){const i=this.outSourceMatrix;if(Qe.setValue(i.a,i.b,i.c,i.d,i.e,i.f),this.outTargetMatrix.reset(),e){const{x:n,y:r}=e;this.outTargetMatrix.translate(n,r),this.outTargetMatrix.scale(s,t),this.outTargetMatrix.translate(-n,-r)}else this.outTargetMatrix.scale(s,t);return this.outTargetMatrix.multiply(Qe.a,Qe.b,Qe.c,Qe.d,Qe.e,Qe.f),this}rotateMatrix(s,t){const e=this.outSourceMatrix;if(Qe.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),t){const{x:i,y:n}=t;this.outTargetMatrix.translate(i,n),this.outTargetMatrix.rotate(s),this.outTargetMatrix.translate(-i,-n)}else this.outTargetMatrix.rotate(s);return this.outTargetMatrix.multiply(Qe.a,Qe.b,Qe.c,Qe.d,Qe.e,Qe.f),this}scale(s,t,e){return this.mode===sa.matrix?this.scaleMatrix(s,t,e):this}rotate(s,t){return this.mode===sa.matrix?this.rotateMatrix(s,t):this}translateMatrix(s,t){const e=this.outSourceMatrix;return Qe.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),this.outTargetMatrix.translate(s,t),this.outTargetMatrix.multiply(Qe.a,Qe.b,Qe.c,Qe.d,Qe.e,Qe.f),this}translate(s,t){return this.mode===sa.matrix?this.translateMatrix(s,t):this}simplify(s){return this.mode===sa.matrix?this.simplifyMatrix(s):this}simplifyMatrix(s){return this}};zy=pB([gt(),gB("design:paramtypes",[])],zy);const rn={arc:lj,area:hj,circle:dj,line:pj,path:gj,symbol:mj,text:dB,rect:_j,polygon:fj,richtext:Gs,richtextIcon:vj,image:Ic,group:cj,glyph:uj},iv=Object.keys(rn);function Ej(){return{arc:Object.assign({},rn.arc),area:Object.assign({},rn.area),circle:Object.assign({},rn.circle),line:Object.assign({},rn.line),path:Object.assign({},rn.path),symbol:Object.assign({},rn.symbol),text:Object.assign({},rn.text),rect:Object.assign({},rn.rect),polygon:Object.assign({},rn.polygon),richtext:Object.assign({},rn.richtext),richtextIcon:Object.assign({},rn.richtextIcon),image:Object.assign({},rn.image),group:Object.assign({},rn.group),glyph:Object.assign({},rn.glyph)}}function yp(s,t){Object.keys(t).forEach(e=>{s[e]=t[e]})}const fk=Ej();class Lc{constructor(){S(this,"combinedTheme");S(this,"userTheme");S(this,"_defaultTheme");S(this,"dirty");this.initTheme(),this.dirty=!1}initTheme(){this._defaultTheme={},iv.forEach(t=>{this._defaultTheme[t]=Object.create(fk[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 n=this.getParentWithTheme(t);if(n){const r=n.theme;(r.dirty||i)&&r.applyTheme(n,e,!0)}this.userTheme?this.doCombine(n&&n.theme.combinedTheme):(n?this.combinedTheme=n.theme.combinedTheme:(this.combinedTheme=this._defaultTheme,Lt.getInstance().warn("未知错误,走到不应该走的区域里")),this.dirty=!1)}return this.combinedTheme}doCombine(t){const e=this.userTheme,i=this.combinedTheme;iv.forEach(n=>{const r=Object.create(fk[n]);t&&t[n]&&yp(r,t[n]),i[n]&&yp(r,i[n]),e[n]&&yp(r,e[n]),this.combinedTheme[n]=r}),e.common&&iv.forEach(n=>{yp(this.combinedTheme[n],e.common)}),this.dirty=!1}setTheme(t,e){let i=this.userTheme;i?Object.keys(t).forEach(n=>{i[n]?Object.assign(i[n],t[n]):i[n]=Object.assign({},t[n])}):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 fB=new Lc;function it(s,t){return s.glyphHost?it(s.glyphHost):t?(s.isContainer,t):Rj(s)||s.attachedThemeGraphic&&it(s.attachedThemeGraphic)||fB.getTheme()}function Rj(s){let t;if(t=s.isContainer?s:s.parent,t){for(;t&&!t.theme;)t=t.parent;return t?(t.theme||t.createTheme(),t.theme.getTheme(t)):fB.getTheme()}return null}class Bj extends il{constructor(){super();S(this,"parent");S(this,"_prev");S(this,"_next");S(this,"_firstChild");S(this,"_lastChild");S(this,"_idMap");S(this,"_count");S(this,"_structEdit");S(this,"_nodeList");this._uid=Ze.GenAutoIncrementId(),this._firstChild=null,this._lastChild=null,this.parent=null,this._count=1}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}forEachChildren(e,i=!1){if(i){let n=this._lastChild,r=0;for(;n;){if(e(n,r++))return;n=n._prev}}else{let n=this._firstChild,r=0;for(;n;){if(e(n,r++))return;n=n._next}}}async forEachChildrenAsync(e,i=!1){if(i){let n=this._lastChild,r=0;for(;n;){let a=e(n,r++);if(a.then&&(a=await a),a)return;n=n._prev}}else{let n=this._firstChild,r=0;for(;n;){let a=e(n,r++);if(a.then&&(a=await a),a)return;n=n._next}}}forEach(e){return this.forEachChildren(e)}appendChild(e,i=!0){if(this._uid===e._uid)return null;if(!i&&e.isAncestorsOf(this))throw new Error("【Node::appendChild】不能将父辈元素append为子元素");return e.parent&&e.parent.removeChild(e),e.parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=this._lastChild=e,e._prev=e._next=null),this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this.setCount(e.count),this._structEdit=!0,e}appendChildArrHighPerformance(e,i=!1){return console.error("暂不支持该函数"),e}insertBefore(e,i){if(!i)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");return i.parent!==this?null:(e.parent&&e.parent.removeChild(e),e.parent=this,e._prev=i._prev,i._prev?i._prev._next=e:this._firstChild=e,i._prev=e,e._next=i,this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e)}insertAfter(e,i){if(!i)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertAfter】不能将父辈元素insert为子元素");return i.parent!==this?null:(e.parent&&e.parent.removeChild(e),e.parent=this,i._next?(i._next._prev=e,e._next=i._next):this._lastChild=e,i._next=e,e._prev=i,this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e)}insertInto(e,i){if(!this._ignoreWarn&&this._nodeList&&Lt.getInstance().warn("insertIntoKeepIdx和insertInto混用可能会存在错误"),i>=this.childrenCount)return this.appendChild(e);if(this._uid===e._uid)return null;if(e.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");if(e.parent&&e.parent.removeChild(e),e.parent=this,i===0)e._next=this._firstChild,this._firstChild&&(this._firstChild._prev=e),e._prev=null,this._firstChild=e;else{let n=this._firstChild;for(let r=0;r0&&(n=n._next)}if(!n)return null;e._next=n._next,e._prev=n,n._next=e,e._next&&(e._next._prev=e)}return this._idMap||(this._idMap=new Map),this._idMap.set(e._uid,e),this._structEdit=!0,this.setCount(e.count),e}insertIntoKeepIdx(e,i){if(this._nodeList||(this._nodeList=this.children),this._nodeList[i]){const a=this._nodeList[i];return this._nodeList.splice(i,0,e),this.insertBefore(e,a)}let n;this._nodeList[i]=e;for(let a=i-1;a>=0&&(n=this._nodeList[a],!n);a--);if(n)return n._next?this.insertBefore(e,n._next):this.appendChild(e);this._ignoreWarn=!0;const r=this.insertInto(e,0);return this._ignoreWarn=!1,r}removeChild(e){if(!this._idMap||!this._idMap.has(e._uid))return null;if(this._idMap.delete(e._uid),this._nodeList){const i=this._nodeList.findIndex(n=>n===e);i>0&&this._nodeList.splice(i,1)}return e._prev?e._prev._next=e._next:this._firstChild=e._next,e._next?e._next._prev=e._prev:this._lastChild=e._prev,e.parent=null,e._prev=null,e._next=null,this._structEdit=!0,this.setCount(-e.count),e}delete(){this.parent&&this.parent.removeChild(this)}removeAllChild(e){if(!this._idMap)return;let i=this._firstChild;for(;i;){const n=i._next;i.parent=null,i._prev=null,i._next=null,i=i._next,i=n}this._firstChild=null,this._lastChild=null,this._idMap.clear(),this._structEdit=!0,this.setCount(1-this._count)}replaceChild(e,i){throw new Error("暂不支持")}find(e,i=!1){let n=null;return this.forEachChildren((r,a)=>!(r===this||!e(r,a))&&(n=r,!0)),i&&this.forEachChildren(r=>{if(r.isContainer){const a=r.find(e,!0);if(a)return n=a,!0}return!1}),n}findAll(e,i=!1){let n=[];return this.forEachChildren((r,a)=>{r!==this&&e(r,a)&&n.push(r)}),i&&this.forEachChildren(r=>{if(r.isContainer){const a=r.findAll(e,!0);a.length&&(n=n.concat(a))}}),n}getElementById(e){return this.find(i=>i.id===e,!0)}findChildById(e){return this.getElementById(e)}findChildByUid(e){return this._idMap&&this._idMap.get(e)||null}getElementsByName(e){return this.findAll(i=>i.name===e,!0)}findChildrenByName(e){return this.getElementsByName(e)}getElementsByType(e){return this.findAll(i=>i.type===e,!0)}getChildByName(e,i=!1){return this.find(n=>n.name===e,i)}getChildAt(e){let i=this._firstChild;if(!i)return null;for(let n=0;n{if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=this.createPointerEvent(t,t.type,e);if(this.dispatchEvent(i,"pointerdown"),i.pointerType==="touch")this.dispatchEvent(i,"touchstart");else if(Qr(i.pointerType)){const n=i.button===2;this.dispatchEvent(i,n?"rightdown":"mousedown")}this.trackingData(t.pointerId).pressTargetsByButton[t.button]=i.composedPath(),this.freeEvent(i)});S(this,"onPointerMove",(t,e)=>{var o,l;if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=this.createPointerEvent(t,t.type,e),n=Qr(i.pointerType),r=this.trackingData(t.pointerId),a=this.findMountedTarget(r.overTargets);if(r.overTargets&&a&&a!==this.rootTarget&&a!==i.target){const h=t.type==="mousemove"?"mouseout":"pointerout",d=this.createPointerEvent(t,h,a||void 0);if(this.dispatchEvent(d,"pointerout"),n&&this.dispatchEvent(d,"mouseout"),!i.composedPath().includes(a)){const c=this.createPointerEvent(t,"pointerleave",a||void 0);for(c.eventPhase=c.AT_TARGET;c.target&&!i.composedPath().includes(c.target);)c.currentTarget=c.target,this.notifyTarget(c),n&&this.notifyTarget(c,"mouseleave"),c.target=c.target.parent;this.freeEvent(c)}this.freeEvent(d)}if(a!==i.target){const h=t.type==="mousemove"?"mouseover":"pointerover",d=this.clonePointerEvent(i,h);this.dispatchEvent(d,"pointerover"),n&&this.dispatchEvent(d,"mouseover");let c=a==null?void 0:a.parent;for(;c&&c!==this.rootTarget.parent&&c!==i.target;)c=c.parent;if(!c||c===this.rootTarget.parent){const u=this.clonePointerEvent(i,"pointerenter");u.eventPhase=u.AT_TARGET;let p=u.target;const g=new Set;let f=a;for(;f&&f!==this.rootTarget;)g.add(f),f=f.parent;for(;p&&p!==a&&p!==this.rootTarget.parent;)g.has(p)||(u.currentTarget=p,this.notifyTarget(u),n&&this.notifyTarget(u,"mouseenter")),p=p.parent;this.freeEvent(u)}this.freeEvent(d)}this.dispatchEvent(i,"pointermove"),i.pointerType==="touch"&&this.dispatchEvent(i,"touchmove"),n&&(this.dispatchEvent(i,"mousemove"),this.cursorTarget=i.target,this.cursor=((l=(o=i.target)==null?void 0:o.attribute)==null?void 0:l.cursor)||this.rootTarget.getCursor()),r.overTargets=i.composedPath(),this.freeEvent(i)});S(this,"onPointerOver",(t,e)=>{var o,l;if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=this.trackingData(t.pointerId),n=this.createPointerEvent(t,t.type,e),r=Qr(n.pointerType);this.dispatchEvent(n,"pointerover"),r&&this.dispatchEvent(n,"mouseover"),n.pointerType==="mouse"&&(this.cursorTarget=n.target,this.cursor=((l=(o=n.target)==null?void 0:o.attribute)==null?void 0:l.cursor)||this.rootTarget.getCursor());const a=this.clonePointerEvent(n,"pointerenter");for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==this.rootTarget.parent;)a.currentTarget=a.target,this.notifyTarget(a),r&&this.notifyTarget(a,"mouseenter"),a.target=a.target.parent;i.overTargets=n.composedPath(),this.freeEvent(n),this.freeEvent(a)});S(this,"onPointerOut",(t,e)=>{if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=this.trackingData(t.pointerId);if(i.overTargets){const n=Qr(t.pointerType),r=this.findMountedTarget(i.overTargets),a=this.createPointerEvent(t,"pointerout",r||void 0);this.dispatchEvent(a),n&&this.dispatchEvent(a,"mouseout");const o=this.createPointerEvent(t,"pointerleave",r||void 0);for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),n&&this.notifyTarget(o,"mouseleave"),o.target=o.target.parent;i.overTargets=[],this.freeEvent(a),this.freeEvent(o)}this.cursorTarget=null,this.cursor=""});S(this,"onPointerUp",(t,e)=>{if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=go.now(),n=this.createPointerEvent(t,t.type,e);if(this.dispatchEvent(n,"pointerup"),n.pointerType==="touch")this.dispatchEvent(n,"touchend");else if(Qr(n.pointerType)){const l=n.button===2;this.dispatchEvent(n,l?"rightup":"mouseup")}const r=this.trackingData(t.pointerId),a=this.findMountedTarget(r.pressTargetsByButton[t.button]);let o=a;if(a&&!n.composedPath().includes(a)){let l=a;for(;l&&!n.composedPath().includes(l);){if(n.currentTarget=l,this.notifyTarget(n,"pointerupoutside"),n.pointerType==="touch")this.notifyTarget(n,"touchendoutside");else if(Qr(n.pointerType)){const h=n.button===2;this.notifyTarget(n,h?"rightupoutside":"mouseupoutside")}l=l.parent}delete r.pressTargetsByButton[t.button],o=l}if(o){const l=this.clonePointerEvent(n,"click");l.target=o,l.path=[],r.clicksByButton[t.button]||(r.clicksByButton[t.button]={clickCount:0,target:l.target,timeStamp:i});const h=r.clicksByButton[t.button];h.target===l.target&&i-h.timeStamp<(this._config.clickInterval??200)?++h.clickCount:h.clickCount=1,h.target=l.target,h.timeStamp=i,l.detail=h.clickCount,Qr(l.pointerType)?(this.dispatchEvent(l,"click"),h.clickCount===2&&this.dispatchEvent(l,"dblclick")):l.pointerType==="touch"&&(this.dispatchEvent(l,"tap"),h.clickCount===2&&this.dispatchEvent(l,"dbltap")),this.dispatchEvent(l,"pointertap"),this.freeEvent(l)}this.freeEvent(n)});S(this,"onPointerUpOutside",(t,e)=>{if(!(t instanceof zn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const i=this.trackingData(t.pointerId),n=this.findMountedTarget(i.pressTargetsByButton[t.button]),r=this.createPointerEvent(t,t.type,e);if(n){let a=n;for(;a;)r.currentTarget=a,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch"?this.notifyTarget(r,"touchendoutside"):Qr(r.pointerType)&&this.notifyTarget(r,r.button===2?"rightupoutside":"mouseupoutside"),a=a.parent;delete i.pressTargetsByButton[t.button]}this.freeEvent(r)});S(this,"onWheel",(t,e)=>{if(!(t instanceof Oc))return void Lt.getInstance().warn("EventManager cannot map a non-wheel event as a wheel event");const i=this.createWheelEvent(t,e);this.dispatchEvent(i),this.freeEvent(i)});this.rootTarget=t,this.mappingTable={},this._config={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,n)=>i.priority-n.priority)}dispatchEvent(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.dispatch.emit(e||t.type,t)}mapEvent(t){var r,a,o,l,h,d;if(!this.rootTarget)return;const e=this.mappingTable[t.type];let i;const n=`${t.canvasX}-${t.canvasY}`;if((r=this._prePointTargetCache)!=null&&r[n]&&((o=(a=this._prePointTargetCache)==null?void 0:a[n])!=null&&o.stage)&&((h=(l=this._prePointTargetCache)==null?void 0:l[n])==null?void 0:h.stage.renderCount)===((d=this._prePointTargetCache)==null?void 0:d.stageRenderCount)?i=this._prePointTargetCache[n]:(i=this.pickTarget(t.viewX,t.viewY,t),t.pickParams||(this._prePointTargetCache={[n]:i,stageRenderCount:(i==null?void 0:i.stage.renderCount)??-1})),e)for(let c=0,u=e.length;c=0;n--)if(t.currentTarget=i[n],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=go.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 i;this.eventPool.has(t)||this.eventPool.set(t,[]);const e=((i=this.eventPool.get(t))==null?void 0:i.pop())||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e}freeEvent(t){var i;if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventManager!");const e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),(i=this.eventPool.get(e))==null||i.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 n=0,r=i.length;n{if(this.supportsTouchEvents&&t.pointerType==="touch")return;const e=this.normalizeToPointerData(t);this.autoPreventDefault&&e[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();for(let i=0,n=e.length;i{if(this.supportsTouchEvents&&t.pointerType==="touch"||this.isEventOutsideOfTargetElement(t))return;const e=this.normalizeToPointerData(t);for(let i=0,n=e.length;i{if(this.supportsTouchEvents&&t.pointerType==="touch")return;const e=this.isEventOutsideOfTargetViewPort(t)?"outside":"",i=this.normalizeToPointerData(t);for(let n=0,r=i.length;n{if(this.supportsTouchEvents&&t.pointerType==="touch")return;const e=this.normalizeToPointerData(t);for(let i=0,n=e.length;i{const e=this.normalizeWheelEvent(t);this.manager.mapEvent(e)});const{targetElement:e,resolution:i,rootNode:n,global:r,autoPreventDefault:a=!1,clickInterval:o,supportsTouchEvents:l=r.supportsTouchEvents,supportsPointerEvents:h=r.supportsPointerEvents}=t;this.manager=new Ij(n,{clickInterval:o}),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 zn,this.rootWheelEvent=new Oc,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:n}=this;if(this.currentCursor===t)return;this.currentCursor=t;const r=this.cursorStyles[t];r?typeof r=="string"&&i?n.style.cursor=r:typeof r=="function"?r(t):typeof r=="object"&&i&&Object.assign(n.style,r):i&&at(t)&&!xs(this.cursorStyles,t)&&(n.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 a;const e=(a=this.globalObj)==null?void 0:a.mapToCanvasPoint(t,this.domElement);if(e)return e;let i=0,n=0;if(t.changedTouches){const o=t.changedTouches[0]??{};i=o.clientX||0,n=o.clientY||0}else i=t.clientX||0,n=t.clientY||0;const r=this.domElement.getBoundingClientRect();return{x:i-r.left,y:n-r.top}}normalizeToPointerData(t){const e=[];if(this.supportsTouchEvents&&t.changedTouches&&t.changedTouches.length)for(let i=0,n=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}}class Lg{constructor(){S(this,"timerId");S(this,"time",0)}static Avaliable(){return!0}avaliable(){return Lg.Avaliable()}tick(t,e){this.time=Math.max(0,t+this.time),e(this,{once:!0})}tickTo(t,e){this.time=Math.max(0,t),e(this,{once:!0})}release(){this.timerId>0&&(this.timerId=-1)}getTime(){return this.time}}class Og{constructor(){S(this,"timerId")}static Avaliable(){return!0}avaliable(){return Og.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 Td{constructor(){S(this,"released")}static Avaliable(){return!!q.global.getRequestAnimationFrame()}avaliable(){return Td.Avaliable()}tick(t,e){q.global.getRequestAnimationFrame()(()=>{this.released||e(this)})}release(){this.released=!0}getTime(){return Date.now()}}var Jn;(function(s){s[s.INITIAL=0]="INITIAL",s[s.RUNNING=1]="RUNNING",s[s.PAUSE=2]="PAUSE"})(Jn||(Jn={}));class Fj{constructor(t=[]){S(this,"interval");S(this,"tickerHandler");S(this,"_mode");S(this,"status");S(this,"lastFrameTime");S(this,"tickCounts");S(this,"timelines");S(this,"autoStop");S(this,"handleTick",(t,e)=>{const{once:i=!1}=e??{};this.ifCanStop()?this.stop():(this._handlerTick(t),i||t.tick(this.interval,this.handleTick))});S(this,"_handlerTick",t=>{const e=this.tickerHandler.getTime();let i=0;this.lastFrameTime>=0&&(i=e-this.lastFrameTime),this.lastFrameTime=e,this.status===Jn.RUNNING&&(this.tickCounts++,this.timelines.forEach(n=>{n.tick(i)}))});this.init(),this.lastFrameTime=-1,this.tickCounts=0,this.timelines=t,this.autoStop=!0}set mode(t){this._mode!==t&&(this._mode=t,this.setupTickHandler())}get mode(){return this._mode}init(){this.interval=NaN,this.status=Jn.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:Td},{mode:"timeout",cons:Og},{mode:"manual",cons:Lg}];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!==Jn.INITIAL&&(this.status=Jn.PAUSE,!0)}resume(){return this.status!==Jn.INITIAL&&(this.status=Jn.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===Jn.RUNNING||!this.tickerHandler||!t&&(this.status===Jn.PAUSE||!this.timelines.length||this.timelines.reduce((e,i)=>e+i.animateCount,0)===0)?!1:(this.status=Jn.RUNNING,this.tickerHandler.tick(0,this.handleTick),!0)}stop(){this.status=Jn.INITIAL,this.setupTickHandler(),this.lastFrameTime=-1}}const Gt=class Gt{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-Gt.bounceOut(1-t)}static bounceInOut(t){return t<.5?.5*Gt.bounceIn(2*t):.5*Gt.bounceOut(2*t-1)+.5}static getElasticIn(t,e){return function(i){if(i===0||i===1)return i;const n=e/Ft*Math.asin(1/t);return-t*Math.pow(2,10*(i-=1))*Math.sin((i-n)*Ft/e)}}static getElasticOut(t,e){return function(i){if(i===0||i===1)return i;const n=e/Ft*Math.asin(1/t);return t*Math.pow(2,-10*i)*Math.sin((i-n)*Ft/e)+1}}static getElasticInOut(t,e){return function(i){const n=e/Ft*Math.asin(1/t);return(i*=2)<1?t*Math.pow(2,10*(i-=1))*Math.sin((i-n)*Ft/e)*-.5:t*Math.pow(2,-10*(i-=1))*Math.sin((i-n)*Ft/e)*.5+1}}};S(Gt,"quadIn",Gt.getPowIn(2)),S(Gt,"quadOut",Gt.getPowOut(2)),S(Gt,"quadInOut",Gt.getPowInOut(2)),S(Gt,"cubicIn",Gt.getPowIn(3)),S(Gt,"cubicOut",Gt.getPowOut(3)),S(Gt,"cubicInOut",Gt.getPowInOut(3)),S(Gt,"quartIn",Gt.getPowIn(4)),S(Gt,"quartOut",Gt.getPowOut(4)),S(Gt,"quartInOut",Gt.getPowInOut(4)),S(Gt,"quintIn",Gt.getPowIn(5)),S(Gt,"quintOut",Gt.getPowOut(5)),S(Gt,"quintInOut",Gt.getPowInOut(5)),S(Gt,"backIn",Gt.getBackIn(1.7)),S(Gt,"backOut",Gt.getBackOut(1.7)),S(Gt,"backInOut",Gt.getBackInOut(1.7)),S(Gt,"elasticIn",Gt.getElasticIn(1,.3)),S(Gt,"elasticOut",Gt.getElasticOut(1,.3)),S(Gt,"elasticInOut",Gt.getElasticInOut(1,.3*1.5));let Dc=Gt;class mB{constructor(){this.id=Ze.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===Vi.END?this.removeAnimate(e):e.status===Vi.RUNNING||e.status===Vi.INITIAL?(this.animateCount++,e.advance(t)):e.status===Vi.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 vB=new mB;class mn{constructor(t,e,i,n,r){this.from=t,this.to=e,this.duration=i,this.easing=n,this.params=r,this.updateCount=0}bind(t,e){this.target=t,this.subAnimate=e,this.onBind()}onBind(){}onFirstRun(){}onStart(){}onEnd(){}getEndProps(){}getFromProps(){return this.from}getMergedEndProps(){const t=this.getEndProps();return t?this._endProps===t?this._mergedEndProps:(this._endProps=t,void(this._mergedEndProps=Object.assign({},this.step.prev.getLastProps()??{},t))):this.step.prev?this.step.prev.getLastProps():t}update(t,e,i){if(this.updateCount===0){this.onFirstRun();const n=this.step.getLastProps();Object.keys(n).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=n[r])})}this.updateCount+=1,this.onUpdate(t,e,i),t&&this.onEnd()}}class zj extends mn{constructor(e){super(null,null,0,"linear");S(this,"cb");this.cb=e}onUpdate(e,i,n){}onStart(){this.cb()}}var er;let yB=(er=class{constructor(t=Ze.GenAutoIncrementId(),e=vB){this.id=t,this.timeline=e,this.status=Vi.INITIAL,this.tailAnimate=new _k(this),this.subAnimates=[this.tailAnimate],this.timeScale=1,this.rawPosition=-1,this._startTime=0,this._duringTime=0,this.timeline.addAnimate(this)}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=dn(i.getDuration(),e)}),this._startTime=e,this}parallel(t){return this._startTime=t.getStartTime(),this}static AddInterpolate(t,e){er.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.duration===t.duration&&this.trySetAttribute(t.getFromProps(),t.mode),this}trySetAttribute(t,e=er.mode){t&&e&oh.SET_ATTR_IMMEDIATELY&&this.target.setAttributes&&this.target.setAttributes(t,!1,{type:we.ANIMATE_PLAY})}runCb(t){const e=new zj(()=>{t(this,e.step.prev)});return this.tailAnimate.play(e),this}customInterpolate(t,e,i,n,r,a){const o=er.interpolateMap.get(t)||er.interpolateMap.get("");return!!o&&o(t,e,i,n,r,a)}pause(){this.status===Vi.RUNNING&&(this.status=Vi.PAUSED)}resume(){this.status===Vi.PAUSED&&(this.status=Vi.RUNNING)}to(t,e,i,n){if(this.tailAnimate.to(t,e,i,n),this.target){const r=this.target.stage;r&&r.renderNextFrame()}return this}from(t,e,i,n){if(this.tailAnimate.from(t,e,i,n),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 _k(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.target.onAnimateBind(this),this.subAnimates.forEach(e=>{e.bind(t)}),this}advance(t){if(this._duringTimee())),this.setPosition(this.rawPosition+t*this.timeScale)&&this.status===Vi.RUNNING&&(this.status=Vi.END,this._onEnd&&this._onEnd.forEach(e=>e()))}setPosition(t){let e,i=0;const n=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===n)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=Vi.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()}},S(er,"mode",oh.NORMAL),S(er,"interpolateMap",new Map),er);class _k{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 mk(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,n=typeof i=="string"?Dc[i]:i,r=this._addStep(e,null,n);return r.type=El.customAnimate,this._appendProps(t.getEndProps(),r,!1),this._appendCustomAnimate(t,r),this}to(t,e,i,n){(e==null||e<0)&&(e=0);const r=typeof i=="string"?Dc[i]:i,a=this._addStep(e,null,r);return a.type=El.to,this._appendProps(t,a,!!n&&n.tempProps),a.propKeys||(a.propKeys=Object.keys(a.props)),n&&n.noPreventAttrs||this.target.animates.forEach(o=>{o.id!==this.animate.id&&o.preventAttrs(a.propKeys)}),this}from(t,e,i,n){this.to(t,0,i,n);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,n),this.stepTail.type=El.from}startAt(t){return t<0&&(t=0),this._startAt=t,this}getStartProps(){var t;return(t=this.stepHead)==null?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=El.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 n=new mk(this.duration,t,e,i);return this.duration+=t,this.stepTail.append(n),this.stepTail=n,n}_appendProps(t,e,i){e.props=i?t:Object.assign({},t);let n=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))});n.prev;)n.props&&(n.propKeys||(n.propKeys=Object.keys(n.props)),n.propKeys.forEach(o=>{r[o]===void 0&&(r[o]=n.props[o])})),e.propKeys=Object.keys(e.props),n=n.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){const e=this.duration,i=this.loop,n=this.rawPosition;let r,a,o=!1;const l=this._startAt??0;if(t<0&&(t=0),t=i*e+e,o&&(a=e,r=i,t=a*r+e),t===n)return o;const h=!this.reversed!=!(this.bounce&&r%2);return h&&(a=e-a),this._deltaPosition=a-this.position,this.position=a,this.rawPosition=t+l,this.updatePosition(o,h),o}updatePosition(t,e){if(!this.stepHead)return;let i=this.stepHead.next;const n=this.position,r=this.duration;if(this.target&&i){let a=i.next;for(;a&&a.position<=n;)i=a,a=i.next;let o=t?r===0?1:n/r:(n-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 n=e.prev;for(;n&&n!==t;)n.customAnimate&&(n.customAnimate.onStart&&n.customAnimate.onStart(),n.customAnimate.onEnd&&n.customAnimate.onEnd()),n=t.prev;e&&e.customAnimate&&e.customAnimate.onEnd&&e.customAnimate.onEnd(),t&&t.customAnimate&&t.customAnimate.onStart&&t.customAnimate.onStart()}else{let n=e.next;for(;n&&n!==t;)n.customAnimate&&(n.customAnimate.onStart&&n.customAnimate.onStart(),n.customAnimate.onEnd&&n.customAnimate.onEnd()),n=n.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 n=i.customAnimate.getEndProps()[t];if(n!==void 0)return n}i=i.prev}return Lt.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 mk{constructor(t,e,i,n){S(this,"type");this.duration=e,this.position=t,this.props=i,this.easing=n}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 vk={duration:200,easing:"cubicOut"},Bl={duration:1e3,easing:"quadInOut"};var yk;(function(s){s[s.Top=1]="Top",s[s.Right=2]="Right",s[s.Bottom=4]="Bottom",s[s.Left=8]="Left",s[s.ALL=15]="ALL"})(yk||(yk={}));const dr=[!1,!1,!1,!1],Hj=s=>{let t=!0;if(ge(s,!0)){for(let e=0;e<4;e++)dr[e]=s,t&&(t=!!(dr[e]??1));t=s}else if(Array.isArray(s))for(let e=0;e<4;e++)dr[e]=!!s[e],t&&(t=!!dr[e]);else dr[0]=!1,dr[1]=!1,dr[2]=!1,dr[3]=!1;return{isFullStroke:t,stroke:dr}},Nh=[0,0,0,0],Ii=s=>s?G(s)?s.length===0?0:s.length===1?s[0]:s.length===2?(Nh[0]=s[0],Nh[2]=s[0],Nh[1]=s[1],Nh[3]=s[1],Nh):s:s:0,pl=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}],bp=[1,2,3,0,1,2,3,0];function nv(s,t,e,i){for(;s>=Ft;)s-=Ft;for(;s<0;)s+=Ft;for(;s>t;)t+=Ft;pl[0].x=e,pl[1].y=e,pl[2].x=-e,pl[3].y=-e;const n=Math.ceil(s/ts)%4,r=Math.ceil(t/ts)%4;if(i.add(se(s)*e,qt(s)*e),i.add(se(t)*e,qt(t)*e),n!==r||t-s>ee){let a=!1;for(let o=0;ot.length){i=t.map(n=>{const r=new Oe(n.x,n.y,n.x1,n.y1);return r.defined=n.defined,r});for(let n=0;n{const r=new Oe(n.x,n.y,n.x1,n.y1);return r.defined=n.defined,r});for(let n=0;njj.includes(s);function xp(s,t){if(G(s)){let e;for(let i=0;i{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)}};S(am,"TimeOut",1e3/60);let jy=am;const bk=new jy,kr=(s,t)=>at(s)&&s[s.length-1]==="%"?t*(Number.parseFloat(s.substring(0,s.length-1))/100):s;class Wj extends mn{constructor(e,i,n,r,a){super(e,i,n,r,a);S(this,"fromNumber");S(this,"toNumber");S(this,"decimalLength")}getEndProps(){return this.valid===!1?{}:{text:this.to}}onBind(){var e,i,n,r,a,o,l;this.fromNumber=nt((e=this.from)==null?void 0:e.text)?(i=this.from)==null?void 0:i.text:Number.parseFloat((n=this.from)==null?void 0:n.text),this.toNumber=nt((r=this.to)==null?void 0:r.text)?(a=this.to)==null?void 0:a.text:Number.parseFloat((o=this.to)==null?void 0:o.text),Number.isFinite(this.toNumber)||(this.fromNumber=0),Number.isFinite(this.toNumber)||(this.valid=!1),this.valid!==!1&&(this.decimalLength=((l=this.params)==null?void 0:l.fixed)??Math.max(nh(this.fromNumber),nh(this.toNumber)))}onEnd(){}onUpdate(e,i,n){this.valid!==!1&&(n.text=e?this.toNumber:(this.fromNumber+(this.toNumber-this.fromNumber)*i).toFixed(this.decimalLength))}}var xk;(function(s){s[s.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",s[s.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT",s[s.TOP_TO_BOTTOM=2]="TOP_TO_BOTTOM",s[s.BOTTOM_TO_TOP=3]="BOTTOM_TO_TOP",s[s.STROKE=4]="STROKE"})(xk||(xk={}));class bB extends mn{constructor(e,i,n,r,a){super(e,i,n,r,a);S(this,"fromPoints");S(this,"toPoints");S(this,"points");S(this,"interpolatePoints");S(this,"newPointAnimateType");this.newPointAnimateType=(a==null?void 0:a.newPointAnimateType)==="appear"?"appear":"grow"}onBind(){var d,c;const e=(d=this.from)==null?void 0:d.points,i=(c=this.to)==null?void 0:c.points;this.fromPoints=e?Array.isArray(e)?e:[e]:[],this.toPoints=i?Array.isArray(i)?i:[i]:[];const n=new Map;this.fromPoints.forEach(u=>{u.context&&n.set(u.context,u)});let r,a,o=1/0,l=-1/0;for(let u=0;u=0;u-=1)if(n.has(this.toPoints[u].context)){l=u,a=n.get(this.toPoints[u].context);break}let h=this.toPoints[0];this.interpolatePoints=this.toPoints.map((u,p)=>{const g=n.get(u.context);return g?(h=g,[g,u]):this.newPointAnimateType==="appear"?[u,u]:pl&&a?[a,u]:[h,u]}),this.points=this.interpolatePoints.map(u=>{const p=u[0],g=u[1],f=new Oe(p.x,p.y,p.x1,p.y1);return f.defined=g.defined,f.context=g.context,f})}onUpdate(e,i,n){this.points=this.points.map((r,a)=>{const o=Hy(this.interpolatePoints[a][0],this.interpolatePoints[a][1],i);return o.context=r.context,o}),n.points=this.points}}class xB extends mn{constructor(e,i,n,r,a){super(null,null,n,r,a);S(this,"_group");S(this,"_clipGraphic");S(this,"clipFromAttribute");S(this,"clipToAttribute");S(this,"_lastClip");S(this,"_lastPath");this.clipFromAttribute=e,this.clipToAttribute=i,this._group=a==null?void 0:a.group,this._clipGraphic=a==null?void 0:a.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:we.ANIMATE_BIND}))}onEnd(){this._group&&this._group.setAttributes({clip:this._lastClip,path:this._lastPath},!1,{type:we.ANIMATE_END})}onUpdate(e,i,n){if(!this._clipGraphic)return;const r={};Object.keys(this.clipFromAttribute).forEach(a=>{r[a]=this.clipFromAttribute[a]+(this.clipToAttribute[a]-this.clipFromAttribute[a])*i}),this._clipGraphic.setAttributes(r,!1,{type:we.ANIMATE_UPDATE,animationState:{ratio:i,end:e}})}}class Gj extends xB{constructor(t,e,i,n,r){var m,y,v;const a=((m=r==null?void 0:r.group)==null?void 0:m.attribute)??{},o=a.width??0,l=a.height??0,h=(r==null?void 0:r.animationType)??"in",d=(r==null?void 0:r.startAngle)??0,c=(r==null?void 0:r.orient)??"clockwise";let u=0,p=0;c==="anticlockwise"?(p=h==="in"?d+2*Math.PI:d,p=d+2*Math.PI):(u=d,p=h==="out"?d+2*Math.PI:d);const g=q.graphicService.creator.arc({x:((y=r==null?void 0:r.center)==null?void 0:y.x)??o/2,y:((v=r==null?void 0:r.center)==null?void 0:v.y)??l/2,outerRadius:(r==null?void 0:r.radius)??(o+l)/2,innerRadius:0,startAngle:u,endAngle:p,fill:!0});let f,_;c==="anticlockwise"?(f={startAngle:d+2*Math.PI},_={startAngle:d}):(f={endAngle:d},_={endAngle:d+2*Math.PI}),super(h==="in"?f:_,h==="in"?_:f,i,n,{group:r==null?void 0:r.group,clipGraphic:g})}}class Sk extends xB{constructor(t,e,i,n,r){var f;const a=((f=r==null?void 0:r.group)==null?void 0:f.attribute)??{},o=(r==null?void 0:r.width)??a.width??0,l=(r==null?void 0:r.height)??a.height??0,h=(r==null?void 0:r.animationType)??"in",d=(r==null?void 0:r.direction)??"x",c=(r==null?void 0:r.orient)??"positive",u=q.graphicService.creator.rect({x:0,y:0,width:h==="in"&&d==="x"?0:o,height:h==="in"&&d==="y"?0:l,fill:!0});let p={},g={};d==="y"?c==="negative"?(p={y:l,height:0},g={y:0,height:l}):(p={height:0},g={height:l}):c==="negative"?(p={x:o,width:0},g={x:0,width:o}):(p={width:0},g={width:o}),super(h==="in"?p:g,h==="in"?g:p,i,n,{group:r==null?void 0:r.group,clipGraphic:u})}}class Nj extends mn{onStart(){const{center:t,r:e}=typeof this.params=="function"?this.params():this.params,i=this.target.getComputedAttribute("x"),n=this.target.getComputedAttribute("y"),r=this.target.getComputedAttribute("z"),a=Math.acos((n-t.y)/e);let o=Math.acos((i-t.x)/e/Math.sin(a));r-t.z<0&&(o=Ft-o),this.theta=o,this.phi=a}onBind(){}onEnd(){}onUpdate(t,e,i){if(this.phi==null||this.theta==null)return;const{center:n,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)+n.x,c=r*Math.cos(h)+n.y,u=r*Math.sin(h)*Math.sin(l)+n.z;for(i.x=d,i.y=c,i.z=u,i.alpha=l+ee/2;i.alpha>Ft;)i.alpha-=Ft;i.alpha=Ft-i.alpha,i.zIndex=-1e4*i.z,a&&a(i)}}class Uj 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 $j 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(n=>{const r=n.easing;e=(typeof r=="string"?Dc[r]:r)(e),n.onUpdate(t,e,i)}),this.updating=!1)}}function Ak(s,t,e,i,n,r){const a=(t-s)*n+s,o=(e-t)*n+t,l=(i-e)*n+e,h=(o-a)*n+a,d=(l-o)*n+o,c=(d-h)*n+h;r[0]=s,r[1]=a,r[2]=h,r[3]=c,r[4]=c,r[5]=d,r[6]=l,r[7]=i}function Yj(s,t){const e=s.length,i=t.length;if(e===i)return[s,t];const n=[],r=[],a=e0){const v=i/e;for(let b=-i/2;b<=i/2;b+=v){const x=Math.sin(b),A=Math.cos(b);let T=0;for(let k=0;k{Qi(t,i)&&Qi(e,n)||s.push(t,e,i,n,i,n)};function Vy(s){const t=s.commandList,e=[];let i,n=0,r=0,a=0,o=0;const l=(p,g)=>{i&&i.length>2&&e.push(i),i=[p,g]};let h,d,c,u;for(let p=0,g=t.length;pA:MT:B2&&e.push(i),e}function Mk(s,t){for(let e=0;e2){t.moveTo(i[0],i[1]);for(let n=2;n{if(!s)return{x:0,y:0,width:0,height:0};let t=P(s.width)?s.x1-s.x:s.width,e=P(s.height)?s.y1-s.y:s.height,i=0,n=0;return t<0?(i=t,t=-t):Number.isNaN(t)&&(t=0),e<0?(n=e,e=-e):Number.isNaN(e)&&(e=0),{x:i,y:n,width:t,height:e}};function pS(s,t,e){const i=s/t;let n,r;s>=t?(r=Math.ceil(Math.sqrt(e*i)),n=Math.floor(e/r),n===0&&(n=1,r=e)):(n=Math.ceil(Math.sqrt(e/i)),r=Math.floor(e/n),r===0&&(r=1,n=e));const a=[];for(let l=0;l0)for(let l=0;l{const{width:e,height:i}=SB(s.attribute),n=pS(e,i,t),r=[],a=i/n.length;for(let o=0,l=n.length;o{const e=s.getParsedAngle(),i=e.startAngle,n=e.endAngle,r=s.getComputedAttribute("innerRadius"),a=s.getComputedAttribute("outerRadius"),o=Math.abs(i-n),l=Math.abs(a-r),h=pS(o*(r+a)/2,l,t),d=[],c=l/h.length,u=a>=r?1:-1,p=n>=i?1:-1;for(let g=0,f=h.length;g{const e=s.getComputedAttribute("startAngle"),i=s.getComputedAttribute("endAngle"),n=s.getComputedAttribute("radius"),r=Math.abs(e-i),a=pS(r*n,n,t),o=[],l=r/a[0],h=n/a.length,d=i>=e?1:-1;for(let c=0,u=a.length;c{const e=s.filter(o=>o.defined!==!1&&nt(o.x)&&nt(o.y));if(e.length===0)return[];if(e.length===1)return new Array(t).fill(0).map(o=>e[0]);const i=[];if(t<=e.length){const o=e.length/t;let l=0,h=0;for(;l{const e=s.attribute;let i=e.points;const n=e.segments;i||(i=n.reduce((l,h)=>l.concat(h.points??[]),[]));const r=i.filter(l=>l.defined!==!1&&nt(l.x)&&nt(l.y));if(!r.length)return[];const a=[];r.forEach(l=>{a.push({x:l.x,y:l.y})});for(let l=r.length-1;l>=0;l--){const h=r[l];a.push({x:h.x1??h.x,y:h.y1??h.y})}const o=[];return Fc(i,t,o),o},n5=(s,t)=>{const e=s.attribute,i=e.points;if(i)return wk(i,t);if(e.segments){const n=e.segments.reduce((r,a)=>r.concat(a.points??[]),[]);return wk(n,t)}return[]};function s5(s,t){return s[0]*t[1]-s[1]*t[0]}const Wy=s=>s.map(t=>({x:t.x,y:t.y})),Ck=(s,t,e)=>{const i=s.length,n=[];for(let c=0;cc.dot-u.dot);let r=n[0],a=n[n.length-1];r.edgeIndex>a.edgeIndex&&([r,a]=[a,r]);const o=r.point,l=a.point,h=[{x:o.x,y:o.y}];for(let c=r.edgeIndex+1;c<=a.edgeIndex;c++)h.push({x:s[c].x,y:s[c].y});h.push({x:l.x,y:l.y});const d=[{x:l.x,y:l.y}];for(let c=a.edgeIndex+1,u=r.edgeIndex+i;c<=u;c++){const p=s[c%i];d.push({x:p.x,y:p.y})}return d.push({x:o.x,y:o.y}),[h,d]},r5=s=>{const t=new di;s.forEach(r=>{t.add(r.x,r.y)});const e=t.width(),i=t.height();if(e>=i){const r=t.x1+e/2;return Ck(s,{x:r,y:t.y1},{x:r,y:t.y2})}const n=t.y1+i/2;return Ck(s,{x:t.x1,y:n},{x:t.x2,y:n})},Fc=(s,t,e)=>{if(t===1)e.push({points:s});else{const i=Math.floor(t/2),n=r5(s);Fc(n[0],i,e),Fc(n[1],t-i,e)}},a5=(s,t)=>{const e=s.attribute.points;if(!e||!e.length)return[];if(t===1)return[{points:Wy(e)}];const i=[];return Fc(e,t,i),i},o5=(s,t)=>{const e=s.getParsedPathShape(),i=Vy(e);if(!i.length||t<0)return[];const n=i.length;if(i.length>=t){const l=[],h=Math.floor(i.length/t);for(let d=0;d({...u,color:Sp(d)}))};return o?bo(h,c,e,i,n):bo(c,h,e,i,n)}if(o){if(s.gradient===t.gradient){const h=s,d=t,c=h.stops,u=d.stops;if(c.length!==u.length)return!1;if(h.gradient==="linear")return l5(h,d,e);if(h.gradient==="radial")return h5(h,d,e);if(h.gradient==="conical")return d5(h,d,e)}return!1}return n&&n(r,a),Sp(c5(r,a,e),i)}function l5(s,t,e){const i=s.stops,n=t.stops;return{gradient:"linear",x0:s.x0+(t.x0-s.x0)*e,x1:s.x1+(t.x1-s.x1)*e,y0:s.y0+(t.y0-s.y0)*e,y1:s.y1+(t.y1-s.y1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:gS(i[a].color,n[a].color,e),offset:i[a].offset+(n[a].offset-i[a].offset)*e}))}}function h5(s,t,e){const i=s.stops,n=t.stops;return{gradient:"radial",x0:s.x0+(t.x0-s.x0)*e,x1:s.x1+(t.x1-s.x1)*e,y0:s.y0+(t.y0-s.y0)*e,y1:s.y1+(t.y1-s.y1)*e,r0:s.r0+(t.r0-s.r0)*e,r1:s.r1+(t.r1-s.r1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:gS(i[a].color,n[a].color,e),offset:i[a].offset+(n[a].offset-i[a].offset)*e}))}}function d5(s,t,e){const i=s.stops,n=t.stops;return{gradient:"conical",startAngle:s.startAngle+(t.startAngle-s.startAngle)*e,endAngle:s.endAngle+(t.endAngle-s.endAngle)*e,x:s.x+(t.x-s.x)*e,y:s.y+(t.y-s.y)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:gS(i[a].color,n[a].color,e),offset:i[a].offset+(n[a].offset-i[a].offset)*e}))}}function c5(s,t,e){return[s[0]+(t[0]-s[0])*e,s[1]+(t[1]-s[1])*e,s[2]+(t[2]-s[2])*e,s[3]+(t[3]-s[3])*e]}const ur=[0,0,0,0],Uh=[0,0,0,0];function gS(s,t,e){return Yn.Get(s,tn.Color255,ur),Yn.Get(t,tn.Color255,Uh),`rgba(${Math.round(ur[0]+(Uh[0]-ur[0])*e)},${Math.round(ur[1]+(Uh[1]-ur[1])*e)},${Math.round(ur[2]+(Uh[2]-ur[2])*e)},${ur[3]+(Uh[3]-ur[3])*e})`}const AB=(s,t,e)=>{s.forEach(i=>{if(Number.isFinite(i.to))t[i.key]=i.from+(i.to-i.from)*e;else if(i.key==="fill"||i.key==="stroke"){const n=bo(i.from,i.to,e,!1);n&&(t[i.key]=n)}})},kB=(s,t,e)=>{const i=[],n=[];t.clear();for(let r=0;r{const i=s?Vy(s):[],n=Vy(t);e&&i&&(e.fromTransform&&Mk(i,e.fromTransform.clone().getInverse()),Mk(i,e.toTransfrom));const[r,a]=Zj(i,n);return s?qj(r,a,10,Math.PI):a.map((o,l)=>({from:r[l],to:o,fromCp:[0,0],toCp:[0,0],rotation:0}))},u5=["fill","fillOpacity","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","lineDashOffset"],MB=(s,t)=>{if(!s||!t)return null;const e=[];let i=!1;return Object.keys(s).forEach(n=>{if(!u5.includes(n))return;const r=t[n];P(r)||P(s[n])||r===s[n]||(n==="fill"||n==="stroke"?e.push({from:typeof s[n]=="string"?Yn.Get(s[n],tn.Color255):s[n],to:typeof r=="string"?Yn.Get(r,tn.Color255):r,key:n}):e.push({from:s[n],to:r,key:n}),i=!0)}),i?e:null};class wB extends mn{constructor(e,i,n){super(0,1,i,n);S(this,"saveOnEnd");S(this,"otherAttrs");S(this,"morphingData");this.morphingData=e.morphingData,this.otherAttrs=e.otherAttrs,this.saveOnEnd=e.saveOnEnd}getEndProps(){return{}}onBind(){this.target.createPathProxy(),this.onUpdate(!1,0,this.target.attribute)}onEnd(){}onUpdate(e,i,n){const r=this.target,a=typeof r.pathProxy=="function"?r.pathProxy(r.attribute):r.pathProxy;kB(this.morphingData,a,i),this.otherAttrs&&this.otherAttrs.length&&AB(this.otherAttrs,n,i),e&&!this.saveOnEnd&&(this.target.pathProxy=null)}}const CB=(s,t,e,i)=>{var l;if(s&&(!s.valid||!s.toCustomPath))return __DEV__&&console.error(s," is not validate"),null;if(!t.valid||!t.toCustomPath)return __DEV__&&console.error(t," is not validate"),null;let n=s==null?void 0:s.globalTransMatrix;i&&n&&(n=i.clone().multiply(n.a,n.b,n.c,n.d,n.e,n.f));const r=TB((l=s==null?void 0:s.toCustomPath)==null?void 0:l.call(s),t.toCustomPath(),{fromTransform:n,toTransfrom:t.globalTransMatrix}),a=MB(s==null?void 0:s.attribute,t.attribute),o=t.animate(e);return e!=null&&e.delay&&o.wait(e.delay),o.play(new wB({morphingData:r,otherAttrs:a},(e==null?void 0:e.duration)??Bl.duration,(e==null?void 0:e.easing)??Bl.easing)),o},p5=(s,t,e)=>{const i=t.filter(l=>l&&l.toCustomPath&&l.valid);i.length||__DEV__&&console.error(i," is not validate"),s.valid&&s.toCustomPath||__DEV__&&console.error(s," is not validate");const n=((e==null?void 0:e.splitPath)==="clone"?EB:(e==null?void 0:e.splitPath)??RB)(s,i.length,!1),r=e==null?void 0:e.onEnd;let a=i.length;const o=()=>{a--,a===0&&r&&r()};i.forEach((l,h)=>{const d=n[h],c=((e==null?void 0:e.delay)??0)+(e!=null&&e.individualDelay?e.individualDelay(h,i.length,d,l):0);CB(d,l,Object.assign({},e,{onEnd:o,delay:c}),s.globalTransMatrix)})};class g5 extends mn{constructor(e,i,n){super(0,1,i,n);S(this,"otherAttrs");S(this,"morphingData");this.morphingData=e.morphingData,this.otherAttrs=e.otherAttrs}getEndProps(){return{}}onBind(){this.addPathProxy()}addPathProxy(){this.target.shadowRoot.forEachChildren(e=>{e.createPathProxy()}),this.onUpdate(!1,0,this.target.attribute)}clearPathProxy(){this.target.shadowRoot.forEachChildren(e=>{e.pathProxy=null})}onEnd(){}onUpdate(e,i,n){this.target.shadowRoot.forEachChildren((r,a)=>{var o;kB(this.morphingData[a],typeof r.pathProxy=="function"?r.pathProxy(r.attribute):r.pathProxy,i),(o=this.otherAttrs)!=null&&o[a]&&this.otherAttrs[a].length&&AB(this.otherAttrs[a],r.attribute,i)}),e&&(this.clearPathProxy(),this.morphingData=null)}}const fS=s=>{const t={};return Object.keys(s).forEach(e=>{Vj(e)||(t[e]=s[e])}),t},PB=(s,t,e)=>{const i=fS(s.attribute),n=s.attachShadow();if(t.length)n.setTheme({[t[0].type]:i}),t.forEach(r=>{n.appendChild(r)});else{const r=s.AABBBounds,a=r.width(),o=r.height();n.setTheme({rect:i}),new Array(e).fill(0).forEach(l=>{const h=q.graphicService.creator.rect({x:0,y:0,width:a,height:o});n.appendChild(h),t.push(h)})}},EB=(s,t,e)=>{const i=[],n=e?null:fS(s.attribute),r=s.toCustomPath();for(let a=0;a{const i=[],n=e?null:fS(s.attribute);if(s.type==="rect")Qj(s,t).forEach(r=>{i.push(q.graphicService.creator.rect(e?r:Object.assign({},n,r)))});else if(s.type==="arc")t5(s,t).forEach(r=>{i.push(q.graphicService.creator.arc(e?r:Object.assign({},n,r)))});else if(s.type==="circle")e5(s,t).forEach(r=>{i.push(q.graphicService.creator.arc(e?r:Object.assign({},n,r)))});else if(s.type==="line"){const r=n5(s,t),a={size:10,symbolType:"circle"};r.forEach(o=>{i.push(q.graphicService.creator.symbol(e?Object.assign({},o,a):Object.assign({},n,o,a)))})}else s.type==="polygon"?a5(s,t).forEach(r=>{i.push(q.graphicService.creator.polygon(e?r:Object.assign({},n,r)))}):s.type==="area"?i5(s,t).forEach(r=>{i.push(q.graphicService.creator.polygon(e?r:Object.assign({},n,r)))}):s.type==="path"&&o5(s,t).forEach(r=>{"path"in r?i.push(q.graphicService.creator.path(e?r:Object.assign({},n,r))):i.push(q.graphicService.creator.polygon(e?r:Object.assign({},n,r)))});return e&&PB(s,i,t),i},f5=(s,t,e)=>{const i=s.filter(l=>l.toCustomPath&&l.valid);i.length||__DEV__&&console.error(s," is not validate"),t.valid&&t.toCustomPath||__DEV__&&console.error(t," is not validate");const n=((e==null?void 0:e.splitPath)==="clone"?EB:(e==null?void 0:e.splitPath)??RB)(t,i.length,!0),r=t.attribute;t.setAttribute("visible",!1);const a=i.map((l,h)=>TB(l.toCustomPath(),n[h].toCustomPath(),{fromTransform:l.globalTransMatrix,toTransfrom:n[h].globalTransMatrix})),o=i.map((l,h)=>MB(l.attribute,r));if(e!=null&&e.individualDelay){const l=e.onEnd;let h=i.length;const d=()=>{h--,h===0&&(t.setAttributes({visible:!0,ratio:null},!1,{type:we.ANIMATE_END}),t.detachShadow(),l&&l())};n.forEach((c,u)=>{const p=(e.delay??0)+e.individualDelay(u,i.length,s[u],c),g=c.animate(Object.assign({},e,{onEnd:d}));g.wait(p),g.play(new wB({morphingData:a[u],saveOnEnd:!0,otherAttrs:o[u]},e.duration??Bl.duration,e.easing??Bl.easing))})}else{const l=e==null?void 0:e.onEnd,h=e?Object.assign({},e):{};h.onEnd=()=>{t.setAttribute("visible",!0,!1,{type:we.ANIMATE_END}),t.detachShadow(),l&&l()};const d=t.animate(h);e!=null&&e.delay&&d.wait(e.delay),d.play(new g5({morphingData:a,otherAttrs:o},(e==null?void 0:e.duration)??Bl.duration,(e==null?void 0:e.easing)??Bl.easing))}},ce=class ce{static GetImage(t,e){var n;const i=ce.cache.get(t);i?i.loadState==="fail"?q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):i.loadState==="init"||i.loadState==="loading"?(n=i.waitingMark)==null||n.push(e):e&&e.imageLoadSuccess(t,i.data):ce.loadImage(t,e)}static GetSvg(t,e){var n;let i=ce.cache.get(t);i?i.loadState==="fail"?q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):i.loadState==="init"||i.loadState==="loading"?(n=i.waitingMark)==null||n.push(e):e&&e.imageLoadSuccess(t,i.data):(i={type:"image",loadState:"init"},ce.cache.set(t,i),i.dataPromise=q.global.loadSvg(t),i.dataPromise?(i.waitingMark=[e],i.dataPromise.then(r=>{var a;i.loadState=r!=null&&r.data?"success":"fail",i.data=r==null?void 0:r.data,(a=i.waitingMark)==null||a.map((o,l)=>{r!=null&&r.data?(i.loadState="success",i.data=r.data,o.imageLoadSuccess(t,r.data)):(i.loadState="fail",o.imageLoadFail(t))})})):(i.loadState="fail",e.imageLoadFail(t)))}static GetFile(t,e){let i=ce.cache.get(t);return i?i.loadState==="init"||i.loadState==="fail"?Promise.reject():i.loadState==="loading"?i.dataPromise.then(n=>n.data):Promise.resolve(i.data):(i={type:e,loadState:"init"},ce.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(n=>n.data))}static loading(){setTimeout(()=>{if(!ce.isLoading&&ce.toLoadAueue.length){ce.isLoading=!0;const t=ce.toLoadAueue.splice(0,10),e=[];t.forEach(i=>{const{url:n,marks:r}=i,a={type:"image",loadState:"init"};if(ce.cache.set(n,a),a.dataPromise=q.global.loadImage(n),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.map((d,c)=>{l!=null&&l.data?(a.loadState="success",a.data=l.data,d.imageLoadSuccess(n,l.data)):(a.loadState="fail",d.imageLoadFail(n))})});e.push(o)}else a.loadState="fail",r.forEach(o=>o.imageLoadFail(n))}),Promise.all(e).then(()=>{ce.isLoading=!1,this.onLoadSuccessCb.forEach(i=>i()),ce.loading()}).catch(i=>{console.error(i),ce.isLoading=!1,this.onLoadSuccessCb.forEach(n=>n()),ce.loading()})}},0)}static loadImage(t,e){const i=Pk(t,ce.toLoadAueue);if(i!==-1)return ce.toLoadAueue[i].marks.push(e),void ce.loading();ce.toLoadAueue.push({url:t,marks:[e]}),ce.loading()}static improveImageLoading(t){const e=Pk(t,ce.toLoadAueue);if(e!==-1){const i=ce.toLoadAueue.splice(e,1);ce.toLoadAueue.unshift(i[0])}}static onLoadSuccess(t){this.onLoadSuccessCb.push(t)}};S(ce,"cache",new Map),S(ce,"isLoading",!1),S(ce,"toLoadAueue",[]),S(ce,"onLoadSuccessCb",[]);let zc=ce;function Pk(s,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?void 0:e[t]}applyStateAttrs(t,e,i,n){var r,a;if(i){const o=Object.keys(t),l=this.getNoWorkAnimateAttr(),h={};let d;o.forEach(u=>{l[u]?(d||(d={}),d[u]=t[u]):h[u]=n&&t[u]===void 0?this.getDefaultAttribute(u):t[u]});const c=this.animate();c.stateNames=e,c.to(h,((r=this.stateAnimateConfig)==null?void 0:r.duration)??vk.duration,((a=this.stateAnimateConfig)==null?void 0:a.easing)??vk.easing),d&&this.setAttributes(d,!1,{type:we.STATE})}else this.stopStateAnimates(),this.setAttributes(t,!1,{type:we.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)})}getNormalAttribute(t){let e=this.attribute[t];return this.animates&&this.animates.forEach(i=>{if(i.stateNames){const n=i.getEndProps();xs(n,t)&&(e=n[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(n=>n!==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 r;if(this.currentStates&&this.currentStates.includes(t)&&(e||this.currentStates.length===1))return;const n=e&&((r=this.currentStates)!=null&&r.length)?this.currentStates.concat([t]):[t];this.useStates(n,i)}useStates(t,e){var n;if(!t.length)return void this.clearStates(e);if(!(((n=this.currentStates)==null?void 0:n.length)!==t.length||t.some((r,a)=>this.currentStates[a]!==r)))return;const i={};t.forEach(r=>{var o;const a=this.stateProxy?this.stateProxy(r,t):(o=this.states)==null?void 0:o[r];a&&Object.assign(i,a)}),this.updateNormalAttrs(i),this.currentStates=t,this.applyStateAttrs(i,t,e)}addUpdateBoundTag(){this._updateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}addUpdateShapeTag(){this._updateTag|=oe.UPDATE_SHAPE}addUpdateShapeAndBoundsTag(){this._updateTag|=oe.UPDATE_SHAPE_AND_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}updateShapeAndBoundsTagSetted(){return(this._updateTag&oe.UPDATE_SHAPE_AND_BOUNDS)===oe.UPDATE_SHAPE_AND_BOUNDS}clearUpdateBoundTag(){this._updateTag&=oe.CLEAR_BOUNDS}addUpdatePositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=oe.UPDATE_GLOBAL_LOCAL_MATRIX}addUpdateGlobalPositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=oe.UPDATE_GLOBAL_MATRIX}clearUpdateLocalPositionTag(){this._updateTag&=oe.CLEAR_LOCAL_MATRIX}clearUpdateGlobalPositionTag(){this._updateTag&=oe.CLEAR_GLOBAL_MATRIX}addUpdateLayoutTag(){this._updateTag|=oe.UPDATE_LAYOUT}clearUpdateLayoutTag(){this._updateTag&=oe.CLEAR_LAYOUT}needUpdateLayout(){return!!(this._updateTag&oe.UPDATE_LAYOUT)}getAnchor(t,e){const i=[0,0],n=()=>{if(e.b)return e.b;const{scaleX:r,scaleY:a,angle:o}=this.attribute;return Ek.copy(this._AABBBounds),this.setAttributes({scaleX:1,scaleY:1,angle:0}),e.b=this.AABBBounds.clone(),this._AABBBounds.copy(Ek),this.setAttributes({scaleX:r,scaleY:a,angle:o}),e.b};if(typeof t[0]=="string"){const r=parseFloat(t[0])/100,a=n();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=n();i[1]=a.y1+(a.y2-a.y1)*r}else i[1]=t[1];return i}doUpdateLocalMatrix(){const{x:t=pi.x,y:e=pi.y,scaleX:i=pi.scaleX,scaleY:n=pi.scaleY,angle:r=pi.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&&n===1)A3(this._transMatrix,this._transMatrix.reset(),t,e,i,n,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,n,{x:h[0],y:h[1]})}const c=this.getOffsetXY(pi);if(this._transMatrix.e+=c.x,this._transMatrix.f+=c.y,l){const u=_5.setValue(l.a,l.b,l.c,l.d,l.e,l.f),p=this._transMatrix;u.multiply(p.a,p.b,p.c,p.d,p.e,p.f),p.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(n=>{n.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:we.ANIMATE_END})}onStep(t,e,i,n,r){const a={};if(i.customAnimate)i.customAnimate.update(r,n,a);else{const o=i.props,l=i.parsedProps,h=i.propKeys;this.stepInterpolate(t,e,a,i,n,r,o,void 0,l,h)}this.setAttributes(a,!1,{type:we.ANIMATE_UPDATE,animationState:{ratio:n,end:r,step:i,isFirstFrameOfStep:t.getLastStep()!==i}}),this.stage&&this.stage.renderNextFrame()}stepInterpolate(t,e,i,n,r,a,o,l,h,d){d||(d=Object.keys(o),n.propKeys=d),a?n.propKeys.forEach(c=>{e.validAttr(c)&&(i[c]=o[c])}):d.forEach(c=>{if(!e.validAttr(c))return;const u=o[c],p=(l&&l[c])??t.getLastPropByName(c,n);if(u==null||p==null)return void(i[c]=u);let g;g=e.interpolateFunc&&e.interpolateFunc(c,r,p,u,i),g||(g=e.customInterpolate(c,r,p,u,this,i),g||this.defaultInterpolate(u,p,c,i,h,r)||this._interpolate(c,r,p,u,i))}),n.parsedProps=h}defaultInterpolate(t,e,i,n,r,a){if(Number.isFinite(t))return n[i]=e+(t-e)*a,!0;if(i==="fill"){r||(r={});const o=r.fillColorArray,l=bo(e,o??t,a,!1,(h,d)=>{r.fillColorArray=d});return l&&(n[i]=l),!0}if(i==="stroke"){r||(r={});const o=r.strokeColorArray,l=bo(e,o??t,a,!1,(h,d)=>{r.strokeColorArray=d});return l&&(n[i]=l),!0}if(i==="shadowColor"){r||(r={});const o=r.shadowColorArray,l=bo(e,o??t,a,!0,(h,d)=>{r.shadowColorArray=d});return l&&(n[i]=l),!0}return!1}_interpolate(t,e,i,n,r){}getDefaultAttribute(t){return it(this)[this.type][t]}getComputedAttribute(t){return this.attribute[t]??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 at(t,!0)?this.pathProxy=new ti().fromString(t):this.pathProxy=new ti,this.pathProxy}loadImage(t,e=!1){if(!t||e&&m5(t))return;const i=t;this.resources||(this.resources=new Map);const n={data:"init",state:null};this.resources.set(i,n),typeof t=="string"?(n.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,n;if(this._events&&t in this._events){const r=new Sm(t,e);r.bubbles=!1,r.manager=(n=(i=this.stage)==null?void 0:i.eventSystem)==null?void 0:n.manager,this.dispatchEvent(r)}}}function m5(s){return!(!s.fill&&!s.stroke)}en.mixin(Lj);function v5(s,t){const e=[];let i=t.exec(s);for(;i;){const n=[];n.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 Lk(s,t,e,i){const n=s.indexOf(t,e);if(n===-1)throw new Error(i);return n+t.length-1}function y5(s,t,e=">"){let i,n="";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&&n&&i.child[i.child.length-1][":@"]&&(i.child[i.child.length-1][":@"].text=n),n="",a=o}else if(t[a+1]==="?")a=Ok(t,a,!1,"?>").closeIndex+1;else if(t.substr(a+1,3)==="!--")a=Lk(t,"-->",a+4,"Comment is not closed.");else{const o=Ok(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 sv(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 sv(l);this.tagsNodeStack.push(i),l!==h&&d&&(u[":@"]=this.buildAttributesMap(h,r,l)),this.addChild(i,u,r),i=u}n="",a=c}else n+=t[a];return e.child}}function S5(s,t){return BB(s)}function BB(s,t){const e={};for(let i=0;i{q.global.getRequestAnimationFrame()(()=>{i(null)})}),e.forEach(i=>{i.subLayers.size&&i.subLayers.forEach(n=>{n.drawContribution&&n.drawContribution.hooks&&n.drawContribution.rendering&&t.push(new Promise(r=>{n.drawContribution.hooks.completeDraw.tap("outWait",()=>{n.drawContribution.hooks.completeDraw.taps=n.drawContribution.hooks.completeDraw.taps.filter(a=>a.name!=="outWait"),r(null)})}))})}),await Promise.all(t)}function eg(s,t,e,i=0){return s.expand(t+(i/2+(e?C5(e,t):0))),s}function C5(s,t){return s?t:0}let P5=0;function nn(){return P5++}var xo;(function(s){s[s.HORIZONTAL=0]="HORIZONTAL",s[s.VERTICAL=1]="VERTICAL"})(xo||(xo={}));function Dk(s){const t=[];let e=0,i="";for(let n=0;nIB.set(s,!0));const R5=[""],LB=new Map;function B5(s){if(IB.has(s))return!0;if(LB.has(s))return!1;let t=!1;return s.codePointAt(0)<256&&(t=!0),t}R5.forEach(s=>LB.set(s,!0));const Am=nn(),Bu=nn(),Iu=nn(),km=nn(),Tm=nn(),_S=nn(),Mm=nn(),Lu=nn(),wm=nn(),Cm=nn(),mS=nn(),Pm=nn(),vS=nn(),yS=nn(),Em=nn(),Rm=nn(),OB=Symbol.for("GraphicService"),DB=Symbol.for("GraphicCreator"),FB={"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"},I5=Object.keys(FB);var Fk;(function(s){s[s.LESS_GROUP=0]="LESS_GROUP",s[s.MORE_GROUP=1]="MORE_GROUP"})(Fk||(Fk={}));var Io;let Ou=(Io=class extends en{constructor(e){super(e);S(this,"type","group");S(this,"parent",null);S(this,"isContainer",!0);this.numberType=_S,this._childUpdateTag=oe.UPDATE_BOUNDS}setMode(e){e==="3d"?this.set3dMode():this.set2dMode()}set3dMode(){this.in3dMode=!0}set2dMode(){this.in3dMode=!1}setTheme(e){return this.theme||(this.theme=new Lc),this.theme.setTheme(e,this)}createTheme(){this.theme||(this.theme=new Lc)}hideAll(){this.setAttribute("visible",!1),this.forEachChildren(e=>{e.isContainer&&e.hideAll?e.hideAll():e.setAttribute("visible",!1)})}showAll(){this.setAttribute("visible",!0),this.forEachChildren(e=>{e.isContainer&&e.showAll?e.showAll():e.setAttribute("visible",!0)})}containsPoint(e,i,n){if(n===Bc.GLOBAL){const r=new Oe(e,i);return this.parent&&this.parent.globalTransMatrix.transformPoint(r,r),this.AABBBounds.contains(r.x,r.y)}return this.AABBBounds.contains(e,i)}shouldUpdateAABBBounds(){return!!super.shouldUpdateAABBBounds()||!!(this._childUpdateTag&oe.UPDATE_BOUNDS)}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;q.graphicService.beforeUpdateAABBBounds(this,this.stage,!0,this._AABBBounds);const e=this.shouldSelfChangeUpdateAABBBounds(),i=this.doUpdateAABBBounds();return this.addUpdateLayoutTag(),q.graphicService.afterUpdateAABBBounds(this,this.stage,this._AABBBounds,this,e),i}doUpdateLocalMatrix(){const{x:e=pi.x,y:i=pi.y,dx:n=pi.dx,dy:r=pi.dy,scaleX:a=pi.scaleX,scaleY:o=pi.scaleY,angle:l=pi.angle,postMatrix:h}=this.attribute;if(e!==0||i!==0||n!==0||r!==0||a!==1||o!==1||l!==0||h)return super.doUpdateLocalMatrix();this._transMatrix.reset()}doUpdateAABBBounds(){const e=this.attribute,i=it(this).group;this._AABBBounds.clear();const n=q.graphicService.updateGroupAABBBounds(e,i,this._AABBBounds,this),{boundsPadding:r=i.boundsPadding}=e,a=Ii(r);return a&&n.expand(a),this.parent&&this.parent.addChildUpdateBoundTag(),this.clearUpdateBoundTag(),this._emitCustomEvent("AAABBBoundsChange"),n}clearUpdateBoundTag(){this._updateTag&=oe.CLEAR_BOUNDS,this._childUpdateTag&=oe.CLEAR_BOUNDS}tryUpdateOBBBounds(){throw new Error("暂不支持")}addUpdateBoundTag(){this._updateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag()}addChildUpdateBoundTag(){this._childUpdateTag&oe.UPDATE_BOUNDS||(this._childUpdateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag())}getTheme(){return this.theme.getTheme(this)}incrementalAppendChild(e){const i=super.appendChild(e);return this.stage&&i&&(i.stage=this.stage,i.layer=this.layer),this.addUpdateBoundTag(),q.graphicService.onAddIncremental(e,this,this.stage),i}incrementalClearChild(){super.removeAllChild(),this.addUpdateBoundTag(),q.graphicService.onClearIncremental(this,this.stage)}appendChild(e,i=!0){const n=super.appendChild(e);return i&&this.stage&&n&&n.setStage(this.stage,this.layer),this.addUpdateBoundTag(),n}insertBefore(e,i){const n=super.insertBefore(e,i);return this.stage&&n&&n.setStage(this.stage,this.layer),this.addUpdateBoundTag(),n}insertAfter(e,i){const n=super.insertAfter(e,i);return this.stage&&n&&n.setStage(this.stage,this.layer),this.addUpdateBoundTag(),n}insertInto(e,i){const n=super.insertInto(e,i);return this.stage&&n&&n.setStage(this.stage,this.layer),this.addUpdateBoundTag(),n}removeChild(e){const i=super.removeChild(e);return e.stage=null,q.graphicService.onRemove(e),this.addUpdateBoundTag(),i}removeAllChild(e=!1){this.forEachChildren(i=>{q.graphicService.onRemove(i),e&&i.isContainer&&i.removeAllChild(e)}),super.removeAllChild(),this.addUpdateBoundTag()}setStage(e,i){this.stage!==e&&(this.stage=e,this.layer=i,this.setStageToShadowRoot(e,i),this._onSetStage&&this._onSetStage(this,e,i),q.graphicService.onSetStage(this,e),this.forEachChildren(n=>{n.setStage(e,this.layer)}))}addUpdatePositionTag(){super.addUpdatePositionTag(),this.forEachChildren(e=>{e.isContainer&&e.addUpdateGlobalPositionTag()})}addUpdateGlobalPositionTag(){super.addUpdateGlobalPositionTag(),this.forEachChildren(e=>{e.isContainer&&e.addUpdateGlobalPositionTag()})}tryUpdateGlobalTransMatrix(e=!0){if(this.shouldUpdateGlobalMatrix()){if(this._globalTransMatrix){if(this.parent){const i=this.parent.globalTransMatrix;this._globalTransMatrix.setValue(i.a,i.b,i.c,i.d,i.e,i.f)}}else this._globalTransMatrix=this.parent?this.parent.globalTransMatrix.clone():this.transMatrix.clone();this.doUpdateGlobalMatrix(),e&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}shouldUpdateGlobalMatrix(){return!!(this._updateTag&oe.UPDATE_GLOBAL_MATRIX)}_getChildByName(e,i){return this.find(n=>n.name===e,i)}createOrUpdateChild(e,i,n){let r=this._getChildByName(e);return r?r.setAttributes(i):(r=q.graphicService.creator[n](i),r.name=e,this.add(r)),r}clone(){return new Io({...this.attribute})}getNoWorkAnimateAttr(){return Io.NOWORK_ANIMATE_ATTR}},S(Io,"NOWORK_ANIMATE_ATTR",Di),Io);function bS(s){return new Ou(s)}class L5 extends Ou{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,n){super({}),this.stage=t,this.global=e,this.window=i,this.main=n.main,this.layerHandler=n.layerHandler,this.layerHandler.init(this,i,{main:n.main,canvasId:n.canvasId,width:this.viewWidth,height:this.viewHeight,zIndex:n.zIndex??0}),this.layer=this,this.subLayers=new Map,this.theme=new Lc,this.background="rgba(0, 0, 0, 0)",this.afterDrawCbs=[]}combineSubLayer(t=!0){const e=Array.from(this.subLayers.values()).sort((i,n)=>i.zIndex-n.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){this.layerHandler.render([this],{renderService:t.renderService,stage:this.stage,layer:this,viewBox:t.viewBox,transMatrix:t.transMatrix,background:t.background??this.background,updateBounds:t.updateBounds},e),this.afterDrawCbs.forEach(i=>i(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){this.layerHandler.drawTo(t,[this],{background:e.background??this.background,renderService:e.renderService,viewBox:e.viewBox,transMatrix:e.transMatrix,stage:this.stage,layer:this,...e}),this.afterDrawCbs.forEach(i=>i(this))}}const zB=Symbol.for("TransformUtil"),HB=Symbol.for("GraphicUtil"),xS=Symbol.for("LayerService"),jB=Symbol.for("StaticLayerHandlerContribution"),VB=Symbol.for("DynamicLayerHandlerContribution"),WB=Symbol.for("VirtualLayerHandlerContribution");var pd,O5=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},D5=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},Kp;let Ny=pd=(Kp=class{static GenerateLayerId(){return`${pd.idprefix}_${pd.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(s){return this.layerMap.get(s)}getRecommendedLayerType(s){return s||(this.staticLayerCountInEnv!==0?"static":this.dynamicLayerCountInEnv!==0?"dynamic":"virtual")}getLayerHandler(s){let t;return t=s==="static"?wt.get(jB):s==="dynamic"?wt.get(VB):wt.get(WB),t}createLayer(s,t={main:!1}){this.tryInit();let e=this.getRecommendedLayerType(t.layerMode);e=t.main||t.canvasId?"static":e;const i=this.getLayerHandler(e),n=new L5(s,this.global,s.window,{main:!1,...t,layerMode:e,canvasId:t.canvasId??pd.GenerateLayerId(),layerHandler:i}),r=this.layerMap.get(s)||[];return r.push(n),this.layerMap.set(s,r),this.staticLayerCountInEnv--,n}prepareStageLayer(s){let t;s.forEachChildren(e=>{const i=e.getNativeHandler();i.type==="virtual"?(i.mainHandler=t,t.secondaryHandlers.push(i)):(t=i,t.secondaryHandlers=[])})}releaseLayer(s,t){t.release();const e=this.layerMap.get(s)||[];this.layerMap.set(s,e.filter(i=>i!==t))}layerCount(s){return(this.layerMap.get(s)||[]).length}restLayerCount(s){return this.global.env==="browser"?10:0}releaseStage(s){this.layerMap.delete(s)}},S(Kp,"idprefix","visactor_layer"),S(Kp,"prefix_count",0),Kp);Ny=pd=O5([gt(),D5("design:paramtypes",[])],Ny);const F5=new Ct(s=>{s(lS).to(wy).inSingletonScope(),s(Bg).to(Dy),s(HB).to(Fy).inSingletonScope(),s(zB).to(zy).inSingletonScope(),s(xS).to(Ny).inSingletonScope()});function nl(s,t){return!(!s&&!t)}function Rh(s,t){let e;return e=G(s)?s.some(i=>i||i===void 0):!!s,e&&t>0}function zo(s,t,e){return e&&s*t>0}function SS(s,t,e,i,n){return n&&s*t>0&&e!==0&&i!==0}function AS(s,t){return s*t>0}function kS(s,t,e,i){return s*t>0&&e!==0&&i!==0}function z5(s,t,e,i,n,r,a,o){if(!s.pathProxy)return!1;const l=it(s,r==null?void 0:r.theme)[s.type.replace("3d","")],{fill:h=l.fill,stroke:d=l.stroke,opacity:c=l.opacity,fillOpacity:u=l.fillOpacity,lineWidth:p=l.lineWidth,strokeOpacity:g=l.strokeOpacity,visible:f=l.visible,x:_=l.x,y:m=l.y}=s.attribute,y=zo(c,u,h),v=AS(c,g),b=nl(h),x=Rh(d,p);if(!f||!b&&!x||!(y||v||a||o))return!0;t.beginPath();const A=typeof s.pathProxy=="function"?s.pathProxy(s.attribute):s.pathProxy;return Mr(A.commandList,t,e,i),t.setShadowBlendStyle&&t.setShadowBlendStyle(s,s.attribute,l),x&&v&&(t.setStrokeStyle(s,s.attribute,e-_,i-m,l),t.stroke()),b&&y&&(t.setCommonStyle(s,s.attribute,e-_,i-m,l),t.fill()),!0}function GB(s,t,e,i,n,r,a,o){const l=e-s,h=i-t,d=a-n,c=o-r;let u=c*l-d*h;return u*uO*O+B*B&&(k=w,M=C),{cx:k,cy:M,x01:-d,y01:-c,x11:k*(n/x-1),y11:M*(n/x-1)}}function Dg(s,t,e,i,n,r,a){const{startAngle:o,endAngle:l}=s.getParsedAngle(),h=Ut(l-o),d=l>o;let c=!1;if(n=Ft-Jt)t.moveTo(e+n*se(o),i+n*qt(o)),t.arc(e,i,n,o,l,!d),r>Jt&&(t.moveTo(e+r*se(l),i+r*qt(l)),t.arc(e,i,r,l,o,d));else{const u=s.getParsedCornerRadius(),{outerDeltaAngle:p,innerDeltaAngle:g,outerStartAngle:f,outerEndAngle:_,innerEndAngle:m,innerStartAngle:y}=s.getParsePadAngle(o,l),v=u,b=u,x=u,A=u,T=Math.max(b,v),k=Math.max(x,A);let M=T,w=k;const C=n*se(f),R=n*qt(f),I=r*se(m),O=r*qt(m);let B,L,F,z;if((k>Jt||T>Jt)&&(B=n*se(_),L=n*qt(_),F=r*se(y),z=r*qt(y),hJt){const K=xi(v,M),et=xi(b,M),j=ca(F,z,C,R,n,K,Number(d)),st=ca(B,L,I,O,n,et,Number(d));M0&&t.arc(e+j.cx,i+j.cy,K,ne(j.y01,j.x01),ne(j.y11,j.x11),!d),t.arc(e,i,n,ne(j.cy+j.y11,j.cx+j.x11),ne(st.cy+st.y11,st.cx+st.x11),!d),et>0&&t.arc(e+st.cx,i+st.cy,et,ne(st.y11,st.x11),ne(st.y01,st.x01),!d)):et>0?t.moveTo(e+st.cx+et*se(ne(st.y01,st.x01)),i+st.cy+et*qt(ne(st.y01,st.x01))):t.moveTo(e+B,i+n*qt(_))}else!a||a[0]?(t.moveTo(e+C,i+R),t.arc(e,i,n,f,_,!d)):t.moveTo(e+n*se(_),i+n*qt(_));if(!(r>Jt)||g<.001)!a||a[1]?t.lineTo(e+I,i+O):t.moveTo(e+I,i+O),c=!0;else if(w>Jt){const K=xi(A,w),et=xi(x,w),j=ca(I,O,B,L,r,-et,Number(d)),st=ca(C,R,F,z,r,-K,Number(d));if(!a||a[1]?t.lineTo(e+j.cx+j.x01,i+j.cy+j.y01):t.moveTo(e+j.cx+j.x01,i+j.cy+j.y01),w0&&t.arc(e+j.cx,i+j.cy,et,ne(j.y01,j.x01),ne(j.y11,j.x11),!d),t.arc(e,i,r,ne(j.cy+j.y11,j.cx+j.x11),ne(st.cy+st.y11,st.cx+st.x11),d),K>0&&t.arc(e+st.cx,i+st.cy,K,ne(st.y11,st.x11),ne(st.y01,st.x01),!d)):K>0?t.moveTo(e+st.cx+K*se(ne(st.y01,st.x01)),i+st.cy+K*qt(ne(st.y01,st.x01))):t.moveTo(e+F,i+z)}else!a||a[1]?t.lineTo(e+I,i+O):t.moveTo(e+I,i+O),!a||a[2]?t.arc(e,i,r,m,y,d):t.moveTo(e+r*se(y),i+r*qt(y))}return a?a[3]&&t.lineTo(e+n*se(o),i+n*qt(o)):t.closePath(),c}const ms=class ms{static GetCanvas(){try{return ms.canvas||(ms.canvas=q.global.createCanvas({})),ms.canvas}catch{return null}}static GetCtx(){if(!ms.ctx){const t=ms.GetCanvas();ms.ctx=t.getContext("2d")}return ms.ctx}};S(ms,"canvas"),S(ms,"ctx");let hh=ms;const oa=class oa extends k3{constructor(e=[],i=100){super();S(this,"rgbaSet");S(this,"cacheParams",{CLEAN_THRESHOLD:100,L_TIME:1e3});S(this,"dataMap",new Map);const n=hh.GetCanvas(),r=hh.GetCtx();if(n.width=i,n.height=1,!r)return;if(r.translate(0,0),!r)throw new Error("获取ctx发生错误");const a=r.createLinearGradient(0,0,i,0);e.forEach(o=>{a.addColorStop(o[0],o[1])}),r.fillStyle=a,r.fillRect(0,0,i,1),this.rgbaSet=r.getImageData(0,0,i,1).data}static getInstance(){return oa._instance||(oa._instance=new oa),oa._instance}getColor(e){const i=this.rgbaSet.slice(4*e,4*e+4);return`rgba(${i[0]}, ${i[1]}, ${i[2]}, ${i[3]/255})`}GetOrCreate(e,i,n,r,a=[],o=100){let l=`${e}${i}${n}${r}`;a.forEach(d=>l+=d.join()),l+=o;let h=this.dataMap.get(l);return h||(h={data:new oa(a,o),timestamp:[]},this.addLimitedTimestamp(h,Date.now(),{}),this.dataMap.set(l,h)),this.clearCache(this.dataMap,this.cacheParams),h.data}};S(oa,"_instance");let Uy=oa;const Fn=class Fn{static GetSize(t){for(let e=0;e=t)return Fn.ImageSize[e];return t}static Get(t,e,i,n,r,a,o){const l=Fn.GenKey(t,e,i,n,r),h=Fn.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,n,r,a,o,l){const h=Fn.GenKey(t,e,i,n,r);Fn.cache[h]?Fn.cache[h].push({width:o,height:l,pattern:a}):Fn.cache[h]=[{width:o,height:l,pattern:a}]}static GenKey(t,e,i,n,r){return`${e},${i},${n},${r},${t.join()}`}};S(Fn,"cache",{}),S(Fn,"ImageSize",[20,40,80,160,320,640,1280,2560]);let Il=Fn;function H5(s,t,e,i){const{stops:n,startAngle:r,endAngle:a}=i;for(;e<0;)e+=Ft;for(;e>Ft;)e-=Ft;if(ea)return n[0].color;let o,l,h=(e-r)/(a-r);for(let d=0;d=h){o=n[d-1],l=n[d];break}return h=(h-o.offset)/(l.offset-o.offset),bo(o.color,l.color,h,!1)}function j5(s,t,e,i,n,r,a,o,l){const h=Math.floor(180*n/Math.PI),d=hh.GetCanvas(),c=hh.GetCtx();if(!c)return null;const u=Il.GetSize(o),p=Il.GetSize(l);let g=Il.Get(t,e,i,r,a,u,p);if(g)return g;const f=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(p-i,2),Math.pow(e,2)+Math.pow(p-i,2)))),_=h+1,m=n/Math.max(1,_-1),y=Uy.getInstance().GetOrCreate(e,i,u,p,t,_),v=2*Math.PI*f/360;d.width=u,d.height=p,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,u,p),c.translate(e,i),c.rotate(r);for(let x=0,A=_-1;xa);x++){const T=y.getColor(x);c.beginPath(),c.rotate(m),c.moveTo(0,0),c.lineTo(f,-2*v),c.lineTo(f,0),c.fillStyle=T,c.closePath(),c.fill()}const b=c.getImageData(0,0,u,p);return d.width=b.width,d.height=b.height,c.putImageData(b,0,0),g=s.createPattern(d,"no-repeat"),g&&Il.Set(t,e,i,r,a,g,u,p),g}const $y=Symbol.for("ArcRenderContribution"),Yy=Symbol.for("AreaRenderContribution"),Xy=Symbol.for("CircleRenderContribution"),NB=Symbol.for("GroupRenderContribution"),Ky=Symbol.for("ImageRenderContribution"),qy=Symbol.for("PathRenderContribution"),Zy=Symbol.for("PolygonRenderContribution"),gd=Symbol.for("RectRenderContribution"),Jy=Symbol.for("SymbolRenderContribution"),Qy=Symbol.for("TextRenderContribution"),TS=Symbol.for("InteractiveSubRenderContribution"),zk=["radius","startAngle","endAngle",...Xn],vc=class vc extends en{constructor(e={radius:1}){super(e);S(this,"type","circle");this.numberType=km}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:e,endAngle:i,radius:n}=this.attribute;return this._validNumber(e)&&this._validNumber(i)&&this._validNumber(n)}doUpdateAABBBounds(e){const i=it(this).circle;this._AABBBounds.clear();const n=this.attribute,r=q.graphicService.updateCircleAABBBounds(n,it(this).circle,this._AABBBounds,e,this),{boundsPadding:a=i.boundsPadding}=n,o=Ii(a);return o&&r.expand(o),this.clearUpdateBoundTag(),r}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).circle[e]}needUpdateTags(e){return super.needUpdateTags(e,zk)}needUpdateTag(e){return super.needUpdateTag(e,zk)}toCustomPath(){const e=this.attribute,i=e.radius??this.getDefaultAttribute("radius"),n=e.startAngle??this.getDefaultAttribute("startAngle"),r=e.endAngle??this.getDefaultAttribute("endAngle"),a=new ti;return a.arc(0,0,i,n,r),a}clone(){return new vc({...this.attribute})}getNoWorkAnimateAttr(){return vc.NOWORK_ANIMATE_ATTR}};S(vc,"NOWORK_ANIMATE_ATTR",Di);let tb=vc;function V5(s){return new tb(s)}function eb(s,t={},e){e||(e=1);const{fontStyle:i=t.fontStyle,fontVariant:n=t.fontVariant,fontWeight:r=t.fontWeight,fontSize:a=t.fontSize,fontFamily:o=t.fontFamily}=s;return(i?i+" ":"")+(n?n+" ":"")+(r?r+" ":"")+a*e+"px "+(o||"sans-serif")}function W5(s,t){return s==="top"?Math.ceil(.79*t):s==="middle"?Math.round(.3*t):s==="bottom"?Math.round(-.21*t):0}function br(s,t){return s==="end"||s==="right"?-t:s==="center"?-t/2:0}function Us(s,t,e,i=0){return s==="middle"?-t/2:s==="top"?0:s==="bottom"?i-t:s&&s!=="alphabetic"?0:(e||(e=t),-(t-e)/2-.79*e)}function G5(s){const t={};return["textAlign","fontFamily","fontVariant","fontStyle","fontWeight"].forEach(e=>{s[e]&&(t[TA(e)]=s[e])}),["fontSize","lineHeight"].forEach(e=>{const i=TA(e);P(s[e])||(t[i]=/^[0-9]*$/.test(`${s[e]}`)?`${s[e]}px`:`${s[e]}`)}),s.underline?t["text-decoration"]="underline":s.lineThrough&&(t["text-decoration"]="line-through"),s.fill&&at(s.fill)&&(t.color=s.fill),t}class Hk{constructor(t,e,i){S(this,"fontFamily");S(this,"textOptions");S(this,"textMeasure");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,n,r,a,o,l,h){const d=[],c=[e,i],u=[0,0];for(;t.length>0;){const{str:g}=this.textMeasure.clipTextWithSuffix(t,this.textOptions,e,o,l,h);d.push({str:g,width:this.textMeasure.measureTextWidth(g,this.textOptions)}),t=t.substring(g.length)}n==="left"||n==="start"||(n==="center"?u[0]=c[0]/-2:n!=="right"&&n!=="end"||(u[0]=-c[0])),r==="top"||(r==="middle"?u[1]=c[1]/-2:r==="bottom"&&(u[1]=-c[1]));const p={xOffset:u[0],yOffset:u[1],width:c[0],height:c[1]};return this.layoutWithBBox(p,d,n,r,a)}GetLayoutByLines(t,e,i,n,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 p=0,g=t.length;pMath.max(u,p.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,n)}layoutWithBBox(t,e,i,n,r){const a=[0,0],o=e.length*r;n==="top"||(n==="middle"?a[1]=(t.height-o)/2:n==="bottom"&&(a[1]=t.height-o));for(let l=0;lr.text).join("")!==i.text.toString():this.clipedText!=null&&this.clipedText!==i.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"}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{text:e}=this.attribute;return G(e)?!e.every(i=>i==null||i===""):e!=null&&e!==""}doUpdateAABBBounds(){const e=it(this).text;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateTextAABBBounds(i,e,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=this.attribute,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}updateWrapAABBBounds(e){var R;const i=it(this).text,{fontFamily:n=i.fontFamily,textAlign:r=i.textAlign,textBaseline:a=i.textBaseline,fontSize:o=i.fontSize,ellipsis:l=i.ellipsis,maxLineWidth:h,stroke:d=i.stroke,lineWidth:c=i.lineWidth,wordBreak:u=i.wordBreak,fontWeight:p=i.fontWeight,ignoreBuf:g=i.ignoreBuf,suffixPosition:f=i.suffixPosition,heightLimit:_=0,lineClamp:m}=this.attribute,y=kr(this.attribute.lineHeight,this.attribute.fontSize||i.fontSize)??(this.attribute.fontSize||i.fontSize),v=g?0:2;if(!this.shouldUpdateShape()&&((R=this.cache)!=null&&R.layoutData)){const I=this.cache.layoutData.bbox;return this._AABBBounds.set(I.xOffset,I.yOffset,I.xOffset+I.width,I.yOffset+I.height),d&&this._AABBBounds.expand(c/2),this._AABBBounds}const b=q.graphicUtil.textMeasure,x=new Hk(n,{fontSize:o,fontWeight:p,fontFamily:n},b),A=G(e)?e.map(I=>I.toString()):[e.toString()],T=[],k=[0,0];let M=1/0;if(_>0&&(M=Math.max(Math.floor(_/y),1)),m&&(M=Math.min(M,m)),typeof h=="number"&&h!==1/0){if(h>0)for(let O=0;O{I=Math.max(I,O.width)}),k[0]=I}else{let I,O,B=0;for(let L=0,F=A.length;L{const M=k.direction===xo.HORIZONTAL?c:n.measureTextWidth(k.text,{fontSize:c,fontWeight:u,fontFamily:p});r+=M,k.width=M}),this.cache.verticalList=x,this.cache.clipedWidth=r;this.clearUpdateShapeTag();const A=br(v,r),T=Us(b,y,c);return this._AABBBounds.set(T,A,T+y,A+r),g&&this._AABBBounds.expand(f/2),this._AABBBounds}updateHorizontalMultilineAABBBounds(e){var x;const i=it(this).text,{wrap:n=i.wrap}=this.attribute;if(n)return this.updateWrapAABBBounds(e);const r=this.attribute,{fontFamily:a=i.fontFamily,textAlign:o=i.textAlign,textBaseline:l=i.textBaseline,fontSize:h=i.fontSize,fontWeight:d=i.fontWeight,ellipsis:c=i.ellipsis,maxLineWidth:u,stroke:p=i.stroke,lineWidth:g=i.lineWidth,whiteSpace:f=i.whiteSpace,suffixPosition:_=i.suffixPosition}=r,m=kr(r.lineHeight,r.fontSize||i.fontSize)??(r.fontSize||i.fontSize);if(f==="normal")return this.updateWrapAABBBounds(e);if(!this.shouldUpdateShape()&&((x=this.cache)!=null&&x.layoutData)){const A=this.cache.layoutData.bbox;return this._AABBBounds.set(A.xOffset,A.yOffset,A.xOffset+A.width,A.yOffset+A.height),p&&this._AABBBounds.expand(g/2),this._AABBBounds}const y=q.graphicUtil.textMeasure,v=new Hk(a,{fontSize:h,fontWeight:d,fontFamily:a},y).GetLayoutByLines(e,o,l,m,c===!0?i.ellipsis:c||void 0,!1,u,_),{bbox:b}=v;return this.cache.layoutData=v,this.clearUpdateShapeTag(),this._AABBBounds.set(b.xOffset,b.yOffset,b.xOffset+b.width,b.yOffset+b.height),p&&this._AABBBounds.expand(g/2),this._AABBBounds}updateVerticalMultilineAABBBounds(e){const i=it(this).text,n=q.graphicUtil.textMeasure;let r;const a=this.attribute,{ignoreBuf:o=i.ignoreBuf}=a,l=o?0:2,{maxLineWidth:h=i.maxLineWidth,ellipsis:d=i.ellipsis,fontFamily:c=i.fontFamily,fontSize:u=i.fontSize,fontWeight:p=i.fontWeight,stroke:g=i.stroke,lineWidth:f=i.lineWidth,verticalMode:_=i.verticalMode,suffixPosition:m=i.suffixPosition}=a,y=kr(a.lineHeight,a.fontSize||i.fontSize)??(a.fontSize||i.fontSize)+l;let{textAlign:v=i.textAlign,textBaseline:b=i.textBaseline}=a;if(!_){const M=v;v=on.baselineMapAlign[b]??"left",b=on.alignMapBaseline[M]??"top"}if(r=0,!this.shouldUpdateShape()&&this.cache){this.cache.verticalList.forEach(R=>{const I=R.reduce((O,B)=>O+B.width,0);r=dn(I,r)});const M=br(v,r),w=this.cache.verticalList.length*y,C=Us(b,w,u);return this._AABBBounds.set(C,M,C+w,M+r),g&&this._AABBBounds.expand(f/2),this._AABBBounds}const x=e.map(M=>Dk(M.toString()));x.forEach((M,w)=>{if(Number.isFinite(h))if(d){const C=d===!0?i.ellipsis:d,R=n.clipTextWithSuffixVertical(M,{fontSize:u,fontWeight:p,fontFamily:c},h,C,!1,m);x[w]=R.verticalList,r=R.width}else{const C=n.clipTextVertical(M,{fontSize:u,fontWeight:p,fontFamily:c},h,!1);x[w]=C.verticalList,r=C.width}else r=0,M.forEach(C=>{const R=C.direction===xo.HORIZONTAL?u:n.measureTextWidth(C.text,{fontSize:u,fontWeight:p,fontFamily:c});r+=R,C.width=R})}),this.cache.verticalList=x,this.clearUpdateShapeTag(),this.cache.verticalList.forEach(M=>{const w=M.reduce((C,R)=>C+R.width,0);r=dn(w,r)});const A=br(v,r),T=this.cache.verticalList.length*y,k=Us(b,T,u);return this._AABBBounds.set(k,A,k+T,A+r),g&&this._AABBBounds.expand(f/2),this._AABBBounds}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).text[e]}needUpdateTags(e,i=jk){return super.needUpdateTags(e,i)}needUpdateTag(e,i=jk){return super.needUpdateTag(e,i)}clone(){return new on({...this.attribute})}getNoWorkAnimateAttr(){return on.NOWORK_ANIMATE_ATTR}},S(on,"NOWORK_ANIMATE_ATTR",{ellipsis:1,wordBreak:1,direction:1,textAlign:1,textBaseline:1,fontFamily:1,fontWeight:1,...Di}),S(on,"baselineMapAlign",{top:"left",bottom:"right",middle:"center"}),S(on,"alignMapBaseline",{left:"top",right:"bottom",center:"middle"}),on);function dh(s){return new N5(s)}class ni{bounds(t,e){if(nt(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 Vk(s,t,e,i,n){return n?s.arc(e,i,t,0,li,!1,n):s.arc(e,i,t,0,li),!1}class U5 extends ni{constructor(){super(...arguments);S(this,"type","circle");S(this,"pathStr","M0.5,0A0.5,0.5,0,1,1,-0.5,0A0.5,0.5,0,1,1,0.5,0")}draw(e,i,n,r,a){return Vk(e,i/2,n,r,a)}drawOffset(e,i,n,r,a,o){return Vk(e,i/2+a,n,r,o)}drawToSvgPath(e,i,n,r){const a=e/2;return`M ${i-a}, ${n} a ${a},${a} 0 1,0 ${2*a},0 a ${a},${a} 0 1,0 -${2*a},0`}}const $5=new U5;function Y5(s,t,e,i,n){return s.moveTo(-3*t+e,-t+i,n),s.lineTo(-t+e,-t+i,n),s.lineTo(-t+e,-3*t+i,n),s.lineTo(t+e,-3*t+i,n),s.lineTo(t+e,-t+i,n),s.lineTo(3*t+e,-t+i,n),s.lineTo(3*t+e,t+i,n),s.lineTo(t+e,t+i,n),s.lineTo(t+e,3*t+i,n),s.lineTo(-t+e,3*t+i,n),s.lineTo(-t+e,t+i,n),s.lineTo(-3*t+e,t+i,n),s.closePath(),!0}function X5(s,t,e,i,n,r){return s.moveTo(-3*t+e-n,-t+i-n,r),s.lineTo(-t+e-n,-t+i-n,r),s.lineTo(-t+e-n,-3*t+i-n,r),s.lineTo(t+e+n,-3*t+i-n,r),s.lineTo(t+e+n,-t+i-n,r),s.lineTo(3*t+e+n,-t+i-n,r),s.lineTo(3*t+e+n,t+i+n,r),s.lineTo(t+e+n,t+i+n,r),s.lineTo(t+e+n,3*t+i+n,r),s.lineTo(-t+e-n,3*t+i+n,r),s.lineTo(-t+e-n,t+i+n,r),s.lineTo(-3*t+e-n,t+i+n,r),s.closePath(),!0}class K5 extends ni{constructor(){super(...arguments);S(this,"type","cross");S(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(e,i,n,r,a){return Y5(e,i/6,n,r,a)}drawOffset(e,i,n,r,a,o){return X5(e,i/6,n,r,a,o)}}const q5=new K5;function rv(s,t,e,i,n){return s.moveTo(e,i-t,n),s.lineTo(t+e,i,n),s.lineTo(e,i+t,n),s.lineTo(e-t,i,n),s.closePath(),!0}class Z5 extends ni{constructor(){super(...arguments);S(this,"type","diamond");S(this,"pathStr","M-0.5,0L0,-0.5L0.5,0L0,0.5Z")}draw(e,i,n,r,a){return rv(e,i/2,n,r,a)}drawFitDir(e,i,n,r,a){return rv(e,i/2,n,r,a)}drawOffset(e,i,n,r,a,o){return rv(e,i/2+a,n,r,o)}}const J5=new Z5;function Wk(s,t,e,i){const n=2*t;return s.rect(e-t,i-t,n,n),!1}class Q5 extends ni{constructor(){super(...arguments);S(this,"type","square");S(this,"pathStr","M-0.5,-0.5h1v1h-1Z")}draw(e,i,n,r){return Wk(e,i/2,n,r)}drawOffset(e,i,n,r,a){return Wk(e,i/2+a,n,r)}}const tV=new Q5;function eV(s,t,e,i){return s.moveTo(e+t,t+i),s.lineTo(e-t,t+i),s.lineTo(e,i-t),s.closePath(),!0}function iV(s,t,e,i,n){return s.moveTo(e+t+2*n,t+i+n),s.lineTo(e-t-2*n,t+i+n),s.lineTo(e,i-t-2*n),s.closePath(),!0}class MS extends ni{constructor(){super(...arguments);S(this,"type","triangleUp");S(this,"pathStr","M0.5,0.5 L-0.5,0.5 L0,-0.5 Z")}draw(e,i,n,r){return eV(e,i/2,n,r)}drawOffset(e,i,n,r,a){return iV(e,i/2,n,r,a)}}const nV=new MS;class sV extends MS{constructor(){super(...arguments);S(this,"type","triangle")}}const rV=new sV,UB=Math.sin(Math.PI/10)/Math.sin(7*Math.PI/10),aV=Math.sin(li/10)*UB,oV=-Math.cos(li/10)*UB;function Gk(s,t,e,i){const n=aV*t,r=oV*t;s.moveTo(e,-t+i),s.lineTo(n+e,r+i);for(let a=1;a<5;++a){const o=li*a/5,l=Math.cos(o),h=Math.sin(o);s.lineTo(h*t+e,-l*t+i),s.lineTo(l*n-h*r+e,h*n+l*r+i)}return s.closePath(),!0}class lV extends ni{constructor(){super(...arguments);S(this,"type","star");S(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(e,i,n,r){return Gk(e,i/2,n,r)}drawOffset(e,i,n,r,a){return Gk(e,i/2+a,n,r)}}const hV=new lV,dV=un(3);function Nk(s,t,e,i){const n=t,r=n/dV,a=r/5,o=t;return s.moveTo(0+e,-n+i),s.lineTo(r/2+e,i),s.lineTo(a/2+e,i),s.lineTo(a/2+e,o+i),s.lineTo(-a/2+e,o+i),s.lineTo(-a/2+e,i),s.lineTo(-r/2+e,i),s.closePath(),!0}class cV extends ni{constructor(){super(...arguments);S(this,"type","arrow");S(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(e,i,n,r){return Nk(e,i/2,n,r)}drawOffset(e,i,n,r,a){return Nk(e,i/2+a,n,r)}}const uV=new cV;function Uk(s,t,e,i){const n=2*t;return s.moveTo(e,-t+i),s.lineTo(n/3/2+e,t+i),s.lineTo(-n/3/2+e,t+i),s.closePath(),!0}class pV extends ni{constructor(){super(...arguments);S(this,"type","wedge");S(this,"pathStr","M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z")}draw(e,i,n,r){return Uk(e,i/2,n,r)}drawOffset(e,i,n,r,a){return Uk(e,i/2+a,n,r)}}const gV=new pV;function $k(s,t,e,i){return s.moveTo(-t+e,i),s.lineTo(e,t+i),!1}class fV extends ni{constructor(){super(...arguments);S(this,"type","stroke");S(this,"pathStr","")}draw(e,i,n,r){return $k(e,i/2,n,r)}drawOffset(e,i,n,r,a){return $k(e,i/2+a,n,r)}}const _V=new fV,qn=-.5,Zn=un(3)/2,Yk=1/un(12);function Xk(s,t,e,i){const n=t/2,r=t*Yk,a=n,o=t*Yk+t,l=-a,h=o;return s.moveTo(n+e,r+i),s.lineTo(a+e,o+i),s.lineTo(l+e,h+i),s.lineTo(qn*n-Zn*r+e,Zn*n+qn*r+i),s.lineTo(qn*a-Zn*o+e,Zn*a+qn*o+i),s.lineTo(qn*l-Zn*h+e,Zn*l+qn*h+i),s.lineTo(qn*n+Zn*r+e,qn*r-Zn*n+i),s.lineTo(qn*a+Zn*o+e,qn*o-Zn*a+i),s.lineTo(qn*l+Zn*h+e,qn*h-Zn*l+i),s.closePath(),!1}class mV extends ni{constructor(){super(...arguments);S(this,"type","wye");S(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(e,i,n,r){return Xk(e,i/2,n,r)}drawOffset(e,i,n,r,a){return Xk(e,i/2+a,n,r)}}const vV=new mV;function yV(s,t,e,i){return s.moveTo(-t+e,i),s.lineTo(t+e,t+i),s.lineTo(t+e,i-t),s.closePath(),!0}function bV(s,t,e,i,n){return s.moveTo(-t+e-2*n,i),s.lineTo(t+e+n,t+i+2*n),s.lineTo(t+e+n,i-t-2*n),s.closePath(),!0}class xV extends ni{constructor(){super(...arguments);S(this,"type","triangleLeft");S(this,"pathStr","M-0.5,0 L0.5,0.5 L0.5,-0.5 Z")}draw(e,i,n,r){return yV(e,i/2,n,r)}drawOffset(e,i,n,r,a){return bV(e,i/2,n,r,a)}}const SV=new xV;function AV(s,t,e,i){return s.moveTo(e-t,t+i),s.lineTo(t+e,i),s.lineTo(e-t,i-t),s.closePath(),!0}function kV(s,t,e,i,n){return s.moveTo(e-t-n,t+i+2*n),s.lineTo(t+e+2*n,i),s.lineTo(e-t-n,i-t-2*n),s.closePath(),!0}class TV extends ni{constructor(){super(...arguments);S(this,"type","triangleRight");S(this,"pathStr","M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z")}draw(e,i,n,r){return AV(e,i/2,n,r)}drawOffset(e,i,n,r,a){return kV(e,i/2,n,r,a)}}const MV=new TV;function wV(s,t,e,i){return s.moveTo(e-t,i-t),s.lineTo(e+t,i-t),s.lineTo(e,i+t),s.closePath(),!0}function CV(s,t,e,i,n){return s.moveTo(e-t-2*n,i-t-n),s.lineTo(e+t+2*n,i-t-n),s.lineTo(e,i+t+2*n),s.closePath(),!0}class PV extends ni{constructor(){super(...arguments);S(this,"type","triangleDown");S(this,"pathStr","M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z")}draw(e,i,n,r){return wV(e,i/2,n,r)}drawOffset(e,i,n,r,a){return CV(e,i/2,n,r,a)}}const EV=new PV,ib=un(3);function Kk(s,t,e,i){const n=t*ib;return s.moveTo(e,i+-n/3*2),s.lineTo(t+e,i+n),s.lineTo(e-t,i+n),s.closePath(),!0}class RV extends MS{constructor(){super(...arguments);S(this,"type","thinTriangle");S(this,"pathStr","M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z")}draw(e,i,n,r){return Kk(e,i/2/ib,n,r)}drawOffset(e,i,n,r,a){return Kk(e,i/2/ib+a,n,r)}}const BV=new RV;function qk(s,t,e,i){const n=2*t;return s.moveTo(t+e,i-n),s.lineTo(e-t,i),s.lineTo(t+e,n+i),!0}class IV extends ni{constructor(){super(...arguments);S(this,"type","arrow2Left");S(this,"pathStr","M 0.25 -0.5 L -0.25 0 l 0.25 0.5")}draw(e,i,n,r){return qk(e,i/4,n,r)}drawOffset(e,i,n,r,a){return qk(e,i/4+a,n,r)}}const LV=new IV;function Zk(s,t,e,i){const n=2*t;return s.moveTo(e-t,i-n),s.lineTo(e+t,i),s.lineTo(e-t,n+i),!0}class OV extends ni{constructor(){super(...arguments);S(this,"type","arrow2Right");S(this,"pathStr","M -0.25 -0.5 l 0.25 0 l -0.25 0.5")}draw(e,i,n,r){return Zk(e,i/4,n,r)}drawOffset(e,i,n,r,a){return Zk(e,i/4+a,n,r)}}const DV=new OV;function Jk(s,t,e,i){const n=2*t;return s.moveTo(e-n,i+t),s.lineTo(e,i-t),s.lineTo(e+n,i+t),!0}class FV extends ni{constructor(){super(...arguments);S(this,"type","arrow2Up");S(this,"pathStr","M -0.5 0.25 L 0 -0.25 l 0.5 0.25")}draw(e,i,n,r){return Jk(e,i/4,n,r)}drawOffset(e,i,n,r,a){return Jk(e,i/4+a,n,r)}}const zV=new FV;function Qk(s,t,e,i){const n=2*t;return s.moveTo(e-n,i-t),s.lineTo(e,i+t),s.lineTo(e+n,i-t),!0}class HV extends ni{constructor(){super(...arguments);S(this,"type","arrow2Down");S(this,"pathStr","M -0.5 -0.25 L 0 0.25 l 0.5 -0.25")}draw(e,i,n,r){return Qk(e,i/4,n,r)}drawOffset(e,i,n,r,a){return Qk(e,i/4+a,n,r)}}const jV=new HV;function tT(s,t,e,i,n){return s.moveTo(e,i-t),s.lineTo(e,i+t),!0}class VV extends ni{constructor(){super(...arguments);S(this,"type","lineV");S(this,"pathStr","M0,-0.5L0,0.5")}draw(e,i,n,r,a){return tT(e,i/2,n,r)}drawOffset(e,i,n,r,a,o){return tT(e,i/2+a,n,r)}drawToSvgPath(e,i,n,r){const a=e/2;return`M ${i}, ${n-a} L ${i},${n+a}`}}const WV=new VV;function eT(s,t,e,i,n){return s.moveTo(e-t,i),s.lineTo(e+t,i),!0}class GV extends ni{constructor(){super(...arguments);S(this,"type","lineH");S(this,"pathStr","M-0.5,0L0.5,0")}draw(e,i,n,r,a){return eT(e,i/2,n,r)}drawOffset(e,i,n,r,a,o){return eT(e,i/2+a,n,r)}drawToSvgPath(e,i,n,r){const a=e/2;return`M ${i-a}, ${n} L ${i+a},${n}`}}const NV=new GV;function iT(s,t,e,i,n){return s.moveTo(e-t,i-t),s.lineTo(e+t,i+t),s.moveTo(e+t,i-t),s.lineTo(e-t,i+t),!0}class UV extends ni{constructor(){super(...arguments);S(this,"type","close");S(this,"pathStr","M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5")}draw(e,i,n,r,a){return iT(e,i/2,n,r)}drawOffset(e,i,n,r,a,o){return iT(e,i/2+a,n,r)}drawToSvgPath(e,i,n,r){const a=e/2;return`M ${i-a}, ${n-a} L ${i+a},${n+a} M ${i+a}, ${n-a} L ${i-a},${n+a}`}}const $V=new UV;function nT(s,t,e,i){return s.rect(e-t[0]/2,i-t[1]/2,t[0],t[1]),!1}function sT(s,t,e,i){const n=t,r=t/2;return s.rect(e-n/2,i-r/2,n,r),!1}class YV extends ni{constructor(){super(...arguments);S(this,"type","rect");S(this,"pathStr","M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z")}draw(e,i,n,r){return nt(i)?sT(e,i,n,r):nT(e,i,n,r)}drawOffset(e,i,n,r,a){return nt(i)?sT(e,i+2*a,n,r):nT(e,[i[0]+2*a,i[1]+2*a],n,r)}}const XV=new YV,Yh=new xe;class rT{constructor(t,e,i=!1){S(this,"type");S(this,"path");S(this,"pathStr","");S(this,"isSvg");S(this,"svgCache");this.type=t,G(e)?this.svgCache=e:this.path=e,this.isSvg=i}drawOffset(t,e,i,n,r,a,o){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach(l=>{t.beginPath(),Mr(l.path.commandList,t,i,n,e,e),o&&o(l.path,l.attribute)}),!1):(Mr(this.path.commandList,t,i,n,e+r,e+r),!1)}draw(t,e,i,n,r,a){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach(o=>{t.beginPath(),Mr(o.path.commandList,t,i,n,e,e),a&&a(o.path,o.attribute)}),!1):(Mr(this.path.commandList,t,i,n,e,e),!1)}bounds(t,e){if(this.isSvg)return this.svgCache?(e.clear(),void this.svgCache.forEach(({path:i})=>{Yh.x1=i.bounds.x1*t,Yh.y1=i.bounds.y1*t,Yh.x2=i.bounds.x2*t,Yh.y2=i.bounds.y2*t,e.union(Yh)})):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 KV=[$5,q5,J5,tV,BV,rV,hV,uV,gV,_V,vV,SV,MV,nV,EV,LV,DV,zV,jV,XV,WV,NV,$V],Fg={};KV.forEach(s=>{Fg[s.type]=s});const qV={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"},Ap=new xe,aT=["symbolType","size",...Xn];var ws;let wS=(ws=class extends en{constructor(e={symbolType:"circle"}){super(e);S(this,"type","symbol");S(this,"_parsedPath");this.numberType=Em}getParsedPath(){return this.shouldUpdateShape()&&(this.doUpdateParsedPath(),this.clearUpdateShapeTag()),this._parsedPath}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{size:e}=this.attribute;return G(e)?e.length===2&&e.every(this._validNumber):this._validNumber(e)}doUpdateParsedPath(){const e=it(this).symbol;let{symbolType:i=e.symbolType}=this.attribute,n=Fg[i];if(n)return this._parsedPath=n,n;if(n=ws.userSymbolMap[i],n)return this._parsedPath=n,n;if(i=qV[i]||i,M5(i)===!0){const h=new Gy,{svg:d}=h.parse(i);if(!d)return null;const c=G(d.path)?d.path:[d.path];Ap.clear();const u=[];c.forEach(_=>{const m=new ti().fromString(_.d),y={};I5.forEach(v=>{_[v]&&(y[FB[v]]=_[v])}),u.push({path:m,attribute:y}),Ap.union(m.bounds)});const p=Ap.width(),g=Ap.height(),f=1/dn(p,g);return u.forEach(_=>_.path.transform(0,0,f,f)),this._parsedPath=new rT(i,u,!0),ws.userSymbolMap[i]=this._parsedPath,this._parsedPath}const r=new ti().fromString(i),a=r.bounds.width(),o=r.bounds.height(),l=1/dn(a,o);return r.transform(0,0,l,l),this._parsedPath=new rT(i,r),ws.userSymbolMap[i]=this._parsedPath,this._parsedPath}doUpdateAABBBounds(e){const i=it(this).symbol;this._AABBBounds.clear();const n=this.attribute,r=q.graphicService.updateSymbolAABBBounds(n,it(this).symbol,this._AABBBounds,e,this),{boundsPadding:a=i.boundsPadding}=n,o=Ii(a);return o&&r.expand(o),this.clearUpdateBoundTag(),r}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).symbol[e]}needUpdateTags(e){return super.needUpdateTags(e,aT)}needUpdateTag(e){return super.needUpdateTag(e,aT)}toCustomPath(){const e=this.getParsedPath(),i=this.attribute.size,n=G(i)?i:[i,i];return e.path?new ti().fromCustomPath2D(e.path,0,0,n[0],n[1]):new ti().fromString(e.pathStr,0,0,n[0],n[1])}clone(){return new ws({...this.attribute})}getNoWorkAnimateAttr(){return ws.NOWORK_ANIMATE_ATTR}},S(ws,"userSymbolMap",{}),S(ws,"NOWORK_ANIMATE_ATTR",{symbolType:1,...Di}),ws);function Bm(s){return new wS(s)}const oT=["segments","points","curveType",...Xn];var Lo;let ZV=(Lo=class extends en{constructor(e={}){super(e);S(this,"type","line");this.numberType=Lu}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:e,segments:i}=this.attribute;return i?i.length!==0:!!e&&!(e.length<=1)}_interpolate(e,i,n,r,a){e==="points"&&(a.points=uS(n,r,i))}doUpdateAABBBounds(){const e=it(this).line;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateLineAABBBounds(i,it(this).line,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).line[e]}needUpdateTags(e){return super.needUpdateTags(e,oT)}needUpdateTag(e){return super.needUpdateTag(e,oT)}toCustomPath(){const e=this.attribute,i=new ti,n=e.segments,r=a=>{if(a&&a.length){let o=!0;a.forEach(l=>{l.defined!==!1&&(o?i.moveTo(l.x,l.y):i.lineTo(l.x,l.y),o=!1)})}};return n&&n.length?n.forEach(a=>{r(a.points)}):e.points&&r(e.points),i}clone(){return new Lo({...this.attribute})}getNoWorkAnimateAttr(){return Lo.NOWORK_ANIMATE_ATTR}},S(Lo,"NOWORK_ANIMATE_ATTR",{segments:1,curveType:1,...Di}),Lo);function CS(s){return new ZV(s)}const lT=["width","x1","y1","height","cornerRadius",...Xn],yc=class yc extends en{constructor(e){super(e);S(this,"type","rect");this.numberType=Pm}isValid(){return super.isValid()&&this._isValid()}_isValid(){return!0}doUpdateAABBBounds(){const e=it(this).rect;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateRectAABBBounds(i,it(this).rect,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).rect[e]}needUpdateTags(e){return super.needUpdateTags(e,lT)}needUpdateTag(e){return super.needUpdateTag(e,lT)}toCustomPath(){const e=this.attribute,{x:i,y:n,width:r,height:a}=SB(e),o=new ti;return o.moveTo(i,n),o.rect(i,n,r,a),o}clone(){return new yc({...this.attribute})}getNoWorkAnimateAttr(){return yc.NOWORK_ANIMATE_ATTR}};S(yc,"NOWORK_ANIMATE_ATTR",Di);let zg=yc;function Ho(s){return new zg(s)}const hT=[[0,0,0],[1,0,0],[1,1,0],[0,1,0],[0,0,1],[1,0,1],[1,1,1],[0,1,1]],lm=class lm extends zg{constructor(e){super(e);S(this,"type","rect3d");this.numberType=vS}findFace(){const e={polygons:[],vertices:[],edges:[]},i=it(this).rect,{x1:n,y1:r,x:a,y:o,length:l=xi(i.width,i.height)}=this.attribute;let{width:h,height:d}=this.attribute;h=h??n-a,d=d??r-o;for(let c=0;c{i.glyphHost=this,Object.setPrototypeOf(i.attribute,this.attribute)}),this.valid=this.isValid(),this.addUpdateBoundTag()}detachSubGraphic(){this.subGraphic.forEach(e=>{e.glyphHost=null,Object.setPrototypeOf(e.attribute,{})})}getSubGraphic(){return this.subGraphic}onInit(e){this._onInit=e}onUpdate(e){this._onUpdate=e}isValid(){return!0}setAttribute(e,i,n,r){super.setAttribute(e,i,n,r),this.subGraphic.forEach(a=>{a.addUpdateShapeAndBoundsTag(),a.addUpdatePositionTag()})}setAttributes(e,i=!1,n){super.setAttributes(e,i,n),this.subGraphic.forEach(r=>{r.addUpdateShapeAndBoundsTag(),r.addUpdatePositionTag()})}translate(e,i){return super.translate(e,i),this.subGraphic.forEach(n=>{n.addUpdatePositionTag(),n.addUpdateBoundTag()}),this}translateTo(e,i){return super.translateTo(e,i),this.subGraphic.forEach(n=>{n.addUpdatePositionTag(),n.addUpdateBoundTag()}),this}scale(e,i,n){return super.scale(e,i,n),this.subGraphic.forEach(r=>{r.addUpdatePositionTag(),r.addUpdateBoundTag()}),this}scaleTo(e,i){return super.scaleTo(e,i),this.subGraphic.forEach(n=>{n.addUpdatePositionTag(),n.addUpdateBoundTag()}),this}rotate(e){return super.rotate(e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}rotateTo(e){return super.rotate(e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}doUpdateAABBBounds(){this._AABBBounds.clear();const e=q.graphicService.updateGlyphAABBBounds(this.attribute,it(this).glyph,this._AABBBounds,this);return this.clearUpdateBoundTag(),e}tryUpdateOBBBounds(){throw new Error("暂不支持")}needUpdateTags(e){return!1}needUpdateTag(e){return!1}useStates(e,i){var a;if(!e.length)return void this.clearStates(i);if(!(((a=this.currentStates)==null?void 0:a.length)!==e.length||e.some((o,l)=>this.currentStates[l]!==o)))return;const n={},r=this.subGraphic.map(()=>({}));e.forEach(o=>{var h;const l=this.glyphStateProxy?this.glyphStateProxy(o,e):this.glyphStates[o];l&&(Object.assign(n,l.attributes),(h=l.subAttributes)!=null&&h.length&&r.forEach((d,c)=>{Object.assign(d,l.subAttributes[c])}))}),this.subGraphic.forEach((o,l)=>{o.updateNormalAttrs(r[l]),o.applyStateAttrs(r[l],e,i)}),this.updateNormalAttrs(n),this.currentStates=e,this.applyStateAttrs(n,e,i)}clearStates(e){this.hasState()&&this.normalAttrs&&(this.subGraphic.forEach(i=>{i.applyStateAttrs(i.normalAttrs,this.currentStates,e,!0),i.normalAttrs=null}),this.applyStateAttrs(this.normalAttrs,this.currentStates,e,!0),this.normalAttrs=null,this.currentStates=[])}clone(){const e=new bc({...this.attribute});return e.setSubGraphic(this.subGraphic.map(i=>i.clone())),e}getNoWorkAnimateAttr(){return bc.NOWORK_ANIMATE_ATTR}};S(bc,"NOWORK_ANIMATE_ATTR",Di);let sb=bc;function YB(s){return new sb(s)}class JV{constructor(t,e,i,n,r,a,o,l,h,d,c,u,p,g){S(this,"left");S(this,"top");S(this,"bottom");S(this,"right");S(this,"width");S(this,"height");S(this,"actualHeight");S(this,"ellipsis");S(this,"wordBreak");S(this,"verticalDirection");S(this,"lines");S(this,"globalAlign");S(this,"globalBaseline");S(this,"layoutDirection");S(this,"directionKey");S(this,"isWidthMax");S(this,"isHeightMax");S(this,"singleLine");S(this,"icons");this.left=t,this.top=e,this.width=i,this.height=n,this.actualHeight=0,this.bottom=e+n,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=dS[this.layoutDirection],this.isWidthMax=c,this.isHeightMax=u,this.singleLine=p,g?(g.clear(),this.icons=g):this.icons=new Map}draw(t,e){const{width:i,height:n}=this.getActualSize(),r=this.isWidthMax?Math.min(this.width,i):this.width||i||0;let a=this.isHeightMax?Math.min(this.height,n):this.height||n||0;a=Math.min(a,n);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 g=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(g=!0,d=!0),this.lines[c].draw(t,g,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||gthis[this.directionKey.top]+h)return d;{let g=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(g=!0,d=!0),this.lines[c].draw(t,g,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=n.actualWidth),e+=n.height}return{width:this.layoutDirection==="vertical"?e:t,height:this.layoutDirection==="vertical"?t:e}}getActualSizeWidthEllipsis(){let t=0,e=0;const{width:i,height:n}=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 Hc{constructor(t,e,i){S(this,"text");S(this,"ascent");S(this,"descent");S(this,"width");S(this,"height");S(this,"lineHeight");S(this,"fontSize");S(this,"length");S(this,"newLine");S(this,"character");S(this,"left");S(this,"top");S(this,"direction");S(this,"widthOrigin");S(this,"heightOrigin");S(this,"textBaseline");S(this,"ellipsis");S(this,"ellipsisStr");S(this,"ellipsisWidth");S(this,"ellipsisOtherParagraphWidth");S(this,"verticalEllipsis");S(this,"overflow");this.fontSize=i.fontSize||16,this.textBaseline=i.textBaseline||"alphabetic";const n=kr(i.lineHeight,this.fontSize);this.lineHeight=typeof n=="number"?n>this.fontSize?n:this.fontSize:Math.floor(1.2*this.fontSize),this.height=this.lineHeight;const{ascent:r,height:a,descent:o,width:l}=Rl(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}=Rl(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,n,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=By(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}=Rl(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&&(Aj(t,this.character),t.strokeText(a,o,e)),Sj(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 n=By(e,i-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,e.length-1);e=e.slice(0,n),e+=this.ellipsisStr;const{width:r}=Rl(this.text.slice(n),this.character);return i+this.ellipsisWidth-r}return i}}function QV(s,t){const e=s.text.slice(0,t),i=s.text.slice(t);return[new Hc(e,s.newLine,s.character),new Hc(i,!0,s.character)]}const dT=["width","height","image",...Xn],xc=class xc extends en{constructor(e){super(e);S(this,"type","image");S(this,"successCallback");S(this,"failCallback");this.numberType=Mm,this.loadImage(this.attribute.image)}get width(){return this.attribute.width??0}set width(e){this.attribute.width===e&&(this.attribute.width=e,this.addUpdateShapeAndBoundsTag())}get height(){return this.attribute.height??0}set height(e){this.attribute.height===e&&(this.attribute.height=e,this.addUpdateShapeAndBoundsTag())}get repeatX(){return this.attribute.repeatX??"no-repeat"}set repeatX(e){this.attribute.repeatX===e&&(this.attribute.repeatX=e)}get repeatY(){return this.attribute.repeatY??"no-repeat"}set repeatY(e){this.attribute.repeatY===e&&(this.attribute.repeatY=e)}get image(){return this.attribute.image}set image(e){e!==this.attribute.image&&(this.attribute.image=e,this.loadImage(this.attribute.image))}imageLoadSuccess(e,i,n){super.imageLoadSuccess(e,i,()=>{this.successCallback&&this.successCallback()})}imageLoadFail(e,i){super.imageLoadFail(e,()=>{this.failCallback&&this.failCallback()})}setAttributes(e,i,n){return e.image&&this.loadImage(e.image),super.setAttributes(e,i,n)}setAttribute(e,i,n,r){return e==="image"&&this.loadImage(i),super.setAttribute(e,i,n,r)}doUpdateAABBBounds(){const e=it(this).image;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateImageAABBBounds(i,it(this).image,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return Ic[e]}needUpdateTags(e){return super.needUpdateTags(e,dT)}needUpdateTag(e){return super.needUpdateTag(e,dT)}clone(){return new xc({...this.attribute})}getNoWorkAnimateAttr(){return xc.NOWORK_ANIMATE_ATTR}};S(xc,"NOWORK_ANIMATE_ATTR",{image:1,repeatX:1,repeatY:1,...Di});let Hg=xc;function PS(s){return new Hg(s)}class xr extends Hg{constructor(e){super(e);S(this,"richtextId");S(this,"globalX");S(this,"globalY");S(this,"_x",0);S(this,"_y",0);S(this,"_hovered",!1);S(this,"_marginArray",[0,0,0,0]);S(this,"animationBackUps");S(this,"incrementalAt");S(this,"toCustomPath");if(e.backgroundShowMode==="always"&&(this._hovered=!0),e.margin){const i=Ii(e.margin);this._marginArray=typeof i=="number"?[i,i,i,i]:i}this.onBeforeAttributeUpdate=(i,n,r)=>{if(G(r)&&r.indexOf("margin")!==-1||r==="margin")if(n.margin){const a=Ii(n.margin);this._marginArray=typeof a=="number"?[a,a,a,a]:a}else this._marginArray=[0,0,0,0]}}get width(){return(this.attribute.width??0)+this._marginArray[1]+this._marginArray[3]}get height(){return(this.attribute.height??0)+this._marginArray[0]+this._marginArray[2]}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;this.doUpdateAABBBounds();const{width:e=Ic.width,height:i=Ic.height}=this.attribute,{backgroundWidth:n=e,backgroundHeight:r=i}=this.attribute,a=(n-e)/2,o=(r-i)/2;return this._AABBBounds.expand([0,2*a,2*o,0]),this._AABBBounds}setHoverState(e){this.attribute.backgroundShowMode==="hover"&&this._hovered!==e&&(this._hovered=e)}}class tW{constructor(t,e,i,n,r,a,o,l){S(this,"left");S(this,"top");S(this,"width");S(this,"height");S(this,"baseline");S(this,"ascent");S(this,"descent");S(this,"paragraphs");S(this,"actualWidth");S(this,"blankWidth");S(this,"textAlign");S(this,"direction");S(this,"directionKey");this.left=t,this.width=e,this.baseline=i,this.ascent=n,this.descent=r,this.top=i-n,this.paragraphs=a.map(d=>d),this.textAlign=(this.paragraphs[0]instanceof xr?this.paragraphs[0].attribute.textAlign:this.paragraphs[0].character.textAlign)||"left",this.direction=o,this.directionKey=dS[this.direction],this.actualWidth=0;let h=0;this.paragraphs.forEach((d,c)=>{if(c===0&&d instanceof Hc){const u=xj.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,n=this.height;let r=this.left,a=0;this.actualWidtho.overflow))){let o=0;for(let l=this.paragraphs.length-1;l>=0;l--){const h=this.paragraphs[l];if(h.overflow)continue;if(h instanceof xr)break;if(this.direction==="vertical"&&h.direction!=="vertical"){h.verticalEllipsis=!0;break}const d=r===!0?"...":r||"";h.ellipsisStr=d;const{width:c}=Rl(d,h.character),u=c||0;if(u<=this.blankWidth+o){e&&(h.ellipsis="add");break}if(u<=this.blankWidth+o+h.width){h.ellipsis="replace",h.ellipsisWidth=u,h.ellipsisOtherParagraphWidth=this.blankWidth+o;break}h.ellipsis="hide",o+=h.width}}this.paragraphs.map((o,l)=>{if(o instanceof xr)return o.setAttributes({x:i+o._x,y:n+o._y}),void a(o,t,i+o._x,n+o._y,this.ascent);o.draw(t,n+this.ascent,i,l===0,this.textAlign)})}getWidthWithEllips(t){let e=0;for(let n=this.paragraphs.length-1;n>=0;n--){const r=this.paragraphs[n];if(r instanceof xr)break;const{width:a}=Rl(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((n,r)=>{i+=n instanceof xr?n.width:n.getWidthWithEllips(this.direction)}),i}}class eW{constructor(t){S(this,"frame");S(this,"lineWidth");S(this,"width");S(this,"height");S(this,"y");S(this,"maxAscent");S(this,"maxDescent");S(this,"maxAscentForBlank");S(this,"maxDescentForBlank");S(this,"lineBuffer");S(this,"direction");S(this,"directionKey");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=dS[this.direction]}store(t){if(t instanceof xr){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 tW(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){t instanceof xr?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)))}cut(t){const e=this[this.directionKey.width]-this.lineWidth||0,i=Math.ceil(e/t[this.directionKey.width]*t.length)||0,n=By(t.text,e,t.character,i,this.frame.wordBreak==="break-word");if(n!==0){const[r,a]=QV(t,n);this.store(r),this.deal(a)}else this.lineBuffer.length!==0&&(this.send(),this.deal(t))}}const cT=["width","height","ellipsis","wordBreak","verticalDirection","maxHeight","maxWidth","textAlign","textBaseline","textConfig","layoutDirection",...Xn],Sc=class Sc extends en{constructor(e){super(e);S(this,"type","richtext");S(this,"_frameCache");S(this,"_currentHoverIcon",null);this.numberType=yS}get width(){return this.attribute.width??Gs.width}set width(e){this.attribute.width!==e&&(this.attribute.width=e,this.addUpdateShapeAndBoundsTag())}get height(){return this.attribute.height??Gs.height}set height(e){this.attribute.height!==e&&(this.attribute.height=e,this.addUpdateShapeAndBoundsTag())}get maxWidth(){return this.attribute.maxWidth}set maxWidth(e){this.attribute.maxWidth!==e&&(this.attribute.maxWidth=e,this.addUpdateShapeAndBoundsTag())}get maxHeight(){return this.attribute.maxHeight}set maxHeight(e){this.attribute.maxHeight!==e&&(this.attribute.maxHeight=e,this.addUpdateShapeAndBoundsTag())}get ellipsis(){return this.attribute.ellipsis??Gs.ellipsis}set ellipsis(e){this.attribute.ellipsis!==e&&(this.attribute.ellipsis=e,this.addUpdateShapeAndBoundsTag())}get wordBreak(){return this.attribute.wordBreak??Gs.wordBreak}set wordBreak(e){this.attribute.wordBreak!==e&&(this.attribute.wordBreak=e,this.addUpdateShapeAndBoundsTag())}get verticalDirection(){return this.attribute.verticalDirection??Gs.verticalDirection}set verticalDirection(e){this.attribute.verticalDirection!==e&&(this.attribute.verticalDirection=e,this.addUpdateShapeAndBoundsTag())}get textAlign(){return this.attribute.textAlign??Gs.textAlign}set textAlign(e){this.attribute.textAlign!==e&&(this.attribute.textAlign=e,this.addUpdateShapeAndBoundsTag())}get textBaseline(){return this.attribute.textBaseline??Gs.textBaseline}set textBaseline(e){this.attribute.textBaseline!==e&&(this.attribute.textBaseline=e,this.addUpdateShapeAndBoundsTag())}get textConfig(){return this.attribute.textConfig??Gs.textConfig}set textConfig(e){this.attribute.textConfig=e,this.addUpdateShapeAndBoundsTag()}doUpdateAABBBounds(){const e=it(this).richtext;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateRichTextAABBBounds(i,it(this).richtext,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return Gs[e]}needUpdateTags(e){return super.needUpdateTags(e,cT)}needUpdateTag(e){return super.needUpdateTag(e,cT)}getFrameCache(){return this.shouldUpdateShape()&&(this.doUpdateFrameCache(),this.clearUpdateShapeTag()),this._frameCache}combinedStyleToCharacter(e){const{fill:i,stroke:n,fontSize:r,fontFamily:a,fontStyle:o,fontWeight:l,lineWidth:h,opacity:d,fillOpacity:c,strokeOpacity:u}=this.attribute;return{fill:i,stroke:n,fontSize:r,fontFamily:a,fontStyle:o,fontWeight:l,lineWidth:h,opacity:d,fillOpacity:c,strokeOpacity:u,...e}}doUpdateFrameCache(){var A;const{textConfig:e=[],maxWidth:i,maxHeight:n,width:r,height:a,ellipsis:o,wordBreak:l,verticalDirection:h,textAlign:d,textBaseline:c,layoutDirection:u,singleLine:p,disableAutoWrapLine:g}=this.attribute,f=[];for(let T=0;T{var C;this.addUpdateBoundTag(),(C=this.stage)==null||C.renderNextFrame()},w.richtextId=k.id,f.push(w)}}else{const k=this.combinedStyleToCharacter(e[T]);if(nt(k.text)&&(k.text=`${k.text}`),k.text&&k.text.includes(` +`)){const M=k.text.split(` +`);for(let w=0;w0,m=typeof n=="number"&&Number.isFinite(n)&&n>0,y=typeof r=="number"&&Number.isFinite(r)&&r>0&&(!_||r<=i),v=typeof a=="number"&&Number.isFinite(a)&&a>0&&(!m||a<=n),b=new JV(0,0,(y?r:_?i:0)||0,(v?a:m?n:0)||0,o,l,h,d,c,u||"horizontal",!y&&_,!v&&m,p||!1,(A=this._frameCache)==null?void 0:A.icons),x=new eW(b);if(g){let T=0,k=!1;for(let M=0;M{n.setStage(e,i)})}bindIconEvent(){this.addEventListener("pointermove",e=>{var n,r,a,o,l;const i=this.pickIcon(e.global);i&&i===this._currentHoverIcon||(i?((n=this._currentHoverIcon)==null||n.setHoverState(!1),this._currentHoverIcon=i,this._currentHoverIcon.setHoverState(!0),(r=this.stage)==null||r.setCursor(i.attribute.cursor),(a=this.stage)==null||a.renderNextFrame()):!i&&this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,(o=this.stage)==null||o.setCursor(),(l=this.stage)==null||l.renderNextFrame()))}),this.addEventListener("pointerleave",e=>{var i,n;this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,(i=this.stage)==null||i.setCursor(),(n=this.stage)==null||n.renderNextFrame())})}pickIcon(e){const i=this.getFrameCache(),{e:n,f:r}=this.globalTransMatrix;let a;return i.icons.forEach(o=>{o.AABBBounds.containsPoint({x:e.x-n,y:e.y-r})&&(a=o,a.globalX=(a.attribute.x??0)+n,a.globalY=(a.attribute.y??0)+r)}),a}getNoWorkAnimateAttr(){return Sc.NOWORK_ANIMATE_ATTR}};S(Sc,"NOWORK_ANIMATE_ATTR",{ellipsis:1,wordBreak:1,verticalDirection:1,textAlign:1,textBaseline:1,textConfig:1,layoutDirection:1,...Di});let rb=Sc;function XB(s){return new rb(s)}const uT=["path","customPath",...Xn],Ac=class Ac extends en{constructor(e){super(e);S(this,"type","path");S(this,"cache");this.numberType=wm}get pathShape(){return this.tryUpdateAABBBounds(),this.getParsedPathShape()}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{path:e}=this.attribute;return e!=null&&e!==""}getParsedPathShape(){const e=it(this).path;if(!this.valid)return e.path;const i=this.attribute;return i.path instanceof ti?i.path:(P(this.cache)&&this.doUpdatePathShape(),this.cache instanceof ti?this.cache:e.path)}doUpdateAABBBounds(){const e=it(this).path;this.doUpdatePathShape(),this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updatePathAABBBounds(i,it(this).path,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}doUpdatePathShape(){const e=this.attribute;at(e.path,!0)?this.cache=new ti().fromString(e.path):e.customPath&&(this.cache=new ti,e.customPath(this.cache,this))}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(e){return it(this).path[e]}needUpdateTags(e){return super.needUpdateTags(e,uT)}needUpdateTag(e){return super.needUpdateTag(e,uT)}toCustomPath(){return new ti().fromCustomPath2D(this.getParsedPathShape(),0,0)}clone(){return new Ac({...this.attribute})}getNoWorkAnimateAttr(){return Ac.NOWORK_ANIMATE_ATTR}};S(Ac,"NOWORK_ANIMATE_ATTR",{path:1,customPath:1,...Di});let ab=Ac;function KB(s){return new ab(s)}const pT=["segments","points","curveType",...Xn],kc=class kc extends en{constructor(e){super(e);S(this,"type","area");S(this,"cache");this.numberType=Iu}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:e,segments:i}=this.attribute;return i?i.length!==0:!!e&&e.length!==0}doUpdateAABBBounds(){const e=it(this).area;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateAreaAABBBounds(i,it(this).area,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),n}tryUpdateOBBBounds(){throw new Error("暂不支持")}_interpolate(e,i,n,r,a){e==="points"&&(a.points=uS(n,r,i))}getDefaultAttribute(e){return it(this).area[e]}needUpdateTags(e){return super.needUpdateTags(e,pT)}needUpdateTag(e){return super.needUpdateTag(e,pT)}toCustomPath(){const e=new ti,i=this.attribute,n=i.segments,r=a=>{if(a&&a.length){let o=!0;const l=[];if(a.forEach(h=>{h.defined!==!1&&(o?e.moveTo(h.x,h.y):e.lineTo(h.x,h.y),l.push({x:h.x1??h.x,y:h.y1??h.y}),o=!1)}),l.length){for(let h=l.length-1;h>=0;h--)e.lineTo(l[h].x,l[h].y);e.closePath()}}};return i.points?r(i.points):n&&n.length&&n.forEach(a=>{r(a.points)}),e}clone(){return new kc({...this.attribute})}getNoWorkAnimateAttr(){return kc.NOWORK_ANIMATE_ATTR}};S(kc,"NOWORK_ANIMATE_ATTR",{segments:1,curveType:1,...Di});let ob=kc;function qB(s){return new ob(s)}const gT=["innerRadius","outerRadius","startAngle","endAngle","cornerRadius","padAngle","padRadius","cap",...Xn],Tc=class Tc extends en{constructor(e){super(e);S(this,"type","arc");this.numberType=Am}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:e,endAngle:i,outerRadius:n,innerRadius:r}=this.attribute;return this._validNumber(e)&&this._validNumber(i)&&this._validNumber(n)&&this._validNumber(r)}getParsedCornerRadius(){const e=it(this).arc,{cornerRadius:i=e.cornerRadius,innerPadding:n=e.innerPadding,outerPadding:r=e.outerPadding}=this.attribute;let{outerRadius:a=e.outerRadius,innerRadius:o=e.innerRadius}=this.attribute;if(a+=r,o-=n,i===0||i==="0%")return 0;const l=Math.abs(a-o);return Math.min(nt(i,!0)?i:l*parseFloat(i)/100,l/2)}getParsedAngle(){const e=it(this).arc;let{startAngle:i=e.startAngle,endAngle:n=e.endAngle}=this.attribute;const{cap:r=e.cap}=this.attribute,a=n-i>=0?1:-1,o=n-i;if(i=S3(i),n=i+o,r&&Ut(o)Jt&&d>Jt)return{startAngle:i-a*f*l,endAngle:n+a*f*h,sc:a*f*l,ec:a*f*h}}return{startAngle:i,endAngle:n}}getParsePadAngle(e,i){const n=it(this).arc,{innerPadding:r=n.innerPadding,outerPadding:a=n.outerPadding,padAngle:o=n.padAngle}=this.attribute;let{outerRadius:l=n.outerRadius,innerRadius:h=n.innerRadius}=this.attribute;l+=a,h-=r;const{padRadius:d=un(l*l+h*h)}=this.attribute,c=Ut(i-e);let u=e,p=i,g=e,f=i;const _=o/2;let m=c,y=c;if(_>Jt&&d>Jt){const v=i>e?1:-1;let b=fA(Number(d)/h*qt(_)),x=fA(Number(d)/l*qt(_));return(m-=2*b)>Jt?(b*=v,g+=b,f-=b):(m=0,g=f=(e+i)/2),(y-=2*x)>Jt?(x*=v,u+=x,p-=x):(y=0,u=p=(e+i)/2),{outerStartAngle:u,outerEndAngle:p,innerStartAngle:g,innerEndAngle:f,innerDeltaAngle:m,outerDeltaAngle:y}}return{outerStartAngle:u,outerEndAngle:p,innerStartAngle:g,innerEndAngle:f,innerDeltaAngle:m,outerDeltaAngle:y}}doUpdateAABBBounds(e){const i=it(this).arc;this._AABBBounds.clear();const n=this.attribute,r=q.graphicService.updateArcAABBBounds(n,it(this).arc,this._AABBBounds,e,this),{boundsPadding:a=i.boundsPadding}=n,o=Ii(a);return o&&r.expand(o),this.clearUpdateBoundTag(),r}tryUpdateOBBBounds(){throw new Error("暂不支持")}needUpdateTags(e){return super.needUpdateTags(e,gT)}needUpdateTag(e){return super.needUpdateTag(e,gT)}getDefaultAttribute(e){return it(this).arc[e]}toCustomPath(){const e=this.attribute,{startAngle:i,endAngle:n}=this.getParsedAngle();let r=e.innerRadius-(e.innerPadding||0),a=e.outerRadius-(e.outerPadding||0);const o=Ut(n-i),l=n>i;if(a=Ft-Jt)h.moveTo(0+a*se(i),0+a*qt(i)),h.arc(0,0,a,i,n,!l),r>Jt&&(h.moveTo(0+r*se(n),0+r*qt(n)),h.arc(0,0,r,n,i,l));else{const d=a*se(i),c=a*qt(i),u=r*se(n),p=r*qt(n);h.moveTo(0+d,0+c),h.arc(0,0,a,i,n,!l),h.lineTo(0+u,0+p),h.arc(0,0,r,n,i,l),h.closePath()}return h}clone(){return new Tc({...this.attribute})}getNoWorkAnimateAttr(){return Tc.NOWORK_ANIMATE_ATTR}};S(Tc,"NOWORK_ANIMATE_ATTR",{cap:1,...Di});let jg=Tc;function ES(s){return new jg(s)}const hm=class hm extends jg{constructor(e){super(e);S(this,"type","arc3d");this.numberType=Bu}doUpdateAABBBounds(){const e=it(this).arc;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updateArc3dAABBBounds(i,it(this).polygon,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),this._AABBBounds}getNoWorkAnimateAttr(){return hm.NOWORK_ANIMATE_ATTR}};S(hm,"NOWORK_ANIMATE_ATTR",{cap:1,...Di});let lb=hm;function ZB(s){return new lb(s)}const fT=["points","cornerRadius",...Xn],Mc=class Mc extends en{constructor(e){super(e);S(this,"type","polygon");this.numberType=Cm}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{points:e}=this.attribute;return e&&e.length>=2}doUpdateAABBBounds(){const e=it(this).polygon;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updatePolygonAABBBounds(i,it(this).polygon,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),this._AABBBounds}tryUpdateOBBBounds(){throw new Error("暂不支持")}_interpolate(e,i,n,r,a){e==="points"&&(a.points=uS(n,r,i))}getDefaultAttribute(e){return it(this).polygon[e]}needUpdateTags(e){return super.needUpdateTags(e,fT)}needUpdateTag(e){return super.needUpdateTag(e,fT)}toCustomPath(){const e=this.attribute.points,i=new ti;return e.forEach((n,r)=>{r===0?i.moveTo(n.x,n.y):i.lineTo(n.x,n.y)}),i.closePath(),i}clone(){return new Mc({...this.attribute})}getNoWorkAnimateAttr(){return Mc.NOWORK_ANIMATE_ATTR}};S(Mc,"NOWORK_ANIMATE_ATTR",Di);let Vg=Mc;function JB(s){return new Vg(s)}const dm=class dm extends Vg{constructor(e){super(e);S(this,"type","pyramid3d");this.numberType=mS}doUpdateAABBBounds(){const e=it(this).polygon;this._AABBBounds.clear();const i=this.attribute,n=q.graphicService.updatePyramid3dAABBBounds(i,it(this).polygon,this._AABBBounds,this),{boundsPadding:r=e.boundsPadding}=i,a=Ii(r);return a&&n.expand(a),this.clearUpdateBoundTag(),this._AABBBounds}findFace(){const{points:e}=this.attribute,i=e.map((l,h)=>{const d=h===3?e[0]:e[h+1],c=l.x-d.x;return c===0?0:(l.y-d.y)/c}),n=e.map(l=>({p:l,d:0}));let r=!1,a=0;for(let l=0;l=0;l--){const h=e[l];n.unshift({p:h,d:0})}for(let l=0;l{o.vertices.push([l.p.x,l.p.y,l.d])}),o.polygons.push({polygon:[0,4,5,1],normal:[0,-1,0]}),o.polygons.push({polygon:[7,6,2,3],normal:[0,1,0]}),o.polygons.push({polygon:[0,4,7,3],normal:[-1,0,0]}),o.polygons.push({polygon:[1,5,6,2],normal:[1,0,0]}),o.polygons.push({polygon:[0,1,2,3],normal:[0,0,-1]}),o.polygons.push({polygon:[4,5,6,7],normal:[0,0,1]}),o.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]],o}_isValid(){return super._isValid()&&this.attribute.points.length===4}getNoWorkAnimateAttr(){return dm.NOWORK_ANIMATE_ATTR}};S(dm,"NOWORK_ANIMATE_ATTR",Di);let hb=dm;function QB(s){return new hb(s)}class iW extends Ou{constructor(e){super({x:0,y:0});S(this,"type","shadowroot");this.shadowHost=e}addUpdateBoundTag(){super.addUpdateBoundTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}addUpdateShapeAndBoundsTag(){super.addUpdateShapeAndBoundsTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}tryUpdateGlobalTransMatrix(e=!0){if(this.shouldUpdateGlobalMatrix()){const i=this.transMatrix;this._globalTransMatrix?this._globalTransMatrix.setValue(i.a,i.b,i.c,i.d,i.e,i.f):this._globalTransMatrix=i.clone(),this.doUpdateGlobalMatrix(),e&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}doUpdateGlobalMatrix(){if(this.shadowHost){const e=this.shadowHost.globalTransMatrix;this._globalTransMatrix.multiply(e.a,e.b,e.c,e.d,e.e,e.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 nW(s){return new iW(s)}class fd{updateBounds(t,e,i,n){const{outerBorder:r,shadowBlur:a=e.shadowBlur}=t;if(r){const o=e.outerBorder,{distance:l=o.distance,lineWidth:h=o.lineWidth}=r;i.expand(l+(a+h)/2)}return i}}class sW extends fd{updateBounds(t,e,i,n){const{outerBorder:r,shadowBlur:a=e.shadowBlur,strokeBoundsBuffer:o=e.strokeBoundsBuffer}=t;if(r){const l=e.outerBorder,{distance:h=l.distance,lineWidth:d=l.lineWidth}=r;eg(i,h+(a+d)/2,!0,o)}return i}}function _T(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}class rW{constructor(){S(this,"pools",[])}allocate(t,e,i,n,r,a){if(!this.pools.length)return new Ee(t,e,i,n,r,a);const o=this.pools.pop();return o.a=t,o.b=e,o.c=i,o.d=n,o.e=r,o.f=a,o}allocateByObj(t){if(!this.pools.length)return new Ee(t.a,t.b,t.c,t.d,t.e,t.f);const e=this.pools.pop();return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}class Im{constructor(){S(this,"pools",[])}static identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}allocate(){if(!this.pools.length)return _T();const t=this.pools.pop();return Im.identity(t),t}allocateByObj(t){let e;e=this.pools.length?this.pools.pop():_T();for(let i=0;i=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},oW=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},lW=function(s,t){return function(e,i){t(e,i,s)}};function hW(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}function dW(s,t,e){const i=Math.sin(e),n=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!==s&&(s[0]=t[0],s[1]=t[1],s[2]=t[2],s[3]=t[3],s[12]=t[12],s[13]=t[13],s[14]=t[14],s[15]=t[15]),s[4]=r*n+h*i,s[5]=a*n+d*i,s[6]=o*n+c*i,s[7]=l*n+u*i,s[8]=h*n-r*i,s[9]=d*n-a*i,s[10]=c*n-o*i,s[11]=u*n-l*i,s}function cW(s,t,e){const i=Math.sin(e),n=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!==s&&(s[4]=t[4],s[5]=t[5],s[6]=t[6],s[7]=t[7],s[12]=t[12],s[13]=t[13],s[14]=t[14],s[15]=t[15]),s[0]=r*n-h*i,s[1]=a*n-d*i,s[2]=o*n-c*i,s[3]=l*n-u*i,s[8]=r*i+h*n,s[9]=a*i+d*n,s[10]=o*i+c*n,s[11]=l*i+u*n,s}function uW(s,t,e){const i=Math.sin(e),n=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!==s&&(s[8]=t[8],s[9]=t[9],s[10]=t[10],s[11]=t[11],s[12]=t[12],s[13]=t[13],s[14]=t[14],s[15]=t[15]),s[0]=r*n+h*i,s[1]=a*n+d*i,s[2]=o*n+c*i,s[3]=l*n+u*i,s[4]=h*n-r*i,s[5]=d*n-a*i,s[6]=c*n-o*i,s[7]=u*n-l*i,s}function Xh(s,t,e){const i=e[0],n=e[1],r=e[2];let a,o,l,h,d,c,u,p,g,f,_,m;return t===s?(s[12]=t[0]*i+t[4]*n+t[8]*r+t[12],s[13]=t[1]*i+t[5]*n+t[9]*r+t[13],s[14]=t[2]*i+t[6]*n+t[10]*r+t[14],s[15]=t[3]*i+t[7]*n+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],p=t[7],g=t[8],f=t[9],_=t[10],m=t[11],s[0]=a,s[1]=o,s[2]=l,s[3]=h,s[4]=d,s[5]=c,s[6]=u,s[7]=p,s[8]=g,s[9]=f,s[10]=_,s[11]=m,s[12]=a*i+d*n+g*r+t[12],s[13]=o*i+c*n+f*r+t[13],s[14]=l*i+u*n+_*r+t[14],s[15]=h*i+p*n+m*r+t[15]),s}function db(s,t){s[0]=t.a,s[1]=t.b,s[2]=0,s[3]=0,s[4]=t.c,s[5]=t.d,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=t.e,s[13]=t.f,s[14]=0,s[15]=1}function pW(s,t,e){const i=e[0],n=e[1],r=e[2];return s[0]=t[0]*i,s[1]=t[1]*i,s[2]=t[2]*i,s[3]=t[3]*i,s[4]=t[4]*n,s[5]=t[5]*n,s[6]=t[6]*n,s[7]=t[7]*n,s[8]=t[8]*r,s[9]=t[9]*r,s[10]=t[10]*r,s[11]=t[11]*r,s[12]=t[12],s[13]=t[13],s[14]=t[14],s[15]=t[15],s}function Du(s,t,e){const i=t[0],n=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],p=t[10],g=t[11],f=t[12],_=t[13],m=t[14],y=t[15];let v=e[0],b=e[1],x=e[2],A=e[3];return s[0]=v*i+b*o+x*c+A*f,s[1]=v*n+b*l+x*u+A*_,s[2]=v*r+b*h+x*p+A*m,s[3]=v*a+b*d+x*g+A*y,v=e[4],b=e[5],x=e[6],A=e[7],s[4]=v*i+b*o+x*c+A*f,s[5]=v*n+b*l+x*u+A*_,s[6]=v*r+b*h+x*p+A*m,s[7]=v*a+b*d+x*g+A*y,v=e[8],b=e[9],x=e[10],A=e[11],s[8]=v*i+b*o+x*c+A*f,s[9]=v*n+b*l+x*u+A*_,s[10]=v*r+b*h+x*p+A*m,s[11]=v*a+b*d+x*g+A*y,v=e[12],b=e[13],x=e[14],A=e[15],s[12]=v*i+b*o+x*c+A*f,s[13]=v*n+b*l+x*u+A*_,s[14]=v*r+b*h+x*p+A*m,s[15]=v*a+b*d+x*g+A*y,s}function tI(s,t,e){const{x:i=e.x,y:n=e.y,z:r=e.z,dx:a=e.dx,dy:o=e.dy,dz:l=e.dz,scaleX:h=e.scaleX,scaleY:d=e.scaleY,scaleZ:c=e.scaleZ,alpha:u=e.alpha,beta:p=e.beta,angle:g=e.angle,anchor3d:f=t.attribute.anchor,anchor:_}=t.attribute,m=[0,0,0];if(f){if(typeof f[0]=="string"){const y=parseFloat(f[0])/100,v=t.AABBBounds;m[0]=v.x1+(v.x2-v.x1)*y}else m[0]=f[0];if(typeof f[1]=="string"){const y=parseFloat(f[1])/100,v=t.AABBBounds;m[1]=v.x1+(v.x2-v.x1)*y}else m[1]=f[1];m[2]=f[2]??0}if(hW(s),Xh(s,s,[i+a,n+o,r+l]),Xh(s,s,[m[0],m[1],m[2]]),dW(s,s,p),cW(s,s,u),Xh(s,s,[-m[0],-m[1],m[2]]),pW(s,s,[h,d,c]),g){const y=de.allocate(),v=[0,0];if(_){if(typeof f[0]=="string"){const b=parseFloat(f[0])/100,x=t.AABBBounds;v[0]=x.x1+(x.x2-x.x1)*b}else v[0]=f[0];if(typeof f[1]=="string"){const b=parseFloat(f[1])/100,x=t.AABBBounds;v[1]=x.x1+(x.x2-x.x1)*b}else v[1]=f[1]}Xh(y,y,[v[0],v[1],0]),uW(y,y,g),Xh(y,y,[-v[0],-v[1],0]),Du(s,s,y)}}function gW(s){const{alpha:t,beta:e}=s.attribute;return t||e}let cb=class{constructor(s){S(this,"creator");S(this,"_rectBoundsContribitions");S(this,"_symbolBoundsContribitions");S(this,"_circleBoundsContribitions");S(this,"_arcBoundsContribitions");S(this,"_pathBoundsContribitions");S(this,"tempAABBBounds1");S(this,"tempAABBBounds2");this.creator=s,this.hooks={onAttributeUpdate:new jn(["graphic"]),onSetStage:new jn(["graphic","stage"]),onRemove:new jn(["graphic"]),onRelease:new jn(["graphic"]),onAddIncremental:new jn(["graphic","group","stage"]),onClearIncremental:new jn(["graphic","group","stage"]),beforeUpdateAABBBounds:new jn(["graphic","stage","willUpdate","aabbBounds"]),afterUpdateAABBBounds:new jn(["graphic","stage","aabbBounds","globalAABBBounds","selfChange"])},this.tempAABBBounds1=new xe,this.tempAABBBounds2=new xe,this._rectBoundsContribitions=[new fd],this._symbolBoundsContribitions=[new sW],this._circleBoundsContribitions=[new fd],this._arcBoundsContribitions=[new fd],this._pathBoundsContribitions=[new fd]}onAttributeUpdate(s){this.hooks.onAttributeUpdate.taps.length&&this.hooks.onAttributeUpdate.call(s)}onSetStage(s,t){this.hooks.onSetStage.taps.length&&this.hooks.onSetStage.call(s,t)}onRemove(s){this.hooks.onRemove.taps.length&&this.hooks.onRemove.call(s)}onRelease(s){this.hooks.onRelease.taps.length&&this.hooks.onRelease.call(s)}onAddIncremental(s,t,e){this.hooks.onAddIncremental.taps.length&&this.hooks.onAddIncremental.call(s,t,e)}onClearIncremental(s,t){this.hooks.onClearIncremental.taps.length&&this.hooks.onClearIncremental.call(s,t)}beforeUpdateAABBBounds(s,t,e,i){this.hooks.beforeUpdateAABBBounds.taps.length&&this.hooks.beforeUpdateAABBBounds.call(s,t,e,i)}afterUpdateAABBBounds(s,t,e,i,n){this.hooks.afterUpdateAABBBounds.taps.length&&this.hooks.afterUpdateAABBBounds.call(s,t,e,i,n)}updatePathProxyAABBBounds(s,t){const e=typeof t.pathProxy=="function"?t.pathProxy(t.attribute):t.pathProxy;if(!e)return!1;const i=new JR(s);return Mr(e.commandList,i,0,0),!0}updateRectAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;if(!this.updatePathProxyAABBBounds(e,i)){let{width:a,height:o}=s;const{x1:l,y1:h,x:d,y:c}=s;a=a??l-d,o=o??h-c,e.set(0,0,a||0,o||0)}const n=this.tempAABBBounds1,r=this.tempAABBBounds2;return n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this._rectBoundsContribitions.length&&this._rectBoundsContribitions.forEach(a=>{a.updateBounds(s,t,n,i),e.union(n),n.setValue(r.x1,r.y1,r.x2,r.y2)}),this.transformAABBBounds(s,e,t,!1,i),e}updateGroupAABBBounds(s,t,e,i){const n=e;e=e.clone();const{width:r,height:a,path:o,clip:l=t.clip}=s;o&&o.length?o.forEach(c=>{e.union(c.AABBBounds)}):r!=null&&a!=null&&e.set(0,0,Math.max(0,r),Math.max(0,a)),l||i.forEachChildren(c=>{e.union(c.AABBBounds)});const h=this.tempAABBBounds1,d=this.tempAABBBounds2;return h.setValue(e.x1,e.y1,e.x2,e.y2),d.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(s,e,t,!1,i),n.copy(e),n}updateGlyphAABBBounds(s,t,e,i){return this._validCheck(s,t,e,i)&&i.getSubGraphic().forEach(n=>{e.union(n.AABBBounds)}),e}updateHTMLTextAABBBounds(s,t,e,i){const{textAlign:n,textBaseline:r}=s;if(s.forceBoundsHeight!=null){const a=nt(s.forceBoundsHeight)?s.forceBoundsHeight:s.forceBoundsHeight(),o=Us(r,a,a);e.set(e.x1,o,e.x2,o+a)}if(s.forceBoundsWidth!=null){const a=nt(s.forceBoundsWidth)?s.forceBoundsWidth:s.forceBoundsWidth(),o=br(n,a);e.set(o,e.y1,o+a,e.y2)}}updateRichTextAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i)||!i)return e;const{width:n=t.width,height:r=t.height,maxWidth:a=t.maxWidth,maxHeight:o=t.maxHeight,textAlign:l=t.textAlign,textBaseline:h=t.textBaseline}=s;if(n>0&&r>0)e.set(0,0,n,r);else{const g=i.getFrameCache(),{width:f,height:_}=g.getActualSize();let m=n||f||0,y=r||_||0;y=typeof o=="number"&&y>o?o:y||0,m=typeof a=="number"&&m>a?a:m||0,e.set(0,0,m,y)}let d=0;switch(h){case"top":d=0;break;case"middle":d=-e.height()/2;break;case"bottom":d=-e.height()}let c=0;switch(l){case"left":c=0;break;case"center":c=-e.width()/2;break;case"right":c=-e.width()}e.translate(c,d);const u=this.tempAABBBounds1,p=this.tempAABBBounds2;return u.setValue(e.x1,e.y1,e.x2,e.y2),p.setValue(e.x1,e.y1,e.x2,e.y2),s.forceBoundsHeight==null&&s.forceBoundsWidth==null||this.updateHTMLTextAABBBounds(s,t,e),this.transformAABBBounds(s,e,t,!1,i),e}updateTextAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i)||!i)return e;const{text:n=t.text}=i.attribute;Array.isArray(n)?i.updateMultilineAABBBounds(n):i.updateSingallineAABBBounds(n);const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2);const{scaleX:o=t.scaleX,scaleY:l=t.scaleY,shadowBlur:h=t.shadowBlur,strokeBoundsBuffer:d=t.strokeBoundsBuffer}=s;if(h){const c=h/Math.abs(o+l);eg(r,c,!0,d),e.union(r)}return this.combindShadowAABBBounds(e,i),s.forceBoundsHeight==null&&s.forceBoundsWidth==null||this.updateHTMLTextAABBBounds(s,t,e),ly(e,e,i.transMatrix),e}updatePathAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||this.updatePathAABBBoundsImprecise(s,t,e,i);const n=this.tempAABBBounds1,r=this.tempAABBBounds2;n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this._pathBoundsContribitions.length&&this._pathBoundsContribitions.forEach(o=>{o.updateBounds(s,t,n,i),e.union(n),n.setValue(r.x1,r.y1,r.x2,r.y2)});const{lineJoin:a=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,a==="miter",i),e}updatePathAABBBoundsImprecise(s,t,e,i){if(!i)return e;const n=i.getParsedPathShape();return e.union(n.getBounds()),e}updatePyramid3dAABBBounds(s,t,e,i){if(!i)return e;const n=i.stage;if(!n||!n.camera)return e;i.findFace().vertices.forEach(o=>{const l=o[0],h=o[1];e.add(l,h)});const r=this.tempAABBBounds1,a=this.tempAABBBounds2;return r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(s,e,t,!1,i),e}updateArc3dAABBBounds(s,t,e,i){if(!i)return e;const n=i.stage;if(!n||!n.camera)return e;const{outerRadius:r=t.outerRadius,height:a=0}=s,o=r+a;e.setValue(-o,-o,o,o);const l=this.tempAABBBounds1,h=this.tempAABBBounds2;return l.setValue(e.x1,e.y1,e.x2,e.y2),h.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(s,e,t,!1,i),e}updatePolygonAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||this.updatePolygonAABBBoundsImprecise(s,t,e,i);const n=this.tempAABBBounds1,r=this.tempAABBBounds2;n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,a==="miter",i),e}updatePolygonAABBBoundsImprecise(s,t,e,i){const{points:n=t.points}=s;return n.forEach(r=>{e.add(r.x,r.y)}),e}updateLineAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||(s.segments?this.updateLineAABBBoundsBySegments(s,t,e,i):this.updateLineAABBBoundsByPoints(s,t,e,i));const n=this.tempAABBBounds1,r=this.tempAABBBounds2;n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,a==="miter",i),e}updateLineAABBBoundsByPoints(s,t,e,i){const{points:n=t.points}=s,r=e;return n.forEach(a=>{r.add(a.x,a.y)}),r}updateLineAABBBoundsBySegments(s,t,e,i){const{segments:n=t.segments}=s,r=e;return n.forEach(a=>{a.points.forEach(o=>{r.add(o.x,o.y)})}),r}updateAreaAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||(s.segments?this.updateAreaAABBBoundsBySegments(s,t,e,i):this.updateAreaAABBBoundsByPoints(s,t,e,i));const n=this.tempAABBBounds1,r=this.tempAABBBounds2;n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,a==="miter",i),e}updateAreaAABBBoundsByPoints(s,t,e,i){const{points:n=t.points}=s,r=e;return n.forEach(a=>{r.add(a.x,a.y),r.add(a.x1??a.x,a.y1??a.y)}),r}updateAreaAABBBoundsBySegments(s,t,e,i){const{segments:n=t.segments}=s,r=e;return n.forEach(a=>{a.points.forEach(o=>{r.add(o.x,o.y),r.add(o.x1??o.x,o.y1??o.y)})}),r}updateCircleAABBBounds(s,t,e,i,n){if(!this._validCheck(s,t,e,n))return e;this.updatePathProxyAABBBounds(e,n)||(i?this.updateCircleAABBBoundsImprecise(s,t,e,n):this.updateCircleAABBBoundsAccurate(s,t,e,n));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;return r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._circleBoundsContribitions.length&&this._circleBoundsContribitions.forEach(o=>{o.updateBounds(s,t,r,n),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)}),this.transformAABBBounds(s,e,t,!1,n),e}updateCircleAABBBoundsImprecise(s,t,e,i){const{radius:n=t.radius}=s;return e.set(-n,-n,n,n),e}updateCircleAABBBoundsAccurate(s,t,e,i){const{startAngle:n=t.startAngle,endAngle:r=t.endAngle,radius:a=t.radius}=s;return r-n>Ft-Jt?e.set(-a,-a,a,a):nv(n,r,a,e),e}updateArcAABBBounds(s,t,e,i,n){if(!this._validCheck(s,t,e,n))return e;this.updatePathProxyAABBBounds(e,n)||(i?this.updateArcAABBBoundsImprecise(s,t,e,n):this.updateArcAABBBoundsAccurate(s,t,e,n));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._arcBoundsContribitions.length&&this._arcBoundsContribitions.forEach(l=>{l.updateBounds(s,t,r,n),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)});const{lineJoin:o=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,o==="miter",n),e}updateArcAABBBoundsImprecise(s,t,e,i){let{outerRadius:n=t.outerRadius,innerRadius:r=t.innerRadius}=s;const{outerPadding:a=t.outerPadding,innerPadding:o=t.innerPadding}=s;return n+=a,r-=o,nl){const d=h;h=l,l=d}return n<=Jt?e.set(0,0,0,0):Math.abs(l-h)>Ft-Jt?e.set(-n,-n,n,n):(nv(h,l,n,e),nv(h,l,r,e)),e}updateSymbolAABBBounds(s,t,e,i,n){if(!this._validCheck(s,t,e,n))return e;this.updatePathProxyAABBBounds(e,n)||(i?this.updateSymbolAABBBoundsImprecise(s,t,e,n):this.updateSymbolAABBBoundsAccurate(s,t,e,n));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._symbolBoundsContribitions.length&&this._symbolBoundsContribitions.forEach(l=>{l.updateBounds(s,t,r,n),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)});const{lineJoin:o=t.lineJoin}=s;return this.transformAABBBounds(s,e,t,o==="miter",n),e}updateSymbolAABBBoundsImprecise(s,t,e,i){const{size:n=t.size}=s;if(G(n))e.set(-n[0]/2,-n[1]/2,n[0]/2,n[1]/2);else{const r=n/2;e.set(-r,-r,r,r)}return e}updateSymbolAABBBoundsAccurate(s,t,e,i){if(!i)return e;const{size:n=t.size}=s;return i.getParsedPath().bounds(n,e),e}updateImageAABBBounds(s,t,e,i){if(!this._validCheck(s,t,e,i))return e;if(!this.updatePathProxyAABBBounds(e,i)){const{width:a=t.width,height:o=t.height}=s;e.set(0,0,a,o)}const n=this.tempAABBBounds1,r=this.tempAABBBounds2;return n.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(s,e,t,!1,i),e}combindShadowAABBBounds(s,t){if(t&&t.shadowRoot){const e=t.shadowRoot.AABBBounds;s.union(e)}}transformAABBBounds(s,t,e,i,n){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:p=e.strokeBoundsBuffer}=s,g=this.tempAABBBounds1,f=this.tempAABBBounds2;if(h&&c){const _=(c+u)/Math.abs(o+l);eg(g,_,i,p),t.union(g),g.setValue(f.x1,f.y1,f.x2,f.y2)}if(d){const{shadowOffsetX:_=e.shadowOffsetX,shadowOffsetY:m=e.shadowOffsetY}=s,y=d/Math.abs(o+l)*2;eg(g,y,!1,p+1),g.translate(_,m),t.union(g)}}if(this.combindShadowAABBBounds(t,n),t.empty())return;let r=!0;const a=n.transMatrix;n&&n.isContainer&&(r=!(a.a===1&&a.b===0&&a.c===0&&a.d===1&&a.e===0&&a.f===0)),r&&ly(t,t,a)}_validCheck(s,t,e,i){if(!i||s.forceBoundsHeight!=null||s.forceBoundsWidth!=null)return!0;if(!i.valid)return e.clear(),!1;const{visible:n=t.visible}=s;return!!n||(e.clear(),!1)}};cb=aW([gt(),lW(0,Bt(DB)),oW("design:paramtypes",[Object])],cb);class fW{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 _t=new fW;let kp,Tp;function Bh(s){return kp||(kp=_t.CreateGraphic("text",{})),kp.initAttributes(s),kp.AABBBounds}function _W(s){return Tp||(Tp=_t.CreateGraphic("richtext",{})),Tp.setAttributes(s),Tp.AABBBounds}const Ne={x:0,y:0,z:0,lastModelMatrix:null};class vn{constructor(){S(this,"camera");S(this,"builtinContributions");S(this,"_beforeRenderContribitions");S(this,"_afterRenderContribitions");S(this,"_renderContribitions")}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===_i.beforeFillStroke),this._afterRenderContribitions=this._renderContribitions.filter(e=>e.time===_i.afterFillStroke))}beforeRenderStep(t,e,i,n,r,a,o,l,h,d,c,u,p){this._beforeRenderContribitions&&this._beforeRenderContribitions.forEach(g=>{g.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(g.supportedAppName)?g.supportedAppName:[g.supportedAppName]).includes(t.stage.params.context.appName)||g.drawShape(t,e,i,n,r,a,o,l,h,d,c,u,p)})}afterRenderStep(t,e,i,n,r,a,o,l,h,d,c,u,p){this._afterRenderContribitions&&this._afterRenderContribitions.forEach(g=>{g.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(g.supportedAppName)?g.supportedAppName:[g.supportedAppName]).includes(t.stage.params.context.appName)||g.drawShape(t,e,i,n,r,a,o,l,h,d,c,u,p)})}valid(t,e,i,n){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,p=zo(l,h,r),g=AS(l,c),f=nl(r,a),_=Rh(o,d);return!(!t.valid||!u)&&!(!f&&!_)&&!!(p||g||i||n||a)&&{fVisible:p,sVisible:g,doFill:f,doStroke:_}}transform(t,e,i,n=!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,p=i.camera;Ne.x=r,Ne.y=a,Ne.z=o,Ne.lastModelMatrix=u;const g=p&&(n||gW(t)),f=g?t.transMatrix.onlyTranslate()&&!c:l===1&&h===1&&d===0&&!c;if(g){const _=de.allocate(),m=de.allocate();tI(m,t,e),Du(_,u||_,m),Ne.x=0,Ne.y=0,Ne.z=0,i.modelMatrix=_,i.setTransform(1,0,0,1,0,0,!0),de.free(m)}if(f&&!u){const _=t.getOffsetXY(e);Ne.x+=_.x,Ne.y+=_.y,Ne.z=o,i.setTransformForCurrent()}else if(g)Ne.x=0,Ne.y=0,Ne.z=0,i.setTransform(1,0,0,1,0,0,!0);else if(p&&i.project){const _=t.getOffsetXY(e);Ne.x+=_.x,Ne.y+=_.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,n){const r=n.camera;if(this.camera=r,r){const a=t.AABBBounds,o=a.x2-a.x1,l=a.y2-a.y1,h=n.project(0,0,i),d=n.project(o,0,i),c=n.project(o,l,i),u={x:0,y:0},p={x:o,y:0},g={x:o,y:l};n.camera=null;const f=1/(u.x*(g.y-p.y)-p.x*g.y+g.x*p.y+(p.x-g.x)*u.y),_=-(u.y*(c.x-d.x)-p.y*c.x+g.y*d.x+(p.y-g.y)*h.x)*f,m=(p.y*c.y+u.y*(d.y-c.y)-g.y*d.y+(g.y-p.y)*h.y)*f,y=(u.x*(c.x-d.x)-p.x*c.x+g.x*d.x+(p.x-g.x)*h.x)*f,v=-(p.x*c.y+u.x*(d.y-c.y)-g.x*d.y+(g.x-p.x)*h.y)*f,b=(u.x*(g.y*d.x-p.y*c.x)+u.y*(p.x*c.x-g.x*d.x)+(g.x*p.y-p.x*g.y)*h.x)*f,x=(u.x*(g.y*d.y-p.y*c.y)+u.y*(p.x*c.y-g.x*d.y)+(g.x*p.y-p.x*g.y)*h.y)*f;n.setTransform(_,m,y,v,b,x,!0)}}restoreTransformUseContext2d(t,e,i,n){this.camera&&(n.camera=this.camera)}transformWithoutTranslate(t,e,i,n,r,a,o){const l=t.project(e,i,n);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,n,r){const{context:a}=n;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,z5(t,a,h,d,n,r)||(this.drawShape(t,a,h,d,n,r),this.z=0,a.modelMatrix!==u&&de.free(a.modelMatrix),a.modelMatrix=u),a.highPerformanceRestore()}}const mW=function(){const s={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=p(n);return t.length>0&&e("Invalid input not EOF"),b}function n(){return r("linear",s.linearGradient,a)||r("radial",s.radialGradient,l)||r("conic",s.conicGradient,o)}function r(b,x,A){return function(T,k){const M=y(T);if(M){y(s.startCall)||e("Missing (");const w=k(M);return y(s.endCall)||e("Missing )"),w}}(x,function(T){const k=A();return k&&(y(s.comma)||e("Missing comma before color stops")),{type:b,orientation:k,colorStops:p(g)}})}function a(){return m("directional",s.sideOrCorner,1)||m("angular",s.angleValue,1)}function o(){return m("angular",s.fromAngleValue,1)}function l(){let b,x,A=h();return A&&(b=[],b.push(A),x=t,y(s.comma)&&(A=h(),A?b.push(A):t=x)),b}function h(){let b=function(){const x=m("shape",/^(circle)/i,0);return x&&(x.style=_()||d()),x}()||function(){const x=m("shape",/^(ellipse)/i,0);return x&&(x.style=f()||d()),x}();if(b)b.at=c();else{const x=d();if(x){b=x;const A=c();A&&(b.at=A)}else{const A=u();A&&(b={type:"default-radial",at:A})}}return b}function d(){return m("extent-keyword",s.extentKeywords,1)}function c(){if(m("position",/^at/,0)){const b=u();return b||e("Missing positioning value"),b}}function u(){const b={x:f(),y:f()};if(b.x||b.y)return{type:"position",value:b}}function p(b){let x=b();const A=[];if(x)for(A.push(x);y(s.comma);)x=b(),x?A.push(x):e("One extra comma");return A}function g(){const b=m("hex",s.hexColor,1)||m("rgba",s.rgbaColor,1)||m("rgb",s.rgbColor,1)||m("literal",s.literalColor,0);return b||e("Expected color definition"),b.length=f(),b}function f(){return m("%",s.percentageValue,1)||m("position-keyword",s.positionKeywords,1)||_()}function _(){return m("px",s.pixelValue,1)||m("em",s.emValue,1)}function m(b,x,A){const T=y(x);if(T)return{type:b,value:T[A]}}function y(b){const x=/^[\n\r\t\s]+/.exec(t);x&&v(x[0].length);const A=b.exec(t);return A&&v(A[0].length),A}function v(b){t=t.substr(b)}return function(b){return t=b.toString(),i()}}();class Ll{static IsGradient(t){return!(typeof t=="string"&&!t.includes("gradient"))}static IsGradientStr(t){return typeof t=="string"&&t.includes("gradient")}static Parse(t){if(Ll.IsGradientStr(t))try{const e=mW(t)[0];if(e){if(e.type==="linear")return Ll.ParseLinear(e);if(e.type==="radial")return Ll.ParseRadial(e);if(e.type==="conic")return Ll.ParseConic(e)}}catch{return t}return t}static ParseConic(t){const{orientation:e,colorStops:i=[]}=t,n=ee/2,r=parseFloat(e.value)/180*ee-n;return{gradient:"conical",x:.5,y:.5,startAngle:r,endAngle:r+Ft,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,n=ee/2;let r=e.type==="angular"?parseFloat(e.value)/180*ee:0;for(;r<0;)r+=Ft;for(;r>Ft;)r-=Ft;let a=0,o=0,l=0,h=0;return r({color:d.value,offset:parseFloat(d.length.value)/100}))}}}function Li(s,t,e){let i=t;const{a:n,b:r,c:a,d:o}=s.currentMatrix,l=Math.sign(n)*Math.sqrt(n*n+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 ub(s,t,e,i,n){if(!t||t===!0)return"black";let r,a;if(G(t))for(let o=0;o{d.addColorStop(c.offset,c.color)}),d}function yW(s,t,e,i=0,n=0){const r=e.AABBBounds;if(!r)return;let a=r.x2-r.x1,o=r.y2-r.y1,l=r.x1-i,h=r.y1-n;if(e.attribute){const{scaleX:c=1,scaleY:u=1}=e.attribute;if(c*u==0)return;l/=c,h/=u,a/=c,o/=u}const d=s.createRadialGradient(l+(t.x0??.5)*a,h+(t.y0??.5)*o,Math.max(a,o)*(t.r0??0),l+(t.x1??.5)*a,h+(t.y1??.5)*o,Math.max(a,o)*(t.r1??.5));return t.stops.forEach(c=>{d.addColorStop(c.offset,c.color)}),d}function bW(s,t,e,i=0,n=0){const r=e.AABBBounds;if(!r)return;let a=r.x2-r.x1,o=r.y2-r.y1,l=r.x1-i,h=r.y1-n;if(e.attribute){const{scaleX:c=1,scaleY:u=1}=e.attribute;if(c*u==0)return;a/=c,o/=u,l/=c,h/=u}const d=s.createConicGradient(l+(t.x??0)*a,h+(t.y??0)*o,t.startAngle,t.endAngle);return t.stops.forEach(c=>{d.addColorStop(c.offset,c.color)}),d.GetPattern(a+l,o+h,void 0)}var xW=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},SW=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},mT=function(s,t){return function(e,i){t(e,i,s)}};class Fu{constructor(){S(this,"time",_i.beforeFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(t,e,i,n,r,a,o,l,h,d,c,u,p){const{background:g,backgroundOpacity:f=t.attribute.fillOpacity??h.backgroundOpacity,opacity:_=h.opacity,backgroundMode:m=h.backgroundMode,backgroundFit:y=h.backgroundFit}=t.attribute;if(g)if(t.backgroundImg&&t.resources){const v=t.resources.get(g);if(v.state!=="success"||!v.data)return;if(e.save(),t.parent&&!t.transMatrix.onlyTranslate()){const x=it(t.parent).group,{scrollX:A=x.scrollX,scrollY:T=x.scrollY}=t.parent.attribute;e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.translate(A,T)}e.clip();const b=t.AABBBounds;e.setCommonStyle(t,t.attribute,i,n,h),e.globalAlpha=f*_,this.doDrawImage(e,v.data,b,m,y),e.restore(),t.transMatrix.onlyTranslate()||e.setTransformForCurrent()}else e.highPerformanceSave(),e.setCommonStyle(t,t.attribute,i,n,h),e.globalAlpha=f*_,e.fillStyle=g,e.fill(),e.highPerformanceRestore()}doDrawImage(t,e,i,n,r){if(n==="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&&n!=="repeat"&&(e.width||e.height)){const u=e.width,p=e.height;n==="repeat-x"?(l=u*(o/p),h=o):n==="repeat-y"&&(h=p*(a/u),l=a);const g=t.dpr,f=lh.allocate({width:l,height:h,dpr:g}),_=f.getContext("2d");_&&(_.inuse=!0,_.clearMatrix(),_.setTransformForCurrent(!0),_.clearRect(0,0,l,h),_.drawImage(e,0,0,l,h),e=f.nativeCanvas),lh.free(f)}const d=t.dpr,c=t.createPattern(e,n);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 sl=new Fu;let ls=class{constructor(s){S(this,"subRenderContribitions");S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0);S(this,"_subRenderContribitions");this.subRenderContribitions=s}drawShape(s,t,e,i,n,r,a,o,l,h,d,c,u){this._subRenderContribitions||(this._subRenderContribitions=this.subRenderContribitions.getContributions()),this._subRenderContribitions.forEach(p=>{p.render(s,t,e,i,n,r,a,o,l,h,d,c,u)})}};ls=xW([gt(),mT(0,Bt(ii)),mT(0,fi(TS)),SW("design:paramtypes",[Object])],ls);class RS{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"textureMap");S(this,"order",10)}createCommonPattern(t,e,i,n,r){const a=(t-2*e)/2,o=n.dpr,l=lh.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=n.createPattern(l.nativeCanvas,"repeat");return d.setTransform&&d.setTransform(new DOMMatrix([1/o,0,0,1/o,0,0])),lh.free(l),d}createCirclePattern(t,e,i,n){return this.createCommonPattern(t,e,i,n,(r,a)=>{a.fillStyle=i,a.arc(r,r,r,0,Ft),a.fill()})}createDiamondPattern(t,e,i,n){return this.createCommonPattern(t,e,i,n,(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,n){return this.createCommonPattern(t,e,i,n,(r,a)=>{const o=e,l=o;a.fillStyle=i,a.fillRect(o,l,2*r,2*r)})}createVerticalLinePattern(t,e,i,n){return this.createCommonPattern(t,e,i,n,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(o,0,2*r,t)})}createHorizontalLinePattern(t,e,i,n){return this.createCommonPattern(t,e,i,n,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(0,o,t,2*r)})}createBiasLRLinePattern(t,e,i,n){return this.createCommonPattern(t,e,i,n,(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,n){return this.createCommonPattern(t,e,i,n,(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,n){return this.createCommonPattern(t,e,i,n,(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,n,r,a,o,l,h,d,c,u,p){this.textureMap||this.initTextureMap(e,t.stage);const{texture:g=h.texture,textureColor:f=h.textureColor,textureSize:_=h.textureSize,texturePadding:m=h.texturePadding}=t.attribute;g&&this.drawTexture(g,t,e,i,n,h,f,_,m)}drawTexture(t,e,i,n,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,n,r,a),i.fillStyle=d,i.fill(),i.highPerformanceRestore())}}const Ih=new RS;class AW{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(t,e,i,n,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{innerPadding:m=h.innerPadding,outerPadding:y=h.outerPadding,startAngle:v=h.startAngle,endAngle:b=h.endAngle,opacity:x=h.opacity,x:A=h.x,y:T=h.y,scaleX:k=h.scaleX,scaleY:M=h.scaleY}=t.attribute;let{innerRadius:w=h.innerRadius,outerRadius:C=h.outerRadius}=t.attribute;C+=y,w-=m;const R=!(!p||!p.stroke),I=!(!g||!g.stroke);if(f){const{distance:O=h.outerBorder.distance}=p,B=Li(e,O,e.dpr),L=O/C;if(t.setAttributes({outerRadius:C+B,innerRadius:w-B,startAngle:v-L,endAngle:b+L}),e.beginPath(),Dg(t,e,i,n,C+B,w-B),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(R){const F=h.outerBorder.opacity;h.outerBorder.opacity=x,e.setStrokeStyle(t,p,(A-i)/k,(T-n)/M,h.outerBorder),h.outerBorder.opacity=F,e.stroke()}}if(_){const{distance:O=h.innerBorder.distance}=g,B=Li(e,O,e.dpr),L=O/C;if(t.setAttributes({outerRadius:C-B,innerRadius:w+B,startAngle:v+L,endAngle:b-L}),e.beginPath(),Dg(t,e,i,n,C-B,w+B),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(I){const F=h.innerBorder.opacity;h.innerBorder.opacity=x,e.setStrokeStyle(t,g,(A-i)/k,(T-n)/M,h.innerBorder),h.innerBorder.opacity=F,e.stroke()}}t.setAttributes({outerRadius:C,innerRadius:w,startAngle:v,endAngle:b})}}const kW=new AW,TW=Ih,MW=sl;class wW{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(t,e,i,n,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{radius:m=h.radius,startAngle:y=h.startAngle,endAngle:v=h.endAngle,opacity:b=h.opacity,x=h.x,y:A=h.y,scaleX:T=h.scaleX,scaleY:k=h.scaleY}=t.attribute,M=!(!p||!p.stroke),w=!(!g||!g.stroke);if(f){const{distance:C=h.outerBorder.distance}=p,R=Li(e,C,e.dpr);if(e.beginPath(),e.arc(i,n,m+R,y,v),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(M){const I=h.outerBorder.opacity;h.outerBorder.opacity=b,e.setStrokeStyle(t,p,(x-i)/T,(A-n)/k,h.outerBorder),h.outerBorder.opacity=I,e.stroke()}}if(_){const{distance:C=h.innerBorder.distance}=g,R=Li(e,C,e.dpr);if(e.beginPath(),e.arc(i,n,m-R,y,v),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(w){const I=h.innerBorder.opacity;h.innerBorder.opacity=b,e.setStrokeStyle(t,g,(x-i)/T,(A-n)/k,h.innerBorder),h.innerBorder.opacity=I,e.stroke()}}}}const CW=new wW,PW=Ih,EW=sl;class RW extends Fu{constructor(){super(...arguments);S(this,"time",_i.beforeFillStroke)}drawShape(e,i,n,r,a,o,l,h,d,c,u,p){const{background:g,backgroundMode:f=d.backgroundMode,backgroundFit:_=d.backgroundFit}=e.attribute;if(g)if(e.backgroundImg&&e.resources){const m=e.resources.get(g);if(m.state!=="success"||!m.data)return;i.highPerformanceSave(),i.setTransformFromMatrix(e.parent.globalTransMatrix,!0);const y=e.AABBBounds;this.doDrawImage(i,m.data,y,f,_),i.highPerformanceRestore(),i.setTransformForCurrent()}else i.highPerformanceSave(),i.fillStyle=g,i.fill(),i.highPerformanceRestore()}}const BW=new RW,Mp=ee/2;function Wa(s,t,e,i,n,r){let a;if(i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),nt(r,!0))a=[r=Ut(r),r,r,r];else if(Array.isArray(r)){const x=r;let A,T;switch(x.length){case 0:a=[0,0,0,0];break;case 1:A=Ut(x[0]),a=[A,A,A,A];break;case 2:case 3:A=Ut(x[0]),T=Ut(x[1]),a=[A,T,A,T];break;default:a=x,a[0]=Ut(a[0]),a[1]=Ut(a[1]),a[2]=Ut(a[2]),a[3]=Ut(a[3])}}else a=[0,0,0,0];if(i<0||a[0]+a[1]+a[2]+a[3]<1e-12)return s.rect(t,e,i,n);const[o,l,h,d]=[[t,e],[t+i,e],[t+i,e+n],[t,e+n]],c=Math.min(i/2,n/2),u=[Math.min(c,a[0]),Math.min(c,a[1]),Math.min(c,a[2]),Math.min(c,a[3])],p=[o[0]+u[0],o[1]],g=[o[0],o[1]+u[0]],f=[l[0]-u[1],l[1]],_=[l[0],l[1]+u[1]],m=[h[0]-u[2],h[1]],y=[h[0],h[1]-u[2]],v=[d[0]+u[3],d[1]],b=[d[0],d[1]-u[3]];if(s.moveTo(p[0],p[1]),s.lineTo(f[0],f[1]),!ip(f,_)){const x=f[0],A=f[1]+u[1];s.arc(x,A,u[1],-Mp,0,!1)}if(s.lineTo(y[0],y[1]),!ip(m,y)){const x=y[0]-u[2],A=y[1];s.arc(x,A,u[2],0,Mp,!1)}if(s.lineTo(v[0],v[1]),!ip(v,b)){const x=v[0],A=v[1]-u[3];s.arc(x,A,u[3],Mp,ee,!1)}if(s.lineTo(g[0],g[1]),!ip(p,g)){const x=p[0],A=p[1]+u[0];s.arc(x,A,u[0],ee,ee+Mp,!1)}return s.closePath(),s}class IW extends Fu{constructor(){super(...arguments);S(this,"time",_i.beforeFillStroke)}drawShape(e,i,n,r,a,o,l,h,d,c,u,p){const{background:g,backgroundMode:f=d.backgroundMode,backgroundFit:_=d.backgroundFit}=e.attribute;if(g)if(e.backgroundImg){const m=e.resources.get(g);if(m.state!=="success"||!m.data)return;if(i.save(),e.parent&&!e.transMatrix.onlyTranslate()){const v=it(e.parent).group,{scrollX:b=v.scrollX,scrollY:x=v.scrollY}=e.parent.attribute;i.setTransformFromMatrix(e.parent.globalTransMatrix,!0),i.translate(b,x)}const y=e.AABBBounds;this.doDrawImage(i,m.data,y,f,_),i.restore(),e.transMatrix.onlyTranslate()||i.setTransformForCurrent()}else if(Et(g)){const{stroke:m,fill:y,lineWidth:v=1,cornerRadius:b=0,expandX:x=0,expandY:A=0}=g;if(!m&&!y)return;i.beginPath();const{x:T,y:k,width:M,height:w}=LW(e);b?Wa(i,T-x,k-A,M+2*x,w+2*A,b):i.rect(T-x,k-A,M+2*x,w+2*A),i.globalAlpha=1,y&&(i.fillStyle=y,i.fill()),m&&v>0&&(i.lineWidth=v,i.strokeStyle=m,i.stroke())}else{i.beginPath();const m=e.AABBBounds;i.rect(n,r,m.width(),m.height()),i.fillStyle=g,i.globalAlpha=1,i.fill()}}}function LW(s){const t=Ii(s.attribute.boundsPadding),e=s.AABBBounds;let i=e.x1,n=e.y1,r=e.width(),a=e.height();return nt(t)?(i+=t,n+=t,r-=2*t,a-=2*t):(i+=t[3],n+=t[0],r-=t[1]+t[3],a-=t[0]+t[2]),{x:i,y:n,width:r,height:a}}const OW=new IW;var eI=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};class DW{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(t,e,i,n,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{cornerRadius:m=h.cornerRadius,opacity:y=h.opacity,x:v=h.x,y:b=h.y,scaleX:x=h.scaleX,scaleY:A=h.scaleY,x1:T,y1:k}=t.attribute;let{width:M,height:w}=t.attribute;M=(M??T-i)||0,w=(w??k-n)||0;const C=!(!p||!p.stroke),R=!(!g||!g.stroke);if(f){const{distance:I=h.outerBorder.distance}=p,O=Li(e,I,e.dpr),B=i-O,L=n-O,F=2*O;if(m===0||G(m)&&m.every(z=>z===0)?(e.beginPath(),e.rect(B,L,M+F,w+F)):(e.beginPath(),Wa(e,B,L,M+F,w+F,m)),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(C){const z=h.outerBorder.opacity;h.outerBorder.opacity=y,e.setStrokeStyle(t,p,(v-i)/x,(b-n)/A,h.outerBorder),h.outerBorder.opacity=z,e.stroke()}}if(_){const{distance:I=h.innerBorder.distance}=g,O=Li(e,I,e.dpr),B=i+O,L=n+O,F=2*O;if(m===0||G(m)&&m.every(z=>z===0)?(e.beginPath(),e.rect(B,L,M-F,w-F)):(e.beginPath(),Wa(e,B,L,M-F,w-F,m)),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(R){const z=h.innerBorder.opacity;h.innerBorder.opacity=y,e.setStrokeStyle(t,g,(v-i)/x,(b-n)/A,h.innerBorder),h.innerBorder.opacity=z,e.stroke()}}}}let Wg=class{constructor(){S(this,"time",_i.beforeFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(s,t,e,i,n,r,a,o,l,h,d,c,u){const{stroke:p=l.stroke}=s.attribute;Array.isArray(p)&&p.some(g=>g===!1)&&(u.doStroke=!1)}};Wg=eI([gt()],Wg);let Gg=class{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(s,t,e,i,n,r,a,o,l,h,d,c){const{x1:u,y1:p,x:g=l.x,y:f=l.y,stroke:_=l.stroke}=s.attribute;let{width:m,height:y}=s.attribute;if(m=(m??u-g)||0,y=(y??p-f)||0,Array.isArray(_)&&_.some(v=>v===!1)){if(t.setStrokeStyle(s,s.attribute,e,i,l),t.beginPath(),t.moveTo(e,i),_[0]?t.lineTo(e+m,i):t.moveTo(e+m,i),_[1]?t.lineTo(e+m,i+y):t.moveTo(e+m,i+y),_[2]?t.lineTo(e,i+y):t.moveTo(e,i+y),_[3]){const v=_[0]?i-t.lineWidth/2:i;t.lineTo(e,v)}else t.moveTo(e,i);t.stroke()}}};Gg=eI([gt()],Gg);const FW=new DW,zW=Ih,HW=sl;class jW{constructor(){S(this,"time",_i.afterFillStroke);S(this,"useStyle",!0);S(this,"order",0)}drawShape(t,e,i,n,r,a,o,l,h,d,c,u){const p=t.getParsedPath();if(!p)return;const{outerBorder:g,innerBorder:f}=t.attribute,_=g&&g.visible!==!1,m=f&&f.visible!==!1;if(!_&&!m)return;const{size:y=h.size,opacity:v=h.opacity,x:b=h.x,y:x=h.y,scaleX:A=h.scaleX,scaleY:T=h.scaleY}=t.attribute,k=!(!g||!g.stroke),M=!(!f||!f.stroke);if(_){const{distance:w=h.outerBorder.distance}=g,C=Li(e,w,e.dpr);if(e.beginPath(),p.drawOffset(e,y,i,n,C)===!1&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.outerBorder);else if(k){const R=h.outerBorder.opacity;h.outerBorder.opacity=v,e.setStrokeStyle(t,g,(b-i)/A,(x-n)/T,h.outerBorder),h.outerBorder.opacity=R,e.stroke()}}if(m){const{distance:w=h.innerBorder.distance}=f,C=Li(e,w,e.dpr);if(e.beginPath(),p.drawOffset(e,y,i,n,-C)===!1&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,f,h.innerBorder);else if(M){const R=h.innerBorder.opacity;h.innerBorder.opacity=v,e.setStrokeStyle(t,f,(b-i)/A,(x-n)/T,h.innerBorder),h.innerBorder.opacity=R,e.stroke()}}}}const VW=new jW,WW=Ih,GW=sl;class NW extends RS{constructor(){super(...arguments);S(this,"time",_i.afterFillStroke)}drawShape(e,i,n,r,a,o,l,h,d,c,u,p,g){this.textureMap||this.initTextureMap(i,e.stage);const{attribute:f=e.attribute}=g||{},{texture:_=e.attribute.texture??xp(d,"texture"),textureColor:m=e.attribute.textureColor??xp(d,"textureColor"),textureSize:y=e.attribute.textureSize??xp(d,"textureSize"),texturePadding:v=e.attribute.texturePadding??xp(d,"texturePadding")}=f;_&&this.drawTexture(_,e,i,n,r,d,m,y,v)}}var UW=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},$W=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},vT=function(s,t){return function(e,i){t(e,i,s)}};let Ng=class extends vn{constructor(t){super();S(this,"arcRenderContribitions");S(this,"type");S(this,"numberType",Am);this.arcRenderContribitions=t,this.builtinContributions=[kW,MW,TW],this.init(t)}drawArcTailCapPath(t,e,i,n,r,a,o,l){const h=l-o,d=t.getParsedAngle(),c=d.startAngle;let u=d.endAngle;u=l;const p=Ut(u-c),g=u>c;let f=!1;if(rJt||C>Jt)&&(K=r*se(b),et=r*qt(b),j=a*se(A),st=a*qt(A),pJt){const ht=xi(T,I),ut=xi(k,I),J=ca(j,st,B,L,r,ht,Number(g)),$=ca(K,et,F,z,r,ut,Number(g));if(I0&&e.arc(i+$.cx,n+$.cy,ut,ne($.y11,$.x11),ne($.y01,$.x01),!g)}}else e.moveTo(i+B,n+L);if(!(a>Jt)||y<.001)e.lineTo(i+F,n+z),f=!0;else if(O>Jt){const ht=xi(w,O),ut=xi(M,O),J=ca(F,z,K,et,a,-ut,Number(g)),$=ca(B,L,j,st,a,-ht,Number(g));if(e.lineTo(i+J.cx+J.x01,n+J.cy+J.y01),O0&&e.arc(i+J.cx,n+J.cy,ut,ne(J.y01,J.x01),ne(J.y11,J.x11),!g);const Z=ne(J.cy+J.y11,J.cx+J.x11),X=u-h-.03;e.arc(i,n,a,Z,X,g)}}else e.lineTo(i+a*se(A),n+a*qt(A));return f}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).arc,{fill:d=h.fill,stroke:c=h.stroke,x:u=h.x,y:p=h.y}=t.attribute,g=this.valid(t,h,o,l);if(!g)return;const{fVisible:f,sVisible:_,doFill:m,doStroke:y}=g,{outerPadding:v=h.outerPadding,innerPadding:b=h.innerPadding,cap:x=h.cap,forceShowCap:A=h.forceShowCap}=t.attribute;let{outerRadius:T=h.outerRadius,innerRadius:k=h.innerRadius}=t.attribute;T+=v,k-=b;let M=0;const w=(ge(x)&&x||x[0])&&d.gradient==="conical";if(w){const{sc:O,startAngle:B,endAngle:L}=t.getParsedAngle();Ut(L-B)=Ft-Jt){e.beginPath();const L=Math.abs(T-k)/2/T,{endAngle:F=h.endAngle,fill:z=h.fill}=t.attribute,K=F;if(this.drawArcTailCapPath(t,e,i,n,T,k,K,K+L),C||this.beforeRenderStep(t,e,i,n,m,y,f,_,h,r,o,l),m){const et=z;if(et.gradient==="conical"){const j=H5(0,0,F,et);o||zo&&(e.setCommonStyle(t,t.attribute,i,n,h),e.fillStyle=j,e.fill())}}y&&(l||_&&(e.setStrokeStyle(t,t.attribute,i,n,h),e.stroke()))}}this.afterRenderStep(t,e,i,n,m,y,f,_,h,r,o,l),w&&(d.startAngle+=M,d.endAngle+=M)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).arc;this._draw(t,r,!1,i,n)}};Ng=UW([gt(),vT(0,Bt(ii)),vT(0,fi($y)),$W("design:paramtypes",[Object])],Ng);var YW=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},XW=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},yT=function(s,t){return function(e,i){t(e,i,s)}};let Ug=class extends vn{constructor(t){super();S(this,"circleRenderContribitions");S(this,"type");S(this,"numberType",km);this.circleRenderContribitions=t,this.builtinContributions=[CW,EW,PW],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).circle,{radius:d=h.radius,startAngle:c=h.startAngle,endAngle:u=h.endAngle,x:p=h.x,y:g=h.y}=t.attribute,f=this.valid(t,h,o,l);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:v}=f;e.beginPath(),e.arc(i,n,d,c,u),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,y,v,_,m,h,r,o,l),y&&(o?o(e,t.attribute,h):_&&(e.setCommonStyle(t,t.attribute,p-i,g-n,h),e.fill())),v&&(l?l(e,t.attribute,h):m&&(e.setStrokeStyle(t,t.attribute,p-i,g-n,h),e.stroke())),this.afterRenderStep(t,e,i,n,y,v,_,m,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).circle;this._draw(t,r,!1,i,n)}};Ug=YW([gt(),yT(0,Bt(ii)),yT(0,fi(Xy)),XW("design:paramtypes",[Object])],Ug);function $g(s,t,e,i){if(!t.p1)return;const{offsetX:n=0,offsetY:r=0,offsetZ:a=0}=i||{};if(e===1)t.p2&&t.p3?s.bezierCurveTo(n+t.p1.x,r+t.p1.y,n+t.p2.x,r+t.p2.y,n+t.p3.x,r+t.p3.y,a):s.lineTo(n+t.p1.x,r+t.p1.y,a);else if(t.p2&&t.p3){const[o]=Cy(t,e);s.bezierCurveTo(n+o.p1.x,r+o.p1.y,n+o.p2.x,r+o.p2.y,n+o.p3.x,r+o.p3.y,a)}else{const o=t.getPointAt(e);s.lineTo(n+o.x,r+o.y,a)}}function pb(s,t,e,i,n){const{offsetX:r=0,offsetY:a=0,offsetZ:o=0,mode:l="none",drawConnect:h=!1,zeroX:d=0,zeroY:c=0}=n||{};if(h&&l==="none"||!t)return;let u=!0;const{curves:p}=t;if(e>=1){if(h){let v,b=!0;p.forEach((x,A)=>{let T=x.p0;if(x.originP1!==x.originP2){if(v&&v.originP1===v.originP2&&(T=v.p0),x.defined)b||(s.lineTo(T.x+r,T.y+a,o),b=!b);else{const{originP1:k,originP2:M}=x;let w;if(k&&k.defined!==!1?w=T:k&&M.defined!==!1&&(w=x.p3??x.p1),b){b=!b;const C=w?w.x:x.p0.x,R=w?w.y:x.p0.y;s.moveTo(C+r,R+a,o)}else w&&(b=!b,s.lineTo(w.x+r,w.y+a,o))}v=x}else v=x})}else p.forEach(v=>{v.defined?(u&&s.moveTo(v.p0.x+r,v.p0.y+a,o),$g(s,v,1,n),u=!1):u=!0});return}if(e<=0)return;let g;i==="x"?g=ye.ROW:i==="y"?g=ye.COLUMN:i==="auto"&&(g=t.direction);const f=e*t.tryUpdateLength(g);let _=0,m=!0,y=null;for(let v=0,b=p.length;v{o.defined!==!1?s.lineTo(o.x+n,o.y+r):s.moveTo(o.x+n,o.y+r)})}function qW(s,t,e,i){const{offsetX:n=0,offsetY:r=0}=i||{},{points:a}=e,o=[];for(let l=0;l{const d=t&&h===0?t.points[t.points.length-1]:l[0];s.moveTo(d.x+n,d.y+r),l.forEach(c=>{c.defined!==!1?s.lineTo(c.x+n,c.y+r):s.moveTo(c.x+n,c.y+r)});for(let c=l.length-1;c>=0;c--){const u=l[c];s.lineTo(u.x1??u.x,u.y1??u.y)}s.lineTo(d.x1??d.x,d.y1??d.y),s.closePath()})}var ZW=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let jc=class extends vn{constructor(){super(...arguments);S(this,"type");S(this,"numberType",Lu)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).line;this._draw(t,r,!1,i,n)}drawSegmentItem(t,e,i,n,r,a,o,l,h,d,c,u,p,g,f){if(!e)return;t.beginPath();const _=this.z??0;pb(t.camera?t:t.nativeContext,e,h,d,{offsetX:c,offsetY:u,offsetZ:_}),p.cache&&!G(p.cache)&&p.cache.curves.every(T=>T.defined)&&p.attribute.curveType&&p.attribute.curveType.includes("Closed")&&t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(p,o,l);const{x:m=0,x:y=0}=o;i!==!1&&(g?g(t,o,l):r&&(t.setCommonStyle(p,o,m-c,y-u,l),t.fill())),n!==!1&&(f?f(t,o,l):a&&(t.setStrokeStyle(p,o,m-c,y-u,l),t.stroke()));let{connectedType:v,connectedX:b,connectedY:x,connectedStyle:A}=o;if(G(l)?(v=v??l[0].connectedType??l[1].connectedType,b=b??l[0].connectedX??l[1].connectedX,x=x??l[0].connectedY??l[1].connectedY,A=A??l[0].connectedStyle??l[1].connectedStyle):(v=v??l.connectedType,b=b??l.connectedX,x=x??l.connectedY,A=A??l.connectedStyle),v!=="connect"&&v!=="zero"&&(v="none"),v!=="none"){t.beginPath(),pb(t.camera?t:t.nativeContext,e,h,d,{offsetX:c,offsetY:u,offsetZ:_,drawConnect:!0,mode:v,zeroX:b,zeroY:x});const T=[];G(l)?l.forEach(k=>T.push(k)):T.push(l),T.push(o),i!==!1&&(g?g(t,o,l):r&&(t.setCommonStyle(p,A,m-c,y-u,T),t.fill())),n!==!1&&(f?f(t,o,l):a&&(t.setStrokeStyle(p,A,m-c,y-u,T),t.stroke()))}return!1}drawLinearLineHighPerformance(t,e,i,n,r,a,o,l,h,d,c,u,p){e.beginPath();const g=this.z??0,{points:f}=t.attribute,_=f[0];e.moveTo(_.x+o,_.y+l,g);for(let v=1;vb.defined===!1)&&m==="linear")return this.drawLinearLineHighPerformance(t,e,!!d,!!c,u,p,i,n,h,r,a,o,l);if(t.shouldUpdateShape()){const{points:b,segments:x}=t.attribute,A=b;if(x&&x.length){let T,k;if(t.cache=x.map((M,w)=>{if(M.points.length<=1&&w===0)return M.points[0]&&(k={endX:M.points[0].x,endY:M.points[0].y,curves:[{defined:M.points[0].defined!==!1}]}),null;w===1?T={x:k.endX,y:k.endY,defined:k.curves[k.curves.length-1].defined}:w>1&&(T.x=k.endX,T.y=k.endY,T.defined=k.curves[k.curves.length-1].defined);const C=Ry(M.points,m,{startPoint:T});return k=C,C}).filter(M=>!!M),m==="linearClosed"){let M;for(let w=0;wx.points.length);if(b[0].points.length===1&&b.shift(),y===1){let x=!1;t.cache.forEach((A,T)=>{x||(x=this.drawSegmentItem(e,A,!!d,!!c,u,p,b[T],[h,t.attribute],y,v,i,n,t,o,l))})}else{const x=t.cache.reduce((M,w)=>M+w.getLength(),0),A=y*x;let T=0,k=!1;t.cache.forEach((M,w)=>{if(k)return;const C=M.getLength(),R=(A-T)/C;T+=C,R>0&&(k=this.drawSegmentItem(e,M,!!d,!!c,u,p,b[w],[h,t.attribute],xi(R,1),v,i,n,t,o,l))})}}else this.drawSegmentItem(e,t.cache,!!d,!!c,u,p,t.attribute,h,y,v,i,n,t,o,l)}};jc=ZW([gt()],jc);function JW(s,t,e,i){const{drawConnect:n=!1,mode:r="none"}=i||{};if(n&&r==="none")return;const{top:a,bottom:o}=t;if(a.curves.length!==o.curves.length)return;if(e>=1){const x=[],A=[];let T=!0;if(n){let k,M,w=!0;const C=a.curves.length;a.curves.forEach((R,I)=>{const O=o.curves[C-I-1];let B=R,L=O;if(R.originP1===R.originP2)return k=R,void(M=O);if(k&&k.originP1===k.originP2&&(B=k,L=M),R.defined)w||(x.push(B),A.push(L),gl(s,x,A,i),x.length=0,A.length=0,w=!w);else{const{originP1:F,originP2:z}=R;let K,et;F&&F.defined!==!1?(K=B,et=L):F&&z.defined!==!1&&(K=R,et=O),w?(w=!w,x.push(K||R),A.push(et||O)):K&&(w=!w,x.push(K||R),A.push(et||O),gl(s,x,A,i),x.length=0,A.length=0)}k=R}),gl(s,x,A,i)}else{for(let k=0,M=a.curves.length;ku?ye.ROW:ye.COLUMN),Number.isFinite(c)||(l=ye.COLUMN),Number.isFinite(u)||(l=ye.ROW);const p=e*(l===ye.ROW?c:u);let g=0,f=!0;const _=[],m=[];let y,v,b=!0;for(let x=0,A=a.curves.length;x{l.defined?(o&&s.moveTo(l.p0.x+n,l.p0.y+r,a),$g(s,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&&s.lineTo(h.p0.x+n,h.p0.y+r,a),$g(s,h,1,i),o=!1):o=!0}s.closePath()}const QW=new NW,tG=sl;var eG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},iG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},bT=function(s,t){return function(e,i){t(e,i,s)}};function Cp(s,t,e){switch(t){case"linear":default:return Eu(s,e);case"basis":return iB(s,e);case"monotoneX":return sB(s,e);case"monotoneY":return rB(s,e);case"step":return Kl(s,.5,e);case"stepBefore":return Kl(s,0,e);case"stepAfter":return Kl(s,1,e);case"linearClosed":return aB(s,e)}}let Vc=class extends vn{constructor(t){super();S(this,"areaRenderContribitions");S(this,"type");S(this,"numberType",Iu);this.areaRenderContribitions=t,this.builtinContributions=[QW,tG],this.init(t)}drawLinearAreaHighPerformance(t,e,i,n,r,a,o,l,h,d,c,u,p){const{points:g}=t.attribute;if(g.length<2)return;e.beginPath();const f=this.z??0,_=g[0];e.moveTo(_.x+o,_.y+l,f);for(let v=1;v=0;v--){const b=g[v];e.lineTo((b.x1??b.x)+o,(b.y1??b.y)+l,f)}e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,o,l,!!r,!1,i,!1,h,d,u,null,{attribute:t.attribute});const{x:m=0,x:y=0}=t.attribute;if(i!==!1&&(u?u(e,t.attribute,h):r&&(e.setCommonStyle(t,t.attribute,m-o,y-l,h),e.fill())),this.afterRenderStep(t,e,o,l,!!r,!1,i,!1,h,d,u,null,{attribute:t.attribute}),n){const{stroke:v=h&&h.stroke}=t.attribute;if(G(v)&&(v[0]||v[2])&&v[1]===!1){if(e.beginPath(),v[0]){e.moveTo(_.x+o,_.y+l,f);for(let b=1;b=0;x--){const A=g[x];e.lineTo((A.x1??A.x)+o,(A.y1??A.y)+l,f)}}}p?p(e,t.attribute,h):(e.setStrokeStyle(t,t.attribute,m-o,y-l,h),e.stroke())}}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).area,{fill:d=h.fill,stroke:c=h.stroke,fillOpacity:u=h.fillOpacity,z:p=h.z,strokeOpacity:g=h.strokeOpacity}=t.attribute,f=this.valid(t,h,o,l);if(!f)return;const{doFill:_,doStroke:m}=f,{clipRange:y=h.clipRange,closePath:v,points:b,segments:x}=t.attribute;let{curveType:A=h.curveType}=t.attribute;if(v&&A==="linear"&&(A="linearClosed"),y===1&&!x&&!b.some(T=>T.defined===!1)&&A==="linear")return this.drawLinearAreaHighPerformance(t,e,!!d,m,u,g,i,n,h,r,a,o,l);if(t.shouldUpdateShape()){if(x&&x.length){let T,k;const M=x.map((R,I)=>{if(R.points.length<=1&&I===0)return R.points[0]&&(k={endX:R.points[0].x,endY:R.points[0].y}),null;I===1?T={x:k.endX,y:k.endY}:I>1&&(T.x=k.endX,T.y=k.endY);const O=Cp(R.points,A,{startPoint:T});return k=O,O}).filter(R=>!!R);let w;const C=[];for(let R=x.length-1;R>=0;R--){const I=x[R].points,O=[];for(let B=I.length-1;B>=0;B--)O.push({x:I[B].x1??I[B].x,y:I[B].y1??I[B].y});if(R!==0){const B=x[R-1].points,L=B[B.length-1];L&&O.push({x:L.x1??L.x,y:L.y1??L.y})}O.length>1&&(w=Cp(O,A==="stepBefore"?"stepAfter":A==="stepAfter"?"stepBefore":A),C.unshift(w))}t.cacheArea=C.map((R,I)=>({top:M[I],bottom:R}))}else{if(!b||!b.length)return t.cacheArea=null,void t.clearUpdateShapeTag();{const T=b,k=[];for(let C=b.length-1;C>=0;C--)k.push({x:b[C].x1??b[C].x,y:b[C].y1??b[C].y});const M=Cp(T,A),w=Cp(k,A==="stepBefore"?"stepAfter":A==="stepAfter"?"stepBefore":A);t.cacheArea={top:M,bottom:w}}}t.clearUpdateShapeTag()}if(Array.isArray(t.cacheArea)){const T=t.attribute.segments.filter(k=>k.points.length);if(T[0].points.length===1&&T.shift(),y===1){let k=!1;t.cacheArea.forEach((M,w)=>{k||(k=this.drawSegmentItem(e,M,_,u,m,g,T[w],[h,t.attribute],y,i,n,p,t,r,o,l))})}else{const k=t.cacheArea.reduce((R,I)=>R+I.top.getLength(),0),M=y*k;let w=0,C=!1;t.cacheArea.forEach((R,I)=>{if(C)return;const O=R.top.getLength(),B=(M-w)/O;w+=O,B>0&&(C=this.drawSegmentItem(e,R,_,u,m,g,T[I],[h,t.attribute],xi(B,1),i,n,p,t,r,o,l))})}}else this.drawSegmentItem(e,t.cacheArea,_,u,m,g,t.attribute,h,y,i,n,p,t,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).area;this._draw(t,r,!1,i,n)}drawSegmentItem(t,e,i,n,r,a,o,l,h,d,c,u,p,g,f,_){let m=!1;return m=m||this._drawSegmentItem(t,e,i,n,r,a,o,l,h,d,c,u,p,g,!1,f,_),m=m||this._drawSegmentItem(t,e,i,n,r,a,o,l,h,d,c,u,p,g,!0,f,_),m}_drawSegmentItem(t,e,i,n,r,a,o,l,h,d,c,u,p,g,f,_,m){if(!(e&&e.top&&e.bottom&&e.top.curves&&e.top.curves.length&&e.bottom.curves&&e.bottom.curves.length))return;let{connectedType:y,connectedX:v,connectedY:b,connectedStyle:x}=o;const A=[];if(f&&(G(l)?(y=y??l[0].connectedType??l[1].connectedType,v=v??l[0].connectedX??l[1].connectedX,b=b??l[0].connectedY??l[1].connectedY,x=x??l[0].connectedStyle??l[1].connectedStyle):(y=y??l.connectedType,v=v??l.connectedX,b=b??l.connectedY,x=x??l.connectedStyle),y!=="connect"&&y!=="zero"&&(y="none"),G(l)?l.forEach(L=>A.push(L)):A.push(l),A.push(o)),f&&y==="none")return!1;t.beginPath();const{points:T,segments:k}=p.attribute;let M,w,C=ye.ROW;if(k){const L=k[k.length-1];w=k[0].points[0],M=L.points[L.points.length-1]}else w=T[0],M=T[T.length-1];const R=Ut(M.x-w.x),I=Ut(M.y-w.y);C=Number.isFinite(R+I)?R>I?ye.ROW:ye.COLUMN:ye.ROW,JW(t.camera?t:t.nativeContext,e,h,{offsetX:d,offsetY:c,offsetZ:u,direction:C,drawConnect:f,mode:y,zeroX:v,zeroY:b}),this.beforeRenderStep(p,t,d,c,!!n,!1,i,!1,l,g,_,null,{attribute:o}),t.setShadowBlendStyle&&t.setShadowBlendStyle(p,o,l);const{x:O=0,x:B=0}=o;if(i!==!1&&(_?_(t,o,l):n&&(t.setCommonStyle(p,f?x:o,O-d,B-c,f?A:l),t.fill())),this.afterRenderStep(p,t,d,c,!!n,!1,i,!1,l,g,_,null,{attribute:o}),r!==!1)if(m)m(t,o,l);else{const{stroke:L=l&&l[1]&&l[1].stroke}=o;G(L)&&(L[0]||L[2])&&L[1]===!1&&(t.beginPath(),pb(t.camera?t:t.nativeContext,L[0]?e.top:e.bottom,h,C===ye.ROW?"x":"y",{offsetX:d,offsetY:c,offsetZ:u,drawConnect:f,mode:y,zeroX:v,zeroY:b})),t.setStrokeStyle(p,f?x:o,O-d,B-c,f?A:l),t.stroke()}return!1}};Vc=eG([gt(),bT(0,Bt(ii)),bT(0,fi(Yy)),iG("design:paramtypes",[Object])],Vc);const nG=Ih,sG=sl;var rG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},aG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},xT=function(s,t){return function(e,i){t(e,i,s)}};let Yg=class extends vn{constructor(t){super();S(this,"pathRenderContribitions");S(this,"type");S(this,"numberType",wm);S(this,"tempTheme");this.pathRenderContribitions=t,this.builtinContributions=[sG,nG],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=this.tempTheme??it(t,a==null?void 0:a.theme).path,{x:d=h.x,y:c=h.y}=t.attribute,u=this.z??0,p=this.valid(t,h,o,l);if(!p)return;const{fVisible:g,sVisible:f,doFill:_,doStroke:m}=p;if(e.beginPath(),t.pathShape)Mr(t.pathShape.commandList,e,i,n,1,1,u);else{const y=t.attribute.path??h.path;Mr(y.commandList,e,i,n,1,1,u)}e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,_,m,g,f,h,r,o,l),m&&(l?l(e,t.attribute,h):f&&(e.setStrokeStyle(t,t.attribute,d-i,c-n,h),e.stroke())),_&&(o?o(e,t.attribute,h):g&&(e.setCommonStyle(t,t.attribute,d-i,c-n,h),e.fill())),this.afterRenderStep(t,e,i,n,_,m,g,f,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).path;this.tempTheme=r,this._draw(t,r,!1,i,n),this.tempTheme=null}};Yg=rG([gt(),xT(0,Bt(ii)),xT(0,fi(qy)),aG("design:paramtypes",[Object])],Yg);var oG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},lG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},ST=function(s,t){return function(e,i){t(e,i,s)}};let Xg=class extends vn{constructor(t){super();S(this,"rectRenderContribitions");S(this,"type","rect");S(this,"numberType",Pm);S(this,"tempTheme");this.rectRenderContribitions=t,this.builtinContributions=[FW,HW,zW],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=this.tempTheme??it(t,a==null?void 0:a.theme).rect,{fill:d=h.fill,background:c,stroke:u=h.stroke,cornerRadius:p=h.cornerRadius,opacity:g=h.opacity,fillOpacity:f=h.fillOpacity,lineWidth:_=h.lineWidth,strokeOpacity:m=h.strokeOpacity,visible:y=h.visible,x1:v,y1:b,x=h.x,y:A=h.y}=t.attribute;let{width:T,height:k}=t.attribute;T=(T??v-x)||0,k=(k??b-A)||0;const M=SS(g,f,T,k,d),w=kS(g,m,T,k),C=nl(d,c),R=Rh(u,_);if(!t.valid||!y||!C&&!R||!(M||w||o||l||c))return;p===0||G(p)&&p.every(O=>O===0)?(e.beginPath(),e.rect(i,n,T,k)):(e.beginPath(),Wa(e,i,n,T,k,p));const I={doFill:C,doStroke:R};e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,C,R,M,w,h,r,o,l,I),I.doFill&&(o?o(e,t.attribute,h):M&&(e.setCommonStyle(t,t.attribute,x-i,A-n,h),e.fill())),I.doStroke&&(l?l(e,t.attribute,h):w&&(e.setStrokeStyle(t,t.attribute,x-i,A-n,h),e.stroke())),this.afterRenderStep(t,e,i,n,C,R,M,w,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).rect;this.tempTheme=r,this._draw(t,r,!1,i,n),this.tempTheme=null}};Xg=oG([gt(),ST(0,Bt(ii)),ST(0,fi(gd)),lG("design:paramtypes",[Object])],Xg);var hG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},dG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},AT=function(s,t){return function(e,i){t(e,i,s)}};let Kg=class extends vn{constructor(t){super();S(this,"symbolRenderContribitions");S(this,"type");S(this,"numberType",Em);this.symbolRenderContribitions=t,this.builtinContributions=[VW,GW,WW],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).symbol,{size:d=h.size,x:c=h.x,y:u=h.y,scaleX:p=h.scaleX,scaleY:g=h.scaleY}=t.attribute,f=this.valid(t,h,o,l);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:v}=f,b=t.getParsedPath();if(!b)return;const{keepDirIn3d:x=h.keepDirIn3d}=t.attribute,A=this.z??0;if(e.beginPath(),x&&e.camera&&e.project){const T=e.project(i,n,A),k=e.camera;e.camera=null,b.draw(e,G(d)?[d[0]*p,d[1]*g]:d*p,T.x,T.y,void 0,(M,w)=>{if(t._parsedPath.svgCache){const C=Object.assign({},w);C.fill=w.fill??t.attribute.fill,C.opacity=w.fill??t.attribute.opacity,C.fillOpacity=t.attribute.fillOpacity,C.stroke=w.stroke??t.attribute.stroke,w=C}w.fill&&(o?o(e,t.attribute,h):(e.setCommonStyle(t,w,c-i,u-n,h),e.fill())),w.stroke&&(l?l(e,t.attribute,h):(e.setStrokeStyle(t,w,(c-i)/p,(u-n)/g,h),e.stroke()))})===!1&&e.closePath(),e.camera=k}else b.draw(e,d,i,n,A,(T,k)=>{if(t._parsedPath.svgCache){const M=Object.assign({},k);M.fill=k.fill??t.attribute.fill,M.opacity=k.opacity??t.attribute.opacity,M.fillOpacity=t.attribute.fillOpacity,M.stroke=k.stroke??t.attribute.stroke,k=M}k.fill&&(o?o(e,t.attribute,h):(e.setCommonStyle(t,k,c-i,u-n,h),e.fill())),k.stroke&&(l?l(e,t.attribute,h):(e.setStrokeStyle(t,k,(c-i)/p,(u-n)/g,h),e.stroke()))})===!1&&e.closePath();e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,y,v,_,m,h,r,o,l),y&&!b.isSvg&&(o?o(e,t.attribute,h):_&&(e.setCommonStyle(t,t.attribute,c-i,u-n,h),e.fill())),v&&!b.isSvg&&(l?l(e,t.attribute,h):m&&(e.setStrokeStyle(t,t.attribute,(c-i)/p,(u-n)/g,h),e.stroke())),this.afterRenderStep(t,e,i,n,y,v,_,m,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).symbol;this._draw(t,r,!1,i,n)}};Kg=hG([gt(),AT(0,Bt(ii)),AT(0,fi(Jy)),dG("design:paramtypes",[Object])],Kg);class cG{constructor(){S(this,"pools",[]);for(let t=0;t<10;t++)this.pools.push(new xe)}allocate(t,e,i,n){if(!this.pools.length)return new xe().setValue(t,e,i,n);const r=this.pools.pop();return r.x1=t,r.y1=e,r.x2=i,r.y2=n,r}allocateByObj(t){if(!this.pools.length)return new xe(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 qg=new cG;class uG extends Fu{constructor(){super(...arguments);S(this,"time",_i.beforeFillStroke)}drawShape(e,i,n,r,a,o,l,h,d,c,u,p){const{backgroundMode:g=d.backgroundMode,backgroundFit:f=d.backgroundFit}=e.attribute;let _,{background:m}=e.attribute;if(!m)return;const y=()=>{e.type==="richtext"&&(i.restore(),i.save(),_&&i.setTransformFromMatrix(_,!0,1))};let v;e.type==="richtext"&&(_=i.currentMatrix.clone(),i.restore(),i.save(),i.setTransformForCurrent());const b=Et(m)&&m.background,x=e.transMatrix.onlyTranslate();if(b){const A=e.AABBBounds,T=(m.x??A.x1)+(m.dx??0),k=(m.y??A.y1)+(m.dy??0),M=m.width??A.width(),w=m.height??A.height();if(v=qg.allocate(T,k,T+M,k+w),m=m.background,!x){const C=v.width(),R=v.height();v.set((m.x??0)+(m.dx??0),(m.y??0)+(m.dy??0),C,R)}}else v=e.AABBBounds,x||(v=Bh({...e.attribute,angle:0,scaleX:1,scaleY:1,x:0,y:0,dx:0,dy:0}).clone());if(e.backgroundImg&&e.resources){const A=e.resources.get(m);if(A.state!=="success"||!A.data)return void y();i.highPerformanceSave(),x&&i.setTransformFromMatrix(e.parent.globalTransMatrix,!0),i.setCommonStyle(e,e.attribute,n,r,d),this.doDrawImage(i,A.data,v,g,f),i.highPerformanceRestore(),i.setTransformForCurrent()}else{const{backgroundCornerRadius:A}=e.attribute;i.highPerformanceSave(),i.setCommonStyle(e,e.attribute,n,r,d),i.fillStyle=m,A?(Wa(i,v.x1,v.y1,v.width(),v.height(),A),i.fill()):i.fillRect(v.x1,v.y1,v.width(),v.height()),i.highPerformanceRestore()}b&&qg.free(v),y()}}const iI=new uG;var pG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},gG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},kT=function(s,t){return function(e,i){t(e,i,s)}};let gb=class extends vn{constructor(t){super();S(this,"textRenderContribitions");S(this,"type");S(this,"numberType",Rm);this.textRenderContribitions=t,this.builtinContributions=[iI],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).text,{text:d,underline:c=h.underline,lineThrough:u=h.lineThrough,keepDirIn3d:p=h.keepDirIn3d,direction:g=h.direction,whiteSpace:f=h.whiteSpace,fontSize:_=h.fontSize,verticalMode:m=h.verticalMode,x:y=h.x,y:v=h.y}=t.attribute;let{textAlign:b=h.textAlign,textBaseline:x=h.textBaseline}=t.attribute;if(!m&&g==="vertical"){const B=b;b=t.getBaselineMapAlign()[x]??"left",x=t.getAlignMapBaseline()[B]??"top"}const A=kr(t.attribute.lineHeight,_)??_,T=this.valid(t,h,o,l);if(!T)return;const{fVisible:k,sVisible:M,doFill:w,doStroke:C}=T,R=!p,I=this.z||0;e.beginPath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,w,C,k,M,h,r,o,l),R&&this.transformUseContext2d(t,h,I,e);const O=(B,L,F,z)=>{let K=i+L;const et=n+F;if(z){e.highPerformanceSave(),K+=_;const j=rs.allocate(1,0,0,1,0,0);j.rotateByCenter(Math.PI/2,K,et),e.transformFromMatrix(j,!0),rs.free(j)}C&&(l?l(e,t.attribute,h):M&&(e.setStrokeStyle(t,t.attribute,y-i,v-n,h),e.strokeText(B,K,et,I))),w&&(o?o(e,t.attribute,h):k&&(e.setCommonStyle(t,t.attribute,y-i,v-n,h),e.fillText(B,K,et,I),this.drawUnderLine(c,u,t,K,et,I,h,e))),z&&(e.highPerformanceRestore(),e.setTransformForCurrent())};if(t.isMultiLine)if(e.setTextStyleWithoutAlignBaseline(t.attribute,h,I),g==="horizontal"){const{multilineLayout:B}=t;if(!B)return void e.highPerformanceRestore();const{xOffset:L,yOffset:F}=B.bbox;C&&(l?l(e,t.attribute,h):M&&(e.setStrokeStyle(t,t.attribute,y-i,v-n,h),B.lines.forEach(z=>{e.strokeText(z.str,(z.leftOffset||0)+L+i,(z.topOffset||0)+F+n,I)}))),w&&(o?o(e,t.attribute,h):k&&(e.setCommonStyle(t,t.attribute,y-i,v-n,h),B.lines.forEach(z=>{e.fillText(z.str,(z.leftOffset||0)+L+i,(z.topOffset||0)+F+n,I),this.drawMultiUnderLine(c,u,t,(z.leftOffset||0)+L+i,(z.topOffset||0)+F+n-W5("bottom",_)-.05*_,I,z.width,h,e)})))}else{t.tryUpdateAABBBounds();const B=t.cache,{verticalList:L}=B;e.textAlign="left",e.textBaseline="top";const F=A*L.length;let z=0;L.forEach(j=>{const st=j.reduce((ht,ut)=>ht+(ut.width||0),0);z=dn(st,z)});let K=0,et=0;x==="bottom"?et=-F:x==="middle"&&(et=-F/2),b==="center"?K-=z/2:b==="right"&&(K-=z),L.forEach((j,st)=>{const ht=j.reduce(($,Z)=>$+(Z.width||0),0),ut=z-ht;let J=K;b==="center"?J+=ut/2:b==="right"&&(J+=ut),j.forEach($=>{const{text:Z,width:X,direction:dt}=$;O(Z,F-(st+1)*A+et,J,dt),J+=X})})}else if(g==="horizontal"){e.setTextStyle(t.attribute,h,I);const B=t.clipedText;let L=0;A!==_&&(x==="top"?L=(A-_)/2:x==="middle"||x==="bottom"&&(L=-(A-_)/2)),O(B,0,L,0)}else{t.tryUpdateAABBBounds();const B=t.cache;if(B){e.setTextStyleWithoutAlignBaseline(t.attribute,h,I);const{verticalList:L}=B;let F=0;const z=L[0].reduce((et,j)=>et+(j.width||0),0);let K=0;x==="bottom"?K=-A:x==="middle"&&(K=-A/2),b==="center"?F-=z/2:b==="right"&&(F-=z),e.textAlign="left",e.textBaseline="top",L[0].forEach(et=>{const{text:j,width:st,direction:ht}=et;O(j,K,F,ht),F+=st})}}R&&this.restoreTransformUseContext2d(t,h,I,e),this.afterRenderStep(t,e,i,n,w,C,k,M,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).text,{keepDirIn3d:a=r.keepDirIn3d}=t.attribute,o=!a;this._draw(t,r,o,i,n)}drawUnderLine(t,e,i,n,r,a,o,l){if(e+t<=0)return;const{textAlign:h=o.textAlign,textBaseline:d=o.textBaseline,fontSize:c=o.fontSize,fill:u=o.fill,opacity:p=o.opacity,underlineOffset:g=o.underlineOffset,underlineDash:f=o.underlineDash,fillOpacity:_=o.fillOpacity}=i.attribute,m=i.clipedWidth,y=br(h,m),v=Us(d,c,c),b={lineWidth:0,stroke:u,opacity:p,strokeOpacity:_};if(t){b.lineWidth=t,l.setStrokeStyle(i,b,n,r,o),f&&l.setLineDash(f),l.beginPath();const x=r+v+c+g;l.moveTo(n+y,x,a),l.lineTo(n+y+m,x,a),l.stroke()}if(e){b.lineWidth=e,l.setStrokeStyle(i,b,n,r,o),l.beginPath();const x=r+v+c/2;l.moveTo(n+y,x,a),l.lineTo(n+y+m,x,a),l.stroke()}}drawMultiUnderLine(t,e,i,n,r,a,o,l,h){if(e+t<=0)return;const{fontSize:d=l.fontSize,fill:c=l.fill,opacity:u=l.opacity,underlineOffset:p=l.underlineOffset,underlineDash:g=l.underlineDash,fillOpacity:f=l.fillOpacity}=i.attribute,_=Us("alphabetic",d,d),m={lineWidth:0,stroke:c,opacity:u,strokeOpacity:f};let y=-3;if(t){m.lineWidth=t,h.setStrokeStyle(i,m,n,r,l),g&&h.setLineDash(g),h.beginPath();const v=r+_+d+y+p;h.moveTo(n+0,v,a),h.lineTo(n+0+o,v,a),h.stroke()}if(y=-1,e){m.lineWidth=e,h.setStrokeStyle(i,m,n,r,l),h.beginPath();const v=r+_+d/2+y;h.moveTo(n+0,v,a),h.lineTo(n+0+o,v,a),h.stroke()}}};gb=pG([gt(),kT(0,Bt(ii)),kT(0,fi(Qy)),gG("design:paramtypes",[Object])],gb);function nI(s,t,e,i){s.moveTo(t[0].x+e,t[0].y+i);for(let n=1;nA&&(v=A,y=A*m);const T=av(d,v,b,u,p),k=av(d,v,x,g,f),M=2*d.x-T.x-k.x,w=2*d.y-T.y-k.y,C=Pp(M,w),R=av(d,Pp(v,y),C,M,w);let I=Math.atan2(T.y-R.y,T.x-R.x);const O=Math.atan2(k.y-R.y,k.x-R.x);let B=O-I;B<0&&(I=O,B=-B),B>Math.PI&&(B-=Math.PI),l===0?s.moveTo(T.x+e,T.y+i):s.lineTo(T.x+e,T.y+i),B&&s.arcTo(d.x+e,d.y+i,k.x+e,k.y+i,y),s.lineTo(k.x+e,k.y+i)}r||s.lineTo(t[o+1].x+e,t[o+1].y+i)}function Pp(s,t){return Math.sqrt(s*s+t*t)}function av(s,t,e,i,n){const r=t/e;return{x:s.x-i*r,y:s.y-n*r}}const _G=Ih,mG=sl;var vG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},yG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},TT=function(s,t){return function(e,i){t(e,i,s)}};let fb=class extends vn{constructor(t){super();S(this,"polygonRenderContribitions");S(this,"type");S(this,"numberType",Cm);this.polygonRenderContribitions=t,this.builtinContributions=[mG,_G],this.init(t)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).polygon,{points:d=h.points,cornerRadius:c=h.cornerRadius,x:u=h.x,y:p=h.y,closePath:g=h.closePath}=t.attribute,f=this.valid(t,h,o,l);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:v}=f;e.beginPath(),c<=0||G(c)&&c.every(b=>b===0)?nI(e.camera?e:e.nativeContext,d,i,n):fG(e.camera?e:e.nativeContext,d,i,n,c,g),g&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),this.beforeRenderStep(t,e,i,n,y,v,_,m,h,r,o,l),y&&(o?o(e,t.attribute,h):_&&(e.setCommonStyle(t,t.attribute,u-i,p-n,h),e.fill())),v&&(l?l(e,t.attribute,h):m&&(e.setStrokeStyle(t,t.attribute,u-i,p-n,h),e.stroke())),this.afterRenderStep(t,e,i,n,y,v,_,m,h,r,o,l)}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).polygon;this._draw(t,r,!1,i,n)}};fb=vG([gt(),TT(0,Bt(ii)),TT(0,fi(Zy)),yG("design:paramtypes",[Object])],fb);var bG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},xG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},MT=function(s,t){return function(e,i){t(e,i,s)}};const SG=["","repeat-x","repeat-y","repeat"];let _b=class extends vn{constructor(t){super();S(this,"imageRenderContribitions");S(this,"type");S(this,"numberType",Mm);this.imageRenderContribitions=t,this.builtinContributions=[OW],this.init(t)}drawShape(t,e,i,n,r,a,o){const l=it(t).image,{width:h=l.width,height:d=l.height,repeatX:c=l.repeatX,repeatY:u=l.repeatY,cornerRadius:p=l.cornerRadius,image:g}=t.attribute,f=this.valid(t,l,o);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:v}=f;if(e.setShadowBlendStyle&&e.setShadowBlendStyle(t,l),this.beforeRenderStep(t,e,i,n,y,!1,_,!1,l,r,o),y){if(o)o(e,t.attribute,l);else if(_){if(!g||!t.resources)return;const b=t.resources.get(g);if(b.state!=="success")return;let x=!1;p===0||G(p)&&p.every(T=>T===0)||(e.beginPath(),Wa(e,i,n,h,d,p),e.save(),e.clip(),x=!0),e.setCommonStyle(t,t.attribute,i,n,l);let A=0;if(c==="repeat"&&(A|=1),u==="repeat"&&(A|=2),A){const T=e.createPattern(b.data,SG[A]);e.fillStyle=T,e.translate(i,n,!0),e.fillRect(0,0,h,d),e.translate(-i,-n,!0)}else e.drawImage(b.data,i,n,h,d);x&&e.restore()}}this.afterRenderStep(t,e,i,n,y,!1,_,!1,l,r,o)}draw(t,e,i){const{image:n}=t.attribute;if(!n||!t.resources)return;const r=t.resources.get(n);if(r.state==="loading"&&at(n))return void zc.improveImageLoading(n);if(r.state!=="success")return;const{context:a}=e.drawParams;if(!a)return;const o=it(t).image;this._draw(t,o,!1,i)}};_b=bG([gt(),MT(0,Bt(ii)),MT(0,fi(Ky)),xG("design:paramtypes",[Object])],_b);const sI=Symbol.for("IncrementalDrawContribution"),Zg=Symbol.for("ArcRender"),mb=Symbol.for("Arc3dRender"),Jg=Symbol.for("AreaRender"),Qg=Symbol.for("CircleRender"),mi=Symbol.for("GraphicRender"),wT=Symbol.for("GroupRender"),tf=Symbol.for("LineRender"),ef=Symbol.for("PathRender"),nf=Symbol.for("PolygonRender"),sf=Symbol.for("RectRender"),vb=Symbol.for("Rect3DRender"),rf=Symbol.for("SymbolRender"),yb=Symbol.for("TextRender"),bb=Symbol.for("RichTextRender"),xb=Symbol.for("Pyramid3dRender"),af=Symbol.for("GlyphRender"),CT=Symbol.for("ImageRender"),BS=Symbol.for("DrawContribution");var AG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},kG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};const of=Symbol.for("DrawItemInterceptor"),PT=new xe;class TG{constructor(){S(this,"order",1)}afterDrawItem(t,e,i,n,r){return(t.attribute.shadowRootIdx>0||!t.attribute.shadowRootIdx)&&this.drawItem(t,e,i,n,r),!1}beforeDrawItem(t,e,i,n,r){return t.attribute.shadowRootIdx<0&&this.drawItem(t,e,i,n,r),!1}drawItem(t,e,i,n,r){if(!t.shadowRoot)return!1;const{context:a}=i;if(a.highPerformanceSave(),a.transformFromMatrix(t.transMatrix,!0),n.dirtyBounds&&n.backupDirtyBounds){PT.copy(n.dirtyBounds);const o=t.globalTransMatrix.getInverse();n.dirtyBounds.copy(n.backupDirtyBounds).transformWithMatrix(o)}return n.renderGroup(t.shadowRoot,i,t.parent.globalTransMatrix),a.highPerformanceRestore(),n.dirtyBounds&&n.backupDirtyBounds&&n.dirtyBounds.copy(PT),!0}}class MG{constructor(){S(this,"order",1)}afterDrawItem(t,e,i,n,r){return t.attribute._debug_bounds&&this.drawItem(t,e,i,n,r),!1}drawItem(t,e,i,n,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 lf=class{constructor(){S(this,"order",1);S(this,"interceptors");this.interceptors=[new TG,new CG,new wG,new MG]}afterDrawItem(s,t,e,i,n){for(let r=0;r(c=p.numberType===Bu,!c)),t.forEachChildren(p=>(u=!!p.findFace,!u)),c){const p=t.getChildren(),g=[...p];g.sort((_,m)=>{let y=((_.attribute.startAngle??0)+(_.attribute.endAngle??0))/2,v=((m.attribute.startAngle??0)+(m.attribute.endAngle??0))/2;for(;y<0;)y+=Ft;for(;v<0;)v+=Ft;return v-y}),g.forEach(_=>{_._next=null,_._prev=null}),t.removeAllChild(),t.update(),g.forEach(_=>{t.appendChild(_)});const f=t.parent.globalTransMatrix;i.hack_pieFace="outside",n.renderGroup(t,i,f),i.hack_pieFace="inside",n.renderGroup(t,i,f),i.hack_pieFace="top",n.renderGroup(t,i,f),t.removeAllChild(),p.forEach(_=>{_._next=null,_._prev=null}),p.forEach(_=>{t.appendChild(_)})}else if(u){const p=t.getChildren(),g=p.map(f=>({ave_z:f.findFace().vertices.map(_=>a.view(_[0],_[1],_[2]+f.attribute.z)[2]).reduce((_,m)=>_+m,0),g:f}));g.sort((f,_)=>_.ave_z-f.ave_z),t.removeAllChild(),g.forEach(f=>{f.g._next=null,f.g._prev=null}),t.update(),g.forEach(f=>{t.add(f.g)}),n.renderGroup(t,i,t.parent.globalTransMatrix,!0),t.removeAllChild(),p.forEach(f=>{f._next=null,f._prev=null}),t.update(),p.forEach(f=>{t.add(f)})}else n.renderGroup(t,i,t.parent.globalTransMatrix)}else n.renderItem(t,i);return a.camera=null,a.restore(),a.modelMatrix!==d&&de.free(a.modelMatrix),a.modelMatrix=d,i.in3dInterceptor=!1,!0}initCanvasCtx(t){t.setTransformForCurrent()}}var PG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},EG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},RG=function(s,t){return function(e,i){t(e,i,s)}};const rI=Symbol.for("RenderService");let Sb=class{constructor(s){S(this,"drawContribution");S(this,"dirtyBounds");S(this,"renderTreeRoots");S(this,"renderLists");S(this,"drawParams");this.drawContribution=s}prepare(s){s&&this.renderTreeRoots.forEach(t=>{this._prepare(t,s)})}_prepare(s,t){s.forEachChildren(e=>{this._prepare(e,t)}),s.update({bounds:t,trans:!0})}prepareRenderList(){}beforeDraw(s){}draw(s){this.drawContribution.draw(this,{...this.drawParams})}afterDraw(s){this.drawContribution.afterDraw&&this.drawContribution.afterDraw(this,{...this.drawParams})}render(s,t){this.renderTreeRoots=s,this.drawParams=t;const e=t.updateBounds;this.prepare(e),this.prepareRenderList(),this.beforeDraw(t),this.draw(t),this.afterDraw(t),this.drawParams=null}};Sb=PG([gt(),RG(0,Bt(BS)),EG("design:paramtypes",[Object])],Sb);const BG=new Ct(s=>{s(rI).to(Sb)}),ql=Symbol.for("PickerService"),ET=Symbol.for("GlobalPickerService");var IS=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const Ol=Symbol.for("PickItemInterceptor");let hf=class{constructor(){S(this,"order",1)}afterPickItem(s,t,e,i,n){return s.attribute.shadowRootIdx>0||!s.attribute.shadowRootIdx?this._pickItem(s,t,e,i,n):null}beforePickItem(s,t,e,i,n){return s.attribute.shadowRootIdx<0?this._pickItem(s,t,e,i,n):null}_pickItem(s,t,e,i,n){if(!s.shadowRoot)return null;const{parentMatrix:r}=n||{};if(!r)return null;const a=t.pickContext;a.highPerformanceSave();const o=s.shadowRoot,l=rs.allocateByObj(r),h=new Oe(l.a*e.x+l.c*e.y+l.e,l.b*e.x+l.d*e.y+l.f),d=t.pickGroup(o,h,l,i);return a.highPerformanceRestore(),d}};hf=IS([gt()],hf);let df=class{constructor(){S(this,"order",1)}beforePickItem(s,t,e,i,n){const r=s.baseGraphic;if(r&&r.parent){const a=new Oe(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}};df=IS([gt()],df);let cf=class{constructor(){S(this,"order",1)}beforePickItem(s,t,e,i,n){if(!s.in3dMode||i.in3dInterceptor)return null;const r=t.pickContext,a=s.stage;if(!r||!a)return null;if(i.in3dInterceptor=!0,r.save(),this.initCanvasCtx(r),r.camera=a.camera,s.isContainer){let o,l=!1,h=!1;if(s.forEachChildren(d=>(l=d.numberType===Bu,!l)),s.forEachChildren(d=>(h=!!d.findFace,!h)),l){const d=s.getChildren(),c=[...d];c.sort((u,p)=>{let g=(u.attribute.startAngle??0+u.attribute.endAngle??0)/2,f=(p.attribute.startAngle??0+p.attribute.endAngle??0)/2;for(;g<0;)g+=Ft;for(;f<0;)f+=Ft;return f-g}),c.forEach(u=>{u._next=null,u._prev=null}),s.removeAllChild(),s.update(),c.forEach(u=>{s.appendChild(u)}),i.hack_pieFace="outside",o=t.pickGroup(s,e,n.parentMatrix,i),o.graphic||(i.hack_pieFace="inside",o=t.pickGroup(s,e,n.parentMatrix,i)),o.graphic||(i.hack_pieFace="top",o=t.pickGroup(s,e,n.parentMatrix,i)),s.removeAllChild(),d.forEach(u=>{u._next=null,u._prev=null}),d.forEach(u=>{s.appendChild(u)})}else if(h){const d=s.getChildren(),c=d.map(u=>({ave_z:u.findFace().vertices.map(p=>r.view(p[0],p[1],p[2]+u.attribute.z)[2]).reduce((p,g)=>p+g,0),g:u}));c.sort((u,p)=>p.ave_z-u.ave_z),s.removeAllChild(),c.forEach(u=>{u.g._next=null,u.g._prev=null}),s.update(),c.forEach(u=>{s.add(u.g)}),o=t.pickGroup(s,e,n.parentMatrix,i),s.removeAllChild(),d.forEach(u=>{u._next=null,u._prev=null}),s.update(),d.forEach(u=>{s.add(u)})}else o=t.pickGroup(s,e,n.parentMatrix,i);return r.camera=null,i.in3dInterceptor=!1,r.restore(),o}return r.restore(),null}initCanvasCtx(s){s.setTransformForCurrent()}};cf=IS([gt()],cf);const IG=new Ct((s,t,e)=>{e(ql)||(s(ET).toSelf(),s(ql).toService(ET)),s(cf).toSelf().inSingletonScope(),s(Ol).toService(cf),s(hf).toSelf().inSingletonScope(),s(Ol).toService(hf),s(df).toSelf().inSingletonScope(),s(Ol).toService(df),Bi(s,Ol)}),LG=new Ct(s=>{s(OB).to(cb).inSingletonScope(),s(DB).toConstantValue(_t)}),Wc=Symbol.for("AutoEnablePlugins"),aI=Symbol.for("PluginService");var OG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},DG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},RT=function(s,t){return function(e,i){t(e,i,s)}};let Ab=class{constructor(s){S(this,"autoEnablePlugins");this.autoEnablePlugins=s,this.onStartupFinishedPlugin=[],this.onRegisterPlugin=[],this.actived=!1}active(s,t){this.stage=s,this.actived=!0;const{pluginList:e}=t;e&&wt.isBound(Wc)&&this.autoEnablePlugins.getContributions().forEach(i=>{e.includes(i.name)&&this.register(i)})}findPluginsByName(s){const t=[];return this.onStartupFinishedPlugin.forEach(e=>{e.name===s&&t.push(e)}),this.onRegisterPlugin.forEach(e=>{e.name===s&&t.push(e)}),t}register(s){s.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.push(s):s.activeEvent==="onRegister"&&(this.onRegisterPlugin.push(s),s.activate(this))}unRegister(s){s.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.splice(this.onStartupFinishedPlugin.indexOf(s),1):s.activeEvent==="onRegister"&&this.onRegisterPlugin.splice(this.onStartupFinishedPlugin.indexOf(s),1),s.deactivate(this)}release(...s){this.onStartupFinishedPlugin.forEach(t=>{t.deactivate(this)}),this.onStartupFinishedPlugin=[],this.onRegisterPlugin.forEach(t=>{t.deactivate(this)}),this.onRegisterPlugin=[]}};Ab=OG([gt(),RT(0,Bt(ii)),RT(0,fi(Wc)),DG("design:paramtypes",[Object])],Ab);const FG=new Ct(s=>{s(aI).to(Ab),BH(s,Wc)}),zG=new Ct(s=>{Bi(s,xm)}),HG=new Ct(s=>{s(Ly).to(Oy).inSingletonScope(),Bi(s,Ly)});var jG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},VG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};let uf=class{constructor(){S(this,"layer");S(this,"canvas");S(this,"context");S(this,"offscreen");S(this,"main");S(this,"window");S(this,"type","static");S(this,"global");S(this,"secondaryHandlers");this.offscreen=!1,this.global=q.global}setDpr(s){this.canvas.dpr=s}init(s,t,e){if(this.layer=s,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 n=t.getContext().getCanvas().nativeCanvas,r=Rg({nativeCanvas:i,width:t.width,height:t.height,dpr:t.dpr,id:e.canvasId,canvasControled:!0,container:t.getContainer(),x:n.offsetLeft,y:n.offsetTop});r.applyPosition(),this.canvas=r,this.context=r.getContext()}}resize(s,t){this.canvas.resize(s,t)}resizeView(s,t){}render(s,t,e){if(!this.main){const i=this.window.getContext().getCanvas().nativeCanvas;!i||this.canvas.x===i.offsetLeft&&this.canvas.y===i.offsetTop||(this.canvas.x=i.offsetLeft,this.canvas.y=i.offsetTop,this.canvas.applyPosition())}t.renderService.render(s,{context:this.context,clear:t.background??"#ffffff",...t,...e})}merge(s){s.forEach(t=>{const e=t.getContext().canvas.nativeCanvas;this.context.drawImage(e,0,0)})}prepare(s,t){}drawTo(s,t,e){const i=s.getContext();e.renderService.render(t,{context:i,...e,clear:e.clear?e.background??"#fff":void 0})}getContext(){return this.context}release(){this.canvas.release()}};uf=jG([gt(),VG("design:paramtypes",[])],uf);var WG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},GG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};let pf=class{constructor(){this.offscreen=!1,this.type="virtual",this.global=q.global}setDpr(s){}init(s,t,e){if(this.layer=s,this.window=t,e.main)throw new Error("virtual layer不能作为main layer");this.main=!1,this.canvas=null,this.context=null}resize(s,t){}resizeView(s,t){}render(s,t,e){this.mainHandler.render(s,t,{...e,clear:!1})}merge(s){}prepare(s,t){}drawTo(s,t,e){const i=s.getContext();e.renderService.render(t,{context:i,...e,clear:e.clear?e.background??"#fff":void 0})}getContext(){return null}release(){}};pf=WG([gt(),GG("design:paramtypes",[])],pf);var NG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},UG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};let gf=class{constructor(){this.offscreen=!0,this.type="dynamic",this.global=q.global}setDpr(s){this.canvas.dpr=s}init(s,t,e){this.layer=s;const i=this.global.createOffscreenCanvas({width:e.width,height:e.height,dpr:t.dpr}),n=Rg({nativeCanvas:i,width:e.width,height:e.height,dpr:t.dpr,canvasControled:!0});this.canvas=n,this.context=n.getContext()}resize(s,t){this.canvas.resize(s,t)}resizeView(s,t){this.canvas.resize(s,t)}render(s,t){t.renderService.render(s,{context:this.context,viewBox:t.stage.window.getViewBox(),transMatrix:t.stage.window.getViewBoxTransform(),...t,clear:t.background??"#ffffff"})}prepare(s,t){}release(){this.canvas.release()}getContext(){return this.context}drawTo(s,t,e){const i=s.getContext(),n=s.dpr,{viewBox:r}=e,a=r.x1,o=r.y1,l=r.width(),h=r.height();i.nativeContext.save(),i.nativeContext.setTransform(n,0,0,n,0,0),e.clear&&i.clearRect(a,o,l,h),i.drawImage(this.canvas.nativeCanvas,0,0,this.canvas.width,this.canvas.height,a,o,l,h),i.nativeContext.restore()}merge(s){}};gf=NG([gt(),UG("design:paramtypes",[])],gf);const $G=new Ct(s=>{s(uf).toSelf(),s(gf).toSelf(),s(pf).toSelf(),s(jB).toService(uf),s(VB).toService(gf),s(WB).toService(pf)});function YG(s){s.load(zG),s.load(HG),s.load($G)}function oI(s,t,e,i=!1,n=!1){const r={},a=[];let o=!1;if(n)o=!0;else{let l;s.forEachChildren((h,d)=>{const{zIndex:c=t}=h.attribute;if(d===0)l=c;else if(l!==c)return o=!0,!0;return!1},i)}if(o){s.forEachChildren(h=>{const{zIndex:d=t}=h.attribute;r[d]?r[d].push(h):(r[d]=[h],a.push(d))},i),a.sort((h,d)=>i?d-h:h-d);let l=!1;for(let h=0;h(i?-1:1)*((p.attribute.z??0)-(u.attribute.z??0)));for(let u=0;u{const{zIndex:c=e}=h.attribute;if(d!==0){if(c!==void 0)return a=!0,!0}return!1},i);let o=null,l=!1;if(a){s.forEachChildren(d=>{const{zIndex:c=e}=d.attribute;n[c]?n[c].push(d):(n[c]=[d],r.push(c))},i),r.sort((d,c)=>i?c-d:d-c);let h=!1;for(let d=0;dl?(o=h,!0):(h._uid===t&&(l=!0),!1),i);return o}var KG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},qG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},ov=function(s,t){return function(e,i){t(e,i,s)}};let ff=class{constructor(s,t){S(this,"contributions");S(this,"drawItemInterceptorContributions");this.contributions=s,this.drawItemInterceptorContributions=t,this.currentRenderMap=new Map,this.defaultRenderMap=new Map,this.styleRenderMap=new Map,this.dirtyBounds=new di,this.backupDirtyBounds=new di,this.global=q.global,this.layerService=q.layerService,this.init()}init(){this.contributions.forEach(s=>{if(s.style){const t=this.styleRenderMap.get(s.style)||new Map;t.set(s.numberType,s),this.styleRenderMap.set(s.style,t)}else this.defaultRenderMap.set(s.numberType,s)}),this.InterceptorContributions=this.drawItemInterceptorContributions.getContributions().sort((s,t)=>s.order-t.order)}prepareForDraw(s,t){t.updateBounds?this.useDirtyBounds=!0:this.useDirtyBounds=!t.stage.params.optimize.disableCheckGraphicWidthOutRange}draw(s,t){this.prepareForDraw(s,t),t.drawContribution=this,this.currentRenderMap=this.styleRenderMap.get(t.renderStyle)||this.defaultRenderMap,this.currentRenderService=s;const{context:e,stage:i,viewBox:n,transMatrix:r}=t;if(!e)return;const a=this.dirtyBounds.setValue(0,0,n.width(),n.height());if(i.dirtyBounds&&!i.dirtyBounds.empty()){const l=YE(a,i.dirtyBounds);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(n.x1,n.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(s,e,t),e.save(),s.renderTreeRoots.sort((l,h)=>(l.attribute.zIndex??He.zIndex)-(h.attribute.zIndex??He.zIndex)).forEach(l=>{l.isContainer?this.renderGroup(l,t,rs.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(s){let t=s.parent,e=s._uid;for(;t;){const i=XG(t,e,He.zIndex);if(i)return i;e=t._uid,t=t.parent}return null}renderGroup(s,t,e,i){if(t.break||s.attribute.visibleAll===!1)return;if(s.incremental&&(t.startAtId==null||t.startAtId===s._uid))return t.break=!0,void this._increaseRender(s,t);if(this.useDirtyBounds&&!Cc(s.AABBBounds,this.dirtyBounds,!1))return;let n,r=e;if(this.useDirtyBounds){n=qg.allocateByObj(this.dirtyBounds);const a=s.transMatrix;r=rs.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(s,t,{drawingCb:()=>{var a;i?s.forEachChildren(o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))}):oI(s,He.zIndex,o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))},!1,!!((a=t.context)!=null&&a.camera))}}),this.useDirtyBounds&&(this.dirtyBounds.copy(n),qg.free(n),rs.free(r))}_increaseRender(s,t){const{layer:e,stage:i}=t,{subLayers:n}=e;let r=n.get(s._uid);r||(r={layer:this.layerService.createLayer(i),zIndex:n.size,group:s},n.set(s._uid,r));const a=r.layer.getNativeHandler().getContext(),o=r.drawContribution||wt.get(sI);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,{...t,drawContribution:o,clear:"transparent",layer:r.layer,context:a,startAtId:s._uid,break:!1}),r.drawContribution=o;const l=this._findNextGraphic(s);if(l)if(l.isContainer&&l.incremental)this._increaseRender(l,t);else{let h=n.get(l._uid);h||(h={layer:this.layerService.createLayer(i),zIndex:n.size},n.set(l._uid,h));const d=h.layer.getNativeHandler().getContext();this.draw(this.currentRenderService,{...t,drawContribution:o,clear:"transparent",layer:h.layer,context:d,startAtId:l._uid,break:!1})}}getRenderContribution(s){let t;return t||(t=this.selectRenderByNumberType(s.numberType,s)),t||(t=this.selectRenderByType(s.type)),t}renderItem(s,t,e){if(this.InterceptorContributions.length)for(let o=0;o=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},JG=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},IT=function(s,t){return function(e,i){t(e,i,s)}};let kb=class{constructor(s){S(this,"groupRenderContribitions");S(this,"type");S(this,"numberType",_S);S(this,"_groupRenderContribitions");this.groupRenderContribitions=s}drawShape(s,t,e,i,n,r,a,o){const l=it(s,r==null?void 0:r.theme).group,{fill:h=l.fill,background:d,stroke:c=l.stroke,opacity:u=l.opacity,width:p=l.width,height:g=l.height,clip:f=l.clip,fillOpacity:_=l.fillOpacity,strokeOpacity:m=l.strokeOpacity,cornerRadius:y=l.cornerRadius,path:v=l.path,lineWidth:b=l.lineWidth,visible:x=l.visible}=s.attribute,A=SS(u,_,p,g,h),T=kS(u,m,p,g),k=nl(h,d),M=Rh(c,b);if(!s.valid||!x||!f&&(!k&&!M||!(A||T||a||o||d)))return;if(v&&v.length&&n.drawContribution){const C=t.disableFill,R=t.disableStroke,I=t.disableBeginPath;t.disableFill=!0,t.disableStroke=!0,t.disableBeginPath=!0,v.forEach(O=>{n.drawContribution.getRenderContribution(O).draw(O,n.renderService,n,r)}),t.disableFill=C,t.disableStroke=R,t.disableBeginPath=I}else y===0||G(y)&&y.every(C=>C===0)?(t.beginPath(),t.rect(e,i,p,g)):(t.beginPath(),Wa(t,e,i,p,g,y));this._groupRenderContribitions||(this._groupRenderContribitions=this.groupRenderContribitions.getContributions()||[],this._groupRenderContribitions.push(BW));const w={doFill:k,doStroke:M};this._groupRenderContribitions.forEach(C=>{C.time===_i.beforeFillStroke&&C.drawShape(s,t,e,i,k,M,A,T,l,n,a,o,w)}),f&&t.clip(),t.setShadowBlendStyle&&t.setShadowBlendStyle(s,s.attribute,l),w.doFill&&(a?a(t,s.attribute,l):A&&(t.setCommonStyle(s,s.attribute,e,i,l),t.fill())),w.doStroke&&(o?o(t,s.attribute,l):T&&(t.setStrokeStyle(s,s.attribute,e,i,l),t.stroke())),this._groupRenderContribitions.forEach(C=>{C.time===_i.afterFillStroke&&C.drawShape(s,t,e,i,k,M,A,T,l,n,a,o)})}draw(s,t,e,i){const{context:n}=e;if(!n)return;const{clip:r,baseOpacity:a=1}=s.attribute;r?n.save():n.highPerformanceSave(),n.baseGlobalAlpha*=a;const o=it(s,i==null?void 0:i.theme).group,l=n.modelMatrix;if(n.camera){const u=de.allocate(),p=de.allocate();tI(p,s,o),Du(u,l||u,p),n.modelMatrix=u,de.free(p),n.setTransform(1,0,0,1,0,0,!0)}else n.transformFromMatrix(s.transMatrix,!0);n.beginPath(),i.skipDraw?this.drawShape(s,n,0,0,e,i,()=>!1,()=>!1):this.drawShape(s,n,0,0,e);const{scrollX:h=o.scrollX,scrollY:d=o.scrollY}=s.attribute;let c;(h||d)&&n.translate(h,d),i&&i.drawingCb&&(c=i.drawingCb()),n.modelMatrix!==l&&de.free(n.modelMatrix),n.modelMatrix=l,n.baseGlobalAlpha/=a,c&&c.then?c.then(()=>{r?n.restore():n.highPerformanceRestore()}):r?n.restore():n.highPerformanceRestore()}};kb=ZG([gt(),IT(0,Bt(ii)),IT(0,fi(NB)),JG("design:paramtypes",[Object])],kb);var QG=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let _f=class extends jc{constructor(){super(...arguments);S(this,"numberType",Lu)}drawShape(t,e,i,n,r,a,o,l){if(t.incremental&&r.multiGraphicOptions){const{startAtIdx:h,length:d}=r.multiGraphicOptions,{segments:c=[]}=t.attribute;if(h>c.length)return;const u=it(t).line,{fill:p=u.fill,stroke:g=u.stroke,opacity:f=u.opacity,fillOpacity:_=u.fillOpacity,strokeOpacity:m=u.strokeOpacity,lineWidth:y=u.lineWidth,visible:v=u.visible}=t.attribute,b=zo(f,_,p),x=AS(f,m),A=nl(p),T=Rh(g,y);if(!t.valid||!v||!A&&!T||!(b||x||o||l))return;const{context:k}=r;for(let M=h;M=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let mf=class extends Vc{constructor(){super(...arguments);S(this,"numberType",Iu)}drawShape(t,e,i,n,r,a,o){if(t.incremental&&r.multiGraphicOptions){const{startAtIdx:l,length:h}=r.multiGraphicOptions,{segments:d=[]}=t.attribute;if(l>d.length)return;const c=it(t).area,{fill:u=c.fill,fillOpacity:p=c.fillOpacity,opacity:g=c.opacity,visible:f=c.visible}=t.attribute,_=zo(g,p,u),m=nl(u);if(!t.valid||!f||!m||!_&&!o)return;for(let y=l;y=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},iN=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},Kh=function(s,t){return function(e,i){t(e,i,s)}};(function(s){s[s.NORMAL=0]="NORMAL",s[s.STOP=1]="STOP"})(Dl||(Dl={}));let Tb=class extends ff{constructor(t,e,i,n){super(t,n);S(this,"contributions");S(this,"lineRender");S(this,"areaRender");S(this,"drawItemInterceptorContributions");S(this,"rendering",!1);S(this,"currFrameStartAt",0);S(this,"currentIdx",0);S(this,"status",Dl.NORMAL);S(this,"checkingForDrawPromise",null);S(this,"hooks",{completeDraw:new jn([])});S(this,"lastRenderService");S(this,"lastDrawContext");S(this,"count");this.contributions=t,this.lineRender=e,this.areaRender=i,this.drawItemInterceptorContributions=n,this.defaultRenderMap.set(this.lineRender.numberType,this.lineRender),this.defaultRenderMap.set(this.areaRender.numberType,this.areaRender)}async draw(t,e){if(this.checkingForDrawPromise)return;this.lastRenderService=t,this.lastDrawContext=e,this.checkingForDrawPromise=this.checkForDraw(e);const i=await this.checkingForDrawPromise;if(this.checkingForDrawPromise=null,i)return;this.currentRenderService=t;const{context:n,viewBox:r}=e;n&&(n.inuse=!0,n.clearMatrix(),n.setTransformForCurrent(!0),n.save(),e.restartIncremental&&this.clearScreen(this.currentRenderService,n,e),n.translate(r.x1,r.y1,!0),n.save(),t.renderTreeRoots.sort((a,o)=>(a.attribute.zIndex??He.zIndex)-(o.attribute.zIndex??He.zIndex)).forEach(a=>{this.renderGroup(a,e)}),this.hooks.completeDraw.tap("top-draw",()=>{n.restore(),n.restore(),n.draw(),n.inuse=!1,this.rendering=!1}))}async _increaseRender(t,e){this.rendering=!0,await this._renderIncrementalGroup(t,e)}async _renderIncrementalGroup(t,e){this.count=t.count,await new Promise(i=>{this.renderItem(t,e,{drawingCb:async()=>{if(t.count!==2)await BT(t,He.zIndex,(n,r)=>{if(this.status===Dl.STOP)return!0;if(n.isContainer||r{this.global.getRequestAnimationFrame()(()=>{t(!1)})})}async checkForDraw(t){let e=this.rendering;return t.restartIncremental&&(e=!1,await this.forceStop(),this.resetToInit()),e}async forceStop(){this.rendering&&(this.status=Dl.STOP,await new Promise(t=>{this.hooks.completeDraw.tap("stopCb",()=>{this.status=Dl.NORMAL,this.hooks.completeDraw.taps=this.hooks.completeDraw.taps.filter(e=>e.name!=="stopCb"),t(!1)})}))}resetToInit(){this.currFrameStartAt=0,this.currentIdx=0}async renderGroup(t,e){if(!e.break&&t.attribute.visibleAll!==!1)return t.incremental&&e.startAtId===t._uid?(await this._increaseRender(t,e),void(e.break=!0)):void await new Promise(i=>{this.renderItem(t,e,{drawingCb:async()=>{await BT(t,He.zIndex,async n=>{e.break||n.isContainer&&await this.renderGroup(n,e)}),i(!1)}})})}};Tb=eN([gt(),Kh(0,qR(mi)),Kh(1,Bt(_f)),Kh(2,Bt(mf)),Kh(3,Bt(ii)),Kh(3,fi(of)),iN("design:paramtypes",[Array,Object,Object,Object])],Tb);const nN=new Ct(s=>{s(Fu).toSelf().inSingletonScope(),s(RS).toSelf().inSingletonScope(),s(BS).to(ff),s(sI).to(Tb),s(wT).to(kb).inSingletonScope(),s(mi).toService(wT),Bi(s,NB),s(ls).toSelf().inSingletonScope(),Bi(s,TS),Bi(s,mi),s(lf).toSelf().inSingletonScope(),s(of).toService(lf),Bi(s,of)});function sN(s){s.load(nN)}function vf(){vf.__loaded||(vf.__loaded=!0,wt.load(F5),wt.load(LG),wt.load(BG),wt.load(IG),wt.load(FG),YG(wt),sN(wt))}vf.__loaded=!1,vf();const Ot=wt.get(lS);q.global=Ot;const rN=wt.get(HB);q.graphicUtil=rN;const aN=wt.get(zB);q.transformUtil=aN;const oN=wt.get(OB);q.graphicService=oN;const lN=wt.get(xS);q.layerService=lN;class hN{constructor(){S(this,"name","AutoRenderPlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"_uid",Ze.GenAutoIncrementId());S(this,"key",this.name+this._uid)}activate(t){this.pluginService=t,q.graphicService.hooks.onAttributeUpdate.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&e.stage.renderNextFrame()}),q.graphicService.hooks.onSetStage.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&e.stage.renderNextFrame()})}deactivate(t){q.graphicService.hooks.onAttributeUpdate.taps=q.graphicService.hooks.onAttributeUpdate.taps.filter(e=>e.name!==this.key),q.graphicService.hooks.onSetStage.taps=q.graphicService.hooks.onSetStage.taps.filter(e=>e.name!==this.key)}}class dN{constructor(){S(this,"name","ViewTransform3dPlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"_uid",Ze.GenAutoIncrementId());S(this,"key",this.name+this._uid);S(this,"mousedown");S(this,"pageX");S(this,"pageY");S(this,"option3d");S(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)});S(this,"onMouseUp",t=>{this.option3d||(this.option3d=this.pluginService.stage.option3d),this.option3d&&(this.mousedown=!1)});S(this,"onMouseMove",t=>{const e=this.pluginService.stage;if(this.option3d||(this.option3d=e.option3d),this.option3d&&this.mousedown)if(this.pageX&&this.pageY){const i=t.page.x-this.pageX,n=t.page.y-this.pageY;this.pageX=t.page.x,this.pageY=t.page.y;const r=i/100,a=n/100;this.option3d.alpha=(this.option3d.alpha??0)+r,this.option3d.beta=(this.option3d.beta??0)+a,e.set3dOptions(this.option3d),e.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)}}class cN{constructor(){S(this,"name","IncrementalAutoRenderPlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"nextFrameRenderGroupSet",new Set);S(this,"willNextFrameRender",!1);S(this,"nextUserParams",{});S(this,"_uid",Ze.GenAutoIncrementId());S(this,"key",this.name+this._uid)}activate(t){this.pluginService=t,q.graphicService.hooks.onAddIncremental.tap(this.key,(e,i,n)=>{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 n=e.layer.subLayers.get(e._uid);n&&n.drawContribution&&n.drawContribution.draw(t.renderService,{stage:t,layer:i,viewBox:t.window.getViewBox(),transMatrix:t.window.getViewBoxTransform(),clear:"transparent",renderService:t.renderService,updateBounds:!1,startAtId:e._uid,context:n.layer.getNativeHandler().getContext(),...this.nextUserParams})}),this.nextUserParams={},this.nextFrameRenderGroupSet.clear())}}class lI{constructor(){S(this,"name","HtmlAttributePlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"_uid",Ze.GenAutoIncrementId());S(this,"key",this.name+this._uid);S(this,"htmlMap",{});S(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 n;return n=e?typeof e=="string"?q.global.getElementById(e):e:t.window.getContainer(),{wrapContainer:q.global.createDom({tagName:"div",parent:n,...i}),nativeContainer:n}}parseDefaultStyleFromGraphic(t){const e=t.type==="text"&&t.attribute?t.attribute:it(t).text;return G5(e)}getTransformOfText(t){const e=it(t).text,{textAlign:i=e.textAlign,textBaseline:n=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[n]}) rotate(${a}deg) scaleX(${o}) scaleY(${l})`,transformOrigin:`${d[i]} ${d[n]}`}}updateStyleOfWrapContainer(t,e,i,n,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",n.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 _=t.globalTransMatrix;l=_.e,h=_.f}else{const _=XE(d,c);l=_.x,h=_.y}const u=q.global.getElementTopLeft(n,!1),p=e.window.getTopLeft(!1),g=l+p.left-u.left,f=h+p.top-u.top;if(o.left=`${g}px`,o.top=`${f}px`,t.type==="text"&&c==="position"&&(o={...o,...this.getTransformOfText(t)}),N(r.style)){const _=r.style({top:f,left:g,width:d.width(),height:d.height()},t,i);_&&(o={...o,..._})}else Et(r.style)?o={...o,...r.style}:at(r.style)&&r.style&&(o={...o,...D3(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)=>(e.attribute.zIndex??He.zIndex)-(i.attribute.zIndex??He.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){const{html:e}=t.attribute;if(!e)return;const i=t.stage;if(!i)return;const{dom:n,container:r}=e;if(!n)return;const a=P(e.id)?`${t.id??t._uid}_react`:e.id;if(this.htmlMap&&this.htmlMap[a]&&r&&r!==this.htmlMap[a].container&&this.removeElement(a),this.htmlMap&&this.htmlMap[a])typeof n=="string"?this.htmlMap[a].wrapContainer.innerHTML=n:n!==this.htmlMap[a].wrapContainer.firstChild&&(this.htmlMap[a].wrapContainer.removeChild(this.htmlMap[a].wrapContainer.firstChild),this.htmlMap[a].wrapContainer.appendChild(n));else{const{wrapContainer:h,nativeContainer:d}=this.getWrapContainer(i,r);h&&(typeof n=="string"?h.innerHTML=n:h.appendChild(n),this.htmlMap||(this.htmlMap={}),this.htmlMap[a]={wrapContainer:h,nativeContainer:d,container:r,renderId:this.renderId})}if(!this.htmlMap||!this.htmlMap[a])return;const{wrapContainer:o,nativeContainer:l}=this.htmlMap[a];this.updateStyleOfWrapContainer(t,i,o,l,e),this.htmlMap[a].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 LT=new xe;class uN{constructor(){S(this,"name","DirtyBoundsPlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"_uid",Ze.GenAutoIncrementId());S(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,n,r)=>{e.glyphHost&&(e=e.glyphHost),i&&i===this.pluginService.stage&&i.renderCount&&(e.isContainer&&!e.shouldSelfChangeUpdateAABBBounds()||n&&(LT.setValue(r.x1,r.y1,r.x2,r.y2),i.dirty(LT,e.parent&&e.parent.globalTransMatrix)))}),q.graphicService.hooks.afterUpdateAABBBounds.tap(this.key,(e,i,n,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 OT=new xe;class pN{constructor(){S(this,"name","FlexLayoutPlugin");S(this,"activeEvent","onRegister");S(this,"pluginService");S(this,"id",Ze.GenAutoIncrementId());S(this,"key",this.name+this.id);S(this,"tempBounds",new xe);S(this,"pause");S(this,"skipBoundsTrigger")}pauseLayout(t){this.pause=t}tryLayoutChildren(t){t.firstChild&&this.tryLayout(t.firstChild)}tryLayout(t,e=!0){if(this.pause)return;const i=t.parent;if(!(e||i&&t.needUpdateLayout()))return;const n=it(i).group,{display:r=n.display}=i.attribute;if(r!=="flex")return;const{flexDirection:a=n.flexDirection,flexWrap:o=n.flexWrap,alignItems:l=n.alignItems,clip:h=n.clip}=i.attribute,{alignContent:d=l??n.alignContent}=i.attribute;let{width:c,height:u,justifyContent:p=n.justifyContent}=i.attribute;const g=i.getChildren();if(c==null||u==null){let k=0,M=0,w=0;if(g.forEach(C=>{const R=this.getAABBBounds(C);R.empty()||(a==="column"||a==="column-reverse"?(M+=R.height(),k=Math.max(k,R.width())):(k+=R.width(),M=Math.max(M,R.height())),w+=R.x1,w+=R.y1,w+=R.x2,w+=R.y2)}),!isFinite(w))return;c=k,u=M}i.attribute.width==null?i.attribute.width=c:c=i.attribute.width,i.attribute.height==null?i.attribute.height=u:u=i.attribute.height,this.tempBounds.copy(i._AABBBounds);const f={main:{len:c,field:"x"},cross:{len:u,field:"y"}},_=f.main,m=f.cross;a!=="column"&&a!=="column-reverse"||(_.len=u,m.len=c,_.field="y",m.field="x"),a!=="row-reverse"&&a!=="column-reverse"||(p==="flex-start"?p="flex-end":p==="flex-end"?p="flex-start":g.reverse());let y=0,v=0;const b=[];g.forEach(k=>{const M=this.getAABBBounds(k);if(M.empty())return;const w=_.field==="x"?M.width():M.height(),C=m.field==="x"?M.width():M.height();b.push({mainLen:w,crossLen:C}),y+=w,v=Math.max(v,C)});const x=[];if(y>_.len&&o==="wrap"){let k=0,M=0;b.forEach(({mainLen:w,crossLen:C},R)=>{k+w>_.len?k===0?(x.push({idx:R,mainLen:k+w,crossLen:C}),k=0,M=0):(x.push({idx:R-1,mainLen:k,crossLen:M}),k=w,M=C):(k+=w,M=Math.max(M,C))}),x.push({idx:b.length-1,mainLen:k,crossLen:M})}else x.push({idx:b.length-1,mainLen:y,crossLen:v});let A=0;if(x.forEach(k=>{this.layoutMain(i,g,p,_,b,A,k),A=k.idx+1}),v=x.reduce((k,M)=>k+M.crossLen,0),x.length===1){const k={"flex-start":0,"flex-end":m.len,center:m.len/2};this.layoutCross(g,l,m,k,b,x[0],0)}else if(d==="flex-start"){A=0;let k=0;x.forEach((M,w)=>{const C={"flex-start":k,"flex-end":k+M.crossLen,center:k+M.crossLen/2};this.layoutCross(g,"flex-start",m,C,b,x[w],A),A=M.idx+1,k+=M.crossLen})}else if(d==="center"){A=0;let k=Math.max(0,(m.len-v)/2);x.forEach((M,w)=>{const C={"flex-start":k,"flex-end":k+M.crossLen,center:k+M.crossLen/2};this.layoutCross(g,"center",m,C,b,x[w],A),A=M.idx+1,k+=M.crossLen})}else if(d==="space-around"){A=0;const k=Math.max(0,(m.len-v)/x.length/2);let M=k;x.forEach((w,C)=>{const R={"flex-start":M,"flex-end":M+w.crossLen,center:M+w.crossLen/2};this.layoutCross(g,"flex-start",m,R,b,x[C],A),A=w.idx+1,M+=w.crossLen+2*k})}else if(d==="space-between"){A=0;const k=Math.max(0,(m.len-v)/(2*x.length-2));let M=0;x.forEach((w,C)=>{const R={"flex-start":M,"flex-end":M+w.crossLen,center:M+w.crossLen/2};this.layoutCross(g,"flex-start",m,R,b,x[C],A),A=w.idx+1,M+=w.crossLen+2*k})}g.forEach((k,M)=>{k.addUpdateBoundTag(),k.addUpdatePositionTag(),k.clearUpdateLayoutTag()}),i.addUpdateLayoutTag();const T=this.getAABBBounds(i);h||this.tempBounds.equals(T)||this.tryLayout(i,!1)}getAABBBounds(t){this.skipBoundsTrigger=!0;const e=t.AABBBounds;return this.skipBoundsTrigger=!1,e}updateChildPos(t,e,i){return t+(e??0)-i}layoutMain(t,e,i,n,r,a,o){if(i==="flex-start"){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Vs(e[h],n.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[n.field]=this.updateChildPos(d,e[h].attribute[n.field],c[`${n.field}1`])),l+=r[h].mainLen}}else if(i==="flex-end"){let l=n.len;for(let h=o.idx;h>=a;h--){l-=r[h].mainLen;const d=l+Vs(e[h],n.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[n.field]=this.updateChildPos(d,e[h].attribute[n.field],c[`${n.field}1`]))}}else if(i==="space-around")if(o.mainLen>=n.len){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Vs(e[h],n.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[n.field]=this.updateChildPos(d,e[h].attribute[n.field],c[`${n.field}1`])),l+=r[h].mainLen}}else{const l=o.idx-a+1,h=(n.len-o.mainLen)/l/2;let d=h;for(let c=a;c<=o.idx;c++){const u=d+Vs(e[c],n.field),p=this.getAABBBounds(e[c]);!p.empty()&&(e[c].attribute[n.field]=this.updateChildPos(u,e[c].attribute[n.field],p[`${n.field}1`])),d+=r[c].mainLen+2*h}}else if(i==="space-between")if(o.mainLen>=n.len){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Vs(e[h],n.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[n.field]=this.updateChildPos(d,e[h].attribute[n.field],c[`${n.field}1`])),l+=r[h].mainLen}}else{const l=o.idx-a+1,h=(n.len-o.mainLen)/(2*l-2);let d=0;for(let c=a;c<=o.idx;c++){const u=d+Vs(e[c],n.field),p=this.getAABBBounds(e[c]);!p.empty()&&(e[c].attribute[n.field]=this.updateChildPos(u,e[c].attribute[n.field],p[`${n.field}1`])),d+=r[c].mainLen+2*h}}else if(i==="center"){let l=(n.len-o.mainLen)/2;for(let h=a;h<=o.idx;h++){const d=l+Vs(e[h],n.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[n.field]=this.updateChildPos(d,e[h].attribute[n.field],c[`${n.field}1`])),l+=r[h].mainLen}}}layoutCross(t,e,i,n,r,a,o){for(let l=o;l<=a.idx;l++){const h=t[l];let{alignSelf:d}=h.attribute;d&&d!=="auto"||(d=e);const c=this.getAABBBounds(h),u=n[d]??n["flex-start"];d==="flex-end"?!c.empty()&&(h.attribute[i.field]=this.updateChildPos(u-r[l].crossLen+Vs(h,i.field),h.attribute[i.field],c[`${i.field}1`])):d==="center"?!c.empty()&&(h.attribute[i.field]=this.updateChildPos(u-r[l].crossLen/2+Vs(h,i.field),h.attribute[i.field],c[`${i.field}1`])):!c.empty()&&(h.attribute[i.field]=this.updateChildPos(u+Vs(h,i.field),h.attribute[i.field],c[`${i.field}1`]))}}activate(t){this.pluginService=t,q.graphicService.hooks.onAttributeUpdate.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage&&e.stage===this.pluginService.stage&&this.tryLayout(e,!1)}),q.graphicService.hooks.beforeUpdateAABBBounds.tap(this.key,(e,i,n,r)=>{e.glyphHost&&(e=e.glyphHost),i&&i===this.pluginService.stage&&e.isContainer&&!this.skipBoundsTrigger&&OT.copy(r)}),q.graphicService.hooks.afterUpdateAABBBounds.tap(this.key,(e,i,n,r,a)=>{i&&i===this.pluginService.stage&&e.isContainer&&!this.skipBoundsTrigger&&(OT.equals(n)||this.tryLayout(e,!1))}),q.graphicService.hooks.onSetStage.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),this.tryLayout(e,!1)})}deactivate(t){q.graphicService.hooks.onAttributeUpdate.taps=q.graphicService.hooks.onAttributeUpdate.taps.filter(e=>e.name!==this.key),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),q.graphicService.hooks.onSetStage.taps=q.graphicService.hooks.onSetStage.taps.filter(e=>e.name!==this.key)}}function Vs(s,t){return 0}const LS=new Fj;LS.addTimeline(vB);LS.setFPS(60);class gN{constructor(t,e,i=.8){this.dir=t,this.color=e,this.colorRgb=Yn.Get(e,tn.Color1),this.ambient=i;const n=un(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);this.formatedDir=[t[0]/n,t[1]/n,t[2]/n]}computeColor(t,e){const i=this.formatedDir,n=xi(dn((t[0]*i[0]+t[1]*i[1]+t[2]*i[2])*(1-this.ambient/2),0)+this.ambient,1);let r;r=at(e)?Yn.Get(e,tn.Color1):e;const a=this.colorRgb;return`rgb(${a[0]*r[0]*n}, ${a[1]*r[1]*n}, ${a[2]*r[2]*n})`}}function fN(s,t,e,i){let n,r,a,o,l,h,d,c,u,p;const g=t[0],f=t[1],_=t[2],m=i[0],y=i[1],v=i[2],b=e[0],x=e[1],A=e[2];return Math.abs(g-b){i.unmount()}),n&&q.global.removeDom(n),this.htmlMap[e]=null}renderGraphicHTML(e){const{react:i}=e.attribute;if(!i)return;const n=e.stage;if(!n)return;const r=n.params.ReactDOM,{element:a,container:o}=i;if(!(a&&r&&r.createRoot))return;const l=P(i.id)?`${e.id??e._uid}_react`:i.id;if(this.htmlMap&&this.htmlMap[l]&&o&&o!==this.htmlMap[l].container&&this.removeElement(l),this.htmlMap&&this.htmlMap[l])this.htmlMap[l].root.render(a);else{const{wrapContainer:c,nativeContainer:u}=this.getWrapContainer(n,o);if(c){const p=r.createRoot(c);p.render(a),this.htmlMap||(this.htmlMap={}),this.htmlMap[l]={root:p,wrapContainer:c,nativeContainer:u,container:o,renderId:this.renderId}}}if(!this.htmlMap||!this.htmlMap[l])return;const{wrapContainer:h,nativeContainer:d}=this.htmlMap[l];this.updateStyleOfWrapContainer(e,n,h,d,i),this.htmlMap[l].renderId=this.renderId}}const FT={WIDTH:500,HEIGHT:500,X:0,Y:0,BACKGROUND:"white"};class bN extends Ou{constructor(e={}){super({});S(this,"_background");S(this,"nextFrameRenderLayerSet");S(this,"willNextFrameRender");S(this,"_cursor");S(this,"renderCount");S(this,"dirtyBounds");S(this,"option3d");S(this,"ticker");S(this,"autoRender");S(this,"_enableLayout");S(this,"htmlAttribute");S(this,"reactAttribute");S(this,"increaseAutoRender");S(this,"view3dTranform");S(this,"window");S(this,"global");S(this,"renderService");S(this,"pickerService");S(this,"pluginService");S(this,"layerService");S(this,"_eventSystem");S(this,"_beforeRender");S(this,"_afterRender");S(this,"_skipRender");S(this,"_afterNextRenderCbs");S(this,"lastRenderparams");S(this,"interactiveLayer");S(this,"supportInteractiveLayer");S(this,"timeline");S(this,"_onVisibleChange",e=>{if(!(this._skipRender<0))if(e){if(this.dirtyBounds){const i=this.window.getViewBox();this.dirtyBounds.setValue(i.x1,i.y1,i.width(),i.height())}this._skipRender>1&&this.renderNextFrame(),this._skipRender=0}else this._skipRender=1});S(this,"beforeRender",e=>{this._beforeRender&&this._beforeRender(e)});S(this,"afterRender",e=>{this.renderCount++,this._afterRender&&this._afterRender(e),this._afterNextRenderCbs&&this._afterNextRenderCbs.forEach(i=>i(e)),this._afterNextRenderCbs=null});this.params=e,this.theme=new Lc,this.hooks={beforeRender:new jn(["stage"]),afterRender:new jn(["stage"])},this.global=q.global,!this.global.env&&OS()&&this.global.setEnv("browser"),this.window=wt.get(Bg),this.renderService=wt.get(rI),this.pluginService=wt.get(aI),this.layerService=wt.get(xS),this.pluginService.active(this,e),this.window.create({width:e.width,height:e.height,viewBox:e.viewBox,container:e.container,dpr:e.dpr||this.global.devicePixelRatio,canvasControled:e.canvasControled!==!1,title:e.title||"",canvas:e.canvas}),this.state="normal",this.renderCount=0,this.tryInitEventSystem(),this._background=e.background??FT.BACKGROUND,this.appendChild(this.layerService.createLayer(this,{main:!0})),this.nextFrameRenderLayerSet=new Set,this.willNextFrameRender=!1,this.stage=this,this.renderStyle=e.renderStyle,e.autoRender&&this.enableAutoRender(),e.disableDirtyBounds===!1&&this.enableDirtyBounds(),e.enableHtmlAttribute&&this.enableHtmlAttribute(e.enableHtmlAttribute),e.ReactDOM&&this.enableReactAttribute(e.ReactDOM),e.enableLayout&&this.enableLayout(),this.hooks.beforeRender.tap("constructor",this.beforeRender),this.hooks.afterRender.tap("constructor",this.afterRender),this._beforeRender=e.beforeRender,this._afterRender=e.afterRender,this.ticker=e.ticker||LS,this.supportInteractiveLayer=e.interactiveLayer!==!1,this.timeline=new mB,this.ticker.addTimeline(this.timeline),this.timeline.pause(),e.optimize||(e.optimize={}),this.optmize(e.optimize),e.background&&at(this._background)&&this._background.includes("/")&&this.setAttributes({background:this._background})}set viewBox(e){this.window.setViewBox(e)}get viewBox(){return this.window.getViewBox()}get x(){return this.window.getViewBox().x1}set x(e){const i=this.window.getViewBox();i.translate(e-i.x1,0),this.window.setViewBox(i)}get y(){return this.window.getViewBox().y1}set y(e){const i=this.window.getViewBox();i.translate(0,e-i.y1),this.window.setViewBox(i)}get width(){return this.window.width}set width(e){this.resize(e,this.height)}get viewWidth(){return this.window.getViewBox().width()}set viewWidth(e){this.resizeView(e,this.viewHeight)}get viewHeight(){return this.window.getViewBox().height()}set viewHeight(e){this.resizeView(this.viewWidth,e)}get height(){return this.window.height}set height(e){this.resize(this.width,e)}get dpr(){return this.window.dpr}set dpr(e){this.setDpr(e)}get background(){return this._background??FT.BACKGROUND}set background(e){this._background=e}get defaultLayer(){return this.at(0)}get eventSystem(){return this._eventSystem}pauseRender(){this._skipRender=-1}resumeRender(){this._skipRender=0}tryInitEventSystem(){this.global.supportEvent&&!this._eventSystem&&(this._eventSystem=new Dj({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(e){e?this._skipRender=-1/0:this.params.optimize.skipRenderWithOutRange!==!1?this._skipRender=this.window.isVisible()?0:1:this._skipRender=0}optmize(e){this.optmizeRender(e.skipRenderWithOutRange),this.params.optimize=e}optmizeRender(e=!1){e&&(this._skipRender=this._skipRender<0?this._skipRender:this.window.isVisible()?0:1,this.window.onVisibleChange(this._onVisibleChange))}getTimeline(){return this.timeline}get3dOptions(e){const{center:i={x:this.width/2,y:this.height/2,z:0,dx:0,dy:0,dz:0},light:n={},alpha:r=0,beta:a=0,camera:o,fieldRatio:l=1,fieldDepth:h}=e;return{...e,center:i,light:n,alpha:r,beta:a,camera:o,fieldRatio:l,fieldDepth:h}}set3dOptions(e){this.option3d=e;const i=this.get3dOptions(e),{light:n,center:r,camera:a,alpha:o,beta:l,fieldRatio:h,fieldDepth:d}=i,{dir:c=[1,1,-1],color:u="white",ambient:p}=n,g=(r.x??this.width/2)+(r.dx??0),f=(r.y??this.height/2)+(r.dy??0),_=[g,f,(r.z??0)+(r.dz??0)];let m=0,y=0,v=0;a||(m=Math.sin(o)+g,y=Math.sin(l)+f,v=Math.cos(o)*Math.cos(l)*1),this.light=new gN(c,u,p);const b={left:0,right:this.width,top:0,bottom:this.height,fieldRatio:h,fieldDepth:d,viewParams:{pos:[m,y,v],center:_,up:[0,1,0]}};this.camera?this.camera.params=b:this.camera=new mN(b),e.enableView3dTransform&&this.enableView3dTransform()}setBeforeRender(e){this._beforeRender=e}setAfterRender(e){this._afterRender=e}afterNextRender(e){this._afterNextRenderCbs||(this._afterNextRenderCbs=[]),this._afterNextRenderCbs.push(e)}enableView3dTransform(){this.view3dTranform||(this.view3dTranform=!0,this.pluginService.register(new dN))}disableView3dTranform(){this.view3dTranform&&(this.view3dTranform=!1,this.pluginService.findPluginsByName("ViewTransform3dPlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableAutoRender(){this.autoRender||(this.autoRender=!0,this.pluginService.register(new hN))}disableAutoRender(){this.autoRender&&(this.autoRender=!1,this.pluginService.findPluginsByName("AutoRenderPlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableIncrementalAutoRender(){this.increaseAutoRender||(this.increaseAutoRender=!0,this.pluginService.register(new cN))}disableIncrementalAutoRender(){this.increaseAutoRender&&(this.increaseAutoRender=!1,this.pluginService.findPluginsByName("IncrementalAutoRenderPlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableDirtyBounds(){if(this.dirtyBounds)return;this.dirtyBounds=new di;let e=this.pluginService.findPluginsByName("DirtyBoundsPlugin")[0];e?e.activate(this.pluginService):(e=new uN,this.pluginService.register(e))}disableDirtyBounds(){this.dirtyBounds&&(this.dirtyBounds=null,this.pluginService.findPluginsByName("DirtyBoundsPlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableLayout(){this._enableLayout||(this._enableLayout=!0,this.pluginService.register(new pN))}disableLayout(){this._enableLayout&&(this._enableLayout=!1,this.pluginService.findPluginsByName("FlexLayoutPlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableHtmlAttribute(e){this.htmlAttribute||(this.htmlAttribute=e,this.pluginService.register(new lI))}disableHtmlAttribute(){this.htmlAttribute&&(this.htmlAttribute=!1,this.pluginService.findPluginsByName("HtmlAttributePlugin").forEach(e=>{this.pluginService.unRegister(e)}))}enableReactAttribute(e){this.reactAttribute||(this.reactAttribute=e,this.pluginService.register(new yN))}disableReactAttribute(){this.reactAttribute&&(this.reactAttribute=!1,this.pluginService.findPluginsByName("ReactAttributePlugin").forEach(e=>{this.pluginService.unRegister(e)}))}getPluginsByName(e){return this.pluginService.findPluginsByName(e)}tryUpdateAABBBounds(){const e=this.window.getViewBox();return this._AABBBounds.setValue(e.x1,e.y1,e.x2,e.y2),this._AABBBounds}combineLayer(e,i){throw new Error("暂不支持")}createLayer(e,i){const n=this.layerService.createLayer(this,{main:!1,layerMode:i,canvasId:e});return this.appendChild(n),n}sortLayer(e){const i=this.children;i.sort(e),this.removeAllChild(),i.forEach(n=>{this.appendChild(n)})}removeLayer(e){return this.removeChild(this.findChildByUid(e))}tryInitInteractiveLayer(){this.supportInteractiveLayer&&!this.interactiveLayer&&(this.interactiveLayer=this.createLayer(),this.interactiveLayer.name="_builtin_interactive",this.interactiveLayer.attribute.pickable=!1,this.nextFrameRenderLayerSet.add(this.interactiveLayer))}clearViewBox(e){this.window.clearViewBox(e)}render(e,i){this.ticker.start(),this.timeline.resume();const n=this.state;this.state="rendering",this.layerService.prepareStageLayer(this),this._skipRender||(this.lastRenderparams=i,this.hooks.beforeRender.call(this),this._skipRender||(this.renderLayerList(this.children),this.combineLayersToWindow(),this.nextFrameRenderLayerSet.clear()),this.hooks.afterRender.call(this)),this.state=n,this._skipRender&&this._skipRender++}combineLayersToWindow(){if(this.global.env==="harmony"){const e=this.window.getContext().nativeContext;this.forEachChildren((i,n)=>{if(n>0){const r=i.getNativeHandler().getContext().canvas.nativeCanvas.nativeCanvas._c.transferToImageBitmap();e.transferFromImageBitmap(r)}})}}renderNextFrame(e,i){this.nextFrameRenderLayerSet.size!==this.childrenCount&&(e||this).forEach(n=>{this.nextFrameRenderLayerSet.add(n)}),this.willNextFrameRender||(this.willNextFrameRender=!0,this.global.getRequestAnimationFrame()(()=>{this._doRenderInThisFrame(),this.willNextFrameRender=!1}))}_doRenderInThisFrame(){this.timeline.resume(),this.ticker.start();const e=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=e,this._skipRender&&this._skipRender++}renderLayerList(e,i){const n=[];for(let r=0;r{r.renderCount>this.renderCount||(r.renderCount=this.renderCount+1,r.render({renderService:this.renderService,background:r===this.defaultLayer?this.background:void 0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},{renderStyle:this.renderStyle,...i}))}),this.interactiveLayer&&!e.includes(this.interactiveLayer)&&this.interactiveLayer.render({renderService:this.renderService,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},{renderStyle:this.renderStyle,...i})}resizeWindow(e,i,n=!0){this.window.resize(e,i),n&&this.render()}resize(e,i,n=!0){this.window.hasSubView()||this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+e,this.viewBox.y1+i),this.window.resize(e,i),this.forEachChildren(r=>{r.resize(e,i)}),this.camera&&this.option3d&&this.set3dOptions(this.option3d),n&&this.render()}resizeView(e,i,n=!0){this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+e,this.viewBox.y1+i),this.forEachChildren(r=>{r.resizeView(e,i)}),this.camera&&(this.camera.params={...this.camera.params,right:this.width,bottom:this.height}),n&&this.render()}setViewBox(e,i,n,r,a){let o=!0;typeof e=="object"?(this.viewBox.setValue(e.x1,e.y1,e.x2,e.y2),i===!1&&(o=!1)):(this.viewBox.setValue(e,i,e+n,i+r),a===!1&&(o=!1)),this.forEachChildren(l=>{l.resizeView(this.viewBox.width(),this.viewBox.height())}),o&&this.render()}setDpr(e,i=!0){this.forEachChildren(n=>{n.setDpr(e)}),i&&this.render()}setOrigin(e,i){throw new Error("暂不支持")}export(e){throw new Error("暂不支持")}pick(e,i){this.pickerService||(this.pickerService=wt.get(ql));const n=this.pickerService.pick(this.children,new Oe(e,i),{bounds:this.AABBBounds});return!(!(n!=null&&n.graphic)&&!(n!=null&&n.group))&&n}startAnimate(e){throw new Error("暂不支持")}setToFrame(e){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(e=>{e.release()}),this.interactiveLayer&&this.interactiveLayer.release(),this.window.release(),this.ticker.remTimeline(this.timeline),this.renderService.renderTreeRoots=[]}setStage(e){}dirty(e,i){i&&e.transformWithMatrix(i),this.dirtyBounds.empty()&&this.dirtyBounds.setValue(e.x1,e.y1,e.x2,e.y2),this.dirtyBounds.union(e)}getLayer(e){return this.children.filter(i=>i.name===e)[0]}renderTo(e){this.forEachChildren((i,n)=>{i.drawTo(e,{renderService:this.renderService,viewBox:e.getViewBox(),transMatrix:e.getViewBoxTransform(),background:i===this.defaultLayer?this.background:void 0,clear:n===0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty())})})}renderToNewWindow(e=!0,i){const n=wt.get(Bg),r=i?-i.x1:0,a=i?-i.y1:0,o=i?i.x2:this.viewWidth,l=i?i.y2:this.viewHeight,h=i?i.width():this.viewWidth,d=i?i.height():this.viewHeight;return n.create({viewBox:{x1:r,y1:a,x2:o,y2:l},width:h,height:d,dpr:this.window.dpr,canvasControled:!0,offscreen:!0,title:""}),this.renderTo(n),n}toCanvas(e=!0,i){const n=this.renderToNewWindow(e,i).getNativeHandler();return n.nativeCanvas?n.nativeCanvas:null}setCursor(e){this._cursor=e,this.eventSystem.setCursor(e,"ignore")}getCursor(){return this._cursor}eventPointTransform(e){const i=this.global.mapToCanvasPoint(e,this.window.getContext().canvas.nativeCanvas);return this.stage.window.pointTransform(i.x,i.y)}pauseTriggerEvent(){this._eventSystem&&this._eventSystem.pauseTriggerEvent()}resumeTriggerEvent(){this._eventSystem&&this._eventSystem.resumeTriggerEvent()}}function xN(s){return new bN(s)}var SN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},AN=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};const lv={WIDTH:500,HEIGHT:500,DPR:1};var Jv;let yf=(Jv=class{constructor(s){S(this,"_displayWidth");S(this,"_displayHeight");S(this,"_id");S(this,"_pixelWidth");S(this,"_pixelHeight");S(this,"_x");S(this,"_y");S(this,"_dpr");S(this,"_container");S(this,"_nativeCanvas");S(this,"_context");S(this,"_visiable");S(this,"controled");const{nativeCanvas:t,width:e=lv.WIDTH,height:i=lv.HEIGHT,dpr:n=lv.DPR,x:r,y:a,id:o,canvasControled:l=!0}=s;this._x=r??0,this._y=a??0,this._pixelWidth=e*n,this._pixelHeight=i*n,this._visiable=s.visiable!==!1,this.controled=l,this._displayWidth=e,this._displayHeight=i,this._dpr=n,this._nativeCanvas=t,this._id=t.id??o,o&&(t.id=o),this.init(s)}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(s){this._x=s}get y(){return this._y}set y(s){this._y=s}get nativeCanvas(){return this._nativeCanvas}get width(){return this._pixelWidth}set width(s){this._pixelWidth=s,this._displayWidth=s/(this._dpr||1)}get height(){return this._pixelHeight}set height(s){this._pixelHeight=s,this._displayHeight=s/(this._dpr||1)}getContext(s){return this._context}get visiable(){return this._visiable}set visiable(s){this._visiable=s,s?this.show():this.hide()}get dpr(){return this._dpr}set dpr(s){this._dpr=s,this.resize(this._displayWidth,this._displayHeight)}getNativeCanvas(){return this._nativeCanvas}hide(){}show(){}applyPosition(){}resetStyle(s){}resize(s,t){}toDataURL(s,t){return""}readPixels(s,t,e,i){return this._context.getImageData(s,t,e,i)}convertToBlob(s){throw new Error("暂未实现")}transferToImageBitmap(){throw new Error("暂未实现")}release(...s){this.controled&&this._nativeCanvas.parentElement&&this._nativeCanvas.parentElement.removeChild(this._nativeCanvas)}},S(Jv,"env","browser"),Jv);yf=SN([gt(),AN("design:paramtypes",[Object])],yf);var kN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let bf=class{constructor(){S(this,"type");S(this,"supportsTouchEvents");S(this,"supportsPointerEvents");S(this,"supportsMouseEvents");S(this,"applyStyles");S(this,"supportEvent")}configure(s,...t){s.env===this.type&&s.setActiveEnvContribution(this)}getNativeAABBBounds(s){return new xe}removeDom(s){return!1}createDom(s){return null}updateDom(s,t){return!1}getDynamicCanvasCount(){return 999}getStaticCanvasCount(){return 999}getElementById(s){return document.getElementById(s)}getRootElement(){return document.body}loadJson(s){const t=fetch(s).then(e=>e.json());return t.then(e=>({data:e,state:"success"})).catch(()=>({data:null,state:"fail"})),t}loadArrayBuffer(s){return fetch(s).then(t=>t.arrayBuffer()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadBlob(s){return fetch(s).then(t=>t.blob()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}getElementTop(s,t){return 0}getElementLeft(s,t){return 0}getElementTopLeft(s,t){return{top:0,left:0}}};bf=kN([gt()],bf);var TN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},MN=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};let xf=class{constructor(){S(this,"viewBox");S(this,"modelMatrix");this._uid=Ze.GenAutoIncrementId(),this.viewBox=new xe,this.modelMatrix=new Ee(1,0,0,1,0,0)}onChange(s){this._onChangeCb=s}configure(s,t){t.env===this.type&&s.setWindowHandler(this)}release(...s){this.releaseWindow()}isVisible(s){return!0}onVisibleChange(s){}getTopLeft(s){return{top:0,left:0}}setViewBox(s){this.viewBox.setValue(s.x1,s.y1,s.x2,s.y2)}getViewBox(){return this.viewBox}setViewBoxTransform(s,t,e,i,n,r){this.modelMatrix.setValue(s,t,e,i,n,r)}getViewBoxTransform(){return this.modelMatrix}};xf=TN([gt(),MN("design:paramtypes",[])],xf);var wN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},CN=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},zT=function(s,t){return function(e,i){t(e,i,s)}};let Mb=class{constructor(s){S(this,"pickItemInterceptorContributions");S(this,"type","default");this.pickItemInterceptorContributions=s,this.global=q.global}_init(){this.InterceptorContributions=this.pickItemInterceptorContributions.getContributions().sort((s,t)=>s.order-t.order)}pick(s,t,e){let i={graphic:null,group:null};e.pickerService=this;const n=e.bounds.width(),r=e.bounds.height();if(!new xe().setValue(0,0,n,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=s.length-1;l>=0&&(i=s[l].isContainer?this.pickGroup(s[l],t,a,e):this.pickItem(s[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(s,t,e){var i;return!!((i=this.pickItem(s,t,null,e??{pickContext:this.pickContext,pickerService:this}))!=null&&i.graphic)}pickGroup(s,t,e,i){let n={group:null,graphic:null};if(s.attribute.visibleAll===!1)return n;const r=i.pickContext,a=r.modelMatrix;if(r.camera){const p=s.transMatrix,g=de.allocate();if(db(g,p),a){if(g){const f=de.allocate();r.modelMatrix=Du(f,a,g),de.free(g)}}else db(g,s.globalTransMatrix),r.modelMatrix=g}if(this.InterceptorContributions.length)for(let p=0;p{if(p.isContainer){const g=new Oe(t.x,t.y),f=it(s).group,{scrollX:_=f.scrollX,scrollY:m=f.scrollY}=s.attribute;g.x-=_,g.y-=m,n=this.pickGroup(p,g,l,i)}else{const g=new Oe(t.x,t.y);l.transformPoint(g,g);const f=it(s).group,{scrollX:_=f.scrollX,scrollY:m=f.scrollY}=s.attribute;g.x-=_,g.y-=m;const y=this.pickItem(p,g,e,i);y&&y.graphic&&(n.graphic=y.graphic,n.params=y.params)}return!!n.graphic||!!n.group},!0,!!r.camera),r.modelMatrix!==a&&de.free(r.modelMatrix),r.modelMatrix=a,n.graphic||n.group||!u||s.stage.camera||(n.group=s),rs.free(l),n}selectPicker(s){return this.pickerMap.get(s.numberType)||null}};Mb=wN([gt(),zT(0,Bt(ii)),zT(0,fi(Ol)),CN("design:paramtypes",[Object])],Mb);function PN(s,t){let e,i,n=s[0].x,r=s[0].y;const a=[s[0]];for(let o=1,l=s.length;ot&&(n=s[o].x,r=s[o].y,a.push(s[o]));return s[s.length-1].x===n&&s[s.length-1].y===r||a.push(s[s.length-1]),a}function wb(s,t,e,i,n){let r=i,a=t;const o=s[t].x,l=s[t].y,h=s[e].x-o,d=s[e].y-l,c=h*h+d*d;let u,p,g,f,_;for(let m=t+1,y=e-1;mr&&(r=g,a=m);r>i&&(a-t>2&&wb(s,t,a,i,n),n.push(s[a],s[a+1]),e-a>2&&wb(s,a,e,i,n))}function EN(s,t){const e=s.length-1,i=[s[0]];return wb(s,0,e,t,i),i.push(s[e]),i}function RN(s,t,e){if(s.length<=10)return s;const i=t!==void 0?t*t:1;return s=EN(s=PN(s,i),i)}let HT=!1;const BN=new Ct(s=>{HT||(HT=!0,s(Ng).toSelf().inSingletonScope(),s(Zg).to(Ng).inSingletonScope(),s(mi).toService(Zg),s($y).toService(ls),Bi(s,$y))});let jT=!1;const IN=new Ct(s=>{jT||(jT=!0,s(Xg).toSelf().inSingletonScope(),s(sf).to(Xg).inSingletonScope(),s(mi).toService(sf),s(Gg).toSelf(),s(Wg).toSelf(),s(gd).toService(Gg),s(gd).toService(Wg),s(gd).toService(ls),Bi(s,gd))});let VT=!1;const LN=new Ct(s=>{VT||(VT=!0,s(jc).toSelf().inSingletonScope(),s(_f).toSelf().inSingletonScope(),s(tf).to(jc).inSingletonScope(),s(mi).toService(tf))});let WT=!1;const ON=new Ct(s=>{WT||(WT=!0,s(Vc).toSelf().inSingletonScope(),s(Jg).to(Vc).inSingletonScope(),s(mi).toService(Jg),s(Yy).toService(ls),Bi(s,Yy),s(mf).toSelf().inSingletonScope())});let GT=!1;const DN=new Ct(s=>{GT||(GT=!0,s(Kg).toSelf().inSingletonScope(),s(rf).to(Kg).inSingletonScope(),s(mi).toService(rf),s(Jy).toService(ls),Bi(s,Jy))});let NT=!1;const FN=new Ct(s=>{NT||(NT=!0,s(Ug).toSelf().inSingletonScope(),s(Qg).to(Ug).inSingletonScope(),s(mi).toService(Qg),s(Xy).toService(ls),Bi(s,Xy))});let UT=!1;const zN=new Ct(s=>{UT||(UT=!0,s(yb).to(gb).inSingletonScope(),s(mi).toService(yb),s(Qy).toService(ls),Bi(s,Qy))});let $T=!1;const HN=new Ct(s=>{$T||($T=!0,s(Yg).toSelf().inSingletonScope(),s(ef).to(Yg).inSingletonScope(),s(mi).toService(ef),s(qy).toService(ls),Bi(s,qy))});let YT=!1;const jN=new Ct(s=>{YT||(YT=!0,s(nf).to(fb).inSingletonScope(),s(mi).toService(nf),s(Zy).toService(ls),Bi(s,Zy))});var VN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Cb=class{constructor(){S(this,"type");S(this,"numberType",Tm)}drawShape(s,t,e,i,n,r,a,o){n.drawContribution&&s.getSubGraphic().forEach(l=>{const h=n.drawContribution.getRenderContribution(l);h&&h.drawShape&&h.drawShape(l,t,e,i,n,r,a,o)})}draw(s,t,e,i){const{context:n}=e;if(!n||(n.highPerformanceSave(),!e.drawContribution))return;const r=it(s),a=s.getSubGraphic();a.length&&a.forEach(o=>{e.drawContribution.renderItem(o,e,{theme:r})}),n.highPerformanceRestore()}};Cb=VN([gt()],Cb);let XT=!1;const WN=new Ct(s=>{XT||(XT=!0,s(af).to(Cb).inSingletonScope(),s(mi).toService(af))});var GN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},NN=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};let Pb=class extends vn{constructor(){super();S(this,"type");S(this,"numberType",yS);this.builtinContributions=[iI],this.init()}drawShape(t,e,i,n,r){const a=it(t).richtext,{strokeOpacity:o=a.strokeOpacity,opacity:l=a.opacity,fillOpacity:h=a.fillOpacity,visible:d=a.visible}=t.attribute;if(!t.valid||!d)return;const c=zo(l,h,!0),u=zo(l,o,!0);c&&(e.translate(i,n),this.beforeRenderStep(t,e,i,n,c,u,c,u,a,r),t.getFrameCache().draw(e,this.drawIcon),this.afterRenderStep(t,e,i,n,c,u,c,u,a,r))}drawIcon(t,e,i,n,r){var b;const a=it(t).richtextIcon,{width:o=a.width,height:l=a.height,opacity:h=a.opacity,image:d,backgroundFill:c=a.backgroundFill,backgroundFillOpacity:u=a.backgroundFillOpacity,backgroundStroke:p=a.backgroundStroke,backgroundStrokeOpacity:g=a.backgroundStrokeOpacity,backgroundRadius:f=a.backgroundRadius,margin:_}=t.attribute,{backgroundWidth:m=o,backgroundHeight:y=l}=t.attribute;if(_&&(i+=t._marginArray[3],n+=t._marginArray[0]),t._hovered){const x=(m-o)/2,A=(y-l)/2;f===0?(e.beginPath(),e.rect(i-x,n-A,m,y)):(e.beginPath(),Wa(e,i-x,n-A,m,y,f)),c&&(e.globalAlpha=u,e.fillStyle=c,e.fill()),p&&(e.globalAlpha=g,e.strokeStyle=p,e.stroke())}const v=d&&((b=t==null?void 0:t.resources)==null?void 0:b.get(d));v&&v.state==="success"&&(e.globalAlpha=h,e.drawImage(v.data,i,n,o,l))}draw(t,e,i){const n=it(t).richtext;this._draw(t,n,!1,i)}};Pb=GN([gt(),NN("design:paramtypes",[])],Pb);let KT=!1;const UN=new Ct(s=>{KT||(KT=!0,s(bb).to(Pb).inSingletonScope(),s(mi).toService(bb))});let qT=!1;const $N=new Ct(s=>{qT||(qT=!0,s(CT).to(_b).inSingletonScope(),s(mi).toService(CT),s(Ky).toService(ls),Bi(s,Ky))});var YN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Eb=class extends vn{constructor(){super(...arguments);S(this,"type","rect3d");S(this,"numberType",vS)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).rect,{fill:d=h.fill,stroke:c=h.stroke,x1:u,y1:p,x:g,y:f,opacity:_=h.opacity,fillOpacity:m=h.fillOpacity,lineWidth:y=h.lineWidth,strokeOpacity:v=h.strokeOpacity,visible:b=h.visible}=t.attribute;let{width:x,height:A}=t.attribute;x=(x??u-g)||0,A=(A??p-f)||0;const T=this.z??0,k=SS(_,m,x,A,d),M=kS(_,v,x,A),w=nl(d),C=Rh(c,y);if(!t.valid||!b||!w&&!C||!(k||M||o||l))return;const{light:R,camera:I}=r.stage||{},O=t.findFace();if(d!==!1){e.setCommonStyle(t,t.attribute,i,n,h);let B=d;typeof B!="string"&&(B="black"),this.fill(i,n,T,O,B,e,R,o)}c!==!1&&(e.setStrokeStyle(t,t.attribute,i,n,h),this.stroke(i,n,T,O,e))}stroke(t,e,i,n,r){const a=n.vertices;n.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,n,r,a,o,l){const h=Yn.Get(r,tn.Color255),d=n.vertices,c=d.map(p=>a.view(p[0],p[1],p[2])[2]),u=[];n.polygons.forEach((p,g)=>{u.push({faceIdx:g,polygon:p});const{polygon:f,normal:_}=p,m=c[f[0]],y=c[f[1]],v=c[f[2]],b=c[f[3]];p.ave_z=m+y+v+b}),u.sort((p,g)=>g.polygon.ave_z-p.polygon.ave_z),u.forEach(p=>{const{polygon:g,normal:f}=p.polygon,_=d[g[0]],m=d[g[1]],y=d[g[2]],v=d[g[3]],b={x:t+_[0],y:e+_[1],z:i+_[2]},x={x:t+m[0],y:e+m[1],z:i+m[2]},A={x:t+y[0],y:e+y[1],z:i+y[2]},T={x:t+v[0],y:e+v[1],z:i+v[2]};a.beginPath(),a.moveTo(b.x,b.y,b.z),a.lineTo(x.x,x.y,x.z),a.lineTo(A.x,A.y,A.z),a.lineTo(T.x,T.y,T.z),a.closePath(),l?l(a,null,null):(a.fillStyle=o?o.computeColor(f,h):r,a.fill())})}draw(t,e,i){const n=it(t).rect;this._draw(t,n,!1,i)}};Eb=YN([gt()],Eb);let ZT=!1;const XN=new Ct(s=>{ZT||(ZT=!0,s(vb).to(Eb).inSingletonScope(),s(mi).toService(vb))});var KN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function qN(s,t,e,i,n,r,a){const{startAngle:o,endAngle:l}=s.getParsedAngle(),h=Ut(l-o),d=l>o;let c=!1;if(r=Ft-Jt)t.moveTo(e+r*se(o),i+r*qt(o),n),t.arc(e,i,r,o,l,!d,n),a>Jt&&(t.moveTo(e+a*se(l),i+a*qt(l),n),t.arc(e,i,a,l,o,d,n));else{const{outerDeltaAngle:u,innerDeltaAngle:p,outerStartAngle:g,outerEndAngle:f,innerEndAngle:_,innerStartAngle:m}=s.getParsePadAngle(o,l),y=r*se(g),v=r*qt(g),b=a*se(_),x=a*qt(_);u<.001?c=!0:(t.moveTo(e+y,i+v,n),t.arc(e,i,r,g,f,!d,n)),!(a>Jt)||p<.001?(t.lineTo(e+b,i+x,n),c=!0):(t.lineTo(e+b,i+x,n),t.arc(e,i,a,_,m,d,n))}return t.closePath(),c}function ZN(s,t,e,i,n,r,a,o){const{startAngle:l,endAngle:h}=s.getParsedAngle(),d=Ut(h-l),c=h>l;let u=!1;if(a<=Jt)t.moveTo(e,i,n);else if(d>=Ft-Jt)t.moveTo(e+a*se(l),i+a*qt(l),n),t.arc(e,i,a,l,h,!c,n),t.lineTo(e+a*se(h),i+a*qt(h),r),t.arc(e,i,a,h,l,c,r);else{const{innerouterDeltaAngle:p,innerouterStartAngle:g,innerouterEndAngle:f}=o(l,h),_=a*se(g),m=a*qt(g),y=a*se(f),v=a*qt(f);p<.001?u=!0:(t.moveTo(e+_,i+m,n),t.arc(e,i,a,g,f,!c,n),t.lineTo(e+y,i+v,r),t.arc(e,i,a,f,g,c,r))}return t.closePath(),u}let Rb=class extends vn{constructor(){super(...arguments);S(this,"type");S(this,"numberType",Bu)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).arc,{fill:d=h.fill}=t.attribute,c=this.valid(t,h,o,l);if(!c)return;const{fVisible:u,sVisible:p,doFill:g,doStroke:f}=c,_=this.z??0,{outerPadding:m=h.outerPadding,innerPadding:y=h.innerPadding,height:v=10}=t.attribute;let{outerRadius:b=h.outerRadius,innerRadius:x=h.innerRadius}=t.attribute;b+=m,x-=y;const A=Yn.Get(d,tn.Color255),{light:T}=r.stage||{},k=r.hack_pieFace,M={top:_,bottom:_+v},w={top:[0,1,0],bottom:[0,-1,0],outside:[1,0,-1],inside:[1,0,-1]};k==="bottom"||k==="top"?(e.beginPath(),qN(t,e,i,n,M[k],b,x),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),g&&(o?o(e,t.attribute,h):u&&(e.setCommonStyle(t,t.attribute,i,n,h),e.fillStyle=T?T.computeColor(w[k],A):d,e.fill())),f&&(l?l(e,t.attribute,h):p&&(e.setStrokeStyle(t,t.attribute,i,n,h),e.stroke()))):k!=="outside"&&k!=="inside"||(k==="inside"&&(e.save(),e.beginPath(),e.arc(i,n,x,0,Ft,!0,M.top),e.clip()),e.beginPath(),ZN(t,e,i,n,M.top,M.bottom,k==="outside"?b:x,(C,R)=>{const{outerDeltaAngle:I,innerDeltaAngle:O,outerStartAngle:B,outerEndAngle:L,innerEndAngle:F,innerStartAngle:z}=t.getParsePadAngle(C,R);return k==="outside"?{innerouterDeltaAngle:I,innerouterEndAngle:L,innerouterStartAngle:B}:{innerouterDeltaAngle:O,innerouterEndAngle:F,innerouterStartAngle:z}}),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),g&&(o?o(e,t.attribute,h):u&&(e.setCommonStyle(t,t.attribute,i,n,h),e.fillStyle=T?T.computeColor(w[k],A):d,e.fill())),f&&(l?l(e,t.attribute,h):p&&(e.setStrokeStyle(t,t.attribute,i,n,h),e.stroke())),k==="inside"&&e.restore())}draw(t,e,i,n){const r=it(t,n==null?void 0:n.theme).arc;this._draw(t,r,!1,i,n)}};Rb=KN([gt()],Rb);let JT=!1;const JN=new Ct(s=>{JT||(JT=!0,s(mb).to(Rb).inSingletonScope(),s(mi).toService(mb))});var QN=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Bb=class extends vn{constructor(){super(...arguments);S(this,"type","pyramid3d");S(this,"numberType",mS)}drawShape(t,e,i,n,r,a,o,l){const h=it(t,a==null?void 0:a.theme).polygon,{fill:d=h.fill,stroke:c=h.stroke,face:u=[!0,!0,!0,!0,!0,!0]}=t.attribute,p=this.z??0;if(!this.valid(t,h,o,l))return;const{light:g,camera:f}=r.stage||{},_=t.findFace();if(d!==!1){e.setCommonStyle(t,t.attribute,i,n,h);let m=d;typeof m!="string"&&(m="black"),this.fill(i,n,p,_,u,m,e,g,f,t,h,o)}c!==!1&&(e.setStrokeStyle(t,t.attribute,i,n,h),this.stroke(i,n,p,_,e))}stroke(t,e,i,n,r){const a=n.vertices;n.edges.forEach(o=>{const l=a[o[0]],h=a[o[1]],d={x:t+l[0],y:e+l[1],z:i+l[2]},c={x:t+h[0],y:e+h[1],z:i+h[2]};r.beginPath(),r.moveTo(d.x,d.y,d.z),r.lineTo(c.x,c.y,c.z),r.stroke()})}fill(t,e,i,n,r,a,o,l,h,d,c,u){const p=Yn.Get(a,tn.Color255),g=n.vertices,f=g.map(m=>o.view(m[0],m[1],m[2])[2]),_=[];n.polygons.forEach((m,y)=>{if(!r[y])return;_.push({faceIdx:y,polygon:m});const{polygon:v,normal:b}=m,x=f[v[0]],A=f[v[1]],T=f[v[2]],k=f[v[3]];m.ave_z=x+A+T+k}),_.sort((m,y)=>y.polygon.ave_z-m.polygon.ave_z),_.forEach(m=>{const{polygon:y,normal:v}=m.polygon,b=g[y[0]],x=g[y[1]],A=g[y[2]],T=g[y[3]],k={x:t+b[0],y:e+b[1],z:i+b[2]},M={x:t+x[0],y:e+x[1],z:i+x[2]},w={x:t+A[0],y:e+A[1],z:i+A[2]},C={x:t+T[0],y:e+T[1],z:i+T[2]};o.beginPath(),o.moveTo(k.x,k.y,k.z),o.lineTo(M.x,M.y,M.z),o.lineTo(w.x,w.y,w.z),o.lineTo(C.x,C.y,C.z),o.closePath(),u?u(o,d.attribute,c):(o.fillStyle=l?l.computeColor(v,p):a,o.fill())})}draw(t,e,i){const n=it(t).polygon;this._draw(t,n,!1,i)}};Bb=QN([gt()],Bb);let QT=!1;const t4=new Ct(s=>{QT||(QT=!0,s(xb).to(Bb).inSingletonScope(),s(mi).toService(xb))});function e4(){_t.RegisterGraphicCreator("arc",ES)}function i4(){_t.RegisterGraphicCreator("arc3d",ZB)}function n4(){_t.RegisterGraphicCreator("area",qB)}function s4(){_t.RegisterGraphicCreator("circle",V5)}function r4(){_t.RegisterGraphicCreator("glyph",YB)}function a4(){_t.RegisterGraphicCreator("group",bS)}function o4(){_t.RegisterGraphicCreator("image",PS)}function l4(){_t.RegisterGraphicCreator("line",CS)}function h4(){_t.RegisterGraphicCreator("path",KB)}function d4(){_t.RegisterGraphicCreator("polygon",JB)}function c4(){_t.RegisterGraphicCreator("pyramid3d",QB)}function u4(){_t.RegisterGraphicCreator("rect",Ho)}function p4(){_t.RegisterGraphicCreator("rect3d",$B)}function g4(){_t.RegisterGraphicCreator("richtext",XB)}function f4(){_t.RegisterGraphicCreator("symbol",Bm)}function _4(){_t.RegisterGraphicCreator("text",dh)}function m4(){_t.RegisterGraphicCreator("shadowRoot",nW)}const sr=(s,t)=>(N(Sf.warnHandler)&&Sf.warnHandler.call(null,s,t),Lt.getInstance().warn(`[VChart warn]: ${s}`)),jo=(s,t,e)=>{{if(!N(Sf.errorHandler))throw new Error(s);Sf.errorHandler.call(null,s,t)}},Sf={silent:!1,warnHandler:!1,errorHandler:!1},hI=OS(),ua=hI&&globalThis?globalThis.document:void 0;function Nn(s){return(s==="desktop-browser"||s==="mobile-browser")&&hI}function Ga(s){return qa(s)||s==="mobile-browser"}function qa(s){return s.includes("miniApp")||s==="lynx"||s==="wx"}let hv=0;function rl(){return hv>=9999999&&(hv=0),hv++}function ch(s){return s!=null&&s!==""&&(!!nt(s)||+s==+s)}function v4(s){if(W(s))return s;const t=+s;return W(t)?t:0}function Fl(s){return!(!s||s.length===0)&&!P(s[0])&&!P(s[0].dataId)&&G(s[0].fields)}const al=(s,t,e)=>(s.fields=t||[],s.fname=e,s),y4=s=>t=>Pt(t,s),So=s=>{Lt.getInstance().error(s)},b4=s=>{const t=[],e=s.length;let i,n,r,a=null,o=0,l="";s+="";const h=()=>{t.push(l+s.substring(i,n)),l="",i=n+1};for(i=0,n=0;ni&&h(),i=n+1,o=i):r==="]"&&(o||So("Access path missing open bracket: "+s),o>0&&h(),o=0,i=n+1):n>i?h():i=n+1}return o&&So("Access path missing closing bracket: "+s),a&&So("Access path missing closing quote: "+s),n>i&&(n+=1,h()),t},tM=(s,t,e={})=>{if(N(s))return s;const i=b4(s),n=i.length===1?i[0]:s;return al((e&&e.get||y4)(i),[n],n)},Os=(s,t,e={})=>{if(G(s)){const i=s.map(n=>tM(n,t,e));return n=>i.map(r=>r(n))}return tM(s,t,e)};Os("id");const x4=al(function(s){return s},[],"identity"),S4=al(function(){return 0},[],"zero");al(function(){return 1},[],"one");al(function(){return!0},[],"true");al(function(){return!1},[],"false");al(function(){return{}},[],"emptyObject");const Ib=(s,t)=>{const e=N(t)?t:r=>r;let i,n;if(s&&s.length){const r=s.length;for(let a=0;a{if(t===e)return!0;if(P(t)||P(e))return P(t)&&P(e);if(!sy(t)&&!sy(e))return t===e;const n=G(t)?t:t[s],r=G(e)?e:e[s];return n===r||i!==!1&&(G(r)?!(!G(n)||r.length!==n.length||!r.every((a,o)=>a===n[o])):!!Et(r)&&!(!Et(n)||Object.keys(r).length!==Object.keys(n).length||!Object.keys(r).every(a=>Lm(a,r,n))))},Gn=(s,t)=>P(s)?t:at(s)?t*parseFloat(s)/100:s;function A4(s,t,e,i){const n=i-s*s,r=Math.abs(n)<1e-24?0:(e-s*t)/n;return[t-r*s,r]}function dI(s,t,e,i){let n,r,a=-1;s.forEach(o=>{n=t(o),r=e(o),!P(n)&&(n=+n)>=n&&!P(r)&&(r=+r)>=r&&i(n,r,++a)})}function k4(s,t,e,i,n){let r=0,a=0;return dI(s,t,e,(o,l)=>{const h=l-n(o),d=l-i;r+=h*h,a+=d*d}),1-r/a}function T4(s,t=i=>i.x,e=i=>i.y){let i=0,n=0,r=0,a=0,o=0;dI(s,t,e,(d,c)=>{++o,i+=(d-i)/o,n+=(c-n)/o,r+=(d*c-r)/o,a+=(d*d-a)/o});const l=A4(i,n,r,a),h=d=>l[0]+l[1]*d;return{coef:l,predict:h,rSquared:k4(s,t,e,n,h)}}function Ei(s){return s==="horizontal"}function eM(s){return s==="vertical"}var De;(function(s){s.Identity="identity",s.Linear="linear",s.Log="log",s.Pow="pow",s.Sqrt="sqrt",s.Symlog="symlog",s.Time="time",s.Quantile="quantile",s.Quantize="quantize",s.Threshold="threshold",s.Ordinal="ordinal",s.Point="point",s.Band="band"})(De||(De={}));const cI={};Object.values(De).forEach(s=>{cI[s]=!0});function ie(s){switch(s){case De.Linear:case De.Log:case De.Pow:case De.Sqrt:case De.Symlog:case De.Time:return!0;default:return!1}}function Lb(s){return!!cI[s]}function vi(s){switch(s){case De.Ordinal:case De.Point:case De.Band:return!0;default:return!1}}function kl(s){return s}const M4=s=>s<0?-Math.sqrt(-s):Math.sqrt(s),w4=s=>s<0?-s*s:s*s,C4=s=>-Math.log(-s),P4=s=>-Math.exp(-s),E4=s=>isFinite(s)?Math.pow(10,s):s<0?0:s,iM=s=>s===10?E4:s===Math.E?Math.exp:t=>Math.pow(s,t),nM=s=>s===Math.E?Math.log:s===10?Math.log10:s===2?Math.log2:(s=Math.log(s),t=>Math.log(t)/s),sM=s=>t=>Math.sign(t)*Math.log1p(Math.abs(t/s)),rM=s=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*s;function Ob(s,t){if(s=Number(s),t=Number(t),t-=s)return i=>(i-s)/t;const e=Number.isNaN(t)?NaN:.5;return()=>e}function aM(s,t,e){const i=s[0],n=s[1],r=t[0],a=t[1];let o,l;return nl(o(h))}function DS(s,t,e){let i;return i=s===1?s+2*e:s-t+2*e,s?i>0?i:1:0}function Db(s,t,e,i){return e===1&&(e=0),DS(s,e,i)*(t/(1-e))}function R4(s,t,e,i,n){const r=DS(s,e,i);let a=t/Math.max(1,r||1);n&&(a=Math.floor(a));let o=a*(1-e);return n&&(o=Math.round(o)),o}function uI(s,t){const e=(s[1]-s[0])/(t[1]-t[0]),i=s[0]-e*t[0];return[i,e+i]}function B4(s,t,e){const i=Math.min(s.length,t.length)-1,n=new Array(i),r=new Array(i);let a=-1;for(s[i]{const e=s.slice();let i=0,n=e.length-1,r=e[i],a=e[n];return a{const e=Math.floor(Math.log10(s)),i=s/Math.pow(10,e);let n;return n=t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,e)},I4=(s,t)=>{let e,i;return t[0]n>=0&&n<=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):E(this._rangeFactorStart)&&E(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:n}=this._fishEyeOptions,r=this.range(),a=r[0],o=r[r.length-1],l=Math.min(a,o),h=Math.max(a,o),d=Ye((t=this._fishEyeOptions.focus)!==null&&t!==void 0?t:0,l,h),c=P(n)?(h-l)*i:n;let u=Math.exp(e);u=u/(u-1)*c;const p=e/c;this._fishEyeTransform=g=>{const f=Math.abs(g-d);if(f>=c)return g;if(f<=1e-6)return d;const _=u*(1-Math.exp(-f*p))/f*.75+.25;return d+(g-d)*_}}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}};const Fb=Symbol("implicit");class Vo extends fI{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=Fb}clone(){const t=new Vo().domain(this._domain).range(this._ordinalRange).unknown(this._unknown);return this._specified&&t.specified(this._specified),t}calculateVisibleDomain(t){return E(this._rangeFactorStart)&&E(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 n=this._index.get(e);if(!n){if(this._unknown!==Fb)return this._unknown;n=this._domain.push(t),this._index.set(e,n)}const r=this._ordinalRange[(n-1)%this._ordinalRange.length];return this._fishEyeTransform?this._fishEyeTransform(r):r}invert(t){let e=0;for(;ee&&o>1;)o-=1,a=Math.floor((t-s)/o);let l=s;for(;l<=t;)r.push(l),l+=a;return n&&r.reverse(),r}function L4(s,t,e){const i=[];let n;if(t=Math.floor(+t),s=Math.floor(+s),e=Kx(1,t-s+1)(Math.floor(+e)),n=tthis._maxBandwidth?(this._bandwidth=this._maxBandwidth,this._isFixed=!0):(this._bandwidth=n,this._isFixed=!1)}if(this.isBandwidthFixed()){const i=Db(super.domain().length,this._bandwidth,this._paddingInner,this._paddingOuter)*Math.sign(t[1]-t[0]),n=Math.min((t[1]-t[0])/i,1);if(E(this._rangeFactorStart)&&E(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+n<=1,a=this._rangeFactorEnd-n>=0;e==="rangeFactorStart"&&r?this._rangeFactorEnd=this._rangeFactorStart+n:e==="rangeFactorEnd"&&a?this._rangeFactorStart=this._rangeFactorEnd-n:t[0]<=t[1]?r?this._rangeFactorEnd=this._rangeFactorStart+n:a?this._rangeFactorStart=this._rangeFactorEnd-n:(this._rangeFactorStart=0,this._rangeFactorEnd=n):a?this._rangeFactorStart=this._rangeFactorEnd-n:r?this._rangeFactorEnd=this._rangeFactorStart+n:(this._rangeFactorStart=1-n,this._rangeFactorEnd=1)}else this._rangeFactorStart=0,this._rangeFactorEnd=n,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(E(this._rangeFactorStart)&&E(this._rangeFactorEnd)&&e.length){const i=this._getInvertIndex(t[0]),n=this._getInvertIndex(t[1]);return e.slice(Math.min(i,n),Math.max(i,n)+1)}return e}domain(t,e){return t?(super.domain(t),this.rescale(e)):super.domain()}range(t,e){return t?(this._range=[Zs(t[0]),Zs(t[1])],this.rescale(e)):this._range}rangeRound(t,e){return this._range=[Zs(t[0]),Zs(t[1])],this._round=!0,this.rescale(e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return t===-1?e:oM(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 oM(0,e.length-1,t,!0).filter(i=>ie[i])}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return L4(0,e.length-1,t).map(i=>e[i])}_getInvertIndex(t){let e=0;const i=this.step()/2,n=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&&nt(this._userBandwidth)}clone(){var t,e,i;return new ol(!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:dv}=C3;function O4(s,t){const e=typeof t;let i;if(P(t)||e==="boolean")return()=>t;if(e==="number")return yd(s,t);if(e==="string"){if(i=cn.parseColorString(t)){const n=dv(cn.parseColorString(s),i);return r=>n(r).formatRgb()}return yd(Number(s),Number(t))}return t instanceof Pi?dv(s,t):t instanceof cn?dv(s.color,t.color):t instanceof Date?f3(s,t):yd(Number(s),Number(t))}let _I=class extends fI{constructor(t=kl,e=kl){super(),this._unknown=void 0,this.transformer=t,this.untransformer=e,this._forceAlign=!0,this._domain=[0,1],this._range=[0,1],this._clamp=kl,this._piecewise=aM,this._interpolate=O4}calculateVisibleDomain(t){var e;return E(this._rangeFactorStart)&&E(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),yd)),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 n=Array.from(t,Zs);return this._domain=n,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=g3,this.rescale(e)}rescale(t){var e;if(t)return this;const i=(e=this._niceDomain)!==null&&e!==void 0?e:this._domain,n=i.length,r=this._range.length;let a=Math.min(n,r);if(n&&n=2?(l-i[n-2])/o:0;for(let d=1;d<=o;d++)i[n-2+d]=l-h*(o-d);a=r}return this._autoClamp&&(this._clamp=Kx(i[0],i[a-1])),this._piecewise=a>2?B4:aM,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:kl),this.rescale(i)):this._clamp!==kl}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,n)=>({index:n,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 D4=Math.sqrt(50),F4=Math.sqrt(10),z4=Math.sqrt(2),Ep=[1,2,5,10],lM=(s,t,e)=>{let i=1,n=s;const r=Math.floor((t-1)/2),a=Math.abs(s);return s>=0&&s<=Number.MIN_VALUE?n=0:s<0&&s>=-Number.MIN_VALUE?n=-(t-1):!e&&a<1?i=mI(a).step:(e||a>1)&&(n=Math.floor(s)-r*i),i>0?(s>0?n=Math.max(n,0):s<0&&(n=Math.min(n,-(t-1)*i)),HE(0,t).map(o=>n+o*i)):s>0?Af(0,-(t-1)/i,i):Af((t-1)/i,0,i)},H4=Ch((s,t,e,i)=>{let n,r,a,o,l=-1;if(e=+e,(s=+s)==(t=+t))return[s];if(Math.abs(s-t)<=Number.MIN_VALUE&&e>0)return[s];if((n=t0){let h=Math.round(s/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,n,r=-1;if(e>0){let a=Math.floor(s/e),o=Math.ceil(t/e);for((a+1)*et&&--o,n=new Array(i=o-a+1);++rt&&--o,n=new Array(i=o-a+1);++r{let i;const n=s[0],r=s[s.length-1],a=t-s.length;if(r<=0){const h=[];for(i=a;i>=1;i--)h.push(n-i*e);return h.concat(s)}if(n>=0){for(i=1;i<=a;i++)s.push(r+i*e);return s}let o=[];const l=[];for(i=1;i<=a;i++)i%2==0?o=[n-Math.floor(i/2)*e].concat(o):l.push(r+Math.ceil(i/2)*e);return o.concat(s).concat(l)},kf=Ch((s,t,e,i)=>{let n,r,a;if(e=+e,(s=+s)==(t=+t)||Math.abs(s-t)<=Number.MIN_VALUE&&e>0)return lM(s,e,i==null?void 0:i.noDecimals);(n=t0){let h=1;const{power:d,gap:c}=o,u=c===10?2*10**d:1*10**d;for(;h<=5&&(r=Af(s,t,l),r.length>e+1)&&e>2;)l+=u,h+=1;e>2&&r.length{const t=Math.floor(Math.log(s)/Math.LN10),e=s/10**t;let i=Ep[0];return e>=D4?i=Ep[3]:e>=F4?i=Ep[2]:e>=z4&&(i=Ep[1]),t>=0?{step:i*10**t,gap:i,power:t}:{step:-(10**-t)/i,gap:i,power:t}};function FS(s,t,e){const i=(t-s)/Math.max(0,e);return mI(i)}function vI(s,t,e){let i;if(e=+e,(s=+s)==(t=+t)&&e>0)return[s];if(e<=0||(i=V4(s,t,e))===0||!isFinite(i))return[];const n=new Array(e);for(let r=0;r0;){if(i=FS(a,o,t).step,i===e)return s[n]=a,s[r]=o,s;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 zS(s,t){const e=nt(t.forceMin),i=nt(t.forceMax);let n=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:nt(t.min)&&t.min<=Math.min(s[0],s[s.length-1])&&(r[0]=t.min),i?r[1]=t.forceMax:nt(t.max)&&t.max>=Math.max(s[0],s[s.length-1])&&(r[1]=t.max),nt(r[0])&&nt(r[1])?(a=s.slice(),a[0]=r[0],a[a.length-1]=r[1]):n=nt(r[0])||nt(r[1])?nt(r[0])?"max":"min":"all",{niceType:n,niceDomain:a,niceMinMax:r,domainValidator:o}}const uv=(s,t,e)=>Math.abs(t-s)<1?+e.toFixed(1):Math.round(+e),yI=Ch((s,t,e,i,n,r,a)=>{let o=s,l=t;const h=l0){for(;u<=p;++u)for(d=1;dl)break;g.push(c)}}else for(;u<=p;++u)for(d=i-1;d>=1;--d)if(c=u>0?d/r(-u):d*r(u),!(cl)break;g.push(c)}2*g.lengthf!==0),a!=null&&a.noDecimals&&(g=Array.from(new Set(g.map(f=>Math.floor(f))))),h?g.reverse():g}),bI=Ch((s,t,e,i,n,r)=>{const a=[],o={},l=n(s),h=n(t);let d=[];if(Number.isInteger(i))d=kf(l,h,e);else{const c=(h-l)/(e-1);for(let u=0;u{const u=r(c),p=Number.isInteger(i)?uv(s,t,u):uv(s,t,gI(u)),g=uv(s,t,I4(p,[s,t]));!o[g]&&!isNaN(g)&&d.length>1&&(o[g]=1,a.push(g))}),a}),Tf=Ch((s,t,e,i,n)=>vI(i(s),i(t),e).map(r=>gI(n(r))));let Fr=class xI extends _I{constructor(){super(...arguments),this.type=De.Linear}clone(){return new xI().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 H4(i[0],i[i.length-1],t,e)}ticks(t=10,e){var i;if(E(this._rangeFactorStart)&&E(this._rangeFactorEnd)&&(this._rangeFactorStart>0||this._rangeFactorEnd<1)&&this._range.length===2||!this._niceType)return this.d3Ticks(t,e);const n=(i=this._niceDomain)!==null&&i!==void 0?i:this._domain,r=this._domain,a=n[0],o=n[n.length-1];let l=kf(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=n.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 vI(e[0],e[e.length-1],t)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return W4(e[0],e[e.length-1],t)}nice(t=10,e){var i,n;const r=this._domain;let a=[];if(e){const o=zS(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=cv(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]=(n=a[0])!==null&&n!==void 0?n:o[0]),this._niceDomain=o,this.rescale()}return this}niceMin(t=10){this._niceType="min";const e=this._domain[this._domain.length-1],i=cv(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=cv(this._domain.slice(),t);return i&&(i[0]=e,this._niceDomain=i,this.rescale()),this}};function hM(s){return t=>-s(-t)}function dM(s=Number.EPSILON){return t=>Math.max(t,s)}function G4(s=Number.EPSILON){return t=>Math.min(t,-s)}class HS extends _I{constructor(){super(nM(10),iM(10)),this.type=De.Log,this._limit=dM(),this._logs=this.transformer,this._pows=this.untransformer,this._domain=[1,10],this._base=10}clone(){return new HS().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=nM(this._base),n=iM(this._base);return((e=this._niceDomain)!==null&&e!==void 0?e:this._domain)[0]<0?(this._logs=hM(i),this._pows=hM(n),this._limit=G4(),this.transformer=C4,this.untransformer=P4):(this._logs=i,this._pows=n,this._limit=dM(),this.transformer=this._logs,this.untransformer=n),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 kl}d3Ticks(t=10,e){const i=this.domain(),n=this._limit(i[0]),r=this._limit(i[i.length-1]);return yI(n,r,t,this._base,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return bI(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 Tf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return Tf(this._limit(e[0]),this._limit(e[e.length-1]),t,this.transformer,this.untransformer)}nice(t=10,e){var i,n;const r=this._domain;let a=[],o=null;if(e){const l=zS(r,e);if(a=l.niceMinMax,this._domainValidator=l.domainValidator,o=l.niceType,l.niceDomain)return this._niceDomain=l.niceDomain,this.rescale(),this}else o="all";if(o){const l=pI(r.slice(),{floor:h=>this._pows(Math.floor(this._logs(this._limit(h)))),ceil:h=>Math.abs(h)>=1?Math.ceil(h):this._pows(Math.ceil(this._logs(this._limit(h))))});return o==="min"?l[l.length-1]=(i=a[1])!==null&&i!==void 0?i:l[l.length-1]:o==="max"&&(l[0]=(n=a[0])!==null&&n!==void 0?n:l[0]),this._niceDomain=l,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}}class N4 extends ol{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 Mf extends Fr{constructor(){super(M4,w4),this.type=De.Sqrt}clone(){return new Mf().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate)}}class jS extends Fr{constructor(){super(sM(1),rM(1)),this.type=De.Symlog,this._const=1}clone(){return new jS().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=sM(t),this.untransformer=rM(t),this.rescale(e)):this._const}d3Ticks(t=10,e){const i=this.domain(),n=i[0],r=i[i.length-1];return yI(n,r,t,this._const,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return bI(e[0],e[e.length-1],t,this._const,this.transformer,this.untransformer)}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return Tf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return Tf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}nice(t=10,e){var i,n;const r=this._domain;let a=[],o=null;if(e){const l=zS(r,e);if(a=l.niceMinMax,this._domainValidator=l.domainValidator,o=l.niceType,l.niceDomain)return this._niceDomain=l.niceDomain,this.rescale(),this}else o="all";if(o){const l=pI(r.slice(),{floor:h=>Math.floor(h),ceil:h=>Math.ceil(h)});return o==="min"?l[l.length-1]=(i=a[1])!==null&&i!==void 0?i:l[l.length-1]:o==="max"&&(l[0]=(n=a[0])!==null&&n!==void 0?n:l[0]),this._niceDomain=l,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}}class VS{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)&&W(+t)?this._range[VE(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 VS().domain(this._domain).range(this._range).unknown(this._unknown)}}const cM=5,WS=(s,t,e,i)=>new gi(Object.assign({defaultFontParams:Object.assign({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},i),getTextBounds:e?void 0:Bh,specialCharSet:`-/: .,@%'"~`+gi.ALPHABET_CHAR_SET+gi.ALPHABET_CHAR_SET.toUpperCase()},t??{}),s),uM=["x","y","dx","dy","scaleX","scaleY","angle","anchor","postMatrix","visible","clip","pickable","childrenPickable","zIndex","cursor"];class ci extends Ou{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){Bs(this.attribute[t])&&Bs(e)&&!N(this.attribute[t])&&!N(e)?U(this.attribute[t],e):this.attribute[t]=e,uM.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(n=>uM.includes(n))||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.target,i=this.rootNode,n=e===i;if(e&&!n){let o=function(h){if(a||(h.type="dragstart",e==null||e.dispatchEvent(h),a=!0),h.type="drag",e==null||e.dispatchEvent(h),!n){e.attribute.pickable=!1;const d=i==null?void 0:i.pick(h.global.x,h.global.y),c=d.graphic;e.attribute.pickable=!0,r!==c&&(r&&(h.type="dragleave",h.target=r,r.dispatchEvent(h)),c&&(h.type="dragenter",h.target=c,c.dispatchEvent(h)),r=c,r&&(h.type="dragover",h.target=r,r.dispatchEvent(h)))}},r,a=!1;i==null||i.addEventListener("pointermove",o);const l=function(){a&&(r&&(t.type="drop",t.target=r,r.dispatchEvent(t)),t.type="dragend",e.dispatchEvent(t),a=!1),i==null||i.removeEventListener("pointermove",o)};e.addEventListener("pointerup",l,{once:!0}),e.addEventListener("pointerupoutside",l,{once:!0})}});this.rootNode=t,this.initEvents()}initEvents(){var t;(t=this.rootNode)==null||t.addEventListener("pointerdown",this.onPointerDown)}removeEvents(){var t;(t=this.rootNode)==null||t.removeEventListener("pointerdown",this.onPointerDown)}release(){this.removeEvents(),this.rootNode=null}}const HM=(s,t)=>{const e=t.x-s.x,i=t.y-s.y;return Math.abs(e)>Math.abs(i)?e>0?"right":"left":i>0?"down":"up"},Rp=(s,t)=>{const e=Math.abs(t.x-s.x),i=Math.abs(t.y-s.y);return Math.sqrt(e*e+i*i)},$4=s=>{const t=s.length;if(t===1)return{x:Math.round(s[0].x),y:Math.round(s[0].y)};let e=0,i=0,n=0;for(;n{this.reset(),this.startTime=go.now();const{cachedEvents:i,startPoints:n}=this;e&&i.push(e.clone()),n.length=i.length;for(let r=0;r{r.direction="none",r.deltaX=0,r.deltaY=0,r.points=n,this.triggerStartEvent("press",r),this.triggerEvent("press",r),this.eventType="press",this.direction="none"},this.config.press.time)}});S(this,"onMove",e=>{this.clearPressTimeout();const{startPoints:i,cachedEvents:n}=this;if(!i.length)return;const r=e.clone(),{x:a,y:o,pointerId:l}=r;for(let g=0,f=n.length;g({x:g.x,y:g.y})),c=go.now();if(this.prevMoveTime=this.lastMoveTime,this.prevMovePoint=this.lastMovePoint,this.lastMoveTime=c,this.lastMovePoint=h,i.length===1){const g=i[0],f=a-g.x,_=o-g.y,m=this.direction||HM(g,h);this.direction=m;const y=this.getEventType(h);return r.direction=m,r.deltaX=f,r.deltaY=_,r.points=d,this.triggerStartEvent(y,r),void this.triggerEvent(y,r)}const{startDistance:u}=this,p=Rp(d[0],d[1]);r.scale=p/u,r.center=this.center,r.points=d,this.triggerStartEvent("pinch",r),this.triggerEvent("pinch",r)});S(this,"onEnd",e=>{const i=e.clone(),{cachedEvents:n,startPoints:r}=this,a=n.map(o=>({x:o.x,y:o.y}));if(i.points=a,this.triggerEndEvent(i),n.length===1){const o=go.now(),l=this.lastMoveTime;if(o-l<100){const h=l-(this.prevMoveTime||this.startTime);if(h>0){const d=this.prevMovePoint||r[0],c=this.lastMovePoint||r[0],u=Rp(d,c),p=u/h;p>this.config.swipe.velocity&&u>this.config.swipe.threshold&&(i.velocity=p,i.direction=HM(d,c),this.triggerEvent("swipe",i))}}o-this.lastTapTime0&&this.onStart()});this.element=e,this.tapCount=0,this.lastTapTime=0,this.config={press:{time:((n=i==null?void 0:i.press)==null?void 0:n.time)??251,threshold:((r=i==null?void 0:i.press)==null?void 0:r.threshold)??9},swipe:{threshold:((a=i==null?void 0:i.swipe)==null?void 0:a.threshold)??10,velocity:((o=i==null?void 0:i.swipe)==null?void 0:o.velocity)??.3},tap:{interval:((l=i==null?void 0:i.tap)==null?void 0:l.interval)??300}},this.initEvents()}initEvents(){const{element:e}=this;e&&(e.addEventListener("pointerdown",this.onStart),e.addEventListener("pointermove",this.onMove),e.addEventListener("pointerup",this.onEnd),e.addEventListener("pointerupoutside",this.onEnd))}removeEvents(){const{element:e}=this;e&&(e.removeEventListener("pointerdown",this.onStart),e.removeEventListener("pointermove",this.onMove),e.removeEventListener("pointerup",this.onEnd),e.removeEventListener("pointerupoutside",this.onEnd))}release(){this.removeEvents(),this.element=null}getEventType(e){const{eventType:i,startTime:n,startPoints:r}=this;if(i)return i;let a;return a=go.now()-n>this.config.press.time&&Rp(r[0],e){for(let a=0,o=r.length;a{this.triggerEvent(`${n}end`,e),n==="press"&&this.triggerEvent(`${n}up`,e),delete i[n]})}emitEvent(e,i){const n=this.element._events[_B];if(n)if("fn"in n)n.fn.call(n.context,i,e);else for(let r=0,a=n.length;r=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},K4=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};const zt=[0,0,0],q4=(s,t,e,i,n,r,a,o)=>{if(o)for(;e>t;)e-=Ft;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,p=d0&&(rs.free(this.matrix),this.matrix=this.stack.pop(),this.setTransformForCurrent(!0))}highPerformanceRestore(){this.stack.length>0&&(rs.free(this.matrix),this.matrix=this.stack.pop())}rotate(s,t=!0){this.matrix.rotate(s),t&&this.setTransformForCurrent()}save(){const s=this.cloneMatrix(this.matrix);this.stack.push(s),this.nativeContext.save()}highPerformanceSave(){const s=this.cloneMatrix(this.matrix);this.stack.push(s)}scale(s,t,e=!0){this.matrix.scale(s,t),e&&this.setTransformForCurrent()}setScale(s,t,e=!0){this.matrix.setScale(s,t),e&&this.setTransformForCurrent()}scalePoint(s,t,e,i,n=!0){this.translate(e,i,!1),this.scale(s,t,!1),this.translate(-e,-i,!1),n&&this.setTransformForCurrent()}setTransform(s,t,e,i,n,r,a=!0,o=this.dpr){this.matrix.setValue(o*s,o*t,o*e,o*i,o*n,o*r),a&&this.setTransformForCurrent()}setTransformFromMatrix(s,t=!0,e=this.dpr){this.matrix.setValue(s.a*e,s.b*e,s.c*e,s.d*e,s.e*e,s.f*e),t&&this.setTransformForCurrent()}resetTransform(s=!0,t=this.dpr){this.setTransform(t,0,0,t,0,0),s&&this.setTransformForCurrent()}transform(s,t,e,i,n,r,a=!0){this.matrix.multiply(s,t,e,i,n,r),a&&this.setTransformForCurrent()}transformFromMatrix(s,t){this.matrix.multiply(s.a,s.b,s.c,s.d,s.e,s.f),t&&this.setTransformForCurrent()}translate(s,t,e=!0){this.matrix.translate(s,t),e&&this.setTransformForCurrent()}rotateDegrees(s,t=!0){const e=s*Math.PI/180;this.rotate(e,t)}rotateAbout(s,t,e,i=!0){this.translate(t,e,!1),this.rotate(s,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}rotateDegreesAbout(s,t,e,i=!0){this.translate(t,e,!1),this.rotateDegrees(s,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}beginPath(){this.disableBeginPath||this.nativeContext.beginPath()}clip(s,t){s?typeof s=="string"?this.nativeContext.clip(s):this.nativeContext.clip(s,t):this.nativeContext.clip()}arc(s,t,e,i,n,r,a){if(a=a||0,this.camera){const o=[];q4(o,i,n,s,t,e,e,r);for(let l=0;lthis.canvas.nativeCanvas));const e=this.fontFamily??ir.fontFamily,i=this.fontSize??ir.fontSize;return this.mathTextMeasure.textSpec.fontFamily===e&&this.mathTextMeasure.textSpec.fontSize===i||(this.mathTextMeasure.textSpec.fontFamily=e,this.mathTextMeasure.textSpec.fontSize=i,this.mathTextMeasure._numberCharSize=null,this.mathTextMeasure._fullCharSize=null,this.mathTextMeasure._letterCharSize=null,this.mathTextMeasure._specialCharSizeMap={}),this.mathTextMeasure.measure(s,t)}putImageData(s,t,e){this.nativeContext.putImageData(s,t,e)}setLineDash(s){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(s){this.disableStroke||(s?this.nativeContext.stroke(s):this.nativeContext.stroke())}strokeRect(s,t,e,i){this.nativeContext.strokeRect(s,t,e,i)}strokeText(s,t,e,i){if(i=i||0,this.camera){this.modelMatrix&&(Dn(zt,[t,e,i],this.modelMatrix),t=zt[0],e=zt[1],i=zt[2]);const n=this.camera.vp(t,e,i);t=n.x,e=n.y}this.nativeContext.strokeText(s,t,e)}drawImage(){const s=this.nativeContext,t=arguments;t.length===3?s.drawImage(t[0],t[1],t[2]):t.length===5?s.drawImage(t[0],t[1],t[2],t[3],t[4]):t.length===9&&s.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}setCommonStyle(s,t,e,i,n){if(Array.isArray(n)){if(n.length<=1)return this._setCommonStyle(s,t,e,i,n[0]);const r=Object.create(n[0]);return n.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setCommonStyle(s,t,e,i,r)}return this._setCommonStyle(s,t,e,i,n)}_setCommonStyle(s,t,e,i,n){const r=this.nativeContext;n||(n=this.fillAttributes);const{fillOpacity:a=n.fillOpacity,opacity:o=n.opacity,fill:l=n.fill}=t;a>1e-12&&o>1e-12?(r.globalAlpha=a*o*this.baseGlobalAlpha,r.fillStyle=ub(this,l,s,e,i)):r.globalAlpha=a*o*this.baseGlobalAlpha}setShadowBlendStyle(s,t,e){if(Array.isArray(e)){if(e.length<=1)return this._setShadowBlendStyle(s,e[0]);const i=Object.create(e[0]);return e.forEach((n,r)=>{r!==0&&Object.assign(i,n)}),this._setShadowBlendStyle(s,t,i)}return this._setShadowBlendStyle(s,t,e)}_setShadowBlendStyle(s,t,e){const i=this.nativeContext;e||(e=this.fillAttributes);const{opacity:n=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;n<=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(s,t,e,i,n){if(Array.isArray(n)){if(n.length<=1)return this._setStrokeStyle(s,t,e,i,n[0]);const r=Object.create(n[0]);return n.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setStrokeStyle(s,t,e,i,r)}return this._setStrokeStyle(s,t,e,i,n)}_setStrokeStyle(s,t,e,i,n){const r=this.nativeContext;n||(n=this.strokeAttributes);const{strokeOpacity:a=n.strokeOpacity,opacity:o=n.opacity}=t;if(a>1e-12&&o>1e-12){const{lineWidth:l=n.lineWidth,stroke:h=n.stroke,lineJoin:d=n.lineJoin,lineDash:c=n.lineDash,lineCap:u=n.lineCap,miterLimit:p=n.miterLimit}=t;r.globalAlpha=a*o*this.baseGlobalAlpha,r.lineWidth=Li(this,l,this.dpr),r.strokeStyle=ub(this,h,s,e,i),r.lineJoin=d,c&&r.setLineDash(c),r.lineCap=u,r.miterLimit=p}}setTextStyleWithoutAlignBaseline(s,t,e){const i=this.nativeContext;t||(t=this.textAttributes);const{scaleIn3d:n=t.scaleIn3d}=s;s.font?i.font=s.font:i.font=eb(s,t,n&&this.camera&&this.camera.getProjectionScale(e));const{fontFamily:r=t.fontFamily,fontSize:a=t.fontSize}=s;this.fontFamily=r,this.fontSize=a,i.textAlign="left",i.textBaseline="alphabetic"}setTextStyle(s,t,e){const i=this.nativeContext;t||(t=this.textAttributes),s.font?i.font=s.font:i.font=eb(s,t,this.camera&&this.camera.getProjectionScale(e));const{fontFamily:n=t.fontFamily,fontSize:r=t.fontSize}=s;this.fontFamily=n,this.fontSize=r,i.textAlign=s.textAlign??t.textAlign,i.textBaseline=s.textBaseline??t.textBaseline}draw(){}clearMatrix(s=!0,t=this.dpr){this.setTransformFromMatrix(this._clearMatrix,s,t)}setClearMatrix(s,t,e,i,n,r){this._clearMatrix.setValue(s,t,e,i,n,r)}onlyTranslate(s=this.dpr){return this.matrix.a===s&&this.matrix.b===0&&this.matrix.c===0&&this.matrix.d===s}release(...s){this.stack.forEach(t=>rs.free(t)),this.stack.length=0}},S(Qv,"env","browser"),Qv);Gc=X4([gt(),K4("design:paramtypes",[Object,Number])],Gc);var Z4=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},J4=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},ty;let Nc=(ty=class extends yf{constructor(s){super(s)}init(s){const{container:t}=s;if(typeof t=="string"){const e=q.global.getElementById(t);e&&(this._container=e)}else this._container=t;this._context=new Gc(this,this._dpr),this.initStyle()}initStyle(){if(!this.controled)return;const{nativeCanvas:s}=this;s.width=this._pixelWidth,s.height=this._pixelHeight,!s.style||this.setCanvasStyle(s,this._x,this._y,this._displayWidth,this._displayHeight),this._container&&this._container.appendChild(s),this.visiable||this.hide()}hide(){this._nativeCanvas&&(this._nativeCanvas.style.display="none")}show(){this._nativeCanvas&&(this._nativeCanvas.style.display="block")}applyPosition(){const s=this._nativeCanvas;s.style.position="absolute",s.style.top=`${this._y}px`,s.style.left=`${this._x}px`}resetStyle(s){if(!this.controled)return;const{width:t=this._displayWidth,height:e=this._displayHeight,dpr:i=this._dpr,x:n=this._x,y:r=this._y}=s,{nativeCanvas:a}=this;a.width=t*i,a.height=e*i,!a.style||this.setCanvasStyle(a,n,r,t,e),s.id&&(a.id=s.id),this.visiable||this.hide()}setCanvasStyle(s,t,e,i,n){this.controled&&(s.style.width=`${i}px`,s.style.height=`${n}px`)}toDataURL(s,t){return s==="image/jpeg"?this._nativeCanvas.toDataURL(s,t):s==="image/png"?this._nativeCanvas.toDataURL(s):this._nativeCanvas.toDataURL(s,t)}resize(s,t){this.controled&&(this._pixelWidth=s*this._dpr,this._pixelHeight=t*this._dpr,this._displayWidth=s,this._displayHeight=t,this._nativeCanvas.style&&(this._nativeCanvas.style.width=`${s}px`,this._nativeCanvas.style.height=`${t}px`),this._nativeCanvas.width=this._pixelWidth,this._nativeCanvas.height=this._pixelHeight,this._context.dpr=this._dpr)}},S(ty,"env","browser"),ty);Nc=Z4([gt(),J4("design:paramtypes",[Object])],Nc);function SI(s,t){return new Ct(e=>{e(uB).toDynamicValue(()=>i=>new s(i)).whenTargetNamed(s.env),e(Mj).toDynamicValue(()=>(i,n)=>new t(i,n)).whenTargetNamed(t.env)})}const Q4=SI(Nc,Gc);var tU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},eU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},qh=function(s,t){return function(e,i){t(e,i,s)}};let zl=class extends Mb{constructor(t,e,i){super(i);S(this,"contributions");S(this,"drawContribution");S(this,"pickItemInterceptorContributions");this.contributions=t,this.drawContribution=e,this.pickItemInterceptorContributions=i,this.global.hooks.onSetEnv.tap("canvas-picker-service",(n,r,a)=>{this.configure(a,r)}),this.configure(this.global,this.global.env),this.pickerMap=new Map,this.init()}init(){this.contributions.getContributions().forEach(t=>{this.pickerMap.set(t.numberType,t)}),super._init()}configure(t,e){this.pickCanvas=lh.shareCanvas(),this.pickContext=this.pickCanvas.getContext("2d")}pickItem(t,e,i,n){if(t.attribute.pickable===!1)return null;if(this.InterceptorContributions.length)for(let h=0;h=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let zb=class{constructor(){S(this,"type","group");S(this,"numberType",_S)}contains(s,t,e){return!1}};zb=iU([gt()],zb);const Cf=new Ct((s,t,e,i)=>{Cf.__vloaded||(Cf.__vloaded=!0,s(zM).to(zb).inSingletonScope(),s(Si).toService(zM),Bi(s,Si))});Cf.__vloaded=!1;const nU=new Ct((s,t,e,i)=>{e(zl)||s(zl).toSelf().inSingletonScope(),e(ql)?i(ql).toService(zl):s(ql).toService(zl)});function sU(s){s.load(Cf),s.load(nU)}var _d,rU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},aU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},ad;let Md=_d=(ad=class extends xf{constructor(){super();S(this,"type","browser");S(this,"_canvasIsIntersecting");S(this,"_onVisibleChangeCb");S(this,"global");this._canvasIsIntersecting=!0,this.global=q.global,this.viewBox=new xe,this.modelMatrix=new Ee(1,0,0,1,0,0)}get container(){return this.canvas.nativeCanvas.parentElement}static GenerateCanvasId(){return`${_d.idprefix}_${_d.prefix_count++}`}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(t){t.canvas?this.createWindowByCanvas(t):this.createWindowByConfig(t),this.postInit()}postInit(){if(this.global.optimizeVisible)try{this.observerCanvas()}catch{console.error("发生错误,该环境不存在IntersectionObserver")}}isElementVisible(t){const e=t.getBoundingClientRect(),i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return!(e.right<0||e.bottom<0||e.left>i||e.top>n)}observerCanvas(){this._canvasIsIntersecting=this.isElementVisible(this.canvas.nativeCanvas);const t=new IntersectionObserver((e,i)=>{e.forEach(n=>{this._canvasIsIntersecting!==n.isIntersecting?(this._canvasIsIntersecting=n.isIntersecting,this._onVisibleChangeCb&&this._onVisibleChangeCb(n.isIntersecting)):this._canvasIsIntersecting=n.isIntersecting})});t&&t.observe(this.canvas.nativeCanvas)}createWindowByConfig(t){const e=this.global.createCanvas({width:t.width,height:t.height});let i;if(i=typeof t.container=="string"?this.global.getElementById(t.container):t.container?t.container:this.global.getRootElement(),!i)throw new Error("发生错误,containerId可能传入有误");t.offscreen?i=null:i.appendChild(e);const n={width:t.width,height:t.height,dpr:t.dpr,nativeCanvas:e,container:i,id:_d.GenerateCanvasId(),canvasControled:!0};this.canvas=new Nc(n)}createWindowByCanvas(t){let e;if(typeof t.canvas=="string"){if(e=this.global.getElementById(t.canvas),!e)throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom")}else e=t.canvas;if(!e)throw new Error("发生错误,传入的canvas不正确");let i=t.width,n=t.height;if(i==null||n==null||!t.canvasControled){const a=e.getBoundingClientRect();i=a.width,n=a.height}let r=t.dpr;r==null&&(r=e.getContext("2d").pixelRatio??e.width/i),this.canvas=new Nc({width:i,height:n,dpr:r,nativeCanvas:e,canvasControled:t.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(t,e){this.canvas.resize(t,e)}setDpr(t){this.canvas.dpr=t}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}addEventListener(t,e,i){return this.canvas.nativeCanvas.addEventListener(t,e,i)}removeEventListener(t,e,i){return this.canvas.nativeCanvas.removeEventListener(t,e,i)}dispatchEvent(t){return this.canvas.nativeCanvas.dispatchEvent(t)}getStyle(){return this.canvas.nativeCanvas.style??{}}setStyle(t){this.canvas.nativeCanvas.style=t}getBoundingClientRect(){const t=this.canvas.nativeCanvas,e=this.getWH();return t.parentElement?this.canvas.nativeCanvas.getBoundingClientRect():{x:0,y:0,width:e.width,height:e.height,left:0,top:0,right:0,bottom:0}}clearViewBox(t){const e=this.viewBox,i=this.getContext(),n=this.getDpr();i.nativeContext.save(),i.nativeContext.setTransform(n,0,0,n,0,0),i.clearRect(e.x1,e.y1,e.x2-e.x1,e.y2-e.y1),t&&(i.fillStyle=t,i.fillRect(e.x1,e.y1,e.x2-e.x1,e.y2-e.y1)),i.nativeContext.restore()}isVisible(t){return this._canvasIsIntersecting}onVisibleChange(t){this._onVisibleChangeCb=t}getTopLeft(t){return this.global.getElementTopLeft(this.canvas.nativeCanvas,t)}},S(ad,"env","browser"),S(ad,"idprefix","visactor_window"),S(ad,"prefix_count",0),ad);Md=_d=rU([gt(),aU("design:paramtypes",[])],Md);const oU=new Ct(s=>{s(Md).toSelf(),s(cS).toDynamicValue(t=>t.container.get(Md)).whenTargetNamed(Md.env)});var lU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},hU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)};class dU{constructor(t){S(this,"dom");this.dom=t}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}}function jM(s,t=!1){const e=document.createElement("img");if(e.crossOrigin="anonymous",t){const i=new Blob([s],{type:"image/svg+xml"});s=window.URL.createObjectURL(i)}return e.src=s,e.complete?Promise.resolve(e):new Promise((i,n)=>{e.onload=()=>{i(e)},e.onerror=()=>{n(new Error("加载失败"))}})}let Pf=class extends bf{constructor(){super();S(this,"type","browser");S(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(t,e){var o;let i=0,n=0,r=0,a=0;if(t.changedTouches){const l=t.changedTouches[0]??{};i=l.clientX||0,n=l.clientY||0,r=i,a=n}else i=t.clientX||0,n=t.clientY||0,r=t.offsetX||0,a=t.offsetY||0;if(e){const l=i,h=n,d=e.getBoundingClientRect(),c=(o=e.getNativeHandler)==null?void 0:o.call(e).nativeCanvas;let u,p;return c&&(u=d.width/c.offsetWidth,p=d.height/c.offsetHeight),{x:(l-d.left)/(W(u)?u:1),y:(h-d.top)/(W(p)?p:1)}}return{x:r,y:a}}getNativeAABBBounds(t){let e=t;if(typeof t=="string"&&(e=new DOMParser().parseFromString(t,"text/html").firstChild,e.lastChild&&(e=e.lastChild.firstChild)),e.getBoundingClientRect){const i=e.getBoundingClientRect();return new dU(i)}return new xe}removeDom(t){return t.parentElement.removeChild(t),!0}updateDom(t,e){const{width:i,height:n,style:r}=e;return r&&(at(r)?t.setAttribute("style",r):Object.keys(r).forEach(a=>{t.style[a]=r[a]})),i!=null&&(t.style.width=`${i}px`),n!=null&&(t.style.height=`${n}px`),!0}createDom(t){const{tagName:e="div",parent:i}=t,n=document.createElement(e);if(this.updateDom(n,t),i){const r=at(i)?this.getElementById(i):i;r&&r.appendChild&&r.appendChild(n)}return n}loadImage(t){return jM(t,!1).then(e=>({data:e,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadSvg(t){return jM(t,!0).then(e=>({data:e,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}createCanvas(t){const e=document.createElement("canvas");t.id&&(e.id=t.id??Ze.GenAutoIncrementId().toString());const i=t.dpr??window.devicePixelRatio;return t.width&&t.height&&(e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.width=t.width*i,e.height=t.height*i),e}createOffscreenCanvas(t){const e=t.dpr??window.devicePixelRatio;return new OffscreenCanvas(t.width*e,t.height*e)}releaseCanvas(t){let e;e=typeof t=="string"?document.getElementById(t):t,e&&e.parentElement&&e.parentElement.removeChild(e)}getDevicePixelRatio(){return window.devicePixelRatio}getRequestAnimationFrame(){return window.requestAnimationFrame}getCancelAnimationFrame(){return window.cancelAnimationFrame}addEventListener(t,e,i){return document.addEventListener(t,e,i)}removeEventListener(t,e,i){return document.removeEventListener(t,e,i)}dispatchEvent(t){return document.dispatchEvent(t)}getElementById(t){return document.getElementById(t)}getRootElement(){return document.body}getDocument(){return document}release(...t){}getElementTop(t,e){let i=t.offsetTop,n=t.offsetParent;for(;n!==null;)i+=n.offsetTop,n=n.offsetParent;return i}getElementLeft(t,e){let i=t.offsetLeft,n=t.offsetParent;for(;n!==null;)i+=n.offsetLeft,n=n.offsetParent;return i}getElementTopLeft(t,e){let i=t.offsetTop,n=t.offsetLeft,r=t.offsetParent;for(;r!==null;)i+=r.offsetTop,n+=r.offsetLeft,r=r.offsetParent;return{top:i,left:n}}};Pf=lU([gt(),hU("design:paramtypes",[])],Pf);const Ef=new Ct(s=>{Ef.isBrowserBound||(Ef.isBrowserBound=!0,s(Pf).toSelf().inSingletonScope(),s(xm).toService(Pf))});Ef.isBrowserBound=!1;function Rf(s,t=!0){Rf.__loaded||(Rf.__loaded=!0,s.load(Ef),s.load(Q4),s.load(oU),t&&sU(s))}Rf.__loaded=!1;var cU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},uU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},pU=function(s,t){return function(e,i){t(e,i,s)}};let Hb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","arc");S(this,"numberType",Am);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).arc;i.highPerformanceSave();let{x:r=n.x,y:a=n.y}=s.attribute;if(s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Hb=cU([gt(),pU(0,Bt(Zg)),uU("design:paramtypes",[Object])],Hb);let VM=!1;const gU=new Ct((s,t,e,i)=>{VM||(VM=!0,s(pM).to(Hb).inSingletonScope(),s(Nr).toService(pM))});var fU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},_U=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},mU=function(s,t){return function(e,i){t(e,i,s)}};let jb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","area");S(this,"numberType",Iu);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).area;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,l=>!!o||(o=l.isPointInPath(t.x,t.y),o)),i.highPerformanceRestore(),o}};jb=fU([gt(),mU(0,Bt(Jg)),_U("design:paramtypes",[Object])],jb);let WM=!1;const vU=new Ct((s,t,e,i)=>{WM||(WM=!0,s(gM).to(jb).inSingletonScope(),s(Nr).toService(gM))});var yU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},bU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},xU=function(s,t){return function(e,i){t(e,i,s)}};let Vb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","circle");S(this,"numberType",km);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).circle;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Vb=yU([gt(),xU(0,Bt(Qg)),bU("design:paramtypes",[Object])],Vb);let GM=!1;const SU=new Ct((s,t,e,i)=>{GM||(GM=!0,s(fM).to(Vb).inSingletonScope(),s(Nr).toService(fM))});var AU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},kU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},TU=function(s,t){return function(e,i){t(e,i,s)}};let Bf=class{constructor(s){S(this,"canvasRenderer");S(this,"type","glyph");S(this,"numberType",Tm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=e==null?void 0:e.pickerService;if(n){let r=!1;return s.getSubGraphic().forEach(a=>{r||(r=!!n.pickItem(a,t,null,e))}),r}return!1}};Bf=AU([gt(),TU(0,Bt(af)),kU("design:paramtypes",[Object])],Bf);let NM=!1;const MU=new Ct((s,t,e,i)=>{NM||(NM=!0,s(SM).to(Bf).inSingletonScope(),s(Bf).toService(SM))});var wU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let uh=class{constructor(){S(this,"type","image");S(this,"numberType",Mm)}contains(s,t,e){const{pickContext:i}=e??{};return!!i&&!!s.AABBBounds.containsPoint(t)}};uh=wU([gt()],uh);let UM=!1;const CU=new Ct((s,t,e,i)=>{UM||(UM=!0,s(wf).to(uh).inSingletonScope(),s(uh).toService(wf))});var PU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},EU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},RU=function(s,t){return function(e,i){t(e,i,s)}};let Wb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","line");S(this,"numberType",Lu);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).line;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,l=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Wb=PU([gt(),RU(0,Bt(tf)),EU("design:paramtypes",[Object])],Wb);let $M=!1;const BU=new Ct((s,t,e,i)=>{$M||($M=!0,s(_M).to(Wb).inSingletonScope(),s(Nr).toService(_M))});var IU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},LU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},OU=function(s,t){return function(e,i){t(e,i,s)}};let Gb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","polygon");S(this,"numberType",Cm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.contains(t.x,t.y))return!1;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).polygon;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Gb=IU([gt(),OU(0,Bt(nf)),LU("design:paramtypes",[Object])],Gb);let YM=!1;const DU=new Ct((s,t,e,i)=>{YM||(YM=!0,s(xM).to(Gb).inSingletonScope(),s(Nr).toService(xM))});var FU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},zU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},HU=function(s,t){return function(e,i){t(e,i,s)}};let Nb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","path");S(this,"numberType",wm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).path;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Nb=FU([gt(),HU(0,Bt(ef)),zU("design:paramtypes",[Object])],Nb);let XM=!1;const jU=new Ct((s,t,e,i)=>{XM||(XM=!0,s(mM).to(Nb).inSingletonScope(),s(Nr).toService(mM))});var VU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},WU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},GU=function(s,t){return function(e,i){t(e,i,s)}};const pv=new xe;let Ub=class{constructor(s){S(this,"canvasRenderer");S(this,"type","rect");S(this,"numberType",Pm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).rect,{cornerRadius:r=n.cornerRadius}=s.attribute;let{x:a=n.x,y:o=n.y}=s.attribute;i.highPerformanceSave();let l=!0;if(s.transMatrix.onlyTranslate()){const d=s.getOffsetXY(n);a+=d.x,o+=d.y,i.setTransformForCurrent()}else a=0,o=0,l=!1,i.transformFromMatrix(s.transMatrix,!0);let h=!0;if(!l||nt(r,!0)&&r!==0||G(r)&&r.some(d=>d!==0))h=!1,this.canvasRenderer.drawShape(s,i,a,o,{},null,(d,c,u)=>!!h||(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=p+g,h=d.isPointInStroke(t.x,t.y),h});else if(h){const{fill:d=n.fill,stroke:c=n.stroke,lineWidth:u=n.lineWidth}=s.attribute;if(d)h=!0;else if(c){const p=s.AABBBounds;pv.setValue(p.x1,p.y1,p.x2,p.y2),pv.expand(-u/2),h=!pv.containsPoint(t)}}return i.highPerformanceRestore(),h}};Ub=VU([gt(),GU(0,Bt(sf)),WU("design:paramtypes",[Object])],Ub);let KM=!1;const NU=new Ct((s,t,e,i)=>{KM||(KM=!0,s(vM).to(Ub).inSingletonScope(),s(Nr).toService(vM))});let qM=!1;const UU=new Ct((s,t,e,i)=>{qM||(qM=!0,s(wf).to(uh).inSingletonScope(),s(uh).toService(wf))});var $U=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},YU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},XU=function(s,t){return function(e,i){t(e,i,s)}};let $b=class{constructor(s){S(this,"canvasRenderer");S(this,"type","symbol");S(this,"numberType",Em);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).symbol;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};$b=$U([gt(),XU(0,Bt(rf)),YU("design:paramtypes",[Object])],$b);let ZM=!1;const KU=new Ct((s,t,e,i)=>{ZM||(ZM=!0,s(yM).to($b).inSingletonScope(),s(Nr).toService(yM))});var qU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Yb=class{constructor(){S(this,"type","text");S(this,"numberType",Rm)}contains(s,t,e){return!!s.AABBBounds.containsPoint(t)}};Yb=qU([gt()],Yb);let JM=!1;const ZU=new Ct((s,t,e,i)=>{JM||(JM=!0,s(bM).to(Yb).inSingletonScope(),s(Nr).toService(bM))});var JU=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},QU=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},ey;let If=(ey=class extends Gc{constructor(s,t){super(s,t);const e=s.nativeCanvas.getContext("2d");if(!e)throw new Error("发生错误,获取2d上下文失败");this.nativeContext=e,this.canvas=s,this.matrix=new Ee(1,0,0,1,0,0),this.stack=[],this.dpr=t??1}release(...s){}},S(ey,"env","node"),ey);If=JU([gt(),QU("design:paramtypes",[Object,Number])],If);var t$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},e$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},iy;let Uc=(iy=class extends yf{constructor(s){super(s)}init(){this._context=new If(this,this._dpr),this.nativeCanvas.width=this._pixelWidth,this.nativeCanvas.height=this._pixelHeight}release(...s){this._nativeCanvas.release&&N(this._nativeCanvas.release)&&this._nativeCanvas.release()}},S(iy,"env","node"),iy);Uc=t$([gt(),e$("design:paramtypes",[Object])],Uc);const i$=SI(Uc,If);var n$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},s$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},r$=function(s,t){return function(e,i){t(e,i,s)}},ny;let wd=(ny=class extends xf{constructor(t){super();S(this,"global");S(this,"type","node");S(this,"canvas");this.global=t}get container(){return null}getTitle(){return""}getWH(){return{width:this.canvas.displayWidth,height:this.canvas.displayHeight}}getXY(){return{x:0,y:0}}createWindow(t){t.canvas?this.createWindowByCanvas(t):this.createWindowByConfig(t)}createWindowByConfig(t){const e=this.global.createCanvas({width:t.width,height:t.height}),i={width:t.width,height:t.height,dpr:t.dpr,nativeCanvas:e,id:Ze.GenAutoIncrementId().toString(),canvasControled:!0};this.canvas=new Uc(i)}createWindowByCanvas(t){const e=t.canvas;let i=t.width,n=t.height;i!=null&&n!=null&&t.canvasControled||(i=e.width,n=e.height),this.canvas=new Uc({width:i,height:n,dpr:1,nativeCanvas:e,canvasControled:t.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(t,e){this.canvas.resize(t,e)}setDpr(t){this.canvas.dpr=t}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}getImageBuffer(t="image/png"){return this.canvas.nativeCanvas.toBuffer(t)}addEventListener(t,e,i){}dispatchEvent(t){return!0}removeEventListener(t,e,i){}getStyle(){}setStyle(t){}getBoundingClientRect(){return null}clearViewBox(t){}},S(ny,"env","node"),ny);wd=n$([gt(),r$(0,Bt(lS)),s$("design:paramtypes",[Object])],wd);const a$=new Ct(s=>{s(wd).toSelf(),s(cS).toDynamicValue(t=>t.container.get(wd)).whenTargetNamed(wd.env)});var o$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Lf=class extends bf{constructor(){super(...arguments);S(this,"type","node");S(this,"pkg");S(this,"_lastTime",0);S(this,"supportEvent",!1)}configure(t,e){t.env===this.type&&(t.setActiveEnvContribution(this),this.pkg=e)}getDynamicCanvasCount(){return 0}getStaticCanvasCount(){return 999}loadJson(t){const e=fetch(t).then(i=>i.json());return e.then(i=>({data:i,state:"success"})).catch(()=>({data:null,state:"fail"})),e}loadArrayBuffer(t){return fetch(t).then(e=>e.arrayBuffer()).then(e=>({data:e,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadImage(t){const{loadImage:e}=this.pkg;return e?e(t).then(i=>({loadState:i?"success":"fail",data:i})).catch(()=>({loadState:"fail",data:null})):Promise.reject(new Error("node-canvas loadImage could not be found!"))}loadSvg(t){const e=this.pkg.Resvg;if(!e)return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));const i=new e(t).render().asPng();return this.loadImage(i)}createCanvas(t){return this.pkg.createCanvas(t.width,t.height)}releaseCanvas(t){}getDevicePixelRatio(){return 1}getRequestAnimationFrame(){return function(t){return bk.call(t)}}getCancelAnimationFrame(){return t=>{bk.clear(t)}}addEventListener(t,e,i){}removeEventListener(t,e,i){}getElementById(t){return null}getRootElement(){return null}dispatchEvent(t){}release(...t){}createOffscreenCanvas(t){}};Lf=o$([gt()],Lf);const Of=new Ct(s=>{Of.isNodeBound||(Of.isNodeBound=!0,s(Lf).toSelf().inSingletonScope(),s(xm).toService(Lf))});Of.isNodeBound=!1;function Df(s,t=!0){Df.__loaded||(Df.__loaded=!0,s.load(Of),s.load(i$),s.load(a$))}Df.__loaded=!1;var l$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},h$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},d$=function(s,t){return function(e,i){t(e,i,s)}};let Xb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","arc");S(this,"numberType",Am);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).arc;i.highPerformanceSave();let{x:r=n.x,y:a=n.y}=s.attribute;if(s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Li(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Xb=l$([gt(),d$(0,Bt(Zg)),h$("design:paramtypes",[Object])],Xb);let QM=!1;const c$=new Ct((s,t,e,i)=>{QM||(QM=!0,s(AM).to(Xb).inSingletonScope(),s(Si).toService(AM))});var u$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},p$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},g$=function(s,t){return function(e,i){t(e,i,s)}};const gv=new xe;let Kb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","rect");S(this,"numberType",Pm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).rect,{cornerRadius:r=n.cornerRadius}=s.attribute;let{x:a=n.x,y:o=n.y}=s.attribute;i.highPerformanceSave();let l=!0;if(s.transMatrix.onlyTranslate()){const d=s.getOffsetXY(n);a+=d.x,o+=d.y,i.setTransformForCurrent()}else a=0,o=0,l=!1,i.transformFromMatrix(s.transMatrix,!0);let h=!0;if(!l||s.shadowRoot||nt(r,!0)&&r!==0||G(r)&&r.some(d=>d!==0))h=!1,this.canvasRenderer.drawShape(s,i,a,o,{},null,(d,c,u)=>!!h||(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=Li(i,p+g,i.dpr),h=d.isPointInStroke(t.x,t.y),h});else{const{fill:d=n.fill,stroke:c=n.stroke,lineWidth:u=n.lineWidth}=s.attribute;if(d)h=!0;else if(c){const p=s.AABBBounds;gv.setValue(p.x1,p.y1,p.x2,p.y2),gv.expand(-u/2),h=!gv.containsPoint(t)}}return i.highPerformanceRestore(),h}};Kb=u$([gt(),g$(0,Bt(sf)),p$("design:paramtypes",[Object])],Kb);let tw=!1;const f$=new Ct((s,t,e,i)=>{tw||(tw=!0,s(EM).to(Kb).inSingletonScope(),s(Si).toService(EM))});var _$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let zr=class extends vn{};zr=_$([gt()],zr);var m$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},v$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},y$=function(s,t){return function(e,i){t(e,i,s)}};let qb=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","line");S(this,"numberType",Lu);this.canvasRenderer=t}contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:n}=i??{};if(!n)return!1;n.highPerformanceSave();const r=it(t).line,a=this.transform(t,r,n),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(n.camera){c=e.clone();const p=t.parent.globalTransMatrix;c.x=p.a*e.x+p.c*e.y+p.e,c.y=p.b*e.x+p.d*e.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,n,o,l,{},null,p=>!!u||(u=p.isPointInPath(c.x,c.y),u),(p,g,f)=>{if(u)return!0;const _=g.lineWidth||f.lineWidth,m=g.pickStrokeBuffer||f.pickStrokeBuffer;return n.lineWidth=Li(n,_+m,n.dpr),u=p.isPointInStroke(c.x,c.y),u}),this.canvasRenderer.z=0,n.modelMatrix!==d&&de.free(n.modelMatrix),n.modelMatrix=d,n.highPerformanceRestore(),u}};qb=m$([gt(),y$(0,Bt(tf)),v$("design:paramtypes",[Object])],qb);let ew=!1;const b$=new Ct((s,t,e,i)=>{ew||(ew=!0,s(CM).to(qb).inSingletonScope(),s(Si).toService(CM))});var x$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},S$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},A$=function(s,t){return function(e,i){t(e,i,s)}};let Zb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","area");S(this,"numberType",Iu);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).area;let{x:r=n.x,y:a=n.y}=s.attribute;const{fillPickable:o=n.fillPickable,strokePickable:l=n.strokePickable}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const d=s.getOffsetXY(n);r+=d.x,a+=d.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let h=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,d=>!!h||!!o&&(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;if(!l)return!1;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=Li(i,p+g,i.dpr),h=d.isPointInStroke(t.x,t.y),h}),i.highPerformanceRestore(),h}};Zb=x$([gt(),A$(0,Bt(Jg)),S$("design:paramtypes",[Object])],Zb);let iw=!1;const k$=new Ct((s,t,e,i)=>{iw||(iw=!0,s(TM).to(Zb).inSingletonScope(),s(Si).toService(TM))});var T$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},M$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},w$=function(s,t){return function(e,i){t(e,i,s)}};let Jb=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","symbol");S(this,"numberType",Em);this.canvasRenderer=t}contains(t,e,i){const{pickContext:n}=i??{};if(!n)return!1;const r=t.getParsedPath();if(!n.camera){if(!t.AABBBounds.containsPoint(e))return!1;if(r.isSvg||t.attribute.pickMode==="imprecise")return!0}n.highPerformanceSave();const a=it(t).symbol,o=this.transform(t,a,n),{x:l,y:h,z:d,lastModelMatrix:c}=o;let u=e;if(n.camera){u=e.clone();const g=t.parent.globalTransMatrix;u.x=g.a*e.x+g.c*e.y+g.e,u.y=g.b*e.x+g.d*e.y+g.f}this.canvasRenderer.z=d;let p=!1;return this.canvasRenderer.drawShape(t,n,l,h,{},null,(g,f,_)=>!!p||(p=g.isPointInPath(u.x,u.y),p),(g,f,_)=>{if(p)return!0;const m=f.lineWidth||_.lineWidth,y=f.pickStrokeBuffer||_.pickStrokeBuffer;return n.lineWidth=Li(n,m+y,n.dpr),p=g.isPointInStroke(u.x,u.y),p}),this.canvasRenderer.z=0,n.modelMatrix!==c&&de.free(n.modelMatrix),n.modelMatrix=c,n.highPerformanceRestore(),p}};Jb=T$([gt(),w$(0,Bt(rf)),M$("design:paramtypes",[Object])],Jb);let nw=!1;const C$=new Ct((s,t,e,i)=>{nw||(nw=!0,s(BM).to(Jb).inSingletonScope(),s(Si).toService(BM))});var P$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},E$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},R$=function(s,t){return function(e,i){t(e,i,s)}};let Qb=class{constructor(s){S(this,"canvasRenderer");S(this,"type","circle");S(this,"numberType",km);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).circle;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Li(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Qb=P$([gt(),R$(0,Bt(Qg)),E$("design:paramtypes",[Object])],Qb);let sw=!1;const B$=new Ct((s,t,e,i)=>{sw||(sw=!0,s(MM).to(Qb).inSingletonScope(),s(Si).toService(MM))});var I$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},L$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},O$=function(s,t){return function(e,i){t(e,i,s)}};let tx=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","text");S(this,"numberType",Rm);this.canvasRenderer=t}contains(t,e,i){const{pickContext:n}=i??{};if(!n)return!1;const r=t.AABBBounds;if(!n.camera)return!!r.containsPoint(e);n.highPerformanceSave();const a=it(t).text,{keepDirIn3d:o=a.keepDirIn3d}=t.attribute,l=!o,h=this.transform(t,a,n,l),{x:d,y:c,z:u,lastModelMatrix:p}=h;this.canvasRenderer.z=u;let g=e;if(n.camera){g=e.clone();const _=t.parent.globalTransMatrix;g.x=_.a*e.x+_.c*e.y+_.e,g.y=_.b*e.x+_.d*e.y+_.f}let f=!1;return this.canvasRenderer.drawShape(t,n,d,c,{},null,(_,m,y)=>{if(f)return!0;const{fontSize:v=a.fontSize,textBaseline:b=a.textBaseline,textAlign:x=a.textAlign}=t.attribute,A=t.AABBBounds,T=A.height(),k=A.width(),M=Us(b,T,v),w=br(x,k);return _.rect(w+d,M+c,k,T,u),f=_.isPointInPath(g.x,g.y),f},(_,m,y)=>f),this.canvasRenderer.z=0,n.modelMatrix!==p&&de.free(n.modelMatrix),n.modelMatrix=p,n.highPerformanceRestore(),f}};tx=I$([gt(),O$(0,Bt(yb)),L$("design:paramtypes",[Object])],tx);let rw=!1;const D$=new Ct((s,t,e,i)=>{rw||(rw=!0,s(IM).to(tx).inSingletonScope(),s(Si).toService(IM))});var F$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},z$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},H$=function(s,t){return function(e,i){t(e,i,s)}};let ex=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","path");S(this,"numberType",wm);this.canvasRenderer=t}contains(t,e,i){if(!t.AABBBounds.containsPoint(e))return!1;if(t.attribute.pickMode==="imprecise")return!0;const{pickContext:n}=i??{};if(!n)return!1;const r=it(t).path;n.highPerformanceSave();const a=this.transform(t,r,n),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(n.camera){c=e.clone();const p=t.parent.globalTransMatrix;c.x=p.a*e.x+p.c*e.y+p.e,c.y=p.b*e.x+p.d*e.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,n,o,l,{},null,(p,g,f)=>!!u||(u=p.isPointInPath(c.x,c.y),u),(p,g,f)=>{if(u)return!0;const _=g.lineWidth||f.lineWidth,m=g.pickStrokeBuffer||f.pickStrokeBuffer;return n.lineWidth=Li(n,_+m,n.dpr),u=p.isPointInStroke(c.x,c.y),u}),this.canvasRenderer.z=0,n.modelMatrix!==d&&de.free(n.modelMatrix),n.modelMatrix=d,n.highPerformanceRestore(),u}};ex=F$([gt(),H$(0,Bt(ef)),z$("design:paramtypes",[Object])],ex);let aw=!1;const j$=new Ct((s,t,e,i)=>{aw||(aw=!0,s(PM).to(ex).inSingletonScope(),s(Si).toService(PM))});var V$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},W$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},G$=function(s,t){return function(e,i){t(e,i,s)}};let ix=class{constructor(s){S(this,"canvasRenderer");S(this,"type","polygon");S(this,"numberType",Cm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.contains(t.x,t.y))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=it(s).polygon;let{x:r=n.x,y:a=n.y}=s.attribute;if(i.highPerformanceSave(),s.transMatrix.onlyTranslate()){const l=s.getOffsetXY(n);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(s.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(s,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Li(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};ix=V$([gt(),G$(0,Bt(nf)),W$("design:paramtypes",[Object])],ix);let ow=!1;const N$=new Ct((s,t,e,i)=>{ow||(ow=!0,s(LM).to(ix).inSingletonScope(),s(Si).toService(LM))});var U$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},$$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},Y$=function(s,t){return function(e,i){t(e,i,s)}};let nx=class{constructor(s){S(this,"canvasRenderer");S(this,"type","glyph");S(this,"numberType",Tm);this.canvasRenderer=s}contains(s,t,e){if(!s.AABBBounds.containsPoint(t))return!1;if(s.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const n=e==null?void 0:e.pickerService;if(n){let r=!1;return s.getSubGraphic().forEach(a=>{if(r)return;const o=n.pickItem(a,t,null,e);r=!(!o||!o.graphic)}),r}return!1}};nx=U$([gt(),Y$(0,Bt(af)),$$("design:paramtypes",[Object])],nx);let lw=!1;const X$=new Ct((s,t,e,i)=>{lw||(lw=!0,s(FM).to(nx).inSingletonScope(),s(Si).toService(FM))});var K$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},q$=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},Z$=function(s,t){return function(e,i){t(e,i,s)}};let sx=class{constructor(s){S(this,"canvasRenderer");S(this,"type","richtext");S(this,"numberType",yS);this.canvasRenderer=s}contains(s,t,e){return!!s.AABBBounds.containsPoint(t)}};sx=K$([gt(),Z$(0,Bt(bb)),q$("design:paramtypes",[Object])],sx);let hw=!1;const J$=new Ct((s,t,e,i)=>{hw||(hw=!0,s(DM).to(sx).inSingletonScope(),s(Si).toService(DM))});var Q$=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let rx=class{constructor(){S(this,"type","image");S(this,"numberType",Mm)}contains(s,t,e){const{pickContext:i}=e??{};return!!i&&!!s.AABBBounds.containsPoint(t)}};rx=Q$([gt()],rx);let dw=!1;const t8=new Ct((s,t,e,i)=>{dw||(dw=!0,s(wM).to(rx).inSingletonScope(),s(Si).toService(wM))});var e8=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},i8=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},n8=function(s,t){return function(e,i){t(e,i,s)}};new xe;let ax=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","rect3d");S(this,"numberType",vS);this.canvasRenderer=t}contains(t,e,i){const{pickContext:n}=i??{};if(!n)return!1;const r=it(t).rect;n.highPerformanceSave();const a=this.transform(t,r,n),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(n.camera){c=e.clone();const p=t.parent.globalTransMatrix;c.x=p.a*e.x+p.c*e.y+p.e,c.y=p.b*e.x+p.d*e.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,n,o,l,i,null,(p,g,f)=>!!u||(u=p.isPointInPath(c.x,c.y),u)),this.canvasRenderer.z=0,n.modelMatrix!==d&&de.free(n.modelMatrix),n.modelMatrix=d,n.highPerformanceRestore(),u}};ax=e8([gt(),n8(0,Bt(vb)),i8("design:paramtypes",[Object])],ax);let cw=!1;const s8=new Ct((s,t,e,i)=>{cw||(cw=!0,s(RM).to(ax).inSingletonScope(),s(Si).toService(RM))});var r8=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},a8=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},o8=function(s,t){return function(e,i){t(e,i,s)}};let ox=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","arc3d");S(this,"numberType",Bu);this.canvasRenderer=t}contains(t,e,i){const{pickContext:n}=i??{};if(!n)return!1;const r=it(t).arc;n.highPerformanceSave();const a=this.transform(t,r,n),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(n.camera){c=e.clone();const p=t.parent.globalTransMatrix;c.x=p.a*e.x+p.c*e.y+p.e,c.y=p.b*e.x+p.d*e.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,n,o,l,i,null,(p,g,f)=>!!u||(u=p.isPointInPath(c.x,c.y),u)),this.canvasRenderer.z=0,n.modelMatrix!==d&&de.free(n.modelMatrix),n.modelMatrix=d,n.highPerformanceRestore(),u}};ox=r8([gt(),o8(0,Bt(mb)),a8("design:paramtypes",[Object])],ox);let uw=!1;const l8=new Ct((s,t,e,i)=>{uw||(uw=!0,s(kM).to(ox).inSingletonScope(),s(Si).toService(kM))});var h8=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},d8=function(s,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,t)},c8=function(s,t){return function(e,i){t(e,i,s)}};let lx=class extends zr{constructor(t){super();S(this,"canvasRenderer");S(this,"type","pyramid3d");S(this,"numberType",mS);this.canvasRenderer=t}contains(t,e,i){const{pickContext:n}=i??{};if(!n)return!1;const r=it(t).polygon;n.highPerformanceSave();const a=this.transform(t,r,n),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=e;if(n.camera){c=e.clone();const p=t.parent.globalTransMatrix;c.x=p.a*e.x+p.c*e.y+p.e,c.y=p.b*e.x+p.d*e.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(t,n,o,l,{},null,(p,g,f)=>!!u||(u=p.isPointInPath(c.x,c.y),u),(p,g,f)=>!1),this.canvasRenderer.z=0,n.modelMatrix!==d&&de.free(n.modelMatrix),n.modelMatrix=d,n.highPerformanceRestore(),u}};lx=h8([gt(),c8(0,Bt(xb)),d8("design:paramtypes",[Object])],lx);let pw=!1;const u8=new Ct((s,t,e,i)=>{pw||(pw=!0,s(OM).to(lx).inSingletonScope(),s(Si).toService(OM))}),hs=OS();function Ff(){Ff.__loaded||(Ff.__loaded=!0,e4(),wt.load(BN),wt.load(hs?c$:gU))}Ff.__loaded=!1;const Lh=Ff;function zf(){zf.__loaded||(zf.__loaded=!0,i4(),wt.load(JN),wt.load(l8))}zf.__loaded=!1;const p8=zf;function Hf(){Hf.__loaded||(Hf.__loaded=!0,n4(),wt.load(ON),wt.load(hs?k$:vU))}Hf.__loaded=!1;const AI=Hf;function jf(){jf.__loaded||(jf.__loaded=!0,s4(),wt.load(FN),wt.load(hs?B$:SU))}jf.__loaded=!1;const g8=jf;function Vf(){Vf.__loaded||(Vf.__loaded=!0,r4(),wt.load(WN),wt.load(hs?X$:MU))}Vf.__loaded=!1;const f8=Vf;function Wf(){Wf.__loaded||(Wf.__loaded=!0,a4())}Wf.__loaded=!1;const je=Wf;function Gf(){Gf.__loaded||(Gf.__loaded=!0,o4(),wt.load($N),wt.load(hs?t8:CU))}Gf.__loaded=!1;const kI=Gf;function Nf(){Nf.__loaded||(Nf.__loaded=!0,l4(),wt.load(LN),wt.load(hs?b$:BU))}Nf.__loaded=!1;const Ur=Nf;function Uf(){Uf.__loaded||(Uf.__loaded=!0,h4(),wt.load(HN),wt.load(hs?j$:jU))}Uf.__loaded=!1;const zu=Uf;function $f(){$f.__loaded||($f.__loaded=!0,d4(),wt.load(jN),wt.load(hs?N$:DU))}$f.__loaded=!1;const Om=$f;function Yf(){Yf.__loaded||(Yf.__loaded=!0,c4(),wt.load(t4),wt.load(u8))}Yf.__loaded=!1;const _8=Yf;function Xf(){Xf.__loaded||(Xf.__loaded=!0,u4(),wt.load(IN),wt.load(hs?f$:NU))}Xf.__loaded=!1;const $r=Xf;function Kf(){Kf.__loaded||(Kf.__loaded=!0,p4(),wt.load(XN),wt.load(s8))}Kf.__loaded=!1;const m8=Kf;function qf(){qf.__loaded||(qf.__loaded=!0,g4(),wt.load(UN),wt.load(hs?J$:UU))}qf.__loaded=!1;const Za=qf;function Zf(){Zf.__loaded||(Zf.__loaded=!0,m4())}Zf.__loaded=!1;const Fi=Zf;function Jf(){Jf.__loaded||(Jf.__loaded=!0,f4(),wt.load(DN),wt.load(hs?C$:KU))}Jf.__loaded=!1;const ds=Jf;function Qf(){Qf.__loaded||(Qf.__loaded=!0,_4(),wt.load(zN),wt.load(hs?D$:ZU))}Qf.__loaded=!1;const lr=Qf;function TI(){je(),$r()}const ph=-.5*Math.PI,gh=1.5*Math.PI,Cd="PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol",v8=11;var We;(function(s){s.selected="selected",s.selectedReverse="selected_reverse",s.hover="hover",s.hoverReverse="hover_reverse"})(We||(We={}));const Rt={[We.selectedReverse]:{},[We.selected]:{},[We.hover]:{},[We.hoverReverse]:{}},t_={container:"",width:30,height:30,style:{}},y8="scrollDrag",gw={debounce:or,throttle:Ka};TI();let e_=class MI extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},MI.defaultAttributes,t)),this.name="scrollbar",this._onRailPointerDown=i=>{const{viewX:n,viewY:r}=i,{direction:a,width:o,height:l,range:h}=this.attribute,d=this._sliderSize,[c,u]=this._getScrollRange();let p;if(a==="vertical"){const g=r-this._viewPosition.y,f=Ye(g-d/2,c,u);p=g/l,this._slider.setAttribute("y",f,!0)}else{const g=n-this._viewPosition.x,f=Ye(g-d/2,c,u);p=g/o,this._slider.setAttribute("x",f,!0)}this.setScrollRange([p-(h[1]-h[0])/2,p+(h[1]-h[0])/2],!1),this.stage&&!this.stage.autoRender&&this.stage.renderNextFrame()},this._onSliderPointerDown=i=>{const{stopSliderDownPropagation:n=!0}=this.attribute;n&&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}),Ot.env==="browser"?(Ot.addEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Ot.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:n}=this.attribute,{x:r,y:a}=this.stage.eventPointTransform(i);let o,l,h=0;const{width:d,height:c}=this._getSliderRenderBounds();return n==="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:n=!0}=this.attribute;n&&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:gw[this.attribute.delayType](this._onSliderPointerMove,this.attribute.delayTime),this._onSliderPointerUp=i=>{i.preventDefault();const{realTime:n=!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:ao(d,a[0],a[1])}),Ot.env==="browser"?(Ot.removeEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Ot.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:n=[0,1],range:r,realTime:a=!0}=this.attribute,o=ao(t,n[0],n[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(y8,{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",gw[t](this._onRailPointerDown,e)),this._slider&&this._slider.addEventListener("pointerdown",this._onSliderPointerDown)}render(){this._reset();const{direction:t="horizontal",width:e,height:i,range:n,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(ao(n,r[0],r[1])),p=u[1]-u[0];let g;this._sliderSize=p,g=t==="horizontal"?{x:u[0],y:c.y1,width:p,height:c.height}:{x:c.x1,y:u[0],width:c.width,height:p};const f=h.createOrUpdateChild("slider",Object.assign(Object.assign(Object.assign(Object.assign({},g),{cornerRadius:this._getDefaultSliderCornerRadius()}),o),{boundsPadding:fn(l),pickMode:"imprecise"}),"rect");this._slider=f,this._container=h;const _=this._container.AABBBounds;this._viewPosition={x:_.x1,y:_.y1}}_getSliderRenderBounds(){if(this._sliderRenderBounds)return this._sliderRenderBounds;const{width:t,height:e,padding:i=2}=this.attribute,[n,r,a,o]=fn(i),l={x1:o,y1:n,x2:t-r,y2:e-a,width:Math.max(0,t-(o+r)),height:Math.max(0,e-(n+a))};return this._sliderRenderBounds=l,l}_getDefaultSliderCornerRadius(){const{direction:t,round:e}=this.attribute;if(e){const{width:i,height:n}=this._getSliderRenderBounds();return t==="horizontal"?n:i}return 0}_getSliderPos(t){const{direction:e}=this.attribute,{width:i,height:n,x1:r,y1:a}=this._getSliderRenderBounds();return e==="horizontal"?[i*t[0]+r,i*t[1]+r]:[n*t[0]+a,n*t[1]+a]}_getScrollRange(){if(this._sliderLimitRange)return this._sliderLimitRange;const{limitRange:t=[0,1],direction:e}=this.attribute,[i,n]=ao(t,0,1),{width:r,height:a,x1:o,y1:l}=this._getSliderRenderBounds(),h=this._sliderSize;return e==="horizontal"?ao([o+i*r,o+n*r],o,r-h):ao([l+i*a,l+n*a],l,a-h)}_reset(){this._sliderRenderBounds=null,this._sliderLimitRange=null}};e_.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 Ps(s,t){s.forEachChildren(e=>{const i=t(e);e.isContainer&&!i&&Ps(e,t)})}const Ue=s=>!P(s)&&s.visible!==!1;function b8(s,t){if(!t)return[];const e=s.find(i=>i.name===t,!0);return e?e.getChildren():[]}function x8(s,t){if(!t)return[];const e=s.find(i=>i.name===t,!0);return e?e.findAll(i=>i.type!=="group",!0):[]}function S8(s){const t=[s[0]];for(let e=1;e-Math.PI/2&&s0&&s2*-Math.PI:s>0&&s3*Math.PI/2&&s<2*Math.PI}const A8=["#ffffff","#000000"];function _w(s,t,e,i,n,r){if(typeof s!="string"||typeof t!="string")return s;const a=new cn(s).toHex(),o=new cn(t).toHex();return GS(a,o,e,i,r)?a:k8(a,o,e,i,n,r)}function k8(s,t,e,i,n,r){const a=[];n&&(n instanceof Array?a.push(...n):a.push(n)),a.push(...A8);for(const o of a)if(s!==o&&GS(o,t,e,i,r))return o}function GS(s,t,e,i,n){if(n==="lightness"){const r=cn.getColorBrightness(new cn(t));return cn.getColorBrightness(new cn(s))<.5?r>=.5:r<.5}return i?fv(s,t)>i:e==="largeText"?fv(s,t)>3:fv(s,t)>4.5}function fv(s,t){const e=mw(s),i=mw(t);return((e>i?e:i)+.05)/((e>i?i:e)+.05)}function mw(s){const t=NE(s),e=t[0]/255,i=t[1]/255,n=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=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*r+.7152*a+.0722*o}function fl(s,t,e,i){let n;switch(s){case"base":n=t;break;case"invertBase":n=e;break;case"similarBase":n=i}return n}function wI(s,t){return[s[0]*t,s[1]*t]}function T8(s){const[t,e]=s;return Math.sqrt(t*t+e*e)}function M8(s){const[t,e]=s;let i=t*t+e*e;return i>0&&(i=1/Math.sqrt(i)),[s[0]*i,s[1]*i]}function w8(s,t){const[e,i]=s,[n,r]=t,a=Math.sqrt((e*e+i*i)*(n*n+r*r)),o=a&&(e*n+i*r)/a;return Math.acos(Math.min(Math.max(o,-1),1))}function C8(s,t){return s[0]*t[1]-t[0]*s[1]}function P8(s,t,e){const i=w8(s,t),n=C8(s,t)>=0;return e?n?2*Math.PI-i:i:n?i:2*Math.PI-i}const _v=(s,t,e)=>new gi(Object.assign({defaultFontParams:{fontFamily:Cd,fontSize:v8},getTextBounds:Bh,specialCharSet:`-/: .,@%'"~`+gi.ALPHABET_CHAR_SET+gi.ALPHABET_CHAR_SET.toUpperCase()},{}),s);function Dm(s,t,e={}){if(!s)return{width:0,height:0};const i=Bh({text:s,fontFamily:t.fontFamily||e.fontFamily||Cd,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 hx(s,t="type"){return CI(s,t)==="rich"}function CI(s,t="type"){var e,i;return Et(s.text)&&"type"in s.text?(e=s.text.type)!==null&&e!==void 0?e:"text":t in s&&(i=s[t])!==null&&i!==void 0?i:"text"}function n_(s){var t,e;return s.width=(t=s.width)!==null&&t!==void 0?t:0,s.height=(e=s.height)!==null&&e!==void 0?e:0,s.maxWidth=s.maxLineWidth,s.textConfig=s.text.text||s.text,s}function E8(s){const{text:t,_originText:e}=s,{text:i}=t;return s.html=i,s.text=e,s.renderable=!1,s}function R8(s){const{text:t,_originText:e}=s,{text:i}=t;return s.react=i,s.text=e,s.renderable=!1,s}function s_(s,t="type"){const e=CI(s,t);return e==="rich"?_t.richtext(n_(s)):(e==="html"?s=E8(s):e==="react"&&(s=R8(s)),_t.text(s))}const mv=(s,t)=>{const e=Math.atan2(s,t);return e<0?e+2*Math.PI:e};function Fm(){je(),$r(),ds(),Za(),lr()}var vv=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);nd&&(v=d,M.setAttribute("maxLineWidth",d-_[1]-_[2])));let z=0,K=0,et=0;if(L==="left"||L==="start"?et=1:L==="right"||L==="end"?et=-1:L==="center"&&(et=0),et?et<0?(z-=v,y&&y.setAttribute("x",(y.attribute.x||0)-R),m.setAttribute("x",-_[1]-A)):et>0&&m.setAttribute("x",_[3]):(z-=v/2,y&&y.setAttribute("x",(y.attribute.x||0)-R/2),m.setAttribute("x",-A/2)),f&&et){const ht=v-_[1]-_[3],ut=R+A,J=(ht-ut)/2+A+R/2,$=(ht-ut)/2+B/2;M.setAttributes({x:J*et,textAlign:"center"}),y==null||y.setAttributes({x:$*et}),m.setAttribute("x",_[2+et]*et)}F==="middle"?(K-=b/2,y&&y.setAttribute("y",0)):F==="bottom"?(K-=b,y&&y.setAttribute("y",-I/2),m.setAttribute("y",-_[2])):F==="top"&&(m.setAttribute("y",_[0]),y&&y.setAttribute("y",I/2));const{visible:j}=o,st=vv(o,["visible"]);if(u&&ge(j)){const ht=this.createOrUpdateChild("tag-panel",Object.assign(Object.assign({},st),{visible:j&&!!n,x:z,y:K,width:v,height:b}),"rect");mt(p==null?void 0:p.panel)||(ht.states=p.panel),this._bgRect=ht}}this._textShape=M}}cs.defaultAttributes={visible:!0,textStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},space:4,padding:4,shape:{fill:"#000"}};const PI={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}},EI={poptip:U({},PI)};function B8(){je(),lr(),ds(),$r()}function I8(s){U(EI.poptip,PI,s)}var L8=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);nf?ut=f:utSt&&(St=Ai,yt=Dt)}}}}getAngleAndOffset(t,e,i,n){const r=n[1]/2;switch(t){case"tl":return{angle:ee/2*3,offset:[e/4,i+r],rectOffset:[-e/4,-i-n[1]]};case"top":return{angle:ee/2*3,offset:[e/2,i+r],rectOffset:[0,-i-n[1]]};case"tr":return{angle:ee/2*3,offset:[e/4*3,i+r],rectOffset:[e/4*3,-i-n[1]]};case"rt":return{angle:0,offset:[-r,i/5],rectOffset:[e/4*3,-i-n[1]]};case"right":return{angle:0,offset:[-r,i/2],rectOffset:[e/4*3,-i-n[1]]};case"rb":return{angle:0,offset:[-r,i/5*4],rectOffset:[e/4*3,-i-n[1]]};case"bl":return{angle:ee/2,offset:[e/4,-r],rectOffset:[-e/4,-i-n[1]]};case"bottom":return{angle:ee/2,offset:[e/2,-r],rectOffset:[0,-i-n[1]]};case"br":return{angle:ee/2,offset:[e/4*3,-r],rectOffset:[e/4*3,-i-n[1]]};case"lt":return{angle:ee,offset:[e+r,i/5],rectOffset:[-e/4,-i-n[1]]};case"left":return{angle:ee,offset:[e+r,i/2],rectOffset:[0,-i-n[1]]};case"lb":return{angle:ee,offset:[e+r,i/5*4],rectOffset:[e/4*3,-i-n[1]]}}}}$c.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 O8=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function D8(s,t){return U(s,EI.poptip,t),s}let Pd=class{render(s,t,e,i,n,r,a,o,l,h,d,c,u){var p;if(s._showPoptip===1){const{visible:g,visibleCb:f}=s.attribute.poptip||{};if(g===!1||f&&f(s)===!1)return;const _={};U(_,$c.defaultAttributes,s.attribute.poptip?s.attribute.poptip:{}),this.poptipComponent?this.poptipComponent.initAttributes(_):this.poptipComponent=new $c(_);let m=s.attribute.poptip||{};if(s.type==="text"&&m.title==null&&m.content==null){const b={};D8(b,m),m=b,m.content=(p=m.content)!==null&&p!==void 0?p:s.attribute.text}const y=s.globalTransMatrix;this.poptipComponent.setAttributes(Object.assign(Object.assign({visibleAll:!0,pickable:!1,childrenPickable:!1},m),{x:y.e,y:y.f})),h.stage.tryInitInteractiveLayer();const v=h.stage.getLayer("_builtin_interactive");v&&v.add(this.poptipComponent)}else s._showPoptip===2&&(s._showPoptip=0,this.poptipComponent&&this.poptipComponent.setAttributes({visibleAll:!1}))}};Pd=O8([gt()],Pd);var RI=function(s,t,e,i){var n,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(s,t,e,i);else for(var o=s.length-1;o>=0;o--)(n=s[o])&&(a=(r<3?n(a):r>3?n(t,e,a):n(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Ed=class{constructor(){this.name="poptip",this.activeEvent="onRegister",this._uid=Ze.GenAutoIncrementId(),this.key=this.name+this._uid,this.poptip=s=>{const t=s.target;if(t.isContainer||!t.attribute)return void this.unpoptip(s);if(t===this.activeGraphic)return;const{poptip:e}=t.attribute;e&&(t.setAttributes({}),t._showPoptip=1),this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2),this.setActiveGraphic(t,!0)},this.unpoptip=s=>{this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2,this.setActiveGraphic(null,!0))}}activate(s){this.pluginService=s;const{stage:t}=this.pluginService;t.addEventListener("pointerover",this.poptip)}setActiveGraphic(s,t){this.activeGraphic=s,this.pluginService.stage.renderNextFrame()}deactivate(s){const{stage:t}=this.pluginService;t.removeEventListener("pointerover",this.poptip)}};Ed=RI([gt()],Ed);let Rd=class{constructor(){this.name="poptipForText",this.activeEvent="onRegister",this._uid=Ze.GenAutoIncrementId(),this.key=this.name+this._uid,this.pointerlave=s=>{const{stage:t}=this.pluginService;s.target===t&&this.unpoptip(s)},this.poptip=s=>{const t=s.target;if(t.type!=="text"||!t.cliped||t.isContainer||!t.attribute||t.attribute.disableAutoClipedPoptip)return void this.unpoptip(s);if(t===this.activeGraphic)return;const{poptip:e={}}=t.attribute;e&&(t.setAttributes({}),t._showPoptip=1),this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2),this.setActiveGraphic(t,!0)},this.unpoptip=s=>{this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2,this.setActiveGraphic(null,!0))}}activate(s){this.pluginService=s;const{stage:t}=this.pluginService;t.addEventListener("pointerover",this.poptip),t.addEventListener("pointerleave",this.pointerlave)}setActiveGraphic(s,t){this.activeGraphic=s,this.pluginService.stage.renderNextFrame()}deactivate(s){const{stage:t}=this.pluginService;t.removeEventListener("pointerover",this.poptip),t.removeEventListener("pointerleave",this.pointerlave)}};Rd=RI([gt()],Rd);const F8=new Ct((s,t,e,i)=>{e(Pd)||(s(Pd).toSelf().inSingletonScope(),s(TS).toService(Pd)),e(Ed)||(s(Ed).toSelf(),s(Wc).toService(Ed)),e(Rd)||(s(Rd).toSelf(),s(Wc).toService(Rd))});function z8(){wt.load(F8)}class Hu extends ci{constructor(){super(...arguments),this.name="crosshair"}render(){this.renderCrosshair(this)}}function H8(){je(),Ur()}function j8(){je(),Lh()}function V8(){je(),zu()}function W8(){je(),$r()}function G8(){je(),Lh()}H8();class ju extends Hu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},ju.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,lineStyle:n}=this.attribute;return t.createOrUpdateChild("crosshair-line",Object.assign({points:[e,i]},n),"line")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}ju.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};W8();class zm extends Hu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},zm.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,rectStyle:n}=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},n),"rect")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}zm.defaultAttributes={rectStyle:{fill:"#b2bacf",opacity:.2}};j8();class Hm extends Hu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Hm.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,lineStyle:n}=this.attribute;return t.createOrUpdateChild("crosshair-circle",Object.assign(Object.assign(Object.assign(Object.assign({},e),{outerRadius:i}),this.attribute),n),"arc")}setLocation(t){const{center:e}=this.attribute,i=Ce.distancePP(t,e);this.setAttribute("radius",i)}}Hm.defaultAttributes={lineStyle:{stroke:["#b2bacf",!1,!1,!1],lineWidth:1,lineDash:[2]}};G8();class jm extends Hu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},jm.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,innerRadius:n=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:n,startAngle:a,endAngle:o}),r),"arc")}setLocation(t){const{center:e,startAngle:i=ph,endAngle:n=gh}=this.attribute,r=n-i,a=sh(fg(e,t));this.setAttributes({startAngle:a-r/2,endAngle:a+r/2})}}jm.defaultAttributes={sectorStyle:{fill:"#b2bacf",opacity:.2}};V8();class Vm extends Hu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Vm.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,sides:n=6,lineStyle:r}=this.attribute,{startAngle:a,endAngle:o}=this.attribute,l=(o-a)%(2*Math.PI)==0,h=(o-a)/n;let d;for(let c=0;c<=n;c++){const u=gn(e,i,a+h*c);c===0?d=`M${u.x},${u.y}`:d+=`L${u.x},${u.y}`,c===n&&l&&(d+="Z")}return t.createOrUpdateChild("crosshair-polygon",Object.assign({path:d},r),"path")}setLocation(t){const{center:e}=this.attribute,i=Ce.distancePP(t,e);this.setAttribute("radius",i)}}Vm.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};const ra=new Uint32Array(33),ys=new Uint32Array(33);ys[0]=0,ra[0]=~ys[0];for(let s=1;s<=32;++s)ys[s]=ys[s-1]<<1|1,ra[s]=~ys[s];function N8(s,t){const e=new Uint32Array(~~((s*t+32)/32));function i(r,a){e[r]|=a}function n(r,a){e[r]&=a}return{array:e,get:(r,a)=>{const o=a*s+r;return e[o>>>5]&1<<(31&o)},set:(r,a)=>{const o=a*s+r;i(o>>>5,1<<(31&o))},clear:(r,a)=>{const o=a*s+r;n(o>>>5,~(1<<(31&o)))},getRange:({x1:r,y1:a,x2:o,y2:l})=>{if(o<0||l<0||r>s||a>t)return!0;let h,d,c,u,p=l;for(;p>=a;--p)if(h=p*s+r,d=p*s+o,c=h>>>5,u=d>>>5,c===u){if(e[c]&ra[31&h]&ys[1+(31&d)])return!0}else{if(e[c]&ra[31&h]||e[u]&ys[1+(31&d)])return!0;for(let g=c+1;g{if(o<0||l<0||r>s||a>t)return;let h,d,c,u,p;for(;a<=l;++a)if(h=a*s+r,d=a*s+o,c=h>>>5,u=d>>>5,c===u)i(c,ra[31&h]&ys[1+(31&d)]);else for(i(c,ra[31&h]),i(u,ys[1+(31&d)]),p=c+1;p{let h,d,c,u,p;for(;a<=l;++a)if(h=a*s+r,d=a*s+o,c=h>>>5,u=d>>>5,c===u)n(c,ys[31&h]|ra[1+(31&d)]);else for(n(c,ys[31&h]),n(u,ra[1+(31&d)]),p=c+1;pr<0||a<0||l>=t||o>=s,toImageData:r=>{const a=r.createImageData(s,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 BI(s,t,e={top:0,left:0,right:0,bottom:0}){const{top:i=0,left:n=0,right:r=0,bottom:a=0}=e,o=Math.max(1,Math.sqrt(s*t/1e6)),l=~~((s+n+r+o)/o),h=~~((t+i+a+o)/o),d=c=>~~(c/o);return d.bitmap=()=>N8(l,h),d.x=c=>~~((c+n)/o),d.y=c=>~~((c+i)/o),d.ratio=o,d.padding=e,d.width=s,d.height=t,d}function vr(s,t,e=!1){if(e){const{x1:i,x2:n,y1:r,y2:a}=t,o=Ye(i,0,s.width),l=Ye(n,0,s.width),h=Ye(r,0,s.height),d=Ye(a,0,s.height);return{x1:s.x(o),x2:s.x(l),y1:s.y(h),y2:s.y(d)}}return{x1:s.x(t.x1),x2:s.x(t.x2),y1:s.y(t.y1),y2:s.y(t.y2)}}function ig(s,t,e,i=!0,n=0){let r=e;return n>0&&(r={x1:e.x1-n,x2:e.x2+n,y1:e.y1-n,y2:e.y2+n}),r=vr(s,r),!(i&&t.outOfBounds(r))&&!t.getRange(r)}function yv(s,t,e,i=[],n=!0,r=0){const a=i.filter(o=>E(o));for(let o=0;oa(n.AABBBounds,r,u,i.offset));return yv(s,t,n,c,h,d)}return!1}if(e.type==="moveY"){const c=(e.offset?N(e.offset)?e.offset(n.attribute):e.offset:[]).map(u=>({x:n.attribute.x,y:n.attribute.y+u}));return yv(s,t,n,c,h,d)}if(e.type==="moveX"){const c=(e.offset?N(e.offset)?e.offset(n.attribute):e.offset:[]).map(u=>({x:n.attribute.x+u,y:n.attribute.y}));return yv(s,t,n,c,h,d)}return!1}const $8=["top","bottom","right","left","top-right","bottom-right","top-left","bottom-left"],Y8=["top","inside-top","inside"];function X8(s){return s==="rect"?Y8:$8}function K8(s,t,e){const{x1:i,x2:n,y1:r,y2:a}=s.AABBBounds,o=Math.min(i,n),l=Math.max(i,n),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 q8=(s={})=>{var t,e,i;return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(t=s.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=s.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=s.strokeOpacity)!==null&&i!==void 0?i:1}}},Z8=(s={})=>{var t,e,i;return{from:{opacity:(t=s.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=s.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=s.strokeOpacity)!==null&&i!==void 0?i:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},yw={fadeIn:q8,fadeOut:Z8};function bw(s,t){var e,i;return(i=(e=yw[t])===null||e===void 0?void 0:e.call(yw,s))!==null&&i!==void 0?i:{from:{},to:{}}}function J8(s,t,e){if(!G(e)){const{duration:i,easing:n,increaseEffect:r=!0}=e;return s.animate().to(t.attribute,i,n),void(r&&xw(s,t,i,n))}e.forEach((i,n)=>{const{duration:r,easing:a,increaseEffect:o=!0,channel:l}=i,{from:h,to:d}=Q8(s,t,l,i.options);mt(d)||s.animate().to(d,r,a),"text"in h&&"text"in d&&o&&xw(s,t,r,a)})}const Q8=(s,t,e,i)=>{const n=Object.assign({},s.attribute),r=Object.assign({},t.attribute);return V(i==null?void 0:i.excludeChannels).forEach(a=>{delete r[a]}),Object.keys(r).forEach(a=>{e&&!e.includes(a)&&delete r[a]}),{from:n,to:r}};function xw(s,t,e,i){s.attribute.text!==t.attribute.text&&W(Number(s.attribute.text)*Number(t.attribute.text))&&s.animate().play(new Wj({text:s.attribute.text},{text:t.attribute.text},e,i))}const bv={mode:"same-time",duration:300,easing:"linear"};function tY(s){return s.radius?{x:Math.cos(s.angle)*s.radius,y:Math.sin(s.angle)*s.radius}:{x:0,y:0}}function Bp(s,t,e,i){const n=tY({radius:e,angle:i});return{x:s+n.x,y:t+n.y}}function eY(s){return(s=iY(s))>0&&s<=Math.PI/2?2:s>Math.PI/2&&s<=Math.PI?3:s>Math.PI&&s<=3*Math.PI/2?4:1}function iY(s){for(;s<0;)s+=2*Math.PI;for(;s>=2*Math.PI;)s-=2*Math.PI;return s}function io(s){return s===3||s===4}function nY(s){return s===1||s===2}function sY(s,t,e,i,n,r){if(s===0&&t===0||r<=0)return[];if(s===0){const u=-e/t,p=r**2-(u-n)**2;return p<0?[]:p===0?[{x:i,y:u}]:[{x:Math.sqrt(p)+i,y:u},{x:-Math.sqrt(p)+i,y:u}]}if(t===0){const u=-e/s,p=r**2-(u-i)**2;return p<0?[]:p===0?[{x:u,y:n}]:[{x:u,y:Math.sqrt(p)+n},{x:u,y:-Math.sqrt(p)+n}]}const a=(t/s)**2+1,o=2*((e/s+i)*(t/s)-n),l=o**2-4*a*((e/s+i)**2+n**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)/s;return l===0?[{x:c,y:h}]:[{x:c,y:h},{x:-(t*d+e)/s,y:d}]}function rY(s,t){return t>2*s?NaN:2*Math.asin(t/2/s)}function aY(s,t){const{x1:e,y1:i,x2:n,y2:r}=s,{x1:a,y1:o,x2:l,y2:h}=t;return!(e<=a&&n<=a||e>=l&&n>=l||i<=o&&r<=o||i>=h&&r>=h)}const II=(s,t,e="top",i=0)=>{if(!s)return;const{x1:n,y1:r,x2:a,y2:o}=s,l=Math.abs(a-n),h=Math.abs(o-r),d=(t.x1+t.x2)/2,c=(t.y1+t.y2)/2;let u=0,p=0,g=0,f=0;t&&(g=Math.abs(t.x1-t.x2)/2,f=Math.abs(t.y1-t.y2)/2);const _={"top-right":-235,"top-left":235,"bottom-right":45,"bottom-left":-45};switch(e){case"top":p=-1;break;case"bottom":p=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(_[e]*(Math.PI/180)),p=Math.cos(_[e]*(Math.PI/180));break;case"center":u=0,p=0}return{x:d+u*(i+g)+Math.sign(u)*(l/2),y:c+p*(i+f)+Math.sign(p)*(h/2)}},oY=s=>{if(!s||!s.attribute)return[];const{points:t,segments:e}=s.attribute;if(e&&e.length){const i=[];return e.forEach(n=>{n.points.forEach(r=>{i.push(r)})}),i}return t};function LI(s,t,e="end",i=0){if(!s||!t)return{x:1/0,y:1/0};const{x1:n,x2:r}=s,a=Math.abs(r-n),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 lY(s,t){if(!s||!t||Cc(s,t,!0))return;const e=Math.min(s.x1,s.x2),i=Math.min(s.y1,s.y2),n=Math.min(t.x1,t.x2),r=Math.min(t.y1,t.y2),a=Math.abs(s.x2-e)/2,o=Math.abs(s.y2-i)/2,l=Math.abs(t.x2-n)/2,h=Math.abs(t.y2-r)/2,d=e+a,c=i+o,u=n+l,p=r+h,g=u-d,f=p-c;return[Sw(g,f,d,c,a,o),Sw(-g,-f,u,p,l,h)]}function Sw(s,t,e,i,n,r){return Math.abs(t/s)0?n:-n),y:i+t*n/Math.abs(s)}:{x:e+s*r/Math.abs(t),y:i+(t>0?r:-r)}}function hY(){je(),lr(),Za(),Ur()}hY();class hr extends ci{setBitmap(t){this._bitmap=t}setBitmapTool(t){this._bmpTool=t}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},hr.defaultAttributes,t)),this.name="label",this._onHover=i=>{const n=i.target;n===this._lastHover||mt(n.states)||(n.addState(We.hover,!0),Ps(this,r=>{r===n||mt(r.states)||r.addState(We.hoverReverse,!0)}),this._lastHover=n)},this._onUnHover=i=>{this._lastHover&&(Ps(this,n=>{mt(n.states)||(n.removeState(We.hoverReverse),n.removeState(We.hover))}),this._lastHover=null)},this._onClick=i=>{const n=i.target;if(this._lastSelect===n&&n.hasState("selected"))return this._lastSelect=null,void Ps(this,r=>{mt(r.states)||(r.removeState(We.selectedReverse),r.removeState(We.selected))});mt(n.states)||(n.addState(We.selected,!0),Ps(this,r=>{r===n||mt(r.states)||r.addState(We.selectedReverse,!0)}),this._lastSelect=n)},this._handleRelatedGraphicSetState=i=>{var n,r,a,o,l;if(((n=i.detail)===null||n===void 0?void 0:n.type)===we.STATE||((r=i.detail)===null||r===void 0?void 0:r.type)===we.ANIMATE_UPDATE&&(!((a=i.detail.animationState)===null||a===void 0)&&a.isFirstFrameOfStep)){const h=(l=(o=i.target)===null||o===void 0?void 0:o.currentStates)!==null&&l!==void 0?l:[];(this._isCollectionBase?[...this._graphicToText.values()]:[this._graphicToText.get(i.target)]).forEach(d=>{d&&(d.text&&d.text.useStates(h),d.labelLine&&d.labelLine.useStates(h))})}}}labeling(t,e,i,n){}_createLabelLine(t,e){const i=lY(t.AABBBounds,e==null?void 0:e.AABBBounds);if(i){const n=_t.line({points:i});return e&&e.attribute.fill&&n.setAttribute("stroke",e.attribute.fill),this.attribute.line&&!mt(this.attribute.line.style)&&n.setAttributes(this.attribute.line.style),this._setStatesOfLabelLine(n),n}}render(){if(this._prepare(),P(this._idToGraphic)||this._isCollectionBase&&P(this._idToPoint))return;const{overlap:t,smartInvert:e,dataFilter:i,customLayoutFunc:n,customOverlapFunc:r}=this.attribute;let a=this.attribute.data;N(i)&&(a=i(a));let o=this._initText(a);o=N(n)?n(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)),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&&!mt(e)&&(t.states=e)}_setStatesOfLabelLine(t){if(!t)return;const e=this.attribute.labelLineState;e&&!mt(e)&&(t.states=e)}_createLabelText(t){var e,i;const n=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 s_(n,"textType")}_prepare(){var t,e,i,n,r;const a=[];let o;if(o=N(this.attribute.getBaseMarks)?this.attribute.getBaseMarks():b8(this.getRootNode(),this.attribute.baseMarkGroupName),o.forEach(h=>{h.releaseStatus!=="willRelease"&&a.push(h)}),(t=this._idToGraphic)===null||t===void 0||t.clear(),(e=this._idToPoint)===null||e===void 0||e.clear(),this._baseMarks=a,this._isCollectionBase=this.attribute.type==="line-data",!a||a.length===0)return;const{data:l}=this.attribute;if(l&&l.length!==0){if(this._idToGraphic||(this._idToGraphic=new Map),this._isCollectionBase){this._idToPoint||(this._idToPoint=new Map);let h=0;for(let d=0;d!!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 n=0;nv.type==="bound");d&&((r=this._baseMarks)===null||r===void 0||r.forEach(v=>{v.AABBBounds&&m.setRange(vr(_,v.AABBBounds,!0))})),g.length>0&&g.forEach(v=>{at(v)?x8(this.getRootNode(),v).forEach(b=>{b.AABBBounds&&m.setRange(vr(_,b.AABBBounds,!0))}):v.AABBBounds&&m.setRange(vr(_,v.AABBBounds,!0))});for(let v=0;ve.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:n}=e;return{x1:i,x2:i,y1:n,y2:n}}_renderLabels(t){this._enableAnimation===!1||this.attribute.animation===!1?this._renderWithOutAnimation(t):this._renderWithAnimation(t)}_renderWithAnimation(t){var e;const i=new Map,n=this._graphicToText||new Map,r=[],a=[],{visible:o}=(e=this.attribute.line)!==null&&e!==void 0?e:{};t&&t.forEach((l,h)=>{const d=this.getRelatedGraphic(l.attribute),c=l.attribute.id,u=this._isCollectionBase?c:d,p=n!=null&&n.get(u)?"update":"enter";let g;if(o&&(g=this._createLabelLine(l,d)),p==="enter"){if(r.push(l),i.set(u,g?{text:l,labelLine:g}:{text:l}),d){const{from:f,to:_}=bw(l.attribute,"fadeIn");this.add(l),g&&(a.push(g),this.add(g)),this._syncStateWithRelatedGraphic(d),this._animationConfig.enter.duration>0&&d.once("animate-bind",m=>{l.setAttributes(f),g&&g.setAttributes(f);const y=this._afterRelatedGraphicAttributeUpdate(l,r,g,a,h,d,_,this._animationConfig.enter);d.on("afterAttributeUpdate",y)})}}else if(p==="update"){const f=n.get(u);n.delete(u),i.set(u,f);const _=f.text,{duration:m,easing:y}=this._animationConfig.update;J8(_,l,this._animationConfig.update),f.labelLine&&g&&f.labelLine.animate().to(g.attribute,m,y)}}),n.forEach(l=>{var h;(h=l.text)===null||h===void 0||h.animate().to(bw(l.text.attribute,"fadeOut").to,this._animationConfig.exit.duration,this._animationConfig.exit.easing).onEnd(()=>{this.removeChild(l.text),l.labelLine&&this.removeChild(l.labelLine)})}),this._graphicToText=i}_renderWithOutAnimation(t){var e;const i=new Map,n=this._graphicToText||new Map,{visible:r}=(e=this.attribute.line)!==null&&e!==void 0?e:{};t&&t.forEach(a=>{const o=this.getRelatedGraphic(a.attribute),l=n!=null&&n.get(o)?"update":"enter",h=this._isCollectionBase?a.attribute.id:o;let d;if(r&&(d=this._createLabelLine(a,o)),l==="enter")i.set(h,d?{text:a,labelLine:d}:{text:a}),this.add(a),d&&this.add(d),this._syncStateWithRelatedGraphic(o);else if(l==="update"){const c=n.get(h);n.delete(h),i.set(h,c),c.text.setAttributes(a.attribute),c.labelLine&&d&&c.labelLine.setAttributes(d.attribute)}}),n.forEach(a=>{this.removeChild(a.text),a.labelLine&&this.removeChild(a.labelLine)}),this._graphicToText=i}_syncStateWithRelatedGraphic(t){this.attribute.syncState&&t.on("afterAttributeUpdate",this._handleRelatedGraphicSetState)}_afterRelatedGraphicAttributeUpdate(t,e,i,n,r,a,o,{mode:l,duration:h,easing:d,delay:c}){const u=p=>{var g,f,_;const{detail:m}=p;if(!m)return{};const y=(g=m.animationState)===null||g===void 0?void 0:g.step;if(!(m.type===we.ANIMATE_UPDATE&&y&&!(y.type==="wait"&&((f=y.prev)===null||f===void 0?void 0:f.type)==null)))return{};if(m.type===we.ANIMATE_END)return t.setAttributes(o),void(i&&i.setAttributes(o));const v=()=>{a&&(a.onAnimateBind=void 0,a.removeEventListener("afterAttributeUpdate",u))};switch(l){case"after":m.animationState.end&&(t.animate({onStart:v}).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:v}).wait(c).to(o,h,d)}),n.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,Bc.LOCAL,(_=this.stage)===null||_===void 0?void 0:_.pickerService)||(t.animate({onStart:v}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}else m.animationState.isFirstFrameOfStep&&(t.animate({onStart:v}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}};return u}_smartInvert(t){var e,i,n,r,a;const o=Et(this.attribute.smartInvert)?this.attribute.smartInvert:{},{textType:l,contrastRatiosThreshold:h,alternativeColors:d,mode:c}=o,u=(e=o.fillStrategy)!==null&&e!==void 0?e:"invertBase",p=(i=o.strokeStrategy)!==null&&i!==void 0?i:"base",g=(n=o.brightColor)!==null&&n!==void 0?n:"#ffffff",f=(r=o.darkColor)!==null&&r!==void 0?r:"#000000",_=(a=o.outsideEnable)!==null&&a!==void 0&&a;if(u!=="null"||p!=="null")for(let m=0;mthis.getGraphicBounds(d)),n=Object.assign(Object.assign({},this.attribute.textStyle),{text:"…"}),r=this._createLabelText(n),a=this.getGraphicBounds(r),o=a.x2-a.x1,l=e.map(d=>d.attribute),h=this.layoutArcLabels(this.attribute.position,this.attribute,Array.from(this._idToGraphic.values()),l,i,o);for(let d=0;d{var g;return((g=p.refDatum)===null||g===void 0?void 0:g.id)===c.id});if(u){const p={visible:u.labelVisible,x:u.labelPosition.x,y:u.labelPosition.y,angle:u.angle,maxLineWidth:u.labelLimit,points:u.pointA&&u.pointB&&u.pointC?[u.pointA,u.pointB,u.pointC]:void 0,line:u.labelLine};e[d].setAttributes(p)}}return e}layoutArcLabels(t,e,i,n,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)}),n.forEach((c,u)=>{var p,g;const f=this._idToGraphic.get(c.id).attribute,_={x:(p=f==null?void 0:f.x)!==null&&p!==void 0?p:0,y:(g=f==null?void 0:f.y)!==null&&g!==void 0?g:0};if(!P(n[u])&&!P(r[u])){const m=n[u]?n[u]:null,y=r[u]?r[u]:{x1:0,x2:0,y1:0,y2:0},v=(f.startAngle+f.endAngle)/2,b=f.endAngle-f.startAngle,x=eY(f.endAngle-b/2),A=Bp(_.x,_.y,f.outerRadius,v),T=Bp(_.x,_.y,o+e.line.line1MinLength,v),k=new dY(m,A,T,x,b,v,f.innerRadius,f.outerRadius,_);k.pointA=Bp(_.x,_.y,this.computeDatumRadius(2*_.x,2*_.y,f.outerRadius),k.middleAngle),k.labelSize={width:y.x2-y.x1,height:y.y2-y.y1},nY(k.quadrant)?this._arcRight.set(k.refDatum,k):io(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":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 n,r;const a=e,o=a.spaceWidth,l=(n=a.position)!==null&&n!==void 0?n:"inside",h=(r=a.offsetRadius)!==null&&r!==void 0?r:-o;return t.forEach(d=>{var c,u,p;const{labelSize:g,radian:f}=d,_=d.innerRadius,m=d.outerRadius;let y;if(f=Math.PI?_:Math.max(_,g.height/2/Math.tan(f/2)),y=m-k-o}a.rotate!==!0&&(y=m-o);const v=this._getFormatLabelText(d.refDatum,y);d.labelText=v;const b=Math.min(y,d.labelSize.width),x=this._computeAlign(d,e);let A,T=0;if(l==="inside"&&(T=x==="left"?b:x==="right"?0:b/2),A=l==="inside-inner"?_-h+T:m+h-T,d.labelPosition=Bp(d.circleCenter.x,d.circleCenter.y,A,d.middleAngle),d.labelLimit=b,Ns(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=(p=a.offsetAngle)!==null&&p!==void 0?p:0;["inside-inner","inside-outer"].includes(l)&&(k+=Math.PI/2),d.angle+=k}}),t}_layoutOutsideLabels(t,e,i){var n,r,a;const o=(n=i[0].attribute.x)!==null&&n!==void 0?n:0,l=2*((r=i[0].attribute.y)!==null&&r!==void 0?r:0),h=e.line.line2MinLength,d=e.layout,c=e.spaceWidth;if(t.forEach(p=>{const g=io(p.quadrant)?-1:1;p.labelPosition={x:p.outerCenter.x+g*(p.labelSize.width/2+h+c),y:p.outerCenter.y}}),t.sort((p,g)=>p.labelPosition.y-g.labelPosition.y),e.coverEnable!==!1||d.strategy==="none"){for(const p of t){const{labelPosition:g,labelSize:f}=p;p.labelLimit=f.width,p.pointB=io(p.quadrant)?{x:g.x+f.width/2+h+c,y:g.y}:{x:g.x-f.width/2-h-c,y:g.y},this._computeX(p,e,i)}e.coverEnable===!1&&d.strategy==="none"&&this._coverLabels(t)}else{const p=l/(((a=e.textStyle)===null||a===void 0?void 0:a.fontSize)||16);this._adjustY(t,p,e,i);const{minY:g,maxY:f}=t.reduce((y,v)=>{const{y1:b,y2:x}=v.getLabelBounds();return y.minY=Math.max(0,Math.min(b,y.minY)),y.maxY=Math.min(l,Math.max(x,y.maxY)),y},{minY:1/0,maxY:-1/0}),_=Math.max(Math.abs(l/2-g),Math.abs(f-l/2)),m=this._computeLayoutRadius(_,e,i);for(const y of t)this._computePointB(y,m,e,i),this._computeX(y,e,i)}const u=2*o;return t.forEach(p=>{var g,f;p.labelVisible&&(vs(p.pointB.x,h+c)||Ns(p.pointB.x,u-h-c))&&(p.labelVisible=!1),p.angle=(f=(g=e.textStyle)===null||g===void 0?void 0:g.angle)!==null&&f!==void 0?f:0,e.offsetAngle&&(p.angle+=e.offsetAngle),p.labelLine=Object.assign({},e.line)}),t}_computeX(t,e,i){var n;const r=t.circleCenter,a=2*r.x;r.y;let o=0;i.forEach(T=>{T.attribute.outerRadius>o&&(o=T.attribute.outerRadius)});const l=this.computeLayoutOuterRadius(o,e.width,e.height),h=e.line.line1MinLength,d=e.line.line2MinLength,c=(n=e.layout)===null||n===void 0?void 0:n.align,u=e.spaceWidth,{labelPosition:p,quadrant:g,pointB:f}=t;W(f.x*f.y)||(t.pointC={x:NaN,y:NaN},p.x=NaN,t.labelLimit=0);const _=this.computeRadius(l,e.width,e.height),m=io(g)?-1:1;let y=0,v=(m>0?a-f.x:f.x)-d-u;c==="labelLine"&&(y=(_+h+d)*m+r.x,v=(m>0?a-y:y)-u);const b=this._getFormatLabelText(t.refDatum,v);t.labelText=b;let x=Math.min(v,t.labelSize.width);switch(c){case"labelLine":break;case"edge":y=m>0?a-x-u:x+u;break;default:y=f.x+m*d}x=Math.max(this._ellipsisWidth,x),t.labelLimit=x,t.pointC={x:y,y:p.y};const A=.5*(t.labelLimit0?a+0:0)-m*A:p.x=y+0+m*(u+A)}_computeAlign(t,e){var i,n,r,a,o,l;const h=e,d=(n=(i=h.textStyle)===null||i===void 0?void 0:i.textAlign)!==null&&n!==void 0?n:(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"?io(t.quadrant)?"left":"right":io(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,n){var r;n[0].attribute.x;const a=2*((r=n[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,f)}else if(g!==-1&&f===-1){const x=_.labelPosition.y;pA?(u.labelPosition.y=A-m.labelSize.height/2-u.labelSize.height/2,this._twoWayShift(t,_,u,l[c].originIndex)):p=0&&o0&&hc)return a}a=o}return i}_findNextVisibleIndex(t,e,i,n){const r=(i-e)*n;for(let a=1;a<=r;a++){const o=e+a*n;if(t[o].labelVisible)return o}return-1}_computePointB(t,e,i,n){const r=i;let a=0;n.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,p=e-Math.max(d+l,t.outerRadius),g=Math.sqrt(e**2-Math.abs(h.y-c.y)**2)-p;W(g)?t.pointB={x:h.x+g*(io(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 n=t.circleCenter,r={width:2*n.x,height:2*n.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),p=Math.abs(t.center.x-h/2),g=t.center.y-d/2;let f,_,m;if(Qi(h/2,p))f=0,_=1,m=-g;else if(Qi(d/2,g))f=1,_=0,m=-p;else{const x=-1/(g/p);f=x,_=-1,m=g-x*p}const y=sY(f,_,m,l+c-u,0,u);if(y.length<2)return;let v,b;y[0].x>y[1].x&&y.reverse(),y[0].x<0?Qi(y[0].y,y[1].y)?Ns(t.middleAngle,-Math.PI)&&vs(t.middleAngle,0)||Ns(t.middleAngle,Math.PI)&&vs(t.middleAngle,2*Math.PI)?(v=0,b=y[1].y+d/2):(v=y[1].y+d/2,b=d):y[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 n=-1,r=-1;for(let a=i-1;a>=0;a--)if(t[a].labelVisible){n=a;break}for(let a=i+1;a{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()})}}$m.defaultAttributes={pickable:!1};function NS(){je(),Ur(),Om(),ds()}function US(){je(),Ur(),Lh(),ds()}NS();class Hr extends ci{getStartAngle(){return this._startAngle}getEndAngle(){return this._endAngle}getMainSegmentPoints(){return this._mainSegmentPoints}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Hr.defaultAttributes,t)),this.name="segment",this.key="segment",this.lines=[]}render(){this.removeAllChild(!0),this._reset();const{startSymbol:t,endSymbol:e,lineStyle:i,state:n,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(W(o))c[o]=this._clipPoints(c[o]);else{const u=this._clipPoints(ry(c));c[0][0]=u[0],c[c.length-1][c[c.length-1].length-1]=u[u.length-1]}c.forEach((u,p)=>{var g,f;const _=_t.line(Object.assign(Object.assign({points:u},G(i)?(g=i[p])!==null&&g!==void 0?g:i[i.length-1]:i),{fill:!1}));_.name=`${this.name}-line`,_.id=this._getNodeId("line"+p),mt(n==null?void 0:n.line)||(_.states=G(n.line)?(f=n.line[p])!==null&&f!==void 0?f:n.line[n.line.length-1]:n.line),this.add(_),this.lines.push(_)})}else{let c=_t.line;V(i)[0].cornerRadius&&(c=_t.polygon);const u=c(Object.assign(Object.assign({points:this._clipPoints(this.attribute.points)},V(i)[0]),{fill:!1,closePath:!1}));u.name=`${this.name}-line`,u.id=this._getNodeId("line"),mt(n==null?void 0:n.line)||(u.states=[].concat(n.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:n=!0}=t;let r;if(t&&t.visible){const a=this._startAngle,o=this._endAngle,{state:l}=this.attribute,h=e[0],d=e[e.length-1],{refX:c=0,refY:u=0,refAngle:p=0,style:g,symbolType:f,size:_=12}=t;let m,y;i==="start"?(m={x:h.x+(W(a)?c*Math.cos(a)+u*Math.cos(a-Math.PI/2):0),y:h.y+(W(a)?c*Math.sin(a)+u*Math.sin(a-Math.PI/2):0)},y=this._computeStartRotate(a)):(m={x:d.x+(W(o)?c*Math.cos(o)+u*Math.cos(o-Math.PI/2):0),y:d.y+(W(o)?c*Math.sin(o)+u*Math.sin(o-Math.PI/2):0)},y=this._computeEndRotate(o)),r=_t.symbol(Object.assign(Object.assign(Object.assign({},m),{symbolType:f,size:_,angle:n?y+p:0,strokeBoundsBuffer:0}),g)),r.name=`${this.name}-${i}-symbol`,r.id=this._getNodeId(`${i}-symbol`),mt(l==null?void 0:l.symbol)||(r.states=l.symbol),i==="start"?mt(l==null?void 0:l.startSymbol)||(r.states=l.startSymbol):mt(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 n;return n=e?W(i)?t[i]:ry(t):t,this._mainSegmentPoints=n,n}_clipPoints(t){const{startSymbol:e={},endSymbol:i={}}=this.attribute;let n=t;if(e.visible){const r=e.clip?e.size||10:0;n=[{x:t[0].x-r/2*(Math.cos(this._startAngle)||0),y:t[0].y-r/2*(Math.sin(this._startAngle)||0)},...n.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)};n=[...n.slice(0,n.length-1),a]}return n}_computeLineAngle(){const t=this._getMainSegmentPoints();if(t.length<=1)return;const e=t[0],i=t[1],n=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-n.x,r.y-n.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}}Hr.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}}};US();class dx extends Hr{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Hr.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>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>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:n,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"),p=this._renderSymbol(e,this._mainSegmentPoints,"end");this.startSymbol=u,this.endSymbol=p;const g=_t.arc(Object.assign({x:h.x,y:h.y,startAngle:o,endAngle:l,innerRadius:a,outerRadius:a},i));g.name=`${this.name}-line`,g.id=this._getNodeId("arc"),mt(n==null?void 0:n.line)||(g.states=[].concat(n.line)[0]),this.add(g),this.line=g}}var Ni;(function(s){s.innerView="inner-view",s.axisContainer="axis-container",s.labelContainer="axis-label-container",s.tickContainer="axis-tick-container",s.tick="axis-tick",s.subTick="axis-sub-tick",s.label="axis-label",s.title="axis-title",s.gridContainer="axis-grid-container",s.grid="axis-grid",s.gridRegion="axis-grid-region",s.line="axis-line",s.background="axis-background",s.axisLabelBackground="axis-label-background"})(Ni||(Ni={}));var Hl;(function(s){s.selected="selected",s.selectedReverse="selected_reverse",s.hover="hover",s.hoverReverse="hover_reverse"})(Hl||(Hl={}));const $s={[Hl.selectedReverse]:{},[Hl.selected]:{},[Hl.hover]:{},[Hl.hoverReverse]:{}},r_={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}}},Aw=(s=0)=>{if(s<0)for(;s<0;)s+=li;else if(s>0)for(;s>li;)s-=li;return s};function Ip(s,t,e){return!vs(s,t,0,1e-6)&&!Ns(s,e,0,1e-6)}function FI(s,t,e,i){const n=Bh(Object.assign({text:e},i)),r=n.width(),a=n.height(),o=Aw(Math.atan2(t[1],t[0]))-Math.PI,l=3*Math.PI/4,h=Math.PI/4,d=Math.PI/2,c=s.x;let u=0;u=Ip(o,-l,-h)?((o+l)/d-.5)*r:Ip(o,h,l)?(.5-(o-h)/d)*r:Math.cos(o)>=0?.5*r:.5*-r;const p=c-u,g=s.y;let f=0;return f=Ip(o,-l,-h)?.5*-a:Ip(o,h,l)?.5*a:Math.cos(o)>=0?(.5-(h-o)/d)*a:(.5-Aw(o-l)/d)*a,{x:p,y:g-f}}function zI(s){const t={};return Ps(s,e=>{e.type!=="group"&&e.id&&(t[e.id]=e)}),t}function $S(s,t){return{x:s.x+t[0],y:s.y+t[1]}}function cx(s,t,e,i=!1,n=!1){const r=[t.x-e.x,t.y-e.y];return wI(r,(i?-1:1)*(n?-1:1)*s/T8(r))}const HI=(s,t,e)=>{const i=s.target;return i!==e&&i.name&&!mt(i.states)?(i.addState(We.hover,!0),Ps(t,n=>{n!==i&&n.name&&!mt(n.states)&&n.addState(We.hoverReverse,!0)}),i):e},jI=(s,t,e)=>e&&(Ps(t,i=>{i.name&&!mt(i.states)&&(i.removeState(We.hoverReverse),i.removeState(We.hover))}),null),VI=(s,t,e)=>{const i=s.target;return e===i&&i.hasState(We.selected)?(Ps(t,n=>{n.name&&!mt(n.states)&&(n.removeState(We.selectedReverse),n.removeState(We.selected))}),null):i.name&&!mt(i.states)?(i.addState(We.selected,!0),Ps(t,n=>{n!==i&&n.name&&!mt(n.states)&&n.addState(We.selectedReverse,!0)}),i):e};class WI extends ci{constructor(){super(...arguments),this.name="axis",this.data=[],this.tickLineItems=[],this.subTickLineItems=[],this.axisLabelLayerSize={},this.axisLabelsContainer=null,this._onHover=t=>{this._lastHover=HI(t,this.axisContainer,this._lastHover)},this._onUnHover=t=>{this._lastHover=jI(t,this.axisContainer,this._lastHover)},this._onClick=t=>{this._lastSelect=VI(t,this.axisContainer,this._lastSelect)}}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}getBoundsWithoutRender(t){const e=pn(this.attribute);U(this.attribute,t);const i=_t.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&&zI(this._innerView),this.removeAllChild(!0),this._innerView=_t.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:n,line:r,items:a}=this.attribute,o=_t.group({x:0,y:0,zIndex: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]),n&&n.visible&&this.renderTicks(o),i&&i.visible)){const l=_t.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 p=0,g=0,f="center",_="middle";u.forEach(m=>{var y;const v=m.attribute,b=(y=v.angle)!==null&&y!==void 0?y:0,x=m.AABBBounds;let A=x.width(),T=x.height();b&&(A=Math.abs(A*Math.cos(b)),T=Math.abs(T*Math.sin(b))),p=Math.max(p,A),g=Math.max(g,T),f=v.textAlign,_=v.textBaseline}),this.axisLabelLayerSize[d]={width:p,height:g,textAlign:f,textBaseline:_}})}e&&e.visible&&this.renderTitle(o)}renderTicks(t){const e=this.getTickLineItems(),i=_t.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=_t.line(Object.assign({},this._getTickLineAttribute("tick",r,a,e)));if(l.name=Ni.tick,l.id=this._getNodeId(r.id),mt((o=this.attribute.tick)===null||o===void 0?void 0:o.state))l.states=Rt;else{const h=this.data[a],d=U({},Rt,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:n}=this.attribute;if(n&&n.visible){const r=this.getSubTickLineItems();r.length&&r.forEach((a,o)=>{const l=_t.line(Object.assign({},this._getTickLineAttribute("subTick",a,o,e)));if(l.name=Ni.subTick,l.id=this._getNodeId(`${o}`),mt(n.state))l.states=Rt;else{const h=U({},Rt,n.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:n}=this.attribute.label;n&&N(n)&&(e=n(e,i));const r=this._transformItems(e),a=_t.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=s_(d);if(c.name=Ni.label,c.id=this._getNodeId(`layer${i}-label-${o.id}`),mt((h=this.attribute.label)===null||h===void 0?void 0:h.state))c.states=Rt;else{const u=U({},Rt,this.attribute.label.state);Object.keys(u).forEach(p=>{N(u[p])&&(u[p]=u[p](o,l,r,i))}),c.states=u}a.add(c)}),a}renderTitle(t){const e=this.getTitleAttribute(),i=new cs(Object.assign({},e));i.name=Ni.title,i.id=this._getNodeId("title"),t.add(i)}getVerticalCoord(t,e,i){return $S(t,this.getVerticalVector(e,i,t))}getTextAlign(t){let e="center";return Qi(t[0],0)?Qi(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}getTickLineItems(){const{tick:t}=this.attribute,e=this.data,i=[],{alignWithLabel:n,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(!n){const p=h.value-l/2;if(this.isInValidValue(p))return;d=this.getTickCoord(p),c=p}const u=this.getVerticalCoord(d,a,r);if(this.mode==="3d"){const p=this.getVerticalVector(a,r,d);let g=0,f=0;Ut(p[0])>Ut(p[1])?g=ee/2*(u.x>d.x?1:-1):f=ee/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:g,beta:f})}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:n=!1,length:r=2}=t,a=this.tickLineItems,o=a.length;if(o>=2)for(let l=0;l0&&(g[1]===0?u+=(this.axisLabelLayerSize[n-1].height+Pt(this.attribute,"label.space",4))*n:u+=(this.axisLabelLayerSize[n-1].width+Pt(this.attribute,"label.space",4))*n);const f=this.getVerticalCoord(t.point,u,l),_=this.getVerticalVector(u||1,l,f),m=h?h(`${t.label}`,t,e,i,n):t.label;let{style:y}=this.attribute.label;y=N(y)?U({},r_.label.style,y(t,e,i,n)):y;const v=this.getLabelAlign(_,l,y.angle);return y=U(v,y),N(y.text)&&(y.text=y.text({label:t.label,value:t.rawValue,index:t.index,layer:n})),Object.assign(Object.assign(Object.assign({},this.getLabelPosition(f,_,m,y)),{text:c??m,_originText:t.label,lineHeight:y==null?void 0:y.fontSize,type:d}),y)}getLabelPosition(t,e,i,n){return t}_transformItems(t){const e=[];return t.forEach(i=>{var n;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(n=i.id)!==null&&n!==void 0?n:i.label}))}),e}release(){super.release(),this._prevInnerView=null,this._innerView=null}}function uY(s,t,e,i,n){return{x:(s-i)*Math.cos(e)+(t-n)*Math.sin(e)+i,y:(s-i)*Math.sin(e)+(n-t)*Math.cos(e)+n}}function pY(s){const t=s.AABBBounds;return{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,centerX:s.attribute.x,centerY:s.attribute.y,angle:s.attribute.angle}}function GI(s){s.forEach(t=>{if(t.rotatedBounds||!t.attribute.angle)return;const e=pY(t),i=uY(e.centerX,e.centerY,e.angle,t.attribute.x,t.attribute.y),n=i.x-e.centerX,r=i.y-e.centerY;e.x1+=n,e.x2+=n,e.y1+=r,e.y2+=r,e.centerX+=n,e.centerY+=r,t.rotatedBounds=e})}function gY(s,t){return Cc(s.AABBBounds,t.AABBBounds,!1)&&(!s.rotatedBounds||!t.rotatedBounds||E3(s.rotatedBounds,t.rotatedBounds,!0))}const kw={parity:function(s){return s.filter((t,e)=>e%2?t.setAttribute("opacity",0):1)},greedy:function(s,t){let e;return s.filter((i,n)=>n&&YS(e,i,t)?i.setAttribute("opacity",0):(e=i,1))}};function YS(s,t,e){const i=s.AABBBounds,n=t.AABBBounds;return e>Math.max(n.x1-i.x2,i.x1-n.x2,n.y1-i.y2,i.y1-n.y2)&&(!s.rotatedBounds||!t.rotatedBounds||e>Math.max(t.rotatedBounds.x1-s.rotatedBounds.x2,s.rotatedBounds.x1-t.rotatedBounds.x2,t.rotatedBounds.y1-s.rotatedBounds.y2,s.rotatedBounds.y1-t.rotatedBounds.y2))}function Tw(s,t){for(let e,i=1,n=s.length,r=s[0];i1&&t.height()>1}function _Y(s){return s.forEach(t=>t.setAttribute("opacity",1)),s}function mY(s,t){if(mt(s))return;const e=s.filter(fY);if(mt(e))return;let i;i=_Y(e),GI(i);const{method:n="parity",separation:r=0}=t,a=N(n)?n:kw[n]||kw.parity;if(i.length>=3&&Tw(i,r)){do i=a(i,r);while(i.length>=3&&Tw(i,r));if(i.length<3||t.lastVisible){const o=Aa(e);if(!o.attribute.opacity){const l=i.length;if(l>1){o.setAttribute("opacity",1);for(let h=l-1;h>=0&&YS(i[h],o,r);h--)i[h].setAttribute("opacity",0)}}}}e.forEach(o=>{o.setAttribute("visible",!!o.attribute.opacity)})}function vY(s,t){if(mt(s))return;const{orient:e,labelRotateAngle:i=[0,45,90]}=t;if(i.length===0||s.some(a=>!!a.attribute.angle))return;let n=0,r=0;for(i&&i.length>0&&(r=i.length);n{o.attribute.angle=Qt(a)}),bY(e,s),!yY(s))break}}function yY(s){for(let t=1;t0)for(;s>=2*Math.PI;)s-=2*Math.PI;return s}function xY(s,t){t.forEach((e,i)=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},UI(s,e.attribute.angle)),{angle:Ym(e.attribute.angle)}))})}function SY(s,t){t.forEach(e=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},NI(s,e.attribute.angle)),{angle:Ym(e.attribute.angle)}))})}function NI(s,t=0){let e=["center","left","left","left","center","right","right","right","left"],i=["top","top","middle","bottom","bottom","bottom","middle","top","top"];s==="top"&&(e=["center","right","right","right","center","left","left","left","right"],i=["bottom","bottom","middle","top","top","top","middle","bottom","bottom"]);const n=(t=Ym(t))/(.5*Math.PI);let r;return r=n===Math.floor(n)?2*Math.floor(n):2*Math.floor(n)+1,{textAlign:e[r],textBaseline:i[r]}}function UI(s,t=0){let e=["right","right","center","left","center","left","center","right","right"],i=["middle","middle","top","top","middle","middle","bottom","bottom","middle"];s==="right"&&(e=["left","right","right","right","left","left","left","left","right"],i=["middle","bottom","middle","top","top","top","middle","bottom","bottom"]);const n=(t=Ym(t))/(.5*Math.PI);let r;return r=n===Math.floor(n)?2*Math.floor(n):2*Math.floor(n)+1,{textAlign:e[r],textBaseline:i[r]}}function AY(s,t){const{limitLength:e,verticalLimitLength:i,ellipsis:n="...",orient:r,axisLength:a}=t;if(mt(s)||!W(e))return;const o=Math.sin(Math.PI/10);s.forEach(l=>{var h;const d=l.attribute.angle,c=!P(d),u=c?Math.cos(d):1,p=c?Math.sin(d):0,g=!c||Math.abs(p)<=o,f=c&&Math.abs(u)<=o,_=r==="top"||r==="bottom";if(_&&(f&&Math.floor(l.AABBBounds.height())<=e||g&&Math.floor(l.AABBBounds.width())<=i))return;const m=l.attribute.direction;if(!_&&(m==="vertical"&&Math.floor(l.AABBBounds.height())<=i||m!=="vertical"&&(g&&Math.floor(l.AABBBounds.width())<=e||f&&Math.floor(l.AABBBounds.height())<=i)))return;let y=null;if(g||f)y=_?g?i:e:m==="vertical"||f?i:e;else if(_){const{x1:v,x2:b}=l.AABBBounds,x=p/u;y=x>0&&v<=a&&e/x+v>a?(a-v)/Math.abs(u):x<0&&b>=0&&e/x+b<0?b/Math.abs(u):Math.abs(e/p)}else y=Math.abs(e/u);W(l.attribute.maxLineWidth)&&(y=W(y)?Math.min(l.attribute.maxLineWidth,y):l.attribute.maxLineWidth),l.setAttributes({maxLineWidth:y,ellipsis:(h=l.attribute.ellipsis)!==null&&h!==void 0?h:n})})}function kY(s,t,e,i,n){if(i==="right"||i==="left"){if(n==="left"){const r=i==="right"?0:-1;s.forEach(a=>{a.setAttributes({x:t+e*r,textAlign:"left"})})}else if(n==="right"){const r=i==="right"?1:0;s.forEach(a=>{a.setAttributes({x:t+e*r,textAlign:"right"})})}else if(n==="center"){const r=i==="right"?1:-1;s.forEach(a=>{a.setAttributes({x:t+.5*e*r,textAlign:"center"})})}}else if(i==="bottom"||i==="top"){if(n==="top"){const r=i==="bottom"?0:-1;s.forEach(a=>{a.setAttributes({y:t+e*r,textBaseline:"top"})})}else if(n==="bottom"){const r=i==="bottom"?1:0;s.forEach(a=>{a.setAttributes({y:t+e*r,textBaseline:"bottom"})})}else if(n==="middle"){const r=i==="bottom"?1:-1;s.forEach(a=>{a.setAttributes({y:t+.5*e*r,textBaseline:"middle"})})}}}class $I{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:n=1}=this.attribute,r=this.getRelativeVector(),a=M8(r),o=[a[1],-1*a[0]];return wI(o,t*(e?1:-1)*n)}}function YI(){je(),Ur(),Za(),lr()}function TY(){YI(),$r()}function MY(){YI(),g8()}function wY(){je(),zu()}function CY(){je(),zu()}var Mw=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{v+=this.axisLabelLayerSize[K].width+(et>0?I:0)});const B=this.axisLabelLayerSize[0].textAlign,L=B==="start"||B==="left",F=B==="center",z=y[1]>0;v=_===1?z?L?v:F?v/2:I:L?I:F?v/2:v:z?L?I:F?v/2:v:L?v:F?v/2:I}}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+v+a,A=this.getVerticalCoord(m,x,!1),T=this.getVerticalVector(x,!1,{x:0,y:0});let k,M,{angle:w}=p;if(k=r==="start"?"start":r==="end"?"end":"center",P(w)&&l){w=P8(y,[1,0],!0);const{verticalFactor:I=1}=this.attribute;M=-1*I===1?"bottom":"top"}else k=this.getTextAlign(T),M=this.getTextBaseline(T,!1);let C=u;if(P(C)){const{verticalLimitSize:I,verticalMinSize:O,orient:B}=this.attribute,L=Math.min(I||1/0,O||1/0);if(W(L))if(B==="bottom"||B==="top")if(w!==Math.PI/2){const F=Math.abs(Math.cos(w??0));C=F<1e-6?1/0:this.attribute.end.x/F}else C=L-x;else if(w&&w!==0){const F=Math.abs(Math.sin(w));C=F<1e-6?1/0:this.attribute.end.y/F}else C=L-x}const R=Object.assign(Object.assign(Object.assign({},A),p),{maxWidth:C,textStyle:Object.assign({textAlign:k,textBaseline:M},o),state:{text:U({},$s,c.text),shape:U({},$s,c.shape),panel:U({},$s,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:n=1}=this.attribute,r=(e?1:-1)*n;return Qi(t[1],0)?i=!Qi(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 n=this.attribute.orient;if(["top","bottom","right","left"].includes(n)||t[0]===0&&t[1]===0){if(n==="top"||n==="bottom")return NI(e?n==="bottom"?"top":"bottom":n,i);if(n==="left"||n==="right")return UI(e?n==="left"?"right":"left":n,i)}return{textAlign:this.getTextAlign(t),textBaseline:this.getTextBaseline(t,e)}}beforeLabelsOverlap(t,e,i,n,r){var a,o,l,h;const{flush:d=!1}=this.attribute.label||{};if(d&&t.length){const{orient:c,start:u,end:p}=this.attribute,g=c==="bottom"||c==="top",f=t[0],_=Aa(t),m=g?f.attribute.x>_.attribute.x:f.attribute.y<_.attribute.y;if(g){const y=m?_:f,v=m?f:_,b=u.x,x=p.x,A=y.AABBBounds.x1,T=v.AABBBounds.x2;Ax&&(v.attribute.angle?v.setAttributes({dx:((o=v.attribute.dx)!==null&&o!==void 0?o:0)+x-T}):v.setAttributes({x,textAlign:"right"}))}else{const y=m?_:f,v=m?f:_,b=y.AABBBounds.y2,x=v.AABBBounds.y1,A=u.y,T=p.y;xT&&(y.attribute.angle?y.setAttributes({dy:((h=y.attribute.dy)!==null&&h!==void 0?h:0)+T-b}):y.setAttributes({y:T,textBaseline:"bottom"}))}}}handleLabelsOverlap(t,e,i,n,r){if(mt(t))return;const{verticalLimitSize:a,label:o,orient:l}=this.attribute,h=this._getAxisLabelLimitLength(a,r),{layoutFunc:d,autoRotate:c,autoRotateAngle:u,autoLimit:p,limitEllipsis:g,autoHide:f,autoHideMethod:_,autoHideSeparation:m,lastVisible:y}=o;if(N(d))d(t,e,n,this);else{if(c&&vY(t,{labelRotateAngle:u,orient:l}),p&&W(h)&&h>0){const v=l==="left"||l==="right",b=Math.abs(v?this.attribute.start.y-this.attribute.end.y:this.attribute.start.x-this.attribute.end.x),x=v?b/t.length:f||c?1/0:b/t.length;AY(t,{limitLength:h,verticalLimitLength:x,ellipsis:g,orient:l,axisLength:b})}f&&mY(t,{orient:l,method:_,separation:m,lastVisible:y})}}afterLabelsOverlap(t,e,i,n,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(W(c)&&(!W(a)||c<=a)){const u=this._getAxisLabelLimitLength(c,r);let p,g;d=Math.max(d,u),o==="left"?(p=h.x2-d,g=h.y1):o==="right"?(p=h.x1,g=h.y1):o==="top"?(p=h.x1,g=h.y2-d):o==="bottom"&&(p=h.x1,g=h.y1);const f=_t.rect({x:p,y:g,width:l?h.width():d,height:l?d:h.height(),pickable:!1});f.name=Ni.axisLabelBackground,f.id=this._getNodeId("axis-label-background"),i.insertBefore(f,i.firstChild)}if(E(this.attribute.label.containerAlign)){let u;o==="left"?u=h.x2:o==="right"?u=h.x1:o==="top"?u=h.y2:o==="bottom"&&(u=h.y1),kY(t,u,d,o,this.attribute.label.containerAlign)}}_getAxisLabelLimitLength(t,e){var i,n,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 p=t,g=0,f=0;const _=d&&d.visible?(n=d.style.lineWidth)!==null&&n!==void 0?n:1:0,m=c&&c.visible?(r=c.length)!==null&&r!==void 0?r:4:0;if(h&&h.visible&&typeof h.text=="string"){g=Dm(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 y=fn(h.padding);f=h.space+y[0]+y[2]}return p&&(p=(p-u-f-g-_-m)/e),p}}Xc.defaultAttributes=r_,ei(Xc,$I);class XI{isInValidValue(t){const{startAngle:e=ph,endAngle:i=gh}=this.attribute;return Math.abs(i-e)%(2*Math.PI)==0?t>1:t<0||t>1}getTickCoord(t){const{startAngle:e=ph,endAngle:i=gh,center:n,radius:r,inside:a=!1,innerRadius:o=0}=this.attribute;return gn(n,a&&o>0?o:r,e+(i-e)*t)}getVerticalVector(t,e=!1,i){return cx(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)]}}var PY=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n0&&(h=a,d=0);const c=Object.assign(Object.assign(Object.assign({},r),{startAngle:e,endAngle:i,radius:h,innerRadius:d}),o.style),u=_t.circle(c);u.name=Ni.line,u.id=this._getNodeId("line"),mt(o.state)||(u.states=U({},$s,o.state)),t.add(u)}getTitleAttribute(){var t,e,i;const{center:n,radius:r,innerRadius:a=0}=this.attribute,o=this.attribute.title,{space:l=4,textStyle:h={},shape:d,background:c,state:u={}}=o,p=PY(o,["space","textStyle","shape","background","state"]);let g=n,f=0;!((t=this.attribute.label)===null||t===void 0)&&t.visible&&this.attribute.label.inside===!1&&(f=Pt(this.attribute.label,"style.fontSize",12)+Pt(this.attribute.label,"space",4));let _=0;!((e=this.attribute.tick)===null||e===void 0)&&e.visible&&this.attribute.tick.inside===!1&&(_=this.attribute.tick.length||4),!((i=this.attribute.subTick)===null||i===void 0)&&i.visible&&this.attribute.subTick.inside===!1&&(_=Math.max(_,this.attribute.subTick.length||2));const m=r+_+f+l;let y="middle",{position:v}=this.attribute.title;P(v)&&(v=a===0?"end":"middle"),v==="start"?(y="bottom",g={x:n.x,y:n.y-m}):v==="end"&&(y="top",g={x:n.x,y:n.y+m});const b=Object.assign(Object.assign(Object.assign({},g),p),{textStyle:Object.assign({textBaseline:y,textAlign:"center"},h),state:{text:U({},$s,u.text),shape:U({},$s,u.shape),panel:U({},$s,u.background)}}),{angle:x}=p;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,n=[],{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&&t[1]>Math.abs(t[0])?e="top":t[1]<0&&Math.abs(t[1])>Math.abs(t[0])&&(e="bottom"),e}beforeLabelsOverlap(t,e,i,n,r){}handleLabelsOverlap(t,e,i,n,r){}afterLabelsOverlap(t,e,i,n,r){}getLabelAlign(t,e,i){return{textAlign:"center",textBaseline:"middle"}}getLabelPosition(t,e,i,n){return FI(t,e,i,n)}}Kc.defaultAttributes=r_,ei(Kc,XI);class EY extends mn{constructor(){super(...arguments),this.mode=oh.NORMAL}onBind(){const t=this.target.getInnerView(),e=this.target.getPrevInnerView();e&&(this._newElementAttrMap={},Ps(t,i=>{var n,r,a,o,l,h;if(i.type!=="group"&&i.id){const d=e[i.id];if(d){if(!be(i.attribute,d.attribute)){const c=pn(i.attribute);this._newElementAttrMap[i.id]={state:"update",node:i,attrs:Object.assign(Object.assign({},c),{opacity:(n=c.opacity)!==null&&n!==void 0?n: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;Object.keys(this._newElementAttrMap).forEach(i=>{var n;const{node:r,attrs:a,state:o}=this._newElementAttrMap[i];if(o==="enter"){const{enter:l={}}=(n=this.params)!==null&&n!==void 0?n:{};t=W(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=v3(d,c)(h),!0)}).to(a,t,e):r.animate().to(a,t,e)})}onUpdate(t,e,i){}}class RY extends mn{constructor(t,e,i,n){super(null,null,i,n)}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}})}}function jl(s,t){let e="";return s.length===0||(s.forEach((i,n)=>{n===0?e=`M${i.x},${i.y}`:e+=`L${i.x},${i.y}`}),t&&(e+="Z")),e}function ux(s,t,e,i){let n="";if(!s||t.length===0)return n;const r=t[0],a=Ce.distancePP(s,r),o=e?0:1;return i?n+=`M${s.x},${s.y-a}A${a},${a},0,0,${o},${s.x},${s.y+a}A${a},${a},0,0,${o},${s.x},${s.y-a}Z`:t.forEach((l,h)=>{h===0?n=`M${l.x},${l.y}`:n+=`A${a},${a},0,0,${o},${l.x},${l.y}`}),n}function BY(s,t,e){const{type:i,closed:n}=e,r=t.slice(0).reverse();let a="",o="";if(i==="line"&&e.smoothLink&&e.center){const l=s[0],h=r[0],d=e.center;a=jl(s,!!n),o=jl(r,!!n);const c=Ce.distancePP(h,d),u=Ce.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=ux(l,s,!1,!!n),o=ux(l,r,!0,!!n)}else i!=="line"&&i!=="polygon"||(a=jl(s,!!n),o=jl(r,!!n));return n?a+=o:(o="L"+o.substring(1),a+=o,a+="Z"),a}class Na extends ci{constructor(){super(...arguments),this.name="axis-grid",this.data=[]}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}render(){this._prevInnerView=this._innerView&&zI(this._innerView),this.removeAllChild(!0),this._innerView=_t.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 $S(t,this.getVerticalVector(e,i,t))}_transformItems(t){const e=[];return t.forEach(i=>{var n;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(n=i.id)!==null&&n!==void 0?n: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=U({},this.attribute,this.getGridAttribute(t)),{type:n,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:p,points:g}=c;let f="";if(n==="line"||n==="polygon")f=jl(g,!!o);else if(n==="circle"){const{center:m}=this.attribute;f=ux(m,g,!1,!!o)}const _=_t.path(Object.assign({path:f,z:h},N(a)?U({},this.skipDefault?null:Na.defaultAttributes.style,a(c,u)):a));_.name=`${d}-line`,_.id=this._getNodeId(`${d}-path-${p}`),e.add(_)}),h&&n==="line"&&r.forEach((c,u)=>{const{id:p,points:g}=c,f=[];f.push(g[0]);const _=g[1].x-g[0].x,m=g[1].y-g[0].y,y=Math.sqrt(_*_+m*m),v=h/y;f.push({x:g[0].x+_*v,y:g[0].y+m*v});const b=jl(f,!!o),x=Ut(f[0].x-f[1].x),A=Ut(f[0].y-f[1].y),T=_t.path(Object.assign({path:b,z:0,alpha:x>A?(g[1].x-g[0].x>0?-1:1)*ee/2:0,beta:xA?[f[0].x,0]:[0,f[0].y]},N(a)?U({},this.skipDefault?null:Na.defaultAttributes.style,a(c,u)):a));T.name=`${d}-line`,T.id=this._getNodeId(`${d}-path-${p}`),e.add(T)}),r.length>1&&l){const c=G(l)?l:[l,"transparent"],u=p=>c[p%c.length];for(let p=0;p=2&&(n=this.data[1].value-this.data[0].value);let a=[];if(t){r=U({},this.attribute,this.attribute.subGrid);const o=[],{count:l=4}=this.attribute.subGrid||{};if(this.data.length>=2){const h=[];this.data.forEach(d=>{let c=d.value;if(!i){const u=d.value-n/2;if(this.isInValidValue(u))return;c=u}h.push({value:c})});for(let d=0;d{let{point:h}=l;if(!i){const d=l.value-n/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})}}ei(KI,$I);var LY=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n=2&&(g=this.data[1].value-this.data[0].value),t){e=U({},c,d);const f=[],{count:_=4}=d||{},m=this.data.length;if(m>=2){const y=[];this.data.forEach(v=>{let b=v.value;if(!u){const x=v.value-g/2;if(this.isInValidValue(x))return;b=x}y.push({value:b})});for(let v=0;v{let{point:y}=m;if(!u){const b=m.value-g/2;if(this.isInValidValue(b))return;y=this.getTickCoord(b)}const v=this.getVerticalCoord(y,p,!0);f.push({id:m.id,points:[y,v],datum:m})}),i=f}return Object.assign(Object.assign({},e),{items:i,center:h,type:"line"})}}ei(qI,XI);const ww="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",OY={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:ww,fill:"white",stroke:"#B0C8F9",lineWidth:.5},endHandlerStyle:{visible:!0,triggerMinSize:0,symbolType:ww,fill:"white",stroke:"#B0C8F9",lineWidth:.5},startTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}},endTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}}},ta={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 an;(function(s){s.startHandler="startHandler",s.endHandler="endHandler",s.middleHandler="middleHandler",s.background="background"})(an||(an={}));function DY(){Fm(),$r(),ds(),AI(),Ur()}var Cw=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);nr,this._onHandlerPointerDown=(r,a)=>{r.stopPropagation(),a==="start"?(this._activeTag=an.startHandler,this._activeItem=this._startHandlerMask):a==="end"?(this._activeTag=an.endHandler,this._activeItem=this._endHandlerMask):a==="middleRect"?(this._activeTag=an.middleHandler,this._activeItem=this._middleHandlerRect):a==="middleSymbol"?(this._activeTag=an.middleHandler,this._activeItem=this._middleHandlerSymbol):a==="background"&&(this._activeTag=an.background,this._activeItem=this._background),this._activeState=!0,this._activeCache.startPos=this.eventPosToStagePos(r),this._activeCache.lastPos=this.eventPosToStagePos(r),Ot.env==="browser"&&(Ot.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Ot.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,p=(d[c]-this._activeCache.lastPos[c])/u;let{start:g,end:f}=this.state;this._activeState&&(this._activeTag===an.middleHandler?this.moveZoomWithMiddle((this.state.start+this.state.end)/2+p):this._activeTag===an.startHandler?g+p>f?(g=f,f=g+p,this._activeTag=an.endHandler):g+=p:this._activeTag===an.endHandler&&(f+p{r.preventDefault();const{start:a,end:o,brushSelect:l,realTime:h=!0}=this.attribute;if(this._activeState&&this._activeTag===an.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}),Ot.env==="browser"&&(Ot.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Ot.removeEventListener("pointerup",this._onHandlerPointerUp)),this.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.removeEventListener("pointerup",this._onHandlerPointerUp)};const{position:i,showDetail:n}=t;this._activeCache.startPos=i,this._activeCache.lastPos=i,this._showText=n!=="auto"&&n,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",n=>this._onHandlerPointerDown(n,"start")),this._endHandlerMask&&this._endHandlerMask.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,"end")),this._middleHandlerSymbol&&this._middleHandlerSymbol.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,"middleSymbol")),this._middleHandlerRect&&this._middleHandlerRect.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,"middleRect"));const i=e?"background":"middleRect";this._selectedBackground&&this._selectedBackground.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,i)),e&&this._background&&this._background.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,"background")),e&&this._previewGroup&&this._previewGroup.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,"background")),this._selectedPreviewGroup&&this._selectedPreviewGroup.addEventListener("pointerdown",n=>this._onHandlerPointerDown(n,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:n=!1,minSpan:r=0,maxSpan:a=1}=this.attribute,o=e-t;o!==this._spanCache&&(n||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:n}=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)/n,0),1),h=Math.min(Math.max(Math.max(a,o)/n,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:n}=this.getLayoutAttrFromConfig();this._isHorizontal?this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:Ye(this.dragMaskSize()<0?this._activeCache.lastPos.x:this._activeCache.startPos.x,e.x,e.x+i),y:e.y,width:this._activeState&&this._activeTag===an.background&&Math.abs(this.dragMaskSize())||0,height:n},t),"rect"):this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:e.x,y:Ye(this.dragMaskSize()<0?this._activeCache.lastPos.y:this._activeCache.startPos.y,e.y,e.y+n),width:i,height:this._activeState&&this._activeTag===an.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){const{startTextStyle:i,endTextStyle:n}=this.attribute,{formatMethod:r}=i,a=Cw(i,["formatMethod"]),{formatMethod:o}=n,l=Cw(n,["formatMethod"]),{start:h,end:d}=this.state;this._startValue=this._statePointToData(h),this._endValue=this._statePointToData(d);const{position:c,width:u,height:p}=this.getLayoutAttrFromConfig(),g=r?r(this._startValue):this._startValue,f=o?o(this._endValue):this._endValue,_={x1:c.x,y1:c.y,x2:c.x+u,y2:c.y+p};let m,y,v,b;this._isHorizontal?(m={x:c.x+h*u,y:c.y+p/2},y={x:c.x+d*u,y:c.y+p/2},v={textAlign:this.isTextOverflow(_,t,"start")?"left":"right",textBaseline:"middle"},b={textAlign:this.isTextOverflow(_,e,"end")?"right":"left",textBaseline:"middle"}):(m={x:c.x+u/2,y:c.y+h*p},y={x:c.x+u/2,y:c.y+d*p},v={textAlign:"center",textBaseline:this.isTextOverflow(_,t,"start")?"top":"bottom"},b={textAlign:"center",textBaseline:this.isTextOverflow(_,e,"end")?"bottom":"top"}),this._startText=this.maybeAddLabel(this._container,U({},a,{text:g,x:m.x,y:m.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:v}),`data-zoom-start-text-${c}`),this._endText=this.maybeAddLabel(this._container,U({},l,{text:f,x:y.x,y:y.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:b}),`data-zoom-end-text-${c}`)}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:n,y1:r,y2:a}=t,{dx:o=0,dy:l=0}=this.attribute.startTextStyle;if(new di().set(i,r,n,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,n,r,a;if(this._layoutAttrFromConfig)return this._layoutAttrFromConfig;const{position:o,size:l,orient:h,middleHandlerStyle:d={},startHandlerStyle:c={},endHandlerStyle:u={},backgroundStyle:p={}}=this.attribute,{width:g,height:f}=l,_=(e=(t=d.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:10;let m,y,v;d.visible?this._isHorizontal?(m=g,y=f-_,v={x:o.x,y:o.y+_}):(m=g-_,y=f,v={x:o.x+(h==="left"?_:0),y:o.y}):(m=g,y=f,v=o);const b=(i=c.size)!==null&&i!==void 0?i:this._isHorizontal?y:m,x=(n=u.size)!==null&&n!==void 0?n:this._isHorizontal?y:m;return c.visible&&(this._isHorizontal?(m-=(b+x)/2,v={x:v.x+b/2,y:v.y}):(y-=(b+x)/2,v={x:v.x,y:v.y+b/2})),y+=(r=p.lineWidth/2)!==null&&r!==void 0?r:1,m+=(a=p.lineWidth/2)!==null&&a!==void 0?a:1,this._layoutAttrFromConfig={position:v,width:m,height:y},this._layoutAttrFromConfig}render(){var t,e,i,n,r,a,o,l,h,d,c,u,p,g,f,_,m,y,v,b,x,A,T,k,M,w,C,R,I,O,B,L,F,z;this._layoutAttrFromConfig=null;const{orient:K,backgroundStyle:et,backgroundChartStyle:j={},selectedBackgroundStyle:st={},selectedBackgroundChartStyle:ht={},middleHandlerStyle:ut={},startHandlerStyle:J={},endHandlerStyle:$={},brushSelect:Z,zoomLock:X}=this.attribute,{start:dt,end:ct}=this.state,{position:kt,width:ot,height:yt}=this.getLayoutAttrFromConfig(),St=(t=J.triggerMinSize)!==null&&t!==void 0?t:40,Dt=(e=$.triggerMinSize)!==null&&e!==void 0?e:40,At=this.createOrUpdateChild("dataZoom-container",{},"group");if(this._container=At,this._background=At.createOrUpdateChild("background",Object.assign(Object.assign({x:kt.x,y:kt.y,width:ot,height:yt,cursor:Z?"crosshair":"auto"},et),{pickable:!X&&((i=et.pickable)===null||i===void 0||i)}),"rect"),!((n=j.line)===null||n===void 0)&&n.visible&&this.setPreviewAttributes("line",At),!((r=j.area)===null||r===void 0)&&r.visible&&this.setPreviewAttributes("area",At),Z&&this.renderDragMask(),this._isHorizontal?this._selectedBackground=At.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:kt.x+dt*ot,y:kt.y,width:(ct-dt)*ot,height:yt,cursor:Z?"crosshair":"move"},st),{pickable:!X&&((a=ht.pickable)===null||a===void 0||a)}),"rect"):this._selectedBackground=At.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:kt.x,y:kt.y+dt*yt,width:ot,height:(ct-dt)*yt,cursor:Z?"crosshair":"move"},st),{pickable:!X&&((o=st.pickable)===null||o===void 0||o)}),"rect"),!((l=ht.line)===null||l===void 0)&&l.visible&&this.setSelectedPreviewAttributes("line",At),!((h=ht.area)===null||h===void 0)&&h.visible&&this.setSelectedPreviewAttributes("area",At),this._isHorizontal){if(ut.visible){const Je=((d=ut.background)===null||d===void 0?void 0:d.size)||10;this._middleHandlerRect=At.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:kt.x+dt*ot,y:kt.y-Je,width:(ct-dt)*ot,height:Je},(c=ut.background)===null||c===void 0?void 0:c.style),{pickable:!X&&((g=(p=(u=ut.background)===null||u===void 0?void 0:u.style)===null||p===void 0?void 0:p.pickable)===null||g===void 0||g)}),"rect"),this._middleHandlerSymbol=At.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:kt.x+(dt+ct)/2*ot,y:kt.y-Je/2,strokeBoundsBuffer:0,angle:0,symbolType:(_=(f=ut.icon)===null||f===void 0?void 0:f.symbolType)!==null&&_!==void 0?_:"square"},ut.icon),{pickable:!X&&((m=ut.icon.pickable)===null||m===void 0||m)}),"symbol")}this._startHandler=At.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:kt.x+dt*ot,y:kt.y+yt/2,size:yt,symbolType:(y=J.symbolType)!==null&&y!==void 0?y:"square"},ta.horizontal),J),{pickable:!X&&((v=J.pickable)===null||v===void 0||v)}),"symbol"),this._endHandler=At.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:kt.x+ct*ot,y:kt.y+yt/2,size:yt,symbolType:(b=$.symbolType)!==null&&b!==void 0?b:"square"},ta.horizontal),$),{pickable:!X&&((x=$.pickable)===null||x===void 0||x)}),"symbol");const Se=Math.max(this._startHandler.AABBBounds.width(),St),_e=Math.max(this._startHandler.AABBBounds.height(),St),si=Math.max(this._endHandler.AABBBounds.width(),Dt),Re=Math.max(this._endHandler.AABBBounds.height(),Dt);this._startHandlerMask=At.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:kt.x+dt*ot-Se/2,y:kt.y+yt/2-_e/2,width:Se,height:_e,fill:"white",fillOpacity:0,zIndex:999},ta.horizontal),{pickable:!X}),"rect"),this._endHandlerMask=At.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:kt.x+ct*ot-si/2,y:kt.y+yt/2-Re/2,width:si,height:Re,fill:"white",fillOpacity:0,zIndex:999},ta.horizontal),{pickable:!X}),"rect")}else{if(ut.visible){const Je=((A=ut.background)===null||A===void 0?void 0:A.size)||10;this._middleHandlerRect=At.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:K==="left"?kt.x-Je:kt.x+ot,y:kt.y+dt*yt,width:Je,height:(ct-dt)*yt},(T=ut.background)===null||T===void 0?void 0:T.style),{pickable:!X&&((w=(M=(k=ut.background)===null||k===void 0?void 0:k.style)===null||M===void 0?void 0:M.pickable)===null||w===void 0||w)}),"rect"),this._middleHandlerSymbol=At.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:K==="left"?kt.x-Je/2:kt.x+ot+Je/2,y:kt.y+(dt+ct)/2*yt,angle:Math.PI/180*90,symbolType:(R=(C=ut.icon)===null||C===void 0?void 0:C.symbolType)!==null&&R!==void 0?R:"square",strokeBoundsBuffer:0},ut.icon),{pickable:!X&&((O=(I=ut.icon)===null||I===void 0?void 0:I.pickable)===null||O===void 0||O)}),"symbol")}this._startHandler=At.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:kt.x+ot/2,y:kt.y+dt*yt,size:ot,symbolType:(B=J.symbolType)!==null&&B!==void 0?B:"square"},ta.vertical),J),{pickable:!X&&((L=J.pickable)===null||L===void 0||L)}),"symbol"),this._endHandler=At.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:kt.x+ot/2,y:kt.y+ct*yt,size:ot,symbolType:(F=$.symbolType)!==null&&F!==void 0?F:"square"},ta.vertical),$),{pickable:!X&&((z=$.pickable)===null||z===void 0||z)}),"symbol");const Se=Math.max(this._startHandler.AABBBounds.width(),St),_e=Math.max(this._startHandler.AABBBounds.height(),St),si=Math.max(this._endHandler.AABBBounds.width(),Dt),Re=Math.max(this._endHandler.AABBBounds.height(),Dt);this._startHandlerMask=At.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:kt.x+ot/2+Se/2,y:kt.y+dt*yt-_e/2,width:Re,height:si,fill:"white",fillOpacity:0,zIndex:999},ta.vertical),{pickable:!X}),"rect"),this._endHandlerMask=At.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:kt.x+ot/2+si/2,y:kt.y+ct*yt-Re/2,width:Re,height:si,fill:"white",fillOpacity:0,zIndex:999},ta.vertical),{pickable:!X}),"rect")}this._showText&&this.renderText()}computeBasePoints(){const{orient:t}=this.attribute,{position:e,width:i,height:n}=this.getLayoutAttrFromConfig();let r,a;return this._isHorizontal?(r=[{x:e.x,y:e.y+n}],a=[{x:e.x+i,y:e.y+n}]):t==="left"?(r=[{x:e.x+i,y:e.y}],a=[{x:e.x+i,y:e.y+n}]):(r=[{x:e.x,y:e.y+n}],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 RN(t,i)}return t}getPreviewLinePoints(){let t=this._previewData.map(n=>({x:this._previewPointsX&&this._previewPointsX(n),y:this._previewPointsY&&this._previewPointsY(n)}));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(n=>({x:this._previewPointsX&&this._previewPointsX(n),y:this._previewPointsY&&this._previewPointsY(n),x1:this._previewPointsX1&&this._previewPointsX1(n),y1:this._previewPointsY1&&this._previewPointsY1(n)}));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:n,end:r}=this.state,{position:a,width:o,height:l}=this.getLayoutAttrFromConfig();this._selectedPreviewGroupClip.setAttributes({x:this._isHorizontal?a.x+n*o:a.x,y:this._isHorizontal?a.y:a.y+n*l,width:this._isHorizontal?(r-n)*o:o,height:this._isHorizontal?l:(r-n)*l,clip:!0,pickable:!1}),this._selectedPreviewGroup.setAttributes({x:-(this._isHorizontal?a.x+n*o:a.x),y:-(this._isHorizontal?a.y:a.y+n*l),width:this._isHorizontal?(r-n)*o:o,height:this._isHorizontal?l:(r-n)*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 n=this.find(r=>r.name===i,!0);return n?n.setAttributes(e):(n=new cs(e),n.name=i),t.add(n),n}setStartAndEnd(t,e){const{start:i,end:n}=this.attribute;E(t)&&E(e)&&(t!==this.state.start||e!==this.state.end)&&(this.state.start=t,this.state.end=e,i===this.state.start&&n===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,n;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=(n=(i=r.icon)===null||i===void 0?void 0:i.size)!==null&&n!==void 0?n:10;return Math.max(a,...V(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)}};ZI.defaultAttributes=OY;var px;(function(s){s.start="start",s.middle="middle",s.end="end",s.insideStartTop="insideStartTop",s.insideStartBottom="insideStartBottom",s.insideMiddleTop="insideMiddleTop",s.insideMiddleBottom="insideMiddleBottom",s.insideEndTop="insideEndTop",s.insideEndBottom="insideEndBottom"})(px||(px={}));var gx;(function(s){s.left="left",s.right="right",s.top="top",s.bottom="bottom",s.middle="middle",s.insideLeft="insideLeft",s.insideRight="insideRight",s.insideTop="insideTop",s.insideBottom="insideBottom"})(gx||(gx={}));var bi;(function(s){s.arcInnerStart="arcInnerStart",s.arcInnerEnd="arcInnerEnd",s.arcInnerMiddle="arcInnerMiddle",s.arcOuterStart="arcOuterStart",s.arcOuterEnd="arcOuterEnd",s.arcOuterMiddle="arcOuterMiddle",s.center="center"})(bi||(bi={}));var fx;(function(s){s.top="top",s.bottom="bottom",s.middle="middle",s.insideTop="insideTop",s.insideBottom="insideBottom",s.insideMiddle="insideMiddle"})(fx||(fx={}));function Vu(){je(),Fm()}function zY(){Vu(),NS()}function HY(){Vu(),US()}function jY(){Vu(),Om()}function VY(){Vu(),Lh()}function WY(){Vu(),NS(),US(),ds(),kI(),Ur()}function QI(s,t){const{x1:e,y1:i,x2:n,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=s.AABBBounds;let d=0,c=0;return an&&(d=n-l),h>r&&(c=r-h),{dx:d,dy:c}}function XS(s,t){const{dx:e,dy:i}=QI(s,t),{dx:n=0,dy:r=0}=s.attribute;e&&s.setAttribute("dx",e+n),i&&s.setAttribute("dy",i+r)}class Xm extends ci{constructor(){super(...arguments),this.name="marker",this._onHover=t=>{this._lastHover=HI(t,this._container,this._lastHover)},this._onUnHover=t=>{this._lastHover=jI(t,this._container,this._lastHover)},this._onClick=t=>{this._lastSelect=VI(t,this._container,this._lastSelect)}}transAnimationConfig(){var t,e,i;if(this.attribute.animation!==!1){const n=Et(this.attribute.animation)?this.attribute.animation:{};this._animationConfig={enter:U({},this.defaultUpdateAnimation,n,(t=this.attribute.animationEnter)!==null&&t!==void 0?t:{}),exit:U({},this.defaultExitAnimation,n,(e=this.attribute.animationExit)!==null&&e!==void 0?e:{}),update:U({},this.defaultUpdateAnimation,n,(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:n,select:r}=this.attribute;n&&((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:n}=this.attribute;let r;if(n){const a=_t.group(Object.assign(Object.assign({},i),{clip:!0,pickable:!1}));r=_t.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=_t.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:n}=this.attribute;this._containerClip&&this._containerClip.setAttributes(Object.assign({},i)),this._container.setAttributes({x:n?-((t=i.x)!==null&&t!==void 0?t:0):0,y:n?-((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 ai(s,t,e,i){var n,r,a,o,l;if(!s)return;(n=s==null?void 0:s.animates)===null||n===void 0||n.forEach(c=>c.stop("end"));const h=(a=(r=s.attribute)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1,d=(l=(o=s.attribute)===null||o===void 0?void 0:o.strokeOpacity)!==null&&l!==void 0?l:1;s.setAttributes({fillOpacity:0,strokeOpacity:0}),s.animate().wait(t).to({fillOpacity:h,strokeOpacity:d},e,i)}function tL(s,t,e,i){s&&(ai(s.startSymbol,t,e,i),s.lines.forEach(n=>ai(n,t,e,i)),ai(s.line,t,e,i),ai(s.endSymbol,t,e,i))}function Km(s,t,e,i){s&&(ai(s.getTextShape(),t,e,i),ai(s.getBgRect(),t,e,i))}function Js(s,t,e,i){var n,r,a,o;s&&(s.setAttributes({fillOpacity:(r=(n=s.attribute)===null||n===void 0?void 0:n.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(o=(a=s.attribute)===null||a===void 0?void 0:a.strokeOpacity)!==null&&o!==void 0?o:1}),s.animate().wait(t).to({fillOpacity:0,strokeOpacity:0},e,i))}function eL(s,t,e,i){s&&(Js(s.startSymbol,t,e,i),s.lines.forEach(n=>Js(n,t,e,i)),Js(s.line,t,e,i),Js(s.endSymbol,t,e,i))}function qm(s,t,e,i){s&&(Js(s.getTextShape(),t,e,i),Js(s.getBgRect(),t,e,i))}function Pw(s,t,e,i,n){const r=.1*e,a=.7*e,o=.1*e,l=.1*e;ai(s.startSymbol,i,r,n),s.lines.forEach(h=>h.setAttribute("clipRange",0)),s.lines.forEach((h,d)=>{const c=a/s.lines.length;h.animate().wait(i+r+d*c).to({clipRange:1},c,n)}),ai(s.endSymbol,i+r+a,o,n),ai(t.getTextShape(),i+r+a+o,l,n),ai(t.getBgRect(),i+r+a+o,l,n)}function Ew(s,t,e,i,n){tL(s,i,e,n),Km(t,i,e,n)}function Rw(s,t,e,i,n){ai(s,i,e,n),Km(t,i,e,n)}function Bw(s,t,e,i,n){ai(s,i,e,n),Km(t,i,e,n)}function Iw(s,t,e,i,n,r){var a;tL(s,n,i,r),ai(t,n,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?Km(e,n,i,r):ai(e,n,i,r)}function GY(s,t,e,i,n){eL(s,i,e,n),qm(t,i,e,n)}function NY(s,t,e,i,n){Js(s,i,e,n),qm(t,i,e,n)}function UY(s,t,e,i,n){Js(s,i,e,n),qm(t,i,e,n)}function $Y(s,t,e,i,n,r){var a;eL(s,n,i,r),Js(t,n,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?qm(e,n,i,r):Js(e,n,i,r)}function Lw(s,t,e,i,n,r){var a;const o=.1*i,l=.65*i,h=.05*i,d=.1*i,c=.1*i;ai(s.startSymbol,n,o,r),s.lines.forEach(u=>u.setAttribute("clipRange",0)),s.lines.forEach((u,p)=>{const g=l/s.lines.length;u.animate().wait(n+o+p*g).to({clipRange:1},g,r)}),ai(t,n+o+l,h,r),ai(s.endSymbol,n+o+l+h,d,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?(ai(e.getTextShape(),n+o+l+h+d,c,r),ai(e.getBgRect(),n+o+l+d,c,r)):ai(e,n+o+l+d,c,r)}function iL(s,t,e,i){const{enter:n,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=n;o==="clipIn"?Pw(s,t,l,h,d):o==="fadeIn"&&Ew(s,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="clipIn"?Pw(s,t,l,h,d):o==="fadeIn"&&Ew(s,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;GY(s,t,o,l,h)}}function YY(s,t,e,i){const{enter:n,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=n;o==="fadeIn"&&Rw(s,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&Rw(s,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;NY(s,t,o,l,h)}}function XY(s,t,e,i){const{enter:n,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=n;o==="fadeIn"&&Bw(s,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&Bw(s,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;UY(s,t,o,l,h)}}function KY(s,t,e,i){const[n,r]=s,{enter:a,update:o,exit:l}=e;if(i==="enter"){const{type:h,duration:d,delay:c,easing:u}=a;h==="fadeIn"?Iw(n,r,t,d,c,u):h==="callIn"&&Lw(n,r,t,d,c,u)}else if(i==="update"){const{type:h,duration:d,delay:c,easing:u}=o;h==="fadeIn"?Iw(n,r,t,d,c,u):h==="callIn"&&Lw(n,r,t,d,c,u)}else if(i==="exit"){const{duration:h,delay:d,easing:c}=l;$Y(n,r,t,h,d,c)}}const qY={type:"clipIn",duration:500,easing:"linear",delay:0},nL={type:"fadeIn",duration:500,easing:"linear",delay:0},ZY={type:"callIn",duration:500,easing:"linear",delay:0},Zm={type:"fadeOut",duration:500,easing:"linear",delay:0};class sL extends Xm{constructor(){super(...arguments),this.name="markCommonLine",this.defaultUpdateAnimation=qY,this.defaultExitAnimation=Zm}getLine(){return this._line}getLabel(){return this._label}setLabelPos(){const{label:t={},limitRect:e}=this.attribute,{position:i,confine:n,autoRotate:r}=t,a=this.getPointAttrByPosition(i),o=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&&n){const{x:l,y:h,width:d,height:c}=e;XS(this._label,{x1:l,y1:h,x2:l+d,y2:h+c})}}initMarker(t){const{label:e,state:i}=this.attribute,n=this.createSegment();n.name="mark-common-line-line",this._line=n,t.add(n);const r=new cs(Object.assign(Object.assign({},e),{state:{panel:U({},Rt,i==null?void 0:i.labelBackground),text:U({},Rt,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:U({},Rt,e==null?void 0:e.labelBackground),text:U({},Rt,e==null?void 0:e.label)}})),this.setLabelPos())}}const JY={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:px.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]}},Ow={postiveXAxis:{start:{textAlign:"right",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:"left",textBaseline:"middle"},insideEndTop:{textAlign:"right",textBaseline:"bottom"},insideEndBottom:{textAlign:"right",textBaseline:"top"}},negativeXAxis:{start:{textAlign:"left",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:"right",textBaseline:"middle"},insideEndTop:{textAlign:"left",textBaseline:"bottom"},insideEndBottom:{textAlign:"left",textBaseline:"top"}}},QY={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:bi.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]}},t6={interactive:!0,label:{position:gx.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}},e6={interactive:!0,label:{position:bi.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}},rL={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"}},i6={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"}},n6={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}}},Dw={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"}}};zY();function aL(){ka._animate=iL}class ka extends sL{markerAnimate(t){ka._animate&&this._animationConfig&&ka._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},ka.defaultAttributes,t)),this.name="markLine"}getPointAttrByPosition(t){var e;const{label:i={}}=this.attribute,{refX:n=0,refY:r=0}=i,a=this._line.getMainSegmentPoints(),o=(e=this._line.getEndAngle())!==null&&e!==void 0?e:0,l=o,h=n*Math.cos(l)+r*Math.cos(l-Math.PI/2),d=n*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(i_(t)?t:t-Math.PI)+((e=this.attribute.label.refAngle)!==null&&e!==void 0?e:0)}getTextStyle(t,e,i){return Math.abs(Math.abs(e)-Math.PI/2)<1e-4?i?{textAlign:"right",textBaseline:"middle"}:{textAlign:"center",textBaseline:e>0&&t.includes("inside")||e<0&&!t.includes("inside")?"bottom":"top"}:i_(e)?Ow.postiveXAxis[t]:Ow.negativeXAxis[t]}createSegment(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:n,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;return new Hr({points:t,startSymbol:e,endSymbol:i,lineStyle:n,mainSegmentIndex:r,multiSegment:a,pickable:!1,state:{line:U({},Rt,o==null?void 0:o.line),startSymbol:U({},Rt,o==null?void 0:o.lineStartSymbol),endSymbol:U({},Rt,o==null?void 0:o.lineEndSymbol)}})}setLineAttributes(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:n,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;this._line&&this._line.setAttributes({points:t,startSymbol:e,endSymbol:i,lineStyle:n,mainSegmentIndex:r,multiSegment:a,state:{line:U({},Rt,o==null?void 0:o.line),startSymbol:U({},Rt,o==null?void 0:o.lineStartSymbol),endSymbol:U({},Rt,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(n=>{W(n.x)&&W(n.y)||(e=!1)});else if(!W(i.x)||!W(i.y))return void(e=!1)}),e}}ka.defaultAttributes=JY;jY();function oL(){Ta._animate=YY}class Ta extends Xm{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:U({},Ta.defaultAttributes,t)),this.name="markArea",this.defaultUpdateAnimation=nL,this.defaultExitAnimation=Zm}getPointAttrByPosition(t){const{x1:e,x2:i,y1:n,y2:r}=this._area.AABBBounds;return t.includes("left")||t.includes("Left")?{x:e,y:(n+r)/2}:t.includes("right")||t.includes("Right")?{x:i,y:(n+r)/2}:t.includes("top")||t.includes("Top")?{x:(e+i)/2,y:n}:t.includes("bottom")||t.includes("Bottom")?{x:(e+i)/2,y:r}:{x:(e+i)/2,y:(n+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",n=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},n),{textStyle:Object.assign(Object.assign({},i6[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:r,y:a,width:o,height:l}=this.attribute.limitRect;XS(this._label,{x1:r,y1:a,x2:r+o,y2:a+l})}}}initMarker(t){const{points:e,label:i,areaStyle:n,state:r}=this.attribute,a=_t.polygon(Object.assign({points:e},n));a.states=U({},Rt,r==null?void 0:r.area),a.name="mark-area-polygon",this._area=a,t.add(a);const o=new cs(Object.assign(Object.assign({},i),{state:{panel:U({},Rt,r==null?void 0:r.labelBackground),text:U({},Rt,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:n}=this.attribute;this._area&&(this._area.setAttributes(Object.assign({points:t},i)),this._area.states=U({},Rt,n==null?void 0:n.area)),this._label&&this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},e),{state:{panel:U({},Rt,n==null?void 0:n.labelBackground),text:U({},Rt,n==null?void 0:n.label)}})),this.setLabelPos()}isValidPoints(){const{points:t}=this.attribute;if(!t||t.length<3)return!1;let e=!0;return t.forEach(i=>{W(i.x)&&W(i.y)||(e=!1)}),e}}Ta.defaultAttributes=t6;HY();function s6(){Ao._animate=iL}class Ao extends sL{markerAnimate(t){Ao._animate&&this._animationConfig&&Ao._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Ao.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcLine"}getPointAttrByPosition(t){const{center:e,radius:i,startAngle:n,endAngle:r,label:a}=this.attribute,{refX:o=0,refY:l=0}=a;let h;switch(t){case bi.arcInnerStart:h=n;case bi.arcOuterStart:h=n;break;case bi.arcInnerEnd:h=r;case bi.arcOuterEnd:h=r;break;case bi.center:case bi.arcInnerMiddle:case bi.arcOuterMiddle:default:h=(n+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 rL[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:n,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;return new dx({center:t,radius:e,startAngle:i,endAngle:n,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:U({},Rt,l==null?void 0:l.line),startSymbol:U({},Rt,l==null?void 0:l.lineStartSymbol),endSymbol:U({},Rt,l==null?void 0:l.lineEndSymbol)}})}setLineAttributes(){const{center:t,radius:e,startAngle:i,endAngle:n,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;this._line&&this._line.setAttributes({center:t,radius:e,startAngle:i,endAngle:n,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:U({},Rt,l==null?void 0:l.line),startSymbol:U({},Rt,l==null?void 0:l.lineStartSymbol),endSymbol:U({},Rt,l==null?void 0:l.lineEndSymbol)}})}isValidPoints(){return!0}}Ao.defaultAttributes=QY;VY();function r6(){ko._animate=XY}class ko extends Xm{markerAnimate(t){ko._animate&&this._animationConfig&&ko._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:U({},ko.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcArea",this.defaultUpdateAnimation=nL,this.defaultExitAnimation=Zm}getPointAttrByPosition(t){const{center:e,innerRadius:i,outerRadius:n,startAngle:r,endAngle:a,label:o}=this.attribute,{refX:l=0,refY:h=0}=o;let d,c;switch(t){case bi.center:d=(i+n)/2,c=(r+a)/2;break;case bi.arcInnerStart:d=i,c=r;break;case bi.arcOuterStart:d=n,c=r;break;case bi.arcInnerEnd:d=i,c=a;break;case bi.arcOuterEnd:d=n,c=a;break;case bi.arcInnerMiddle:d=i,c=(r+a)/2;break;case bi.arcOuterMiddle:d=n,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:n}=e,r=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},r.position),{angle:n?r.angle-Math.PI/2+((t=e.refAngle)!==null&&t!==void 0?t:0):0,textStyle:Object.assign(Object.assign({},rL[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:a,y:o,width:l,height:h}=this.attribute.limitRect;XS(this._label,{x1:a,y1:o,x2:a+l,y2:o+h})}}}initMarker(t){const{center:e,innerRadius:i,outerRadius:n,startAngle:r,endAngle:a,areaStyle:o,label:l,state:h}=this.attribute,d=_t.arc(Object.assign({x:e.x,y:e.y,innerRadius:i,outerRadius:n,startAngle:r,endAngle:a},o));d.states=U({},Rt,h==null?void 0:h.area),d.name="polar-mark-area-area",this._area=d,t.add(d);const c=new cs(Object.assign(Object.assign({},l),{state:{panel:U({},Rt,h==null?void 0:h.labelBackground),text:U({},Rt,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:n,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:n,endAngle:r},a)),this._area.states=U({},Rt,l==null?void 0:l.area)),this._label&&(this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},o),{state:{panel:U({},Rt,l==null?void 0:l.labelBackground),text:U({},Rt,l==null?void 0:l.label)}})),this.setLabelPos())}isValidPoints(){return!0}}ko.defaultAttributes=e6;WY();function KS(){Ma._animate=KY}class Ma extends Xm{markerAnimate(t){Ma._animate&&this._animationConfig&&Ma._animate([this._line,this._decorativeLine],this._item,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Ma.defaultAttributes,t)),this.name="markPoint",this.defaultUpdateAnimation=ZY,this.defaultExitAnimation=Zm,this._isArcLine=!1}setLabelPos(){}getTextAlignAttr(t,e,i,n,r){let a=!0;return a=this._isArcLine?fw(n,this._line.isReverseArc):i_(n),a?Dw.postiveXAxis[r]:Dw.negativeXAxis[r]}setItemAttributes(t,e,i,n,r){var a,o;if(!t)return;const{autoRotate:l=!0,refX:h=0,refY:d=0,refAngle:c=0,textStyle:u={},richTextStyle:p={},imageStyle:g={},position:f=fx.middle}=e,{state:_}=this.attribute,m=((a=this._line)===null||a===void 0?void 0:a.getEndAngle())||0,y=h*Math.cos(m)+d*Math.cos(m),v=h*Math.sin(m)+d*Math.sin(m);if(r==="text"){const A=n.x-i.x,T=n.y-i.y;t.setAttributes(Object.assign(Object.assign({},u),{textStyle:Object.assign(Object.assign({},this.getTextAlignAttr(l,A,T,m,(o=e.position)!==null&&o!==void 0?o:"end")),u.textStyle),state:{panel:U({},Rt,_==null?void 0:_.textBackground),text:U({},Rt,_==null?void 0:_.text)}}))}else r==="richText"?(t.setAttributes({dx:this.getItemDx(t,f,p)+(p.dx||0),dy:this.getItemDy(t,f,p)+(p.dy||0)}),t.states=U({},Rt,_==null?void 0:_.richText)):r==="image"&&(t.setAttributes({dx:this.getItemDx(t,f,g)+(g.dx||0),dy:this.getItemDy(t,f,g)+(g.dy||0)}),t.states=U({},Rt,_==null?void 0:_.image));let b,x=!0;this._isArcLine?(x=fw(m,this._line.isReverseArc),b=x?m:m-Math.PI):(x=i_(m),b=x?m:m-Math.PI),t.setAttributes({x:n.x+(y||0),y:n.y+(v||0),angle:l&&b+c})}getItemDx(t,e,i){var n,r;const a=(r=(n=t==null?void 0:t.AABBBounds)===null||n===void 0?void 0:n.width())!==null&&r!==void 0?r:(i==null?void 0:i.width)||0;return e.includes("inside")?-a:0}getItemDy(t,e,i){var n,r;const a=(r=(n=t==null?void 0:t.AABBBounds)===null||n===void 0?void 0:n.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:n}=this.attribute,{type:r="text",symbolStyle:a,richTextStyle:o,imageStyle:l,renderCustomCallback:h}=t;let d;return r==="symbol"?(d=_t.symbol(Object.assign(Object.assign({},i),a)),d.states=U({},Rt,n==null?void 0:n.symbol)):r==="text"?d=new cs(Object.assign(Object.assign({},i),{state:{panel:U({},Rt,n==null?void 0:n.textBackground),text:U({},Rt,n==null?void 0:n.text)}})):r==="richText"?(d=_t.richtext(Object.assign(Object.assign({},i),o)),d.states=U({},Rt,n==null?void 0:n.richText)):r==="image"?(d=_t.image(Object.assign(Object.assign({},i),l)),d.states=U({},Rt,n==null?void 0:n.image)):r==="custom"&&h&&(d=h(),d.states=U({},Rt,n==null?void 0:n.customMark)),d.name=`mark-point-${r}`,this.setItemAttributes(d,t,e,i,r),d}getItemLineAttr(t,e,i){let n=[],r={x:0,y:0},a=0,o=0,l=0;const{type:h="type-s",arcRatio:d=.8}=t;if(this._isArcLine){const{x:c,y:u}=e,{x:p,y:g}=i,f=(c+p)/2,_=(u+g)/2,m=u===g?0:-(c-p)/(u-g),y=f+d*(g>u?-1:1)*f,v=(b=>m*(b-f)+_)(y);r={x:y,y:v},o=mv(u-v,c-y),l=mv(g-v,p-y),a=Math.sqrt((y-c)*(y-c)+(v-u)*(v-u))}else n=h==="type-do"?[e,{x:(e.x+i.x)/2,y:i.y},i]:h==="type-po"?[e,{x:i.x,y:e.y},i]:h==="type-op"?[e,{x:e.x,y:i.y},i]:[e,i];return n=S8(n),{points:n,center:r,radius:a,startAngle:o,endAngle:l}}reDrawLine(t,e){this._line.release();const{startSymbol:i,endSymbol:n,lineStyle:r,type:a="type-s"}=t,{state:o}=this.attribute,l=this._isArcLine?dx:Hr;this._container.removeChild(this._line),this._line=new l(Object.assign(Object.assign({},e),{pickable:!1,startSymbol:i,endSymbol:n,lineStyle:r,visible:t.visible,state:{line:U({},Rt,o==null?void 0:o.line),startSymbol:U({},Rt,o==null?void 0:o.lineStartSymbol),endSymbol:U({},Rt,o==null?void 0:o.lineEndSymbol)}})),this._container.add(this._line)}setItemLineAttr(t,e,i){if(this._line){const{startSymbol:n,endSymbol:r,lineStyle:a,type:o="type-s"}=t,{state:l}=this.attribute,h=this.getItemLineAttr(t,e,i);o==="type-arc"&&this._line.key==="arc-segment"||o!=="type-arc"&&this._line.key==="segment"?this._line.setAttributes(Object.assign(Object.assign({},h),{startSymbol:n,endSymbol:r,lineStyle:a,visible:t.visible,state:{line:U({},Rt,l==null?void 0:l.line),startSymbol:U({},Rt,l==null?void 0:l.lineStartSymbol),endSymbol:U({},Rt,l==null?void 0:l.lineEndSymbol)}})):this.reDrawLine(t,h)}}getDecorativeLineAttr(t){var e;const i=((e=t==null?void 0:t.decorativeLine)===null||e===void 0?void 0:e.length)||10,n=this._line.getEndAngle()||0;return{startPointOffsetX:i/2*Math.cos(n-Math.PI/2),startPointOffsetY:i/2*Math.sin(n-Math.PI/2),endPointOffsetX:-i/2*Math.cos(n-Math.PI/2),endPointOffsetY:-i/2*Math.sin(n-Math.PI/2)}}setDecorativeLineAttr(t,e,i){var n;if(this._decorativeLine){const{lineStyle:r}=t,{startPointOffsetX:a,startPointOffsetY:o,endPointOffsetX:l,endPointOffsetY:h}=this.getDecorativeLineAttr(t);this._decorativeLine.setAttributes(Object.assign(Object.assign({points:[{x:e.x+a,y:e.y+o},{x:e.x+l,y:e.y+h}]},r),{visible:i})),this._decorativeLine.states=U({},Rt,(n=this.attribute.state)===null||n===void 0?void 0:n.line)}}setTargetItemAttributes(t,e){var i,n;this._targetItem&&(this._targetItem.setAttributes(Object.assign({x:e.x,y:e.y,visible:(i=t.visible)!==null&&i!==void 0&&i},t.style)),this._targetItem.states=U({},Rt,(n=this.attribute.state)===null||n===void 0?void 0:n.targetItem))}setAllOfItemsAttr(t,e){var i;const{position:n,itemLine:r={},itemContent:a={},limitRect:o,targetSymbol:l}=this.attribute,{type:h="text",confine:d}=a;if(o&&d){const{x:c,y:u,width:p,height:g}=o,{dx:f,dy:_}=QI(this._item,{x1:c,y1:u,x2:c+p,y2:u+g});e.x=e.x+f,e.y=e.y+_}this.setTargetItemAttributes(l,n),this.setItemLineAttr(r,t,e),this.setItemAttributes(this._item,a,t,e,h),this.setDecorativeLineAttr(r,e,(i=r.decorativeLine)===null||i===void 0?void 0:i.visible)}computeNewPositionAfterTargetItem(t){var e;const{itemContent:i={},targetSymbol:n}=this.attribute,{offsetX:r=0,offsetY:a=0}=i,{offset:o=0,style:l,visible:h=!1,size:d}=n,c=h?d||((e=l.size)!==null&&e!==void 0?e:10):0,u=mv(a,r);return{newPosition:{x:t.x+(c+o)*Math.cos(u),y:t.y+(c+o)*Math.sin(u)},newItemPosition:{x:t.x+(c+o)*Math.cos(u)+r,y:t.y+(c+o)*Math.sin(u)+a}}}initMarker(t){const{position:e,itemContent:i={},itemLine:n}=this.attribute,{type:r="type-s",arcRatio:a=.8}=n,{newPosition:o,newItemPosition:l}=this.computeNewPositionAfterTargetItem(e);this._isArcLine=r==="type-arc"&&a!==0&&o.x!==l.x&&o.y!==l.y;const h=new(this._isArcLine?dx:Hr)({points:[],pickable:!1,center:{x:0,y:0},radius:0,startAngle:0,endAngle:0});h.name="mark-point-line",this._line=h,t.add(h);const d=_t.line({points:[]});d.name="mark-point-decorativeLine",this._decorativeLine=d,t.add(d);const c=_t.symbol({});c.name="mark-point-targetItem",this._targetItem=c,t.add(this._targetItem);const u=this.initItem(i,o,l);this._item=u,t.add(u),this.setAllOfItemsAttr(o,l)}updateMarker(){const{position:t,itemContent:e={},itemLine:i}=this.attribute,{type:n="text"}=e,{type:r="type-s",arcRatio:a=.8}=i,{newPosition:o,newItemPosition:l}=this.computeNewPositionAfterTargetItem(t),h=r==="type-arc"&&a!==0&&o.x!==l.x&&o.y!==l.y;h!==this._isArcLine?(this._isArcLine=h,this.reDrawLine(i,{points:[{x:0,y:0}],pickable:!1,center:{x:0,y:0},radius:0,startAngle:0,endAngle:0})):this._isArcLine=h,this.setItemAttributes(this._item,e,o,l,n),this.setAllOfItemsAttr(o,l)}isValidPoints(){const{position:t}=this.attribute;return!(!W(t.x)||!W(t.y))}}Ma.defaultAttributes=n6;function lL(){je(),ds(),lr()}const hL={space:8,style:{fill:"rgb(47, 69, 84)",cursor:"pointer",size:15},state:{disable:{fill:"rgb(170, 170, 170)",cursor:"not-allowed"},hover:{}}};lL();class qc extends ci{getCurrent(){return this._current}constructor(t,e){super(e!=null&&e.skipDefault?t:U({},qc.defaultAttributes,t)),this.name="pager",this._current=1,this._onHover=i=>{const n=i.target;n.hasState("disable")||n.addState("hover")},this._onUnHover=i=>{i.target.removeState("hover")},this._onClick=i=>{const n=i.target;if(n.name==="preHandler"){if(this._current===1)return;this._current-=1,this._current===1?n.addState("disable"):n.removeState("disable"),this._dispatchEvent("toPrev",{current:this._current,total:this._total,direction:"pre",event:i})}if(n.name==="nextHandler"){if(this._current===this._total)return;this._current+=1,this._current===this._total?n.addState("disable"):n.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 n=i.target;if(n&&n.name&&n.name.startsWith(Ci.item)){const r=n.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 n,r,a,o;const l=i.target;if(l&&l.name&&l.name.startsWith(Ci.item)){const h=l.delegate,{selectMode:d="multiple"}=this.attribute;if(l.name===Ci.focus||d==="focus"){const c=h.hasState(Tt.focus);h.toggleState(Tt.focus),c?(n=this._itemsContainer)===null||n===void 0||n.getChildren().forEach(u=>{this._removeLegendItemState(u,[Tt.unSelected,Tt.unSelectedHover,Tt.focus],i),this._setLegendItemState(u,Tt.selected,i)}):(this._setLegendItemState(h,Tt.selected,i),this._removeLegendItemState(h,[Tt.unSelected,Tt.unSelectedHover],i),(r=this._itemsContainer)===null||r===void 0||r.getChildren().forEach(u=>{h!==u&&(this._removeLegendItemState(u,[Tt.selected,Tt.selectedHover,Tt.focus],i),this._setLegendItemState(u,Tt.unSelected,i))}))}else{(a=this._itemsContainer)===null||a===void 0||a.getChildren().forEach(g=>{g.removeState(Tt.focus)});const{allowAllCanceled:c=!0}=this.attribute,u=h.hasState(Tt.selected),p=this._getSelectedLegends();if(d==="multiple"){if(c===!1&&u&&p.length===1)return void this._dispatchLegendEvent($i.legendItemClick,h,i);u?(this._removeLegendItemState(h,[Tt.selected,Tt.selectedHover],i),this._setLegendItemState(h,Tt.unSelected,i)):(this._setLegendItemState(h,Tt.selected,i),this._removeLegendItemState(h,[Tt.unSelected,Tt.unSelectedHover],i))}else this._setLegendItemState(h,Tt.selected,i),this._removeLegendItemState(h,[Tt.unSelected,Tt.unSelectedHover],i),(o=this._itemsContainer)===null||o===void 0||o.getChildren().forEach(g=>{h!==g&&(this._removeLegendItemState(g,[Tt.selected,Tt.selectedHover],i),this._setLegendItemState(g,Tt.unSelected,i))})}this._dispatchLegendEvent($i.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 n=i.data;t.includes(n.label)?(this._setLegendItemState(i,Tt.selected),this._removeLegendItemState(i,[Tt.unSelected,Tt.unSelectedHover])):(this._removeLegendItemState(i,[Tt.selected,Tt.selectedHover]),this._setLegendItemState(i,Tt.unSelected))})}_renderItems(){const{item:t={},maxCol:e=1,maxRow:i=2,maxWidth:n,maxHeight:r,defaultSelected:a,lazyload:o,autoPage:l}=this.attribute,{spaceCol:h=ng,spaceRow:d=sg}=t,c=this._itemsContainer,{items:u,isHorizontal:p,startIndex:g,isScrollbar:f}=this._itemContext,_=f?1:p?i:e;let m,{doWrap:y,maxWidthInCol:v,startX:b,startY:x,pages:A}=this._itemContext;for(let T=g,k=u.length;Tthis._itemContext.currentPage*_);T++){o&&(this._itemContext.startIndex=T+1),m=u[T],m.id||(m.id=m.label),m.index=T;let M=!0;G(a)&&(M=a.includes(m.label));const w=this._renderEachItem(m,M,T,u),C=w.attribute.width,R=w.attribute.height;this._itemHeight=Math.max(this._itemHeight,R),v=Math.max(C,v),this._itemMaxWidth=Math.max(C,this._itemMaxWidth),p?(E(n)&&(f&&l?(A=Math.ceil((b+C)/n),y=A>1):b+C>n&&(y=!0,b>0&&(A+=1,b=0,x+=R+d))),b===0&&x===0||w.setAttributes({x:b,y:x}),b+=h+C):(E(r)&&(f&&l?(A=Math.ceil((x+R)/r),y=A>1):rthis._itemContext.maxPages&&(f=this._renderPagerComponent()),f||(a.setAttribute("y",this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",8):0),this._innerView.add(a))}_bindEvents(){if(this.attribute.disableTriggerEvent||!this._itemsContainer)return;const{hover:t=!0,select:e=!0}=this.attribute;t&&(this._itemsContainer.addEventListener("pointermove",this._onHover),this._itemsContainer.addEventListener("pointerleave",this._onUnHover)),e&&this._itemsContainer.addEventListener("pointerdown",this._onClick)}_autoEllipsis(t,e,i,n){var r,a;const{label:o,value:l}=this.attribute.item,h=n.AABBBounds,d=i.AABBBounds,c=h.width(),u=d.width();let p=!1;t==="labelFirst"?u>e?p=!0:n.setAttribute("maxLineWidth",e-u):t==="valueFirst"?c>e?p=!0:i.setAttribute("maxLineWidth",e-c):c+u>e&&(p=!0),p&&(n.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,n){var r,a;const{id:o,label:l,value:h,shape:d}=t,{padding:c=0,focus:u,focusIconStyle:p,align:g,autoEllipsisStrategy:f}=this.attribute.item,{shape:_,label:m,value:y,background:v}=this.attribute.item,b=this._handleStyle(_,t,e,i,n),x=this._handleStyle(m,t,e,i,n),A=this._handleStyle(y,t,e,i,n),T=this._handleStyle(v,t,e,i,n),k=fn(c);let M;v.visible===!1?(M=_t.group({x:0,y:0,cursor:(r=T.style)===null||r===void 0?void 0:r.cursor}),this._appendDataToShape(M,Ci.item,t,M)):(M=_t.group(Object.assign({x:0,y:0},T.style)),this._appendDataToShape(M,Ci.item,t,M,T.state)),M.id=`${o??l}-${i}`,M.addState(e?Tt.selected:Tt.unSelected);const w=_t.group({x:0,y:0,pickable:!1});M.add(w);let C,R=0,I=0,O=0;if(_&&_.visible!==!1){const J=Pt(b,"style.size",a_);I=G(J)?J[0]||0:J,O=Pt(_,"space",dL);const $=_t.symbol(Object.assign(Object.assign({x:0,y:0,symbolType:"circle",strokeBoundsBuffer:0},d),b.style));Object.keys(b.state||{}).forEach(Z=>{const X=b.state[Z].fill||b.state[Z].stroke;d.fill&&P(b.state[Z].fill)&&X&&(b.state[Z].fill=X),d.stroke&&P(b.state[Z].stroke)&&X&&(b.state[Z].stroke=X)}),this._appendDataToShape($,Ci.itemShape,t,M,b.state),$.addState(e?Tt.selected:Tt.unSelected),w.add($)}let B=0;if(u){const J=Pt(p,"size",a_);C=_t.symbol(Object.assign(Object.assign({x:0,y:-J/2-1,strokeBoundsBuffer:0},p),{visible:!0,pickMode:"imprecise",boundsPadding:k})),this._appendDataToShape(C,Ci.focus,t,M),B=J}const L=m.formatMethod?m.formatMethod(l,t,i):l,F=Object.assign(Object.assign({x:I/2+O,y:0,textAlign:"start",textBaseline:"middle",lineHeight:(a=x.style)===null||a===void 0?void 0:a.fontSize},x.style),{text:L,_originText:m.formatMethod?l:void 0}),z=s_(F);this._appendDataToShape(z,Ci.itemLabel,t,M,x.state),z.addState(e?Tt.selected:Tt.unSelected),w.add(z);const K=Pt(m,"space",cL);if(E(h)){const J=Pt(y,"space",u?a6:0),$=y.formatMethod?y.formatMethod(h,t,i):h,Z=Object.assign(Object.assign({x:0,y:0,textAlign:"start",textBaseline:"middle",lineHeight:A.style.fontSize},A.style),{text:$,_originText:y.formatMethod?h:void 0}),X=s_(Z);if(this._appendDataToShape(X,Ci.itemValue,t,M,A.state),X.addState(e?Tt.selected:Tt.unSelected),this._itemWidthByUser){const dt=this._itemWidthByUser-k[1]-k[3]-I-O-K-B-J;this._autoEllipsis(f,dt,z,X),y.alignRight?X.setAttributes({textAlign:"right",x:this._itemWidthByUser-I/2-k[1]-k[3]-B-J}):X.setAttribute("x",J+(z.AABBBounds.empty()?0:z.AABBBounds.x2))}else X.setAttribute("x",J+(z.AABBBounds.empty()?0:z.AABBBounds.x2));R=J+(X.AABBBounds.empty()?0:X.AABBBounds.x2),w.add(X)}else this._itemWidthByUser&&z.setAttribute("maxLineWidth",this._itemWidthByUser-k[1]-k[3]-I-O-B),R=K+(z.AABBBounds.empty()?0:z.AABBBounds.x2);C&&(C.setAttribute("x",R),w.add(C));const et=w.AABBBounds,j=et.width();if(g==="right"){const J=et.x2,$=et.x1;w.forEachChildren((Z,X)=>{Z.type!=="symbol"&&Z.attribute.textAlign!=="right"||Z===C?Z.setAttribute("x",$+J-Z.attribute.x-Z.AABBBounds.width()):Z.type!=="symbol"?Z.setAttributes({x:$+J-Z.attribute.x,textAlign:"left"}):Z.setAttribute("x",$+J-Z.attribute.x)})}const st=et.height(),ht=E(this.attribute.item.width)?this.attribute.item.width:j+k[1]+k[3],ut=this._itemHeightByUser||st+k[0]+k[2];return M.attribute.width=ht,M.attribute.height=ut,C&&C.setAttribute("visible",!1),w.translateTo(-et.x1+k[3],-et.y1+k[0]),M}_createPager(t){var e,i;const{disableTriggerEvent:n,maxRow:r}=this.attribute;return this._itemContext.isHorizontal?new qc(Object.assign(Object.assign({layout:r===1?"horizontal":"vertical",total:99},U({handler:{preShape:"triangleUp",nextShape:"triangleDown"}},t)),{defaultCurrent:(e=this.attribute.pager)===null||e===void 0?void 0:e.defaultCurrent,disableTriggerEvent:n})):new qc(Object.assign({layout:"horizontal",total:99,disableTriggerEvent:n,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 e_(Object.assign(Object.assign({direction:"horizontal",disableTriggerEvent:i,range:[0,.5],height:12},t),{width:e})):new e_(Object.assign(Object.assign({direction:"vertical",width:12,range:[0,.5]},t),{height:e,disableTriggerEvent:i}))}_updatePositionOfPager(t,e,i,n,r){const{maxHeight:a,pager:o}=this.attribute,{totalPage:l,isHorizontal:h}=this._itemContext,d=o&&o.position||"middle";if(this._pagerComponent.setTotal(l),h){let c;c=d==="start"?i:d==="end"?i+r-this._pagerComponent.AABBBounds.height()/2:i+r/2-this._pagerComponent.AABBBounds.height()/2,this._pagerComponent.setAttributes({x:t,y:c})}else{let c;c=d==="start"?0:d==="end"?n-this._pagerComponent.AABBBounds.width():(n-this._pagerComponent.AABBBounds.width())/2,this._pagerComponent.setAttributes({x:c,y:a-this._pagerComponent.AABBBounds.height()})}}_updatePositionOfScrollbar(t,e,i){const{currentPage:n,totalPage:r,isHorizontal:a}=this._itemContext;this._pagerComponent.setScrollRange([(n-1)/r,n/r]),a?this._pagerComponent.setAttributes({x:0,y:i+e}):this._pagerComponent.setAttributes({x:t,y:i})}_bindEventsOfPager(t,e){const i=this.attribute.pager||{},{animation:n=!0,animationDuration:r=450,animationEasing:a="quadIn"}=i,o=this._itemContext.isScrollbar?h=>{const{value:d}=h.detail;let c=d[0]*this._itemContext.totalPage;return i.scrollByPosition?c+=1:c=Math.floor(c)+1,c}:h=>h.detail.current,l=h=>{const d=o(h);if(d!==this._itemContext.currentPage){if(this._itemContext.currentPage=d,this._itemContext&&this._itemContext.startIndex{const{width:C,height:R}=M.attribute;y0&&M.setAttributes({x:b,y:x}),b+=l+C}),this._itemContext.startX=b,this._itemContext.startY=x,this._itemContext.pages=A;const k=Math.ceil(A/r);this._itemContext.totalPage=k,this._updatePositionOfPager(y,v,t,_,m)}else{if(_=this._itemMaxWidth*n+(n-1)*l,m=i,y=_,f=this._createPager(p),this._pagerComponent=f,this._innerView.add(f),v=i-f.AABBBounds.height()-c-t,v<=0)return this._innerView.removeChild(f),!1;d.getChildren().forEach((M,w)=>{const{height:C}=M.attribute;v0&&M.setAttributes({x:b,y:x}),x+=h+C});const k=Math.ceil(A/n);this._itemContext.totalPage=k,this._updatePositionOfPager(y,v,t,_,m)}u>1&&(g?d.setAttribute("y",-(u-1)*(m+h)):d.setAttribute("x",-(u-1)*(_+l)));const T=_t.group({x:0,y:t,width:g?y:_,height:g?m:v,clip:!0,pickable:!1});return T.add(d),this._innerView.add(T),this._bindEventsOfPager(g?m+h:_+l,g?"y":"x"),!0}_renderScrollbar(){const t=this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",8):0,{maxWidth:e,maxHeight:i,item:n={},pager:r={}}=this.attribute,{spaceCol:a=ng,spaceRow:o=sg}=n,l=this._itemsContainer,{space:h=_x,defaultCurrent:d=1}=r,c=Fw(r,["space","defaultCurrent"]),{isHorizontal:u}=this._itemContext;let p,g=0,f=0,_=0,m=0,y=1;if(u)g=e,f=e,_=this._itemHeight,p=this._createScrollbar(c,g),this._pagerComponent=p,this._innerView.add(p),this._updatePositionOfScrollbar(f,_,t);else{if(g=i,p=this._createScrollbar(c,g),this._pagerComponent=p,this._innerView.add(p),_=i-t,f=this._itemMaxWidth,_<=0)return this._innerView.removeChild(p),!1;l.getChildren().forEach((b,x)=>{const{height:A}=b.attribute;y=Math.floor((m+A)/_)+1,m+=o+A}),this._itemContext.totalPage=y,this._itemContext.pages=y,this._updatePositionOfScrollbar(f,_,t)}d>1&&(u?l.setAttribute("x",-(d-1)*(f+a)):l.setAttribute("y",-(d-1)*(_+o)));const v=_t.group({x:0,y:t,width:f,height:_,clip:!0,pickable:!1});return v.add(l),this._innerView.add(v),this._bindEventsOfPager(u?f:_,u?"x":"y"),!0}_renderPagerComponent(){return this._itemContext.isScrollbar?this._renderScrollbar():this._renderPager(),!0}_hover(t,e){this._lastActiveItem=t,t.hasState(Tt.selected)?this._setLegendItemState(t,Tt.selectedHover,e):this._setLegendItemState(t,Tt.unSelectedHover,e);const i=t.getChildren()[0].find(n=>n.name===Ci.focus,!1);i&&i.setAttribute("visible",!0),this._dispatchLegendEvent($i.legendItemHover,t,e)}_unHover(t,e){let i=!1;(t.hasState(Tt.unSelectedHover)||t.hasState(Tt.selectedHover))&&(i=!0),t.removeState(Tt.unSelectedHover),t.removeState(Tt.selectedHover),t.getChildren()[0].getChildren().forEach(r=>{i||!r.hasState(Tt.unSelectedHover)&&!r.hasState(Tt.selectedHover)||(i=!0),r.removeState(Tt.unSelectedHover),r.removeState(Tt.selectedHover)});const n=t.getChildren()[0].find(r=>r.name===Ci.focus,!1);n&&n.setAttribute("visible",!1),i&&this._dispatchLegendEvent($i.legendItemAttributeUpdate,t,e),this._dispatchLegendEvent($i.legendItemUnHover,t,e)}_setLegendItemState(t,e,i){let n=!1;t.hasState(e)||(n=!0),t.addState(e,!0),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Ci.focus&&(n||r.hasState(e)||(n=!0),r.addState(e,!0))}),n&&this._dispatchLegendEvent($i.legendItemAttributeUpdate,t,i)}_removeLegendItemState(t,e,i){let n=!1;e.forEach(r=>{!n&&t.hasState(r)&&(n=!0),t.removeState(r)}),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Ci.focus&&e.forEach(a=>{!n&&r.hasState(a)&&(n=!0),r.removeState(a)})}),n&&this._dispatchLegendEvent($i.legendItemAttributeUpdate,t,i)}_getSelectedLegends(){var t;const e=[];return(t=this._itemsContainer)===null||t===void 0||t.getChildren().forEach(i=>{i.hasState(Tt.selected)&&e.push(i.data)}),e}_appendDataToShape(t,e,i,n,r={}){t.name=e,t.data=i,t.delegate=n,t.states=U({},d6,r)}_dispatchLegendEvent(t,e,i){const n=this._getSelectedLegends();n.sort((a,o)=>a.index-o.index);const r=n.map(a=>a.label);this._dispatchEvent(t,{item:e,data:e.data,selected:e.hasState(Tt.selected),currentSelectedItems:n,currentSelected:r,event:i})}_handleStyle(t,e,i,n,r){const a={};return t.style&&(N(t.style)?a.style=t.style(e,i,n,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,n,r):a.state[o]=t.state[o])})),a}};uL.defaultAttributes={layout:"horizontal",title:{align:"start",space:Wu,textStyle:{fontSize:12,fontWeight:"bold",fill:"#2C3542"}},item:{spaceCol:ng,spaceRow:sg,shape:{space:dL,style:{size:a_,cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{opacity:.5}}},label:{space:cL,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:a_,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:_x,handler:{style:{size:10},space:4}},hover:!0,select:!0,selectMode:"multiple",allowAllCanceled:!0};const gL=(s,t)=>Object.prototype.toString.call(s)===`[object ${t}]`,ln=s=>s==null,Un=s=>s!=null,fL=s=>Array.isArray?Array.isArray(s):gL(s,"Array"),_s=(s,t=!1)=>{const e=typeof s;return t?e==="number":e==="number"||gL(s,"Number")};function c6(s,t,e){Un(t)||(t=s,s=0),Un(e)||(e=1);let i=-1;const n=0|Math.max(0,Math.ceil((t-s)/e)),r=new Array(n);for(;++it?1:s>=t?0:NaN}function p6(s){return Number(s)}function g6(s,t,e=0,i){for(ln(i)&&(i=s.length);e>>1;u6(s[n],t)>0?i=n:e=n+1}return e}const _L=s=>{let t=null,e=null;return(...i)=>(t&&i.every((n,r)=>n===t[r])||(t=i,e=s(...i)),e)},mL=function(s,t,e){return se?e:s};function f6(s,t){let e;return s>t&&(e=s,s=t,t=e),i=>Math.max(s,Math.min(t,i))}function rg(s,t){return e=>s*(1-e)+t*e}function _6(s,t){return function(e){return Math.round(s*(1-e)+t*e)}}function m6(s,t){const e=s.valueOf(),i=t.valueOf(),n=new Date;return r=>(n.setTime(e*(1-r)+i*r),n)}function mx(s,t,e){t/=100,e/=100;const i=(1-Math.abs(2*e-1))*t,n=i*(1-Math.abs(s/60%2-1)),r=e-i/2;let a=0,o=0,l=0;return 0<=s&&s<60?(a=i,o=n,l=0):60<=s&&s<120?(a=n,o=i,l=0):120<=s&&s<180?(a=0,o=i,l=n):180<=s&&s<240?(a=0,o=n,l=i):240<=s&&s<300?(a=n,o=0,l=i):300<=s&&s<360&&(a=i,o=0,l=n),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 JS(s,t,e){s/=255,t/=255,e/=255;const i=Math.min(s,t,e),n=Math.max(s,t,e),r=n-i;let a=0,o=0,l=0;return a=r===0?0:n===s?(t-e)/r%6:n===t?(e-s)/r+2:(s-t)/r+4,a=Math.round(60*a),a<0&&(a+=360),l=(n+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 zw=/^#([0-9a-f]{3,8})$/,Hw={transparent:4294967040},ag={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 Lp(s){return((s=Math.max(0,Math.min(255,Math.round(s)||0)))<16?"0":"")+s.toString(16)}function xv(s){return _s(s)?new Ri(s>>16,s>>8&255,255&s,1):fL(s)?new Ri(s[0],s[1],s[2]):new Ri(255,255,255)}function v6(s){return _s(s)?new Ri(s>>>24,s>>>16&255,s>>>8&255,255&s):fL(s)?new Ri(s[0],s[1],s[2],s[3]):new Ri(255,255,255,1)}function Sv(s){return s<.04045?.0773993808*s:Math.pow(.9478672986*s+.0521327014,2.4)}function Av(s){return s<.0031308?12.92*s:1.055*Math.pow(s,.41666)-.055}class bs{static Brighter(t,e=1){return e===1?t:new bs(t).brighter(e).toRGBA()}static SetOpacity(t,e=1){return e===1?t:new bs(t).setOpacity(e).toRGBA()}static getColorBrightness(t,e="hsl"){const i=t instanceof bs?t:new bs(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(Un(Hw[t]))return v6(Hw[t]);if(Un(ag[t]))return xv(ag[t]);const e=`${t}`.trim().toLowerCase(),i=zw.exec(e);if(i){const n=parseInt(i[1],16),r=i[1].length;return r===3?new Ri((n>>8&15)+((n>>8&15)<<4),(n>>4&15)+((n>>4&15)<<4),(15&n)+((15&n)<<4),1):r===6?xv(n):r===8?new Ri(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):void 0}if(/^(rgb|RGB|rgba|RGBA)/.test(e)){const n=e.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,"").split(",");return new Ri(parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10),parseFloat(n[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(e)){const n=e.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,"").split(","),r=mx(parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10));return new Ri(r.r,r.g,r.b,parseFloat(n[3]))}}constructor(t){const e=bs.parseColorString(t);e?this.color=e:(console.warn(`Warn: 传入${t}无法解析为Color`),this.color=new Ri(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:n}=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(n*t))),this}add(t){const{r:e,g:i,b:n}=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,n+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:n}=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(n*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 n=this.color.opacity,r=JS(this.color.r,this.color.g,this.color.b),a=mx(ln(t)?r.h:mL(t,0,360),ln(e)?r.s:e>=0&&e<=1?100*e:e,ln(i)?r.l:i<=1&&i>=0?100*i:i);return this.color=new Ri(a.r,a.g,a.b,n),this}setRGB(t,e,i){return!ln(t)&&(this.color.r=t),!ln(e)&&(this.color.g=e),!ln(i)&&(this.color.b=i),this}setHex(t){const e=`${t}`.trim().toLowerCase(),i=zw.exec(e),n=parseInt(i[1],16),r=i[1].length;return r===3?new Ri((n>>8&15)+((n>>8&15)<<4),(n>>4&15)+((n>>4&15)<<4),(15&n)+((15&n)<<4),1):r===6?xv(n):r===8?new Ri(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):this}setColorName(t){const e=ag[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 bs(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=Sv(t.color.r),this.color.g=Sv(t.color.g),this.color.b=Sv(t.color.b),this}copyLinearToSRGB(t){return this.color.r=Av(t.color.r),this.color.g=Av(t.color.g),this.color.b=Av(t.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}}class Ri{constructor(t,e,i,n){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)),Un(n)?this.opacity=isNaN(+n)?1:Math.max(0,Math.min(1,+n)):this.opacity=1}formatHex(){return`#${Lp(this.r)+Lp(this.g)+Lp(this.b)+(this.opacity===1?"":Lp(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:n}=JS(this.r,this.g,this.b);return`${t===1?"hsl(":"hsla("}${e},${i}%,${n}%${t===1?")":`,${t})`}`}toString(){return this.formatHex()}}function y6(s){let t="",e="",i="";const n=s[0]==="#"?1:0;for(let r=n;r{const c=Math.round(e*(1-d)+i*d),u=Math.round(n*(1-d)+r*d),p=Math.round(a*(1-d)+o*d);return new Ri(c,u,p,l*(1-d)+h*d)}}const S6=Object.freeze(Object.defineProperty({__proto__:null,Color:bs,DEFAULT_COLORS:ag,RGB:Ri,hexToRgb:y6,hslToRgb:mx,interpolateRgb:x6,rgbToHex:b6,rgbToHsl:JS},Symbol.toStringTag,{value:"Module"}));var o_;(function(s){s.Identity="identity",s.Linear="linear",s.Log="log",s.Pow="pow",s.Sqrt="sqrt",s.Symlog="symlog",s.Time="time",s.Quantile="quantile",s.Quantize="quantize",s.Threshold="threshold",s.Ordinal="ordinal",s.Point="point",s.Band="band"})(o_||(o_={}));Object.values(o_).forEach(s=>{});function Zh(s){return s}function vx(s,t){if(s=Number(s),t=Number(t),t-=s)return i=>(i-s)/t;const e=Number.isNaN(t)?NaN:.5;return()=>e}function jw(s,t,e){const i=s[0],n=s[1],r=t[0],a=t[1];let o,l;return nl(o(h))}function A6(s,t){const e=(s[1]-s[0])/(t[1]-t[0]),i=s[0]-e*t[0];return[i,e+i]}function k6(s,t,e){const i=Math.min(s.length,t.length)-1,n=new Array(i),r=new Array(i);let a=-1;for(s[i]n>=0&&n<=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):Un(this._rangeFactorStart)&&Un(this._rangeFactorEnd)?[this._rangeFactorStart,this._rangeFactorEnd]:null}rangeFactorStart(t,e){var i;return ln(t)?this._rangeFactorStart:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!ln(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 ln(t)?this._rangeFactorEnd:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!ln(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:n}=this._fishEyeOptions,r=this.range(),a=r[0],o=r[r.length-1],l=Math.min(a,o),h=Math.max(a,o),d=mL((t=this._fishEyeOptions.focus)!==null&&t!==void 0?t:0,l,h),c=ln(n)?(h-l)*i:n;let u=Math.exp(e);u=u/(u-1)*c;const p=e/c;this._fishEyeTransform=g=>{const f=Math.abs(g-d);if(f>=c)return g;if(f<=1e-6)return d;const _=u*(1-Math.exp(-f*p))/f*.75+.25;return d+(g-d)*_}}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}}const{interpolateRgb:kv}=S6;function M6(s,t){const e=typeof t;let i;if(ln(t)||e==="boolean")return()=>t;if(e==="number")return rg(s,t);if(e==="string"){if(i=bs.parseColorString(t)){const n=kv(bs.parseColorString(s),i);return r=>n(r).formatRgb()}return rg(Number(s),Number(t))}return t instanceof Ri?kv(s,t):t instanceof bs?kv(s.color,t.color):t instanceof Date?m6(s,t):rg(Number(s),Number(t))}class w6 extends T6{constructor(t=Zh,e=Zh){super(),this._unknown=void 0,this.transformer=t,this.untransformer=e,this._forceAlign=!0,this._domain=[0,1],this._range=[0,1],this._clamp=Zh,this._piecewise=jw,this._interpolate=M6}calculateVisibleDomain(t){var e;return Un(this._rangeFactorStart)&&Un(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),rg)),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 n=Array.from(t,p6);return this._domain=n,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=_6,this.rescale(e)}rescale(t){var e;if(t)return this;const i=(e=this._niceDomain)!==null&&e!==void 0?e:this._domain,n=i.length,r=this._range.length;let a=Math.min(n,r);if(n&&n=2?(l-i[n-2])/o:0;for(let d=1;d<=o;d++)i[n-2+d]=l-h*(o-d);a=r}return this._autoClamp&&(this._clamp=f6(i[0],i[a-1])),this._piecewise=a>2?k6:jw,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:Zh),this.rescale(i)):this._clamp!==Zh}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,n)=>({index:n,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 ln(t)?super.rangeFactorStart():(super.rangeFactorStart(t),this._output=this._input=null,this)}rangeFactorEnd(t,e){return ln(t)?super.rangeFactorEnd():(super.rangeFactorEnd(t),this._output=this._input=null,this)}forceAlignDomainRange(t){return arguments.length?(this._forceAlign=t,this):this._forceAlign}}const C6=Math.sqrt(50),P6=Math.sqrt(10),E6=Math.sqrt(2),Op=[1,2,5,10],Vw=(s,t,e)=>{let i=1,n=s;const r=Math.floor((t-1)/2),a=Math.abs(s);return s>=0&&s<=Number.MIN_VALUE?n=0:s<0&&s>=-Number.MIN_VALUE?n=-(t-1):!e&&a<1?i=vL(a).step:(e||a>1)&&(n=Math.floor(s)-r*i),i>0?(s>0?n=Math.max(n,0):s<0&&(n=Math.min(n,-(t-1)*i)),c6(0,t).map(o=>n+o*i)):s>0?l_(0,-(t-1)/i,i):l_((t-1)/i,0,i)},R6=_L((s,t,e,i)=>{let n,r,a,o,l=-1;if(e=+e,(s=+s)==(t=+t))return[s];if(Math.abs(s-t)<=Number.MIN_VALUE&&e>0)return[s];if((n=t0){let h=Math.round(s/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,n,r=-1;if(e>0){let a=Math.floor(s/e),o=Math.ceil(t/e);for((a+1)*et&&--o,n=new Array(i=o-a+1);++rt&&--o,n=new Array(i=o-a+1);++r{let i;const n=s[0],r=s[s.length-1],a=t-s.length;if(r<=0){const h=[];for(i=a;i>=1;i--)h.push(n-i*e);return h.concat(s)}if(n>=0){for(i=1;i<=a;i++)s.push(r+i*e);return s}let o=[];const l=[];for(i=1;i<=a;i++)i%2==0?o=[n-Math.floor(i/2)*e].concat(o):l.push(r+Math.ceil(i/2)*e);return o.concat(s).concat(l)},I6=_L((s,t,e,i)=>{let n,r,a;if(e=+e,(s=+s)==(t=+t)||Math.abs(s-t)<=Number.MIN_VALUE&&e>0)return Vw(s,e,i==null?void 0:i.noDecimals);(n=t0){let h=1;const{power:d,gap:c}=o,u=c===10?2*10**d:1*10**d;for(;h<=5&&(r=l_(s,t,l),r.length>e+1)&&e>2;)l+=u,h+=1;e>2&&r.length{const t=Math.floor(Math.log(s)/Math.LN10),e=s/10**t;let i=Op[0];return e>=C6?i=Op[3]:e>=P6?i=Op[2]:e>=E6&&(i=Op[1]),t>=0?{step:i*10**t,gap:i,power:t}:{step:-(10**-t)/i,gap:i,power:t}};function QS(s,t,e){const i=(t-s)/Math.max(0,e);return vL(i)}function L6(s,t,e){let i;if(e=+e,(s=+s)==(t=+t)&&e>0)return[s];if(e<=0||(i=O6(s,t,e))===0||!isFinite(i))return[];const n=new Array(e);for(let r=0;r0;){if(i=QS(a,o,t).step,i===e)return s[n]=a,s[r]=o,s;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 F6(s,t){const e=_s(t.forceMin),i=_s(t.forceMax);let n=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:_s(t.min)&&t.min<=Math.min(s[0],s[s.length-1])&&(r[0]=t.min),i?r[1]=t.forceMax:_s(t.max)&&t.max>=Math.max(s[0],s[s.length-1])&&(r[1]=t.max),_s(r[0])&&_s(r[1])?(a=s.slice(),a[0]=r[0],a[a.length-1]=r[1]):n=_s(r[0])||_s(r[1])?_s(r[0])?"max":"min":"all",{niceType:n,niceDomain:a,niceMinMax:r,domainValidator:o}}class t1 extends w6{constructor(){super(...arguments),this.type=o_.Linear}clone(){return new t1().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 R6(i[0],i[i.length-1],t,e)}ticks(t=10,e){var i;if(Un(this._rangeFactorStart)&&Un(this._rangeFactorEnd)&&(this._rangeFactorStart>0||this._rangeFactorEnd<1)&&this._range.length===2||!this._niceType)return this.d3Ticks(t,e);const n=(i=this._niceDomain)!==null&&i!==void 0?i:this._domain,r=this._domain,a=n[0],o=n[n.length-1];let l=I6(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=n.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 L6(e[0],e[e.length-1],t)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return D6(e[0],e[e.length-1],t)}nice(t=10,e){var i,n;const r=this._domain;let a=[];if(e){const o=F6(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=Tv(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]=(n=a[0])!==null&&n!==void 0?n:o[0]),this._niceDomain=o,this.rescale()}return this}niceMin(t=10){this._niceType="min";const e=this._domain[this._domain.length-1],i=Tv(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=Tv(this._domain.slice(),t);return i&&(i[0]=e,this._niceDomain=i,this.rescale()),this}}var wi;(function(s){s.innerView="innerView",s.railContainer="sliderRailContainer",s.rail="sliderRail",s.startText="sliderStartText",s.endText="sliderEndText",s.startHandler="sliderStartHandler",s.startHandlerText="startHandlerText",s.endHandler="sliderEndHandler",s.endHandlerText="sliderEndHandlerText",s.track="sliderTrack",s.trackContainer="sliderTrackContainer"})(wi||(wi={}));function Mv(s){return G(s)?s:[s,s]}function Dp(s){return s?"ew-resize":"ns-resize"}Jm();class Oh extends ci{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:U({},Oh.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 n=this._isHorizontal?this._rail.globalAABBBounds.width():this._rail.globalAABBBounds.height(),r=Ye(this._isHorizontal?(i.viewX-this._rail.globalAABBBounds.x1)/n:(i.viewY-this._rail.globalAABBBounds.y1)/n,0,1);r!==this._tooltipState.pos&&(this._tooltipState.pos=r,this._tooltipState.value=this.calculateValueByPos(r*n),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:n,y:r}=this.stage.eventPointTransform(i);this._currentHandler=i.target,this._prePos=this._isHorizontal?n:r,Ot.env==="browser"?(Ot.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Ot.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 n,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,p,g,f=0;this._isHorizontal?(u=d,f=u-this._prePos,p=(r=this._currentHandler)===null||r===void 0?void 0:r.attribute.x,g=a):(u=c,f=u-this._prePos,p=(n=this._currentHandler)===null||n===void 0?void 0:n.attribute.y,g=o);const _=Ye(p+f,0,g),m=this.calculateValueByPos(_);this._currentHandler.type==="text"?this._updateHandlerText(this._currentHandler,_,m):this._updateHandler(this._currentHandler,_,m),this._updateTrack(),this._prePos=u,this._dispatchChangeEvent()},this._onHandlerPointerUp=i=>{i.preventDefault(),this._isChanging=!1,this._currentHandler=null,Ot.env==="browser"?(Ot.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Ot.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:n,y:r}=this.stage.eventPointTransform(i);this._prePos=this._isHorizontal?n:r,Ot.env==="browser"?(Ot.addEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Ot.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:n,railHeight:r,min:a,max:o,inverse:l}=this.attribute;if(o===a)return;const{startHandler:h,endHandler:d}=this._getHandlers();let c,u,p;const{x:g,y:f}=this.stage.eventPointTransform(i);this._isHorizontal?(c=g,u=this._track.attribute.width,p=n):(c=f,u=this._track.attribute.height,p=r);const _=c-this._prePos;if(h){const m=this._isHorizontal?h.attribute.x:h.attribute.y,y=l?Ye(m+_,u,p):Ye(m+_,0,p-u),v=this.calculateValueByPos(y);this._updateHandler(h,y,v)}if(d){const m=this._isHorizontal?d.attribute.x:d.attribute.y,y=l?Ye(m+_,0,p-u):Ye(m+_,u,p),v=this.calculateValueByPos(y),b=h==null?void 0:h.attribute;this._updateHandler(d,y,v),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,Ot.env==="browser"?(Ot.removeEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Ot.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:n,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 p=this.calculateValueByPos(d);if(E(u)){const g=Math.abs(d-c)>Math.abs(d-u)?h:l;this._updateHandler(g,d,p)}else this._updateHandler(l,d,p);this._updateTrack(),this._dispatchChangeEvent()}}calculatePosByValue(t,e){const{layout:i,railWidth:n,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:n)}calculateValueByPos(t){const{layout:e,railWidth:i,railHeight:n,min:r,max:a,inverse:o}=this.attribute,l=e==="vertical"?n: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[n,r]=V(t),{startHandler:a,endHandler:o}=this._getHandlers();a&&this._updateHandler(a,this.calculatePosByValue(n),n),o&&this._updateHandler(o,this.calculatePosByValue(r),r),this._updateTrack()}render(){var t,e;this.removeAllChild(!0);const{layout:i="horizontal",railWidth:n,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:Mv(u)[0],endValue:Mv(u)[1]};const p=i==="horizontal";this._isHorizontal=p;const g=_t.group({x:0,y:0});g.name=wi.innerView,this.add(g),this._innerView=g;let f,_=0;if(a&&a.visible){f=_t.text(Object.assign({x:p?0:n/2,y:p?r/2:0,textAlign:p?"start":"center",textBaseline:p?"middle":"top",text:a.text,lineHeight:(t=a.style)===null||t===void 0?void 0:t.fontSize},a.style)),f.name=wi.startText,g.add(f);const b=E(a.space)?a.space:0;_+=(p?f.AABBBounds.width():f.AABBBounds.height())+b}const m=_t.group({x:p?_:0,y:p?0:_});g.add(m);const y=_t.group({x:0,y:0});let v;if(y.name=wi.railContainer,this._railContainer=y,m.add(y),this._mainContainer=m,this._renderRail(y),_+=p?n:r,o&&o.visible){const b=E(o.space)?o.space:0;v=_t.text(Object.assign({x:p?_+b:n/2,y:p?r/2:_+b,textAlign:p?"start":"center",textBaseline:p?"middle":"top",text:o.text,lineHeight:(e=o.style)===null||e===void 0?void 0:e.fontSize},o.style)),v.name=wi.endText,g.add(v)}this._renderTrack(y),d&&(this._renderHandlers(m),this._bindEvents()),c&&(this._renderTooltip(),this._bindTooltipEvents())}_renderRail(t){const{railWidth:e,railHeight:i,railStyle:n,slidable:r}=this.attribute;let a="default";r!==!1&&(a="pointer");const o=_t.rect(Object.assign({x:0,y:0,width:e,height:i,cursor:a},n));return o.name=wi.rail,t.add(o),this._rail=o,o}_renderHandlers(t){const{range:e,min:i,max:n,handlerSize:r=14,handlerStyle:a,handlerText:o,railHeight:l,railWidth:h,slidable:d}=this.attribute;let{value:c}=this.attribute;P(c)&&(c=[i,n]);const u=o&&o.visible,p=this._isHorizontal,[g,f]=Mv(c),_=this.calculatePosByValue(g,e?"start":"end"),m=this._renderHandler(Object.assign({x:p?_:h/2,y:p?l/2:_,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":Dp(p)},a));if(m.name=wi.startHandler,this._startHandler=m,t.add(m),this._currentValue.startPos=_,u){const y=this._renderHandlerText(g,e?"start":"end");y.name=wi.startHandlerText,t.add(y),this._startHandlerText=y}if(e){const y=this.calculatePosByValue(f,"end"),v=this._renderHandler(Object.assign({x:p?y:h/2,y:p?l/2:y,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":Dp(p)},a));if(v.name=wi.endHandler,this._endHandler=v,t.add(v),this._currentValue.endPos=y,u){const b=this._renderHandlerText(f,"end");b.name=wi.endHandlerText,t.add(b),this._endHandlerText=b}}}_renderTrack(t){const{range:e,min:i,max:n,railHeight:r,railWidth:a,trackStyle:o,railStyle:l,slidable:h,value:d}=this.attribute;let c,u;if(P(d))e?(c=i,u=n):c=u=i;else if(e){const b=ao(d,i,n);c=b[0],u=b[1]}else c=i,u=Ye(d,i,n);const p=this._isHorizontal;e||(c=i);const g=_t.group({x:0,y:0,width:a,height:r,cornerRadius:l==null?void 0:l.cornerRadius,clip:!0,pickable:!1});g.name=wi.trackContainer;const f=Et(e)&&e.draggableTrack===!0;let _;_=h===!1?"default":e===!1||f===!1?"pointer":Dp(p);const m=this.calculatePosByValue(c,"start"),y=this.calculatePosByValue(u,e?"end":"start"),v=_t.rect(Object.assign({x:p?Math.min(m,y):0,y:p?0:Math.min(m,y),width:p?Math.abs(y-m):a,height:p?r:Math.abs(y-m),cursor:_},o));v.name=wi.track,this._track=v,g.add(v),t.add(g)}_renderHandler(t){return _t.symbol(t)}_renderHandlerText(t,e){var i,n,r;const{align:a,handlerSize:o=14,handlerText:l={},railHeight:h,railWidth:d,slidable:c}=this.attribute,u=this._isHorizontal,p=this.calculatePosByValue(t,e),g=(i=l.space)!==null&&i!==void 0?i:4,f={text:l.formatter?l.formatter(t):t.toFixed((n=l.precision)!==null&&n!==void 0?n:0),lineHeight:(r=l.style)===null||r===void 0?void 0:r.lineHeight,cursor:c===!1?"default":Dp(u)};return u?a==="top"?(f.textBaseline="bottom",f.textAlign="center",f.x=p,f.y=(h-o)/2-g):(f.textBaseline="top",f.textAlign="center",f.x=p,f.y=(h+o)/2+g):a==="left"?(f.textBaseline="middle",f.textAlign="end",f.x=(d-o)/2-g,f.y=p):(f.textBaseline="middle",f.textAlign="start",f.x=(d+o)/2+g,f.y=p),_t.text(Object.assign(Object.assign({},f),l.style))}_renderTooltip(){var t;const{tooltip:e,railHeight:i,railWidth:n,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:n/2,o=this._isHorizontal?i/2:0;if(e&&e.shape){const u=_t.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-n/2-h:o+n/2+h,d.textAlign=r==="left"?"end":"start",d.textBaseline="middle");const c=_t.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:n}=this.attribute,r=this._isHorizontal?i:n,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),Et(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,n=this._startHandler,r=this._endHandler;if(this._isHorizontal){const a=n==null?void 0:n.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=n==null?void 0:n.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 n;const r=this._isHorizontal;t.setAttribute(r?"x":"y",e);const a=t.name===wi.startHandler?this._startHandlerText:this._endHandlerText;if(a){const{handlerText:o={}}=this.attribute;a.setAttributes({text:o.formatter?o.formatter(i):i.toFixed((n=o.precision)!==null&&n!==void 0?n:0),[r?"x":"y"]:e})}t.name===wi.startHandler?(this._currentValue.startValue=i,this._currentValue.startPos=e):(this._currentValue.endValue=i,this._currentValue.endPos=e)}_updateHandlerText(t,e,i){var n;const r=this._isHorizontal,{handlerText:a={}}=this.attribute;t.setAttributes({[r?"x":"y"]:e,text:a.formatter?a.formatter(i):i.toFixed((n=a.precision)!==null&&n!==void 0?n:0)});const o=t.name===wi.startHandlerText?this._startHandler:this._endHandler;o&&o.setAttributes({[r?"x":"y"]:e}),t.name===wi.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}}}Oh.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}}};l6();class Qm extends qS{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Qm.defaultAttributes,t)),this.name="colorLegend",this._onSliderToolipChange=i=>{const n=this._slider.tooltipShape;if(n&&i.detail&&!P(i.detail.value)){const r=this._colorScale.scale(i.detail.value);n.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:n,min:r,max:a,value:o,railWidth:l,railHeight:h,showHandler:d=!0,handlerSize:c,handlerStyle:u,railStyle:p,trackStyle:g,startText:f,endText:_,handlerText:m,showTooltip:y,tooltip:v,inverse:b,disableTriggerEvent:x}=this.attribute,A=[],T=(a-r)/(t.length-1);for(let M=0;M1){const f=this._color.stops,_=Math.min(d,c),m=Math.max(d,c),y=_/g,v=m/g,b=v-y,x=f.filter(C=>C.offset>y&&C.offset{w.push({offset:(C.offset-y)/b,color:C.color})}),w.push({offset:1,color:M}),o.setAttribute("fill",Object.assign(Object.assign({},this._color),{stops:w}))}}}Qm.defaultAttributes={layout:"horizontal",title:{align:"start",space:Wu,textStyle:{fontSize:12,fontWeight:"bold",fill:"rgba(46, 47, 50, 1)"}},handlerSize:10,handlerStyle:{lineWidth:4,stroke:"#fff",outerBorder:{distance:2,lineWidth:1,stroke:"#ccc"}},tooltip:{shapeStyle:{lineWidth:4,stroke:"#fff"}}};function z6(s="bottom"){let t=0;return s==="top"?` + M${t},-6L${t-3.5},-2.5 + v5 + h7 + v-5 + Z +`:s==="left"?(t=1,` + M${t-6},0L${t-6+2.5},-3.5 + h5 + v7 + h-5 + Z +`):s==="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 +`}h6();class t0 extends qS{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},t0.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:n,max:r,value:a,railWidth:o,railHeight:l,showHandler:h=!0,handlerSize:d,handlerStyle:c,railStyle:u,trackStyle:p,startText:g,endText:f,handlerText:_,showTooltip:m,tooltip:y,sizeBackground:v,disableTriggerEvent:b,inverse:x}=this.attribute,A=_t.group({x:0,y:0});this._innerView.add(A);const T=new Oh({x:0,y:0,zIndex:1,range:{draggableTrack:!0},slidable:t,layout:e,align:i,min:n,max:r,value:a,railWidth:o,railHeight:l,showHandler:h,handlerSize:d,handlerStyle:Object.assign({symbolType:z6(i)},c),railStyle:u,trackStyle:p,startText:g,endText:f,handlerText:_,showTooltip:m,tooltip:y,disableTriggerEvent:b,inverse:x});A.add(T);let k,M=0;e==="horizontal"?i==="top"?(k=`M0,0L${o},0L${x?0:o},12Z`,M=l):(k=`M0,12L${o},12L${x?0:o},0Z`,T.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`,T.setAttribute("x",12));const w=_t.path(Object.assign(Object.assign({x:0,y:M,path:k},v),{zIndex:0}));A.add(w);const C=this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",Wu):0;A.translate(0-A.AABBBounds.x1,C-A.AABBBounds.y1),this._slider=T}_bindEvents(){this.attribute.disableTriggerEvent||this._slider&&(this._slider.addEventListener("change",this._onSliderChange),this._slider.addEventListener("sliderTooltip",this._onSliderToolipChange))}}t0.defaultAttributes={layout:"horizontal",title:{align:"start",space:Wu,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 H6(){je(),lr(),Za()}H6();let yL=class bL extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},bL.defaultAttributes,t)),this.name="title"}render(){var t,e,i,n,r,a,o,l,h,d,c,u,p,g,f,_,m,y,v,b,x,A,T,k,M,w,C,R,I,O,B,L,F,z,K,et,j,st,ht,ut,J,$;const{textType:Z,text:X,subtextType:dt,textStyle:ct={},subtext:kt,subtextStyle:ot={},width:yt,height:St,minWidth:Dt,maxWidth:At,minHeight:Se,maxHeight:_e,align:si,verticalAlign:Re,padding:Je=0}=this.attribute,zi=fn(Je),Ai=this.createOrUpdateChild("title-container",{x:zi[3],y:zi[0],zIndex:1},"group");if(this.attribute.visible!==!1&&ct.visible!==!1)if(Z==="rich"||E(ct.character)){const te=Object.assign({x:(t=ct.x)!==null&&t!==void 0?t:0,y:(e=ct.y)!==null&&e!==void 0?e:0,width:(n=(i=ct.width)!==null&&i!==void 0?i:yt)!==null&&n!==void 0?n:0,height:(a=(r=ct.height)!==null&&r!==void 0?r:St)!==null&&a!==void 0?a:0,ellipsis:(o=ct.ellipsis)===null||o===void 0||o,wordBreak:(l=ct.wordBreak)!==null&&l!==void 0?l:"break-word",maxHeight:ct.maxHeight,maxWidth:ct.maxWidth,textConfig:(h=ct.character)!==null&&h!==void 0?h:X},ct);this._mainTitle=Ai.createOrUpdateChild("mainTitle",te,"richtext")}else if(Z==="html"){const te=Object.assign({html:Object.assign(Object.assign({dom:X},t_),ct),x:(d=ct.x)!==null&&d!==void 0?d:0,y:(c=ct.y)!==null&&c!==void 0?c:0,width:(p=(u=ct.width)!==null&&u!==void 0?u:yt)!==null&&p!==void 0?p:0,height:(f=(g=ct.height)!==null&&g!==void 0?g:St)!==null&&f!==void 0?f:0,ellipsis:(_=ct.ellipsis)===null||_===void 0||_,wordBreak:(m=ct.wordBreak)!==null&&m!==void 0?m:"break-word",maxHeight:ct.maxHeight,maxWidth:ct.maxWidth,textConfig:[]},ct);this._mainTitle=Ai.createOrUpdateChild("mainTitle",te,"richtext")}else E(X)&&(this._mainTitle=Ai.createOrUpdateChild("mainTitle",Object.assign(Object.assign({text:G(X)?X:[X],wrap:!0},ct),{maxLineWidth:(y=ct.maxLineWidth)!==null&&y!==void 0?y:yt,heightLimit:ct.heightLimit,lineClamp:ct.lineClamp,ellipsis:(v=ct.ellipsis)===null||v===void 0||v,x:0,y:0}),"text"));const js=this._mainTitle?this._mainTitle.AABBBounds.height():0,Zr=this._mainTitle?this._mainTitle.AABBBounds.width():0;if(this.attribute.visible!==!1&&ot.visible!==!1)if(dt==="rich"||E(ot.character)){const te=Object.assign({x:(b=ot.x)!==null&&b!==void 0?b:0,y:(x=ot.y)!==null&&x!==void 0?x:0,width:(T=(A=ot.width)!==null&&A!==void 0?A:yt)!==null&&T!==void 0?T:0,height:(M=(k=ot.height)!==null&&k!==void 0?k:St)!==null&&M!==void 0?M:0,ellipsis:(w=ot.ellipsis)===null||w===void 0||w,wordBreak:(C=ot.wordBreak)!==null&&C!==void 0?C:"break-word",maxHeight:ot.maxHeight,maxWidth:ot.maxWidth,textConfig:(R=ot.character)!==null&&R!==void 0?R:kt},ot);this._subTitle=Ai.createOrUpdateChild("subTitle",te,"richtext")}else if(dt==="html"){const te=Object.assign({html:Object.assign(Object.assign({dom:kt},t_),ot),x:(I=ot.x)!==null&&I!==void 0?I:0,y:(O=ot.y)!==null&&O!==void 0?O:0,width:(L=(B=ot.width)!==null&&B!==void 0?B:yt)!==null&&L!==void 0?L:0,height:(z=(F=ot.height)!==null&&F!==void 0?F:St)!==null&&z!==void 0?z:0,ellipsis:(K=ot.ellipsis)===null||K===void 0||K,wordBreak:(et=ot.wordBreak)!==null&&et!==void 0?et:"break-word",maxHeight:ot.maxHeight,maxWidth:ot.maxWidth,textConfig:[]},ot);this._subTitle=Ai.createOrUpdateChild("subTitle",te,"richtext")}else E(kt)&&(this._subTitle=Ai.createOrUpdateChild("subTitle",Object.assign(Object.assign({text:G(kt)?kt:[kt],wrap:!0},ot),{maxLineWidth:(j=ot.maxLineWidth)!==null&&j!==void 0?j:yt,heightLimit:ot.heightLimit,lineClamp:ot.lineClamp,ellipsis:(st=ot.ellipsis)===null||st===void 0||st,x:0,y:js}),"text"));const cl=this._subTitle?this._subTitle.AABBBounds.height():0,he=this._subTitle?this._subTitle.AABBBounds.width():0;let Me=Math.max(Zr,he),ki=js+((ht=ot.height)!==null&&ht!==void 0?ht:cl);if(E(yt)&&(Me=yt,this._mainTitle&&this._mainTitle.setAttribute("maxLineWidth",yt),this._subTitle&&this._subTitle.setAttribute("maxLineWidth",yt)),E(St)&&(ki=St),E(Dt)&&MeAt&&(Me=At)),E(Se)&&ki_e&&(ki=_e)),Ai.attribute.width=Me,Ai.attribute.height=ki,Ai.attribute.boundsPadding=zi,this._mainTitle){if(E(si)||E(ct.align)){const te=ct.align?ct.align:si,me=(ut=ct.width)!==null&&ut!==void 0?ut:Zr;te==="left"?(this._mainTitle.setAttribute("x",0),this._mainTitle.setAttribute("textAlign","left")):te==="center"?(this._mainTitle.setAttribute("x",me/2),this._mainTitle.setAttribute("textAlign","center")):te==="right"&&(this._mainTitle.setAttribute("x",me),this._mainTitle.setAttribute("textAlign","right"))}if(E(Re)||E(ct.verticalAlign)){const te=ct.verticalAlign?ct.verticalAlign:Re,me=ct.height?ct.height:ki;te==="top"?(this._mainTitle.setAttribute("y",0),this._mainTitle.setAttribute("textBaseline","top")):te==="middle"?(this._mainTitle.setAttribute("y",me/2),this._mainTitle.setAttribute("textBaseline","middle")):te==="bottom"&&(this._mainTitle.setAttribute("y",me),this._mainTitle.setAttribute("textBaseline","bottom"))}}if(this._subTitle){if(E(si)||E(ot.align)){const te=ot.align?ot.align:si,me=(J=ot.width)!==null&&J!==void 0?J:he;te==="left"?(this._subTitle.setAttribute("x",0),this._subTitle.setAttribute("textAlign","left")):te==="center"?(this._subTitle.setAttribute("x",me/2),this._subTitle.setAttribute("textAlign","center")):te==="right"&&(this._subTitle.setAttribute("x",me),this._subTitle.setAttribute("textAlign","right"))}if(E(Re)||E(ct.verticalAlign)){const te=ot.verticalAlign?ot.verticalAlign:Re,me=js,Be=($=ot.height)!==null&&$!==void 0?$:0;te==="top"?(this._subTitle.setAttribute("y",me),this._subTitle.setAttribute("textBaseline","top")):te==="middle"?(this._subTitle.setAttribute("y",me+Be/2),this._subTitle.setAttribute("textBaseline","middle")):te==="bottom"&&(this._subTitle.setAttribute("y",me+Be),this._subTitle.setAttribute("textBaseline","bottom"))}}}};yL.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 Ww={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 j6(){je(),lr(),Za()}j6();let V6=class extends ci{constructor(){super(...arguments),this.name="indicator"}render(){var t;const{visible:e,title:i={},content:n,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},"group");if(e!==!0)return void(l&&l.hideAll());if(E(i))if(i.visible!==!1){const d=U({},Pt(Ww,"title.style"),i.style);hx(d)?this._title=l.createOrUpdateChild("indicator-title",Object.assign(Object.assign({},n_(d)),{visible:i.visible,x:0,y:0}),"richtext"):this._title=l.createOrUpdateChild("indicator-title",Object.assign(Object.assign({},d),{lineHeight:E(d.lineHeight)?d.lineHeight:d.fontSize,visible:i.visible,x:0,y:0}),"text"),i.autoFit&&W(o)&&this._setLocalAutoFit(o,this._title,i),i.autoLimit&&W(a)&&this._title.setAttribute("maxLineWidth",o)}else{const d=l.find(c=>c.name==="indicator-title",!1);d&&l.removeChild(d),this._title=void 0}if(E(n)){const d=V(n),c=[];d.forEach((u,p)=>{if(u.visible!==!1){const g=U({},Pt(Ww,"content.style"),u.style);let f;f=hx(g)?l.createOrUpdateChild("indicator-content-"+p,Object.assign(Object.assign({},n_(g)),{visible:i.visible,x:0,y:0}),"richtext"):l.createOrUpdateChild("indicator-content-"+p,Object.assign(Object.assign({},g),{lineHeight:E(g.lineHeight)?g.lineHeight:g.fontSize,visible:u.visible,x:0,y:0}),"text"),u.autoFit&&W(o)&&this._setLocalAutoFit(o,f,u),u.autoLimit&&W(a)&&f.setAttribute("maxLineWidth",o),c.push(f)}else{const g=l.find(f=>f.name==="indicator-content-"+p,!1);g&&l.removeChild(g)}}),this._content=c}this._setGlobalAutoFit(o),this._setYPosition();const h=(t=l==null?void 0:l.AABBBounds.height())!==null&&t!==void 0?t:0;l.setAttribute("y",r.height/2-h/2),l.setAttribute("x",r.width/2)}_setLocalAutoFit(t,e,i){var n,r,a,o,l,h,d,c,u;if(((n=i.fitStrategy)!==null&&n!==void 0?n:"default")!=="default")return;const p=Dm((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(p>0){const g=t*((d=i.fitPercent)!==null&&d!==void 0?d:.5)/p,f=Math.floor(((u=(c=i.style)===null||c===void 0?void 0:c.fontSize)!==null&&u!==void 0?u:20)*g);e.setAttribute("fontSize",f),e.setAttribute("lineHeight",E(i.style.lineHeight)?i.style.lineHeight:f)}}_setGlobalAutoFit(t){var e,i,n,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=(n=this._title)===null||n===void 0?void 0:n.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 p=(l=u.space)!==null&&l!==void 0?l:0;if(c+=p,V(this.attribute.content).filter(x=>x.visible!==!1).forEach((x,A)=>{var T,k,M,w;const C=this._content[A];x.autoFit&&x.fitStrategy==="inscribed"?(C.setAttribute("fontSize",12),d.push({text:C,spec:x})):c+=(M=(k=(T=C==null?void 0:C.AABBBounds)===null||T===void 0?void 0:T.height)===null||k===void 0?void 0:k.call(T))!==null&&M!==void 0?M:0;const R=(w=x.space)!==null&&w!==void 0?w:0;c+=R}),d.length<=0)return;const g=12/d.reduce((x,A)=>Math.max(x,A.text.AABBBounds.width()),0)*d.length,f=c/2,_=g**2+1,m=2*f*g,y=f**2-h**2,v=2*(g*((-m+Math.sqrt(m**2-4*_*y))/(2*_))+f),b=(v-c)/d.length;W(v)&&d.forEach(x=>{var A;const T=(A=x.spec.style)===null||A===void 0?void 0:A.lineHeight;x.text.setAttribute("fontSize",b),x.text.setAttribute("lineHeight",E(T)?T:b)})}_setYPosition(){var t,e,i,n,r,a;let o=0;const l=(n=(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&&n!==void 0?n:0,h=(a=(r=this.attribute.title)===null||r===void 0?void 0:r.space)!==null&&a!==void 0?a:0;V(this.attribute.content).filter(d=>d.visible!==!1).forEach((d,c)=>{var u;const p=this._content[c];p.setAttribute("y",l+h+o);const g=(u=d.space)!==null&&u!==void 0?u:0;o+=p.AABBBounds.height()+g})}};const W6="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",G6="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",N6="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",U6="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",$6="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",Y6="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 wv extends wS{constructor(t){super(t)}}var wn;(function(s){s.OnPlay="onPlay",s.OnPause="onPause",s.OnForward="onForward",s.OnBackward="onBackward"})(wn||(wn={}));var Vl;(function(s){s.Start="start",s.Pause="pause",s.Forward="forward",s.Backward="backward"})(Vl||(Vl={}));class Tr extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Tr.defaultAttributes,t)),this._isPaused=!0,this.updateAttributes=()=>{this._startAttr={style:Object.assign(Object.assign(Object.assign({symbolType:W6},Tr.defaultControllerAttr),{visible:this.attribute.start.visible}),this.attribute.start.style)},this._pauseAttr={style:Object.assign(Object.assign(Object.assign({symbolType:G6},Tr.defaultControllerAttr),{visible:this.attribute.pause.visible}),this.attribute.pause.style)},this._forwardAttr={style:Object.assign(Object.assign(Object.assign({},Tr.defaultControllerAttr),{visible:this.attribute.forward.visible}),this.attribute.forward.style)},this._backwardAttr={style:Object.assign(Object.assign(Object.assign({},Tr.defaultControllerAttr),{visible:this.attribute.backward.visible}),this.attribute.backward.style)},this.updateLayout()},this.updateLayout=()=>{var i,n,r,a;this._layout=this.attribute.layout,this._layout==="horizontal"?(this._backwardAttr.style.symbolType=(i=this._backwardAttr.style.symbolType)!==null&&i!==void 0?i:N6,this._forwardAttr.style.symbolType=(n=this._forwardAttr.style.symbolType)!==null&&n!==void 0?n:Y6):this._layout==="vertical"&&(this._backwardAttr.style.symbolType=(r=this._backwardAttr.style.symbolType)!==null&&r!==void 0?r:$6,this._forwardAttr.style.symbolType=(a=this._forwardAttr.style.symbolType)!==null&&a!==void 0?a:U6)},this._initPlay=()=>{P(this._playController)&&(this._playController=new wv(Object.assign({},this._startAttr.style)),this.add(this._playController))},this._initBackward=()=>{P(this._backwardController)&&(this._backwardController=new wv(Object.assign({},this._backwardAttr.style)),this.add(this._backwardController))},this._initForward=()=>{P(this._forwardController)&&(this._forwardController=new wv(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(wn.OnPlay)},this.pause=()=>{this._dispatchEvent(wn.OnPause)},this.forward=()=>{this._dispatchEvent(wn.OnForward)},this.backward=()=>{this._dispatchEvent(wn.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()}}Tr.defaultControllerAttr={visible:!0,x:0,y:0,size:20,fill:"#91caff",pickMode:"imprecise",cursor:"pointer"},Tr.defaultAttributes={[Vl.Start]:{},[Vl.Pause]:{},[Vl.Backward]:{},[Vl.Forward]:{}};const Fp={visible:!0,style:{x:0,y:0,dx:0,dy:0,size:20},order:0,space:10},Cv=[200,10];var Ua;(function(s){s.Default="default",s.Reverse="reverse"})(Ua||(Ua={}));var Le;(function(s){s.change="change",s.play="play",s.pause="pause",s.backward="backward",s.forward="forward",s.end="end",s.OnChange="change",s.OnPlay="play",s.OnPause="pause",s.OnBackward="backward",s.OnForward="forward",s.OnEnd="end"})(Le||(Le={}));const X6=({direction:s,maxIndex:t,dataIndex:e})=>s===Ua.Default&&e===t,K6=({direction:s,minIndex:t,dataIndex:e})=>s===Ua.Reverse&&e===t,q6=({direction:s,maxIndex:t,minIndex:e,dataIndex:i})=>X6({direction:s,maxIndex:t,dataIndex:i})||K6({direction:s,minIndex:e,dataIndex:i}),Z6=({direction:s,minIndex:t,dataIndex:e})=>s===Ua.Default&&e===t,J6=({direction:s,maxIndex:t,dataIndex:e})=>s===Ua.Reverse&&e===t,Q6=({direction:s,maxIndex:t,minIndex:e,dataIndex:i})=>Z6({direction:s,minIndex:e,dataIndex:i})||J6({direction:s,maxIndex:t,dataIndex:i}),Ws=s=>s==="top"||s==="bottom",t7=(s,t,e,i)=>s==="default"?Math.min(t+1,i):Math.max(t-1,e);class Gu extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},Gu.defaultAttributes,t)),this._data=[],this._dataIndex=0,this._layoutInfo={},this._updateSliderAttrs=()=>{var i,n;let r;W(this._handlerStyle.size)?r=this._handlerStyle.size:this._handlerStyle.size&&this._handlerStyle.size.length&&(r=dn(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:W(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(Ws(this._orient)){const o=Math.max(0,this._layoutInfo.slider.size),l=(i=this._railStyle.height)!==null&&i!==void 0?i:Cv[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=(n=this._railStyle.width)!==null&&n!==void 0?n:Cv[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 Oh(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 Ws(this._orient)?(i.layout="horizontal",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.layout="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 Tr(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 n=[this._start,this._backward,this._forward].sort((u,p)=>u.order-p.order),r=n.filter(u=>u.position!=="end"),a=n.filter(u=>u.position==="end"),o=(t=Ws(this._orient)?this._railStyle.height:this._railStyle.width)!==null&&t!==void 0?t:Cv[1],l=n.reduce((u,p)=>{const g=p.style.size,f=nt(g)?g:dn(g[0],g[1]);return u+p.space+f},0),h=this._sliderVisible?(Ws(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,p)=>{const{key:g,space:f,style:{size:_}}=p,m=nt(_)?_:dn(_[0],_[1]);return this._layoutInfo[g]=Object.assign(Object.assign({},this._layoutInfo[g]),{size:m,x:Ws(this._orient)?u+f:(this._size.width-m)/2,y:Ws(this._orient)?(this._size.height-m)/2:u+f}),u+f+m},0);this._layoutInfo.slider=Object.assign(Object.assign({},this._layoutInfo.slider),{size:d,x:Ws(this._orient)?c+this.attribute.slider.space:(this._size.width-o)/2,y:Ws(this._orient)?(this._size.height-o)/2:c+this.attribute.slider.space}),a.reduce((u,p)=>{const{key:g,space:f,style:{size:_}}=p,m=nt(_)?_:dn(_[0],_[1]);return this._layoutInfo[g]=Object.assign(Object.assign({},this._layoutInfo[g]),{size:m,x:Ws(this._orient)?u+f:(this._size.width-m)/2,y:Ws(this._orient)?(this._size.height-m)/2:u+f}),u+f+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]})}}Gu.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({},Fp),{key:"start",position:"start",space:0}),pause:Object.assign(Object.assign({},Fp),{key:"pause",position:"start"}),forward:Object.assign(Object.assign({},Fp),{key:"forward",position:"end"}),backward:Object.assign(Object.assign({},Fp),{key:"backward",position:"start"})}};function xL(){Jm(),je(),ds()}function e7(){xL()}function i7(){xL()}e7();class n7 extends Gu{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},t)),this._activeIndex=-1,this._isReachEnd=!1,this._initAttributes=()=>{var i,n,r;super._initAttributes(),this._alternate=(i=this.attribute.alternate)!==null&&i!==void 0&&i,this._interval=(n=this.attribute.interval)!==null&&n!==void 0?n:1e3,this._direction=(r=this.attribute.direction)!==null&&r!==void 0?r:Ua.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(wn.OnPlay,i=>{i.stopPropagation(),this.play()}),this._controller.addEventListener(wn.OnPause,i=>{i.stopPropagation(),this.pause()}),this._controller.addEventListener(wn.OnForward,i=>{i.stopPropagation(),this.forward()}),this._controller.addEventListener(wn.OnBackward,i=>{i.stopPropagation(),this.backward()}),this._slider.addEventListener("change",i=>{const n=Math.floor(i.detail.value)+.5;this._dataIndex=i.detail.value>=n?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,(q6({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction})||Q6({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction}))&&(this._direction===Ua.Default?this._updateDataIndex(this._minIndex):this._updateDataIndex(this._maxIndex)),this.dispatchCustomEvent(Le.play),this._isReachEnd=!1,this._tickTime=Date.now(),this._rafId=Ot.getRequestAnimationFrame()(this._play.bind(this,!0)))},this._play=i=>{const n=Date.now();if(this._isReachEnd&&n-this._tickTime>=this._interval)return this._isReachEnd=!1,void this._playEnd();i&&this._activeIndex!==this._dataIndex?(this.dispatchCustomEvent(Le.change),this._activeIndex=this._dataIndex):n-this._tickTime>=this._interval&&(this._tickTime=n,this._updateDataIndex(t7(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=Ot.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(),Ot.getCancelAnimationFrame()(this._rafId),this._activeIndex=-1,this.dispatchCustomEvent(Le.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,Ot.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.pause))},this.backward=()=>{const{loop:i=!1}=this.attribute;let n;n=i?this._dataIndex-1{const{loop:i=!1}=this.attribute;let n;n=i?this._dataIndex+1>this._maxIndex?this._minIndex:this._dataIndex+1:Math.min(this._dataIndex+1,this._maxIndex),this._updateDataIndex(n),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 s7=function(s,t,e,i){return new(e||(e=Promise))(function(n,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?n(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(s,t||[])).next())})};i7();class r7 extends Gu{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(wn.OnPlay,e=>{e.stopPropagation(),this.play()}),this._controller.addEventListener(wn.OnPause,e=>{e.stopPropagation(),this.pause()}),this._controller.addEventListener(wn.OnForward,e=>{e.stopPropagation(),this.forward()}),this._controller.addEventListener(wn.OnBackward,e=>{e.stopPropagation(),this.backward()}),this._slider.addEventListener("change",e=>{var i;e.stopPropagation();const n=(i=e.detail)===null||i===void 0?void 0:i.value,r=n/this._maxIndex;this._elapsed=r*this._totalDuration,this._startTime=Date.now()-this._elapsed,this._dispatchChange(n)}))},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=()=>s7(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=Ot.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=Ot.getRequestAnimationFrame()(this._play.bind(this))},this._playEnd=()=>{this._isPlaying=!1,Ot.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,this._elapsed=Date.now()-this._startTime,Ot.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(Le.pause))},this.backward=()=>{const e=Date.now(),i=1*this._interval,n=this._elapsed-i;n<=0?(this._elapsed=0,this._startTime=e):(this._elapsed=n,this._startTime=this._startTime+this._interval),this._updateSlider(),this.dispatchCustomEvent(Le.backward)},this.forward=()=>{const e=Date.now(),i=1*this._interval,n=this._elapsed+i;n>=this._totalDuration?(this._startTime=e-this._totalDuration,this._elapsed=this._totalDuration):(this._startTime=this._startTime-i,this._elapsed=n),this._updateSlider(),this.dispatchCustomEvent(Le.forward)},this._initAttributes(),this._initDataIndex(),this._initEvents()}dispatchCustomEvent(t){super.dispatchCustomEvent(t,this._dataIndex)}render(){super.render()}}var Yi;(function(s){s.drawStart="drawStart",s.drawEnd="drawEnd",s.drawing="drawing",s.moving="moving",s.moveStart="moveStart",s.moveEnd="moveEnd",s.brushClear="brushClear"})(Yi||(Yi={}));const fr={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}},a7=5;function o7(){je(),Om()}const l7={debounce:or,throttle:Ka};o7();let SL=class AL extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},AL.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 n;if(this._outOfInteractiveRange(i))return;i.stopPropagation();const r=(n=this.attribute.brushMoved)===null||n===void 0||n;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:l7[this.attribute.delayType](this._onBrushing,this.attribute.delayTime),this._onBrushEnd=i=>{var n;i.preventDefault();const{removeOnClick:r=!0}=this.attribute;this._activeDrawState&&!this._isDrawedBeforeEnd&&r?(!((n=this._operatingMask)===null||n===void 0)&&n._AABBBounds.empty()&&this._dispatchEvent(Yi.brushClear,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._container.incrementalClearChild(),this._brushMaskAABBBoundsDict={}):(this._activeDrawState&&this._dispatchEvent(Yi.drawEnd,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._activeMoveState&&this._dispatchEvent(Yi.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=fr.trigger,updateTrigger:e=fr.updateTrigger,endTrigger:i=fr.endTrigger,resetTrigger:n=fr.resetTrigger}=this.attribute;this.stage.addEventListener(t,this._onBrushStart),this.stage.addEventListener(e,this._onBrushingWithDelay),this.stage.addEventListener(i,this._onBrushEnd),this.stage.addEventListener(n,this._onBrushEnd)}_isPosInBrushMask(t){const e=this.eventPosToStagePos(t),i=this._container.getChildren();for(let n=0;n({x:h.x+a,y:h.y+o}));if(uo(l,e.x,e.y))return this._operatingMask=i[n],!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(Yi.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:n}=this.attribute,{minY:r=-1/0,maxY:a=1/0,minX:o=-1/0,maxX:l=1/0}=n,{x1:h,x2:d,y1:c,y2:u}=this._operatingMask.globalAABBBounds,p=o-h,g=l-d,f=r-c,_=a-u;this._operatingMaskMoveRangeX=[p,g],this._operatingMaskMoveRangeY=[f,_],this._operatingMask.setAttribute("pickable",!0),this._dispatchEvent(Yi.moveStart,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_drawing(t){var e,i;const n=this.eventPosToStagePos(t),{sizeThreshold:r=a7,brushType:a}=this.attribute,o=this._cacheDrawPoints.length;if(o>0){const p=(e=this._cacheDrawPoints[this._cacheDrawPoints.length-1])!==null&&e!==void 0?e:{};if(n.x===p.x&&n.y===p.y)return}a==="polygon"||o<=1?this._cacheDrawPoints.push(n):this._cacheDrawPoints[o-1]=n;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(Yi.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 n=i.x-e.x,r=i.y-e.y,a=Math.min(this._operatingMaskMoveRangeX[1],Math.max(this._operatingMaskMoveRangeX[0],n))+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(Yi.moving,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_computeMaskPoints(){const{brushType:t,xRange:e=[0,0],yRange:i=[0,0]}=this.attribute;let n=[];const r=this._cacheDrawPoints[0],a=this._cacheDrawPoints[this._cacheDrawPoints.length-1];return n=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}]:pn(this._cacheDrawPoints),n}_addBrushMask(){var t;const{brushStyle:e,hasMask:i}=this.attribute,n=_t.polygon(Object.assign(Object.assign({points:pn(this._cacheDrawPoints),cursor:"move",pickable:!1},e),{opacity:i?(t=e.opacity)!==null&&t!==void 0?t:1:0}));n.name=`brush-${Date.now()}`,this._operatingMask=n,this._container.add(n),this._brushMaskAABBBoundsDict[n.name]=n.AABBBounds}_outOfInteractiveRange(t){const{interactiveRange:e}=this.attribute,{minY:i=-1/0,maxY:n=1/0,minX:r=-1/0,maxX:a=1/0}=e,o=this.eventPosToStagePos(t);return o.x>a||o.xn||o.y{const e=[s.shape,...t.map(r=>r==null?void 0:r.shape)],i=[s.key,...t.map(r=>r==null?void 0:r.key)],n=[s.value,...t.map(r=>r==null?void 0:r.value)];return U(s,...t,{shape:e.every(P)?void 0:U({},...e),key:i.every(P)?void 0:U({},...i),value:n.every(P)?void 0:U({},...n)})},_l=s=>{const{width:t,height:e,wordBreak:i="break-word",textAlign:n,textBaseline:r,text:a}=s;return Array.isArray(a)?{width:t,height:e,wordBreak:i,textAlign:n,textBaseline:r,singleLine:!1,textConfig:V(a).map(o=>Object.assign(Object.assign({},s),{text:o}))}:{width:t,height:e,wordBreak:i,textAlign:n,textBaseline:r,singleLine:!1,textConfig:a==null?void 0:a.text}},h7={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:Cd,fontSize:14,lineHeight:18,textAlign:"left",textBaseline:"middle"},spaceRow:6},contentStyle:{shape:{fill:"black",size:8,symbolType:"circle",spacing:6},key:{fill:"#4E5969",fontFamily:Cd,fontSize:12,lineHeight:18,textAlign:"left",textBaseline:"middle",spacing:26},value:{fill:"#4E5969",fontFamily:Cd,fontSize:12,lineHeight:18,textAlign:"right",textBaseline:"middle",spacing:0},spaceRow:6},padding:10,positionX:"right",positionY:"bottom",offsetX:10,offsetY:10,parentBounds:new xe().setValue(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),autoCalculatePosition:!0,autoMeasure:!0,pickable:!1,childrenPickable:!1,zIndex:500},d7=["pointerX","pointerY","offsetX","offsetY","positionX","positionY","parentBounds"];function c7(){je(),$r(),ds(),lr(),Za()}c7();let kL=class On extends ci{constructor(t,e){super(e!=null&&e.skipDefault?t:U({},On.defaultAttributes,t),e),this.name="tooltip"}render(){var t;const{visible:e,content:i,panel:n,keyWidth:r,valueWidth:a,hasContentShape:o,autoCalculatePosition:l,autoMeasure:h}=this.attribute;if(!e)return void this.hideAll();h&&On.measureTooltip(this.attribute),l&&On.calculateTooltipPosition(this.attribute);const d=fn(this.attribute.padding);this._tooltipPanel=this.createOrUpdateChild("tooltip-background",Object.assign({visible:!0},n),"rect"),this._tooltipTitleContainer=this.createOrUpdateChild("tooltip-title",{visible:!0,x:d[3],y:d[0]},"group");const c=On.getTitleAttr(this.attribute);this._tooltipTitleSymbol=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-shape",U({symbolType:"circle"},c.shape,{visible:Ue(c)&&Ue(c.shape)}),"symbol"),typeof c.value.text!="object"||c.value.text===null||c.value.text.type!=="rich"&&c.value.text.type!=="html"?c.value.multiLine?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Ue(c)&&Ue(c.value)},_l(c.value)),"richtext"):this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({text:(t=c.value.text)!==null&&t!==void 0?t:"",visible:Ue(c)&&Ue(c.value)},c.value),"text"):c.value.text.type==="rich"?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Ue(c)&&Ue(c.value)},_l(c.value)),"richtext"):c.value.text.type==="html"&&(this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({html:Object.assign(Object.assign({dom:c.value.text.text},t_),c.value),visible:Ue(c)&&Ue(c.value),width:c.value.width,height:c.value.height,wordBreak:c.value.wordBreak,textAlign:c.value.textAlign,textBaseline:c.value.textBaseline,singleLine:!1,textConfig:[]},c.value),"richtext"));const u=Ue(c.shape)?c.shape.size+c.shape.spacing:0,{textAlign:p,textBaseline:g}=c.value,f=n.width-d[3]-d[0]-u;p==="center"?this._tooltipTitle.setAttribute("x",u+f/2):p==="right"||p==="end"?this._tooltipTitle.setAttribute("x",u+f):this._tooltipTitle.setAttribute("x",u),g==="bottom"?this._tooltipTitle.setAttribute("y",c.height):g==="middle"?this._tooltipTitle.setAttribute("y",c.height/2):this._tooltipTitle.setAttribute("y",0);const _=Ue(c)?c.height+c.spaceRow:0;if(this._tooltipContent=this.createOrUpdateChild("tooltip-content",{visible:!0},"group"),this._tooltipContent.removeAllChild(!0),i&&i.length){this._tooltipContent.setAttribute("x",d[3]),this._tooltipContent.setAttribute("y",d[0]+_);let m=0;i.forEach((y,v)=>{var b,x,A;const T=On.getContentAttr(this.attribute,v);if(!Ue(T))return;const k=`tooltip-content-${v}`,M=this._tooltipContent.createOrUpdateChild(k,{visible:!0,x:0,y:m},"group");let w=0;if(Ue(T.shape)&&M.createOrUpdateChild(`${k}-shape`,Object.assign({visible:!0,x:T.shape.size/2,y:T.shape.size/2+(((b=kr(T.key.lineHeight,T.key.fontSize))!==null&&b!==void 0?b:T.key.fontSize)-T.shape.size)/2},T.shape),"symbol"),o&&(w+=T.shape.size+T.shape.spacing),Ue(T.key)){let C;C=T.key.multiLine?M.createOrUpdateChild(`${k}-key`,Object.assign(Object.assign({visible:!0},_l(T.key)),{textBaseline:"top"}),"richtext"):typeof T.key.text!="object"||T.key.text===null||T.key.text.type!=="rich"&&T.key.text.type!=="html"?M.createOrUpdateChild(`${k}-key`,Object.assign(Object.assign({visible:!0,text:(x=T.key.text)!==null&&x!==void 0?x:""},T.key),{textBaseline:"top"}),"text"):T.key.text.type==="rich"?M.createOrUpdateChild(`${k}-value`,Object.assign(Object.assign({visible:!0},_l(T.key)),{textBaseline:"top"}),"richtext"):M.createOrUpdateChild(`${k}-value`,{html:Object.assign(Object.assign({dom:T.key.text.text},t_),T.key)},"richtext");const{textAlign:R}=T.key;R==="center"?C.setAttribute("x",w+r/2):R==="right"||R==="end"?C.setAttribute("x",w+r):C.setAttribute("x",w),C.setAttribute("y",0),w+=r+T.key.spacing}if(Ue(T.value)){let C;C=T.value.multiLine?M.createOrUpdateChild(`${k}-value`,Object.assign(Object.assign({visible:!0},_l(T.value)),{textBaseline:"top"}),"richtext"):typeof T.value.text!="object"||T.value.text===null||T.value.text.type!=="rich"&&T.value.text.type!=="html"?M.createOrUpdateChild(`${k}-value`,Object.assign(Object.assign({visible:!0,text:(A=T.value.text)!==null&&A!==void 0?A:""},T.value),{textBaseline:"top"}),"text"):T.value.text.type==="rich"?M.createOrUpdateChild(`${k}-value`,Object.assign(Object.assign({visible:!0},_l(T.value)),{textBaseline:"top"}),"richtext"):M.createOrUpdateChild(`${k}-value`,{html:Object.assign({dom:T.value.text.text,container:"",width:30,height:30,style:{}},T.value)},"richtext");let R="right";E(T.value.textAlign)?R=T.value.textAlign:Ue(T.key)||(R="left"),C.setAttribute("textAlign",R),R==="center"?C.setAttribute("x",w+a/2):R==="right"||R==="end"?C.setAttribute("x",w+a):C.setAttribute("x",w),w+=a,C.setAttribute("y",0),M.add(C)}m+=T.height+T.spaceRow})}}setAttributes(t,e){const i=Object.keys(t);this.attribute.autoCalculatePosition&&i.every(n=>d7.includes(n))?(this._mergeAttributes(t,i),P(this.attribute.panel.width)&&this.attribute.autoMeasure&&On.measureTooltip(this.attribute),On.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:n,offsetY:r,pointerX:a,pointerY:o,positionX:l,positionY:h,parentBounds:d}=t;let c=a,u=o;return l==="left"?c-=e+n:l==="center"?c-=e/2:c+=n,h==="top"?u-=i+r:h==="middle"?u-=i/2:u+=r,c+e>d.x2&&(c-=e+n),u+i>d.y2&&(u-=i+r),c{const _=On.getContentAttr(t,f);(g.key||g.value)&&Ue(_)&&p.push([g,_])}),p.length){let g=!1;const f=[],_=[],m=[];p.forEach(([x,A],T)=>{var k;const{key:M,value:w,shape:C,spaceRow:R}=A,I=Ue(C),O=(k=C==null?void 0:C.symbolType)!==null&&k!==void 0?k:"",B=_v(M),L=_v(w);let F=0;if(Ue(M)){const{width:z,height:K}=B.quickMeasure(M.text);_.push(z),F=Math.max(F,K)}if(Ue(w)){const{width:z,height:K}=L.quickMeasure(w.text);m.push(z),F=Math.max(F,K)}I&&Fg[O]&&(g=!0,f.push(C.size),F=Math.max(C.size,F)),x.height=F,o+=F,T{x.width=a}),t.hasContentShape=g,t.keyWidth=v,t.valueWidth=b}}return t.panel.width=a+n[1]+n[3],t.panel.height=o,t}static getTitleAttr(t){return Gw({},On.defaultAttributes.titleStyle,On.defaultAttributes.title,t.titleStyle,t.title)}static getContentAttr(t,e){return Gw({},On.defaultAttributes.contentStyle,t.contentStyle,t.content[e])}};kL.defaultAttributes=h7;function u7(s,t,e,i,n,r,a){const o=gn({x:0,y:0},e,s),l=$S(o,cx(i,o,t,n)),h=cx(i||1,l,t,n);return FI(l,h,r,a)}const nr=s=>s.map((t,e)=>({index:e,value:t})),Nw=(s,t,e=0)=>{const i=new xe(s).expand(e/2),n=new xe(t).expand(e/2);return i.intersects(n)};function TL(s,t,e){return e>Math.max(t.x1-s.x2,s.x1-t.x2,t.y1-s.y2,s.y1-t.y2)}function p7(s,t){for(let e,i=1,n=s.length,r=s[0];ies?Math.min(s-t/2,e-t):e{var i;const{labelStyle:n,axisOrientType:r,labelFlush:a,labelFormatter:o,startAngle:l=0}=e;let h=(i=n.angle)!==null&&i!==void 0?i:0;n.direction==="vertical"&&(h+=Qt(90));const d=["bottom","top"].includes(r),c=["left","right"].includes(r);let u=1,p=0;d||(c?(u=0,p=1):l&&(u=Math.cos(l),p=-Math.sin(l)));const g=WS(n),f=s.range();return t.map((m,y)=>{var v,b;const x=o?o(m):`${m}`,{width:A,height:T}=g.quickMeasure(x),k=Math.max(A,12),M=Math.max(T,12),w=s.scale(m),C=u*w,R=p*w;let I,O,B=C,L=R;a&&d&&y===0?B=zp(C,k,f[0],f[f.length-1]):a&&d&&y===t.length-1?B=zp(C,k,f[f.length-1],f[0]):I=(v=n.textAlign)!==null&&v!==void 0?v:"center",I==="right"?B-=k:I==="center"&&(B-=k/2),a&&c&&y===0?L=zp(R,M,f[0],f[f.length-1]):a&&c&&y===t.length-1?L=zp(R,M,f[f.length-1],f[0]):O=(b=n.textBaseline)!==null&&b!==void 0?b:"middle",O==="bottom"?L-=M:O==="middle"&&(L-=M/2);const F=new xe().set(B,L,B+k,L+M);return h&&F.rotate(h,C,R),F})},g7=(s,t,e)=>{var i;const{labelStyle:n,getRadius:r,labelOffset:a,labelFormatter:o,inside:l}=e,h=r==null?void 0:r(),d=(i=n.angle)!==null&&i!==void 0?i:0,c=WS(n);return t.map(p=>{var g,f;const _=o?o(p):`${p}`,{width:m,height:y}=c.quickMeasure(_),v=Math.max(m,12),b=Math.max(y,12),x=s.scale(p);let A=0,T=0;const k=(g=n.textAlign)!==null&&g!==void 0?g:"center",M=(f=n.textBaseline)!==null&&f!==void 0?f:"middle",{x:w,y:C}=u7(x,{x:0,y:0},h,a,l,_,n);return A=w+(k==="right"?-v:k==="center"?-v/2:0),T=C+(M==="bottom"?-b:M==="middle"?-b/2:0),new xe().set(A,T,A+v,T+b).rotate(d,A+v/2,T+b/2)})},f7=s=>["bottom","top","z"].includes(s),_7=(s,t)=>{if(!ie(s.type))return nr(s.domain());const e=s.range(),i=Math.abs(e[e.length-1]-e[0]);if(i<2)return nr([s.domain()[0]]);const{tickCount:n,forceTickCount:r,tickStep:a,noDecimals:o=!1,labelStyle:l}=t;let h;if(E(a))h=s.stepTicks(a);else if(E(r))h=s.forceTicks(r);else if(t.tickMode==="d3"){const d=N(n)?n({axisLength:i,labelStyle:l}):n;h=s.d3Ticks(d??cM,{noDecimals:o})}else{const d=N(n)?n({axisLength:i,labelStyle:l}):n;h=s.ticks(d??cM,{noDecimals:o})}if(t.sampling&&(t.coordinateType==="cartesian"||t.coordinateType==="polar"&&t.axisOrientType==="radius")){const{labelGap:d=4,labelFlush:c}=t;let u=ML(s,h,t).map((g,f)=>({AABBBounds:g,value:h[f]}));for(;u.length>=3&&p7(u,d);)u=m7.parity(u);const p=u.map(g=>g.value);p.length<3&&c&&(p.length>1&&p.pop(),Aa(p)!==Aa(h)&&p.push(Aa(h))),h=p}return nr(h)},m7={parity:function(s){return s.filter((t,e)=>e%2==0)},greedy:function(s,t){let e;return s.filter((i,n)=>(!n||!TL(e.AABBBounds,i.AABBBounds,t))&&(e=i,!0))}},Uw=(s,t)=>wL(0,s.length,e=>t(s[e])),wL=(s,t,e)=>{let i=s,n=t;for(;i=0?n=r:i=r+1}return i},$w=(s,t,e,i)=>ML(s,t,e).map(n=>i?[n.x1,n.x2,n.width()]:[n.y1,n.y2,n.height()]),Yw=(s,t,e=0)=>Math.max(s[0],t[0])-e/2<=Math.min(s[1],t[1])+e/2,Xw=(s,t)=>s[1]{var e;const i=s.domain();if(!i.length)return[];const{tickCount:n,forceTickCount:r,tickStep:a,labelGap:o=4,axisOrientType:l,labelStyle:h}=t,d=f7(l),c=s.range(),u=s.calculateWholeRangeSize();if(u<2)return t.labelLastVisible?nr([i[i.length-1]]):nr([i[0]]);let p;if(E(a))p=s.stepTicks(a);else if(E(r))p=s.forceTicks(r);else if(E(n)){const g=N(n)?n({axisLength:u,labelStyle:h}):n;p=s.ticks(g)}else if(t.sampling){const g=((e=t.labelStyle.fontSize)!==null&&e!==void 0?e:12)+2,f=qe(c),_=ze(c);if(i.length<=u/g){const m=(_-f)/i.length,y=$w(s,i,t,d),v=Math.min(...y.map(x=>x[2])),b=y7(i,y,o,t.labelLastVisible,Math.floor(v/m),!1);p=s.stepTicks(b.step),t.labelLastVisible&&(b.delCount&&(p=p.slice(0,p.length-b.delCount)),p.push(i[i.length-1]))}else{const m=[i[0],i[Math.floor(i.length/2)],i[i.length-1]],y=$w(s,m,t,d);let v=null;y.forEach(x=>{v?v[2]0?Math.ceil(i.length*(o+v[2])/(_-f-o)):i.length-1;p=s.stepTicks(b),!t.labelLastVisible||p.length&&p[p.length-1]===i[i.length-1]||(p.length&&Math.abs(s.scale(p[p.length-1])-s.scale(i[i.length-1])){let a=0,o=0,l=-1,h=Number.MAX_VALUE;const d=p=>{let g=!0,f=0;do f+pd(p)?1:-1);let u=c;do if(u>c&&!r&&!d(u))u++;else{if(!i){o=u;break}{const p=s.length-1;let g,f=0;g=s.length%u>0?s.length-s.length%u+u:s.length;do{if(g-=u,g!==p&&!Yw(t[g],t[p],e))break;f++}while(g>0);if(g===p){o=u,a=f;break}{const _=Math.floor(s.length/u)-f+1;if(_=0?Xw(t[g-u],t[g]):m,v=Math.abs(m-y);if(v{const{tickCount:e,forceTickCount:i,tickStep:n,getRadius:r,labelOffset:a,labelGap:o=0,labelStyle:l}=t,h=r==null?void 0:r();if(!h)return nr(s.domain());let d;if(E(n))d=s.stepTicks(n);else if(E(i))d=s.forceTicks(i);else if(E(e)){const c=s.range(),u=Math.abs(c[c.length-1]-c[0]),p=N(e)?e({axisLength:u,labelStyle:l}):e;d=s.ticks(p)}else if(t.sampling){const c=s.domain(),u=s.range(),p=g7(s,c,t),g=qe(u),f=ze(u),_=Math.abs(f-g)*(h+a)/c.length,{step:m,delCount:y}=x7(c,p,o,Math.floor(p.reduce((v,b)=>Math.min(v,b.width(),b.height()),Number.MAX_VALUE)/_));d=s.stepTicks(m),d=d.slice(0,d.length-y)}else d=s.domain();return nr(d)},x7=(s,t,e,i)=>{let n=i;do{let a=!0;n++;let o=0;do o+n2){let a=s.length-s.length%n;for(a>=s.length&&(a-=n);a>0&&Nw(t[0],t[a]);)r++,a-=n}return{step:n,delCount:r}},S7=(s,t)=>{if(ie(s.type))return _7(s,t);if(vi(s.type)){if(t.coordinateType==="cartesian")return v7(s,t);if(t.coordinateType==="polar"&&t.axisOrientType==="angle")return b7(s,t)}return nr(s.domain())},og=(s,t,e)=>{if(P(t))return s;const i=t[0];return P(i)?s:t.length===1?(s[i]=e,s):(P(s[i])&&(typeof t[1]=="number"?s[i]=[]:s[i]={}),og(s[i],t.slice(1),e))},A7=(s,t,e)=>{if(!P(t))return Pt(s,t,e)};function fo(s){for(;s<0;)s+=2*Math.PI;for(;s>=2*Math.PI;)s-=2*Math.PI;return s}function k7(s){let t="center",e="middle";return t=(s=fo(s))>=Math.PI*(5/3)||s<=Math.PI*(1/3)?"left":s>=Math.PI*(2/3)&&s<=Math.PI*(4/3)?"right":"center",e=s>=Math.PI*(7/6)&&s<=Math.PI*(11/6)?"bottom":s>=Math.PI*(1/6)&&s<=Math.PI*(5/6)?"top":"middle",{align:t,baseline:e}}function CL(s,t,e=!1){if(t){if(s===t)return;if(E(t)&&typeof t=="object"){const i=Object(t),n=[];for(const o in i)n.push(o);let{length:r}=n,a=-1;for(;r--;){const o=n[++a];E(i[o])&&typeof i[o]=="object"&&!G(s[o])?T7(s,t,o,e):PL(s,o,i[o])}}}}function T7(s,t,e,i=!1){const n=s[e],r=t[e];let a=t[e],o=!0;if(G(r)){if(i)a=[];else if(G(n))a=n;else if(cm(n)){a=new Array(n.length);let l=-1;const h=n.length;for(;++l{if(Et(t))t.type===n&&(G(s[n])?s[n].length>=t.index&&(s[n][t.index]=i?vt({},s[n][t.index],e):e):s[n]=i?vt({},s[n],e):e);else if(G(s[n])){const r=s[n].findIndex(a=>a.id===t);r>=0&&(s[n][r]=i?vt({},s[n][r],e):e)}else s.id===t&&(s[n]=i?vt({},s[n],e):e)})}const qw=Qi;function pa(s){return s.radius?{x:Math.cos(s.angle)*s.radius,y:Math.sin(s.angle)*s.radius}:{x:0,y:0}}function w7(s){return(s=fo(s))>0&&s<=Math.PI/2?2:s>Math.PI/2&&s<=Math.PI?3:s>Math.PI&&s<=3*Math.PI/2?4:1}function C7(s,t){let e=0,i=2*Math.PI;const n=E(s),r=E(t);for(n||r?r?n?(e=s,i=t):(e=t-2*Math.PI,i=t):(e=s,i=s+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 P7(s,t,e){return s.x1>t||s.x2e||s.y2{const n=+i[t];W(n)&&e.push(n)}),e.length===0?null:qe(e)}function e1(s,t){const e=[];return s.forEach(i=>{const n=+i[t];W(n)&&e.push(n)}),e.length===0?null:ze(e)}function RL(s,t){return s.reduce((e,i)=>{const n=t?+i[t]:+i;return W(n)&&(e+=n),e},0)}function BL(s,t){let e=0,i=0;return s.forEach(n=>{const r=t?+n[t]:+n;W(r)&&(e+=r,i++)}),e/i}function IL(s,t){const e=BL(s,t);return s.length<=1?0:s.reduce((n,r)=>n+(t?+r[t]:+r-e)**2,0)/(s.length-1)}function E7(s,t){return Math.sqrt(IL(s,t))}function R7(s,t){return c3(s.map(e=>e[t]))}function B7(s,t,e){const{predict:i}=T4(s,l=>l[t],l=>l[e]),n=EL(s,t),r=e1(s,t),a=i(n),o=i(r);return[{[t]:n,[e]:a},{[t]:r,[e]:o}]}function I7(s){let t="center",e="middle";return t=(s=fo(s))>=Math.PI*(7/6)&&s<=Math.PI*(11/6)?"right":s>=Math.PI*(1/6)&&s<=Math.PI*(5/6)?"left":"center",e=s>=Math.PI*(5/3)||s<=Math.PI*(1/3)?"bottom":s>=Math.PI*(2/3)&&s<=Math.PI*(4/3)?"top":"middle",{align:t,baseline:e}}function Zw(s,t){const e=h_(s),i=h_(t),n=Math.asin((s.x*t.y-t.x*s.y)/e/i),r=Math.acos((s.x*t.x+s.y*t.y)/e/i);return n<0?-r:r}function h_(s,t={x:0,y:0}){return Ce.distancePP(s,t)}function L7(s,t=2){const e=s.reduce((h,d)=>h+(isNaN(d)?0:d),0);if(e===0)return 0;const i=Math.pow(10,t),n=s.map(h=>(isNaN(h)?0:h)/e*i*100),r=100*i,a=n.map(h=>Math.floor(h));let o=a.reduce((h,d)=>h+d,0);const l=n.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 Pe(s,t,e){let i=!1;if(t&&N(t)){for(const n of s)for(const r of n.getSeries(e))if(i=!!t.call(null,r),i)return i}return i}function LL(s,t){const e=[];for(const i of s)for(const n of i.getSeries(t))e.push(n);return e}const Wo=(s,t)=>{for(let e=0;ei==null?void 0:i[n],t):t==null?void 0:t[s],e}}var H;(function(s){s.area="area",s.line="line",s.bar="bar",s.bar3d="bar3d",s.rangeColumn="rangeColumn",s.rangeColumn3d="rangeColumn3d",s.rangeArea="rangeArea",s.dot="dot",s.geo="geo",s.link="link",s.map="map",s.pie="pie",s.pie3d="pie3d",s.radar="radar",s.rose="rose",s.scatter="scatter",s.circularProgress="circularProgress",s.wordCloud="wordCloud",s.wordCloud3d="wordCloud3d",s.funnel="funnel",s.funnel3d="funnel3d",s.linearProgress="linearProgress",s.boxPlot="boxPlot",s.sankey="sankey",s.gaugePointer="gaugePointer",s.gauge="gauge",s.treemap="treemap",s.sunburst="sunburst",s.circlePacking="circlePacking",s.waterfall="waterfall",s.heatmap="heatmap",s.correlation="correlation",s.liquid="liquid",s.venn="venn"})(H||(H={}));var Jw;(function(s){s.label="label",s.point="point",s.line="line",s.area="area",s.bar="bar",s.bar3d="bar3d",s.boxPlot="boxPlot",s.outlier="outlier",s.circlePacking="circlePacking",s.group="group",s.gridBackground="gridBackground",s.grid="grid",s.dot="dot",s.title="title",s.subTitle="subTitle",s.symbol="symbol",s.funnel="funnel",s.funnel3d="funnel3d",s.transform="transform",s.transform3d="transform3d",s.transformLabel="transformLabel",s.outerLabel="outerLabel",s.outerLabelLine="outerLabelLine",s.pin="pin",s.pinBackground="pinBackground",s.pointer="pointer",s.segment="segment",s.track="track",s.cell="cell",s.cellBackground="cellBackground",s.link="link",s.arrow="arrow",s.pie="pie",s.pie3d="pie3d",s.labelLine="labelLine",s.progress="progress",s.minLabel="minLabel",s.maxLabel="maxLabel",s.rose="rose",s.node="node",s.sunburst="sunburst",s.nonLeaf="nonLeaf",s.leaf="leaf",s.nonLeafLabel="nonLeafLabel",s.leaderLine="leaderLine",s.stackLabel="stackLabel",s.word="word",s.fillingWord="fillingWord",s.nodePoint="nodePoint",s.ripplePoint="ripplePoint",s.centerPoint="centerPoint",s.centerLabel="centerLabel",s.barBackground="barBackground",s.lineLabel="lineLabel",s.areaLabel="areaLabel",s.liquid="liquid",s.liquidBackground="liquidBackground",s.liquidOutline="liquidOutline",s.circle="circle",s.overlap="overlap",s.overlapLabel="overlapLabel"})(Jw||(Jw={}));const bt="__VCHART",Wl=500,Gl=500,O7=`${bt}_LABEL_VISIBLE`,Pv=`${bt}_ARC_TRANSFORM_VALUE`,D7=`${bt}_ARC_RATIO`,Qw=`${bt}_ARC_START_ANGLE`,tC=`${bt}_ARC_END_ANGLE`,F7=`${bt}_ARC_K`,wr=`${bt}_ARC_MIDDLE_ANGLE`,z7=`${bt}_ARC_QUADRANT`,H7=`${bt}_ARC_RADIAN`,e0=-Math.PI/2,i1=3*Math.PI/2,n1=-90,OL=270,Zc=.6,aa=9,kn=0;var ga;(function(s){s.enter="enter",s.update="update",s.exit="exit",s.group="group",s.connectNulls="connectNulls"})(ga||(ga={}));var Zt;(function(s){s.enter="enter",s.update="update",s.exit="exit",s.unChange="unChange"})(Zt||(Zt={}));var rt;(function(s){s.arc="arc",s.arc3d="arc3d",s.area="area",s.image="image",s.line="line",s.path="path",s.rect="rect",s.rect3d="rect3d",s.rule="rule",s.shape="shape",s.symbol="symbol",s.text="text",s.richtext="richtext",s.polygon="polygon",s.pyramid3d="pyramid3d",s.circle="circle",s.cell="cell",s.interval="interval",s.group="group",s.glyph="glyph",s.component="component",s.largeRects="largeRects",s.largeSymbols="largeSymbols"})(rt||(rt={}));var ue;(function(s){s.axis="axis",s.grid="grid",s.legend="legend",s.slider="slider",s.label="label",s.datazoom="datazoom",s.player="player",s.title="title",s.scrollbar="scrollbar"})(ue||(ue={}));var eC;(function(s){s[s.player=1]="player",s[s.rollUp=2]="rollUp",s[s.drillDown=3]="drillDown",s[s.slider=4]="slider",s[s.datazoom=5]="datazoom",s[s.legend=6]="legend",s[s.scrollbar=7]="scrollbar",s[s.brush=8]="brush",s[s.normal=9]="normal"})(eC||(eC={}));var Qs;(function(s){s.lineAxis="lineAxis",s.circleAxis="circleAxis"})(Qs||(Qs={}));var ui;(function(s){s.lineAxisGrid="lineAxisGrid",s.circleAxisGrid="circleAxisGrid"})(ui||(ui={}));var iC;(function(s){s.discreteLegend="discreteLegend",s.colorLegend="colorLegend",s.sizeLegend="sizeLegend"})(iC||(iC={}));var nC;(function(s){s.lineCrosshair="lineCrosshair",s.rectCrosshair="rectCrosshair",s.sectorCrosshair="sectorCrosshair",s.circleCrosshair="circleCrosshair",s.polygonCrosshair="polygonCrosshair",s.ringCrosshair="ringCrosshair"})(nC||(nC={}));var sC;(function(s){s.symbolLabel="symbolLabel",s.rectLabel="rectLabel",s.lineLabel="lineLabel",s.dataLabel="dataLabel"})(sC||(sC={}));var rC;(function(s){s.continuousPlayer="continuousPlayer",s.discretePlayer="discretePlayer"})(rC||(rC={}));var Sr;(function(s){s.before="before",s.layouting="layouting",s.reevaluate="reevaluate",s.after="after"})(Sr||(Sr={}));var pt;(function(s){s.BEFORE_EVALUATE_DATA="beforeEvaluateData",s.AFTER_EVALUATE_DATA="afterEvaluateData",s.BEFORE_EVALUATE_SCALE="beforeEvaluateScale",s.AFTER_EVALUATE_SCALE="afterEvaluateScale",s.BEFORE_PARSE_VIEW="beforeParseView",s.AFTER_PARSE_VIEW="afterParseView",s.BEFORE_TRANSFORM="beforeTransform",s.AFTER_TRANSFORM="afterTransform",s.BEFORE_CREATE_VRENDER_STAGE="beforeCreateVRenderStage",s.AFTER_CREATE_VRENDER_STAGE="afterCreateVRenderStage",s.BEFORE_CREATE_VRENDER_LAYER="beforeCreateVRenderLayer",s.AFTER_CREATE_VRENDER_LAYER="afterCreateVRenderLayer",s.BEFORE_STAGE_RESIZE="beforeStageResize",s.AFTER_STAGE_RESIZE="afterStageResize",s.BEFORE_VRENDER_DRAW="beforeVRenderDraw",s.AFTER_VRENDER_DRAW="afterVRenderDraw",s.BEFORE_MARK_JOIN="beforeMarkJoin",s.AFTER_MARK_JOIN="afterMarkJoin",s.BEFORE_MARK_UPDATE="beforeMarkUpdate",s.AFTER_MARK_UPDATE="afterMarkUpdate",s.BEFORE_MARK_STATE="beforeMarkState",s.AFTER_MARK_STATE="afterMarkState",s.BEFORE_MARK_ENCODE="beforeMarkEncode",s.AFTER_MARK_ENCODE="afterMarkEncode",s.BEFORE_DO_LAYOUT="beforeDoLayout",s.AFTER_DO_LAYOUT="afterDoLayout",s.BEFORE_MARK_LAYOUT_END="beforeMarkLayoutEnd",s.AFTER_MARK_LAYOUT_END="afterMarkLayoutEnd",s.BEFORE_DO_RENDER="beforeDoRender",s.AFTER_DO_RENDER="afterDoRender",s.BEFORE_MARK_RENDER_END="beforeMarkRenderEnd",s.AFTER_MARK_RENDER_END="afterMarkRenderEnd",s.BEFORE_CREATE_VRENDER_MARK="beforeCreateVRenderMark",s.AFTER_CREATE_VRENDER_MARK="afterCreateVRenderMark",s.BEFORE_ADD_VRENDER_MARK="beforeAddVRenderMark",s.AFTER_ADD_VRENDER_MARK="afterAddVRenderMark",s.AFTER_VRENDER_NEXT_RENDER="afterVRenderNextRender",s.BEFORE_ELEMENT_UPDATE_DATA="beforeElementUpdateData",s.AFTER_ELEMENT_UPDATE_DATA="afterElementUpdateData",s.BEFORE_ELEMENT_STATE="beforeElementState",s.AFTER_ELEMENT_STATE="afterElementState",s.BEFORE_ELEMENT_ENCODE="beforeElementEncode",s.AFTER_ELEMENT_ENCODE="afterElementEncode",s.ANIMATION_START="animationStart",s.ANIMATION_END="animationEnd",s.ELEMENT_ANIMATION_START="elementAnimationStart",s.ELEMENT_ANIMATION_END="elementAnimationEnd",s.ALL_ANIMATION_START="allAnimationStart",s.ALL_ANIMATION_END="allAnimationEnd"})(pt||(pt={}));var yx;(function(s){s.signal="signal",s.data="data",s.scale="scale",s.coordinate="coordinate",s.mark="mark"})(yx||(yx={}));var _n;(function(s){s.active="active",s.selected="selected",s.highlight="highlight",s.blur="blur"})(_n||(_n={}));const Go="__vgrammar_scene_item__",DL=[rt.line,rt.area],j7=[rt.arc3d,rt.rect3d,rt.pyramid3d],Tn="key",hg=[{}],V7=["key"],W7=!0,G7=!0,N7=!1,U7=null,$7=!0,aC="VGRAMMAR_IMMEDIATE_ANIMATION",oC=0,FL=1e3,bx=0,lC=0,hC=!1,xx=!1,Sx="quintInOut",dC={stopWhenStateChange:!1,immediatelyApply:!0},Y7="VGRAMMAR_ANIMATION_PARAMETERS";function s1(s,t){return V(s).reduce((e,i)=>{const n=at(i)?t.getGrammarById(i):i;return n&&e.push(n),e},[])}function X7(s){return!N(s)&&!!(s!=null&&s.signal)}function K7(s){return!N(s)&&!!(s!=null&&s.callback)}function Ui(s,t){if(P(s))return[];if(X7(s)){const e=s.signal;if(at(e))return V(t.getGrammarById(e));if((e==null?void 0:e.grammarType)==="signal")return[e]}else if(K7(s))return s1(s.dependency,t);return[]}function _o(s){return N(s)||(s==null?void 0:s.signal)||!!(s!=null&&s.callback)}function Fe(s,t,e,i){if(P(s))return s;if(N(s))return i?s.call(null,e,i,t):s.call(null,e,t);if(s.signal){const n=s.signal;return at(n)?t==null?void 0:t[n]:n.output()}return s.callback?i?s.callback.call(null,e,i,t):s.callback.call(null,e,t):s}function q7(s,t){if(P(s))return s;if(N(s))return s.call(null,t);if(s.signal){const e=s.signal;return at(e)?t==null?void 0:t[e]:e.output()}return s.callback?s.callback.call(null,t):s}function Jc(s,t){return Nu(s)?s.output():t[s]}function Z7(s){return s&&(s.signal||s.callback)}const Nu=s=>s&&!P(s.grammarType),Zl=s=>N(s)?s:t=>t[s];function i0(s){return!!(s!=null&&s.scale)}function r1(s){return!!(s!=null&&s.field)}function no(s,t){if(!s)return[];let e=[];return s.scale&&(e=Nu(s.scale)?[s.scale]:V(t.getScaleById(s.scale))),e.concat(Ui(s,t))}function d_(s,t){switch(t){case"line":return s.some(e=>["x","y","defined"].includes(e));case"area":return s.some(e=>["x","y","x1","y1","defined"].includes(e));case"largeRects":return s.some(e=>["x","y","width","y1"].includes(e));case"largeSymbols":return s.some(e=>["x","y"].includes(e))}return!1}function J7(s){const{x:t,y:e,x1:i,y1:n}=s;return W(t)&&W(e)&&W(i)&&W(n)?[{x:t,y:e},{x:i,y:n}]:[]}function Q7(s,t,e,i){return!s||!s.length||s.length===1&&!t?[]:s.some(n=>d_(Object.keys(n.nextAttrs),"line"))?s.map((n,r)=>{var a;const o=n.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=n.key,i&&(P(o.x1)&&(o.x1=d),P(o.y1)&&(o.y1=c)),o}):e??[]}function t9(s,t,e=[]){if(!s||!s.length||s.length===1&&!t)return[];const i=new Float32Array(4*s.length);return s.forEach((n,r)=>{var a,o,l,h;const d=n.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],p=(l=d.width)!==null&&l!==void 0?l:e[4*r+2],g=(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]=p,i[4*r+3]=g-u}),i}function e9(s,t,e=[]){if(!s||!s.length||s.length===1&&!t)return[];const i=new Float32Array(2*s.length);return s.forEach((n,r)=>{var a,o;const l=n.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 i9(s,t){if(["x","y","dx","dy"].includes(t))return!0;switch(s){case rt.arc:return["innerRadius","outerRadius","startAngle","endAngle"].includes(t);case rt.group:case rt.rect:case rt.image:return["width","height","y1"].includes(t);case rt.path:case rt.shape:return["path","customPath"].includes(t);case rt.line:return t==="defined";case rt.area:return["x1","y1","defined"].includes(t);case rt.rule:return["x1","y1"].includes(t);case rt.symbol:return t==="size";case rt.polygon:return t==="points";case rt.text:return t==="text"}return!1}function n9(s){return[rt.line,rt.area,rt.largeRects,rt.largeSymbols].includes(s)}function yr(s,t,e,i,n){e&&(_o(e)?t.forEach(r=>{const a=Fe(e,i,r.datum,s);Object.assign(r.nextAttrs,a)}):Object.keys(e).forEach(r=>{var a,o;const l=e[r],h=n&&!i9(s.mark.markType,r)?[t[0]]:t;if(i0(l)){const d=Jc(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,p=at(l==null?void 0:l.field),g=p?Os(l.field):null;let f=p?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(_=>{var m;p&&(f=(m=d.scale)===null||m===void 0?void 0:m.call(d,g(_.datum))),_.nextAttrs[r]=nt(f)||nt(u)?f+c+u:f})}else if(r1(l)){const d=Os(l.field);h.forEach(c=>{c.nextAttrs[r]=d(c.datum)})}else h.forEach(d=>{d.nextAttrs[r]=Fe(l,i,d.datum,s)})}))}function wa(s,t,e,i){if(!s)return null;if(_o(s))return Fe(s,i,t,e);const n={};return Object.keys(s).forEach(r=>{var a,o,l;const h=s[r];if(i0(h)){const d=Jc(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,p=at(h==null?void 0:h.field),g=p?Os(h.field):null,f=p?(o=d.scale)===null||o===void 0?void 0:o.call(d,g(t)):P(h==null?void 0:h.value)?0:(l=d.scale)===null||l===void 0?void 0:l.call(d,h.value);n[r]=nt(f)||nt(u)?f+c+u:f}else if(r1(h)){const d=Os(h.field);n[r]=d(t)}else n[r]=Fe(h,i,t,e)}),n}class s9{constructor(t,e,i,n){this.channelEncoder={},this.marks=t,e&&this.registerChannelEncoder(e),i&&this.registerDefaultEncoder(i),this.progressiveChannels&&this.registerProgressiveChannels(n)}getMarks(){return this.marks}registerChannelEncoder(t,e){return at(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=V(t),this}getChannelEncoder(){return this.channelEncoder}getFunctionEncoder(){return this.functionEncoder}getDefaultEncoder(){return this.defaultEncoder}getProgressiveChannels(){return this.progressiveChannels}}let Q=class Ie{static registerPlotMarks(t,e){Ie._plotMarks[t]=e}static createPlotMark(t,e){return Ie._plotMarks[t]?new Ie._plotMarks[t](e):null}static registerMark(t,e){Ie._marks[t]=e}static createMark(t,e,i){return Ie._marks[t]?new Ie._marks[t](e,t,i):null}static hasMark(t){return!!Ie._marks[t]}static registerComponent(t,e){Ie._components[t]=e}static createComponent(t,e,i,n){const r=Ie._components[t];return r?new r(e,i,n):null}static hasComponent(t){return!!Ie._components[t]}static registerGraphicComponent(t,e){Ie._graphicComponents[t]=e}static createGraphicComponent(t,e,i){const n=Ie._graphicComponents[t];return n?n(e,i):null}static registerTransform(t,e,i){Ie._transforms[t]=Object.assign(e,{type:t,isBuiltIn:!!i})}static getTransform(t){return Ie._transforms[t]}static unregisterRuntimeTransforms(){Object.keys(Ie._transforms).forEach(t=>{Ie._transforms[t]&&!Ie._transforms[t].isBuiltIn&&(Ie._transforms[t]=null)})}static registerGrammar(t,e,i){Ie._grammars[t]={grammarClass:e,specKey:i??t}}static createGrammar(t,e,i){var n;const r=(n=Ie._grammars[t])===null||n===void 0?void 0:n.grammarClass;return r?new r(e,i):null}static getGrammars(){return this._grammars}static getGlyph(t){return Ie._glyphs[t]}static createInteraction(t,e,i){const n=Ie._interactions[t];return n?new n(e,i):null}static hasInteraction(t){return!!Ie._interactions[t]}};Q._plotMarks={},Q._marks={},Q._components={},Q._graphicComponents={},Q._transforms={},Q._grammars={},Q._glyphs={},Q._animations={},Q._interactions={},Q._graphics={},Q.registerGlyph=(s,t,e,i,n)=>(Q._glyphs[s]=new s9(t,e,i,n),Q._glyphs[s]),Q.registerAnimationType=(s,t)=>{Q._animations[s]=t},Q.getAnimationType=s=>Q._animations[s],Q.registerInteraction=(s,t)=>{Q._interactions[s]=t},Q.registerGraphic=(s,t)=>{Q._graphics[s]=t},Q.getGraphicType=s=>Q._graphics[s],Q.createGraphic=(s,t)=>{const e=Q._graphics[s];return e?e(t):null};const zL=s=>!!rt[s];function Bd(s,t,e={}){var i;const n=Q.getGraphicType(t)?Q.createGraphic(t,e):Q.createGraphicComponent(t,e,{skipDefault:(i=s==null?void 0:s.spec)===null||i===void 0?void 0:i.skipTheme});return n||Lt.getInstance().error(`create ${t} graphic failed!`),n}function r9(s,t,e={}){if(!Q.getGraphicType(rt.glyph))return;const i=Q.createGraphic(rt.glyph,e),n=t.getMarks(),r=Object.keys(n).map(a=>{if(Q.getGraphicType(n[a])){const o=Q.createGraphic(n[a]);if(o)return o.name=a,o}});return i.setSubGraphic(r),i}const c_=s=>{s&&(s[Go]=null,s.release(),s.parent&&s.parent.removeChild(s))},cC=["fillOpacity"],uC=(s,t,e)=>{var i;return t==="fillOpacity"?(s.fillOpacity=(i=e.fillOpacity)!==null&&i!==void 0?i:1,["fillOpacity"]):[]};function a9(s,t,e,i,n,r){const a=n.getGraphicAttribute(s,!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[s]=o,o}const Uu={rect3d:[{channels:["x","y","z","x1","y1","width","height","length"],transform:(s,t,e)=>{var i,n,r,a,o,l,h,d,c,u,p,g;W(t.width)||!W(t.x1)&&W(e.width)?(s.x=Math.min((i=e.x)!==null&&i!==void 0?i:0,(n=e.x1)!==null&&n!==void 0?n:1/0),s.width=e.width):W(t.x1)||!W(t.width)&&W(e.x1)?(s.x=Math.min(e.x,e.x1),s.width=Math.abs(e.x1-e.x)):(s.x=Math.min((r=e.x)!==null&&r!==void 0?r:0,(a=e.x1)!==null&&a!==void 0?a:1/0),s.width=e.width),W(t.height)||!W(t.y1)&&W(e.height)?(s.y=Math.min((o=e.y)!==null&&o!==void 0?o:0,(l=e.y1)!==null&&l!==void 0?l:1/0),s.height=e.height):W(t.y1)||!W(t.height)&&W(e.y1)?(s.y=Math.min(e.y,e.y1),s.height=Math.abs(e.y1-e.y)):(s.y=Math.min((h=e.y)!==null&&h!==void 0?h:0,(d=e.y1)!==null&&d!==void 0?d:1/0),s.height=e.height),W(t.length)||!W(t.z1)&&W(e.length)?(s.z=Math.min((c=e.z)!==null&&c!==void 0?c:0,(u=e.z1)!==null&&u!==void 0?u:1/0),s.length=e.length):W(t.z1)||!W(t.length)&&W(e.z1)?(s.z=Math.min(e.z,e.z1),s.length=Math.abs(e.z1-e.z)):(s.z=Math.min((p=e.z)!==null&&p!==void 0?p:0,(g=e.z1)!==null&&g!==void 0?g:1/0),s.length=e.length)},storedAttrs:"sizeAttrs"}],[rt.text]:[{channels:["text","limit","autoLimit","maxLineWidth","textType"],transform:(s,t,e)=>{var i,n;const r=(i=e.limit)!==null&&i!==void 0?i:1/0,a=(n=e.autoLimit)!==null&&n!==void 0?n:1/0,o=Math.min(r,a),l=Bs(e.text)&&!P(e.text.text),h=l?e.text.text:e.text;s.maxLineWidth=o===1/0?e.maxLineWidth:o,(l||e.textType)&&(e.text.type==="rich"||e.textType==="rich")?s.textConfig=h:s.text=h},storedAttrs:"limitAttrs"}],[rt.rule]:[{channels:["x","y","x1","y1"],transform:(s,t,e)=>{const i=J7(e);s.points=i,s.x=0,s.y=0},storedAttrs:"pointAttrs"}],[rt.symbol]:[{channels:["shape","symbolType"],transform:(s,t,e)=>{var i;s.symbolType=(i=t.shape)!==null&&i!==void 0?i:t.symbolType}},{channels:["image","fill","background"],transform:(s,t,e)=>{t.image?(s.background=t.image,s.fill=!1):e.image?(s.background=e.image,s.fill=!1):(s.fill=e.fill,s.background=e.background)},storedAttrs:"imageAttrs"}]};function o9(s,t){var e;return((e=Uu[s])!==null&&e!==void 0?e:[]).reduce((i,n)=>(n.channels.forEach(r=>{xs(t,r)&&(i[r]=t[r])}),i),{})}const u_=(s,t,e,i)=>{const n={},r=t?Object.keys(t):[],a=at(s)?Uu[s]:s;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=a9(d.storedAttrs,d.channels,n,t,e,i);d.transform(n,t,u)}else d.transform(n,t,null);o[c]=!0,h=!0}}),h||(cC.includes(l)?uC(n,l,t):n[l]=t[l])})}else r.forEach(o=>{cC.includes(o)?uC(n,o,t):n[o]=t[o]});return n},l9=(s,t)=>{var e,i;if(s===t)return!0;const n=(e=s&&s.length)!==null&&e!==void 0?e:0;return n===((i=t&&t.length)!==null&&i!==void 0?i:0)&&n!==0&&s.every((r,a)=>!r&&!t[a]||r&&t[a]&&r.color===t[a].color&&r.offset===t[a].offset)},h9=(s,t)=>{if(s===t)return!0;if(typeof s!=typeof t||at(s)||s.gradient!==t.gradient)return!1;const e=Object.keys(s),i=Object.keys(t);return e.length===i.length&&e.every(n=>n==="stops"?l9(s[n],t[n]):s[n]===t[n])},d9=(s,t)=>s.length===t.length&&s.join("-")===t.join("-"),c9=(s,t,e)=>!(!P(s)||!P(t))||!P(s)&&!P(t)&&(e==="lineDash"?d9(s,t):e==="stroke"||e==="fill"?h9(s,t):s===t),u9=["fill","fillOpacity","background","texture","texturePadding","textureSize","textureColor"],HL=["stroke","strokeOpacity","lineDash","lineDashOffset","lineCap","lineJoin","lineWidth","miterLimit"],p9=u9.concat(HL);function Ax(s,t,e){var i;if(!s||s.length<=1)return null;const n=((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.markType)==="area"?p9:HL,r=[];let a=null;return s.forEach((o,l)=>{a&&n.every(h=>c9(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=a1(o.attrs);return l.points=t.slice(o.startIndex,P(o.endIndex)?t.length:o.endIndex),l}):null}function g9(s,t,e){if(!s||s.length<=1)return null;const i=!!e&&e.mark.getSpec().enableSegments;let n,r,a=[],o=null;if(s.forEach((l,h)=>{o=t[h],o&&o.defined!==!1?(n||(r={items:[],points:[]},a.push(r)),r.points.push(o),r.items.push(l),n===!1&&(r.isConnect=!0,r={items:[],points:[]},a.push(r)),n=!0):n=!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=Ax(h.items,h.points,e);if(c)return void c.forEach(u=>{l.push(u)})}const d=a1(h.items[0]);d.points=h.points,l.push(d)}),l}return i?Ax(s,t,e):null}function f9(s){return s?s.reduce((t,e)=>t.concat(e.points),[]):null}function a1(s){const t={};return s&&Object.keys(s).forEach(e=>{e!=="x"&&e!=="y"&&e!=="x1"&&e!=="y1"&&e!=="defined"&&e!=="size"&&e!=="width"&&e!=="height"&&e!=="context"&&(t[e]=s[e])}),t}let jL=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 n,r,a;const o=!P((n=this.runtimeStatesEncoder)===null||n===void 0?void 0:n[e]),l=o?this.runtimeStatesEncoder[e]:(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e];if(!l)return{};if(N(l))return l(this.getDatum(),this,e,i);if(!o&&(!((a=this.graphicItem.states)===null||a===void 0)&&a[e]))return this.graphicItem.states[e];const h=this.items.map(c=>Object.assign({},c,{nextAttrs:{}}));yr(this,h,l,this.mark.parameters());const d=this.transformElementItems(h,this.mark.markType);return this.graphicItem.states?this.graphicItem.states[e]||(this.graphicItem.states[e]=d):this.graphicItem.states={[e]:d},d},this.mark=t}initGraphicItem(t={}){if(this.graphicItem)return;const e=this.mark.getAttributeTransforms();this.graphicItem=this.mark.addGraphicItem(e?u_(e,t,this):t,this.groupKey),this.graphicItem&&(this.graphicItem[Go]=this,e&&(this.graphicItem.onBeforeAttributeUpdate=i=>this.mark?u_(e,i,this):i),this.clearGraphicAttributes(),this.mark.needAnimate()&&(this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(t),this.setFinalGraphicAttributes(t)))}updateGraphicItem(){if(!this.graphicItem)return;this.diffState===Zt.exit?this.graphicItem.releaseStatus="willRelease":this.graphicItem.releaseStatus=void 0;const t=this.mark.animate.getAnimationConfigs("state");t.length!==0&&(this.graphicItem.stateAnimateConfig=t[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&&(c_(this.graphicItem),this.graphicItem[Go]=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 n;this.mark.emit(pt.BEFORE_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.data=e;const r=Zl(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:(n=this.items)===null||n===void 0?void 0:n[0].key,this.mark.emit(pt.AFTER_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.items}state(t,e){var i;const n=this.mark.isCollectionMark(),r=this.states,a=V(Fe(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,!n&&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&&(this.mark.isCollectionMark()&&delete t.defined,Object.assign(e,t)),this.graphicItem?(this.graphicItem.clearStates(),this.graphicItem.states={},this.graphicItem.stateProxy=null,this.applyGraphicAttributes(e)):this.initGraphicItem(e),this.diffState!==Zt.enter&&this.diffState!==Zt.update||!this.states.length||this.useStates(this.states),this.mark.markType===rt.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 ti))}encodeItems(t,e,i=!1,n){const r=this.mark.isCollectionMark(),a=e[ga.update],o=e[ga.enter],l=e[ga.exit],h=this.mark.isLargeMode()||r&&!this.mark.getSpec().enableSegments;this.diffState===Zt.enter?(o&&yr(this,t,o,n,h),a&&yr(this,t,a,n,h)):this.diffState===Zt.update?((r&&o||i)&&yr(this,t,o,n,h),a&&yr(this,t,a,n,h)):this.diffState===Zt.exit&&l&&(i&&yr(this,t,o,n,h),yr(this,t,l,n,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 n=i.nextAttrs,r=e.convert(n);Object.assign(n,r)})}clearStates(t){const e=ge(t)?t:this.mark.animate.getAnimationConfigs("state").length!==0;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)}addState(t,e){var i;if(!this.graphicItem)return!1;if(e&&at(t)&&!be(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 n=this.mark.getSpec().encode,r=V(t).reduce((a,o)=>(o&&!a.includes(o)&&(n!=null&&n[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=V(t);if(!e.length)return!1;const i=this.states.filter(n=>!e.includes(n));return i.length!==this.states.length&&(this.runtimeStatesEncoder&&e.forEach(n=>{this.runtimeStatesEncoder[n]=null}),this.useStates(i),!0)}useStates(t,e){var i;if(!this.graphicItem)return!1;this.mark.emit(pt.BEFORE_ELEMENT_STATE,{states:t},this);const n=(i=this.mark.getSpec())===null||i===void 0?void 0:i.stateSort;n&&t.sort(n),this.states=t;const r=ge(e)?e:this.mark.animate.getAnimationConfigs("state").length!==0;return this.graphicItem.stateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,r),this.mark.emit(pt.AFTER_ELEMENT_STATE,{states:t},this),!0}diffAttributes(t){const e={},i=this.getFinalGraphicAttributes();for(const n in t)Lm(n,i,t)&&xs(i,n)||(e[n]=t[n]);return e}transformElementItems(t,e,i){var n,r,a,o,l;const h=t[0];if(!h.nextAttrs||Object.keys(h.nextAttrs).length===0)return{};let d=h.nextAttrs;if(n9(e)&&t&&t.length&&P((n=h.nextAttrs)===null||n===void 0?void 0:n.points)&&(i===!0||d_(Object.keys(h.nextAttrs),this.mark.markType))){const c=this.mark.getSpec(),u=this.getGraphicAttribute("points",!1),p=this.getGraphicAttribute("segments",!1),g=c.enableSegments,f=(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[ga.connectNulls],_=t.map(y=>y.nextAttrs),m=this.mark.isProgressive();if(d=a1(d),e===rt.line||e===rt.area){const y=Q7(t,!0,u,e===rt.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:y}]);else if(f){if(d.segments=g9(_,y,this),d.segments&&d.segments.some(v=>v.isConnect)){const v=wa(f,this.getDatum(),this,this.mark.parameters());v&&d.segments.forEach(b=>{b.isConnect&&Object.assign(b,v)})}d.points=y}else if(g){const v=y&&y.length!==0?y:f9(p),b=Ax(_,v,this);b?(d.segments=b,d.points=null):(d.segments=null,d.points=v)}else d.points=y,d.segments=null}else e===rt.largeRects?d.points=t9(t,!0,u):e===rt.largeSymbols&&(d.points=e9(t,!0,u))}return d}applyGraphicAttributes(t){var e,i;if(!mt(t))if(this.mark.needAnimate()){const n=this.diffAttributes(t),r=(e=this.getPrevGraphicAttributes())!==null&&e!==void 0?e:{},a=(i=this.getFinalGraphicAttributes())!==null&&i!==void 0?i:{};Object.keys(n).forEach(h=>{r[h]=this.getGraphicAttribute(h),a[h]=n[h]}),this.setNextGraphicAttributes(n),this.setPrevGraphicAttributes(r),this.setFinalGraphicAttributes(a);const o=this.mark.animate.getElementAnimators(this).reduce((h,d)=>Object.assign(h,d.getEndAttributes()),{}),l=Object.assign({},o,a);this.graphicItem.setAttributes(l)}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=Pt(o,t)))return a}const n=this.mark.getAttributeTransforms();let r=[t];if(n&&n.length){const a=n.find(o=>o.storedAttrs&&o.channels.includes(t));a&&(r=[a.storedAttrs,t])}return Pt((i=this.graphicItem)===null||i===void 0?void 0:i.attribute,r)}setGraphicAttribute(t,e,i=!0){if(!this.graphicItem)return;const n=this.getFinalGraphicAttributes(),r=this.getPrevGraphicAttributes();i&&n&&(n[t]=e),r&&!xs(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(),n=this.getPrevGraphicAttributes();Object.keys(t).forEach(r=>{i&&e&&(i[r]=t[r]),n&&!xs(n,r)&&(n[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}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&&(c_(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(n=>n.nextAttrs):this.items.map(n=>{var r;return(r=n.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()?G(t)&&this.items.forEach((i,n)=>{Object.assign(i.nextAttrs,t[n])}):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 Ja{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(),V(t).map(e=>at(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)=>{E(i.id())&&(t[i.id()]=i.output())}),t}bind(){const t=this.getEvents();(t??[]).forEach(e=>{e.type&&e.handler&&(G(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&&(G(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 No extends Ja{constructor(t,e){super(t,e),this.type=No.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},No.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)}}No.type="element-active",No.defaultOptions={state:_n.active,trigger:"pointerover",triggerOff:"pointerout"};const o1=s=>s.filterField?t=>{var e;return(e=t.getDatum())===null||e===void 0?void 0:e[s.filterField]}:t=>t[s.filterType],VL=(s,t)=>{if(!t||!s)return null;const e={};return s.forEach(i=>{const n=i&&i.getSpec(),r=n&&n.encode;r&&t.forEach(a=>{a&&r[a]&&(e[a]||(e[a]=[]),e[a].push(i))})}),e},_9=s=>{const t=V(s),e=[],i=[];return t.forEach(n=>{n==="empty"?e.push("view"):at(n)&&n!=="none"?n.includes("view:")?(i.push(n.replace("view:","")),e.push("view")):(i.push(n),e.push("self")):nt(n)&&e.push("timeout")}),{eventNames:i,resetType:e}};class Ca extends Ja{constructor(t,e){super(t,e),this.type=Ca.type,this._resetType=[],this.clearPrevElements=()=>{const{state:i,reverseState:n}=this.options;this._statedElements&&this._statedElements.length&&(this.clearAllStates(i,n),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({},Ca.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=VL(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:n,resetType:r}=_9(t);return n.forEach(a=>{a&&(G(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:n}=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(n&&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()}}Ca.type="element-select",Ca.defaultOptions={state:_n.selected,trigger:"click"};class Pa extends Ja{constructor(t,e){super(t,e),this.type=Pa.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},Pa.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=VL(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 at(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()}}Pa.type="element-highlight",Pa.defaultOptions={highlightState:_n.highlight,blurState:_n.blur,trigger:"pointerover",triggerOff:"pointerout"};class Uo extends Ja{constructor(t,e){super(t,e),this.type=Uo.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({},Uo.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(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.highlightState),e.removeState(this.options.blurState)})})}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(n=>{n.key===e?(n.removeState(this.options.blurState),n.addState(this.options.highlightState)):(n.removeState(this.options.highlightState),n.addState(this.options.blurState))})})}}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(n=>{n.key===e?(n.removeState(this.options.blurState),n.addState(this.options.highlightState)):(n.removeState(this.options.highlightState),n.addState(this.options.blurState))})})}}}Uo.type="element-highlight-by-key",Uo.defaultOptions={highlightState:_n.highlight,blurState:_n.blur,trigger:"pointerover",triggerOff:"pointerout"};class $o extends Ja{constructor(t,e){super(t,e),this.type=$o.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},$o.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(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.highlightState),e.removeState(this.options.blurState)})})}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(n=>{n.groupKey===e?(n.removeState(this.options.blurState),n.addState(this.options.highlightState)):(n.removeState(this.options.highlightState),n.addState(this.options.blurState))})})}}reset(t){t&&this._marks&&this._marks.includes(t.mark)&&this.clearPrevElements()}}$o.type="element-highlight-by-group",$o.defaultOptions={highlightState:_n.highlight,blurState:_n.blur,trigger:"pointerover",triggerOff:"pointerout"};class Yo extends Ja{constructor(t,e){super(t,e),this.type=Yo.type,this.handleStart=i=>{var n,r;this.start((r=(n=i.detail)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.id)},this.handleReset=i=>{this.reset()},this.options=Object.assign({},Yo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getEvents(){return[{type:$i.legendItemHover,handler:this.handleStart},{type:$i.legendItemUnHover,handler:this.handleReset}]}getStartState(){return this.options.state}start(t){const e=t;if(P(e))return;const i=o1(this.options);this._marks.forEach(n=>{n.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)})})}}Yo.type="element-active-by-legend",Yo.defaultOptions={state:_n.active,filterType:"groupKey"};class Xo extends Ja{constructor(t,e){super(t,e),this.type=Xo.type,this.handleStart=(i,n)=>{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({},Xo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:$i.legendItemHover,handler:this.handleStart},{type:$i.legendItemUnHover,handler:this.handleReset}]}start(t){if(P(t))return;const e=o1(this.options);this._marks.forEach(i=>{i.elements.forEach(n=>{e(n)===t?(n.removeState(this.options.blurState),n.addState(this.options.highlightState)):(n.removeState(this.options.highlightState),n.addState(this.options.blurState))})})}reset(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.blurState),e.removeState(this.options.highlightState)})})}}Xo.type="element-highlight-by-legend",Xo.defaultOptions={highlightState:_n.highlight,blurState:_n.blur,filterType:"groupKey"};class Ko extends Ja{constructor(t,e){super(t,e),this.type=Ko.type,this.handleStart=(i,n)=>{if(this.options.shouldStart?this.options.shouldStart(i):this._filterByName(i)){const r=this._parseTargetKey(i,n);this.start(r)}},this.handleReset=i=>{(this.options.shouldReset?this.options.shouldReset(i):this._filterByName(i))&&this.reset()},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}]}_filterByName(t){var e;const i=V(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=o1(this.options);this._marks.forEach(i=>{i.elements.forEach(n=>{e(n)===t?(n.removeState(this.options.blurState),n.addState(this.options.highlightState)):(n.removeState(this.options.highlightState),n.addState(this.options.blurState))})})}reset(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.blurState),e.removeState(this.options.highlightState)})})}}Ko.type="element-highlight-by-name",Ko.defaultOptions={trigger:"pointerover",triggerOff:"pointerout",highlightState:_n.highlight,blurState:_n.blur,filterType:"groupKey"};function pC(s){if(s)return s.type===De.Band?s.bandwidth():s.type===De.Point?s.step():void 0}class WL{updateStates(t,e,i,n){return t&&t.length?(i&&n?e&&e.length?(this.toggleReverseStateOfElements(t,e,n),this.toggleStateOfElements(t,e,i)):this.addBothStateOfElements(t,i,n):i&&(e&&e.length?this.toggleStateOfElements(t,e,i):this.addStateOfElements(t,i)),t):null}toggleReverseStateOfElements(t,e,i){e.forEach(n=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(n.mark)&&n.addState(i)}),t.forEach(n=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(n.mark)&&n.removeState(i)})}toggleStateOfElements(t,e,i){e.forEach(n=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(n.mark)&&n.removeState(i)}),t.forEach(n=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(n.mark)&&n.addState(i)})}addBothStateOfElements(t,e,i){this._marks.forEach(n=>{const r=i&&this._stateMarks[i]&&this._stateMarks[i].includes(n),a=e&&this._stateMarks[e]&&this._stateMarks[e].includes(n);(r||a)&&n.elements.forEach(o=>{t&&t.includes(o)?a&&o.addState(e):r&&o.addState(i)})})}addStateOfElements(t,e){this._marks.forEach(i=>{const n=e&&this._stateMarks[e]&&this._stateMarks[e].includes(i);n&&i.elements.forEach(r=>{t&&t.includes(r)&&n&&r.addState(e)})})}clearAllStates(t,e){this._statedElements&&this._statedElements.length&&this._marks.forEach(i=>{e&&this._stateMarks[e]&&this._stateMarks[e].includes(i)&&i.elements.forEach(n=>{n.removeState(e)}),t&&this._stateMarks[t]&&this._stateMarks[t].includes(i)&&i.elements.forEach(n=>{this._statedElements.includes(n)&&n.removeState(t)})})}}const m9=()=>{Q.registerInteraction(No.type,No)},v9=()=>{ei(Ca,WL),Q.registerInteraction(Ca.type,Ca)},y9=()=>{ei(Pa,WL),Q.registerInteraction(Pa.type,Pa)},b9=()=>{Q.registerInteraction(Uo.type,Uo)},x9=()=>{Q.registerInteraction($o.type,$o)},S9=()=>{Q.registerInteraction(Yo.type,Yo)},A9=()=>{Q.registerInteraction(Xo.type,Xo)},k9=()=>{Q.registerInteraction(Ko.type,Ko)},gC=(s,t)=>Nu(s)?s.output():s&&Et(s)?N(s.callback)?e=>s.callback(e,t):N(s.value)?s.value(t):s:s,T9=(s,t)=>s&&(Et(s)?Object.keys(s).reduce((e,i)=>{const n=s[i];return e[i]=gC(n,t),e},{}):s.map(e=>gC(e,t)));let M9=-1;class n0 extends il{constructor(t){super(),this.spec={},this.references=new Map,this.targets=[],this.transforms=[],this.view=t,this.uid=++M9}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 n=V(this.spec.dependency).map(r=>at(r)?this.view.getGrammarById(r):r);this.detach(n)}this.spec.dependency=t;const i=V(t).map(n=>at(n)?this.view.getGrammarById(n):n);return this.attach(i),this.commit(),this}addEventListener(t,e,i){let n=e;return i&&i.trap===!1||(n=e,n.raw=e),i&&i.target&&(n.target=i.target),this.on(t,n),this}removeEventListener(t,e){return e?this.off(t,e):this.off(t),this}emit(t,...e){var i,n;return(n=(i=this.view)===null||i===void 0?void 0:i.emit)===null||n===void 0||n.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 n=e,r=0;const a=t.length;for(;r!P(i)).forEach(i=>{var n;P(t)||(i.targets.includes(this)||i.targets.push(this),this.references.set(i,((n=this.references.get(i))!==null&&n!==void 0?n:0)+e))}),this}detach(t,e=1){return V(t).filter(i=>!P(i)).forEach(i=>{const n=this.references.get(i)-e;n>0?this.references.set(i,n-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)=>{E(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(Ui(this.spec[e],this.view)),this.spec[e]=t,this.attach(Ui(t,this.view)),this.commit(),this}}const fC=(s,t,e)=>{var i;if(s==="callback"&&N(t))return{references:[],value:{callback:t,dependency:[]}};if(!P(t.data)){const n=e.getDataById(t.data);return{references:[n],value:n}}if(!P(t.customized)){const n=e.getCustomizedById(t.customized);return{references:[n],value:n}}if(!P(t.scale)){const n=e.getScaleById(t.scale);return{references:[n],value:n}}if(Z7(t)){const n=Ui(t,e);return{references:n,value:t.callback?{value:t.callback,dependency:n}:(i=n==null?void 0:n[0])!==null&&i!==void 0?i:t}}return{value:t}},w9=(s,t,e)=>{if(P(t))return{value:t};if(G(t)){const i=t.map(n=>fC(s,n,e));return{references:i.reduce((n,r)=>(r.references&&n.concat(r.references),n),[]),value:i.map(n=>n.value)}}return fC(s,t,e)},C9=(s,t)=>{const e=Q.getTransform(s.type);if(!e)return;const i={};let n=[];return Object.keys(s).forEach(r=>{var a;if(r==="type")return;const o=s[r];if(r==="dependency")return void((o==null?void 0:o.length)&&(n=n.concat(s1(o,t))));const l=w9(r,o,t);l&&(!((a=l.references)===null||a===void 0)&&a.length&&(n=n.concat(l.references)),i[r]=l.value)}),{markPhase:e.markPhase,transform:e.transform,canProgressive:e.canProgressive,type:e.type,options:i,references:n}},p_=(s,t)=>{if(s!=null&&s.length){const e=[];let i=[];return s.forEach(n=>{var r;const a=C9(n,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},P9=(s,t={},e)=>{if(!at(s))return V(s);try{return V(JSON.parse(s))}catch{return[]}},_C={csv:DR,dsv:OR,tsv:FR,json:P9},E9=(s,t)=>{if(!t||!_C[t.type])return V(s);const e=t.type==="dsv"?{delimiter:t.delimiter}:{};return _C[t.type](s,e,new $t(new Va))};class R9 extends n0{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=n=>{const r=q7(n.format,this.parameters());return this._input=E9(n.values,r),this._input},this.load=n=>{if(n.values)return this.ingest(n)},this.relay=n=>n[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=[],n=t.format?Ui(t.format,this.view)[0]:null;if(n&&e.push(n),t.values){const r=Ui(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=Ui(t.url,this.view)[0];r&&e.push(r),i.push({type:"load",transform:this.load,options:{url:r??t.url,format:n??t.format}})}else if(t.source){const r=[];V(t.source).forEach(a=>{const o=Nu(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(pt.BEFORE_EVALUATE_DATA);const i=this._isLoaded?this.transforms:this._loadTasks.concat(this.transforms);this.grammarSource&&(this._input=t);const n=this.evaluateTransform(i,this._input,e),r=this._evaluateFilter(n,e);return this.setValues(r),this._isLoaded=!0,this.view.emit(pt.AFTER_EVALUATE_DATA),this}output(){return this._values}getDataIDKey(){return this._dataIDKey}values(t,e,i=!0){const n=Object.assign({},this.spec,{values:t,format:e});return P(t)||(n.url=void 0,n.source=void 0),i?this.parseLoad(n):this}url(t,e,i=!0){const n=Object.assign({},this.spec,{url:t,format:e});return P(t)||(n.values=void 0,n.source=void 0),i?this.parseLoad(n):this}source(t,e,i=!0){const n=Object.assign({},this.spec,{source:t,format:e});return P(t)||(n.values=void 0,n.url=void 0),i?this.parseLoad(n):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=V(t).map((e,i)=>{const n=e===Object(e)?e:{data:e};return n[this._dataIDKey]=i,n})}field(t){return this._values.map(e=>e[t])}transform(t){const e=p_(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]),this.spec.transform=t;const i=p_(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(V(t)),this._postFilters.sort((e,i)=>{var n,r;return((n=e.rank)!==null&&n!==void 0?n:0)-((r=i.rank)!==null&&r!==void 0?r:0)}),this}removeDataFilter(t){const e=V(t);return this._postFilters=this._postFilters.filter(i=>!e.includes(i)),this}_evaluateFilter(t,e){return this._postFilters.reduce((i,n)=>n.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}}const To="window",mo="view",B9="browser",I9={trap:!1},fa="width",_a="height",Jl="viewWidth",Ql="viewHeight",Qn="padding",l1="viewBox",Id="autoFit";function L9(s){const t=Object.assign({defaults:{}},s),e=(i,n)=>{n.forEach(r=>{G(i[r])&&(i[r]=i[r].reduce((a,o)=>(a[o]=!0,a),{}))})};return e(t.defaults,["prevent","allow"]),e(t,[mo,To]),t}function O9(s,t){const e=s.defaults,i=e.prevent,n=e.allow;return i!==!1&&n!==!0&&(i===!0||n===!1||(i?i[t]:!!n&&!n[t]))}function D9(s,t,e){const i=s==null?void 0:s[t];return!(i===!1||Et(i)&&!i[e])}function dg(s,t,e,i){let n,r;const a=s[t];for(;t>e&&(r=Math.floor((t-1)/2),n=s[r],a&&n&&i(a,n)<0);)s[t]=n,t=r;return s[t]=a}function Ev(s,t,e,i){const n=t,r=s.length,a=s[t];let o,l=2*t+1;for(;l=0&&(l=o),s[t]=s[l],l=2*(t=l)+1;return s[t]=a,dg(s,t,n,i)}class F9{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 dg(this.nodes,e,0,this.compare),Ev(this.nodes,e,null,this.compare)}return this.nodes.push(t),dg(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)),dg(this.nodes,e,0,this.compare),Ev(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,Ev(this.nodes,0,null,this.compare)):e=t,e}clear(){this.nodes=[]}}class mC{constructor(t){this.list=[],this.ids={},this.idFunc=t||x4}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 z9{constructor(){this.grammars=[],this.logger=Lt.getInstance(),this._curRank=0,this._committed=new mC(t=>t.uid),this._heap=new F9((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 n=i.targets;n&&n.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,n,r)=>P(n.value)?i:`${i}${r?" , ":""}${n.key}: ${n.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 mC(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 Rv=(s,t,e,i,n)=>{const r=a=>{if(n||!a||i&&!i(a)||e.call(null,a),a.markType===rt.group){const o=a[t];o&&o.forEach(l=>{r(l)})}n&&(!a||i&&!i(a)||e.call(null,a))};r(s)};class H9{constructor(t){this.handleAfterNextRender=()=>{this._stage&&!this._viewOptions.disableDirtyBounds&&this._stage.enableDirtyBounds(),this._view.emit(pt.AFTER_VRENDER_DRAW),this._view.emit(pt.AFTER_VRENDER_NEXT_RENDER)},this._view=t}initialize(t,e,i,n){return this._width=t,this._height=e,this._viewOptions=i,this._eventConfig=n,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&&w5(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,n;return(n=(i=this._stage)===null||i===void 0?void 0:i.setDpr)===null||n===void 0||n.call(i,t),e&&this.renderNextFrame(),this}shouldResize(t,e){return t!==this._width||e!==this._height}resize(t,e){return this._view.emit(pt.BEFORE_STAGE_RESIZE),this.shouldResize(t,e)&&(this._width=t,this._height=e,this._stage&&this._stage.resize(t,e)),this._view.emit(pt.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(pt.BEFORE_VRENDER_DRAW),this.initStage(),this._stage.disableDirtyBounds(),this._stage.afterNextRender(this.handleAfterNextRender),t&&(this._stage.render(),this._view.emit(pt.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,n,r;this._view.emit(pt.BEFORE_CREATE_VRENDER_STAGE);const a=this._viewOptions,o=(t=a.stage)!==null&&t!==void 0?t:xN({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(pt.AFTER_CREATE_VRENDER_STAGE),this._view.emit(pt.BEFORE_CREATE_VRENDER_LAYER);const l=(i=a.layer)!==null&&i!==void 0?i:o.defaultLayer;if(this._view.emit(pt.AFTER_CREATE_VRENDER_LAYER),!((n=this._eventConfig)===null||n===void 0)&&n.drag&&(this._dragController=new U4(o)),(r=this._eventConfig)===null||r===void 0?void 0:r.gesture){const h=Et(this._eventConfig.gesture)?this._eventConfig.gesture:{};this._gestureController=new Y4(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)}}}function j9(s){["touches","changedTouches","targetTouches"].forEach(e=>{s[e]&&s[e].length&&Array.from(s[e]).forEach(i=>{yC(i,vC(i),!1)})});const t=vC(s);return yC(s,t)}function vC(s){return P(s.offsetX)?P(s.x)?s.changedTouches&&s.changedTouches.length?G9(s):{canvasX:0,canvasY:0}:W9(s):V9(s)}function V9(s){return{canvasX:s.offsetX,canvasY:s.offsetY}}function W9(s){return{canvasX:s.x,canvasY:s.y}}function G9(s){return{canvasX:s.changedTouches[0].x,canvasY:s.changedTouches[0].y}}function yC(s,t,e=!0){return W(t.canvasX)&&Object.defineProperty(s,"canvasX",{value:t.canvasX,writable:!0}),W(t.canvasY)&&Object.defineProperty(s,"canvasY",{value:t.canvasY,writable:!0}),e&&W(t.clientX)&&Object.defineProperty(s,"clientX",{value:t.clientX,writable:!0}),e&&W(t.clientY)&&Object.defineProperty(s,"clientY",{value:t.clientY,writable:!0}),[t.canvasX,t.canvasY]}function kx(s,t,e,i,n){if(n===To){const r=t.changedTouches?t.changedTouches[0]:t;j9(r)}return t.element=e,t}class N9 extends n0{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?Fe(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(G(t)&&G(this.value)&&t.length===this.value.length){for(let e=0;e{var i,n,r,a,o;return[{id:fa,value:(i=s[fa])!==null&&i!==void 0?i:0},{id:_a,value:(n=s[_a])!==null&&n!==void 0?n:0},{id:Qn,value:ma((a=(r=s[Qn])!==null&&r!==void 0?r:t[Qn])!==null&&a!==void 0?a:e==null?void 0:e.padding)},{id:Jl,update:{callback:(l,h)=>{const d=ma(h[Qn]);return h[fa]-d.left-d.right},dependency:[fa,Qn]}},{id:Ql,update:{callback:(l,h)=>{const d=ma(h[Qn]);return h[_a]-d.top-d.bottom},dependency:[_a,Qn]}},{id:l1,update:{callback:(l,h)=>{const d=ma(h[Qn]);return(l||new di).setValue(d.left,d.top,d.left+h[Jl],d.top+h[Ql])},dependency:[Jl,Ql,Qn]}},{id:Id,value:(o=s[Id])!==null&&o!==void 0?o:t[Id]}]},ma=s=>{var t,e,i,n;return nt(s)?{top:s,bottom:s,left:s,right:s}:{top:(t=s==null?void 0:s.top)!==null&&t!==void 0?t:0,bottom:(e=s==null?void 0:s.bottom)!==null&&e!==void 0?e:0,left:(i=s==null?void 0:s.left)!==null&&i!==void 0?i:0,right:(n=s==null?void 0:s.right)!==null&&n!==void 0?n:0}},Y9=s=>{var t;const e=(i,n)=>{var r,a;i.group=n;const o=(r=i.id)!==null&&r!==void 0?r:"VGRAMMAR_MARK_"+ ++U9;i.id=o,((a=i.marks)!==null&&a!==void 0?a:[]).forEach(l=>e(l,o))};return((t=s.marks)!==null&&t!==void 0?t:[]).forEach(i=>e(i,"root")),s},X9=s=>{var t,e,i,n,r;const{reuse:a=W7,morph:o=G7,morphAll:l=N7,animation:h={},enableExitAnimation:d=$7}=s??{};return{reuse:a,morph:o,morphAll:l,animation:{easing:(t=h.easing)!==null&&t!==void 0?t:Sx,delay:(e=h.delay)!==null&&e!==void 0?e:bx,duration:(i=h.duration)!==null&&i!==void 0?i:FL,oneByOne:(n=h.oneByOne)!==null&&n!==void 0?n:xx,splitPath:(r=h.splitPath)!==null&&r!==void 0?r:U7},enableExitAnimation:d}},K9=s=>P(s.markId)?t=>t&&t.mark.id()===s.markId:P(s.markName)?t=>t&&t.mark.name()===s.markName:P(s.type)?t=>t&&t.mark.markType===s.type:()=>!0,q9=(s,t)=>t&&t.debounce?or(s,t.debounce):t&&t.throttle?Ka(s,t.throttle):s,Z9="@",J9="#",Q9=(s,t=mo)=>{const e={},i=s.split(":");if(i.length===2){const[n,r]=i;n[0]==="#"?(e.markId=n.slice(1),e.source=t):n[0]==="@"?(e.markName=n.slice(1),e.source=t):zL(n)?(e.markType=n,e.source=t):e.source=n===To?To:t,e.type=r}else i.length===1&&(e.type=s,e.source=t);return e};function tX(s){s.mode&&Ot.setEnv(s.mode,s.modeParams||{})}class eX extends jL{constructor(t){super(t),this.getStateAttrs=(e,i)=>{var n,r,a;const o=!P((n=this.runtimeStatesEncoder)===null||n===void 0?void 0:n[e]),l=o?this.runtimeStatesEncoder[e]:(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e],h={};if(!l)return h;if(N(l))return h.attributes=l(this.getDatum(),this,e,i),h;if(!o&&(!((a=this.graphicItem.glyphStates)===null||a===void 0)&&a[e]))return this.graphicItem.glyphStates[e];if(l){const d=this.items[0],c=[Object.assign({},d,{nextAttrs:{}})];return yr(this,c,l,this.mark.parameters()),this.coordinateTransformEncode(c),h.attributes=c[0].nextAttrs,this.graphicItem.glyphStates?this.graphicItem.glyphStates[e]||(this.graphicItem.glyphStates[e]=h):this.graphicItem.glyphStates={[e]:h},h}return h},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[Go]=this,this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!1);const e=this.glyphMeta.getMarks();this.glyphGraphicItems={},this.graphicItem.getSubGraphic().forEach(i=>{const n=e[i.name];this.glyphGraphicItems[i.name]=i,i.onBeforeAttributeUpdate=r=>this.mark?u_(n,r,this,i.name):r}),this.clearGraphicAttributes()}useStates(t,e){if(!this.graphicItem)return!1;this.mark.emit(pt.BEFORE_ELEMENT_STATE,{states:t},this),this.states=t.slice();const i=ge(e)?e:this.mark.animate.getAnimationConfigs("state").length!==0;return this.graphicItem.glyphStateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,i),this.mark.emit(pt.AFTER_ELEMENT_STATE,{states:t},this),!0}encodeGraphic(){this.coordinateTransformEncode(this.items);const t=this.transformElementItems(this.items,this.mark.markType);this.graphicItem||this.initGraphicItem(),this.diffState===Zt.enter?(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(e=>{e.states={}}),this.useStates(this.states)),this.items.map(e=>{e.nextAttrs={}})}encodeCustom(t){var e;let i={};const n=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())),n){let a;Object.keys(n).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=n[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.diffState===Zt.enter&&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(),n=u_(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 f=r==null?void 0:r[o];Object.keys(f??{}).forEach(_=>{xs(this.items[0].nextAttrs,_)||xs(c,_)||(c[_]=f[_])})}const u=Object.assign({},o9(l,e),c),p=this._generateGlyphItems(l,this.items,u);this.coordinateTransformEncode(p);const g=this.transformElementItems(p,l);this.applyGlyphGraphicAttributes(g,o,h),l===rt.shape&&(h.datum=p[0].datum)}),n}}_generateGlyphItems(t,e,i){const n=e.map(r=>Object.assign({},r,{nextAttrs:i}));return DL.includes(t)&&this.mark.getSpec().enableSegments&&n.forEach((r,a)=>{r.nextAttrs=Object.assign({},e[a].nextAttrs,i)}),n}getGraphicAttribute(t,e=!1,i){if(!this.graphicItem)return;const n=this.getPrevGraphicAttributes(i);return e&&xs(n,t)?n[t]:(i?this.glyphGraphicItems[i]:this.graphicItem).attribute[t]}setGraphicAttribute(t,e,i=!0,n){if(!this.graphicItem)return;const r=n?this.glyphGraphicItems[n]:this.graphicItem,a=this.getFinalGraphicAttributes(n),o=this.getPrevGraphicAttributes(n);i&&(a[t]=e),xs(o,t)||(o[t]=r.attribute[t]),r.setAttribute(t,e)}setGraphicAttributes(t,e=!0,i){if(!this.graphicItem)return;const n=i?this.glyphGraphicItems[i]:this.graphicItem,r=this.getFinalGraphicAttributes(i),a=this.getPrevGraphicAttributes(i);Object.keys(t).forEach(o=>{e&&(r[o]=t[o]),xs(a,o)||(a[o]=n.attribute[o])}),n.setAttributes(t)}diffAttributes(t,e){const i={},n=this.getFinalGraphicAttributes(e);for(const r in t)Lm(r,n,t)||(i[r]=t[r]);return i}applyGlyphGraphicAttributes(t,e,i){var n,r;if(this.mark.needAnimate()){const a=this.diffAttributes(t,e),o=(n=this.getPrevGraphicAttributes(e))!==null&&n!==void 0?n:{},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[Go]=null}),this.glyphGraphicItems=null),super.release()}}const cg=s=>s.markType===rt.glyph?new eX(s):new jL(s);function Cr(s,t,e){const i=new Map;if(!s||s.length===0)return{keys:[],data:i};if(!t)return i.set(Tn,e?s.slice().sort(e):s.slice()),{keys:V7,data:i};const n=Zl(t);if(s.length===1){const a=n(s[0]);return i.set(a,[s[0]]),{keys:[a],data:i}}const r=new Set;return s.forEach(a=>{var o;const l=n(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 h1{constructor(t,e,i){this.prevData=t!=null&&t.length?Cr(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 iX(s,t,e){const i={enter:[],exit:[],update:[]},n=new h1(s,e);return n.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]})}),n.setCurrentData(Cr(t,e)),n.doDiff(),i}function nX(s,t,e){const i={enter:[],exit:[],update:[]},n=new h1(s,e);return n.setCallback((r,a,o)=>{P(a)?i.exit.push({prev:o}):P(o)?i.enter.push({next:a}):i.update.push({next:a,prev:o})}),n.setCurrentData(Cr(t,e)),n.doDiff(),i}const GL=(s,t)=>{if(!s)return null;if(s.from){const e=s.from,i=Object.keys(e);i.forEach(r=>{P(e[r])&&delete e[r]});const n=d_(i,t.mark.markType)&&!E(e.segments);if(n){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));s.from=t.transformElementItems(r,t.mark.markType,n)}}if(s.to){const e=s.to,i=Object.keys(e);i.forEach(r=>{P(e[r])&&delete e[r]});const n=d_(i,t.mark.markType)&&!E(e.segments);if(n){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));s.to=t.transformElementItems(r,t.mark.markType,n)}}return s};function sX(s,t,e,i){const n=N(t.options)?t.options.call(null,s.getDatum(),s,i):t.options;if(!t.type||!Q.getAnimationType(t.type))return null;const r=Q.getAnimationType(t.type)(s,n,e);return GL(r,s)}const xC=(s,t,e,i,n)=>N(e)?e(s.getDatum(),s,n):e;function rX(s,t,e,i){const n=t.channel;let r=null;return G(n)?r=n.reduce((a,o)=>(a.from[o]=s.getGraphicAttribute(o,!0),a.to[o]=s.getGraphicAttribute(o,!1),a),{from:{},to:{}}):Et(n)&&(r=Object.keys(n).reduce((a,o)=>{var l,h;const d=!P((l=n[o])===null||l===void 0?void 0:l.from),c=!P((h=n[o])===null||h===void 0?void 0:h.to);return(d||c)&&(a.from[o]=d?xC(s,0,n[o].from,0,i):void 0,a.to[o]=c?xC(s,0,n[o].to,0,i):s.getGraphicAttribute(o,!1)),a},{from:{},to:{}})),GL(r,s)}class aX extends mn{constructor(t,e,i,n,r){super(t,e,i,n,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 oX extends mn{getEndProps(){return this.to}onBind(){var t;const e=(t=this.target.constructor.NOWORK_ANIMATE_ATTR)!==null&&t!==void 0?t:Di,i=Object.keys(e).filter(o=>e[o]!==0);this.subAnimate.animate.preventAttrs(i);const n=Object.assign({},this.from),r=Object.assign({},this.to),a=[];Object.keys(r).forEach(o=>{i.includes(o)?(n[o]=r[o],this.from[o]=r[o]):P(n[o])?n[o]=this.target.getComputedAttribute(o):a.push(o)}),this.target.animates.forEach(o=>{o!==this.subAnimate.animate&&o.preventAttrs(a)}),this._fromAttribute=n,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:we.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:we.ANIMATE_END})}}update(t,e,i){this.updateCount===0&&this.onFirstRun(),this.updateCount+=1;const n=this.step.getLastProps();Object.keys(n).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=n[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)}}yB.mode|=oh.SET_ATTR_IMMEDIATELY;let lX=0;const SC=s=>!P(s)&&(s.prototype instanceof mn||"onBind"in s.prototype&&"onStart"in s.prototype&&"onEnd"in s.prototype&&"onUpdate"in s.prototype);class hX{constructor(t,e,i){this.id=lX++,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 n=i.animate();this.runnings.push(n),n.startAt(this.unit.initialDelay),n.wait(this.unit.loopDelay),this.unit.timeSlices.forEach(r=>{this.animateTimeSlice(n,r,t,e)}),n.wait(this.unit.loopDelayAfter),n.loop(this.unit.loopCount-1),W(this.unit.totalTime)&&setTimeout(()=>{n&&n.stop("end")},this.unit.totalTime),n.onEnd(()=>{this.runnings=this.runnings.filter(r=>r!==n),this.runnings.length===0&&this.animationEnd()})}animateTimeSlice(t,e,i,n){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 p=(u=d.type?sX(this.element,d,i,n):d.channel?rX(this.element,d,i,n):void 0)!==null&&u!==void 0?u:{},g=p.custom||(d==null?void 0:d.custom),f=(p==null?void 0:p.customParameters)||(d==null?void 0:d.customParameters);p.from&&Object.keys(p.from).length&&this.unit&&this.animationOptions.timeline.controlOptions.immediatelyApply&&this.element.mark.markType!=="component"&&this.element.getGraphicItem().setAttributes(p.from);const _=SC(g);return!P(g)&&!SC(g)?new aX(p.from,p.to,o,d.easing,{interpolator:g,element:this.element,parameters:f}):_?new g(p.from,p.to,o,d.easing,f):p.to?new oX(p.from,p.to,o,d.easing):void 0}).filter(d=>!P(d));h.length===1?t.play(h[0]):h.length>1&&t.play(new $j(o,h))}a>0&&t.wait(a)}}function dX(s){var t,e,i,n,r,a,o,l,h,d,c,u;if(P(s.timeSlices)){const g=s;return{startTime:(t=g.startTime)!==null&&t!==void 0?t:oC,totalTime:g.totalTime,oneByOne:(e=g.oneByOne)!==null&&e!==void 0?e:xx,loop:(i=g.loop)!==null&&i!==void 0?i:hC,controlOptions:U({},dC,(n=g.controlOptions)!==null&&n!==void 0?n:{}),timeSlices:[{duration:(r=g.duration)!==null&&r!==void 0?r:FL,delay:(a=g.delay)!==null&&a!==void 0?a:bx,delayAfter:(o=g.delayAfter)!==null&&o!==void 0?o:lC,effects:[{type:g.type,channel:g.channel,custom:g.custom,easing:(l=g.easing)!==null&&l!==void 0?l:Sx,customParameters:g.customParameters,options:g.options}]}]}}const p=V(s.timeSlices).filter(g=>g.effects&&V(g.effects).filter(f=>f.channel||f.type).length);if(p.length)return{startTime:(h=s.startTime)!==null&&h!==void 0?h:oC,totalTime:s.totalTime,oneByOne:(d=s.oneByOne)!==null&&d!==void 0?d:xx,loop:(c=s.loop)!==null&&c!==void 0?c:hC,controlOptions:U({},dC,(u=s.controlOptions)!==null&&u!==void 0?u:{}),timeSlices:p.map(g=>{var f,_;return{duration:g.duration,delay:(f=g.delay)!==null&&f!==void 0?f:bx,delayAfter:(_=g.delayAfter)!==null&&_!==void 0?_:lC,effects:V(g.effects).filter(m=>m.channel||m.type).map(m=>{var y;return{type:m.type,channel:m.channel,custom:m.custom,easing:(y=m.easing)!==null&&y!==void 0?y:Sx,customParameters:m.customParameters,options:m.options}})}}),partitioner:s.partitioner,sort:s.sort}}function AC(s){let t=[];return Object.keys(s).forEach(e=>{t=t.concat(NL(e,s[e]))}),t}function NL(s,t,e=0){const i=[];let n=e;return V(t).forEach(r=>{var a;const o=dX(r);o&&(i.push({state:s,id:(a=o.id)!==null&&a!==void 0?a:`${s}-${n}`,timeline:o,originConfig:r}),n+=1)}),i}function ea(s,t,e){return N(s)?s.call(null,t.getDatum(),t,e):s}class kC{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,n)=>Math.max(i,n.totalTime),this.totalTime),e=this.parallelArrangers.reduce((i,n)=>{var r,a;return Math.max(i,(a=(r=n.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(n=>{n.startAt(e)})})}}class TC{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=AC(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=AC(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 n;i.isReserved&&i.diffState!==Zt.exit&&(i.isReserved=!1);const r=(n=this.elementRecorder.get(i))===null||n===void 0?void 0:n.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(),n=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,n,!0)),[]);return new kC(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=NL(aC,t,this.immediateConfigs.length);this.immediateConfigs=this.immediateConfigs.concat(e);const i=this.mark.getAllElements(),n=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,n,!0)),[]);return new kC(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(n=>n===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 n=V(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=>n.includes(a.element))}enable(){return this.isEnabled=!0,this}disable(){return this.isEnabled=!1,this.stop(),this.animators.clear(),this}enableAnimationState(t){const e=V(t);return this.disabledStates=this.disabledStates.filter(i=>!e.includes(i)),this}disableAnimationState(t){const e=V(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,n=!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=n||d===t.state,p=!t.timeline.partitioner||t.timeline.partitioner(l.getDatum(),l,i);return h&&c&&u&&p});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({[Y7]: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,n,r){var a,o;const l=new hX(i,e,t);if(l.animate(n,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(pt.ANIMATION_START,u),this.mark.emit(pt.ELEMENT_ANIMATION_START,u,i),l}getAnimationState(t){const e=Fe(this.state,this.mark.parameters(),t.getDatum(),t);return e??t.diffState}getAnimationUnit(t,e,i,n,r){const a=[],o=ea(t.startTime,e,r),l=ea(t.totalTime,e,r),h=ea(t.oneByOne,e,r),d=ea(t.loop,e,r);let c=0;t.timeSlices.forEach(p=>{var g;const f=ea(p.delay,e,r),_=ea(p.delayAfter,e,r),m=(g=ea(p.duration,e,r))!==null&&g!==void 0?g:l/n,y=V(p.effects).map(v=>Object.assign({},v,{customParameters:ea(v.customParameters,e,r)}));a.push({effects:y,duration:m,delay:f,delayAfter:_}),c+=f+m+_});const u=nt(h)?h:h===!0?c:0;return{initialDelay:o,loopCount:nt(d)?d:d===!0?1/0:1,loopDelay:u*i,loopDelayAfter:u*(n-i-1),loopAnimateDuration:c,loopDuration:c+u*(n-1),totalTime:l,timeSlices:a}}clearElementAnimation(t,e=!0){this.animators.forEach(i=>{i.forEach(n=>{n.element===t&&(n.animationOptions.state===Zt.exit?n.stop("start",!1):n.stop("end",!1),this.handleAnimatorEnd(n,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,n=t.animationOptions,r=n.state,a=r===aC,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[n.id]-=1;const l=this.timelineCount[n.id]===0,h=a?this.immediateConfigs.find(c=>c.id===n.id).originConfig:this.configs.find(c=>c.id===n.id).originConfig;l&&(delete this.timelineCount[n.id],a&&(this.immediateConfigs=this.immediateConfigs.filter(c=>c.id!==n.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(pt.ANIMATION_END,d),this.mark.emit(pt.ELEMENT_ANIMATION_END,d,i)}}class Dh extends n0{constructor(t,e,i){super(t),this.grammarType="mark",this.elements=[],this.elementMap=new Map,this.isUpdated=!0,this._isReentered=!1,this.animate=new TC(this,{}),this.differ=new h1([]),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,n;if(super.parse(t),this.spec.group){const a=at(this.spec.group)?this.view.getMarkById(this.spec.group):this.spec.group;this.detach(a)}const r=at(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((n=t.encode)!==null&&n!==void 0?n:{}).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){if(t.grammarType!==this.grammarType)return this;const e=t;return this.markType=e.markType,this.coord=e.coord,this.elementMap=e.elementMap,this.elements=e.elements,this.elementMap.forEach(i=>i.mark=this),this.differ=e.differ,this.animate=e.animate,this.animate.mark=this,this._context=e._context,this.graphicItem=e.graphicItem,this.graphicIndex=e.graphicIndex,this.graphicParent=e.graphicParent,this.needClear=e.needClear,this.isUpdated=e.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;if(this.needSkipBeforeLayout()&&this.view.getLayoutState()===Sr.before)return this;const n=(i=this.view.renderer)===null||i===void 0?void 0:i.stage();this.init(n,e);const r=this.evaluateTransform(this._getTransformsBeforeJoin(),t??hg,e);let a=r!=null&&r.progressive?t:r;return this.evaluateGroup(a),this.renderContext=this.parseRenderContext(a,e),this.renderContext.progressive?(this.differ.reset(),this.elementMap.clear(),this.evaluateProgressive()):(r!=null&&r.progressive&&(this.renderContext.parameters=e,this.renderContext.beforeTransformProgressive=r.progressive,a=r.progressive.output()),this.emit(pt.BEFORE_MARK_JOIN),this.evaluateJoin(a),this.emit(pt.AFTER_MARK_JOIN),this.emit(pt.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,e),this.emit(pt.AFTER_MARK_STATE),this.emit(pt.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),e),this.emit(pt.AFTER_MARK_ENCODE)),this.emit(pt.BEFORE_MARK_UPDATE),this.update(this.spec),this.emit(pt.AFTER_MARK_UPDATE),this}evaluateGroup(t){if(this.markType===rt.group)return;const e=Cr(t??hg,this.spec.groupBy,this.spec.groupSort),i=e.keys;this._groupKeys=i,this._groupEncodeResult=null,this.differ.setCurrentData(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,n,r){return this.grammarSource&&(this.detach(this.grammarSource),this.grammarSource=null),this.spec.from=null,P(t)||(at(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=n,this.spec.groupSort=r,this.commit(),this}coordinate(t){return at(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,n){if(t===Zt.enter&&(this._isReentered=!0),this.spec.encode[t]){const r=this.spec.encode[t];if(_o(r))this.detach(no(r,this.view));else{const a=at(e);a&&n||!a&&i?(Object.keys(r).forEach(o=>{this.detach(no(r[o],this.view))}),this.spec.encode[t]={}):a?this.detach(no(r[e],this.view)):Object.keys(e).forEach(o=>{this.detach(no(r[o],this.view))})}}return e&&(this.spec.encode[t]||(this.spec.encode[t]={}),at(e)?(this.spec.encode[t][e]=i,this.attach(no(i,this.view))):_o(e)?(this.spec.encode[t]=e,this.attach(no(e,this.view))):e&&(Object.assign(this.spec.encode[t],e),Object.values(e).forEach(r=>{this.attach(no(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=p_(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]);const i=p_(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 DL.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===yx.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(n=>{const r=t[n];r&&!_o(r)&&Object.keys(r).forEach(a=>{i0(r[a])&&(e[a]=Jc(r[a].scale,i))})}),e}getFieldsByChannel(){const t=this.spec.encode;if(!t)return{};const e={};return Object.keys(t).forEach(i=>{const n=t[i];_o(n)||Object.keys(n).forEach(r=>{r1(n[r])&&(e[r]=n[r].field)})}),e}init(t,e){var i,n,r,a;if(this._delegateEvent||(this._delegateEvent=(h,d)=>{var c;const u=(c=h.target)===null||c===void 0?void 0:c[Go];if((u==null?void 0:u.mark)===this){const p=kx(this.view,h,u,d,mo);this.emitGrammarEvent(d,p,u)}},this.initEvent()),this.animate||(this.animate=new TC(this,this.spec.animation),this.needAnimate()&&this.animate.updateState(this.spec.animationState)),!this.group){const h=Jc(this.spec.group,e);this.group=h,h&&h.appendChild(this)}const o=this.group?this.group.getGroupGraphicItem():t.defaultLayer,l=(r=(n=(i=this.group)===null||i===void 0?void 0:i.children)===null||n===void 0?void 0:n.indexOf(this))!==null&&r!==void 0?r:0;if(this.markType!==rt.group){if(!this.graphicItem){const h=Bd(this,rt.group,{pickable:!1,zIndex:(a=this.spec.zIndex)!==null&&a!==void 0?a:0});(this.spec.support3d||j7.includes(this.markType))&&h.setMode("3d"),h.name=`${this.id()||this.markType}`,this.graphicItem=h}this.graphicParent=this.graphicItem,!o||this.graphicIndex===l&&this.graphicItem.parent===o||o.insertIntoKeepIdx(this.graphicItem,l)}else this.graphicParent=o;this.graphicIndex=l}update(t){this._context=this.spec.context,this.isUpdated=!0,this.renderContext.progressive||(t.animation&&this.animate.updateConfig(t.animation),this.animate.updateState(t.animationState)),this.markType!==rt.group?(P(t.zIndex)||this.graphicItem.setAttribute("zIndex",t.zIndex),P(t.clip)||this.graphicItem.setAttribute("clip",t.clip),P(t.clipPath)||this.graphicItem.setAttribute("path",G(t.clipPath)?t.clipPath:t.clipPath(this.elements)),this.elementMap.forEach(e=>{e.updateGraphicItem()})):this.elementMap.forEach(e=>{e.updateGraphicItem()})}evaluateJoin(t){var e,i,n,r;this.needClear=!0;const a=Zl((n=(e=this.spec.key)!==null&&e!==void 0?e:(i=this.grammarSource)===null||i===void 0?void 0:i.getDataIDKey())!==null&&n!==void 0?n:()=>Tn),o=Zl((r=this.spec.groupBy)!==null&&r!==void 0?r:()=>Tn),l=this.spec.sort,h=this.isCollectionMark(),d=new Set(this.elements.filter(p=>p.diffState===Zt.enter)),c=[];this.differ.setCallback((p,g,f)=>{const _=p;let m;if(P(g))m=this.elementMap.get(_),m&&(m.diffState=Zt.exit);else if(P(f)){m=this.elementMap.has(_)?this.elementMap.get(_):cg(this),m.diffState===Zt.exit&&(m.diffState=Zt.enter,this.animate.getElementAnimators(m,Zt.exit).forEach(v=>v.stop("start"))),m.diffState=Zt.enter;const y=h?p:o(g[0]);m.updateData(y,g,a,this.view),this.elementMap.set(_,m),c.push(m)}else if(m=this.elementMap.get(_),m){m.diffState=Zt.update;const y=h?p:o(g[0]);m.updateData(y,g,a,this.view),c.push(m)}d.delete(m)});const u=t??hg;h||this.differ.setCurrentData(Cr(u,p=>`${o(p)}-${a(p)}`,void 0)),this.differ.doDiff(),d.forEach(p=>{this.elementMap.delete(h?p.groupKey:`${p.groupKey}-${p.key}`),p.remove(),p.release()}),this.elements=c,l&&this.elements.length>=2&&this.elements.sort((p,g)=>l(p.getDatum(),g.getDatum()))}evaluateState(t,e,i){e&&t.forEach(n=>{n.state(e,i)})}evaluateGroupEncode(t,e,i){if(!this._groupKeys||!e)return;const n={};return this._groupKeys.forEach(r=>{const a=t.find(o=>o.groupKey===r);a&&(n[r]=wa(e,a.items&&a.items[0]&&a.items[0].datum,a,i))}),this._groupEncodeResult=n,n}getChannelsFromConfig(t){const e=this.spec;return P(e.interactive)?null:{pickable:e.interactive}}evaluateEncode(t,e,i,n){const r=this.getChannelsFromConfig();if(e){this.emit(pt.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=n?null:this.evaluateGroupEncode(t,e[ga.group],i);t.forEach(o=>{this.markType===rt.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._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(pt.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){var n;const r=i??Bd(this,this.markType,t);if(r){if(!((n=this.renderContext)===null||n===void 0)&&n.progressive){let a;if(this._groupKeys){const o=this._groupKeys.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!==rt.group&&this.spec.progressiveStep>0&&this.spec.progressiveThreshold>0&&this.spec.progressiveStep0&&t.length>=this.spec.largeThreshold;if(i){const r=this.differ.getCurrentData();return r&&r.keys&&r.keys.some(a=>r.data.get(a).length>this.spec.progressiveThreshold)?{large:n,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:n}}return{large:n}}isProgressive(){return this.renderContext&&(!!this.renderContext.progressive||!!this.renderContext.beforeTransformProgressive)}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 n=this.renderContext.progressive.currentIndex,r=Zl((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._groupKeys.forEach((l,h)=>{const d=this.renderContext.progressive.groupedData.get(l),c=this.renderContext.progressive.step,u=d.slice(n*c,(n+1)*c);if(n===0){const p=cg(this);p.diffState=Zt.enter,p.updateData(l,u,r,this.view),a.push(p)}else{const p=this.elements[h];p.updateData(l,u,r,this.view),a.push(p)}}),a;const o={};return this._groupKeys.forEach(l=>{const h=this.renderContext.progressive.groupedData.get(l),d=this.renderContext.progressive.step,c=h.slice(n*d,(n+1)*d),u=[];c.forEach(p=>{const g=cg(this);g.diffState=Zt.enter,g.updateData(l,[p],r,this.view),u.push(g),a.push(g)}),o[l]=u}),{groupElements:o,elements:a}}evaluateEncodeProgressive(t,e,i){const n=this.renderContext.progressive.currentIndex;if(n===0){if(this.evaluateEncode(t,e,i),n===0&&this._groupEncodeResult&&!this.isCollectionMark()&&this.markType!==rt.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){this.renderContext.beforeTransformProgressive.progressiveRun();const l=this.renderContext.beforeTransformProgressive.output();return this.emit(pt.BEFORE_MARK_JOIN),this.evaluateJoin(l),this.emit(pt.AFTER_MARK_JOIN),this.emit(pt.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,this.renderContext.parameters),this.emit(pt.AFTER_MARK_STATE),this.emit(pt.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),this.renderContext.parameters),void this.emit(pt.AFTER_MARK_ENCODE)}if(!(!((e=this.renderContext)===null||e===void 0)&&e.progressive))return;const n=this.renderContext.parameters;this.emit(pt.BEFORE_MARK_JOIN);const r=this.evaluateJoinProgressive(),a=Array.isArray(r)?r:r.elements;if(this.emit(pt.AFTER_MARK_JOIN),this.renderContext.progressive.currentIndex===0?(this.graphicParent.removeAllChild(),this._groupKeys.forEach(l=>{const h=Bd(this,rt.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(pt.BEFORE_MARK_STATE),this.evaluateState(a,this.spec.state,n),this.emit(pt.AFTER_MARK_STATE),this.emit(pt.BEFORE_MARK_ENCODE),Array.isArray(r))this.evaluateEncodeProgressive(a,this._getEncoders(),n);else{const l=r.groupElements;Object.keys(l).forEach(h=>{this.evaluateEncodeProgressive(l[h],this._getEncoders(),n)})}this.emit(pt.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,n),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:Uu[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(){this.animate.stop(),this.elementMap.forEach(t=>t.diffState=Zt.exit),this._finalParameters=this.parameters()}release(){this.releaseEvent(),this.elements.forEach(t=>t.release()),this.elementMap.clear(),this._finalParameters=null,this.animate&&this.animate.release(),this.graphicItem&&c_(this.graphicItem),this.detachAll(),super.release()}}let cX=class extends Dh{constructor(t,e){super(t,rt.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===rt.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 Uu.rect}evaluateJoin(t){if(!this.elements.length){const e=cg(this);e.updateData(Tn,hg,()=>"",this.view),this.elements=[e],this.elementMap.set(Tn,e)}}getChannelsFromConfig(t){const e=this.spec,i={};return P(e.clip)||(i.clip=e.clip),P(e.zIndex)||(i.zIndex=e.zIndex),P(e.clipPath)||(i.path=N(e.clipPath)?e.clipPath([t]):e.clipPath),P(e.interactive)||(i.pickable=e.interactive),i}evaluateGroupEncode(t,e,i){var n;const r=this.elements[0],a={},o=[Object.assign({},(n=r.items)===null||n===void 0?void 0:n[0],{nextAttrs:a})];return yr(r,o,e,i),this._groupEncodeResult=a,a}evaluateEncode(t,e,i,n){const r=this.getChannelsFromConfig();if(e){this.emit(pt.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=n?null:this.evaluateGroupEncode(t,e[ga.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(pt.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){const n=i??Bd(this,this.markType,t);if(n)return this.emit(pt.BEFORE_ADD_VRENDER_MARK,{graphicItem:n}),n.name=`${this.id()||this.markType}`,this.graphicParent.insertIntoKeepIdx(n,this.graphicIndex),this.emit(pt.AFTER_ADD_VRENDER_MARK,{graphicItem:n}),n}};function MC(s,t){if(W(s))return s;const e=s.trim();if(e==="auto")return 0;if(e.endsWith("%")){const i=parseFloat(e.substring(0,e.length-1));return W(i)?i*t:0}return 0}function uX(s,t,e){var i,n,r,a;const o=(i=s.gridTemplateRows)!==null&&i!==void 0?i:[e],l=(n=s.gridTemplateColumns)!==null&&n!==void 0?n:[t],h=(r=s.gridRowGap)!==null&&r!==void 0?r:0,d=(a=s.gridColumnGap)!==null&&a!==void 0?a:0,c=o.map(v=>MC(v,e)),u=l.map(v=>MC(v,t)),p=Math.max(0,c.reduce((v,b)=>v-b,e)-c.length*h)/o.filter(v=>v==="auto").length,g=Math.max(0,u.reduce((v,b)=>v-b,t)-u.length*d)/l.filter(v=>v==="auto").length;let f=0;const _=c.map((v,b)=>{const x=o[b]==="auto"?p:v,A=f;return f+=x+h,A});_.push(f);let m=0;const y=u.map((v,b)=>{const x=l[b]==="auto"?g:v,A=m;return m+=x+d,A});return y.push(m),{rows:_,columns:y,rowGap:h,columnGap:d}}function Hp(s,t){return Math.min(s<0?s+t:s-1,t)}function wC(s,t,e){let i=Hp(s,e),n=Hp(t,e);if(W(s)||W(t)?W(s)?W(t)||(i=Hp(Math.max(0,n-1),e)):n=Hp(i+1,e):(i=1,n=2),i>n){const r=n;n=i,i=r}return{start:i,end:n}}function pX(s,t,e,i,n){const r=s.rows.length,a=s.columns.length,{start:o,end:l}=wC(t,e,r),{start:h,end:d}=wC(i,n,a),c=s.columns[o],u=s.columns[l]-(d===a?0:s.columnGap),p=s.rows[h],g=s.rows[d]-(l===r?0:s.rowGap);return new di().set(c,p,u,g)}const gX=(s,t,e,i)=>{const n=uX(s.getSpec().layout,e.width(),e.height());t&&t.forEach(r=>{const a=r.getSpec().layout;r.layoutBounds=pX(n,a.gridRowStart,a.gridRowEnd,a.gridColumnStart,a.gridColumnEnd),r.commit()})},fX={[ue.axis]:0,[ue.legend]:1,[ue.slider]:2,[ue.player]:3,[ue.datazoom]:4},CC=s=>{var t,e,i;return(e=(t=s.getSpec().layout)===null||t===void 0?void 0:t.order)!==null&&e!==void 0?e:s.markType==="component"&&(i=fX[s.componentType])!==null&&i!==void 0?i:1/0},PC=(s,t,e,i)=>{const n=e.clone(),r=s.getSpec().layout,a=Gn(r.maxChildWidth,n.width()),o=Gn(r.maxChildHeight,n.width());let l=0,h=0,d=0,c=0;t.forEach(m=>{const y=m.getSpec().layout,v=ma(y.padding),b=i.parseMarkBounds?i.parseMarkBounds(m.getBounds(),m):m.getBounds();if(y.position==="top"||y.position==="bottom"){const x=Math.min(b.height()+v.top+v.bottom,o);y.position==="top"?n.y1+=x:n.y2-=x,b.x1e.x2&&(h=Math.max(h,b.x2-e.x2))}if(y.position==="left"||y.position==="right"){const x=Math.min(b.width()+v.left+v.right,a);y.position==="left"?n.x1+=x:n.x2-=x,b.y1e.y2&&(c=Math.max(c,b.y2-e.y2))}y.position==="outside"&&(n.x1+=Math.max(e.x1-b.x1,0)+v.left,n.x2-=Math.max(b.x2-e.x2,0)+v.right,n.y1+=Math.max(e.y1-b.y1,0)+v.top,n.y2-=Math.max(b.y2-e.y2)+v.bottom)}),l>n.x1-e.x1&&le.x2-n.x2&&hn.y1-e.y1&&de.y2-n.y2&&cCC(m)-CC(y));for(let m=0,y=_.length;m{s==null||s.forEach(i=>{var n;if(i.markType!==rt.group)return;const r=i.layoutChildren,a=i.getSpec().layout,o=(n=i.layoutBounds)!==null&&n!==void 0?n:i.getBounds();if(o){if(N(a))a.call(null,i,r,o,t);else if(N(a.callback))a.callback.call(null,i,r,o,t);else if(a.display==="relative")if(a.updateViewSignals){const l=e.getViewBox();l&&o.intersect(l);const h=PC(i,r,o,t),d=h.width(),c=h.height(),u={top:h.y1,right:e.width()-h.x2,left:h.x1,bottom:e.height()-h.y2};e.updateSignal(Jl,d),e.updateSignal(Ql,c),e.updateSignal(Qn,u)}else PC(i,r,o,t);else a.display==="grid"&&gX(i,r,o);UL(r,t,e)}})};class _X extends Dh{constructor(t,e,i){super(t,rt.glyph,i),this.glyphType=e,this.glyphMeta=Q.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=r9(this,this.glyphMeta,t);return super.addGraphicItem(t,e,i)}}const Bv=Symbol.for("key");class mX{diffGrammar(t,e){return iX(t,e,i=>{var n;return(n=i.id())!==null&&n!==void 0?n:Symbol()})}diffMark(t,e,i){const n={enter:[],exit:[],update:[]};let r=[],a=[];t.forEach(c=>{c.markType!==rt.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?r.push(c):n.exit.push({prev:[c]})}),e.forEach(c=>{c.markType!==rt.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?a.push(c):n.enter.push({next:[c]})});const o=this.diffUpdateByGroup(r,a,c=>c.getMorphConfig().morphKey,c=>c.getMorphConfig().morphKey);r=o.prev,a=o.next,n.update=n.update.concat(o.update);const l=this.diffUpdateByGroup(r,a,c=>c.id(),c=>c.id());r=l.prev,a=l.next,n.update=n.update.concat(l.update);const h=Cr(r,c=>{var u,p;return(p=(u=c.group)===null||u===void 0?void 0:u.id)===null||p===void 0?void 0:p.call(u)}),d=Cr(a,c=>{var u,p;return(p=(u=c.group)===null||u===void 0?void 0:u.id)===null||p===void 0?void 0:p.call(u)});return Object.keys(d).forEach(c=>{const u=h.data.get(c),p=d.data.get(c);if(u&&p){for(let g=0;g!u.includes(g)),a=a.filter(g=>!p.includes(g))}}),r.forEach(c=>n.exit.push({prev:[c]})),a.forEach(c=>n.enter.push({next:[c]})),n}_appendMorphKeyToElements(t){const e=t.getMorphConfig();if(!P(e.morphElementKey)){const i=Zl(e.morphElementKey);t.elements&&t.elements.forEach(n=>{n.morphKey=i(n.getDatum())})}}morph(t,e,i){const n=t.reduce((d,c)=>(this._appendMorphKeyToElements(c),d.concat(c.elements)),[]),r=e.reduce((d,c)=>(this._appendMorphKeyToElements(c),d.concat(c.elements)),[]),a=nX(n,r,d=>{var c;return(c=d.morphKey)!==null&&c!==void 0?c:d.key});t.forEach(d=>{var c,u;return(u=(c=d.animate)===null||c===void 0?void 0:c.disable)===null||u===void 0?void 0:u.call(c)}),e.forEach(d=>{var c,u;return(u=(c=d.animate)===null||c===void 0?void 0:c.disable)===null||u===void 0?void 0:u.call(c)});const o=t.concat(e).reduce((d,c)=>(Object.assign(d,c.parameters()),d),{});let l=0;const h=()=>{l-=1,l===0&&e.forEach(d=>{var c,u;(u=(c=d.animate)===null||c===void 0?void 0:c.enable)===null||u===void 0||u.call(c)})};a.enter.forEach(d=>{d.next.forEach(c=>{this.doMorph([],[c],i,h,o)}),l+=1}),a.update.forEach(d=>{const c=Math.min(d.prev.length,d.next.length),u=this.divideElements(d.prev,c),p=this.divideElements(d.next,c);for(let g=0;g{var c;return(c=i(d))!==null&&c!==void 0?c:Bv}),a=Cr(e,d=>{var c;return(c=n(d))!==null&&c!==void 0?c:Bv});let o=t,l=e;const h=[];return a.keys.forEach(d=>{if(d!==Bv){const c=r.data.get(d),u=a.data.get(d);c&&u&&(h.push({prev:c,next:u}),o=o.filter(p=>!c.includes(p)),l=l.filter(p=>!u.includes(p)))}}),{prev:o,next:l,update:h}}doMorph(t,e,i,n,r){var a,o;const l={prev:t.map(_=>_.getDatum()),next:e.map(_=>_.getDatum())},h={prev:t.slice(),next:e.slice()},d=i.animation.easing,c=Fe(i.animation.delay,r,l,h),u=Fe(i.animation.duration,r,l,h),p=Fe(i.animation.oneByOne,r,l,h),g=Fe(i.animation.splitPath,r,l,h),f=W(p)&&p>0?_=>nt(p)?_*p:p===!0?_*u:0:void 0;t.length!==1&&t.length!==0||e.length!==1?t.length===1&&e.length>1?p5(t[0].getGraphicItem(),e.map(_=>_.getGraphicItem()),{delay:c,duration:u,easing:d,onEnd:n,individualDelay:f,splitPath:g}):t.length>1&&e.length===1&&f5(t.map(_=>_.getGraphicItem()),e[0].getGraphicItem(),{delay:c,duration:u,easing:d,onEnd:n,individualDelay:f,splitPath:g}):CB((o=(a=t[0])===null||a===void 0?void 0:a.getGraphicItem)===null||o===void 0?void 0:o.call(a),e[0].getGraphicItem(),{delay:c,duration:u,easing:d,onEnd:n})}divideElements(t,e){const i=Math.floor(t.length/e);return new Array(e).fill(0).map((n,r)=>t.slice(i*r,r===e-1?t.length:i*(r+1)))}}class $L{constructor(t,e){this._grammars={signal:[],data:[],scale:[],coordinate:[],mark:[],customized:[]},this._grammarMap={signal:{},data:{},scale:{},coordinate:{},mark:{},customized:{}},this._size=0,this._mapKey=at(t)?i=>i[t]:t,this._warning=e}record(t){var e,i;const n=t.grammarType,r=this._mapKey(t);return this._grammarMap[n]?(this._grammars[n].push(t),P(r)||(this._grammarMap[n][r]?(e=this._warning)===null||e===void 0||e.call(this,r,t):this._grammarMap[n][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(n=>n!==t),P(i)||this._grammarMap[e][i]!==t||delete this._grammarMap[e][i]):(this._grammars.customized=this._grammars.customized.filter(n=>n!==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(n=>{t.call(null,n)}))}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 vX extends $L{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(n=>{const r=n.mark;r.markType===rt.group&&r.includesChild(e,!1)?(n.children.push(i),i.parent=n):e.markType===rt.group&&e.includesChild(r,!1)&&(i.children.push(n),n.parent=i)}),this._markNodes.push(i)}return this}unrecord(t){if(super.unrecord(t),t.grammarType==="mark"){const e=t,i=this._markNodes.find(n=>n.mark===e);this._markNodes.forEach(n=>{const r=n.mark;r.markType===rt.group&&r.includesChild(e,!1)?(n.children=n.children.filter(a=>a!==i),i.parent=null):e.markType===rt.group&&e.includesChild(r,!1)&&(i.children=i.children.filter(a=>a!==n),n.parent=null)}),this._markNodes=this._markNodes.filter(n=>n!==i)}return this}getAllMarkNodes(){return this._markNodes}clear(){super.clear(),this._markNodes=[]}release(){super.release(),this._markNodes=null}}class yX{constructor(t){this._animations=[],this._additionalAnimateMarks=[],this.isEnabled=!0,this._onAnimationStart=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var n;return(n=i==null?void 0:i.animate)===null||n===void 0?void 0:n.isAnimating()}),this._animations.length===0&&this._additionalAnimateMarks.length===0&&this._view.emit(pt.ALL_ANIMATION_START,{}),this._animations=this._animations.concat({config:e.animationConfig,mark:e.mark})},this._onAnimationEnd=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var n;return(n=i==null?void 0:i.animate)===null||n===void 0?void 0:n.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(pt.ALL_ANIMATION_END,{})},this._view=t,this._view.addEventListener(pt.ANIMATION_START,this._onAnimationStart),this._view.addEventListener(pt.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,n;e.animate&&((n=(i=e.animate).enableAnimationState)===null||n===void 0||n.call(i,t))}),this}disableAnimationState(t){return this._view.traverseMarkTree(e=>{var i,n;e.animate&&((n=(i=e.animate).disableAnimationState)===null||n===void 0||n.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){const e=t.animate.animate();return e&&e.isAnimating()&&this._additionalAnimateMarks.push(t),this}release(){this._additionalAnimateMarks=[],this._animations=[],this._view.removeEventListener(pt.ALL_ANIMATION_START,this._onAnimationStart),this._view.removeEventListener(pt.ALL_ANIMATION_END,this._onAnimationEnd),this._view=null}}class YL extends Dh{addGraphicItem(t,e){const i=t&&t.limitAttrs,n=i&&(i.textType==="rich"||i.text&&i.text.type==="rich"),r=Bd(this,n?rt.richtext:rt.text,t);return super.addGraphicItem(t,e,r)}release(){super.release()}}YL.markType=rt.text;const bX={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},xX={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},SX={style:{stroke:"#f1f2f5"}},AX={style:{stroke:"#f1f2f5"}},kX={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"}}]},TX={title:{visible:!1,text:""},colors:[],layout:"horizontal",railWidth:200,railHeight:8,railStyle:{cornerRadius:5}},MX={title:{visible:!1,text:""},trackStyle:{fill:"#ccc"},layout:"horizontal",align:"bottom",railWidth:200,railHeight:6,min:0,max:1,value:[0,1]},wX={start:{x:0,y:0},end:{x:0,y:0}},CX={start:{x:0,y:0},end:{x:0,y:0},rectStyle:{width:10,height:10}},PX={center:{x:0,y:0},radius:100,startAngle:0,endAngle:Math.PI/6},EX={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI},RX={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI,sides:6},BX={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]},IX={size:{width:400,height:400},dataLabels:[]},LX={type:"line-data",data:[{text:""}],position:"top",overlap:{avoidBaseMark:!1,clampForce:!1},smartInvert:!1},OX={type:"line",data:[{text:"",data:{}}],position:"start",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},DX={type:"area",data:[{text:"",data:{}}],position:"end",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},FX={type:"rect",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},zX={type:"symbol",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{avoidBaseMark:!0,size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},HX={type:"arc",data:[{text:"",fill:"#606773",data:{}}],width:800,height:600,position:"outside",zIndex:302},jX={data:[{text:"",fill:"#606773",data:{}}],overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},VX={orient:"bottom",showDetail:"auto",brushSelect:!0,start:0,end:1,position:{x:0,y:0},size:{width:500,height:40},previewData:[]},WX={},GX={},NX={},UX={textStyle:{fill:"#21252c"},subtextStyle:{fill:"#606773"}},$X={width:12,height:12,padding:[2,2],railStyle:{fill:"rgba(0, 0, 0, .1)"}},XL={axis:bX,circleAxis:xX,grid:SX,circleGrid:AX,discreteLegend:kX,colorLegend:TX,sizeLegend:MX,lineCrosshair:wX,rectCrosshair:CX,sectorCrosshair:PX,circleCrosshair:EX,polygonCrosshair:RX,slider:BX,dataLabel:IX,pointLabel:jX,lineLabel:OX,areaLabel:DX,rectLabel:FX,symbolLabel:zX,arcLabel:HX,lineDataLabel:LX,datazoom:VX,continuousPlayer:WX,discretePlayer:GX,tooltip:NX,title:UX,scrollbar:$X},KL=5,qL={symbol:{shape:"circle",size:8},text:{fontSize:14,fill:"#000000"}},Mi=Object.assign({},XL);Mi.axis=Object.assign({},Mi.axis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),Mi.circleAxis=Object.assign({},Mi.circleAxis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),Mi.grid=Object.assign({},Mi.grid,{style:{stroke:"#404349"}}),Mi.circleGrid=Object.assign({},Mi.circleGrid,{style:{stroke:"#404349"}}),Mi.rectLabel=Object.assign({},Mi.rectLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),Mi.lineLabel=Object.assign({},Mi.lineLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),Mi.symbolLabel=Object.assign({},Mi.symbolLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),Mi.title=Object.assign({},Mi.title,{textStyle:{fill:"#fdfdfd"},subtextStyle:{fill:"#888c93"}});const YX={name:"dark",padding:KL,background:"#202226",palette:{default:["#5383F4","#7BCF8E","#FF9D2C","#FFDB26","#7568D9","#80D8FB","#1857A3","#CAB0E8","#FF8867","#B9E493","#2CB4A8","#B9E4E3"]},marks:qL,components:Mi},XX={name:"default",padding:KL,palette:{default:["#6690F2","#70D6A3","#B4E6E2","#63B5FC","#FF8F62","#FFDC83","#BCC5FD","#A29BFE","#63C4C7","#F68484"]},marks:qL,components:XL};let vo=class md{static registerTheme(t,e){t&&md._themes.set(t,e)}static unregisterTheme(t){md._themes.delete(t)}static getTheme(t){return md._themes.get(t)}static getDefaultTheme(){return md.getTheme("default")}};vo._themes=new Map,vo.registerTheme("default",XX),vo.registerTheme("dark",YX);class d1 extends Dh{constructor(t,e,i,n){super(t,rt.component,i),this._componentDatum={[Tn]:0},this.componentType=e,this.spec.type="component",this.spec.componentType=e,this.mode=n,this._updateComponentEncoders()}configureComponent(t){return this.spec.componentConfig=t,this.commit(),this}addGraphicItem(t,e,i){const n=i??Q.createGraphicComponent(this.componentType,t,{mode:this.mode,skipDefault:this.spec.skipTheme});return n&&(this.emit(pt.BEFORE_ADD_VRENDER_MARK,{graphicItem:n}),this.graphicParent.appendChild(n),this.emit(pt.AFTER_ADD_VRENDER_MARK,{graphicItem:n})),n}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:{}}}class ll extends il{static useRegisters(t){t.forEach(e=>{e()})}constructor(t={},e={}){super(),this._observer=null,this._onResize=or((...i)=>{const n=this._getContainerSize();n&&this.resize(n.width,n.height)},100),this.delegateEvent=(i,n)=>{var r;const a=(r=i.target)===null||r===void 0?void 0:r[Go],o=kx(this,i,a,n,mo);this.emit(n,o,a)},this.handleProgressiveFrame=()=>{this._progressiveMarks.length&&this._progressiveMarks.forEach(i=>{i.isDoingProgressive()&&i.evaluateProgressive()}),this.doPreProgressive()},this._config=e,this._options=Object.assign({mode:B9},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=V(t),i=[];return e.forEach(n=>{if(Nu(n))return void i.push(n);if(n[0]===J9){const a=this.getMarkById(n.slice(1));return void(a&&i.push(a))}const r=n[0]===Z9?this.getMarksByName(n.slice(1)):zL(n)?this.getMarksByType(n):null;r&&r.length&&r.forEach(a=>{i.push(a)})}),i}updateSignal(t,e){at(t)&&(t=this.getSignalById(t)),t.set(e),this.commit(t)}signal(t,e){const i=new N9(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 R9(this,t);return this.grammars.record(e),this._dataflow.add(e),e}scale(t){const e=Q.createGrammar("scale",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}coordinate(t){const e=Q.createGrammar("coordinate",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}mark(t,e,i){const n=at(e)?this.getMarkById(e):e;let r;switch(t){case rt.group:r=new cX(this,n);break;case rt.glyph:r=new _X(this,i==null?void 0:i.glyphType,n);break;case rt.component:r=Q.hasComponent(i==null?void 0:i.componentType)?Q.createComponent(i==null?void 0:i.componentType,this,n,i==null?void 0:i.mode):new d1(this,i==null?void 0:i.componentType,n,i==null?void 0:i.mode);break;case rt.text:r=new YL(this,t,n);break;default:r=Q.hasMark(t)?Q.createMark(t,this,n):new Dh(this,t,n)}return this.grammars.record(r),this._dataflow.add(r),r}group(t){return this.mark(rt.group,t)}glyph(t,e){return this.mark(rt.glyph,e,{glyphType:t})}component(t,e,i="2d"){return this.mark(rt.component,e,{componentType:t,mode:i})}axis(t,e="2d"){return this.mark(rt.component,t,{componentType:ue.axis,mode:e})}grid(t,e="2d"){return this.mark(rt.component,t,{componentType:ue.grid,mode:e})}legend(t){return this.mark(rt.component,t,{componentType:ue.legend})}slider(t){return this.mark(rt.component,t,{componentType:ue.slider})}label(t){return this.mark(rt.component,t,{componentType:ue.label})}datazoom(t){return this.mark(rt.component,t,{componentType:ue.datazoom})}player(t){return this.mark(rt.component,t,{componentType:ue.player})}title(t){return this.mark(rt.component,t,{componentType:ue.title})}scrollbar(t){return this.mark(rt.component,t,{componentType:ue.scrollbar})}customized(t,e){const i=Q.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=at(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"&&bC.includes(t.id())||t.grammarType==="mark"&&t.id()==="root"||this.removeGrammar(t)}),this}removeAllGraphicItems(){return this.traverseMarkTree(t=>{t.graphicItem&&(c_(t.graphicItem),t.elementMap.forEach(e=>{e.resetGraphicItem()}),t.graphicItem=null)}),this}parseSpec(t){var e,i,n,r,a,o;if(this.emit(pt.BEFORE_PARSE_VIEW),this._spec=t,Y9(t),t.theme?this.theme(t.theme):this.theme(vo.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 h=this._getContainerSize();h&&(this.updateSignal(fa,h.width),this.updateSignal(_a,h.height))}!((n=t.signals)===null||n===void 0)&&n.length&&t.signals.forEach(h=>{this.signal().parse(h)}),!((r=t.data)===null||r===void 0)&&r.length&&t.data.forEach(h=>{this.data(null).parse(h)}),!((a=t.coordinates)===null||a===void 0)&&a.length&&t.coordinates.forEach(h=>{var d;(d=this.coordinate(h.type))===null||d===void 0||d.parse(h)}),!((o=t.scales)===null||o===void 0)&&o.length&&t.scales.forEach(h=>{var d;(d=this.scale(h.type))===null||d===void 0||d.parse(h)});const l=Q.getGrammars();return Object.keys(l).forEach(h=>{const{specKey:d}=l[h];t[d]&&t[d].length&&t[d].forEach(c=>{this.customized(h,c)})}),t.marks&&t.marks.length&&t.marks.forEach(h=>{this.parseMarkSpec(h)}),t.events&&t.events.length&&t.events.forEach(h=>{this.event(h)}),t.interactions&&t.interactions.length&&t.interactions.forEach(h=>{this.interaction(h.type,h)}),t.animation===!1?this.animate.disable():this.animate.enable(),this.emit(pt.AFTER_PARSE_VIEW),this._needBuildLayoutTree=!0,this._layoutState=Sr.before,this}updateSpec(t){return this.removeAllInteractions(),this.removeAllGrammars(),this.parseSpec(t)}parseBuiltIn(){$9(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===rt.glyph?{glyphType:t.glyphType}:t.type===rt.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(n=>{this.parseMarkSpec(n)})}theme(t){var e,i,n,r,a,o;at(t)?this._theme=(e=vo.getTheme(t))!==null&&e!==void 0?e:vo.getDefaultTheme():this._theme=t;const{background:l,padding:h}=(i=this._spec)!==null&&i!==void 0?i:{};return this._theme?(this.background((n=l??this._options.background)!==null&&n!==void 0?n: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(fa);return arguments.length?(this._options.width=t,this.updateSignal(e,t),t):e.output()}height(t){const e=this.getSignalById(_a);return arguments.length?(this._options.height=t,this.updateSignal(e,t),t):e.output()}viewWidth(t){const e=this.getSignalById(Jl);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(Ql);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(Qn);if(arguments.length){const i=ma(t);return this.updateSignal(e,i),i}return ma(e.output())}autoFit(t){const e=this.getSignalById(Id);return arguments.length?(this.updateSignal(e,t),t):e.output()}getViewBox(){const t=this.getSignalById(l1);return t==null?void 0:t.output()}updateLayoutTag(){return this._layoutState=Sr.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===rt.group&&i.updateLayoutChildren()},i=>i.needLayout()),this._layoutMarks=e}doLayout(){var t;const e=this._options.doLayout||UL;e&&(!((t=this._layoutMarks)===null||t===void 0)&&t.length)&&(this.emit(pt.BEFORE_DO_LAYOUT),e(this._layoutMarks,this._options,this),this.emit(pt.AFTER_DO_LAYOUT))}handleLayoutEnd(){this.emit(pt.BEFORE_MARK_LAYOUT_END),this._layoutMarks.forEach(t=>{Rv(t,"layoutChildren",e=>{e.handleLayoutEnd()},e=>e!==t)}),this.emit(pt.AFTER_MARK_LAYOUT_END)}handleRenderEnd(){this.emit(pt.BEFORE_MARK_RENDER_END),Rv(this.rootMark,"children",t=>{t.handleRenderEnd()}),this.emit(pt.AFTER_MARK_RENDER_END)}commit(t){return this._dataflow.commit(t),this}run(t){return this.evaluate(t),this}doRender(t){this.emit(pt.BEFORE_DO_RENDER),this.renderer&&(this._progressiveMarks||this.animate.animate(),this.renderer.render(t),this.handleRenderEnd()),this.emit(pt.AFTER_DO_RENDER)}evaluate(t){var e,i;const n=X9(t),r=this._cachedGrammars.size()>0;r&&(this.reuseCachedGrammars(n),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=Sr.layouting,this.doLayout(),this._dataflow.hasCommitted()&&(this._layoutState=Sr.reevaluate,this._dataflow.evaluate()),this._layoutState=Sr.after,!((e=this._layoutMarks)===null||e===void 0)&&e.length&&this.handleLayoutEnd()),this._layoutState=null,this.findProgressiveMarks(),this._resizeRenderer(),(i=this._willMorphMarks)===null||i===void 0||i.forEach(l=>{this._morph.morph(l.prev,l.next,n)}),this._willMorphMarks=null,this.releaseCachedGrammars(n),this.doRender(!0),this.doPreProgressive(),this):this}reuseCachedGrammars(t){if(this._willMorphMarks||(this._willMorphMarks=[]),t.reuse){const e=i=>{i.next.reuse(i.prev),i.prev.detachAll(),i.prev.clear(),this._cachedGrammars.unrecord(i.prev)};this._morph.diffGrammar(this._cachedGrammars.getAllSignals(),this.grammars.getAllSignals().filter(i=>!bC.includes(i.id()))).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllData(),this.grammars.getAllData()).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllScales(),this.grammars.getAllScales()).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllCoordinates(),this.grammars.getAllCoordinates()).update.forEach(e)}this._morph.diffMark(this._cachedGrammars.getAllMarks(),this.grammars.getAllMarks().filter(e=>e.id()!=="root"),t).update.forEach(e=>{const i=e.prev.length===1&&e.next.length===1&&e.prev[0].markType===e.next[0].markType,n=e.prev.every(r=>r.getMorphConfig().morph)&&e.next.every(r=>r.getMorphConfig().morph);i&&t.reuse?(e.next[0].reuse(e.prev[0]),e.prev[0].detachAll(),e.prev[0].clear(),this._cachedGrammars.unrecord(e.prev[0])):(t.morph&&n||t.morphAll)&&this._willMorphMarks.push({prev:e.prev,next:e.next})})}detachCachedGrammar(){this._cachedGrammars.traverse(t=>{var e,i;if(t.detachAll(),t.grammarType==="mark"){const n=t;(i=(e=n.group)===null||e===void 0?void 0:e.removeChild)===null||i===void 0||i.call(e,n)}})}releaseCachedGrammars(t){this._cachedGrammars.traverse(n=>{n.grammarType!=="mark"&&n.release()});const e=this._cachedGrammars.getAllMarkNodes();e.forEach(n=>{n.mark.animate.stop(),t.enableExitAnimation&&this.animate.animateAddition(n.mark)});const i=n=>{if(n.mark.view&&n.mark.animate.getAnimatorCount()===0&&(!n.children||n.children.length===0)){n.mark.release();const r=n.parent;r&&(n.parent.children=n.parent.children.filter(a=>a!==n),n.parent=null,i(r))}};e.forEach(n=>{const r=n.mark;r.animate.getAnimatorCount()===0?i(n):r.addEventListener("animationEnd",()=>{r.animate.getAnimatorCount()===0&&i(n)})}),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 Rv(this.rootMark,"children",t,e,i),this}_bindResizeEvent(){var t,e,i,n,r,a;if(this.autoFit()){const o=(r=(n=(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||n===void 0?void 0:n.getContainer)===null||r===void 0?void 0:r.call(n);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,n,r,a,o,l,h,d,c;const u=(r=(n=(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||n===void 0?void 0:n.getContainer)===null||r===void 0?void 0:r.call(n);if(u){const{width:p,height:g}=dy(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:p,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:g}}return null}resize(t,e,i=!0){let n=!1;return t!==this.width()&&(n=!0,this.updateSignal(fa,t)),e!==this.height()&&(n=!0,this.updateSignal(_a,e)),n&&(i?this.evaluate():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)}bindEvents(t){if(this._eventConfig.disable)return;const{type:e,filter:i,callback:n,throttle:r,debounce:a,consume:o,target:l,dependency:h}=t,d=Q9(e);if(!d)return;const{source:c,type:u}=d,p=K9(d),g=(Array.isArray(l)&&l.length?l.map(m=>({signal:this.getSignalById(m.target),callback:m.callback})):[{signal:at(l)?this.getSignalById(l):null,callback:n}]).filter(m=>m.signal||m.callback),f=s1(h,this),_=q9((m,y)=>{const v=c===mo&&O9(this._eventConfig,u)||o&&(m.cancelable===void 0||m.cancelable);c===To&&(m=kx(this,m,y,u,To));let b=!1;if((!i||i(m))&&(!p||p(y))&&g.length){const x=f.reduce((A,T)=>(A[T.id()]=T.output(),A),{});g.forEach(A=>{A.callback&&A.signal?A.signal.set(A.callback(m,x))&&(this.commit(A.signal),b=!0):A.callback?A.callback(m,x):(this.commit(A.signal),b=!0)})}v&&m.preventDefault(),o&&m.stopPropagation(),b&&this.run()},{throttle:r,debounce:a});if(c===mo){if(D9(this._eventConfig,mo,u))return this.addEventListener(u,_,I9),()=>{this.removeEventListener(u,_)}}else if(c===To)return Ot.addEventListener(u,_),this._eventListeners.push({type:u,source:Ot,handler:_}),()=>{Ot.removeEventListener(u,_);const m=this._eventListeners.findIndex(y=>y.type===u&&y.source===Ot&&y.handler===_);m>=0&&this._eventListeners.splice(m,1)}}event(t){if("between"in t){const[e,i]=t.between,n=`${e.type}-${t.type}-${i.type}`;let r;this.bindEvents(Object.assign({},e,{callback:()=>{if(this._eventCache||(this._eventCache={}),!this._eventCache[n]){const a=this.bindEvents(t);this._eventCache[n]=a}r||(r=this.bindEvents(Object.assign({},i,{callback:()=>{this._eventCache[n]&&(this._eventCache[n](),this._eventCache[n]=null)}})))}}))}else"merge"in t?t.merge.forEach(e=>{const i=Object.assign({},t);at(e)?i.type=e:Et(e)&&Object.assign(i,e),i.debounce=50,this.bindEvents(i)}):this.bindEvents(t)}interaction(t,e){const i=Q.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(n=>{var r;return P(e)?at(t)?n.type===t:t?n===t:void 0:((r=n.options)===null||r===void 0?void 0:r.id)===e});i.length&&i.forEach(n=>{n.unbind()})}return this}removeAllInteractions(){return this._boundInteractions&&(this._boundInteractions.forEach(t=>{t.unbind()}),this._boundInteractions=null),this}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 n=e;return i&&i.trap===!1||(n=e,n.raw=e),i&&i.target&&(n.target=i.target),this.on(t,n),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 H9(this),this.renderer.initialize(t,e,this._options,this._eventConfig).background(this._background)}initialize(){var t;this.grammars=new $L(e=>e.id(),(e,i)=>this.logger.warn(`Grammar id '${e}' has been occupied`,i)),this._cachedGrammars=new vX(e=>e.id()),this._options.logger&&Lt.setInstance(this._options.logger),this.logger=Lt.getInstance((t=this._options.logLevel)!==null&&t!==void 0?t:0),this._dataflow=new z9,this.animate=new yX(this),this._morph=new mX,this._options.hooks&&(Object.keys(this._options.hooks).forEach(e=>{this.on(e,this._options.hooks[e])}),this.hooks=this._options.hooks),this.container=null,this.renderer=null,this._eventListeners=[],this._eventConfig=L9(this._options.eventConfig),this._theme=this._options.disableTheme?null:vo.getDefaultTheme(),this.parseBuiltIn(),tX(this._options),this.initializeRenderer(),this._eventConfig.disable||this.initEvent(),this._bindResizeEvent(),this._needBuildLayoutTree=!0,this._layoutState=Sr.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!==rt.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=Ot.getRequestAnimationFrame();this._progressiveRafId=t(this.handleProgressiveFrame)}}clearProgressive(){this._progressiveRafId&&Ot.getCancelAnimationFrame()(this._progressiveRafId),this._progressiveMarks&&this._progressiveMarks.length&&(this._progressiveMarks.forEach(t=>{t.clearProgressive()}),this._progressiveMarks=null)}release(){var t,e,i;this.removeAllInteractions(),this.releaseStageEvent(),this._unBindResizeEvent(),this.clearProgressive(),Q.unregisterRuntimeTransforms(),Lt.setInstance(null),this.animate.stop(),this.grammars.release(),this._cachedGrammars.release(),this._dataflow.release(),this._dataflow=null,(e=(t=this.renderer)===null||t===void 0?void 0:t.release)===null||e===void 0||e.call(t),this.renderer=null,this._boundInteractions=null,this.removeAllListeners(),(i=this._eventListeners)===null||i===void 0||i.forEach(n=>{n.source.removeEventListener(n.type,n.handler)}),this._eventListeners=null}}const KX=()=>{Fi(),Lh(),Q.registerGraphic(rt.arc,ES)},qX=()=>{Fi(),p8(),Q.registerGraphic(rt.arc3d,ZB)},ZX=()=>{Fi(),_8(),Q.registerGraphic(rt.pyramid3d,QB)},JX=()=>{Fi(),AI(),Q.registerGraphic(rt.area,qB)},QX=()=>{Fi(),je(),Q.registerGraphic(rt.group,bS)},tK=()=>{Fi(),kI(),Q.registerGraphic(rt.image,PS)},eK=()=>{Fi(),Ur(),Q.registerGraphic(rt.line,CS)},ZL=()=>{Fi(),zu(),Q.registerGraphic(rt.path,KB)},c1=()=>{Fi(),$r(),Q.registerGraphic(rt.rect,Ho)},iK=()=>{Fi(),m8(),Q.registerGraphic(rt.rect3d,$B)},u1=()=>{Fi(),Ur(),Q.registerGraphic(rt.rule,CS)},JL=()=>{Fi(),ds(),Q.registerGraphic(rt.symbol,Bm)},QL=()=>{Fi(),lr(),Za(),Q.registerGraphic(rt.text,dh)},nK=()=>{Fi(),Om(),Q.registerGraphic(rt.polygon,JB)},sK=()=>{Fi(),Za(),Q.registerGraphic(rt.richtext,XB)},rK=()=>{Fi(),ds(),Q.registerGraphic(rt.cell,Bm)},s0=()=>{Fi(),f8(),Q.registerGraphic(rt.glyph,YB)},tO=s=>(t,e,i)=>{var n,r,a;const o=(a=(n=t.getGraphicAttribute("direction",!1))!==null&&n!==void 0?n:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=s(t,o,e);if(!W(l))return{};const h=t.getGraphicAttribute("x",!1),d=t.getGraphicAttribute("y",!1),c=t.getGraphicAttribute("min",!1),u=t.getGraphicAttribute("max",!1),p=t.getGraphicAttribute("q1",!1),g=t.getGraphicAttribute("q3",!1),f=t.getGraphicAttribute("median",!1),_={from:{x:h,y:d},to:{x:h,y:d}};return W(c)&&(_.from.min=l,_.to.min=c),W(u)&&(_.from.max=l,_.to.max=u),W(p)&&(_.from.q1=l,_.to.q1=p),W(g)&&(_.from.q3=l,_.to.q3=g),W(f)&&(_.from.median=l,_.to.median=f),_},eO=s=>(t,e,i)=>{var n,r,a;const o=(a=(n=t.getGraphicAttribute("direction",!1))!==null&&n!==void 0?n:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=s(t,o,e);if(!W(l))return{};const h=t.getGraphicAttribute("x",!0),d=t.getGraphicAttribute("y",!0),c=t.getGraphicAttribute("min",!0),u=t.getGraphicAttribute("max",!0),p=t.getGraphicAttribute("q1",!0),g=t.getGraphicAttribute("q3",!0),f=t.getGraphicAttribute("median",!0),_={from:{x:h,y:d},to:{x:h,y:d}};return W(c)&&(_.to.min=l,_.from.min=c),W(u)&&(_.to.max=l,_.from.max=u),W(p)&&(_.to.q1=l,_.from.q1=p),W(g)&&(_.to.q3=l,_.from.q3=g),W(f)&&(_.to.median=l,_.from.median=f),_},iO=(s,t,e)=>{var i,n,r,a,o,l,h,d,c,u,p,g;if(e&&W(e.center))return e.center;let f,_,m,y,v;if(Ei(t)){f=(n=(i=s.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.x,_=(a=(r=s.getGraphicAttribute("points",!1,"max"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.x,m=(l=(o=s.getGraphicAttribute("points",!1,"min"))===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.x;const b=s.getGraphicAttribute("width",!1,"box"),x=s.getGraphicAttribute("x",!1,"box");y=x,v=x+b}else{f=(d=(h=s.getGraphicAttribute("points",!1,"median"))===null||h===void 0?void 0:h[0])===null||d===void 0?void 0:d.y,_=(u=(c=s.getGraphicAttribute("points",!1,"max"))===null||c===void 0?void 0:c[0])===null||u===void 0?void 0:u.y,m=(g=(p=s.getGraphicAttribute("points",!1,"min"))===null||p===void 0?void 0:p[0])===null||g===void 0?void 0:g.y;const b=s.getGraphicAttribute("height",!1,"box"),x=s.getGraphicAttribute("y",!1,"box");y=x,v=x+b}return W(f)?f:W(y)&&W(v)?(y+v)/2:W(_)&&W(m)?(_+m)/2:W(m)?m:W(_)?_:NaN},aK=(s,t,e,i)=>{var n,r,a,o,l,h,d,c;const u={shaft:{},box:{},max:{},min:{},median:{}},p=(n=s.x)!==null&&n!==void 0?n:e.getGraphicAttribute("x",!1),g=(r=s.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),f=(a=s.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),_=(o=s.height)!==null&&o!==void 0?o:e.getGraphicAttribute("height",!1),m=(l=s.boxWidth)!==null&&l!==void 0?l:e.getGraphicAttribute("boxWidth",!1),y=(h=s.boxHeight)!==null&&h!==void 0?h:e.getGraphicAttribute("boxHeight",!1),v=(d=s.ruleWidth)!==null&&d!==void 0?d:e.getGraphicAttribute("ruleWidth",!1),b=(c=s.ruleHeight)!==null&&c!==void 0?c:e.getGraphicAttribute("ruleHeight",!1);return i&&Ei(i.direction)?(W(y)?(Object.assign(u.box,{y:g-y/2,y1:g+y/2}),Object.assign(u.median,{y:g-y/2,y1:g+y/2})):(Object.assign(u.box,{y:g-_/2,y1:g+_/2}),Object.assign(u.median,{y:g-_/2,y1:g+_/2})),W(b)?(Object.assign(u.max,{y:g-b/2,y1:g+b/2}),Object.assign(u.min,{y:g-b/2,y1:g+b/2})):(Object.assign(u.max,{y:g-_/2,y1:g+_/2}),Object.assign(u.min,{y:g-_/2,y1:g+_/2}))):(W(m)?(Object.assign(u.box,{x:p-m/2,x1:p+m/2}),Object.assign(u.median,{x:p-m/2,x1:p+m/2})):(Object.assign(u.box,{x:p-f/2,x1:p+f/2}),Object.assign(u.median,{x:p-f/2,x1:p+f/2})),W(v)?(Object.assign(u.max,{x:p-v/2,x1:p+v/2}),Object.assign(u.min,{x:p-v/2,x1:p+v/2})):(Object.assign(u.max,{x:p-f/2,x1:p+f/2}),Object.assign(u.min,{x:p-f/2,x1:p+f/2}))),u},oK=tO(iO),lK=eO(iO);function hK(){Q.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(aK).registerChannelEncoder("x",(s,t,e,i,n,r)=>r&&Ei(r.direction)?null:{shaft:{x:t,x1:t}}).registerChannelEncoder("y",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{shaft:{y:t,y1:t}}:null).registerChannelEncoder("q1",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{box:{x:t}}:{box:{y:t}}).registerChannelEncoder("q3",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{box:{x1:t}}:{box:{y1:t}}).registerChannelEncoder("min",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{shaft:{x:t},min:{x:t,x1:t,visible:!0}}:{shaft:{y:t},min:{y:t,y1:t,visible:!0}}).registerChannelEncoder("max",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{shaft:{x1:t},max:{x:t,x1:t,visible:!0}}:{shaft:{y1:t},max:{y:t,y1:t,visible:!0}}).registerChannelEncoder("median",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(s,t,e,i,n,r)=>{var a;const o=r&&Ei(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}})),Q.registerAnimationType("boxplotScaleIn",oK),Q.registerAnimationType("boxplotScaleOut",lK),s0(),c1(),u1()}const nO=(s,t,e)=>{var i,n,r,a;if(W(e==null?void 0:e.center))return e.center;let o,l,h,d,c;if(Ei(t)){o=(n=(i=s.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.x;const u=s.getGraphicAttribute("width",!1,"minMaxBox"),p=s.getGraphicAttribute("x",!1,"minMaxBox");h=p,l=p+u;const g=s.getGraphicAttribute("width",!1,"q1q3Box"),f=s.getGraphicAttribute("x",!1,"q1q3Box");d=f,c=f+g}else{o=(a=(r=s.getGraphicAttribute("points",!1,"median"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.y;const u=s.getGraphicAttribute("height",!1,"minMaxBox"),p=s.getGraphicAttribute("y",!1,"minMaxBox");h=p,l=p+u;const g=s.getGraphicAttribute("height",!1,"q1q3Box"),f=s.getGraphicAttribute("y",!1,"q1q3Box");d=f,c=f+g}return W(o)?o:W(d)&&W(c)?(d+c)/2:W(l)&&W(h)?(l+h)/2:W(h)?h:W(l)?l:NaN},dK=(s,t,e,i)=>{var n,r,a,o,l,h,d,c;const u={minMaxBox:{},q1q3Box:{},median:{}},p=(n=s.x)!==null&&n!==void 0?n:e.getGraphicAttribute("x",!1),g=(r=s.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),f=(a=s.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),_=(o=s.minMaxWidth)!==null&&o!==void 0?o:e.getGraphicAttribute("minMaxWidth",!1),m=(l=s.q1q3Width)!==null&&l!==void 0?l:e.getGraphicAttribute("q1q3Width",!1),y=(h=s.height)!==null&&h!==void 0?h:e.getGraphicAttribute("height",!1),v=(d=s.minMaxHeight)!==null&&d!==void 0?d:e.getGraphicAttribute("minMaxHeight",!1),b=(c=s.q1q3Height)!==null&&c!==void 0?c:e.getGraphicAttribute("q1q3Height",!1);return i&&Ei(i.direction)?(W(v)?Object.assign(u.minMaxBox,{y:g-v/2,y1:g+v/2}):Object.assign(u.minMaxBox,{y:g-y/2,y1:g+y/2}),W(b)?(Object.assign(u.q1q3Box,{y:g-b/2,y1:g+b/2}),Object.assign(u.median,{y:g-b/2,y1:g+b/2})):(Object.assign(u.q1q3Box,{y:g-y/2,y1:g+y/2}),Object.assign(u.median,{y:g-y/2,y1:g+y/2}))):(W(_)?Object.assign(u.minMaxBox,{x:p-_/2,x1:p+_/2}):Object.assign(u.minMaxBox,{x:p-f/2,x1:p+f/2}),W(m)?(Object.assign(u.q1q3Box,{x:p-m/2,x1:p+m/2}),Object.assign(u.median,{x:p-m/2,x1:p+m/2})):(Object.assign(u.q1q3Box,{x:p-f/2,x1:p+f/2}),Object.assign(u.median,{x:p-f/2,x1:p+f/2}))),u},cK=tO(nO),uK=eO(nO);function pK(){Q.registerGlyph("barBoxplot",{minMaxBox:"rect",q1q3Box:"rect",median:"rule"}).registerProgressiveChannels(["x","y","q1","q3","min","max","median","angle","width","height","minMaxWidth","q1q3Width","minMaxHeight","q1q3Height"]).registerFunctionEncoder(dK).registerChannelEncoder("q1",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{q1q3Box:{x:t}}:{q1q3Box:{y:t}}).registerChannelEncoder("q3",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{q1q3Box:{x1:t}}:{q1q3Box:{y1:t}}).registerChannelEncoder("min",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{minMaxBox:{x:t}}:{minMaxBox:{y:t}}).registerChannelEncoder("max",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{minMaxBox:{x1:t}}:{minMaxBox:{y1:t}}).registerChannelEncoder("median",(s,t,e,i,n,r)=>r&&Ei(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(s,t,e,i,n,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",(s,t,e,i,n,r)=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0}})).registerChannelEncoder("minMaxFillOpacity",(s,t,e,i,n,r)=>({minMaxBox:{fillOpacity:t}})).registerChannelEncoder("stroke",(s,t,e,i,n,r)=>({minMaxBox:{stroke:!1},q1q3Box:{stroke:!1}})).registerDefaultEncoder(()=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0},median:{visible:!1}})),Q.registerAnimationType("barBoxplotScaleIn",cK),Q.registerAnimationType("barBoxplotScaleOut",uK),s0(),c1(),u1()}const gK=()=>{Q.registerGlyph("ripplePoint",{symbol:"symbol",ripple0:"symbol",ripple1:"symbol",ripple2:"symbol"}).registerFunctionEncoder((s,t,e,i)=>{var n;const r=Math.max(0,Math.min(s.ripple,1)),a=(n=s.size)!==null&&n!==void 0?n: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}})),s0(),JL()},fK=(s,t)=>{var e;const i=(e=s.curvature)!==null&&e!==void 0?e:.5,n=typeof t=="number"?s.thickness*t:s.thickness;let r=s.x0,a=s.x1,o=s.y0,l=s.y1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;s.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),s.pathType==="line"||s.pathType,s.align==="center"?(o=c(s.y0-n/2),l=c(s.y1-n/2)):s.align==="end"?(o=c(s.y0+s.thickness/2-n),l=c(s.y1+s.thickness/2-n)):(o=c(s.y0-s.thickness/2),l=c(s.y1-s.thickness/2));const u=c(o+n),p=c(l+n),g=Math.abs(a-r)>1e-6,f=s.endArrow&&g?`L${a},${c(l-n/2)}L${c(a+n)},${c((l+p)/2)}L${a},${c(p+n/2)}`:"",_=s.startArrow&&g?`L${r},${c(u+n/2)}L${c(r-n)},${c((o+u)/2)}L${r},${c(o-n/2)}`:"";return s.pathType==="line"?`M${r},${o}L${a},${l}${f}L${a},${p}L${r},${u}${_}Z`:s.pathType==="polyline"?`M${r},${o}L${h},${o}L${h},${l}L${a},${l} + ${f}L${a},${p}L${h},${p}L${h},${u}L${r},${u}${_}Z`:`M${r},${o}C${h},${o},${d},${l},${a},${l} + ${f}L${a},${p}C${d},${p},${h},${u},${r},${u}${_}Z`},_K=(s,t)=>{var e;const i=(e=s.curvature)!==null&&e!==void 0?e:.5,n=typeof t=="number"?s.thickness*t:s.thickness;let r=s.y0,a=s.y1,o=s.x0,l=s.x1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;s.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)),s.pathType==="line"||s.pathType,s.align==="center"?(o=c(s.x0-n/2),l=c(s.x1-n/2)):s.align==="end"?(o=c(s.x0+s.thickness/2-n),l=c(s.x1+s.thickness/2-n)):(o=c(s.x0-s.thickness/2),l=c(s.x1-s.thickness/2));const u=c(o+n),p=c(l+n),g=Math.abs(a-r)>1e-6,f=s.endArrow&&g?`L${c(l-n/2)},${a}L${c((l+p)/2)},${c(a+n)}L${c(p+n/2)},${a}`:"",_=s.startArrow&&g?`L${c(u+n/2)},${r}L${c((u+o)/2)},${c(r-n)}L${c(o-n/2)},${r}`:"";return s.pathType==="line"?`M${o},${r}L${l},${a}${f}L${p},${a}L${u},${r}${_}Z`:s.pathType==="polyline"?`M${o},${r}L${o},${h}L${l},${h}L${l},${a} + ${f}L${p},${a}L${p},${h}L${u},${h}L${u},${r}${_}Z`:`M${o},${r}C${o},${h},${l},${d},${l},${a} + ${f}L${p},${a}C${p},${d},${u},${h},${u},${r}${_}Z`},mK=(s,t,e,i)=>{var n;const r=(n=s.direction)!==null&&n!==void 0?n:i==null?void 0:i.direction,a=["vertical","TB","BT"].includes(r)?_K:fK,o=typeof s.ratio=="number"&&s.ratio>=0&&s.ratio<=1,l=Object.keys(s);return["x0","y0","x1","y1"].every(h=>l.includes(h))?{back:{path:o?a(s,1):""},front:{path:a(s,o?s.ratio:1)}}:{}},vK=(s,t,e)=>{const i={x0:s.getGraphicAttribute("x0",!1),x1:s.getGraphicAttribute("x1",!1),y0:s.getGraphicAttribute("y0",!1),y1:s.getGraphicAttribute("y1",!1),thickness:s.getGraphicAttribute("thickness",!1),round:s.getGraphicAttribute("round",!1),align:s.getGraphicAttribute("align",!1),pathType:s.getGraphicAttribute("pathType",!1),endArrow:s.getGraphicAttribute("endArrow",!1),startArrow:s.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(n=>{P(i[n])&&delete i[n]}),{from:Object.assign({},i,{x1:i.x0,y1:i.y0}),to:i}},yK=(s,t,e)=>{const i={x0:s.getGraphicAttribute("x0",!0),x1:s.getGraphicAttribute("x1",!0),y0:s.getGraphicAttribute("y0",!0),y1:s.getGraphicAttribute("y1",!0),thickness:s.getGraphicAttribute("thickness",!0),round:s.getGraphicAttribute("round",!0),align:s.getGraphicAttribute("align",!0),pathType:s.getGraphicAttribute("pathType",!0),endArrow:s.getGraphicAttribute("endArrow",!0),startArrow:s.getGraphicAttribute("startArrow",!0)};return Object.keys(i).forEach(n=>{P(i[n])&&delete i[n]}),{from:i,to:Object.assign({},i,{x1:i.x0,y1:i.y0})}},bK=(s,t,e)=>{const i={thickness:s.getGraphicAttribute("thickness",!1),round:s.getGraphicAttribute("round",!1),align:s.getGraphicAttribute("align",!1),pathType:s.getGraphicAttribute("pathType",!1),endArrow:s.getGraphicAttribute("endArrow",!1),startArrow:s.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(n=>{P(i[n])&&delete i[n]}),{from:Object.assign(Object.assign({x0:s.getGraphicAttribute("x0",!0),x1:s.getGraphicAttribute("x1",!0),y0:s.getGraphicAttribute("y0",!0),y1:s.getGraphicAttribute("y1",!0)},i),i),to:Object.assign({x0:s.getGraphicAttribute("x0",!1),x1:s.getGraphicAttribute("x1",!1),y0:s.getGraphicAttribute("y0",!1),y1:s.getGraphicAttribute("y1",!1)},i)}},xK=()=>{Q.registerGlyph("linkPath",{back:"path",front:"path"}).registerFunctionEncoder(mK).registerChannelEncoder("backgroundStyle",(s,t)=>({back:t})).registerDefaultEncoder(()=>({back:{zIndex:0},front:{zIndex:1}})),Q.registerAnimationType("linkPathGrowIn",vK),Q.registerAnimationType("linkPathGrowOut",yK),Q.registerAnimationType("linkPathUpdate",bK),s0(),ZL()};class sO extends d1{parseAddition(t){return super.parseAddition(t),this.scale(t.scale),this}scale(t){if(this.spec.scale){const i=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;this.detach(i),this.spec.scale=void 0}const e=at(t)?this.view.getScaleById(t):t;return this.spec.scale=e,this.attach(e),this._updateComponentEncoders(),this.commit(),this}getScale(){return at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale}}const SK=(s,t,e,i)=>{var n,r,a,o;const l=(r=(n=t==null?void 0:t.components)===null||n===void 0?void 0:n.axis)!==null&&r!==void 0?r:{};if(!s)return U({},l,e??{});const h=[((o=(a=s.tickData)===null||a===void 0?void 0:a.call(s,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return U({},l,{items:h},e??{})},AK=(s,t,e,i)=>{var n,r,a,o;const l=(r=(n=t==null?void 0:t.components)===null||n===void 0?void 0:n.circleAxis)!==null&&r!==void 0?r:{};if(!s)return U({},l,e??{});const h=[((o=(a=s.tickData)===null||a===void 0?void 0:a.call(s,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return U({},l,{items:h},e??{})},rO=(s,t,e,i,n,r)=>{var a;const o=s.getCoordinateAxisPosition();n&&n.position==="auto"&&(n.position=e?"content":o);const l=s.getCoordinateAxisPoints(i);if(l){const c={start:l[0],end:l[1],verticalFactor:(o==="top"||o==="left"?-1:1)*(e?-1:1)*(!((a=s.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 aO extends sO{constructor(t,e,i){super(t,ue.axis,e),this.spec.componentType=ue.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=U({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),n=Q.createGraphicComponent(this._getAxisComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,n)}tickCount(t){const e=at(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=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale,e=Object.assign({update:{}},this.spec.encode),i=Object.keys(e).reduce((n,r)=>{const a=e[r];return a&&(n[r]={callback:(o,l,h)=>{var d,c;const u=this.spec.skipTheme?null:this.view.getCurrentTheme();let p=wa(a,o,l,h);const g=Fe(this.spec.inside,h,o,l),f=Fe(this.spec.baseValue,h,o,l),_=(d=t==null?void 0:t.getCoordinate)===null||d===void 0?void 0:d.call(t);_&&(p=Object.assign(rO(t,_,g,f,this.spec.layout),p));const m=(c=t==null?void 0:t.getScale)===null||c===void 0?void 0:c.call(t),y=Fe(this.spec.tickCount,h,o,l);switch(this._getAxisComponentType()){case Qs.lineAxis:return SK(m,u,p,y);case Qs.circleAxis:return AK(m,u,p,y)}return p}}),n},{});this._encoders=i}_getAxisComponentType(){var t;if(this._axisComponentType)return this._axisComponentType;let e=this.spec.axisType;if(P(e)){const i=at(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"?Qs.circleAxis:Qs.lineAxis,this._axisComponentType}}aO.componentType=ue.axis;const kK=()=>{Q.registerGraphicComponent(Qs.lineAxis,(s,t)=>new Xc(s,t)),Q.registerGraphicComponent(Qs.circleAxis,s=>new Kc(s)),Q.registerComponent(ue.axis,aO)},TK=(s,t,e,i,n,r={})=>{var a;const o=(a=r.components)===null||a===void 0?void 0:a.dataLabel,l=s.map((h,d)=>{var c,u,p,g,f;const _=Object.assign(Object.assign({},n),{labelIndex:d}),m=(c=Fe(i,_,h))!==null&&c!==void 0?c:{},{components:y={}}=r;let v={};switch(h.markType){case rt.line:case rt.area:v=m.type==="line"?y.lineLabel:m.type==="area"?y.areaLabel:y.lineDataLabel;break;case rt.rect:case rt.rect3d:case rt.interval:v=y.rectLabel;break;case rt.symbol:case rt.circle:case rt.cell:v=y.symbolLabel;break;case rt.arc:case rt.arc3d:v=y.arcLabel;break;case rt.polygon:case rt.path:default:v=y.pointLabel}const b=(u=m.data)!==null&&u!==void 0?u:[],x=(g=(p=v==null?void 0:v.data)===null||p===void 0?void 0:p[0])!==null&&g!==void 0?g:{};b&&b.length>0?b.forEach((T,k)=>{if(h.elements[k]){const M=wa(e,T,h.elements[k],_);U(T,x,M)}}):h.elements.forEach(T=>{if(T.getGraphicItem().releaseStatus!=="willRelease")if(h.isCollectionMark())T.getDatum().forEach(k=>{const M=wa(e,k,T,_);b.push(U({},x,M))});else{const k=wa(e,T.getDatum(),T,_),M=U({},x,k);b.push(M)}});const A=(f=h.graphicItem)===null||f===void 0?void 0:f.name;return U({},v,{data:b,baseMarkGroupName:A,getBaseMarks:()=>h.elements.map(T=>T.getGraphicItem())},m??{})}).filter(h=>!P(h));return U({},o,{size:t,dataLabels:l})};let oO=class extends d1{constructor(t,e){super(t,ue.label,e),this.spec.componentType=ue.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=V(this.spec.target).map(i=>at(i)?this.view.getMarkById(i):i);this.detach(e)}if(this.spec.target=t,t){const e=V(t).map(i=>at(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,n)=>{const r=t[n];return r&&(i[n]={callback:(a,o,l)=>{var h,d,c,u;const p=V(this.spec.target).map(m=>at(m)?this.view.getMarkById(m):m),g=(d=(h=this.group)===null||h===void 0?void 0:h.getGroupGraphicItem)===null||d===void 0?void 0:d.call(h);let f=Fe(this.spec.size,l);f||(f=g?{width:(c=g.attribute.width)!==null&&c!==void 0?c:g.AABBBounds.width(),height:(u=g.attribute.height)!==null&&u!==void 0?u:g.AABBBounds.height()}:{width:1/0,height:1/0});const _=this.spec.skipTheme?null:this.view.getCurrentTheme();return TK(p,f,r,this.spec.labelStyle,l,_)}}),i},{});this._encoders=e}};oO.componentType=ue.label;const lO=()=>{Q.registerGraphicComponent(ue.label,s=>new $m(s)),Q.registerComponent(ue.label,oO)},MK=(s,t,e,i)=>{var n,r,a,o;const l=(r=(n=t==null?void 0:t.components)===null||n===void 0?void 0:n.grid)!==null&&r!==void 0?r:{};if(!s)return U({},l,e??{});const h=((o=(a=s.tickData)===null||a===void 0?void 0:a.call(s,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return U({},l,{items:h},e??{})},wK=(s,t,e,i)=>{var n,r,a,o;const l=(r=(n=t==null?void 0:t.components)===null||n===void 0?void 0:n.circleGrid)!==null&&r!==void 0?r:{};if(!s)return U({},l,e??{});const h=((o=(a=s.tickData)===null||a===void 0?void 0:a.call(s,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return U({},l,{items:h},e??{})};class hO extends sO{constructor(t,e,i){super(t,ue.grid,e),this.spec.componentType=ue.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=at(this.spec.target)?this.view.getMarkById(this.spec.target):this.spec.target;this.detach(i)}this.spec.target=t;const e=at(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=at(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=U({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),n=Q.createGraphicComponent(this._getGridComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,n)}_updateComponentEncoders(){const t=Object.assign({update:{}},this.spec.encode),e=Object.keys(t).reduce((i,n)=>{const r=t[n];return r&&(i[n]={callback:(a,o,l)=>{var h,d,c,u;const p=this.spec.skipTheme?null:this.view.getCurrentTheme();let g,f=wa(r,a,o,l);const _=Fe(this.spec.baseValue,l,a,o);if(this._targetAxis){const v=(h=this._targetAxis.getSpec())===null||h===void 0?void 0:h.scale;g=at(v)?this.view.getScaleById(v):v;const b=this._targetAxis.elements[0];if(b)switch(this._getGridComponentType()){case ui.lineAxisGrid:f=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},f);break;case ui.circleAxisGrid:f=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")},f)}}else{g=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;const v=Fe(this.spec.inside,l,a,o),b=(c=g==null?void 0:g.getCoordinate)===null||c===void 0?void 0:c.call(g);b&&(f=Object.assign(rO(g,b,v,_,this.spec.layout,!0),f))}this._getGridComponentType()===ui.lineAxisGrid&&(f=this.spec.gridShape!=="line"&&this.spec.gridShape?Object.assign({center:f.start,closed:!0},f,{type:this.spec.gridShape}):Object.assign({},f,{type:"line"}));const m=(u=g==null?void 0:g.getScale)===null||u===void 0?void 0:u.call(g),y=Fe(this.spec.tickCount,l,a,o);switch(this._getGridComponentType()){case ui.lineAxisGrid:return MK(m,p,f,y);case ui.circleAxisGrid:return wK(m,p,f,y)}return f}}),i},{});this._encoders=e}_getGridComponentType(){var t;if(this._gridComponentType)return this._gridComponentType;if(this.spec.gridType)this.spec.gridType==="circle"?this._gridComponentType=ui.circleAxisGrid:this._gridComponentType=ui.lineAxisGrid;else if(this._targetAxis)switch(this._targetAxis.getAxisComponentType()){case Qs.circleAxis:this._gridComponentType=ui.circleAxisGrid;break;case Qs.lineAxis:default:this._gridComponentType=ui.lineAxisGrid}else if(this.spec.scale){const e=at(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()?ui.lineAxisGrid:ui.circleAxisGrid:ui.lineAxisGrid}else this._gridComponentType=ui.lineAxisGrid;return this._gridComponentType}}hO.componentType=ue.grid;const CK=()=>{Q.registerGraphicComponent(ui.lineAxisGrid,(s,t)=>new KI(s,t)),Q.registerGraphicComponent(ui.circleAxisGrid,(s,t)=>new qI(s,t)),Q.registerComponent(ue.grid,hO)},PK=(s,t,e)=>t.filter(i=>s.callback(i,e)),EK=(s,t,e)=>{const i=s.callback,n=s.as;if(!s.all)return t.forEach(a=>{const o=i(a,e);if(!P(n)){if(P(a))return;a[n]=o}return o}),t;const r=i(t,e);return P(n)||P(t)?r:(t[n]=r,t)};function dO(s){return s.reduce((t,e)=>t+e,0)}function RK(s){return s.length===0?0:dO(s)/s.length}const BK={min:qe,max:ze,average:RK,sum:dO};function IK(s,t,e,i){const n=Math.floor(t.length/s),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 r0(s,t,e,i,n){let r=Math.floor(t.length/s);const a=[],o=t.length;let l=0,h=[];a.push(l),t[l][n]=t[l][n];for(let d=1;do-d&&(r=o-d,h.length=r),h=[];for(let u=0;ue?t[d].i:d)}function LK(s,t,e,i){return r0(s,t,e,"min",i)}function OK(s,t,e,i){return r0(s,t,e,"max",i)}function DK(s,t,e,i){return r0(s,t,e,"average",i)}function FK(s,t,e,i){return r0(s,t,e,"sum",i)}const zK=(s,t)=>{let e=s.size;const i=s.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(s.skipfirst)return t.slice(0,1);const{mode:n,yfield:r,groupBy:a}=s,o=r??"y";let l=IK;if(n==="min"?l=LK:n==="max"?l=OK:n==="average"?l=DK:n==="sum"&&(l=FK),t.length){const h={};if(a){for(let c=0,u=t.length;c{const u=h[c];if(u.length<=e){const p=u.map(g=>g.i);d=d.concat(p)}else{const p=l(e,u,!0,o);d=d.concat(p),u.forEach(g=>t[g.i][o]=g[o])}}),d.sort((c,u)=>c-u),d.map(c=>t[c])}return l(e,t,!1,o).map(d=>t[d])}return[]},Qc="_mo_hide_";function HK(s){return s.forEach(t=>{t.getGraphicAttribute(Qc)&&(t.setGraphicAttribute("visible",!0),t.setGraphicAttribute(Qc,!1))}),s}function jK(s,t,e,i){if(i){let n=-1/0,r=0;const a=P(t);let o=t;s.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-n){if(l.getGraphicAttribute("visible")===!1)return;const h=l.getGraphicAttribute("size")/2,d=l.getGraphicAttribute("y");a&&(o=(h+r)*e),Math.abs(d-n){if(d.getGraphicAttribute("visible")===!1)return;const c=d.getGraphicAttribute("size")/2,u=d.getGraphicAttribute("x"),p=d.getGraphicAttribute("y");l&&(h=(c+a)*e),o=(-1/0-u)**2+(r-p)**2,o<(h+a+c)**2?d.getGraphicAttribute("forceShow")||(d.setGraphicAttribute(Qc,!0),d.setGraphicAttribute("visible",!1)):r=p,a=c})}}const GK=(s,t)=>{if(!t||t.length===0)return;let{radius:e}=s;P(e)&&t[0].mark.markType==="symbol"&&(e=!0);const{direction:i,delta:n,deltaMul:r=1,groupBy:a}=s,o=l=>{HK(l);const h=s.sort?l.slice().sort((d,c)=>d.getGraphicAttribute("x")-c.getGraphicAttribute("x")):l;i===0?WK(h,n,r,e):i===1?jK(h,n,r,e):VK(h,n,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},NK=()=>{Q.registerTransform("filter",{transform:PK,markPhase:"beforeJoin"},!0)},UK=()=>{Q.registerTransform("map",{transform:EK,markPhase:"beforeJoin"},!0)},p1=()=>{Q.registerTransform("sampling",{transform:zK,markPhase:"afterEncode"},!0)},g1=()=>{Q.registerTransform("markoverlap",{transform:GK,markPhase:"afterEncode"},!0)},$K=(s,t,e)=>{var i;const n=s.getGraphicAttribute("clipRangeByDimension",!1),r=(i=s.getGraphicAttribute("clipRange",!1))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:0,clipRangeByDimension:t.clipDimension},to:{clipRange:r,clipRangeByDimension:n}}:{from:{clipRange:0},to:{clipRange:r}}},YK=(s,t,e)=>{var i;const n=s.getGraphicAttribute("clipRangeByDimension",!0),r=(i=s.getGraphicAttribute("clipRange",!0))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:r,clipRangeByDimension:t.clipDimension},to:{clipRange:0,clipRangeByDimension:n}}:{from:{clipRange:r},to:{clipRange:0}}},XK=(s,t,e)=>{var i,n,r;return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(i=s.getGraphicAttribute("opacity",!1))!==null&&i!==void 0?i:1,fillOpacity:(n=s.getGraphicAttribute("fillOpacity",!1))!==null&&n!==void 0?n:1,strokeOpacity:(r=s.getGraphicAttribute("strokeOpacity",!1))!==null&&r!==void 0?r:1}}},KK=(s,t,e)=>{var i,n,r;return{from:{opacity:(i=s.getGraphicAttribute("opacity",!0))!==null&&i!==void 0?i:1,fillOpacity:(n=s.getGraphicAttribute("fillOpacity",!0))!==null&&n!==void 0?n:1,strokeOpacity:(r=s.getGraphicAttribute("strokeOpacity",!0))!==null&&r!==void 0?r:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},qK=(s,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1);return{from:E(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+n)/2,x1:(i+n)/2,width:void 0},to:{x:i,x1:n,width:r}}}case"y":{const i=s.getGraphicAttribute("y",!1),n=s.getGraphicAttribute("y1",!1),r=s.getGraphicAttribute("height",!1);return{from:E(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+n)/2,y1:(i+n)/2,height:void 0},to:{y:i,y1:n,height:r}}}default:{const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1),a=s.getGraphicAttribute("y",!1),o=s.getGraphicAttribute("y1",!1),l=s.getGraphicAttribute("height",!1),h={};return E(r)?(h.x=i+r/2,h.width=0,h.x1=void 0):(h.x=(i+n)/2,h.x1=(i+n)/2,h.width=void 0),E(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:n,y1:o,width:r,height:l}}}}},ZK=(s,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1);return{to:E(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+n)/2,x1:(i+n)/2,width:void 0}}}case"y":{const i=s.getGraphicAttribute("y",!1),n=s.getGraphicAttribute("y1",!1),r=s.getGraphicAttribute("height",!1);return{to:E(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+n)/2,y1:(i+n)/2,height:void 0}}}default:{const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("y",!1),r=s.getGraphicAttribute("x1",!1),a=s.getGraphicAttribute("y1",!1),o=s.getGraphicAttribute("width",!1),l=s.getGraphicAttribute("height",!1),h={};return E(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),E(l)?(h.y=n+l/2,h.height=0,h.y1=void 0):(h.y=(n+a)/2,h.y1=(n+a)/2,h.height=void 0),{to:h}}}};function JK(s,t,e){const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1);if(t&&t.orient==="negative"){const o=E(r)?Math.max(i,i+r):Math.max(i,n);return{from:{x:o,x1:P(n)?void 0:o,width:P(r)?void 0:0},to:{x:i,x1:n,width:r}}}const a=E(r)?Math.min(i,i+r):Math.min(i,n);return{from:{x:a,x1:P(n)?void 0:a,width:P(r)?void 0:0},to:{x:i,x1:n,width:r}}}function QK(s,t,e){var i;const n=s.getGraphicAttribute("x",!1),r=s.getGraphicAttribute("x1",!1),a=s.getGraphicAttribute("width",!1);let o;return t&&t.orient==="negative"?nt(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=nt(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:n,x1:r,width:a}}}const tq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?QK(s,t,e):JK(s,t)};function eq(s,t,e){const i=s.getGraphicAttribute("x",!1),n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1);if(t&&t.orient==="negative"){const o=E(r)?Math.max(i,i+r):Math.max(i,n);return{to:{x:o,x1:P(n)?void 0:o,width:P(r)?void 0:0}}}const a=E(r)?Math.min(i,i+r):Math.min(i,n);return{to:{x:a,x1:P(n)?void 0:a,width:P(r)?void 0:0}}}function iq(s,t,e){var i;const n=s.getGraphicAttribute("x1",!1),r=s.getGraphicAttribute("width",!1);let a;return t&&t.orient==="negative"?nt(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=nt(t==null?void 0:t.overall)?t.overall:0,{to:{x:a,x1:P(n)?void 0:a,width:P(r)?void 0:0}}}const nq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?iq(s,t,e):eq(s,t)};function sq(s,t,e){const i=s.getGraphicAttribute("y",!1),n=s.getGraphicAttribute("y1",!1),r=s.getGraphicAttribute("height",!1);if(t&&t.orient==="negative"){const o=E(r)?Math.max(i,i+r):Math.max(i,n);return{from:{y:o,y1:P(n)?void 0:o,height:P(r)?void 0:0},to:{y:i,y1:n,height:r}}}const a=E(r)?Math.min(i,i+r):Math.min(i,n);return{from:{y:a,y1:P(n)?void 0:a,height:P(r)?void 0:0},to:{y:i,y1:n,height:r}}}function rq(s,t,e){var i;const n=s.getGraphicAttribute("y",!1),r=s.getGraphicAttribute("y1",!1),a=s.getGraphicAttribute("height",!1);let o;return t&&t.orient==="negative"?nt(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=nt(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:n,y1:r,height:a}}}const aq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?rq(s,t,e):sq(s,t)};function oq(s,t,e){const i=s.getGraphicAttribute("y",!1),n=s.getGraphicAttribute("y1",!1),r=s.getGraphicAttribute("height",!1);if(t&&t.orient==="negative"){const o=E(r)?Math.max(i,i+r):Math.max(i,n);return{to:{y:o,y1:P(n)?void 0:o,height:P(r)?void 0:0}}}const a=E(r)?Math.min(i,i+r):Math.min(i,n);return{to:{y:a,y1:P(n)?void 0:a,height:P(r)?void 0:0}}}function lq(s,t,e){var i;const n=s.getGraphicAttribute("y1",!1),r=s.getGraphicAttribute("height",!1);let a;return t&&t.orient==="negative"?nt(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=nt(t==null?void 0:t.overall)?t.overall:0,{to:{y:a,y1:P(n)?void 0:a,height:P(r)?void 0:0}}}const hq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?lq(s,t,e):oq(s,t)},dq=(s,t,e)=>t&&t.orient==="anticlockwise"?{from:{startAngle:s.getGraphicAttribute("endAngle",!1)},to:{startAngle:s.getGraphicAttribute("startAngle",!1)}}:{from:{endAngle:s.getGraphicAttribute("startAngle",!1)},to:{endAngle:s.getGraphicAttribute("endAngle",!1)}},cq=(s,t,e)=>{if(t&&t.orient==="anticlockwise"){const n=nt(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:n,endAngle:n},to:{startAngle:s.getGraphicAttribute("startAngle",!1),endAngle:s.getGraphicAttribute("endAngle",!1)}}}const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:i,endAngle:i},to:{startAngle:s.getGraphicAttribute("startAngle",!1),endAngle:s.getGraphicAttribute("endAngle",!1)}}},uq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?cq(s,t):dq(s,t)},pq=(s,t,e)=>t&&t.orient==="anticlockwise"?{from:{startAngle:s.getGraphicAttribute("startAngle",!0)},to:{startAngle:s.getGraphicAttribute("endAngle",!1)}}:{from:{endAngle:s.getGraphicAttribute("endAngle",!0)},to:{endAngle:s.getGraphicAttribute("startAngle",!1)}},gq=(s,t,e)=>{if(t&&t.orient==="anticlockwise"){const n=nt(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:s.getGraphicAttribute("startAngle",!0),endAngle:s.getGraphicAttribute("endAngle",!0)},to:{startAngle:n,endAngle:n}}}const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:s.getGraphicAttribute("startAngle",!0),endAngle:s.getGraphicAttribute("endAngle",!0)},to:{startAngle:i,endAngle:i}}},fq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?gq(s,t):pq(s,t)},_q=(s,t,e)=>t&&t.orient==="inside"?{from:{innerRadius:s.getGraphicAttribute("outerRadius",!1)},to:{innerRadius:s.getGraphicAttribute("innerRadius",!1)}}:{from:{outerRadius:s.getGraphicAttribute("innerRadius",!1)},to:{outerRadius:s.getGraphicAttribute("outerRadius",!1)}},mq=(s,t,e)=>{const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:i,outerRadius:i},to:{innerRadius:s.getGraphicAttribute("innerRadius",!1),outerRadius:s.getGraphicAttribute("outerRadius",!1)}}},vq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?mq(s,t):_q(s,t)},yq=(s,t,e)=>t&&t.orient==="inside"?{from:{innerRadius:s.getGraphicAttribute("innerRadius",!0)},to:{innerRadius:s.getGraphicAttribute("outerRadius",!1)}}:{from:{outerRadius:s.getGraphicAttribute("outerRadius",!0)},to:{outerRadius:s.getGraphicAttribute("innerRadius",!1)}},bq=(s,t,e)=>{const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:s.getGraphicAttribute("innerRadius",!0),outerRadius:s.getGraphicAttribute("outerRadius",!0)},to:{innerRadius:i,outerRadius:i}}},xq=(s,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?bq(s,t):yq(s,t)},cO=(s,t,e)=>{const i=s.getGraphicAttribute("points",!1),n={x:0,y:0};return i.forEach(r=>{n.x+=r.x,n.y+=r.y}),n.x/=i.length,n.y/=i.length,t&&t.center&&(W(t.center.x)&&(n.x=t.center.x),W(t.center.y)&&(n.y=t.center.y)),s.mark.markType==="area"&&(n.x1=n.x,n.y1=n.y),i.map(()=>Object.assign(n))},Sq=(s,t,e)=>({from:{points:cO(s,t)},to:{points:s.getGraphicAttribute("points",!1)}}),Aq=(s,t,e)=>({from:{points:s.getGraphicAttribute("points",!0)},to:{points:cO(s,t)}}),uO=(s,t,e)=>s.getGraphicAttribute("points",!1).map(i=>{var n;if(t&&t.orient==="negative"){let r=e.width;return e.group&&(r=(n=e.groupWidth)!==null&&n!==void 0?n:e.group.getBounds().width(),e.groupWidth=r),{x:r,y:i.y,x1:r,y1:i.y1,defined:i.defined!==!1}}return{x:0,y:i.y,x1:0,y1:i.y1,defined:i.defined!==!1}}),kq=(s,t,e)=>({from:{points:uO(s,t,e)},to:{points:s.getGraphicAttribute("points",!1)}}),Tq=(s,t,e)=>({from:{points:s.getGraphicAttribute("points",!0)},to:{points:uO(s,t,e)}}),pO=(s,t,e)=>s.getGraphicAttribute("points",!1).map(i=>{var n;if(t&&t.orient==="negative"){let r=e.height;return e.group&&(r=(n=e.groupHeight)!==null&&n!==void 0?n:e.group.getBounds().height(),e.groupHeight=r),{x:i.x,y:r,x1:i.x1,y1:r,defined:i.defined!==!1}}return{x:i.x,y:0,x1:i.x1,y1:0,defined:i.defined!==!1}}),Mq=(s,t,e)=>({from:{points:pO(s,t,e)},to:{points:s.getGraphicAttribute("points",!1)}}),wq=(s,t,e)=>({from:{points:s.getGraphicAttribute("points",!0)},to:{points:pO(s,t,e)}}),Cq=(s,t,e)=>{var i,n;const{offset:r=0,orient:a,direction:o,point:l}=t??{};let h=0,d=0;a==="negative"&&(e.group?(h=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),d=(n=e.groupHeight)!==null&&n!==void 0?n:e.group.getBounds().height(),e.groupWidth=h,e.groupHeight=d):(h=e.width,d=e.height)),h+=r,d+=r;const c=N(l)?l.call(null,s.getDatum(),s,e):l,u=c&&W(c.x)?c.x:h,p=c&&W(c.y)?c.y:d;switch(o){case"x":return{from:{x:u},to:{x:s.getGraphicAttribute("x",!1)}};case"y":return{from:{y:p},to:{y:s.getGraphicAttribute("y",!1)}};default:return{from:{x:u,y:p},to:{x:s.getGraphicAttribute("x",!1),y:s.getGraphicAttribute("y",!1)}}}},Pq=(s,t,e)=>{var i,n;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=(n=h==null?void 0:h.height())!==null&&n!==void 0?n:e.height,u=(a==="negative"?d:0)+r,p=(a==="negative"?c:0)+r,g=N(l)?l.call(null,s.getDatum(),s,e):l,f=g&&W(g.x)?g.x:u,_=g&&W(g.y)?g.y:p;switch(o){case"x":return{from:{x:s.getGraphicAttribute("x",!0)},to:{x:f}};case"y":return{from:{y:s.getGraphicAttribute("y",!0)},to:{y:_}};default:return{from:{x:s.getGraphicAttribute("x",!0),y:s.getGraphicAttribute("y",!0)},to:{x:f,y:_}}}},Eq=(s,t,e)=>{var i,n,r,a;switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:0},to:{scaleX:(i=s.getGraphicAttribute("scaleX",!1))!==null&&i!==void 0?i:1}};case"y":return{from:{scaleY:0},to:{scaleY:(n=s.getGraphicAttribute("scaleY",!1))!==null&&n!==void 0?n:1}};default:return{from:{scaleX:0,scaleY:0},to:{scaleX:(r=s.getGraphicAttribute("scaleX",!1))!==null&&r!==void 0?r:1,scaleY:(a=s.getGraphicAttribute("scaleY",!1))!==null&&a!==void 0?a:1}}}},Rq=(s,t,e)=>{var i,n,r,a;switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:(i=s.getGraphicAttribute("scaleX",!0))!==null&&i!==void 0?i:1},to:{scaleX:0}};case"y":return{from:{scaleY:(n=s.getGraphicAttribute("scaleY",!0))!==null&&n!==void 0?n:1},to:{scaleY:0}};default:return{from:{scaleX:(r=s.getGraphicAttribute("scaleX",!0))!==null&&r!==void 0?r:1,scaleY:(a=s.getGraphicAttribute("scaleY",!0))!==null&&a!==void 0?a:1},to:{scaleX:0,scaleY:0}}}},Bq={symbol:["_mo_hide_","visible"]},Iq=(s,t,e)=>{const i=Object.assign({},s.getPrevGraphicAttributes()),n=Object.assign({},s.getNextGraphicAttributes());let r;t&&V(t.excludeChannels).forEach(o=>{delete i[o],delete n[o]}),s.mark&&s.mark.markType&&(r=Bq[s.mark.markType])&&r.forEach(o=>{delete i[o],delete n[o]}),Object.keys(n).forEach(o=>{Lm(o,i,n)&&(delete i[o],delete n[o])});const a=s.getFinalGraphicAttributes();return Object.keys(i).forEach(o=>{P(n[o])&&(P(a[o])||be(i[o],a[o])?delete i[o]:n[o]=a[o])}),{from:i,to:n}},Lq=(s,t,e)=>{var i;const n=(i=s.getGraphicAttribute("angle",!1))!==null&&i!==void 0?i:0;let r=0;return r=Qi(n/(2*Math.PI),0)?Math.round(n/(2*Math.PI))*Math.PI*2:W(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(n/(2*Math.PI))*Math.PI*2:Math.floor(n/(2*Math.PI))*Math.PI*2,{from:{angle:r},to:{angle:n}}},Oq=(s,t,e)=>{var i;const n=(i=s.getGraphicAttribute("angle",!0))!==null&&i!==void 0?i:0;let r=0;return r=Qi(n/(2*Math.PI),0)?Math.round(n/(2*Math.PI))*Math.PI*2:W(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(n/(2*Math.PI))*Math.PI*2:Math.floor(n/(2*Math.PI))*Math.PI*2,{from:{angle:n},to:{angle:r}}},Dq=()=>{Q.registerAnimationType("clipIn",$K)},Fq=()=>{Q.registerAnimationType("clipOut",YK)},zq=()=>{Q.registerAnimationType("fadeIn",XK)},Hq=()=>{Q.registerAnimationType("fadeOut",KK)},jq=()=>{Q.registerAnimationType("growCenterIn",qK)},Vq=()=>{Q.registerAnimationType("growCenterOut",ZK)},Wq=()=>{Q.registerAnimationType("growHeightIn",aq)},Gq=()=>{Q.registerAnimationType("growHeightOut",hq)},Nq=()=>{Q.registerAnimationType("growWidthIn",tq)},Uq=()=>{Q.registerAnimationType("growWidthOut",nq)},gO=()=>{Q.registerAnimationType("growPointsIn",Sq)},fO=()=>{Q.registerAnimationType("growPointsOut",Aq)},$q=()=>{Q.registerAnimationType("growPointsXIn",kq)},Yq=()=>{Q.registerAnimationType("growPointsXOut",Tq)},Xq=()=>{Q.registerAnimationType("growPointsYIn",Mq)},Kq=()=>{Q.registerAnimationType("growPointsYOut",wq)},qq=()=>{Q.registerAnimationType("growAngleIn",uq)},Zq=()=>{Q.registerAnimationType("growAngleOut",fq)},Jq=()=>{Q.registerAnimationType("growRadiusIn",vq)},Qq=()=>{Q.registerAnimationType("growRadiusOut",xq)},tZ=()=>{Q.registerAnimationType("moveIn",Cq)},eZ=()=>{Q.registerAnimationType("moveOut",Pq)},iZ=()=>{Q.registerAnimationType("scaleIn",Eq)},nZ=()=>{Q.registerAnimationType("scaleOut",Rq)},sZ=()=>{Q.registerAnimationType("rotateIn",Lq)},rZ=()=>{Q.registerAnimationType("rotateOut",Oq)},aZ=()=>{Q.registerAnimationType("update",Iq)};class _O extends Dh{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(),n=_o(e)?null:Object.keys(e).reduce((r,a)=>(i0(e[a])&&(r[a]=Jc(e[a].scale,i)),r),{});this._encoders[t]={callback:(r,a,o)=>{const l=wa(e,r,a,o);if(P(l.size)){const h=n.x?pC(n.x):void 0,d=n.y?pC(n.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(nt(i.padding)&&i.padding>0)t.size=G(i.size)?i.size.map(n=>Math.max(n-i.padding,1)):Math.max(i.size-i.padding,1);else if(G(i.padding)&&i.padding.length===2){const n=G(i.size)?i.size:[i.size,i.size];t.size=[Math.max(n[0]-i.padding[0],1),Math.max(n[1]-i.padding[1],1)]}else t.size=i.size},storedAttrs:"paddingAttrs"}].concat(Uu.symbol)}release(){super.release(),this._encoders=null}}_O.markType=rt.cell;const oZ=()=>{Q.registerMark(rt.cell,_O)},lZ=["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 ft;(function(s){s.initialized="initialized",s.rendered="rendered",s.renderFinished="renderFinished",s.animationFinished="animationFinished",s.regionSeriesDataFilterOver="regionSeriesDataFilterOver",s.afterInitData="afterInitData",s.afterInitEvent="afterInitEvent",s.afterInitMark="afterInitMark",s.rawDataUpdate="rawDataUpdate",s.viewDataFilterOver="viewDataFilterOver",s.viewDataUpdate="viewDataUpdate",s.viewDataStatisticsUpdate="viewDataStatisticsUpdate",s.markDeltaYUpdate="markDeltaYUpdate",s.viewDataLabelUpdate="viewDataLabelUpdate",s.scaleDomainUpdate="scaleDomainUpdate",s.scaleUpdate="scaleUpdate",s.dataZoomChange="dataZoomChange",s.drill="drill",s.layoutStart="layoutStart",s.layoutEnd="layoutEnd",s.layoutRectUpdate="layoutRectUpdate",s.playerPlay="playerPlay",s.playerPause="playerPause",s.playerEnd="playerEnd",s.playerChange="playerChange",s.playerForward="playerForward",s.playerBackward="playerBackward",s.scrollBarChange="scrollBarChange",s.brushStart="brushStart",s.brushChange="brushChange",s.brushEnd="brushEnd",s.brushClear="brushClear",s.legendSelectedDataChange="legendSelectedDataChange",s.legendFilter="legendFilter",s.legendItemClick="legendItemClick",s.legendItemHover="legendItemHover",s.legendItemUnHover="legendItemUnHover",s.tooltipShow="tooltipShow",s.tooltipHide="tooltipHide",s.tooltipRelease="tooltipRelease",s.afterResize="afterResize",s.afterRender="afterRender",s.afterLayout="afterLayout"})(ft||(ft={}));var Nt;(function(s){s.chart="chart",s.window="window",s.canvas="canvas"})(Nt||(Nt={}));var le;(function(s){s.vchart="vchart",s.chart="chart",s.model="model",s.mark="mark"})(le||(le={}));const g_=`${bt}_waterfall_default_seriesField`,mO=`${bt}_CORRELATION_X`,vO=`${bt}_CORRELATION_Y`,yO=`${bt}_CORRELATION_SIZE`,Ji=`${bt}_DEFAULT_DATA_INDEX`,Is=`${bt}_DEFAULT_DATA_KEY`,Cn=`${bt}_DEFAULT_DATA_SERIES_FIELD`,EC=`${bt}_DEFAULT_SERIES_STYLE_NAME`;var tt;(function(s){s[s.Default=0]="Default",s[s.Theme=1]="Theme",s[s.Chart=2]="Chart",s[s.Base_Series=3]="Base_Series",s[s.Series=4]="Series",s[s.Mark=5]="Mark",s[s.User_Chart=6]="User_Chart",s[s.User_Series=7]="User_Series",s[s.User_Mark=8]="User_Mark",s[s.Built_In=99]="Built_In"})(tt||(tt={}));const hZ=`${bt}_STACK_KEY`,En=`${bt}_STACK_START`,Xe=`${bt}_STACK_END`,qo=`${bt}_STACK_START_PERCENT`,$a=`${bt}_STACK_END_PERCENT`,Tx=`${bt}_STACK_START_OffsetSilhouette`,Mx=`${bt}_STACK_END_OffsetSilhouette`,bO=`${bt}_STACK_TOTAL`,dZ=`${bt}_STACK_TOTAL_PERCENT`,tu=`${bt}_STACK_TOTAL_TOP`,ug=`${bt}_SEGMENT_START`,Iv=`${bt}_SEGMENT_END`;var re;(function(s){s[s.Axis_Grid=50]="Axis_Grid",s[s.CrossHair_Grid=100]="CrossHair_Grid",s[s.Region=450]="Region",s[s.Mark=300]="Mark",s[s.Node=400]="Node",s[s.Axis=100]="Axis",s[s.MarkLine=500]="MarkLine",s[s.MarkArea=100]="MarkArea",s[s.MarkPoint=500]="MarkPoint",s[s.DataZoom=500]="DataZoom",s[s.ScrollBar=500]="ScrollBar",s[s.Player=500]="Player",s[s.Legend=500]="Legend",s[s.CrossHair=500]="CrossHair",s[s.Indicator=500]="Indicator",s[s.Title=500]="Title",s[s.Label=500]="Label",s[s.Brush=500]="Brush",s[s.CustomMark=500]="CustomMark",s[s.Interaction=700]="Interaction"})(re||(re={}));var Ds;(function(s){s[s.Indicator=10]="Indicator",s[s.Region=20]="Region",s[s.Axis=30]="Axis",s[s.DataZoom=40]="DataZoom",s[s.Player=40]="Player",s[s.ScrollBar=40]="ScrollBar",s[s.Legend=50]="Legend",s[s.Title=70]="Title",s[s.CustomMark=70]="CustomMark"})(Ds||(Ds={}));const RC=["linear","radial","conical"],cZ={x0:0,y0:0,x1:1,y1:1},uZ={x0:0,y0:0,x1:1,y1:1,r0:0,r1:1},pZ={x:.5,y:.5,startAngle:0,endAngle:2*Math.PI},gZ={linear:cZ,radial:uZ,conical:pZ},fe={label:{name:"label",type:"text"}},BC=`${bt}_rect_x`,IC=`${bt}_rect_x1`,LC=`${bt}_rect_y`,OC=`${bt}_rect_y1`,a0=Object.assign(Object.assign({},fe),{bar:{name:"bar",type:"rect"},barBackground:{name:"barBackground",type:"rect"}}),f1=Object.assign(Object.assign({},fe),{bar3d:{name:"bar3d",type:"rect3d"}}),la={point:{name:"point",type:"symbol"},line:{name:"line",type:"line"}},xO=Object.assign(Object.assign({},fe),la),SO=Object.assign(Object.assign({},fe),{point:{name:"point",type:"symbol"}}),_1=Object.assign(Object.assign(Object.assign({},fe),la),{area:{name:"area",type:"area"}}),AO=Object.assign(Object.assign(Object.assign({},fe),la),{area:{name:"area",type:"area"}}),kO=Object.assign(Object.assign({},fe),{pie:{name:"pie",type:"arc"},labelLine:{name:"labelLine",type:"path"}}),TO=Object.assign(Object.assign({},fe),{pie3d:{name:"pie3d",type:"arc3d"},labelLine:{name:"labelLine",type:"path"}}),MO=Object.assign(Object.assign({},fe),{rose:{name:"rose",type:"arc"}}),wO=Object.assign(Object.assign({},fe),{area:{name:"area",type:"path"}}),m1=Object.assign(Object.assign({},fe),{group:{name:"group",type:"group"}}),CO=Object.assign(Object.assign({},m1),{track:{name:"track",type:"arc"},progress:{name:"progress",type:"arc"}}),PO=Object.assign(Object.assign({},fe),{group:{name:"group",type:"group"},link:{name:"link",type:"rule"},arrow:{name:"arrow",type:"symbol"}}),EO=Object.assign(Object.assign({},fe),{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"}}),wx=Object.assign(Object.assign({},fe),{word:{name:"word",type:"text"},fillingWord:{name:"fillingWord",type:"text"}}),RO=Object.assign(Object.assign({},fe),{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"}}),BO=Object.assign(Object.assign({},fe),{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"}}),IO=Object.assign(Object.assign({},fe),{track:{name:"track",type:"rect"},progress:{name:"progress",type:"rect"},group:{name:"group",type:"group"}}),LO=Object.assign(Object.assign({},a0),{leaderLine:{name:"leaderLine",type:"rule"},stackLabel:{name:"stackLabel",type:"text"}}),OO=Object.assign(Object.assign({},fe),{boxPlot:{name:"boxPlot",type:"boxPlot"},outlier:{name:"outlier",type:"symbol"}}),DO=Object.assign(Object.assign({},fe),{nonLeaf:{name:"nonLeaf",type:"rect"},leaf:{name:"leaf",type:"rect"},nonLeafLabel:{name:"nonLeafLabel",type:"text"}}),FO=Object.assign(Object.assign({},fe),{node:{name:"node",type:"rect"},link:{name:"link",type:"linkPath"}}),zO=Object.assign(Object.assign({},m1),{segment:{name:"segment",type:"arc"},track:{name:"track",type:"arc"}}),HO=Object.assign(Object.assign({},fe),{pin:{name:"pin",type:"path"},pinBackground:{name:"pinBackground",type:"path"},pointer:{name:"pointer",type:["path","rect"]}}),jO=Object.assign(Object.assign({},fe),{sunburst:{name:"sunburst",type:"arc"}}),VO=Object.assign(Object.assign({},a0),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}}),WO=Object.assign(Object.assign({},f1),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}}),GO=Object.assign(Object.assign({},fe),{circlePacking:{name:"circlePacking",type:"arc"}}),NO=Object.assign(Object.assign({},fe),{cell:{name:"cell",type:"cell"},cellBackground:{name:"cellBackground",type:"cell"}}),UO=Object.assign(Object.assign({},fe),{nodePoint:{name:"nodePoint",type:"symbol"},ripplePoint:{name:"ripplePoint",type:"ripple"},centerPoint:{name:"centerPoint",type:"symbol"},centerLabel:{name:"centerLabel",type:"text"}}),$O=Object.assign({},_1),fZ=Object.assign(Object.assign({},fe),{liquid:{name:"liquid",type:"liquid"},liquidBackground:{name:"liquidBackground",type:"group"},liquidOutline:{name:"liquidOutline",type:"symbol"}}),_Z=Object.assign(Object.assign({},fe),{circle:{name:"circle",type:"arc"},overlap:{name:"overlap",type:"path"},overlapLabel:{name:"overlapLabel",type:"text"}});var DC;(function(s){s.area_horizontal="area_horizontal",s.area_vertical="area_vertical",s.area_stack="area_stack",s.line_horizontal="line_horizontal",s.line_vertical="line_vertical",s.line_stack="line_stack",s.bar_horizontal="bar_horizontal",s.bar_vertical="bar_vertical",s.bar_stack="bar_stack",s.bar3d_horizontal="bar3d_horizontal",s.bar3d_vertical="bar3d_vertical",s.bar3d_stack="bar3d_stack",s.rangeColumn_horizontal="rangeColumn_horizontal",s.rangeColumn_vertical="rangeColumn_vertical",s.rangeColumn3d_horizontal="rangeColumn3d_horizontal",s.rangeColumn3d_vertical="rangeColumn3d_vertical",s.rangeArea_horizontal="rangeArea_horizontal",s.rangeArea_vertical="rangeArea_vertical",s.linearProgress_horizontal="linearProgress_horizontal",s.linearProgress_vertical="linearProgress_vertical",s.linearProgress_stack="linearProgress_stack",s.boxPlot_horizontal="boxPlot_horizontal",s.boxPlot_vertical="boxPlot_vertical",s.sankey_horizontal="sankey_horizontal",s.sankey_vertical="sankey_vertical",s.waterfall_horizontal="waterfall_horizontal",s.waterfall_vertical="waterfall_vertical",s.circularProgress_stack="circularProgress_stack",s.radar_stack="radar_stack",s.rose_stack="rose_stack"})(DC||(DC={}));const f_={[H.bar]:a0,[H.bar3d]:f1,[H.line]:xO,[H.scatter]:SO,[H.area]:_1,[H.radar]:AO,[H.pie]:kO,[H.pie3d]:TO,[H.rose]:MO,[H.geo]:fe,[H.map]:wO,[H.circularProgress]:CO,[H.link]:PO,[H.dot]:EO,[H.wordCloud]:wx,[H.wordCloud3d]:wx,[H.funnel]:RO,[H.funnel3d]:BO,[H.linearProgress]:IO,[H.waterfall]:LO,[H.boxPlot]:OO,[H.treemap]:DO,[H.sankey]:FO,[H.gauge]:zO,[H.gaugePointer]:HO,[H.sunburst]:jO,[H.rangeColumn]:VO,[H.rangeColumn3d]:WO,[H.circlePacking]:GO,[H.heatmap]:NO,[H.correlation]:UO,[H.rangeArea]:$O,[H.liquid]:fZ,[H.venn]:_Z};function YO(s){var t,e;const{type:i}=s;return i===H.sankey?(t=s.direction)!==null&&t!==void 0?t:"horizontal":(e=s.direction)!==null&&e!==void 0?e:"vertical"}const mZ={primaryFontColor:"titleFontColor",tertiaryFontColor:"labelFontColor",axisLabelFontColor:"axisFontColor",axisMarkerFontColor:"labelReverseFontColor",dataZoomHandleStrokeColor:"dataZoomHandlerStrokeColor",sliderHandleColor:"dataZoomHandlerFillColor",sliderRailColor:"dataZoomBackgroundColor",sliderTrackColor:"dataZoomSelectedColor",playerControllerColor:"dataZoomSelectedColor",popupBackgroundColor:"tooltipBackgroundColor",hoverBackgroundColor:"axisGridColor"},vZ={titleFontColor:"primaryFontColor",labelFontColor:"tertiaryFontColor",axisFontColor:"axisLabelFontColor",labelReverseFontColor:"axisMarkerFontColor",dataZoomHandlerStrokeColor:"dataZoomHandleStrokeColor",dataZoomHandlerFillColor:"sliderHandleColor",dataZoomBackgroundColor:"sliderRailColor",dataZoomSelectedColor:"sliderTrackColor",tooltipBackgroundColor:"popupBackgroundColor"};function yZ(s,t){const e=mZ[t];if(e&&s[e])return s[e];if(s[t])return s[t];const i=vZ[t];return i?s[i]:void 0}function eu(s,t){var e;if(!s)return[];const i=XO(s,t);if(!i||G(i))return(e=i)!==null&&e!==void 0?e:[];if(Et(i)){const{dataScheme:n}=i;return n?v1(n)?n.map(r=>Object.assign(Object.assign({},r),{scheme:r.scheme.map(a=>__(a)?Px(s,a,t):a).filter(E)})):n.map(r=>__(r)?Px(s,r,t):r).filter(E):[]}return[]}function Cx(s,t){var e,i;return v1(s)?(i=(e=s.find(n=>E(n.isAvailable)?N(n.isAvailable)?n.isAvailable(t):!!n.isAvailable:!E(n.maxDomainLength)||(t==null?void 0:t.length)<=n.maxDomainLength))===null||e===void 0?void 0:e.scheme)!==null&&i!==void 0?i:s[s.length-1].scheme:s}function Px(s,t,e){var i;const n=XO(s,e);if(!n)return;let r;const{palette:a}=n;if(Et(a)&&(r=(i=yZ(a,t.key))!==null&&i!==void 0?i:t.default),!r)return;if(P(t.a)&&P(t.l)||!at(r))return r;let o=new cn(r);if(E(t.l)){const{r:l,g:h,b:d}=o.color,{h:c,s:u}=pm(l,h,d),p=_g(c,u,t.l),g=new cn(`rgb(${p.r}, ${p.g}, ${p.b})`);g.setOpacity(o.color.opacity),o=g}return E(t.a)&&o.setOpacity(t.a),o.toRGBA()}const bZ=(s,t,e)=>{if(t&&__(s)){const i=Px(t,s,e);if(i)return i}return s};function __(s){return s&&s.type==="palette"&&!!s.key}function v1(s){return!(!G(s)||s.length===0)&&s.every(t=>E(t.scheme))}function xZ(s){return G(s)?{dataScheme:s}:s}function XO(s,t){var e,i;const{type:n}=t??{};let r;if(!t||P(n))r=s==null?void 0:s.default;else{const a=YO(t);r=(i=(e=s==null?void 0:s[`${n}_${a}`])!==null&&e!==void 0?e:s==null?void 0:s[n])!==null&&i!==void 0?i:s==null?void 0:s.default}return r}class $u extends Vo{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(!v1(this._range))return void super.range(this._range);const t=Cx(this._range,this._domain);super.range(t)}}const SZ={linear:Fr,band:ol,point:N4,ordinal:Vo,threshold:VS,colorOrdinal:$u};function Ex(s){const t=SZ[s];return t?new t:null}function AZ(s,t){if("scale"in s&&s.scale)return at(s.scale)&&(t!=null&&t.globalScale)?t.globalScale.registerMarkAttributeScale(s,t.seriesId):s.scale;const e=Ex(s.type);return e&&kZ(e,s),e}function kZ(s,t){s&&t&&(t.domain&&s.domain(t.domain),t.range&&s.range(t.range),t.specified&&s.specified&&s.specified(t.specified))}function Xt(s,t){if(!t)return s;const e=t.range(),i=Math.min(e[0],e[e.length-1]),n=Math.max(e[0],e[e.length-1]);return Math.min(Math.max(i,s),n)}function FC(s){return E(s==null?void 0:s.field)&&E(s==null?void 0:s.scale)}function y1(s){switch(s){case"left":case"right":case"top":case"bottom":return!0;default:return!1}}function Pn(s){return!!at(s)&&!!s.endsWith("%")&&ch(s.substring(0,s.length-1))}function TZ(s){return!!Et(s)&&("percent"in s||"offset"in s)}function Gi(s,t,e){var i,n;return nt(s)?s:Pn(s)?Number(s.substring(0,s.length-1))*t/100:N(s)?s(e):Et(s)?t*((i=s.percent)!==null&&i!==void 0?i:0)+((n=s.offset)!==null&&n!==void 0?n:0):0}function KO(s,t,e){var i,n,r,a;const o={top:0,bottom:0,left:0,right:0};return Object.values(s).every(l=>nt(l))?(o.top=(i=s.top)!==null&&i!==void 0?i:0,o.right=(n=s.right)!==null&&n!==void 0?n:0,o.bottom=(r=s.bottom)!==null&&r!==void 0?r:0,o.left=(a=s.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]=Gi(s[h],l.size,e)})}),o)}function MZ(s,t){return s?{width:Math.ceil(Math.min(s.x2-s.x1,t.width)),height:Math.ceil(Math.min(s.y2-s.y1,t.height))}:{width:0,height:0}}function jr(s){let t={};return G(s)?(P(s[0])||(t.top=t.left=t.bottom=t.right=s[0]),P(s[1])||(t.left=t.right=s[1]),P(s[2])||(t.bottom=s[2]),P(s[3])||(t.left=s[3]),t):nt(s)||Pn(s)||N(s)||TZ(s)?(t.top=t.left=t.bottom=t.right=s,t):(Et(s)&&(t=Object.assign({},s)),t)}function zC(s,t,e){return e?{x:s.x+t.x,y:s.y+t.y}:s}const Nl=(s,t)=>{const e=Number(s),i=s.toString();return isNaN(e)&&i[i.length-1]==="%"?t*(Number(i.slice(0,i.length-1))/100):e},qO=[{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"]}],wZ={default:{dataScheme:qO,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"}}},CZ={label:{visible:!1,offset:5,position:"top",style:{stroke:{type:"palette",key:"backgroundColor"},lineWidth:2}},point:{style:{symbolType:"circle"}},seriesMark:"area"},PZ={label:{visible:!1,position:"outside",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}}},EZ={bar3d:{style:{length:3}},label:{visible:!1,style:{offset:12,position:"outside"}}},RZ={outerRadius:.8,innerRadius:.6,progress:{style:{fillOpacity:1}},track:{style:{fillOpacity:.2}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},BZ={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"}}}},IZ={transform:{style:{fill:{type:"palette",key:"axisGridColor"}}},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"}}},LZ={transform3d:{style:{fill:"#f5f5f5"}},label:{style:{fill:"white",textBaseline:"middle",lineWidth:2}},outerLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:"#707070"},line:{style:{stroke:{type:"palette",key:"axisDomainColor"}}}},transformLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:"#707070",textBaseline:"middle"}}},OZ={outerRadius:.8,innerRadius:.6,padAngle:1.146,segment:{style:{fillOpacity:1}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},DZ="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",HC="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",FZ={pointer:{type:"path",width:.4,height:.4,style:{path:DZ}},pin:{width:.025,height:.025,style:{path:HC,fill:"#888"}},pinBackground:{width:.06,height:.06,style:{path:HC,fill:"#ddd"}}},zZ={label:{visible:!1,position:"top",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},HZ={bandWidth:30,progress:{style:{fillOpacity:1}},track:{style:{fill:"#E7EBED",fillOpacity:1}}},jZ={arrow:{style:{size:10}}},VZ={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"}}}},WZ={outerRadius:.6,pie:{style:{fillOpacity:1}},label:{visible:!1,position:"outside",style:{fontWeight:"normal",stroke:{type:"palette",key:"backgroundColor"},fillOpacity:1}},innerLabel:{style:{lineWidth:2}}},GZ={outerRadius:.6,pie3d:{style:{height:10,fillOpacity:1}},label:{visible:!1,position:"outside"}},NZ={label:{visible:!1,offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},UZ={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"}}}},$Z={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}}},YZ={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},XZ={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},KZ={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"}}},qZ={innerRadius:0,outerRadius:1,startAngle:n1,endAngle:OL,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"}}}},ZZ={label:{visible:!1,offset:5,position:"inside",style:{lineWidth:2,fill:{type:"palette",key:"axisMarkerFontColor"}},minLabel:{position:"end"},maxLabel:{position:"start"}}},JZ={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"}}}},QZ={cell:{style:{shape:"square",fillOpacity:1}},cellBackground:{visible:!1}},tJ={link:{style:{fillOpacity:.15,round:!0}}},eJ={rose:{style:{fillOpacity:1}},label:{style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"},textAlign:"center",textBaseline:"middle"}}},iJ={boxPlot:{style:{lineWidth:1}},label:{style:{lineWidth:2}}},nJ={centerLabel:{visible:!0,position:"center",style:{fill:"#fff",text:""}},label:{visible:!0,position:"bottom",style:{fill:"#000"}}},sJ={outlinePadding:10,liquidBackground:{style:{lineWidth:0,fillOpacity:.2}},liquidOutline:{style:{lineWidth:2}}},rJ={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"}}}},aJ={scatter:UZ,line:zZ,area:CZ,bar:PZ,bar3d:EZ,pie:WZ,pie3d:GZ,map:VZ,radar:NZ,dot:BZ,link:jZ,wordCloud:YZ,wordCloud3d:XZ,funnel:IZ,funnel3d:LZ,linearProgress:HZ,circularProgress:RZ,waterfall:$Z,gauge:OZ,gaugePointer:FZ,treemap:KZ,sunburst:qZ,rangeColumn:ZZ,circlePacking:JZ,heatmap:QZ,sankey:tJ,rose:eJ,boxPlot:iJ,correlation:nJ,liquid:sJ,venn:rJ},oJ={text:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fillOpacity:1}}},lJ={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:{fontSize:null}},fillingWord:{style:{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"}}},hJ={domainLine:{visible:!0},grid:{visible:!1},subGrid:{visible:!1},tick:{visible:!0},subTick:{visible:!1}},ZO={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}}},dJ={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}}},cJ=Object.assign(Object.assign({},ZO),{label:{space:0}}),uJ={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}}},pJ={domainLine:{visible:!1},grid:{visible:!0},subGrid:{visible:!1},tick:{visible:!1},subTick:{visible:!1}},gJ={grid:{smooth:!0,visible:!0},subGrid:{smooth:!0,visible:!1}},fJ={grid:{visible:!0,style:{lineDash:[6,6]}},label:{space:5}},_J={style:{fill:"#B0C8F9",fillOpacity:.2,stroke:"#B0C8F9",lineWidth:2},brushMode:"single",brushType:"rect",brushMoved:!0,removeOnClick:!0,delayType:"throttle",delayTime:0},mJ={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}}}}},jC=`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;`,vJ={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:{area:{style:{visible:!1,stroke:!1,fill:{type:"palette",key:"dataZoomChartColor"}}},line:{style:{visible:!1,stroke:{type:"palette",key:"dataZoomChartColor"},lineWidth:1}}},startHandler:{style:{symbolType:jC,fill:{type:"palette",key:"sliderHandleColor"},scaleX:1.2,scaleY:1.2,stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},lineWidth:1}},endHandler:{style:{symbolType:jC,fill:{type:"palette",key:"sliderHandleColor"},scaleX:1.2,scaleY:1.2,stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},lineWidth:1}},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:{area:{style:{stroke:!1,fill:{type:"palette",key:"dataZoomChartColor"}}},line:{style:{stroke:{type:"palette",key:"dataZoomChartColor"},lineWidth:1}}}},yJ={title:{visible:!0,autoLimit:!1,autoFit:!1,style:{fontSize:{type:"token",key:"l1FontSize"},fill:{type:"palette",key:"primaryFontColor"},fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}},content:{visible:!0,style:{fontSize:{type:"token",key:"l2FontSize"},fill:{type:"palette",key:"tertiaryFontColor"},fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}}},m_={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}},VC={style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:"#ffffff"},shadowBlur:12,shadowOffsetX:0,shadowOffsetY:4,shadowColor:{type:"palette",key:"shadowColor"}}},bJ={horizontal:Object.assign(Object.assign({},m_),{rail:{width:200,height:8,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:VC}),vertical:Object.assign(Object.assign({},m_),{rail:{width:8,height:200,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:VC})},xJ={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},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},WC={style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:{type:"palette",key:"sliderTrackColor"}},fill:{type:"palette",key:"sliderHandleColor"}}},SJ={horizontal:Object.assign(Object.assign({},m_),{sizeBackground:{fill:{type:"palette",key:"dataZoomChartColor"}},track:{style:{fill:{type:"palette",key:"sliderTrackColor",a:.8}}},rail:{width:200,height:4,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:WC}),vertical:Object.assign(Object.assign({},m_),{sizeBackground:{fill:{type:"palette",key:"dataZoomChartColor"}},track:{style:{fill:{type:"palette",key:"sliderTrackColor",a:.8}}},rail:{width:4,height:200,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:WC})},AJ={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"}}},GC={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"}}}}},NC={line:{style:{lineDash:[3,3],stroke:{type:"palette",key:"markLineStrokeColor"}}},startSymbol:{visible:!1,symbolType:"triangle",size:10,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},endSymbol:{visible:!0,symbolType:"triangle",size:10,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth: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"}}}}},Lv={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}},kJ={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:0,style:{size:25,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},pause:{order:0,space:0,style:{size:25,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:"end",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}}}},TJ={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"}}},MJ={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",textAlign:"left",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"},textAlign:"left",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}},wJ={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}},CJ={visible:!1,offset:5,overlap:{clampForce:!0,strategy:[]},smartInvert:!1,animation:!1,style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"primaryFontColor"}}},PJ={horizontal:{height:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}},vertical:{width:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}}},EJ={discreteLegend:xJ,colorLegend:bJ,sizeLegend:SJ,axis:uJ,axisBand:hJ,axisLinear:pJ,axisX:ZO,axisY:dJ,axisZ:cJ,axisAngle:fJ,axisRadius:gJ,markLine:NC,markArea:GC,markPoint:Lv,polarMarkLine:NC,polarMarkArea:GC,polarMarkPoint:Lv,geoMarkPoint:Lv,tooltip:MJ,dataZoom:vJ,crosshair:mJ,player:kJ,brush:_J,indicator:yJ,title:TJ,mapLabel:AJ,poptip:wJ,totalLabel:CJ,scrollBar:PJ};function RJ(s,t){return s&&t.key in s?s[t.key]:t.default}function BJ(s){return s&&s.type==="token"&&!!s.key}const v_={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%"},Rx={name:"light",background:{type:"palette",key:"backgroundColor"},padding:20,fontFamily:{type:"token",key:"fontFamily"},colorScheme:wZ,token:v_,mark:oJ,markByName:lJ,series:aJ,component:EJ,animationThreshold:2e3},IJ={default:{dataScheme:qO,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"}}},UC={name:"dark",colorScheme:IJ,component:{dataZoom:{selectedBackground:{style:{fillOpacity:.4,outerBorder:{strokeOpacity:.4}}}}}};function Bx(s,...t){return vt($C(s),...t.map($C))}function $C(s){var t;if(!s)return s;const e=LJ(s.colorScheme),{series:i}=s,{mark:n,markByName:r}=s;let a;return(n||r)&&(a=Object.keys(f_).reduce((o,l)=>{var h;const d=(h=i==null?void 0:i[l])!==null&&h!==void 0?h:{};return o[l]=JO(d,l,n,r),o},{})),Object.assign({},s,{colorScheme:e,token:(t=s.token)!==null&&t!==void 0?t:{},series:Object.assign({},s.series,a)})}function LJ(s){return s&&(s=Object.keys(s).reduce((t,e)=>{const i=s[e];return t[e]=xZ(i),t},{})),s}function JO(s,t,e,i){if(!f_[t])return s;const n={};return Object.values(f_[t]).forEach(({type:r,name:a})=>{n[a]=vt({},e==null?void 0:e[V(r)[0]],i==null?void 0:i[a],s==null?void 0:s[a])}),Object.assign(Object.assign({},s),n)}const OJ=["animationThreshold","colorScheme","name","padding"];function o0(s,t,e,i){if(!s)return s;t||(t=s.colorScheme),e||(e=s.token);const n={};return Object.keys(s).forEach(r=>{const a=s[r];OJ.includes(r)?n[r]=a:Bs(a)?__(a)?n[r]=bZ(a,t,i):BJ(a)?n[r]=RJ(e,a):n[r]=o0(a,t,e,i):n[r]=a}),n}const iu={[Rx.name]:Rx},Yu=Rx.name,fh=new Map(Object.keys(iu).map(s=>[s,iu[s]])),b1=new Map(Object.keys(iu).map(s=>[s,o0(iu[s])])),y_=new Map(Object.keys(iu).map(s=>[s,s===Yu])),x1=(s,t)=>{if(!s)return;const e=zJ(t);fh.set(s,e),b1.set(s,o0(e)),y_.set(s,!0)},QO=(s=Yu,t=!1)=>(y_.has(s)&&!y_.get(s)&&x1(s,fh.get(s)),t?b1.get(s):fh.get(s)),DJ=s=>fh.delete(s)&&b1.delete(s)&&y_.delete(s),FJ=s=>!!at(s)&&fh.has(s),zJ=s=>{var t;const e=(t=s.type)!==null&&t!==void 0?t:Yu,i=QO(e);return Bx({},i,s)};class is{static registerInstance(t){is.instances.set(t.id,t)}static unregisterInstance(t){is.instances.delete(t.id)}static getInstance(t){return is.instances.get(t)}static instanceExist(t){return is.instances.has(t)}static forEach(t,e=[],i){const n=V(e);return is.instances.forEach((r,a,o)=>{n.includes(a)||t(r,a,o)},i)}}is.instances=new Map;class hn{static registerTheme(t,e){x1(t,e)}static getTheme(t,e=!1){return QO(t,e)}static removeTheme(t){return DJ(t)}static themeExist(t){return FJ(t)}static getDefaultTheme(){return hn.themes.get(Yu)}static setCurrentTheme(t){hn.themeExist(t)&&(hn._currentThemeName=t,is.forEach(e=>e==null?void 0:e.setCurrentTheme(t)))}static getCurrentTheme(t=!1){return hn.getTheme(hn._currentThemeName,t)}static getCurrentThemeName(){return hn._currentThemeName}}hn.themes=fh,hn._currentThemeName=Yu;function ia(s,t){return at(s)?hn.themeExist(s)?hn.getTheme(s,t):{}:Et(s)?s:{}}function HJ(s){if(!s)return null;if(typeof s=="string")return{fill:s,fillOpacity:1};if(typeof s!="object")return null;const t=um(s,["x","y","width","height","x1","y1","image"]);return t.background=s.image,t}function Ix(s,t={data:e=>e}){if(!s)return s;if(s.constructor===Object){const e={};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)){if(t[i]){e[i]=t[i](s[i]);continue}e[i]=Ix(s[i],t)}return e}return G(s)?s.map(e=>Ix(e,t)):s}function Lx(s,t){if(!s)return s;if(Bs(s)){const e={};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)){if(at(s[i])&&t.getFunction(s[i])){e[i]=t.getFunction(s[i]);continue}e[i]=Lx(s[i],t)}return e}return G(s)?s.map(e=>Lx(e,t)):s}const jJ=(s,t,e)=>WS(s,t,e,{fontFamily:v_.fontFamily,fontSize:v_.fontSize}),VJ=(s,t,e,i)=>jJ(t,e,i).measure(s);function th(s,t){for(let e=0;ee.key===t)}function b_(s,t){var e;if(!s)return t??null;const i=s.getFields();return i&&i[t]?(e=i[t].alias)!==null&&e!==void 0?e:t:t??null}function t2(s,t,e){const i=s.getStackSort(),n={};let r=null;return i&&(r={},s.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++)}))}})),s.getSeries().forEach(a=>{var o;const l=a.getStackData(),h=a.getStackValue(),d=a.getStackValueField(),c=!e||e(a);l&&d&&c&&(n[h]=(o=n[h])!==null&&o!==void 0?o:{nodes:{}},s2(a,l,n[h],d,t,r))}),i?e2(n):n}function e2(s,t){var e;for(const i in s)!((e=s[i].sortDatums)===null||e===void 0)&&e.length?(s[i].sortDatums.sort((n,r)=>n.index-r.index),s[i].values=s[i].sortDatums.map(n=>n.datum)):e2(s[i].nodes);return s}function i2(s,t){if("values"in s&&s.values.length){const e=RL(s.values,t),i=e1(s.values,$a);s.values.forEach(r=>{r[bO]=e,r[dZ]=i,delete r[tu]});const n=s.values.reduce((r,a)=>a[Xe]>r[Xe]?a:r);n[tu]=!0}else for(const e in s.nodes)i2(s.nodes[e],t)}function GJ(s){if(!s.values.length)return;const t=s.values[s.values.length-1][Xe]/2;for(let e=0;e0){let i=0,n=0,r=1,a=0;const o=s.values.length;for(let l=0;l=0?(h[En]=i,i+=h[Xe],h[Xe]=i):(h[En]=n,n+=h[Xe],h[Xe]=n),h[hZ]=s.key}if(e)for(let l=0;l=0?i:n;r=a>=0?1:-1,h[qo]=d===0?0:Math.min(1,h[En]/d)*r,h[$a]=d===0?0:Math.min(1,h[Xe]/d)*r}}for(const i in s.nodes)n2(s.nodes[i],t,e)}function s2(s,t,e,i,n,r,a){if("values"in t)if(n&&t.values.forEach(o=>o[Xe]=v4(o[i])),e.series.push({s,values:t.values}),r){const o=s.getSeriesField();t.values.forEach(l=>{e.sortDatums.push({series:s,datum:l,index:o?r[o].sort[l[o]]:0})})}else e.values.push(...t.values);else for(const o in t.nodes){const l=a?`${a}_${o}`:o;!e.nodes[o]&&(e.nodes[o]={values:[],series:[],nodes:{},sortDatums:[],key:l}),s2(s,t.nodes[o],e.nodes[o],i,n,r,l)}}const r2=(s,t,e="key",i="children")=>{for(let n=0;n{for(let n=0;n{const n=[],r=(a,o)=>{for(const l of a){if(l[e]===t)return n.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(s,[]),n};function Ms(s={}){const t=Object.assign({},s);if(N(s.style)?t.style=(e,i,n,r)=>xt(s.style(e,i,n,r)):mt(s.style)||(t.style=xt(s.style)),!mt(s.state)){const e={};Object.keys(s.state).forEach(i=>{N(s.state[i])?e[i]=(n,r,a,o)=>xt(s.state[i](n,r,a,o)):mt(s.state[i])||(e[i]=xt(s.state[i]))}),t.state=e}return t}function ml(s){if(mt(s))return null;const t={};return Object.keys(s).forEach(e=>{N(s[e])?t[e]=(i,n,r,a)=>xt(s[e](i,n,r,a)):mt(s[e])||(t[e]=xt(s[e]))}),t}function UJ(s){if(mt(s))return null;const t={};return Object.keys(s).forEach(e=>{N(s[e])?t[e]=(i,n,r,a)=>xt(s[e](i.rawValue,n,i,r,a)):mt(s[e])||(t[e]=xt(s[e]))}),t}function xt(s){return s!=null&&s.angle&&(s.angle=Qt(s.angle)),s}class D{static registerChart(t,e){D._charts[t]=e}static registerSeries(t,e){D._series[t]=e}static registerComponent(t,e,i){D._components[t]={cmp:e,alwaysCheck:i}}static registerMark(t,e){D._marks[t]=e}static registerRegion(t,e){D._regions[t]=e}static registerTransform(t,e){D.transforms[t]=e}static registerLayout(t,e){D._layout[t]=e}static registerAnimation(t,e){D._animations[t]=e}static registerImplement(t,e){D._implements[t]=e}static registerChartPlugin(t,e){D._chartPlugin[t]=e}static registerComponentPlugin(t,e){D._componentPlugin[t]=e}static createChart(t,e,i){return D._charts[t]?new D._charts[t](e,i):null}static createChartSpecTransformer(t,e){if(!D._charts[t])return null;const i=D._charts[t];return new i.transformerConstructor(Object.assign({seriesType:i.seriesType},e))}static createRegion(t,e,i){return D._regions[t]?new D._regions[t](e,i):null}static createRegionSpecTransformer(t,e){return D._regions[t]?new D._regions[t].transformerConstructor(e):null}static createSeries(t,e,i){return D._series[t]?new D._series[t](e,i):null}static createSeriesSpecTransformer(t,e){return D._series[t]?new D._series[t].transformerConstructor(e):null}static createMark(t,e,i){if(!D._marks[t])return null;const n=new D._marks[t](e,i);return n.type==="group"&&n.setInteractive(!1),n}static getComponents(){return Object.values(D._components)}static getComponentInKey(t){return D._components[t].cmp}static getLayout(){return Object.values(D._layout)}static getLayoutInKey(t){return D._layout[t]}static getSeries(){return Object.values(D._series)}static getSeriesInType(t){return D._series[t]}static getRegionInType(t){return D._regions[t]}static getAnimationInKey(t){return D._animations[t]}static getImplementInKey(t){return D._implements[t]}static getSeriesMarkMap(t){return D._series[t]?D._series[t].mark:{}}static getChartPlugins(){return Object.values(D._chartPlugin)}static getComponentPlugins(){return Object.values(D._componentPlugin)}static getComponentPluginInType(t){return D._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:IR,filter:q3,fold:aH},D.dataParser={csv:DR,dsv:OR,tsv:FR},D._layout={};const $J=(s,t,e)=>s.x>=t.x&&s.x<=e.x&&s.y>=t.y&&s.y<=e.y,YJ=(s,t,e)=>{const i=s.getRegionsInIds(V(t.layout.layoutBindRegionID));return i==null?void 0:i.some(n=>{const r=n.getLayoutRect(),a=n.getLayoutStartPoint();return $J(e,{x:a.x,y:a.y},{x:r.width+a.x,y:r.height+a.y})})},o2=(s,t)=>{var e,i;return s===t||!P(s)&&!P(t)&&s.value===t.value&&((e=s.axis)===null||e===void 0?void 0:e.id)===((i=t.axis)===null||i===void 0?void 0:i.id)},Ox=(s,t,e,i)=>{var n;const r=t.getScale(),a=vi(r.type),o=[],l=t.getOption().getChart().getSeriesInIndex(t.getSpecInfo().seriesIndexes);for(const h of l)if(h.coordinate===e){const d=V(i(h)),c=(n=h.getViewData())===null||n===void 0?void 0:n.latestData;if(d&&c)if(a){const u=[],p=[];c.forEach((g,f)=>{var _;((_=g[d[0]])===null||_===void 0?void 0:_.toString())===(s==null?void 0:s.toString())&&(u.push(g),p.push(f))}),o.push({series:h,datum:u,key:Ov(h,p)})}else if(E(d[1])){const u=[],p=[];c.forEach((g,f)=>{var _;(((_=g[d[0]])===null||_===void 0?void 0:_.toString())===(s==null?void 0:s.toString())||E(g[d[0]])&&E(g[d[1]])&&s>=g[d[0]]&&s{if(E(_[d[0]])){const y=_[d[0]]-s;y>=p[0]&&y<=p[1]&&(g.push(_),f.push(m))}});else{let _=1/0,m=0;c.forEach((y,v)=>{if(E(y[d[0]])){const b=Math.abs(y[d[0]]-s),x=Math.sign(y[d[0]]-s);b<_?(_=b,g=[y],f=[v],m=x):b===_&&x===m&&(g.push(y),f.push(v))}})}o.push({series:h,datum:g,key:Ov(h,f)})}}return o},Ov=(s,t)=>`${s.id}_${t.join("_")}`,x_=(s,t,e)=>{const i=s.getAllComponents().filter(n=>n.specKey==="axes"&&t(n)&&YJ(s,n,e));return i.length?i:null},XJ=(s,t)=>{const e=2*Math.PI,i=qe(t),n=ze(t);return sn&&(s-=Math.ceil((s-n)/e)*e),s},l2=(s,t)=>{if(!s||!Wo(s.getRegionsInIndex(),"polar"))return null;const{x:e,y:i}=t,n=x_(s,l=>l.getOrient()==="angle",t),r=x_(s,l=>l.getOrient()==="radius",t),a=[],o=l=>l.getDimensionField()[0];return n&&n.forEach(l=>{var h;const d=l.getScale();if(d&&vi(d.type)){const c=d.domain(),u=d.range(),p=l.getCenter(),g={x:e-l.getLayoutStartPoint().x-p.x,y:i-l.getLayoutStartPoint().y-p.y};let f=Zw({x:1,y:0},g);f=XJ(f,u);const _=h_(g),m=(h=r[0])===null||h===void 0?void 0:h.getScale(),y=m==null?void 0:m.range();if((f-(u==null?void 0:u[0]))*(f-(u==null?void 0:u[1]))>0||(_-(y==null?void 0:y[0]))*(_-(y==null?void 0:y[1]))>0)return;const v=l.invert(f);if(P(v))return;let b=c.findIndex(A=>(A==null?void 0:A.toString())===v.toString());b<0&&(b=void 0);const x=Ox(v,l,"polar",o);a.push({index:b,value:v,position:d.scale(v),axis:l,data:x})}}),r&&r.forEach(l=>{var h;const d=l.getScale(),c=d==null?void 0:d.range();if(d&&vi(d.type)){const u=l.getCenter(),p={x:e-l.getLayoutStartPoint().x-u.x,y:i-l.getLayoutStartPoint().y-u.y};let g=Zw({x:1,y:0},p);g<-Math.PI/2&&(g=2*Math.PI+g);const f=h_(p),_=(h=n[0])===null||h===void 0?void 0:h.getScale(),m=_==null?void 0:_.range();if((g-(m==null?void 0:m[0]))*(g-(m==null?void 0:m[1]))>0||(f-(c==null?void 0:c[0]))*(f-(c==null?void 0:c[1]))>0)return;const y=d.invert(f);if(P(y))return;let v=d.domain().findIndex(x=>(x==null?void 0:x.toString())===y.toString());v<0&&(v=void 0);const b=Ox(y,l,"polar",o);a.push({index:v,value:y,position:d.scale(y),axis:l,data:b})}}),a.length?a:null};function Te(s){return s==="bottom"||s==="top"}function Ks(s){return s==="left"||s==="right"}function na(s){return s==="z"}function KJ(s,t){return t?Te(s)?"linear":"band":Te(s)?"band":"linear"}function co(s,t){return y1(s.orient)||t&&t.includes(s.orient)?s.orient:"left"}function h2(s){return s==="top"||s==="bottom"?"horizontal":"vertical"}function qJ(s,t){let e=s.inverse;return t&&!Te(s.orient)&&(e=!E(s.inverse)||!s.inverse),e}function YC(s,t){var e;const i=(e=s.type)!==null&&e!==void 0?e:KJ(s.orient,t);return{axisType:i,componentName:`${Y.cartesianAxis}-${i}`}}const d2=s=>s.fieldX[0],c2=s=>s.fieldY[0],ZJ=s=>{var t;return[s.fieldX[0],(t=s.fieldX2)!==null&&t!==void 0?t:s.fieldX[1]]},JJ=s=>{var t;return[s.fieldY[0],(t=s.fieldY2)!==null&&t!==void 0?t:s.fieldY[1]]},XC=(s,t)=>s?t?d2:ZJ:t?c2:JJ,u2=(s,t,e)=>{var i,n;if(!s||!Wo(s.getRegionsInIndex(),"cartesian"))return null;const{x:r,y:a}=t,o=(i=x_(s,g=>Te(g.getOrient()),t))!==null&&i!==void 0?i:[],l=(n=x_(s,g=>Ks(g.getOrient()),t))!==null&&n!==void 0?n:[],h=new Set,d=new Set,c=new Set;[o,l].forEach(g=>g.forEach(f=>{vi(f.getScale().type)?h.add(f):d.add(f),e&&f.getSpec().hasDimensionTooltip&&c.add(f)}));const u=[],p=g=>{const f=g==="x",_=f?r:a;(f?o:l).forEach(m=>{if(c.size>0){if(c.has(m)){const y=KC(m,_,g,XC(f,vi(m.getScale().type)));y&&u.push(y)}}else{const y=h.size>0;if((y?h:d).has(m)){const v=KC(m,_,g,XC(f,y));v&&u.push(v)}}})};return s.getSpec().direction==="horizontal"?(p("y"),u.length===0&&p("x")):(p("x"),u.length===0&&p("y")),u.length?u:null},KC=(s,t,e,i)=>{const n=s.getScale(),r=t-s.getLayoutStartPoint()[e];if((r-n.range()[0])*(r-n.range()[1])>0)return null;const a=n.invert(r);return p2(s,a,i)},p2=(s,t,e)=>{const i=s.getScale();if(P(t))return null;let n=i.domain().findIndex(a=>(a==null?void 0:a.toString())===t.toString());n<0&&(n=void 0);const r=Ox(t,s,"cartesian",e??(Te(s.getOrient())?d2:c2));return{index:n,value:t,position:i.scale(t),axis:s,data:r}};class g2{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,n;((n=(i=this.chart)===null||i===void 0?void 0:i.getOption().onError)!==null&&n!==void 0?n:jo)("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:jo)("Method not implemented.")}getTargetDimensionInfo(t,e){var i,n;const r=(i=u2(this.chart,{x:t,y:e}))!==null&&i!==void 0?i:[],a=(n=l2(this.chart,{x:t,y:e}))!==null&&n!==void 0?n:[],o=[].concat(r,a);return o.length===0?null:o}dispatch(t,e){var i;const n=(i=this.chart)===null||i===void 0?void 0:i.getAllComponents().filter(l=>l.specKey==="axes"&&(!(e!=null&&e.filter)||e.filter(l))),r=n.filter(l=>{const h=l.getScale();return vi(h.type)}),a=r.length?r:n.filter(l=>{const h=l.getOrient();return Te(h)||h==="angle"}),o=[];return a.forEach(l=>{const h=p2(l,t);h&&o.push(h)}),this._callback.call(null,{action:"enter",dimensionInfo:o}),o}}class QJ extends g2{constructor(){super(...arguments),this.onClick=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,n=this.getTargetDimensionInfo(e,i);n&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"click",dimensionInfo:n.slice()}))}}register(t,e){this._callback=e.callback,this._eventDispatcher.register("pointertap",{query:Object.assign(Object.assign({},e.query),{source:Nt.chart}),callback:this.onClick})}unregister(){this._eventDispatcher.unregister("pointertap",{query:null,callback:this.onClick})}}class tQ extends g2{constructor(){super(...arguments),this._cacheDimensionInfo=null,this.onMouseMove=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,n=this.getTargetDimensionInfo(e,i);n===null&&this._cacheDimensionInfo!==null?(this._callback.call(null,Object.assign(Object.assign({},t),{action:"leave",dimensionInfo:this._cacheDimensionInfo.slice()})),this._cacheDimensionInfo=n):n===null||this._cacheDimensionInfo!==null&&n.length===this._cacheDimensionInfo.length&&!n.some((r,a)=>!o2(r,this._cacheDimensionInfo[a]))?n!==null&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"move",dimensionInfo:n.slice()})):(this._callback.call(null,Object.assign(Object.assign({},t),{action:"enter",dimensionInfo:n.slice()})),this._cacheDimensionInfo=n)},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:Nt.chart}),callback:this.onMouseMove}),this._eventDispatcher.register("pointerout",{query:Object.assign(Object.assign({},e.query),{source:Nt.canvas}),callback:this.onMouseOut}),Ga(this._mode)&&this._eventDispatcher.register("pointerdown",{query:Object.assign(Object.assign({},e.query),{source:Nt.chart}),callback:this.onMouseMove})}unregister(){this._eventDispatcher.unregister("pointermove",{query:null,callback:this.onMouseMove}),Ga(this._mode)&&this._eventDispatcher.unregister("pointerdown",{query:null,callback:this.onMouseMove})}}var Vr;(function(s){s.dimensionHover="dimensionHover",s.dimensionClick="dimensionClick"})(Vr||(Vr={}));const Dv={[Vr.dimensionHover]:tQ,[Vr.dimensionClick]:QJ};let l0=class{getComposedEventMap(){return this._composedEventMap}constructor(t,e){this._composedEventMap=new Map,this._eventDispatcher=t,this._mode=e}on(t,e,i){const n=typeof e=="function"?{query:null,callback:e}:{query:e,callback:i};if(Dv[t]){const r=new Dv[t](this._eventDispatcher,this._mode);r.register(t,n),this._composedEventMap.set(i,{eventType:t,event:r})}else this._eventDispatcher.register(t,n);return this}off(t,e,i){var n,r;const a=i??e;if(Dv[t])if(a)(n=this._composedEventMap.get(a))===null||n===void 0||n.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}release(){this._eventDispatcher.clear(),this._composedEventMap.clear()}};class eQ{constructor(){this._map=new Map,this._levelNodes=new Map,this._levelNodes.set(le.vchart,[]),this._levelNodes.set(le.chart,[]),this._levelNodes.set(le.model,[]),this._levelNodes.set(le.mark,[])}addHandler(t,e){var i;const n={level:e,handler:t};return(i=this._levelNodes.get(e))===null||i===void 0||i.push(n),this._map.set(t.callback,n),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),n=i==null?void 0:i.findIndex(r=>r.handler.callback===t.callback);return n!==void 0&&n>=0&&(i==null||i.splice(n,1)),this}getHandlers(t){var e;return((e=this._levelNodes.get(t))===null||e===void 0?void 0:e.map(i=>i.handler))||[]}getCount(){return this._map.size}release(){this._map.clear(),this._levelNodes.clear()}}const qC={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",label:"label",markLine:"markLine",markArea:"markArea",markPoint:"markPoint",polarMarkLine:"polarMarkLine",polarMarkArea:"polarMarkArea",polarMarkPoint:"polarMarkPoint",geoMarkPoint:"geoMarkPoint"};class iQ{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 n;const r=this.globalInstance.getChart(),a=E(i.modelId)&&(r==null?void 0:r.getModelById(i.modelId))||void 0,o=E(i.markId)&&(r==null?void 0:r.getMarkById(i.markId))||null,l=new Map;let h=(n=i.item)===null||n===void 0?void 0:n.mark;for(h&&E(h.id())&&l.set(h.id(),i.item);h!=null&&h.elements;){const c=h.id();E(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:Pt(i.event,"target")};this.dispatch(i.type,d)},this._onDelegateInteractionEvent=i=>{const n=this.globalInstance.getChart(),r=i.event;let a=null;r.elements&&(a=r.elements);const o={event:i.event,chart:n,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,n,r,a,o;this._parseQuery(e);const l=this.getEventBubble(((i=e.filter)===null||i===void 0?void 0:i.source)||Nt.chart),h=this.getEventListeners(((n=e.filter)===null||n===void 0?void 0:n.source)||Nt.chart);if(l.get(t)||l.set(t,new eQ),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,n,r,a;let o=!1;const l=this.getEventBubble(((i=e==null?void 0:e.filter)===null||i===void 0?void 0:i.source)||Nt.chart),h=this.getEventListeners(((n=e==null?void 0:e.filter)===null||n===void 0?void 0:n.source)||Nt.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)||Nt.chart,t,d),h.delete(t)}return this}dispatch(t,e,i){const n=this.getEventBubble(e.source||Nt.chart).get(t);if(!n)return this;let r=!1;if(i){const a=n.getHandlers(i);r=this._invoke(a,t,e)}else{const a=n.getHandlers(le.mark);if(r=this._invoke(a,t,e),!r){const o=n.getHandlers(le.model);r=this._invoke(o,t,e)}if(!r){const o=n.getHandlers(le.chart);r=this._invoke(o,t,e)}if(!r){const o=n.getHandlers(le.vchart);r=this._invoke(o,t,e)}}return this}clear(){for(const t of this._viewListeners.entries())this._compiler.removeEventListener(Nt.chart,t[0],t[1]);this._viewListeners.clear();for(const t of this._windowListeners.entries())this._compiler.removeEventListener(Nt.window,t[0],t[1]);this._windowListeners.clear();for(const t of this._canvasListeners.entries())this._compiler.removeEventListener(Nt.canvas,t[0],t[1]);this._canvasListeners.clear();for(const t of this._viewBubbles.values())t.release();this._viewBubbles.clear();for(const t of this._windowBubbles.values())t.release();this._windowBubbles.clear();for(const t of this._canvasBubbles.values())t.release();this._canvasBubbles.clear()}release(){this.clear(),this.globalInstance=null,this._compiler=null}_filter(t,e,i){var n,r,a;if(N(t.filter)&&!t.filter(i)||t.nodeName&&Pt(i,"node.name")!==t.nodeName||t.markName&&((n=i==null?void 0:i.mark)===null||n===void 0?void 0:n.name)!==t.markName)return!1;let o=(r=i.model)===null||r===void 0?void 0:r.type;return qC[o]&&(o=qC[o]),(!t.type||o===t.type)&&!(t.level==="mark"&&!t.type&&!(i!=null&&i.mark))&&!(t.level==="model"&&!t.type&&!(i!=null&&i.model))&&(!E(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(),n=e.itemMap.get(i),r=n==null?void 0:n.getDatum();return Object.assign(Object.assign({},e),{item:n,datum:r})}return Object.assign({},e)}_invoke(t,e,i){return t.map(n=>{var r,a,o;const l=n.filter;if(!n.query||this._filter(l,e,i)){const h=(n.wrappedCallback||n.callback).call(null,this._prepareParams(l,i)),d=h??((r=n.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(n=>n===!0)}_getQueryLevel(t){return t?t.level?t.level:E(t.id)?le.model:le.vchart:le.vchart}_parseQuery(t){var e;const i=t.query;i!=null&&i.throttle?t.wrappedCallback=Ka(t.callback,i.throttle):i!=null&&i.debounce&&(t.wrappedCallback=or(t.callback,i.debounce));let n=this._getQueryLevel(i),r=null,a=Nt.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)||n!==le.model&&n!==le.mark||(r=i.type),i!=null&&i.source&&(a=i.source),E(i==null?void 0:i.id)&&(h=i==null?void 0:i.id,n=le.model),t.filter={level:n,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 Nt.chart:return this._viewBubbles;case Nt.window:return this._windowBubbles;case Nt.canvas:return this._canvasBubbles;default:return this._viewBubbles}}getEventListeners(t){switch(t){case Nt.chart:return this._viewListeners;case Nt.window:return this._windowListeners;case Nt.canvas:return this._canvasListeners;default:return this._viewListeners}}_isValidEvent(t){return lZ.includes(t)||Object.values(pt).includes(t)}_isInteractionEvent(t){let e;return t&&(e=t.split(":")[0],e)&&Q.hasInteraction(e)}}function Mt(s,t,e){s.getTransform(t)||s.registerTransform(t,e)}function Rr(s,t,e){s.getParser(t)||s.registerParser(t,e)}const Zo=new Map;let Tl;function nQ(){Tl||(Tl=new Va,Rr(Tl,"geojson",WR),Rr(Tl,"topojson",AH),Mt(Tl,"simplify",rH))}function sQ(s,t,e={type:"geojson",centroid:!0}){Zo.has(s)&&sr(`map type of '${s}' already exists, will be overwritten.`),nQ();const i=new $t(Tl),n=U({},{centroid:!0,simplify:!1},e);e.type==="topojson"?i.parse(t,{type:"topojson",options:n}):i.parse(t,{type:"geojson",options:n});const{simplify:r}=e;r===!0?i.transform({type:"simplify"}):Et(r)&&i.transform({type:"simplify",options:r}),Zo.set(s,i)}function rQ(s){Zo.has(s)?Zo.delete(s):sr(`map type of '${s}' does not exists.`)}function aQ(s){return Zo.get(s)}function ZC(s,t=!1){let e=t;return s.latestData instanceof $t&&(e=!1),e?pn(s.latestData):s.latestData.slice()}const h0=(s,t)=>s.length===0?[]:s.length===1?ZC(s[0],t==null?void 0:t.deep):s.map(e=>ZC(e,t==null?void 0:t.deep));function Dx(s,t,e){t=t instanceof Va?t:s.dataSet,Mt(t,"copyDataView",h0);const i=new $t(t,e);return i.parse([s],{type:"dataview"}),i.transform({type:"copyDataView",level:Fs.copyDataView}),i}function S1(s,t,e=[],i={}){var n,r,a;if(s instanceof $t)return s;const{id:o,values:l=[],fromDataIndex:h,fromDataId:d,transforms:c=[]}=s,u=s.parser?pn(s.parser):{clone:!0},p=pn(s.fields);let g;u.clone=u.clone!==!1;const f=e.find(_=>_.name===o);if(f)g=f;else{const _={name:o};if(p&&(_.fields=p),g=new $t(t,_),typeof d=="string"){const m=e.find(y=>y.name===d);if(!m)return((n=i.onError)!==null&&n!==void 0?n:jo)(`no data matches fromDataId ${d}`),null;g.parse([m],{type:"dataview"}),g.transform({type:"copyDataView"})}else if(typeof h=="number"){const m=e[h];if(!m)return((r=i.onError)!==null&&r!==void 0?r:jo)(`no data matches fromDataIndex ${h}`),null;g.parse([m],{type:"dataview"}),g.transform({type:"copyDataView"})}else Array.isArray(l)?g.parse(l,u):!at(l)||u&&!["csv","dsv","tsv"].includes(u.type)?(g.parse([]),sr("values should be array")):g.parse(l,(a=u)!==null&&a!==void 0?a:{type:"csv"});c&&c.length&&c.forEach(m=>{t.getTransform(m.type)&&g.transform(m)})}return g}function A1(s,t,e){s&&(t.fields&&s.setFields(t.fields,e),s.parseNewData(t.values,t.parser))}var Fs;(function(s){s[s.copyDataView=-10]="copyDataView",s[s.treemapFilter=-8]="treemapFilter",s[s.treemapFlatten=-7]="treemapFlatten",s[s.dotObjFlat=-7]="dotObjFlat",s[s.linkDotInfo=-7]="linkDotInfo",s[s.sankeyLayout=-7]="sankeyLayout",s[s.dataZoomFilter=-6]="dataZoomFilter",s[s.legendFilter=-5]="legendFilter"})(Fs||(Fs={}));const oQ=(s,t)=>{const e={nodes:{}},{fields:i}=t;if(!(i!=null&&i.length))return e;const n=i.length-1;let r,a,o=e;return s.forEach(l=>{l.latestData.forEach(h=>{o=e;for(let d=0;d{var i,n;(n=(i=this._compileChart)===null||i===void 0?void 0:i.getEvent())===null||n===void 0||n.emit(ft.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,n;if(this._released||(this.isInited=!0,this._view))return;const r=new Lt((t=this._option.logLevel)!==null&&t!==void 0?t:Hn.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 ll(Object.assign(Object.assign({width:this._width,height:this._height,container:(i=this._container.dom)!==null&&i!==void 0?i:null,renderCanvas:(n=this._container.canvas)!==null&&n!==void 0?n:null,hooks:this._option.performanceHook},this._option),{mode:lQ(this._option.mode),autoFit:!1,eventConfig:{gesture:Ga(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&&!at(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 n;if(i.regionId){const r=`${i.regionId}-${i.type}-${(n=i.id)!==null&&n!==void 0?n:""}`,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 n=this._view.interaction(e[i].type,e[i]);if(this._compileChart){const r=this._compileChart.getRegionsInIds([e[i].regionId])[0];r&&r.interaction.addVgrammarInteraction(n.getStartState(),n)}})}}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())}clear(t,e=!1){const{chart:i}=t;i.clear(),this.releaseGrammar(e)}renderNextTick(t){this._released||this._nextRafId||(this._nextRafId=Ot.getRequestAnimationFrame()(()=>{this._nextRafId=null,this.render(t)}))}render(t){var e,i;this._released||(this._nextRafId&&(Ot.getCancelAnimationFrame()(this._nextRafId),this._nextRafId=null),this._isRunning||(this.initView(),this._view&&(this._isRunning=!0,(e=this._view)===null||e===void 0||e.run(t),this._isRunning=!1,this._nextRafId&&(Ot.getCancelAnimationFrame()(this._nextRafId),this._nextRafId=null,this._isRunning=!0,(i=this._view)===null||i===void 0||i.run(t),this._isRunning=!1))))}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 n,r;if(this._option.interactive!==!1){if(t===Nt.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:{},p=E(u.modelId)?u.modelId:null,g=E(u.markId)?u.markId:null,f=E(u.modelUserId)?u.modelUserId:null,_=E(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:g,modelId:p,markUserId:_,modelUserId:f};i.call(null,m)}).bind(this);this._viewListeners.set(i,{type:e,callback:a}),(n=this._view)===null||n===void 0||n.addEventListener(e,a)}else if(t===Nt.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===Nt.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 n,r,a,o,l;if(this._option.interactive!==!1){if(t===Nt.chart){const h=(n=this._viewListeners.get(i))===null||n===void 0?void 0:n.callback;h&&((r=this._view)===null||r===void 0||r.removeEventListener(e,h)),this._viewListeners.delete(i)}else if(t===Nt.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===Nt.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.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(),n=t.grammarType;P(this._model[n][i])&&(this._model[n][i]={}),this._model[n][i][t.id]=t}removeGrammarItem(t,e){var i;const n=t.getProduct();if(P(n))return;const r=n.id(),a=t.grammarType,o=this._model[a][r];E(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(n)}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 E(t)&&t.length>0?t.every(e=>e.updateDepend()):(Object.values(this._model).forEach(e=>{Object.values(e).forEach(i=>{const n=Object.values(i),r=n[0].getProduct(),a=n.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 Nn(this._option.mode)?globalThis:(t=this.getStage())===null||t===void 0?void 0:t.window}}var dQ=function(s,t,e,i){return new(e||(e=Promise))(function(n,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?n(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(s,t||[])).next())})};function cQ(s="vchart",t){const e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank"),e.setAttribute("download",`${s}.png`),e.dispatchEvent(new MouseEvent("click"))}function uQ(s){return new Promise(t=>{s.convertToBlob().then(e=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{t(i.result)}})})}function pQ(s,t){var e;return dQ(this,void 0,void 0,function*(){if(!s)return"";try{if(OffscreenCanvas!==void 0&&s instanceof OffscreenCanvas)return uQ(s)}catch(i){((e=t==null?void 0:t.onError)!==null&&e!==void 0?e:jo)(`getCanvasDataURL error : ${i.toString()}`)}return s.toDataURL()})}function Qa(s){s.crosshair=V(s.crosshair||{}).map(t=>vt({[s.direction==="horizontal"?"yField":"xField"]:{visible:!0,line:{visible:!0,type:"rect"}}},t))}function f2(s,t,e){var i;const{width:n,height:r}=s;if(E(n)&&E(r))return{width:n,height:r};let a=e.width,o=e.height;const l=t.container,h=t.canvas;if(l){const{width:d,height:c}=dy(l,e.width,e.height);a=d,o=c}else if(h&&Nn(t.mode)){let d;d=at(h)?document==null?void 0:document.getElementById(h):h;const{width:c,height:u}=dy(d,e.width,e.height);a=c,o=u}else if(qa(t.mode)&&(!((i=t.modeParams)===null||i===void 0)&&i.domref)){const d=t.modeParams.domref;a=d.width,o=d.height}return a=n??a,o=r??o,{width:a,height:o}}function Ml(s,...t){const e=i=>t.reduce((n,r)=>n||(r==null?void 0:r[i]),s[i]);return Object.assign(s,{change:e("change"),reCompile:e("reCompile"),reMake:e("reMake"),reRender:e("reRender"),reSize:e("reSize"),reTransformSpec:e("reTransformSpec")}),s}function _2(s,t){return s==="line"||s==="area"||s==="common"&&t.series.every(e=>e.type==="area"||e.type==="line")?{paddingInner:1,paddingOuter:0}:{paddingOuter:0}}var lt;(function(s){s.STATE_NORMAL="normal",s.STATE_HOVER="hover",s.STATE_HOVER_REVERSE="hover_reverse",s.STATE_DIMENSION_HOVER="dimension_hover",s.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",s.STATE_SELECTED="selected",s.STATE_SELECTED_REVERSE="selected_reverse",s.STATE_SANKEY_EMPHASIS="selected",s.STATE_SANKEY_EMPHASIS_REVERSE="blur"})(lt||(lt={}));var Ld;(function(s){s.STATE_HOVER_REVERSE="hover_reverse",s.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",s.STATE_SELECTED_REVERSE="selected_reverse"})(Ld||(Ld={}));class _h{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,U({},_h.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=V(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]))}}_h.defaultMarkInfo={};class gQ{get hover(){return this._hover}get select(){return this._select}constructor(t){this._marks=new _h,this._markReverse=new _h,this.onHover=e=>{switch(e.action){case"enter":this.interaction.getEventElement(lt.STATE_DIMENSION_HOVER).forEach(i=>this.interaction.addEventElement(lt.STATE_DIMENSION_HOVER_REVERSE,i)),this.interaction.clearEventElement(lt.STATE_DIMENSION_HOVER,!1),this.getEventElement(e).forEach(i=>this.interaction.addEventElement(lt.STATE_DIMENSION_HOVER,i)),this.interaction.reverseEventElement(lt.STATE_DIMENSION_HOVER);break;case"leave":this.interaction.clearEventElement(lt.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){mt(t.stateStyle[lt.STATE_DIMENSION_HOVER])||this._marks.addMark(t),mt(t.stateStyle[lt.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(n=>{n.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=G(d)?d.every((u,p)=>u===r.datum[p]):r.datum.some(u=>u===d),e?!c:c});i.push(...l)})})}),i}}function fQ(s,t,e){var i;const n=(i=t[s])===null||i===void 0?void 0:i.style;return _Q(s,n)||N(n)?!0:!(!(n!=null&&n.scale)||n.field===e)}function _Q(s,t){return(s==="fill"||s==="stroke")&&(t==null?void 0:t.gradient)&&(t==null?void 0:t.stops)}const m2={};Object.values(lt).forEach(s=>{m2[s]=!0});function mQ(s){return!!m2[s]}const vQ={[lt.STATE_HOVER]:lt.STATE_HOVER_REVERSE,[lt.STATE_SELECTED]:lt.STATE_SELECTED_REVERSE,[lt.STATE_DIMENSION_HOVER]:lt.STATE_DIMENSION_HOVER_REVERSE};function jp(s){return vQ[s]}class yQ{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!mt(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 n=jp(t);(i=this._stateElements.get(t))===null||i===void 0||i.forEach(r=>{r.removeState(t),n&&this.addEventElement(n,r)}),e.getStates().includes(t)||(e.addState(t),n&&e.removeState(n)),this._stateElements.set(t,[e])}removeEventElement(t,e){var i,n;if(this._disableTriggerEvent)return;e.removeState(t);const r=(n=(i=this._stateElements.get(t))===null||i===void 0?void 0:i.filter(o=>o!==e))!==null&&n!==void 0?n:[];this._stateElements.set(t,r);const a=jp(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 n=(i=this._stateElements.get(t))!==null&&i!==void 0?i:[];n.push(e),this._stateElements.set(t,n)}clearEventElement(t,e){var i;if(!this._disableTriggerEvent&&((i=this._stateElements.get(t))===null||i===void 0||i.forEach(n=>{n.removeState(t)}),this._stateElements.set(t,[]),e)){const n=jp(t);n&&this.clearEventElement(n,!1)}}reverseEventElement(t){if(this._disableTriggerEvent)return;const e=jp(t);if(!e)return;const i=this.getStateMark(e);if(!i)return;const n=this.getEventElement(t);n.length&&(this.getEventElement(e).length||(n.length===1?i.forEach(r=>{r.getProduct().elements.filter(a=>a!==n[0]).forEach(a=>{this.addEventElement(e,a)})}):i.forEach(r=>{r.getProduct().elements.filter(a=>!n.includes(a)).forEach(a=>{this.addEventElement(e,a)})})))}startInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(n=>{n.start(e)})}resetInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(n=>{n.reset(e)})}}class d0{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 k1 extends d0{constructor(){super(...arguments),this.id=rl(),this._compiledProductId=null,this._depend=[]}getProduct(){if(E(this._product))return this._product;const t=this.getVGrammarView(),e=this.getProductId();return E(e)&&E(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;E(this._product)&&((e=this.getCompiler())===null||e===void 0||e.addGrammarItem(this))}updateDepend(){if(E(this._product)){const t=this.getDepend().map(e=>e.getProduct()).filter(E);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 bQ extends k1{getValue(){return this._value}getUpdateFunc(){return this._updateFunc}constructor(t,e,i,n){super(t),this.grammarType=Ea.signal,this.name=e,this._value=i,this._updateFunc=n}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}E(this._value)&&this._product.value(this._value),E(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 xQ extends d0{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 bQ(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 v2 extends xQ{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 n=this.stateKeyToSignalName(i),r=e[i];this.updateSignal(n,r)})}updateState(t,e){if(t&&(U(this._stateMap,t),this.compile(t),!e))return this.getCompiler().renderNextTick()}}class y2 extends v2{constructor(){super(...arguments),this.id=rl(),this.stateKeyToSignalName=t=>`${bt}_animate_${this.id}_${t}`}getAnimationStateSignalName(){return this.stateKeyToSignalName("animationState")}updateAnimateState(t,e){t===oi.update?this.updateState({animationState:{callback:(i,n)=>n.diffState}},e):t===oi.appear?this.updateState({animationState:{callback:(i,n)=>n.diffState==="exit"?oi.none:oi.appear}},e):this.updateState({animationState:{callback:(i,n)=>t}},e)}_getDefaultStateMap(){return{animationState:{callback:(t,e)=>e.diffState==="exit"?oi.exit:oi.appear}}}}class c0{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 n=this._initTheme(t,e);return this._transformSpecAfterMergingTheme(n.spec,e,i),n}_transformSpecBeforeMergingTheme(t,e,i){}_transformSpecAfterMergingTheme(t,e,i){}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const n=this._getDefaultSpecFromChart(e),r=a=>vt({},i,n,a);return G(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 T1 extends d0{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}getMarkInfoList(){return this.getMarks().map(t=>({type:t.type,name:t.name}))}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=c0,this.type="null",this.modelType="null",this.userId=void 0,this._data=null,this._layout=null,this.specKey="",this._marks=new _h,this._lastLayoutRect=null,this.id=rl(),this.userId=t.id,this._spec=t,this.effect={},this.event=new l0(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 n;(n=this._layout)===null||n===void 0||n.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,n){E(t)&&E(e)&&t.setStyle(this._convertMarkStyle(e),i,n)}initMarkStyleWithSpec(t,e,i){if(!E(t)||!E(e))return;const{style:n,state:r}=e,a=Object.assign({},e);n&&(a.style=this._convertMarkStyle(n)),r&&(a.state={},Object.keys(r).forEach(o=>{a.state[o]=this._convertMarkStyle(r[o])})),t.initStyleWithSpec(a,i)}stateKeyToSignalName(t,e){let i=`${bt}_${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={}){const{type:i,name:n}=t,r=D.createMark(i,n,Object.assign({model:this,map:this._option.map,getCompiler:this.getCompiler,globalScale:this._option.globalScale},e));return r==null||r.created(),r}_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 n=(i=(e=(t=this._option).getSpecInfo)===null||e===void 0?void 0:e.call(t))!==null&&i!==void 0?i:{};return A7(n,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 SQ{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:kn,height:kn},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=Ds.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,n,r,a;if(this._spec&&this._spec.visible!==!1){const o=jr(t.padding),l=KO(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:Gi(t.minHeight,e.height,e),this._maxHeight=P(t.maxHeight)?(n=this._maxHeight)!==null&&n!==void 0?n:null:Gi(t.maxHeight,e.height,e),this._minWidth=P(t.minWidth)?(r=this._minWidth)!==null&&r!==void 0?r:null:Gi(t.minWidth,e.width,e),this._maxWidth=P(t.maxWidth)?(a=this._maxWidth)!==null&&a!==void 0?a:null:Gi(t.maxWidth,e.width,e),t.width&&this.setLayoutRect({width:Gi(t.width,e.width,e)},{width:aa}),t.height&&this.setLayoutRect({height:Gi(t.height,e.height,e)},{height:aa}),P(t.offsetX)||(this.layoutOffsetX=Gi(t.offsetX,e.width,e)),P(t.offsetY)||(this.layoutOffsetY=Gi(t.offsetY,e.height,e)),t.alignSelf&&(this.alignSelf=t.alignSelf)}}setAttrFromSpec(t,e){var i,n,r,a;this._spec=t,this.layoutType=(i=t.layoutType)!==null&&i!==void 0?i:this.layoutType,this.layoutLevel=(n=t.layoutLevel)!==null&&n!==void 0?n: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]=Gi(this._spec[i],i==="top"||i==="bottom"?t.height:t.width,t))}),e}absoluteLayoutInRect(t){const{top:e,bottom:i,left:n,right:r}=this._getAbsoluteSpecValue(t),a={width:t.width-this.layoutPaddingLeft-this.layoutPaddingRight,height:t.height-this.layoutPaddingTop-this.layoutPaddingBottom};P(n)||(a.width-=n),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(n)?P(r)||(h.x=t.x+t.width-this.layoutPaddingRight-r-o):h.x=t.x+n+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)),W(t.x)&&(this._layoutStartPoint.x=t.x),W(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 n,r,a,o;W(t)&&((n=i==null?void 0:i.width)!==null&&n!==void 0?n:kn)>=this._layoutRectLevelMap.width&&(this._layoutRect.width=t,this._layoutRectLevelMap.width=(r=i==null?void 0:i.width)!==null&&r!==void 0?r:kn),W(e)&&((a=i==null?void 0:i.height)!==null&&a!==void 0?a:kn)>=this._layoutRectLevelMap.height&&(this._layoutRect.height=e,this._layoutRectLevelMap.height=(o=i==null?void 0:i.height)!==null&&o!==void 0?o:kn),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>kn&&(i.width=this._layoutRect.width),this._layoutRectLevelMap.height>kn&&(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>kn&&(t.x2=t.x1+this._layoutRect.width),this._layoutRectLevelMap.height>kn&&(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(MZ(e,t));return this._option.transformLayoutRect&&(i=this._option.transformLayoutRect(i)),i}getModelId(){return this._model.id}getModelVisible(){return this._model.getVisible()}}class b2 extends T1{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 SQ(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&&be(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=U(this._layoutStartPos,t)}getLayoutRect(){return this._layout?this._layout.getLayoutRect():this._layoutRect}setLayoutRect(t,e){return this._layout?this._layout.setLayoutRect(t):this._lastLayoutRect=U(this._layoutRect,t)}getLastComputeOutBounds(){var t;return(t=this._layout)===null||t===void 0?void 0:t.getLastComputeOutBounds()}setAttrFromSpec(){var t,e,i,n,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=(n=this._spec.orient)!==null&&n!==void 0?n:this._orient,this.layoutLevel=(r=this._spec.layoutLevel)!==null&&r!==void 0?r:this.layoutLevel}}class x2 extends c0{_initTheme(t,e){return{spec:t,theme:this._theme}}}class eh extends b2{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=x2,this.modelType="region",this.specKey="region",this.type=eh.type,this._series=[],this.layoutType="region",this.layoutZIndex=re.Region,this.interaction=new yQ,this.seriesDataFilterOver=()=>{this.event.emit(ft.regionSeriesDataFilterOver,{model:this,chart:this.getChart()}),this._series.forEach(n=>{n.getViewDataFilter()&&n.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 y2({getCompiler:e.getCompiler})),this.interaction.setDisableActiveEffect(this._option.disableTriggerEvent)}_getClipDefaultValue(){var t,e,i,n;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=(n=(i=r.scrollBar)===null||i===void 0?void 0:i.some)===null||n===void 0?void 0:n.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;this.initLayout(),super.created();const e=(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",this.userId+"_interaction",re.Interaction),mt(this._spec.style)||(this._backgroundMark=this._createMark({type:"rect",name:"regionBackground"}),e&&(this._foregroundMark=this._createMark({type:"rect",name:"regionForeground"})),[this._backgroundMark,this._foregroundMark].forEach(i=>{i&&(i.created(),this.setMarkStyle(i,{width:()=>this.getLayoutRect().width,height:()=>this.getLayoutRect().height},"normal",tt.Built_In),this._groupMark.addMark(i))}),this._backgroundMark&&this._backgroundMark.setZIndex(0),this._foregroundMark&&this._foregroundMark.setZIndex(re.Mark+1)),this.createTrigger()}_createGroupMark(t,e,i){var n,r;const a=this._createMark({type:"group",name:t});a.setUserId(e),a.setZIndex(i);const o=(n=this._spec.clip)!==null&&n!==void 0?n: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",tt.Built_In),this.setMarkStyle(a,{cornerRadius:(r=this._spec.style)===null||r===void 0?void 0:r.cornerRadius},"normal",tt.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",tt.User_Mark),((e=this._spec.clip)!==null&&e!==void 0?e:this._getClipDefaultValue())&&this.setMarkStyle(this._backgroundMark,{strokeOpacity:0},"normal",tt.Built_In))}_initForegroundMarkStyle(){this._foregroundMark&&this.setMarkStyle(this._foregroundMark,Object.assign(Object.assign({},this._spec.style),{fillOpacity:0}),"normal",tt.User_Mark)}_compareSpec(t,e){const i=super._compareSpec(t,e);return be(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,n;return(!t.name||(e==null?void 0:e.name)===t.name)&&(!t.userId||V(t.userId).includes(e.userId))&&(!E(t.specIndex)||V(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||((n=(i=e.getRawData)===null||i===void 0?void 0:i.call(e))===null||n===void 0?void 0:n.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 gQ(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 Ld)mt(e.stateStyle[Ld[i]])||this.interaction.registerMark(Ld[i],e)})})}compileMarks(t){this.getMarks().forEach(e=>{var i;e.compile({group:t}),(i=e.getProduct())===null||i===void 0||i.configure({context:{model:this}}).layout((n,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)}}eh.type="region",eh.transformerConstructor=x2,eh.specKey="region";function u0(s){const t=[],e=[],i=[];return s.forEach(n=>{P(n.getSpec().position)||n.getSpec().position==="start"?t.push(n):n.getSpec().position==="middle"?e.push(n):n.getSpec().position==="end"&&i.push(n)}),{startItems:t,endItems:i,middleItems:e}}function S2(s,t,e){t?s.forEach(i=>{const n=Aa(i),r=n.getLayoutStartPoint().y+n.getLayoutRect().height-i[0].getLayoutStartPoint().y,a=(e-r)/2;i.forEach(o=>{o.setLayoutStartPosition({x:o.getLayoutStartPoint().x,y:o.getLayoutStartPoint().y+a})})}):s.forEach(i=>{const n=Aa(i),r=n.getLayoutStartPoint().x+n.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 p0(s,t,e,i){let n;s.forEach((r,a)=>{r.length>1&&(n=e[a],r.forEach(o=>{if(!o.alignSelf||o.alignSelf==="start")return;const l=o.getLayoutStartPoint(),h=o.alignSelf==="middle"?.5:1,d=t?n-(o.getLayoutRect().width+o.layoutPaddingLeft+o.layoutPaddingRight):n-(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 S_(s,t,e,i,n){if(s.length){let r=0;const a=n==="right",o=a?-1:1;let l=a?t.rightCurrent:t.leftCurrent,h=t.topCurrent;const d=[];let c=[];const u=[];s.forEach(p=>{const g=t.getItemComputeLayoutRect(p),f=p.computeBoundsInRect(g);p.setLayoutRect(f);const _=f.height+p.layoutPaddingTop+p.layoutPaddingBottom,m=f.width+p.layoutPaddingLeft+p.layoutPaddingRight,y=a?-f.width-p.layoutPaddingRight:p.layoutPaddingLeft;p.setLayoutStartPosition({x:l+p.layoutOffsetX+y,y:h+p.layoutOffsetY+p.layoutPaddingTop}),h+=_,h>e&&c.length?(u.push(r),l+=o*r,r=m,h=t.topCurrent+_,p.setLayoutStartPosition({x:l+p.layoutOffsetX+y,y:t.topCurrent+p.layoutOffsetY+p.layoutPaddingTop}),d.push(c),c=[p]):(r=Math.max(r,m),c.push(p))}),u.push(r),d.push(c),p0(d,!0,u,o),i&&S2(d,!0,e),a?t.rightCurrent=l+o*r:t.leftCurrent=l+o*r}}function A2(s,t,e,i){if(s.length){let n=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=[];s.forEach(u=>{const p=t.getItemComputeLayoutRect(u),g=u.computeBoundsInRect(p);u.setLayoutRect(g);const f=g.height+u.layoutPaddingTop+u.layoutPaddingBottom,_=g.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=r?-g.width-u.layoutPaddingRight:u.layoutPaddingLeft;l{const g=t.getItemComputeLayoutRect(p),f=p.computeBoundsInRect(g);p.setLayoutRect(f);const _=f.height+p.layoutPaddingTop+p.layoutPaddingBottom,m=f.width+p.layoutPaddingLeft+p.layoutPaddingRight,y=r?p.layoutPaddingTop:-f.height-p.layoutPaddingBottom;p.setLayoutStartPosition({x:l+p.layoutOffsetX+p.layoutPaddingLeft,y:h+p.layoutOffsetY+y}),l+=m,l>e&&c.length?(u.push(o),l=t.leftCurrent+m,h+=a*o,o=_,p.setLayoutStartPosition({x:t.leftCurrent+p.layoutOffsetX+p.layoutPaddingLeft,y:h+p.layoutOffsetY+y}),d.push(c),c=[p]):(o=Math.max(o,_),c.push(p))}),u.push(o),d.push(c),p0(d,!1,u,a),i&&S2(d,!1,e),r?t.topCurrent=h+a*o:t.bottomCurrent=h+a*o}}function k2(s,t,e,i){if(s.length){const n=i==="top",r=n?1:-1;let a=0,o=t.rightCurrent,l=n?t.topCurrent:t.bottomCurrent;const h=[];let d=[];const c=[];s.forEach(u=>{const p=t.getItemComputeLayoutRect(u),g=u.computeBoundsInRect(p);u.setLayoutRect(g);const f=g.height+u.layoutPaddingTop+u.layoutPaddingBottom,_=g.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=n?u.layoutPaddingTop:-g.height-u.layoutPaddingBottom;o<_&&d.length?(o=t.rightCurrent,l+=r*a,a=f,u.setLayoutStartPosition({x:t.rightCurrent+u.layoutOffsetX-g.width-u.layoutPaddingRight,y:l+u.layoutOffsetY+m}),h.push(d),d=[u]):(d.push(u),u.setLayoutStartPosition({x:o+u.layoutOffsetX-g.width-u.layoutPaddingRight,y:l+u.layoutOffsetY+m}),a=Math.max(a,f),o-=_)}),c.push(a),h.push(d),p0(h,!1,c,r),n?t.topCurrent=l+r*a:t.bottomCurrent=l+r*a}}function AQ(s,t,e){const{startItems:i,middleItems:n,endItems:r}=u0(s);i.length&&S_(i,t,e,!1,"left"),n.length&&S_(n,t,e,!0,"left"),r.length&&A2(r,t,e,"left")}function kQ(s,t,e){const{startItems:i,middleItems:n,endItems:r}=u0(s);i.length&&S_(i,t,e,!1,"right"),n.length&&S_(n,t,e,!0,"right"),r.length&&A2(r,t,e,"right")}function TQ(s,t,e){const{startItems:i,middleItems:n,endItems:r}=u0(s);i.length&&A_(i,t,e,!1,"top"),n.length&&A_(n,t,e,!0,"top"),r.length&&k2(r,t,e,"top")}function MQ(s,t,e){const{startItems:i,middleItems:n,endItems:r}=u0(s);i.length&&A_(i,t,e,!1,"bottom"),n.length&&A_(n,t,e,!0,"bottom"),r.length&&k2(r,t,e,"bottom")}let M1=class{constructor(t,e){this.leftCurrent=0,this.topCurrent=0,this.rightCurrent=0,this.bottomCurrent=0,this._onError=e==null?void 0:e.onError}_layoutInit(t,e,i,n){this._chartLayoutRect=i,this._chartViewBox=n,this.leftCurrent=i.x,this.topCurrent=i.y,this.rightCurrent=i.x+i.width,this.bottomCurrent=i.height+i.y,e.sort((r,a)=>a.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"),n=t.filter(o=>o.layoutType==="region-relative-overlap"),r=i.concat(n),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 n.forEach(o=>{a[o.layoutOrient].items.push(o)}),{regionItems:e,relativeItems:i,relativeOverlapItems:n,allRelatives:r,overlapItems:a}}layoutItems(t,e,i,n){this._layoutInit(t,e,i,n),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,n={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,n))}}layoutNormalItems(t){t.forEach(e=>{const i=this.getItemComputeLayoutRect(e),n=e.computeBoundsInRect(i);e.setLayoutRect(n),e.layoutOrient==="left"?(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingLeft,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.leftCurrent+=n.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+=n.height+e.layoutPaddingTop+e.layoutPaddingBottom):e.layoutOrient==="right"?(e.setLayoutStartPosition({x:this.rightCurrent+e.layoutOffsetX-n.width-e.layoutPaddingRight,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.rightCurrent-=n.width+e.layoutPaddingLeft+e.layoutPaddingRight):e.layoutOrient==="bottom"&&(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingRight,y:this.bottomCurrent+e.layoutOffsetY-n.height-e.layoutPaddingBottom}),this.bottomCurrent-=n.height+e.layoutPaddingTop+e.layoutPaddingBottom)})}layoutNormalInlineItems(t){const e=t.filter(l=>l.layoutOrient==="left"),i=t.filter(l=>l.layoutOrient==="right"),n=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&&AQ(e,this,o),n.length&&TQ(n,this,a),i.length&&kQ(i,this,o),r.length&&MQ(r,this,a)}_layoutRelativeOverlap(t,e){e.items.forEach(i=>{const n=this.getItemComputeLayoutRect(i),r=i.computeBoundsInRect(n);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 n=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=>{a.setLayoutRect({width:n,height:r}),a.setLayoutStartPosition({x:this.leftCurrent+a.layoutOffsetX+a.layoutPaddingLeft,y:this.topCurrent+a.layoutOffsetY+a.layoutPaddingTop})}),{regionHeight:r,regionWidth:n}}layoutRegionItems(t,e,i,n={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",n.left),this._layoutRelativeOverlap("right",n.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",n.top),this._layoutRelativeOverlap("bottom",n.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 n=t.find(r=>r.getModelId()===e);return n||((i=this._onError)!==null&&i!==void 0?i:jo)("can not find target region item, invalid id"),n}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(n=>{if(!n.getModelVisible()||!n.autoIndent)return;const r=n.layoutOrient==="left"||n.layoutOrient==="right",a=n.getLastComputeOutBounds(),o=this._getOutInLayout(a,n,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:n,y:r}=e.getLayoutStartPoint(),{width:a,height:o}=e.getLayoutRect();return{left:i.left-(n-t.x1),right:n+a+t.x2-i.right,top:i.top-(r-t.y1),bottom:r+o+t.y2-i.bottom}}};M1.type="base";const wQ=["line","area","trail"];function Fv(s){return wQ.includes(s)}class CQ extends v2{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 n=t.fields[i];e.fields[i]=e.fields[i]||{};const r=e.fields[i];E(n.domain)&&(r.domain=n.domain),E(n.type)&&(r.type=n.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,n){var r;n=ge(Fv)?n:!t.mark||Fv(t.mark.markType);let a=!1,o=!1;if(E(i.datums)&&i.datums.length>0)a=this.checkDatumState(i,e,n),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,n),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=>mQ(r)).map(r=>[r,10]),n=!t.mark||Fv(t.mark.markType);for(let r=0;rr[0])}checkDatumState(t,e,i){let n=!1;const r=i?e[0]:e;if(G(t.datums)){const a=t.datumKeys||Object.keys(t.datums[0]).filter(o=>!o.startsWith(bt));n=t.datums.some(o=>i&&G(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 Et(t.datums)?n=(t.datumKeys||Object.keys(t.datums).filter(a=>!a.startsWith(bt))).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]}):n=e===t.datums;return n}checkItemsState(t,e){var i;return(i=t.items)===null||i===void 0?void 0:i.includes(e)}checkFieldsState(t,e,i,n){var r;let a=!0;for(const o in t.fields){const l=t.fields[o],h=l.type,d=l.domain,c=n?(r=e[0])===null||r===void 0?void 0:r[o]:e[o];if(ie(h)&&d.length>1){if(this.checkLinearFieldState(d,o,e,i,n)){a=!1;break}a=!0}else{if(!d.some(u=>u===c)){a=!1;break}a=!0}}return a}checkLinearFieldState(t,e,i,n,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,n)=>this.checkState(n,i)},e)}}class rr extends k1{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=Ea.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 n=this.getVGrammarView();if(!n||!t)return;const r=this.getProductId();this._product=(i=(e=n==null?void 0:n.data)===null||e===void 0?void 0:e.call(n,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 PQ extends rr{constructor(t){super(t),this._mark=t.mark}setCompiledProductId(t){this._compiledProductId=t}generateProductId(){const t=super.generateProductId();return E(t)?t:`${bt}_markData_${this._mark.id}`}_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;P(e)||E(this.getProduct())||this._initProduct(e)}}var JC=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{this._unCompileChannel[a]||(this._option.noSeparateStyle||fQ(a,i,this.getFacet())?r[a]={callback:this.compileCommonAttributeCallback(a,"normal"),dependency:[this.stateKeyToSignalName("markUpdateRank")]}:n[a]=this.compileCommonAttributeCallback(a,"normal"))}),{enterStyles:n,updateStyles:r}}compileEncode(){const t=this.stateStyle,e=lt.STATE_NORMAL,i=(t[e],JC(t,[typeof e=="symbol"?e:e+""])),{enterStyles:n,updateStyles:r}=this._separateStyle();this._product.encode(r,!0),this._product.encodeState("group",n,!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,n;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=(n=a==null?void 0:a.animate)===null||n===void 0?void 0:n.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._event.on(pt.ANIMATION_END,({event:a})=>{a.mark===this.getProduct()&&a.animationState===oi.appear&&this.runAnimationByState(oi.normal)})}}compileContext(){const t={interactive:this.getInteractive(),zIndex:this.getZIndex(),context:{markId:this.id,modelId:this.model.id,markUserId:this._userId,modelUserId:this.model.userId},skipTheme:this.getSkipTheme(),support3d:this.getSupport3d(),enableSegments:!!this._enableSegments,clip:!!this._clip||this._clip!==!1&&void 0,clipPath:this._clip||void 0};this._progressiveConfig&&(t.progressiveStep=this._progressiveConfig.progressiveStep,t.progressiveThreshold=this._progressiveConfig.progressiveThreshold,t.large=this._progressiveConfig.large,t.largeThreshold=this._progressiveConfig.largeThreshold),this._morph&&this._morphKey&&(t.morph=this._morph,t.morphKey=this._morphKey,t.morphElementKey=this._morphElementKey),this._setCustomizedShape&&(t.setCustomizedShape=this._setCustomizedShape),this._product.configure(t)}compileSignal(){this.state.compile()}_computeAttribute(t,e){return(i,n)=>{}}compileCommonAttributeCallback(t,e){const i=this._computeAttribute(t,e),n={mark:null,parent:null,element:null};return(r,a)=>(n.mark=a.mark,n.parent=a.mark.group,n.element=a,i(r,n))}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 QC=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);ne(t(...i)):e(t)}convertAngleToRadian(t){return this._transformStyleValue(t,Qt)}isUserLevel(t){return[tt.User_Mark,tt.User_Series,tt.User_Chart].includes(t)}setStyle(t,e="normal",i=0,n=this.stateStyle){if(P(t))return;n[e]===void 0&&(n[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,n),this.setAttribute(a,o,e,i,n))})}getStyle(t,e="normal"){var i;return(i=this.stateStyle[e][t])===null||i===void 0?void 0:i.style}_filterAttribute(t,e,i,n,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)}return o}setReferer(t,e,i,n=this.stateStyle){var r;if(t)if(e&&i){const a=(r=n[i])!==null&&r!==void 0?r:{[e]:{}};n[i][e]=Object.assign(Object.assign({},a[e]),{referer:t})}else Object.entries(n).forEach(([a,o])=>{Object.entries(o).forEach(([l,h])=>{n[a][l].referer=t})})}setPostProcess(t,e,i="normal"){var n;!((n=this.stateStyle[i])===null||n===void 0)&&n[t]&&(this.stateStyle[i][t].postProcess=e)}getAttribute(t,e,i="normal",n){return this._computeAttribute(t,i)(e,n)}setAttribute(t,e,i="normal",n=0,r=this.stateStyle){var a;r[i]===void 0&&(r[i]={}),r[i][t]===void 0&&(r[i][t]={level:n,style:e,referer:void 0});const o=(a=r[i][t])===null||a===void 0?void 0:a.level;E(o)&&o<=n&&vt(r[i][t],{style:e,level:n}),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(Lb(t.type)||t.scale){const e=AZ(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 n=(i=this.stateStyle[e])===null||i===void 0?void 0:i[t];n||(n=this.stateStyle.normal[t]);const r=this._computeStateAttribute(n,t,e),a=N(n==null?void 0:n.postProcess),o=t in this._computeExChannel;if(a&&o){const l=this._computeExChannel[t];return(h,d)=>{let c=r(h,d);return c=n.postProcess(c,h,this._attributeContext,d,this.getDataView()),l(t,h,e,d,c)}}if(a)return(l,h)=>n.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 n;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()):RC.includes(t.style.gradient)?this._computeGradientAttr(t.style):["outerBorder","innerBorder"].includes(e)?this._computeBorderAttr(t.style):Lb((n=t.style.scale)===null||n===void 0?void 0:n.type)?(r,a)=>t.style.scale.scale(r[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",tt.User_Mark,e);const n=t.state;n&&Object.keys(n).forEach(r=>{const a=n[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,tt.User_Mark,e)}else this.setStyle(a,r,tt.User_Mark,e)})}_computeGradientAttr(t){var e,i;const{gradient:n,scale:r,field:a}=t,o=QC(t,["gradient","scale","field"]);let l=r,h=a;if(!(r&&a||this.model.modelType!=="series")){const{scale:u,field:p}=this.model.getColorAttribute();r||(l=u),h||(h=p)}const d=Cx(eu(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({},gZ[n]),o);return(u,p)=>{const g={},f=this.getDataView();return Object.keys(c).forEach(_=>{const m=c[_];_==="stops"?g.stops=m.map(y=>{const{opacity:v,color:b,offset:x}=y;let A=b??(l==null?void 0:l.scale(u[h]));return N(b)&&(A=b(u,this._attributeContext,p,f)),E(v)&&(A=cn.SetOpacity(A,v)),{offset:N(x)?x(u,this._attributeContext,p,f):x,color:A||d[0]}}):N(m)?g[_]=m(u,this._attributeContext,p,f):g[_]=m}),g.gradient=n,g}}_computeBorderAttr(t){const{scale:e,field:i}=t,n=QC(t,["scale","field"]);return(r,a)=>{var o,l,h;const d={};if(Object.keys(n).forEach(c=>{const u=n[c];N(u)?d[c]=u(r,this._attributeContext,a,this.getDataView()):d[c]=u}),"stroke"in d)RC.includes((h=n.stroke)===null||h===void 0?void 0:h.gradient)&&(d.stroke=this._computeGradientAttr(n.stroke)(r,a));else{const c=Cx(eu(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,p=i;if(!(e&&i||this.model.modelType!=="series")){const{scale:g,field:f}=this.model.getColorAttribute();e||(u=g),p||(p=f),d.stroke=(u==null?void 0:u.scale(r[p]))||c[0]}}return d}}}class nu extends Oi{constructor(){super(...arguments),this.type=nu.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)?(sr("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?(sr("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.getZIndex()}),t!=null&&t.ignoreChildren||this.getMarks().forEach(e=>{e.getProduct()&&e.removeProduct(),e.compile({group:this._product})})}}nu.type="group";const T2=()=>{QX(),D.registerMark(nu.type,nu)},RQ={type:"clipIn"},BQ={type:"fadeIn"},IQ=s=>({type:s.direction==="horizontal"?"growPointsXIn":"growPointsYIn",options:{orient:s.direction==="horizontal"?"positive":"negative"}});function LQ(s,t){switch(t){case"grow":return IQ(s);case"fadeIn":return BQ;default:return RQ}}const va={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"}},w1={appear:{type:"scaleIn"},enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:{type:"scaleOut"}},g0={appear:{type:"fadeIn"},enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}},f0=()=>{D.registerAnimation("scaleInOut",()=>w1)},Yr=()=>{D.registerAnimation("fadeInOut",()=>g0)},OQ=()=>{D.registerAnimation("cartesianGroupClip",s=>({appear:{custom:Sk,customParameters:(t,e)=>({animationType:"in",group:e.getGraphicItem(),direction:s.direction(),width:s.width(),height:s.height(),orient:s.orient()})},disappear:{custom:Sk,customParameters:(t,e)=>({animationType:"out",group:e.getGraphicItem(),direction:s.direction(),width:s.width(),height:s.height(),orient:s.orient()})}}))},M2=()=>{D.registerAnimation("line",(s,t)=>({appear:LQ(s,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},update:[{type:"update",options:{excludeChannels:["points","defined"]}},{channel:["points"],custom:bB,duration:va.update.duration,easing:va.update.easing}],disappear:{type:"clipOut"}}))},DQ=()=>{ll.useRegisters([iZ,nZ,zq,Hq,tZ,eZ,sZ,rZ,aZ])},w2=()=>{ll.useRegisters([Wq,Gq,Nq,Uq,jq,Vq])},C2=()=>{ll.useRegisters([Jq,Qq,qq,Zq])},P2=()=>{ll.useRegisters([gO,fO,$q,Yq,Xq,Kq,Dq,Fq])},E2=()=>{ll.useRegisters([gO,fO])},FQ={measureText:VJ};class Vn{static instance(){return Vn.instance_||(Vn.instance_=new Vn),Vn.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 zQ=()=>{Rf(wt)},HQ=()=>{Df(wt)};class R2{constructor(){this.id=rl(),this._plugins=[]}add(t){if(!t||t.length===0)return null;const e=[];return t.forEach(i=>{this._plugins.find(n=>n.id===i.id)?sr("不要重复添加相同的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 jQ extends R2{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)})}onBeforeInitChart(t,e){this._plugins.forEach(i=>{i.onBeforeInitChart&&i.onBeforeInitChart(this,t,e)})}releaseAll(){super.releaseAll(),this.globalInstance=null}}var fs=function(s,t,e,i){return new(e||(e=Promise))(function(n,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?n(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(s,t||[])).next())})},VQ=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{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&&Vn.instance().registerFunction(t,e)}static unregisterFunction(t){t&&Vn.instance().unregisterFunction(t)}static getFunction(t){return t?Vn.instance().getFunction(t):null}static getFunctionList(){return Vn.instance().getFunctionNameList()}static registerMap(t,e,i){const n=D.getImplementInKey("registerMap");n&&n(t,e,i)}static unregisterMap(t){const e=D.getImplementInKey("unregisterMap");e&&e(t)}static getMap(t){return aQ(t)}static hideTooltip(t=[]){is.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 Lt.getInstance()}getSpec(){return this._spec}getSpecInfo(){return this._specInfo}getDataSet(){return this._dataSet}constructor(t,e){var i,n,r,a,o,l,h;this.id=rl(),this._userEvents=[],this._autoSize=!0,this._option={mode:$e["desktop-browser"],onError:y=>{throw new Error(y)},optimize:{disableCheckGraphicWidthOutRange:!0}},this._observer=null,this._context={},this._onResize=or((...y)=>{this._doResize()},100),this._option=U(this._option,{animation:t.animation!==!1},e),this._onError=(i=this._option)===null||i===void 0?void 0:i.onError;const d=this._option,{dom:c,renderCanvas:u,mode:p,stage:g,poptip:f}=d,_=VQ(d,["dom","renderCanvas","mode","stage","poptip"]),m=Nn(p);m&&c&&(this._container=at(c)?document==null?void 0:document.getElementById(c):c),u&&(this._canvas=u),g&&(this._stage=g),p==="node"||this._container||this._canvas||this._stage?(m?zQ():p==="node"&&HQ(),this._viewBox=this._option.viewBox,this._currentThemeName=hn.getCurrentThemeName(),this._setNewSpec(t),this._updateCurrentTheme(),this._currentSize=this.getCurrentSize(),this._compiler=new hQ({dom:(r=this._container)!==null&&r!==void 0?r:"none",canvas:u},Object.assign(Object.assign({mode:this._option.mode,stage:g,pluginList:f!==!1?["poptipForText"]:[]},_),{background:this._getBackground(),onError:this._onError})),this._compiler.setSize(this._currentSize.width,this._currentSize.height),this._eventDispatcher=new iQ(this,this._compiler),this._event=new l0(this._eventDispatcher,p),this._compiler.initView(),(a=this.getStage())===null||a===void 0||a.setTheme({text:{fontFamily:(o=this._currentTheme)===null||o===void 0?void 0:o.fontFamily}}),this._initDataSet(this._option.dataSet),this._autoSize=!!m&&((h=(l=t.autoFit)!==null&&l!==void 0?l:this._option.autoFit)===null||h===void 0||h),this._bindResizeEvent(),this._bindVGrammarViewEvent(),this._initChartPlugin(),is.registerInstance(this)):(n=this._option)===null||n===void 0||n.onError("please specify container or renderCanvas!")}_setNewSpec(t,e){return!!t&&(at(t)&&(t=JSON.parse(t)),e&&this._originalSpec&&(t=vt({},this._originalSpec,t)),this._originalSpec=t,this._spec=this._getSpecFromOriginalSpec(),!0)}_getSpecFromOriginalSpec(){var t;const e=Ix(this._originalSpec);return e.data=(t=e.data)!==null&&t!==void 0?t:[],e}_initChartSpec(t,e){var i,n;hi.getFunctionList()&&hi.getFunctionList().length&&(t=Lx(t,hi)),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=(n=this._chartSpecTransformer)===null||n===void 0?void 0:n.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,n;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(ft.initialized,{chart:r,vchart:this})):(n=this._option)===null||n===void 0||n.onError("init chart fail")}_releaseData(){this._dataSet&&(this._dataSet.dataViewMap={},this._dataSet=null)}_bindVGrammarViewEvent(){this._compiler&&(this._compiler.getVGrammarView().addEventListener(pt.ALL_ANIMATION_END,()=>{this._event.emit(ft.animationFinished,{chart:this._chart,vchart:this})}),this._compiler.getVGrammarView().addEventListener(pt.AFTER_VRENDER_NEXT_RENDER,()=>{this._event.emit(ft.renderFinished,{chart:this._chart,vchart:this})}))}_bindResizeEvent(){var t;if(this._autoSize){if(this._container){const e=window.ResizeObserver;e&&(this._observer=new e(this._onResize),(t=this._observer)===null||t===void 0||t.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,n;return f2(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:Wl,height:(n=(i=this._currentSize)===null||i===void 0?void 0:i.height)!==null&&n!==void 0?n:Gl})}_doResize(){const{width:t,height:e}=this.getCurrentSize();this._currentSize.width===t&&this._currentSize.height===e||(this._currentSize={width:t,height:e},this.resizeSync(t,e))}_initDataSet(t){this._dataSet=t instanceof Va?t:new Va,Rr(this._dataSet,"dataview",ym),Rr(this._dataSet,"array",BE),Mt(this._dataSet,"stackSplit",oQ),Mt(this._dataSet,"copyDataView",h0);for(const e in D.transforms)Mt(this._dataSet,e,D.transforms[e]);for(const e in D.dataParser)Rr(this._dataSet,e,D.dataParser[e])}updateCustomConfigAndRerender(t,e,i={}){if(!this._isReleased&&t)return N(t)&&(t=t()),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,n,r,a,o,l;if(t.reMake)this._releaseData(),this._initDataSet(),this._chartSpecTransformer=null,(i=this._chart)===null||i===void 0||i.release(),this._chart=null,(n=this._compiler)===null||n===void 0||n.releaseGrammar(((r=this._option)===null||r===void 0?void 0:r.animation)===!1||((a=this._spec)===null||a===void 0?void 0:a.animation)===!1),this._userEvents.forEach(h=>{var d;return(d=this._event)===null||d===void 0?void 0:d.on(h.eType,h.query,h.handler)}),t.reSize&&this._doResize();else if(t.reCompile&&((o=this._compiler)===null||o===void 0||o.clear({chart:this._chart,vChart:this},!this._option.animation||!this._spec.animation),(l=this._compiler)===null||l===void 0||l.compile({chart:this._chart,vChart:this},{})),t.reSize){const{width:h,height:d}=this.getCurrentSize();this._chart.onResize(h,d,!1),this._compiler.resize(h,d,!1)}}_beforeRender(t={}){var e,i,n,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._initChart(this._spec),(r=(n=this._option.performanceHook)===null||n===void 0?void 0:n.afterInitializeChart)===null||r===void 0||r.call(n),!(!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(ft.rendered,{chart:this._chart,vchart:this}),!0)}renderSync(t){return this._renderSync({morphConfig:t,transformSpec:!0,actionSource:"render"})}renderAsync(t){return fs(this,void 0,void 0,function*(){return this._renderAsync({morphConfig:t,transformSpec:!0,actionSource:"render"})})}_renderSync(t={}){var e;const i=this;return this._beforeRender(t)&&((e=this._compiler)===null||e===void 0||e.render(t.morphConfig),this._afterRender()),i}_renderAsync(t={}){return fs(this,void 0,void 0,function*(){return this._renderSync(t)})}_updateAnimateState(){var t,e;this._option.animation&&((t=this._chart)===null||t===void 0||t.getAllRegions().forEach(i=>{var n;(n=i.animate)===null||n===void 0||n.updateAnimateState(oi.update,!0)}),(e=this._chart)===null||e===void 0||e.getAllComponents().forEach(i=>{var n;(n=i.animate)===null||n===void 0||n.updateAnimateState(oi.update,!0)}))}release(){var t,e,i,n;!((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(),(n=this._compiler)===null||n===void 0||n.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,is.unregisterInstance(this)}updateData(t,e,i){return fs(this,void 0,void 0,function*(){return this.updateDataSync(t,e,i)})}_updateDataById(t,e,i){const n=this._spec.data.find(r=>r.name===t||r.id===t);n?n.id===t?n.values=e:n.name===t&&n.parse(e,i):G(e)?this._spec.data.push({id:t,values:e}):this._spec.data.push(e)}updateDataInBatches(t){return fs(this,void 0,void 0,function*(){return this._chart?(this._chart.updateFullData(t.map(({id:e,data:i,options:n})=>({id:e,values:i,parser:n}))),this._chart.updateGlobalScaleDomain(),this._compiler.render(),this):(this._spec.data=V(this._spec.data),t.forEach(({id:e,data:i,options:n})=>{this._updateDataById(e,i,n)}),this)})}updateDataSync(t,e,i){return P(this._dataSet)?this:this._chart?(this._chart.updateData(t,e,!0,i),this._compiler.render(),this):(this._spec.data=V(this._spec.data),this._updateDataById(t,e,i),this)}updateFullDataSync(t,e=!0){if(this._chart)return this._chart.updateFullData(t),e&&this._compiler.render(),this;const i=V(this._spec.data);return V(t).forEach(n=>{var r;const{id:a,values:o,parser:l,fields:h}=n,d=i.find(c=>c.name===a);if(d)d instanceof $t?(d.setFields(pn(h)),d.parse(o,pn(l))):(d.values=o,E(l)&&(d.parser=l),E(h)&&(d.fields=h));else{const c=S1(n,this._dataSet,i,{onError:(r=this._option)===null||r===void 0?void 0:r.onError});G(this._spec.data)&&this._spec.data.push(c)}}),this}updateFullData(t,e=!0){return fs(this,void 0,void 0,function*(){return this.updateFullDataSync(t,e)})}updateSpec(t,e=!1,i){return fs(this,void 0,void 0,function*(){const n=this._updateSpec(t,e);return n?(yield this.updateCustomConfigAndRerender(n,!1,{morphConfig:i,transformSpec:n.reTransformSpec,actionSource:"updateSpec"}),this):this})}updateSpecSync(t,e=!1,i){const n=this._updateSpec(t,e);return n?(this.updateCustomConfigAndRerender(n,!0,{morphConfig:i,transformSpec:n.reTransformSpec,actionSource:"updateSpec"}),this):this}updateSpecAndRecompile(t,e=!1,i={}){const n=this._updateSpec(t,e);return this._updateCustomConfigAndRecompile(n,Object.assign({actionSource:"updateSpecAndRecompile"},i))}_updateSpec(t,e=!1){var i,n;const r=this._spec;if(!this._setNewSpec(t,e))return;be(r.theme,this._spec.theme)||this._setCurrentTheme();const a=this._shouldChartResize(r);return(n=(i=this._compiler)===null||i===void 0?void 0:i.getVGrammarView())===null||n===void 0||n.updateLayoutTag(),this._spec.type!==r.type?{reTransformSpec:!0,change:!0,reMake:!0,reCompile:!1,reSize:a}:(this._initChartSpec(this._spec,"render"),Ml(this._chart.updateSpec(this._spec),{reTransformSpec:!1,change:a,reMake:!1,reCompile:!1,reSize:a}))}updateModelSpec(t,e,i=!1,n){return fs(this,void 0,void 0,function*(){if(!e||!this._spec)return this;if(at(e)&&(e=JSON.parse(e)),N(t)||Kw(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!1,i,n)}return this})}updateModelSpecSync(t,e,i=!1,n){if(!e||!this._spec)return this;if(at(e)&&(e=JSON.parse(e)),N(t)||Kw(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!0,i,n)}return this}_updateModelSpec(t,e,i=!1,n=!1,r){n&&(e=vt({},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 fs(this,void 0,void 0,function*(){return this.resizeSync(t,e)})}resizeSync(t,e){var i,n;return this._beforeResize(t,e)?((n=(i=this._compiler).resize)===null||n===void 0||n.call(i,t,e),this._afterResize()):this}_beforeResize(t,e){var i,n,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),(n=(i=this._option.performanceHook)===null||i===void 0?void 0:i.beforeResizeWithUpdate)===null||n===void 0||n.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(ft.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 n;this._userEvents&&(this._userEvents.push({eType:t,query:typeof e=="function"?null:e,handler:typeof e=="function"?e:i}),(n=this._event)===null||n===void 0||n.on(t,e,i))}off(t,e){var i;if(this._userEvents&&this._userEvents.length!==0)if(e){const n=this._userEvents.findIndex(r=>r.eType===t&&r.handler===e);n>=0&&(this._userEvents.splice(n,1),(i=this._event)===null||i===void 0||i.off(t,e))}else this._userEvents.forEach(n=>{var r;n.eType===t&&((r=this._event)===null||r===void 0||r.off(t,n.handler))}),this._userEvents=this._userEvents.filter(n=>n.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)}clearSelected(){this._chart&&this._chart.clearSelected()}clearHovered(){this._chart&&this._chart.clearHovered()}_updateCurrentTheme(t){var e,i;const n=this._option.theme,r=(e=this._spec)===null||e===void 0?void 0:e.theme;if(t&&(this._currentThemeName=t),mt(n)&&mt(r))this._currentTheme=ia(this._currentThemeName,!0);else if(at(n)&&(!r||at(r))||at(r)&&(!n||at(n))){const a=Bx({},ia(this._currentThemeName,!0),ia(n,!0),ia(r,!0));this._currentTheme=a}else{const a=Bx({},ia(this._currentThemeName),ia(n),ia(r));this._currentTheme=o0(a)}I8(Pt(this._currentTheme,"component.poptip")),(i=this._compiler)===null||i===void 0||i.setBackground(this._getBackground())}_shouldChartResize(t){var e,i;let n=!1;P(this._spec.width)?!P(t.width)&&(this._spec.width=t.width):this._spec.width!==t.width&&(n=!0),P(this._spec.height)?!P(t.height)&&(this._spec.height=t.height):this._spec.height!==t.height&&(n=!0);const r=this._autoSize;return this._autoSize=!!Nn(this._option.mode)&&((i=(e=this._spec.autoFit)!==null&&e!==void 0?e:this._option.autoFit)===null||i===void 0||i),this._autoSize!==r&&(n=!0),n}_getBackground(){return(typeof this._spec.background=="string"?this._spec.background:null)||this._currentTheme.background||this._option.background}getCurrentTheme(){return ia(this._currentThemeName)}getCurrentThemeName(){return this._currentThemeName}setCurrentTheme(t){return fs(this,void 0,void 0,function*(){if(!hn.themeExist(t))return this;const e=this._setCurrentTheme(t);return yield this.updateCustomConfigAndRerender(e,!1,{transformSpec:!1,actionSource:"setCurrentTheme"}),this})}setCurrentThemeSync(t){if(!hn.themeExist(t))return this;const e=this._setCurrentTheme(t);return this.updateCustomConfigAndRerender(e,!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}}_getTooltipComponent(){var t;return(t=this._chart)===null||t===void 0?void 0:t.getComponentsByType(Y.tooltip)[0]}setTooltipHandler(t){var e,i;this._context.tooltipHandler=t;const n=this._getTooltipComponent();n&&((i=(e=n.tooltipHandler)===null||e===void 0?void 0:e.release)===null||i===void 0||i.call(e),n.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 n=this._getTooltipComponent();return(i=E(t)&&(n==null?void 0:n.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(Y.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(Y.discreteLegend);return i&&i[t]?i[t].getSelectedData():[]}setLegendSelectedDataById(t,e){var i;const n=(i=this._chart)===null||i===void 0?void 0:i.getComponentByUserId(t);n&&n.setSelectedData(e)}setLegendSelectedDataByIndex(t=0,e){var i;const n=(i=this._chart)===null||i===void 0?void 0:i.getComponentsByType(Y.discreteLegend);n&&n[t]&&n[t].setSelectedData(e)}getDataURL(){var t;return fs(this,void 0,void 0,function*(){const e=this.getStage();if(this._chart&&e){e.render();const i=this._chart.getCanvas();return yield pQ(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 fs(this,void 0,void 0,function*(){if(!Nn(this._option.mode))return void((e=this._option)===null||e===void 0||e.onError(new TypeError("non-browser environment can not export img")));const n=yield this.getDataURL();n?cQ(t,n):(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(E(this._container))return this._container;let e;return e=at(this._canvas)?document==null?void 0:document.getElementById(this._canvas):this._canvas,E(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,n){var r;if(!this._chart||mt(t))return null;const{seriesId:a,seriesIndex:o=0}=e;let l;if(E(a)?l=this._chart.getSeriesInUserId(a):E(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(p=>h.every(g=>p[g]==t[g])),c=l.getRegion().getLayoutStartPoint();let u;return u=d?l.dataToPosition(d,n):l.dataToPosition(t,n),u?zC(u,c,i):null}return null}convertValueToPosition(t,e,i=!1){var n,r;if(!this._chart||P(t)||mt(e))return null;if(!G(t)){const{axisId:h,axisIndex:d}=e;let c;if(E(h)?c=this._chart.getComponentsByKey("axes").find(p=>p.userId===h):E(d)&&(c=(n=this._chart.getComponentsByKey("axes"))===null||n===void 0?void 0:n[d]),!c)return sr("Please check whether the `axisId` or `axisIndex` is set!"),null;const u=c==null?void 0:c.valueToPosition(t);if(i){const p=c.getLayoutStartPoint(),g=c.getOrient();return u+(g==="bottom"||g==="top"?p.x:p.y)}return u}const{seriesId:a,seriesIndex:o}=e;let l;return E(a)?l=this._chart.getSeriesInUserId(a):E(o)&&(l=(r=this._chart.getSeriesInIndex([o]))===null||r===void 0?void 0:r[0]),l?zC(l.valueToPosition(t[0],t[1]),l.getRegion().getLayoutStartPoint(),i):(sr("Please check whether the `seriesId` or `seriesIndex` is set!"),null)}getFunction(t){return Vn.instance().getFunction(t)}registerFunction(t,e){t&&e&&Vn.instance().registerFunction(t,e)}unregisterFunction(t){t&&Vn.instance().unregisterFunction(t)}getFunctionList(){return Vn.instance().getFunctionNameList()}setRuntimeSpec(t){this._spec=t,this._updateSpecInfo()}_initChartPlugin(){const t=D.getChartPlugins();t.length>0&&(this._chartPlugin=new jQ(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||$e["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}}}hi.InstanceManager=is,hi.ThemeManager=hn,hi.globalConfig={uniqueTooltip:!0},hi.Utils=FQ,hi.vglobal=Ot;D.registerRegion("region",eh),D.registerLayout("base",M1),T2(),ll.useRegisters([NK,UK]),DQ(),y9(),v9(),x1(UC.name,UC),Lt.getInstance(Hn.Error);class C1{constructor(t){this.id=rl(),this.name=`${t}_${this.id}`}onAdd(t){this.service=t}release(){this.service=null}}const WQ=s=>{D.registerChartPlugin(s.type,s)},GQ=/\{([^}]+)\}/,NQ=/\{([^}]+)\}/g,UQ=/:/;class Mo extends C1{constructor(){super(Mo.type),this.type="formatterPlugin",this._timeModeFormat={utc:Cs.getInstance().timeUTCFormat,local:Cs.getInstance().timeFormat},this._formatter=this._format,this._timeFormatter=this._timeModeFormat.local,this._numericFormatter=po.getInstance().format,this._numericSpecifier=po.getInstance().formatter,this._numericFormatterCache=new Map,this._isNumericFormatterCache=new Map}onInit(t,e){var i;const{globalInstance:n}=t;if(!n)return;this._spec=(i=e==null?void 0:e[Mo.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 G(t)?t.map((n,r)=>{const a=G(i)?i[r]:i;return a?this._formatSingleLine(n,e,a):n}):G(i)?i.map(n=>this._formatSingleLine(t,e,n)):this._formatSingleLine(t,e,i)}_formatSingleLine(t,e,i){let n;return this._isNumericFormatterCache&&(this._isNumericFormatterCache.get(i)?n=this._isNumericFormatterCache.get(i):(n=GQ.test(i),this._isNumericFormatterCache.set(i,n))),n?i.replace(NQ,(r,a)=>{if(!UQ.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(JE.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}}Mo.pluginType="chart",Mo.specKey="formatter",Mo.type="formatterPlugin";const $Q=()=>{WQ(Mo)};function tP(s){return s.length===2&&W(s[0])&&W(s[1])&&s[1]>=s[0]}function eP(s,t){const e=t[1]-t[0],i=t[1]*t[0]<0;let n=t[0]<=0?0-t[0]:0,r=t[1]>0?t[1]-0:0;e===0?t[0]<0?(n=1,r=0):t[0]>0&&(n=0,r=1):(n/=e,r/=e);const a=s.getDomainSpec();return{total:e,negative:n,positive:r,includeZero:i,domain:t,extendable_min:!W(a.min),extendable_max:!W(a.max)}}function iP(s,t){const{positive:e,negative:i,extendable_min:n,extendable_max:r,domain:a}=s,{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;n&&(u=e/Math.max(i,i),a[0]=-a[1]/u),c[1]=-c[0]*u}return!0}function nP(s,t){const{extendable_min:e,extendable_max:i,domain:n}=s,{positive:r,negative:a,domain:o}=t;return(r!==0||a!==0)&&!(r>0&&!i)&&!(a>0&&!e)&&(n[0]=o[0],n[1]=o[1],!0)}function sP(s,t){const{positive:e,negative:i,extendable_max:n,domain:r}=s,{positive:a,negative:o,extendable_min:l,domain:h}=t;if(n&&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(!n)return!1;{const d=o/a;r[1]=-r[0]/d}}return!0}function rP(s,t){const{extendable_min:e,domain:i}=s,{extendable_max:n,domain:r}=t;return!(!e||!n)&&(i[0]=-i[1],r[1]=-r[0],!0)}const YQ=(s,t)=>{var e,i,n,r,a,o;const l=s.getScale(),h=t.getScale();if(!l||!h)return;const d=(n=(i=(e=s).getDomainAfterSpec)===null||i===void 0?void 0:i.call(e))!==null&&n!==void 0?n:[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&&tP(d)&&tP(c)))return;const u=eP(s,d),p=eP(t,c),{positive:g,negative:f,extendable_min:_,extendable_max:m,includeZero:y}=u,{positive:v,negative:b,extendable_min:x,extendable_max:A,includeZero:T}=p;if(g===0&&f===0){if(!nP(u,p))return}else if(v===0&&b===0){if(!nP(p,u))return}else if(y||T)if(y&&!T){if(!iP(u,p))return}else if(T&&!y){if(!iP(p,u))return}else{if(f===b)return;if(f>b){if(!sP(u,p))return}else if(!sP(p,u))return}else{if(f===0&&v===0){if(!rP(u,p))return}else if(b===0&&g===0&&!rP(p,u))return;if(f===0&&b===0)if(d[0]===0&&c[0]>0){if(!x)return;c[0]=0}else{if(!(c[0]===0&&d[0]>0)||!_)return;d[0]=0}if(g===0&&v===0)if(d[1]===0&&c[1]>0){if(!A)return;c[1]=0}else{if(!(c[1]===0&&d[1]>0)||!m)return;d[1]=0}}l.domain(d),h.domain(c)},XQ=(s,t)=>{var e,i,n,r,a;if(!s)return s;const o=(e=t==null?void 0:t.targetAxis)===null||e===void 0?void 0:e.call(t);if(!o)return s;const l=(i=t==null?void 0:t.currentAxis)===null||i===void 0?void 0:i.call(t);if(!l)return s;const h=(n=l.getTickData())===null||n===void 0?void 0:n.getDataView();if(!h||!h.transformsArr.find(y=>y.type==="ticks"))return s;const d=l.getScale();if(!d)return s;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 s;const u=o.getScale();if(!u)return s;const p=u.domain(),g=p[1]-p[0];if(g===0)return s;const f=d.domain(),_=f[1]-f[0];if(g===0)return s;const m=c.map(y=>{const v=(y.value-p[0])/g;return _*v+f[0]});return nr(m)};class su extends C1{constructor(){super(su.type),this.type="AxisSyncPlugin"}_checkEnableSync(t){if(!ie(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 n=this._getTargetAxis(e,i);n&&e.event.on(ft.scaleDomainUpdate,{filter:({model:r})=>r.id===e.id||r.id===n.id},()=>{YQ(n,e)})}onDidCompile(t,e){const i=this._checkEnableSync(e);if(!i)return;const n=this._getTargetAxis(e,i);if(n&&i.tickAlign){Mt(e.getOption().dataSet,"tickAlign",XQ);const r={targetAxis:()=>n,currentAxis:()=>e};e.addTransformToTickData({type:"tickAlign",options:r,level:Number.MAX_SAFE_INTEGER},!1)}}}su.pluginType="component",su.type="AxisSyncPlugin";function KQ(s){return String(s).replace(/&/g,"&").replace(//g,">").replace(/\(/g,"(").replace(/ /g,"  ")}const Vp=(s,t)=>s?(t||(t=s.getBoundingClientRect()),s.offsetWidth>0?t.width/s.offsetWidth:t.height/s.offsetHeight):1,zv=(s,t)=>{var e;let i,n;(s==null?void 0:s.type)!=="rich"&&(s==null?void 0:s.type)!=="html"?(s=(s??"").toString(),t.multiLine?(i=s.split(` +`),i=i.map((a,o)=>oObject.assign(Object.assign({},t),{text:a}))):(n=s.text,i=s);const r=_W({wordBreak:(e=t.wordBreak)!==null&&e!==void 0?e:"break-word",maxWidth:t.maxWidth?t.maxWidth:void 0,width:0,height:0,textConfig:n});return{width:r.width(),height:r.height(),text:i}},aP="vchart-tooltip-container",oP="",Hv={offsetX:10,offsetY:10,sanitize:KQ};function Mn(s,t){return Pt(t,`component.${s}`)}function Wr(s,t,e,i){if(s)return{formatFunc:s,args:[e,i]};const n=D.getFormatter();return t&&n?{formatFunc:n,args:[e,i,t]}:{}}const qQ={left:{textAlign:"center",textBaseline:"bottom"},right:{textAlign:"center",textBaseline:"bottom"},radius:{},angle:{}};function ZQ(s){return(s=Ms(s)).startSymbol=Ms(s.startSymbol),s.endSymbol=Ms(s.endSymbol),s}function ru(s){let t=0;return Pt(s,"tick.visible")&&(t+=Pt(s,"tick.tickSize")),Pt(s,"label.visible")&&(t+=Pt(s,"label.space")),t}function au(s,t){var e,i,n,r,a,o;return{min:(n=(e=s.min)!==null&&e!==void 0?e:(i=s.range)===null||i===void 0?void 0:i.min)!==null&&n!==void 0?n:t==null?void 0:t.min,max:(o=(r=s.max)!==null&&r!==void 0?r:(a=s.range)===null||a===void 0?void 0:a.max)!==null&&o!==void 0?o:t==null?void 0:t.max}}function lP(s){const t=s==null?void 0:s.orient;return t==="top"||t==="bottom"||t==="left"||t==="right"||t==="z"}function hP(s){const t=s==null?void 0:s.orient;return t==="angle"||t==="radius"}const Jh=(s,t,e)=>{var i;const n=(i=t==="band"?Mn("axisBand",e):["linear","log","symlog"].includes(t)?Mn("axisLinear",e):{})!==null&&i!==void 0?i:{},r=Te(s)?Mn("axisX",e):Ks(s)?Mn("axisY",e):Mn("axisZ",e);return vt({},Mn("axis",e),n,r)},jv=(s,t,e)=>{var i;const n=(i=t==="band"?Mn("axisBand",e):t==="linear"?Mn("axisLinear",e):{})!==null&&i!==void 0?i:{},r=Mn(s==="angle"?"axisAngle":"axisRadius",e);return vt({},Mn("axis",e),n,r)},B2=s=>s==="band"||s==="ordinal"||s==="point";function mh(s,t){return{id:s,label:s,value:t,rawValue:s}}function I2(s,t){const{x1:e,y1:i,x2:n,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=s.AABBBounds,{dx:d=0,dy:c=0}=s.attribute;let u=0,p=0;an&&(u=n-l),h>r&&(p=r-h),u&&s.setAttribute("dx",u+d),p&&s.setAttribute("dy",p+c)}function dP(s,t,e,i){let n=0,r=s.length-1;for(;n<=r;){const a=Math.floor((n+r)/2),o=s[a];if(o[e]<=t&&o[i||e]>=t)return o;o[e]>t?r=a-1:n=a+1}return null}const JQ=(s,t)=>{var e,i;const n=V((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,xField:o,yField:l}=(i=Mn(Y.crosshair,s))!==null&&i!==void 0?i:{},h=n.find(p=>Te(p.orient));let d;d=E(h)?vt({},B2(h.type)?r:a,o):o;const c=n.find(p=>Ks(p.orient));let u;return u=E(c)?vt({},vi(c.type)?r:a,l):l,{xField:d,yField:u}},QQ=(s,t)=>{var e,i;const n=V((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,categoryField:o,valueField:l}=(i=Mn(Y.crosshair,s))!==null&&i!==void 0?i:{},h=n.find(p=>p.orient==="angle");let d;d=E(h)?vt({},B2(h.type)?r:a,o):o;const c=n.find(p=>p.orient==="radius");let u;return u=E(c)?vt({},vi(c.type)?r:a,l):l,{categoryField:d,valueField:u}},L2=(s=3,t,e,i,n,r,a,o=!1,l,h)=>{const d=1&s,c=2&s;e||(e={x:0,y:0});let u=null,p=null,g=0,f=0;if(i.size){const w=Array.from(i.values())[0];g=w.axis.getScale().scale(w.value)+w.axis.getLayoutStartPoint().x-e.x,u=w.axis}if(n.size){const w=Array.from(n.values())[0];f=w.axis.getScale().scale(w.value)+w.axis.getLayoutStartPoint().y-e.y,p=w.axis}const _=!!i.size&&Number.isFinite(g),m=!!n.size&&Number.isFinite(f),y=o&&!_&&E(l),v=o&&!m&&E(h);let b,x,A;d&&(b=y?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:_,axis:u}),c&&(x=v?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:p});let T,k=0,M=0;if(r&&i.forEach(({axis:w,value:C})=>{var R;C=C??"";let I=null;const O=w.getScale();if(vi(O.type))A=O.bandwidth(),A===0&&O.step&&(k=O.step());else if(ie(O.type)){const B=t.fieldX[0],L=t.fieldX2,F=dP(t.getViewData().latestData,+C,B,L);if(F){const z=t.dataToPositionX(F);L?(A=Math.abs(z-t.dataToPositionX1(F)),C=`${F[B]} ~ ${F[L]}`):A=1,g=z}I=w.niceLabelFormatter}if(b&&(!((R=r.label)===null||R===void 0)&&R.visible)&&!y){const B=ru(w.getSpec());w.getOrient()==="bottom"?(b.bottom.visible=!0,b.bottom.defaultFormatter=I,b.bottom.text=C,b.bottom.dx=0,b.bottom.dy=B):w.getOrient()==="top"&&(b.top.visible=!0,b.top.defaultFormatter=I,b.top.text=C,b.top.dx=0,b.top.dy=-B)}}),a&&n.forEach(({axis:w,value:C})=>{var R;C=C??"";let I=null;const O=w.getScale();if(vi(O.type))T=O.bandwidth(),T===0&&O.step&&(M=O.step());else if(ie(O.type)){const B=t.fieldY[0],L=t.fieldY2,F=dP(t.getViewData().latestData,+C,B,L);if(F){const z=t.dataToPositionY(F);L?(T=Math.abs(z-t.dataToPositionY1(F)),C=`${F[B]} ~ ${F[L]}`):T=1,f=z}I=w.niceLabelFormatter}if(x&&(!((R=a.label)===null||R===void 0)&&R.visible)&&!v){const B=ru(w.getSpec());w.getOrient()==="left"?(x.left.visible=!0,x.left.defaultFormatter=I,x.left.text=C,x.left.dx=-B,x.left.dy=0):w.getOrient()==="right"&&(x.right.visible=!0,x.right.defaultFormatter=I,x.right.text=C,x.right.dx=B,x.right.dy=0)}}),b&&!y){const w={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(cP(w,i),b.leftPos=w.x1,b.rightPos=w.x2,b.topPos=w.y1,b.height=w.y2-w.y1,b.x=g+e.x,r&&r.label){const{top:C,bottom:R}=b;C.visible&&Wp(C,"top",r.label),R.visible&&Wp(R,"bottom",r.label)}}if(x&&!v){const w={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(cP(w,n),x.leftPos=w.x1,x.topPos=w.y1,x.bottomPos=w.y2,x.width=w.x2-w.x1,x.y=f+e.y,a&&a.label){const{left:C,right:R}=x;C.visible&&Wp(C,"left",a.label),R.visible&&Wp(R,"right",a.label)}}return{x:d&&b?b:void 0,y:c&&x?x:void 0,offsetWidth:k,offsetHeight:M,bandWidth:A??0,bandHeight:T??0}},Wp=(s,t,e)=>{const{formatMethod:i,formatter:n}=e,{formatFunc:r,args:a}=Wr(i,n,s.text,{label:s.text,position:t});r?s.text=r(...a):s.defaultFormatter&&(s.text=s.defaultFormatter(s.text))},cP=(s,t)=>{t.forEach(({axis:e})=>{e.getRegions().forEach(i=>{s.x1=Math.min(s.x1,i.getLayoutStartPoint().x),s.y1=Math.min(s.y1,i.getLayoutStartPoint().y),s.x2=Math.max(s.x2,i.getLayoutStartPoint().x+i.getLayoutRect().width),s.y2=Math.max(s.y2,i.getLayoutStartPoint().y+i.getLayoutRect().height)})})},O2=(s,t,e,i)=>{const{x:n,topPos:r,height:a}=t,o=s.type;let l;if(o==="line")l={visible:!0,start:{x:n+e/2,y:r},end:{x:n+e/2,y:r+a}};else if(o==="rect"){const h=F2(s,e,t.axis),{leftPos:d,rightPos:c}=t;l={visible:!0,start:{x:Math.max(n-h/2-i/2,d),y:r},end:{x:Math.min(n+e+h/2+i/2,c),y:r+a}}}return l},D2=(s,t,e,i)=>{const{leftPos:n,width:r,y:a}=t,o=s.type;let l;if(o==="line")l={visible:!0,start:{x:n,y:a+e/2},end:{x:n+r,y:a+e/2}};else if(o==="rect"){const h=F2(s,e,t.axis),{topPos:d,bottomPos:c}=t;l={visible:!0,start:{x:n,y:Math.max(a-h/2-i/2,d)},end:{x:n+r,y:Math.min(a+e+h/2+i/2,c)}}}return l},F2=(s,t,e)=>{var i,n,r;let a=0;if(!((i=s.style)===null||i===void 0)&&i.sizePercent)a=(s.style.sizePercent-1)*t;else if(typeof((n=s.style)===null||n===void 0?void 0:n.size)=="number")a=s.style.size-t;else if(typeof((r=s.style)===null||r===void 0?void 0:r.size)=="function"){const o=e.getLayoutRect();a=s.style.size(o,e)-t}return a},vl=(s,t)=>{let e;if(E(s)){if(nt(s))e=s;else if(N(s)){const i=s(t);nt(i)&&(e=i)}}return e},z2={left:["left","center"],right:["right","center"],top:["center","top"],lt:["left","top"],tl:["left","top"],rt:["right","top"],tr:["right","top"],bottom:["center","bottom"],bl:["left","bottom"],lb:["left","bottom"],br:["right","bottom"],rb:["right","bottom"],inside:["center","center"],center:["center","center"],centerBottom:["center","centerBottom"],centerTop:["center","centerTop"],centerLeft:["centerLeft","center"],centerRight:["centerRight","center"]},Qh=(s,t)=>{var e,i;return(i=(e=z2[s])===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:t},td=(s,t)=>{var e,i;return(i=(e=z2[s])===null||e===void 0?void 0:e[1])!==null&&i!==void 0?i:t},uP=(s,t,e)=>{const i=new Map,n=new Map;s.forEach(({axis:p,value:g})=>{["top","bottom"].includes(p.getOrient())?i.set(p.getSpecIndex(),{value:g,axis:p}):n.set(p.getSpecIndex(),{value:g,axis:p})});const r={visible:!!i.size,type:"rect"},a={visible:!!n.size,type:"rect"},{x:o,y:l,offsetWidth:h,offsetHeight:d,bandWidth:c,bandHeight:u}=L2(3,t,e,i,n,r,a);return o?O2(r,o,c,h):l?D2(a,l,u,d):void 0},ttt=s=>Et(s)&&(E(s.left)||E(s.right)||E(s.top)||E(s.bottom)),ett=s=>Et(s)&&(E(s.x)||E(s.y)),itt={fontFamily:v_.fontFamily,spacing:10,wordBreak:"break-word"};function yl(s={},t,e){var i,n;return Object.assign(Object.assign({},e??itt),{fill:(i=s.fill)!==null&&i!==void 0?i:s.fontColor,textAlign:s.textAlign,textBaseline:s.textBaseline,fontFamily:(n=s.fontFamily)!==null&&n!==void 0?n:t==null?void 0:t.fontFamily,fontSize:s.fontSize,fontWeight:s.fontWeight,lineHeight:s.lineHeight,spacing:s.spacing,multiLine:s.multiLine,maxWidth:s.maxWidth,wordBreak:s.wordBreak,autoWidth:s.autoWidth})}const ntt=s=>{var t;const{backgroundColor:e,border:i,shadow:n}=s,r={lineWidth:(t=i==null?void 0:i.width)!==null&&t!==void 0?t:0,shadow:!!n};i!=null&&i.color&&(r.stroke=i.color),e&&(r.fill=e),n&&(r.shadowColor=n.color,r.shadowBlur=n.blur,r.shadowOffsetX=n.x,r.shadowOffsetY=n.y,r.shadowSpread=n.spread);const{radius:a}=i??{};return E(a)&&(r.cornerRadius=[a,a,a,a]),r},stt=(s,t,e)=>{var i,n,r,a,o;const{style:l={},enterable:h,transitionDuration:d}=t,{panel:c={},titleLabel:u,shape:p,keyLabel:g,valueLabel:f,spaceRow:_,maxContentHeight:m}=l,y=fn(c.padding),v=jr(c.padding),b=yl(u,e),x=yl(g,e),A=yl(f,e),T={fill:!0,size:(i=p==null?void 0:p.size)!==null&&i!==void 0?i:8,spacing:(n=p==null?void 0:p.spacing)!==null&&n!==void 0?n:6},k={panel:ntt(c),padding:y,title:{},content:[],titleStyle:{value:b,spaceRow:_},contentStyle:{shape:T,key:x,value:A,spaceRow:_},hasContentShape:!1,keyWidth:0,valueWidth:0,maxContentHeight:m,enterable:h,transitionDuration:d},{title:M={},content:w=[]}=s;let C=v.left+v.right,R=v.top+v.bottom,I=v.top+v.bottom,O=0;const B=w.filter(ct=>(ct.key||ct.value)&&ct.visible!==!1),L=!!B.length;let F=0,z=0,K=0,et=0;if(L){const ct=[],kt=[],ot=[],yt=[];let St=0;k.content=B.map((Dt,At)=>{let Se=0;const{hasShape:_e,key:si,shapeType:Re="",shapeFill:Je,shapeStroke:zi,shapeLineWidth:Ai,shapeSize:js,value:Zr,isKeyAdaptive:cl,spaceRow:he,keyStyle:Me,valueStyle:ki,shapeHollow:te,shapeColor:me}=Dt,Be={height:0,spaceRow:he??_};if(E(si)){const Ti=vt({},x,yl(Me,void 0,{})),{width:ri,height:Ge,text:gs}=zv(si,Ti);Be.key=Object.assign(Object.assign({width:ri,height:Ge},Ti),{text:gs}),cl?kt.push(ri):ct.push(ri),Se=Math.max(Se,Ge)}if(E(Zr)){const Ti=vt({},A,yl(ki,void 0,{})),{width:ri,height:Ge,text:gs}=zv(Zr,Ti);Be.value=Object.assign(Object.assign({width:ri,height:Ge},Ti),{text:gs}),ot.push(ri),Se=Math.max(Se,Ge)}if(_e){const Ti={visible:!0,symbolType:Re},ri=Je??me;te?Ti.stroke=ri:Ti.fill=ri,Ti.stroke=zi??ri,Ti.lineWidth=Ai,Be.shape=Ti;const Ge=js??T.size;Se=Math.max(Ge,Se),yt.push(Ge)}else Be.shape={visible:!1};return Be.height=Se,St+=Se,AtX.autoWidth&&X.multiLine!==!1;if(ut){X=vt({},b,yl($,void 0,{})),dt()&&(X.multiLine=(r=X.multiLine)===null||r===void 0||r,X.maxWidth=(a=X.maxWidth)!==null&&a!==void 0?a:L?Math.ceil(O):void 0);const{text:ct,width:kt,height:ot}=zv(J,X);k.title.value=Object.assign(Object.assign({width:dt()?Math.min(kt,(o=X.maxWidth)!==null&&o!==void 0?o:Number.MAX_VALUE):kt,height:ot},X),{text:ct}),j=k.title.value.width,st=k.title.value.height,ht=st+(L?k.title.spaceRow:0)}return R+=ht,I+=ht,k.title.width=j,k.title.height=st,dt()?C+=O||j:C+=Math.max(j,O),L&&k.content.forEach(ct=>{var kt;const ot=ct.value;ot&&((kt=ot.autoWidth)===null||kt===void 0||kt)&&(ot.width=C-v.left-v.right-et-F-x.spacing-A.spacing,ot.maxWidth||(ot.maxWidth=Math.ceil(ot.width)),k.valueWidth=Math.max(k.valueWidth,ot.width))}),k.panel.width=C,k.panel.height=R,k.panelDomHeight=I,k},bl=(s,t)=>E(t)?s.map(e=>t[e]):void 0,yo=(s,t)=>e=>s.every((i,n)=>e[i]===(t==null?void 0:t[n])),ed=s=>!P(s)&&(G(s)?s.length>0&&s.every(E):Object.keys(s).length>0);function rtt(s,t,e){var i,n,r;const a=Object.assign({regionIndex:0},t),o=e.getOption(),l=o.getRegionsInUserIdOrIndex(E(a.regionId)?[a.regionId]:void 0,E(a.regionIndex)?[a.regionIndex]:void 0)[0];if(!l)return"none";const h=att(s,l),d=(i=a.activeType)!==null&&i!==void 0?i:h.length>1?"dimension":"mark",c=l.getLayoutStartPoint(),u=l.getLayoutRect(),p=o.globalInstance.getContainer(),g=Object.assign({x:0,y:0},p?O3(p):{}),f=m=>{var y;const{dimensionFields:v,dimensionData:b,measureFields:x,measureData:A,groupField:T,groupData:k}=m.data;return(y=m.series.getViewData())===null||y===void 0?void 0:y.latestData.find(w=>yo(v,b)(w)&&yo(x,A)(w)&&(P(T)||yo([T],[k])(w)))},_=m=>{var y,v;const b=(T=>({x:Math.min(Math.max(T.x,0),u.width),y:Math.min(Math.max(T.y,0),u.height)}))(m),x=(y=a.x)!==null&&y!==void 0?y:c.x+b.x,A=(v=a.y)!==null&&v!==void 0?v:c.y+b.y;return{canvasX:x,canvasY:A,clientX:g.x+x,clientY:g.y+A}};if(d==="dimension"){const m=h[0];if(!m)return"none";const y=new Map;h.forEach(A=>{var T;y.has(A.series)||y.set(A.series,[]),(T=y.get(A.series))===null||T===void 0||T.push(A)});const v=[{value:s[m.data.dimensionFields[0]],data:[...y.keys()].map(A=>{var T,k;return{series:A,datum:(k=(T=y.get(A))===null||T===void 0?void 0:T.map(M=>f(M)))!==null&&k!==void 0?k:[]}})}];E(m.dimType)&&(v[0].position=m.pos[m.dimType],v[0].dimType=m.dimType);const b={changePositionOnly:!1,action:"enter",tooltip:null,dimensionInfo:v,chart:(n=o.globalInstance.getChart())!==null&&n!==void 0?n:void 0,datum:void 0,model:void 0,source:Nt.chart,event:_({x:h.reduce((A,T)=>A+T.pos.x,0)/h.length,y:h.reduce((A,T)=>A+T.pos.y,0)/h.length}),item:void 0,itemMap:new Map};e.processor.dimension.showTooltip(v,b,!1);const x=o.globalInstance;return hi.globalConfig.uniqueTooltip&&hi.hideTooltip(x.id),d}if(d==="mark"){const m=h[0];if(!m)return"none";const y=Object.assign(Object.assign({},f(m)),s),v=[{datum:[y],series:m.series}],b=[{value:y[m.data.dimensionFields[0]],data:v}],x={changePositionOnly:!1,tooltip:null,dimensionInfo:b,chart:(r=o.globalInstance.getChart())!==null&&r!==void 0?r:void 0,datum:y,model:m.series,source:Nt.chart,event:_(m.pos),item:void 0,itemMap:new Map};e.processor.mark.showTooltip({datum:y,mark:null,series:m.series,dimensionInfo:b},x,!1);const A=o.globalInstance;return hi.globalConfig.uniqueTooltip&&hi.hideTooltip(A.id),d}return"none"}const att=(s,t)=>{const e=t.getSeries(),i=[];return e.forEach(n=>{var r,a,o,l,h,d,c;const u=n.getDimensionField(),p=n.getMeasureField(),g=n.getSeriesField(),f=E(g)?s[g]:void 0,_=E(g)&&(l=(o=(a=(r=n.getViewDataStatistics)===null||r===void 0?void 0:r.call(n))===null||a===void 0?void 0:a.latestData[g])===null||o===void 0?void 0:o.values)!==null&&l!==void 0?l:[],m=bl(u,s);let y=bl(p,s);const v=ed(y),b=!v&&E(g)&&P(f)&&_.length>0,x=()=>{var A;const T=(A=n.getViewData())===null||A===void 0?void 0:A.latestData.find(yo(u,m));if(!v&&(y=bl(p,T),!ed(y)))return;const k=n.type===H.pie?n.dataToCentralPosition(T):n.dataToPosition(T);P(k)||isNaN(k.x)||isNaN(k.y)||i.push({pos:k,data:{dimensionFields:u,dimensionData:m,measureFields:p,measureData:y,hasMeasureData:v,groupField:g,groupData:f},series:n})};if(n.coordinate==="cartesian"){const A=n,T=vi((d=(h=n.getYAxisHelper())===null||h===void 0?void 0:h.getScale(0))===null||d===void 0?void 0:d.type)?"y":"x",k=u.map((w,C)=>[w,C]).filter(([,w])=>P(m==null?void 0:m[w]));let M=[m??[]];k.length>0&&k.forEach(([w,C])=>{var R,I,O,B;const L=(B=(O=(I=(R=n.getViewDataStatistics)===null||R===void 0?void 0:R.call(n))===null||I===void 0?void 0:I.latestData[w])===null||O===void 0?void 0:O.values)!==null&&B!==void 0?B:[],F=[];M.forEach(z=>{L.forEach(K=>{var et;const j=(et=z==null?void 0:z.slice())!==null&&et!==void 0?et:[];j[C]=K,F.push(j)})}),M=F}),M.forEach(w=>{var C,R;if(b){const I=(C=A.getViewData())===null||C===void 0?void 0:C.latestData.filter(yo(u,w));_.forEach(O=>{const B=I.find(F=>F[g]===O);if(y=bl(p,B),!ed(y))return;const L=A.dataToPosition(B);P(L)||isNaN(L.x)||isNaN(L.y)||i.push({pos:L,data:{dimensionFields:u,dimensionData:w,measureFields:p,measureData:y,hasMeasureData:v,groupField:g,groupData:O},series:n,dimType:T})})}else{const I=(R=A.getViewData())===null||R===void 0?void 0:R.latestData.find(yo(u,w));if(!v&&(y=bl(p,I),!ed(y)))return;const O=A.dataToPosition(I);if(P(O)||isNaN(O.x)||isNaN(O.y))return;i.push({pos:O,data:{dimensionFields:u,dimensionData:w,measureFields:p,measureData:y,hasMeasureData:v,groupField:g,groupData:f},dimType:T,series:n})}})}else if(n.coordinate==="polar")if(n.type===H.pie)x();else{const A=n;if(b){const T=((c=A.getViewData())===null||c===void 0?void 0:c.latestData.filter(yo(u,m))).find(k=>k[g]===f);_.forEach(k=>{if(y=bl(p,T),!ed(y))return;const M=A.dataToPosition(T);P(M)||isNaN(M.x)||isNaN(M.y)||i.push({pos:M,data:{dimensionFields:u,dimensionData:m,measureFields:p,measureData:y,hasMeasureData:v,groupField:g,groupData:k},series:n})})}else x()}else n.coordinate==="geo"&&x()}),i},ya=s=>{var t,e,i;if((s==null?void 0:s.visible)===!1)return[];const n={mark:((t=s==null?void 0:s.mark)===null||t===void 0?void 0:t.visible)!==!1,dimension:((e=s==null?void 0:s.dimension)===null||e===void 0?void 0:e.visible)!==!1,group:((i=s==null?void 0:s.group)===null||i===void 0?void 0:i.visible)!==!1};return E(s==null?void 0:s.activeType)&&Object.keys(n).forEach(r=>{var a;n[r]=(a=s==null?void 0:s.activeType)===null||a===void 0?void 0:a.includes(r)}),Object.keys(n).filter(r=>n[r])};function ott(s){return P(s.mark)&&P(s.model)&&P(s.datum)}const pP=(s,t,e)=>{var i,n;return(n=(i=s.tooltipHelper)===null||i===void 0?void 0:i.getDefaultTooltipPattern(t,e))!==null&&n!==void 0?n:null};class ltt{constructor(){this.activeTriggerSet={mark:new Set,dimension:new Set,group:new Set},this.ignoreTriggerSet={mark:new Set,dimension:new Set,group:new Set}}}class yn extends ltt{constructor(t){super(),this._getSeriesCacheInfo=()=>{var e,i,n;const{series:r}=this,a=r.getSeriesField();return{seriesFields:E(a)?V(a):(e=r.getSeriesKeys())!==null&&e!==void 0?e:[],dimensionFields:(i=r.getDimensionField())!==null&&i!==void 0?i:[],measureFields:(n=r.getMeasureField())!==null&&n!==void 0?n:[],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:n}=this._seriesCacheInfo;if(E(n[0])&&(e!=null&&e[n[0]]))return e==null?void 0:e[n[0]];const r=i[i.length-1];return i.length>1&&(n.length===0||this.series.getSeriesKeys().length),e==null?void 0:e[r]},this._getSeriesStyle=(e,i,n)=>{var r;for(const a of V(i)){const o=(r=this.series.getSeriesStyle(e))===null||r===void 0?void 0:r(a);if(E(o))return o}return n},this.markTooltipKeyCallback=(e,i)=>this._getSeriesFieldData(e),this.markTooltipValueCallback=(e,i)=>this._getMeasureData(e),this.shapeTypeCallback=(e,i)=>{var n;return(n=this._getSeriesStyle(e,"shape",null))!==null&&n!==void 0?n: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:n}=this._seriesCacheInfo;let r=this._seriesCacheInfo.dimensionFields;return n[0]&&(r=r.filter(a=>a!==n[0])),r.map(a=>e==null?void 0:e[a]).join("-")},this.series=t,this.updateTooltipSpec()}updateTooltipSpec(){var t,e,i,n;const r=(e=(t=this.series.getSpec())===null||t===void 0?void 0:t.tooltip)!==null&&e!==void 0?e:{},a=(n=(i=this.series.getChart().getSpec())===null||i===void 0?void 0:i.tooltip)!==null&&n!==void 0?n:{},o=Object.assign(Object.assign({},a),r);["mark","dimension","group"].forEach(l=>{const h=o[l];E(h)&&(o[l]=Object.assign(Object.assign({},h),{title:Fx(h.title,{seriesId:this.series.id},!0),content:zx(h.content,{seriesId:this.series.id},!0)}))}),this.spec=o,this.activeType=ya(o),this._seriesCacheInfo=this._getSeriesCacheInfo()}getDefaultTooltipPattern(t,e){switch(t){case"mark":return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{seriesId:this.series.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"group":return{visible:!0,activeType:t,title:{key:void 0,value:this.groupTooltipTitleCallback,hasShape:!1},content:[{seriesId:this.series.id,key:this.groupTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},n=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{n.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:n}}}return null}}const k_=(s,t,e)=>{const i=N(t)?t(s):t;return e?Object.assign(Object.assign({},s),i):Object.assign(Object.assign({},i),s)},Fx=(s,t,e)=>E(s)?N(s)?(...i)=>k_(s(...i),t,e):k_(s,t,e):void 0,zx=(s,t,e)=>E(s)?V(s).map(i=>N(i)?(...n)=>V(i(...n)).map(r=>k_(r,t,e)):k_(i,t,e)):void 0,htt=(s,t,e,i)=>{var n,r,a,o,l,h,d;const c=Object.assign(Object.assign({},t),{activeType:s}),{style:u={}}=t;switch(s){case"mark":case"group":if(e){const v=(r=(n=e.tooltipHelper)===null||n===void 0?void 0:n.spec)!==null&&r!==void 0?r:{};if(E(v.visible)||E(v.activeType)?c.visible=ya(v).includes(s):E(t.visible)||E(t.activeType)?c.visible=ya(t).includes(s):c.visible=!0,c.handler=(o=(a=v.handler)!==null&&a!==void 0?a:t.handler)!==null&&o!==void 0?o:void 0,(l=c.handler)===null||l===void 0?void 0:l.showTooltip)return c}break;case"dimension":if(i!=null&&i.length&&(H2(i).every(v=>{var b;return!ya((b=v.tooltipHelper)===null||b===void 0?void 0:b.spec).includes("dimension")})?c.visible=!1:E(t.visible)||E(t.activeType)?c.visible=ya(t).includes("dimension"):c.visible=!0,c.handler=(h=t.handler)!==null&&h!==void 0?h:void 0,(d=c.handler)===null||d===void 0?void 0:d.showTooltip))return c}const p=dtt(s,e,i),g=ctt(s,e,i),f=vt({},pn(t[s]),g),_=p.title,m=Vv(void 0,f,u.shape,void 0,_);E(f.title)?f.title=Fx(f.title,Object.assign(Object.assign({},_),m)):f.title=Fx(_,m,!0);const y=V(p.content);if(E(f.content)){const v=utt(y);f.content=zx(f.content,b=>Vv(b,f,u.shape,v))}else f.content=zx(y,v=>Vv(void 0,f,u.shape,void 0,v),!0);return c[s]=Object.assign(Object.assign(Object.assign({},p),f),{activeType:s}),c},dtt=(s,t,e)=>{var i;let n={};switch(s){case"mark":case"group":t&&(n=(i=pP(t,s))!==null&&i!==void 0?i:{});break;case"dimension":if(e!=null&&e.length){const r=[];e.forEach(({data:o})=>o.forEach(l=>{const{series:h}=l,d=[Object.assign(Object.assign({},e[0]),{data:[l]})],c=pP(h,"dimension",d);c&&r.push(c)}));const a=[];r.forEach(({content:o})=>{N(o)?a.push(o):a.push(...V(o))}),n=Object.assign(Object.assign({},r[0]),{content:a})}}return n},ctt=(s,t,e)=>{var i,n;let r={};switch(s){case"mark":case"group":if(t){const a=(n=(i=t.tooltipHelper)===null||i===void 0?void 0:i.spec)!==null&&n!==void 0?n:{};r=a[s]?pn(a[s]):{}}break;case"dimension":if(e!=null&&e.length){const a=H2(e).filter(o=>{var l;const h=(l=o.tooltipHelper)===null||l===void 0?void 0:l.spec;return E(h==null?void 0:h.dimension)&&ya(h).includes("dimension")}).map(o=>o.tooltipHelper.spec.dimension);if(a.length){let o=[];a.every(({content:l})=>P(l))?o=void 0:a.forEach(({content:l})=>{P(l)||(N(l)?o==null||o.push(l):o==null||o.push(...V(l)))}),r=Object.assign(Object.assign({},a[0]),{content:o})}}}return r},H2=Ch(s=>s.reduce((t,e)=>t.concat(e.data.map(i=>i.series).filter(E)),[])),utt=s=>{const t={};return s.forEach(e=>{var i;const n=(i=e.seriesId)!==null&&i!==void 0?i:0;t[n]||(t[n]=e)}),t},Vv=(s,t,e,i,n)=>{var r,a,o;e&&(e.shapeSize=(r=e.shapeSize)!==null&&r!==void 0?r:e.size);const l=[s,t,e,(o=i==null?void 0:i[(a=s==null?void 0:s.seriesId)!==null&&a!==void 0?a:0])!==null&&o!==void 0?o:i==null?void 0:i[0],n].filter(E),h=new Set(l.reduce((c,u)=>c.concat(Object.keys(u)),[]).filter(c=>c.toLowerCase().includes("shape"))),d={};return h.forEach(c=>{let u,p=0;do u=l[p++][c];while(p{let n;if(n=N(s)?s(t,e):s,i){const{formatFunc:r,args:a}=Wr(void 0,i,s,t);r&&a&&(n=r(...a))}return n},T_=(s,t,e)=>P(s)?s:N(s)?s(t,e):s,ptt=(s,t,e)=>{if(P(s))return s;let i=[];return V(s).forEach(n=>{N(n)?i=i.concat(V(n(t,e))):i.push(n)}),i};function gtt(s){var t;const e=!((t=s[0])===null||t===void 0)&&t.series?[{data:s,value:""}]:s;for(const{data:i}of e)for(const{datum:n}of i)for(const r of n??[])if(r)return r}class Ya{}Ya.dom=`${bt}_TOOLTIP_HANDLER_DOM`,Ya.canvas=`${bt}_TOOLTIP_HANDLER_CANVAS`;const ftt="vchart-tooltip-element",_tt=20,gP={key:"其他",value:"..."},Hx=(s,t,e)=>{if(!t&&!e)return typeof s!="object"?s==null?void 0:s.toString():s;const i=Cs.getInstance();return t=t||"%Y%m%d",((e=e||"local")==="local"?i.timeFormat:i.timeUTCFormat)(t,s)},mtt=(s,t,e)=>{var i,n,r,a;if(!t||((i=e==null?void 0:e.event)===null||i===void 0?void 0:i.type)==="mouseout")return null;const o={title:{},content:[]},l=T_(s.title,t,e),{visible:h,value:d,valueTimeFormat:c,valueTimeFormatMode:u,valueStyle:p,hasShape:g,valueFormatter:f}=l??{},_=ji(h,t,e)!==!1;if(l&&_){const x=gtt(t);o.title={value:Hx(ji(d,x,e,f),c,u),valueStyle:ji(p,x,e),hasShape:g}}else o.title={hasShape:!1,visible:!1};const m=ptt(s.content,t,e),{maxLineCount:y=_tt}=s,v=s.othersLine?Object.assign(Object.assign({},gP),s.othersLine):gP,b=x=>{if(x!=null&&x.length)for(const A of x)for(const T of m??[]){const k=fP(A,T,e);if(k.visible!==!1){if(o.content.length===y-1){o.content.push(Object.assign(Object.assign({},k),v));break}if(!(o.content.lengthP(M.seriesId)||M.seriesId===T.id))!==null&&a!==void 0?a:[];for(const M of A){for(const w of k){const C=fP(M,w,e);if(C.visible!==!1){if(o.content.length===y-1){o.content.push(Object.assign(Object.assign({},C),v));break}if(!(o.content.length=y)break}if(o.content.length>=y)break}if(o.content.length>=y)break}}return o.title&&(o.content.length>0&&o.content[0].shapeType?(P(o.title.shapeType)&&(o.title.shapeType=o.content[0].shapeType),P(o.title.shapeColor)&&(o.title.shapeColor=o.content[0].shapeColor)):o.title.hasShape=!1),o},fP=(s,t,e)=>{const i=Hx(ji(t.key,s,e,t.keyFormatter),t.keyTimeFormat,t.keyTimeFormatMode),n=Hx(ji(t.value,s,e,t.valueFormatter),t.valueTimeFormat,t.valueTimeFormatMode),r=ji(t.visible,s,e)!==!1&&(E(i)||E(n)),a=ji(t.isKeyAdaptive,s,e),o=ji(t.spaceRow,s,e),l=ji(t.shapeType,s,e),h=ji(t.shapeColor,s,e),d=ji(t.shapeFill,s,e),c=ji(t.shapeStroke,s,e),u=ji(t.shapeLineWidth,s,e),p=ji(t.shapeHollow,s,e),g=ji(t.keyStyle,s,e),f=ji(t.valueStyle,s,e);return{key:i,value:n,visible:r,isKeyAdaptive:a,hasShape:t.hasShape,shapeType:l,shapeFill:d,shapeStroke:c,shapeLineWidth:u,shapeHollow:p,shapeColor:h,keyStyle:g,valueStyle:f,spaceRow:o,datum:s}};class P1 extends C1{constructor(){super(...arguments),this._visible=!0,this._attributes=null,this._isReleased=!1,this.showTooltip=(t,e,i)=>{const{changePositionOnly:n}=i;return n?this.changeTooltipPosition(i,e):this.changeTooltip(!0,i,e)},this._changeTooltip=(t,e,i)=>this._isReleased?1:t?this._changeTooltipPosition(e,i):(this._clearAllCache(),this._updateTooltip(!1,e),0),this._changeTooltipPosition=(t,e)=>{var i,n,r;if(this._isReleased)return 1;const a=t.event,{tooltipSpec:o,tooltipActual:l,changePositionOnly:h}=t;if(o.enterable){if(!this._isPointerEscaped&&this._isPointerMovingToTooltip(t))return this._isTooltipPaused||(this._isTooltipPaused=!0,this._cachePointerTimer=setTimeout(()=>{this._isPointerEscaped=!0},300)),0;this._isTooltipPaused=!1,this._isPointerEscaped=!1,clearTimeout(this._cachePointerTimer),this._cachePointerPosition=this._getPointerPositionRelativeToTooltipParent(t)}const d=l.activeType;if(o.handler)return(r=(n=(i=o.handler).showTooltip)===null||n===void 0?void 0:n.call(i,d,e,t))!==null&&r!==void 0?r:0;const c=o[d];if(!c)return 1;const u=this._getActualTooltipPosition(l,t,this._getTooltipBoxSize(l,h));l.position=u,c.updatePosition&&(l.position=c.updatePosition(l.position,e,t));let p=(c==null?void 0:c.visible)!==!1;return e&&a.type!=="pointerout"&&l.visible&&(l.title||l.content)||(p=!1),this._updateTooltip(p,Object.assign(Object.assign({},t),{changePositionOnly:h})),0},this._getActualTooltipPosition=(t,e,i)=>{var n,r,a,o,l,h,d;const c=e.event,{tooltipSpec:u}=e,p=(n=e.dimensionInfo)===null||n===void 0?void 0:n[0],g={x:1/0,y:1/0};let{offsetX:f,offsetY:_}=this._option;if(!u)return this._cacheTooltipPosition=void 0,g;const{activeType:m,data:y}=t,v=u[m],b=T_(v.position,y,e),x=(r=T_(v.positionMode,y,e))!==null&&r!==void 0?r:m==="mark"?"mark":"pointer",A=this._getParentElement(u),{width:T=0,height:k=0}=i??{},M=u.renderMode==="canvas",w=(a=e==null?void 0:e.chart)===null||a===void 0?void 0:a.getCanvasRect(),C=(o=w==null?void 0:w.width)!==null&&o!==void 0?o:Wl,R=(l=w==null?void 0:w.height)!==null&&l!==void 0?l:Gl;let I=!1;const O={width:0,height:0};let B={x:0,y:0},L={x:0,y:0},F=1,z=1;if(Nn(this._env)&&!u.confine){if(O.width=window.innerWidth,O.height=window.innerHeight,!M){L=(h=A==null?void 0:A.getBoundingClientRect())!==null&&h!==void 0?h:g;const he=(d=this._compiler.getCanvas())!==null&&d!==void 0?d:this._chartContainer,Me=he==null?void 0:he.getBoundingClientRect();B={x:Me.x-L.x,y:Me.y-L.y},F=Vp(he,Me),z=Vp(A,L)}}else O.width=C,O.height=R;const K=z/F;let et,j,st,ht,ut=b,J=b;const $=({orient:he,mode:Me,offset:ki})=>{var te;let me,Be;const Ti=e.model,ri=Ti==null?void 0:Ti.getLayoutStartPoint();if(f=ki??f,Me==="mark"){I=!0;const Ge=e.item,gs=Ge==null?void 0:Ge.getBounds();gs&&ri&&(me=gs.x1+ri.x,Be=gs.x2+ri.x)}else if(Me==="crosshair"&&((te=p==null?void 0:p.axis)===null||te===void 0?void 0:te.getCoordinateType())==="cartesian"){I=!0;const Ge=uP(e.dimensionInfo,Wo(this._component.getRegions(),"cartesian"),ri);Ge&&(me=Ge.start.x,Be=Ge.end.x)}else ut=he;if(I)switch(Qh(he)){case"left":et=me-T*K-f;break;case"right":et=Be+f;break;case"center":et=(me+Be)/2-T*K/2;break;case"centerLeft":et=(me+Be)/2-T*K-f;break;case"centerRight":et=(me+Be)/2+f}},Z=({orient:he,mode:Me,offset:ki})=>{var te;let me,Be;const Ti=e.model,ri=Ti==null?void 0:Ti.getLayoutStartPoint();if(_=ki??_,Me==="mark"){I=!0;const Ge=e.item,gs=Ge==null?void 0:Ge.getBounds();gs&&ri&&(me=gs.y1+ri.y,Be=gs.y2+ri.y)}else if(Me==="crosshair"&&((te=p==null?void 0:p.axis)===null||te===void 0?void 0:te.getCoordinateType())==="cartesian"){I=!0;const Ge=uP(e.dimensionInfo,Wo(this._component.getRegions(),"cartesian"),ri);Ge&&(me=Ge.start.y,Be=Ge.end.y)}else J=he;if(I)switch(td(he)){case"top":j=me-k*K-_;break;case"bottom":j=Be+_;break;case"center":j=(me+Be)/2-k*K/2;break;case"centerTop":j=(me+Be)/2-k*K-_;break;case"centerBottom":j=(me+Be)/2+_}};if(Et(b)){if(ttt(b)){const{left:he,right:Me,top:ki,bottom:te}=b;et=vl(he,c),j=vl(ki,c),st=vl(Me,c),ht=vl(te,c)}else if(ett(b)){const{x:he,y:Me}=b;nt(he)||N(he)?et=vl(he,c):$(he),nt(Me)||N(Me)?j=vl(Me,c):Z(Me)}}else E(b)&&($({orient:b,mode:x}),Z({orient:b,mode:x}));let X,dt;const{canvasX:ct,canvasY:kt}=c;if(W(et))X=et;else if(W(st))X=C-T*K-st;else{const he=ct;switch(Qh(ut,"right")){case"center":X=he-T*K/2;break;case"left":case"centerLeft":X=he-T*K-f;break;case"right":case"centerRight":X=he+f}}if(W(j))dt=j;else if(W(ht))dt=R-k*K-ht;else{const he=kt;switch(td(J,"bottom")){case"center":dt=he-k*K/2;break;case"top":case"centerTop":dt=he-k*K-_;break;case"bottom":case"centerBottom":dt=he+_}}X*=F,dt*=F,Nn(this._env)&&(X+=B.x,dt+=B.y),X/=z,dt/=z;const{width:ot,height:yt}=O,St=()=>X*z+L.x<0,Dt=()=>(X+T)*z+L.x>ot,At=()=>dt*z+L.y<0,Se=()=>(dt+k)*z+L.y>yt,_e=()=>{St()&&(I?X=-L.x/z:Qh(b,"right")==="center"?X+=f+T/2:X+=2*f+T)},si=()=>{St()&&(X=-L.x/z)},Re=()=>{Dt()&&(I?X=(ot-L.x)/z-T:Qh(b,"right")==="center"?X-=f+T/2:X-=2*f+T)},Je=()=>{Dt()&&(X=(ot-L.x)/z-T)},zi=()=>{At()&&(I?dt=-L.y/z:td(b,"bottom")==="center"?dt+=_+k/2:dt+=2*_+k)},Ai=()=>{At()&&(dt=0-L.y/z)},js=()=>{Se()&&(I?dt=(yt-L.y)/z-k:td(b,"bottom")==="center"?dt-=_+k/2:dt-=2*_+k)},Zr=()=>{Se()&&(dt=(yt-L.y)/z-k)};switch(Qh(b,"right")){case"center":case"centerLeft":case"centerRight":St()?(_e(),Je()):(Re(),si());break;case"left":_e(),Je();break;case"right":Re(),si()}switch(td(b,"bottom")){case"center":case"centerTop":case"centerBottom":At()?(zi(),Zr()):(js(),Ai());break;case"top":zi(),Zr();break;case"bottom":js(),Ai()}const cl={x:X,y:dt};return this._cacheTooltipPosition=cl,this._cacheTooltipSize={width:T,height:k},cl}}get env(){return this._env}onAdd(t){super.onAdd(t);const e=t.component;this._component=e,this._chartOption=e.getOption(),this._env=this._chartOption.mode,this._chartContainer=this._chartOption.globalInstance.getContainer(),this._compiler=e.getCompiler(),this._initFromSpec()}hideTooltip(t){return this.changeTooltip(!1,t)}release(){var t,e,i;this._clearAllCache();const n=(t=this._component.getSpec())!==null&&t!==void 0?t:{};n.handler?(i=(e=n.handler).release)===null||i===void 0||i.call(e):(this._removeTooltip(),this._isReleased=!0)}_clearAllCache(){this._isTooltipPaused=!1,this._isPointerEscaped=!1,clearTimeout(this._cachePointerTimer),this._cachePointerTimer=-1,this._cachePointerPosition=void 0,this._cacheTooltipPosition=void 0,this._cacheTooltipSize=void 0}_throttle(t){const e=this._component.getSpec();let i;return i=nt(e.throttleInterval)?e.throttleInterval:e.renderMode==="html"&&e.transitionDuration?50:10,Ka(t,i)}_getDefaultOption(){var t,e;const{offset:i}=this._component.getSpec();return Object.assign(Object.assign({},Hv),{offsetX:(t=i==null?void 0:i.x)!==null&&t!==void 0?t:Hv.offsetX,offsetY:(e=i==null?void 0:i.y)!==null&&e!==void 0?e:Hv.offsetY})}_getTooltipBoxSize(t,e){var i,n,r;if(!e||P(this._attributes)){const h=(n=(i=this._chartOption)===null||i===void 0?void 0:i.getTheme())!==null&&n!==void 0?n:{};this._attributes=stt(t,this._component.getSpec(),h)}const{panel:a,panelDomHeight:o}=(r=this._attributes)!==null&&r!==void 0?r:{},l=this._component.getSpec().renderMode==="canvas";return{width:(a==null?void 0:a.width)+(l?a.lineWidth:0),height:(o??(a==null?void 0:a.height))+(l?a.lineWidth:0)}}_getPointerPositionRelativeToTooltipParent(t){var e,i;let{canvasX:n,canvasY:r}=t.event;const{tooltipSpec:a}=t,o={x:1/0,y:1/0},l=a.renderMode==="canvas",h=this._getParentElement(a);let d={x:0,y:0},c={x:0,y:0},u=1,p=1;if(Nn(this._env)&&!a.confine&&!l){c=(e=h==null?void 0:h.getBoundingClientRect())!==null&&e!==void 0?e:o;const g=(i=this._compiler.getCanvas())!==null&&i!==void 0?i:this._chartContainer,f=g==null?void 0:g.getBoundingClientRect();d={x:f.x-c.x,y:f.y-c.y},u=Vp(g,f),p=Vp(h,c)}return n*=u,r*=u,Nn(this._env)&&(n+=d.x,r+=d.y),n/=p,r/=p,{x:n,y:r}}_isPointerMovingToTooltip(t){if(!this._cacheTooltipPosition||!this._cacheTooltipSize||!this._cachePointerPosition)return!1;const{width:e,height:i}=this._cacheTooltipSize,{x:n=0,y:r}=this._cacheTooltipPosition,a=this._getPointerPositionRelativeToTooltipParent(t);if(bd(a,{x1:n,y1:r,x2:n+e,y2:r+i},!1))return!0;const o={x:n,y:r},l={x:o.x+e,y:o.y},h={x:o.x,y:o.y+i},d={x:l.x,y:h.y},c=this._cachePointerPosition;return uo([c,o,l],a.x,a.y)||uo([c,h,d],a.x,a.y)||uo([c,o,d],a.x,a.y)||uo([c,l,h],a.x,a.y)}_getParentElement(t){return t.parentElement}getTooltipContainer(){return this._container}_initFromSpec(){this._option=this._getDefaultOption(),this.changeTooltip=this._throttle(this._changeTooltip),this.changeTooltipPosition=this._throttle(this._changeTooltipPosition)}reInit(){this._initFromSpec()}}P1.specKey="tooltip";const ve=(s,t)=>E(s)?G(s)?s.map(e=>`${e}px`).join(" "):`${s}px`:t??"initial",j2=s=>{const t=s.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 Wv;const vtt=(s=document.body)=>{if(P(Wv)){const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",s.appendChild(t);const e=document.createElement("div");t.appendChild(e),Wv=t.offsetWidth-e.offsetWidth,t.parentNode.removeChild(t)}return Wv};function ytt(s){var t,e,i;const{panel:n={},title:r,content:a,titleStyle:o={},contentStyle:l={},padding:h,keyWidth:d,valueWidth:c,enterable:u,transitionDuration:p,panelDomHeight:g=0}=s??{},{fill:f,shadow:_,shadowBlur:m,shadowColor:y,shadowOffsetX:v,shadowOffsetY:b,shadowSpread:x,cornerRadius:A,stroke:T,lineWidth:k=0,width:M=0}=n,{value:w={}}=o,{shape:C={},key:R={},value:I={}}=l,O=btt(C),B=id(R),L=id(I),{bottom:F,left:z,right:K,top:et}=jr(h);return{panel:{width:ve(M+2*k),minHeight:ve(g+2*k),paddingBottom:ve(F),paddingLeft:ve(z),paddingRight:ve(K),paddingTop:ve(et),borderColor:T,borderWidth:ve(k),borderRadius:ve(A),backgroundColor:f?`${f}`:"transparent",boxShadow:_?`${v}px ${b}px ${m}px ${x}px ${y}`:"initial",pointerEvents:u?"auto":"none",transitionDuration:p?`${p}ms`:"initial",transitionProperty:p?"transform":"initial",transitionTimingFunction:p?"ease-out":"initial"},title:Object.assign({marginTop:"0px",marginBottom:a!=null&&a.length?ve(r==null?void 0:r.spaceRow):"0px"},id(vt({},w,r==null?void 0:r.value))),content:{},shapeColumn:{common:O,items:a==null?void 0:a.map(({spaceRow:j},st)=>({marginTop:"0px",marginBottom:stObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:htObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:hte.setOption(t))}getParentEl(){return as.isInstance(this.parent)?this.parent.product:this.parent}constructor(t,e,i){this.type=as.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,n){const r=ua==null?void 0:ua.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]}),n&&(r.id=n);let o=this.childIndex;if(as.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}}as.type="tooltipModel";const xtt={fontSize:"13px",marginBottom:"0px",fontWeight:"normal"},Stt={boxSizing:"border-box"},Att={display:"inline-block",verticalAlign:"top"},ktt={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},Ttt={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},Mtt={paddingTop:"0px",paddingBottom:"0px",textAlign:"right",fontWeight:"normal"},wtt={lineHeight:"normal",boxSizing:"border-box"};class V2 extends as{init(t,e,i){if(!this.product){const n=this.createElement(i??"div",[...t??[],"shape"],void 0,e);this.product=n}}setStyle(t,e){super.setStyle(t),this.setSvg(e)}setContent(t){this.setSvg(t)}setSvg(t){const e=Ptt(t,this._option.valueToHtml);this.product&&e!==this._svgHtmlCache&&(this._svgHtmlCache=e,this.product.innerHTML=e)}release(){super.release(),this._svgHtmlCache=""}}const Ctt={star:"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"};function Ptt(s,t){var e,i,n,r,a,o,l;if(!(s!=null&&s.hasShape)||!s.symbolType)return"";const{symbolType:h,fill:d,stroke:c,hollow:u=!1}=s,p=s.size?t(s.size):"8px",g=s.lineWidth?t(s.lineWidth)+"px":"0px";let f="currentColor";const _=()=>c?t(c):f,m=j2(p),y=M=>new wS({symbolType:M,size:m,fill:!0});let v=y((e=Ctt[h])!==null&&e!==void 0?e:h);const b=v.getParsedPath();b.path||(v=y(b.pathStr));const x=v.getParsedPath().path,A=x.toString(),T=x.bounds;let k=`${T.x1} ${T.y1} ${T.width()} ${T.height()}`;if(g!=="0px"){const[M,w,C,R]=k.split(" ").map(O=>Number(O)),I=Number(g.slice(0,-2));k=`${M-I/2} ${w-I/2} ${C+I} ${R+I}`}if(!d||at(d)||u)return f=u?"none":d?t(d):"currentColor",` + + + + `;if(Et(d)){f=(i="gradientColor"+s.index)!==null&&i!==void 0?i:"";let M="";const w=((n=d.stops)!==null&&n!==void 0?n:[]).map(C=>``).join("");return d.gradient==="radial"?M=` + ${w} + `:d.gradient==="linear"&&(M=` + ${w} + `),` + + ${M} + + + `}return""}class W2 extends as{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 _P={overflowWrap:"normal",wordWrap:"normal"};class Gv extends as{constructor(t,e,i,n){super(t,e,n),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(n=>n.hasShape&&n.shapeType)){Object.keys(this.children).forEach(n=>{const r=Zs(n);r>=i.length&&(this.children[r].release(),delete this.children[r])});for(let n=0;n{const r=Zs(n);this.children[r].release(),delete this.children[r]})}setStyle(){var t,e,i,n;const r=this._option.getTooltipStyle();super.setStyle(vt({},Att,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=(n=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&n!==void 0?n:[],l=(h,d)=>{var c,u;const{key:p,isKeyAdaptive:g}=h,{height:f}=o[d],{keyColumn:_}=r,m=vt({},g?Ttt:ktt,Object.assign(Object.assign(Object.assign({height:ve(f)},_P),_.common),(c=_.items)===null||c===void 0?void 0:c[d]));return at(p)&&((u=p==null?void 0:p.trim)===null||u===void 0?void 0:u.call(p))!==""||nt(p)||m.visibility?m.visibility="visible":m.visibility="hidden",m};a.forEach((h,d)=>{var c;this.className==="key-box"?this.children[d].setStyle(l(h,d)):this.className==="value-box"?this.children[d].setStyle(((u,p)=>{var g;const{height:f}=o[p],{valueColumn:_}=r;return vt({},Mtt,Object.assign(Object.assign(Object.assign({height:ve(f)},_P),_.common),(g=_.items)===null||g===void 0?void 0:g[p]))})(0,d)):this.className==="shape-box"&&((c=this.children[d])===null||c===void 0||c.setStyle(((u,p)=>{var g,f,_,m;const{height:y}=o[p],{shapeColumn:v}=r,b=l(u,p),x=`calc((${(f=(g=b.lineHeight)!==null&&g!==void 0?g:b.fontSize)!==null&&f!==void 0?f:"18px"} - ${(_=v.width)!==null&&_!==void 0?_:"8px"}) / 2)`;return vt({},wtt,Object.assign(Object.assign({height:ve(y),paddingTop:x},v.common),(m=v.items)===null||m===void 0?void 0:m[p]))})(h,d),this._getShapeSvgOption(h,d)))})}setContent(){var t,e,i,n;const r=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[],a=(n=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&n!==void 0?n:[];r.forEach((o,l)=>{var h,d,c,u,p,g,f;let _;if(this.className==="key-box"){const m=o.key;_=at(m)&&((h=m==null?void 0:m.trim)===null||h===void 0?void 0:h.call(m))!==""||nt(m)?m:oP,(d=this.children[l])===null||d===void 0||d.setContent(_,(c=a[l].key)===null||c===void 0?void 0:c.multiLine)}else if(this.className==="value-box"){const m=o.value;_=at(m)&&((u=m==null?void 0:m.trim)===null||u===void 0?void 0:u.call(m))!==""||nt(m)?m:oP,(p=this.children[l])===null||p===void 0||p.setContent(_,(g=a[l].value)===null||g===void 0?void 0:g.multiLine)}else this.className==="shape-box"&&(_=this._getShapeSvgOption(o,l),(f=this.children[l])===null||f===void 0||f.setContent(_))})}_getContentColumnStyle(){var t,e;const i=this._option.getTooltipStyle();switch(this.className){case"shape-box":const n=(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"||n.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,n;const r=this._option.getTooltipStyle(),a=Object.assign(Object.assign({},r.shapeColumn),(i=r.shapeColumn.items)===null||i===void 0?void 0:i[e]);return{hasShape:t.hasShape,symbolType:t.shapeType,size:a.width,fill:(n=t.shapeFill)!==null&&n!==void 0?n:t.shapeColor,stroke:t.shapeStroke,lineWidth:t.shapeLineWidth,hollow:t.shapeHollow,index:e}}}class Ett extends as{init(){this.product||(this.product=this.createElement("div",["container-box"])),this.shapeBox||this._initShapeBox(),this.keyBox||this._initKeyBox(),this.valueBox||this._initValueBox()}_initShapeBox(){const t=new Gv(this.product,this._option,"shape-box",0);t.init(),this.shapeBox=t,this.children[t.childIndex]=t}_initKeyBox(){const t=new Gv(this.product,this._option,"key-box",1);t.init(),this.keyBox=t,this.children[t.childIndex]=t}_initValueBox(){const t=new Gv(this.product,this._option,"value-box",2);t.init(),this.valueBox=t,this.children[t.childIndex]=t}setStyle(t){super.setStyle(vt(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:n}=this._option.getTooltipAttributes();if(E(n)&&ed+j2(c),0);return Object.assign(Object.assign({},t),{width:`${h+vtt(this._option.getContainer())}px`,maxHeight:ve(n),overflow:"auto"})}return t}release(){super.release(),this.shapeBox=null,this.keyBox=null,this.valueBox=null}}class Rtt extends as{init(){const t=this._option.getTooltipActual();this.product||(this.product=this.createElement("h2"));const{title:e}=t;e!=null&&e.hasShape&&(e!=null&&e.shapeType)?this.shape||this._initShape():this.shape&&this._releaseShape(),this.textSpan||this._initTextSpan()}_initShape(){const t=new V2(this.product,this._option,0);t.init(),this.shape=t,this.children[t.childIndex]=t}_releaseShape(){this.shape&&(this.shape.release(),delete this.children[this.shape.childIndex],this.shape=null)}_initTextSpan(){const t=new W2(this.product,this._option,1);t.init(),this.textSpan=t,this.children[t.childIndex]=t}setStyle(t){var e,i,n,r;const a=this._option.getTooltipStyle(),o=this._option.getTooltipActual(),{title:l}=o;super.setStyle(vt({},xtt,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:(n=a.shapeColumn.common)===null||n===void 0?void 0:n.width,fill:l==null?void 0:l.shapeColor,hollow:l==null?void 0:l.shapeHollow}),(r=this.textSpan)===null||r===void 0||r.setStyle({color:"inherit"})}setContent(){var t,e,i,n,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.shapeColor,hollow:d==null?void 0:d.shapeHollow}),(i=this.textSpan)===null||i===void 0||i.setStyle({color:"inherit"}),(n=this.textSpan)===null||n===void 0||n.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 G2="99999999999999";class Btt extends as{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&&E(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:G2,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 Rtt(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 Ett(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(vt({},Stt,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 N2=s=>{D.registerComponentPlugin(s.type,s)};class _0 extends P1{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(_0.type),this.type=Ya.dom,this._tooltipContainer=ua==null?void 0:ua.body}onAdd(t){super.onAdd(t),this._initStyle(),this.initEl()}initEl(){const t=this._component.getSpec(),e=t.parentElement;if(ua&&e){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,n;const{tooltipActual:r,tooltipSpec:a}=e;if(t&&this.model){if(!e.changePositionOnly){this._tooltipActual=r,this._initStyle();const l=!this.model.product;this.model.initAll(),l&&this._initEvent(this.model.product),this.model.setStyle(),this.model.setContent()}this.setVisibility(t);const o=this.model.product;if(o){const{x:l=0,y:h=0}=(i=r.position)!==null&&i!==void 0?i:{};if(a.updateElement){this._updatePosition((n=this._cacheCustomTooltipPosition)!==null&&n!==void 0?n:{x:l,y:h}),a.updateElement(o,r,e);const d=this._getActualTooltipPosition(r,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=ytt(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)`)}_initEvent(t){t.addEventListener("pointerleave",e=>{const{renderMode:i,enterable:n}=this._component.getSpec(),r=e.relatedTarget;i==="html"&&n&&(P(r)||r!==this._compiler.getCanvas()&&!KE(r,this.getTooltipContainer()))&&this._component.hideTooltip()})}}_0.type=Ya.dom;const Itt=()=>{N2(_0)};class m0 extends P1{constructor(){super(m0.type),this.type=Ya.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 kL({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{tooltipActual:n}=e,r=n.position;e.changePositionOnly?E(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()}}m0.type=Ya.canvas;const Ltt=()=>{N2(m0)},Fh=(s,t)=>{const e=t.beforeCall();return s.forEach((i,n)=>t.call(i,n,e)),e.keyMap&&(e.keyMap.clear(),e.keyMap=null),s},Ott={min:s=>s.length?qe(s.map(t=>1*t)):0,max:s=>s.length?ze(s.map(t=>1*t)):0,"array-min":s=>s.length?qe(s.map(t=>1*t)):0,"array-max":s=>s.length?ze(s.map(t=>1*t)):0,values:s=>{const t={},e=[];for(const i of s)t[i]||(e.push(i),t[i]=1);return e}},jx=(s,t)=>{var e,i;let n=t.fields;if(N(n)&&(n=n()),!(n!=null&&n.length)||!(s!=null&&s.length))return{};n=th([],n);const r=t.target==="parser"?"parserData":"latestData",a=s[0][r]?s[0][r]:s||[],o=(i=(e=s[0]).getFields)===null||i===void 0?void 0:i.call(e);return U2(a,n,o)},U2=(s,t,e)=>{const i={};let n=[],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(p=>p==="min"||p==="max"||p==="allValid");let c=!0;n.length=0,s.forEach(p=>{p&&n.push(p[o])});const u=n.length;if(d){r.length=0,n.forEach((g,f)=>{ch(g)&&r.push(g)});const p=n;n=r,r=p,c=n.length===u}else n=h.some(p=>p==="array-min"||p==="array-max")?n.reduce((p,g)=>(g&&g.forEach(f=>{ch(f)&&p.push(f)}),p),[]):n.filter(p=>p!==void 0);a.filter&&(n=n.filter(a.filter)),h.forEach(p=>{if(a.customize)i[o][p]=a.customize;else{if(l&&l.lockStatisticsByDomain&&!P(l.domain)){if(p==="values")return void(i[o][p]=l.domain.slice())}else if(p==="allValid")return;i[o][p]=Ott[p](n),p==="array-max"&&(i[o].max=i[o][p]),p==="array-min"&&(i[o].min=i[o][p])}}),d&&(i[o].allValid=c)}),i},Dtt=(s,t)=>{const{config:e}=t;if(!e)return s;const{invalidType:i,checkField:n}=e();return i!=="zero"||n&&n.length&&s.forEach(r=>{n.forEach(a=>{ch(r[a])||(r[a]=0)})}),s};class ar extends rr{_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;P(e)||E(this.getProduct())||this._initProduct([])}generateProductId(){var t;return(t=this._data)===null||t===void 0?void 0:t.name}}const ou=`${bt}_HIERARCHY_DEPTH`,Br=`${bt}_HIERARCHY_ROOT`,Ftt=`${bt}_HIERARCHY_ROOT_INDEX`;function vh(){return{keyMap:new Map,needDefaultSeriesField:!this._seriesField,defaultSeriesField:this._seriesField?null:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey)}}function Jo(s,t,e){s&&(e.needDefaultSeriesField&&(s[Cn]=e.defaultSeriesField),s[Ji]=t,s[Is]=e.getKey(s,t,e))}function E1(){return{keyMap:new Map,needDefaultSeriesField:!0,defaultSeriesField:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey),categoryField:this.getCategoryField()}}function v0(s,t,e,i=0,n,r){r===void 0&&(r=t),Jo(s,t,e),s[ou]=i,s[Br]=n||s[e.categoryField],s[Ftt]=r,s.children&&s.children.length&&s.children.forEach((a,o)=>v0(a,o,e,s[ou]+1,s[Br],r))}const mP=["appear","enter","update","exit","disappear","normal"];function Ht(s={},t,e){const i={};for(let n=0;n{h.controlOptions={stopWhenStateChange:!0}}),a?(l=G(a)?a.map((h,d)=>{var c;let u=h;return bP(u)&&delete u.type,u.oneByOne&&(u=vP(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:yP,e==null?void 0:e.dataCount)),u}):o.map((h,d)=>{var c;let u=vt({},o[d],a);return bP(u)&&delete u.type,u.oneByOne&&(u=vP(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:yP,e==null?void 0:e.dataCount)),u}),i[r]=l):i[r]=o}return i.state=i.update,i}function Wt(s,t,e){var i,n,r,a,o;const l={};return E(t.animationAppear)&&(l.appear=(i=t.animationAppear[s])!==null&&i!==void 0?i:t.animationAppear),E(t.animationDisappear)&&(l.disappear=(n=t.animationDisappear[s])!==null&&n!==void 0?n:t.animationDisappear),E(t.animationEnter)&&(l.enter=(r=t.animationEnter[s])!==null&&r!==void 0?r:t.animationEnter),E(t.animationExit)&&(l.exit=(a=t.animationExit[s])!==null&&a!==void 0?a:t.animationExit),E(t.animationUpdate)&&(l.update=(o=t.animationUpdate[s])!==null&&o!==void 0?o:t.animationUpdate),t.animationNormal&&t.animationNormal[s]&&(l.normal=t.animationNormal[s]),Htt(l,e)}function vP(s,t,e){const{oneByOne:i,duration:n,delay:r,delayAfter:a}=s;return s.delay=(o,l,h)=>{const d=t(o,h),c=N(n)?n(o,l,h):W(n)?n:0,u=N(r)?r(o,l,h):W(r)?r:0;let p=N(i)?i(o,l,h):i;return p===!1?u:(p=p===!0?0:p,u+d*(c+p))},s.delayAfter=(o,l,h)=>{const d=t(o,h),c=N(n)?n(o,l,h):W(n)?n:0,u=N(a)?a(o,l,h):W(a)?a:0;let p=N(i)?i(o,l,h):i;return p===!1?u:(p=p===!0?0:p,u+((e?e():l.mark.elements.length)-d)*(c+p))},delete s.oneByOne,s}function yP(s,t){var e,i;return(e=s==null?void 0:s[Ji])!==null&&e!==void 0?e:(i=t==null?void 0:t.VGRAMMAR_ANIMATION_PARAMETERS)===null||i===void 0?void 0:i.elementIndex}function Xr(s,t){var e,i,n,r,a;if(s.animation===!1||((e=s.morph)===null||e===void 0?void 0:e.enable)===!1)return!1;const o=((n=(i=s.animationAppear)===null||i===void 0?void 0:i[t])!==null&&n!==void 0?n:s.animationAppear)!==!1,l=((a=(r=s.animationUpdate)===null||r===void 0?void 0:r[t])!==null&&a!==void 0?a:s.animationUpdate)!==!1;return!(!o||!l)}function ztt(s){return E(s.timeSlices)}function bP(s){return!ztt(s)&&E(s.channel)}function Htt(s,t){return s&&(Vx(s=pn(s),e=>{var i;return N(e)&&((i=e.prototype)===null||i===void 0?void 0:i.constructor)!==e?(...n)=>e(...n,t):e}),s)}function Vx(s,t){if(G(s))s.forEach((e,i)=>{s[i]=t(s[i],i),Vx(s[i],t)});else if(Et(s))for(const e in s)s[e]=t(s[e],e),Vx(s[e],t)}function jtt(s){return s.getSpec().animation!==!1&&E(s.getRegion().animate)}class bn extends c0{constructor(){super(...arguments),this.markLabelSpec={}}getLabelSpec(t){return this.markLabelSpec[t]}setLabelSpec(t,e){this.markLabelSpec[t]=V(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,n,r;const a=YO(t),o=(i=this._option)===null||i===void 0?void 0:i.getTheme(),{markByName:l,mark:h}=o,d=this._option.type,c=JO(Pt(o,`series.${d}`),d,h,l),u=Pt(o,`series.${d}_${a}`),p=((r=(n=this.stack)!==null&&n!==void 0?n:u==null?void 0:u.stack)!==null&&r!==void 0?r:c!=null&&c.stack)?Pt(o,`series.${d}_stack`):void 0;return vt({},c,u,p)}transformSpec(t,e,i){this._transformStack(t);const n=super.transformSpec(t,e,i);return this._transformLabelSpec(n.spec),Object.assign(Object.assign({},n),{markLabelSpec:this.markLabelSpec,stack:this.stack})}_transformLabelSpec(t){}_transformStack(t){ge(t.stack)&&(this.stack=t.stack),ge(t.percent)&&(this.stack=t.percent||this.stack),ge(t.stackOffsetSilhouette)&&(this.stack=t.stackOffsetSilhouette||this.stack),E(t.stackValue)&&(this.stack=!0),P(this.stack)&&this._supportStack&&t.seriesField&&(this.stack=!0)}_addMarkLabelSpec(t,e,i="label",n="initLabelMarkStyle",r,a){t&&V(t[i]).forEach(o=>{o&&o.visible&&this.addLabelSpec(e,Object.assign(Object.assign({animation:r??t.animation},o),{getStyleHandler:l=>{var h;return(h=l[n])===null||h===void 0?void 0:h.bind(l)}}),a)})}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{outerRadius:n,innerRadius:r,direction:a}=t;return E(n)&&(i.outerRadius=n),E(r)&&(i.innerRadius=r),E(a)&&(i.direction=a),Object.keys(i).length>0?i:void 0}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const n=this._getDefaultSpecFromChart(e),r=a=>{const o=vt({},i,n,a),l=i.label;return l&&Et(l)&&G(o.label)&&(o.label=o.label.map(h=>vt({},l,h))),o};return G(t)?{spec:t.map(a=>r(a)),theme:i}:{spec:r(t),theme:i}}return{spec:t,theme:i}}}function Vtt(s){return s===$e["desktop-browser"]||s===$e["desktop-miniApp"]?{hover:{enable:!0,trigger:"pointermove",triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"pointertap"}}:Ga(s)||qa(s)?{hover:{enable:!0,trigger:["pointerdown","pointermove"],triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"tap"}}:null}class Qo extends T1{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){E(t)&&(this._seriesField=t,this.getMarks().filter(e=>e.getDataView()===this.getViewData()).forEach(e=>{e.setFacet(this._seriesField)}))}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:`${bt}_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=bn,this.coordinate="none",this._region=null,this._layoutStartPoint={x:0,y:0},this._layoutRect={width:null,height:null},this.getLayoutRect=()=>{var n,r;return{width:(n=this._layoutRect.width)!==null&&n!==void 0?n: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=0,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(ft.afterInitData,{model:this}),this.initRootMark(),this.initMark();const t=jtt(this);this._initExtensionMark({hasAnimation:t}),this.initMarkStyle(),this.initMarkState(),t&&this.initAnimation(),this._option.disableTriggerEvent||this.initInteraction(),this.afterInitMark(),this.initEvent(),this.event.emit(ft.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),E(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)&&(Mt(this._rawData.dataSet,"invalidTravel",Dtt),(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,n;const r=(t=this._spec.data)!==null&&t!==void 0?t:this._option.getSeriesData(this._spec.dataId,this._spec.dataIndex);if(r&&(this._rawData=S1(r,this._dataSet,this._option.sourceDataList,{onError:(e=this._option)===null||e===void 0?void 0:e.onError})),(n=(i=this._rawData)===null||i===void 0?void 0:i.target)===null||n===void 0||n.addListener("change",this.rawDataUpdate.bind(this)),this._addDataIndexAndKey(),this._rawData){this.getStack()&&(this._viewDataFilter=Dx(this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewDataFilter`}));const a=Dx(this.getStack()?this._viewDataFilter:this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewData`});this._data=new ar(this._option,a),this.getStack()&&this._viewDataFilter.target.removeListener("change",a.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,n;if(this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]){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 r=(n=this._rawData.getFields())===null||n===void 0?void 0:n[t];r&&r.lockStatisticsByDomain&&r.domain?(this._rawStatisticsCache[t]={},e?(this._rawStatisticsCache[t].min=qe(r.domain),this._rawStatisticsCache[t].max=ze(r.domain)):this._rawStatisticsCache[t].values=r.domain):this._rawStatisticsCache[t]=U2(this._rawData.latestData,[{key:t,operations:e?["min","max"]:["values"]}])[t]}}return e&&(P(this._rawStatisticsCache[t].min)||P(this._rawStatisticsCache[t].max))&&(this._rawStatisticsCache[t].min=qe(this._rawStatisticsCache[t].values),this._rawStatisticsCache[t].max=ze(this._rawStatisticsCache[t].values)),this._rawStatisticsCache[t]}_statisticViewData(){Mt(this._dataSet,"dimensionStatistics",jx);const t=`${this.type}_${this.id}_viewDataStatic`;this._viewDataStatistics=new $t(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&&th(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){Mt(this._dataSet,"dimensionStatistics",jx);const n=new $t(this._dataSet,{name:t});return n.parse([e],{type:"dataview"}),n.transform({type:"dimensionStatistics",options:{operations:["max","min","values"],fields:()=>{var r;const a=th(this.getStatisticFields(),(r=i==null?void 0:i(e.name))!==null&&r!==void 0?r:[]);return this._seriesField&&th(a,[{key:this._seriesField,operations:["values"]}]),a},target:"latest"}},!1),n}createdStackData(){const t=`${this.type}_${this.id}_viewStackData`;this._viewStackData=new $t(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,n,r)=>{if(this._spec.animation===!1){const l=this._noAnimationDataKey(i,n);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)}`)}:at(t)?i=>i[t]:G(t)&&t.every(i=>at(i))?i=>t.map(n=>i[n]).join("-"):N(t)?(i,n)=>t(i,n):((e=this._option)===null||e===void 0||e.onError(`invalid dataKey: ${t}`),(i,n)=>{})}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(Mt(this._rawData.dataSet,"addVChartProperty",Fh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:vh.bind(this),call:Jo}},!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(ft.rawDataUpdate,{model:this})}viewDataFilterOver(t){this.event.emit(ft.viewDataFilterOver,{model:this})}viewDataUpdate(t){var e;this.event.emit(ft.viewDataUpdate,{model:this}),(e=this._data)===null||e===void 0||e.updateData(),this._viewDataStatistics&&this._viewDataStatistics.reRunAllTransform()}viewDataStatisticsUpdate(t){this.event.emit(ft.viewDataStatisticsUpdate,{model:this})}getDatumPositionValue(t,e){return!t||P(e)?null:t[e]}getDatumPositionValues(t,e){return!t||P(e)?[]:at(e)?[t[e]]:e.map(i=>t[i])}setValueFieldToStack(){}setValueFieldToPercent(){}setValueFieldToStackOffsetSilhouette(){}initRootMark(){var t,e;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.setZIndex(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((n,r)=>{this._createExtensionMark(n,null,this._getExtensionMarkNamePrefix(),r,t)})}_createExtensionMark(t,e,i,n,r){var a;const o=this._createMark({type:t.type,name:`${i}_${n}`},{skipBeforeLayouted:!0,markSpec:t,parent:e,dataView:!1,customShape:t==null?void 0:t.customShape,componentType:t.componentType,depend:r.depend,key:t.dataKey});if(o){if(r.hasAnimation){const l=Ht({},Wt(t.type,t,this._markAttributeContext));o.setAnimationConfig(l)}if(t.type==="group")i=`${i}_${n}`,(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 n=this._marks.getMarkWithInfo({name:`${this._getExtensionMarkNamePrefix()}_${i}`});n&&(this.initMarkStyleWithSpec(n,e),n.updateStaticEncode(),n.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(n=>{t.markIds.includes(n.getProductId())&&i.push(`#${n.getProductId()}`)}):t.markNames?e.forEach(n=>{t.markNames.includes(n.name)&&i.push(`#${n.getProductId()}`)}):e.forEach(n=>{i.push(`#${n.getProductId()}`)}),i}_parseDefaultInteractionConfig(t){if(!(t!=null&&t.length))return[];const e=Vtt(this._option.mode);let i=Object.assign({},e==null?void 0:e.hover),n=Object.assign({},e==null?void 0:e.select);const r=this._spec.hover;ge(r)?i.enable=r:Et(r)&&(i.enable=!0,i=vt(i,r));const a=this._spec.select;ge(a)?n.enable=a:Et(a)&&(n.enable=!0,n=vt(n,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:lt.STATE_HOVER_REVERSE,highlightState:lt.STATE_HOVER})}if(n.enable){const l=this._parseSelectorOfInteraction(n,t),h=n.mode==="multiple",d=E(n.triggerOff)?n.triggerOff:h?["empty"]:["empty",n.trigger];l.length&&o.push({type:"element-select",seriesId:this.id,regionId:this._region.id,selector:l,trigger:n.trigger,triggerOff:d,reverseState:lt.STATE_SELECTED_REVERSE,state:lt.STATE_SELECTED,isMultiple:h})}return o}_parseInteractionConfig(t){const e=this.getCompiler();if(!e)return;const{interactions:i}=this._spec,n=this._parseDefaultInteractionConfig(t);n&&n.length&&n.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:Cn;this.getMarksWithoutRoot().forEach(n=>{const r={},a={},o={};e.forEach(h=>{var d;const c=(d=h[n.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]}))}),n.state.addStateInfo({stateValue:EC,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 p;if(Array.isArray(d)){if(d.length===0)return;p=(c=o[d[0][i]])===null||c===void 0?void 0:c[h]}return p=(u=o[d[i]])===null||u===void 0?void 0:u[h],p||n.getAttribute(h,d)}}),this.setMarkStyle(n,l,EC)})}afterInitMark(){var t,e,i;this.event.emit(ft.afterInitMark,{model:this}),this.setSeriesField(this._spec.seriesField);let n=(t=this._spec.animationThreshold)!==null&&t!==void 0?t:Number.MAX_SAFE_INTEGER;this.getMarks().forEach(r=>{var a,o;!((o=(a=r.stateStyle)===null||a===void 0?void 0:a.normal)===null||o===void 0)&&o.lineWidth&&r.setAttribute("stroke",this.getColorAttribute(),"normal",tt.Base_Series);const l=r.getProgressiveConfig();l&&(l.large&&l.largeThreshold&&(n=Math.min(n,l.largeThreshold)),l.progressiveThreshold&&(n=Math.min(n,l.progressiveThreshold)))}),((i=(e=this._rawData)===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.length)>=n&&(this._spec.animation=!1)}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 yn(this)}_compareSpec(t,e,i){var n,r;const a=super._compareSpec(t,e),o=Object.keys(e||{}).sort(),l=Object.keys(t||{}).sort();return be(o,l)?((i=i??{data:!0}).invalidType=!0,t.invalidType!==e.invalidType&&(a.reCompile=!0),i.extensionMark=!0,(V(t.extensionMark).length!==V(e.extensionMark).length||!((n=e.extensionMark)===null||n===void 0)&&n.some((h,d)=>h.type!==t.extensionMark[d].type||h.id!==t.extensionMark[d].id))&&(a.reMake=!0),a.reMake?a:(!((r=e.extensionMark)===null||r===void 0)&&r.some((h,d)=>h.visible!==t.extensionMark[d].visible)&&(a.reCompile=!0),this._marks.getMarks().some(h=>{var d,c;return i[h.name]=!0,((d=e[h.name])===null||d===void 0?void 0:d.visible)!==((c=t[h.name])===null||c===void 0?void 0:c.visible)})&&(a.reCompile=!0),o.some(h=>!i[h]&&!be(t[h],e[h]))&&(a.reMake=!0),a)):(a.reMake=!0,a)}_updateSpecData(){!this._rawData||!this._spec.data||this._spec.data instanceof $t||A1(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()}onEvaluateEnd(t){this._data.updateData()}onRender(t){}release(){var t,e,i;super.release(),this._viewDataMap.clear();const n=(e=(t=this._rawData)===null||t===void 0?void 0:t.transformsArr)===null||e===void 0?void 0:e.findIndex(r=>r.type==="addVChartProperty");n>=0&&this._rawData.transformsArr.splice(n,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){W(t.x)&&(this._layoutStartPoint.x=t.x),W(t.y)&&(this._layoutStartPoint.y=t.y)}setLayoutRect({width:t,height:e},i){W(t)&&(this._layoutRect.width=t),W(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,n;return(n=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&n!==void 0?n:void 0}}_getSeriesInfo(t,e){const i=this.getDefaultShapeType();return e.map(n=>({key:n,originalKey:n,style:this.getSeriesStyle({[t]:n}),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:Cn,this.getSeriesKeys())}_getDefaultColorScale(){var t,e;const i=this.getDefaultColorDomain(),n=this._getDataScheme();return(e=(t=new $u().domain(i)).range)===null||e===void 0?void 0:e.call(t,n)}_getDataScheme(){return eu(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:Cn}}getDimensionField(){return[]}getMeasureField(){return[]}onMarkPositionUpdate(){this.onMarkTreePositionUpdate(this.getMarksWithoutRoot())}onMarkTreePositionUpdate(t){}_createMark(t,e={}){var i,n,r,a;const{key:o,groupKey:l,skipBeforeLayouted:h,themeSpec:d={},markSpec:c,dataView:u,dataProductId:p,parent:g,isSeriesMark:f,depend:_,progressive:m,support3d:y=this._spec.support3d||!!this._spec.zField,morph:v=!1,clip:b,customShape:x,stateSort:A,noSeparateStyle:T=!1}=e,k=super._createMark(t,{key:o??this._getDataIdKey(),support3d:y,seriesId:this.id,attributeContext:this._markAttributeContext,componentType:e.componentType,noSeparateStyle:T});if(E(k)){this._marks.addMark(k,{name:t.name}),f&&(this._seriesMark=k),P(g)?(i=this._rootMark)===null||i===void 0||i.addMark(k):g!==!1&&g.addMark(k),P(u)?(k.setDataView(this.getViewData(),this.getViewDataProductId()),k.setSkipBeforeLayouted(!0)):u!==!1&&k.setDataView(u,p),ge(h)&&k.setSkipBeforeLayouted(h),E(_)&&k.setDepend(...V(_));const M=this.getSpec()||{};k.setMorph(v),k.setMorphKey(((n=M.morph)===null||n===void 0?void 0:n.morphKey)||`${this.getSpecIndex()}`),k.setMorphElementKey((a=(r=M.morph)===null||r===void 0?void 0:r.morphElementKey)!==null&&a!==void 0?a:e.defaultMorphElementKey),P(m)||k.setProgressiveConfig(m),P(l)||k.setGroupKey(l),x&&k.setCustomizedShapeCallback(x),A&&k.setStateSortCallback(A),b&&k.setClip(b),this.initMarkStyleWithSpec(k,vt({},d,c||M[k.name]))}return k}_getDataIdKey(){var t;return(t=super._getDataIdKey())!==null&&t!==void 0?t:Is}_getSeriesDataKey(t){let e="";if(!t)return e;const i=this.getDimensionField();e=i.map(r=>t[r]).join("_");const n=this.getSeriesField();return n&&!i.includes(n)&&(e+=`_${t[n]}`),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!==Xe&&t!==$a&&t!==En&&t!==qo||(t=this.getStackValueField()),(e=b_(this.getRawData(),t))!==null&&e!==void 0?e:t}getMarkInfoList(){var t;const e=super.getMarkInfoList();return e.length?e:Object.values((t=f_[this.type])!==null&&t!==void 0?t:{})}_getInvalidConnectType(){return this._invalidType==="zero"?"zero":this._invalidType==="link"?"connect":"none"}_getInvalidDefined(t){const e=this.getInvalidCheckFields();return!e.length||e.every(i=>ch(t[i]))}_getRelatedComponentSpecInfo(t){var e;const i=this.getSpecIndex(),n=(e=this._option.getSpecInfo().component[t])===null||e===void 0?void 0:e.filter(r=>r.seriesIndexes.includes(i));return n??[]}_forEachStackGroup(t,e){var i,n;(e=e??((i=this._viewStackData)===null||i===void 0?void 0:i.latestData))&&(!((n=e.values)===null||n===void 0)&&n.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(n=>t[n]===i[n])))}getSeriesFieldValue(t,e){var i;return t[(i=e??this.getSeriesField())!==null&&i!==void 0?i:Cn]}}Qo.mark=fe,Qo.transformerConstructor=bn;function Wtt(s){return[H.rose,H.radar,H.circularProgress].includes(s)}function $2(s,t,e){const i=s.getScale(0),n="isInverse"in s&&s.isInverse();ie(i.type)?e.sort((r,a)=>(r[t]-a[t])*(n?-1:1)):e.sort((r,a)=>(i.index(r[t])-i.index(a[t]))*(n?-1:1))}function to(s){return{dataIndex:t=>{var e,i;const n=s.direction==="horizontal"?s.fieldY[0]:s.fieldX[0],r=t==null?void 0:t[n],a=s.direction==="horizontal"?s.scaleY:s.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 n=s.direction==="horizontal"?s.scaleY:s.scaleX;return(i=((e=(t=n==null?void 0:n.domain)===null||t===void 0?void 0:t.call(n))!==null&&e!==void 0?e:[]).length)!==null&&i!==void 0?i:0}}}class us extends Qo{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=V(t)}get fieldY(){return this._fieldY}setFieldY(t){this._fieldY=V(t)}get fieldZ(){return this._fieldZ}setFieldZ(t){this._fieldZ=t&&V(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 n={key:i,operations:[]},r=e.axisHelper.getScale(0);ie(r.type)?(n.operations=["max","min"],r.type==="log"&&(n.filter=a=>a>0)):n.operations=["values"],t.push(n)})}),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:`${bt}_series_${this.type}_${i}`}getStackValueField(){return this.direction==="horizontal"?V(this._spec.xField)[0]:V(this._spec.yField)[0]}setValueFieldToStack(){this.direction==="horizontal"?(this.setFieldX(Xe),this.setFieldX2(En)):(this.setFieldY(Xe),this.setFieldY2(En))}setValueFieldToPercent(){this.direction==="horizontal"?(this.setFieldX($a),this.setFieldX2(qo)):(this.setFieldY($a),this.setFieldY2(qo))}setValueFieldToStackOffsetSilhouette(){this.direction==="horizontal"?(this.setFieldX(Mx),this.setFieldX2(Tx)):(this.setFieldY(Mx),this.setFieldY2(Tx))}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=V(this._spec.xField),this._specYField=V(this._spec.yField),E(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(),E(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,n;return(n=(i=(e=this.getXAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&n!==void 0?n:0},this._markAttributeContext.yBandwidth=(t=0)=>{var e,i,n;return(n=(i=(e=this.getYAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&n!==void 0?n: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(V(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,n,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,n);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(V(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(ft.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&&($2(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()!==Y.geoCoordinate&&(this._xAxisHelper.getFields?this._xAxisHelper.getFields():this._specXField).forEach(e=>{t.push(e)}),this._yAxisHelper&&this._yAxisHelper.isContinuous&&this._yAxisHelper.getAxisType()!==Y.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 Y2="monotone",X2="linear",Gtt="bevel";class R1{addSamplingCompile(){if(this._spec.sampling){const{width:t,height:e}=this._region.getLayoutRect(),i=[],n=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]:n[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,n;return this._lineMark=this._createMark(la.line,{defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:e==null||e,progressive:t,customShape:(i=this._spec.line)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.line)===null||n===void 0?void 0:n.stateSort}),this._lineMark}initLineMarkStyle(t,e){var i,n;const r=this._lineMark;if(r){if(this.setMarkStyle(r,{stroke:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(r,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:a=>a.model===this},()=>{this.encodeDefined(r,"defined")}),this.coordinate==="polar")this.setMarkStyle(r,{lineJoin:Gtt,curveType:X2,closePath:!0},"normal",tt.Series);else{const a=e??((n=(i=this.getSpec().line)===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.curveType),o=a===Y2?t==="horizontal"?"monotoneY":"monotoneX":a;this.setMarkStyle(r,{curveType:o},"normal",tt.Built_In)}this.setMarkStyle(r,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",tt.Series)}return r}_getEventElement(t,e=!1){let i=[];return t.dimensionInfo.some(n=>(n.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(la.point,{morph:Xr(this._spec,la.point.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,progressive:t,isSeriesMark:!!e,customShape:i.customShape,stateSort:i.stateSort})),this._spec.activePoint===!0){const n=new $t(this._option.dataSet,{name:`${bt}_series_${this.id}_active_point`});n.parse([]),this._symbolActiveMark=this._createMark({name:`active_point_${this.id}`,type:"symbol"},{morph:!1,groupKey:this._seriesField,isSeriesMark:!1,dataView:n,parent:this._region.getInteractionMark(),customShape:i.customShape,stateSort:i.stateSort}),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])this._symbolActiveMark.stateStyle[e][i]={style:null,level:tt.Series,referer:t}}this._symbolActiveMark.state.changeStateInfo({stateValue:lt.STATE_DIMENSION_HOVER,filter:()=>!0})}return t}_initSymbolMark(t){t&&(this.setMarkStyle(t,{fill:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},"normal",tt.Series),this.event.on(ft.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",tt.Series))}_initSymbolActiveMarkAlone(){var t,e;const i=this._symbolActiveMark;i&&(this._initSymbolMark(i),i&&(!((e=(t=this._spec[la.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,vt({},this._spec[la.point.name],{visible:!0})),this._symbolActiveMark.state.changeStateInfo({stateValue:lt.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",tt.Series),this.event.on(ft.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,n,r,a;if(!t)return;const o=this._isFieldAllValid();if(this._invalidType==="zero"||o){if(((n=(i=t.stateStyle.normal)===null||i===void 0?void 0:i[e])===null||n===void 0?void 0:n.style)===!0)return;this.setMarkStyle(t,{[e]:!0},"normal",tt.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",tt.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}}class K2 extends Oi{setStyle(t,e="normal",i=0,n=this.stateStyle){if(P(t))return;n[e]===void 0&&(n[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)&&(Lb(d==null?void 0:d.type)||d!=null&&d.scale||N(d))&&(l=!0);let c=this._styleConvert(d);o&&h==="angle"&&(c=this.convertAngleToRadian(c)),this.setAttribute(h,c,e,i,n)}),l&&this.setEnableSegments(l)}}class lu extends K2{constructor(){super(...arguments),this.type=lu.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)===H.radar&&((e=this.model)===null||e===void 0?void 0:e.coordinate)==="polar"?[]:["fill","fillOpacity"]}}lu.type="line";const y0=()=>{D.registerMark(lu.type,lu),eK(),P2()};class q2 extends Oi{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{size:1,symbolType:"circle",fill:void 0,lineWidth:0})}}class hu extends q2{constructor(){super(...arguments),this.type=hu.type}}hu.type="symbol";const Kr=()=>{D.registerMark(hu.type,hu),JL()};class Xu extends bn{_transformLabelSpec(t){var e,i,n;((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((n=(i=t.point)===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.visible)!==!1?this._addMarkLabelSpec(t,"point"):this._addMarkLabelSpec(t,"line"),this._addMarkLabelSpec(t,"line","lineLabel","initLineLabelMarkStyle",void 0,!0)}}class Ntt extends R2{constructor(t){super(),this.component=t}releaseAll(){super.releaseAll(),this.component=null}}function Utt(s,t,e,i){switch(s){case Y.cartesianBandAxis:return Jh(co(e,["z"]),"band",t);case Y.cartesianLinearAxis:return Jh(co(e,["z"]),"linear",t);case Y.cartesianLogAxis:return Jh(co(e,["z"]),"log",t);case Y.cartesianSymlogAxis:return Jh(co(e,["z"]),"symlog",t);case Y.cartesianAxis:case Y.cartesianTimeAxis:return Jh(co(e),void 0,t);case Y.polarBandAxis:return jv(e.orient,"band",t);case Y.polarLinearAxis:return jv(e.orient,"linear",t);case Y.polarAxis:return jv(e.orient,void 0,t);case Y.cartesianCrosshair:return JQ(t,i);case Y.polarCrosshair:return QQ(t,i);case Y.colorLegend:case Y.sizeLegend:case Y.discreteLegend:case Y.dataZoom:case Y.scrollBar:return $tt(e,Mn(s,t));default:return Mn(s,t)}}const $tt=(s,t)=>{var e;const i=(e=s.orient)!==null&&e!==void 0?e:t.orient,n=t[h2(i)],r=vt({},t,n);return delete r.horizontal,delete r.vertical,r};class Ku extends c0{getTheme(t,e){return Utt(this.type,this._option.getTheme(),t,e)}_mergeThemeToSpec(t,e){const{spec:i,theme:n}=super._mergeThemeToSpec(t,e);return this._adjustPadding(i),{spec:i,theme:n}}_adjustPadding(t){const{padding:e,noOuterPadding:i=!0,orient:n}=t;i&&e&&n&&(t.padding=Object.assign(Object.assign({},jr(e)),{[n]:0}))}}var Ytt=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{var l,h;n instanceof Sm||this.event.emit(r,{model:this,node:i,event:n,item:a,datum:o,source:Nt.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 y2({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(n=>!be(e==null?void 0:e[n],t[n]))),(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 n;i&&((n=this.getContainer())===null||n===void 0||n.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=>{var i;e.compile({group:t}),(i=e.getProduct())===null||i===void 0||i.configure({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}}}xn.transformerConstructor=Ku;class Wx extends Oi{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(rt.component,t??e.rootMark,{componentType:this._componentType,mode:this._mode}).id(i),this._compiledProductId=i}}Wx.type="component";const b0=()=>{D.registerMark(Wx.type,Wx)},Xtt=s=>s;var Ktt=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);nv.setInteractive(this._spec.interactive)),this._option.animation!==!1&&Pt(this._option.getChart().getSpec(),"animation")!==!1&&this._spec.animation===!0){const v=Ht((o=D.getAnimationInKey("axis"))===null||o===void 0?void 0:o(),{appear:(h=(l=this._spec.animationAppear)!==null&&l!==void 0?l:Pt(this._option.getChart().getSpec(),"animationAppear.axis"))!==null&&h!==void 0?h:Pt(this._option.getChart().getSpec(),"animationAppear"),disappear:(c=(d=this._spec.animationDisappear)!==null&&d!==void 0?d:Pt(this._option.getChart().getSpec(),"animationDisappear.axis"))!==null&&c!==void 0?c:Pt(this._option.getChart().getSpec(),"animationDisappear"),enter:(p=(u=this._spec.animationEnter)!==null&&u!==void 0?u:Pt(this._option.getChart().getSpec(),"animationEnter.axis"))!==null&&p!==void 0?p:Pt(this._option.getChart().getSpec(),"animationEnter"),exit:(f=(g=this._spec.animationExit)!==null&&g!==void 0?g:Pt(this._option.getChart().getSpec(),"animationExit.axis"))!==null&&f!==void 0?f:Pt(this._option.getChart().getSpec(),"animationExit"),update:(m=(_=this._spec.animationUpdate)!==null&&_!==void 0?_:Pt(this._option.getChart().getSpec(),"animationUpdate.axis"))!==null&&m!==void 0?m:Pt(this._option.getChart().getSpec(),"animationUpdate")});v.enter&&(v.update[0].customParameters={enter:v.enter[0]}),this._marks.forEach(b=>b.setAnimationConfig(v))}}}_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 rr(this._option,t)]}collectData(t,e){const i=[];return Pe(this._regions,n=>{var r;let a=this.collectSeriesField(t,n);if(a=G(a)?ie(this._scale.type)?a:[a[0]]:[a],t||(this._dataFieldText=n.getFieldAlias(a[0])),a){const o=n.getViewData();if(e)a.forEach(l=>{i.push(n.getRawDataStatisticsByField(l,!1))});else if(o&&o.latestData&&o.latestData.length){const l=(r=n.getViewDataStatistics)===null||r===void 0?void 0:r.call(n);a.forEach(h=>{var d;!((d=l==null?void 0:l.latestData)===null||d===void 0)&&d[h]&&i.push(l.latestData[h])})}}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),i}isSeriesDataEnable(){let t=!0;return Pe(this._regions,e=>{var i;G((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:n}=this._spec;E(t)&&(this._seriesUserId=V(t)),E(i)&&(this._regionUserId=V(i)),E(e)&&(this._seriesIndex=V(e)),E(n)&&(this._regionIndex=V(n)),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(ft.scaleUpdate,{filter:({model:e})=>(e==null?void 0:e.id)===this.id},this.effect.scaleUpdate.bind(this));const t=LL(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()}),Pe(this._regions,e=>{e.event.on(ft.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(ft.scaleUpdate,{model:this,value:"range"}),super.onLayoutEnd(t)}computeData(t){!this._tickData||!this._tickData.length||t!=="force"&&be(this._scale.range(),[0,1])||this._tickData.forEach(e=>{e.getDataView().reRunAllTransform(),e.updateData()})}initScales(){this._scales=[this._scale];const t=[];if(Pe(this._regions,e=>{const i=e.getGroups();i&&t.push(i)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t.length!==0){const e=ze(t.map(i=>i.fields.length));for(let i=1;ithis._delegateEvent(t,e,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=ZQ(t.domainLine):e.line={visible:!1},t.label&&t.label.visible){const i=um(t.label,["style","formatMethod","state"]);e.label=i,t.label.style&&(e.label.style=N(t.label.style)?(n,r,a,o)=>{var l;const h=t.label.style(n.rawValue,r,n,a,o);return xt(vt({},(l=this._theme.label)===null||l===void 0?void 0:l.style,h))}:xt(t.label.style)),(t.label.formatMethod||t.label.formatter)&&(e.label.formatMethod=this._getLabelFormatMethod()),t.label.state&&(e.label.state=UJ(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,n,r,a)=>{var o;const l=t.tick.style(i,n,r,a);return xt(vt({},(o=this._theme.tick)===null||o===void 0?void 0:o.style,l))}:xt(t.tick.style)),t.tick.state&&(e.tick.state=ml(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,n,r,a)=>{var o;const l=t.subTick.style(i,n,r,a);return xt(vt({},(o=this._theme.subTick)===null||o===void 0?void 0:o.style,l))}:xt(t.subTick.style)),t.subTick.state&&(e.subTick.state=ml(t.subTick.state))):e.subTick={visible:!1},t.title&&t.title.visible){const i=t.title,{autoRotate:n,angle:r,style:a={},background:o,state:l,shape:h}=i,d=Ktt(i,["autoRotate","angle","style","background","state","shape"]);let c,u=r;t.orient!=="left"&&t.orient!=="right"||n&&P(u)&&(u=t.orient==="left"?-90:90,c=qQ[t.orient]),e.title=Object.assign(Object.assign({},d),{autoRotate:!1,angle:u?Qt(u):null,textStyle:vt({},c,xt(a)),pickable:a.pickable!==!1,childrenPickable:a.pickable!==!1,state:{}}),h&&h.visible?(e.title.shape=Object.assign(Object.assign({},h),{style:xt(h.style)}),h.state&&(e.title.state.shape=ml(h.state))):e.title.shape={visible:!1},o&&o.visible?(e.title.background=Object.assign(Object.assign({},o),{style:xt(o.style)}),o.state&&(e.title.state.background=ml(o.state))):e.title.background={visible:!1},l&&(e.title.state.text=ml(l))}else e.title={visible:!1};return t.background&&t.background.visible?(e.panel={visible:!0},t.background.style&&(e.panel.style=xt(t.background.style)),t.background.state&&(e.panel.state=ml(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 n,r;const a=t.grid.style((n=e.datum)===null||n===void 0?void 0:n.rawValue,i,e.datum);return xt(vt({},(r=this._theme.grid)===null||r===void 0?void 0:r.style,a))}:xt(t.grid.style),subGrid:t.subGrid.visible===!1?{visible:!1}:{type:"line",visible:t.subGrid.visible,alternateColor:t.subGrid.alternateColor,style:xt(t.subGrid.style)}}}_getLabelFormatMethod(){const{formatMethod:t,formatter:e}=this._spec.label,{formatFunc:i}=Wr(t,e);return i?(n,r,a)=>i(r.rawValue,r,e):null}_initTickDataSet(t,e=0){return Rr(this._option.dataSet,"scale",Xtt),Mt(this._option.dataSet,"ticks",S7),new $t(this._option.dataSet,{name:`${this.type}_${this.id}_ticks_${e}`}).parse(this._scales[e],{type:"scale"}).transform({type:"ticks",options:t},!1)}_tickTransformOption(){const t=this._tick||{},e=this._spec.label||{},{tickCount:i,forceTickCount:n,tickStep:r,tickMode:a}=t,{style:o,formatMethod:l,minGap:h}=e;return{sampling:this._spec.sampling!==!1,tickCount:i,forceTickCount:n,tickStep:r,tickMode:a,axisOrientType:this._orient,coordinateType:this._coordinateType,labelStyle:o,labelFormatter:l,labelGap:h}}addTransformToTickData(t,e){this._tickData.forEach(i=>{var n;(n=i==null?void 0:i.getDataView())===null||n===void 0||n.transform(t,e)})}dataToPosition(t){return this._scale.scale(t)}}B1.specKey="axes";const hl=()=>{kK(),CK(),b0(),D.registerAnimation("axis",()=>({appear:{custom:RY},update:{custom:EY},exit:{custom:Uj}}))};var xP=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{this.computeData(i==null?void 0:i.value),Pe(this._regions,n=>{const r=this.getOrient();Te(r)?n.setXAxisHelper(this.axisHelper()):Ks(r)?n.setYAxisHelper(this.axisHelper()):na(r)&&n.setZAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{let{x:n,y:r}=i;return W(n)&&(n+=+(this._orient==="left")*this.getLayoutRect().width),W(r)&&(r+=+(this._orient==="top")*this.getLayoutRect().height),{x:n,y:r}},this._transformLayoutRect=i=>{if(!this._visible)return i;const n=this._latestBounds.clone().translate(-this.getLayoutStartPoint().x,-this.getLayoutStartPoint().y);switch(this._layout.layoutOrient){case"left":this._layout.layoutRectLevelMap.width===kn&&(i.width=n.x1<0?-n.x1:0);break;case"right":this._layout.layoutRectLevelMap.width===kn&&(i.width=n.x2>0?n.x2:0);break;case"top":this._layout.layoutRectLevelMap.height===kn&&(i.height=n.y1<0?-n.y1:0);break;case"bottom":this._layout.layoutRectLevelMap.height===kn&&(i.height=n.y2>0?n.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(),n=this._getUpdateAttribute(!1),{grid:r}=n,a=xP(n,["grid"]),o=this._axisMark.getProduct(),l=vt({x:i.x,y:i.y},this._axisStyle,a);o.encode(l),this._gridMark&&this._gridMark.getProduct().encode(vt({x:i.x,y:i.y},this._getGridAttributes(),r))},this._fixAxisOnZero=()=>{const{onZero:i,visible:n}=this._spec.domainLine;if(this.visible&&i&&n!==!1){const{onZeroAxisId:r,onZeroAxisIndex:a}=this._spec.domainLine,o=this._option.getComponentsByKey("axes"),l=Te(this.getOrient()),h=c=>{var u;return(l?!Te(c.getOrient()):Te(c.getOrient()))&&ie(c.getScale().type)&&(c.getTickData()?(u=c.getTickData().getLatestData())===null||u===void 0?void 0:u.find(p=>p.value===0):c.getScale().domain()[0]<=0&&c.getScale().domain()[1]>=0)},d=o.filter(c=>h(c));if(d.length){let c;if(E(r))c=d.find(u=>u.id===r);else if(E(a)){const u=o[a];h(u)&&(c=u)}else c=d[0];if(c){const u=this._axisMark.getProduct(),p=c.valueToPosition(0);l?u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dy:this._orient==="bottom"?-(c.getScale().range()[0]-p):p})}):u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dx:this._orient==="left"?p:-(c.getScale().range()[1]-p)})})}}}},this._orient=co(t,["z"]),na(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(!G(e)){if(!lP(e))return null;const{axisType:o,componentName:l}=YC(e,i);return e.type=o,[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:l}]}let n=!0;if(e.filter(o=>o.orient==="z")[0]){const o=e.filter(h=>h.orient==="bottom")[0],l=e.filter(h=>Ks(h.orient))[0];n=e.length===3&&o&&l}let r=e.map((o,l)=>({spec:o,index:l}));n||(r=r.filter(({spec:o})=>o.orient!=="z"));const a=[];return r.forEach(({spec:o,index:l})=>{if(!lP(o))return;const{axisType:h,componentName:d}=YC(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,n=xP(t,["spec"]),r=D.getComponentInKey(n.type);return r?new r(i,Object.assign(Object.assign({},e),n)):(e.onError(`Component ${n.type} not found`),null)}initLayout(){super.initLayout(),this._layout.autoIndent=this._spec.autoIndent!==!1,this._layout.layoutOrient=this._orient}setLayout3dBox(t){this.layout3dBox=t}updateScaleRange(){let t=!1;const{width:e,height:i}=this.getLayoutRect(),{left:n,right:r,top:a,bottom:o}=this._innerOffset;let l=[];Te(this.getOrient())?W(e)&&(l=this._inverse?[e-r,n]:[n,e-r]):na(this.getOrient())?W(e)&&(l=this._inverse?[e-r,n]:[n,e-r],this._scale.range(l)):W(i)&&(l=this._inverse?[a,i-o]:[i-o,a]);const[h,d]=this._scale.range();return l[0]===h&&l[1]===d||(t=!0,this._scale.range(l)),t}init(t){var e;super.init(t),(e=this.pluginService)===null||e===void 0||e.load(qtt.map(i=>new i)),this.callPlugin(i=>{this.pluginService&&i.onInit&&i.onInit(this.pluginService,this)})}setAttrFromSpec(){var t;if(super.setAttrFromSpec(),this.visible){Te(this.getOrient())?ke(this._spec.maxHeight)&&(this._spec.maxHeight="30%"):ke(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=qJ(this._spec,(e==null?void 0:e.direction)==="horizontal")}onLayoutStart(t,e,i){if(super.onLayoutStart(t,e,i),!na(this.getOrient())&&this._spec.innerOffset){const n=this._spec;Ks(this.getOrient())?["top","bottom"].forEach(r=>{this._innerOffset[r]=Gi(n.innerOffset[r],e.height,e)}):["left","right"].forEach(r=>{this._innerOffset[r]=Gi(n.innerOffset[r],e.width,e)})}}getSeriesStatisticsField(t){let e;return e=Te(this.getOrient())?t.fieldX:na(this.getOrient())?t.fieldZ:t.fieldY,ie(this._scale.type)?e:[e[0]]}_tickTransformOption(){var t,e,i;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,labelFlush:(i=this._spec.label)===null||i===void 0?void 0:i.flush})}axisHelper(){return{isContinuous:ie(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(pt.AFTER_ELEMENT_ENCODE,()=>{if(this._isLayout===!1&&(Te(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._delegateAxisContainerEvent(e.getGroupGraphicItem()),this._unitText)){const{x:i,y:n}=this.getLayoutStartPoint(),r=Te(this._orient)?{x:ze(this._scale.range())+i,y:n}:{x:i,y:qe(this._scale.range())+n};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 Pe(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,n;let r;return r=t>0?(n=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||n===void 0?void 0:n[t]:Te(this.getOrient())?e.getSpec().x2Field?[...e.fieldX,e.fieldX2]:e.fieldX:na(this.getOrient())?e.fieldZ:e.getSpec().y2Field?[...e.fieldY,e.fieldY2]:e.fieldY,r}updateSeriesScale(){const t=this.getOrient();Pe(this._regions,e=>{Te(t)?(e.setScaleX(this._scale),e.setXAxisHelper(this.axisHelper())):Ks(t)?(e.setScaleY(this._scale),e.setYAxisHelper(this.axisHelper())):na(t)&&(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=Te(this.getOrient())?t.height:t.width,this.setLayoutRect(t),!this.updateScaleRange()&&G((e=this.getTickData())===null||e===void 0?void 0:e.getLatestData())||this.computeData("range");const n={skipLayout:!1},r=Te(this.getOrient());this.pluginService&&(r?this.callPlugin(l=>{l.onWillLayoutHorizontal&&l.onWillLayoutHorizontal(this.pluginService,n,this)}):this.callPlugin(l=>{l.onWillLayoutVertical&&l.onWillLayoutVertical(this.pluginService,n,this)}));const a=this._axisMark.getProduct();let o=!1;if(!n.skipLayout){const l=this._getUpdateAttribute(!0),h=a.getGroupGraphicItem(),d=vt(Object.assign({},this.getLayoutStartPoint()),this._axisStyle,l,{line:{visible:!1}}),c=h.getBoundsWithoutRender(d);o=!0,this._latestBounds=c,isFinite(c.width())&&(i=this._appendAxisUnit(c,r))}return o||(this._latestBounds=a.getBounds()),i}_getTitleLimit(t){var e,i,n,r,a;if(this._spec.title.visible&&P((e=this._spec.title.style)===null||e===void 0?void 0:e.maxLineWidth)){const o=(a=(n=(i=this._axisStyle.title)===null||i===void 0?void 0:i.angle)!==null&&n!==void 0?n:(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,n=0;if(!t){const m=this.getRegions();let{x:y,y:v}=m[0].getLayoutStartPoint(),b=y+m[0].getLayoutRect().width,x=v+m[0].getLayoutRect().height;for(let A=1;A{const r=this._getNormalizedValue([n.value],t);return mh(n.value,r)}).filter(n=>n.value>=0&&n.value<=1)]:[]}initEvent(){super.initEvent(),this.visible&&(this.event.on(ft.layoutEnd,this._updateAxisLayout),this.event.on(ft.layoutEnd,this._fixAxisOnZero),this.event.on(ft.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{min:n,max:r}=i;e[0]=e[0]===void 0?n:Math.min(e[0],n),e[1]=e[1]===void 0?r:Math.max(e[1],r)}):(e[0]=0,e[1]=0),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.length-1];e===i&&(i===0?i=1:i>0?e=0:i<0&&(i=0)),E(this._expand.min)&&(t[0]=e-(i-e)*this._expand.min),E(this._expand.max)&&(t[t.length-1]=i+(i-e)*this._expand.max)}niceDomain(t){const{min:e,max:i}=au(this._spec);if(E(e)||E(i)||this._spec.type!=="linear")return t;if(Math.abs(qe(t)-ze(t))<=1e-12){let n=t[0];const r=n>=0?1:-1;if(n=Math.abs(n),n<1)t[0]=0,t[1]=1;else{let a=n/5;const o=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,o);a=(l>=Ztt?10:l>=Jtt?5:l>=Qtt?2:1)*Math.pow(10,o),t[0]=0,t[1]=10*a}r<0&&(t.reverse(),t[0]*=-1,t[1]*=-1)}return t}includeZero(t){this._zero&&(t[0]=Math.min(t[0],0),t[t.length-1]=Math.max(t[t.length-1],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(ft.scaleUpdate,{model:this,value:"domain"})}extendDomain(t){let e;const i=t.length-1,n=t[0]-t[i]>0,r=n?i:0,a=n?0:i;for(const o in this._extend)e=this._extend[o],e>t[a]&&(t[a]=e),e=t[1]&&(t[1]=n),this._softMaxValue=n}}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(ft.scaleDomainUpdate,{model:this}),this.event.emit(ft.scaleUpdate,{model:this,value:"domain"})}getDomainAfterSpec(){return this._domainAfterSpec}_updateNiceLabelFormatter(t){const e=Math.abs(t[1]-t[0]),i=Math.max(-Math.floor(Math.log10(e)),0)+2,n=Math.pow(10,i);this.niceLabelFormatter=r=>W(+r)?Math.round(+r*n)/n:r}}class Ra extends M_{constructor(){super(...arguments),this.type=Y.cartesianLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new Fr}setAttrFromSpec(){super.setAttrFromSpec(),this.setExtraAttrFromSpec()}initScales(){var t,e;super.initScales();const i=[0,1];E((t=this._domain)===null||t===void 0?void 0:t.min)&&(i[0]=this._domain.min),E((e=this._domain)===null||e===void 0?void 0:e.max)&&(i[1]=this._domain.max),this._scale.domain(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}}Ra.type=Y.cartesianLinearAxis,Ra.specKey="axes",ei(Ra,x0);const Bn=()=>{hl(),D.registerComponent(Ra.type,Ra)};class Z2{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 n=Math.min(t.length,this._scales.length);for(let r=0;rthis._rawDomainIndex[i][a]-this._rawDomainIndex[i][o]))}this.transformScaleDomain(),this.event.emit(ft.scaleDomainUpdate,{model:this}),this.event.emit(ft.scaleUpdate,{model:this,value:"domain"})}getLabelItems(t){const e=[];let i=[];return this._scales.forEach((n,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):n.domain();if(h&&h.length)if(i&&i.length){const d=[],c=[];i.forEach(u=>{h.forEach(p=>{const g=V(u).concat(p);if(c.push(g),l){const f=mh(p,this._getNormalizedValue(g,t));d.push(f)}})}),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=>mh(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 Od extends M_{constructor(){super(...arguments),this.type=Y.cartesianBandAxis,this._scale=new ol}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=>this._scales[e];return{isContinuous:!1,dataToPosition:this.dataToPosition.bind(this),getScale:t,getBandwidth:e=>t(e).bandwidth(),getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>this._inverse,getSpec:()=>this._spec}}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 n=Db(this._scale.domain().length,t??e,this._scale.paddingInner(),this._scale.paddingOuter());["bottom","top"].includes(this._orient)?this._regions.forEach(r=>r.setMaxWidth(n)):["left","right"].includes(this._orient)&&this._regions.forEach(r=>r.setMaxHeight(n))}}}_getOuterBandSizeFromSpec(){var t;let{bandSize:e,maxBandSize:i,minBandSize:n,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(),p=g=>{const f=l===r?o:0;return P(a)||l{hl(),D.registerComponent(Od.type,Od)};class w_ extends Ra{constructor(){super(...arguments),this.type=Y.cartesianTimeAxis,this._zero=!1,this.effect={scaleUpdate:t=>{this.computeData(t==null?void 0:t.value),Pe(this._regions,e=>{Te(this.getOrient())?e.setXAxisHelper(this.axisHelper()):e.setYAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}}}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._tick=vt({},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 $t(this._option.dataSet,{name:`${this.type}_${this.id}_layer_1_ticks`}).parse(this._scale,{type:"scale"}).transform({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 rr(this._option,e)}}computeData(t){super.computeData(t),this._layerTickData&&(this._layerTickData.getDataView().reRunAllTransform(),this._layerTickData.updateData())}_getLabelFormatMethod(){var t,e,i,n,r,a,o,l;const h=Cs.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=(((n=(i=this._spec.layers)===null||i===void 0?void 0:i[1])===null||n===void 0?void 0:n.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",p=(((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(g,f,_,m,y)=>{var v;let b;return b=y===0?p(u,g):c(d,g),!((v=this._spec.label)===null||v===void 0)&&v.formatMethod?this._spec.label.formatMethod(b,f):b}}getLabelItems(t){var e,i;const n=[],r=(e=this.getTickData())===null||e===void 0?void 0:e.getLatestData();r&&r.length&&n.push(r.map(o=>mh(o.value,this._getNormalizedValue([o.value],t))));const a=(i=this._layerTickData)===null||i===void 0?void 0:i.getLatestData();return a&&a.length&&n.push(a.map(o=>mh(o.value,this._getNormalizedValue([o.value],t)))),n}transformScaleDomain(){}}w_.type=Y.cartesianTimeAxis,w_.specKey="axes";const tet=()=>{hl(),D.registerComponent(w_.type,w_)};class Dd extends Ra{constructor(){super(...arguments),this.type=Y.cartesianLogAxis,this._zero=!1,this._scale=new HS}initScales(){var t;super.initScales(),this._scale.base((t=this._spec.base)!==null&&t!==void 0?t:10),this._scale.clamp(!0,null,!1)}transformScaleDomain(){}}Dd.type=Y.cartesianLogAxis,Dd.specKey="axes",ei(Dd,x0);const eet=()=>{hl(),D.registerComponent(Dd.type,Dd)};class Fd extends Ra{constructor(){super(...arguments),this.type=Y.cartesianSymlogAxis,this._zero=!1,this._scale=new jS}initScales(){var t;super.initScales(),this._scale.constant((t=this._spec.constant)!==null&&t!==void 0?t:10)}transformScaleDomain(){}}Fd.type=Y.cartesianSymlogAxis,Fd.specKey="axes",ei(Fd,x0);const iet=()=>{hl(),D.registerComponent(Fd.type,Fd)};class Ul extends us{constructor(){super(...arguments),this.type=H.line,this.transformerConstructor=Xu,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{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._symbolMark&&(i.add(this._symbolMark),e.add(this._symbolMark))}initMarkStyle(){this.initLineMarkStyle(this._direction),this.initSymbolMarkStyle()}initAnimation(){var t,e,i,n;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(Ht((i=D.getAnimationInKey("line"))===null||i===void 0?void 0:i(r,a),Wt("line",this._spec,this._markAttributeContext))),this._symbolMark){const o=to(this);this._symbolMark.setAnimationConfig(Ht((n=D.getAnimationInKey("scaleInOut"))===null||n===void 0?void 0:n(),Wt("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 n=>{var r,a;return i&&n==="fill"&&(n="stroke"),(a=(r=this._seriesMark)===null||r===void 0?void 0:r.getAttribute(n,t))!==null&&a!==void 0?a:void 0}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._lineMark,this._symbolMark]}}Ul.type=H.line,Ul.mark=xO,Ul.transformerConstructor=Xu,ei(Ul,R1);const net=()=>{p1(),g1(),y0(),Kr(),M2(),f0(),In(),Bn(),D.registerSeries(Ul.type,Ul)};class set{get dataList(){return this._dataArr}constructor(t,e){this._dataArr=[],this._onError=e,this._dataSet=t}parseData(t){this._dataArr=[];const e=V(t);for(let i=0;i{a.markRunning()}),this._dataValueForEach(n,(r,a)=>{A1(a,r,i)}),!0)}_dataValueForEach(t,e){t.forEach((i,n)=>{if(i instanceof $t)return;const r=this.getSeriesData(i.id,n);r&&e(i,r,n)})}getSeriesData(t,e){var i,n;if(!this._dataArr.length)return null;if(typeof t=="string"){const r=this._dataArr.filter(a=>a.name===t);return r[0]?r[0]:((i=this._onError)===null||i===void 0||i.call(this,`no data matches dataId ${t}!`),null)}return typeof e=="number"?this._dataArr[e]?this._dataArr[e]:((n=this._onError)===null||n===void 0||n.call(this,`no data matches dataIndex ${e}!`),null):this._dataArr[0]}}class ret{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 n=[];return this._scaleSpecMap.forEach((r,a)=>{Fl(r.domain)&&r.domain.forEach(o=>{o.dataId===i&&o.fields.forEach(l=>{th(n,[{key:l,operations:ie(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&&th(n,[{key:l.field,operations:ie(o.type)?["max","min"]:["values"]}])})}),n},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"?Ex("colorOrdinal"):Ex(t.type)),e?(G(t.range)&&e.range(t.range),G(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(n=>{const r=this._createFromSpec(n);r&&(e.set(n.id,r),i.set(n.id,n))}),this._modelScaleSpecMap.forEach(n=>{const r=this._createFromSpec(n);r&&(e.set(n.id,r),i.set(n.id,n))}),this._scaleSpecMap=i,this._scaleMap=e}updateSpec(t){const e={change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1};if(be(t,this._spec))return e;e.change=!0;for(let i=0;io.id===n.id);if(!a.id||a.type!==n.type)return e.reMake=!0,e;n.range&&!be(n.range,r.range())&&(r.range(n.range),e.reRender=!0),Fl(n.domain)?e.reRender=!0:be(n.domain,r.domain())||(r.domain(n.domain),e.reRender=!0),this._scaleSpecMap.set(n.id,n)}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 n=this._scaleMap.get(i);if(!n)return;if(!Fl(e.domain))return e.domain&&e.domain.length!==0||n.domain(t),void this._updateMarkScale(i,n,n.domain().slice());let r;r=ie(e.type)?[null,null]:new Set,e.domain.forEach(o=>{const l=this._getSeriesByRawDataId(o.dataId);if(!l)return;const h=ie(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;ie(e.type)||(r=Array.from(r)),n.domain(r),this._updateMarkScale(i,n,a)})}_updateMarkScale(t,e,i){const n=this._markAttributeScaleMap.get(t);n&&n.length!==0&&n.forEach(r=>{if(!r.field||!r.markScale||r.markScale===e)return;if(P(r.changeDomain)||r.changeDomain==="none"||P(r.seriesId))return void(ie(e.type)?r.markScale.domain(i):e.domain(Array.from(i)));const a=this._getSeriesBySeriesId(r.seriesId),o=ie(e.type),l=a.getRawDataStatisticsByField(r.field,o);if(!mt(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)));ie(e.type)?r.markScale.domain(i):e.domain(Array.from(i))})}registerMarkAttributeScale(t,e){const i=this._scaleMap.get(t.scale);let n=this._markAttributeScaleMap.get(t.scale);n||(n=[],this._markAttributeScaleMap.set(t.scale,n));let r=i;return(P(t.field)||!P(t.changeDomain)&&t.changeDomain!=="none"&&!P(e))&&(r=i.clone()),n.push(Object.assign(Object.assign({},t),{seriesId:e,markScale:r})),r}}class aet{constructor(t){this.stackRegion=({model:e})=>{const i=e.getSeries();if(!i.some(l=>l.getStack()))return;const n=i.some(l=>{var h,d;return(d=(h=l.getSpec())===null||h===void 0?void 0:h.totalLabel)===null||d===void 0?void 0:d.visible}),r=n||i.some(l=>l.getPercent()),a=i.some(l=>l.getStackOffsetSilhouette()),o=t2(e,!0);for(const l in o)for(const h in o[l].nodes)n2(o[l].nodes[h],e.getStackInverse(),r);if(a)for(const l in o)for(const h in o[l].nodes)GJ(o[l].nodes[h]);n&&e.getSeries().forEach(l=>{const h=l.getStackData(),d=l.getStackValue(),c=l.getStackValueField();h&&c&&i2(o[d],c)})},this._chart=t}init(){this._chart.getAllRegions().forEach(t=>{t.event.on(ft.regionSeriesDataFilterOver,{filter:({model:e})=>(e==null?void 0:e.id)===t.id},this.stackRegion)})}stackAll(){this._chart.getAllRegions().forEach(t=>{this.stackRegion({model:t})})}}var SP=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{var o;return(o=this._series)!==null&&o!==void 0?o:[]},this.getRegionsInIndex=o=>o&&o.length!==0?this._regions.filter((l,h)=>o.includes(h)):[this._regions[0]],this.getAllRegions=()=>this._regions,this.getRegionsInIds=o=>o?this._regions.filter(l=>o.includes(l.id)):[],this.getRegionsInQuerier=o=>o?this._regions.filter((l,h)=>V(o).some(d=>E(d.regionId)&&d.regionId===l.userId||d.regionIndex===h)):this._regions,this.getRegionsInUserId=o=>{if(o)return this._regions.find(l=>l.userId===o)},this.getRegionsInUserIdOrIndex=(o,l)=>this.getAllRegions().filter(h=>o!=null&&o.length?h.userId&&o.includes(h.userId):!(l!=null&&l.length)||l.includes(h.getSpecIndex())),this.getComponents=()=>this._components,this.getSeriesInIndex=o=>o&&o.length!==0?this._series.filter((l,h)=>o.includes(h)):[this._series[0]],this.getSeriesInIds=o=>o?this._series.filter(l=>o.includes(l.id)):[],this.getSeriesInUserId=o=>{if(o)return this._series.find(l=>l.userId===o)},this.getSeriesInUserIdOrIndex=(o,l)=>this.getAllSeries().filter(h=>o!=null&&o.length?h.userId&&o.includes(h.userId):!(l!=null&&l.length)||l.includes(h.getSpecIndex())),this.getComponentByIndex=(o,l)=>{const h=this._components.filter(d=>(d.specKey||d.type)===o);if(h&&h.length!==0)return h[l]},this.getComponentsByKey=o=>this._components.filter(l=>(l.specKey||l.type)===o),this.getComponentByUserId=o=>{const l=this._components.find(h=>h.userId===o);if(l)return l},this.getComponentsByType=o=>this._components.filter(l=>l.type===o),this._paddingSpec=jr((i=t.padding)!==null&&i!==void 0?i:e.getTheme().padding),this._event=new l0(e.eventDispatcher,e.mode),this._dataSet=e.dataSet,this._chartData=new set(this._dataSet,(n=this._option)===null||n===void 0?void 0:n.onError),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:(r=this._option)===null||r===void 0?void 0:r.onError,disableTriggerEvent:((a=this._option)===null||a===void 0?void 0:a.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._spec.background&&typeof this._spec.background=="object"&&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(){this._regions.forEach(t=>t.init({})),this._series.forEach(t=>t.init({})),this._components.forEach(t=>t.init({dataSet:this._dataSet})),this._initEvent(),this._canStack&&(this._stack=new aet(this),this._stack.init()),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 n={width:t,height:e};this._canvasRect=n,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=HJ(this._spec.background);t&&(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({},t),{x:()=>this._viewBox.x1,y:()=>this._viewBox.y1,width:()=>this._viewBox.x2-this._viewBox.x1,height:()=>this._viewBox.y2-this._viewBox.y1})))}_createRegion(t,e){if(!t)return;const{spec:i}=e,n=SP(e,["spec"]),r=new t(i,Object.assign(Object.assign({},this._modelOption),n));r&&(r.created(),this._regions.push(r))}_createSeries(t,e){if(!t)return;const{spec:i}=e,n=SP(e,["spec"]);let r;if(E(i.regionId)?r=this.getRegionsInUserId(i.regionId):E(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),n),{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(at(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 n;if(((n=i.specKey)!==null&&n!==void 0?n: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 n=!1;(this._spec.zField||this._spec.series&&this._spec.series.some(a=>a.zField))&&(n=!0);const r=D.getLayoutInKey((e=(t=this._spec.layout)===null||t===void 0?void 0:t.type)!==null&&e!==void 0?e:n?"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,n,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(ft.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(ft.afterLayout,{elements:a,chart:this}),this.setLayoutTag(!1),this.onLayoutEnd(t),this._event.emit(ft.layoutEnd,{chart:this,vchart:this._option.globalInstance})}(r=(n=this._option.performanceHook)===null||n===void 0?void 0:n.afterLayoutWithSceneGraph)===null||r===void 0||r.call(n)}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 T1)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 Oi)}getMarkById(t){const e=this._idMap.get(t);if(e&&e instanceof Oi)return e}updateData(t,e,i=!0,n){const r=this._dataSet.getDataView(t);r&&(r.markRunning(),r.parseNewData(e,n)),i&&this.updateGlobalScaleDomain(),this.getAllModels().forEach(a=>a.onDataUpdate())}updateFullData(t,e=!0){V(t).forEach(i=>{const n=this._dataSet.getDataView(i.id);n&&n.markRunning()}),V(t).forEach(i=>{const n=this._dataSet.getDataView(i.id);n&&A1(n,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=f2(this._spec,this._option,{width:Wl,height:Gl})),this._canvasRect}getSeriesData(t,e){return this._chartData.getSeriesData(t,e)}_transformSpecScale(){var t,e;const i=(t=this._spec.scales)!==null&&t!==void 0?t:[];let n=i.find(a=>a.id==="color");const r=this.getColorScheme();if(!n&&(n={type:"ordinal",id:"color",domain:null,range:null},i.push(n),this._spec.color)){const a=this._spec.color;if(G(a))n.range=a;else{const o=a;Object.prototype.hasOwnProperty.call(o,"type")&&(n.type=o.type),Object.prototype.hasOwnProperty.call(o,"domain")&&(n.domain=o.domain),Object.prototype.hasOwnProperty.call(o,"range")&&(n.range=o.range),Object.prototype.hasOwnProperty.call(o,"specified")&&(n.specified=o.specified)}}return!((e=n.range)===null||e===void 0)&&e.length||(n.range=eu(r),n.rangeTheme=!0),i}_createGlobalScale(){this._globalScale=new ret(this._transformSpecScale(),this),this._modelOption.globalScale=this._globalScale}updateGlobalScaleDomain(){const t=new Set;this._series.forEach(i=>{const n=i.getSeriesKeys();n&&n.forEach(r=>t.add(r))});const e=Array.from(t);this._globalScale.updateScaleDomain(e)}updateGlobalScale(t){Ml(t,this._globalScale.updateSpec(this._transformSpecScale()))}updateGlobalScaleTheme(){const t=this._globalScale.getScaleSpec("color"),e=this.getColorScheme();t.rangeTheme&&(t.range=eu(e),this._globalScale.getScale("color").range(t.range))}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=Object.keys(this._spec).sort(),n=Object.keys(t).sort();if(JSON.stringify(i)!==JSON.stringify(n))return e.reMake=!0,e;const r=this._spec;return this._spec=t,this.updateChartConfig(e,r),e.reMake?e:(this.updateGlobalScale(e),e.reMake?e:(this.updateRegionSpec(e),e.reMake?e:(this.updateComponentSpec(e),e.reMake||(this.updateSeriesSpec(e),e.reMake||(this.reInit(),this.updateDataSpec(),this.updateGlobalScaleDomain())),e)))}updateChartConfig(t,e){var i,n;this._paddingSpec=jr((i=this._spec.padding)!==null&&i!==void 0?i:(n=this._option)===null||n===void 0?void 0:n.getTheme().padding),this._updateLayoutRect(this._viewBox),be(this._spec.background,e.background)||(t.reMake=!0)}updateDataSpec(){this._spec.data&&this._chartData.updateData(this._spec.data,!1,!0)}updateRegionSpec(t){var e;!((e=this._spec)===null||e===void 0)&&e.region&&(this._spec.region.length===this._regions.length?this._regions.forEach(i=>{Ml(t,i.updateSpec(this._spec.region[i.getSpecIndex()]))}):t.reMake=!0)}updateComponentSpec(t){const e={};this._components.forEach(i=>{var n,r;const a=i.specKey||i.type,o=(n=this._spec[a])!==null&&n!==void 0?n:{};G(o)?(e[a]=e[a]||{specCount:o.length,componentCount:0},e[a].componentCount++,Ml(t,i.updateSpec((r=o[i.getSpecIndex()])!==null&&r!==void 0?r:{},o))):Ml(t,i.updateSpec(o))});for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=e[i];n.componentCount!==n.specCount&&(t.reMake=!0)}}updateSeriesSpec(t){this._spec.series.length===this._series.length?this._series.forEach(e=>{const i=this._spec.series[e.getSpecIndex()];Ml(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:n=0,x2:r,y2:a}=t;e={width:r-i,height:a-n}}else this._viewBox={x1:0,y1:0,x2:e.width,y2:e.height};this._viewRect=e,this.padding=KO(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(ft.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(),(t=this._backgroundMark.getProduct())===null||t===void 0||t.configure({context:{model:this}}).layout(()=>{}))}compileRegions(){var t,e,i,n;(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()}),(n=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterRegionCompile)===null||n===void 0||n.call(i)}compileSeries(){var t,e,i,n;(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()}),(n=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterSeriesCompile)===null||n===void 0||n.call(i)}compileComponents(){var t,e,i,n;(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()}),(n=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterComponentCompile)===null||n===void 0||n.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 n in t){if(mt(t[n]))continue;const r=t[n];let a={stateValue:n};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[n]&&(e&&!e(o,l,n)||(l.state.changeStateInfo(a),l.updateMarkState(n)))})})}}setSelected(t,e,i){this._setStateInDatum(lt.STATE_SELECTED,!0,t,e,i)}setHovered(t,e,i){this._setStateInDatum(lt.STATE_HOVER,!0,t,e,i)}clearState(t){this.getAllRegions().forEach(e=>{e.interaction.clearEventElement(t,!0),e.interaction.resetInteraction(t,null)})}clearSelected(){this.clearState(lt.STATE_SELECTED)}clearHovered(){this.clearState(lt.STATE_HOVER)}_initEvent(){[ft.dataZoomChange,ft.scrollBarChange].forEach(t=>{this._event.on(t,({value:e})=>{if(!e.filterData)return;this._disableMarkAnimation(["exit","update"]);const i=()=>{this._enableMarkAnimation(["exit","update"]),this._event.off(pt.AFTER_MARK_RENDER_END,i)};this._event.on(pt.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,n,r){const a=(i=i?V(i):null)?Object.keys(i[0]):null;this.getRegionsInQuerier(r).forEach(o=>{i?(o.getSeries().forEach(l=>{l.getMarks().forEach(h=>{if(h.getProduct()&&(!n||N(n)&&n(l,h))){const d=h.getProduct().isCollectionMark(),c=h.getProduct().elements;let u=c;if(d)u=c.filter(p=>{const g=p.getDatum();i.every((f,_)=>a.every(m=>f[m]==g[_][m]))});else if(i.length>1){const p=i.slice();u=c.filter(g=>{if(p.length===0)return!1;const f=g.getDatum(),_=p.findIndex(m=>a.every(y=>m[y]==f[y]));return _>=0&&(p.splice(_,1),!0)})}else{const p=c.find(g=>a.every(f=>i[0][f]==g.getDatum()[f]));p&&(u=[p])}u.forEach(p=>{o.interaction.startInteraction(t,p)})}})}),e&&o.interaction.reverseEventElement(t)):o.interaction.clearEventElement(t,!0)})}setDimensionIndex(t,e){var i,n,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=>vi(h.axis.getScale().type)&&P(h.index));if(e.tooltip!==!1){const h=this.getComponentsByType(Y.tooltip)[0];if(h!=null&&h.getVisible())if(l)(n=(i=h).hideTooltip)===null||n===void 0||n.call(i);else{const d={};o.forEach(c=>{const{axis:u,value:p,data:g}=c,f=u.getOrient()==="left"||u.getOrient()==="right";g.forEach(_=>{f?d[_.series.fieldY[0]]=p:d[_.series.fieldX[0]]=p})}),h.showTooltip(d,e.showTooltipOption)}}if(e.crosshair!==!1){const h=this.getComponentsByType(Y.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 AP=(s,t)=>{var e;const i=s.spec,{regionId:n,regionIndex:r}=i;if(E(n)){const a=V(n);return(e=t.region)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(E(r))return V(r).map(a=>{var o;return(o=t.region)===null||o===void 0?void 0:o[a]}).filter(E)},oet=(s,t)=>{var e;const i=s.spec,{seriesId:n,seriesIndex:r}=i;if(E(n)){const a=V(n);return(e=t.series)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(E(r))return V(r).map(a=>{var o;return(o=t.series)===null||o===void 0?void 0:o[a]}).filter(E)};class ps{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={}),E(t.stackInverse)&&t.region.forEach(e=>{!E(e.stackInverse)&&(e.stackInverse=t.stackInverse)}),E(t.stackSort)&&t.region.forEach(e=>{!E(e.stackSort)&&(e.stackSort=t.stackSort)})}transformModelSpec(t){return this.createSpecInfo(t,(e,i,n)=>{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,n);og(t,a,h.spec),og(n,o??a,Object.assign(Object.assign({},i),h))})}createSpecInfo(t,e){var i,n;e||(e=(a,o,l)=>{const{spec:h,specPath:d,specInfoPath:c,type:u}=o,p=new a.transformerConstructor(Object.assign(Object.assign({},this._option),{type:u}));og(l,c??d,Object.assign(Object.assign({},o),{theme:p.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=AP(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((n=r.component)!==null&&n!==void 0?n:{}).forEach(a=>a.forEach((o,l)=>{var h,d,c;if(o){if(!o.regionIndexes){const u=(d=(h=AP(o,r))!==null&&h!==void 0?h:r.region)!==null&&d!==void 0?d:[];o.regionIndexes=u.map(p=>p.regionIndexes[0])}if(!o.seriesIndexes){const u=oet(o,r);if(u)o.seriesIndexes=u.map(({seriesIndexes:p})=>p[0]);else{const p=new Set;((c=o.regionIndexes)!==null&&c!==void 0?c:[]).forEach(g=>{var f,_;const m=(f=r.region)===null||f===void 0?void 0:f[g];(_=m==null?void 0:m.seriesIndexes)===null||_===void 0||_.forEach(y=>p.add(y))}),o.seriesIndexes=Array.from(p)}}}})),r}_isValidSeries(t){return!0}_getDefaultSeriesSpec(t){var e,i,n,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=(n=this._option).getTheme)===null||r===void 0?void 0:r.call(n).animationThreshold,animationAppear:t.animationAppear,animationDisappear:t.animationDisappear,animationEnter:t.animationEnter,animationUpdate:t.animationUpdate,animationExit:t.animationExit,animationNormal:t.animationNormal,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 n;return((n=t.region)!==null&&n!==void 0?n:[]).map((r,a)=>e(D.getRegionInType("region"),{spec:r,specPath:["region",a],type:"region",regionIndexes:[a]},i))}forEachSeriesInSpec(t,e,i){var n;return((n=t.series)!==null&&n!==void 0?n:[]).map((r,a)=>e(D.getSeriesInType(r.type),{spec:r,specPath:["series",a],type:r.type,seriesIndexes:[a]},i))}forEachComponentInSpec(t,e,i){var n,r,a;const o=[],l=D.getComponents();let h,d,c,u;const p=[];for(let f=0;f0&&(g=!0,f.forEach(_=>{const m=D.getComponentInKey(_.type);o.push(e(m,_,i))}))}if(d&&!g){const f=d.getSpecInfo(t,i);(f==null?void 0:f.length)>0&&(g=!0,f.forEach(_=>{const m=D.getComponentInKey(_.type);o.push(e(m,_,i))}))}return c&&!g&&((r=c.getSpecInfo(t,i))===null||r===void 0||r.forEach(f=>{o.push(e(c,f,i))})),p.forEach(f=>{var _;(_=f.getSpecInfo(t,i))===null||_===void 0||_.forEach(m=>{o.push(e(f,m,i))})}),(a=u==null?void 0:u.getSpecInfo(t,i))===null||a===void 0||a.forEach(f=>{o.push(e(u,f,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(n=>{n in i||(i[n]=e[n])})}):t.series=[e]}}class Hs extends ps{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(n=>{n in i||(i[n]=e[n])})}):t.series=[e],this._transformAxisSpec(t)}_transformAxisSpec(t){if(this.needAxes()){t.axes||(t.axes=[]);const e={x:!1,y:!1,z:!1};t.axes.forEach(i=>{const{orient:n}=i;n!=="top"&&n!=="bottom"||(e.x=!0),n!=="left"&&n!=="right"||(e.y=!0),n==="z"&&(e.z=!0),Pt(i,"trimPadding")&&vt(i,_2(this.type,t))}),e.x||t.axes.push({orient:"bottom"}),e.y||t.axes.push({orient:"left"}),t.zField&&!e.z&&t.axes.push({orient:"z"})}}}class J2 extends Hs{_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),Qa(t)}}class zd extends Ae{constructor(){super(...arguments),this.transformerConstructor=J2,this.type="line",this.seriesType=H.line,this._canStack=!0}}zd.type="line",zd.seriesType=H.line,zd.transformerConstructor=J2;const het=()=>{net(),D.registerChart(zd.type,zd)};class du extends K2{constructor(){super(...arguments),this.type=du.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}_getIgnoreAttributes(){return[]}}du.type="area";const S0=()=>{D.registerMark(du.type,du),JX(),P2()};class det extends yn{constructor(){super(...arguments),this._getSeriesStyle=(t,e,i)=>{var n,r,a,o;for(const l of V(e)){let h=(n=this.series.getSeriesStyle(t))===null||n===void 0?void 0:n(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")),E(h))return h}return i}}}const cet={type:"clipIn"},uet=s=>({type:s.direction==="horizontal"?"growPointsXIn":"growPointsYIn",options:{orient:s.direction==="horizontal"?"positive":"negative"}}),pet={type:"fadeIn"};function get(s,t){if(t===!1)return{};switch(t){case"grow":return uet(s);case"fadeIn":return pet;default:return cet}}const fet=()=>{D.registerAnimation("area",(s,t)=>({appear:get(s,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"clipOut"}})),M2(),f0()};class Q2 extends Xu{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){var e,i,n;super._transformLabelSpec(t),this._addMarkLabelSpec(t,"area","areaLabel","initLineLabelMarkStyle",void 0,!0),((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((n=(i=t.point)===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.visible)!==!1||this._addMarkLabelSpec(t,"area")}_transformSpecAfterMergingTheme(t,e,i){var n,r,a,o,l;super._transformSpecAfterMergingTheme(t,e,i);const{area:h={},line:d={},seriesMark:c}=t,u=h.visible!==!1&&((n=h.style)===null||n===void 0?void 0:n.visible)!==!1,p=d.visible!==!1&&((r=d.style)===null||r===void 0?void 0:r.visible)!==!1;h.support3d=!(!h.support3d&&!d.support3d),h.zIndex=E(h.zIndex)||E(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(_=>{"style"in h.state[_]?delete h.state[_].style.stroke:delete h.state[_].stroke});let g=h,f=d;(c==="line"||p&&!u)&&(g=d,f=h),h.style=vt({},f.style,g.style),h.state=vt({},f.state,g.state),u||(h.style.fill=!1),p||(h.style.stroke=!1),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),h.visible=!(!u&&!p),t.area=h,t.line=d}}class Pr extends us{constructor(){super(...arguments),this.type=H.area,this.transformerConstructor=Q2,this._sortDataByAxis=!1}initMark(){var t,e;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},n=this._spec.area||{},r=n.visible!==!1&&((t=n.style)===null||t===void 0?void 0:t.visible)!==!1,a=(e=this._spec.seriesMark)!==null&&e!==void 0?e:"area";this._areaMark=this._createMark(Pr.mark.area,{groupKey:this._seriesField,defaultMorphElementKey:this.getDimensionField()[0],progressive:i,isSeriesMark:r&&a!=="point",customShape:n.customShape,stateSort:n.stateSort}),this.initSymbolMark(i,a==="point")}initMarkStyle(){this.initAreaMarkStyle(),this.initSymbolMarkStyle()}initAreaMarkStyle(){var t,e,i,n,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=(n=this.getSpec().line)===null||n===void 0?void 0:n.style)===null||r===void 0?void 0:r.curveType,o=a===Y2?this._direction==="horizontal"?"monotoneY":"monotoneX":a,l=this._areaMark;l&&(this._direction==="horizontal"?this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),x1:h=>{var d,c;return Xt(this.dataToPositionX1(h),(c=(d=this._xAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null,orient:this._direction},"normal",tt.Series):this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),y1:h=>{var d,c;return Xt(this.dataToPositionY1(h),(c=(d=this._yAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",tt.Series),this.setMarkStyle(l,{fill:this.getColorAttribute(),stroke:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(l,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.setMarkStyle(l,{curveType:o},"normal",tt.Built_In),Object.keys(l.stateStyle).forEach(h=>{l.stateStyle[h].stroke&&l.setPostProcess("stroke",d=>[d,!1,!1,!1],h)}))}initAnimation(){var t,e,i,n;const r={direction:this.direction},a=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;if(this._lineMark&&this._lineMark.setAnimationConfig(Ht((e=D.getAnimationInKey("line"))===null||e===void 0?void 0:e(r,a),Wt("line",this._spec,this._markAttributeContext))),this._areaMark&&this._areaMark.setAnimationConfig(Ht((i=D.getAnimationInKey("area"))===null||i===void 0?void 0:i(r,a),Wt("area",this._spec,this._markAttributeContext))),this._symbolMark){const o=to(this);this._symbolMark.setAnimationConfig(Ht((n=D.getAnimationInKey("scaleInOut"))===null||n===void 0?void 0:n(),Wt("point",this._spec,this._markAttributeContext),o))}}initTooltip(){this._tooltipHelper=new det(this);const{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._areaMark&&(t.add(this._areaMark),e.add(this._areaMark)),this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._symbolMark&&(i.add(this._symbolMark),e.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,n,r,a,o;const l=(i=this._spec.seriesMark)!==null&&i!==void 0?i:"area";let h=(r=(n=this._seriesMark)===null||n===void 0?void 0:n.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"&&G(h)?h[0]:h}}}Pr.type=H.area,Pr.mark=_1,Pr.transformerConstructor=Q2,ei(Pr,R1);const _et=()=>{p1(),g1(),y0(),S0(),Kr(),fet(),In(),Bn(),D.registerSeries(Pr.type,Pr)};class tD extends Hs{_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),Qa(t)}}class Hd extends Ae{constructor(){super(...arguments),this.transformerConstructor=tD,this.type="area",this.seriesType=H.area,this._canStack=!0}}Hd.type="area",Hd.seriesType=H.area,Hd.transformerConstructor=tD;const met=()=>{_et(),D.registerChart(Hd.type,Hd)};function eD(s,t=!0){return(e,i,n)=>{const r=s.direction==="vertical"?s.yField:s.xField,a=e==null?void 0:e[r];return s.direction==="vertical"?{overall:t&&s.growFrom(),orient:a>0?"negative":"positive"}:{overall:!!t&&s.growFrom(),orient:a>0?"positive":"negative"}}}const qu=(s,t=!0)=>({type:s.direction==="horizontal"?"growWidthIn":"growHeightIn",options:eD(s,t)}),yh=(s,t=!0)=>({type:s.direction==="horizontal"?"growWidthOut":"growHeightOut",options:eD(s,t)}),vet={type:"fadeIn"},yet={type:"growCenterIn"};function iD(s,t){if(t===!1)return{};switch(t){case"fadeIn":return vet;case"scaleIn":return yet;default:return qu(s)}}const bet=()=>{D.registerAnimation("bar",(s,t)=>({appear:iD(s,t),enter:qu(s,!1),exit:yh(s,!1),disappear:yh(s)}))},xet=()=>{D.registerAnimation("bar3d",(s,t)=>({appear:iD(s,t),enter:qu(s,!1),exit:yh(s,!1),disappear:yh(s)}))};class cu extends Oi{constructor(){super(...arguments),this.type=cu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}cu.type="rect";const qr=()=>{D.registerMark(cu.type,cu),c1(),w2()};function nD(s,t,e){var i,n;if(s.values.length>0){let r;if(s.sortDatums.length){let a=s.sortDatums;t&&(a=s.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 p=0;pthis._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[BC]):this._spec.barMinHeight?this._calculateRectPosition(t,!1):Xt(this._dataToPosX(t),e),this._getBarXEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[IC]):Xt(this._dataToPosX1(t),e),this._getBarYStart=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[LC]):this._spec.barMinHeight?this._calculateRectPosition(t,!0):Xt(this._dataToPosY(t),e),this._getBarYEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[OC]):Xt(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;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._initBarBackgroundMark(i),this._barMark=this._createMark(Object.assign(Object.assign({},Ls.mark.bar),{name:this._barMarkName,type:this._barMarkType}),{morph:Xr(this._spec,this._barMarkName),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,progressive:i,customShape:(t=this._spec.bar)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.bar)===null||e===void 0?void 0:e.stateSort})}_initBarBackgroundMark(t){this._spec.barBackground&&this._spec.barBackground.visible&&(this._barBackgroundMark=this._createMark(Ls.mark.barBackground,{dataView:this._barBackgroundViewData.getDataView(),dataProductId:this._barBackgroundViewData.getProductId(),progressive:t,customShape:this._spec.barBackground.customShape,stateSort:this._spec.barBackground.stateSort}))}initMarkStyle(){this._barMark&&this.setMarkStyle(this._barMark,{fill:this.getColorAttribute()},"normal",tt.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 n=this._getRelatedComponentSpecInfo("axes").some(a=>a.type===Y.cartesianBandAxis);let r;if(Mt(this._option.dataSet,"addVChartProperty",Fh),n){const a=([o],{scaleDepth:l})=>{var h;let d=[{}];const c=this.getDimensionField(),u=P(l)?c.length:Math.min(c.length,l);for(let p=0;p{const h=[],[d,c]=this.getDimensionContinuousField(),u={};return o.latestData.forEach(p=>{const g=`${p[d]}-${p[c]}`;u[g]||(u[g]={[d]:p[d],[c]:p[c]},h.push(u[g]))}),h};Mt(this._option.dataSet,"dimensionItems",a);const o=this.getViewData();r=new $t(this._option.dataSet).parse([o],{type:"dataview"}).transform({type:"dimensionItems"},!1).transform({type:"addVChartProperty",options:{beforeCall:vh.bind(this),call:Jo}},!1),o==null||o.target.addListener("change",r.reRunAllTransform)}this._barBackgroundViewData=new ar(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,n,r,a,o;e._bar_series_position_calculated=!0,t?(i=OC,n=LC,r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(i=IC,n=BC,r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=t2(e,!1,h=>h.type===this.type);for(const h in l)for(const d in l[h].nodes)nD(l[h].nodes[d],e.getStackInverse(),{isVertical:t,start:i,end:n,startMethod:r,endMethod:a,axisHelper:o})}_calculateRectPosition(t,e){var i,n;let r,a,o;e?(r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=(n=(i=this[o]).getScale)===null||n===void 0?void 0:n.call(i,0),h=this[o].isInverse(),d=this._spec.barMinHeight,c=Xt(this[r](t),l),u=Xt(this[a](t),l);let p=Math.abs(c-u);pthis._getBarXStart(o,r),x1:o=>this._getBarXEnd(o,r),y:o=>this._getPosition(this.direction,o),height:()=>this._getBarWidth(this._yAxisHelper),width:()=>{},y1:()=>{}},"normal",tt.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",tt.Series),this._initStackBarMarkStyle(),this._initBandBarBackgroundMarkStyle()}_initStackBarMarkStyle(){var t,e,i,n;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=(n=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.call(i,0);this._barMark.setClip(()=>{const o=[];return this._forEachStackGroup(l=>{let h=1/0,d=-1/0,c=!1,u=1/0,p=-1/0;l.values.forEach(f=>{const _=f[En],m=f[Xe],y=f[qo],v=f[$a];h=Math.min(h,_,m),d=Math.max(d,_,m),E(y)&&E(v)&&(c=!0,u=Math.min(u,y,v),p=Math.max(p,y,v))});const g=Object.assign(Object.assign(Object.assign({},l.values[0]),{[En]:h,[Xe]:d}),c?{[qo]:u,[$a]:p}:void 0);o.push(Ho(Object.assign(Object.assign({},this.direction==="horizontal"?{x:this._getBarXStart(g,r),x1:this._getBarXEnd(g,r),y:this._getPosition(this.direction,g),height:this._getBarWidth(this._yAxisHelper)}:{y:this._getBarYStart(g,a),y1:this._getBarYEnd(g,a),x:this._getPosition(this.direction,g),width:this._getBarWidth(this._xAxisHelper)}),{cornerRadius:this._spec.stackCornerRadius,fill:!0})))}),o})}initLinearRectMarkStyle(){var t,e,i,n;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=(n=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.call(i,0);this.direction==="horizontal"?this.setMarkStyle(this._barMark,{x:o=>this._getBarXStart(o,r),x1:o=>this._getBarXEnd(o,r),y:o=>Xt(this.dataToPositionY(o),a),y1:o=>Xt(this.dataToPositionY1(o),a)},"normal",tt.Series):this.setMarkStyle(this._barMark,{x:o=>Xt(this.dataToPositionX(o),r),x1:o=>Xt(this.dataToPositionX1(o),r),y:o=>this._getBarYStart(o,a),y1:o=>this._getBarYEnd(o,a)},"normal",tt.Series),this._initLinearBarBackgroundMarkStyle()}_initBandBarBackgroundMarkStyle(){var t,e,i,n,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=(n=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.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",tt.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",tt.Series)}_initLinearBarBackgroundMarkStyle(){var t,e,i,n;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=(n=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.call(i,0);this.direction==="horizontal"?this.setMarkStyle(this._barBackgroundMark,{x:()=>this._getBarBackgroundXStart(r),x1:()=>this._getBarBackgroundXEnd(r),y:o=>Xt(this.dataToPositionY(o),a),y1:o=>Xt(this.dataToPositionY1(o),a)},"normal",tt.Series):this.setMarkStyle(this._barBackgroundMark,{x:o=>Xt(this.dataToPositionX(o),r),x1:o=>Xt(this.dataToPositionX1(o),r),y:()=>this._getBarBackgroundYStart(a),y1:()=>this._getBarBackgroundYEnd(a)},"normal",tt.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)}},n=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset,r=to(this);this._barMark.setAnimationConfig(Ht((e=D.getAnimationInKey("bar"))===null||e===void 0?void 0:e(i,n),Wt(this._barMarkName,this._spec,this._markAttributeContext),r))}_getBarWidth(t,e){var i,n;const r=this._groups?this._groups.fields.length:1,a=P(e)?r:Math.min(r,e),o=(n=(i=t.getBandwidth)===null||i===void 0?void 0:i.call(t,a-1))!==null&&n!==void 0?n:6;if(this._spec.barWidth!==void 0&&a===r)return Nl(this._spec.barWidth,o);const l=this._spec.barMinWidth!==void 0,h=this._spec.barMaxWidth!==void 0;let d=o;return l&&(d=Math.max(d,Nl(this._spec.barMinWidth,o))),h&&(d=Math.min(d,Nl(this._spec.barMaxWidth,o))),d}_getPosition(t,e,i,n){var r,a,o,l,h;let d,c,u;t==="horizontal"?(d=this.getYAxisHelper(),c="height",u=n==="barBackground"?this.dataToBarBackgroundPositionY.bind(this):this.dataToPositionY.bind(this)):(d=this.getXAxisHelper(),c="width",u=n==="barBackground"?this.dataToBarBackgroundPositionX.bind(this):this.dataToPositionX.bind(this));const p=d.getScale(0),g=this._groups?this._groups.fields.length:1,f=P(i)?g:Math.min(g,i),_=(a=(r=d.getBandwidth)===null||r===void 0?void 0:r.call(d,f-1))!==null&&a!==void 0?a:6,m=f===g?this._barMark.getAttribute(c,e):_;if(f>1&&E(this._spec.barGapInGroup)){const v=this._groups.fields,b=V(this._spec.barGapInGroup);let x=0,A=0;for(let T=v.length-1;T>=1;T--){const k=v[T],M=(l=(o=d.getScale(T))===null||o===void 0?void 0:o.domain())!==null&&l!==void 0?l:[],w=M.length,C=Nl((h=b[T-1])!==null&&h!==void 0?h:Aa(b),_),R=M.indexOf(e[k]);T===v.length-1?(x+=w*m+(w-1)*C,A+=R*(m+C)):(A+=R*(x+C),x+=x+(w-1)*C)}return p.scale(e[v[0]])+d.getBandwidth(0)/2-x/2+A}const y=ie(p.type||"band");return u(e,f)+.5*(_-m)+(y?-_/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=[],n=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]:n[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,n;super.viewDataUpdate(t),(i=(e=this._barBackgroundViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(n=this._barBackgroundViewData)===null||n===void 0||n.updateData()}release(){var t;super.release(),(t=this._barBackgroundViewData)===null||t===void 0||t.release(),this._barBackgroundViewData=null}}Ls.type=H.bar,Ls.mark=a0,Ls.transformerConstructor=A0;const sD=()=>{p1(),qr(),bet(),In(),Bn(),D.registerSeries(Ls.type,Ls)};class k0 extends Hs{_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),Qa(t)}_transformAxisSpec(t){var e,i;if(super._transformAxisSpec(t),!t.axes)return;const n=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=>(n?["left","right"]:["top","bottom"]).includes(a.orient));if(r&&!r.bandSize&&!r.maxBandSize&&!r.minBandSize&&t.autoBandSize){const a=Et(t.autoBandSize)&&(i=t.autoBandSize.extend)!==null&&i!==void 0?i:0,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d}=t.series.find(u=>u.type==="bar");let c=!1;nt(l)?(r.minBandSize=l,c=!0):nt(h)?(r.minBandSize=h,c=!0):nt(o)&&(r.minBandSize=o,c=!0),c&&(r.bandSizeLevel=Number.MAX_VALUE,r.bandSizeExtend={extend:a,gap:G(d)?d[d.length-1]:d})}}}class wo extends Ae{constructor(){super(...arguments),this.transformerConstructor=k0,this.type="bar",this.seriesType=H.bar,this._canStack=!0}}wo.type="bar",wo.seriesType=H.bar,wo.transformerConstructor=k0;const Aet=()=>{sD(),D.registerChart(wo.type,wo)};class uu extends Oi{constructor(){super(...arguments),this.type=uu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,length:3})}}uu.type="rect3d";const I1=()=>{D.registerMark(uu.type,uu),iK(),w2()};class C_ extends Ls{constructor(){super(...arguments),this.type=H.bar3d,this._barMarkName="bar3d",this._barMarkType="rect3d"}}C_.type=H.bar3d,C_.mark=f1;const rD=()=>{xet(),I1(),In(),Bn(),D.registerSeries(C_.type,C_)};class aD extends k0{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup})}}class jd extends wo{constructor(){super(...arguments),this.transformerConstructor=aD,this.type="bar3d",this.seriesType=H.bar3d}}jd.type="bar3d",jd.seriesType=H.bar3d,jd.transformerConstructor=aD;const ket=()=>{rD(),D.registerChart(jd.type,jd)},TP=10,Tet=[10,20],Met=De.Linear,MP="circle",wet=De.Ordinal,Cet=["circle","square","triangle","diamond","star"],Pet=(s,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},Eet=()=>{D.registerAnimation("scatter",(s,t)=>Object.assign({appear:Pet(0,t)},w1))};class oD extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"point")}}class Ba extends us{constructor(){super(...arguments),this.type=H.scatter,this.transformerConstructor=oD,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:n},r){var a,o,l,h;if(N(e))return e;if(G(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=`${bt}_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(Et(e)){if(P(t))return(l=this._option)===null||l===void 0||l.onError(`${r}Field is required.`),e;const d=`${bt}_series_scatter_${this.id}_scale_${r}`,c=Object.assign({id:d,type:i,domain:[{dataId:this._rawData.name,fields:[t]}],range:n},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)?TP:nt(e)?e:at(e)&&JF(e)?parseFloat(e):this._getSeriesAttribute(t,e,{defaultScaleType:Met,defaultRange:Tet},"size")}getShapeAttribute(t,e){return P(e)?MP:at(e)?e:this._getSeriesAttribute(t,e,{defaultScaleType:wet,defaultRange:Cet},"shape")}initMark(){var t,e;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._symbolMark=this._createMark(Ba.mark.point,{morph:Xr(this._spec,Ba.mark.point.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,progressive:i,isSeriesMark:!0,customShape:(t=this._spec.point)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.point)===null||e===void 0?void 0:e.stateSort})}initMarkStyle(){this.initSymbolMarkStyle()}initAnimation(){var t,e,i;const n=to(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(Ht((i=D.getAnimationInKey("scatter"))===null||i===void 0?void 0:i({},r),Wt("point",this._spec,this._markAttributeContext),n))}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:nt(this._size)||N(this._size)?this._size:TP,symbolType:at(this._shape)||N(this._shape)?this._shape:MP},lt.STATE_NORMAL,tt.Series),(E(this._sizeField)||E(this._size))&&this.setMarkStyle(t,{size:this.getSizeAttribute(this._sizeField,this._size)},lt.STATE_NORMAL,tt.User_Mark),(E(this._shapeField)||E(this._shape))&&this.setMarkStyle(t,{symbolType:this.getShapeAttribute(this._shapeField,this._shape)},lt.STATE_NORMAL,tt.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 n,r,a;return i&&((a=(r=(n=this.getViewDataStatistics())===null||n===void 0?void 0:n.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",tt.Series):this.setMarkStyle(this._symbolMark,{visible:this._getInvalidDefined.bind(this)},"normal",tt.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},lt.STATE_NORMAL,tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},lt.STATE_NORMAL,tt.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 n=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();n&&n.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 n=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();n&&n.evaluate(null,null)}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._symbolMark]}}Ba.type=H.scatter,Ba.mark=SO,Ba.transformerConstructor=oD;const Ret=()=>{Kr(),Eet(),In(),Bn(),D.registerSeries(Ba.type,Ba)};class lD extends Hs{_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 Vd extends Ae{constructor(){super(...arguments),this.transformerConstructor=lD,this.type="scatter",this.seriesType=H.scatter,this._canStack=!0}}Vd.type="scatter",Vd.seriesType=H.scatter,Vd.transformerConstructor=lD;const Bet=()=>{Ret(),D.registerChart(Vd.type,Vd)};Zx();const wP={},L1=["clipAngle","clipExtent","scale","translate","center","rotate","precision","reflectX","reflectY","parallels","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function Iet(s,t){return function e(){const i=t();return i.type=s,i.path=Zx().projection(i),i.copy=i.copy||function(){const n=e();return L1.forEach(r=>{i[r]&&n[r](i[r]())}),n.path.pointRadius(i.path.pointRadius()),n},i}}function ha(s,t){s&&at(s)||So("Projection type must be a name string.");const e=s.toLowerCase();return arguments.length>1&&(wP[e]=Iet(e,t)),wP[e]||null}const CP={albers:bR,albersusa:Pz,azimuthalequalarea:Ez,azimuthalequidistant:Rz,conicconformal:Lz,conicequalarea:wg,conicequidistant:Fz,equalEarth:Hz,equirectangular:Oz,gnomonic:jz,identity:Vz,mercator:Bz,naturalEarth1:Wz,orthographic:Gz,stereographic:Nz,transversemercator:Uz};Object.keys(CP).forEach(s=>{ha(s,CP[s])});const PP="Feature",hD="FeatureCollection";function Let(s){return s.type===hD?s.features:V(s).filter(t=>!P(t)).map(t=>t.type===PP?t:{type:PP,geometry:t})}function Oet(s){const t=V(s);return t.length===1?t[0]:{type:hD,features:t.reduce((e,i)=>e.concat(Let(i)),[])}}function Det(s){const t=ha((s||"mercator").toLowerCase());return t||So("Unrecognized projection type: "+s),t()}function Fet(s,t,e){N(s[t])&&s[t](e)}const zet=L1.concat(["pointRadius","fit","extent","size"]);function EP(s,t){let e=[];return s&&Object.keys(s).forEach(i=>{zet.includes(i)&&(e=e.concat(Ui(s[i],t)))}),e}let Het=class extends n0{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(Ui(this.spec.pointRadius,this.view)),this.spec.pointRadius=t,this.attach(Ui(t,this.view)),this.commit(),this}size(t){return P(this.spec.size)||this.detach(Ui(this.spec.size,this.view)),this.spec.size=t,this.attach(Ui(t,this.view)),this.commit(),this}extent(t){return P(this.spec.extent)||this.detach(Ui(this.spec.extent,this.view)),this.spec.extent=t,this.attach(Ui(t,this.view)),this.commit(),this}fit(t){return P(this.spec.fit)||this.detach(Ui(this.spec.fit,this.view)),this.spec.fit=t,this.attach(Ui(t,this.view)),this.commit(),this}configure(t){return this.detach(EP(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(EP(this.spec,this.view))),this.commit(),this}evaluate(t,e){if(this.projection&&this.projection.type===this.spec.type||(this.projection=Det(this.spec.type),this.projection.type=this.spec.type),L1.forEach(i=>{P(this.spec[i])||Fet(this.projection,i,Fe(this.spec[i],e,ha))}),P(this.spec.pointRadius)||this.projection.path.pointRadius(Fe(this.spec.pointRadius,e,ha)),!(P(this.spec.fit)||P(this.spec.extent)&&P(this.spec.size))){const i=Oet(Fe(this.spec.fit,e,ha));this.spec.extent?this.projection.fitExtent(Fe(this.spec.extent,e,ha),i):this.spec.size&&this.projection.fitSize(Fe(this.spec.size,e,ha),i)}return this.projection}output(){return this.projection}};const jet=()=>{Q.registerGrammar("projection",Het,"projections")},Vet=(s,t)=>{if(!t.from||!t.from())return s;const e=t.fields,i=t.key,n=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(n){const h=n.length;l=function(d){const c=o.get(d[i]);if(P(c))for(let u=0;u(l(h),h))};class Wet extends Qo{constructor(){super(...arguments),this.type=H.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 n=null;if(!t||e&&!this.isDatumInViewData(t))return n;const{dataToPosition:r,latitudeField:a,longitudeField:o}=this._coordinateHelper;if(n=this.nameToPosition(t),n===null){const l=o?t==null?void 0:t[o]:Number.NaN,h=a?t==null?void 0:t[a]:Number.NaN;n=(i=r==null?void 0:r([l,h]))!==null&&i!==void 0?i:null}return n}nameToPosition(t){const e=this.getDatumName(t);return P(e)?null:this.nameValueToPosition(e)}nameValueToPosition(t){var e,i;const n=(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(n))return null;const{dataToPosition:r}=this._coordinateHelper,a=this.getDatumCenter(n),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=`${bt}_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,n,r;return this._seriesField?(r=(e=(t=this.getRawDataStatisticsByField(this._seriesField))===null||t===void 0?void 0:t.values)!==null&&e!==void 0?e:(n=(i=this._mapViewDataStatistics)===null||i===void 0?void 0:i.latestData[this._seriesField])===null||n===void 0?void 0:n.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 P_=`${bt}_MAP_LOOK_UP_KEY`,Get=(s,t)=>(s.features&&s.features.forEach((e,i)=>{var n;e[Ji]=i;const r=(n=e.properties)===null||n===void 0?void 0:n[t.nameProperty];t.nameMap&&t.nameMap[r]?e[P_]=t.nameMap[r]:e[P_]=r}),s.features);class Net extends yn{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 pu extends Oi{constructor(){super(...arguments),this.type=pu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0,path:""})}}pu.type="path";const O1=()=>{D.registerMark(pu.type,pu),ZL()};class Uet{constructor(t){this.projection=ha(t.type)()}fit(t,e,i){const n={type:"FeatureCollection",features:i};this.projection.fitExtent([t,e],n)}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 n=this.projection.copy();return n==null?void 0:n.fitExtent([t,e],{type:"FeatureCollection",features:i})}}class $et{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 Yet{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 _r(s){return s===$e["desktop-browser"]||s===$e["desktop-miniApp"]?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"wheel",zoomEnd:"pointerup",scroll:"wheel",trigger:$et}:Ga(s)||qa(s)?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"pinch",zoomEnd:"pinchend",scroll:"pan",scrollEnd:"panend",trigger:Yet}:null}const xl={debounce:or,throttle:Ka};class D1{constructor(){this._isGestureListener=!1}initZoomable(t,e=$e["desktop-browser"]){this._eventObj=t,this._renderMode=e,this._gestureController=this._option.getChart().getVGrammarView().renderer._gestureController,this._isGestureListener=Ga(this._renderMode)||qa(this._renderMode),_r(this._renderMode)&&(this._clickEnable=!0,this._zoomableTrigger=new(this._getZoomTriggerEvent("trigger")))}_getZoomTriggerEvent(t){return _r(this._renderMode)[t]}_zoomEventDispatch(t,e,i){if(!this._isGestureListener&&!t.event)return;const n=this._isGestureListener?t:t.event.clone();this._zoomableTrigger.parserZoomEvent(n);const{zoomDelta:r,zoomX:a,zoomY:o}=n;P(r)||bd({x:a,y:o},this._getRegionOrSeriesLayout(e),!1)&&(i&&i({zoomDelta:r,zoomX:a,zoomY:o},n),this._eventObj.emit("zoom",{scale:n.zoomDelta,scaleCenter:{x:n.zoomX,y:n.zoomY},model:this}))}_getRegionOrSeriesLayout(t){t.type!=="region"&&(t=t.getRegion());const{x:e,y:i,width:n,height:r}=t.layout.getLayout();return{x1:e,y1:i,x2:e+n,y2:i+r}}_bindZoomEventAsRegion(t,e,i,n){var r,a;const o=(r=n==null?void 0:n.delayType)!==null&&r!==void 0?r:"throttle",l=(a=n==null?void 0:n.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("zoom")]:[this._getZoomTriggerEvent("zoom"),{level:le.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("zoomEnd")]:[this._getZoomTriggerEvent("zoomEnd"),{level:le.chart,consume:!1}];h.on(...c,xl[o](u=>{this._zoomableTrigger.clearZoom()},l)),h.on(...d,xl[o](u=>{this._zoomEventDispatch(u,e,i)},l))}initZoomEventOfSeries(t,e,i){this._option.disableTriggerEvent||_r(this._renderMode)&&this._bindZoomEventAsRegion(t.event,t,e,i)}initZoomEventOfRegions(t,e,i,n){this._option.disableTriggerEvent||_r(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindZoomEventAsRegion(a.event,a,i,n)}):this._bindZoomEventAsRegion(this._eventObj,r,i,n)})}_scrollEventDispatch(t,e,i){let n=!1;if(!this._isGestureListener&&(!t.event||this._option.disableTriggerEvent))return n;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)||bd({x:l,y:h},this._getRegionOrSeriesLayout(e),!1)&&(i&&(n=i({scrollX:a,scrollY:o},r)),this._eventObj.emit("scroll",{scrollX:a,scrollY:o,model:this})),n}_bindScrollEventAsRegion(t,e,i,n){var r,a;const o=(r=n==null?void 0:n.delayType)!==null&&r!==void 0?r:"throttle",l=(a=n==null?void 0:n.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("scroll")]:[this._getZoomTriggerEvent("scroll"),{level:le.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("scrollEnd")]:[this._getZoomTriggerEvent("scrollEnd"),{level:le.chart,consume:!1}];h.on(...c,xl[o](u=>{this._zoomableTrigger.clearScroll()},l)),h.on(...d,xl[o](u=>this._scrollEventDispatch(u,e,i),l))}initScrollEventOfSeries(t,e,i){_r(this._renderMode)&&this._bindScrollEventAsRegion(t.event,t,e,i)}initScrollEventOfRegions(t,e,i,n){this._option.disableTriggerEvent||_r(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindScrollEventAsRegion(a.event,a,i,n)}):this._bindScrollEventAsRegion(this._eventObj,r,i,n)})}_bindDragEventAsRegion(t,e,i,n){t.on(this._getZoomTriggerEvent("start"),{level:le.chart},r=>{if(!r.event)return;const{event:a}=r;bd({x:a.canvasX,y:a.canvasY},this._getRegionOrSeriesLayout(e),!1)&&this._handleDrag(r,i,n)}),t.on("click",{level:le.chart},()=>!this._clickEnable)}initDragEventOfSeries(t,e,i){this._option.disableTriggerEvent||_r(this._renderMode)&&t.event.on(this._getZoomTriggerEvent("start"),{level:le.model,filter:({model:n})=>(n==null?void 0:n.id)===t.id},n=>{this._handleDrag(n,e,i)})}initDragEventOfRegions(t,e,i,n){this._option.disableTriggerEvent||_r(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&(a.event.on(this._getZoomTriggerEvent("start"),{level:le.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},o=>{this._handleDrag(o,i)}),a.event.on("click",{level:le.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},()=>!this._clickEnable))}):this._bindDragEventAsRegion(this._eventObj,r,i,n)})}_handleDrag(t,e,i){var n,r,a;if(this._option.disableTriggerEvent||(this._clickEnable=!1,!this._zoomableTrigger.parserDragEvent(t.event)))return;const o=(n=i==null?void 0:i.delayType)!==null&&n!==void 0?n:"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 p=u.canvasX,g=u.canvasY,f=u.canvasX,_=u.canvasY;const m=xl[o](v=>{this._clickEnable=!0;const b=v.event,x=[b.canvasX-f,b.canvasY-_];f=b.canvasX,_=b.canvasY,!h&&e&&e(x,v.event),this._eventObj.emit("panend",{delta:x,model:this}),this._zoomableTrigger.pointerId=null,this._eventObj.off(d,{level:le.chart,source:Nt.chart},y),this._eventObj.off(c,{level:le.chart,source:Nt.window},m)},l),y=xl[o](v=>{if(!this._zoomableTrigger.parserDragEvent(v.event))return;this._clickEnable=!1;const b=v.event,x=[b.canvasX-p,b.canvasY-g];p=b.canvasX,g=b.canvasY,h&&e&&e(x,v.event),this._eventObj.emit("panmove",{delta:x,model:this})},l);this._eventObj.on(d,{level:le.chart,source:Nt.chart},y),this._eventObj.on(c,{level:le.chart,source:Nt.chart},m)}}function Xet(s,t){return`${bt}_${t}_${s}`}class E_ extends xn{constructor(){super(...arguments),this.type=Y.geoCoordinate,this.name=Y.geoCoordinate,this.layoutType="none",this.layoutZIndex=re.Mark,this._projectionSpec={name:Xet(this.type,this.id),type:"mercator"},this._actualScale=1,this._initialScale=1,this.effect={scaleUpdate:()=>{this.coordinateHelper()}},this._handleChartZoom=(t,e)=>{var i,n,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=(n=this._spec.zoomLimit)===null||n===void 0?void 0:n.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),e&&(e.zoomDelta=h),this.zoom(h,[t.zoomX,t.zoomY]),h},this.pan=(t=[0,0])=>{var e,i,n;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],(n=this._projection)===null||n===void 0||n.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,n)=>{if(i.coordinate==="geo"){const r=Object.assign(Object.assign({},i),{padding:0});e.push({spec:r,regionIndex:n,type:Y.geoCoordinate,specInfoPath:["component","geoCoordinate",n]})}}),e}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this._spec.roam&&this.initZoomable(this.event,this._option.mode),this._projectionSpec=vt(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},n=this._handleChartZoom({zoomDelta:t,zoomX:i.x,zoomY:i.y});n!==1&&this.event.emit("zoom",{scale:n,scaleCenter:i,model:this})}initEvent(){this.event.on(ft.scaleUpdate,{filter:({model:t})=>(t==null?void 0:t.id)===this.id},this.effect.scaleUpdate.bind(this)),this._spec.roam&&(this.initZoomEventOfRegions(this._regions,null,this._handleChartZoom),this.initDragEventOfRegions(this._regions,()=>!0,this.pan),this._regions.forEach(t=>{t.getSeries().forEach(e=>{e.event.on("zoom",i=>(e.handleZoom(i),!0)),e.event.on("panmove",i=>(e.handlePan(i),!0))})}))}initProjection(){var t;this._projection=new Uet(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===H.map?i.setCoordinateHelper(t):(i.setXAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(n,r)=>{var a;let o=n[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:(n,r)=>{var a;if(P(n)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];n=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.x}return this.dataToLongitude(n)},getFields:()=>[this._longitudeField],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>!1})),i.setYAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(n,r)=>{var a;let o=n[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:(n,r)=>{var a;if(P(n)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];n=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.y}return this.dataToLatitude(n)},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:n,scale:r,center:a}=this.evaluateProjection([0,0],[e,i]);n&&this._projection.translate(n),r&&this._projection.scale(r),a&&this._projection.center(a),Pe(this._regions,o=>{var l;if(o.type===H.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 n,r;i.type===H.map&&t.push(...(r=(n=i.getMapViewData())===null||n===void 0?void 0:n.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,n,r,a,o,l;let h=(n=(i=this._projection)===null||i===void 0?void 0:i.scale())!==null&&n!==void 0?n: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 n=this._projection.evaluate(t,e,this.collectFeatures());let r=n.translate();const a=n.scale()*this._initialScale,o=(i=this._projectionSpec.center)!==null&&i!==void 0?i:n.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,n;e.type==="map"&&((n=(i=e.getMapViewData())===null||i===void 0?void 0:i.latestData)!==null&&n!==void 0?n:[]).forEach((r={})=>{const a=r[e.getDimensionField()[0]]||r[P_],o=e.getDatumCenter(r);a&&E(o)&&this._centerCache.set(a,{x:o[0],y:o[1]})})})})}release(){super.release(),this._centerCache&&this._centerCache.clear(),this._centerCache=null}}E_.type=Y.geoCoordinate,ei(E_,D1);const dD=()=>{D.registerComponent(E_.type,E_)};class cD extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"area",void 0,void 0,!1)}}class Ia extends Wet{constructor(){super(...arguments),this.type=H.map,this.transformerConstructor=cD,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 !`),Zo.get(this.map)||(e=this._option)===null||e===void 0||e.onError(`'${this.map}' data is not registered !`)}initData(){var t,e;super.initData(),Mt(this._dataSet,"copyDataView",h0),Mt(this._dataSet,"map",Get),Mt(this._dataSet,"lookup",Vet);const i=Zo.get(this.map);i||(t=this._option)===null||t===void 0||t.onError("no valid map data found!");const n=new $t(this._dataSet,{name:`map_${this.id}_data`});n.parse([i],{type:"dataview"}).transform({type:"copyDataView",options:{deep:!0},level:Fs.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:P_,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",n.reRunAllTransform),this._mapViewData=new ar(this._option,n)}initMark(){this._pathMark=this._createMark(Ia.mark.area,{morph:Xr(this._spec,Ia.mark.area.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this.getDimensionField()[0],isSeriesMark:!0,skipBeforeLayouted:!0,dataView:this._mapViewData.getDataView(),dataProductId:this._mapViewData.getProductId()})}initMarkStyle(){const t=this._pathMark;t&&(this.setMarkStyle(t,{fill:e=>{var i,n,r,a;return E(e[(i=this._seriesField)!==null&&i!==void 0?i:Cn])?((n=this._option.globalScale.getScale("color"))!==null&&n!==void 0?n:this._getDefaultColorScale()).scale(e[(r=this._seriesField)!==null&&r!==void 0?r:Cn]):(a=this._spec)===null||a===void 0?void 0:a.defaultFillColor},path:this.getPath.bind(this)},"normal",tt.Series),t.setPostProcess("fill",e=>E(e)?e:this._spec.defaultFillColor),this.setMarkStyle(t,{smoothScale:!0},"normal",tt.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(Ht((t=D.getAnimationInKey("fadeInOut"))===null||t===void 0?void 0:t(),Wt("area",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new Net(this),this._pathMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pathMark)}getPath(t){var e;const i=this._areaCache.get(t[Ji]);if(i)return i.shape;const n=(e=this._coordinateHelper)===null||e===void 0?void 0:e.shape(t);return this._areaCache.set(t[Ji],{shape:n}),n}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,n;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=(n=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||n===void 0?void 0:n.getProduct();l&&l.evaluate(null,null)}handlePan(t){var e,i,n;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=(n=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||n===void 0?void 0:n.getProduct();o&&o.evaluate(null,null)}getDatumCenter(t){var e,i,n,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]:W(t.centroidX*t.centroidY)?[t.centroidX,t.centroidY]:!((n=t.properties)===null||n===void 0)&&n.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,n;super.viewDataUpdate(t),(i=(e=this._mapViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(n=this._mapViewData)===null||n===void 0||n.updateData()}_getDataIdKey(){return Ji}getActiveMarks(){return[this._pathMark]}}Ia.type=H.map,Ia.mark=wO,Ia.transformerConstructor=cD;const Ket=()=>{jet(),dD(),O1(),D.registerSeries(Ia.type,Ia),D.registerImplement("registerMap",sQ),D.registerImplement("unregisterMap",rQ),Yr()},qet=(s,t)=>{if(!s||s.length===0)return s;const{indexField:e,total:i,groupData:n}=t,r=[],{dimensionValues:a,dimensionData:o}=n().latestData,l=Array.from(a[e]);let h={start:0,end: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},p=o[d];if(p==null||p.forEach((g,f)=>{f===p.length-1?g[tu]=!0:delete g[tu]}),p.length>1){const g=f=>{if(i&&i.type!=="end"){if(i.type==="field"||i.type==="custom")return!!f[i.tagField]}else if(c===l.length-1)return!0;return!1};if(p.some(f=>g(f)))return h=Zet(p,d,u,r,h,l,c,t,g),void r.push(u)}h=uD(p,d,u,r,h,l,c,t),r.push(u)}),r};function Zet(s,t,e,i,n,r,a,o,l){e.isTotal=!0;const{valueField:h,startAs:d,endAs:c,total:u}=o,p=[],g=[];if(s.forEach(v=>{l(v)?g.push(v):p.push(v)}),g.length===s.length){const v=uD([s[0]],t,e,i,n,r,a,o);return g.forEach(b=>{b[d]=s[0][d],b[c]=s[0][c],b[h]=s[0][h]}),v}const f=g[0];let{start:_,end:m}=pD(f,e,i,n,u);e.start=_,e.end=m;let y=m-_;return p.forEach(v=>{v[d]=+_,v[c]=wc(v[d],+v[h]),_=v[c],y=oy(y,+v[h])}),g.forEach(v=>{v[d]=+_,v[c]=wc(v[d],y),v[h]=y}),Object.assign(Object.assign({},e),{lastIndex:t})}function uD(s,t,e,i,n,r,a,o){const{valueField:l,startAs:h,endAs:d,total:c,seriesField:u,seriesFieldName:p}=o;return s.forEach(g=>{let f=!1;if(c&&c.type!=="end"){if((c.type==="field"||c.type==="custom")&&g[c.tagField]){f=!0;const{start:_,end:m}=pD(g,e,i,n,c);g[h]=_,g[d]=m,g[l]=m-_,e.start=_,e.end=m}}else a===r.length-1&&(e.start=0,g[h]=e.start,g[d]=e.end,f=!0);f||(g[h]=+e.end,g[d]=wc(g[h],+g[l]),e.end=g[d]),e.isTotal=f,(P(u)||u===g_)&&(g[g_]=f?p.total:+g[l]>=0?p.increase:p.decrease)}),Object.assign(Object.assign({},e),{lastIndex:t})}function pD(s,t,e,i,n){return n&&n.type!=="end"?n.type==="field"||n.type==="custom"?n.type==="custom"?Qet(s,i,n):n.collectCountField&&!P(s[n.collectCountField])?tit(s,e,t,n):eit(s,t,n):{start:0,end:0}:Jet(t)}function Jet(s){return{start:0,end:s.end}}function Qet(s,t,e){return e.product(s,t)}function tit(s,t,e,i){let n=0,r=e.end;const a=t.length-+s[i.collectCountField],o=t.length-1;return a<0?sr("total.collectCountField error"):n=t[a].start,o<0?sr("total.collectCountField error"):r=t[o].end,{start:n,end:r}}function eit(s,t,e){let i=0,n=t.end;return e.startField&&!P(s[e.startField])&&(i=+s[e.startField]),e.valueField&&!P(s[e.valueField])&&(n=wc(i,+s[e.valueField])),{start:i,end:n}}const iit=(s,t)=>{if(!s)return s;const{indexField:e,valueField:i,total:n,seriesField:r}=t,a={[e]:(n==null?void 0:n.text)||"total",[i]:s.reduce((o,l)=>wc(o,+l[i]),0)};return r&&(a[r]="total"),s.push(a),s},nit={type:"fadeIn"},sit={type:"growCenterIn"};function rit(s,t){switch(t){case"fadeIn":return nit;case"scaleIn":return sit;default:return qu(s,!1)}}const ait=()=>{D.registerAnimation("waterfall",(s,t)=>({appear:rit(s,t),enter:qu(s,!1),exit:yh(s,!1),disappear:yh(s,!1)}))};class gu extends Oi{constructor(){super(...arguments),this.type=gu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x1:0,y1:0})}}gu.type="rule";const zh=()=>{D.registerMark(gu.type,gu),u1()},oit=(s,t)=>{if(!t.fields)return s;const e={};return{dimensionValues:e,dimensionData:gD(s.map(i=>i.latestData).flat(),t.fields,e)}};function gD(s,t,e){if(t.length===0)return s;const i=t[0],n=t.slice(1);e[i]=new Set;const r=lit(s,i,e[i]);return n.length?hit(r,(a,o)=>gD(a,n,e)):r}function lit(s,t,e){const i={};return s.forEach(n=>{const r=n[t];i[r]||(i[r]=[],e.add(r)),i[r].push(n)}),i}function hit(s,t){return Object.keys(s).reduce((e,i)=>(e[i]=t(s[i],i),e),{})}class dit{get fields(){return this._fields}get groupData(){return this._groupData}constructor(t){this._fields=[],this._fields=t}initData(t,e){const i=t.name,n=new $t(e instanceof Va?e:t.dataSet);n.name=i,n.parse([t],{type:"dataview"}),Mt(e,"dimensionTree",oit),n.transform({type:"dimensionTree",options:{fields:this._fields}},!1),n.target.addListener("change",this.groupDataUpdate.bind(this)),this._groupData=n}groupDataUpdate(){}getGroupValueInField(t){var e,i,n;const r=(n=(i=(e=this.groupData)===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.dimensionValues)===null||n===void 0?void 0:n[t];return r?Array.from(r):[]}}class fD extends A0{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"bar"),this._addMarkLabelSpec(t,"bar","stackLabel")}}const RP={rect:BP,symbol:_D,arc:IP,point:fit,"line-data":uit,stackLabel:mD,line:LP,area:LP,rect3d:BP,arc3d:IP,treemap:vit,venn:yit};function cit(s,t){var e;const{labelSpec:i}=t;return i.overlap&&!Et(i.overlap)&&(i.overlap={}),((e=RP[s])!==null&&e!==void 0?e:RP.point)(t)}function F1(s,t,e,i){var n;const{labelMark:r,series:a}=s,o={text:t[a.getMeasureField()[0]],data:t,textType:(n=s.labelSpec.textType)!==null&&n!==void 0?n:"text"},l=Object.keys(r.stateStyle.normal);for(const c of l){const u=r.getAttribute(c,t);o[c]=u}const{formatFunc:h,args:d}=Wr(e,i,o.text,t);return h&&(o.text=h(...d,{series:a})),o}function z1(s){return N(s)?t=>s(t.data):s}function _D(s){var t,e,i;const{series:n,labelSpec:r}=s,a=n.direction==="horizontal"?"right":"top",o=(t=z1(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:pit(),avoidBaseMark:o!=="center"},{position:o,overlap:l}}function uit(s){const t=_D(s);return ge(t.overlap)||(t.overlap.avoidBaseMark=!1),t}function pit(){return[{type:"position",position:["top","bottom","right","left","top-right","top-left","bottom-left","bottom-right"]}]}function BP(s){var t,e,i,n,r,a;const{series:o,labelSpec:l={}}=s,h=(t=z1(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():(n=o.getYAxisHelper())===null||n===void 0?void 0:n.isInverse();let u,p=h;at(h)&&h==="outside"&&(p=f=>{const{data:_}=f,m=o.getMeasureField()[0],y=(_==null?void 0:_[m])>=0&&c||(_==null?void 0:_[m])<0&&!c?1:0;return{vertical:["top","bottom"],horizontal:["right","left"]}[d][y]}),u=l.overlap!==!1&&{strategy:(a=(r=l.overlap)===null||r===void 0?void 0:r.strategy)!==null&&a!==void 0?a:git(o)};let g=!1;return at(h)&&h.includes("inside")&&(g=!0),{position:p,overlap:u,smartInvert:g}}function git(s){return[{type:"position",position:t=>{var e,i;const{data:n}=t,r=s.getMeasureField()[0];return(s.direction==="horizontal"?!((e=s.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=s.getYAxisHelper())===null||i===void 0)&&i.isInverse())?(n==null?void 0:n[r])>=0?s.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]:s.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:(n==null?void 0:n[r])>=0?s.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:s.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]}}]}function fit(s){const{labelSpec:t}=s;let e;return e=t.overlap!==!1&&{avoidBaseMark:!1},{position:"center",overlap:e}}function IP(s){var t;const{labelSpec:e}=s,i=(t=z1(e.position))!==null&&t!==void 0?t:"outside",n=i;let r;return r=e.smartInvert?e.smartInvert:at(i)&&i.includes("inside"),{position:n,smartInvert:r}}function _it(s,t,e,i){return t.direction==="horizontal"?e==="middle"?.5*(t.totalPositionX(s,"end")+t.totalPositionY(s,"start")):e==="max"?t.totalPositionX(s,s.end>=s.start?"end":"start")+i:e==="min"?t.totalPositionX(s,s.end>=s.start?"start":"end")-i:t.totalPositionX(s,"end")+(s.end>=s.start?i:-i):t.totalPositionX(s,"index",.5)}function mit(s,t,e,i){return t.direction==="horizontal"?t.totalPositionY(s,"index",.5):e==="middle"?.5*(t.totalPositionY(s,"end")+t.totalPositionY(s,"start")):e==="max"?t.totalPositionY(s,s.end>=s.start?"end":"start")-i:e==="min"?t.totalPositionY(s,s.end>=s.start?"start":"end")+i:t.totalPositionY(s,"end")+(s.end>=s.start?-i:i)}function mD(s,t,e){const i=s.series,n=s.labelSpec||{},r=i.getTotalData();return{customLayoutFunc:a=>a.map(o=>{const l=n.position||"withChange",h=n.offset||0,d=t?t(o.data):o.data,c=F1(s,d,n.formatMethod);return c.x=_it(d,i,l,h),c.y=mit(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),dh(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 vit(s){return{customLayoutFunc:(t,e)=>e,overlap:!1}}function yit(s){return{customLayoutFunc:(t,e)=>e,smartInvert:!0}}function LP(s){var t,e,i,n;const{labelSpec:r,series:a}=s,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:(n=r.position)!==null&&n!==void 0?n:"end",data:l}}class Co extends Ls{constructor(){super(...arguments),this.type=H.waterfall,this.transformerConstructor=fD,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 dit(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=g_)}getSeriesKeys(){return this._seriesField===g_?[this._theme.seriesFieldName.increase,this._theme.seriesFieldName.decrease,this._theme.seriesFieldName.total]:super.getSeriesKeys()}initData(){var t;super.initData(),Mt(this._dataSet,"waterfallFillTotal",iit),Mt(this._dataSet,"waterfall",qet),(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=Dx(this.getViewData(),this._dataSet,{name:`${bt}_series_${this.id}_totalData`});this.getViewData().target.removeListener("change",e.reRunAllTransform),this._totalData=new ar(this._option,e),e.transform({type:"waterfall",options:{indexField:this.getGroupFields()[0],valueField:this.getStackValueField(),seriesField:this.getSeriesField(),seriesFieldName:this._theme.seriesFieldName,startAs:En,endAs:Xe,total:this._spec.total,groupData:()=>this.getGroups().groupData}},!1)}initAnimation(){var t,e,i,n;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=to(this);this._barMark.setAnimationConfig(Ht((i=D.getAnimationInKey("waterfall"))===null||i===void 0?void 0:i(r,a),Wt("bar",this._spec,this._markAttributeContext),o)),this._leaderLineMark&&this._leaderLineMark.setAnimationConfig(Ht((n=D.getAnimationInKey("fadeInOut"))===null||n===void 0?void 0:n(),Wt("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(Co.mark.leaderLine,{key:"index",customShape:(t=this._spec.leaderLine)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.leaderLine)===null||e===void 0?void 0:e.stateSort});i&&(this._leaderLineMark=i,i.setDataView(this._totalData.getDataView(),this._totalData.getProductId()))}initLabelMarkStyle(t){var e;if(t){if(!this._labelMark&&(!((e=this._spec.label)===null||e===void 0)&&e.visible))return super.initLabelMarkStyle(t),void(this._labelMark=t);this._stackLabelMark=t,t.skipEncode=!0,t.setRule("stackLabel"),t.setDataView(this._totalData.getDataView(),this._totalData.getProductId()),this.setMarkStyle(t,{text:i=>{var n;return((n=this._spec.stackLabel)===null||n===void 0?void 0:n.valueType)==="absolute"?i.end:oy(i.end,i.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:oy(e.end,e.start):this.direction==="horizontal"?e[this._fieldX[0]]:e[this._fieldY[0]]}})}getTotalLabelComponentStyle(t){return mD(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(n=>n.index===i)})}totalPositionX(t,e,i=.5){const{dataToPosition:n,getBandwidth:r}=this._xAxisHelper;return this._direction==="horizontal"?Xt(n([t[e]],{bandPosition:this._bandPosition})):n([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("width",t)*(.5-i)}totalPositionY(t,e,i=.5){const{dataToPosition:n,getBandwidth:r}=this._yAxisHelper;return this._direction==="horizontal"?n([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("height",t)*(.5-i):Xt(n([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",tt.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",tt.Series))}}Co.type=H.waterfall,Co.mark=LO,Co.transformerConstructor=fD;const bit=()=>{zh(),qr(),ait(),Yr(),In(),Bn(),D.registerSeries(Co.type,Co)},fu=`${bt}_BOX_PLOT_OUTLIER_VALUE`;var ae;(function(s){s.OUTLIER="outlier",s.MAX="max",s.MIN="min",s.MEDIAN="median",s.Q1="q1",s.Q3="q3",s.SERIES_FIELD="seriesField"})(ae||(ae={}));const xit=(s,t)=>{const e=[],{outliersField:i,dimensionField:n}=t;return(s[0].latestData||[]).forEach(r=>{let a=r[i];G(a)||(a=[a]),e.push(...a.map(o=>{const l={[fu]:o};return n.forEach(h=>{l[h]=r[h]}),l}))}),e};class Sit extends yn{constructor(){super(...arguments),this.getContentKey=t=>e=>{if(this.isOutlierMark(e))return t===ae.OUTLIER?this.series.getOutliersField():t===ae.SERIES_FIELD?this.series.getSeriesField():null;switch(t){case ae.MIN:return this.series.getMinField();case ae.MAX:return this.series.getMaxField();case ae.MEDIAN:return this.series.getMedianField();case ae.Q1:return this.series.getQ1Field();case ae.Q3:return this.series.getQ3Field();case ae.SERIES_FIELD:return this.series.getSeriesField()}return null},this.getContentValue=t=>e=>{if(this.isOutlierMark(e))return t===ae.OUTLIER?e[fu]:t===ae.SERIES_FIELD?e[this.series.getSeriesField()]:null;switch(t){case ae.MIN:return e[this.series.getMinField()];case ae.MAX:return e[this.series.getMaxField()];case ae.MEDIAN:return e[this.series.getMedianField()];case ae.Q1:return e[this.series.getQ1Field()];case ae.Q3:return e[this.series.getQ3Field()];case ae.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=>E(t[fu])}getDefaultTooltipPattern(t){return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.getContentKey(ae.OUTLIER),value:this.getContentValue(ae.OUTLIER),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.getOutlierFillColor,shapeStroke:this.getOutlierFillColor,shapeHollow:!1},{key:this.getContentKey(ae.MAX),value:this.getContentValue(ae.MAX),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.Q3),value:this.getContentValue(ae.Q3),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.MEDIAN),value:this.getContentValue(ae.MEDIAN),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.Q1),value:this.getContentValue(ae.Q1),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.MIN),value:this.getContentValue(ae.MIN),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.SERIES_FIELD),value:this.getContentValue(ae.SERIES_FIELD),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]}}}class _u extends Oi{constructor(){super(...arguments),this.type=_u.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(),n=this.getProductId(),r=e==="bar"?"barBoxplot":"boxplot",a=this.getStyle("direction");this._product=i.glyph(r,t??i.rootMark).id(n).configureGlyph({direction:a}),this._compiledProductId=n}}_u.type="boxPlot";const Ait=()=>{D.registerMark(_u.type,_u),hK(),pK()};class tl extends us{constructor(){super(...arguments),this.type=H.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,n,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=(n=a.shaftShape)!==null&&n!==void 0?n:"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(tl.mark.boxPlot,{isSeriesMark:!0,progressive:t}),this._outlierMark=this._createMark(tl.mark.outlier,{progressive:t,key:Ji,dataView:this._outlierDataView.getDataView(),dataProductId:this._outlierDataView.getProductId()})}initMarkStyle(){var t,e,i,n,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,lt.STATE_NORMAL,tt.Series)}const o=this._outlierMark;o&&this.setMarkStyle(o,{fill:(n=(i=this._outliersStyle)===null||i===void 0?void 0:i.fill)!==null&&n!==void 0?n:this.getColorAttribute(),size:nt((r=this._outliersStyle)===null||r===void 0?void 0:r.size)?this._outliersStyle.size:10,symbolType:"circle"},lt.STATE_NORMAL,tt.Series)}initBoxPlotMarkStyle(){var t,e;const i=this._boxPlotMark,n=this._direction==="horizontal"?this._xAxisHelper:this._yAxisHelper;if(i&&n){const{dataToPosition:a}=n,o=(t=n==null?void 0:n.getScale)===null||t===void 0?void 0:t.call(n,0);this.setMarkStyle(i,{min:l=>Xt(a(this.getDatumPositionValues(l,this._minField),{bandPosition:this._bandPosition}),o),q1:l=>Xt(a(this.getDatumPositionValues(l,this._q1Field),{bandPosition:this._bandPosition}),o),median:l=>Xt(a(this.getDatumPositionValues(l,this._medianField),{bandPosition:this._bandPosition}),o),q3:l=>Xt(a(this.getDatumPositionValues(l,this._q3Field),{bandPosition:this._bandPosition}),o),max:l=>Xt(a(this.getDatumPositionValues(l,this._maxField),{bandPosition:this._bandPosition}),o)},lt.STATE_NORMAL,tt.Series)}const r=this._outlierMark;if(r&&n){const{dataToPosition:a}=n,o=(e=n==null?void 0:n.getScale)===null||e===void 0?void 0:e.call(n,0),l=this._direction==="horizontal"?{y:this.dataToPositionY.bind(this),x:h=>Xt(a(this.getDatumPositionValues(h,fu),{bandPosition:this._bandPosition}),o)}:{x:this.dataToPositionX.bind(this),y:h=>Xt(a(this.getDatumPositionValues(h,fu),{bandPosition:this._bandPosition}),o)};this.setMarkStyle(r,l,lt.STATE_NORMAL,tt.Series)}}initData(){if(super.initData(),!this._data)return;Mt(this._dataSet,"foldOutlierData",xit),Mt(this._dataSet,"addVChartProperty",Fh);const t=new $t(this._dataSet,{name:`${this.type}_outlier_${this.id}_data`});t.parse([this.getViewData()],{type:"dataview"}),t.name=`${bt}_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:vh.bind(this),call:Jo}},!1),this._outlierDataView=new ar(this._option,t)}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=U({},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,n,r,a,o;const l=to(this);if(this._boxPlotMark){const h=this._initAnimationSpec((t=D.getAnimationInKey("scaleInOut"))===null||t===void 0?void 0:t()),d=this._initAnimationSpec(Wt("boxPlot",this._spec,this._markAttributeContext));this._boxPlotMark.setAnimationConfig(Ht(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:(n=this._spec.animationEnter)===null||n===void 0?void 0:n.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(Ht((o=D.getAnimationInKey("scaleInOut"))===null||o===void 0?void 0:o(),h,l))}}initTooltip(){this._tooltipHelper=new Sit(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]}}tl.type=H.boxPlot,tl.mark=OO;const kit=()=>{Ait(),Kr(),f0(),In(),Bn(),D.registerSeries(tl.type,tl)};class bh extends Oi{getTextType(){return this._textType}constructor(t,e){super(t,e),this.type=bh.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})}}bh.type="text";const Ln=()=>{D.registerMark(bh.type,bh),QL(),sK()};function OP(s,t,e,i,n,r,a,o,l){s.setMarkStyle(t,{textAlign:h=>{if(l()==="vertical")return"center";const d=n(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"}}),s.setMarkStyle(t,{x:h=>{const d=l(),c=n(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",tt.Series)}class Tit extends yn{getDefaultTooltipPattern(t){return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:e=>this.series.getSpec().direction==="horizontal"?e[this.series.getSpec().xField[0]]+"-"+e[this.series.getSpec().xField[1]]:e[this.series.getSpec().yField[0]]+"-"+e[this.series.getSpec().yField[1]],hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]}}}const vD=s=>({type:"growCenterIn",options:{direction:s.direction==="horizontal"?"x":"y"}}),Mit={type:"fadeIn"},DP=s=>({type:"growCenterOut",options:{direction:s.direction==="horizontal"?"x":"y"}});function wit(s,t){return t==="fadeIn"?Mit:vD(s)}const Cit=()=>{D.registerAnimation("rangeColumn",(s,t)=>({appear:wit(s,t),enter:vD(s),exit:DP(s),disappear:DP(s)}))};class yD extends A0{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 Es extends Ls{constructor(){super(...arguments),this.type=H.rangeColumn,this._barMarkType="rect",this._barName=H.bar,this.transformerConstructor=yD}initMark(){var t,e,i,n,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(Es.mark.bar,{morph:Xr(this._spec,Es.mark.bar.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:(e=this._spec.bar)===null||e===void 0?void 0:e.customShape,stateSort:(i=this._spec.bar)===null||i===void 0?void 0:i.stateSort}),((n=this._spec.label)===null||n===void 0?void 0:n.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(Es.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(Es.mark.maxLabel,{markSpec:(d=this._spec.label)===null||d===void 0?void 0:d.maxLabel})))}initMarkStyle(){var t,e,i,n,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 y=this._spec.direction==="horizontal"?m[this._spec.xField[0]]:m[this._spec.yField[0]];return u!=null&&u.formatMethod?u.formatMethod(y,m):y}});const f=(n=u==null?void 0:u.position)!==null&&n!==void 0?n:"end",_=(r=u==null?void 0:u.offset)!==null&&r!==void 0?r:this._direction==="vertical"?-20:-25;OP(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 p=this._maxLabelMark,g=(a=this._spec.label)===null||a===void 0?void 0:a.maxLabel;if(p){this.setMarkStyle(p,{fill:(l=(o=g==null?void 0:g.style)===null||o===void 0?void 0:o.fill)!==null&&l!==void 0?l:this.getColorAttribute(),text:m=>{const y=this._spec.direction==="horizontal"?m[this._spec.xField[1]]:m[this._spec.yField[1]];return g!=null&&g.formatMethod?g.formatMethod(y,m):y}});const f=(h=g==null?void 0:g.position)!==null&&h!==void 0?h:"start",_=(d=g==null?void 0:g.offset)!==null&&d!==void 0?d:this._direction==="vertical"?-20:-25;OP(this,p,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,n;return this._spec.direction==="horizontal"?(i=e[this._spec.xField[0]],n=e[this._spec.xField[1]]):(i=e[this._spec.yField[0]],n=e[this._spec.yField[1]]),i+"-"+n},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,n,r;const a=to(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(Ht((i=D.getAnimationInKey("rangeColumn"))===null||i===void 0?void 0:i({direction:this.direction},o),Wt("bar",this._spec,this._markAttributeContext),a)),this._minLabelMark&&this._minLabelMark.setAnimationConfig(Ht((n=D.getAnimationInKey("fadeInOut"))===null||n===void 0?void 0:n(),Wt("label",this._spec,this._markAttributeContext),a)),this._maxLabelMark&&this._maxLabelMark.setAnimationConfig(Ht((r=D.getAnimationInKey("fadeInOut"))===null||r===void 0?void 0:r(),Wt("label",this._spec,this._markAttributeContext),a))}initTooltip(){this._tooltipHelper=new Tit(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)}}Es.type=H.rangeColumn,Es.mark=VO,Es.transformerConstructor=yD;const Pit=()=>{qr(),Ln(),Cit(),Yr(),In(),Bn(),D.registerSeries(Es.type,Es)};class R_ extends Es{constructor(){super(...arguments),this.type=H.rangeColumn3d,this._barMarkType="rect3d",this._barName=H.bar3d}}R_.type=H.rangeColumn3d,R_.mark=WO;const Eit=()=>{I1(),In(),Bn(),D.registerSeries(R_.type,R_)};class Rit extends yn{getDefaultTooltipPattern(t,e){switch(t){case"mark":case"group":return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this._getDimensionData,hasShape:!1},n=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{a.type==="rangeArea"&&n.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:o=>this.series.getSpec().direction==="horizontal"?o[this.series.getSpec().xField[0]]+"-"+o[this.series.getSpec().xField[1]]:o[this.series.getSpec().yField[0]]+"-"+o[this.series.getSpec().yField[1]],hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:n}}}return null}}class xh extends Pr{constructor(){super(...arguments),this.type=H.rangeArea}initMark(){var t;const{customShape:e,stateSort:i}=(t=this._spec.area)!==null&&t!==void 0?t:{};this._areaMark=this._createMark(xh.mark.area,{defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:e,stateSort:i})}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",tt.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",tt.Series),this.setMarkStyle(t,{stroke:!1},"normal",tt.Series))}initTooltip(){this._tooltipHelper=new Rit(this),this._areaMark&&this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark)}_isFieldAllValid(){const t=this.getViewDataStatistics(),e=this.fieldY;return!!(t&&t.latestData&&e.length)&&e.every(i=>t.latestData[i]&&t.latestData[i].allValid)}}xh.type=H.rangeArea,xh.mark=$O;const Bit=()=>{S0(),In(),Bn(),D.registerSeries(xh.type,xh)};class Zu extends Qo{constructor(){super(...arguments),this.coordinate="polar",this._outerRadius=Zc,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=E(t)?V(t):[],this._angleField}getRadiusField(){return this._radiusField}setRadiusField(t){return this._radiusField=E(t)?V(t):[],this._radiusField}get innerRadiusField(){return this._innerRadiusField}setInnerRadiusField(t){return this._innerRadiusField=V(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.angleAxisHelper.dataToPosition(V(t)),n=this.radiusAxisHelper.dataToPosition(V(e));return this.angleAxisHelper.coordToPoint({angle:i,radius:n})}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(n=>{const r={key:n,operations:[]};ie(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(n=>{const r={key:n,operations:[]};ie(this.angleAxisHelper.getScale(0).type)?r.operations=["max","min"]:r.operations=["values"],i.push(r)}),i}setAttrFromSpec(){super.setAttrFromSpec(),E(this._spec.outerRadius)&&(this._outerRadius=this._spec.outerRadius),E(this._spec.radius)&&(this._outerRadius=this._spec.radius),E(this._spec.innerRadius)&&(this._innerRadius=this._spec.innerRadius),E(this._spec.sortDataByAxis)&&(this._sortDataByAxis=this._spec.sortDataByAxis===!0)}onRadiusAxisHelperUpdate(){this.onMarkPositionUpdate()}onAngleAxisHelperUpdate(){this.onMarkPositionUpdate()}afterInitMark(){super.afterInitMark()}_computeLayoutRadius(){const{width:t,height:e}=this._region.getLayoutRect();return Math.min(t/2,e/2)}initEvent(){super.initEvent(),this.sortDataByAxis&&this.event.on(ft.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&&$2(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 Iit(s){return ch(s)?Number.parseFloat(s):0}const Lit=(s,t)=>{const e=s.map(T=>Object.assign({},T));if(!e||e.length===0)return e;const{angleField:i,startAngle:n,endAngle:r,minAngle:a,asStartAngle:o,asEndAngle:l,asMiddleAngle:h,asRadian:d,asRatio:c,asQuadrant:u,asK:p}=t,g=(T,k,M)=>{T[o]=k,T[l]=k+M,T[h]=k+M/2,T[d]=M,T[u]=w7(k+M/2)};let f=0,_=-1/0;for(let T=0;TNumber(T[i])),y=r-n;let v=n,b=y,x=0;const A=L7(m);if(e.forEach((T,k)=>{const M=T[Pv],w=f?M/f:0;let C=w*y;C{g(k,n+M*T,T)})}else{const T=b/x;v=n,e.forEach(k=>{const M=k[d]===a?a:k[Pv]*T;g(k,v,M),v+=M})}return f!==0&&(e[e.length-1][l]=r),e};function T0(s,t,e){return(i,n,r)=>t?s.growField==="radius"?{overall:0}:{overall:s.growFrom(i,n,e)}:{overall:!1}}const FP=s=>({type:s.growField==="radius"?"growRadiusIn":"growAngleIn",options:T0(s,!0,oi.appear)}),Oit={type:"fadeIn"},bD=s=>({type:s.growField==="radius"?"growRadiusIn":"growAngleIn",easing:"linear",options:T0(s,!0,oi.enter)}),xD=s=>({type:s.growField==="radius"?"growRadiusOut":"growAngleOut",easing:"linear",options:T0(s,!0,oi.exit)}),SD=s=>({type:s.growField==="radius"?"growRadiusOut":"growAngleOut",options:T0(s,!0,oi.exit)});function AD(s,t){if(t===!1)return{};switch(t){case"fadeIn":return Oit;case"growRadius":return FP(Object.assign(Object.assign({},s),{growField:"radius"}));default:return FP(Object.assign(Object.assign({},s),{growField:"angle"}))}}const Dit=()=>{D.registerAnimation("pie",(s,t)=>({appear:AD(s,t),enter:bD(s),exit:xD(s),disappear:SD(s)}))},Fit=()=>{D.registerAnimation("pie3d",(s,t)=>({appear:AD(s,t),enter:bD(s),exit:xD(s),disappear:SD(s)}))};function zit(s,t){var e,i,n,r;const a=(i=(e=t.options)===null||e===void 0?void 0:e.distance)!==null&&i!==void 0?i:10,o=W(t.duration)?t.duration/2:1e3,l=(n=t.options.easing)!==null&&n!==void 0?n:"cubicOut";return{oneByOne:t.oneByOne,loop:(r=t.loop)!==null&&r!==void 0&&r,timeSlices:[{duration:o,effects:{easing:l,channel:{x:{from:h=>s.getAttribute("x",h),to:h=>s.getAttribute("x",h)+pa({angle:h[wr],radius:a}).x},y:{from:h=>s.getAttribute("y",h),to:h=>s.getAttribute("y",h)+pa({angle:h[wr],radius:a}).y}}}},{duration:o,effects:{easing:l,channel:{x:{to:h=>s.getAttribute("x",h),from:h=>s.getAttribute("x",h)+pa({angle:h[wr],radius:a}).x},y:{to:h=>s.getAttribute("y",h),from:h=>s.getAttribute("y",h)+pa({angle:h[wr],radius:a}).y}}}}]}}class kD extends Oi{constructor(t,e){super(t,e),this.type=Sh.type,this._unCompileChannel={centerOffset:!0,radiusOffset:!0},this.computeOuterRadius=(i,n,r="normal",a,o)=>{var l;return o+((l=this.getAttribute("radiusOffset",n,r,a))!==null&&l!==void 0?l:0)},this.computeCenter=(i,n,r="normal",a,o)=>o+pa({angle:n[wr],radius:this.getAttribute("centerOffset",n,r,a)})[i],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 Sh extends kD{constructor(){super(...arguments),this.type=Sh.type}}Sh.type="arc";const dl=()=>{KX(),C2(),D.registerMark(Sh.type,Sh)};class H1 extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie")}_mergeThemeToSpec(t,e){const i=this._theme;let n=t;if(this._shouldMergeThemeToSpec()){const r=this._getDefaultSpecFromChart(e);n=vt({},this._theme,r,t);const a=(o,l)=>vt({},o==="inside"?this._theme.innerLabel:this._theme.outerLabel,l);G(n.label)?n.label=n.label.map(o=>a(o.position,o)):n.label=a(n.label.position,n.label)}return{spec:n,theme:i}}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{centerX:n,centerY:r}=t;return E(n)&&(i.centerX=n),E(r)&&(i.centerY=r),Object.keys(i).length>0?i:void 0}}class Ah extends Zu{constructor(){super(...arguments),this.transformerConstructor=H1,this._pieMarkName="pie",this._pieMarkType="arc",this._startAngle=e0,this._endAngle=i1,this._pieMark=null,this._labelMark=null,this._labelLineMark=null,this.dataToCentralPosition=t=>{const e=t[wr];if(P(e))return null;const i=this.computeDatumRadius(t),n=this.computeDatumInnerRadius(t),r=this.computeCenter(t),a=pa({angle:e,radius:(i+n)/2});return{x:r.x+a.x,y:r.y+a.y}}}getCenter(){var t,e,i,n;const{width:r,height:a}=this._region.getLayoutRect();return{x:(e=(t=this._spec)===null||t===void 0?void 0:t.centerX)!==null&&e!==void 0?e:r/2,y:(n=(i=this._spec)===null||i===void 0?void 0:i.centerY)!==null&&n!==void 0?n:a/2}}_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;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 i=C7(E(this._spec.startAngle)?Qt(this._spec.startAngle):this._startAngle,E(this._spec.endAngle)?Qt(this._spec.endAngle):this._endAngle);this._startAngle=i.startAngle,this._endAngle=i.endAngle,this._padAngle=E(this._spec.padAngle)?Qt(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=[]}initData(){super.initData();const t=this.getViewData();if(!t)return;Mt(this._dataSet,"pie",Lit),t.transform({type:"pie",options:{angleField:this._angleField[0],startAngle:this._startAngle,endAngle:this._endAngle,minAngle:E(this._spec.minAngle)?Qt(this._spec.minAngle):0,asStartAngle:Qw,asEndAngle:tC,asRatio:D7,asMiddleAngle:wr,asRadian:H7,asQuadrant:z7,asK:F7}},!1);const e=new $t(this._dataSet,{name:`${bt}_series_${this.id}_viewDataLabel`});e.parse([this.getViewData()],{type:"dataview"}),this._viewDataLabel=new ar(this._option,e)}initMark(){var t,e;this._pieMark=this._createMark(Object.assign(Object.assign({},Ah.mark.pie),{name:this._pieMarkName,type:this._pieMarkType}),{morph:Xr(this._spec,this._pieMarkName),defaultMorphElementKey:this._seriesField,key:Is,groupKey:this._seriesField,skipBeforeLayouted:!0,isSeriesMark:!0,customShape:(t=this._spec.pie)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.pie)===null||e===void 0?void 0:e.stateSort})}startAngleScale(t){return lg(Qw)(t)}endAngleScale(t){return lg(tC)(t)}initMarkStyle(){const t=this._pieMark;t&&this.setMarkStyle(t,{x:()=>this.getCenter().x,y:()=>this.getCenter().y,fill:this.getColorAttribute(),outerRadius:FC(this._outerRadius)?this._outerRadius:()=>this.computeLayoutRadius()*this._outerRadius,innerRadius:FC(this._innerRadius)?this._innerRadius:()=>this.computeLayoutRadius()*this._innerRadius,cornerRadius:()=>this.computeLayoutRadius()*this._cornerRadius,startAngle:e=>this.startAngleScale(e),endAngle:e=>this.endAngleScale(e),padAngle:this._padAngle,centerOffset:this._centerOffset},"normal",tt.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 n=this.getSpec()[t.name];if(n)for(const r in n.state||{})this.setMarkStyle(t,this.generateRadiusStyle(n.state[r]),r,tt.User_Mark)}}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{visible:lg(O7).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(ft.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}computeLayoutRadius(){const{width:t,height:e}=this._region.getLayoutRect();return Math.min(t/2,e/2)}computeCenter(t){return{x:this._pieMark.getAttribute("x",t,"normal"),y:this._pieMark.getAttribute("y",t,"normal")}}getRadius(t="normal"){var e,i,n,r,a,o,l;const h=t==="normal"?(n=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.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,n,r,a,o,l;const h=t==="normal"?(n=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.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}).centerX=!0,i.centerX=!0,i.centerY=!0,i.centerOffset=!0,i.radius=!0,i.innerRadius=!0,i.cornerRadius=!0,i.startAngle=!0,i.endAngle=!0,i.padAngle=!0;const{centerX:n,centerY:r,centerOffset:a,radius:o,innerRadius:l,cornerRadius:h,startAngle:d,endAngle:c,padAngle:u}=e,p=super._compareSpec(t,e,i);return(t=t??{}).centerY===r&&t.centerX===n&&t.centerOffset===a&&t.radius===o&&t.innerRadius===l&&t.cornerRadius===h&&t.startAngle===d&&t.endAngle===c&&t.padAngle===u||(p.reRender=!0,p.change=!0),p}computeDatumInnerRadius(t,e){return this.computeLayoutRadius()*this.getInnerRadius(e)+this._centerOffset}dataToPosition(t,e){const i=t[wr];if(P(i)||e&&!this.isDatumInViewData(t))return null;const n=this.computeDatumRadius(t),r=this.computeCenter(t),a=pa({angle:i,radius:n});return{x:r.x+a.x,y:r.y+a.y}}initAnimation(){var t,e;const i={growFrom:(r,a,o)=>{var l;if(o===oi.appear)return this._startAngle;if(o===oi.disappear)return this._endAngle;const h=[oi.disappear,oi.exit],d=a.mark.elements,c=r,u=c==null?void 0:c[Ji];if(d.find(g=>{var f;return((f=g.data[0])===null||f===void 0?void 0:f[Ji]){var f;return((f=g.data[0])===null||f===void 0?void 0:f[Ji])>u})===void 0)return this._endAngle;const p=[...d].reverse().find(g=>{var f;return((f=g.data[0])===null||f===void 0?void 0:f[Ji]){dl(),Dit(),D.registerSeries(Gx.type,Gx)};class mu extends kD{constructor(){super(...arguments),this.type=mu.type,this._support3d=!0}}mu.type="arc3d";const TD=()=>{C2(),qX(),D.registerMark(mu.type,mu)};class MD extends H1{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie3d")}}class Wd extends Ah{constructor(){super(...arguments),this.type=H.pie3d,this._pieMarkName="pie3d",this._pieMarkType="arc3d",this.transformerConstructor=MD}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",tt.Series)}initLabelMarkStyle(t,e={}){if(!t)return;super.initLabelMarkStyle(t);const i={};t.setSupport3d(!0),i.beta=this._angle3d,i.anchor3d=n=>{const{x:r,y:a}=this.getCenter();return[r,a]},i.angle=n=>{const r=n[wr];return e.position==="inside"?sh(r):0},this.setMarkStyle(t,Object.assign(Object.assign({},i),{z:100}),void 0,tt.Mark)}}Wd.type=H.pie3d,Wd.mark=TO,Wd.transformerConstructor=MD;const jit=()=>{Fit(),TD(),D.registerSeries(Wd.type,Wd)},zP=s=>{const t=s.growField==="angle"?0:s.innerRadius;return s.growField==="angle"?{type:s.growField==="angle"?"growAngleIn":"growRadiusIn"}:{channel:{innerRadius:{from:t,to:(e,i)=>i.getGraphicAttribute("innerRadius")},outerRadius:{from:t,to:(e,i)=>i.getGraphicAttribute("outerRadius")}}}},Vit={type:"fadeIn"},Wit=s=>({type:s.growField==="angle"?"growAngleIn":"growRadiusIn"}),Git=s=>({type:s.growField==="angle"?"growAngleOut":"growRadiusOut"}),Nit=s=>({type:s.growField==="angle"?"growAngleOut":"growRadiusOut"});function Uit(s,t){if(t===!1)return{};switch(t){case"fadeIn":return Vit;case"growAngle":return zP(Object.assign(Object.assign({},s),{growField:"angle"}));default:return zP(Object.assign(Object.assign({},s),{growField:"radius"}))}}const $it=()=>{D.registerAnimation("rose",(s,t)=>({appear:Uit(s,t),enter:Wit(s),exit:Git(s),disappear:Nit(s)}))};class wD extends Zu{getStackGroupFields(){return this._angleField}getStackValueField(){return V(this._spec.valueField)[0]||V(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(Xe),this.setInnerRadiusField(En)}setValueFieldToPercent(){this.setRadiusField($a),this.setInnerRadiusField(qo)}getDimensionField(){return this._specAngleField}getMeasureField(){return this._specRadiusField}getDefaultShapeType(){return"square"}}class CD extends bn{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){this._addMarkLabelSpec(t,"rose")}}const HP=(s,t)=>{var e,i,n,r,a,o;const l=(e=s.type)!==null&&e!==void 0?e:s.orient==="angle"?"band":"linear",h=`${Y.polarAxis}-${l}`,d=(i=s.startAngle)!==null&&i!==void 0?i:t.startAngle,c=(n=s.endAngle)!==null&&n!==void 0?n:t.endAngle;return{axisType:l,componentName:h,startAngle:d??n1,endAngle:c??(E(d)?d+360:OL),center:t.center,outerRadius:(o=(a=(r=s.radius)!==null&&r!==void 0?r:t.outerRadius)!==null&&a!==void 0?a:t.radius)!==null&&o!==void 0?o:Zc}};var jP=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{if(!hP(a))return;const{axisType:l,componentName:h,startAngle:d,endAngle:c,center:u,outerRadius:p}=HP(a,t);a.center=u,a.startAngle=d,a.endAngle=c,a.outerRadius=p,a.type=l;const g={spec:a,specPath:[this.specKey,o],specInfoPath:["component",this.specKey,o],type:h};i.push(g),a.orient==="radius"?r.push(g):n=o}),r.forEach(a=>{a.angleAxisIndex=n}),i}static createComponent(t,e){const{spec:i}=t,n=jP(t,["spec"]),r=D.getComponentInKey(n.type);return r?new r(i,Object.assign(Object.assign({},e),n)):(e.onError(`Component ${n.type} not found`),null)}constructor(t,e){super(t,e),this.type=Y.polarAxis,this.name=Y.polarAxis,this._defaultBandPosition=0,this._defaultBandInnerPadding=0,this._defaultBandOuterPadding=0,this.layoutType="absolute",this.layoutZIndex=re.Axis,this._tick=void 0,this._center=null,this._startAngle=e0,this._endAngle=i1,this._orient="radius",this._groupScales=[],this.effect={scaleUpdate:i=>{this.computeData(i==null?void 0:i.value),Pe(this._regions,n=>{this.getOrient()==="radius"?n.radiusAxisHelper=this.axisHelper():n.angleAxisHelper=this.axisHelper()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{var n;const r=(n=this.getRegions())===null||n===void 0?void 0:n[0];return r?r.getLayoutStartPoint():i},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=Qt(this._spec.startAngle),this._endAngle=Qt(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:ru(this._spec),getRadius:()=>this.getOuterRadius(),inside:this._spec.inside})}afterCompile(){var t;const e=(t=this._axisMark)===null||t===void 0?void 0:t.getProduct();e&&e.addEventListener(pt.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateAxisContainerEvent(e.getGroupGraphicItem())})}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,n;let r;return r=t>0?(n=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||n===void 0?void 0:n[t]:this.getOrient()==="radius"?e.getRadiusField():e.getAngleField(),r}updateSeriesScale(){Pe(this._regions,t=>{this.getOrient()==="radius"?(t.setRadiusScale(this._scale),t.radiusAxisHelper=this.axisHelper()):(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 ie(this._scale.type)?e:[e[0]]}initGroupScales(){}axisHelper(){return{isContinuous:ie(this._scale.type),dataToPosition:this.dataToPosition.bind(this),coordToPoint:this.coordToPoint.bind(this),pointToCoord:this.pointToCoord.bind(this),center:this.getCenter.bind(this),getScale:t=>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=t.angle,{x:i,y:n}=this.getCenter(),r=pa({angle:e,radius:t.radius});return{x:r.x+i,y:r.y+n}}pointToCoord(t){const{x:e,y:i}=this.getCenter();let n=t.x-e,r=t.y-i;const a=this._startAngle,o=this._endAngle,l=Math.sqrt(n*n+r*r);n/=l,r/=l;let h=Math.atan2(r,n);if(ho)for(;h>=o;)h-=2*Math.PI;return{radius:l,angle:h}}getCenter(){var t,e;return{x:((t=this._center)===null||t===void 0?void 0:t.x)||this.getRefLayoutRect().width/2,y:((e=this._center)===null||e===void 0?void 0:e.y)||this.getRefLayoutRect().height/2}}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(n=>mh(n.value,this._getNormalizedValue([n.value],t)))]:[]}_getStartValue(){return this.getOrient()==="radius"?this.computeLayoutInnerRadius():this._startAngle}_layoutAngleAxis(){const t=this.getCenter(),e=this.computeLayoutOuterRadius(),i=this.computeLayoutInnerRadius(),n=this._endAngle-this._startAngle,r=this.getLabelItems(n),a=Object.assign(Object.assign({},this.getLayoutStartPoint()),{inside:this._spec.inside,center:t,radius:e,innerRadius:i,startAngle:this._startAngle,endAngle:this._endAngle}),o=Object.assign(Object.assign({},a),{title:{text:this._spec.title.text||this._dataFieldText},items:r,orient:"angle"});this._spec.grid.visible&&(o.grid=Object.assign({type:"line",smoothLink:!0,items:r[0]},a)),this._update(o)}_layoutRadiusAxis(){var t,e,i;const n=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=Ce.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:n,closed:!0,sides:(i=this._getRelatedAngleAxis())===null||i===void 0?void 0:i.getScale().domain().length,startAngle:this._startAngle,endAngle:this._endAngle},c)),this._update(u)}_getRelatedAngleAxis(){const t=this._option.angleAxisIndex;if(E(t))return this._option.getComponentByIndex(this.specKey,t)}computeLayoutOuterRadius(){var t;const e=(t=this._spec.outerRadius)!==null&&t!==void 0?t:this._spec.radius,i=e??this.getRefSeriesRadius().outerRadius,{width:n,height:r}=this.getRefLayoutRect();return Math.min(n,r)/2*i}computeLayoutInnerRadius(){var t;const e=(t=this._spec.innerRadius)!==null&&t!==void 0?t:this.getRefSeriesRadius().innerRadius,{width:i,height:n}=this.getRefLayoutRect();return Math.min(i,n)/2*e}getRefLayoutRect(){return this.getRegions()[0].getLayoutRect()}getRefSeriesRadius(){let t=Zc,e=0;const i=this.getChart().getSpec();return Pe(this.getRegions(),n=>{const r=n;if(Wtt(r.type)){const{outerRadius:a=i.outerRadius,innerRadius:o=i.innerRadius}=r;W(a)&&(t=a),W(o)&&(e=o)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),{outerRadius:t,innerRadius:e}}_update(t){const{grid:e}=t,i=jP(t,["grid"]);this._axisMark.getProduct().encode(vt({},this._axisStyle,i)),this._gridMark&&this._gridMark.getProduct().encode(vt({},this._gridStyle,e))}invert(t){var e;if(this.getOrient()==="angle"&&this._scale.type==="band"){const i=this._scale.range(),n=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]))%n-Math.abs(i[0]);return this._scale.invert(a)}return this._scale.invert((t+r)%n)}return this._scale.invert(t)}}B_.type=Y.polarAxis,B_.specKey="axes";class Gd extends B_{constructor(){super(...arguments),this.type=Y.polarLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new Fr}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}}Gd.type=Y.polarLinearAxis,Gd.specKey="axes",ei(Gd,x0);const Hh=()=>{hl(),D.registerComponent(Gd.type,Gd)};class Nd extends B_{constructor(){super(...arguments),this.type=Y.polarBandAxis,this._scale=new ol}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)}transformScaleDomain(){}}Nd.type=Y.polarBandAxis,Nd.specKey="axes",ei(Nd,Z2);const Ju=()=>{hl(),D.registerComponent(Nd.type,Nd)};class La extends wD{constructor(){super(...arguments),this.type=H.rose,this.transformerConstructor=CD,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(La.mark.rose,{morph:Xr(this._spec,La.mark.rose.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:(t=this._spec.rose)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.rose)===null||e===void 0?void 0:e.stateSort})}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=>Xt(this.radiusAxisHelper.dataToPosition([e[this._radiusField[0]]]),this.radiusAxisHelper.getScale(0)),innerRadius:e=>{var i;if(!this.getStack())return 0;const n=Xt(this.radiusAxisHelper.dataToPosition([e[this._innerRadiusField[0]]]),this.radiusAxisHelper.getScale(0));return n<=Number.MIN_VALUE?this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0):n}})}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 n=(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(Ht((i=D.getAnimationInKey("rose"))===null||i===void 0?void 0:i(r,n),Wt("rose",this._spec,this._markAttributeContext)))}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._roseMark]}}La.type=H.rose,La.mark=MO,La.transformerConstructor=CD;const Yit=()=>{D.registerSeries(La.type,La),dl(),$it(),Ju(),Hh()};class Xit extends mn{constructor(t,e,i,n,r){super(t,e,i,n,r);const a=this.params.pointToCoord,o=this.params.coordToPoint;N(a)&&N(o)||(this.valid=!1),this._pointToCoord=a,this._coordToPoint=o}getEndProps(){return this.valid===!1?{}:this._coordToPoint({angle:this._toAngle,radius:this._toRadius})}onBind(){const{angle:t,radius:e}=this._pointToCoord(this.from);W(t*e)||(this.valid=!1),this._fromAngle=t,this._fromRadius=e;const{angle:i,radius:n}=this._pointToCoord(this.to);W(i*n)||(this.valid=!1),this._toAngle=i,this._toRadius=n}onUpdate(t,e,i){if(this.valid!==!1)if(t){const{x:n,y:r}=this.getEndProps();i.x=n,i.y=r}else{const{x:n,y:r}=this._coordToPoint({angle:this._fromAngle+(this._toAngle-this._fromAngle)*e,radius:this._fromRadius+(this._toRadius-this._fromRadius)*e});i.x=n,i.y=r}}}class Kit extends bB{constructor(t,e,i,n,r){super(t,e,i,n,r);const a=this.params.pointToCoord,o=this.params.coordToPoint;this._pointToCoord=a,this._coordToPoint=o}onUpdate(t,e,i){this.points=this.points.map((n,r)=>{const a=this.polarPointInterpolation(this.interpolatePoints[r][0],this.interpolatePoints[r][1],e);return a.context=n.context,a}),i.points=this.points}polarPointInterpolation(t,e,i){const n=this._pointToCoord(t),r=this._pointToCoord({x:t.x1,y:t.y1}),a=fo(n.angle),o=fo(r.angle),l=this._pointToCoord(e),h=this._pointToCoord({x:e.x1,y:e.y1}),d=fo(l.angle),c=fo(h.angle),u=a+(d-a)*i,p=n.radius+(l.radius-n.radius)*i,g=o+(c-o)*i,f=r.radius+(h.radius-r.radius)*i,{x:_,y:m}=this._coordToPoint({angle:u,radius:p}),{x:y,y:v}=this._coordToPoint({angle:g,radius:f}),b=new Oe(_,m,y,v);return b.defined=e.defined,b}}const PD=s=>({type:s==="in"?"fadeIn":"fadeOut"}),qit=(s,t)=>({type:t==="in"?"growPointsIn":"growPointsOut",options:()=>({center:s.center()})});function Gp(s,t,e){return t==="fadeIn"?PD(e):qit(s,e)}const Zit=(s,t)=>{const e=()=>{var a;return(a=s.center())===null||a===void 0?void 0:a.x},i=(a,o)=>o.getGraphicAttribute("x"),n=()=>{var a;return(a=s.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:n,to:r}}}:{channel:{x:{from:i,to:e},y:{from:r,to:n}}}};function VP(s,t,e){return t==="fadeIn"?PD(e):Zit(s,e)}const WP=(s,t)=>({custom:Gj,customParameters:(e,i)=>{var n;return{group:i.getGraphicItem(),startAngle:(n=s.startAngle)!==null&&n!==void 0?n:Math.PI/2,orient:"clockwise",center:s.center(),radius:s.radius(),animationType:t}}}),Jit=()=>{D.registerAnimation("radar",(s,t)=>({appear:t==="clipIn"?void 0:Gp(s,t,"in"),enter:Gp(s,t,"in"),exit:Gp(s,t,"out"),disappear:t==="clipIn"?void 0:Gp(s,t,"out"),update:[{options:{excludeChannels:["points","defined"]}},{channel:["points"],custom:Kit,customParameters:s,duration:va.update.duration,easing:va.update.easing}]})),D.registerAnimation("radarSymbol",(s,t)=>({appear:t==="clipIn"?void 0:VP(s,t,"in"),enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:t==="clipIn"?void 0:VP(s,t,"out"),update:[{options:{excludeChannels:["x","y"]}},{channel:["x","y"],custom:Xit,customParameters:s,duration:va.update.duration,easing:va.update.easing}]})),D.registerAnimation("radarGroup",(s,t)=>({appear:WP(s,"in"),disappear:WP(s,"out")})),Lh()};class ba extends wD{constructor(){super(...arguments),this.type=H.radar,this.transformerConstructor=Xu,this._sortDataByAxis=!1}initGroups(){}compile(){super.compile(),this.addOverlapCompile()}initMark(){var t,e,i,n;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=(n=this._spec.seriesMark)!==null&&n!==void 0?n:"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()}initAreaMark(t,e){var i,n;this._areaMark=this._createMark(ba.mark.area,{progressive:t,isSeriesMark:e,customShape:(i=this._spec.area)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.area)===null||n===void 0?void 0:n.stateSort})}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:X2,closePath:!0},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:e=>e.model===this},()=>{this.encodeDefined(t,"defined")}))}initTooltip(){super.initTooltip();const{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._areaMark&&(t.add(this._areaMark),e.add(this._areaMark)),this._symbolMark&&(i.add(this._symbolMark),e.add(this._symbolMark))}initAnimation(){var t,e,i,n;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:E(this._spec.startAngle)?Qt(this._spec.startAngle):e0,pointToCoord:o=>{var l;return(l=this.angleAxisHelper)===null||l===void 0?void 0:l.pointToCoord(o)},coordToPoint:o=>this.angleAxisHelper.coordToPoint(o)},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(Ht((n=D.getAnimationInKey("radarGroup"))===null||n===void 0?void 0:n(r,a),Wt("group",this._spec,this._markAttributeContext))),[[this._areaMark,"radar"],[this._lineMark,"radar"],[this._symbolMark,"radarSymbol"]].forEach(([o,l])=>{if(E(o)){const h=D.getAnimationInKey(l);o.setAnimationConfig(Ht(h==null?void 0:h(r,a),Wt(o.name,this._spec,this._markAttributeContext)))}})}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._areaMark,this._symbolMark,this._lineMark]}getSeriesStyle(t){return e=>{var i,n,r,a;let o=(n=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&n!==void 0?n: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"&&G(o)?o[0]:o}}}ba.type=H.radar,ba.mark=AO,ba.transformerConstructor=Xu,ei(ba,R1);const Qit=()=>{D.registerSeries(ba.type,ba),g1(),S0(),y0(),Kr(),Jit(),Ju(),Hh()};class tnt extends yn{updateTooltipSpec(){var t;super.updateTooltipSpec(),E((t=this.spec)===null||t===void 0?void 0:t.mark)&&(this.spec.mark.updateContent=(e,i,n)=>{const r=[],a=e.filter(o=>o.key==="children");return a.length>0&&a[0].value.forEach(o=>{let l=!0;for(const h in o)r.push({shapeType:"circle",hasShape:l,shapeColor:this.shapeColorCallback(i[0].datum[0]),shapeStroke:this.shapeStrokeCallback(i[0].datum[0]),key:h,value:o[h]+""}),l=!1}),e.concat(r)})}getDefaultTooltipPattern(t){return t==="mark"?{visible:!0,activeType:t,title:{key:"event info",value:"event info"},content:[{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:e=>e.type,value:e=>e.id},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"event_time",value:e=>Cs.getInstance().timeFormat("%Y%m%d",e.event_time)},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"action_type",value:e=>e.action_type},{shapeType:"square",hasShape:!0,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"children",value:e=>e.children}],updateContent:(e,i,n)=>{const r=[];return e[3].value.forEach(a=>{let o=!0;for(const l in a)r.push({shapeType:"circle",hasShape:o,shapeColor:this.shapeColorCallback(i[0].datum[0]),shapeStroke:this.shapeStrokeCallback(i[0].datum[0]),key:l,value:a[l]+""}),o=!1}),e.concat(r)}}:null}}const ent=(s,t)=>{var e;const i=!((e=s[0])===null||e===void 0)&&e.latestData?s[0].latestData:s||[],n=[];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=>{n.push(Object.assign({},a,l))})}),n},int={fill:"#bbb",fillOpacity:.2};class Wn extends us{constructor(){super(...arguments),this.type=H.dot}getSeriesGroupField(){return this._seriesField}setSeriesGroupField(t){E(t)&&(this._seriesGroupField=t)}getTitleField(){return this._titleField}setTitleField(t){E(t)&&(this._titleField=t)}getSubTitleField(){return this._subTitleField}setSubTitleField(t){E(t)&&(this._subTitleField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){E(t)&&(this._dotTypeField=t)}getHighLightSeriesGroup(){return this._highLightSeriesGroup}setHighLightSeriesGroup(t){E(t)&&(this._highLightSeriesGroup=t)}setGridBackground(t){E(t)&&(this._gridBackground=t)}initData(){var t;super.initData(),this._xDimensionStatisticsDomain=this.getRawData().latestData.map(e=>e[this._fieldY[0]]),Mt(this._option.dataSet,"objFlat",ent),Mt(this._option.dataSet,"copyDataView",h0),Rr(this._option.dataSet,"dataview",ym),(t=this.getViewData())===null||t===void 0||t.transform({type:"objFlat",options:"dots",level:Fs.dotObjFlat},!1)}setSeriesField(t){E(t)&&(this._seriesField=t,this.getMarksInType(["line","area"]).forEach(e=>{e.setFacet(this._seriesField)}))}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(vt(int,((t=this._spec.grid)===null||t===void 0?void 0:t.background)||{}))}initMark(){this._clipMark=this._createMark(Wn.mark.group),this._containerMark=this._createMark(Wn.mark.group,{parent:this._clipMark,dataView:this.getRawData()}),this._gridBackgroundMark=this._createMark(Wn.mark.gridBackground,{parent:this._containerMark,dataView:this.getRawData()}),this._gridMark=this._createMark(Wn.mark.grid,{parent:this._containerMark,dataView:this.getRawData()}),this._dotMark=this._createMark(Wn.mark.dot,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark}),this._titleMark=this._createMark(Wn.mark.title,{parent:this._containerMark,dataView:this.getRawData()}),this._subTitleMark=this._createMark(Wn.mark.subTitle,{parent:this._containerMark,dataView:this.getRawData()}),this._symbolMark=this._createMark(Wn.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,clip:!0},"normal",tt.Series),t.setInteractive(!1));const e=this._containerMark;e&&(this.setMarkStyle(e,{x:this._spec.leftAppendPadding},"normal",tt.Series),e.setInteractive(!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",tt.Series);const n=this._gridMark;n&&this.setMarkStyle(n,{stroke:this.getColorAttribute(),x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),x1:this.getRegionRectRight.bind(this),y1:this.dataToPositionY.bind(this)},"normal",tt.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",tt.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",tt.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",tt.Series);const l=this._symbolMark;l&&this.setMarkStyle(l,{x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),fill:this.getColorAttribute()},"normal",tt.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,n,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=(n=(i=(e=this._theme)===null||e===void 0?void 0:e.dot)===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.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 n=(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+n},"normal",tt.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:Cn}}getDotColorScale(){var t,e,i;const n=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 $u().domain(n).range(r)}getDotColorAttribute(){var t,e,i,n;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this.getDotColorScale(),field:(n=(i=(e=this._dotTypeField)!==null&&e!==void 0?e:this._seriesGroupField)!==null&&i!==void 0?i:this._seriesField)!==null&&n!==void 0?n:Cn}}initTooltip(){this._tooltipHelper=new tnt(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]}}Wn.type=H.dot,Wn.mark=EO;const nnt=()=>{Kr(),zh(),qr(),Ln(),D.registerSeries(Wn.type,Wn)};class snt extends yn{getDefaultTooltipPattern(t){return t==="mark"?{visible:!0,activeType:t,title:{key:"link info",value:"link info"},content:[{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"time",value:e=>Cs.getInstance().timeFormat("%Y%m%d %H:%M",e.from.split("_")[1])},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"type",value:e=>e.action_type},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"from",value:e=>e.from},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"to",value:e=>e.to}]}:null}}const rnt=(s,t)=>{const{infoKey:e,fields:i,linkData:n,dotData:r}=t,{fromField:a,toField:o,xField:l,yField:h}=i(),d=n(),c=r(),u={};return c.forEach(p=>{const g={};for(const _ in p)_!==e&&(g[_]=p[_]);const f=p[e];f==null||f.forEach(_=>{u[_.node_name]=Object.assign({},g,_)})}),d.forEach(p=>{var g,f,_,m;p[a+"_xField"]=(g=u==null?void 0:u[p[a]])===null||g===void 0?void 0:g[l],p[a+"_yField"]=(f=u==null?void 0:u[p[a]])===null||f===void 0?void 0:f[h],p[o+"_xField"]=(_=u==null?void 0:u[p[o]])===null||_===void 0?void 0:_[l],p[o+"_yField"]=(m=u==null?void 0:u[p[o]])===null||m===void 0?void 0:m[h]}),d};class Er extends us{constructor(){super(...arguments),this.type=H.link}getFromField(){return this._fromField}setFromField(t){E(t)&&(this._fromField=t)}getToField(){return this._toField}setToField(t){E(t)&&(this._toField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){E(t)&&(this._dotTypeField=t)}getDotSeriesSpec(){return this._dotSeriesSpec}setDotSeriesSpec(t){E(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(),Mt(this._option.dataSet,"linkDotInfo",rnt),(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:Fs.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(Er.mark.group),this._containerMark=this._createMark(Er.mark.group,{parent:this._clipMark}),this._linkMark=this._createMark(Er.mark.link,{skipBeforeLayouted:!1,parent:this._containerMark}),this._arrowMark=this._createMark(Er.mark.arrow,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark})}initMarkStyle(){var t,e,i,n;const r=this._clipMark;r&&(this.setMarkStyle(r,{x:-this._spec.leftAppendPadding,y:0,width:1e4,height:this._spec.clipHeight,clip:!0},"normal",tt.Series),r.setInteractive(!1));const a=this._containerMark;a&&(this.setMarkStyle(a,{x:this._spec.leftAppendPadding,width:this.getLayoutRect().width},"normal",tt.Series),a.setInteractive(!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",tt.Series);const l=this._arrowMark;if(l){const h=(n=(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&&n!==void 0?n: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",tt.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,n=this.isPositionYFromHigher(t)?-e/2:e/2;return i(this.getDatumPositionValues(t,this._toField+"_yField"),{bandPosition:this._bandPosition})+n}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)n(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:Cn}}initInteraction(){const t=[];this._linkMark&&t.push(this._linkMark),this._arrowMark&&t.push(this._arrowMark),this._parseInteractionConfig(t)}initTooltip(){this._tooltipHelper=new snt(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]}}Er.type=H.link,Er.mark=PO;const ant=()=>{zh(),Kr(),In(),Bn(),D.registerSeries(Er.type,Er)};class jh extends Zu{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 n=t[this.getStack()?En:ug],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=Qt(i.offsetAngle);let l;if(E(n)){const h=Uw(r,c=>c.value-n),d=n>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 n=t[this.getStack()?Xe:this._angleField[0]],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=Qt(i.offsetAngle),l=Uw(r,c=>c.value-n),h=n>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 n=(t=this._option.globalInstance.getChart())===null||t===void 0?void 0:t.getSpec(),r=(e=this._spec.startAngle)!==null&&e!==void 0?e:n==null?void 0:n.startAngle;this._startAngle=E(r)?Qt(r):e0;const a=(i=this._spec.endAngle)!==null&&i!==void 0?i:n==null?void 0:n.endAngle;this._endAngle=E(a)?Qt(a):i1,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"||E(i==null?void 0:i.startAngle)||E(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=Xt(this.angleAxisHelper.dataToPosition([t[En]]),this.angleAxisHelper.getScale(0));if(W(e))return e}return this._startAngle}_getAngleValueEndWithoutMask(t){if(this.getStack()){const e=Xt(this.angleAxisHelper.dataToPosition([t[Xe]]),this.angleAxisHelper.getScale(0));if(W(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(jh.mark.group,{skipBeforeLayouted:!1}),this._arcGroupMark}_initArcGroupMarkStyle(){const t=this._arcGroupMark;t.setZIndex(this.layoutZIndex),t.created(),this.setMarkStyle(t,{x:0,y:0},"normal",tt.Series),t.setClip(()=>{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(),p=l;return h.map(({value:g})=>{const f=this.angleAxisHelper.dataToPosition([g])+Qt(o),_=Qt(a)/2;return ES(Object.assign(Object.assign({},p),{x:d,y:c,startAngle:f-_,endAngle:f+_,innerRadius:u*this._innerRadius,outerRadius:u*this._outerRadius,fill:!0}))})}const{width:i,height:n}=this.getLayoutRect();return[Ho({width:i,height:n,fill:!0})]}),this._arcGroupMark.setInteractive(!1)}_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),n=[],{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:s.startAngle}}),lnt={type:"fadeIn"};function hnt(s,t){return t==="fadeIn"?lnt:ont(s)}const ED=()=>{D.registerAnimation("circularProgress",(s,t)=>({appear:hnt(s,t),enter:{type:"growAngleIn"},disappear:{type:"growAngleOut"}}))};class RD extends bn{constructor(){super(...arguments),this._supportStack=!0}}class Oa extends jh{constructor(){super(...arguments),this.type=H.circularProgress,this.transformerConstructor=RD,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(W(e))return e}return this.radiusAxisHelper.dataToPosition([t[this._radiusField[0]]])},this._getRadiusValueEnd=t=>{var e,i;if(this.getGroupFields().length>1){const n=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(W(n))return n}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(Oa.mark.progress,{parent:this._arcGroupMark,isSeriesMark:!0,customShape:(t=this._spec.progress)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.progress)===null||e===void 0?void 0:e.stateSort}),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",tt.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(Oa.mark.track,{parent:this._arcGroupMark,customShape:(t=this._spec.track)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.track)===null||e===void 0?void 0:e.stateSort}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&this.setMarkStyle(t,{visible:e=>{const i=this.angleAxisHelper.getScale(0).range(),n=Math.min(i[0],i[i.length-1]),r=this._getAngleValueStartWithoutMask(e);return Math.abs(r-n)<=1e-14},x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:()=>{const e=this.getStack()?En:this._angleField[0],i=this.angleAxisHelper.getScale(0).domain();return this._getAngleValueStart({[e]:i[0]})},endAngle:()=>{const e=this.getStack()?Xe: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",tt.Series)}initAnimation(){var t,e,i,n;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(Ht((i=D.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},r),Wt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(Ht((n=D.getAnimationInKey("fadeInOut"))===null||n===void 0?void 0:n(),Wt("track",this._spec,this._markAttributeContext)))}getActiveMarks(){return[this._progressMark]}}Oa.type=H.circularProgress,Oa.mark=CO,Oa.transformerConstructor=RD;const dnt=()=>{D.registerSeries(Oa.type,Oa),dl(),ED(),Yr(),Ju(),Hh()};function BD(s){return()=>s.direction==="vertical"?{orient:"negative"}:{orient:"positive"}}const cnt=s=>({type:s.direction==="horizontal"?"growWidthIn":"growHeightIn",options:BD(s)}),unt=s=>({type:s.direction==="horizontal"?"growWidthOut":"growHeightOut",options:BD(s)}),pnt={type:"fadeIn"};function gnt(s,t){return t===!1?{}:t==="fadeIn"?pnt:cnt(s)}const fnt=()=>{D.registerAnimation("linearProgress",(s,t)=>({appear:gnt(s,t),enter:{type:"grow"},disappear:unt(s)}))};class _nt extends yn{getDefaultTooltipPattern(t,e){const i=super.getDefaultTooltipPattern(t,e);switch(t){case"mark":case"group":return i;case"dimension":return i.visible=!1,i}return null}}class Da extends us{constructor(){super(...arguments),this.type=H.linearProgress,this._progressMark=null,this._trackMark=null,this._progressGroupMark=null}initMark(){this._initProgressGroupMark(),this._initTrackMark(),this._initProgressMark()}initMarkStyle(){this._initProgressGroupMarkStyle(),this._initTrackMarkStyle(),this._initProgressMarkStyle()}_initProgressMark(){var t,e;return this._progressMark=this._createMark(Da.mark.progress,{isSeriesMark:!0,parent:this._progressGroupMark,customShape:(t=this._spec.progress)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.progress)===null||e===void 0?void 0:e.stateSort}),this._progressMark}_initProgressMarkStyle(){var t,e,i,n,r,a,o,l;const h=this._progressMark;if(h)if(this._spec.direction==="vertical"){const d=(e=(t=this._spec.progress)===null||t===void 0?void 0:t.leftPadding)!==null&&e!==void 0?e:0,c=(n=(i=this._spec.progress)===null||i===void 0?void 0:i.rightPadding)!==null&&n!==void 0?n:0;this.setMarkStyle(h,{x:u=>{var p,g;return Xt(this.dataToPositionX(u),(g=(p=this._xAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._spec.bandWidth/2+d},y:u=>{var p,g;return Xt(this.dataToPositionY(u),(g=(p=this._yAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))},height:()=>{var u;return(u=this._yAxisHelper)===null||u===void 0?void 0:u.dataToPosition([0],{bandPosition:this._bandPosition})},width:this._spec.bandWidth-d-c,cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",tt.Series)}else{const d=(a=(r=this._spec.progress)===null||r===void 0?void 0:r.topPadding)!==null&&a!==void 0?a:0,c=(l=(o=this._spec.progress)===null||o===void 0?void 0:o.bottomPadding)!==null&&l!==void 0?l:0;this.setMarkStyle(h,{x:u=>{var p,g;return Xt(this.dataToPositionX(u),(g=(p=this._xAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._xAxisHelper.dataToPosition([1],{bandPosition:this._bandPosition})},y:u=>{var p,g;return Xt(this.dataToPositionY(u),(g=(p=this._yAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._spec.bandWidth/2+d},height:this._spec.bandWidth-d-c,width:()=>{var u;return(u=this._xAxisHelper)===null||u===void 0?void 0:u.dataToPosition([1],{bandPosition:this._bandPosition})},cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",tt.Series)}}_initTrackMark(){var t,e;return this._trackMark=this._createMark(Da.mark.track,{parent:this._progressGroupMark,customShape:(t=this._spec.track)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.track)===null||e===void 0?void 0:e.stateSort}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&(this._spec.direction==="vertical"?this.setMarkStyle(t,{x:e=>{var i,n;return Xt(this.dataToPositionX(e),(n=(i=this._xAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.call(i,0))-this._spec.bandWidth/2},y:0,width:this._spec.bandWidth,height:()=>this._scaleY.range()[0],cornerRadius:this._spec.cornerRadius},"normal",tt.Series):this.setMarkStyle(t,{x:0,y:e=>{var i,n;return Xt(this.dataToPositionY(e),(n=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||n===void 0?void 0:n.call(i,0))-this._spec.bandWidth/2},height:this._spec.bandWidth,width:()=>this._scaleX.range()[1],cornerRadius:this._spec.cornerRadius},"normal",tt.Series))}_initProgressGroupMark(){return this._progressGroupMark=this._createMark(Da.mark.group,{skipBeforeLayouted:!1}),this._progressGroupMark}_initProgressGroupMarkStyle(){const t=this._progressGroupMark;t.setZIndex(this.layoutZIndex),t.created(),this.setMarkStyle(t,{clip:!0,x:0,y:0,path:()=>{var e;const i=[];return(e=this._rawData)===null||e===void 0||e.rawData.forEach((n,r)=>{var a,o,l,h;if(this._spec.direction==="vertical"){const d=Xt(this.dataToPositionX(n),(o=(a=this._xAxisHelper)===null||a===void 0?void 0:a.getScale)===null||o===void 0?void 0:o.call(a,0))-this._spec.bandWidth/2,c=this._scaleY.range()[0];i.push(Ho({x:d,y:0,height:c,width:this._spec.bandWidth,cornerRadius:this._spec.cornerRadius,fill:!0}))}else{const d=Xt(this.dataToPositionY(n),(h=(l=this._yAxisHelper)===null||l===void 0?void 0:l.getScale)===null||h===void 0?void 0:h.call(l,0))-this._spec.bandWidth/2,c=this._scaleX.range()[1];i.push(Ho({x:0,y:d,height:this._spec.bandWidth,width:c,cornerRadius:this._spec.cornerRadius,fill:!0}))}}),i}},"normal",tt.Series),this._progressGroupMark.setInteractive(!1)}initInteraction(){const t=[];this._trackMark&&t.push(this._trackMark),this._progressMark&&t.push(this._progressMark),this._parseInteractionConfig(t)}initAnimation(){var t,e,i,n;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(Ht((i=D.getAnimationInKey("linearProgress"))===null||i===void 0?void 0:i(r,a),Wt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(Ht((n=D.getAnimationInKey("fadeInOut"))===null||n===void 0?void 0:n(),Wt("track",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new _nt(this),this._progressMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark),this._trackMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._trackMark)}getActiveMarks(){return[this._progressMark]}}Da.type=H.linearProgress,Da.mark=IO;const mnt=()=>{qr(),fnt(),Yr(),D.registerSeries(Da.type,Da)},GP=[0],vnt="hidden",NP=20,ynt=[20,40],bnt=[200,500],xnt="circle",Snt={shrink:!1,enlarge:!1,fontSizeLimitMin:0},Ant=!0,UP=1,knt=["triangleForward","triangle","diamond","square","star","cardioid","circle","pentagon","rect"],Nv=`${bt}_WORD_CLOUD_WEIGHT`,$P=`${bt}_WORD_CLOUD_TEXT`;class kh extends Qo{constructor(){super(...arguments),this._fontSizeRange=[NP,NP],this._isWordCloudShape=!1,this._dataChange=!0,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._colorHexField?e=>e[this._colorHexField]:this.initColorCallback(this._seriesField,!1)),this._keyWordColorCallback(t))}setValueField(t){E(t)&&(this._valueField=t)}setFontSizeRange(t){E(t)?this._fontSizeRange=t:this._fontSizeRange=ynt}setAttrFromSpec(){var t,e,i,n,r,a,o,l,h,d;super.setAttrFromSpec(),this._padding=this._option.getChart().padding,this._nameField=this._spec.nameField,this._fontFamilyField=this._spec.fontFamilyField,this._fontWeightField=this._spec.fontWeightField,this._fontStyleField=this._spec.fontStyleField,this._colorHexField=this._spec.colorHexField,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:bnt,this._rotateAngles=(i=this._spec.rotateAngles)!==null&&i!==void 0?i:GP,this.setFontSizeRange(this._spec.fontSizeRange),this._maskShape=(n=this._spec.maskShape)!==null&&n!==void 0?n:xnt,this._keepAspect=this._spec.keepAspect,this._random=(r=this._spec.random)!==null&&r!==void 0?r:Ant,this._fontPadding=(o=(a=this._spec.word)===null||a===void 0?void 0:a.padding)!==null&&o!==void 0?o:UP,this._textField=!((l=this._spec.word)===null||l===void 0)&&l.formatMethod?$P:this._nameField,this._wordCloudConfig=Object.assign({drawOutOfBound:vnt,layoutMode:"default",zoomToFit:Snt},this._spec.wordCloudConfig),this._wordCloudShapeConfig=Object.assign({fillingSeriesField:this.getSeriesField(),fillingRotateAngles:GP,layoutMode:"default"},this._spec.wordCloudShapeConfig),this._fillingFontPadding=(d=(h=this._spec.fillingWord)===null||h===void 0?void 0:h.padding)!==null&&d!==void 0?d:UP,this._isWordCloudShape=!knt.includes(this._maskShape),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(){this._wordMark=this._createMark(kh.mark.word,{key:Is,defaultMorphElementKey:this._seriesField,groupKey:this._seriesField,isSeriesMark:!0})}initMarkStyle(){var t,e,i;const n=this._wordMark,r=(t=this._spec.word)!==null&&t!==void 0?t:{};n&&(this.setMarkStyle(n,{fill:this.getWordColor,text:a=>a[this._textField],x:a=>a.x,y:a=>a.y,fontFamily:a=>a.fontFamily,fontSize:a=>a.fontSize,fontStyle:a=>a.fontStyle,fontWeight:a=>a.fontWeight,angle:a=>a.angle,visible:a=>a.visible},"normal",tt.Series),this.setMarkStyle(n,{fontFamily:(i=(e=r.style)===null||e===void 0?void 0:e.fontFamily)!==null&&i!==void 0?i:this._defaultFontFamily},"normal",tt.User_Mark))}initTooltip(){super.initTooltip(),this._wordMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._wordMark)}initAnimation(){var t,e;const i=this._wordMark;if(i){const n=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,r={animationConfig:()=>{var a,o;return(o=(a=i.getAnimationConfig())===null||a===void 0?void 0:a.appear)===null||o===void 0?void 0:o[0]}};i.setAnimationConfig(Ht(D.getAnimationInKey("wordCloud")(r,n),Wt("word",this._spec,this._markAttributeContext)))}}getWordOrdinalColorScale(t,e){var i,n,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??((n=this._option.globalScale.getScale("color"))===null||n===void 0?void 0:n.range()))!==null&&r!==void 0?r:this._getDataScheme();return(o=(a=new $u().domain(h)).range)===null||o===void 0?void 0:o.call(a,d)}initColorCallback(t,e){var i;if(this._colorMode==="ordinal"){const r=this.getWordOrdinalColorScale(t,e);return a=>{var o;return r.scale(a[(o=this._seriesField)!==null&&o!==void 0?o:Cn])}}let n=(i=e?this._colorList:this._wordCloudShapeConfig.fillingColorList)!==null&&i!==void 0?i:this._option.globalScale.getScale("color").range();return n.length===1&&(n=[n[0],n[0]]),r=>n[0]}compile(){var t,e;super.compile();const{width:i,height:n}=this._region.getLayoutRect();if(!W(i)||!W(n)||!(n>0&&i>0))return;const r=[],a=this._valueField,o=new Fr,l=this._fontWeightRange;if(a){const[d,c]=Ib((t=this.getViewData())===null||t===void 0?void 0:t.latestData.map(u=>+u[a]));o.domain([d,c],!0).range(l),r.push({type:"map",as:Nv,callback:u=>d===c?o.scale(c):o.scale(u[a])})}const h=(e=this._spec.word)!==null&&e!==void 0?e:{};h.formatMethod&&r.push({type:"map",as:$P,callback:h.formatMethod}),this._isWordCloudShape?r.push(Object.assign({type:"wordcloudShape"},this._wordCloudShapeTransformOption())):r.push(Object.assign({type:"wordcloud"},this._wordCloudTransformOption())),this._wordMark.getProduct().transform(r)}_wordCloudTransformOption(){var t,e,i,n,r;const{width:a,height:o}=this._region.getLayoutRect(),l=(e=(t=this._spec.word)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};return{layoutType:Nn(this._option.mode)?this._wordCloudConfig.layoutMode:"fast",size:[a,o],shape:this._maskShape,dataIndexKey:Is,text:{field:this._textField},fontSize:this._valueField?{field:this._valueField}:this._fontSizeRange[0],fontSizeRange:this._fontSizeRange==="auto"?null:this._fontSizeRange,padding:this._fontPadding,rotate:this._rotateAngles,fontFamily:(n=(i=this._fontFamilyField)!==null&&i!==void 0?i:l.fontFamily)!==null&&n!==void 0?n:this._defaultFontFamily,fontWeight:this._fontWeightField?{field:this._fontWeightField}:this._valueField?{field:Nv}:null,fontStyle:(r=this._fontStyleField)!==null&&r!==void 0?r:l.fontStyle,randomVisible:this._random,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}}_wordCloudShapeTransformOption(){var t,e,i,n,r,a,o,l,h,d;const{width:c,height:u}=this._region.getLayoutRect(),p=(e=(t=this._spec.word)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{},g=(i=this._wordCloudShapeConfig)!==null&&i!==void 0?i:{},f=this._wordCloudShapeConfig.fillingRotateAngles;return{dataIndexKey:Is,size:[c,u],shape:this._maskShape,text:{field:this._textField},fontSize:this._valueField?{field:this._valueField}:this._fontSizeRange[0],fontSizeRange:this._fontSizeRange==="auto"?null:this._fontSizeRange,padding:this._fontPadding,rotateList:this._rotateAngles,fontFamily:(r=(n=this._fontFamilyField)!==null&&n!==void 0?n:p.fontFamily)!==null&&r!==void 0?r:this._defaultFontFamily,fontWeight:this._fontWeightField?{field:this._fontWeightField}:this._valueField?{field:Nv}:null,fontStyle:(a=this._fontStyleField)!==null&&a!==void 0?a:p.fontStyle,fillingFontFamily:(l=(o=g.fillingFontFamilyField)!==null&&o!==void 0?o:p.fontFamily)!==null&&l!==void 0?l:this._defaultFontFamily,fillingPadding:this._fillingFontPadding,fillingFontStyle:(h=g.fillingFontStyleField)!==null&&h!==void 0?h:p.fontStyle,fillingFontWeight:(d=g.fillingFontWeightField)!==null&&d!==void 0?d:p.fontWeight,fillingRotateList:f,fillingTimes:g.fillingTimes,fillingXStep:g.fillingXStep,fillingYStep:g.fillingYStep,fillingXRatioStep:g.fillingXRatioStep,fillingYRatioStep:g.fillingYRatioStep,fillingInitialOpacity:g.fillingInitialOpacity,fillingDeltaOpacity:g.fillingDeltaOpacity,fillingInitialFontSize:g.fillingInitialFontSize,fillingDeltaFontSize:g.fillingDeltaFontSize,ratio:g.ratio,fillingRatio:g.fillingRatio,removeWhiteBorder:g.removeWhiteBorder,textLayoutTimes:g.textLayoutTimes,fontSizeShrinkFactor:g.fontSizeShrinkFactor,stepFactor:g.stepFactor,layoutMode:g.layoutMode,importantWordCount:g.importantWordCount,globalShinkLimit:g.globalShinkLimit,fontSizeEnlargeFactor:g.fontSizeEnlargeFactor,fillingDeltaFontSizeFactor:g.fillingDeltaFontSizeFactor}}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)}}kh.mark=wx;const Tnt=s=>({custom:Nj,customParameters:(t,e)=>s,easing:"linear",loop:1/0,duration:6e3});function Mnt(s,t,e){return s*e({channel:{fontSize:{from:0}},duration:200,delay:(t,e,i)=>{const n=s.animationConfig(),r=(n==null?void 0:n.duration)||200,a=(n==null?void 0:n.totalTime)||va.appear.duration,o=i.VGRAMMAR_ANIMATION_PARAMETERS.elementCount;return i.VGRAMMAR_ANIMATION_PARAMETERS.elementIndex*Mnt(r,a,o)}});function Cnt(s,t){return t===!1?{}:t==="fadeIn"?{type:"fadeIn"}:wnt(s)}const ID=()=>{D.registerAnimation("wordCloud",(s,t)=>({appear:Cnt(s,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}}))},LD=()=>{D.registerAnimation("wordCloud3d",s=>({appear:Tnt(s)}))},Uv={triangleForward:Bnt,triangleUpright:YP,triangle:YP,diamond:Pnt,square:Rnt,star:Ent,cardioid:Int,circle:Lnt,pentagon:Ont};function Pnt(){return function(s){const t=s%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))}}function Ent(){return function(s){const t=(s+.955)%(2*Math.PI/10);return(s+.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 Rnt(){return function(s){return Math.min(1/Math.abs(Math.cos(s)),1/Math.abs(Math.sin(s)))}}function YP(){return function(s){const t=(s+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function Bnt(){return function(s){const t=s%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function Int(){return function(s){return 1-Math.sin(s)}}function Lnt(){return function(){return 1}}function Ont(){return function(s){const t=(s+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))}}function OD(s,t){const e=t[0],i=t[1];let n=1;const r=[t[0]>>1,t[1]>>1];switch(s){case"cardioid":r[1]=~~(i/2.7*.6),n=Math.floor(Math.min(e/2.3,i/2.6));break;case"triangleForward":n=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),n=Math.floor(Math.min(i/1.5,e/2));break;case"rect":n=Math.floor(Math.max(i/2,e/2));break;default:n=Math.floor(Math.min(e/2,i/2))}return{maxRadius:n,center:r}}const Dnt=s=>Uv[s]?Uv[s]():Uv.circle(),XP=(s,t)=>"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-s)+s).toFixed()+"%)";function lo(s){return N(s)?s:function(){return s}}class Vh{constructor(t){var e,i;switch(this.options=U({},Vh.defaultOptions,t),N(this.options.shape)?this.shape=this.options.shape:this.shape=Dnt(this.options.shape),this.getText=(e=lo(this.options.text))!==null&&e!==void 0?e:n=>n,this.getTextFontWeight=lo(this.options.fontWeight),this.getTextFontSize=lo(this.options.fontSize),this.getTextFontStyle=lo(this.options.fontStyle),this.getTextFontFamily=lo(this.options.fontFamily),this.outputCallback=(i=this.options.outputCallback)!==null&&i!==void 0?i:n=>n,this.options.color){case"random-dark":this.getTextColor=()=>XP(10,50);break;case"random-light":this.getTextColor=()=>XP(50,90);break;default:this.getTextColor=lo(this.options.color)}if(P(this.options.rotate))if(this.options.useRandomRotate){const n=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:n===0?a:r>0?a+Math.floor(Math.random()*r)*n/(r-1):a+Math.random()*n}else this.getTextRotate=()=>0;else this.getTextRotate=N(this.options.rotate)?n=>{var r;return Qt((r=this.options.rotate(n))!==null&&r!==void 0?r:0)}:(n,r)=>{const a=V(this.options.rotate),o=this.options.random?Math.random():y3(r);return Qt(a[Math.floor(o*a.length)])}}exceedTime(){var t;return this.options.progressiveStep>0?this.progressiveIndex>=(((t=this.currentStepIndex)!==null&&t!==void 0?t:0)+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:0)+1:this.options.progressiveTime>0&&(this.escapeTime=Date.now()),this.data&&this.progressiveIndex&&this.progressiveIndex0?this.currentStepIndex=0: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 znt(s){const t=4*s[0]/s[1];let e=0,i=0;return n=>{const r=n<0?-1:1;switch(Math.sqrt(1+4*r*n)-r&3){case 0:e+=t;break;case 1:i+=4;break;case 2:e-=t;break;default:i-=4}return[e,i]}}class ih extends Vh{constructor(t){var e;super(U({},ih.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<=ih.defaultOptions.minFontSize&&(this.options.minFontSize=ih.defaultOptions.minFontSize),this.spiral=at(this.options.spiral)?(e=KP[this.options.spiral])!==null&&e!==void 0?e:KP.archimedean:this.options.spiral,this.random=this.options.random?Math.random:()=>1,this.getTextPadding=lo(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:n}=OD(this.options.shape,this._size);if(e.x=n[0],e.y=n[1],Hnt(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?Vnt(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(Ot.createCanvas({width:1,height:1}));this.contextAndRatio=i,this._board=new Array((this._size[0]>>5)*this._size[1]).fill(0),this._bounds=null;const n=t.length;let r=0;this.result=[];const a=t.map((l,h)=>({text:this.getText(l),fontFamily:this.getTextFontFamily(l),fontStyle:this.getTextFontStyle(l),fontWeight:this.getTextFontWeight(l),angle:this.getTextRotate(l,h),fontSize:~~this.getTextFontSize(l),padding:this.getTextPadding(l),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:l,x:0,y:0,width:0,height:0})).sort(function(l,h){return h.fontSize-l.fontSize});this.data=a;let o=0;for(;r=2?(r++,o=0):o++,this.progressiveIndex=r,!this.exceedTime()););if(!this.options.clip&&this.options.enlarge&&this._bounds&&this.shrinkBoard(this._bounds),this._bounds&&["cardioid","triangle","triangle-upright"].includes(this.options.shape)){const l=(this._bounds[0].y+this._bounds[1].y)/2;this._dy=-(l-this._size[1]/2)}return this.result}formatTagItem(t){const e=this._size,i=this.zoomRatio(),n=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 n=Math.min(e.x,this._size[0]-i.x),r=Math.min(e.y,this._size[1]-i.y),a=2*Math.min(n/this._size[0],r/this._size[1]);this._size=this._size.map(o=>o*(1-a))}expandBoard(t,e,i){const n=this._size[0]*(i||1.1)-this._size[0]>>5;let r=2*n>2?n: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 n=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 n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:i,canvas:t}}place(t,e,i,n){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,p,g,f=-a;for(this._tTemp=null,this._dtTemp=null;c=d(f+=a);){u=c[0],p=c[1];const _=Math.sqrt(u**2+p**2);let m=Math.atan(p/u);u<0?m+=Math.PI:p<0&&(m=2*Math.PI+m);const y=this.shape(m);if(Math.min(Math.abs(u),Math.abs(p))>=h)break;if(_>=n)r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);else{if(e.x=o+~~(_*y*Math.cos(-m)),e.y=l+~~(_*y*Math.sin(-m)),g=e,this.options.clip)if(this.shouldShrinkContinue()){if($v(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}}else{if(Gnt(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}$v(g,this._size)&&(g=Nnt(g,this._size))}else if($v(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}if(r=!0,(!i||Wnt(g,i))&&(!i||!jnt(g,t,this._size))){const v=g.sprite,b=g.width>>5,x=this._size[0]>>5,A=g.x-(b<<4),T=127&A,k=32-T,M=g.y1-g.y0;let w,C=(g.y+g.y0)*x+(A>>5);for(let R=0;R>>T:0);C+=x}return e.sprite=null,g.sprite=null,!0}}}return this._tTemp!==null&&(this._placeStatus=3),!this.shouldShrinkContinue()&&this.setCache(g,a),!1}clearCache(){this.cacheMap.clear()}setCache(t,e){const i=`${t.angle}-${e}`,n=t.x1-t.x0,r=t.y1-t.y0;if(!this.cacheMap.has(i))return void this.cacheMap.set(i,{width:n,height:r});const{width:a,height:o}=this.cacheMap.get(i);(n=n&&o>=r}}function Hnt(s,t,e,i,n,r){if(t.sprite)return;const a=s.context,o=s.ratio;a.setTransform(o,0,0,o,0,0),a.clearRect(0,0,(n<<5)/o,r/o);let l=0,h=0,d=0;const c=e.length;let u,p,g,f,_;for(--i;++i>5<<5,g=~~Math.max(Math.abs(A+T),Math.abs(A-T))}else u=u+31>>5<<5;if(g>d&&(d=g),l+u>=n<<5&&(l=0,h+=d,d=0),h+g>=r)break;a.translate((l+(u>>1))/o,(h+(g>>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=g,t.xoff=l,t.yoff=h,t.x1=u>>1,t.y1=g>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,l+=u}const m=a.getImageData(0,0,(n<<5)/o,r/o).data,y=[];for(;--i>=0;){if(!(t=e[i]).hasText)continue;for(u=t.width,p=u>>5,g=t.y1-t.y0,f=0;f>5),A=m[(h+_)*(n<<5)+(l+f)<<2]?1<<31-f%32:0;y[x]|=A,v|=A}v?b=_:(t.y0++,g--,_--,h++)}t.y1=t.y0+b,t.sprite=y.slice(0,(t.y1-t.y0)*p)}}function jnt(s,t,e){const i=e[0]>>5,n=s.sprite,r=s.width>>5,a=s.x-(r<<4),o=127&a,l=32-o,h=s.y1-s.y0;let d,c=(s.y+s.y0)*i+(a>>5);for(let u=0;u>>o:0))&t[c+p])return!0;c+=i}return!1}function Vnt(s,t){const e=s[0],i=s[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 Wnt(s,t){return s.x+s.x1>t[0].x&&s.x+s.x0t[0].y&&s.y+s.y0s.x+s.x0>t[0]||s.y+s.y0>t[0]||s.x+s.x1<0||s.y+s.y1<0,$v=(s,t)=>s.x+s.x0<0||s.y+s.y0<0||s.x+s.x1>t[0]||s.y+s.y1>t[1];function Nnt(s,t){const e=s.sprite,i=s.y1-s.y0,n=s.width>>5;let r=0;const a=[],o=Math.max(-(s.y0+s.y),0),l=Math.min(i+(t[1]-(s.y1+s.y)),i),h=Math.max(-(s.x0+s.x),0)>>5,d=Math.min(n+(t[0]-(s.x1+s.x)>>5)+1,n);for(let f=0;f{e>=this.ngx||i>=this.ngy||e<0||i<0||(this.grid[e][i]=!1)},this.updateGrid=(e,i,n,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 n=[];for(t===0&&n.push([this.center[0],this.center[1],0]);i--;){const r=this.shape(i/e*2*Math.PI);n.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]=n,n}getTextInfo(t,e=1,i){var n;const r=this.options.clip?1:e,a=Math.max(Math.floor(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&&(n=this.getTextRotate(t,i))!==null&&n!==void 0?n:0,c=this.getTextFontFamily(t),u=document.createElement("canvas"),p=u.getContext("2d",{willReadFrequently:!0});p.font=h+" "+l+" "+a.toString(10)+"px "+c;const g=p.measureText(o).width,f=Math.max(a,p.measureText("m").width,p.measureText("W").width);let _=g+2*f,m=3*f;const y=Math.ceil(_/this.gridSize),v=Math.ceil(m/this.gridSize);_=y*this.gridSize,m=v*this.gridSize;const b=-g/2,x=.4*-f,A=Math.ceil((_*Math.abs(Math.sin(d))+m*Math.abs(Math.cos(d)))/this.gridSize),T=Math.ceil((_*Math.abs(Math.cos(d))+m*Math.abs(Math.sin(d)))/this.gridSize),k=T*this.gridSize,M=A*this.gridSize;u.setAttribute("width",""+k),u.setAttribute("height",""+M),p.scale(1,1),p.translate(k/2,M/2),p.rotate(-d),p.font=h+" "+l+" "+a.toString(10)+"px "+c,p.fillStyle="#000",p.textBaseline="middle",p.fillText(o,b,x);const w=p.getImageData(0,0,k,M).data;if(this.exceedTime())return null;const C=[];let R,I=T;const O=[A/2,T/2,A/2,T/2],B=(L,F,z)=>{let K=this.gridSize;for(;K--;){let et=this.gridSize;for(;et--;)if(w[4*((F*this.gridSize+K)*k+(L*this.gridSize+et))+3])return z.push([L,F]),LO[1]&&(O[1]=L),FO[2]&&(O[2]=F))}};for(;I--;)for(R=A;R--;)B(I,R,C);return{datum:t,occupied:C,bounds:O,gw:T,gh:A,fillTextOffsetX:b,fillTextOffsetY:x,fillTextWidth:g,fillTextHeight:f,fontSize:a,fontStyle:h,fontWeight:l,fontFamily:c,angle:d,text:o}}canFitText(t,e,i,n,r){let a=r.length;for(;a--;){const o=t+r[a][0],l=e+r[a][1];if(o>=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],n=this.getTextInfo(i,e,t);if(!n||this.exceedTime())return!1;if(!this.options.drawOutOfBound&&(!this.options.shrink||n.fontSize<=this.options.minFontSize)&&!this.options.clip){const o=n.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]-n.gw/2),h=Math.floor(o[1]-n.gh/2),d=n.gw,c=n.gh;return!!this.canFitText(l,h,d,c,n.occupied)&&(n.distance=this.maxRadius-r,n.theta=o[2],this.outputText(l,h,n),this.updateGrid(l,h,d,c,n),!0)};for(;r--;){let o=this.getPointsAtRadius(this.maxRadius-r);if(this.options.random&&(o=[].concat(o),zE(o)),o.some(a))return!0}return(this.options.clip||!!(this.options.shrink&&n.fontSize>this.options.minFontSize))&&this.layoutWord(t,.75*e)}outputText(t,e,i){const n=this.getTextColor(i),r={text:i.text,datum:i.datum,color:n,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){let e;if(this.grid=[],t){let i=document.createElement("canvas").getContext("2d");i.fillStyle=this.options.backgroundColor,i.fillRect(0,0,1,1);let n=i.getImageData(0,0,1,1).data,r=t.getContext("2d").getImageData(0,0,this.ngx*this.gridSize,this.ngy*this.gridSize).data;const a=(l,h)=>{let d=this.gridSize;for(;d--;){let c=this.gridSize;for(;c--;)for(e=4;e--;)if(r[4*((h*this.gridSize+d)*this.ngx*this.gridSize+(l*this.gridSize+c))+e]!==n[e])return void(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)}r=i=n=void 0}else{let i=this.ngx;for(;i--;){this.grid[i]=[];let n=this.ngy;for(;n--;)this.grid[i][n]=!0}}}layout(t,e){this.initProgressive(),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:n}=OD(this.options.shape,[e.width,e.height]);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(n/this.gridSize),this.initGrid(e.canvas),this.result=[];let r=0;for(;r0,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+n*h*Math.cos(i)*this.aspectRatio,a=this.center[1]-l/2+n*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((n,r)=>this.getTextFontSize(r)-this.getTextFontSize(n));let i=0;for(;it.left+t.width||s.top>t.top+t.height)}M0.defaultOptions={enlarge:!1};const $nt={x:"x",y:"y",z:"z",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle"},Ynt=(s,t)=>{var e,i,n,r,a,o;if(s.size&&(s.size[0]<=0||s.size[1]<=0))return Lt.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];const l=t,h=((e=s.size)!==null&&e!==void 0?e:[500,500]).slice();h[0]=Math.floor(h[0]),h[1]=Math.floor(h[1]);const d=s.fontFamily?so(s.fontFamily):"sans-serif",c=s.fontStyle?so(s.fontStyle):"normal",u=s.fontWeight?so(s.fontWeight):"normal",p=s.rotate?so(s.rotate):0,g=so(s.text),f=(i=s.spiral)!==null&&i!==void 0?i:"archimedean",_=s.padding?so(s.padding):1,m=(n=s.shape)!==null&&n!==void 0?n:"square",y=(r=s.shrink)!==null&&r!==void 0&&r,v=(a=s.enlarge)!==null&&a!==void 0&&a,b=(o=s.clip)!==null&&o!==void 0&&o,x=s.minFontSize,A=s.randomVisible,T=s.as||$nt,k=s.depth_3d,M=s.postProjection;let w=s.fontSize?so(s.fontSize):14;const C=s.fontSizeRange;if(C&&!nt(w)){const O=w,B=Xnt(Knt(O,l),C);w=L=>B(O(L))}let R=ih;s.layoutType==="fast"?R=M0:s.layoutType==="grid"&&(R=DD);const I=new R({text:g,padding:_,spiral:f,shape:m,rotate:p,fontFamily:d,fontStyle:c,fontWeight:u,fontSize:w,shrink:y,clip:b,enlarge:v,minFontSize:x,random:A,progressiveStep:s.progressiveStep,progressiveTime:s.progressiveTime,outputCallback:O=>{const B=[];let L,F;for(let z=0,K=O.length;z0||s.progressiveTime>0?{progressive:I}:I.output()},so=s=>at(s)||nt(s)||N(s)||G(s)?s:t=>t[s.field],Yv=s=>s<0?-Math.sqrt(-s):Math.sqrt(s),Xnt=(s,t)=>{if(s[0]===s[1])return a=>t[0];const e=Yv(s[0]),i=Yv(s[1]),n=Math.min(e,i),r=Math.max(e,i);return a=>(Yv(a)-n)/(r-n)*(t[1]-t[0])+t[0]},Knt=(s,t)=>{let e=1/0,i=-1/0;const n=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]};function qnt(s,t,e,i,n){const r=Math.max(s[0],s[1])/2,a=Znt(s[0],s[1],r,{x:r,y:r,z:n??r},t);e[i.x]=a.x,e[i.y]=a.y,e[i.z]=a.z}function Znt(s,t,e,i,n){const{x:r,y:a}=n,o=r/s*Math.PI*2;let l=Math.PI-a/t*Math.PI;return l+=(l{Q.registerTransform("wordcloud",{transform:Ynt,markPhase:"beforeJoin"},!0)};var I_;(function(s){s.BEFORE_WORDCLOUD_SHAPE_LAYOUT="beforeWordcloudShapeLayout",s.AFTER_WORDCLOUD_SHAPE_LAYOUT="afterWordcloudShapeLayout"})(I_||(I_={}));const Jnt=(s,t)=>{if(t.length===1&&t[0]==="#537EF5")return!0;if(!Array.isArray(s)||!Array.isArray(t)||s.length!==t.length)return!1;for(let e=0;e{let s=-1;const t=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9];return()=>(s=(s+1)%t.length,t[s])},tst=s=>/^[\u4e00-\u9fa5]+$/.test(s),zD=(s,t)=>{if(P(s))return 0;let e=0;for(const i of s)tst(i)?e+=1:e+=.53;return e};function est(s){return s&&(LE(s)||OE(s)||s.startsWith("{var i;const n=PS({image:s}),r=(i=n.resources)===null||i===void 0?void 0:i.get(s);r&&r.state==="success"&&r.data?t(r.data):(n.successCallback=()=>{var a;if(n){const o=(a=n.resources)===null||a===void 0?void 0:a.get(s);o&&o.state==="success"&&o.data?t(o.data):e(new Error("image load failed"+s))}else e(new Error("image load failed"+s))},n.failCallback=()=>{Lt.getInstance().error("image 加载失败!",s)})}):null}function ist(s){return typeof s=="function"?s:function(){return s}}function nst(s){const t=est(s.shapeUrl);return t?t.then(e=>s&&s.removeWhiteBorder&&e?rst(e,s.tempCanvas,s.tempCtx):e):null}function sst(s,t){const{size:e,tempCanvas:i,tempCtx:n}=t,r=ast(s,e);i.width=e[0],i.height=e[1],n.clearRect(0,0,i.width,i.height),n.drawImage(s,r.x,r.y,r.width,r.height);const a=n.getImageData(0,0,e[0],e[1]),o=new Array(e[0]*e[1]).fill(0);let l=1;const h=[[0,1],[1,0],[-1,0],[0,-1]];let d=[];for(let C=0;C=e[1]?e[1]-1:B,L=L<0?0:L>=e[0]?e[0]-1:L,o[B*e[0]+L]!==0||L_(a,B,L)||(o[B*e[0]+L]=l,d.push([B,L]))}l++,d=[]}const c={},u={},p={},g={},f={},_={},m={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0,width:0,height:0};for(let C=0;Cg[I][1]&&(g[I][1]=C),Rg[I][3]&&(g[I][3]=R),Rm.x2&&(m.x2=R),Cm.y2&&(m.y2=C)),u[I]=u[I]||0,u[I]++)}const y=[];for(const C in c){const R=c[C],I=~~(R.reduce((K,et)=>K+et[0],0)/R.length),O=~~(R.reduce((K,et)=>K+et[1],0)/R.length);p[C]=[I,O],y.push(...R);const[B,L,F,z]=g[C];f[C]=~~Math.max(Math.sqrt((I-F)**2+(O-B)**2),Math.sqrt((I-z)**2+(O-L)**2),Math.sqrt((I-F)**2+(O-L)**2),Math.sqrt((I-z)**2+(O-B)**2)),_[C]=(z-F)/(L-B)}const v=Object.keys(p).map(C=>({label:C-1,boundary:c[C],area:u[C],center:p[C],maxPoint:g[C],maxR:f[C],ratio:_[C]}));m.width=m.x2-m.x1+1,m.height=m.y2-m.y1+1;const b=~~(y.reduce((C,R)=>C+R[0],0)/y.length),x=~~(y.reduce((C,R)=>C+R[1],0)/y.length),A=~~Math.max(Math.sqrt((b-m.x1)**2+(x-m.y1)**2),Math.sqrt((b-m.x2)**2+(x-m.y2)**2),Math.sqrt((b-m.x1)**2+(x-m.y2)**2),Math.sqrt((b-m.x2)**2+(x-m.y1)**2)),T=m.width/m.height,k=Object.keys(u).reduce((C,R)=>C+u[R],0),M={regions:v,labels:o,labelNumber:l-1};return Object.assign(t,{segmentation:M,shapeConfig:r,shapeBounds:m,shapeMaxR:A,shapeRatio:T,shapeCenter:[b,x],shapeArea:k});function w(C,R){const I=[[0,1],[1,0],[-1,0],[0,-1]];if(C===0||R===0||C===e[1]-1||R===e[0]-1)return!0;for(let O=0;O<4;O++){let B=C+I[O][0],L=R+I[O][1];if(B=B<0?0:B>=e[1]?e[1]-1:B,L=L<0?0:L>=e[0]?e[0]-1:L,o[B*e[0]+L]===0)return!0}return!1}}function L_(s,t,e){const i=s.width;return s.data[t*i*4+4*e+3]===0||s.data[t*i*4+4*e+0]===255&&s.data[t*i*4+4*e+1]===255&&s.data[t*i*4+4*e+2]===255}function rst(s,t,e){t.width=s.width,t.height=s.height,e.clearRect(0,0,t.width,t.height),e.drawImage(s,0,0);const i=t.width,n=e.getImageData(0,0,t.width,t.height);let r=0,a=n.height,o=0,l=n.width;for(;rr&&qP(n,i,a-1);)--a;for(;oo&&ZP(n,i,l-1,r,a);)--l;const h=e.getImageData(o,r,l-o,a-r);return t.width=h.width,t.height=h.height,e.clearRect(0,0,t.width,t.height),e.putImageData(h,0,0),t}function qP(s,t,e){for(let i=0;it[1]&&(n=t[1]/i);const r=Math.floor(n*e),a=Math.floor(n*i);return{x:(t[0]-r)/2,y:(t[1]-a)/2,width:r,height:a,scale:n}}function ost(s,t){const{segmentation:{regions:e}}=t;let i=-1/0,n=0,r=0;e.forEach((h,d)=>{const c=h.area;c>i&&(i=c,r=d),n+=c});let a=0;e.forEach(h=>{const d=h.area,c=Math.ceil(d/n*s.length),u=d/i;h.words=[],h.regionNum=c,h.regionWeight=u,a+=c}),ah.regionNum);s.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 lst(s,t,e){const{size:i,stepFactor:n}=t,{segmentation:{regions:r},tempCtx:a,tempCanvas:o,boardSize:l,shapeCenter:h,shapeMaxR:d,shapeRatio:c}=e,u=j1(e);for(const p of r){const{words:g,center:f,maxR:_,ratio:m}=p;for(let y=0;y(f.hasPlaced||(f.hasText=!1,f.sprite=null,f.fontSize=Math.max(~~(f.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!f.hasPlaced));if(g.length===0)break;for(let f=0;fb&&(x=s.sort((A,T)=>T.weight-A.weight)[b].weight);for(let A=0;Ax&&v>r){const B=O.datum[Symbol.for("vGrammar_id")];B!==m&&(m=B,y=v),v*=_,s.forEach(L=>{L.hasText=!1,L.sprite=null,L.fontSize=L.fontSize*_}),f=g.slice(0),R=!0;break}if(!O.skip&&O.datum[Symbol.for("vGrammar_id")]===m){s.forEach(B=>{B.hasText=!1,B.sprite=null,B.fontSize=B.fontSize/v}),O.skip=!0,v=y,m=null,f=g.slice(0),R=!0;break}}}R&&(A=-1)}for(let A=0;A(k.hasPlaced||(k.hasText=!1,k.sprite=null,k.fontSize=Math.max(~~(k.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!k.hasPlaced));if(T.length===0)break;for(let k=0;k_&&(m=s.sort((x,A)=>A.weight-x.weight)[_-1].weight);let y=0,v=1,b=!1;for(let x=0;x=m&&y++,y>=_&&!b){v*=f,s.forEach(O=>{O.hasText=!1,O.sprite=null,O.fontSize=O.fontSize*f}),g=p.slice(0),C=!0,y=0;break}}else{if(I.weight>=m&&v>1){s.forEach(O=>{O.hasText=!1,O.sprite=null,O.fontSize=O.fontSize/f}),v/=f,b=!0,g=p.slice(0),C=!0;break}if(I.weight>=m)return HD(s,t,e)}}C&&(x=-1)}for(let x=0;x(T.hasPlaced||(T.hasText=!1,T.sprite=null,T.fontSize=Math.max(~~(T.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!T.hasPlaced));if(A.length===0)break;for(let T=0;T=e)break;if(t.x=~~(o+u),t.y=~~(l+p),!(t.x-y<0||t.x+v>n[0]||t.y-_<0||t.y+m>n[1]||VD(t,s,r)))return jD(t,s,r),!0}return!1}function jD(s,t,e){const{wordSize:i}=s,n=s.sprite,r=i[0]>>5,a=e[0]>>5,o=s.x-(r<<4),l=o%32,h=32-l,d=i[1];let c,u=(s.y-(i[1]>>1))*a+(o>>5);if(l===0)for(let p=0;p>>l:0);u+=a}}function VD(s,t,e){const{sprite:i,wordSize:n}=s,r=e[0]>>5,a=n[0]>>5,o=s.x-(a<<4),l=o%32,h=32-l,d=n[1];let c,u=(s.y-(n[1]>>1))*r+(o>>5);if(l===0)for(let p=0;p>>l:0))&t[u+g])return!0;u+=r}return!1}function dst(s){return function(t){return[s*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function el(s,t,e,i){if(e[i].sprite||e[i].fontSize===0)return;const n=2048,r=Math.PI/180,a=e.length;s.width=n,s.height=2048,t.clearRect(0,0,n,2048),t.textAlign="center";let o,l,h=0,d=0,c=0,u=0;const p=i;for(--i;++i>5<<5,l=Math.ceil(l),l>c&&(c=l),h+o>=n&&(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 g=t.getImageData(0,0,n,u).data;let f,_;for(;--i>=p;){const m=e[i];if(!m.hasText){m.bounds={dTop:1/0,dBottom:-1/0,dLeft:1/0,dRight:-1/0};break}const{LT:y=[0,0],wordSize:v}=m;[h,d]=y;const b=v[0]>>5,x=new Array(b*v[1]).fill(0);let[A,T,k,M]=[1/0,-1/0,1/0,-1/0];for(_=0;_0){const C=1<<31-f%32;x[b*_+(f>>5)]|=C,fM&&(M=f),w|=C}w&&(_T&&(T=_))}m.bounds={dTop:(v[1]>>1)-A,dBottom:T-(v[1]>>1),dLeft:(v[0]>>1)-k,dRight:M-(v[0]>>1)},m.sprite=x,delete m.LT}}function j1(s){const{segmentation:{labels:t},boardSize:e,size:i}=s,n=e[0]>>5,r=new Array(n*i[1]).fill(0);for(let a=0;a>5)]|=l}if(e[0]>i[0]){const a=(1<c?k-c:c,y),M=M>p?M-p:p;return w;function C(I,O){const B=s.map(ht=>{const{text:ut,color:J,fillingColor:$,hasPlaced:Z,datum:X}=ht;return{x:0,y:0,weight:0,text:ut,fontFamily:h(X),fontStyle:o(X),fontWeight:l(X),fontSize:I,rotate:g[~~(T()*g.length)],padding:f(X),opacity:O,visible:!0,color:J,fillingColor:$,hasPlaced:Z,datum:X}});R(B);let L=0;const{x1:F,y1:z,x2:K,y2:et}=b,[j,st]=[F+~~(T()*r*2),z+~~(T()*a*2)];for(let ht=st;ht<=et;ht+=a)for(let ut=j;ut<=K;ut+=r){el(A,x,B,L);const J=B[L];J.x=ut,J.y=ht;const{wordSize:$,bounds:Z,hasPlaced:X}=J;if(!X||!Z){++L===B.length&&(L=0,_&&R(B));continue}const{dTop:dt,dBottom:ct,dLeft:kt,dRight:ot}=Z;J.x-kt<0||J.x+ot>i[0]||J.y-dt<0||J.y+ct>i[1]||J.hasText&&J.sprite&&!VD(J,m,v)&&(jD(J,m,v),w.push(Object.assign({},J)),++L===B.length&&(L=0,_&&R(B)))}}function R(I){return I.sort(()=>T()-.5)}}function ust(s,t,e){ost(s,e),t.layoutMode==="ensureMapping"?HD(s,t,e):t.layoutMode==="ensureMappingEnlarge"?hst(s,t,e):lst(s,t,e);const i=cst(s,t,e),n=[],r=[];for(let a=0;aa.visible=!1),{fillingWords:i,successedWords:r,failedWords:n}}const pst={x:"x",y:"y",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle",opacity:"opacity",visible:"visible",isFillingWord:"isFillingWord",color:"color"};class gst{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,tempCtx:void 0,removeWhiteBorder:e.removeWhiteBorder||!1,boardSize:[0,0],random:!1,randomGenerator:void 0},n=Ot.createCanvas({width:e.size[0],height:e.size[1]}),r=n.getContext("2d");r.textAlign="center",r.textBaseline="middle",i.tempCanvas=n,i.tempCtx=r;const a=e.size[0]+31>>5<<5;i.boardSize=[a,e.size[1]],i.random?i.randomGenerator=Math.random:i.randomGenerator=Qnt();const o=nst(i);o?(this.segmentationInput=i,this.isImageFinished=!1,this.isLayoutFinished=!1,o.then(l=>{this.shapeImage=l,this.isImageFinished=!0}).catch(l=>{this.shapeImage=null,this.isImageFinished=!0})):(this.isImageFinished=!0,this.isLayoutFinished=!0)}unfinished(){return!this.isLayoutFinished}output(){return this.progressiveResult}progressiveRun(){this.isImageFinished&&!this.isLayoutFinished&&(this.shapeImage&&this.doLayout(),this.isLayoutFinished=!0)}progressiveOutput(){return this.progressiveResult}doLayout(){var t,e,i;const n=this.segmentationInput,r=sst(this.shapeImage,n),a=this.options,o=this.data,l=a.colorMode||"ordinal",h={getText:sn(a.text),getFontSize:sn(a.fontSize),fontSizeRange:a.fontSizeRange,colorMode:l,getColor:a.colorField?sn(a.colorField):sn(a.text),getFillingColor:sn(a.fillingColorField),colorList:a.colorList||(l==="ordinal"?["#2E62F1"]:["#537EF5","#2E62F1","#2358D8","#184FBF","#0C45A6","#013B8E"]),getColorHex:sn(a.colorHexField),getFontFamily:sn(a.fontFamily||"sans-serif"),rotateList:a.rotateList||[0],getPadding:sn(a.padding||1),getFontStyle:sn(a.fontStyle||"normal"),getFontWeight:sn(a.fontWeight||"normal"),getFontOpacity:a.fontOpacity?sn(a.fontOpacity):()=>1};_st(o,h,r);const d={size:a.size,ratio:a.ratio||.8,shapeUrl:a.shape,random:a.random===void 0||a.random,textLayoutTimes:a.textLayoutTimes||3,removeWhiteBorder:a.removeWhiteBorder||!1,layoutMode:a.layoutMode||"default",fontSizeShrinkFactor:a.fontSizeShrinkFactor||.8,stepFactor:a.stepFactor||1,importantWordCount:a.importantWordCount||10,globalShinkLimit:a.globalShinkLimit||.2,fontSizeEnlargeFactor:a.fontSizeEnlargeFactor||1.5,fillingRatio:a.fillingRatio||.7,fillingTimes:a.fillingTimes||4,fillingXStep:a.fillingXRatioStep?Math.max(Math.floor(a.size[0]*a.fillingXRatioStep),1):a.fillingXStep||4,fillingYStep:a.fillingYRatioStep?Math.max(Math.floor(a.size[1]*a.fillingYRatioStep),1):a.fillingYStep||4,fillingInitialFontSize:a.fillingInitialFontSize,fillingDeltaFontSize:a.fillingDeltaFontSize,fillingInitialOpacity:a.fillingInitialOpacity||.8,fillingDeltaOpacity:a.fillingDeltaOpacity||.05,getFillingFontFamily:sn(a.fillingFontFamily||"sans-serif"),getFillingFontStyle:sn(a.fillingFontStyle||"normal"),getFillingFontWeight:sn(a.fillingFontWeight||"normal"),getFillingPadding:sn(a.fillingPadding||.4),fillingRotateList:a.fillingRotateList||[0,90],fillingDeltaFontSizeFactor:a.fillingDeltaFontSizeFactor||.2,fillingColorList:a.fillingColorList||["#537EF5"],sameColorList:!1,minInitFontSize:a.minInitFontSize||10,minFontSize:a.minFontSize||4,minFillFoontSize:a.minFillFoontSize||2},c=Jnt(h.colorList,d.fillingColorList);d.sameColorList=c,fst(o,h,d,a),mst(o,h,d,r);const{getText:u,getFontFamily:p,getFontStyle:g,getFontWeight:f,getPadding:_,getColor:m,getFillingColor:y,getColorHex:v,fontSizeScale:b,colorScale:x,fillingColorScale:A,getFontOpacity:T,rotateList:k}=h,M=o.map(j=>{var st,ht;return{x:0,y:0,weight:0,text:u(j),fontFamily:p(j),fontWeight:f(j),fontStyle:g(j),rotate:k[~~(n.randomGenerator()*k.length)],fontSize:Math.max(d.minInitFontSize,~~b(j)),opacity:T(j),padding:_(j),color:v&&v(j)||x&&x(m(j))||"black",fillingColor:!y||((st=a.colorField)===null||st===void 0?void 0:st.field)===((ht=a.fillingColorField)===null||ht===void 0?void 0:ht.field)&&c?void 0:v&&v(j)||A&&A(y(j))||"black",datum:j,visible:!0,hasPlaced:!1}}),w=ze(M.map(j=>j.fontSize));M.forEach(j=>j.weight=j.fontSize/w),M.sort((j,st)=>st.weight-j.weight);const{fillingWords:C,successedWords:R,failedWords:I}=ust(M,d,r),O=(e=(t=a.text)===null||t===void 0?void 0:t.field)!==null&&e!==void 0?e:"textKey",B=(i=a.dataIndexKey)!==null&&i!==void 0?i:"defaultDataIndexKey",L=a.as||pst;let F,z;const K=[];for(let j=0;j{var ht,ut;const J={};J[L.x]=j.x,J[L.y]=j.y,J[L.fontFamily]=j.fontFamily,J[L.fontSize]=j.fontSize,J[L.fontStyle]=j.fontStyle,J[L.fontWeight]=j.fontWeight,J[L.angle]=Qt(j.rotate),J[L.opacity]=j.opacity,J[L.visible]=j.visible,J[L.isFillingWord]=!0,J[L.color]=y?((ht=a.colorField)===null||ht===void 0?void 0:ht.field)===((ut=a.fillingColorField)===null||ut===void 0?void 0:ut.field)&&c?j.color:j.fillingColor:d.fillingColorList[~~(n.randomGenerator()*d.fillingColorList.length)],J[O]=j.text,J[B]=`${j.text}_${st}_fillingWords`,et.push(J)}),this.view&&this.view.emit&&this.view.emit(I_.AFTER_WORDCLOUD_SHAPE_LAYOUT,{successedWords:R,failedWords:I}),this.progressiveResult=K.concat(et)}release(){this.segmentationInput=null,this.data=null,this.shapeImage=null,this.progressiveResult=null,this.options=null}}const fst=(s,t,e,i)=>{var n,r,a,o;const{colorMode:l,getColor:h,getFillingColor:d}=t,{sameColorList:c}=e;let u,p,g=t.colorList,f=e.fillingColorList;if(l==="ordinal"){const _=s.map(m=>h(m));if(u=m=>new Vo().domain(_).range(g).scale(m),d&&(((n=i.colorField)===null||n===void 0?void 0:n.field)!==((r=i.fillingColorField)===null||r===void 0?void 0:r.field)||!c)){const m=s.map(y=>d(y));p=y=>new Vo().domain(m).range(f).scale(y)}}else{g.length===1&&(g=[g[0],g[0]]);const _=new Fr().domain(Ud(h,s)).range(g);if(u=m=>_.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)){f.length===1&&(f=[f[0],f[0]]);const m=new Fr().domain(Ud(d,s)).range(f);p=y=>m.scale(y)}}Object.assign(t,{colorScale:u,fillingColorScale:p})},_st=(s,t,e)=>{let{fontSizeRange:i}=t;const{getFontSize:n,getText:r}=t;let a;if(n){if(n&&i){const o=new Mf().domain(Ud(n,s)).range(i);a=l=>o.scale(n(l))}else if(n&&N(n)&&!i){const[l,h]=Ud(n,s),d=s.map(p=>({text:r(p),value:n(p),weight:h===l?1:(n(p)-l)/(h-l)})),c=JP(d,e,!0);i=[~~(.5*c),~~c];const u=new Mf().domain(Ud(n,s)).range(i);a=p=>u.scale(n(p))}}else{const o=s.map(h=>({text:r(h)})),l=JP(o,e,!1);a=ist(l)}Object.assign(t,{getFontSize:n,fontSizeRange:i,fontSizeScale:a})},JP=(s,t,e)=>{const i=t.shapeArea,n=t.ratio,r=t.segmentation.regions,a=Math.ceil(Math.sqrt(i)/12),o=s.reduce((h,d)=>{const c=zD(d.text);return c{const g=zD(n(p));return g>l?u:u+g},0)/s.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 Ud=(s,t)=>{let e=1/0,i=-1/0;const n=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]},sn=s=>s?typeof s=="string"||typeof s=="number"?()=>s:N(s)?s:t=>t[s.field]:null,vst=(s,t,e,i)=>{if(!s.size||P(s.size[0])||P(s.size[1])||s.size[0]<=0||s.size[1]<=0)return Lt.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];if(s.size=[Math.ceil(s.size[0]),Math.ceil(s.size[1])],s.shape||So("WordcloudShape shape must be specified."),s.text||So("WordcloudShape text must be specified."),i!=null&&i.emit&&i.emit(I_.BEFORE_WORDCLOUD_SHAPE_LAYOUT),!t||t.length===0)return[];const n=new gst(s,i);return n.layout(t),n.unfinished()?{progressive:n}:n.output()},WD=()=>{Q.registerTransform("wordcloudShape",{transform:vst,markPhase:"beforeJoin"},!0)};class vu extends kh{constructor(){super(...arguments),this.type=H.wordCloud}}vu.type=H.wordCloud;const GD=()=>{w0(),Ln(),ID(),D.registerSeries(vu.type,vu)},yst=()=>{WD(),w0(),Ln(),ID(),D.registerSeries(vu.type,vu)};class yu extends kh{constructor(){super(...arguments),this.type=H.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(kh.mark.word,{groupKey:this._seriesField,support3d:!0,isSeriesMark:!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",tt.Series)}initAnimation(){var t,e;const i=(t=this._padding)!==null&&t!==void 0?t:{};this._wordMark&&this._wordMark.setAnimationConfig(Ht((e=D.getAnimationInKey("wordCloud3d"))===null||e===void 0?void 0:e(()=>{var n;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:(n=this._spec.depth_3d)!==null&&n!==void 0?n:l},r:l}}),Wt("word",this._spec,this._markAttributeContext)))}}yu.type=H.wordCloud3d;const ND=()=>{w0(),Ln(),LD(),D.registerSeries(yu.type,yu)},bst=()=>{WD(),w0(),Ln(),LD(),D.registerSeries(yu.type,yu)},xst=(s,t)=>{var e,i;const n=s.map(x=>Object.assign({},x));if(!n||n.length===0)return n;const{valueField:r,asTransformRatio:a,asReachRatio:o,asHeightRatio:l,asValueRatio:h,asNextValueRatio:d,asLastValueRatio:c,asLastValue:u,asCurrentValue:p,asNextValue:g,heightVisual:f=!1,isCone:_=!0,range:m}=t,y=n.reduce((x,A)=>Math.max(x,Number.parseFloat(A[r])||-1/0),-1/0),v=n.reduce((x,A)=>Math.min(x,Number.parseFloat(A[r])||1/0),1/0),b=[(e=m==null?void 0:m.min)!==null&&e!==void 0?e:v,(i=m==null?void 0:m.max)!==null&&i!==void 0?i:y];return n.forEach((x,A)=>{var T,k;const M=Number.parseFloat(x[r]),w=Number.parseFloat((T=n[A-1])===null||T===void 0?void 0:T[r]),C=Number.parseFloat((k=n[A+1])===null||k===void 0?void 0:k[r]),R=W(C*M)&&M!==0?C/M:0,I=W(M*w)&&w!==0?M/w:0;u&&(x[u]=w),g&&(x[g]=C),a&&(x[a]=R),o&&(x[o]=A===0?1:I),l&&(x[l]=f===!0?R:1/n.length),h&&(x[h]=M/b[1]),d&&(x[d]=A===n.length-1?_?0:x[h]:C/b[1]),c&&(x[c]=A===0?1:w/b[1]),p&&(x[p]=M)}),n},Sst=(s,t)=>{var e,i;const n=(i=(e=s[0])===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.map(r=>Object.assign({},r));return n&&n.length!==0&&(n.shift(),n.forEach(r=>{r[t.asIsTransformLevel]=!0})),n},Ast=`${bt}_FUNNEL_TRANSFORM_RATIO`,Nx=`${bt}_FUNNEL_REACH_RATIO`,kst=`${bt}_FUNNEL_HEIGHT_RATIO`,Np=`${bt}_FUNNEL_VALUE_RATIO`,QP=`${bt}_FUNNEL_LAST_VALUE_RATIO`,tE=`${bt}_FUNNEL_NEXT_VALUE_RATIO`,Tst=`${bt}_FUNNEL_LAST_VALUE`,Mst=`${bt}_FUNNEL_CURRENT_VALUE`,wst=`${bt}_FUNNEL_NEXT_VALUE`,eE=`${bt}_FUNNEL_TRANSFORM_LEVEL`,pr=20,ro=5,Cst="80%",Pst=0;class Est extends yn{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=(t,e)=>{var i,n,r;const a=this.series;return((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform"?"转化率":(n=this._getDimensionData(t))!==null&&n!==void 0?n:(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[Nx])).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:n,seriesFields:r}=this._seriesCacheInfo,a=n[n.length-1];return E(r[0])?t==null?void 0:t[r[0]]:t==null?void 0:t[a]}}}class UD extends Oi{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{points:[]})}}class bu extends UD{constructor(){super(...arguments),this.type=bu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}}bu.type="polygon";const $D=()=>{D.registerMark(bu.type,bu),nK(),E2()};class V1 extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel"),t.isTransform&&this._addMarkLabelSpec(t,"transform","transformLabel")}}class Rs extends Qo{constructor(){super(...arguments),this.type=H.funnel,this._funnelMarkName="funnel",this._funnelMarkType="polygon",this._transformMarkName="transform",this._transformMarkType="polygon",this.transformerConstructor=V1,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;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._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._spec.categoryField&&this.setSeriesField(this._spec.categoryField)}initData(){if(super.initData(),!this._data)return;Mt(this._dataSet,"funnel",xst),Mt(this._dataSet,"funnelTransform",Sst);const t=new $t(this._dataSet,{name:`${bt}_series_${this.id}_viewDataTransform`});t.parse([this.getViewData()],{type:"dataview"}),this._viewDataTransform=new ar(this._option,t)}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,n,r,a,o,l,h;super._statisticViewData(),this._data.getDataView().transform({type:"funnel",options:{valueField:this.getValueField(),isCone:this._spec.isCone,asCurrentValue:Mst,asTransformRatio:Ast,asReachRatio:Nx,asHeightRatio:kst,asValueRatio:Np,asNextValueRatio:tE,asLastValueRatio:QP,asLastValue:Tst,asNextValue:wst,range:{min:(e=(t=this._spec.range)===null||t===void 0?void 0:t.min)!==null&&e!==void 0?e:(n=(i=this.getViewDataStatistics().latestData)===null||i===void 0?void 0:i[this.getValueField()])===null||n===void 0?void 0:n.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:eE}})}initMark(){var t,e,i,n,r,a,o,l,h,d,c,u;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},Rs.mark.funnel),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:(t=this._theme)===null||t===void 0?void 0:t.funnel,morph:Xr(this._spec,this._funnelMarkName),defaultMorphElementKey:this._seriesField,groupKey:this._seriesField,isSeriesMark:!0,customShape:(e=this._spec.funnel)===null||e===void 0?void 0:e.customShape,stateSort:(i=this._spec.funnel)===null||i===void 0?void 0:i.stateSort,noSeparateStyle:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},Rs.mark.transform),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:(n=this._theme)===null||n===void 0?void 0:n.transform,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId(),customShape:(r=this._spec.transform)===null||r===void 0?void 0:r.customShape,stateSort:(a=this._spec.transform)===null||a===void 0?void 0:a.stateSort,noSeparateStyle:!0})),(l=(o=this._spec)===null||o===void 0?void 0:o.outerLabel)===null||l===void 0?void 0:l.visible){const{line:p}=(h=this._spec.outerLabel)!==null&&h!==void 0?h:{},{line:g}=(c=(d=this._theme)===null||d===void 0?void 0:d.outerLabel)!==null&&c!==void 0?c:{};this._funnelOuterLabelMark.label=this._createMark(Rs.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(Rs.mark.outerLabelLine,{themeSpec:g,markSpec:p,depend:[this._funnelOuterLabelMark.label],noSeparateStyle:!0})}}initTooltip(){this._tooltipHelper=new Est(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=>E(r[this._valueField]),fill:this.getColorAttribute()},"normal",tt.Series);const e=this._funnelTransformMark;e&&this.setMarkStyle(e,{points:r=>this.getPoints(r)},"normal",tt.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",tt.Series);const n=this._funnelOuterLabelMark.line;n&&i&&this.setMarkStyle(n,{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",tt.Series)}initLabelMarkStyle(t){var e,i;if(!t)return;const n=t.getTarget(),r=t.getComponent();n===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",tt.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&&n===this._funnelTransformMark&&(this._transformLabelMark=t,this.setMarkStyle(t,{text:a=>`${(100*lg(Nx).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",tt.Series))}initAnimation(){var t,e,i,n,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(Ht((n=D.getAnimationInKey("cartesianGroupClip"))===null||n===void 0?void 0:n({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),Wt("group",this._spec,this._markAttributeContext))),[(r=this._funnelOuterLabelMark)===null||r===void 0?void 0:r.label].forEach(h=>{h&&h.setAnimationConfig(Ht(D.getAnimationInKey("fadeInOut")(),Wt(h.name,this._spec,this._markAttributeContext)))}),[this._funnelMark,this._funnelTransformMark].forEach(h=>{h&&h.setAnimationConfig(Ht(D.getAnimationInKey("funnel")({},l),Wt(h.name,this._spec,this._markAttributeContext)))}),!((a=this._funnelOuterLabelMark)===null||a===void 0)&&a.line&&this._funnelOuterLabelMark.line.setAnimationConfig(Ht((o=D.getAnimationInKey("fadeInOut"))===null||o===void 0?void 0:o(),Wt("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 n,r;e?(n=this._shape==="rect"?this._getSecondaryAxisLength(t[QP])/2:this._getSecondaryAxisLength(t[Np])/2,r=this._getSecondaryAxisLength(t[Np])/2):(n=this._getSecondaryAxisLength(t[Np])/2,r=this._shape==="rect"?n:this._getSecondaryAxisLength(t[tE])/2);const{x:a,y:o}=this._getPositionByData(t),l=this._getPolygonPoints([a,o],n,r,n,r,i);return this._funnelAlign!=="center"&&this._adjustPoints(l),l}isTransformLevel(t){return!!(t!=null&&t[eE])}_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,n;const r=(n=(i=(e=this.getViewData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.find)===null||n===void 0?void 0:n.call(i,a=>a[this._categoryField]===t);return E(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,n=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=(n-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(),n=this._computeMinSize();return n+(i-n)*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[Is]===t[Is]);if(!E(i)||i<0)return{};const n=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+=n?-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,n,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-n},{x:o+a,y:l-r},{x:o+a,y:l+i}];case"right":return[{x:o+a,y:l-n},{x:o+a,y:l+n},{x:o-a,y:l+i},{x:o-a,y:l-i}];case"bottom":return[{x:o+e,y:l+a},{x:o-n,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+n,y:l-a},{x:o+r,y:l+a},{x:o-i,y:l+a}]}}_getPolygonCenter(t){if(this._isHorizontal()){const n=(t[0].x+t[3].x)/2,r=(t[0].y+t[3].y)/2;return{x:(n+(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,n;return this._isHorizontal()?(n="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)):(n="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][n]-=e,t[1][n]-=e,t[2][n]-=i,t[3][n]-=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(nt(i))return i;const n=this.getPoints(t);return i==="shapeSize"?this._isHorizontal()?Math.abs(n[3].x-n[0].x):(Math.abs(n[0].x-n[1].x)+Math.abs(n[2].x-n[3].x))/2:this._isHorizontal()?Math.abs(n[3].x-n[0].x):void 0}_computeOuterLabelPosition(t){var e,i;let n,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:n,y:r}=this._getPositionByData(t)),a==="left"?(n=0,o="left"):a==="right"?(n=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);n=h,r=d,a==="left"?(n-=ro,o="right"):a==="right"?(n+=ro,o="left"):a==="top"?(r-=ro,l="bottom"):a==="bottom"&&(r+=ro,l="top")}return{x:n,y:r,align:o,textBaseline:l}}_computeOuterLabelLimit(t){var e,i,n,r,a;if(this._isHorizontal())return this._getMainAxisLength(this.isTransformLevel(t));const o=this.getPoints(t),l=(Math.abs(o[0].x-o[1].x)+Math.abs(o[2].x-o[3].x))/2,h=this.getCategoryField(),d=(n=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct().getGroupGraphicItem().find(({attribute:g,type:f})=>{var _;return f==="text"&&((_=g.data)===null||_===void 0?void 0:_[h])===t[h]},!0))===null||n===void 0?void 0:n.AABBBounds,c=d?d.x2-d.x1:0,u=this._funnelOuterLabelMark.line?pr:0;let p=this.getLayoutRect().width-Math.max(l,c);return this._funnelAlign==="center"&&(p/=2),p-u-((a=(r=this._spec.outerLabel)===null||r===void 0?void 0:r.spaceWidth)!==null&&a!==void 0?a:ro)}_computeOuterLabelLinePosition(t){var e,i,n,r,a,o,l,h,d,c,u;const p=this.getCategoryField(),g=(a=(r=(n=(i=(e=this._funnelOuterLabelMark)===null||e===void 0?void 0:e.label)===null||i===void 0?void 0:i.getProduct())===null||n===void 0?void 0:n.elements)===null||r===void 0?void 0:r.find(M=>{var w;return((w=M.data[0])===null||w===void 0?void 0:w[p])===t[p]}))===null||a===void 0?void 0:a.getBounds(),f=(h=(l=(o=this._labelMark)===null||o===void 0?void 0:o.getComponent())===null||l===void 0?void 0:l.getProduct().getGroupGraphicItem().find(({attribute:M,type:w})=>{var C;return w==="text"&&((C=M.data)===null||C===void 0?void 0:C[p])===t[p]},!0))===null||h===void 0?void 0:h.AABBBounds,_=(d=this._spec.outerLabel)!==null&&d!==void 0?d:{};let m,y,v,b;if(this._isHorizontal()){const M=(c=_.spaceWidth)!==null&&c!==void 0?c:ro,w=this.getPoints(t),C=(Math.abs(w[0].y-w[1].y)+Math.abs(w[2].y-w[3].y))/2;return this._spec.outerLabel.position==="top"||this._funnelAlign==="bottom"?(v=this._getPolygonCenter(w).y-C/2-M,b=_.alignLabel!==!1?(g==null?void 0:g.y2)+M:v-M,m=this._getPolygonCenter(w).x,v-b{$D(),Ln(),zh(),D.registerSeries(Rs.type,Rs),D.registerAnimation("funnel",(s,t)=>Object.assign({appear:t==="clipIn"?void 0:{type:"fadeIn"}},g0)),OQ(),Yr()};class xu extends UD{constructor(){super(...arguments),this.type=xu.type}}xu.type="pyramid3d";const YD=()=>{D.registerMark(xu.type,xu),ZX(),E2()};class XD extends V1{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel3d"),t.isTransform&&this._addMarkLabelSpec(t,"transform3d","transformLabel")}}class tr extends Rs{constructor(){super(...arguments),this.type=H.funnel3d,this._funnelMarkName="funnel3d",this._funnelMarkType="pyramid3d",this._transformMarkName="transform3d",this._transformMarkType="pyramid3d",this.transformerConstructor=XD}initMark(){var t,e,i,n,r,a,o,l;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},tr.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({},tr.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()})),(n=(i=this._spec)===null||i===void 0?void 0:i.outerLabel)===null||n===void 0?void 0:n.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(tr.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(tr.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),n=Math.max(Math.abs(i[0].x-i[1].x),Math.abs(i[2].x-i[3].x));return(this._computeMaxSize()-n)/2}},"normal",tt.Series)}initLabelMarkStyle(t){var e,i;super.initLabelMarkStyle(t),this.setMarkStyle(t,{z:n=>{if(this._isHorizontal())return 0;const r=this.getPoints(n),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",tt.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())}}tr.type=H.funnel3d,tr.mark=BO,tr.transformerConstructor=XD;const Bst=()=>{YD(),Ln(),zh(),D.registerSeries(tr.type,tr)},O_=(s,t)=>{const e=(s-t[0])/(t[1]-t[0]||1);return Math.max(0,Math.min(1,e))},D_=s=>{const t=s.mark.elements.filter(i=>i.diffState===Zt.update),e=qe(t.map(i=>{var n;return(n=i==null?void 0:i.data)===null||n===void 0?void 0:n[0].depth}));return t.filter(i=>{var n;return((n=i==null?void 0:i.data)===null||n===void 0?void 0:n[0].depth)===e})},iE=(s,t,e)=>mt(s)?[t,e]:[qe(s.map(i=>1*i.getGraphicAttribute("startAngle",!1))),ze(s.map(i=>1*i.getGraphicAttribute("endAngle",!1)))],Ist=s=>({channel:{startAngle:{from:(t,e)=>{const{startAngle:i,endAngle:n}=s.animationInfo(),r=D_(e),a=iE(r,i,n);return O_(t.startAngle,a)*(n-i)+i},to:t=>t.startAngle},endAngle:{from:(t,e)=>{const{startAngle:i,endAngle:n}=s.animationInfo(),r=D_(e),a=iE(r,i,n);return O_(t.endAngle,a)*(n-i)+i},to:t=>t.endAngle},outerRadius:{from:t=>t.innerRadius,to:t=>t.outerRadius},innerRadius:{from:t=>t.innerRadius,to:t=>t.innerRadius}}}),nE=s=>[qe(s.map(t=>1*t.getGraphicAttribute("startAngle",!1))),ze(s.map(t=>1*t.getGraphicAttribute("endAngle",!1)))],sE=s=>({channel:{startAngle:{from:(t,e)=>e.getGraphicAttribute("startAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:n}=s.animationInfo(),r=D_(e),a=nE(r);return O_(e.getGraphicAttribute("startAngle",!1),a)*(n-i)+i}},endAngle:{from:(t,e)=>e.getGraphicAttribute("endAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:n}=s.animationInfo(),r=D_(e),a=nE(r);return O_(e.getGraphicAttribute("endAngle",!1),a)*(n-i)+i}},outerRadius:{from:(t,e)=>e.getGraphicAttribute("outerRadius",!1),to:()=>s.animationInfo().innerRadius},innerRadius:{from:(t,e)=>e.getGraphicAttribute("innerRadius",!1),to:()=>s.animationInfo().innerRadius}}}),Lst=(s,t)=>{switch(t){case"fadeIn":return{type:"fadeIn"};case"growAngle":return{type:"growAngleIn"};default:return{type:"growRadiusIn"}}},Ost=()=>{D.registerAnimation("sunburst",(s,t)=>({appear:Lst(s,t),enter:Ist(s),exit:sE(s),disappear:sE(s)}))},W1=(s,t=[],e)=>{const i=(e==null?void 0:e.maxDepth)>=0;return s.forEach(n=>{(!i||n.depth<=e.maxDepth)&&(t.push(e!=null&&e.callback?e.callback(n):n),n.children&&(i&&n.depth===e.maxDepth?(n.children=null,n.isLeaf=!0):W1(n.children,t,e)))}),t};function Dst(s,t,e,i,n){const r=s.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 T=r[d];return T.x0=p,T.y0=g,T.x1=f,void(T.y1=_)}const m=l[d],y=u/2+m;let v=d+1,b=c-1;for(;v>>1;l[T]_-g){const T=u?(p*A+f*x)/u:f;h(d,v,x,p,g,T,_),h(v,c,A,T,g,f,_)}else{const T=u?(g*A+_*x)/u:_;h(d,v,x,p,g,f,T),h(v,c,A,p,T,f,_)}};h(0,a,s.value,t,e,i,n)}function C0(s,t,e,i,n,r={x0:"x0",x1:"x1",y0:"y0",y1:"y1"}){const a=s.children;let o,l=-1;const h=a.length,d=s.value&&(i-t)/s.value;for(;++lm&&(m=h),x=f*f*b,y=Math.max(m/x,x/_),y>v){f-=h;break}v=y}l=Object.assign({},t,{value:f,children:o.slice(d,c)}),a.push(l),p(t,e,i,n,r)=>{zst(s,t,e,i,n,r)},P0=(s,t,e=0,i=-1,n,r)=>{let a=0,o=i??-1,l=e;return s.forEach((h,d)=>{var c,u;const p={flattenIndex:++o,key:r?r(h):`${(c=n==null?void 0:n.key)!==null&&c!==void 0?c:""}-${d}`,maxDepth:-1,depth:e,index:d,value:h.value,isLeaf:!0,datum:n?n.datum.concat(h):[h],parentKey:n==null?void 0:n.key};if(!((u=h.children)===null||u===void 0)&&u.length){p.children=[],p.isLeaf=!1;const g=P0(h.children,p.children,e+1,o,p,r);p.value=P(h.value)?g.sum:Math.max(g.sum,ho(h.value)),o=g.flattenIndex,l=Math.max(g.maxDepth,l)}else p.isLeaf=!0,p.value=ho(h.value);a+=Math.abs(p.value),t.push(p)}),{sum:a,maxDepth:l,flattenIndex:o}},wl=(s,t,e,i)=>{let n=i;return s.forEach((r,a)=>{var o;n=t(r,a,e,n),!((o=r.children)===null||o===void 0)&&o.length&&(n=wl(r.children,t,r,n))}),i},pg=(s,t,e,i)=>{let n=i;return s.forEach((r,a)=>{var o;!((o=r.children)===null||o===void 0)&&o.length&&(n=pg(r.children,t,r,n)),n=t(r,a,e,n)}),n},rE={binary:Dst,dice:C0,slice:G1,sliceDice:Fst};class E0{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=G(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=G(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=G(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=G(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 p=this._getGapWidthByDepth(r.depth+1);p>0&&(o-=p/2,h+=p/2,l-=p/2,d+=p/2),this._splitNode(r,o,l,h,d)}},this.options=Object.assign({},E0.defaultOpionts,t);const i=this.options.nodeKey,n=N(i)?i:i?Os(i):null;this._getNodeKey=n,this._splitNode=this.options.splitType==="squarify"?Hst(this.options.aspectRatio):(e=rE[this.options.splitType])!==null&&e!==void 0?e:rE.binary,this._maxDepth=-1}layout(t,e){var i;if(!t||!t.length)return[];const n="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=P0(t,r,0,-1,null,this._getNodeKey);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:n.x0,x1:n.x1,y0:n.y0,y1:n.y1,children:r},l=n.width*n.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(nt(e)&&e>=0&&t.depth>=e)return!1;const i=this.options.minChildrenVisibleArea;if(nt(i)&&Math.abs((t.x1-t.x0)*(t.y1-t.y0)){var n;!((n=i==null?void 0:i.children)===null||n===void 0)&&n.length?this._layout(i):this._layoutNode(i)})}}E0.defaultOpionts={aspectRatio:(1+Math.sqrt(5))/2,gapWidth:0,labelPadding:0,labelPosition:"top",splitType:"binary",minVisibleArea:10};const jst=(s,t)=>{const e=new E0(s).layout(t,"width"in s?{width:s.width,height:s.height}:{x0:s.x0,x1:s.x1,y0:s.y0,y1:s.y1});if(s.flatten){const i=[];return W1(e,i,{maxDepth:s==null?void 0:s.maxDepth}),i}return e},Vst={x0:"startAngle",x1:"endAngle",y0:"innerRadius",y1:"outerRadius"};class Su{constructor(t){this._layoutNode=n=>{if(n.maxDepth=this._maxDepth,n.children){const r=this._parsedInnerRadius[n.depth+1],a=this._parsedOutterRadius[n.depth+1];C0(n,n.startAngle,Math.min(r,a),n.endAngle,Math.max(r,a),Vst);const o=G(this.options.label)?this.options.label[n.depth+1]:this.options.label;n.children.forEach(l=>{if(l.x=this._parsedCenter[0],l.y=this._parsedCenter[1],o)return this._layoutLabel(l,ge(o)?{align:"center",rotate:"radial"}:o)})}},this.options=t?Object.assign({},Su.defaultOpionts,t):Object.assign({},Su.defaultOpionts);const e=this.options.nodeKey,i=N(e)?e:e?Os(e):null;this._getNodeKey=i,this._maxDepth=-1}_parseRadius(t,e){const i=t.x0+Gn(this.options.center[0],t.width),n=t.y0+Gn(this.options.center[1],t.height),r=Math.min(t.width/2,t.height/2),a=this.options.innerRadius,o=this.options.outerRadius,l=G(a),h=l?a.map(g=>Gn(g,r)):Gn(a,r),d=G(o),c=this.options.gapRadius,u=d?o.map(g=>Gn(g,r)):Gn(o,r),p=HE(0,e+1);if(l)this._parsedInnerRadius=p.map((g,f)=>{const _=h[f];return P(_)?r:_}),this._parsedOutterRadius=p.map((g,f)=>{var _;return d?u[f]:fP(u[f])?r:u[f]),this._parsedInnerRadius=p.map((g,f)=>{var _;return f===0?h:this._parsedOutterRadius[f-1]-(G(c)?(_=c[f])!==null&&_!==void 0?_:0:c)});else{const g=Gn(a,r),f=(u-g)/(e+1);this._parsedInnerRadius=p.map((_,m)=>g+m*f),this._parsedOutterRadius=p.map((_,m)=>{var y;return this._parsedInnerRadius[m]+f-(G(c)?(y=c[m])!==null&&y!==void 0?y:0:c)})}this._parsedCenter=[i,n],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 n=[],r=P0(t,n,0,-1,null,this._getNodeKey);return this._parseRadius(i,r.maxDepth),this._maxDepth=r.maxDepth,this._layout(n,{flattenIndex:-1,maxDepth:-1,key:"-1",depth:-1,index:-1,value:r.sum,datum:null,children:n,startAngle:this.options.startAngle,endAngle:this.options.endAngle}),n}_layout(t,e){this._layoutNode(e),t.forEach(i=>{var n;!((n=i==null?void 0:i.children)===null||n===void 0)&&n.length?this._layout(i.children,i):this._layoutNode(i)})}_layoutLabel(t,e){var i;const n=(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=gn({x:this._parsedCenter[0],y:this._parsedCenter[1]},r,n);if(t.label={x:a.x,y:a.y,textBaseline:"middle"},e.rotate==="tangential")t.label.angle=n-Math.PI/2,t.label.textAlign="center",t.label.maxLineWidth=Math.abs(t.endAngle-t.startAngle)*r;else{const o=n%(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)}}}Su.defaultOpionts={startAngle:Math.PI/2,endAngle:-3*Math.PI/2,center:["50%","50%"],gapRadius:0,innerRadius:0,outerRadius:"70%"};const Wst=1664525,Gst=1013904223,aE=4294967296;function Nst(s=1){let t=s;return()=>(t=(Wst*t+Gst)%aE)/aE}function Ust(s,t){let e=0;const i=zE(Array.from(s),t),n=i.length;let r,a,o=[];for(;e0&&e*e>i*i+n*n}function Xv(s,t){for(let e=0;e1e-6?(C+Math.sqrt(C*C-4*w*R))/(2*w):R/C);return{x:i+A+T*I,y:n+k+M*I,radius:I}}function oE(s,t,e){const i=s.x-t.x;let n,r;const a=s.y-t.y;let o,l;const h=i*i+a*a;h?(r=t.radius+e.radius,r*=r,l=s.radius+e.radius,l*=l,r>l?(n=(h+l-r)/(2*h),o=Math.sqrt(Math.max(0,l/h-n*n)),e.x=s.x-n*i-o*a,e.y=s.y-n*a+o*i):(n=(h+r-l)/(2*h),o=Math.sqrt(Math.max(0,r/h-n*n)),e.x=t.x+n*i-o*a,e.y=t.y+n*a+o*i)):(e.x=t.x+e.radius,e.y=t.y)}function lE(s,t){const e=s.radius+t.radius-1e-6,i=t.x-s.x,n=t.y-s.y;return e>0&&e*e>i*i+n*n}function hE(s){const t=s._,e=s.next._,i=t.radius+e.radius,n=(t.x*e.radius+e.x*t.radius)/i,r=(t.y*e.radius+e.y*t.radius)/i;return n*n+r*r}function $p(s){return{_:s,next:null,prev:null}}function Kst(s,t){const e=(s=V(s)).length;if(!e)return 0;let i=s[0];if(i.x=0,i.y=0,e===1)return i.radius;const n=s[1];if(i.x=-n.radius,n.x=i.radius,n.y=0,e===2)return i.radius+n.radius;let r=s[2];oE(n,i,r);let a,o,l,h,d,c,u,p=$p(i),g=$p(n),f=$p(r);p.next=g,f.prev=g,g.next=f,p.prev=f,f.next=p,g.prev=p;for(let m=3;mt.padding:G(t==null?void 0:t.padding)?n=>{var r;return(r=t.padding[n.depth+1])!==null&&r!==void 0?r:0}:()=>0,this._maxDepth=-1}layout(t,e){var i;const n="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=P0(t,r,0,-1,null,this._getNodeKey);this._maxDepth=a.maxDepth;const o=Nst(),l={flattenIndex:-1,maxDepth:-1,key:"root",depth:-1,index:-1,value:a.sum,datum:null,children:r,x:n.x0+n.width/2,y:n.y0+n.height/2},{nodeSort:h,setRadius:d,padding:c,includeRoot:u}=(i=this.options)!==null&&i!==void 0?i:{};if(h!==!1){const p=N(h)?this.options.nodeKey:Au.defaultOpionts.nodeSort;wl([l],g=>{g.children&&g.children.length&&g.children.sort(p)})}if(d)wl([l],dE(d)),pg([l],Kv(this._getPadding,.5,o)),wl([l],cE(1,this._maxDepth));else{const p=Math.min(n.width,n.height);wl([l],dE(Au.defaultOpionts.setRadius)),pg([l],Kv(S4,1,o)),c&&pg([l],Kv(this._getPadding,l.radius/p,o)),wl([l],cE(p/(2*l.radius),this._maxDepth))}return u?[l]:r}}Au.defaultOpionts={setRadius:s=>Math.sqrt(s.value),padding:0,nodeSort:(s,t)=>t.value-s.value};const qst=()=>{Q.registerTransform("treemap",{transform:jst,markPhase:"beforeJoin"},!0)},Qu=(s,t={})=>{if(!s)return[];const e=[];return W1(s,e,t),e},Zst=(s,t)=>{if(!s)return s;const e=t(),{width:i,height:n}=e;return new Su(e).layout(s,{width:i,height:n})},Jst=10;class Qst extends yn{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}var xa;(function(s){s.DrillDown="drillDown",s.DrillUp="drillUp"})(xa||(xa={}));const trt=(s,t)=>{const e=t.info(),i=t.keyField(),n=e==null?void 0:e.key;if(P(n))return s;if(e.type===xa.DrillDown){const r=r2(s,n,i,"children");return V(r)}if(e.type===xa.DrillUp){const r=a2(s,n,i,"children");if(r)return V(r)}return s};class N1{_getDrillTriggerEvent(t){var e;const{mode:i}=this._drillParams;return(e=_r(i))===null||e===void 0?void 0:e[t]}_hideTooltip(){const t=this.getChart().getComponentsByType(Y.tooltip)[0];t&&t.hideTooltip()}initDrillable(t){this._drillParams=t}initDrillableData(t){const{getRawData:e}=this._drillParams;Mt(t,"drillFilter",trt),e().transform({type:"drillFilter",options:{info:()=>this._drillInfo,keyField:()=>this._drillParams.drillField()}})}bindDrillEvent(){const{event:t,getRawData:e,drillField:i}=this._drillParams,n=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[n]))return void this.drillUp();this._hideTooltip();const h=r.datum[n],d=(l=(o=this._drillInfo)===null||o===void 0?void 0:o.path)!==null&&l!==void 0?l:[],c=NJ(e().rawData,h,n,"children");d[d.length-1]===c[c.length-1]?this.drillUp():this.drillDown(c)})}drillDown(t=[]){const{getRawData:e,event:i}=this._drillParams;if(!G(t)||mt(t))return t;const n=t[t.length-1];return this._drillInfo={key:n,path:t,type:xa.DrillDown},e().reRunAllTransform(),i.emit(ft.drill,{value:{path:t,type:xa.DrillDown},model:this}),t}drillUp(){var t,e;const{getRawData:i,event:n}=this._drillParams,r=(e=(t=this._drillInfo)===null||t===void 0?void 0:t.path)!==null&&e!==void 0?e:[];if(!G(r)||mt(r))return r;const a=r.pop();return this._drillInfo={key:a,path:r,type:xa.DrillUp},i().reRunAllTransform(),n.emit(ft.drill,{value:{path:r,type:xa.DrillUp},model:this}),r}}class Fa extends Zu{constructor(){super(...arguments),this.type=H.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:Br),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:Is},getRawData:()=>this.getRawData()}),this._startAngle=Qt(this._spec.startAngle),this._endAngle=Qt(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),Mt(this._dataSet,"sunburstLayout",Zst),Mt(this._dataSet,"flatten",Qu),t.transform({type:"sunburstLayout",options:()=>{const{innerRadius:e,outerRadius:i,gap:n,label:r}=this._computeLevel();return{nodeKey:this._categoryField,width:this.getLayoutRect().width,height:this.getLayoutRect().height,center:[E(this._centerX)?this._centerX:this.getLayoutRect().width/2,E(this._centerY)?this._centerY:this.getLayoutRect().height/2],startAngle:this._startAngle,endAngle:this._endAngle,innerRadius:e,outerRadius:i,gapRadius:n,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:ou,operations:["max","min","values"]},{key:Br,operations:["values"]}])}_addDataIndexAndKey(){const t=this.getRawData();P(t==null?void 0:t.dataSet)||(Mt(t.dataSet,"addVChartProperty",Fh),t.transform({type:"addVChartProperty",options:{beforeCall:E1.bind(this),call:v0}}))}initMark(){this._initArcMark(),this._initLabelMark()}initMarkStyle(){this._initArcMarkStyle(),this._initLabelMarkStyle()}_initArcMark(){var t,e;if(this._sunburst.visible===!1)return;const i=this._createMark(Fa.mark.sunburst,{isSeriesMark:!0,customShape:(t=this._spec.sunburst)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.sunburst)===null||e===void 0?void 0:e.stateSort});this._sunburstMark=i}_initArcMarkStyle(){P(this._sunburstMark)||this.setMarkStyle(this._sunburstMark,{x:t=>t.x+(E(this._offsetX)?this._offsetX:0),y:t=>t.y+(E(this._offsetY)?this._offsetY:0),outerRadius:t=>t.outerRadius,innerRadius:t=>t.innerRadius,startAngle:t=>t.startAngle,endAngle:t=>t.endAngle,fill:this.getColorAttribute()},lt.STATE_NORMAL,tt.Series)}_initLabelMark(){if(this._label.visible!==!0)return;const t=this._createMark(Fa.mark.label,{isSeriesMark:!1});this._labelMark=t}_initLabelMarkStyle(){P(this._labelMark)||this.setMarkStyle(this._labelMark,{visible:t=>{var e;const i=this._labelAutoVisible;return Et(i)&&i.enable===!0?(t.endAngle-t.startAngle)*(t.outerRadius-t.innerRadius)>((e=i==null?void 0:i.circumference)!==null&&e!==void 0?e:Jst):this._spec.label.visible},x:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.x)+(E(this._offsetX)?this._offsetX:0)},y:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.y)+(E(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},lt.STATE_NORMAL,tt.Series)}initTooltip(){this._tooltipHelper=new Qst(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(V(this.__innerRadius))[0],outerRadius:this._computeRadius(V(this.__outerRadius))[0],startAngle:V(this._startAngle)[0],endAngle:V(this._endAngle)[0]})},n=(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(Ht((a=D.getAnimationInKey("sunburst"))===null||a===void 0?void 0:a(i,n),Wt(r.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(r=>{var a;r.setAnimationConfig(Ht((a=D.getAnimationInKey("fadeInOut"))===null||a===void 0?void 0:a(),Wt(r.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.drill&&this.bindDrillEvent()}onLayoutEnd(t){super.onLayoutEnd(t),this._rawData.reRunAllTransform()}_computeRadius(t){if(G(t))return t.map(n=>{const{width:r,height:a}=this.getRegion().getLayoutRect();return Math.min(r/2,a/2)*n});const{width:e,height:i}=this.getRegion().getLayoutRect();return Math.min(e/2,i/2)*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]}}Fa.type=H.sunburst,Fa.mark=jO,ei(Fa,N1);const ert=()=>{D.registerSeries(Fa.type,Fa),dl(),Ln(),Yr(),Ost()},irt=(s,t)=>{if(!s)return s;const e=t(),{width:i,height:n}=e;return i===0||n===0?s:new Au(e).layout(s,{width:i,height:n})};class nrt extends yn{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}const srt=s=>s==="fadeIn"?{type:"fadeIn"}:{type:"growRadiusIn"},rrt=()=>{D.registerAnimation("circlePacking",(s,t)=>({appear:srt(t),enter:{type:"growRadiusIn"},exit:{type:"growRadiusOut"},disappear:{type:"growRadiusOut"}}))};class za extends us{constructor(){super(...arguments),this.type=H.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:Br),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:Is},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),Mt(this._dataSet,"circlePackingLayout",irt),Mt(this._dataSet,"flatten",Qu),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)||(Mt(t.dataSet,"addVChartProperty",Fh),t.transform({type:"addVChartProperty",options:{beforeCall:E1.bind(this),call:v0}}))}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(za.mark.circlePacking,{isSeriesMark:!0,customShape:(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},lt.STATE_NORMAL,tt.Series)}_initLabelMark(){var t;if(((t=this._label)===null||t===void 0?void 0:t.visible)===!1)return;const e=this._createMark(za.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"},lt.STATE_NORMAL,tt.Series)}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:ou,operations:["max","min","values"]},{key:Br,operations:["values"]}])}initTooltip(){this._tooltipHelper=new nrt(this),this._tooltipHelper.updateTooltipSpec(),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 n;i.setAnimationConfig(Ht((n=D.getAnimationInKey("circlePacking"))===null||n===void 0?void 0:n(void 0,e),Wt(i.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(i=>{var n;i.setAnimationConfig(Ht((n=D.getAnimationInKey("scaleInOut"))===null||n===void 0?void 0:n(),Wt(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]}}za.type=H.circlePacking,za.mark=GO,ei(za,N1);const art=()=>{D.registerSeries(za.type,za),dl(),Ln(),f0(),rrt()},ZD=s=>{let t=0;return s.forEach((e,i)=>{var n;P(e.value)&&(!((n=e.children)===null||n===void 0)&&n.length?e.value=ZD(e.children):e.value=0),t+=Math.abs(e.value)}),t};function uE(s){return s.depth}function pE(s,t){return t-1-s.endDepth}function ort(s,t){return s.sourceLinks.length?s.depth:t-1}function lrt(s,t,e){return s.targetLinks.length?s.depth:s.sourceLinks.length?qe(s.sourceLinks.map(i=>e[i.target].depth))-1:0}const Yp=(s,t)=>(s==null?void 0:s.y0)-(t==null?void 0:t.y0),gE=(s,t)=>{if(P(s.value))return null;const e=(t?s.targetLinks:s.sourceLinks).reduce((i,n)=>(P(n.value)?i.count+=1:i.sum+=n.value,i),{sum:0,count:0});return e.count>0?(s.value-e.sum)/e.count:null},hrt={left:uE,right:pE,justify:ort,center:lrt,start:uE,end:pE};class tp{constructor(t){this._ascendingSourceBreadth=(n,r)=>Yp(this._nodeMap[n.source],this._nodeMap[r.source])||n.index-r.index,this._ascendingTargetBreadth=(n,r)=>Yp(this._nodeMap[n.target],this._nodeMap[r.target])||n.index-r.index,this.options=Object.assign({},tp.defaultOptions,t);const e=this.options.nodeKey,i=N(e)?e:e?Os(e):null;this._getNodeKey=i,this._logger=Lt.getInstance(),this._alignFunc=N(this.options.setNodeLayer)?n=>this.options.setNodeLayer(n.datum):hrt[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)};eM(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 n=this.computeNodeLinks(t),r=n.nodes;let a=n.links;if(this._nodeMap=n.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);return 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)),eM(this.options.direction)&&(r.forEach(l=>{const h=l.y0,d=l.y1;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})),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=[],n={},r={},a=[];ZD(t);const o=(l,h,d)=>{l.forEach((c,u)=>{const p=this._getNodeKey?this._getNodeKey(c):d?`${d[d.length-1].key}-${u}`:`${h}-${u}`,g=P(c.value)?0:ho(c.value);if(n[p])n[p].value=void 0;else{const f={depth:h,datum:c,index:u,key:p,value:g,sourceLinks:[],targetLinks:[]};n[p]=f,e.push(f)}d&&a.push({source:d[d.length-1].key,target:p,value:g,parents:d}),c.children&&c.children.length&&o(c.children,h+1,d?d.concat([n[p]]):[n[p]])})};return o(t,0,null),a.forEach((l,h)=>{const d=`${l.source}-${l.target}`;if(r[d])return r[d].value+=ho(l.value),void r[d].datum.push(l);const c={index:h,key:`${l.source}-${l.target}`,source:l.source,target:l.target,datum:[l],value:l.value,parents:l.parents.map(u=>u.key)};i.push(c),n[l.source].sourceLinks.push(c),n[l.target].targetLinks.push(c),r[d]=c}),{nodes:e,links:i,nodeMap:n}}computeSourceTargetNodeLinks(t){const e=[],i=[],n={};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:[]};n[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&&(!n[a.source]||!n[a.target]))return;t.nodes||!l||n[a.source]||(n[a.source]={value:void 0,depth:-1,index:e.length,key:a.source,datum:null,sourceLinks:[],targetLinks:[]},e.push(n[a.source])),t.nodes||!h||n[a.target]||(n[a.target]={value:void 0,depth:-1,index:e.length,key:a.target,datum:null,sourceLinks:[],targetLinks:[]},e.push(n[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&&n[a.source].sourceLinks.push(d),h&&n[a.target].targetLinks.push(d)}),this.options.divideNodeValueToLink&&r.length&&r.forEach(a=>{const o=[gE(n[a.source]),gE(n[a.target],!0)].filter(l=>!P(l));o.length&&(a.value=qe(o))}),{nodeMap:n,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 n=e.links;if(this.options.linkSortBy)for(let r=0,a=i.length;rr.targetLinks.length||r.sourceLinks.length)),{nodes:i,links:n,nodeMap:e.nodeMap}}computeNodeValues(t){for(let e=0,i=t.length;e{var o;return r+((o=ho(a.value))!==null&&o!==void 0?o:0)},0),n.targetLinks.reduce((r,a)=>{var o;return r+((o=ho(a.value))!==null&&o!==void 0?o:0)},0))}}computeNodeDepths(t){const e=t.length;let i,n,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,n,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,n=this.options.minStepWidth,r=this._viewBox.width;let a=null,o=null,l=!1;if(at(e)){const d=Ye(parseFloat(e.replace("%",""))/100,0,1);let c=r/(this._maxDepth-1+d);n>0&&(c=Math.max(n,c)),a=c*d,o=c*(1-d),l=!0}else if(nt(e)){if(a=e,nt(i))o=i;else if(P(i)){let d=(r-e)/(this._maxDepth-1);n>0&&(d=Math.max(n,d)),o=d-e}l=!0}else N(e)&&nt(i)&&(o=i);const h=[];for(let d=0,c=t.length;d{const f=g.reduce((m,y)=>m+y.value,0),_=g.reduce((m,y)=>m+this.options.nodeGap(y),0);return Math.min(p,(this._viewBox.height-_)/f)},1/0);else{const p=t.reduce((f,_)=>Math.max(f,_.length),0),g=Math.min(r>0?Math.max(this.options.nodeGap,r):this.options.nodeGap,this._viewBox.height/p);o=()=>g,this._gapY=g,this.options.equalNodeHeight?l=this._viewBox.height/p-g:a=t.reduce((f,_)=>{const m=_.reduce((y,v)=>y+v.value,0);return Math.min(f,(this._viewBox.height-(_.length-1)*g)/m)},1/0)}const h=this.options.gapPosition==="start",d=!h&&this.options.gapPosition!=="end",c=nt(this.options.nodeHeight)?p=>this.options.nodeHeight:N(this.options.nodeHeight)?this.options.nodeHeight:l>0?p=>l:p=>Math.max(p.value*a,r,0),u=nt(this.options.linkHeight)?()=>this.options.linkHeight:N(this.options.linkHeight)?this.options.linkHeight:(p,g,f)=>Math.max(g.value?f*p.value/g.value:0,n,0);for(let p=0,g=t.length;p0){if(this.options.crossNodeAlign!=="start")if(this.options.crossNodeAlign==="end")for(let b=0,x=f.length;b1&&(v/=f.length-1,m+v>0)){m+=v;for(let b=1,x=f.length;b0))continue;const u=(d/c-h.y0)*e;h.y0+=u,h.y1+=u,this.reorderNodeLinks(h)}P(this.options.nodeSortBy)&&a.sort(Yp),this.resolveCollisions(a,i)}}relaxRightToLeft(t,e,i){for(let n=t.length-2;n>=0;--n){const r=t[n];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(Yp),this.resolveCollisions(r,i)}}resolveCollisions(t,e){const i=t.length>>1,n=t[i];this.resolveCollisionsBottomToTop(t,n.y0-this._gapY,i-1,e),this.resolveCollisionsTopToBottom(t,n.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,n){for(;i1e-6&&(r.y0+=a,r.y1+=a),e=r.y1+this._gapY}}resolveCollisionsBottomToTop(t,e,i,n){for(;i>=0;--i){const r=t[i],a=(r.y1-e)*n;a>1e-6&&(r.y0-=a,r.y1-=a),e=r.y0-this._gapY}}targetTop(t,e){let i,n,r,a=t.y0-(t.sourceLinks.length-1)*this._gapY/2;for(i=0,n=t.sourceLinks.length;i{const e=new tp(s).layout(Array.isArray(t)?t[0]:t,"width"in s?{width:s.width,height:s.height}:{x0:s.x0,x1:s.x1,y0:s.y0,y1:s.y1});return e?[e]:[]},crt=()=>{Q.registerTransform("sankey",{transform:drt,markPhase:"beforeJoin"},!0)},JD=(s,t,e)=>{t.forEach(i=>{P(i[e])||s.add(i[e]),i.children&&i.children.length>0&&JD(s,i.children,e)})},urt=s=>{var t;if(!s||!G(s))return[];if(s.length>1){const e={links:[],nodes:[]};return s.forEach(i=>{i.id!=="links"&&i.id!=="nodes"||(e[i.id]=i.values)}),[e]}return!((t=s[0])===null||t===void 0)&&t.latestData?s[0].latestData:s},prt=(s,t)=>{if(!s||!(t!=null&&t.view)||!s.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=s[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 n=new tp(t),r=[];return r.push(n.layout(i,e)),r},grt=s=>{var t,e;return s&&G(s)&&(!((t=s[0])===null||t===void 0)&&t.latestData)&&s[0].latestData.length&&s[0].latestData[0]&&(e=s[0].latestData[0].nodes)!==null&&e!==void 0?e:[]},frt=s=>{var t,e;return s&&G(s)&&(!((t=s[0])===null||t===void 0)&&t.latestData)&&s[0].latestData.length&&s[0].latestData[0]&&(e=s[0].latestData[0].links)!==null&&e!==void 0?e:[]};class _rt extends yn{getDefaultTooltipPattern(t,e){switch(t){case"mark":return{visible:!0,activeType:t,title:{key:void 0,value:i=>{if(i.source){if(nt(i.source)){const n=this.series.getSeriesKeys();return n[i.source]+" => "+n[i.target]}return i.source+" => "+i.target}return i.datum?i.datum[this.series.getSpec().categoryField]:i.key},hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:i=>i.value,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this._getDimensionData,hasShape:!1},n=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{n.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:n}}}return null}}const mrt=(s,t=!0)=>({type:s.direction==="horizontal"?"growWidthIn":"growHeightIn",options:{overall:t&&s.growFrom(),orient:"positive"}}),vrt=(s,t)=>t==="fadeIn"?{type:"fadeIn"}:mrt(s),yrt=s=>s==="fadeIn"?{type:"fadeIn"}:{type:"linkPathGrowIn"},brt=()=>{D.registerAnimation("sankeyNode",(s,t)=>Object.assign({appear:vrt(s,t)},g0)),D.registerAnimation("sankeyLinkPath",(s,t)=>({appear:yrt(t),enter:{type:"linkPathGrowIn"},exit:{type:"linkPathGrowOut"},disappear:{type:"linkPathGrowOut"}}))};class ku extends Oi{constructor(){super(...arguments),this.type=ku.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(),n=this.getStyle("direction");this._product=e.glyph("linkPath",t??e.rootMark).id(i).configureGlyph({direction:n}),this._compiledProductId=i}}ku.type="linkPath";const xrt=()=>{xK(),D.registerMark(ku.type,ku)};class Ha extends us{constructor(){super(...arguments),this.type=H.sankey,this._nodeLayoutZIndex=re.Node,this._labelLayoutZIndex=re.Label,this._viewBox=new di,this._fillByNode=t=>{var e,i,n,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(E(o))return o;if(E(this._spec.seriesField)){const l=(r=(n=this._option)===null||n===void 0?void 0:n.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,n,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(E(this._spec.seriesField)){const c=(r=(n=this._nodesSeriesData)===null||n===void 0?void 0:n.getLatestData())===null||r===void 0?void 0:r.find(g=>t.source===g.key),u=c==null?void 0:c.datum,p=(o=(a=this._option)===null||a===void 0?void 0:a.globalScale)===null||o===void 0?void 0:o.getScale("color");return p==null?void 0:p.scale(u==null?void 0:u[this._spec.seriesField])}const d=nt(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;const i=(e=this._spec.emphasis)!==null&&e!==void 0?e:{},n=t.item;i.effect==="adjacency"?n&&n.mark.id().includes("node")?this._handleNodeAdjacencyClick(n):n&&n.mark.id().includes("link")?this._handleLinkAdjacencyClick(n):this._handleClearEmpty():i.effect==="related"&&(n&&n.mark.id().includes("node")?this._handleNodeRelatedClick(n):n&&n.mark.id().includes("link")?this._handleLinkRelatedClick(n):this._handleClearEmpty())},this._handleClearEmpty=()=>{var t,e,i;const n=(t=this._nodeMark)===null||t===void 0?void 0:t.getProductElements();if(!n||!n.length)return;const r=(e=this._linkMark)===null||e===void 0?void 0:e.getProductElements();if(!r||!r.length)return;const a=(i=this._labelMark)===null||i===void 0?void 0:i.getProductElements();if(!a||!a.length)return;const o=[lt.STATE_SANKEY_EMPHASIS,lt.STATE_SANKEY_EMPHASIS_REVERSE];n.forEach(l=>{l.removeState(o)}),r.forEach(l=>{l.removeState(o)}),a.forEach(l=>{l.removeState(o)})},this._handleNodeAdjacencyClick=t=>{const e=t.getDatum(),i=[e.key];if(this._linkMark){const n=this._linkMark.getProductElements();if(!n||!n.length)return;n.forEach((r,a)=>{const o=r.getDatum(),l=o!=null&&o.parents?"parents":"source";if(V(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(lt.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(lt.STATE_SANKEY_EMPHASIS),r.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:h})}else o.target===e.key?i.includes(o.source)||i.push(o.source):(r.removeState(lt.STATE_SANKEY_EMPHASIS),r.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),i)},this._handleLinkAdjacencyClick=t=>{const e=t.getDatum(),i=[e.source,e.target];if(this._linkMark){const n=this._linkMark.getProductElements();if(!n||!n.length)return;n.forEach(r=>{r===t?(r.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:1})):(r.removeState(lt.STATE_SANKEY_EMPHASIS),r.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),i)},this._handleNodeRelatedClick=t=>{var e;const i=t.getDatum(),n=this._nodeMark.getProductElements();if(!n||!n.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,p;const g=l.getDatum(),f=g!=null&&g.parents?"parents":"source";if(V(g[f]).includes(i.key)){if(o.includes((d=g.key)!==null&&d!==void 0?d:g.index)||o.push((c=g.key)!==null&&c!==void 0?c:g.index),a.includes(g.source)||a.push(g.source),!a.includes(g.target)){a.push(g.target);let _=n.find(m=>m.data[0].key===g.target).data[0].sourceLinks;for(;(_==null?void 0:_.length)>0;){const m=[];return _.forEach(y=>{var v,b;if(!o.includes((v=y.key)!==null&&v!==void 0?v:y.index)&&(o.push((b=y.key)!==null&&b!==void 0?b:y.index),!a.includes(y.target))){a.push(y.target);const x=n.find(A=>A.data[0].key===y.target);m.push(x.data[0].targetLinks)}}),void(_=m)}}}else if(g.target===i.key&&(o.includes((u=g.key)!==null&&u!==void 0?u:g.index)||o.push((p=g.key)!==null&&p!==void 0?p:g.index),!a.includes(g.source))){a.push(g.source);let _=n.find(m=>m.data[0].key===g.source).data[0].targetLinks;for(;(_==null?void 0:_.length)>0;){const m=[];return _.forEach(y=>{var v,b;if(!o.includes((v=y.key)!==null&&v!==void 0?v:y.index)&&(o.push((b=y.key)!==null&&b!==void 0?b:y.index),!a.includes(y.source))){a.push(y.source);const x=n.find(A=>A.data[0].key===y.source);m.push(x.data[0].targetLinks)}}),void(_=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(lt.STATE_SANKEY_EMPHASIS_REVERSE),h.addState(lt.STATE_SANKEY_EMPHASIS)):(h.removeState(lt.STATE_SANKEY_EMPHASIS),h.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}else{const a=[i.key],o=i.targetLinks.reduce((l,h)=>(V(h.datum).forEach(d=>{const c=d.parents,u=c.length;for(let p=0;py.source===g&&y.target===f);m?m.value+=_:l.push({source:g,target:f,value:_})}}),l),[]);r.forEach((l,h)=>{const d=l.getDatum(),c=d!=null&&d.parents?"parents":"source",u=d.datum,p=u?u.filter(f=>f[c].some(_=>_.key===i.key)):null,g=o.find(f=>f.source===d.source&&f.target===d.target);if(p&&p.length){a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target);const f=p.reduce((_,m)=>_+m.value,0)/d.value;return l.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(lt.STATE_SANKEY_EMPHASIS),void l.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:f})}if(g)return a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target),l.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(lt.STATE_SANKEY_EMPHASIS),void l.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:g.value/d.value});l.removeState(lt.STATE_SANKEY_EMPHASIS),l.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE)}),this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}},this._handleLinkRelatedClick=t=>{var e;const i=this._nodeMark.getProductElements();if(!i||!i.length)return;const n=this._linkMark.getProductElements();if(!(!n||!n.length))if((!((e=t.getDatum())===null||e===void 0)&&e.parents?"parents":"source")=="source"){const r=[lt.STATE_SANKEY_EMPHASIS,lt.STATE_SANKEY_EMPHASIS_REVERSE];if(this._linkMark&&n.forEach(a=>{a.removeState(r)}),this._nodeMark&&i.forEach(a=>{a.removeState(r)}),this._labelMark){const a=this._labelMark.getProductElements();if(!a||!a.length)return;a.forEach(o=>{o.removeState(r)})}}else{const r=t.getDatum(),a=[r.source,r.target],o=[];V(r.datum).forEach(l=>{const h=l.parents,d=h.length;for(let c=0;c_.source===u&&_.target===p);o.push({source:h[c].key,target:h[c+1].key,value:l.value}),f?f.value+=g:o.push({source:u,target:p,value:g})}}),n.forEach(l=>{const h=l.getDatum(),d=h.datum;if(h.source===r.source&&h.target===r.target)return l.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),void l.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:1});const c=d?d.filter(p=>{const g=p.parents.map(f=>f.key);return g.includes(r.source)&&g.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 p=c.filter(f=>f.parents.some((_,m)=>{var y;return _.key===r.source&&((y=f.parents[m+1])===null||y===void 0?void 0:y.key)===r.target})).reduce((f,_)=>f+_.value,0),g=p/h.value;return l.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(lt.STATE_SANKEY_EMPHASIS),void l.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:g})}const u=o.find(p=>p.source===h.source&&p.target===h.target);if(u)return a.includes(h.source)||a.push(h.source),a.includes(h.target)||a.push(h.target),l.removeState(lt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(lt.STATE_SANKEY_EMPHASIS),void l.addState(lt.STATE_SANKEY_EMPHASIS,{ratio:u.value/h.value});l.removeState(lt.STATE_SANKEY_EMPHASIS),l.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE)}),this._highLightElements(i,a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}}}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;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),this._labelLimit=(i=(e=this._spec.label)===null||e===void 0?void 0:e.limit)!==null&&i!==void 0?i:100}initData(){var t,e,i,n;super.initData();const r=this.getViewData(),a=this.getRawData();if(a&&r){Mt(this._dataSet,"sankeyLayout",prt),Mt(this._dataSet,"sankeyFormat",urt),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._spec.direction,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:(n=this._spec.minNodeHeight)!==null&&n!==void 0?n: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},level:Fs.sankeyLayout});const{dataSet:o}=this._option;Mt(o,"sankeyNodes",grt),Mt(o,"flatten",Qu);const l=new $t(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:vh.bind(this),call:Jo}},!1),this._nodesSeriesData=new ar(this._option,l),Mt(o,"sankeyLinks",frt);const h=new $t(o,{name:`sankey-link-${this.id}-data`});h.parse([this.getViewData()],{type:"dataview"}),h.transform({type:"sankeyLinks"}),h.transform({type:"addVChartProperty",options:{beforeCall:vh.bind(this),call:Jo}},!1),this._linksSeriesData=new ar(this._option,h)}}initMark(){var t,e,i,n;const r=this._createMark(Ha.mark.node,{isSeriesMark:!0,dataView:this._nodesSeriesData.getDataView(),dataProductId:this._nodesSeriesData.getProductId(),customShape:(t=this._spec.node)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.node)===null||e===void 0?void 0:e.stateSort});r&&(r.setZIndex(this._nodeLayoutZIndex),this._nodeMark=r);const a=this._createMark(Ha.mark.link,{dataView:this._linksSeriesData.getDataView(),dataProductId:this._linksSeriesData.getProductId(),customShape:(i=this._spec.link)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.link)===null||n===void 0?void 0:n.stateSort});if(a&&(this._linkMark=a),this._spec.label&&this._spec.label.visible){const o=this._createMark(Ha.mark.label,{dataView:this._nodesSeriesData.getDataView(),dataProductId:this._nodesSeriesData.getProductId()});o&&(this._labelMark=o)}}_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=V(t)[0];return e&&e.find(n=>n.key===i)}valueToLink(t){const e=this._linksSeriesData.getLatestData(),i=V(t);return e&&e.find(n=>n&&n.source===i[0]&&n.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(),this._initLabelMarkStyle()}_initNodeMarkStyle(){const t=this._nodeMark;t&&this.setMarkStyle(t,{x:e=>e.x0,x1:e=>e.x1,y:e=>e.y0,y1:e=>e.y1,fill:this._fillByNode},lt.STATE_NORMAL,tt.Mark)}_initLinkMarkStyle(){var t;const e=this._linkMark;e&&this.setMarkStyle(e,{x0:i=>i.x0,x1:i=>i.x1,y0:i=>i.y0,y1:i=>i.y1,thickness:i=>i.thickness,fill:this._fillByLink,direction:(t=this._spec.direction)!==null&&t!==void 0?t:"horizontal"},lt.STATE_NORMAL,tt.Series)}_initLabelMarkStyle(){this._labelMark&&(this._spec.direction==="vertical"?this._spec.label.position==="inside-start"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"left",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-middle"?this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"center",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-end"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"right",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>t.y1>=this._viewBox.y2?t.y0:t.y1,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"center",textBaseline:t=>t.y1>=this._viewBox.y2?"bottom":"top"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-start"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"left",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-middle"?this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"center",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-end"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"right",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="left"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"right",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this._spec.label.position==="right"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"left",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series):this.setMarkStyle(this._labelMark,{x:t=>t.x1>=this._viewBox.x2?t.x0:t.x1,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:t=>t.x1>=this._viewBox.x2?"right":"left",textBaseline:"middle"},lt.STATE_NORMAL,tt.Series),this._labelMark.setZIndex(this._labelLayoutZIndex))}_createText(t){var e;if(P(t)||P(t.datum))return"";let i=t.datum[this._spec.categoryField]||"";return!((e=this._spec.label)===null||e===void 0)&&e.formatMethod&&(i=this._spec.label.formatMethod(i,t.datum)),i}initAnimation(){var t,e,i,n,r;const a={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)}},o=(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(Ht((i=D.getAnimationInKey("sankeyNode"))===null||i===void 0?void 0:i(a,o),Wt("node",this._spec,this._markAttributeContext))),this._linkMark&&this._linkMark.setAnimationConfig(Ht((n=D.getAnimationInKey("sankeyLinkPath"))===null||n===void 0?void 0:n(a,o),Wt("link",this._spec,this._markAttributeContext))),this._labelMark&&this._labelMark.setAnimationConfig(Ht((r=D.getAnimationInKey("fadeInOut"))===null||r===void 0?void 0:r(),Wt("label",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 n=(i=this._spec.emphasis)!==null&&i!==void 0?i:{};if(this._option.disableTriggerEvent!==!0&&n.enable&&(n.effect==="adjacency"||n.effect==="related")){const r=n.trigger==="hover"?"pointerover":"pointerdown";this.event.on(r,{level:le.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([lt.STATE_SANKEY_EMPHASIS_REVERSE,lt.STATE_SANKEY_EMPHASIS]),e.includes(i.getDatum().key)||i.addState(lt.STATE_SANKEY_EMPHASIS_REVERSE)})}initTooltip(){this._tooltipHelper=new _rt(this),this._nodeMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nodeMark),this._linkMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}_setNodeOrdinalColorScale(){var t,e,i,n,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 $u;(r=(n=h.domain(o)).range)===null||r===void 0||r.call(n,l),this._colorScale=h}getNodeList(){var t;if(this._nodeList)return this._nodeList;const e=this._rawData.latestData[0],i=e!=null&&e.nodes?!((t=e.nodes[0])===null||t===void 0)&&t.children?Array.from(this.extractNamesFromTree(e.nodes,this._spec.categoryField)):e.nodes.map((n,r)=>n[this._spec.categoryField]):e!=null&&e.links?Array.from(this.extractNamesFromLink(e.links)):e==null?void 0:e.values.map((n,r)=>n[this._spec.categoryField]);return this._nodeList=i,i}_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(n=>{i.add(n[e]),n.children&&this.extractNamesFromTree(n.children,e).forEach(r=>i.add(r))}),i}extractNamesFromLink(t){const e=new Set,{sourceField:i,targetField:n}=this._spec;return t.forEach(r=>{E(r[i])&&e.add(r[i]),E(r[n])&&e.add(r[n])}),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,n;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)!((n=a.nodes)===null||n===void 0)&&n.length&&a.nodes.forEach(o=>{o[this._seriesField]&&r.push(o[this._seriesField])});else if(a.nodes){const o=new Set;return JD(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]}}Ha.type=H.sankey,Ha.mark=FO;const Srt=()=>{crt(),qr(),xrt(),Ln(),brt(),Yr(),D.registerSeries(Ha.type,Ha)},Art=(s,t)=>{let e={},i=t.fields;if(N(i)&&(i=i()),!(i!=null&&i.length)||!(s!=null&&s.length)||!s[0].latestData)return e;const n=s[0].latestData,r=Qu(n);return e=jx([{latestData:r}],t),e};class krt extends yn{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}get defaultShapeType(){return"square"}}const Trt=s=>s==="fadeIn"?{type:"fadeIn"}:{type:"growCenterIn"},Mrt=()=>{D.registerAnimation("treemap",(s,t)=>({appear:Trt(t),enter:{type:"growCenterIn"},exit:{type:"growCenterOut"},disappear:{type:"growCenterOut"}}))};class QD extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nonLeaf","nonLeafLabel","initNonLeafLabelMarkStyle"),this._addMarkLabelSpec(t,"leaf")}}class qs extends us{constructor(){super(...arguments),this.type=H.treemap,this.transformerConstructor=QD,this._viewBox=new di,this._enableAnimationHook=this.enableMarkAnimation.bind(this)}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:Br),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:Is},getRawData:()=>this.getRawData()}),W(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,n,r;const a=this._data.getProduct();a&&a.transform([{type:"treemap",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:(n=this._spec.nonLeafLabel)===null||n===void 0?void 0:n.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&&[Br,"name"].forEach(l=>{o[l]=o.datum[o.depth][l]}),o)}]),t&&this.getCompiler().renderNextTick()}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(Mt(this._rawData.dataSet,"addVChartProperty",Fh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:E1.bind(this),call:v0}}))}getRawDataStatisticsByField(t,e){var i;if(!this._rawDataStatistics){const n=`${this.type}_${this.id}_rawDataStatic`;this._rawDataStatistics=this._createHierarchyDataStatistics(n,[this._rawData]),this._rawData.target.removeListener("change",this._rawDataStatistics.reRunAllTransform),this._rawDataStatistics.reRunAllTransform()}return(i=this._rawDataStatistics.latestData)===null||i===void 0?void 0:i[t]}_createHierarchyDataStatistics(t,e){Mt(this._dataSet,"hierarchyDimensionStatistics",Art),Mt(this._dataSet,"flatten",Qu);const i=new $t(this._dataSet,{name:t});return i.parse(e,{type:"dataview"}),i.transform({type:"hierarchyDimensionStatistics",options:{fields:()=>{const n=this.getStatisticFields();return this._seriesField&&this._seriesField!==this._categoryField&&n.push({key:this._seriesField,operations:["values"]}),n}}},!1),i}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:ou,operations:["max","min","values"]},{key:Br,operations:["values"]}])}initMark(){var t,e,i,n;const r=this._createMark(qs.mark.nonLeaf,{isSeriesMark:!0,customShape:(t=this._spec.nonLeaf)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.nonLeaf)===null||e===void 0?void 0:e.stateSort});r&&(r.setTransform([{type:"filter",callback:o=>!this._shouldFilterElement(o,"nonLeaf")}]),this._nonLeafMark=r);const a=this._createMark(qs.mark.leaf,{isSeriesMark:!0,customShape:(i=this._spec.leaf)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.leaf)===null||n===void 0?void 0:n.stateSort});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()},lt.STATE_NORMAL,tt.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()},lt.STATE_NORMAL,tt.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},lt.STATE_NORMAL,tt.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},lt.STATE_NORMAL,tt.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},lt.STATE_NORMAL,tt.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},lt.STATE_NORMAL,tt.Series))}initAnimation(){this.getMarksInType("rect").forEach(t=>{var e;t.setAnimationConfig(Ht((e=D.getAnimationInKey("treemap"))===null||e===void 0?void 0:e(),Wt(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 krt(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:n,c:r,d:a,e:o,f:l}=this._matrix;this._matrix.multiply(i,n,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:n,y:r}=i;this._matrix.translate(n,r),this._matrix.scale(e,e),this._matrix.translate(-n,-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(pt.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(pt.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]}}qs.type=H.treemap,qs.mark=DO,qs.transformerConstructor=QD,ei(qs,N1),ei(qs,D1);const wrt=()=>{qr(),Ln(),Mrt(),Yr(),qst(),D.registerSeries(qs.type,qs)},Crt=s=>({channel:{angle:{from:s.startAngle+Math.PI/2}}}),Prt={type:"fadeIn"};function Ert(s,t){return t==="fadeIn"?Prt:Crt(s)}const Rrt=()=>{D.registerAnimation("gaugePointer",(s,t)=>{const e=Ert(s,t);return{appear:e,enter:e,disappear:{type:"fadeOut"}}})};class tF extends bn{constructor(){super(...arguments),this._supportStack=!1}}class Ir extends jh{constructor(){super(...arguments),this.type=H.gaugePointer,this.transformerConstructor=tF,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(Ir.mark.pinBackground),this._pointerMark=this._createMark(Object.assign(Object.assign({},Ir.mark.pointer),{type:this._pointerType}),{isSeriesMark:!0}),this._pinMark=this._createMark(Ir.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 n,r;const{x:a}=this._getPointerAnchor(i,e);return a-this._getPointerWidth()*((r=(n=e==null?void 0:e.center)===null||n===void 0?void 0:n[0])!==null&&r!==void 0?r:0)},y:i=>{var n,r;const{y:a}=this._getPointerAnchor(i,e);return a-this._getPointerHeight(i)*((r=(n=e==null?void 0:e.center)===null||n===void 0?void 0:n[1])!==null&&r!==void 0?r:0)},anchor:i=>{const{x:n,y:r}=this._getPointerAnchor(i,e);return[n,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(){super.initTooltip(),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 n=this._spec.pointer,r=this._radiusField[0];return E(this.radiusAxisHelper)&&E(r)?this.radiusAxisHelper.dataToPosition([t[r]])-((e=n==null?void 0:n.innerPadding)!==null&&e!==void 0?e:0)-((i=n==null?void 0:n.outerPadding)!==null&&i!==void 0?i:10):n.height*this._computeLayoutRadius()}_getPointerAngle(t){return this.angleAxisHelper.dataToPosition([t[this._angleField[0]]])}_getRotatedPointerCenterOffset(t){var e,i,n,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=(n=a==null?void 0:a.center)===null||n===void 0?void 0:n[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 n=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._pointerMark.setAnimationConfig(Ht((i=D.getAnimationInKey("gaugePointer"))===null||i===void 0?void 0:i({startAngle:this._startAngle},n),Wt("pointer",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}Ir.type=H.gaugePointer,Ir.mark=HO,Ir.transformerConstructor=tF;const Brt=()=>{D.registerSeries(Ir.type,Ir),O1(),qr(),Rrt(),Ju(),Hh()};class eF extends bn{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"segment")}}class ja extends jh{constructor(){super(...arguments),this.type=H.gauge,this.transformerConstructor=eF,this._segmentMark=null,this._trackMark=null,this._padAngle=0}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._padAngle=Qt((t=this._spec.padAngle)!==null&&t!==void 0?t:0)}initData(){var t;super.initData(),Mt(this._option.dataSet,"spiltSegment",(e,i)=>{const n=e.slice();return n.sort((r,a)=>r[this._angleField[0]]-a[this._angleField[0]]),n.forEach((r,a)=>{r[Iv]=r[this._angleField[0]],r[ug]=a>0?n[a-1][Iv]:void 0}),n}),(t=this.getViewData())===null||t===void 0||t.transform({type:"spiltSegment"},!1)}initMark(){super.initMark(),this._trackMark=this._createMark(ja.mark.track,{parent:this._arcGroupMark,dataView:!1}),this._segmentMark=this._createMark(ja.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,n;return this._computeLayoutRadius()*((n=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&n!==void 0?n: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,n;return this._computeLayoutRadius()*((n=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&n!==void 0?n: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 Math.min(e+this._padAngle/2,(e+i)/2)}_getAngleValueEndWithoutMask(t){const e=this._getAngleValueStartWithoutPadAngle(t),i=this._getAngleValueEndWithoutPadAngle(t);return Math.max(i-this._padAngle/2,(e+i)/2)}_getAngleValueStartWithoutPadAngle(t){return E(t[ug])?this.angleAxisHelper.dataToPosition([t[ug]]):this._startAngle}_getAngleValueEndWithoutPadAngle(t){return this.angleAxisHelper.dataToPosition([t[Iv]])}initAnimation(){var t,e,i;const n=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._segmentMark.setAnimationConfig(Ht((i=D.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},n),Wt("segment",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}ja.type=H.gauge,ja.mark=zO,ja.transformerConstructor=eF;const Irt=()=>{D.registerSeries(ja.type,ja),dl(),ED(),Hh()};class Tu extends q2{constructor(){super(...arguments),this.type=Tu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{padding:0})}}Tu.type="cell";const Lrt=()=>{D.registerMark(Tu.type,Tu),rK(),oZ()};function Ort(s){return s===!1?{}:{type:"fadeIn"}}const Drt=()=>{D.registerAnimation("heatmap",(s,t)=>Object.assign(Object.assign({},g0),{appear:Ort(t)}))};class Frt extends yn{getDefaultTooltipPattern(t,e){const i=super.getDefaultTooltipPattern(t,e);return E(i)&&t==="dimension"&&(i.visible=!1),i}}class iF extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"cell")}}class Lr extends us{constructor(){super(...arguments),this.type=H.heatmap,this.transformerConstructor=iF}getFieldValue(){return this._fieldValue}setFieldValue(t){this._fieldValue=V(t)}setAttrFromSpec(){super.setAttrFromSpec(),this.setFieldValue(this._spec.valueField)}initMark(){var t,e,i,n;const r={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._cellMark=this._createMark(Lr.mark.cell,{morph:Xr(this._spec,Lr.mark.cell.name),defaultMorphElementKey:this.getDimensionField()[0],isSeriesMark:!0,progressive:r,customShape:(t=this._spec.cell)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.cell)===null||e===void 0?void 0:e.stateSort}),this._backgroundMark=this._createMark(Lr.mark.cellBackground,{progressive:r,customShape:(i=this._spec.cellBackground)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.cellBackground)===null||n===void 0?void 0:n.stateSort})}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",tt.Series)}initCellBackgroundMarkStyle(){var t,e,i;const n=fn((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+n[3]},y:r=>{const a=this.getCellSize(this._yAxisHelper);return this.dataToPositionY(r)-a/2+n[0]},width:()=>this.getCellSize(this._xAxisHelper)-n[1]-n[3],height:()=>this.getCellSize(this._yAxisHelper)-n[0]-n[2]},"normal",tt.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 n=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,r=to(this);this._cellMark.setAnimationConfig(Ht((i=D.getAnimationInKey("heatmap"))===null||i===void 0?void 0:i(n),Wt("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 Frt(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]}}Lr.type=H.heatmap,Lr.mark=NO,Lr.transformerConstructor=iF;const zrt=()=>{Ln(),Lrt(),Drt(),In(),Bn(),D.registerSeries(Lr.type,Lr)},Hrt=(s,t)=>{var e,i,n,r,a,o,l,h,d,c,u,p,g,f,_;if(!s||!(t!=null&&t.view)||!G(s))return s;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 s;const y=Qt((e=t.startAngle)!==null&&e!==void 0?e:-90),v=Qt((i=t.endAngle)!==null&&i!==void 0?i:270),b=Math.max((m.x1-m.x0)/2,(m.y1-m.y0)/2),x=Gn((n=t.innerRadius)!==null&&n!==void 0?n:0,b),A=Gn(t.outerRadius,b),T=[nt((r=t.center)===null||r===void 0?void 0:r[0])?t.center[0]:m.x0+Gn((o=(a=t.center)===null||a===void 0?void 0:a[0])!==null&&o!==void 0?o:"50%",m.x1-m.x0),nt((l=t.center)===null||l===void 0?void 0:l[1])?t.center[1]:m.y0+Gn((d=(h=t.center)===null||h===void 0?void 0:h[1])!==null&&d!==void 0?d:"50%",m.y1-m.y0)],k=Os(t.field),M=s.map(k),[w,C]=Ib(M),R=w===C?j=>(x+A)/2:j=>x+(A-x)*(j-w)/(C-w),I=P(t.radiusField)?k:Os(t.radiusField),O=(u=(c=t==null?void 0:t.radiusRange)===null||c===void 0?void 0:c[1])!==null&&u!==void 0?u:5;let B=j=>O;if(I){const[j,st]=I!==k?Ib(s.map(I)):[w,C],ht=(g=(p=t.radiusRange)===null||p===void 0?void 0:p[0])!==null&&g!==void 0?g:5,ut=(_=(f=t.radiusRange)===null||f===void 0?void 0:f[1])!==null&&_!==void 0?_:5;j!==st&&(B=J=>ht+(ut-ht)*(I(J)-j)/(st-j))}const L=Math.min(y,v),F=Math.max(y,v),z=jrt(L,F,s.length),K=[],et=(F-L)/60;return s.forEach((j,st)=>{const ht=R(M[st]),ut=B(j);let J,$,Z=z[st];for(let X=0;X<60&&(J=T[0]+ht*Math.cos(Z),$=T[1]+ht*Math.sin(Z),Vrt({x:J,y:$,size:ut},K)||J-utm.x1||$-utm.y1);X++)X<59&&(Z+=et,Z>F?Z=L:Z{let i=0,n=Math.max(Math.ceil(2*(t-s)/Math.PI),2),r=(t-s)/n,a=0,o=1,l=0,h=0;const d=[];let c=s;for(;l=2&&(r/=2,n*=2));return d},Vrt=(s,t)=>!(!t||!t.length)&&t.some(e=>Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2){if(!s||!G(s))return[];const{keyword:e,categoryField:i}=t,n=s[0].latestData[0];return{[i]:e,[Ji]:n==null?void 0:n[Ji],[Cn]:n==null?void 0:n[Cn]}};class Mu extends Oi{constructor(){super(...arguments),this.type=Mu.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}}Mu.type="ripple";const nF=()=>{D.registerMark(Mu.type,Mu),gK()},Grt=(s,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},Nrt=()=>{D.registerAnimation("correlation",(s,t)=>Object.assign({appear:Grt(0,t)},w1))};class sF extends bn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nodePoint"),this._addMarkLabelSpec(t,"centerPoint","centerLabel")}}class Or extends Zu{constructor(){super(...arguments),this.type=H.correlation,this.transformerConstructor=sF,this._viewBox=new di}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){E(t)&&(this._seriesField=t)}getSizeField(){return this._sizeField}setSizeField(t){E(t)&&(this._sizeField=t)}getSizeRange(){return this._sizeRange}setSizeRange(t){E(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;Mt(this._dataSet,"correlation",Hrt);const n=new Va;Rr(n,"dataview",ym),Mt(n,"correlationCenter",Wrt);const r=new $t(n,{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 ar(this._option,r)}_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,n;const r=this._createMark(Or.mark.nodePoint,{groupKey:this._seriesField,isSeriesMark:!0,key:Ji,customShape:(t=this._spec.nodePoint)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.nodePoint)===null||e===void 0?void 0:e.stateSort});r&&(r.setZIndex(re.Node),this._nodePointMark=r);const a=this._createMark(Or.mark.ripplePoint,{key:Ji,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId()});a&&(this._ripplePointMark=a);const o=this._createMark(Or.mark.centerPoint,{key:Ji,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId(),customShape:(i=this._spec.centerPoint)===null||i===void 0?void 0:i.customShape,stateSort:(n=this._spec.centerPoint)===null||n===void 0?void 0:n.stateSort});o&&(o.setZIndex(re.Node),this._centerPointMark=o)}initMarkStyle(){this._initNodePointMarkStyle(),this._initRipplePointMarkStyle(),this._initCenterPointMarkStyle()}_initNodePointMarkStyle(){var t,e,i,n;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[mO],y:o=>o[vO],size:o=>o[yO],fill:(i=a.fill)!==null&&i!==void 0?i:this.getColorAttribute(),fillOpacity:(n=a.fillOpacity)!==null&&n!==void 0?n:1,lineWidth:0},lt.STATE_NORMAL,tt.Series)}_initRipplePointMarkStyle(){var t,e,i,n,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:(n=o.fillOpacity)!==null&&n!==void 0?n:.2,ripple:(r=o.ripple)!==null&&r!==void 0?r:0},lt.STATE_NORMAL,tt.Series)}_initCenterPointMarkStyle(){var t,e,i,n,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=(n=this._spec.centerPoint)===null||n===void 0?void 0:n.style)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1},lt.STATE_NORMAL,tt.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)},lt.STATE_NORMAL,tt.Series)}initAnimation(){var t,e;const i=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;this._nodePointMark.setAnimationConfig(Ht((e=D.getAnimationInKey("correlation"))===null||e===void 0?void 0:e({},i),Wt("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()}}Or.type=H.correlation,Or.mark=UO,Or.transformerConstructor=sF;const Urt=()=>{Kr(),nF(),D.registerSeries(Or.type,Or),Nrt()};class rF extends ps{_isValidSeries(t){return t===H.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(n=>{n in i||(i[n]=e[n])})}):t.series=[e]}}class $d extends Ae{constructor(){super(...arguments),this.transformerConstructor=rF,this.type="map",this.seriesType=H.map}}$d.type="map",$d.seriesType=H.map,$d.transformerConstructor=rF;const $rt=()=>{Ket(),D.registerChart($d.type,$d)};class U1 extends ps{_isValidSeries(t){return!this.seriesType||t===this.seriesType}getIndicatorSpec(t){var e,i,n;const r=V(t.indicator),a=(e=t.innerRadius)!==null&&e!==void 0?e:(n=(i=t.series)===null||i===void 0?void 0:i[0])===null||n===void 0?void 0:n.innerRadius;return E(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),G(t.dataZoom)&&t.dataZoom.length>0&&t.dataZoom.forEach(e=>{e.filterMode==="axis"&&(e.filterMode="filter")}),this.transformSeriesSpec(t),E(t.indicator)&&(t.indicator=this.getIndicatorSpec(t))}}class aF extends U1{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,n,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=au(h,{min:0,max:1});P(h.min)&&(h.min=d.min),P(h.max)&&(h.max=d.max),n&&Object.assign(h,vt({},n,h)),r&&Object.assign(l,vt({},r,l))}}class oF extends U1{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(n=>{const{orient:r}=n;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 ep extends U1{needAxes(){return!1}_getDefaultSeriesSpec(t){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})}}class $1 extends Ae{constructor(){super(...arguments),this.transformerConstructor=ep}}$1.transformerConstructor=ep;class Yd extends $1{constructor(){super(...arguments),this.transformerConstructor=ep,this.type="pie",this.seriesType=H.pie}}Yd.type="pie",Yd.seriesType=H.pie,Yd.transformerConstructor=ep;const Yrt=()=>{Hit(),D.registerChart(Yd.type,Yd)};class lF extends ep{transformSpec(t){super.transformSpec(t),t.series.forEach(e=>{e.type==="pie3d"&&(e.angle3d=t.angle3d)})}}class Xd extends $1{constructor(){super(...arguments),this.transformerConstructor=lF,this.type="pie3d",this.seriesType=H.pie3d}}Xd.type="pie3d",Xd.seriesType=H.pie3d,Xd.transformerConstructor=lF;const Xrt=()=>{jit(),D.registerChart(Xd.type,Xd)};class hF extends oF{_getDefaultSeriesSpec(t){var e,i,n;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{radius:(e=t.radius)!==null&&e!==void 0?e:Zc,outerRadius:(i=t.outerRadius)!==null&&i!==void 0?i:Zc,innerRadius:(n=t.innerRadius)!==null&&n!==void 0?n: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(n=>{i[n]||(i[n]={visible:!1})}),i.orient==="angle"&&P(i.bandPosition)&&(i.bandPosition=.5)}),t.crosshair=V(t.crosshair||{}).map(i=>vt({categoryField:{visible:!0,line:{visible:!0,type:"rect"}}},i))}}class Kd extends Ae{constructor(){super(...arguments),this.transformerConstructor=hF,this.type="rose",this.seriesType=H.rose,this._canStack=!0}}Kd.type="rose",Kd.seriesType=H.rose,Kd.transformerConstructor=hF;const Krt=()=>{Yit(),D.registerChart(Kd.type,Kd)};class dF extends oF{_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:vt({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(n=>{i[n]||(i[n]={visible:!1})}),i.grid||(i.grid={visible:!0,smooth:!0}))}),t.crosshair=V(t.crosshair||{}).map(i=>vt({categoryField:{visible:!0,line:{visible:!0,type:"line"}}},i))}}class qd extends Ae{constructor(){super(...arguments),this.transformerConstructor=dF,this.type="radar",this.seriesType=H.radar,this._canStack=!0}}qd.type="radar",qd.seriesType=H.radar,qd.transformerConstructor=dF;const qrt=()=>{Qit(),D.registerChart(qd.type,qd)};class cF extends ps{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return delete e.data,e}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(n=>{n in i||(i[n]=e[n])})})}t.axes&&t.axes.length&&t.axes.forEach(e=>{Pt(e,"trimPadding")&&vt(e,_2(this.type,t))})}}class F_ extends Ae{constructor(){super(...arguments),this.transformerConstructor=cF,this.type="common",this._canStack=!0}}F_.type="common",F_.transformerConstructor=cF;const Zrt=()=>{D.registerChart(F_.type,F_)},Ux=12;class uF extends ps{_getSeriesDataLength(t,e){var i,n;if(e.data){const a=V(e.data)[0];return a instanceof $t?(i=a.latestData)===null||i===void 0?void 0:i.length:(n=a.values)===null||n===void 0?void 0:n.length}const r=V(t.data).find((a,o)=>e.dataId?a instanceof $t?a.name===e.dataId:a.id===e.dataId:e.dataIndex===o);return r?r instanceof $t?r.latestData.length:r.values.length:0}addAttrToComponentSpec(t,e,i){return Array.isArray(t)?t[0][e]=i:t[e]=i,t}transformSpec(t){var e,i,n,r,a,o,l,h,d,c,u;super.transformSpec(t);let p=0;const g=[],f=[],_=[],m=[],y=[],v=t.series.filter(k=>k.type!==H.link).length,b=(500-20*(v-1))/v,x=((e=t==null?void 0:t.appendPadding)===null||e===void 0?void 0:e.left)||0,A=((i=t==null?void 0:t.appendPadding)===null||i===void 0?void 0:i.right)||0;if(t!=null&&t.legends){g.push({modelId:`legendRow${p}`,col:1,row:p}),this.addAttrToComponentSpec(t.legends,"id",`legendRow${p}`);const k=V(t.legends);let M=(n=k[0].height)!==null&&n!==void 0?n:40;if(k[0].padding){const w=jr(k[0].padding);M+=Number((r=w==null?void 0:w.bottom)!==null&&r!==void 0?r:0),M+=Number((a=w==null?void 0:w.top)!==null&&a!==void 0?a:0),k[0].offsetY=Number((l=(o=k[0])===null||o===void 0?void 0:o.offsetY)!==null&&l!==void 0?l:0)+Number((h=w==null?void 0:w.top)!==null&&h!==void 0?h:0)}y.push({index:p,size:M}),p++}t!=null&&t.dataZoom&&(g.push({modelId:`dataZoomRow${p}`,col:1,row:p}),this.addAttrToComponentSpec(t.dataZoom,"id",`dataZoomRow${p}`),p++,y.push({index:p,size:10}),p++),f.push({id:`regionAxesRow${p}`}),g.push({modelId:`axesRow${p}`,col:1,row:p}),t.axes[0].id=`axesRow${p}`,t.axes[0].regionIndex=Array.from(Array(t.series.length),(k,M)=>M+1),p++,(d=t==null?void 0:t.series)===null||d===void 0||d.forEach(k=>{var M,w;if([H.bar,H.line,H.area,H.dot].includes(k.type)){if(g.push({modelId:`${k.type}Row${p}`,col:1,row:p}),g.push({modelId:`axesLeftRow${p}`,col:0,row:p}),f.push({id:`${k.type}Row${p}`,clip:!1}),y.push({index:p,size:(k==null?void 0:k.height)||b}),_.push({orient:"left",id:`axesLeftRow${p}`,type:k.type===H.dot?"band":"linear",visible:k.type!==H.dot,title:{visible:!0,autoRotate:!1,style:{text:k==null?void 0:k.barTitle,dx:-20,textBaseline:"middle",textAlign:"end"}},grid:{visible:typeof((M=k==null?void 0:k.grid)===null||M===void 0?void 0:M.visible)!="boolean"||((w=k==null?void 0:k.grid)===null||w===void 0?void 0:w.visible),style:(C,R)=>{var I,O,B,L,F;let z=0;if(R===0){const K=(I=k==null?void 0:k.grid)===null||I===void 0?void 0:I.style;z=(B=(O=K==null?void 0:K.lineWidth)!==null&&O!==void 0?O:K==null?void 0:K.strokeWidth)!==null&&B!==void 0?B:1}return{lineWidth:z,stroke:((F=(L=k==null?void 0:k.grid)===null||L===void 0?void 0:L.style)===null||F===void 0?void 0:F.stroke)||"#dfdfdf",lineDash:[0,0]}}},domainLine:{visible:!1},tick:{visible:!1},label:{visible:!1},regionIndex:f.length-1}),k.type===H.dot){g.push({modelId:`scrollBarRightRow${p}`,col:2,row:p});const C=this._getSeriesDataLength(t,k);let R=0;C&&(R=((k==null?void 0:k.height)||b)/(30*C)),m.push(Object.assign({orient:"right",visible:k.type===H.dot&&R<1,id:`scrollBarRightRow${p}`,start:0,end:Math.min(R,1),filterMode:"axis",regionIndex:f.length-1,axisId:`axesLeftRow${p}`},V(t==null?void 0:t.scrollBar)[0]))}k.regionIndex=f.length-1,p++,y.push({index:p,size:(k==null?void 0:k.padding)||20}),p++,k.leftAppendPadding=x,k.type===H.dot&&(k.title.style.dx=-x,k.subTitle.style.dx=-x)}}),(c=t==null?void 0:t.series)===null||c===void 0||c.forEach(k=>{if(k.type===H.link){const M=k.dotSeriesIndex+1;g.push({modelId:`${k.type}Row${M}`,col:1,row:M-1}),k.regionIndex=t.series[k.dotSeriesIndex].regionIndex,k.leftAppendPadding=x,k.height=t.series[k.dotSeriesIndex].height,k.clipHeight=t.series[k.dotSeriesIndex].clipHeight}}),t!=null&&t.legends&&this.addAttrToComponentSpec(t.legends,"regionIndex",[f.length-1]);const T={type:"grid",col:4,row:p,colWidth:[{index:0,size:x},{index:2,size:Ux},{index:3,size:A}],rowHeight:y,elements:g};t.layout=T,t.region=f,(u=t.axes)===null||u===void 0||u.push(..._),t.scrollBar=m}}var Jrt=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{nnt(),ant(),In(),Bn(),D.registerChart(z_.type,z_)};class Y1 extends Hs{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 X1 extends Ae{constructor(){super(...arguments),this.transformerConstructor=Y1,this._canStack=!0}}X1.transformerConstructor=Y1;class R0 extends Y1{transformSpec(t){super.transformSpec(t),Qa(t)}}class Zd extends X1{constructor(){super(...arguments),this.transformerConstructor=R0,this.type="histogram",this.seriesType=H.bar}}Zd.type="histogram",Zd.seriesType=H.bar,Zd.transformerConstructor=R0;const tat=()=>{sD(),D.registerChart(Zd.type,Zd)};class Jd extends X1{constructor(){super(...arguments),this.transformerConstructor=R0,this.type="histogram3d",this.seriesType=H.bar3d}}Jd.type="histogram3d",Jd.seriesType=H.bar3d,Jd.transformerConstructor=R0;const eat=()=>{rD(),D.registerChart(Jd.type,Jd)};class pF extends aF{_getDefaultSeriesSpec(t){var e,i;const n=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},n),{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 Qd extends Ae{constructor(){super(...arguments),this.transformerConstructor=pF,this.type="circularProgress",this.seriesType=H.circularProgress,this._canStack=!0}}Qd.type="circularProgress",Qd.seriesType=H.circularProgress,Qd.transformerConstructor=pF;const iat=()=>{dnt(),D.registerChart(Qd.type,Qd)};class gF extends aF{_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:H.circularProgress})}transformSpec(t){var e,i,n,r,a;super.transformSpec(t);let o=(e=t.series)===null||e===void 0?void 0:e.find(l=>l.type===H.gauge||l.type===H.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=(n=t.radiusField)!==null&&n!==void 0?n: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===H.circularProgress?this._transformProgressAxisSpec(t,{orient:"angle",visible:!0,domainLine:{visible:!1},grid:{visible:!1}},{orient:"radius",visible:!1},{zIndex:re.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(n=>{const{orient:r}=n;r==="radius"&&(i.radius=n),r==="angle"&&(i.angle=n)}),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=re.Region+50)}}class tc extends Ae{constructor(){super(...arguments),this.transformerConstructor=gF,this.type="gauge",this.seriesType=H.gaugePointer}}tc.type="gauge",tc.seriesType=H.gaugePointer,tc.transformerConstructor=gF;const nat=()=>{Brt(),Irt(),D.registerChart(tc.type,tc)};class B0 extends ps{transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class K1 extends Ae{constructor(){super(...arguments),this.transformerConstructor=B0,this.type="wordCloud",this.seriesType=H.wordCloud}}K1.transformerConstructor=B0;class fF extends B0{_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}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}}class Po extends K1{constructor(){super(...arguments),this.transformerConstructor=fF,this.type="wordCloud",this.seriesType=H.wordCloud}}Po.type="wordCloud",Po.seriesType=H.wordCloud,Po.transformerConstructor=fF;const sat=()=>{GD(),D.registerChart(Po.type,Po)},rat=()=>{yst(),GD(),D.registerChart(Po.type,Po)};class _F extends B0{_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 Eo extends K1{constructor(){super(...arguments),this.transformerConstructor=_F,this.type="wordCloud3d",this.seriesType=H.wordCloud3d}}Eo.type="wordCloud3d",Eo.seriesType=H.wordCloud3d,Eo.transformerConstructor=_F;const aat=()=>{ND(),D.registerChart(Eo.type,Eo)},oat=()=>{bst(),ND(),D.registerChart(Eo.type,Eo)};class I0 extends ps{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(n=>{n in i||(i[n]=e[n])})}):t.series=[e]}}class ec extends Ae{constructor(){super(...arguments),this.transformerConstructor=I0,this.type="funnel",this.seriesType=H.funnel}}ec.type="funnel",ec.seriesType=H.funnel,ec.transformerConstructor=I0;const lat=()=>{Rst(),D.registerChart(ec.type,ec)};class ic extends Ae{constructor(){super(...arguments),this.transformerConstructor=I0,this.type="funnel3d",this.seriesType=H.funnel3d}}ic.type="funnel3d",ic.seriesType=H.funnel3d,ic.transformerConstructor=I0;const hat=()=>{Bst(),D.registerChart(ic.type,ic)};class mF extends Hs{needAxes(){return!1}_getDefaultSeriesSpec(t){var e,i;const n=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},n),{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 n=null,r=null;((e=t.axes)!==null&&e!==void 0?e:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(n=o),l==="bottom"&&(r=o)}),n||(n={orient:"left",visible:!1},t.axes.push(n)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),P(r.type)&&(r.type="band"),P(n.type)&&(n.type="linear");const a=au(n,{min:0,max:1});P(n.min)&&(n.min=a.min),P(n.max)&&(n.max=a.max)}else{let n=null,r=null;((i=t.axes)!==null&&i!==void 0?i:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(n=o),l==="bottom"&&(r=o)}),n||(n={type:"band",orient:"left",visible:!1},t.axes.push(n)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),P(r.type)&&(r.type="linear"),P(n.type)&&(n.type="band");const a=au(r,{min:0,max:1});P(r.min)&&(r.min=a.min),P(r.max)&&(r.max=a.max)}}}class nc extends Ae{constructor(){super(...arguments),this.transformerConstructor=mF,this.type="linearProgress",this.seriesType=H.linearProgress,this._canStack=!0}}nc.type="linearProgress",nc.seriesType=H.linearProgress,nc.transformerConstructor=mF;const dat=()=>{mnt(),D.registerChart(nc.type,nc)};class vF extends Hs{_getDefaultSeriesSpec(t){var e,i;const n=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 n.bar=t.bar,t.direction==="horizontal"?n.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:n.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],n}transformSpec(t){super.transformSpec(t),Qa(t)}}class sc extends Ae{constructor(){super(...arguments),this.transformerConstructor=vF,this.type="rangeColumn",this.seriesType=H.rangeColumn}}sc.type="rangeColumn",sc.seriesType=H.rangeColumn,sc.transformerConstructor=vF;const cat=()=>{Pit(),D.registerChart(sc.type,sc)};class yF extends Hs{_getDefaultSeriesSpec(t){var e,i;const n=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barGapInGroup:t.barGapInGroup});return n.bar3d=t.bar3d,t.direction==="horizontal"?n.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:n.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],n}}class rc extends Ae{constructor(){super(...arguments),this.transformerConstructor=yF,this.type="rangeColumn3d",this.seriesType=H.rangeColumn3d}}rc.type="rangeColumn3d",rc.seriesType=H.rangeColumn3d,rc.transformerConstructor=yF;const uat=()=>{Eit(),D.registerChart(rc.type,rc)};class bF extends ps{_getDefaultSeriesSpec(t){const e=E(t.startAngle)?t.startAngle:n1,i=E(t.endAngle)?t.endAngle:e+sh(2*Math.PI),n=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=H.sunburst;return n.type=r,n[r]=t[r],n}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class ac extends Ae{constructor(){super(...arguments),this.transformerConstructor=bF,this.type="sunburst",this.seriesType=H.sunburst}}ac.type="sunburst",ac.seriesType=H.sunburst,ac.transformerConstructor=bF;const pat=()=>{ert(),D.registerChart(ac.type,ac)};class xF extends ps{_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=H.circlePacking;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class oc extends Ae{constructor(){super(...arguments),this.transformerConstructor=xF,this.type="circlePacking",this.seriesType=H.circlePacking}}oc.type="circlePacking",oc.seriesType=H.circlePacking,oc.transformerConstructor=xF;const gat=()=>{art(),D.registerChart(oc.type,oc)};class SF extends ps{_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 lc extends Ae{constructor(){super(...arguments),this.transformerConstructor=SF,this.type="treemap",this.seriesType=H.treemap}}lc.type="treemap",lc.seriesType=H.treemap,lc.transformerConstructor=SF;const fat=()=>{wrt(),D.registerChart(lc.type,lc)};class AF extends k0{transformSpec(t){super.transformSpec(t),t.legends&&V(t.legends).forEach(e=>{e.select=!1,e.hover=!1,e.filter=!1}),Qa(t)}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{bar:t.bar,stackLabel:t.stackLabel,leaderLine:t.leaderLine,total:t.total})}}class hc extends wo{constructor(){super(...arguments),this.transformerConstructor=AF,this.type="waterfall",this.seriesType=H.waterfall}}hc.type="waterfall",hc.seriesType=H.waterfall,hc.transformerConstructor=AF;const _at=()=>{bit(),D.registerChart(hc.type,hc)};class kF extends Hs{_getDefaultSeriesSpec(t){var e;const i=[t.maxField,t.medianField,t.q1Field,t.q3Field,t.minField,t.outliersField],n=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 n[n.direction==="horizontal"?"xField":"yField"]=i,n}transformSpec(t){super.transformSpec(t),t.axes||(t.axes=[{orient:"bottom"},{orient:"left"}]),Qa(t)}}class dc extends Ae{constructor(){super(...arguments),this.transformerConstructor=kF,this.type="boxPlot",this.seriesType=H.boxPlot}}dc.type="boxPlot",dc.seriesType=H.boxPlot,dc.transformerConstructor=kF;const mat=()=>{kit(),D.registerChart(dc.type,dc)};class TF extends ps{_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,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}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class cc extends Ae{constructor(){super(...arguments),this.transformerConstructor=TF,this.type="sankey",this.seriesType=H.sankey}_setStateInDatum(t,e,i,n,r){const a=G(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 p=null;d.getMarks().forEach(g=>{let f=null;const _=g.getProduct();_&&((!n||N(n)&&n(d,g))&&(f=_.elements.find(m=>o.every(y=>{var v,b;return a[y]==((b=(v=m.getDatum())===null||v===void 0?void 0:v.datum)===null||b===void 0?void 0:b[y])}))),f&&(h=!0,l.interaction.startInteraction(t,f),(_.id().includes("node")||_.id().includes("link"))&&(p=f)))}),p&&((u=(c=d)._handleEmphasisElement)===null||u===void 0||u.call(c,{item:p}))}),e&&h&&l.interaction.reverseEventElement(t)})}}cc.type="sankey",cc.seriesType=H.sankey,cc.transformerConstructor=TF;const vat=()=>{Srt(),D.registerChart(cc.type,cc)};class MF extends Hs{_getDefaultSeriesSpec(t){var e,i;const n=Object.assign({},super._getDefaultSeriesSpec(t));return n.area=t.area,t.direction==="horizontal"?n.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:n.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],n.stack=!1,n}transformSpec(t){super.transformSpec(t),Qa(t)}}class uc extends Ae{constructor(){super(...arguments),this.transformerConstructor=MF,this.type="rangeArea",this.seriesType=H.rangeArea}}uc.type="rangeArea",uc.seriesType=H.rangeArea,uc.transformerConstructor=MF;const yat=()=>{Bit(),D.registerChart(uc.type,uc)};class wF extends Hs{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},e),{valueField:t.valueField,cell:t.cell})}}class pc extends Ae{constructor(){super(...arguments),this.transformerConstructor=wF,this.type="heatmap",this.seriesType=H.heatmap}}pc.type="heatmap",pc.seriesType=H.heatmap,pc.transformerConstructor=wF;const bat=()=>{zrt(),D.registerChart(pc.type,pc)};class CF extends ps{_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=H.correlation;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class gc extends Ae{constructor(){super(...arguments),this.transformerConstructor=CF,this.type="correlation",this.seriesType=H.correlation}}gc.type="correlation",gc.seriesType=H.correlation,gc.transformerConstructor=CF;const xat=()=>{Urt(),D.registerChart(gc.type,gc)};function PF(s){var t,e;const i=Object.assign({},s);return mt(s.style)||(i.textStyle=xt(s.style)),mt(s.textStyle)||vt(i.textStyle,xt(s.textStyle)),!((t=s.shape)===null||t===void 0)&&t.style&&xt(i.shape.style),!((e=s.background)===null||e===void 0)&&e.style&&xt(i.background.style),i}var Sat=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{const e=[],i={},{series:n,seriesField:r}=t;return n().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},Tat=(s,t)=>{var e,i,n;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 s;const c={};h.forEach(p=>{c[p]=!0});const u=(e=o())!==null&&e!==void 0?e:Cn;return G(s)&&(!((i=s[0])===null||i===void 0)&&i.nodes)?(s[0].nodes=s[0].nodes.filter(p=>c[p.key]===!0),!((n=s[0])===null||n===void 0)&&n.links&&(s[0].links=s[0].links.filter(p=>c[p.source]===!0&&c[p.target]===!0))):E(u)&&(s=s.filter(p=>c[r.getSeriesFieldValue(p,u)]===!0)),s};class q1 extends xn{constructor(){super(...arguments),this.layoutType="normal",this.layoutZIndex=re.Legend,this.layoutLevel=Ds.Legend,this.specKey="legends",this._orient="left",this._visible=!0,this._position="middle",this._preSelectedData=[],this._selectedData=[],this.effect={onSelectedDataChange:()=>{Pe(this._regions,t=>{var e;(e=t.getViewData())===null||e===void 0||e.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Pe(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=y1(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:n,seriesIndex:r}=this._spec;E(n)&&(this._seriesUserId=V(n)),E(e)&&(this._regionUserId=V(e)),E(r)&&(this._seriesIndex=V(r)),E(i)&&(this._regionUserIndex=V(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):(be(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 rr(this._option,t),this._initSelectedData(),Pe(this._regions,e=>{e.event.on(ft.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,n;const r=this._selectedData;P(t)||JSON.stringify(r)===JSON.stringify(t)||(Pe(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(ft.legendSelectedDataChange,{model:this}),(n=this._legendComponent)===null||n===void 0||n.setSelected(this._selectedData))}afterSetLayoutStartPoint(t){if(super.afterSetLayoutStartPoint(t),this._legendComponent){const{x:e,y:i}=t;W(e*i)&&this._legendComponent.setAttributes({x:e,y:i})}}getBoundsInRect(t,e){if(!this._visible)return{x1:0,y1:0,x2:0,y2:0};const i={x1:this.getLayoutStartPoint().x,y1:this.getLayoutStartPoint().y,x2:0,y2:0},n=this._getLegendAttributes(t);if(n.disableTriggerEvent=this._option.disableTriggerEvent,this._legendComponent)be(n,this._cacheAttrs)||this._legendComponent.setAttributes(vt({},n,{defaultSelected:this._selectedData}));else{const o=new(this._getLegendConstructor())(vt({},n,{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=n;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 n=this._getLegendAttributes(this.getLayoutRect());be(n,this._cacheAttrs)||this._legendComponent.setAttributes(vt({},n,{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(ft.legendSelectedDataChange,{model:this})}}_getNeedClearVRenderComponents(){return[this._legendComponent]}clear(){super.clear(),this._cacheAttrs=null,this._preSelectedData=null}}q1.specKey="legends";class H_ extends q1{constructor(){super(...arguments),this.type=Y.discreteLegend,this.name=Y.discreteLegend}static getSpecInfo(t){const e=t[this.specKey];if(!e)return;if(!G(e))return e.type&&e.type!=="discrete"?void 0:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.discreteLegend}];const i=[];return e.forEach((n,r)=>{n.type&&n.type!=="discrete"||i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.discreteLegend})}),i}init(t){super.init(t),Pe(this._regions,e=>{e.addViewDataFilter({type:"discreteLegendFilter",options:{series:e,selected:()=>this._selectedData,field:()=>this._getSeriesLegendField(e),data:()=>this.getLegendDefaultData()},level:Fs.legendFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}_initLegendData(){Mt(this._option.dataSet,"discreteLegendFilter",Tat),Mt(this._option.dataSet,"discreteLegendDataMake",kat);const t=new $t(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"discreteLegendDataMake",options:{series:()=>{const e=[];return Pe(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,n;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&&(n=(i=l.fields)===null||i===void 0?void 0:i[0])!==null&&n!==void 0?n:r}_initSelectedData(){const t=this.getLegendDefaultData();if(this._unselectedData){const e=[],i=[];t.forEach(n=>{this._unselectedData.includes(n)?i.push(n):e.push(n)}),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,n,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=(n=this._regions)===null||n===void 0?void 0:n[0])===null||r===void 0?void 0:r.getSeries()[0];if(!a)return;t.title.text=b_(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},Aat(this._spec,t)),{maxWidth:t.width,maxHeight:t.height});return this._addDefaultTitleText(i),this._addLegendItemFormatMethods(i),i}_getLegendConstructor(){return uL}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($i.legendItemClick,e=>{const i=Pt(e,"detail.currentSelected");t&&this.setSelectedData(i),this.event.emit(ft.legendItemClick,{model:this,value:i,event:e})}),this._legendComponent.addEventListener($i.legendItemHover,e=>{const i=Pt(e,"detail");this.event.emit(ft.legendItemHover,{model:this,value:i,event:e})}),this._legendComponent.addEventListener($i.legendItemUnHover,e=>{const i=Pt(e,"detail");this.event.emit(ft.legendItemUnHover,{model:this,value:i,event:e})})}}_getLegendItems(){const t=(this._legendData.getLatestData()||[]).map(e=>{var i,n;const r=e.style("fillOpacity"),a=e.style("strokeOpacity"),o=e.style("opacity"),l=e.style("texture");return{label:e.key,shape:{symbolType:(n=(i=e.style("symbolType"))!==null&&i!==void 0?i:e.shapeType)!==null&&n!==void 0?n:"circle",fillOpacity:W(r)?r:1,strokeOpacity:W(a)?a:1,opacity:W(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,n,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=(n=this._spec.item)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:{},{formatFunc:d}=Wr(a,o);o&&!a&&d&&(t.item.label.formatMethod=(u,p)=>d(u,p,o));const{formatFunc:c}=Wr(l,h);h&&!l&&c&&(t.item.value.formatMethod=(u,p)=>c(h,u,p,o))}}H_.specKey="legends",H_.type=Y.discreteLegend;const Mat=()=>{D.registerComponent(H_.type,H_)},wat=(s,t)=>{const{series:e,field:i,scale:n}=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;W(d)&&(a=Math.min(d,a)),W(c)&&(o=Math.max(c,o))}),[a,o]}if(n){const a=n();return a?a.domain():[]}return[]},Cat=(s,t)=>{const{selected:e,field:i,data:n}=t,r=e(),a=i();if(r===n())return s;if(a&&!mt(r)){const[o,l]=r;return s.filter(h=>h[a]>=o&&h[a]<=l)}return s};var Pat=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{fE(n.type)&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:n.type==="color"?Y.colorLegend:Y.sizeLegend})}),i}constructor(t,e){super(t,e),this.type=Y.colorLegend,this.name=Y.colorLegend;const i=this._spec.type==="color"?Y.colorLegend:Y.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),Pe(this._regions,e=>{e.addViewDataFilter({type:"continuousLegendFilter",options:{selected:()=>this._selectedData,field:()=>this._field,data:()=>this._legendData.getLatestData()},level:Fs.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(){Mt(this._option.dataSet,"continuousLegendFilter",Cat),Mt(this._option.dataSet,"continuousLegendDataMake",wat);const t=new $t(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"continuousLegendDataMake",options:{series:()=>LL(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,n,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=(n=this._regions)===null||n===void 0?void 0:n[0])===null||r===void 0?void 0:r.getSeries()[0];return d?void(t.title.text=b_(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=b_(this._option.dataSet.getDataView(h.dataId),h.fields[0])}}_getLegendAttributes(t){var e,i;const n=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",r=n==="horizontal"?"bottom":this.layoutOrient;let a=[];const o=this._getScaleInGlobal();o&&o.type==="linear"&&(a=o.range()),mt(a)&&(a=this._legendType==="color"?Bat:Iat);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:n,align:r,zIndex:this.layoutZIndex,min:l,max:h,value:this._spec.defaultSelected,[this._legendType==="color"?"colors":"sizeRange"]:a},Eat(this._spec));return this._addDefaultTitleText(d),d}_getLegendConstructor(){return Rat[this._legendType]}_initEvent(){if(this._legendComponent){const t=this._spec.filter!==!1;this._legendComponent.addEventListener("change",or(e=>{const i=Pt(e,"detail.value");t&&this.setSelectedData(i),this.event.emit(ft.legendFilter,{model:this,value:i,event:e})},30))}}}j_.specKey="legends",j_.type=Y.continuousLegend;const Lat=()=>{D.registerComponent(j_.type,j_)};class Z1{constructor(t){this._showTooltipByHandler=(e,i)=>{var n,r,a;if(P(e))return 1;i.changePositionOnly||this.clearCache(),this._updateViewSpec(i);const o=this._cacheViewSpec;if(P(o==null?void 0:o[this.activeType])||o.visible===!1)return 1;i.tooltipSpec=o,this._updateActualTooltip(e,i),i.tooltipActual=this._cacheActualTooltip;const{title:l,content:h}=this._cacheActualTooltip,d=P(l==null?void 0:l.key)&&P(l==null?void 0:l.value)&&!(h!=null&&h.length);if(this.component.event.emit(ft.tooltipShow,Object.assign(Object.assign({},i),{isEmptyTooltip:P(l==null?void 0:l.key)&&P(l==null?void 0:l.value)&&!(h!=null&&h.length),tooltipData:e,activeType:this.activeType,tooltip:this.component})),d)return 1;let c;return!((n=o.handler)===null||n===void 0)&&n.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 n=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})});n.data.length>0&&e.push(n)}),e.length>0)return e}_getDimensionInfo(t){var e,i;let n;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),n=[...(e=u2(r,o,!0))!==null&&e!==void 0?e:[],...(i=l2(r,o))!==null&&i!==void 0?i:[]],n.length===0)n=void 0;else if(n.length>1){const l=n.filter(h=>{var d;const c=h.axis;if(c.getSpec().hasDimensionTooltip)return!0;if(!vi(c.getScale().type))return!1;let u;for(const p of(d=c==null?void 0:c.getRegions())!==null&&d!==void 0?d:[]){for(const g of p.getSeries())if(g.coordinate==="cartesian"){u=g;break}if(E(u))break}return E(u)&&u.getDimensionField()[0]===u.fieldY[0]?c.getOrient()==="left"||c.getOrient()==="right":c.getOrient()==="bottom"||c.getOrient()==="top"});if(n=l.length?l:n.slice(0,1),n.length>1){const h=new Set;n.forEach(d=>{d.data=d.data.filter(({key:c})=>!h.has(c)&&(h.add(c),!0))})}}return n}_updateViewSpec(t){const{changePositionOnly:e,model:i,dimensionInfo:n}=t;e&&this._cacheViewSpec||(this._cacheViewSpec=htt(this.activeType,this.component.getSpec(),i,n))}_updateActualTooltip(t,e){var i,n,r,a;const o=this._cacheViewSpec[this.activeType],{changePositionOnly:l}=e;if(!l||!this._cacheActualTooltip){const h=mtt(o,t,e),d=!!E(h)&&T_(o.visible,t,e)!==!1;this._cacheActualTooltip=Object.assign(Object.assign({},h),{visible:d,activeType:o.activeType,data:t});const{title:c,content:u}=this._cacheActualTooltip;this._cacheActualTooltip.title=(n=(i=o.updateTitle)===null||i===void 0?void 0:i.call(o,c,t,e))!==null&&n!==void 0?n:c,this._cacheActualTooltip.content=(a=(r=o.updateContent)===null||r===void 0?void 0:r.call(o,u,t,e))!==null&&a!==void 0?a:u}}clearCache(){this._cacheViewSpec=void 0,this._cacheActualTooltip=void 0}}class Oat extends Z1{constructor(){super(...arguments),this.activeType="dimension"}showTooltip(t,e,i){const n=Object.assign(Object.assign({},e),{dimensionInfo:this._preprocessDimensionInfo(t),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(t,n)}shouldHandleTooltip(t,e){var i,n;const{tooltipInfo:r}=e;if(P(r))return!1;const a=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!((n=a==null?void 0:a.activeType)!==null&&n!==void 0?n:this.component.getSpec().activeType).includes("dimension")}getMouseEventData(t){var e;return{tooltipInfo:this._getDimensionInfo(t),ignore:[...(e=this.component.getOption().getAllSeries())!==null&&e!==void 0?e:[]].some(i=>{var n;const r=(n=i.tooltipHelper)===null||n===void 0?void 0:n.ignoreTriggerSet.dimension;return t.model&&(r==null?void 0:r.has(t.model))||t.mark&&(r==null?void 0:r.has(t.mark))})}}}class Dat extends Z1{constructor(){super(...arguments),this.activeType="mark"}showTooltip(t,e,i){const{datum:n,series:r,dimensionInfo:a}=t,o=[{datum:[n],series:r}],l=Object.assign(Object.assign({},e),{dimensionInfo:this._preprocessDimensionInfo(a),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(o,l)}shouldHandleTooltip(t,e){var i;const{tooltipInfo:n}=e;if(P(n))return!1;const r=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!(r!=null&&r.activeType.includes("mark"))}getMouseEventData(t,e){var i;let n,r;if(((i=t.model)===null||i===void 0?void 0:i.modelType)==="series"){const a=t.model,o=a.tooltipHelper,l=o==null?void 0:o.activeTriggerSet.mark,h=o==null?void 0:o.ignoreTriggerSet.mark;l!=null&&l.has(t.model)||l!=null&&l.has(t.mark)?n={mark:t.mark,datum:t.datum,series:a,dimensionInfo:e}:(h!=null&&h.has(t.model)||h!=null&&h.has(t.mark))&&(r=!0)}return{tooltipInfo:n,ignore:r}}}class Fat extends Z1{constructor(){super(...arguments),this.activeType="group"}showTooltip(t,e,i){const{datum:n,series:r,dimensionInfo:a}=t,o=[{datum:V(n),series:r}],l=Object.assign(Object.assign({},e),{groupDatum:this._getGroupDatum(e),dimensionInfo:this._preprocessDimensionInfo(a),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(o,l)}shouldHandleTooltip(t,e){var i;const{tooltipInfo:n}=e;if(P(n))return!1;const r=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!(r!=null&&r.activeType.includes("group"))}getMouseEventData(t,e){var i,n;let r,a;if(((i=t.model)===null||i===void 0?void 0:i.modelType)==="series"){const o=t.model,l=o.tooltipHelper,h=l==null?void 0:l.activeTriggerSet.group,d=l==null?void 0:l.ignoreTriggerSet.group;if(h!=null&&h.has(t.model)||h!=null&&h.has(t.mark)){const c=this.component.getSpec()[this.activeType];(c!=null&&c.triggerMark?V(c.triggerMark):[]).includes((n=t.mark)===null||n===void 0?void 0:n.name)&&(r={mark:t.mark,datum:t.datum,series:o,dimensionInfo:e})}else(d!=null&&d.has(t.model)||d!=null&&d.has(t.mark))&&(a=!0)}return{tooltipInfo:r,ignore:a}}_getGroupDatum(t){const{model:e,mark:i,datum:n}=t,r=e;if(["line","area"].includes(i.type))return V(n);const a=r.getViewData().latestData,o=r.getSeriesField();if(!o)return a;const l=V(n)[0][o];return a.filter(h=>h[o]===l)}}const _E=s=>E(s)&&!G(s),qv=s=>E(s)&&G(s);class EF extends Ku{_shouldMergeThemeToSpec(){return!1}_initTheme(t,e){const{spec:i,theme:n}=super._initTheme(t,e);return i.style=vt({},this._theme,i.style),{spec:i,theme:n}}_transformSpecAfterMergingTheme(t,e,i){var n,r,a,o,l,h,d,c,u;super._transformSpecAfterMergingTheme(t,e,i),t.visible=(n=t.visible)===null||n===void 0||n,t.activeType=ya(t),t.renderMode=(r=t.renderMode)!==null&&r!==void 0?r:qa(this._option.mode)||!Nn(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:ftt,t.enterable=(l=t.enterable)!==null&&l!==void 0&&l,t.transitionDuration=(h=t.transitionDuration)!==null&&h!==void 0?h:150,t.triggerOff=(d=t.triggerOff)!==null&&d!==void 0?d:t.trigger,t.confine=(c=t.confine)!==null&&c!==void 0?c:t.renderMode==="canvas",E(t.mark)&&(t.mark.activeType="mark"),E(t.dimension)&&(t.dimension.activeType="dimension"),E(t.parentElement)?at(t.parentElement)&&(t.parentElement=(u=globalThis==null?void 0:globalThis.document)===null||u===void 0?void 0:u.getElementById(t.parentElement)):Nn(this._option.mode)&&(t.parentElement=ua==null?void 0:ua.body)}}class fc extends xn{constructor(){super(...arguments),this.layoutZIndex=1,this.type=Y.tooltip,this.name=Y.tooltip,this.transformerConstructor=EF,this.specKey="tooltip",this.layoutType="none",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._getMouseOutHandler=t=>e=>{var i,n,r;if(this._alwaysShow||!this._isTooltipShown&&!(!((n=(i=this.tooltipHandler)===null||i===void 0?void 0:i.isTooltipShown)===null||n===void 0)&&n.call(i)))return;const a=Nn((r=this._option)===null||r===void 0?void 0:r.mode),{clientX:o,clientY:l}=e.event;a&&this._isPointerOnTooltip(e)||a&&t&&this._isPointerInChart({x:o,y:l})||this._handleChartMouseOut(e)},this._handleChartMouseOut=t=>{this._alwaysShow||this._spec.triggerOff!=="none"&&(this._hideTooltipByHandler(Object.assign(Object.assign({},t),{tooltip:this})),this._cacheInfo=void 0,this._cacheParams=void 0,this._cacheActiveType=void 0)},this._getMouseMoveHandler=t=>e=>{if(this.tooltipHandler||this._initHandler(),this.processor||this._initProcessor(),this._alwaysShow||this._isPointerOnTooltip(e)||!t&&this._clickLock)return;const i=this._getMouseEventData(e),{tooltipInfo:{dimension:n},ignore:{mark:r,dimension:a}}=i,o={mark:!1,dimension:!1,group:!1};o.group=this._showTooltipByMouseEvent("group",i,e,t),o.group||(o.mark=this._showTooltipByMouseEvent("mark",i,e,t)),o.mark||o.group||(o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t)),Object.values(o).every(l=>!l)&&!ott(e)&&(r&&_E(this._cacheInfo)?o.mark=this._showTooltipByMouseEvent("mark",i,e,t,!0):a&&qv(this._cacheInfo)?o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t,!0):E(n)&&(o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t))),o.mark||o.group||o.dimension&&!P(n)||(this._handleChartMouseOut(e),t&&this._clickLock&&(this._clickLock=!1))},this._showTooltipByMouseEvent=(t,e,i,n,r)=>{var a;const o=this.processor[t];if(!o.shouldHandleTooltip(i,{tooltipInfo:e.tooltipInfo[t],ignore:e.ignore[t]}))return!1;let l;if(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,n&&this._spec.lockAfterClick&&!this._clickLock&&(this._clickLock=!0));const h=(a=this._option)===null||a===void 0?void 0:a.globalInstance;return l&&hi.globalConfig.uniqueTooltip&&h&&hi.hideTooltip(h.id),l},this._getMouseEventData=t=>{const e={tooltipInfo:{},ignore:{}};let i="dimension";const{tooltipInfo:n,ignore:r}=this.processor[i].getMouseEventData(t);e.tooltipInfo[i]=n,e.ignore[i]=r;const a=n;for(i of Object.keys(this.processor))if(i!=="dimension"){const{tooltipInfo:o,ignore:l}=this.processor[i].getMouseEventData(t,a);e.tooltipInfo[i]=o,e.ignore[i]=l}return e},this._hideTooltipByHandler=t=>{var e,i,n,r;if(!this._isTooltipShown&&!(!((i=(e=this.tooltipHandler)===null||e===void 0?void 0:e.isTooltipShown)===null||i===void 0)&&i.call(e)))return 0;let a;if(this.event.emit(ft.tooltipHide,Object.assign(Object.assign({},t),{source:Nt.chart,tooltip:this})),Object.values(this.processor).forEach(o=>{o.clearCache()}),!((n=this._spec.handler)===null||n===void 0)&&n.hideTooltip?a=this._spec.handler.hideTooltip.bind(this._spec.handler):!((r=this.tooltipHandler)===null||r===void 0)&&r.hideTooltip&&(a=this.tooltipHandler.hideTooltip.bind(this.tooltipHandler)),a){const o=a(t);return o||(this._isTooltipShown=!1),o}return 1}}static getSpecInfo(t){const e=t[this.specKey];if(!e)return null;if(!G(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.tooltip}];const i=[];return e.forEach((n,r)=>{i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.tooltip})}),i}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._eventList.forEach(({eventType:i,handler:n})=>{this.event.off(i,n)}),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(ft.tooltipHide,{tooltip:this,chart:this.getChart()}),this.event.emit(ft.tooltipRelease,{tooltip:this,chart:this.getChart()})}_initHandler(){var t,e,i;const n=(t=this._spec.renderMode)!==null&&t!==void 0?t:"html",r=this._option.globalInstance.getTooltipHandlerByUser();if(r)this.tooltipHandler=r;else{const a=n==="canvas"?Ya.canvas:Ya.dom,o=D.getComponentPluginInType(a);o||jo("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}}_initProcessor(){this.processor={mark:new Dat(this),dimension:new Oat(this),group:new Fat(this)}}_initEvent(){var t;if(this._option.disableTriggerEvent)return;const e=V((t=this._spec.trigger)!==null&&t!==void 0?t:"hover"),i=this._option.mode;e.includes("hover")&&(this._mountEvent("pointermove",{source:"chart"},this._getMouseMoveHandler(!1)),(Ga(i)||qa(i))&&(this._mountEvent("pointerdown",{source:"chart"},this._getMouseMoveHandler(!1)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0))),this._mountEvent("pointerout",{source:"canvas"},this._getMouseOutHandler(!1))),e.includes("click")&&(this._mountEvent("pointertap",{source:"chart"},this._getMouseMoveHandler(!0)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0)))}reInit(t){var e,i;super.reInit(t),this.tooltipHandler?(i=(e=this.tooltipHandler).reInit)===null||i===void 0||i.call(e):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 n=rtt(t,e,this);return n!=="none"&&(this._alwaysShow=!!(e!=null&&e.alwaysShow)),n}hideTooltip(){const t={changePositionOnly:!1,tooltip:this,item:void 0,datum:void 0,source:Nt.chart};return this._alwaysShow=!1,!this._hideTooltipByHandler(t)}_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(qv(t)){if(_E(this._cacheInfo))return!1;const r=this._cacheInfo;if(!(r.length===t.length&&t.every((a,o)=>o2(a,r[o]))))return!1}else{if(qv(this._cacheInfo))return!1;const r=this._cacheInfo;if(!((t==null?void 0:t.datum)===r.datum&&(t==null?void 0:t.mark)===r.mark&&(t==null?void 0:t.series)===r.series))return!1}const n=this._cacheParams;return!P(n)&&!P(e)&&n.mark===e.mark&&n.model===e.model&&n.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:n,y:r}=t,a=i.getCanvas(),{x:o,y:l,width:h,height:d}=a.getBoundingClientRect();return n>=o&&n<=o+h&&r>=l&&r<=l+d}_isPointerOnTooltip(t){var e,i;if(this._spec.enterable&&this._spec.renderMode==="html"){const{event:n}=t;let r;if(E(n.nativeEvent)){const o=n.nativeEvent;r=o.relatedTarget,o.composedPath&&o.composedPath().length>0&&(r=o.composedPath()[0])}else r=n.relatedTarget;const a=(i=(e=this.tooltipHandler)===null||e===void 0?void 0:e.getTooltipContainer)===null||i===void 0?void 0:i.call(e);if(E(a)&&E(r)&&KE(r,a))return!0}return!1}getVisible(){return this._spec.visible!==!1}}fc.type=Y.tooltip,fc.transformerConstructor=EF,fc.specKey="tooltip";const zat=()=>{D.registerComponent(fc.type,fc)};function Hat(s){return s===$e["desktop-browser"]||s===$e["desktop-miniApp"]?{click:"pointertap",hover:"pointermove",hoverOut:"pointerleave",clickOut:"pointerleave"}:Ga(s)||qa(s)?{click:"tap",hover:["pointerdown","pointermove"],hoverOut:"pointerleave",clickOut:"pointerleave"}:null}var mE;(function(s){s[s.ALL=3]="ALL",s[s.HORIZONTAL=2]="HORIZONTAL",s[s.VERTICAL=1]="VERTICAL"})(mE||(mE={}));var vE=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{if(!this._option)return;const{x:n,y:r}=this.calculateTriggerPoint(i);this.showDefault=!1,this._layoutCrosshair(n,r);const a=this._getNeedClearVRenderComponents();this._hasActive=a.some(o=>o&&o.attribute.visible!==!1)},this._handleClickInEvent=i=>{this._handleIn(i),this._clickLock=this._hasActive&&this._spec.lockAfterClick,this._clickLock&&nt(this.triggerOff)&&(this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this._clickLock=!1,this._handleOutEvent()},this.triggerOff))},this._handleHoverInEvent=Ka(i=>{this._clickLock||this._handleIn(i)},10),this._handleOutEvent=()=>{this.enableRemain||this._clickLock||!this._hasActive||(this.clearOutEvent(),this.hide())},this._handleTooltipShow=i=>{const n=i.tooltipData;if(i.isEmptyTooltip||!n||!n.length)return void this._handleTooltipHideOrRelease();if(Et(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,n,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:n}=(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:n}}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||be(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 n=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent,r=e?{level:le.chart}:{source:Nt.chart};G(t)?t.forEach(a=>{this.event.on(a,r,n)}):this.event.on(t,r,n)}_eventOff(t,e,i){const n=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent;G(t)?t.forEach(r=>{this.event.off(r,n)}):this.event.off(t,n)}updateLayoutAttribute(){this._limitBounds=null,this._showDefaultCrosshair()}calculateTriggerPoint(t){const{event:e}=t,i=this._option.getCompiler().getStage().getLayer(void 0),n={x:e.viewX,y:e.viewY};return i.globalTransMatrix.transformPoint({x:e.viewX,y:e.viewY},n),{x:n.x-this.getLayoutStartPoint().x,y:n.y-this.getLayoutStartPoint().y}}_getTriggerEvent(){const{mode:t=$e["desktop-browser"]}=this._option,e=Hat(t);if(e){const i=this.trigger||"hover",n=r=>r==="click"?this.triggerOff==="none"?null:e.clickOut:"hoverOut";if(G(i)){const r=[];return i.forEach(a=>{r.push({click:a==="click",in:e[a],out:n(a)})}),r}return[{click:i==="click",in:e[i],out:n(i)}]}return null}_registerTooltipEvent(){this.event.on(ft.tooltipHide,{source:Nt.chart},this._handleTooltipHideOrRelease),this.event.on(ft.tooltipShow,{source:Nt.chart},this._handleTooltipShow),this.event.on(ft.tooltipRelease,{source:Nt.chart},this._handleTooltipHideOrRelease)}_getAxisInfoByField(t){var e,i;const n=(i=(e=this._option).getComponentsByKey)===null||i===void 0?void 0:i.call(e,"axes");if(!(n!=null&&n.length))return null;let r=Pt(this._spec,`${t}Field.bindingAxesIndex`);if(r||(r=[],n.forEach((p,g)=>{jat[t].includes(p.getOrient())&&r.push(g)})),!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(p=>{o=1/0,l=1/0,h=-1/0,d=-1/0;const g=n.find(f=>f.getSpecIndex()===p);g&&(g.getRegions().forEach(f=>{const{x:_,y:m}=f.getLayoutStartPoint();o=Math.min(o,_-c),l=Math.min(l,m-u),h=Math.max(h,_+f.getLayoutRect().width-c),d=Math.max(d,m+f.getLayoutRect().height-u)}),a.set(p,{x1:o,y1:l,x2:h,y2:d,axis:g}))}),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:n}=this._spec;t&&(this.trigger=t),(e==="none"||nt(e)&&e>0)&&(this.triggerOff=e),i!==void 0&&(this.labelZIndex=i),n!==void 0&&(this.gridZIndex=n)}_parseField(t,e){var i,n,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:p}=d,g=d,{strokeOpacity:f,fillOpacity:_,opacity:m}=g,y=vE(g,["strokeOpacity","fillOpacity","opacity"]),v=a.type==="line";let b=v?f:_;if(nt(m)&&(b=(b??1)*m),a.style=Object.assign({opacity:b,pickable:!1,visible:!0},y),v)a.style.stroke=c||u,a.style.lineWidth=Pt(o,"width",p||2);else{a.style.fill=u||c,!((r=(n=(i=this._spec[e])===null||i===void 0?void 0:i.line)===null||n===void 0?void 0:n.style)===null||r===void 0)&&r.stroke&&(a.style.stroke=this._spec[e].line.style.stroke);const x=Pt(o,"width");if(typeof x=="string"){const A=parseInt(x.substring(0,x.length-1),10)/100;a.style.sizePercent=A}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:p="rgba(47, 59, 82, 0.9)",stroke:g,outerBorder:f}=u,_=vE(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:Pt(c,"stroke")}),panel:(ge(d.visible)?d.visible:d)?Object.assign({visible:!0,pickable:!1,fill:p,stroke:g,outerBorder:Object.assign({stroke:p,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(n=>{const r=n.axis;if(P7(n,e,i)&&t.delete(r.getSpecIndex()),r.type.startsWith("polarAxis")){const a=r.getCenter(),o=r.getInnerRadius(),l=r.getOuterRadius(),h=Ce.distancePP({x:e,y:i},a);(h>l||h{(n.xField||n.yField)&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.cartesianCrosshair})}),i}constructor(t,e){super(t,e),this.type=Y.cartesianCrosshair,this.name=Y.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:n}=t.defaultSelect;this._defaultCrosshair(i,n,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:n}=e.defaultSelect;this._defaultCrosshair(i,n,2)}}_defaultCrosshair(t,e,i){const n=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);n&&(i===1?(this._currValueX.clear(),this._currValueX.set(t,{axis:n,value:e})):(this._currValueY.clear(),this._currValueY.set(t,{axis:n,value:e})),this.layoutByValue(i))}_findAllAxisContains(t,e){const i=this._getAxisInfoByField("x"),n=this._getAxisInfoByField("y");return{xAxisMap:this._filterAxisByPoint(i,t,e),yAxisMap:this._filterAxisByPoint(n,t,e)}}_getValueAt(t,e){return t.getScale().invert(e)}clearAxisValue(){this._currValueX.clear(),this._currValueY.clear()}setAxisValue(t,e){Te(e.getOrient())?this._currValueX.set(e.getSpecIndex(),{value:t,axis:e}):this._currValueY.set(e.getSpecIndex(),{value:t,axis:e})}_getAllAxisValues(t,e,i,n){let r=!1;return t.forEach(a=>{vi(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-(n?l.getLayoutStartPoint().x-this.getLayoutStartPoint().x:l.getLayoutStartPoint().y-this.getLayoutStartPoint().y)),axis:l})}),!0)}_layoutCrosshair(t,e,i,n){var r;let a=t,o=e;if(i&&i.length){if(n==="dimension"){const d=i[0],c=d.data[0],u=c.series.dataToPosition(c.datum[0]);(E(d.dimType)?d.dimType==="y":Ks((r=d==null?void 0:d.axis)===null||r===void 0?void 0:r.getOrient()))?o=u.y:a=u.x}else if(n==="mark"){const d=i[0],c=d.series.dataToPosition(d.datum[0]);a=c.x,o=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=Wo(this._regions,"cartesian");if(!e)return;const{x:i,y:n,offsetWidth:r,offsetHeight:a,bandWidth:o,bandHeight:l}=L2(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})),n&&(this._cacheYCrossHairInfo=Object.assign(Object.assign({},n),{_isCache:!0}))),i&&this._layoutVertical(i,o,r),n&&this._layoutHorizontal(n,l,a)}_layoutVertical(t,e,i){var n,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,p=O2(this._xHair,t,e,i);if(this._updateCrosshair("x",u,p),h.visible){const g=Object.assign(Object.assign(Object.assign({x:a+e/2,y:o},h),this._xHair.label),{textStyle:Object.assign(Object.assign({},(n=this._xHair.label)===null||n===void 0?void 0:n.textStyle),{textAlign:"center",textBaseline:"bottom"}),zIndex:this.labelZIndex,visible:!0});this._updateCrosshairLabel(this._xTopLabel,g,f=>{f.name="crosshair-x-top-label",this._xTopLabel=f})}else this._xTopLabel&&this._xTopLabel.hideAll();if(d.visible){const g=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,g,f=>{f.name="crosshair-x-bottom-label",this._xBottomLabel=f})}else this._xBottomLabel&&this._xBottomLabel.hideAll()}}_layoutHorizontal(t,e,i){var n,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,p=D2(this._yHair,t,e,i);if(this._updateCrosshair("y",u,p),h.visible){const g=Object.assign(Object.assign(Object.assign({x:a,y:l+e/2},h),this._yHair.label),{textStyle:Object.assign(Object.assign({},(n=this._yHair.label)===null||n===void 0?void 0:n.textStyle),{textAlign:"right",textBaseline:"middle"}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._yLeftLabel,g,f=>{f.name="crosshair-y-left-label",this._yLeftLabel=f})}else this._yLeftLabel&&this._yLeftLabel.hideAll();if(d.visible){const g=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,g,f=>{f.name="crosshair-y-right-label",this._yRightLabel=f})}else this._yRightLabel&&this._yRightLabel.hideAll()}}_parseFieldInfo(){const{xField:t,yField:e}=this._spec;t&&t.visible&&(this._xHair=this._parseField(t,"xField")),e&&e.visible&&(this._yHair=this._parseField(e,"yField"))}_updateCrosshair(t,e,i){const n=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 ju(Object.assign(Object.assign({},i),{lineStyle:a,zIndex:this.gridZIndex+1,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1})):e==="rect"&&(r=new zm(Object.assign(Object.assign({},i),{rectStyle:a,zIndex:this.gridZIndex,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1}))),n==null||n.add(r),t==="x"?this._xCrosshair=r:this._yCrosshair=r}}_updateCrosshairLabel(t,e,i){const n=this.getContainer();t?t.setAttributes(e):(i(t=new cs(e)),n==null||n.add(t)),I2(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._xCrosshair,this._xTopLabel,this._xBottomLabel,this._yCrosshair,this._yLeftLabel,this._yRightLabel]}}V_.specKey="crosshair",V_.type=Y.cartesianCrosshair;const Vat=()=>{D.registerComponent(V_.type,V_)};var yE=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{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:s.angleAxisHelper.getScale(0).domain().length,label:{visible:!1,text:"",offset:0}};if(i){l.visible=!!t.size;const d=s.angleAxisHelper.getBandwidth(0);t.forEach(c=>{var u,{axis:p,value:g,coord:f}=c,_=yE(c,["axis","value","coord"]);g=g??"",vt(l,_);const m=s.angleAxisHelper.dataToPosition([g]);l.angle=m;const y=p.niceLabelFormatter;!((u=i.label)===null||u===void 0)&&u.visible&&(l.label.visible=!0,l.label.defaultFormatter=y,l.label.text=g,l.label.offset=ru(p.getSpec())),l.startAngle=m-d/2,l.endAngle=m+d/2})}if(n&&(h.visible=!!e.size,e.forEach(d=>{var c,{axis:u,value:p,coord:g}=d,f=yE(d,["axis","value","coord"]);p=p??"";const _=u.niceLabelFormatter;!((c=n.label)===null||c===void 0)&&c.visible&&(h.label.visible=!0,h.label.defaultFormatter=_,h.label.text=p,h.label.offset=ru(u.getSpec())),h.angle=g.angle,h.axis=u,vt(h,f)})),r&&!l.visible&&E(a))l=a;else if(l.label.visible&&i&&i.label){const{label:d}=l,{formatMethod:c,formatter:u}=i.label,{formatFunc:p,args:g}=Wr(c,u,d.text,{label:d.text,orient:"angle"});p?d.text=p(...g):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}if(r&&!h.visible&&E(o))h=o;else if(h.label.visible&&n&&n.label){const{label:d}=h,{formatMethod:c,formatter:u}=n.label,{formatFunc:p,args:g}=Wr(c,u,d.text,{label:d.text,orient:"radius"});p?d.text=p(...g):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}return{angle:l,radius:h}},Gat=(s,t)=>{const{angle:e,innerRadius:i,radius:n,startAngle:r,endAngle:a,center:o}=t;let l;return l=(s.type==="rect"?"sector":"line")=="sector"?{center:o,innerRadius:i,radius:n,startAngle:r,endAngle:a}:{start:gn(o,i,e),end:gn(o,n,e)},l},Nat=(s,t)=>{const{center:e,startAngle:i,endAngle:n,distance:r,sides:a,axis:o,point:l,radius:h,innerRadius:d}=t;let c=r;if((s.smooth?"circle":"polygon")=="polygon"){const u=o.getCenter(),p=fg(u,l),g=(n-i)/a,f=Math.floor((p-i)/g),_=f*g+i,m=Math.min((f+1)*g+i,n),y=gn(u,r,_),v=gn(u,r,m),b=$E([v.x,v.y],[y.x,y.y],[u.x,u.y],[l.x,l.y]);b&&(c=Ye(Ce.distancePN(l,b[0],b[1])+r,d,h))}return{center:e,startAngle:i,endAngle:n,radius:c,sides:a}};class W_ extends J1{static getSpecInfo(t){const e=t[this.specKey];if(P(e))return;if(!G(e))return e.categoryField||e.valueField?[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.polarCrosshair}]:void 0;const i=[];return e.forEach((n,r)=>{(n.categoryField||n.valueField)&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.polarCrosshair})}),i}constructor(t,e){super(t,e),this.type=Y.polarCrosshair,this.name=Y.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:n}=t.defaultSelect;this._defaultCrosshair(i,n,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:n}=e.defaultSelect;this._defaultCrosshair(i,n,2)}}_defaultCrosshair(t,e,i){const n=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);if(n){if(i===1){this._currValueAngle.clear();const r={angle:n.valueToPosition(e),radius:n.getOuterRadius()},a=n.coordToPoint(r);this._currValueAngle.set(t,this._getValueByAxis(n,a))}else{this._currValueRadius.clear();const r={angle:n.startAngle,radius:n.valueToPosition(e)},a=n.coordToPoint(r);this._currValueRadius.set(t,this._getValueByAxis(n,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"),n=this._getAxisInfoByField("value");return{angleAxisMap:this._filterAxisByPoint(i,t,e),radiusAxisMap:this._filterAxisByPoint(n,t,e)}}_getAllAxisValues(t,e,i){let n=!1;return t.forEach(r=>{vi(r.axis.getScale().type)&&(n?this.enable=!1:n=!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:n}=t.getLayoutStartPoint(),{x:r,y:a}=this.getLayoutStartPoint(),o=t.positionToData({x:e.x-(i-r),y:e.y-(n-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:Ce.distancePP(e,t.getCenter()),coord:t.pointToCoord(e),point:e}}_layoutCrosshair(t,e,i,n){let r=t,a=e;if(i&&i.length){if(n==="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(n==="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=Wo(this._regions,"polar");if(!e)return;const{angle:i,radius:n}=Wat(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({},n),{_isCache:!0})),t&&(this._layoutRadius(n),this._layoutAngle(i))}_layoutAngle(t){var e;if(t._isCache&&this.enableRemain)return;const i=this.getContainer(),{angle:n,radius:r,label:a,center:o,visible:l}=t;if(l){const h=this._angleHair.type==="rect"?"sector":"line",d=Gat(this._angleHair,t);if(this._angleCrosshair)this._angleCrosshair.setAttributes(d);else{let c;h==="line"?c=new ju(Object.assign(Object.assign({},d),{lineStyle:this._angleHair.style,zIndex:this.gridZIndex,pickable:!1})):h==="sector"&&(c=new jm(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=k7(n),u=Object.assign(Object.assign(Object.assign(Object.assign({},gn(o,r+a.offset,n)),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,p=>{p.name="crosshair-angle-label",this._angleLabelCrosshair=p})}else this._angleLabelCrosshair&&this._angleLabelCrosshair.hideAll()}}_layoutRadius(t){var e;if(t._isCache&&this.enableRemain)return;const{center:i,startAngle:n,label:r,visible:a}=t,o=this.getContainer();if(a){const l=this._radiusHair.smooth?"circle":"polygon",h=Nat(this._radiusHair,t),d=h.radius;if(this._radiusCrosshair)this._radiusCrosshair.setAttributes(h);else{let c;c=l==="polygon"?new Vm(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex+1})):new Hm(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex})),this._radiusCrosshair=c,o.add(c)}if(r.visible){const c=I7(n),u=Object.assign(Object.assign(Object.assign(Object.assign({},gn(i,d,n)),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,p=>{p.name="crosshair-radius-label",this._radiusLabelCrosshair=p})}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 n=this.getContainer();t?t.setAttributes(e):(t=new cs(e),n==null||n.add(t),i(t)),I2(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._radiusCrosshair,this._radiusLabelCrosshair,this._angleCrosshair,this._angleLabelCrosshair]}}W_.specKey="crosshair",W_.type=Y.polarCrosshair;const Uat=()=>{D.registerComponent(W_.type,W_)},$at=(s,t)=>{const{getNewDomain:e,isContinuous:i,field:n}=t,r=n(),a=e();if(P(a)||P(r))return s;if(a.length===0)return[];const o={};a.forEach(h=>{o[h]||(o[h]=1)});let l=null;return l=i()?h=>h[r]>=a[0]&&h[r]<=a[1]:h=>o[h[r]+""]||o[h[r]],s.filter(l)},Yat=(s,t)=>{const{stateFields:e,valueFields:i,dataCollection:n}=t.input,{stateField:r,valueField:a}=t.output,o={},l=[];return n.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(p=>{o[p]=0}),h.latestData.forEach(p=>{V(e[d]).forEach(g=>{P(p[g])||(P(o[p[g]])&&(o[p[g]]=0),P(i[d])||(o[p[g]]+=isNaN(parseFloat(p[i[d]]))?1:parseFloat(p[i[d]])))})})}),Object.keys(o).forEach((h,d)=>{const c={[r]:h};a&&(c[a]=o[h]),l.push(c)}),l};class Q1 extends xn{get relatedAxisComponent(){return this._relatedAxisComponent}setStartAndEnd(t,e,i=["percent","percent"]){const[n="percent",r="percent"]=i,a=n==="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 n,r;(r=(n=this._spec)===null||n===void 0?void 0:n.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(),n=i?[1-this._end,1-this._start]:[this._start,this._end];if(i)switch(t){case"startHandler":e.rangeFactorEnd(n[1]);break;case"endHandler":e.rangeFactorStart(n[0]);break;default:e.rangeFactorStart(n[0],!0),e.rangeFactorEnd(n[1])}else switch(t){case"startHandler":e.rangeFactorStart(n[0]);break;case"endHandler":e.rangeFactorEnd(n[1]);break;default:e.rangeFactorEnd(n[1],!0),e.rangeFactorStart(n[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 n,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=(n=this._component)===null||n===void 0?void 0:n.setStartAndEnd)===null||r===void 0||r.call(n,this._start,this._end)),a.effect.scaleUpdate()}else Pe(this._regions,o=>{var l;(l=o.getViewData())===null||l===void 0||l.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Pe(this._regions,o=>{o.reFilterViewData()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._visible=!0,this._handleStateChange=(i,n,r)=>{var a,o;return this._startValue=i,this._endValue=n,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 n,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(),p=Math.abs(this._start-this._end),g=(r=(n=this._spec.roamZoom)===null||n===void 0?void 0:n.rate)!==null&&r!==void 0?r:1;if(p>=1&&a<1||p<=.01&&a>1)return;const f=this._isHorizontal?o:l,_=p*(a-1)*g;let m=_/2,y=_/2;if(f){const x=this._isHorizontal?h:d,A=this._isHorizontal?c:u;m=Math.abs(x-f)/Math.abs(A-x)*_,y=Math.abs(A-f)/Math.abs(A-x)*_}const v=Ye(this._start+m,0,1),b=Ye(this._end-y,0,1);this._handleChange(Math.min(v,b),Math.max(v,b),!0)},this._handleChartScroll=(i,n)=>{var r;if(!this._activeRoam)return!1;const{scrollX:a,scrollY:o}=i;let l=this._isHorizontal?a:o;const h=this._isHorizontal?Ut(a/o)>=.5:Ut(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,n)=>{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,n)=>{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)*n;this._handleChange(this._start+a,this._end+a,!0)}else if(i<0&&this._start>0){const a=Math.max(-this._start,i/r)*n;this._handleChange(this._start+a,this._end+a,!0)}}return!1},this._orient=co(t),this._isHorizontal=h2(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(E(this._spec.axisId)?this._relatedAxisComponent=this._option.getComponentByUserId(this._spec.axisId):E(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(n=>!ie(n.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(E(i)&&(E(i.userId)&&(this._seriesUserId=V(i.userId)),E(i.specIndex)&&(this._seriesIndex=V(i.specIndex))),E(this._spec.seriesId)){const n=V(this._spec.seriesId);this._seriesUserId?this._seriesUserId=this._seriesUserId.filter(r=>n.includes(r)):this._seriesUserId=n}if(E(this._spec.seriesIndex)){const n=V(this._spec.seriesIndex);this._seriesIndex?this._seriesIndex=this._seriesIndex.filter(r=>n.includes(r)):this._seriesIndex=n}if(E(this._spec.regionIndex)){const n=this._option.getRegionsInIndex(V(this._spec.regionIndex));this._regions=this._regions.filter(r=>n.includes(r))}else if(E(this._spec.regionId)){const n=V(this._spec.regionId);this._regions=n.length?this._regions.filter(r=>n.includes(r.id)):[]}}onDataUpdate(){var t;const e=this._computeDomainOfStateScale(ie(this._stateScale.type));this._stateScale.domain(e,!0),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(n=>1*n);return e.length?[qe(i),ze(i)]:[-1/0,1/0]}return e}_initEvent(){this._initCommonEvent()}_initData(){const t=[],e=[],i=[];if(this._relatedAxisComponent){const a={};Pe(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,p=u===d?c:d,g=ie(p.getScale(0).type);t.push(o.getRawData());const f=o.getSpec(),_=V(f.xField),m=V(f.yField),y=o.coordinate==="cartesian"?_[0]:(l=f.angleField)!==null&&l!==void 0?l:f.categoryField,v=o.coordinate==="cartesian"?m[0]:(h=f.radiusField)!==null&&h!==void 0?h:f.valueField;if(a[o.id]=o.type==="link"?"from_xField":u===d?y:v,e.push(a[o.id]),this._valueField){const b=o.type==="link"?"from_yField":p===d?y:v;i.push(g?b:null)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),this._originalStateFields=a}else Pe(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:n}=this._option;Rr(n,"dataview",ym),Mt(n,"dataFilterComputeDomain",Yat);const r=new $t(n,{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 rr(this._option,r),r.reRunAllTransform(),n.multipleDataViewAddListener(t,"change",this._handleDataCollectionChange.bind(this))}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._spec.roamZoom===!0||this._spec.roamZoom?this._zoomAttr=U({},this._zoomAttr,this._spec.roamZoom):this._zoomAttr.enable=!1,this._spec.roamDrag===!0||this._spec.roamDrag?this._dragAttr=U({},this._dragAttr,this._spec.roamDrag):this._dragAttr.enable=!1,this._spec.roamScroll===!0||this._spec.roamScroll?this._scrollAttr=U({},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(ie(e.type))return this._isReverse()?i[0]+(i[1]-i[0])*(1-t):i[0]+(i[1]-i[0])*t;let n=e.range();this._isReverse()&&(n=n.slice().reverse());const r=n[0]+(n[1]-n[0])*t;return e.invert(r)}dataToStatePoint(t){const e=this._stateScale,i=e.scale(t);let n=e.range();return!this._isHorizontal&&ie(e.type)&&(n=n.slice().reverse()),(i-n[0])/(n[1]-n[0])}_modeCheck(t,e){return t==="start"?e==="percent"&&this._spec.start||e==="value"&&this._spec.startValue:e==="percent"&&this._spec.end||e==="value"&&this._spec.endValue}_setStateFromSpec(){var t,e;let i,n;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),n=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,n=this._spec.end?this._spec.end:this._spec.endValue?this.dataToStatePoint(this._spec.endValue):1;this._startValue=this._statePointToData(i),this._endValue=this._statePointToData(n),this._start=i,this._end=n,this._minSpan=(t=this._spec.minSpan)!==null&&t!==void 0?t:0,this._maxSpan=(e=this._spec.maxSpan)!==null&&e!==void 0?e:1,ie(this._stateScale.type)&&this._stateScale.domain()[0]!==this._stateScale.domain()[1]&&(this._spec.minValueSpan&&(this._minSpan=this._spec.minValueSpan/(this._stateScale.domain()[1]-this._stateScale.domain()[0])),this._spec.maxValueSpan&&(this._maxSpan=this._spec.maxValueSpan/(this._stateScale.domain()[1]-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=ie(e.type),n=this._computeDomainOfStateScale(i);if(this._stateScale=e.clone(),i){const r=n.map(a=>1*a);this._stateScale.domain(n.length?[qe(r),ze(r)]:[0,1],!0).range(t)}else this._stateScale.domain(n,!0).range(t)}else this._stateScale=new ol,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"||(Mt(this._option.dataSet,"dataFilterWithNewDomain",$at),Pe(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:()=>ie(this._stateScale.type)},level:Fs.dataZoomFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex}))}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||be(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(ie(this._stateScale.type))return[Math.min(e,t),Math.max(e,t)];const i=this._stateScale.domain(),n=i.indexOf(t),r=i.indexOf(e);return i.slice(Math.min(n,r),Math.max(n,r)+1)}_initCommonEvent(){var t,e,i,n,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:E((i=this._spec)===null||i===void 0?void 0:i.delayType)?(r=(n=this._spec)===null||n===void 0?void 0:n.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 n=this._autoUpdate(t),r=this._isHorizontal?"height":"width";this.layout.setLayoutRect({[r]:n?this[`_${r}`]:0},{[r]:tt.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,n=t==null?void 0:t.minBandSize;if(e||n||i)return{bandSize:e,maxBandSize:i,minBandSize:n}}_autoUpdate(t){var e,i,n,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&&vi(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)!==((n=this._cacheRect)===null||n===void 0?void 0:n.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,vi(d.type)){c&&(this._start||this._end)&&(this.type===Y.scrollBar&&(this._start=0,this._end=1),this._updateRangeFactor());const[p,g]=(a=d.rangeFactor())!==null&&a!==void 0?a:[];u=(!P(p)||!P(g))&&!(p===0&&g===1)}else{const[p,g]=(o=d.rangeFactor())!==null&&o!==void 0?o:[this._start,this._end];u=!(p===0&&g===1)}return this.setStartAndEnd(this._start,this._end),u?this.show():this.hide(),this._cacheVisibility=u,u}_getNeedClearVRenderComponents(){return[this._component]}}ei(Q1,D1);class RF extends Ku{_mergeThemeToSpec(t,e){const i=this._theme;let n=t;if(this._shouldMergeThemeToSpec()){const r=o=>{const l=vt({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;n=G(a)?a.map(o=>r(o)):r(a)}return this._adjustPadding(n),{spec:n,theme:i}}}class _c extends Q1{static getSpecInfo(t){const e=t[this.specKey];if(P(e))return;if(!G(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.dataZoom}];const i=[];return e.forEach((n,r)=>{i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.dataZoom})}),i}constructor(t,e){var i;super(t,e),this.type=Y.dataZoom,this.name=Y.dataZoom,this.transformerConstructor=RF,this.specKey="dataZoom",this.layoutZIndex=re.DataZoom,this.layoutLevel=Ds.DataZoom,this.layoutType="region-relative",this._isReverseCache=!1,this._dataToPositionX=n=>{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(n[l])+this.getLayoutStartPoint().x+r+a},this._dataToPositionX2=n=>{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=n=>{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(n[l])+this.getLayoutStartPoint().y+r+a},this._dataToPositionY2=n=>{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,n,r,a,o,l,h,d;super.setAttrFromSpec(),ge(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=(n=(i=this._spec)===null||i===void 0?void 0:i.startHandler)===null||n===void 0?void 0:n.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 Fr;e.domain(t),this._valueScale=e}}_updateScaleRange(){var t,e;const i=this._startHandlerSize+this._endHandlerSize;if(!this._stateScale||!this._valueScale)return;let n;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?(n=this._visible?[this._startHandlerSize/2,this._computeWidth()-i+this._startHandlerSize/2]:a,this._stateScale.range(n),this._valueScale.range([this._computeHeight()-this._middleHandlerSize,0])):this.layoutOrient==="left"?(n=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(n),this._valueScale.range([this._computeWidth()-this._middleHandlerSize,0])):(n=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(n),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?[qe(e),ze(e)]:null}_computeMiddleHandlerSize(){var t,e,i,n;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=(n=this._spec.middleHandler.background.size)!==null&&n!==void 0?n:40;r+=Math.max(a,o)}return r}_computeWidth(){return this._visible===!1?0:nt(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:this._backgroundSize+this._middleHandlerSize}_computeHeight(){return this._visible===!1?0:nt(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(!ie(t.type)||e[0]!==e[1])&&(!vi(t.type)||l3(e).length!==1)}_getAttrs(t){var e,i,n,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:(n=o.zoomLock)!==null&&n!==void 0&&n,minSpan:this._minSpan,maxSpan:this._maxSpan,delayType:o.delayType,delayTime:E(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())}_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),n=this._getAttrs(i);if(this._component)this._component.setAttributes(n);else{const r=this.getContainer();this._component=new ZI(n),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,n){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,n))&&this.event.emit(ft.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(){var t,e,i,n,r,a,o,l,h,d,c;const{middleHandler:u={},startText:p={},endText:g={},backgroundChart:f={},selectedBackgroundChart:_={}}=this._spec;return{backgroundStyle:xt((t=this._spec.background)===null||t===void 0?void 0:t.style),startHandlerStyle:xt((e=this._spec.startHandler)===null||e===void 0?void 0:e.style),middleHandlerStyle:u.visible?{visible:!0,icon:xt((i=u.icon)===null||i===void 0?void 0:i.style),background:{size:(n=u.background)===null||n===void 0?void 0:n.size,style:xt((r=u.background)===null||r===void 0?void 0:r.style)}}:{visible:!1},endHandlerStyle:xt((a=this._spec.endHandler)===null||a===void 0?void 0:a.style),startTextStyle:{padding:p.padding,formatMethod:this._getHandlerTextFormatMethod(p),textStyle:xt(p.style)},endTextStyle:{padding:g.padding,formatMethod:this._getHandlerTextFormatMethod(g),textStyle:xt(g.style)},selectedBackgroundStyle:xt(this._spec.selectedBackground.style),dragMaskStyle:xt((o=this._spec.dragMask)===null||o===void 0?void 0:o.style),backgroundChartStyle:{line:vt(xt((l=f.line)===null||l===void 0?void 0:l.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},xt((h=f.area)===null||h===void 0?void 0:h.style))},selectedBackgroundChartStyle:{line:vt(xt((d=_.line)===null||d===void 0?void 0:d.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},xt((c=_.area)===null||c===void 0?void 0:c.style))},disableTriggerEvent:this._option.disableTriggerEvent}}_getHandlerTextFormatMethod(t){const{formatMethod:e,formatter:i}=t,{formatFunc:n}=Wr(e,i);return n?r=>n(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()}}_c.type=Y.dataZoom,_c.transformerConstructor=RF,_c.specKey="dataZoom";const Xat=()=>{D.registerComponent(_c.type,_c)};class G_ extends Q1{static getSpecInfo(t){const e=t[this.specKey];if(P(e))return;if(!G(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.scrollBar}];const i=[];return e.forEach((n,r)=>{i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.scrollBar})}),i}constructor(t,e){var i;super(t,e),this.type=Y.scrollBar,this.name=Y.scrollBar,this.specKey="scrollBar",this.layoutZIndex=re.DataZoom,this.layoutLevel=Ds.DataZoom,this.layoutType="region-relative",this._filterMode=(i=t.filterMode)!==null&&i!==void 0?i:"axis"}setAttrFromSpec(){super.setAttrFromSpec(),ge(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 nt(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:Ux}_computeHeight(){return nt(this._spec.height)?this._spec.height:this._isHorizontal?Ux:this.getLayoutRect().height}_getAttrs(){var t,e,i,n,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:E((e=this._spec)===null||e===void 0?void 0:e.delayType)?(n=(i=this._spec)===null||i===void 0?void 0:i.delayTime)!==null&&n!==void 0?n: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 e_(t),this._component.addEventListener("scrollDrag",i=>{const n=i.detail.value;this._handleChange(n[0],n[1])}),e.add(this._component)}}_handleChange(t,e,i){super._handleChange(t,e,i);const n=qw(this._start,t)&&qw(this._end,e);if(this._shouldChange&&!n){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(ft.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,n={};return P(i)||(n.padding=i),mt(t==null?void 0:t.style)||(n.railStyle=xt(t.style)),mt(e==null?void 0:e.style)||(n.sliderStyle=xt(e.style)),n.disableTriggerEvent=this._option.disableTriggerEvent,n}_getNeedClearVRenderComponents(){return[this._component]}}G_.type=Y.scrollBar,G_.specKey="scrollBar";const Kat=()=>{D.registerComponent(G_.type,G_)},qat=(s,t)=>{const{datum:e,title:i,content:n}=t,r=[],a=e.call(null);return i.visible&&r.push({type:"title",index:0,datum:a,spec:i}),V(n).forEach((o,l)=>{o.visible&&r.push({type:"content",index:l,datum:a,spec:o})}),r};class Mh extends xn{constructor(){super(...arguments),this.type=Y.indicator,this.name=Y.indicator,this.specKey="indicator",this.layoutType="none",this.layoutZIndex=re.Indicator,this.layoutLevel=Ds.Indicator,this._gap=0,this._activeDatum=null}static getSpecInfo(t){if(this.type!==Mh.type)return null;const e=t[this.specKey];if(!G(e))return e.visible===!1?[]:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.indicator}];const i=[];return e.forEach((n,r)=>{n&&n.visible!==!1&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.indicator})}),i}created(){super.created(),this.initData(),this.initEvent()}setAttrFromSpec(){super.setAttrFromSpec(),this._gap=this._spec.gap||0,this._title=this._spec.title,this._content=V(this._spec.content),this._regions=this._option.getRegionsInUserIdOrIndex(V(this._spec.regionId),V(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(){Mt(this._option.dataSet,"indicatorFilter",qat);const t=new $t(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 rr(this._option,t)}updateLayoutAttribute(){const t=this._getIndicatorAttrs();this._createOrUpdateIndicatorComponent(t),super.updateLayoutAttribute()}_getIndicatorAttrs(){const t=this._regions[0],{width:e,height:i}=t.getLayoutRect(),{x:n,y:r}=t.getLayoutStartPoint(),a=[];return V(this._spec.content).forEach(o=>{const l=vt({},this._theme.content,o);a.push({visible:l.visible!==!1&&(!l.field||this._activeDatum!==null),space:l.space||this._gap,autoLimit:l.autoLimit,autoFit:l.autoFit,fitPercent:l.fitPercent,fitStrategy:l.fitStrategy,style:Object.assign(Object.assign({},xt(l.style)),{text:this._createText(l.field,l.style.text)})})}),{visible:this._spec.visible!==!1&&(this._spec.fixed!==!1||this._activeDatum!==null),size:{width:e,height:i},zIndex:this.layoutZIndex,x:n,y:r,dx:this._spec.offsetX?Nl(this._spec.offsetX,this._computeLayoutRadius()):0,dy:this._spec.offsetY?Nl(this._spec.offsetY,this._computeLayoutRadius()):0,limitRatio:this._spec.limitRatio||1/0,title:{visible:this._spec.title.visible!==!1&&(!E(this._spec.title.field)||this._activeDatum!==null),space:this._spec.title.space||this._gap,autoLimit:this._spec.title.autoLimit,autoFit:this._spec.title.autoFit,fitPercent:this._spec.title.fitPercent,fitStrategy:this._spec.title.fitStrategy,style:Object.assign(Object.assign({},xt(this._spec.title.style)),{text:this._createText(this._spec.title.field,this._spec.title.style.text)})},content:a}}_createOrUpdateIndicatorComponent(t){if(this._indicatorComponent)be(t,this._cacheAttrs)||this._indicatorComponent.setAttributes(t);else{const e=this.getContainer(),i=new V6(t);i.name="indicator",e.add(i),this._indicatorComponent=i,this._indicatorComponent.on("*",(n,r)=>this._delegateEvent(this._indicatorComponent,n,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}}Mh.type=Y.indicator,Mh.specKey="indicator";const Zat=()=>{D.registerComponent(Mh.type,Mh)},Jat=["sum","average","min","max","variance","standardDeviation","median"];var Qat=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n1*a),n=qe(i),r=ze(i);return tr}function bE(s,t,e,i,n,r){var a,o;const{relativeSeries:l}=i;let h;return nt(s.x)&&Xa(t,s.x,e)&&((o=l==null?void 0:(a=l.getXAxisHelper()).setExtendDomain)===null||o===void 0||o.call(a,"marker_xAxis_extend",s.x)),h=Pn(s.x)?$l(s.x,n)+r.x:l.getXAxisHelper().dataToPosition([s.x])+r.x,h}function xE(s,t,e,i,n,r){var a,o;const{relativeSeries:l}=i;let h;return nt(s.y)&&Xa(t,s.y,e)&&((o=(a=l.getYAxisHelper())===null||a===void 0?void 0:a.setExtendDomain)===null||o===void 0||o.call(a,"marker_yAxis_extend",s.y)),h=Pn(s.y)?$l(s.y,n)+r.y:l.getYAxisHelper().dataToPosition([s.y])+r.y,h}function SE(s,t,e,i){var n,r;const{relativeSeries:a}=i;return nt(s.angle)&&Xa(t,s.angle,e)&&((r=(n=a.angleAxisHelper)===null||n===void 0?void 0:n.setExtendDomain)===null||r===void 0||r.call(n,"marker_angleAxis_extend",s.angle)),a.angleAxisHelper.dataToPosition([s.angle])}function AE(s,t,e,i){var n,r;const{relativeSeries:a}=i;return nt(s.radius)&&Xa(t,s.radius,e)&&((r=(n=a.radiusAxisHelper)===null||n===void 0?void 0:n.setExtendDomain)===null||r===void 0||r.call(n,"marker_radiusAxis_extend",s.radius)),a.radiusAxisHelper.dataToPosition([s.radius])}function $l(s,t){return Number(s.substring(0,s.length-1))*t/100}function nd(s){return Jat.includes(s)}function N_(s,t,e,i,n){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=[],p=s.latestData[0]&&s.latestData[0].latestData?s.latestData[0].latestData:s.latestData,g=i.getXAxisHelper().getScale(0).domain(),f=i.getYAxisHelper().getScale(0).domain();return p.forEach(_=>{const m=E(_.x),y=E(_.y);if(m&&y){const v=bE(_,g,n,c,h,a),b=xE(_,f,n,c,d,a);u.push([{x:v,y:b}])}else if(m){const v=bE(_,g,n,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:v,y:b},{x:v,y:x}])}else if(y){const v=Math.min(a.x,l.x),b=xE(_,f,n,c,d,a),x=Math.max(a.x+r.getLayoutRect().width,l.x+o.getLayoutRect().width);u.push([{x:v,y:b},{x,y:b}])}}),u}function tA(s,t,e,i,n){const r={relativeSeries:i,startRelativeSeries:t,endRelativeSeries:e},a=[],o=s.latestData[0]&&s.latestData[0].latestData?s.latestData[0].latestData:s.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=E(c.angle),p=E(c.radius);if(u&&p){const g=SE(c,l,n,r),f=AE(c,h,n,r);a.push([{angle:g,radius:f}])}else if(u){const g=SE(c,l,n,r);a.push([{angle:g,radius:-d},{angle:g,radius:d}])}else if(p){const g=AE(c,h,n,r);a.push([{radius:g,angle:0},{radius:g,angle:2*Math.PI}])}}),a}function tot(s,t){const e=[];return(s.latestData[0]&&s.latestData[0].latestData?s.latestData[0].latestData:s.latestData).forEach(i=>{E(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 eA(s,t,e,i){const n=[],r=s.latestData[0]&&s.latestData[0].latestData?s.latestData[0].latestData:s.latestData,a=G(i);return r.forEach((o,l)=>{var h,d,c,u;const p=o!=null&&o.getRefRelativeSeries?o.getRefRelativeSeries():t,g=p.getRegion(),f=g.getLayoutStartPoint(),{width:_,height:m}=g.getLayoutRect();let y=0,v=0;if(i){const k=a?i[l]:i,M=k.x,w=k.y;M&&(y=Pn(M)?Number(M.substring(0,M.length-1))*_/100:M),w&&(v=Pn(w)?Number(w.substring(0,w.length-1))*m/100:w)}const b=p.getXAxisHelper().getScale(0).domain(),x=p.getYAxisHelper().getScale(0).domain(),A=V(o.x),T=V(o.y);A.length===1&&nt(A[0])&&Xa(b,A[0],e)&&((d=(h=p.getXAxisHelper())===null||h===void 0?void 0:h.setExtendDomain)===null||d===void 0||d.call(h,"marker_xAxis_extend",A[0])),T.length===1&&nt(T[0])&&Xa(x,T[0],e)&&((u=(c=p.getYAxisHelper())===null||c===void 0?void 0:c.setExtendDomain)===null||u===void 0||u.call(c,"marker_yAxis_extend",T[0])),n.push({x:p.getXAxisHelper().dataToPosition(A)+f.x+y,y:p.getYAxisHelper().dataToPosition(T)+f.y+v})}),n}function BF(s,t,e){const i=[];return(s.latestData[0]&&s.latestData[0].latestData?s.latestData[0].latestData:s.latestData).forEach(n=>{var r,a,o,l;const h=n!=null&&n.getRefRelativeSeries?n.getRefRelativeSeries():t,d=h.angleAxisHelper.getScale(0).domain(),c=h.radiusAxisHelper.getScale(0).domain(),u=V(n.angle),p=V(n.radius);u.length===1&&nt(u[0])&&Xa(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])),p.length===1&&nt(p[0])&&Xa(c,p[0],e)&&((l=(o=h.radiusAxisHelper)===null||o===void 0?void 0:o.setExtendDomain)===null||l===void 0||l.call(o,"marker_yAxis_extend",p[0])),i.push({angle:h.angleAxisHelper.dataToPosition(u),radius:h.radiusAxisHelper.dataToPosition(p)})}),i}function iA(s,t,e){if(e){const r=t.getRegion(),{x:a,y:o}=r.getLayoutStartPoint(),{width:l,height:h}=r.getLayoutRect();return s.map(d=>{let{x:c,y:u}=d;return Pn(c)&&(c=$l(c,l)),c+=a,Pn(u)&&(u=$l(u,h)),u+=o,{x:c,y:u}})}const{width:i,height:n}=t.getOption().getChart().getViewRect();return s.map(r=>{let{x:a,y:o}=r;return Pn(a)&&(a=$l(a,i)),Pn(o)&&(o=$l(o,n)),{x:a,y:o}})}function nA(s){let t=1/0,e=-1/0,i=1/0,n=-1/0;return s.forEach(r=>{const a=r.getLayoutStartPoint(),o=r.getLayoutRect();a.xe&&(e=a.x+o.width),a.yn&&(n=a.y+o.height)}),{minX:t,maxX:e,minY:i,maxY:n}}function sA(s,t){const{labelBackground:e={},style:i,shape:n}=s,r=Qat(s,["labelBackground","style","shape"]);if(s.visible!==!1){const a=r;return n!=null&&n.visible?a.shape=Object.assign({visible:!0},xt(n.style)):a.shape={visible:!1},e.visible!==!1?(a.panel=Object.assign({visible:!0},Sa(xt(e.style),t)),E(e.padding)&&(a.padding=fn(e.padding))):(a.panel={visible:!1},a.padding=0),i&&(a.textStyle=Sa(xt(i),t)),a}return{visible:!1}}function yi(s,t){for(const e in s)N(s[e])&&(s[e]=s[e](t));return s}function Sa(s,t){return N(s)?s(t):s}function kE(s,t){return N(s)?s(t):s}function TE(s,t,e){return E(s)?t==="regionLeft"?e.getLayoutStartPoint().x-s.x:t==="regionRight"?e.getLayoutStartPoint().x+e.getLayoutRect().width-s.x:t==="regionTop"?e.getLayoutStartPoint().y-s.y:t==="regionBottom"?e.getLayoutStartPoint().y+e.getLayoutRect().height-s.y:t:t}function Ro(s){const t="x"in s,e="y"in s,i="x1"in s,n="y1"in s,r="angle"in s,a="radius"in s,o="angle1"in s,l="radius1"in s;return{doXProcess:t&&!e&&!n,doXYY1Process:t&&e&&n,doYProcess:e&&!t&&!i,doYXX1Process:e&&t&&i,doXYProcess:t&&e&&i&&n,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 s&&(!("process"in s)||"process"in s&&"xy"in s.process)}}function Bo(s){const t="x"in s,e="x1"in s,i="y"in s,n="y1"in s,r="angle"in s,a="radius"in s,o="angle1"in s,l="radius1"in s;return{doXProcess:t&&e&&!i&&!n,doYProcess:i&&n&&!t&&!e,doXYProcess:t&&e&&i&&n,doAngleProcess:r&&o&&!a&&!l,doRadiusProcess:a&&l&&!r&&!o,doRadAngProcess:r&&a&&o&&l,doCoordinatesProcess:"coordinates"in s}}function $x(s){return{doXYProcess:E(s.x)&&E(s.y),doPolarProcess:E(s.angle)&&E(s.radius),doGeoProcess:E(s.areaName)}}function eot(s,t,e,i=0){const n=[],r=s.y-t.y,a=s.x-t.x;switch(e){case"top":n.push(s),n.push({x:s.x,y:r>0?s.y-i-Math.abs(r):s.y-i}),n.push({x:t.x,y:r>0?t.y-i:t.y-i-Math.abs(r)}),n.push(t);break;case"bottom":n.push(s),n.push({x:s.x,y:r<0?s.y+i+Math.abs(r):s.y+i}),n.push({x:t.x,y:r<0?t.y+i:t.y+i+Math.abs(r)}),n.push(t);break;case"left":n.push(s),n.push({x:a>0?s.x-i-Math.abs(a):s.x-i,y:s.y}),n.push({x:a>0?t.x-i:t.x-i-Math.abs(a),y:t.y}),n.push(t);break;case"right":n.push(s),n.push({x:a>0?s.x+i:s.x+i+Math.abs(a),y:s.y}),n.push({x:a>0?t.x+i+Math.abs(a):t.x+i,y:t.y}),n.push(t)}return n}function iot(s,t,e,i=0){const n=s.y-t.y,r=s.x-t.x;return e==="bottom"?{dx:r>0?-r/2:Math.abs(r/2),dy:n>0?i:Math.abs(n)+i}:e==="top"?{dx:r>0?-Math.abs(r/2):+Math.abs(r/2),dy:n>0?-(Math.abs(n)+i):-i}:e==="left"?{dx:r>0?-r-i:-i,dy:n>0?-n/2:Math.abs(n/2)}:e==="right"?{dx:r>0?i:Math.abs(r)+i,dy:n>0?-n/2:Math.abs(n/2)}:{}}const not=(s,t)=>{const e=s[0].latestData;return EL(e,t.field)},sot=(s,t)=>{const e=s[0].latestData;return e1(e,t.field)};function rot(s,t){const e=s[0].latestData;return RL(e,t.field)}function aot(s,t){const e=s[0].latestData;return BL(e,t.field)}function oot(s,t){const e=s[0].latestData;return IL(e,t.field)}function lot(s,t){const e=s[0].latestData;return E7(e,t.field)}function hot(s,t){const e=s[0].latestData;return R7(e,t.field)}function rA(s,t){const e=[];return t.forEach(i=>{const n={x:null,y:null,angle:null,radius:null,areaName:null};if(E(i.x)){const r=i.x;G(r)?n.x=r.map(a=>gr(a,s,i)):n.x=gr(r,s,i)}if(E(i.y)){const r=i.y;G(r)?n.y=r.map(a=>gr(a,s,i)):n.y=gr(r,s,i)}if(E(i.angle)){const r=i.angle;G(r)?n.angle=r.map(a=>gr(a,s,i)):n.angle=gr(r,s,i)}if(E(i.radius)){const r=i.radius;G(r)?n.radius=r.map(a=>gr(a,s,i)):n.radius=gr(r,s,i)}if(E(i.areaName)){const r=i.areaName;n.areaName=gr(r,s,i)}i.getRefRelativeSeries&&(n.getRefRelativeSeries=i.getRefRelativeSeries),e.push(n)}),e}const dot={min:not,max:sot,sum:rot,average:aot,variance:oot,standardDeviation:lot,median:hot};function gr(s,t,e){const i=e.getRelativeSeries(),n=e.getStartRelativeSeries(),r=e.getEndRelativeSeries(),a=i.getData().getLatestData(),o=n.getData().getLatestData(),l=r.getData().getLatestData();if(N(s))return s(a,o,l,i,n,r);if(Bs(s)){const{aggrType:h,field:d}=s;return dot[h](t,{field:d})}return s}class aA extends xn{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){const e=t[this.specKey];if(mt(e))return;if(!G(e)&&e.visible!==!1&&this._getMarkerCoordinateType(e)===this.coordinateType)return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:this.type}];const i=[];return V(e).forEach((n,r)=>{n.visible!==!1&&this._getMarkerCoordinateType(n)===this.coordinateType&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:this.type})}),i}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 n={x:"xField",y:"yField",radius:"valueField",angle:"categoryField",areaName:"nameField"};return at(e)&&nd(e)?{field:i.getSpec()[n[t]],aggrType:e}:e}_processSpecByDims(t){const e=this._relativeSeries,i={};return t.forEach(n=>i[n.dim]=this._getFieldInfoFromSpec(n.dim,n.specValue,e)),Object.assign(Object.assign({},i),this._getAllRelativeSeries())}_processSpecCoo(t){var e;let i;return((e=t.coordinates)!==null&&e!==void 0?e:V(t.coordinate)).map(n=>{const r=this._getSeriesByIdOrIndex(n.refRelativeSeriesId,n.refRelativeSeriesIndex);if(this.coordinateType==="cartesian"){const{xField:a,yField:o}=r.getSpec(),{xFieldDim:l,xFieldIndex:h,yFieldDim:d,yFieldIndex:c}=n;let u=a;E(h)&&(u=V(a)[h]),l&&V(a).includes(l)&&(u=l);let p=o;E(c)&&(p=V(o)[c]),d&&V(o).includes(d)&&(p=d),i=Object.assign({x:void 0,y:void 0},this._getAllRelativeSeries()),at(n[u])&&nd(n[u])?i.x={field:u,aggrType:n[u]}:i.x=V(u).map(g=>n[g]),at(n[p])&&nd(n[p])?i.y={field:p,aggrType:n[p]}:i.y=V(p).map(g=>n[g])}else if(this.coordinateType==="polar"){const{valueField:a,categoryField:o}=r.getSpec(),{angleFieldDim:l,angleFieldIndex:h}=n;let d=o;E(h)&&(d=V(o)[h]),l&&V(o).includes(l)&&(d=l);const c=a;i=Object.assign({angle:void 0,radius:void 0},this._getAllRelativeSeries()),at(n[d])&&nd(n[d])?i.angle={field:d,aggrType:n[d]}:i.angle=V(d).map(u=>n[u]),at(n[c])&&nd(n[c])?i.radius={field:c,aggrType:n[c]}:i.radius=V(c).map(u=>n[u])}return i.getRefRelativeSeries=()=>r,i})}_getRelativeDataView(){if(this._specifiedDataSeries){let t=[];V(this._specifiedDataSeries).forEach(i=>{t=t.concat(i.getViewData().latestData)});const e=new Va;return e.registerParser("array",BE),new $t(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 n=this._createMarkerComponent();n.name=(e=this._spec.name)!==null&&e!==void 0?e:this.type,n.id=(i=this._spec.id)!==null&&i!==void 0?i:`${this.type}-${this.id}`,this._markerComponent=n,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,n;let r;return r=(i=this._option.getSeriesInUserIdOrIndex(E(t)?[t]:[],[e]))===null||i===void 0?void 0:i[0],r||(r=(n=this._relativeSeries)!==null&&n!==void 0?n: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=Wo(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=Gi(this._spec.offsetX,e.width,e)),P(this._spec.offsetY)||(this._layoutOffsetY=Gi(this._spec.offsetY,e.height,e)),super.onLayoutStart(t,e,i)}_compareSpec(t,e){const i=super._compareSpec(t,e);return be(e,t)||(i.reRender=!0,i.reMake=!0,i.change=!0),i}}function cot(s,t){const e=s[0].latestData;return B7(e,t.fieldX,t.fieldY)}function oA(s,t){if(t&&t.getRelativeSeries){const e=t.getRelativeSeries();if(e){const i=e.getViewData();return i&&i.latestData&&i.latestData.length?s:[]}}return s}class lA extends aA{constructor(){super(...arguments),this.specKey="markLine",this.layoutZIndex=re.MarkLine}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:n,doRadAngAng1Process:r,doRadAngProcess:a}=Ro(t);return t.coordinateType==="polar"||e||i||n||r||a?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,n,r,a,o,l,h,d,c,u,p,g,f,_,m,y,v;const{label:b={},startSymbol:x={},endSymbol:A={}}=this._spec,T={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:Sa(xt((n=this._spec.line)===null||n===void 0?void 0:n.style),this._markerData),clipInRange:(r=this._spec.clip)!==null&&r!==void 0&&r,label:sA(b,this._markerData),state:{line:yi((o=(a=this._spec.line)===null||a===void 0?void 0:a.state)!==null&&o!==void 0?o:{},this._markerData),lineStartSymbol:yi((h=(l=this._spec.startSymbol)===null||l===void 0?void 0:l.state)!==null&&h!==void 0?h:{},this._markerData),lineEndSymbol:yi((c=(d=this._spec.endSymbol)===null||d===void 0?void 0:d.state)!==null&&c!==void 0?c:{},this._markerData),label:yi((g=(p=(u=this._spec)===null||u===void 0?void 0:u.label)===null||p===void 0?void 0:p.state)!==null&&g!==void 0?g:{},this._markerData),labelBackground:yi((y=(m=(_=(f=this._spec)===null||f===void 0?void 0:f.label)===null||_===void 0?void 0:_.labelBackground)===null||m===void 0?void 0:m.state)!==null&&y!==void 0?y:{},this._markerData)},animation:(v=this._spec.animation)!==null&&v!==void 0&&v,animationEnter:this._spec.animationEnter,animationExit:this._spec.animationExit,animationUpdate:this._spec.animationUpdate};return x.visible?T.startSymbol=Object.assign(Object.assign({},x),{visible:!0,style:xt(x.style)}):T.startSymbol={visible:!1},A.visible?T.endSymbol=Object.assign(Object.assign({},A),{visible:!0,style:xt(A.style)}):T.endSymbol={visible:!1},this._newMarkLineComponent(T)}_getUpdateMarkerAttrs(){var t,e,i,n;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 p;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:_,maxX:m,minY:y,maxY:v}=nA([o.getRegion(),l.getRegion(),h.getRegion()]);p={x:_,y,width:m-_,height:v-y}}const g=(i=(e=this._markerComponent)===null||e===void 0?void 0:e.attribute)!==null&&i!==void 0?i:{},f=Object.assign(Object.assign({},g.label),{text:this._spec.label.formatMethod?this._spec.label.formatMethod(u,c):(n=g.label)===null||n===void 0?void 0:n.text});return Object.assign(Object.assign({},d),{label:f,limitRect:p,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:n,doXYY1Process:r,doYXX1Process:a,doXYProcess:o,doAngleProcess:l,doRadiusProcess:h,doAngRadRad1Process:d,doRadAngAng1Process:c,doRadAngProcess:u}=Ro(t);if(this._markerData=this._getRelativeDataView(),!(i||n||r||a||o||l||h||d||c||u||e))return;Mt(this._option.dataSet,"markerAggregation",rA),Mt(this._option.dataSet,"markerRegression",cot),Mt(this._option.dataSet,"markerFilter",oA);const{options:p,needAggr:g,needRegr:f,processData:_}=this._computeOptions(),m=new $t(this._option.dataSet);m.parse([_],{type:"dataview"}),g&&m.transform({type:"markerAggregation",options:p}),f&&m.transform({type:"markerRegression",options:p}),m.transform({type:"markerFilter",options:this._getAllRelativeSeries()}),m.target.on("change",()=>{this._markerLayout()}),this._markerData=m}}lA.specKey="markLine";class U_ extends lA{constructor(){super(...arguments),this.type=Y.markLine,this.name=Y.markLine,this.coordinateType="cartesian"}_newMarkLineComponent(t){return new ka(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,n=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,o=E(e.coordinates),l=E(e.process),h=l&&E(e.process.x),d=l&&E(e.process.y),c=E(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t,{doXProcess:p,doYProcess:g,doXYY1Process:f,doYXX1Process:_,doXYProcess:m,doCoordinatesProcess:y}=Ro(e);let v=[];if(p||f||g||_||m||o&&h||o&&d){const b=N_(i,n,r,a,u);v=b.length===1?b[0]:b.map(x=>x[0])}else y?v=eA(i,a,u,e.coordinatesOffset):c&&(v=iA(e.positions,a,e.regionRelative));return{points:v}}_markerLayout(){var t,e,i,n;const r=this._getUpdateMarkerAttrs();if(this._spec.type==="type-step"){const a=this._startRelativeSeries,o=this._endRelativeSeries,{multiSegment:l,mainSegmentIndex:h}=this._spec.line||{},{connectDirection:d,expandDistance:c=0}=this._spec;let u;if(Pn(c)){const v=a.getRegion(),b=v.getLayoutStartPoint(),x=o.getRegion(),A=x.getLayoutStartPoint();if(d==="bottom"||d==="top"){const T=Math.abs(Math.min(b.y,A.y)-Math.max(b.y+v.getLayoutRect().height,A.y+x.getLayoutRect().height));u=Number(c.substring(0,c.length-1))*T/100}else{const T=Math.abs(Math.min(b.x,A.x)-Math.max(b.x+v.getLayoutRect().width,A.x+x.getLayoutRect().width));u=Number(c.substring(0,c.length-1))*T/100}}else u=c;const{points:p,label:g,limitRect:f}=r,_=eot(p[0],p[1],d,u);let m;m=l&&E(h)?{position:"middle",autoRotate:!1,refX:0,refY:0}:Object.assign(Object.assign({position:"start",autoRotate:!1},iot(p[0],p[1],d,u)),{refX:0,refY:0});const y=(e=(t=this._markerComponent)===null||t===void 0?void 0:t.attribute)!==null&&e!==void 0?e:{};(i=this._markerComponent)===null||i===void 0||i.setAttributes({points:l?[[_[0],_[1]],[_[1],_[2]],[_[2],_[3]]]:_,label:Object.assign(Object.assign(Object.assign({},g),m),{textStyle:Object.assign(Object.assign({},y.label.textStyle),{textAlign:"center",textBaseline:"middle"})}),limitRect:f,multiSegment:l,mainSegmentIndex:h,dx:this._layoutOffsetX,dy:this._layoutOffsetY})}else(n=this._markerComponent)===null||n===void 0||n.setAttributes(r)}_computeOptions(){let t,e=this._getRelativeDataView(),i=!0,n=!1;const r=this._spec,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYY1Process:h,doYXX1Process:d,doXYProcess:c,doCoordinatesProcess:u}=Ro(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 $t(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:p,yField:g}=a.getSpec();t={fieldX:p,fieldY:g},n=!0}}else i=!1;return{options:t,needAggr:i,needRegr:n,processData:e}}}U_.type=Y.markLine,U_.coordinateType="cartesian";const uot=()=>{D.registerComponent(U_.type,U_),aL()};class $_ extends lA{constructor(){super(...arguments),this.type=Y.polarMarkLine,this.name=Y.polarMarkLine,this.coordinateType="polar"}_newMarkLineComponent(t){const{doRadiusProcess:e,doRadAngAng1Process:i}=Ro(this._spec);return e||i?new Ao(t):new ka(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,n=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:p}=Ro(e);let g=[],f={};const _={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=tA(i,n,r,a,o);g=m.length===1?m[0]:m.map(y=>y[0]),f=g[0].radius===g[1].radius?{radius:g[0].radius,startAngle:g[0].angle,endAngle:g[1].angle,center:_}:{points:g.map(y=>gn(_,y.radius,y.angle))}}else p&&(g=BF(i,a,o),f={points:g.map(m=>gn(_,m.radius,m.angle))});return f}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:n,doRadAngAng1Process:r,doRadAngProcess:a,doCoordinatesProcess:o}=Ro(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}])]:n?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}}}$_.type=Y.polarMarkLine,$_.coordinateType="polar";const pot=()=>{D.registerComponent($_.type,$_),s6(),aL()};class Y_ extends xn{get orient(){return this._orient}constructor(t,e){super(t,e),this.type=Y.title,this.specKey=Y.title,this.layoutType="normal",this.layoutZIndex=re.Title,this.layoutLevel=Ds.Title,this._orient="top",this._orient=y1(t.orient)?t.orient:"top"}initLayout(){super.initLayout(),this._layout&&(this._layout.layoutOrient=this._orient)}static getSpecInfo(t){const e=t[this.specKey];if(!e||e.visible===!1)return null;if(!G(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.title}];const i=[];return e.forEach((n,r)=>{n.visible!==!1&&i.push({spec:n,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:Y.title})}),i}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return(e==null?void 0:e.orient)!==(t==null?void 0:t.orient)&&(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}update(t){}resize(t){}afterSetLayoutStartPoint(t){W(t.x)&&this._titleComponent&&this._titleComponent.setAttribute("x",t.x),W(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:n,y:r}=this.getLayoutStartPoint();return{x1:n,y1:r,x2:n+e.width,y2:r+e.height}}_getTitleLayoutRect(){const t=this._titleComponent.AABBBounds;return{width:this._spec.width?this._spec.width:W(t.width())?t.width():0,height:this._spec.height?this._spec.height:W(t.height())?t.height():0}}_getTitleAttrs(){var t,e,i,n,r,a,o,l,h;const d=Math.max(0,(t=this._spec.width)!==null&&t!==void 0?t:this.getLayoutRect().width);return Object.assign(Object.assign({},um(this._spec,["padding"])),{textType:(e=this._spec.textType)!==null&&e!==void 0?e:"text",text:(i=this._spec.text)!==null&&i!==void 0?i:"",subtextType:(n=this._spec.subtextType)!==null&&n!==void 0?n:"text",subtext:(r=this._spec.subtext)!==null&&r!==void 0?r:"",x:(a=this._spec.x)!==null&&a!==void 0?a:0,y:(o=this._spec.y)!==null&&o!==void 0?o:0,width:d,height:this._spec.height,minWidth:this._spec.minWidth,maxWidth:this._spec.maxWidth,minHeight:this._spec.minHeight,maxHeight:this._spec.maxHeight,padding:this._spec.innerPadding,align:(l=this._spec.align)!==null&&l!==void 0?l:"left",verticalAlign:(h=this._spec.verticalAlign)!==null&&h!==void 0?h:"top",textStyle:Object.assign({width:d},this._spec.textStyle),subtextStyle:Object.assign({width:d},this._spec.subtextStyle)})}_createOrUpdateTitleComponent(t){if(this._titleComponent)be(t,this._cacheAttrs)||this._titleComponent.setAttributes(t);else{const e=this.getContainer(),i=new yL(t);i.name="title",e.add(i),this._titleComponent=i,i.on("*",(n,r)=>this._delegateEvent(i,n,r))}return this._cacheAttrs=t,this._titleComponent}_getNeedClearVRenderComponents(){return[this._titleComponent]}clear(){super.clear(),this._cacheAttrs=null}}Y_.type=Y.title,Y_.specKey=Y.title;const got=()=>{D.registerComponent(Y_.type,Y_)};class hA extends aA{constructor(){super(...arguments),this.specKey="markArea",this.layoutZIndex=re.MarkArea}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:n}=Bo(t);return t.coordinateType==="polar"||e||i||n?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,n,r,a,o,l,h,d,c,u;const p=(t=this._spec.label)!==null&&t!==void 0?t:{},g={zIndex:this.layoutZIndex,interactive:(e=this._spec.interactive)===null||e===void 0||e,hover:(i=this._spec.interactive)===null||i===void 0||i,select:(n=this._spec.interactive)===null||n===void 0||n,points:[{x:0,y:0}],center:{x:0,y:0},innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,areaStyle:Sa(xt((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:sA(p,this._markerData),state:{area:yi((o=this._spec.area)===null||o===void 0?void 0:o.state,this._markerData),label:yi((l=this._spec.label)===null||l===void 0?void 0:l.state,this._markerData),labelBackground:yi((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(g)}_markerLayout(){var t,e,i,n;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 p;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:g,maxX:f,minY:_,maxY:m}=nA([o.getRegion(),l.getRegion(),h.getRegion()]);p={x:g,y:_,width:f-g,height:m-_}}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):(n=(i=this._markerComponent.attribute)===null||i===void 0?void 0:i.label)===null||n===void 0?void 0:n.text}),limitRect:p,dx:this._layoutOffsetX,dy:this._layoutOffsetY}))}_initDataView(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:n,doAngleProcess:r,doRadiusProcess:a,doRadAngProcess:o,doCoordinatesProcess:l}=Bo(t);if(!(e||i||n||r||a||o||l))return null;const{options:h}=this._computeOptions(),d=this._getRelativeDataView();Mt(this._option.dataSet,"markerAggregation",rA),Mt(this._option.dataSet,"markerFilter",oA);const c=new $t(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}}hA.specKey="markArea";class X_ extends hA{constructor(){super(...arguments),this.type=Y.markArea,this.name=Y.markArea,this.coordinateType="cartesian"}_newMarkAreaComponent(t){return new Ta(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,n=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYProcess:h,doCoordinatesProcess:d}=Bo(e),c=E(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t;let p=[],g=[];if(h){g=N_(i,n,r,a,u);const[f,_]=g;f&&f.length&&_&&_.length&&(p=[{x:f[0].x,y:_[0].y},f[0],{x:_[0].x,y:f[0].y},_[0]])}else if(o||l){g=N_(i,n,r,a,u);const[f,_]=g;f&&f.length&&_&&_.length&&(p=[...f,_[1],_[0]])}else d?p=eA(i,a,u,e.coordinatesOffset):c&&(p=iA(e.positions,a,e.regionRelative));return{points:p}}_computeOptions(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:n,doCoordinatesProcess:r}=Bo(t);let a;return n?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}}}X_.type=Y.markArea,X_.coordinateType="cartesian";const fot=()=>{D.registerComponent(X_.type,X_),oL()};class K_ extends hA{constructor(){super(...arguments),this.type=Y.polarMarkArea,this.name=Y.polarMarkArea,this.coordinateType="polar"}_newMarkAreaComponent(t){const{doRadiusProcess:e,doAngleProcess:i,doRadAngProcess:n}=Bo(this._spec);return i||e||n?new ko(t):new Ta(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,n=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doAngleProcess:o,doRadiusProcess:l,doRadAngProcess:h,doCoordinatesProcess:d}=Bo(e),c=(t=e.autoRange)!==null&&t!==void 0&&t;let u,p={};const g={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 f=tA(i,n,r,a,c);h?p={innerRadius:f[0][0].radius,outerRadius:f[1][0].radius,startAngle:f[0][0].angle,endAngle:f[1][0].angle,center:g}:o?p={innerRadius:0,outerRadius:Math.abs(f[0][0].radius),startAngle:f[0][1].angle,endAngle:f[1][1].angle,center:g}:l&&(p={innerRadius:f[0][0].radius,outerRadius:f[1][0].radius,startAngle:f[0][0].angle,endAngle:f[1][1].angle,center:g})}else d&&(u=BF(i,a,c),p={points:u.map(f=>gn(g,f.radius,f.angle))});return p}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:n,doCoordinatesProcess:r}=Bo(t);let a;return n?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}}}K_.type=Y.polarMarkArea,K_.coordinateType="polar";const _ot=()=>{D.registerComponent(K_.type,K_),r6(),oL()},ME=s=>{const t=Object.assign({},s);return xt(t)},mot=s=>{const t=Object.assign({},s);return xt(t)},Xp=s=>Object.assign(Object.assign({},s),{style:Object.assign({},xt(s.style))}),IF=s=>{var t,e,i,n,r,a,o,l,h,d,c,u,p,g,f;const _=ME((e=(t=s==null?void 0:s.slider)===null||t===void 0?void 0:t.trackStyle)!==null&&e!==void 0?e:{}),m=ME((n=(i=s==null?void 0:s.slider)===null||i===void 0?void 0:i.railStyle)!==null&&n!==void 0?n:{}),y=mot((a=(r=s==null?void 0:s.slider)===null||r===void 0?void 0:r.handlerStyle)!==null&&a!==void 0?a:{}),v=Xp((l=(o=s==null?void 0:s.controller)===null||o===void 0?void 0:o.start)!==null&&l!==void 0?l:{}),b=Xp((d=(h=s==null?void 0:s.controller)===null||h===void 0?void 0:h.pause)!==null&&d!==void 0?d:{}),x=Xp((u=(c=s==null?void 0:s.controller)===null||c===void 0?void 0:c.backward)!==null&&u!==void 0?u:{}),A=Xp((g=(p=s==null?void 0:s.controller)===null||p===void 0?void 0:p.forward)!==null&&g!==void 0?g:{}),T=Object.assign(Object.assign({},s),{direction:s.direction,interval:s.interval,visible:s.visible,orient:(f=s.orient)!==null&&f!==void 0?f:"bottom",slider:Object.assign(Object.assign({},s.slider),{trackStyle:_,railStyle:m,handlerStyle:y}),controller:Object.assign(Object.assign({},s.controller),{start:v,pause:b,backward:x,forward:A})});return s.visible||(T.controller.visible=!1,T.slider.visible=!1),T},vot=(s,t)=>Object.assign(Object.assign({},IF(s)),{data:t,type:"continuous"}),yot=(s,t)=>Object.assign(Object.assign({},IF(s)),{data:t,type:"discrete"}),sd=s=>s==="left"||s==="right",Zv=s=>s==="top"||s==="bottom";class q_ extends xn{constructor(){super(...arguments),this.layoutZIndex=re.Player,this.layoutLevel=Ds.Player,this.specKey="player",this.type=Y.player,this._orient="bottom",this._getPlayerAttrs=()=>{var t,e,i,n,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({},yot(this._spec,this._specs)),l),{disableTriggerEvent:this._option.disableTriggerEvent,loop:(n=(i=this._spec)===null||i===void 0?void 0:i.loop)===null||n===void 0||n}):Object.assign(Object.assign(Object.assign({},vot(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?be(t,this._cacheAttrs)||(this._cacheAttrs=t,this._playerComponent.setAttributes(t),this._playerComponent._initAttributes(),this._playerComponent.render()):(t.type==="discrete"?this._playerComponent=new n7(t):this._playerComponent=new r7(t),this._cacheAttrs=t,this._playerComponent.name="player",e.add(this._playerComponent),this._initEvent())},this._maxSize=()=>{var t,e,i,n,r,a,o,l,h;return Math.max(...V((e=(t=this._spec.controller.start)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.size),...V((n=(i=this._spec.controller.pause)===null||i===void 0?void 0:i.style)===null||n===void 0?void 0:n.size),...V((a=(r=this._spec.controller.backward)===null||r===void 0?void 0:r.style)===null||a===void 0?void 0:a.size),...V((l=(o=this._spec.controller.forward)===null||o===void 0?void 0:o.style)===null||l===void 0?void 0:l.size),(h=sd(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&h!==void 0?h:10)},this._sliderExceededSize=()=>{var t,e,i,n,r,a,o,l,h;const d=(t=sd(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&t!==void 0?t:10,c=Math.max(...V((i=(e=this._spec.controller.start)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.size),...V((r=(n=this._spec.controller.pause)===null||n===void 0?void 0:n.style)===null||r===void 0?void 0:r.size),...V((o=(a=this._spec.controller.backward)===null||a===void 0?void 0:a.style)===null||o===void 0?void 0:o.size),...V((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(ft.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(ft.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,i=this._specs[e];V(i.data).forEach(n=>{var r,a;(a=(r=this._option)===null||r===void 0?void 0:r.globalInstance)===null||a===void 0||a.updateData(n.id,n.values)}),this.event.emit(ft.playerChange,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(Le.backward,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(ft.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(ft.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(ft.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(ft.playerPause,{model:this,value:{spec:i,index:e,specs:this._specs}})}))}}get orient(){return this._orient}set layoutOrient(t){this._orient=t}static getSpecInfo(t){const e=t[this.specKey];return P(e)?null:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.player}]}setAttrFromSpec(){var t,e,i,n,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=(n=this._spec.alternate)!==null&&n!==void 0&&n,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),W(t.x)){const e=sd(this._orient)?t.x+this._sliderExceededSize()/2:t.x;this._playerComponent&&this._playerComponent.setAttribute("x",e)}if(W(t.y)){const e=Zv(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 nt(this._spec.width)?Math.min(t.width,Number(this._spec.width)):sd(this._orient)?this._maxSize():t.width}_computeHeight(t){return nt(this._spec.height)?(this._height=this._spec.height,Math.min(t.height,Number(this._spec.height))):Zv(this._orient)?this._maxSize():t.height}_computeDx(t){return sd(this._orient)||this._position==="start"?0:this._position==="middle"?(t.width-this._width)/2:t.width-this._width}_computeDy(t){return Zv(this._orient)||this._position==="start"?0:this._position==="middle"?(t.height-this._height)/2:t.height-this._height}}q_.specKey="player",q_.type=Y.player;const bot=()=>{D.registerComponent(q_.type,q_)};class dA extends xn{constructor(t,e){super(t,e),this.type=Y.label,this.name=Y.label,this.layoutType="none",this.layoutZIndex=re.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:n,select:r}=this._option.getChart().getSpec();return n===!1&&n.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,be(e,t)||(i.reMake=!0),i}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}_delegateLabelEvent(t){t.listenerCount("*")===0&&t.addEventListener("*",(e,i)=>this._delegateEvent(t,e,i))}}dA.type=Y.label;class Z_ extends bh{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}}Z_.type="text",Z_.constructorType="label";const LF=()=>{D.registerMark(Z_.constructorType,Z_),QL()};class OF extends Ku{_initTheme(t,e){return{spec:t,theme:this._theme}}}class mc extends dA{constructor(t,e){super(t,e),this.type=Y.label,this.name=Y.label,this.specKey="label",this.transformerConstructor=OF,this.layoutZIndex=re.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:Y.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(ft.dataZoomChange,()=>{this._labelComponentMap.forEach((e,i)=>{const n=i.getProduct().getGroupGraphicItem();n&&n.disableAnimation()}),this.event.on(pt.AFTER_MARK_RENDER_END,t)});const t=()=>{this._labelComponentMap.forEach((e,i)=>{const n=i.getProduct().getGroupGraphicItem();n&&n.enableAnimation()}),this.event.off(pt.AFTER_MARK_RENDER_END,t)}}afterCompile(){this._labelComponentMap.forEach((t,e)=>{const i=e.getProduct();i&&i.addEventListener(pt.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateLabelEvent(i.getGroupGraphicItem())})})}_initTextMark(){this._labelInfoMap||(this._labelInfoMap=new Map),this._labelComponentMap||(this._labelComponentMap=new Map),Pe(this._regions,t=>{const{markLabelSpec:e={}}=t.getSpecInfo(),i=Object.keys(e),n=t.getRegion();this._labelInfoMap.get(n)||this._labelInfoMap.set(n,[]);for(let r=0;r{if(l.visible){const d=this._labelInfoMap.get(n),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),this._marks.addMark(i),this._labelComponentMap.set(i,()=>this._labelInfoMap.get(e)))}else t.forEach((i,n)=>{const r=this._createMark({type:"component",name:`${i.labelMark.name}-component`},{componentType:"label",noSeparateStyle:!0,support3d:i.baseMark.getSupport3d()});r&&(r.setSkipBeforeLayouted(!0),this._marks.addMark(r),this._labelComponentMap.set(r,()=>this._labelInfoMap.get(e)[n]),i.labelMark.setComponent(r))})})}_initTextMarkStyle(){this._labelInfoMap.forEach(t=>{t.forEach(e=>{var i,n;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)}!((n=(i=r.stateStyle)===null||i===void 0?void 0:i.normal)===null||n===void 0)&&n.lineWidth&&r.setAttribute("stroke",o.getColorAttribute(),"normal",tt.Base_Series)})})}updateLayoutAttribute(){super.updateLayoutAttribute(),this._labelComponentMap.forEach((t,e)=>{const i=t();G(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 n=this._option.getComponentsByType("totalLabel");t.target(e).configure({interactive:!1}).depend(n.map(r=>r.getMarks()[0].getProduct())).labelStyle((r,a)=>{var o,l;const h=i[a.labelIndex];if(h){const{labelSpec:d,labelMark:c}=h,u=c.getRule(),p=this._interactiveConfig(d),g=(l=(o=this._spec)===null||o===void 0?void 0:o.centerOffset)!==null&&l!==void 0?l:0,f=vt({textStyle:Object.assign({pickable:d.interactive===!0},d.style),overlap:{avoidMarks:n.map(_=>_.getMarks()[0].getProductId())}},cit(u,h),Object.assign(Object.assign(Object.assign({},um(d,["position","style","state","type"])),p),{centerOffset:g}));return u!=="line"&&u!=="area"||(f.type=u),f}}).encode((r,a,o)=>{if(i[o.labelIndex]){const{labelSpec:l,labelMark:h}=i[o.labelIndex];return h.skipEncode?{data:r}:F1(i[o.labelIndex],r,l.formatMethod,l.formatter)}}).size(()=>i[0].series.getRegion().getLayoutRect())}compileMarks(){this.getMarks().forEach(t=>{var e;const i=this._labelComponentMap.get(t)();let n;n=G(i)?i[0].series.getRegion().getGroupMark().getProduct():i.series.getRegion().getGroupMark().getProduct(),t.compile({group:n}),(e=t.getProduct())===null||e===void 0||e.configure({context:{model:this,labelInfo:i}})})}getVRenderComponents(){const t=[];return this._labelComponentMap.forEach((e,i)=>{const n=i.getProduct().getGroupGraphicItem();n&&t.push(n)}),t}}mc.type=Y.label,mc.specKey="label",mc.transformerConstructor=OF;const xot=()=>{lO(),LF(),b0(),D.registerComponent(mc.type,mc,!0)};class J_ extends dA{constructor(){super(...arguments),this.type=Y.totalLabel,this.name=Y.totalLabel,this.specKey="totalLabel",this.layoutZIndex=re.Label}static getSpecInfo(t,e){var i;const n=[];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&&n.push({spec:d,type:Y.totalLabel,specPath:["series",l,this.specKey],specInfoPath:["component",this.specKey,l],regionIndexes:[a],seriesIndexes:[l]})})}),n}init(t){super.init(t),this._initTextMark(),this._initLabelComponent()}_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 n=this._createMark({type:"label",name:`${i.name}-total-label`});this._baseMark=i,this._textMark=n,this._initTextMarkStyle()}}}_initTextMarkStyle(){var t;super.initMarkStyleWithSpec(this._textMark,this._spec),this.setMarkStyle(this._textMark,{text:i=>i[bO]},"normal",tt.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)}afterCompile(){this._marks.forEach((t,e)=>{const i=t.getProduct();i&&i.addEventListener(pt.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateLabelEvent(i.getGroupGraphicItem())})})}updateLayoutAttribute(){super.updateLayoutAttribute();const t=this._getSeries();this._marks.forEach((e,i)=>{e.getProduct().target(this._baseMark.getProduct()).configure({interactive:!1}).labelStyle(()=>{var n,r;if(this._baseMark){const{offset:a,animation:o,overlap:l}=this._spec,h=this._interactiveConfig(this._spec);return vt({textStyle:{pickable:this._spec.interactive===!0},position:Sot(t,this._baseMark.type),x:0,y:0},(r=(n=t.getTotalLabelComponentStyle)===null||n===void 0?void 0:n.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[tu])},h))}}).encode(n=>F1({baseMark:this._baseMark,labelMark:this._textMark,series:t,labelSpec:t.getSpec().totalLabel},n,this._spec.formatMethod)).size(()=>this._regions[0].getLayoutRect())})}compileMarks(){this.getMarks().forEach(t=>{var e;const i=this._regions[0].getGroupMark().getProduct();t.compile({group:i}),(e=t.getProduct())===null||e===void 0||e.configure({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]}}J_.type=Y.totalLabel,J_.specKey="totalLabel";function Sot(s,t){var e,i;let n;const{direction:r}=s,a={vertical:["top","bottom"],horizontal:["right","left"]},o=(r==="horizontal"?!((e=s.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=s.getYAxisHelper())===null||i===void 0)&&i.isInverse())?1:0;switch(t){case"rect":case"symbol":n=a[r][o];break;default:n="top"}return n}const Aot=()=>{lO(),LF(),b0(),D.registerComponent(J_.type,J_,!0)};var wE=function(s,t){var e={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.indexOf(i)<0&&(e[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(s);n{this._markerLayout()}),this._markerData=a}}L0.specKey="markPoint";class Q_ extends L0{constructor(){super(...arguments),this.type=Y.markPoint,this.name=Y.markPoint,this.coordinateType="cartesian"}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,n=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=N_(i,n,n,n,l)[0][0]:a?h=eA(i,n,l,e.coordinatesOffset)[0]:o&&(h=iA([e.position],n,e.regionRelative)[0]),{point:h}}_computeOptions(){const t=this._spec,{doXYProcess:e}=$x(t),i=E(t.coordinate);let n;return e?n=[this._processSpecByDims([{dim:"x",specValue:t.x},{dim:"y",specValue:t.y}])]:i&&(n=this._processSpecCoo(t)),{options:n}}}Q_.type=Y.markPoint,Q_.coordinateType="cartesian";const kot=()=>{D.registerComponent(Q_.type,Q_),KS()};class tm extends L0{constructor(){super(...arguments),this.type=Y.polarMarkPoint,this.name=Y.polarMarkPoint,this.coordinateType="polar"}_computePointsAttr(){var t,e;const i=this._markerData,n=this._relativeSeries,r=(e=(t=this._spec)===null||t===void 0?void 0:t.autoRange)!==null&&e!==void 0&&e,a=tA(i,n,n,n,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:gn(o,a.radius,a.angle)}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"radius",specValue:t.radius},{dim:"angle",specValue:t.angle}])]}}}tm.type=Y.polarMarkPoint,tm.coordinateType="polar";const Tot=()=>{D.registerComponent(tm.type,tm),KS()};class em extends L0{constructor(){super(...arguments),this.type=Y.geoMarkPoint,this.name=Y.geoMarkPoint,this.coordinateType="geo"}_computePointsAttr(){const t=this._markerData,e=this._relativeSeries;return{point:tot(t,e)[0][0]}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"areaName",specValue:t.areaName}])]}}}em.type=Y.geoMarkPoint,em.coordinateType="geo";const Mot=()=>{D.registerComponent(em.type,em),KS()};class im extends xn{constructor(){super(...arguments),this.layoutType="none",this.type=Y.brush,this.name=Y.brush,this.specKey="brush",this.layoutZIndex=re.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(n=>{n&&(i.setMarkStyle(n,Object.assign({},t),"inBrush",tt.Series),i.setMarkStyle(n,Object.assign({},e),"outOfBrush",tt.Series))})})}static getSpecInfo(t){const e=t[this.specKey];if(!P(e)&&e.visible!==!1)return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.brush}]}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 n in t[i])e.push(Object.assign({},t[i][n].data[0]));return e}_extendDatumOutOfBrush(t){const e=[];for(const i in t)e.push(t[i].data[0]);return e}_getBrushInteractiveAttr(t){const e=t.getLayoutStartPoint(),i=t.getLayoutRect(),n=e.x,r=n+i.width,a=e.y,o=a+i.height;return{interactiveRange:{minY:a,maxY:o,minX:n,maxX:r},xRange:[n,r],yRange:[a,o]}}_updateBrushComponent(t,e){const i=this._getBrushInteractiveAttr(t),n=this._brushComponents[e];n.setAttributes(i),this._initMarkBrushState(e,""),n.children[0].removeAllChild(),this._needInitOutState=!0}_createBrushComponent(t,e){var i,n;const r=this._getBrushInteractiveAttr(t),a=new SL(Object.assign(Object.assign(Object.assign({zIndex:this.layoutZIndex,brushStyle:xt((i=this._spec)===null||i===void 0?void 0:i.style)},r),this._spec),{disableTriggerEvent:this._option.disableTriggerEvent}));a.id=(n=this._spec.id)!==null&&n!==void 0?n:`brush-${this.id}`,this.getContainer().add(a);const{brushMode:o="single"}=this._spec;this._brushComponents.push(a),this._cacheInteractiveRangeAttrs.push(r),a.addEventListener(Yi.drawStart,l=>{this._emitEvent(ft.brushStart,t)}),a.addEventListener(Yi.moveStart,l=>{this._emitEvent(ft.brushStart,t)}),a.addEventListener(Yi.drawing,l=>{this._needInitOutState&&o==="single"&&this._initMarkBrushState(e,"outOfBrush"),this._needInitOutState=!1,this._needDisablePickable=!0,this._handleBrushChange(ft.brushChange,t,l),this._emitEvent(ft.brushChange,t)}),a.addEventListener(Yi.moving,l=>{this._handleBrushChange(ft.brushChange,t,l),this._emitEvent(ft.brushChange,t)}),a.addEventListener(Yi.brushClear,l=>{this._initMarkBrushState(e,""),this._needInitOutState=!0,this._needDisablePickable=!1,this._handleBrushChange(ft.brushChange,t,l),this._handleBrushChange(ft.brushClear,t,l),this._emitEvent(ft.brushChange,t),this._emitEvent(ft.brushClear,t)}),a.addEventListener(Yi.drawEnd,l=>{this._needInitOutState=!0,this._needDisablePickable=!1;const{operateMask:h}=l.detail;this._handleBrushChange(ft.brushEnd,t,l),this._setAxisAndDataZoom(h,t),this._emitEvent(ft.brushEnd,t)}),a.addEventListener(Yi.moveEnd,l=>{const{operateMask:h}=l.detail;this._handleBrushChange(ft.brushEnd,t,l),this._setAxisAndDataZoom(h,t),this._emitEvent(ft.brushEnd,t)})}_handleBrushChange(t,e,i){const{operateMask:n}=i.detail;this._reconfigItem(n,e),this._reconfigLinkedItem(n,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({},xt(t)),e)}_reconfigItem(t,e){this._itemMap[e.id].forEach(i=>{const n=i.getProduct();!n||!n.elements||!n.elements.length||n.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(),n=e.getSeries().map(r=>r.id);this._linkedSeries.forEach(r=>{if(!n.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,p,g;const f=c.getGraphicItem(),_=h.id+"_"+c.key;!((u=this._linkedOutOfBrushElementsMap)===null||u===void 0)&&u[_]&&this._isBrushContainItem(t,f,{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][_]=c,delete this._linkedOutOfBrushElementsMap[_]):!((g=(p=this._linkedInBrushElementsMap)===null||p===void 0?void 0:p[t==null?void 0:t.name])===null||g===void 0)&&g[_]&&!this._isBrushContainItem(t,f,{dx:o,dy:l})&&(c.removeState("inBrush"),c.addState("outOfBrush"),this._linkedOutOfBrushElementsMap[_]=c),f.setAttribute("pickable",!this._needDisablePickable)})})}})}_isBrushContainItem(t,e,i){var n,r,a;if(!(t!=null&&t.globalTransMatrix)||!(!((n=t==null?void 0:t.attribute)===null||n===void 0)&&n.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:p}=t.globalTransMatrix,g=(i==null?void 0:i.dx)||0,f=(i==null?void 0:i.dy)||0,_=o.map(b=>({x:l*b.x+d*b.y+u+g,y:h*b.x+c*b.y+p+f}));t.globalAABBBounds.clone().set(t.globalAABBBounds.x1+g,t.globalAABBBounds.y1+f,t.globalAABBBounds.x2+g,t.globalAABBBounds.y2+f);const m=e.globalTransMatrix.e,y=e.globalTransMatrix.f;let v=[];if(e.type==="symbol"){const{size:b=0}=e==null?void 0:e.attribute,x=V(b)[0]/2;return v=[{x:m-x,y:y-x},{x:m+x,y:y-x},{x:m+x,y:y+x},{x:m-x,y:y+x}],AA(_,v)}if(e.type==="rect"){const{x1:b,x2:x,y1:A,y2:T}=e==null?void 0:e.AABBBounds,k=Math.abs(b-x),M=Math.abs(A-T);return v=[{x:m,y},{x:m+k,y},{x:m+k,y:y+M},{x:m,y:y+M}],AA(_,v)}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 n=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:p}=n,g=l?"x":"y",f=l?d:u,_=l?c:p;if(this._axisDataZoomMap[r.id]){const m=this._axisDataZoomMap[r.id],y=m.relatedAxisComponent,v=y.getScale().invert(f-e.getLayoutStartPoint()[g]),b=y.getScale().invert(_-e.getLayoutStartPoint()[g]),x=m.dataToStatePoint(v),A=m.dataToStatePoint(b),T=this._stateClamp(x-h),k=this._stateClamp(A+h);m.setStartAndEnd(T,k,["percent","percent"]),this._zoomRecord.push({operateComponent:m,start:T,end:k})}else{const m=r.getScale().range(),y=(o=r.getScale().rangeFactor())!==null&&o!==void 0?o:[0,1],v=f-e.getLayoutStartPoint()[g],b=_-e.getLayoutStartPoint()[g],x=(v-m[0])/(m[1]-m[0])*(y[1]-y[0])+y[0],A=(b-m[0])/(m[1]-m[0])*(y[1]-y[0])+y[0],T=this._stateClamp(x-h),k=this._stateClamp(A+h);r.getScale().rangeFactor([T,k]),r.effect.scaleUpdate(),this._zoomRecord.push({operateComponent:r,start:T,end:k})}})}}_bindRegions(){E(this._spec.regionId)&&E(this._spec.regionIndex)&&(this._relativeRegions=this._option.getAllRegions()),this._relativeRegions=this._option.getRegionsInUserIdOrIndex(V(this._spec.regionId),V(this._spec.regionIndex))}_bindLinkedSeries(){E(this._spec.brushLinkSeriesId)&&E(this._spec.brushLinkSeriesIndex)||(this._linkedSeries=this._option.getSeriesInUserIdOrIndex(V(this._spec.brushLinkSeriesId),V(this._spec.brushLinkSeriesIndex)))}_initRegionAxisMap(){E(this._spec.axisId)?V(this._spec.axisId).forEach(t=>{this._releatedAxes.push(this._option.getComponentByUserId(t))}):E(this._spec.axisIndex)?V(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 n=[];i.getSeries().forEach(r=>{(t&&V(t).includes(r.userId.toString())||e&&V(e).includes(r.getSpecIndex())||!e&&!t)&&n.push(...r.getMarksWithoutRoot()),this._itemMap[i.id]=n})}),this._linkedSeries.forEach(i=>{this._linkedItemMap[i.id]=i.getMarksWithoutRoot()})}_initMarkBrushState(t,e){this._brushComponents.forEach((i,n)=>{n!==t&&i.children[0].removeAllChild()}),this._inBrushElementsMap={},this._outOfBrushElementsMap={},this._linkedInBrushElementsMap={},this._linkedOutOfBrushElementsMap={},this._option.getAllSeries().forEach(i=>{i.getMarksWithoutRoot().forEach(n=>{const r=n.getProduct();!r||!r.elements||!r.elements.length||r.elements.forEach(a=>{const o=n.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((n,r)=>{this._updateBrushComponent(n,r)});const i=super._compareSpec(t,e);return be(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,n)=>{this._updateBrushComponent(i,n)}):(this._brushComponents=[],this._relativeRegions.forEach((i,n)=>{this._createBrushComponent(i,n)})))}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}}}im.type=Y.brush,im.specKey="brush";const wot=()=>{D.registerComponent(im.type,im)};class nm extends xn{constructor(){super(...arguments),this.type=Y.customMark,this.specKey="customMark",this.layoutType="none",this.layoutZIndex=re.CustomMark,this.layoutLevel=Ds.CustomMark}static getSpecInfo(t){const e=t[this.specKey];return e?G(e)?e.map((i,n)=>({spec:i,specPath:[this.specKey,n],specInfoPath:["component",this.specKey,n],type:Y.customMark})):[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.customMark}]:null}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(n=>{const r=n&&n.getMarksWithoutRoot();r&&r.length&&r.forEach(a=>{i.push(a)})}),this._createExtensionMark(this._spec,null,`${bt}_series_${this.id}_extensionMark`,0,{depend:i,hasAnimation:e})}_createExtensionMark(t,e,i,n=0,r){var a;const o=this._createMark({type:t.type,name:`${i}_${n}`},{skipBeforeLayouted:!0,attributeContext:this._getMarkAttributeContext(),componentType:t.componentType,key:t.dataKey});if(o){if(r.hasAnimation&&t.animation){const l=Ht({},Wt(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}_${n}`,(a=t.children)===null||a===void 0||a.forEach((l,h)=>{this._createExtensionMark(l,o,i,h,r)})),E(t.dataId)||W(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 be(e,t)||(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}onRender(t){}afterCompile(){this.getMarks().forEach(t=>{const e=t.getProduct();e&&e.addEventListener(pt.AFTER_ELEMENT_ENCODE,()=>{if(this._isLayout===!1){const i=e.getGroupGraphicItem();i.listenerCount("*")===0&&i.addEventListener("*",(n,r)=>this._delegateEvent(i,n,r))}})})}_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:n}=this.getLayoutRect();return new di().set(t,e,t+i,e+n)}}}_getLayoutRect(){const t=new di;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:n}=this.getLayoutStartPoint();return{x1:i,y1:n,x2:i+e.width,y2:n+e.height}}}nm.type=Y.customMark,nm.specKey="customMark";const Cot=()=>{D.registerComponent(nm.type,nm)};function CE(s,t,e=0){return e>Math.max(t.x1-s.x2,s.x1-t.x2,t.y1-s.y2,s.y1-t.y2)}function Pot(s){return{x1:s.x,x2:s.x+s.width,y1:s.y,y2:s.y+s.height}}function Eot(s){return{x:s.x1,y:s.y1,width:s.x2-s.x1,height:s.y2-s.y1}}function DF(s){var t;if(!s||s.length===0)return[];if(s.length===1)return[s[0].rect];const e=s.map(n=>{var r;return Object.assign(Object.assign({},n),{bound:Pot(n.rect),anchorCandidates:Iot((r=n.anchors)!==null&&r!==void 0?r:[],n.point,n.rect,n.offset)})}),i=[];i.push(e[0].bound);for(let n=1;n<=e.length-1;n++){const r=e[n],a=r.bound;let o=i.some(l=>CE(l,a));if(r.anchorCandidates)if(o&&((t=r.anchorCandidates)===null||t===void 0?void 0:t.length)>0){for(let l=0;lCE(c,d))){i.push(d),o=!1;break}}o&&i.push(r.bound)}else i.push(r.bound)}return i.map(n=>Eot(n))}function Rot(s,t,e){const i=s.map(h=>h.pointCoord),{x1:n,x2:r,y1:a,y2:o}=R3(i),l=e([(n+r)/2,(a+o)/2]);return l?DF(s.map(h=>{const d=h.rect,c=FF(t,h.pointCoord)?e(Bot(t,[h.pointCoord.x,h.pointCoord.y],PE(EE(h.point,l)))):h.point;c&&(d.x=c.x,d.y=c.y);const u=PE(EE(h.point,l));let p;const g=[];return u>=-45&&u<45?(p="top",g.push("left","right")):u>=45&&u<135?p="right":u>=-135&&u<-45?(p="left",g.push("left")):(p="bottom",g.push("left","right")),h.anchors=g,h.offset=20,h.rect=cA(h.rect,p,0),h})):[]}function PE(s){return s>180?s-360:s}function EE(s,t){return 180*Math.atan2(s.y-t.y,s.x-t.x)/Math.PI+90}function Bot(s,t,e,i=200){const n=5621/i;let r=t;for(let a=1;a<=n;a++){const o=W3(r,i,e);if(!FF(s,o))return[o.x,o.y];r=[o.x,o.y]}return t}function FF(s,t){for(let e=0;e{const{x:a,y:o}=cA(Object.assign(Object.assign({},t),{width:e.width,height:e.height}),r,i);n.push({x:a,y:o})}),n}class sm extends xn{constructor(){super(...arguments),this.type=Y.mapLabel,this.name=Y.mapLabel,this.specKey="mapLabel",this.layoutType="none",this.layoutZIndex=re.MarkPoint,this._activeDatum=[]}static getSpecInfo(t){const e=t[this.specKey];return e&&e.visible&&!E(e.series)?[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:Y.mapLabel}]:null}setAttrFromSpec(){var t,e,i,n;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:(n=this._series)===null||n===void 0?void 0:n.getMeasureField()[0]}created(){super.created(),this._spec.visible&&(this.initRelatedInfo(),this.initData(),this.initEvent())}initRelatedInfo(){var t,e,i,n,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=(n=(i=this._regions[0]).getSpec)===null||n===void 0?void 0:n.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 $t(this._option.dataSet,{name:`${this.name}_data`});i.parse([e],{type:"dataview"}),i.transform({type:"copyDataView",level:Fs.copyDataView},!1),this._data=new rr(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:n=>this._isRelativeModel(n.model)},n=>(this.handleZoom(n),!0)),this.event.on("panmove",{filter:n=>this._isRelativeModel(n.model)},n=>(this.handlePan(n),!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",n=>{this._isRelativeSeries(n.options.seriesId)&&this._updateDatum(n.elements[0].getDatum())}),i.addEventListener("element-highlight:reset",n=>{this._isRelativeSeries(n.options.seriesId)&&this._updateDatum(null)})):e==="click"&&(i.addEventListener("element-select:start",n=>{this._isRelativeSeries(n.options.seriesId)&&this._updateDatum(n.elements[0].getDatum())}),i.addEventListener("elementSelectReset",n=>{this._isRelativeSeries(n.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 n;const r=(n=this._data)===null||n===void 0?void 0:n.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 Ma({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 n=this._layoutLabels(e);this._layoutMarkers(n,i),this._renderMarkers()}_evaluateMarker(t,e){var i,n,r,a,o,l,h,d,c,u,p,g;let f=0,_=0,m=0,y=0,v=0;const b=this._spec.position||"top",x=this._spec.offset,A=jr((i=this._spec.background)===null||i===void 0?void 0:i.padding),T=this._spec.space||0;_+=((A==null?void 0:A.left)||0)+((A==null?void 0:A.right)||0),m+=((A==null?void 0:A.top)||0)+((A==null?void 0:A.bottom)||0);const k={},M=this.dataToPosition(t),w=bS({});if(w.name=`${this.name}_marker_itemContainer_${e}`,k.container=w,(n=this._spec.background)===null||n===void 0?void 0:n.visible){const B=Ho(xt(Object.assign({},this._spec.background.style)));B.setAttributes(M),k.labelBackground=B,w.appendChild(B)}if(!((r=this._spec.icon)===null||r===void 0)&&r.visible){const B=Bm(xt(Object.assign({},this._spec.icon.style)));B.setAttributes(M),B.setAttribute("symbolType",(a=this._spec.icon.style)===null||a===void 0?void 0:a.shape);const L=B.AABBBounds,F=(o=(L==null?void 0:L.y2)-(L==null?void 0:L.y1))!==null&&o!==void 0?o:0,z=(l=(L==null?void 0:L.x2)-(L==null?void 0:L.x1))!==null&&l!==void 0?l:0;k.icon=B,w.appendChild(B),v=F,y+=z,f++}if(!((h=this._spec.nameLabel)===null||h===void 0)&&h.visible){const B=dh(xt(Object.assign({},this._spec.nameLabel.style)));B.setAttributes(M),B.setAttribute("text",t[this.nameField]);const L=B.AABBBounds,F=(d=(L==null?void 0:L.y2)-(L==null?void 0:L.y1))!==null&&d!==void 0?d:0,z=(c=(L==null?void 0:L.x2)-(L==null?void 0:L.x1))!==null&&c!==void 0?c:0;k.nameLabel=B,w.appendChild(B),v=Math.max(v,F),y+=z,f++}if(!((u=this._spec.valueLabel)===null||u===void 0)&&u.visible&&E(t[this.valueField])){const B=dh(xt(Object.assign({},this._spec.valueLabel.style)));B.setAttributes(M),B.setAttribute("text",t[this.valueField]);const L=B.AABBBounds,F=(p=(L==null?void 0:L.y2)-(L==null?void 0:L.y1))!==null&&p!==void 0?p:0,z=(g=(L==null?void 0:L.x2)-(L==null?void 0:L.x1))!==null&&g!==void 0?g:0;k.valueLabel=B,w.appendChild(B),v=Math.max(v,F),y+=z,f++}const C=Object.values(k).find(B=>!!B&&B.type!=="group"),R={x:C==null?void 0:C.getComputedAttribute("x"),y:C==null?void 0:C.getComputedAttribute("y")},I={x:R.x,y:R.y,width:0,height:0};I.width=_+y+(f-1)*T,I.height=m+v;const O={rect:I,point:R,index:e};if(b!=="outer"){const B=["top","right","left","bottom"].filter(L=>L!==b);O.rect=cA(I,b,x),O.anchors=B,O.offset=x}else O.pointCoord={x:+(t==null?void 0:t[this._longitudeField]),y:+(t==null?void 0:t[this._latitudeField])};return{pairInfo:O,contentMarks:k}}_layoutMarkers(t,e){var i,n,r;for(let a=0;a{var T,k;if(x){const M=x.AABBBounds;let w=0;x.type==="symbol"&&(w+=((T=M.x2-M.x1)!==null&&T!==void 0?T:0)/2),x.setAttributes({x:_+w,y:f}),_+=(k=M.x2-M.x1)!==null&&k!==void 0?k:0,A!==2&&(_+=g)}}),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],y=this.dataToPosition(m),v=this.getRegions()[0].getLayoutStartPoint(),b=!(!(!((n=this._spec.leader)===null||n===void 0)&&n.visible)||!(o||l||h));this._markerComponents[a].setAttributes({x:v.x,y:v.y,position:y,visible:this._activeDatum.includes(m),itemContent:{refX:0,type:"custom",renderCustomCallback:()=>c,autoRotate:!1,offsetX:u.x+u.width/2-y.x,offsetY:u.y+u.height/2-y.y},itemLine:{visible:b,type:"type-po",lineStyle:xt(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]})):DF(t)}_isRelativeModel(t){var e,i,n;const r=(i=(e=this._series.getXAxisHelper())===null||e===void 0?void 0:e.getAxisId())!==null&&i!==void 0?i:(n=this._series.getCoordinateHelper())===null||n===void 0?void 0:n.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}}sm.type=Y.mapLabel,sm.specKey="mapLabel";const Lot=()=>{D.registerComponent(sm.type,sm)};class Yx{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,n;t.col=(e=t.col)!==null&&e!==void 0?e:1,t.row=(i=t.row)!==null&&i!==void 0?i:1,t.elements=(n=t.elements)!==null&&n!==void 0?n:[]}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,n){t.forEach(r=>{r.index<0&&r.index>=i||(W(r.size)?e[r.index]={value:+r.size,isUserSetting:!0,isLayoutSetting:!1}:N(r.size)&&(e[r.index]={value:r.size(n),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 n;return n=(e=this._gridInfo.elements)===null||e===void 0?void 0:e.find(r=>{var a;if("modelId"in r&&E(r.modelId)){if(E(t.model.userId)&&t.model.userId===r.modelId)return!0}else if("modelKey"in r&&E(r.modelKey)&&"modelIndex"in r&&E(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}),n||(n={col:0,colSpan:1,row:0,rowSpan:1}),this._elementMap.set(t,n),n}getSizeFromGrid(t,e){var i;const n=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 n=[];e.forEach(r=>{r.isUserSetting||r.isLayoutSetting?i-=r.value:n.push(r)}),i<0&&console.warn(`layout content ${t} size bigger than chart`),n.forEach(r=>r.value=i/n.length)}getItemPosition(t){const e=this.getItemGridInfo(t),i={x:this._chartLayoutRect.x,y:this._chartLayoutRect.y};for(let n=0;nu.layoutLevel-c.layoutLevel);const r=e.filter(c=>c.layoutType==="normal"&&c.getModelVisible()!==!1),a=r.filter(c=>rd(c)),o=r.filter(c=>!rd(c));r.forEach(c=>{this.layoutOneItem(c,"user",!1)});const l=e.filter(c=>c.layoutType==="region-relative"),h=l.filter(c=>rd(c)),d=l.filter(c=>!rd(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 n,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:((n=o(l,"col"))!==null&&n!==void 0?n: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);W(d.width)||(d.width=h.width),W(d.height)||(d.height=h.height),t.setLayoutRect(e!=="grid"?d:h),this.setItemLayoutSizeToGrid(t,l)}}function rd(s){return s.layoutOrient==="left"||s.layoutOrient==="right"}Yx.type="grid";const Oot=()=>{D.registerLayout(Yx.type,Yx)};class Xx extends M1{layoutItems(t,e,i,n){this._layoutInit(t,e,i,n),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:p}=this._groupItems(e);this.layoutRegionItems(h,d,c,p),this._processAutoIndent(h,d,c,p,u,r);const g=a.filter(m=>m.layoutOrient!=="z");this.layoutAbsoluteItems(g);const f=d.filter(m=>m.model.specKey==="axes"&&Te(m.layoutOrient))[0],_=d.filter(m=>m.model.specKey==="axes"&&Ks(m.layoutOrient))[0];if(f&&o.length){const m=f.getLayoutStartPoint(),y=f.getLayoutRect(),v={x:_.layoutOrient==="left"?m.x+y.width:m.x,y:m.y,width:this._chartLayoutRect.width,height:this._chartLayoutRect.height};o[0].model.directionStr=_.layoutOrient==="left"?"r2l":"l2r";const b=f.getLayoutRect(),x=_.getLayoutRect(),A={length:o[0].getLayoutRect().width,width:b.width,height:x.height};f.model.setLayout3dBox&&f.model.setLayout3dBox(A),_.model.setLayout3dBox&&_.model.setLayout3dBox(A),o[0].model.setLayout3dBox&&o[0].model.setLayout3dBox(A),this.layoutZAxisItems(o,v)}}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,n=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-n)):(e.left=Math.max(e.left,o.x1-this.leftCurrent),e.right=Math.max(e.right,o.x2-i))}),e}}Xx.type="layout3d";const Dot=()=>{D.registerLayout(Xx.type,Xx)},Fot=()=>{z8()};class wu extends Oi{constructor(){super(...arguments),this.type=wu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}wu.type="image";const zot=()=>{D.registerMark(wu.type,wu),tK()},Hot=()=>{T2(),y0(),Kr(),zh(),Ln(),S0(),qr(),O1(),dl(),$D(),zot(),nF(),b0(),TD(),I1(),YD()};hi.useRegisters([het,met,Aet,Bet,Yrt,Krt,qrt,tat,$rt,nat,sat,rat,lat,_at,mat,iat,dat,cat,yat,pat,gat,fat,vat,bat,Qrt,xat,Zrt,ket,Xrt,eat,hat,uat,aat,oat,Bn,In,tet,eet,iet,Ju,Hh,Mat,Lat,zat,Vat,Uat,Xat,Kat,Zat,dD,uot,fot,kot,pot,_ot,Tot,Mot,got,bot,xot,Aot,wot,Cot,Lot,Fot,Oot,Dot,Hot,Itt,Ltt,$Q,m9,S9,A9,k9,x9,b9]);const jot={class:"whitespace-break-spaces p-4 space-y-2"},Vot=mr("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),Wot=mr("div",null,"安装命令:",-1),Got={class:"space-x-2"},rlt=WF({__name:"vchart",setup(s){const t=Wh(!1),e=Wh(),i=Wh(),n=Wh(),r=Wh();let a,o,l,h;GF(()=>{d(),c(),u(),p()});function d(){const g={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(f){return`${(f*100).toFixed(2)}%`}}}]};a=new hi(g,{dom:e.value}),a.renderSync()}function c(){const g={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(f){return`${(f*100).toFixed(2)}%`}}}]};o=new hi(g,{dom:i.value}),o.renderSync()}function u(){const g={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 hi(g,{dom:n.value}),l.renderSync()}function p(){const g={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 hi(g,{dom:r.value}),h.renderSync()}return(g,f)=>{const _=KF,m=uA("van-tag"),y=uA("van-action-sheet"),v=VF,b=jF;return NF(),UF(b,{navbar:"","navbar-start-side":"back"},{"navbar-end":Jr(()=>[mr("div",{class:"h-full flex-center px-1",onClick:f[0]||(f[0]=x=>t.value=!0)},[eo(_,{name:"i-mdi:information",class:"text-4"})]),eo(y,{show:YF(t),"onUpdate:show":f[1]||(f[1]=x=>XF(t)?t.value=x:null),teleport:"body"},{default:Jr(()=>[mr("div",jot,[Vot,Wot,mr("div",Got,[eo(m,{type:"primary",plain:""},{default:Jr(()=>[$F(" pnpm add @visactor/vchart ")]),_:1})])])]),_:1},8,["show"])]),default:Jr(()=>[eo(v,{title:"柱状图"},{default:Jr(()=>[mr("div",{ref_key:"chart1Ref",ref:e,class:"h-[400px] w-full"},null,512)]),_:1}),eo(v,{title:"折线图"},{default:Jr(()=>[mr("div",{ref_key:"chart2Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1}),eo(v,{title:"饼图"},{default:Jr(()=>[mr("div",{ref_key:"chart3Ref",ref:n,style:{width:"100%",height:"400px"}},null,512)]),_:1}),eo(v,{title:"雷达图"},{default:Jr(()=>[mr("div",{ref_key:"chart4Ref",ref:r,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{rlt as default}; diff --git a/assets/vchart-BoiZFfSn.js.br b/assets/vchart-BoiZFfSn.js.br new file mode 100644 index 00000000..5e1cacb8 Binary files /dev/null and b/assets/vchart-BoiZFfSn.js.br differ diff --git a/assets/vchart-BoiZFfSn.js.gz b/assets/vchart-BoiZFfSn.js.gz new file mode 100644 index 00000000..04cf0163 Binary files /dev/null and b/assets/vchart-BoiZFfSn.js.gz differ diff --git a/assets/watermark-CVaFhT-P.js b/assets/watermark-CVaFhT-P.js new file mode 100644 index 00000000..30fa0a05 --- /dev/null +++ b/assets/watermark-CVaFhT-P.js @@ -0,0 +1 @@ +import{_ as b}from"./index-g5ePWcIs.js";import{d as g,A as w,J as x,z as h,l as u,o as S,c as V,w as a,a as W,b as s,u as n,H as C,s as m,v as p,e as i,K as Y}from"./index-B4fCF_Xu.js";const B={class:"flex flex-col items-center gap-4 p-4"},y=g({__name:"watermark",setup(D){const o=w(),r=x(),e=h({get(){return o.settings.app.enableWatermark},set(c){o.$patch(t=>{t.settings.app.enableWatermark=c})}});function _(){r.update({text:`${Y().format("YYYY-MM-DD HH:mm:ss")}`})}function d(){r.update()}return(c,t)=>{const f=u("van-switch"),l=u("van-button"),k=b;return S(),V(k,{navbar:"","navbar-start-side":"back"},{default:a(()=>[W("div",B,[s(f,{modelValue:n(e),"onUpdate:modelValue":t[0]||(t[0]=v=>C(e)?e.value=v:null)},null,8,["modelValue"]),m(s(l,{onClick:_},{default:a(()=>[i(" 更新水印 ")]),_:1},512),[[p,n(e)]]),m(s(l,{onClick:d},{default:a(()=>[i(" 重置水印 ")]),_:1},512),[[p,n(e)]])])]),_:1})}}});export{y as default}; diff --git a/assets/watermark-CVaFhT-P.js.br b/assets/watermark-CVaFhT-P.js.br new file mode 100644 index 00000000..4c4eee9e Binary files /dev/null and b/assets/watermark-CVaFhT-P.js.br differ diff --git a/assets/watermark-CVaFhT-P.js.gz b/assets/watermark-CVaFhT-P.js.gz new file mode 100644 index 00000000..ff75c3dc Binary files /dev/null and b/assets/watermark-CVaFhT-P.js.gz differ diff --git a/assets/zoomable-KsXoW0bU.js b/assets/zoomable-KsXoW0bU.js new file mode 100644 index 00000000..8b37342d --- /dev/null +++ b/assets/zoomable-KsXoW0bU.js @@ -0,0 +1 @@ +import{_ as s}from"./index-g5ePWcIs.js";import{_ as c}from"./index.vue_vue_type_script_setup_true_lang-DOfpQSqS.js";import{q as n,L as _,o as r,c as i,w as o,b as l,s as m,a as f}from"./index-B4fCF_Xu.js";const p={},u={class:"block h-20 w-20",src:"https://fantastic-mobile.github.io/logo.png"};function b(d,g){const e=c,a=s,t=_("zoomable");return r(),i(a,{navbar:"","navbar-start-side":"back"},{default:o(()=>[l(e,null,{default:o(()=>[m(f("img",u,null,512),[[t]])]),_:1})]),_:1})}const w=n(p,[["render",b]]);export{w as default}; diff --git a/assets/zoomable-KsXoW0bU.js.br b/assets/zoomable-KsXoW0bU.js.br new file mode 100644 index 00000000..0ee8eea1 Binary files /dev/null and b/assets/zoomable-KsXoW0bU.js.br differ diff --git a/assets/zoomable-KsXoW0bU.js.gz b/assets/zoomable-KsXoW0bU.js.gz new file mode 100644 index 00000000..8796ed60 Binary files /dev/null and b/assets/zoomable-KsXoW0bU.js.gz differ diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 00000000..0778dfc7 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..080dfb12 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + + + + +
    + + diff --git a/index.html.br b/index.html.br new file mode 100644 index 00000000..b670bcee Binary files /dev/null and b/index.html.br differ diff --git a/index.html.gz b/index.html.gz new file mode 100644 index 00000000..43ae3572 Binary files /dev/null and b/index.html.gz differ