(function(Lt,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(Lt=typeof globalThis<"u"?globalThis:Lt||self,h(Lt.shaluDashboardUi={},Lt.Vue))})(this,function(Lt,h){"use strict";var Kn=(t=>(t[t.STATIC=0]="STATIC",t[t.API=1]="API",t[t.BASIC_PATH=2]="BASIC_PATH",t[t.VIEW_CODE=3]="VIEW_CODE",t))(Kn||{});const _l=(t,e,{checkForDefaultPrevented:n=!0}={})=>i=>{const o=t==null?void 0:t(i);if(n===!1||!o)return e==null?void 0:e(i)};var ZB;const sr=typeof window<"u",Jve=t=>typeof t=="string",XB=()=>{},eme=sr&&((ZB=window==null?void 0:window.navigator)==null?void 0:ZB.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function S2(t){return typeof t=="function"?t():h.unref(t)}function tme(t){return t}function U_(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nme(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function YB(t,e,n={}){const{immediate:r=!0}=n,i=h.ref(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...u)},S2(e))}return r&&(i.value=!0,sr&&l()),U_(s),{isPending:h.readonly(i),start:l,stop:s}}function Su(t){var e;const n=S2(t);return(e=n==null?void 0:n.$el)!=null?e:n}const x2=sr?window:void 0;function nm(...t){let e,n,r,i;if(Jve(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=x2):[e,n,r,i]=t,!e)return XB;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[Su(e),S2(i)],([c,f])=>{a(),c&&o.push(...n.flatMap(d=>r.map(p=>s(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return U_(u),u}let qB=!1;function rme(t,e,n={}){const{window:r=x2,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;eme&&!qB&&(qB=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",XB)));let s=!0;const l=d=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(g=>g===d.target||d.composedPath().includes(g));{const g=Su(p);return g&&(d.target===g||d.composedPath().includes(g))}}),c=[nm(r,"click",d=>{const p=Su(t);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:o}),nm(r,"pointerdown",d=>{const p=Su(t);p&&(s=!d.composedPath().includes(p)&&!l(d))},{passive:!0}),a&&nm(r,"blur",d=>{var p;const g=Su(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function ime(t,e=!1){const n=h.ref(),r=()=>n.value=!!t();return r(),nme(r,e),n}const KB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JB="__vueuse_ssr_handlers__";KB[JB]=KB[JB]||{};var e6=Object.getOwnPropertySymbols,ome=Object.prototype.hasOwnProperty,ame=Object.prototype.propertyIsEnumerable,sme=(t,e)=>{var n={};for(var r in t)ome.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&e6)for(var r of e6(t))e.indexOf(r)<0&&ame.call(t,r)&&(n[r]=t[r]);return n};function lme(t,e,n={}){const r=n,{window:i=x2}=r,o=sme(r,["window"]);let a;const s=ime(()=>i&&"ResizeObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=h.watch(()=>Su(t),f=>{l(),s.value&&i&&f&&(a=new ResizeObserver(e),a.observe(f,o))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return U_(c),{isSupported:s,stop:c}}var t6;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(t6||(t6={}));var ume=Object.defineProperty,n6=Object.getOwnPropertySymbols,cme=Object.prototype.hasOwnProperty,fme=Object.prototype.propertyIsEnumerable,r6=(t,e,n)=>e in t?ume(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dme=(t,e)=>{for(var n in e||(e={}))cme.call(e,n)&&r6(t,n,e[n]);if(n6)for(var n of n6(e))fme.call(e,n)&&r6(t,n,e[n]);return t};dme({linear:tme},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const hme=()=>sr&&/firefox/i.test(window.navigator.userAgent),C2=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};/** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xu=()=>{},pme=Object.prototype.hasOwnProperty,of=(t,e)=>pme.call(t,e),Vh=Array.isArray,af=t=>typeof t=="function",vi=t=>typeof t=="string",sf=t=>t!==null&&typeof t=="object",gme=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},vme=/-(\w)/g,mme=gme(t=>t.replace(vme,(e,n)=>n?n.toUpperCase():""));var i6=typeof global=="object"&&global&&global.Object===Object&&global,yme=typeof self=="object"&&self&&self.Object===Object&&self,Ba=i6||yme||Function("return this")(),zo=Ba.Symbol,o6=Object.prototype,bme=o6.hasOwnProperty,_me=o6.toString,rm=zo?zo.toStringTag:void 0;function Ome(t){var e=bme.call(t,rm),n=t[rm];try{t[rm]=void 0;var r=!0}catch{}var i=_me.call(t);return r&&(e?t[rm]=n:delete t[rm]),i}var wme=Object.prototype,Sme=wme.toString;function xme(t){return Sme.call(t)}var Cme="[object Null]",Tme="[object Undefined]",a6=zo?zo.toStringTag:void 0;function Cu(t){return t==null?t===void 0?Tme:Cme:a6&&a6 in Object(t)?Ome(t):xme(t)}function Va(t){return t!=null&&typeof t=="object"}var Pme="[object Symbol]";function Z_(t){return typeof t=="symbol"||Va(t)&&Cu(t)==Pme}function X_(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n0){if(++e>=i0e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function l0e(t){return function(){return t}}var Y_=function(){try{var t=uf(Object,"defineProperty");return t({},"",{}),t}catch{}}(),u0e=Y_?function(t,e){return Y_(t,"toString",{configurable:!0,enumerable:!1,value:l0e(e),writable:!0})}:P2,v6=s0e(u0e);function c0e(t,e){for(var n=-1,r=t==null?0:t.length;++n-1}var p0e=9007199254740991,g0e=/^(?:0|[1-9]\d*)$/;function q_(t,e){var n=typeof t;return e=e??p0e,!!e&&(n=="number"||n!="symbol"&&g0e.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=y0e}function Fh(t){return t!=null&&R2(t.length)&&!$2(t)}function b0e(t,e,n){if(!Lr(n))return!1;var r=typeof e;return(r=="number"?Fh(n)&&q_(e,n.length):r=="string"&&e in n)?im(n[e],t):!1}function _0e(t){return D2(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&b0e(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r-1}function Aye(t,e){var n=this.__data__,r=t1(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ol(t){var e=-1,n=t==null?0:t.length;for(this.clear();++ei?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++rs))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,p=n&I_e?new Zh:void 0;for(o.set(t,e),o.set(e,t);++f=e||T<0||f&&$>=o}function y(){var x=Z2();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?p(x):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(Z2())}function S(){var x=Z2(),T=m(x);if(r=arguments,i=this,l=x,T){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return S.cancel=O,S.flush=w,S}function Y2(t,e,n){(n!==void 0&&!im(t[e],n)||n===void 0&&!(e in t))&&M2(t,e,n)}function hV(t){return Va(t)&&Fh(t)}function q2(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function b1e(t){return zh(t,sm(t))}function _1e(t,e,n,r,i,o,a){var s=q2(t,n),l=q2(e,n),u=a.get(l);if(u){Y2(t,n,u);return}var c=o?o(s,l,n+"",t,e,a):void 0,f=c===void 0;if(f){var d=zi(l),p=!d&&Qh(l),g=!d&&!p&&e1(l);c=l,d||p||g?zi(s)?c=s:hV(s)?c=g6(s):p?(f=!1,c=B6(l,!0)):g?(f=!1,c=q6(l,!0)):c=[]:z2(l)||Wh(l)?(c=s,Wh(s)?c=b1e(s):(!Lr(s)||$2(s))&&(c=K6(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Y2(t,n,c)}function K2(t,e,n,r,i){t!==e&&g1e(e,function(o,a){if(i||(i=new za),Lr(o))_1e(t,e,a,n,K2,r,i);else{var s=r?r(q2(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),Y2(t,a,s)}},sm)}function pV(t,e,n,r,i,o){return Lr(t)&&Lr(e)&&(o.set(e,t),K2(t,e,void 0,pV,o),o.delete(e)),t}var O1e=_0e(function(t,e,n,r){K2(t,e,n,r)}),gV=D2(function(t){return t.push(void 0,pV),p6(O1e,void 0,t)});function w1e(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function S1e(t){return function(e,n,r){var i=Object(e);if(!Fh(e)){var o=dV(n);e=am(e),n=function(s){return o(i[s],s,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var x1e=Math.max;function C1e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Vme(n);return i<0&&(i=x1e(r+i,0)),m6(t,dV(e),i)}var T1e=S1e(C1e);function l1(t){for(var e=-1,n=t==null?0:t.length,r={};++e=120&&c.length>=120?new Zh(a&&c):void 0}c=t[0];var f=-1,d=s[0];e:for(;++f1),o}),zh(t,Q6(t),n),r&&(n=cm(n,z1e|F1e|W1e,V1e));for(var i=e.length;i--;)B1e(n,e[i]);return n});function bV(t,e,n,r){if(!Lr(t))return t;e=Gh(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i=X1e){var u=Z1e(t);if(u)return j2(u);a=!1,i=o1,l=new Zh}else l=s;e:for(;++rt===void 0,Pu=t=>typeof t=="boolean",Fa=t=>typeof t=="number",dm=t=>typeof Element>"u"?!1:t instanceof Element,Yh=t=>Tu(t),q1e=t=>vi(t)?!Number.isNaN(Number(t)):!1;class _V extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function K1e(t,e){throw new _V(`[${t}] ${e}`)}function ti(t,e){if(process.env.NODE_ENV!=="production"){const n=vi(t)?new _V(`[${t}] ${e}`):t;console.warn(n)}}const J1e="utils/dom/style",OV=(t="")=>t.split(" ").filter(e=>!!e.trim()),wV=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},SV=(t,e)=>{!t||!e.trim()||t.classList.add(...OV(e))},c1=(t,e)=>{!t||!e.trim()||t.classList.remove(...OV(e))},eOe=(t,e)=>{var n;if(!sr||!t||!e)return"";let r=mme(e);r==="float"&&(r="cssFloat");try{const i=t.style[r];if(i)return i;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return o?o[r]:""}catch{return t.style[r]}};function qh(t,e="px"){if(!t)return"";if(Fa(t)||q1e(t))return`${t}${e}`;if(vi(t))return t;ti(J1e,"binding value must be a string or number")}let f1;const tOe=t=>{var e;if(!sr)return 0;if(f1!==void 0)return f1;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),f1=r-o,f1};/*! Element Plus Icons Vue v2.3.1 */var nOe=h.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.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.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),rOe=nOe,iOe=h.defineComponent({name:"CaretRight",__name:"caret-right",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),oOe=iOe,aOe=h.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),h.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),sOe=aOe,lOe=h.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),xV=lOe,uOe=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),CV=uOe,cOe=h.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),h.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),fOe=cOe,dOe=h.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),t$=dOe,hOe=h.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),pOe=hOe;const TV="__epPropKey",Zt=t=>t,gOe=t=>sf(t)&&!!t[TV],d1=(t,e)=>{if(!sf(t)||gOe(t))return t;const{values:n,required:r,default:i,type:o,validator:a}=t,l={type:o,required:!!r,validator:n||a?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),of(t,"default")&&f.push(i),c||(c=f.includes(u))),a&&(c||(c=a(u))),!c&&f.length>0){const d=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[TV]:!0};return of(t,"default")&&(l.default=i),l},zn=t=>l1(Object.entries(t).map(([e,n])=>[e,d1(n,e)])),Kh=Zt([String,Object,Function]),vOe={Close:CV},mOe={validating:t$,success:sOe,error:xV},Sl=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},hm=t=>(t.install=xu,t),yOe=(...t)=>e=>{t.forEach(n=>{af(n)?n(e):n.value=e})},Fi={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},mi="update:modelValue",PV="change",bOe=["","default","small","large"];var h1=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(h1||{});const _Oe=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),OOe=t=>t,wOe=["class","style"],SOe=/^on[A-Z]/,xOe=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=h.computed(()=>((n==null?void 0:n.value)||[]).concat(wOe)),i=h.getCurrentInstance();return i?h.computed(()=>{var o;return l1(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(e&&SOe.test(a))))}):(ti("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),h.computed(()=>({})))},Wa=({from:t,replacement:e,scope:n,version:r,ref:i,type:o="API"},a)=>{h.watch(()=>h.unref(a),s=>{s&&ti(n,`[${o}] ${t} is about to be deprecated in version ${r}, please use ${e} instead. For more detail, please visit: ${i} `)},{immediate:!0})},COe=(t,e,n,r)=>{let i={offsetX:0,offsetY:0};const o=l=>{const u=l.clientX,c=l.clientY,{offsetX:f,offsetY:d}=i,p=t.value.getBoundingClientRect(),g=p.left,v=p.top,m=p.width,y=p.height,b=document.documentElement.clientWidth,O=document.documentElement.clientHeight,w=-g+f,S=-v+d,x=b-g-m+f,T=O-v-y+d,$=P=>{let M=f+P.clientX-u,I=d+P.clientY-c;r!=null&&r.value||(M=Math.min(Math.max(M,w),x),I=Math.min(Math.max(I,S),T)),i={offsetX:M,offsetY:I},t.value&&(t.value.style.transform=`translate(${qh(M)}, ${qh(I)})`)},A=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",A)},a=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",o)},s=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",o)};h.onMounted(()=>{h.watchEffect(()=>{n.value?a():s()})}),h.onBeforeUnmount(()=>{s()})};var TOe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const POe=t=>(e,n)=>$Oe(e,n,h.unref(t)),$Oe=(t,e,n)=>Ut(n,t,t).replace(/\{(\w+)\}/g,(r,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),AOe=t=>{const e=h.computed(()=>h.unref(t).name),n=h.isRef(t)?t:h.ref(t);return{lang:e,locale:n,t:POe(t)}},EOe=Symbol("localeContextKey"),n$=t=>{const e=h.inject(EOe,h.ref());return AOe(h.computed(()=>e.value||TOe))},p1="el",MOe="is-",df=(t,e,n,r,i)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},IOe=Symbol("namespaceContextKey"),r$=t=>{const e=h.getCurrentInstance()?h.inject(IOe,h.ref(p1)):h.ref(p1);return h.computed(()=>h.unref(e)||p1)},an=(t,e)=>{const n=r$();return{namespace:n,b:(v="")=>df(n.value,t,v,"",""),e:v=>v?df(n.value,t,"",v,""):"",m:v=>v?df(n.value,t,"","",v):"",be:(v,m)=>v&&m?df(n.value,t,v,m,""):"",em:(v,m)=>v&&m?df(n.value,t,"",v,m):"",bm:(v,m)=>v&&m?df(n.value,t,v,"",m):"",bem:(v,m,y)=>v&&m&&y?df(n.value,t,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${MOe}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${t}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},DOe=(t,e={})=>{h.isRef(t)||K1e("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||an("popup"),r=h.computed(()=>n.bm("parent","hidden"));if(!sr||wV(document.body,r.value))return;let i=0,o=!1,a="0";const s=()=>{setTimeout(()=>{c1(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};h.watch(t,l=>{if(!l){s();return}o=!wV(document.body,r.value),o&&(a=document.body.style.width),i=tOe(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||c==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),SV(document.body,r.value)}),h.onScopeDispose(()=>s())},ROe=d1({type:Zt(Boolean),default:null}),kOe=d1({type:Zt(Function)}),$V=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],i={[t]:ROe,[n]:kOe};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=h.getCurrentInstance(),{emit:p}=d,g=d.props,v=h.computed(()=>af(g[n])),m=h.computed(()=>g[t]===null),y=T=>{a.value!==!0&&(a.value=!0,s&&(s.value=T),af(c)&&c(T))},b=T=>{a.value!==!1&&(a.value=!1,s&&(s.value=T),af(f)&&f(T))},O=T=>{if(g.disabled===!0||af(u)&&!u())return;const $=v.value&&sr;$&&p(e,!0),(m.value||!$)&&y(T)},w=T=>{if(g.disabled===!0||!sr)return;const $=v.value&&sr;$&&p(e,!1),(m.value||!$)&&b(T)},S=T=>{Pu(T)&&(g.disabled&&T?v.value&&p(e,!1):a.value!==T&&(T?y():b()))},x=()=>{a.value?w():O()};return h.watch(()=>g[t],S),l&&d.appContext.config.globalProperties.$route!==void 0&&h.watch(()=>({...d.proxy.$route}),()=>{l.value&&a.value&&w()}),h.onMounted(()=>{S(g[t])}),{hide:w,show:O,toggle:x,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};$V("modelValue");const AV=t=>{const e=h.getCurrentInstance();return h.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Wi="top",Wo="bottom",Qo="right",Qi="left",i$="auto",pm=[Wi,Wo,Qo,Qi],Jh="start",gm="end",NOe="clippingParents",EV="viewport",vm="popper",LOe="reference",MV=pm.reduce(function(t,e){return t.concat([e+"-"+Jh,e+"-"+gm])},[]),o$=[].concat(pm,[i$]).reduce(function(t,e){return t.concat([e,e+"-"+Jh,e+"-"+gm])},[]),BOe="beforeRead",VOe="read",zOe="afterRead",FOe="beforeMain",WOe="main",QOe="afterMain",HOe="beforeWrite",GOe="write",jOe="afterWrite",UOe=[BOe,VOe,zOe,FOe,WOe,QOe,HOe,GOe,jOe];function ws(t){return t?(t.nodeName||"").toLowerCase():null}function Qa(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ep(t){var e=Qa(t).Element;return t instanceof e||t instanceof Element}function Ho(t){var e=Qa(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function a$(t){if(typeof ShadowRoot>"u")return!1;var e=Qa(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZOe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Ho(o)||!ws(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function XOe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ho(i)||!ws(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var IV={name:"applyStyles",enabled:!0,phase:"write",fn:ZOe,effect:XOe,requires:["computeStyles"]};function Ss(t){return t.split("-")[0]}var hf=Math.max,g1=Math.min,tp=Math.round;function np(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Ho(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=tp(n.width)/a||1),o>0&&(i=tp(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function s$(t){var e=np(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function DV(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&a$(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xl(t){return Qa(t).getComputedStyle(t)}function YOe(t){return["table","td","th"].indexOf(ws(t))>=0}function $u(t){return((ep(t)?t.ownerDocument:t.document)||window.document).documentElement}function v1(t){return ws(t)==="html"?t:t.assignedSlot||t.parentNode||(a$(t)?t.host:null)||$u(t)}function RV(t){return!Ho(t)||xl(t).position==="fixed"?null:t.offsetParent}function qOe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ho(t)){var r=xl(t);if(r.position==="fixed")return null}var i=v1(t);for(a$(i)&&(i=i.host);Ho(i)&&["html","body"].indexOf(ws(i))<0;){var o=xl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function mm(t){for(var e=Qa(t),n=RV(t);n&&YOe(n)&&xl(n).position==="static";)n=RV(n);return n&&(ws(n)==="html"||ws(n)==="body"&&xl(n).position==="static")?e:n||qOe(t)||e}function l$(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ym(t,e,n){return hf(t,g1(e,n))}function KOe(t,e,n){var r=ym(t,e,n);return r>n?n:r}function kV(){return{top:0,right:0,bottom:0,left:0}}function NV(t){return Object.assign({},kV(),t)}function LV(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var JOe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,NV(typeof t!="number"?t:LV(t,pm))};function ewe(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ss(n.placement),l=l$(s),u=[Qi,Qo].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=JOe(i.padding,n),d=s$(o),p=l==="y"?Wi:Qi,g=l==="y"?Wo:Qo,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],y=mm(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,O=v/2-m/2,w=f[p],S=b-d[c]-f[g],x=b/2-d[c]/2+O,T=ym(w,x,S),$=l;n.modifiersData[r]=(e={},e[$]=T,e.centerOffset=T-x,e)}}function twe(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!DV(e.elements.popper,i)||(e.elements.arrow=i))}var nwe={name:"arrow",enabled:!0,phase:"main",fn:ewe,effect:twe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rp(t){return t.split("-")[1]}var rwe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iwe(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:tp(e*i)/i||0,y:tp(n*i)/i||0}}function BV(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,p=d===void 0?0:d,g=a.y,v=g===void 0?0:g,m=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),O=Qi,w=Wi,S=window;if(u){var x=mm(n),T="clientHeight",$="clientWidth";if(x===Qa(n)&&(x=$u(n),xl(x).position!=="static"&&s==="absolute"&&(T="scrollHeight",$="scrollWidth")),x=x,i===Wi||(i===Qi||i===Qo)&&o===gm){w=Wo;var A=f&&x===S&&S.visualViewport?S.visualViewport.height:x[T];v-=A-r.height,v*=l?1:-1}if(i===Qi||(i===Wi||i===Wo)&&o===gm){O=Qo;var P=f&&x===S&&S.visualViewport?S.visualViewport.width:x[$];p-=P-r.width,p*=l?1:-1}}var M=Object.assign({position:s},u&&rwe),I=c===!0?iwe({x:p,y:v}):{x:p,y:v};if(p=I.x,v=I.y,l){var R;return Object.assign({},M,(R={},R[w]=b?"0":"",R[O]=y?"0":"",R.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",R))}return Object.assign({},M,(e={},e[w]=b?v+"px":"",e[O]=y?p+"px":"",e.transform="",e))}function owe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ss(e.placement),variation:rp(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,BV(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,BV(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var VV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:owe,data:{}},m1={passive:!0};function awe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,m1)}),s&&l.addEventListener("resize",n.update,m1),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,m1)}),s&&l.removeEventListener("resize",n.update,m1)}}var zV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:awe,data:{}},swe={left:"right",right:"left",bottom:"top",top:"bottom"};function y1(t){return t.replace(/left|right|bottom|top/g,function(e){return swe[e]})}var lwe={start:"end",end:"start"};function FV(t){return t.replace(/start|end/g,function(e){return lwe[e]})}function u$(t){var e=Qa(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c$(t){return np($u(t)).left+u$(t).scrollLeft}function uwe(t){var e=Qa(t),n=$u(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+c$(t),y:s}}function cwe(t){var e,n=$u(t),r=u$(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=hf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=hf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+c$(t),l=-r.scrollTop;return xl(i||n).direction==="rtl"&&(s+=hf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function f$(t){var e=xl(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function WV(t){return["html","body","#document"].indexOf(ws(t))>=0?t.ownerDocument.body:Ho(t)&&f$(t)?t:WV(v1(t))}function bm(t,e){var n;e===void 0&&(e=[]);var r=WV(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],f$(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(bm(v1(a)))}function d$(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fwe(t){var e=np(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function QV(t,e){return e===EV?d$(uwe(t)):ep(e)?fwe(e):d$(cwe($u(t)))}function dwe(t){var e=bm(v1(t)),n=["absolute","fixed"].indexOf(xl(t).position)>=0,r=n&&Ho(t)?mm(t):t;return ep(r)?e.filter(function(i){return ep(i)&&DV(i,r)&&ws(i)!=="body"}):[]}function hwe(t,e,n){var r=e==="clippingParents"?dwe(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,l){var u=QV(t,l);return s.top=hf(u.top,s.top),s.right=g1(u.right,s.right),s.bottom=g1(u.bottom,s.bottom),s.left=hf(u.left,s.left),s},QV(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function HV(t){var e=t.reference,n=t.element,r=t.placement,i=r?Ss(r):null,o=r?rp(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case Wi:l={x:a,y:e.y-n.height};break;case Wo:l={x:a,y:e.y+e.height};break;case Qo:l={x:e.x+e.width,y:s};break;case Qi:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=i?l$(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Jh:l[u]=l[u]-(e[c]/2-n[c]/2);break;case gm:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function _m(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.boundary,a=o===void 0?NOe:o,s=n.rootBoundary,l=s===void 0?EV:s,u=n.elementContext,c=u===void 0?vm:u,f=n.altBoundary,d=f===void 0?!1:f,p=n.padding,g=p===void 0?0:p,v=NV(typeof g!="number"?g:LV(g,pm)),m=c===vm?LOe:vm,y=t.rects.popper,b=t.elements[d?m:c],O=hwe(ep(b)?b:b.contextElement||$u(t.elements.popper),a,l),w=np(t.elements.reference),S=HV({reference:w,element:y,strategy:"absolute",placement:i}),x=d$(Object.assign({},y,S)),T=c===vm?x:w,$={top:O.top-T.top+v.top,bottom:T.bottom-O.bottom+v.bottom,left:O.left-T.left+v.left,right:T.right-O.right+v.right},A=t.modifiersData.offset;if(c===vm&&A){var P=A[i];Object.keys($).forEach(function(M){var I=[Qo,Wo].indexOf(M)>=0?1:-1,R=[Wi,Wo].indexOf(M)>=0?"y":"x";$[M]+=P[R]*I})}return $}function pwe(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?o$:l,c=rp(r),f=c?s?MV:MV.filter(function(g){return rp(g)===c}):pm,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var p=d.reduce(function(g,v){return g[v]=_m(t,{placement:v,boundary:i,rootBoundary:o,padding:a})[Ss(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function gwe(t){if(Ss(t)===i$)return[];var e=y1(t);return[FV(t),e,FV(e)]}function vwe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,m=e.options.placement,y=Ss(m),b=y===m,O=l||(b||!g?[y1(m)]:gwe(m)),w=[m].concat(O).reduce(function(se,oe){return se.concat(Ss(oe)===i$?pwe(e,{placement:oe,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):oe)},[]),S=e.rects.reference,x=e.rects.popper,T=new Map,$=!0,A=w[0],P=0;P=0,D=L?"width":"height",B=_m(e,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),F=L?R?Qo:Qi:R?Wo:Wi;S[D]>x[D]&&(F=y1(F));var z=y1(F),W=[];if(o&&W.push(B[I]<=0),s&&W.push(B[F]<=0,B[z]<=0),W.every(function(se){return se})){A=M,$=!1;break}T.set(M,W)}if($)for(var j=g?3:1,H=function(se){var oe=w.find(function(de){var ie=T.get(de);if(ie)return ie.slice(0,se).every(function(ue){return ue})});if(oe)return A=oe,"break"},Z=j;Z>0;Z--){var J=H(Z);if(J==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}}var mwe={name:"flip",enabled:!0,phase:"main",fn:vwe,requiresIfExists:["offset"],data:{_skip:!1}};function GV(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jV(t){return[Wi,Qo,Wo,Qi].some(function(e){return t[e]>=0})}function ywe(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=_m(e,{elementContext:"reference"}),s=_m(e,{altBoundary:!0}),l=GV(a,r),u=GV(s,i,o),c=jV(l),f=jV(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var bwe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ywe};function _we(t,e,n){var r=Ss(t),i=[Qi,Wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Qi,Qo].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Owe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=o$.reduce(function(c,f){return c[f]=_we(f,e.rects,o),c},{}),s=a[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var wwe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Owe};function Swe(t){var e=t.state,n=t.name;e.modifiersData[n]=HV({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var UV={name:"popperOffsets",enabled:!0,phase:"read",fn:Swe,data:{}};function xwe(t){return t==="x"?"y":"x"}function Cwe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,g=n.tetherOffset,v=g===void 0?0:g,m=_m(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Ss(e.placement),b=rp(e.placement),O=!b,w=l$(y),S=xwe(w),x=e.modifiersData.popperOffsets,T=e.rects.reference,$=e.rects.popper,A=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(x){if(o){var R,L=w==="y"?Wi:Qi,D=w==="y"?Wo:Qo,B=w==="y"?"height":"width",F=x[w],z=F+m[L],W=F-m[D],j=p?-$[B]/2:0,H=b===Jh?T[B]:$[B],Z=b===Jh?-$[B]:-T[B],J=e.elements.arrow,se=p&&J?s$(J):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kV(),de=oe[L],ie=oe[D],ue=ym(0,T[B],se[B]),ee=O?T[B]/2-j-ue-de-P.mainAxis:H-ue-de-P.mainAxis,X=O?-T[B]/2+j+ue+ie+P.mainAxis:Z+ue+ie+P.mainAxis,Y=e.elements.arrow&&mm(e.elements.arrow),le=Y?w==="y"?Y.clientTop||0:Y.clientLeft||0:0,ve=(R=M==null?void 0:M[w])!=null?R:0,ye=F+ee-ve-le,Ne=F+X-ve,Be=ym(p?g1(z,ye):z,F,p?hf(W,Ne):W);x[w]=Be,I[w]=Be-F}if(s){var Me,$e=w==="x"?Wi:Qi,_e=w==="x"?Wo:Qo,De=x[S],Fe=S==="y"?"height":"width",ct=De+m[$e],vt=De-m[_e],zt=[Wi,Qi].indexOf(y)!==-1,we=(Me=M==null?void 0:M[S])!=null?Me:0,rt=zt?ct:De-T[Fe]-$[Fe]-we+P.altAxis,Mt=zt?De+T[Fe]+$[Fe]-we-P.altAxis:vt,mn=p&&zt?KOe(rt,De,Mt):ym(p?rt:ct,De,p?Mt:vt);x[S]=mn,I[S]=mn-De}e.modifiersData[r]=I}}var Twe={name:"preventOverflow",enabled:!0,phase:"main",fn:Cwe,requiresIfExists:["offset"]};function Pwe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $we(t){return t===Qa(t)||!Ho(t)?u$(t):Pwe(t)}function Awe(t){var e=t.getBoundingClientRect(),n=tp(e.width)/t.offsetWidth||1,r=tp(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ewe(t,e,n){n===void 0&&(n=!1);var r=Ho(e),i=Ho(e)&&Awe(e),o=$u(e),a=np(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ws(e)!=="body"||f$(o))&&(s=$we(e)),Ho(e)?(l=np(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=c$(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Mwe(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function Iwe(t){var e=Mwe(t);return UOe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function Dwe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Rwe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var ZV={placement:"bottom",modifiers:[],strategy:"absolute"};function XV(){for(var t=arguments.length,e=new Array(t),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Vwe(l);Object.assign(a.value,u)},requires:["computeStyles"]},i=h.computed(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=h.unref(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=h.shallowRef(),a=h.ref({styles:{popper:{position:h.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return h.watch(i,l=>{const u=h.unref(o);u&&u.setOptions(l)},{deep:!0}),h.watch([t,e],([l,u])=>{s(),!(!l||!u)&&(o.value=Lwe(l,u,h.unref(i)))}),h.onBeforeUnmount(()=>{s()}),{state:h.computed(()=>{var l;return{...((l=h.unref(o))==null?void 0:l.state)||{}}}),styles:h.computed(()=>h.unref(a).styles),attributes:h.computed(()=>h.unref(a).attributes),update:()=>{var l;return(l=h.unref(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=h.unref(o))==null?void 0:l.forceUpdate()},instanceRef:h.computed(()=>h.unref(o))}};function Vwe(t){const e=Object.keys(t.elements),n=l1(e.map(i=>[i,t.styles[i]||{}])),r=l1(e.map(i=>[i,t.attributes[i]]));return{styles:n,attributes:r}}const YV=t=>{if(!t)return{onClick:xu,onMousedown:xu,onMouseup:xu};let e=!1,n=!1;return{onClick:a=>{e&&n&&t(a),e=n=!1},onMousedown:a=>{e=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function qV(){let t;const e=(r,i)=>{n(),t=window.setTimeout(r,i)},n=()=>window.clearTimeout(t);return U_(()=>n()),{registerTimeout:e,cancelTimeout:n}}const p$={prefix:Math.floor(Math.random()*1e4),current:0},zwe=Symbol("elIdInjection"),KV=()=>h.getCurrentInstance()?h.inject(zwe,p$):p$,Om=t=>{const e=KV();!sr&&e===p$&&ti("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);const n=r$();return h.computed(()=>h.unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let ip=[];const JV=t=>{const e=t;e.key===Fi.esc&&ip.forEach(n=>n(e))},Fwe=t=>{h.onMounted(()=>{ip.length===0&&document.addEventListener("keydown",JV),sr&&ip.push(t)}),h.onBeforeUnmount(()=>{ip=ip.filter(e=>e!==t),ip.length===0&&sr&&document.removeEventListener("keydown",JV)})};let ez;const tz=()=>{const t=r$(),e=KV(),n=h.computed(()=>`${t.value}-popper-container-${e.prefix}`),r=h.computed(()=>`#${n.value}`);return{id:n,selector:r}},Wwe=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},Qwe=()=>{const{id:t,selector:e}=tz();return h.onBeforeMount(()=>{sr&&(process.env.NODE_ENV==="test"||!ez&&!document.body.querySelector(e.value))&&(ez=Wwe(t.value))}),{id:t,selector:e}},Hwe=zn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Gwe=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=qV(),{registerTimeout:a,cancelTimeout:s}=qV();return{onOpen:c=>{o(()=>{r(c);const f=h.unref(n);Fa(f)&&f>0&&a(()=>{i(c)},f)},h.unref(t))},onClose:c=>{s(),o(()=>{i(c)},h.unref(e))}}},nz=Symbol("elForwardRef"),jwe=t=>{const e=n=>{t.value=n};h.provide(nz,{setForwardRef:e})},Uwe=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),rz={current:0},iz=h.ref(0),Zwe=2e3,oz=Symbol("elZIndexContextKey"),Xwe=Symbol("zIndexContextKey"),az=t=>{const e=h.getCurrentInstance()?h.inject(oz,rz):rz,n=h.getCurrentInstance()?h.inject(Xwe,void 0):void 0,r=h.computed(()=>{const a=h.unref(n);return Fa(a)?a:Zwe}),i=h.computed(()=>r.value+iz.value),o=()=>(e.current++,iz.value=e.current,i.value);return!sr&&!h.inject(oz)&&ti("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:i,nextZIndex:o}};function Ywe(t){const e=h.ref();function n(){if(t.value==null)return;const{selectionStart:i,selectionEnd:o,value:a}=t.value;if(i==null||o==null)return;const s=a.slice(0,Math.max(0,i)),l=a.slice(Math.max(0,o));e.value={selectionStart:i,selectionEnd:o,value:a,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:i}=t.value,{beforeTxt:o,afterTxt:a,selectionStart:s}=e.value;if(o==null||a==null||s==null)return;let l=i.length;if(i.endsWith(a))l=i.length-a.length;else if(i.startsWith(o))l=o.length;else{const u=o[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}t.value.setSelectionRange(l,l)}return[n,r]}const pf=d1({type:String,values:bOe,required:!1}),qwe=Symbol("size"),Kwe=()=>{const t=h.inject(qwe,{});return h.computed(()=>h.unref(t.size)||"")};function sz(t,{afterFocus:e,beforeBlur:n,afterBlur:r}={}){const i=h.getCurrentInstance(),{emit:o}=i,a=h.shallowRef(),s=h.ref(!1),l=f=>{s.value||(s.value=!0,o("focus",f),e==null||e())},u=f=>{var d;af(n)&&n(f)||f.relatedTarget&&((d=a.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,o("blur",f),r==null||r())},c=()=>{var f;(f=t.value)==null||f.focus()};return h.watch(a,f=>{f&&f.setAttribute("tabindex","-1")}),nm(a,"click",c),{wrapperRef:a,isFocused:s,handleFocus:l,handleBlur:u}}const Jwe=zn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),gf=t=>Xh(Jwe,t),eSe=Symbol(),lz=h.ref();function uz(t,e=void 0){const n=h.getCurrentInstance()?h.inject(eSe,lz):lz;return t?h.computed(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[t])!=null?i:e}):n}var fn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const tSe=zn({size:{type:Zt([Number,String])},color:{type:String}}),nSe=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),rSe=h.defineComponent({...nSe,props:tSe,setup(t){const e=t,n=an("icon"),r=h.computed(()=>{const{size:i,color:o}=e;return!i&&!o?{}:{fontSize:u1(i)?void 0:qh(i),"--color":o}});return(i,o)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(n).b(),style:h.unref(r)},i.$attrs),[h.renderSlot(i.$slots,"default")],16))}});var iSe=fn(rSe,[["__file","icon.vue"]]);const Ha=Sl(iSe),g$=Symbol("formContextKey"),wm=Symbol("formItemContextKey"),op=(t,e={})=>{const n=h.ref(void 0),r=e.prop?n:AV("size"),i=e.global?n:Kwe(),o=e.form?{size:void 0}:h.inject(g$,void 0),a=e.formItem?{size:void 0}:h.inject(wm,void 0);return h.computed(()=>r.value||h.unref(t)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||i.value||"")},ap=t=>{const e=AV("disabled"),n=h.inject(g$,void 0);return h.computed(()=>e.value||h.unref(t)||(n==null?void 0:n.disabled)||!1)},vf=()=>{const t=h.inject(g$,void 0),e=h.inject(wm,void 0);return{form:t,formItem:e}},Sm=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=h.ref(!1)),r||(r=h.ref(!1));const i=h.ref();let o;const a=h.computed(()=>{var s;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return h.onMounted(()=>{o=h.watch([h.toRef(t,"id"),n],([s,l])=>{const u=s??(l?void 0:Om().value);u!==i.value&&(e!=null&&e.removeInputId&&(i.value&&e.removeInputId(i.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),i.value=u)},{immediate:!0})}),h.onUnmounted(()=>{o&&o(),e!=null&&e.removeInputId&&i.value&&e.removeInputId(i.value)}),{isLabeledByFormItem:a,inputId:i}};function mf(){return mf=Object.assign?Object.assign.bind():function(t){for(var e=1;e"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}}function b1(t,e,n){return aSe()?b1=Reflect.construct.bind():b1=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&xm(u,a.prototype),u},b1.apply(null,arguments)}function sSe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function m$(t){var e=typeof Map=="function"?new Map:void 0;return m$=function(r){if(r===null||!sSe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return b1(r,arguments,v$(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xm(i,r)},m$(t)}var lSe=/%[sdj%]/g,cz=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(cz=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function y$(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function fo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return t}function uSe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function gr(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||uSe(e)&&typeof t=="string"&&!t)}function cSe(t,e,n){var r=[],i=0,o=t.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}t.forEach(function(s){e(s,a)})}function fz(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cm={integer:function(e){return Cm.number(e)&&parseInt(e,10)===e},float:function(e){return Cm.number(e)&&!Cm.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Cm.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(vz.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(vSe())},hex:function(e){return typeof e=="string"&&!!e.match(vz.hex)}},mSe=function(e,n,r,i,o){if(e.required&&n===void 0){gz(e,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?Cm[s](n)||i.push(fo(o.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push(fo(o.messages.types[s],e.fullField,e.type))},ySe=function(e,n,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(d?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),a?c!==e.len&&i.push(fo(o.messages[f].len,e.fullField,e.len)):s&&!l&&ce.max?i.push(fo(o.messages[f].max,e.fullField,e.max)):s&&l&&(ce.max)&&i.push(fo(o.messages[f].range,e.fullField,e.min,e.max))},sp="enum",bSe=function(e,n,r,i,o){e[sp]=Array.isArray(e[sp])?e[sp]:[],e[sp].indexOf(n)===-1&&i.push(fo(o.messages[sp],e.fullField,e[sp].join(", ")))},_Se=function(e,n,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(fo(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push(fo(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Wt={required:gz,whitespace:gSe,type:mSe,range:ySe,enum:bSe,pattern:_Se},OSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"string")&&!e.required)return r();Wt.required(e,n,i,a,o,"string"),gr(n,"string")||(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o),Wt.pattern(e,n,i,a,o),e.whitespace===!0&&Wt.whitespace(e,n,i,a,o))}r(a)},wSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},SSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},xSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},CSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),gr(n)||Wt.type(e,n,i,a,o)}r(a)},TSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},PSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},$Se=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();Wt.required(e,n,i,a,o,"array"),n!=null&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},ASe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},ESe="enum",MSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt[ESe](e,n,i,a,o)}r(a)},ISe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"string")&&!e.required)return r();Wt.required(e,n,i,a,o),gr(n,"string")||Wt.pattern(e,n,i,a,o)}r(a)},DSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"date")&&!e.required)return r();if(Wt.required(e,n,i,a,o),!gr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Wt.type(e,l,i,a,o),l&&Wt.range(e,l.getTime(),i,a,o)}}r(a)},RSe=function(e,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Wt.required(e,n,i,a,o,s),r(a)},b$=function(e,n,r,i,o){var a=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(gr(n,a)&&!e.required)return r();Wt.required(e,n,i,s,o,a),gr(n,a)||Wt.type(e,n,i,s,o)}r(s)},kSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o)}r(a)},Tm={string:OSe,method:wSe,number:SSe,boolean:xSe,regexp:CSe,integer:TSe,float:PSe,array:$Se,object:ASe,enum:MSe,pattern:ISe,date:DSe,url:b$,hex:b$,email:b$,required:RSe,any:kSe};function _$(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var O$=_$(),Pm=function(){function t(n){this.rules=null,this._messages=O$,this.define(n)}var e=t.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=pz(_$(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var m=[],y={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,w)}else m.push(w)}for(var O=0;O`${a}:${e.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function mz(t,e=1,n){var r;Ga||(Ga=document.createElement("textarea"),document.body.appendChild(Ga));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=BSe(t);Ga.setAttribute("style",`${s};${NSe}`),Ga.value=t.value||t.placeholder||"";let l=Ga.scrollHeight;const u={};a==="border-box"?l=l+o:a==="content-box"&&(l=l-i),Ga.value="";const c=Ga.scrollHeight-i;if(Fa(e)){let f=c*e;a==="border-box"&&(f=f+i+o),l=Math.max(f,l),u.minHeight=`${f}px`}if(Fa(n)){let f=c*n;a==="border-box"&&(f=f+i+o),l=Math.min(f,l)}return u.height=`${l}px`,(r=Ga.parentNode)==null||r.removeChild(Ga),Ga=void 0,u}const VSe=zn({id:{type:String,default:void 0},size:pf,disabled:Boolean,modelValue:{type:Zt([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Zt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Kh},prefixIcon:{type:Kh},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Zt([Object,Array,String]),default:()=>OOe({})},autofocus:{type:Boolean,default:!1},...gf(["ariaLabel"])}),zSe={[mi]:t=>vi(t),input:t=>vi(t),change:t=>vi(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},FSe=["role"],WSe=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],QSe=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],HSe=h.defineComponent({name:"ElInput",inheritAttrs:!1}),GSe=h.defineComponent({...HSe,props:VSe,emits:zSe,setup(t,{expose:e,emit:n}){const r=t,i=h.useAttrs(),o=h.useSlots(),a=h.computed(()=>{const we={};return r.containerRole==="combobox"&&(we["aria-haspopup"]=i["aria-haspopup"],we["aria-owns"]=i["aria-owns"],we["aria-expanded"]=i["aria-expanded"]),we}),s=h.computed(()=>[r.type==="textarea"?m.b():v.b(),v.m(p.value),v.is("disabled",g.value),v.is("exceed",se.value),{[v.b("group")]:o.prepend||o.append,[v.m("prefix")]:o.prefix||r.prefixIcon,[v.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:j.value&&H.value,[v.b("hidden")]:r.type==="hidden"},i.class]),l=h.computed(()=>[v.e("wrapper"),v.is("focus",P.value)]),u=xOe({excludeKeys:h.computed(()=>Object.keys(a.value))}),{form:c,formItem:f}=vf(),{inputId:d}=Sm(r,{formItemContext:f}),p=op(),g=ap(),v=an("input"),m=an("textarea"),y=h.shallowRef(),b=h.shallowRef(),O=h.ref(!1),w=h.ref(!1),S=h.ref(!1),x=h.ref(),T=h.shallowRef(r.inputStyle),$=h.computed(()=>y.value||b.value),{wrapperRef:A,isFocused:P,handleFocus:M,handleBlur:I}=sz($,{afterBlur(){var we;r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"blur").catch(rt=>ti(rt)))}}),R=h.computed(()=>{var we;return(we=c==null?void 0:c.statusIcon)!=null?we:!1}),L=h.computed(()=>(f==null?void 0:f.validateState)||""),D=h.computed(()=>L.value&&mOe[L.value]),B=h.computed(()=>S.value?pOe:fOe),F=h.computed(()=>[i.style]),z=h.computed(()=>[r.inputStyle,T.value,{resize:r.resize}]),W=h.computed(()=>Tu(r.modelValue)?"":String(r.modelValue)),j=h.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!W.value&&(P.value||O.value)),H=h.computed(()=>r.showPassword&&!g.value&&!r.readonly&&!!W.value&&(!!W.value||P.value)),Z=h.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),J=h.computed(()=>W.value.length),se=h.computed(()=>!!Z.value&&J.value>Number(r.maxlength)),oe=h.computed(()=>!!o.suffix||!!r.suffixIcon||j.value||r.showPassword||Z.value||!!L.value&&R.value),[de,ie]=Ywe(y);lme(b,we=>{if(X(),!Z.value||r.resize!=="both")return;const rt=we[0],{width:Mt}=rt.contentRect;x.value={right:`calc(100% - ${Mt+15+6}px)`}});const ue=()=>{const{type:we,autosize:rt}=r;if(!(!sr||we!=="textarea"||!b.value))if(rt){const Mt=sf(rt)?rt.minRows:void 0,mn=sf(rt)?rt.maxRows:void 0,pn=mz(b.value,Mt,mn);T.value={overflowY:"hidden",...pn},h.nextTick(()=>{b.value.offsetHeight,T.value=pn})}else T.value={minHeight:mz(b.value).minHeight}},X=(we=>{let rt=!1;return()=>{var Mt;if(rt||!r.autosize)return;((Mt=b.value)==null?void 0:Mt.offsetParent)===null||(we(),rt=!0)}})(ue),Y=()=>{const we=$.value,rt=r.formatter?r.formatter(W.value):W.value;!we||we.value===rt||(we.value=rt)},le=async we=>{de();let{value:rt}=we.target;if(r.formatter&&(rt=r.parser?r.parser(rt):rt),!w.value){if(rt===W.value){Y();return}n(mi,rt),n("input",rt),await h.nextTick(),Y(),ie()}},ve=we=>{n("change",we.target.value)},ye=we=>{n("compositionstart",we),w.value=!0},Ne=we=>{var rt;n("compositionupdate",we);const Mt=(rt=we.target)==null?void 0:rt.value,mn=Mt[Mt.length-1]||"";w.value=!_Oe(mn)},Be=we=>{n("compositionend",we),w.value&&(w.value=!1,le(we))},Me=()=>{S.value=!S.value,$e()},$e=async()=>{var we;await h.nextTick(),(we=$.value)==null||we.focus()},_e=()=>{var we;return(we=$.value)==null?void 0:we.blur()},De=we=>{O.value=!1,n("mouseleave",we)},Fe=we=>{O.value=!0,n("mouseenter",we)},ct=we=>{n("keydown",we)},vt=()=>{var we;(we=$.value)==null||we.select()},zt=()=>{n(mi,""),n("change",""),n("clear"),n("input","")};return h.watch(()=>r.modelValue,()=>{var we;h.nextTick(()=>ue()),r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"change").catch(rt=>ti(rt)))}),h.watch(W,()=>Y()),h.watch(()=>r.type,async()=>{await h.nextTick(),Y(),ue()}),h.onMounted(()=>{!r.formatter&&r.parser&&ti("ElInput","If you set the parser, you also need to set the formatter."),Y(),h.nextTick(ue)}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},h.computed(()=>!!r.label)),e({input:y,textarea:b,ref:$,textareaStyle:z,autosize:h.toRef(r,"autosize"),focus:$e,blur:_e,select:vt,clear:zt,resizeTextarea:ue}),(we,rt)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps(h.unref(a),{class:[h.unref(s),{[h.unref(v).bm("group","append")]:we.$slots.append,[h.unref(v).bm("group","prepend")]:we.$slots.prepend}],style:h.unref(F),role:we.containerRole,onMouseenter:Fe,onMouseleave:De}),[h.createCommentVNode(" input "),we.type!=="textarea"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createCommentVNode(" prepend slot "),we.$slots.prepend?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(v).be("group","prepend"))},[h.renderSlot(we.$slots,"prepend")],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:h.normalizeClass(h.unref(l))},[h.createCommentVNode(" prefix slot "),we.$slots.prefix||we.prefixIcon?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(v).e("prefix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("prefix-inner"))},[h.renderSlot(we.$slots,"prefix"),we.prefixIcon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.prefixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("input",h.mergeProps({id:h.unref(d),ref_key:"input",ref:y,class:h.unref(v).e("inner")},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,type:we.showPassword?S.value?"text":"password":we.type,disabled:h.unref(g),readonly:we.readonly,autocomplete:we.autocomplete,tabindex:we.tabindex,"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,style:we.inputStyle,form:we.form,autofocus:we.autofocus,onCompositionstart:ye,onCompositionupdate:Ne,onCompositionend:Be,onInput:le,onFocus:rt[0]||(rt[0]=(...Mt)=>h.unref(M)&&h.unref(M)(...Mt)),onBlur:rt[1]||(rt[1]=(...Mt)=>h.unref(I)&&h.unref(I)(...Mt)),onChange:ve,onKeydown:ct}),null,16,WSe),h.createCommentVNode(" suffix slot "),h.unref(oe)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(h.unref(v).e("suffix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("suffix-inner"))},[!h.unref(j)||!h.unref(H)||!h.unref(Z)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.renderSlot(we.$slots,"suffix"),we.suffixIcon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.suffixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],64)):h.createCommentVNode("v-if",!0),h.unref(j)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:1,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("clear")]),onMousedown:h.withModifiers(h.unref(xu),["prevent"]),onClick:zt},{default:h.withCtx(()=>[h.createVNode(h.unref(xV))]),_:1},8,["class","onMousedown"])):h.createCommentVNode("v-if",!0),h.unref(H)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:2,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("password")]),onClick:Me},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(B))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:3,class:h.normalizeClass(h.unref(v).e("count"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("count-inner"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),3)],2)):h.createCommentVNode("v-if",!0),h.unref(L)&&h.unref(D)&&h.unref(R)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:4,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("validateIcon"),h.unref(v).is("loading",h.unref(L)==="validating")])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(D))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0)],2),h.createCommentVNode(" append slot "),we.$slots.append?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(h.unref(v).be("group","append"))},[h.renderSlot(we.$slots,"append")],2)):h.createCommentVNode("v-if",!0)],64)):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" textarea "),h.createElementVNode("textarea",h.mergeProps({id:h.unref(d),ref_key:"textarea",ref:b,class:[h.unref(m).e("inner"),h.unref(v).is("focus",h.unref(P))]},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,tabindex:we.tabindex,disabled:h.unref(g),readonly:we.readonly,autocomplete:we.autocomplete,style:h.unref(z),"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,form:we.form,autofocus:we.autofocus,onCompositionstart:ye,onCompositionupdate:Ne,onCompositionend:Be,onInput:le,onFocus:rt[2]||(rt[2]=(...Mt)=>h.unref(M)&&h.unref(M)(...Mt)),onBlur:rt[3]||(rt[3]=(...Mt)=>h.unref(I)&&h.unref(I)(...Mt)),onChange:ve,onKeydown:ct}),null,16,QSe),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:0,style:h.normalizeStyle(x.value),class:h.normalizeClass(h.unref(v).e("count"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),7)):h.createCommentVNode("v-if",!0)],64))],16,FSe))}});var jSe=fn(GSe,[["__file","input.vue"]]);const O1=Sl(jSe),w$=Symbol("popper"),yz=Symbol("popperContent"),bz=zn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),USe=h.defineComponent({name:"ElPopper",inheritAttrs:!1}),ZSe=h.defineComponent({...USe,props:bz,setup(t,{expose:e}){const n=t,r=h.ref(),i=h.ref(),o=h.ref(),a=h.ref(),s=h.computed(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:o,referenceRef:a,role:s};return e(l),h.provide(w$,l),(u,c)=>h.renderSlot(u.$slots,"default")}});var XSe=fn(ZSe,[["__file","popper.vue"]]);const _z=zn({arrowOffset:{type:Number,default:5}}),YSe=h.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),qSe=h.defineComponent({...YSe,props:_z,setup(t,{expose:e}){const n=t,r=an("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=h.inject(yz,void 0);return h.watch(()=>n.arrowOffset,s=>{i.value=s}),h.onBeforeUnmount(()=>{o.value=void 0}),e({arrowRef:o}),(s,l)=>(h.openBlock(),h.createElementBlock("span",{ref_key:"arrowRef",ref:o,class:h.normalizeClass(h.unref(r).e("arrow")),style:h.normalizeStyle(h.unref(a)),"data-popper-arrow":""},null,6))}});var KSe=fn(qSe,[["__file","arrow.vue"]]);const S$="ElOnlyChild",JSe=h.defineComponent({name:S$,setup(t,{slots:e,attrs:n}){var r;const i=h.inject(nz),o=Uwe((r=i==null?void 0:i.setForwardRef)!=null?r:xu);return()=>{var a;const s=(a=e.default)==null?void 0:a.call(e,n);if(!s)return null;if(s.length>1)return ti(S$,"requires exact only one valid child."),null;const l=Oz(s);return l?h.withDirectives(h.cloneVNode(l,n),[[o]]):(ti(S$,"no valid child node found"),null)}}});function Oz(t){if(!t)return null;const e=t;for(const n of e){if(sf(n))switch(n.type){case h.Comment:continue;case h.Text:case"svg":return wz(n);case h.Fragment:return Oz(n.children);default:return n}return wz(n)}return null}function wz(t){const e=an("only-child");return h.createVNode("span",{class:e.e("content")},[t])}const Sz=zn({virtualRef:{type:Zt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Zt(Function)},onMouseleave:{type:Zt(Function)},onClick:{type:Zt(Function)},onKeydown:{type:Zt(Function)},onFocus:{type:Zt(Function)},onBlur:{type:Zt(Function)},onContextmenu:{type:Zt(Function)},id:String,open:Boolean}),exe=h.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),txe=h.defineComponent({...exe,props:Sz,setup(t,{expose:e}){const n=t,{role:r,triggerRef:i}=h.inject(w$,void 0);jwe(i);const o=h.computed(()=>s.value?n.id:void 0),a=h.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=h.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),l=h.computed(()=>s.value?`${n.open}`:void 0);let u;return h.onMounted(()=>{h.watch(()=>n.virtualRef,c=>{c&&(i.value=Su(c))},{immediate:!0}),h.watch(i,(c,f)=>{u==null||u(),u=void 0,dm(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var p;const g=n[d];g&&(c.addEventListener(d.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,d.slice(2).toLowerCase(),g))}),u=h.watch([o,a,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{Tu(d[g])?c.removeAttribute(p):c.setAttribute(p,d[g])})},{immediate:!0})),dm(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),h.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:i}),(c,f)=>c.virtualTriggering?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createBlock(h.unref(JSe),h.mergeProps({key:0},c.$attrs,{"aria-controls":h.unref(o),"aria-describedby":h.unref(a),"aria-expanded":h.unref(l),"aria-haspopup":h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var nxe=fn(txe,[["__file","trigger.vue"]]);const x$="focus-trap.focus-after-trapped",C$="focus-trap.focus-after-released",rxe="focus-trap.focusout-prevented",xz={cancelable:!0,bubbles:!1},ixe={cancelable:!0,bubbles:!1},Cz="focusAfterTrapped",Tz="focusAfterReleased",Pz=Symbol("elFocusTrap"),T$=h.ref(),w1=h.ref(0),P$=h.ref(0);let S1=0;const $z=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},Az=(t,e)=>{for(const n of t)if(!oxe(n,e))return n},oxe=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},axe=t=>{const e=$z(t),n=Az(e,t),r=Az(e.reverse(),t);return[n,r]},sxe=t=>t instanceof HTMLInputElement&&"select"in t,Au=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),P$.value=window.performance.now(),t!==n&&sxe(t)&&e&&t.select()}};function Ez(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const lxe=()=>{let t=[];return{push:r=>{const i=t[0];i&&r!==i&&i.pause(),t=Ez(t,r),t.unshift(r)},remove:r=>{var i,o;t=Ez(t,r),(o=(i=t[0])==null?void 0:i.resume)==null||o.call(i)}}},uxe=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Au(r,e),document.activeElement!==n)return},Mz=lxe(),cxe=()=>w1.value>P$.value,x1=()=>{T$.value="pointer",w1.value=window.performance.now()},Iz=()=>{T$.value="keyboard",w1.value=window.performance.now()},fxe=()=>(h.onMounted(()=>{S1===0&&(document.addEventListener("mousedown",x1),document.addEventListener("touchstart",x1),document.addEventListener("keydown",Iz)),S1++}),h.onBeforeUnmount(()=>{S1--,S1<=0&&(document.removeEventListener("mousedown",x1),document.removeEventListener("touchstart",x1),document.removeEventListener("keydown",Iz))}),{focusReason:T$,lastUserFocusTimestamp:w1,lastAutomatedFocusTimestamp:P$}),C1=t=>new CustomEvent(rxe,{...ixe,detail:t}),dxe=h.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Cz,Tz,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=h.ref();let r,i;const{focusReason:o}=fxe();Fwe(g=>{t.trapped&&!a.paused&&e("release-requested",g)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!t.loop&&!t.trapped||a.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:O,shiftKey:w}=g,{loop:S}=t,x=v===Fi.tab&&!m&&!y&&!b,T=document.activeElement;if(x&&T){const $=O,[A,P]=axe($);if(A&&P){if(!w&&T===P){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(g.preventDefault(),S&&Au(A,!0))}else if(w&&[A,$].includes(T)){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(g.preventDefault(),S&&Au(P,!0))}}else if(T===$){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||g.preventDefault()}}};h.provide(Pz,{focusTrapRef:n,onKeydown:s}),h.watch(()=>t.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),h.watch([n],([g],[v])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=g=>{e(Cz,g)},u=g=>e(Tz,g),c=g=>{const v=h.unref(n);if(!v)return;const m=g.target,y=g.relatedTarget,b=m&&v.contains(m);t.trapped||y&&v.contains(y)||(r=y),b&&e("focusin",g),!a.paused&&t.trapped&&(b?i=m:Au(i,!0))},f=g=>{const v=h.unref(n);if(!(a.paused||!v))if(t.trapped){const m=g.relatedTarget;!Tu(m)&&!v.contains(m)&&setTimeout(()=>{if(!a.paused&&t.trapped){const y=C1({focusReason:o.value});e("focusout-prevented",y),y.defaultPrevented||Au(i,!0)}},0)}else{const m=g.target;m&&v.contains(m)||e("focusout",g)}};async function d(){await h.nextTick();const g=h.unref(n);if(g){Mz.push(a);const v=g.contains(document.activeElement)?r:document.activeElement;if(r=v,!g.contains(v)){const y=new Event(x$,xz);g.addEventListener(x$,l),g.dispatchEvent(y),y.defaultPrevented||h.nextTick(()=>{let b=t.focusStartEl;vi(b)||(Au(b),document.activeElement!==b&&(b="first")),b==="first"&&uxe($z(g),!0),(document.activeElement===v||b==="container")&&Au(g)})}}}function p(){const g=h.unref(n);if(g){g.removeEventListener(x$,l);const v=new CustomEvent(C$,{...xz,detail:{focusReason:o.value}});g.addEventListener(C$,u),g.dispatchEvent(v),!v.defaultPrevented&&(o.value=="keyboard"||!cxe()||g.contains(document.activeElement))&&Au(r??document.body),g.removeEventListener(C$,u),Mz.remove(a)}}return h.onMounted(()=>{t.trapped&&d(),h.watch(()=>t.trapped,g=>{g?d():p()})}),h.onBeforeUnmount(()=>{t.trapped&&p()}),{onKeydown:s}}});function hxe(t,e,n,r,i,o){return h.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var Dz=fn(dxe,[["render",hxe],["__file","focus-trap.vue"]]);const pxe=["fixed","absolute"],gxe=zn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Zt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:o$,default:"bottom"},popperOptions:{type:Zt(Object),default:()=>({})},strategy:{type:String,values:pxe,default:"absolute"}}),Rz=zn({...gxe,id:String,style:{type:Zt([String,Array,Object])},className:{type:Zt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Zt([String,Array,Object])},popperStyle:{type:Zt([String,Array,Object])},referenceEl:{type:Zt(Object)},triggerTargetEl:{type:Zt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...gf(["ariaLabel"])}),vxe={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},mxe=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,o={placement:n,strategy:r,...i,modifiers:[...bxe(t),...e]};return _xe(o,i==null?void 0:i.modifiers),o},yxe=t=>{if(sr)return Su(t)};function bxe(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function _xe(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const Oxe=0,wxe=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:i}=h.inject(w$,void 0),o=h.ref(),a=h.ref(),s=h.computed(()=>({name:"eventListeners",enabled:!!t.visible})),l=h.computed(()=>{var y;const b=h.unref(o),O=(y=h.unref(a))!=null?y:Oxe;return{name:"arrow",enabled:!mV(b),options:{element:b,padding:O}}}),u=h.computed(()=>({onFirstUpdate:()=>{g()},...mxe(t,[h.unref(l),h.unref(s)])})),c=h.computed(()=>yxe(t.referenceEl)||h.unref(r)),{attributes:f,state:d,styles:p,update:g,forceUpdate:v,instanceRef:m}=Bwe(c,n,u);return h.watch(m,y=>e.value=y),h.onMounted(()=>{h.watch(()=>{var y;return(y=h.unref(c))==null?void 0:y.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:m,state:d,styles:p,role:i,forceUpdate:v,update:g}},Sxe=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:i}=az(),o=an("popper"),a=h.computed(()=>h.unref(e).popper),s=h.ref(Fa(t.zIndex)?t.zIndex:i()),l=h.computed(()=>[o.b(),o.is("pure",t.pure),o.is(t.effect),t.popperClass]),u=h.computed(()=>[{zIndex:h.unref(s)},h.unref(n).popper,t.popperStyle||{}]),c=h.computed(()=>r.value==="dialog"?"false":void 0),f=h.computed(()=>h.unref(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=Fa(t.zIndex)?t.zIndex:i()}}},xxe=(t,e)=>{const n=h.ref(!1),r=h.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},Cxe=h.defineComponent({name:"ElPopperContent"}),Txe=h.defineComponent({...Cxe,props:Rz,emits:vxe,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:i,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=xxe(r,n),{attributes:f,arrowRef:d,contentRef:p,styles:g,instanceRef:v,role:m,update:y}=wxe(r),{ariaModal:b,arrowStyle:O,contentAttrs:w,contentClass:S,contentStyle:x,updateZIndex:T}=Sxe(r,{styles:g,attributes:f,role:m}),$=h.inject(wm,void 0),A=h.ref();h.provide(yz,{arrowStyle:O,arrowRef:d,arrowOffset:A}),$&&h.provide(wm,{...$,addInputId:xu,removeInputId:xu});let P;const M=(R=!0)=>{y(),R&&T()},I=()=>{M(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return h.onMounted(()=>{h.watch(()=>r.triggerTargetEl,(R,L)=>{P==null||P(),P=void 0;const D=h.unref(R||p.value),B=h.unref(L||p.value);dm(D)&&(P=h.watch([m,()=>r.ariaLabel,b,()=>r.id],F=>{["role","aria-label","aria-modal","id"].forEach((z,W)=>{Tu(F[W])?D.removeAttribute(z):D.setAttribute(z,F[W])})},{immediate:!0})),B!==D&&dm(B)&&["role","aria-label","aria-modal","id"].forEach(F=>{B.removeAttribute(F)})},{immediate:!0}),h.watch(()=>r.visible,I,{immediate:!0})}),h.onBeforeUnmount(()=>{P==null||P(),P=void 0}),e({popperContentRef:p,popperInstanceRef:v,updatePopper:M,contentStyle:x}),(R,L)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps({ref_key:"contentRef",ref:p},h.unref(w),{style:h.unref(x),class:h.unref(S),tabindex:"-1",onMouseenter:L[0]||(L[0]=D=>R.$emit("mouseenter",D)),onMouseleave:L[1]||(L[1]=D=>R.$emit("mouseleave",D))}),[h.createVNode(h.unref(Dz),{trapped:h.unref(o),"trap-on-focus-in":!0,"focus-trap-el":h.unref(p),"focus-start-el":h.unref(i),onFocusAfterTrapped:h.unref(s),onFocusAfterReleased:h.unref(a),onFocusin:h.unref(l),onFocusoutPrevented:h.unref(u),onReleaseRequested:h.unref(c)},{default:h.withCtx(()=>[h.renderSlot(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Pxe=fn(Txe,[["__file","content.vue"]]);const $xe=Sl(XSe),$$=Symbol("elTooltip"),A$=zn({...Hwe,...Rz,appendTo:{type:Zt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Zt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...gf(["ariaLabel"])}),kz=zn({...Sz,disabled:Boolean,trigger:{type:Zt([String,Array]),default:"hover"},triggerKeys:{type:Zt(Array),default:()=>[Fi.enter,Fi.space]}}),{useModelToggleProps:Axe,useModelToggleEmits:Exe,useModelToggle:Mxe}=$V("visible"),Ixe=zn({...bz,...Axe,...A$,...kz,..._z,showArrow:{type:Boolean,default:!0}}),Dxe=[...Exe,"before-show","before-hide","show","hide","open","close"],Rxe=(t,e)=>Vh(t)?t.includes(e):t===e,lp=(t,e,n)=>r=>{Rxe(h.unref(t),e)&&n(r)},kxe=h.defineComponent({name:"ElTooltipTrigger"}),Nxe=h.defineComponent({...kxe,props:kz,setup(t,{expose:e}){const n=t,r=an("tooltip"),{controlled:i,id:o,open:a,onOpen:s,onClose:l,onToggle:u}=h.inject($$,void 0),c=h.ref(null),f=()=>{if(h.unref(i)||n.disabled)return!0},d=h.toRef(n,"trigger"),p=_l(f,lp(d,"hover",s)),g=_l(f,lp(d,"hover",l)),v=_l(f,lp(d,"click",w=>{w.button===0&&u(w)})),m=_l(f,lp(d,"focus",s)),y=_l(f,lp(d,"focus",l)),b=_l(f,lp(d,"contextmenu",w=>{w.preventDefault(),u(w)})),O=_l(f,w=>{const{code:S}=w;n.triggerKeys.includes(S)&&(w.preventDefault(),u(w))});return e({triggerRef:c}),(w,S)=>(h.openBlock(),h.createBlock(h.unref(nxe),{id:h.unref(o),"virtual-ref":w.virtualRef,open:h.unref(a),"virtual-triggering":w.virtualTriggering,class:h.normalizeClass(h.unref(r).e("trigger")),onBlur:h.unref(y),onClick:h.unref(v),onContextmenu:h.unref(b),onFocus:h.unref(m),onMouseenter:h.unref(p),onMouseleave:h.unref(g),onKeydown:h.unref(O)},{default:h.withCtx(()=>[h.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Lxe=fn(Nxe,[["__file","trigger.vue"]]);const Bxe=h.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Vxe=h.defineComponent({...Bxe,props:A$,setup(t,{expose:e}){const n=t,{selector:r}=tz(),i=an("tooltip"),o=h.ref(null),a=h.ref(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:p,onHide:g,onBeforeShow:v,onBeforeHide:m}=h.inject($$,void 0),y=h.computed(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=h.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);h.onBeforeUnmount(()=>{a.value=!0});const O=h.computed(()=>h.unref(b)?!0:h.unref(u)),w=h.computed(()=>n.disabled?!1:h.unref(u)),S=h.computed(()=>n.appendTo||r.value),x=h.computed(()=>{var F;return(F=n.style)!=null?F:{}}),T=h.computed(()=>!h.unref(u)),$=()=>{g()},A=()=>{if(h.unref(s))return!0},P=_l(A,()=>{n.enterable&&h.unref(c)==="hover"&&d()}),M=_l(A,()=>{h.unref(c)==="hover"&&f()}),I=()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F),v==null||v()},R=()=>{m==null||m()},L=()=>{p(),B=rme(h.computed(()=>{var F;return(F=o.value)==null?void 0:F.popperContentRef}),()=>{if(h.unref(s))return;h.unref(c)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};let B;return h.watch(()=>h.unref(u),F=>{F||B==null||B()},{flush:"post"}),h.watch(()=>n.content,()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F)}),e({contentRef:o}),(F,z)=>(h.openBlock(),h.createBlock(h.Teleport,{disabled:!F.teleported,to:h.unref(S)},[h.createVNode(h.Transition,{name:h.unref(y),onAfterLeave:$,onBeforeEnter:I,onAfterEnter:L,onBeforeLeave:R},{default:h.withCtx(()=>[h.unref(O)?h.withDirectives((h.openBlock(),h.createBlock(h.unref(Pxe),h.mergeProps({key:0,id:h.unref(l),ref_key:"contentRef",ref:o},F.$attrs,{"aria-label":F.ariaLabel,"aria-hidden":h.unref(T),"boundaries-padding":F.boundariesPadding,"fallback-placements":F.fallbackPlacements,"gpu-acceleration":F.gpuAcceleration,offset:F.offset,placement:F.placement,"popper-options":F.popperOptions,strategy:F.strategy,effect:F.effect,enterable:F.enterable,pure:F.pure,"popper-class":F.popperClass,"popper-style":[F.popperStyle,h.unref(x)],"reference-el":F.referenceEl,"trigger-target-el":F.triggerTargetEl,visible:h.unref(w),"z-index":F.zIndex,onMouseenter:h.unref(P),onMouseleave:h.unref(M),onBlur:D,onClose:h.unref(f)}),{default:h.withCtx(()=>[a.value?h.createCommentVNode("v-if",!0):h.renderSlot(F.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[h.vShow,h.unref(w)]]):h.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var zxe=fn(Vxe,[["__file","content.vue"]]);const Fxe=["innerHTML"],Wxe={key:1},Qxe=h.defineComponent({name:"ElTooltip"}),Hxe=h.defineComponent({...Qxe,props:Ixe,emits:Dxe,setup(t,{expose:e,emit:n}){const r=t;Qwe();const i=Om(),o=h.ref(),a=h.ref(),s=()=>{var y;const b=h.unref(o);b&&((y=b.popperInstanceRef)==null||y.update())},l=h.ref(!1),u=h.ref(),{show:c,hide:f,hasUpdateHandler:d}=Mxe({indicator:l,toggleReason:u}),{onOpen:p,onClose:g}=Gwe({showAfter:h.toRef(r,"showAfter"),hideAfter:h.toRef(r,"hideAfter"),autoClose:h.toRef(r,"autoClose"),open:c,close:f}),v=h.computed(()=>Pu(r.visible)&&!d.value);h.provide($$,{controlled:v,id:i,open:h.readonly(l),trigger:h.toRef(r,"trigger"),onOpen:y=>{p(y)},onClose:y=>{g(y)},onToggle:y=>{h.unref(l)?g(y):p(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),h.watch(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const m=y=>{var b,O;const w=(O=(b=a.value)==null?void 0:b.contentRef)==null?void 0:O.popperContentRef,S=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(S)};return h.onDeactivated(()=>l.value&&f()),e({popperRef:o,contentRef:a,isFocusInsideContent:m,updatePopper:s,onOpen:p,onClose:g,hide:f}),(y,b)=>(h.openBlock(),h.createBlock(h.unref($xe),{ref_key:"popperRef",ref:o,role:y.role},{default:h.withCtx(()=>[h.createVNode(Lxe,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:h.withCtx(()=>[y.$slots.default?h.renderSlot(y.$slots,"default",{key:0}):h.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),h.createVNode(zxe,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:h.withCtx(()=>[h.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(h.openBlock(),h.createElementBlock("span",{key:0,innerHTML:y.content},null,8,Fxe)):(h.openBlock(),h.createElementBlock("span",Wxe,h.toDisplayString(y.content),1))]),y.showArrow?(h.openBlock(),h.createBlock(h.unref(KSe),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):h.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Gxe=fn(Hxe,[["__file","tooltip.vue"]]);const jxe=Sl(Gxe),Nz=Symbol("buttonGroupContextKey"),Uxe=(t,e)=>{Wa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},h.computed(()=>t.type==="text"));const n=h.inject(Nz,void 0),r=uz("button"),{form:i}=vf(),o=op(h.computed(()=>n==null?void 0:n.size)),a=ap(),s=h.ref(),l=h.useSlots(),u=h.computed(()=>t.type||(n==null?void 0:n.type)||""),c=h.computed(()=>{var g,v,m;return(m=(v=t.autoInsertSpace)!=null?v:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?m:!1}),f=h.computed(()=>t.tag==="button"?{ariaDisabled:a.value||t.loading,disabled:a.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=h.computed(()=>{var g;const v=(g=l.default)==null?void 0:g.call(l);if(c.value&&(v==null?void 0:v.length)===1){const m=v[0];if((m==null?void 0:m.type)===h.Text){const y=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:g=>{t.nativeType==="reset"&&(i==null||i.resetFields()),e("click",g)}}},E$=zn({size:pf,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Kh},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Kh,default:()=>t$},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Zt([String,Object]),default:"button"}}),Zxe={click:t=>t instanceof MouseEvent};function Br(t,e){Xxe(t)&&(t="100%");var n=Yxe(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function T1(t){return Math.min(1,Math.max(0,t))}function Xxe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Yxe(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Lz(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P1(t){return t<=1?"".concat(Number(t)*100,"%"):t}function yf(t){return t.length===1?"0"+t:String(t)}function qxe(t,e,n){return{r:Br(t,255)*255,g:Br(e,255)*255,b:Br(n,255)*255}}function Bz(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kxe(t,e,n){var r,i,o;if(t=Br(t,360),e=Br(e,100),n=Br(n,100),e===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=M$(s,a,t+1/3),i=M$(s,a,t),o=M$(s,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function I$(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e>16,g:(t&65280)>>8,b:t&255}}var R$={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function up(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof t=="string"&&(t=oCe(t)),typeof t=="object"&&(Cl(t.r)&&Cl(t.g)&&Cl(t.b)?(e=qxe(t.r,t.g,t.b),a=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Cl(t.h)&&Cl(t.s)&&Cl(t.v)?(r=P1(t.s),i=P1(t.v),e=Jxe(t.h,r,i),a=!0,s="hsv"):Cl(t.h)&&Cl(t.s)&&Cl(t.l)&&(r=P1(t.s),o=P1(t.l),e=Kxe(t.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Lz(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var rCe="[-\\+]?\\d+%?",iCe="[-\\+]?\\d*\\.\\d+%?",Eu="(?:".concat(iCe,")|(?:").concat(rCe,")"),k$="[\\s|\\(]+(".concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")\\s*\\)?"),N$="[\\s|\\(]+(".concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")\\s*\\)?"),ja={CSS_UNIT:new RegExp(Eu),rgb:new RegExp("rgb"+k$),rgba:new RegExp("rgba"+N$),hsl:new RegExp("hsl"+k$),hsla:new RegExp("hsla"+N$),hsv:new RegExp("hsv"+k$),hsva:new RegExp("hsva"+N$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oCe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(R$[t])t=R$[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ja.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ja.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ja.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ja.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ja.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ja.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ja.hex8.exec(t),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),a:Vz(n[4]),format:e?"name":"hex8"}:(n=ja.hex6.exec(t),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),format:e?"name":"hex"}:(n=ja.hex4.exec(t),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),a:Vz(n[4]+n[4]),format:e?"name":"hex8"}:(n=ja.hex3.exec(t),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Cl(t){return!!ja.CSS_UNIT.exec(String(t))}var yn=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=nCe(e)),this.originalInput=e;var i=up(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=Lz(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=I$(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=I$(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Bz(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Bz(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),D$(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),eCe(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Br(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Br(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+D$(this.r,this.g,this.b,!1),n=0,r=Object.entries(R$);n=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=T1(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=T1(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=T1(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=T1(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(a)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a{let r={},i=t.color;if(i){const o=i.match(/var\((.*?)\)/);o&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new yn(i),s=t.dark?a.tint(20).toString():Mu(a,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Mu(a,90):a.tint(90).toString(),"text-color":i,"border-color":t.dark?Mu(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Mu(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Mu(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Mu(a,80):a.tint(80).toString());else{const l=t.dark?Mu(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const c=t.dark?Mu(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const sCe=h.defineComponent({name:"ElButton"}),lCe=h.defineComponent({...sCe,props:E$,emits:Zxe,setup(t,{expose:e,emit:n}){const r=t,i=aCe(r),o=an("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Uxe(r,n),p=h.computed(()=>[o.b(),o.m(l.value),o.m(s.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return e({ref:a,size:s,type:l,disabled:u,shouldAddSpace:f}),(g,v)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.tag),h.mergeProps({ref_key:"_ref",ref:a},h.unref(c),{class:h.unref(p),style:h.unref(i),onClick:h.unref(d)}),{default:h.withCtx(()=>[g.loading?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[g.$slots.loading?h.renderSlot(g.$slots,"loading",{key:0}):(h.openBlock(),h.createBlock(h.unref(Ha),{key:1,class:h.normalizeClass(h.unref(o).is("loading"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:1},{default:h.withCtx(()=>[g.icon?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.icon),{key:0})):h.renderSlot(g.$slots,"icon",{key:1})]),_:3})):h.createCommentVNode("v-if",!0),g.$slots.default?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass({[h.unref(o).em("text","expand")]:h.unref(f)})},[h.renderSlot(g.$slots,"default")],2)):h.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var uCe=fn(lCe,[["__file","button.vue"]]);const cCe={size:E$.size,type:E$.type},fCe=h.defineComponent({name:"ElButtonGroup"}),dCe=h.defineComponent({...fCe,props:cCe,setup(t){const e=t;h.provide(Nz,h.reactive({size:h.toRef(e,"size"),type:h.toRef(e,"type")}));const n=an("button");return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(`${h.unref(n).b("group")}`)},[h.renderSlot(r.$slots,"default")],2))}});var zz=fn(dCe,[["__file","button-group.vue"]]);const L$=Sl(uCe,{ButtonGroup:zz});hm(zz);var Tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Iu=new Map;let Fz;sr&&(document.addEventListener("mousedown",t=>Fz=t),document.addEventListener("mouseup",t=>{for(const e of Iu.values())for(const{documentHandler:n}of e)n(t,Fz)}));function Wz(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:dm(e.arg)&&n.push(e.arg),function(r,i){const o=e.instance.popperRef,a=r.target,s=i==null?void 0:i.target,l=!e||!e.instance,u=!a||!s,c=t.contains(a)||t.contains(s),f=t===a,d=n.length&&n.some(g=>g==null?void 0:g.contains(a))||n.length&&n.includes(s),p=o&&(o.contains(a)||o.contains(s));l||u||c||f||d||p||e.value(r,i)}}const hCe={beforeMount(t,e){Iu.has(t)||Iu.set(t,[]),Iu.get(t).push({documentHandler:Wz(t,e),bindingFn:e.value})},updated(t,e){Iu.has(t)||Iu.set(t,[]);const n=Iu.get(t),r=n.findIndex(o=>o.bindingFn===e.oldValue),i={documentHandler:Wz(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(t){Iu.delete(t)}},Qz={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:pf,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...gf(["ariaControls"])},Hz={[mi]:t=>vi(t)||Fa(t)||Pu(t),change:t=>vi(t)||Fa(t)||Pu(t)},cp=Symbol("checkboxGroupContextKey"),pCe=({model:t,isChecked:e})=>{const n=h.inject(cp,void 0),r=h.computed(()=>{var o,a;const s=(o=n==null?void 0:n.max)==null?void 0:o.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!u1(s)&&t.value.length>=s&&!e.value||!u1(l)&&t.value.length<=l&&e.value});return{isDisabled:ap(h.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},gCe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=h.inject(cp,void 0),{formItem:s}=vf(),{emit:l}=h.getCurrentInstance();function u(g){var v,m,y,b;return[!0,t.trueValue,t.trueLabel].includes(g)?(m=(v=t.trueValue)!=null?v:t.trueLabel)!=null?m:!0:(b=(y=t.falseValue)!=null?y:t.falseLabel)!=null?b:!1}function c(g,v){l("change",u(g),v)}function f(g){if(n.value)return;const v=g.target;l("change",u(v.checked),g)}async function d(g){n.value||!r.value&&!i.value&&o.value&&(g.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseValue,t.falseLabel].includes(e.value)),await h.nextTick(),c(e.value,g)))}const p=h.computed(()=>(a==null?void 0:a.validateEvent)||t.validateEvent);return h.watch(()=>t.modelValue,()=>{p.value&&(s==null||s.validate("change").catch(g=>ti(g)))}),{handleChange:f,onClickRoot:d}},vCe=t=>{const e=h.ref(!1),{emit:n}=h.getCurrentInstance(),r=h.inject(cp,void 0),i=h.computed(()=>u1(r)===!1),o=h.ref(!1),a=h.computed({get(){var s,l;return i.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=t.modelValue)!=null?l:e.value},set(s){var l,u;i.value&&Vh(s)?(o.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>a.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(mi,s),e.value=s)}});return{model:a,isGroup:i,isLimitExceeded:o}},mCe=(t,e,{model:n})=>{const r=h.inject(cp,void 0),i=h.ref(!1),o=h.computed(()=>Yh(t.value)?t.label:t.value),a=h.computed(()=>{const c=n.value;return Pu(c)?c:Vh(c)?sf(o.value)?c.map(h.toRaw).some(f=>fm(f,o.value)):c.map(h.toRaw).includes(o.value):c!=null?c===t.trueValue||c===t.trueLabel:!!c}),s=op(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),l=op(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=h.computed(()=>!!e.default||!Yh(o.value));return{checkboxButtonSize:s,isChecked:a,isFocused:i,checkboxSize:l,hasOwnLabel:u,actualValue:o}},Gz=(t,e)=>{const{formItem:n}=vf(),{model:r,isGroup:i,isLimitExceeded:o}=vCe(t),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=mCe(t,e,{model:r}),{isDisabled:d}=pCe({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:g}=Sm(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:m}=gCe(t,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:g});return(()=>{function b(){var O,w;Vh(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(w=(O=t.trueValue)!=null?O:t.trueLabel)!=null?w:!0}t.checked&&b()})(),Wa({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.controls)),Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>i.value&&Yh(t.value))),Wa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.trueLabel)),Wa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.falseLabel)),{inputId:p,isLabeledByFormItem:g,isChecked:s,isDisabled:d,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:f,handleChange:v,onClickRoot:m}},yCe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],bCe=["id","indeterminate","disabled","value","name","tabindex"],_Ce=h.defineComponent({name:"ElCheckbox"}),OCe=h.defineComponent({..._Ce,props:Qz,emits:Hz,setup(t){const e=t,n=h.useSlots(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:d,onClickRoot:p}=Gz(e,n),g=an("checkbox"),v=h.computed(()=>[g.b(),g.m(l.value),g.is("disabled",a.value),g.is("bordered",e.border),g.is("checked",o.value)]),m=h.computed(()=>[g.e("input"),g.is("disabled",a.value),g.is("checked",o.value),g.is("indeterminate",e.indeterminate),g.is("focus",s.value)]);return(y,b)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(!h.unref(u)&&h.unref(i)?"span":"label"),{class:h.normalizeClass(h.unref(v)),"aria-controls":y.indeterminate?y.controls||y.ariaControls:null,onClick:h.unref(p)},{default:h.withCtx(()=>{var O,w;return[h.createElementVNode("span",{class:h.normalizeClass(h.unref(m))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,id:h.unref(r),"onUpdate:modelValue":b[0]||(b[0]=S=>h.isRef(c)?c.value=S:null),class:h.normalizeClass(h.unref(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:h.unref(a),"true-value":(O=y.trueValue)!=null?O:y.trueLabel,"false-value":(w=y.falseValue)!=null?w:y.falseLabel,onChange:b[1]||(b[1]=(...S)=>h.unref(d)&&h.unref(d)(...S)),onFocus:b[2]||(b[2]=S=>s.value=!0),onBlur:b[3]||(b[3]=S=>s.value=!1),onClick:b[4]||(b[4]=h.withModifiers(()=>{},["stop"]))},null,42,yCe)),[[h.vModelCheckbox,h.unref(c)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,id:h.unref(r),"onUpdate:modelValue":b[5]||(b[5]=S=>h.isRef(c)?c.value=S:null),class:h.normalizeClass(h.unref(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:h.unref(a),value:h.unref(f),name:y.name,tabindex:y.tabindex,onChange:b[6]||(b[6]=(...S)=>h.unref(d)&&h.unref(d)(...S)),onFocus:b[7]||(b[7]=S=>s.value=!0),onBlur:b[8]||(b[8]=S=>s.value=!1),onClick:b[9]||(b[9]=h.withModifiers(()=>{},["stop"]))},null,42,bCe)),[[h.vModelCheckbox,h.unref(c)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(g).e("inner"))},null,2)],2),h.unref(u)?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(g).e("label"))},[h.renderSlot(y.$slots,"default"),y.$slots.default?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode(h.toDisplayString(y.label),1)],64))],2)):h.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var wCe=fn(OCe,[["__file","checkbox.vue"]]);const SCe=["name","tabindex","disabled","true-value","false-value"],xCe=["name","tabindex","disabled","value"],CCe=h.defineComponent({name:"ElCheckboxButton"}),TCe=h.defineComponent({...CCe,props:Qz,emits:Hz,setup(t){const e=t,n=h.useSlots(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=Gz(e,n),c=h.inject(cp,void 0),f=an("checkbox"),d=h.computed(()=>{var g,v,m,y;const b=(v=(g=c==null?void 0:c.fill)==null?void 0:g.value)!=null?v:"";return{backgroundColor:b,borderColor:b,color:(y=(m=c==null?void 0:c.textColor)==null?void 0:m.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),p=h.computed(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",o.value),f.is("checked",i.value),f.is("focus",r.value)]);return(g,v)=>{var m,y;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass(h.unref(p))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:h.unref(o),"true-value":(m=g.trueValue)!=null?m:g.trueLabel,"false-value":(y=g.falseValue)!=null?y:g.falseLabel,onChange:v[1]||(v[1]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:v[2]||(v[2]=b=>r.value=!0),onBlur:v[3]||(v[3]=b=>r.value=!1),onClick:v[4]||(v[4]=h.withModifiers(()=>{},["stop"]))},null,42,SCe)),[[h.vModelCheckbox,h.unref(s)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:h.unref(o),value:h.unref(l),onChange:v[6]||(v[6]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:v[7]||(v[7]=b=>r.value=!0),onBlur:v[8]||(v[8]=b=>r.value=!1),onClick:v[9]||(v[9]=h.withModifiers(()=>{},["stop"]))},null,42,xCe)),[[h.vModelCheckbox,h.unref(s)]]),g.$slots.default||g.label?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass(h.unref(f).be("button","inner")),style:h.normalizeStyle(h.unref(i)?h.unref(d):void 0)},[h.renderSlot(g.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(g.label),1)])],6)):h.createCommentVNode("v-if",!0)],2)}}});var jz=fn(TCe,[["__file","checkbox-button.vue"]]);const PCe=zn({modelValue:{type:Zt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:pf,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),$Ce={[mi]:t=>Vh(t),change:t=>Vh(t)},ACe=h.defineComponent({name:"ElCheckboxGroup"}),ECe=h.defineComponent({...ACe,props:PCe,emits:$Ce,setup(t,{emit:e}){const n=t,r=an("checkbox"),{formItem:i}=vf(),{inputId:o,isLabeledByFormItem:a}=Sm(n,{formItemContext:i}),s=async u=>{e(mi,u),await h.nextTick(),e("change",u)},l=h.computed({get(){return n.modelValue},set(u){s(u)}});return h.provide(cp,{...Xh(h.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!n.label)),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(u=>ti(u)))}),(u,c)=>{var f;return h.openBlock(),h.createBlock(h.resolveDynamicComponent(u.tag),{id:h.unref(o),class:h.normalizeClass(h.unref(r).b("group")),role:"group","aria-label":h.unref(a)?void 0:u.label||u.ariaLabel||"checkbox-group","aria-labelledby":h.unref(a)?(f=h.unref(i))==null?void 0:f.labelId:void 0},{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Uz=fn(ECe,[["__file","checkbox-group.vue"]]);const MCe=Sl(wCe,{CheckboxButton:jz,CheckboxGroup:Uz});hm(jz),hm(Uz);const Zz=zn({modelValue:{type:[String,Number,Boolean],default:void 0},size:pf,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ICe=zn({...Zz,border:Boolean}),Xz={[mi]:t=>vi(t)||Fa(t)||Pu(t),[PV]:t=>vi(t)||Fa(t)||Pu(t)},Yz=Symbol("radioGroupKey"),qz=(t,e)=>{const n=h.ref(),r=h.inject(Yz,void 0),i=h.computed(()=>!!r),o=h.computed(()=>Yh(t.value)?t.label:t.value),a=h.computed({get(){return i.value?r.modelValue:t.modelValue},set(f){i.value?r.changeEvent(f):e&&e(mi,f),n.value.checked=t.modelValue===o.value}}),s=op(h.computed(()=>r==null?void 0:r.size)),l=ap(h.computed(()=>r==null?void 0:r.disabled)),u=h.ref(!1),c=h.computed(()=>l.value||i.value&&a.value!==o.value?-1:0);return Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>i.value&&Yh(t.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:a,actualValue:o}},DCe=["value","name","disabled"],RCe=h.defineComponent({name:"ElRadio"}),kCe=h.defineComponent({...RCe,props:ICe,emits:Xz,setup(t,{emit:e}){const n=t,r=an("radio"),{radioRef:i,radioGroup:o,focus:a,size:s,disabled:l,modelValue:u,actualValue:c}=qz(n,e);function f(){h.nextTick(()=>e("change",u.value))}return(d,p)=>{var g;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(r).b(),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("focus",h.unref(a)),h.unref(r).is("bordered",d.border),h.unref(r).is("checked",h.unref(u)===h.unref(c)),h.unref(r).m(h.unref(s))])},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(r).e("input"),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("checked",h.unref(u)===h.unref(c))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":p[0]||(p[0]=v=>h.isRef(u)?u.value=v:null),class:h.normalizeClass(h.unref(r).e("original")),value:h.unref(c),name:d.name||((g=h.unref(o))==null?void 0:g.name),disabled:h.unref(l),type:"radio",onFocus:p[1]||(p[1]=v=>a.value=!0),onBlur:p[2]||(p[2]=v=>a.value=!1),onChange:f,onClick:p[3]||(p[3]=h.withModifiers(()=>{},["stop"]))},null,42,DCe),[[h.vModelRadio,h.unref(u)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("inner"))},null,2)],2),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("label")),onKeydown:p[4]||(p[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(d.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(d.label),1)])],34)],2)}}});var NCe=fn(kCe,[["__file","radio.vue"]]);const LCe=zn({...Zz}),BCe=["value","name","disabled"],VCe=h.defineComponent({name:"ElRadioButton"}),zCe=h.defineComponent({...VCe,props:LCe,setup(t){const e=t,n=an("radio"),{radioRef:r,focus:i,size:o,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=qz(e),c=h.computed(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,d)=>{var p;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(n).b("button"),h.unref(n).is("active",h.unref(s)===h.unref(u)),h.unref(n).is("disabled",h.unref(a)),h.unref(n).is("focus",h.unref(i)),h.unref(n).bm("button",h.unref(o))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=g=>h.isRef(s)?s.value=g:null),class:h.normalizeClass(h.unref(n).be("button","original-radio")),value:h.unref(u),type:"radio",name:f.name||((p=h.unref(l))==null?void 0:p.name),disabled:h.unref(a),onFocus:d[1]||(d[1]=g=>i.value=!0),onBlur:d[2]||(d[2]=g=>i.value=!1),onClick:d[3]||(d[3]=h.withModifiers(()=>{},["stop"]))},null,42,BCe),[[h.vModelRadio,h.unref(s)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(n).be("button","inner")),style:h.normalizeStyle(h.unref(s)===h.unref(u)?h.unref(c):{}),onKeydown:d[4]||(d[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(f.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(f.label),1)])],38)],2)}}});var Kz=fn(zCe,[["__file","radio-button.vue"]]);const FCe=zn({id:{type:String,default:void 0},size:pf,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),WCe=Xz,QCe=["id","aria-label","aria-labelledby"],HCe=h.defineComponent({name:"ElRadioGroup"}),GCe=h.defineComponent({...HCe,props:FCe,emits:WCe,setup(t,{emit:e}){const n=t,r=an("radio"),i=Om(),o=h.ref(),{formItem:a}=vf(),{inputId:s,isLabeledByFormItem:l}=Sm(n,{formItemContext:a}),u=f=>{e(mi,f),h.nextTick(()=>e("change",f))};h.onMounted(()=>{const f=o.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(p=>p.checked)&&d&&(d.tabIndex=0)});const c=h.computed(()=>n.name||i.value);return h.provide(Yz,h.reactive({...h.toRefs(n),changeEvent:u,name:c})),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>ti(f)))}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>!!n.label)),(f,d)=>(h.openBlock(),h.createElementBlock("div",{id:h.unref(s),ref_key:"radioGroupRef",ref:o,class:h.normalizeClass(h.unref(r).b("group")),role:"radiogroup","aria-label":h.unref(l)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":h.unref(l)?h.unref(a).labelId:void 0},[h.renderSlot(f.$slots,"default")],10,QCe))}});var Jz=fn(GCe,[["__file","radio-group.vue"]]);Sl(NCe,{RadioButton:Kz,RadioGroup:Jz});const eF=hm(Jz),$m=hm(Kz),jCe=h.defineComponent({name:"ElCollapseTransition"}),UCe=h.defineComponent({...jCe,setup(t){const e=an("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,o)=>(h.openBlock(),h.createBlock(h.Transition,h.mergeProps({name:h.unref(e).b()},h.toHandlers(r)),{default:h.withCtx(()=>[h.renderSlot(i.$slots,"default")]),_:3},16,["name"]))}});var A1=fn(UCe,[["__file","collapse-transition.vue"]]);A1.install=t=>{t.component(A1.name,A1)};const ZCe=A1,XCe=zn({color:{type:Zt(Object),required:!0},vertical:{type:Boolean,default:!1}});let B$=!1;function Am(t,e){if(!sr)return;const n=function(o){var a;(a=e.drag)==null||a.call(e,o)},r=function(o){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,B$=!1,(a=e.end)==null||a.call(e,o)},i=function(o){var a;B$||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),B$=!0,(a=e.start)==null||a.call(e,o))};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}const YCe=t=>{const e=h.getCurrentInstance(),n=h.shallowRef(),r=h.shallowRef();function i(a){a.target!==n.value&&o(a)}function o(a){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=C2(a);if(t.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:i}},qCe=(t,{bar:e,thumb:n,handleDrag:r})=>{const i=h.getCurrentInstance(),o=an("color-alpha-slider"),a=h.ref(0),s=h.ref(0),l=h.ref();function u(){if(!n.value||t.vertical)return 0;const b=i.vnode.el,O=t.color.get("alpha");return b?Math.round(O*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=i.vnode.el;if(!t.vertical)return 0;const O=t.color.get("alpha");return b?Math.round(O*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:b,g:O,b:w}=t.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${O}, ${w}, 0) 0%, rgba(${b}, ${O}, ${w}, 1) 100%)`}return""}function d(){a.value=u(),s.value=c(),l.value=f()}h.onMounted(()=>{if(!e.value||!n.value)return;const b={drag:O=>{r(O)},end:O=>{r(O)}};Am(e.value,b),Am(n.value,b),d()}),h.watch(()=>t.color.get("alpha"),()=>d()),h.watch(()=>t.color.value,()=>d());const p=h.computed(()=>[o.b(),o.is("vertical",t.vertical)]),g=h.computed(()=>o.e("bar")),v=h.computed(()=>o.e("thumb")),m=h.computed(()=>({background:l.value})),y=h.computed(()=>({left:qh(a.value),top:qh(s.value)}));return{rootKls:p,barKls:g,barStyle:m,thumbKls:v,thumbStyle:y,update:d}},KCe=h.defineComponent({name:"ElColorAlphaSlider"}),JCe=h.defineComponent({...KCe,props:XCe,setup(t,{expose:e}){const n=t,{bar:r,thumb:i,handleDrag:o,handleClick:a}=YCe(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=qCe(n,{bar:r,thumb:i,handleDrag:o});return e({update:d,bar:r,thumb:i}),(p,g)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(s))},[h.createElementVNode("div",{ref_key:"bar",ref:r,class:h.normalizeClass(h.unref(l)),style:h.normalizeStyle(h.unref(u)),onClick:g[0]||(g[0]=(...v)=>h.unref(a)&&h.unref(a)(...v))},null,6),h.createElementVNode("div",{ref_key:"thumb",ref:i,class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(f))},null,6)],2))}});var eTe=fn(JCe,[["__file","alpha-slider.vue"]]);const tTe=h.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=an("color-hue-slider"),n=h.getCurrentInstance(),r=h.ref(),i=h.ref(),o=h.ref(0),a=h.ref(0),s=h.computed(()=>t.color.get("hue"));h.watch(()=>s.value,()=>{d()});function l(p){p.target!==r.value&&u(p)}function u(p){if(!i.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=C2(p);let b;if(t.vertical){let O=y-v.top;O=Math.min(O,v.height-r.value.offsetHeight/2),O=Math.max(r.value.offsetHeight/2,O),b=Math.round((O-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let O=m-v.left;O=Math.min(O,v.width-r.value.offsetWidth/2),O=Math.max(r.value.offsetWidth/2,O),b=Math.round((O-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",b)}function c(){if(!r.value)return 0;const p=n.vnode.el;if(t.vertical)return 0;const g=t.color.get("hue");return p?Math.round(g*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const p=n.vnode.el;if(!t.vertical)return 0;const g=t.color.get("hue");return p?Math.round(g*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){o.value=c(),a.value=f()}return h.onMounted(()=>{if(!i.value||!r.value)return;const p={drag:g=>{u(g)},end:g=>{u(g)}};Am(i.value,p),Am(r.value,p),d()}),{bar:i,thumb:r,thumbLeft:o,thumbTop:a,hueValue:s,handleClick:l,update:d,ns:e}}});function nTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[h.createElementVNode("div",{ref:"bar",class:h.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...a)=>t.handleClick&&t.handleClick(...a))},null,2),h.createElementVNode("div",{ref:"thumb",class:h.normalizeClass(t.ns.e("thumb")),style:h.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var rTe=fn(tTe,[["render",nTe],["__file","hue-slider.vue"]]);const iTe=zn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:pf,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:A$.teleported,predefine:{type:Zt(Array)},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),oTe={[mi]:t=>vi(t)||Tu(t),[PV]:t=>vi(t)||Tu(t),activeChange:t=>vi(t)||Tu(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},tF=Symbol("colorPickerContextKey"),nF=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},aTe=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},sTe=function(t){return typeof t=="string"&&t.includes("%")},fp=function(t,e){aTe(t)&&(t="100%");const n=sTe(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},rF={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},E1=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${rF[e]||e}${rF[n]||n}`},iF=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${E1(t)}${E1(e)}${E1(n)}`},V$={A:10,B:11,C:12,D:13,E:14,F:15},bf=function(t){return t.length===2?(V$[t[0].toUpperCase()]||+t[0])*16+(V$[t[1].toUpperCase()]||+t[1]):V$[t[1].toUpperCase()]||+t[1]},lTe=function(t,e,n){e=e/100,n=n/100;let r=e;const i=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+e)/2,a=n===0?2*r/(i+r):2*e/(n+e);return{h:t,s:a*100,v:o*100}},oF=(t,e,n)=>{t=fp(t,255),e=fp(e,255),n=fp(n,255);const r=Math.max(t,e,n),i=Math.min(t,e,n);let o;const a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:{o=(e-n)/s+(e{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=lTe(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=oF(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,a;r.length===3?(i=bf(r[0]+r[0]),o=bf(r[1]+r[1]),a=bf(r[2]+r[2])):(r.length===6||r.length===8)&&(i=bf(r.slice(0,2)),o=bf(r.slice(2,4)),a=bf(r.slice(4,6))),r.length===8?this._alpha=bf(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=oF(i,o,a);n(s,l,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const a=nF(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${iF(Em(e,n,r))}${E1(i*255/100)}`;break}default:{const{r:a,g:s,b:l}=Em(e,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const a=nF(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=Em(e,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=iF(Em(e,n,r))}}}const uTe=h.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(t){const e=an("color-predefine"),{currentColor:n}=h.inject(tF),r=h.ref(o(t.colors,t.color));h.watch(()=>n.value,a=>{const s=new Mm;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),h.watchEffect(()=>{r.value=o(t.colors,t.color)});function i(a){t.color.fromString(t.colors[a])}function o(a,s){return a.map(l=>{const u=new Mm;return u.enableAlpha=t.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:i,ns:e}}}),cTe=["onClick"];function fTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b())},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("colors"))},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.rgbaColors,(a,s)=>(h.openBlock(),h.createElementBlock("div",{key:t.colors[s],class:h.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>t.handleSelect(s)},[h.createElementVNode("div",{style:h.normalizeStyle({backgroundColor:a.value})},null,4)],10,cTe))),128))],2)],2)}var dTe=fn(uTe,[["render",fTe],["__file","predefine.vue"]]);const hTe=h.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=an("color-svpanel"),n=h.getCurrentInstance(),r=h.ref(0),i=h.ref(0),o=h.ref("hsl(0, 100%, 50%)"),a=h.computed(()=>{const u=t.color.get("hue"),c=t.color.get("value");return{hue:u,value:c}});function s(){const u=t.color.get("saturation"),c=t.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:p}=f;i.value=u*d/100,r.value=(100-c)*p/100,o.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:p}=C2(u);let g=d-f.left,v=p-f.top;g=Math.max(0,g),g=Math.min(g,f.width),v=Math.max(0,v),v=Math.min(v,f.height),i.value=g,r.value=v,t.color.set({saturation:g/f.width*100,value:100-v/f.height*100})}return h.watch(()=>a.value,()=>{s()}),h.onMounted(()=>{Am(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:i,background:o,colorValue:a,handleDrag:l,update:s,ns:e}}}),pTe=[h.createElementVNode("div",null,null,-1)];function gTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b()),style:h.normalizeStyle({backgroundColor:t.background})},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("white"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("black"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("cursor")),style:h.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},pTe,6)],6)}var vTe=fn(hTe,[["render",gTe],["__file","sv-panel.vue"]]);const mTe=["onKeydown"],yTe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],bTe=h.defineComponent({name:"ElColorPicker"}),_Te=h.defineComponent({...bTe,props:iTe,emits:oTe,setup(t,{expose:e,emit:n}){const r=t,{t:i}=n$(),o=an("color"),{formItem:a}=vf(),s=op(),l=ap(),{inputId:u,isLabeledByFormItem:c}=Sm(r,{formItemContext:a}),f=h.ref(),d=h.ref(),p=h.ref(),g=h.ref(),v=h.ref(),m=h.ref(),{isFocused:y,handleFocus:b,handleBlur:O}=sz(v,{beforeBlur(X){var Y;return(Y=g.value)==null?void 0:Y.isFocusInsideContent(X)},afterBlur(){B(!1),j()}}),w=X=>{if(l.value)return ee();b(X)};let S=!0;const x=h.reactive(new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),T=h.ref(!1),$=h.ref(!1),A=h.ref(""),P=h.computed(()=>!r.modelValue&&!$.value?"transparent":D(x,r.showAlpha)),M=h.computed(()=>!r.modelValue&&!$.value?"":x.value),I=h.computed(()=>c.value?void 0:r.label||r.ariaLabel||i("el.colorpicker.defaultLabel"));Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},h.computed(()=>!!r.label));const R=h.computed(()=>c.value?a==null?void 0:a.labelId:void 0),L=h.computed(()=>[o.b("picker"),o.is("disabled",l.value),o.bm("picker",s.value),o.is("focused",y.value)]);function D(X,Y){if(!(X instanceof Mm))throw new TypeError("color should be instance of _color Class");const{r:le,g:ve,b:ye}=X.toRgb();return Y?`rgba(${le}, ${ve}, ${ye}, ${X.get("alpha")/100})`:`rgb(${le}, ${ve}, ${ye})`}function B(X){T.value=X}const F=X2(B,100,{leading:!0});function z(){l.value||B(!0)}function W(){F(!1),j()}function j(){h.nextTick(()=>{r.modelValue?x.fromString(r.modelValue):(x.value="",h.nextTick(()=>{$.value=!1}))})}function H(){l.value||F(!T.value)}function Z(){x.fromString(A.value)}function J(){const X=x.value;n(mi,X),n("change",X),r.validateEvent&&(a==null||a.validate("change").catch(Y=>ti(Y))),F(!1),h.nextTick(()=>{const Y=new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});x.compare(Y)||j()})}function se(){F(!1),n(mi,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(X=>ti(X))),j()}function oe(X){if(T.value&&(W(),y.value)){const Y=new FocusEvent("focus",X);O(Y)}}function de(X){X.preventDefault(),X.stopPropagation(),B(!1),j()}function ie(X){switch(X.code){case Fi.enter:case Fi.space:X.preventDefault(),X.stopPropagation(),z(),m.value.focus();break;case Fi.esc:de(X);break}}function ue(){v.value.focus()}function ee(){v.value.blur()}return h.onMounted(()=>{r.modelValue&&(A.value=M.value)}),h.watch(()=>r.modelValue,X=>{X?X&&X!==x.value&&(S=!1,x.fromString(X)):$.value=!1}),h.watch(()=>M.value,X=>{A.value=X,S&&n("activeChange",X),S=!0}),h.watch(()=>x.value,()=>{!r.modelValue&&!$.value&&($.value=!0)}),h.watch(()=>T.value,()=>{h.nextTick(()=>{var X,Y,le;(X=f.value)==null||X.update(),(Y=d.value)==null||Y.update(),(le=p.value)==null||le.update()})}),h.provide(tF,{currentColor:M}),e({color:x,show:z,hide:W,focus:ue,blur:ee}),(X,Y)=>(h.openBlock(),h.createBlock(h.unref(jxe),{ref_key:"popper",ref:g,visible:T.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[h.unref(o).be("picker","panel"),h.unref(o).b("dropdown"),X.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:X.teleported,transition:`${h.unref(o).namespace.value}-zoom-in-top`,persistent:"",onHide:Y[2]||(Y[2]=le=>B(!1))},{content:h.withCtx(()=>[h.withDirectives((h.openBlock(),h.createElementBlock("div",{onKeydown:h.withKeys(de,["esc"])},[h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","main-wrapper"))},[h.createVNode(rTe,{ref_key:"hue",ref:f,class:"hue-slider",color:h.unref(x),vertical:""},null,8,["color"]),h.createVNode(vTe,{ref_key:"sv",ref:d,color:h.unref(x)},null,8,["color"])],2),X.showAlpha?(h.openBlock(),h.createBlock(eTe,{key:0,ref_key:"alpha",ref:p,color:h.unref(x)},null,8,["color"])):h.createCommentVNode("v-if",!0),X.predefine?(h.openBlock(),h.createBlock(dTe,{key:1,ref:"predefine","enable-alpha":X.showAlpha,color:h.unref(x),colors:X.predefine},null,8,["enable-alpha","color","colors"])):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","btns"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("dropdown","value"))},[h.createVNode(h.unref(O1),{ref_key:"inputRef",ref:m,modelValue:A.value,"onUpdate:modelValue":Y[0]||(Y[0]=le=>A.value=le),"validate-event":!1,size:"small",onKeyup:h.withKeys(Z,["enter"]),onBlur:Z},null,8,["modelValue","onKeyup"])],2),h.createVNode(h.unref(L$),{class:h.normalizeClass(h.unref(o).be("dropdown","link-btn")),text:"",size:"small",onClick:se},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),h.createVNode(h.unref(L$),{plain:"",size:"small",class:h.normalizeClass(h.unref(o).be("dropdown","btn")),onClick:J},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,mTe)),[[h.unref(hCe),oe]])]),default:h.withCtx(()=>[h.createElementVNode("div",h.mergeProps({id:h.unref(u),ref_key:"triggerRef",ref:v},X.$attrs,{class:h.unref(L),role:"button","aria-label":h.unref(I),"aria-labelledby":h.unref(R),"aria-description":h.unref(i)("el.colorpicker.description",{color:X.modelValue||""}),"aria-disabled":h.unref(l),tabindex:h.unref(l)?-1:X.tabindex,onKeydown:ie,onFocus:w,onBlur:Y[1]||(Y[1]=(...le)=>h.unref(O)&&h.unref(O)(...le))}),[h.unref(l)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(o).be("picker","mask"))},null,2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("picker","trigger")),onClick:H},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(o).be("picker","color"),h.unref(o).is("alpha",X.showAlpha)])},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("picker","color-inner")),style:h.normalizeStyle({backgroundColor:h.unref(P)})},[h.withDirectives(h.createVNode(h.unref(Ha),{class:h.normalizeClass([h.unref(o).be("picker","icon"),h.unref(o).is("icon-arrow-down")])},{default:h.withCtx(()=>[h.createVNode(h.unref(rOe))]),_:1},8,["class"]),[[h.vShow,X.modelValue||$.value]]),h.withDirectives(h.createVNode(h.unref(Ha),{class:h.normalizeClass([h.unref(o).be("picker","empty"),h.unref(o).is("icon-close")])},{default:h.withCtx(()=>[h.createVNode(h.unref(CV))]),_:1},8,["class"]),[[h.vShow,!X.modelValue&&!$.value]])],6)],2)],2)],16,yTe)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var OTe=fn(_Te,[["__file","color-picker.vue"]]);const dp=Sl(OTe),wTe=zn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Zt([String,Array,Object])},zIndex:{type:Zt([String,Number])}}),STe={click:t=>t instanceof MouseEvent},xTe="overlay";var CTe=h.defineComponent({name:"ElOverlay",props:wTe,emits:STe,setup(t,{slots:e,emit:n}){const r=an(xTe),i=l=>{n("click",l)},{onClick:o,onMousedown:a,onMouseup:s}=YV(t.customMaskEvent?void 0:i);return()=>t.mask?h.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:o,onMousedown:a,onMouseup:s},[h.renderSlot(e,"default")],h1.STYLE|h1.CLASS|h1.PROPS,["onClick","onMouseup","onMousedown"]):h.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[h.renderSlot(e,"default")])}});const TTe=CTe,aF=Symbol("dialogInjectionKey"),sF=zn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Kh},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),PTe={close:()=>!0},$Te=["aria-level"],ATe=["aria-label"],ETe=["id"],MTe=h.defineComponent({name:"ElDialogContent"}),ITe=h.defineComponent({...MTe,props:sF,emits:PTe,setup(t){const e=t,{t:n}=n$(),{Close:r}=vOe,{dialogRef:i,headerRef:o,bodyId:a,ns:s,style:l}=h.inject(aF),{focusTrapRef:u}=h.inject(Pz),c=h.computed(()=>[s.b(),s.is("fullscreen",e.fullscreen),s.is("draggable",e.draggable),s.is("align-center",e.alignCenter),{[s.m("center")]:e.center}]),f=yOe(u,i),d=h.computed(()=>e.draggable),p=h.computed(()=>e.overflow);return COe(i,o,d,p),(g,v)=>(h.openBlock(),h.createElementBlock("div",{ref:h.unref(f),class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(l)),tabindex:"-1"},[h.createElementVNode("header",{ref_key:"headerRef",ref:o,class:h.normalizeClass([h.unref(s).e("header"),{"show-close":g.showClose}])},[h.renderSlot(g.$slots,"header",{},()=>[h.createElementVNode("span",{role:"heading","aria-level":g.ariaLevel,class:h.normalizeClass(h.unref(s).e("title"))},h.toDisplayString(g.title),11,$Te)]),g.showClose?(h.openBlock(),h.createElementBlock("button",{key:0,"aria-label":h.unref(n)("el.dialog.close"),class:h.normalizeClass(h.unref(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=m=>g.$emit("close"))},[h.createVNode(h.unref(Ha),{class:h.normalizeClass(h.unref(s).e("close"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.closeIcon||h.unref(r))))]),_:1},8,["class"])],10,ATe)):h.createCommentVNode("v-if",!0)],2),h.createElementVNode("div",{id:h.unref(a),class:h.normalizeClass(h.unref(s).e("body"))},[h.renderSlot(g.$slots,"default")],10,ETe),g.$slots.footer?(h.openBlock(),h.createElementBlock("footer",{key:0,class:h.normalizeClass(h.unref(s).e("footer"))},[h.renderSlot(g.$slots,"footer")],2)):h.createCommentVNode("v-if",!0)],6))}});var DTe=fn(ITe,[["__file","dialog-content.vue"]]);const RTe=zn({...sF,appendToBody:Boolean,appendTo:{type:Zt(String),default:"body"},beforeClose:{type:Zt(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),kTe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[mi]:t=>Pu(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},NTe=(t,e)=>{var n;const i=h.getCurrentInstance().emit,{nextZIndex:o}=az();let a="";const s=Om(),l=Om(),u=h.ref(!1),c=h.ref(!1),f=h.ref(!1),d=h.ref((n=t.zIndex)!=null?n:o());let p,g;const v=uz("namespace",p1),m=h.computed(()=>{const D={},B=`--${v.value}-dialog`;return t.fullscreen||(t.top&&(D[`${B}-margin-top`]=t.top),t.width&&(D[`${B}-width`]=qh(t.width))),D}),y=h.computed(()=>t.alignCenter?{display:"flex"}:{});function b(){i("opened")}function O(){i("closed"),i(mi,!1),t.destroyOnClose&&(f.value=!1)}function w(){i("close")}function S(){g==null||g(),p==null||p(),t.openDelay&&t.openDelay>0?{stop:p}=YB(()=>A(),t.openDelay):A()}function x(){p==null||p(),g==null||g(),t.closeDelay&&t.closeDelay>0?{stop:g}=YB(()=>P(),t.closeDelay):P()}function T(){function D(B){B||(c.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(D):x()}function $(){t.closeOnClickModal&&T()}function A(){sr&&(u.value=!0)}function P(){u.value=!1}function M(){i("openAutoFocus")}function I(){i("closeAutoFocus")}function R(D){var B;((B=D.detail)==null?void 0:B.focusReason)==="pointer"&&D.preventDefault()}t.lockScroll&&DOe(u);function L(){t.closeOnPressEscape&&T()}return h.watch(()=>t.modelValue,D=>{D?(c.value=!1,S(),f.value=!0,d.value=mV(t.zIndex)?o():d.value++,h.nextTick(()=>{i("open"),e.value&&(e.value.scrollTop=0)})):u.value&&x()}),h.watch(()=>t.fullscreen,D=>{e.value&&(D?(a=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=a)}),h.onMounted(()=>{t.modelValue&&(u.value=!0,f.value=!0,S())}),{afterEnter:b,afterLeave:O,beforeLeave:w,handleClose:T,onModalClick:$,close:x,doClose:P,onOpenAutoFocus:M,onCloseAutoFocus:I,onCloseRequested:L,onFocusoutPrevented:R,titleId:s,bodyId:l,closed:c,style:m,overlayDialogStyle:y,rendered:f,visible:u,zIndex:d}},LTe=["aria-label","aria-labelledby","aria-describedby"],BTe=h.defineComponent({name:"ElDialog",inheritAttrs:!1}),VTe=h.defineComponent({...BTe,props:RTe,emits:kTe,setup(t,{expose:e}){const n=t,r=h.useSlots();Wa({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},h.computed(()=>!!r.title));const i=an("dialog"),o=h.ref(),a=h.ref(),s=h.ref(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:p,zIndex:g,afterEnter:v,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:O,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:x,onFocusoutPrevented:T}=NTe(n,o);h.provide(aF,{dialogRef:o,headerRef:a,bodyId:c,ns:i,rendered:p,style:f});const $=YV(O),A=h.computed(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(P,M)=>(h.openBlock(),h.createBlock(h.Teleport,{to:P.appendTo,disabled:P.appendTo!=="body"?!1:!P.appendToBody},[h.createVNode(h.Transition,{name:"dialog-fade",onAfterEnter:h.unref(v),onAfterLeave:h.unref(m),onBeforeLeave:h.unref(y),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(h.unref(TTe),{"custom-mask-event":"",mask:P.modal,"overlay-class":P.modalClass,"z-index":h.unref(g)},{default:h.withCtx(()=>[h.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:h.unref(u),"aria-describedby":h.unref(c),class:h.normalizeClass(`${h.unref(i).namespace.value}-overlay-dialog`),style:h.normalizeStyle(h.unref(d)),onClick:M[0]||(M[0]=(...I)=>h.unref($).onClick&&h.unref($).onClick(...I)),onMousedown:M[1]||(M[1]=(...I)=>h.unref($).onMousedown&&h.unref($).onMousedown(...I)),onMouseup:M[2]||(M[2]=(...I)=>h.unref($).onMouseup&&h.unref($).onMouseup(...I))},[h.createVNode(h.unref(Dz),{loop:"",trapped:h.unref(l),"focus-start-el":"container",onFocusAfterTrapped:h.unref(w),onFocusAfterReleased:h.unref(S),onFocusoutPrevented:h.unref(T),onReleaseRequested:h.unref(x)},{default:h.withCtx(()=>[h.unref(p)?(h.openBlock(),h.createBlock(DTe,h.mergeProps({key:0,ref_key:"dialogContentRef",ref:s},P.$attrs,{center:P.center,"align-center":P.alignCenter,"close-icon":P.closeIcon,draggable:h.unref(A),overflow:P.overflow,fullscreen:P.fullscreen,"show-close":P.showClose,title:P.title,"aria-level":P.headerAriaLevel,onClose:h.unref(b)}),h.createSlots({header:h.withCtx(()=>[P.$slots.title?h.renderSlot(P.$slots,"title",{key:1}):h.renderSlot(P.$slots,"header",{key:0,close:h.unref(b),titleId:h.unref(u),titleClass:h.unref(i).e("title")})]),default:h.withCtx(()=>[h.renderSlot(P.$slots,"default")]),_:2},[P.$slots.footer?{name:"footer",fn:h.withCtx(()=>[h.renderSlot(P.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):h.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,LTe)]),_:3},8,["mask","overlay-class","z-index"]),[[h.vShow,h.unref(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var zTe=fn(VTe,[["__file","dialog.vue"]]);const FTe=Sl(zTe),WTe=Symbol("ElSelect"),hp="$treeNodeId",lF=function(t,e){!e||e[hp]||Object.defineProperty(e,hp,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},z$=function(t,e){return t?e[t]:e[hp]},F$=(t,e,n)=>{const r=t.value.currentNode;n();const i=t.value.currentNode;r!==i&&e("current-change",i?i.data:null,i)},W$=t=>{let e=!0,n=!0,r=!0;for(let i=0,o=t.length;i"u"){const o=r[e];return o===void 0?"":o}};let QTe=0;class _f{constructor(e){this.id=QTe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)of(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const o=M1(this,"isLeaf");typeof o=="boolean"&&(this.isLeafByUser=o)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||lF(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,i=e.key;i&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),i&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||lF(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=M1(this,"children")||[];for(let r=0,i=n.length;r-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof _f)){if(!r){const i=this.getChildren(!0);i.includes(e.data)||(typeof n>"u"||n<0?i.push(e.data):i.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=h.reactive(new _f(e)),e instanceof _f&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r{if(n){let i=this.parent;for(;i.level>0;)i.expanded=!0,i=i.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(i=>{i.canFocus=!0})};this.shouldLoadData()?this.loadData(i=>{Array.isArray(i)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Im(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,i){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=W$(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,e=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,p=u.length;d{l(),Im(this)},{checked:e!==!1});return}else l()}const o=this.parent;!o||o.level===0||r||Im(o)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let i="children";return r&&(i=r.children||"children"),n[i]===void 0&&(n[i]=null),e&&!n[i]&&(n[i]=[]),n[i]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(o=>o.data),r={},i=[];e.forEach((o,a)=>{const s=o[hp];!!s&&n.findIndex(u=>u[hp]===s)>=0?r[s]={index:a,data:o}:i.push({index:a,data:o})}),this.store.lazy||n.forEach(o=>{r[o[hp]]||this.removeChildByData(o)}),i.forEach(({index:o,data:a})=>{this.insertChild({data:a},o)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)},i=()=>{this.loading=!1};this.store.load(this,r,i)}else e&&e.call(this)}eachNode(e){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),e(r)}}reInitChecked(){this.store.checkStrictly||Im(this)}}class HTe{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)of(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new _f({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,i=function(o){const a=o.root?o.root.childNodes:o.childNodes;if(a.forEach(s=>{s.visible=n.call(s,e,s.data,s),i(s)}),!o.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}e&&o.visible&&!o.isLeaf&&(!r||o.loaded)&&o.expand()};i(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof _f)return e;const n=sf(e)?z$(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=Yh(n)?this.root:this.getNode(n);r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const i=n[r];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],i=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),i(s)})};return i(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(o=>{o.indeterminate&&e.push(o.data),n(o)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)of(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const i=r.childNodes;for(let o=i.length-1;o>=0;o--){const a=i[o];this.remove(a.data)}for(let o=0,a=n.length;ol.level-u.level),o=Object.create(null),a=Object.keys(r);i.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&s(u)})};for(let l=0,u=i.length;l{m.isLeaf||m.setChecked(!1,!1),p(m)})};p(c)}}}setCheckedNodes(e,n=!1){const r=this.key,i={};e.forEach(o=>{i[(o||{})[r]]=!0}),this._setCheckedKeys(r,n,i)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,i={};e.forEach(o=>{i[o]=!0}),this._setCheckedKeys(r,n,i)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const i=this.getNode(e);i&&i.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],i=this.nodesMap[r];this.setCurrentNode(i),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const GTe=h.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=an("tree"),n=h.inject("NodeInstance"),r=h.inject("RootTree");return()=>{const i=t.node,{data:o,store:a}=i;return t.renderContent?t.renderContent(h.h,{_self:n,node:i,data:o,store:a}):h.renderSlot(r.ctx.slots,"default",{node:i,data:o},()=>[h.h("span",{class:e.be("node","label")},[i.label])])}}});var jTe=fn(GTe,[["__file","tree-node-content.vue"]]);function uF(t){const e=h.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),h.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const i of n.children)i.treeNodeExpand(r)}}}const cF=Symbol("dragEvents");function UTe({props:t,ctx:e,el$:n,dropIndicator$:r,store:i}){const o=an("tree"),a=h.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),s=({event:c,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,e.emit("node-drag-start",f.node,c)},l=({event:c,treeNode:f})=>{const d=f,p=a.value.dropNode;p&&p.node.id!==d.node.id&&c1(p.$el,o.is("drop-inner"));const g=a.value.draggingNode;if(!g||!d)return;let v=!0,m=!0,y=!0,b=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(g.node,d.node,"prev"),b=m=t.allowDrop(g.node,d.node,"inner"),y=t.allowDrop(g.node,d.node,"next")),c.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(p==null?void 0:p.node.id)!==d.node.id&&(p&&e.emit("node-drag-leave",g.node,p.node,c),e.emit("node-drag-enter",g.node,d.node,c)),v||m||y?a.value.dropNode=d:a.value.dropNode=null,d.node.nextSibling===g.node&&(y=!1),d.node.previousSibling===g.node&&(v=!1),d.node.contains(g.node,!1)&&(m=!1),(g.node===d.node||g.node.contains(d.node))&&(v=!1,m=!1,y=!1);const O=d.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let S;const x=v?m?.25:y?.45:1:-1,T=y?m?.75:v?.55:0:1;let $=-9999;const A=c.clientY-O.top;AO.height*T?S="after":m?S="inner":S="none";const P=d.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),M=r.value;S==="before"?$=P.top-w.top:S==="after"&&($=P.bottom-w.top),M.style.top=`${$}px`,M.style.left=`${P.right-w.left}px`,S==="inner"?SV(d.$el,o.is("drop-inner")):c1(d.$el,o.is("drop-inner")),a.value.showDropIndicator=S==="before"||S==="after",a.value.allowDrop=a.value.showDropIndicator||b,a.value.dropType=S,e.emit("node-drag-over",g.node,d.node,c)},u=c=>{const{draggingNode:f,dropType:d,dropNode:p}=a.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&p){const g={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?p.node.parent.insertBefore(g,p.node):d==="after"?p.node.parent.insertAfter(g,p.node):d==="inner"&&p.node.insertChild(g),d!=="none"&&(i.value.registerNode(g),i.value.key&&f.node.eachNode(v=>{var m;(m=i.value.nodesMap[v.data[i.value.key]])==null||m.setChecked(v.checked,!i.value.checkStrictly)})),c1(p.$el,o.is("drop-inner")),e.emit("node-drag-end",f.node,p.node,d,c),d!=="none"&&e.emit("node-drop",f.node,p.node,d,c)}f&&!p&&e.emit("node-drag-end",f.node,null,d,c),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return h.provide(cF,{treeNodeDragStart:s,treeNodeDragOver:l,treeNodeDragEnd:u}),{dragState:a}}const ZTe=h.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:ZCe,ElCheckbox:MCe,NodeContent:jTe,ElIcon:Ha,Loading:t$},props:{node:{type:_f,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=an("tree"),{broadcastExpanded:r}=uF(t),i=h.inject("RootTree"),o=h.ref(!1),a=h.ref(!1),s=h.ref(null),l=h.ref(null),u=h.ref(null),c=h.inject(cF),f=h.getCurrentInstance();h.provide("NodeInstance",f),i||ti("Tree","Can not find node's tree."),t.node.expanded&&(o.value=!0,a.value=!0);const d=i.props.props.children||"children";h.watch(()=>{const A=t.node.data[d];return A&&[...A]},()=>{t.node.updateChildren()}),h.watch(()=>t.node.indeterminate,A=>{v(t.node.checked,A)}),h.watch(()=>t.node.checked,A=>{v(A,t.node.indeterminate)}),h.watch(()=>t.node.childNodes.length,()=>t.node.reInitChecked()),h.watch(()=>t.node.expanded,A=>{h.nextTick(()=>o.value=A),A&&(a.value=!0)});const p=A=>z$(i.props.nodeKey,A.data),g=A=>{const P=t.props.class;if(!P)return{};let M;if(af(P)){const{data:I}=A;M=P(I,A)}else M=P;return vi(M)?{[M]:!0}:M},v=(A,P)=>{(s.value!==A||l.value!==P)&&i.ctx.emit("check-change",t.node.data,A,P),s.value=A,l.value=P},m=A=>{F$(i.store,i.ctx.emit,()=>i.store.value.setCurrentNode(t.node)),i.currentNode.value=t.node,i.props.expandOnClickNode&&b(),i.props.checkOnClickNode&&!t.node.disabled&&O(null,{target:{checked:!t.node.checked}}),i.ctx.emit("node-click",t.node.data,t.node,f,A)},y=A=>{i.instance.vnode.props.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),i.ctx.emit("node-contextmenu",A,t.node.data,t.node,f)},b=()=>{t.node.isLeaf||(o.value?(i.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},O=(A,P)=>{t.node.setChecked(P.target.checked,!i.props.checkStrictly),h.nextTick(()=>{const M=i.store.value;i.ctx.emit("check",t.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:i,expanded:o,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:p,getNodeClass:g,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:O,handleChildNodeExpand:(A,P,M)=>{r(P),i.ctx.emit("node-expand",A,P,M)},handleDragStart:A=>{i.props.draggable&&c.treeNodeDragStart({event:A,treeNode:t})},handleDragOver:A=>{A.preventDefault(),i.props.draggable&&c.treeNodeDragOver({event:A,treeNode:{$el:u.value,node:t.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{i.props.draggable&&c.treeNodeDragEnd(A)},CaretRight:oOe}}}),XTe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],YTe=["aria-expanded"];function qTe(t,e,n,r,i,o){const a=h.resolveComponent("el-icon"),s=h.resolveComponent("el-checkbox"),l=h.resolveComponent("loading"),u=h.resolveComponent("node-content"),c=h.resolveComponent("el-tree-node"),f=h.resolveComponent("el-collapse-transition");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref:"node$",class:h.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=h.withModifiers((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=h.withModifiers((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=h.withModifiers((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=h.withModifiers((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=h.withModifiers((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.be("node","content")),style:h.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(h.openBlock(),h.createBlock(a,{key:0,class:h.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:h.withModifiers(t.handleExpandIconClick,["stop"])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0),t.showCheckbox?(h.openBlock(),h.createBlock(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=h.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):h.createCommentVNode("v-if",!0),t.node.loading?(h.openBlock(),h.createBlock(a,{key:2,class:h.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:h.withCtx(()=>[h.createVNode(l)]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),h.createVNode(f,null,{default:h.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?h.withDirectives((h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.node.childNodes,d=>(h.openBlock(),h.createBlock(c,{key:t.getNodeKey(d),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:d,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,YTe)),[[h.vShow,t.expanded]]):h.createCommentVNode("v-if",!0)]),_:1})],42,XTe)),[[h.vShow,t.node.visible]])}var KTe=fn(ZTe,[["render",qTe],["__file","tree-node.vue"]]);function JTe({el$:t},e){const n=an("tree"),r=h.shallowRef([]),i=h.shallowRef([]);h.onMounted(()=>{a()}),h.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),h.watch(i,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),nm(t,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Fi.up,Fi.down].includes(u)){if(s.preventDefault(),u===Fi.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const p=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Fi.left,Fi.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Fi.enter,Fi.space].includes(u)&&d&&(s.preventDefault(),d.click())});const a=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const l=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const ePe=h.defineComponent({name:"ElTree",components:{ElTreeNode:KTe},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Kh}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=n$(),r=an("tree"),i=h.inject(WTe,null),o=h.ref(new HTe({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const a=h.ref(o.value.root),s=h.ref(null),l=h.ref(null),u=h.ref(null),{broadcastExpanded:c}=uF(t),{dragState:f}=UTe({props:t,ctx:e,el$:l,dropIndicator$:u,store:o});JTe({el$:l},o);const d=h.computed(()=>{const{childNodes:z}=a.value,W=i?i.hasFilteredOptions!==0:!1;return(!z||z.length===0||z.every(({visible:j})=>!j))&&!W});h.watch(()=>t.currentNodeKey,z=>{o.value.setCurrentNodeKey(z)}),h.watch(()=>t.defaultCheckedKeys,z=>{o.value.setDefaultCheckedKey(z)}),h.watch(()=>t.defaultExpandedKeys,z=>{o.value.setDefaultExpandedKeys(z)}),h.watch(()=>t.data,z=>{o.value.setData(z)},{deep:!0}),h.watch(()=>t.checkStrictly,z=>{o.value.checkStrictly=z});const p=z=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(z)},g=z=>z$(t.nodeKey,z.data),v=z=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const W=o.value.getNode(z);if(!W)return[];const j=[W.data];let H=W.parent;for(;H&&H!==a.value;)j.push(H.data),H=H.parent;return j.reverse()},m=(z,W)=>o.value.getCheckedNodes(z,W),y=z=>o.value.getCheckedKeys(z),b=()=>{const z=o.value.getCurrentNode();return z?z.data:null},O=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const z=b();return z?z[t.nodeKey]:null},w=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(z,W)},S=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(z,W)},x=(z,W,j)=>{o.value.setChecked(z,W,j)},T=()=>o.value.getHalfCheckedNodes(),$=()=>o.value.getHalfCheckedKeys(),A=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");F$(o,e.emit,()=>o.value.setUserCurrentNode(z,W))},P=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");F$(o,e.emit,()=>o.value.setCurrentNodeKey(z,W))},M=z=>o.value.getNode(z),I=z=>{o.value.remove(z)},R=(z,W)=>{o.value.append(z,W)},L=(z,W)=>{o.value.insertBefore(z,W)},D=(z,W)=>{o.value.insertAfter(z,W)},B=(z,W,j)=>{c(W),e.emit("node-expand",z,W,j)},F=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(z,W)};return h.provide("RootTree",{ctx:e,props:t,store:o,root:a,currentNode:s,instance:h.getCurrentInstance()}),h.provide(wm,void 0),{ns:r,store:o,root:a,currentNode:s,dragState:f,el$:l,dropIndicator$:u,isEmpty:d,filter:p,getNodeKey:g,getNodePath:v,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:O,setCheckedNodes:w,setCheckedKeys:S,setChecked:x,getHalfCheckedNodes:T,getHalfCheckedKeys:$,setCurrentNode:A,setCurrentKey:P,t:n,getNode:M,remove:I,append:R,insertBefore:L,insertAfter:D,handleNodeExpand:B,updateKeyChildren:F}}});function tPe(t,e,n,r,i,o){const a=h.resolveComponent("el-tree-node");return h.openBlock(),h.createElementBlock("div",{ref:"el$",class:h.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.root.childNodes,s=>(h.openBlock(),h.createBlock(a,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.e("empty-block"))},[h.renderSlot(t.$slots,"empty",{},()=>{var s;return[h.createElementVNode("span",{class:h.normalizeClass(t.ns.e("empty-text"))},h.toDisplayString((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):h.createCommentVNode("v-if",!0),h.withDirectives(h.createElementVNode("div",{ref:"dropIndicator$",class:h.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[h.vShow,t.dragState.showDropIndicator]])],2)}var I1=fn(ePe,[["render",tPe],["__file","tree.vue"]]);I1.install=t=>{t.component(I1.name,I1)};const fF=I1;function Dm(t){"@babel/helpers - typeof";return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dm(t)}function nPe(t,e){if(Dm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rPe(t){var e=nPe(t,"string");return Dm(e)=="symbol"?e:e+""}function iPe(t,e,n){return(e=rPe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;etypeof t=="function",aPe=Array.isArray,sPe=t=>typeof t=="string",lPe=t=>t!==null&&typeof t=="object",uPe=/^on[^a-z]/,cPe=t=>uPe.test(t),hF=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},fPe=/-(\w)/g,Q$=hF(t=>t.replace(fPe,(e,n)=>n?n.toUpperCase():"")),dPe=/\B([A-Z])/g,hPe=hF(t=>t.replace(dPe,"-$1").toLowerCase()),pPe=Object.prototype.hasOwnProperty,pF=(t,e)=>pPe.call(t,e);function gPe(t,e,n,r){const i=t[n];if(i!=null){const o=pF(i,"default");if(o&&r===void 0){const a=i.default;r=i.type!==Function&&oPe(a)?a():a}i.type===Boolean&&(!pF(e,n)&&!o?r=!1:r===""&&(r=!0))}return r}function vPe(t){return Object.keys(t).reduce((e,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(e[n]=t[n]),e),{})}function Rm(t){return typeof t=="number"?`${t}px`:t}function pp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t??n}function mPe(t){let e;const n=new Promise(i=>{e=t(()=>{i(!0)})}),r=()=>{e==null||e()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}function Pe(){const t=[];for(let e=0;e0},t.prototype.connect_=function(){!H$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SPe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!H$||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=wPe.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),vF=function(t,e){for(var n=0,r=Object.keys(e);n"u"||!(Element instanceof Object))){if(!(e instanceof gp(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new IPe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof gp(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new DPe(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),bF=typeof WeakMap<"u"?new WeakMap:new gF,_F=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xPe.getInstance(),r=new RPe(e,n,this);bF.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){_F.prototype[t]=function(){var e;return(e=bF.get(this))[t].apply(e,arguments)}});var OF=function(){return typeof D1.ResizeObserver<"u"?D1.ResizeObserver:_F}();const G$=t=>t!=null&&t!=="",Ar=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{const i=n[r];if(i)i.type||i.default?i.default=e[r]:i.def?i.def(e[r]):n[r]={type:i,default:e[r]};else throw new Error(`not have ${r} prop`)}),n},kPe=t=>{const e=Object.keys(t),n={},r={},i={};for(let o=0,a=e.length;o0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return typeof t=="object"?t:(t.split(r).forEach(function(o){if(o){const a=o.split(i);if(a.length>1){const s=e?Q$(a[0].trim()):a[0].trim();n[s]=a[1].trim()}}}),n)},N1=(t,e)=>t[e]!==void 0,wF=Symbol("skipFlatten"),vr=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(t)?t:[t],r=[];return n.forEach(i=>{Array.isArray(i)?r.push(...vr(i,e)):i&&i.type===h.Fragment?i.key===wF?r.push(i):r.push(...vr(i.children,e)):i&&h.isVNode(i)?e&&!j$(i)?r.push(i):e||r.push(i):G$(i)&&r.push(i)}),r},SF=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(h.isVNode(t))return t.type===h.Fragment?e==="default"?vr(t.children):[]:t.children&&t.children[e]?vr(t.children[e](n)):[];{const r=t.$slots[e]&&t.$slots[e](n);return vr(r)}},Pl=t=>{var e;let n=((e=t==null?void 0:t.vnode)===null||e===void 0?void 0:e.el)||t&&(t.$el||t);for(;n&&!n.tagName;)n=n.nextSibling;return n},LPe=t=>{const e={};if(t.$&&t.$.vnode){const n=t.$.vnode.props||{};Object.keys(t.$props).forEach(r=>{const i=t.$props[r],o=hPe(r);(i!==void 0||o in n)&&(e[r]=i)})}else if(h.isVNode(t)&&typeof t.type=="object"){const n=t.props||{},r={};Object.keys(n).forEach(o=>{r[Q$(o)]=n[o]});const i=t.type.props||{};Object.keys(i).forEach(o=>{const a=gPe(i,r,o,r[o]);(a!==void 0||o in r)&&(e[o]=a)})}return e},BPe=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i;if(t.$){const o=t[e];if(o!==void 0)return typeof o=="function"&&r?o(n):o;i=t.$slots[e],i=r&&i?i(n):i}else if(h.isVNode(t)){const o=t.props&&t.props[e];if(o!==void 0&&t.props!==null)return typeof o=="function"&&r?o(n):o;t.type===h.Fragment?i=t.children:t.children&&t.children[e]&&(i=t.children[e],i=r&&i?i(n):i)}return Array.isArray(i)&&(i=vr(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function xF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=k(k({},n),t.$attrs):n=k(k({},n),t.props),kPe(n)[e?"onEvents":"events"]}function VPe(t,e){let r=((h.isVNode(t)?t.props:t.$attrs)||{}).style||{};return typeof r=="string"&&(r=NPe(r,e)),r}function zPe(t){return t.length===1&&t[0].type===h.Fragment}function j$(t){return t&&(t.type===h.Comment||t.type===h.Fragment&&t.children.length===0||t.type===h.Text&&t.children.trim()==="")}function xs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...n):(n==null?void 0:n.type)===h.Fragment?e.push(...xs(n.children)):e.push(n)}),e.filter(n=>!j$(n))}function po(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function L1(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,i;return(r=e[n])!==null&&r!==void 0?r:(i=t[n])===null||i===void 0?void 0:i.call(t)}const vp=h.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const r=h.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,o=null;const a=()=>{o&&(o.disconnect(),o=null)},s=c=>{const{onResize:f}=t,d=c[0].target,{width:p,height:g}=d.getBoundingClientRect(),{offsetWidth:v,offsetHeight:m}=d,y=Math.floor(p),b=Math.floor(g);if(r.width!==y||r.height!==b||r.offsetWidth!==v||r.offsetHeight!==m){const O={width:y,height:b,offsetWidth:v,offsetHeight:m};k(r,O),f&&Promise.resolve().then(()=>{f(k(k({},O),{offsetWidth:v,offsetHeight:m}),d)})}},l=h.getCurrentInstance(),u=()=>{const{disabled:c}=t;if(c){a();return}const f=Pl(l);f!==i&&(a(),i=f),!o&&f&&(o=new OF(s),o.observe(f))};return h.onMounted(()=>{u()}),h.onUpdated(()=>{u()}),h.onUnmounted(()=>{a()}),h.watch(()=>t.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let CF=t=>setTimeout(t,16),TF=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(CF=t=>window.requestAnimationFrame(t),TF=t=>window.cancelAnimationFrame(t));let PF=0;const U$=new Map;function $F(t){U$.delete(t)}function Dt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;PF+=1;const n=PF;function r(i){if(i===0)$F(n),t();else{const o=CF(()=>{r(i-1)});U$.set(n,o)}}return r(e),n}Dt.cancel=t=>{const e=U$.get(t);return $F(e),TF(e)};const Du=function(){for(var t=arguments.length,e=new Array(t),n=0;n{const e=t;return e.install=function(n){n.component(e.displayName||e.name,t)},t};function B1(){return{type:[Function,Array]}}function Vt(t){return{type:Object,default:t}}function lt(t){return{type:Boolean,default:t}}function ut(t){return{type:Function,default:t}}function Go(t,e){return{validator:()=>!0,default:t}}function Of(t){return{type:Array,default:t}}function $n(t){return{type:String,default:t}}function kn(t,e){return t?{type:t,default:e}:Go(e)}let Vr=!1;try{const t=Object.defineProperty({},"passive",{get(){Vr=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}function zr(t,e,n,r){if(t&&t.addEventListener){let i=r;i===void 0&&Vr&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(i={passive:!1}),t.addEventListener(e,n,i)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,n)}}}const Z$="anticon",AF=Symbol("GlobalFormContextKey"),FPe=t=>{h.provide(AF,t)},WPe=()=>h.inject(AF,{validateMessages:h.computed(()=>{})}),QPe=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Vt(),input:Vt(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Vt(),pageHeader:Vt(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Vt(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Vt(),pagination:Vt(),theme:Vt(),select:Vt(),wave:Vt()}),X$=Symbol("configProvider"),EF={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:h.computed(()=>Z$),getPopupContainer:h.computed(()=>()=>document.body),direction:h.computed(()=>"ltr")},V1=()=>h.inject(X$,EF),HPe=t=>h.provide(X$,t),MF=Symbol("DisabledContextKey"),Cs=()=>h.inject(MF,h.ref(void 0)),IF=t=>{const e=Cs();return h.provide(MF,h.computed(()=>{var n;return(n=t.value)!==null&&n!==void 0?n:e.value})),t},GPe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},jPe={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},DF={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},RF={lang:k({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},jPe),timePickerLocale:k({},DF)},go="${label} is not a valid ${type}",$l={locale:"en",Pagination:GPe,DatePicker:RF,TimePicker:DF,Calendar:RF,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:go,method:go,array:go,object:go,number:go,date:go,boolean:go,integer:go,float:go,regexp:go,email:go,url:go,hex:go},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},kF=h.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:n}=e;const r=h.inject("localeData",{}),i=h.computed(()=>{const{componentName:a="global",defaultLocale:s}=t,l=s||$l[a||"global"],{antLocale:u}=r,c=a&&u?u[a]:{};return k(k({},typeof l=="function"?l():l),c||{})}),o=h.computed(()=>{const{antLocale:a}=r,s=a&&a.locale;return a&&a.exist&&!s?$l.locale:s});return()=>{const a=t.children||n.default,{antLocale:s}=r;return a==null?void 0:a(i.value,o.value,s)}}});function z1(t,e,n){const r=h.inject("localeData",{});return[h.computed(()=>{const{antLocale:o}=r,a=h.unref(e)||$l[t||"global"],s=t&&o?o[t]:{};return k(k(k({},typeof a=="function"?a():a),s||{}),h.unref(n)||{})})]}function Y$(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const NF="%";class UPe{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(NF):e)||null}update(e,n){const r=Array.isArray(e)?e.join(NF):e,i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}const LF="data-token-hash",wf="data-css-hash",ZPe="data-cache-path",yp="__cssinjs_instance__";function km(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${wf}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach(i=>{i[yp]=i[yp]||t,i[yp]===t&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${wf}]`)).forEach(i=>{var o;const a=i.getAttribute(wf);r[a]?i[yp]===t&&((o=i.parentNode)===null||o===void 0||o.removeChild(i)):r[a]=!0})}return new UPe(t)}const BF=Symbol("StyleContextKey"),XPe=()=>{var t,e,n;const r=h.getCurrentInstance();let i;if(r&&r.appContext){const o=(n=(e=(t=r.appContext)===null||t===void 0?void 0:t.config)===null||e===void 0?void 0:e.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;o?i=o:(i=km(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=km();return i},VF={cache:km(),defaultCache:!0,hashPriority:"low"},F1=()=>{const t=XPe();return h.inject(BF,h.shallowRef(k(k({},VF),{cache:t})))},YPe=t=>{const e=F1(),n=h.shallowRef(k(k({},VF),{cache:km()}));return h.watch([()=>h.unref(t),e],()=>{const r=k({},e.value),i=h.unref(t);Object.keys(i).forEach(a=>{const s=i[a];i[a]!==void 0&&(r[a]=s)});const{cache:o}=i;r.cache=r.cache||km(),r.defaultCache=!o&&e.value.defaultCache,n.value=r},{immediate:!0}),h.provide(BF,n),n},qPe=()=>({autoClear:lt(),mock:$n(),cache:Vt(),defaultCache:lt(),hashPriority:$n(),container:kn(),ssrInline:lt(),transformers:Of(),linters:Of()});mp(h.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:qPe(),setup(t,e){let{slots:n}=e;return YPe(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function KPe(){return!1}let q$=!1;function JPe(){return q$}const e2e=process.env.NODE_ENV==="production"?KPe:JPe;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=function(){return q$=!0,setTimeout(()=>{q$=!1},0),e(...arguments)}}}function zF(t,e,n,r){const i=F1(),o=h.shallowRef(""),a=h.shallowRef();h.watchEffect(()=>{o.value=[t,...e.value].join("%")});const s=e2e(),l=u=>{i.value.cache.update(u,c=>{const[f=0,d]=c||[];return f-1===0?(r==null||r(d,!1),null):[f-1,d]})};return h.watch(o,(u,c)=>{c&&l(c),i.value.cache.update(u,f=>{const[d=0,p]=f||[];let g=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(g,s),g=null);const v=g||n();return[d+1,v]}),a.value=i.value.cache.get(o.value)[1]},{immediate:!0}),h.onBeforeUnmount(()=>{l(o.value)}),a}function jo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(t,e){return t&&t.contains?t.contains(e):!1}const FF="data-vc-order",t2e="vc-util-key",K$=new Map;function WF(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:t2e}function W1(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function n2e(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function QF(t){return Array.from((K$.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function HF(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jo())return null;const{csp:n,prepend:r}=e,i=document.createElement("style");i.setAttribute(FF,n2e(r)),n!=null&&n.nonce&&(i.nonce=n==null?void 0:n.nonce),i.innerHTML=t;const o=W1(e),{firstChild:a}=o;if(r){if(r==="queue"){const s=QF(o).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(FF)));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function GF(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=W1(e);return QF(n).find(r=>r.getAttribute(WF(e))===t)}function Q1(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=GF(t,e);n&&W1(e).removeChild(n)}function r2e(t,e){const n=K$.get(t);if(!n||!Ru(document,n)){const r=HF("",e),{parentNode:i}=r;K$.set(t,i),t.removeChild(r)}}function Nm(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,i,o;const a=W1(n);r2e(a,n);const s=GF(e,n);if(s)return!((r=n.csp)===null||r===void 0)&&r.nonce&&s.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)&&(s.nonce=(o=n.csp)===null||o===void 0?void 0:o.nonce),s.innerHTML!==t&&(s.innerHTML=t),s;const l=HF(t,n);return l.setAttribute(WF(n),e),l}function i2e(t,e){if(t.length!==e.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return e.forEach(i=>{var o;r?r=(o=r==null?void 0:r.map)===null||o===void 0?void 0:o.get(i):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(e){var n;return(n=this.internalGet(e,!0))===null||n===void 0?void 0:n[0]}has(e){return!!this.internalGet(e)}set(e,n){if(!this.has(e)){if(this.size()+1>bp.MAX_CACHE_SIZE+bp.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((o,a)=>{const[,s]=o;return this.internalGet(a)[1]{if(o===e.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const a=r.get(i);a?a.map||(a.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(e,n){var r;const i=e.get(n[0]);if(n.length===1)return i.map?e.set(n[0],{map:i.map}):e.delete(n[0]),(r=i.value)===null||r===void 0?void 0:r[0];const o=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&e.delete(n[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(n=>!i2e(n,e)),this.deleteByPath(this.cache,e)}}bp.MAX_CACHE_SIZE=20,bp.MAX_CACHE_OFFSET=5;let J$={};function Sf(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function o2e(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function a2e(){J$={}}function jF(t,e,n){!e&&!J$[n]&&(t(!1,n),J$[n]=!0)}function Uo(t,e){jF(Sf,t,e)}function UF(t,e){jF(o2e,t,e)}function s2e(){}let yi=s2e;process.env.NODE_ENV!=="production"&&(yi=(t,e,n)=>{Uo(t,`[ant-design-vue: ${e}] ${n}`),process.env.NODE_ENV==="test"&&a2e()});let ZF=0;class XF{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=ZF,e.length===0&&yi(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),ZF+=1}getDerivativeToken(e){return this.derivatives.reduce((n,r)=>r(e,n),void 0)}}const eA=new bp;function YF(t){const e=Array.isArray(t)?t:[t];return eA.has(e)||eA.set(e,new XF(e)),eA.get(e)}const qF=new WeakMap;function H1(t){let e=qF.get(t)||"";return e||(Object.keys(t).forEach(n=>{const r=t[n];e+=n,r instanceof XF?e+=r.id:r&&typeof r=="object"?e+=H1(r):e+=r}),qF.set(t,e)),e}function l2e(t,e){return Y$(`${e}_${H1(t)}`)}const Lm=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),KF="_bAmBoO_";function u2e(t,e,n){var r,i;if(jo()){Nm(t,Lm);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",e==null||e(o),document.body.appendChild(o),process.env.NODE_ENV!=="production"&&(o.innerHTML="Test",o.style.zIndex="9999999");const a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(KF);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),Q1(Lm),a}return!1}let tA;function c2e(){return tA===void 0&&(tA=u2e(`@layer ${Lm} { .${Lm} { content: "${KF}"!important; } }`,t=>{t.className=Lm})),tA}const JF={},f2e=process.env.NODE_ENV==="production",d2e=process.env.NODE_ENV==="prerender",h2e=!f2e&&!d2e?"css-dev-only-do-not-override":"css",xf=new Map;function p2e(t){xf.set(t,(xf.get(t)||0)+1)}function g2e(t,e){typeof document<"u"&&document.querySelectorAll(`style[${LF}="${t}"]`).forEach(r=>{var i;r[yp]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r))})}const v2e=0;function m2e(t,e){xf.set(t,(xf.get(t)||0)-1);const n=Array.from(xf.keys()),r=n.filter(i=>(xf.get(i)||0)<=0);n.length-r.length>v2e&&r.forEach(i=>{g2e(i,e),xf.delete(i)})}const y2e=(t,e,n,r)=>{const i=n.getDerivativeToken(t);let o=k(k({},i),e);return r&&(o=r(o)),o};function b2e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.ref({});const r=F1(),i=h.computed(()=>k({},...e.value)),o=h.computed(()=>H1(i.value)),a=h.computed(()=>H1(n.value.override||JF));return zF("token",h.computed(()=>[n.value.salt||"",t.value.id,o.value,a.value]),()=>{const{salt:l="",override:u=JF,formatToken:c,getComputedToken:f}=n.value,d=f?f(i.value,u,t.value):y2e(i.value,u,t.value,c),p=l2e(d,l);d._tokenKey=p,p2e(p);const g=`${h2e}-${Y$(p)}`;return d._hashId=g,[d,g]},l=>{var u;m2e(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var _2e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eW="comm",tW="rule",nW="decl",O2e="@import",w2e="@keyframes",S2e="@layer",rW=Math.abs,nA=String.fromCharCode;function iW(t){return t.trim()}function G1(t,e,n){return t.replace(e,n)}function x2e(t,e,n){return t.indexOf(e,n)}function Bm(t,e){return t.charCodeAt(e)|0}function Vm(t,e,n){return t.slice(e,n)}function Al(t){return t.length}function C2e(t){return t.length}function j1(t,e){return e.push(t),t}var U1=1,_p=1,oW=0,Zo=0,lr=0,Op="";function rA(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:U1,column:_p,length:a,return:"",siblings:s}}function T2e(){return lr}function P2e(){return lr=Zo>0?Bm(Op,--Zo):0,_p--,lr===10&&(_p=1,U1--),lr}function Ua(){return lr=Zo2||iA(lr)>3?"":" "}function M2e(t,e){for(;--e&&Ua()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return X1(t,Z1()+(e<6&&Cf()==32&&Ua()==32))}function aA(t){for(;Ua();)switch(lr){case t:return Zo;case 34:case 39:t!==34&&t!==39&&aA(lr);break;case 40:t===41&&aA(t);break;case 92:Ua();break}return Zo}function I2e(t,e){for(;Ua()&&t+lr!==57;)if(t+lr===84&&Cf()===47)break;return"/*"+X1(e,Zo-1)+"*"+nA(t===47?t:Ua())}function D2e(t){for(;!iA(Cf());)Ua();return X1(t,Zo)}function R2e(t){return A2e(Y1("",null,null,null,[""],t=$2e(t),0,[0],t))}function Y1(t,e,n,r,i,o,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,g=0,v=1,m=1,y=1,b=0,O="",w=i,S=o,x=r,T=O;m;)switch(g=b,b=Ua()){case 40:if(g!=108&&Bm(T,f-1)==58){x2e(T+=G1(oA(b),"&","&\f"),"&\f",rW(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=oA(b);break;case 9:case 10:case 13:case 32:T+=E2e(g);break;case 92:T+=M2e(Z1()-1,7);continue;case 47:switch(Cf()){case 42:case 47:j1(k2e(I2e(Ua(),Z1()),e,n,l),l);break;default:T+="/"}break;case 123*v:s[u++]=Al(T)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:y==-1&&(T=G1(T,/\f/g,"")),p>0&&Al(T)-f&&j1(p>32?sW(T+";",r,n,f-1,l):sW(G1(T," ","")+";",r,n,f-2,l),l);break;case 59:T+=";";default:if(j1(x=aW(T,e,n,u,c,i,s,O,w=[],S=[],f,o),o),b===123)if(c===0)Y1(T,e,x,x,w,o,f,s,S);else switch(d===99&&Bm(T,3)===110?100:d){case 100:case 108:case 109:case 115:Y1(t,x,x,r&&j1(aW(t,x,x,0,0,i,s,O,i,w=[],f,S),S),i,S,f,s,r?w:S);break;default:Y1(T,x,x,x,[""],S,0,s,S)}}u=c=p=0,v=y=1,O=T="",f=a;break;case 58:f=1+Al(T),p=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&P2e()==125)continue}switch(T+=nA(b),b*v){case 38:y=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(Al(T)-1)*y,y=1;break;case 64:Cf()===45&&(T+=oA(Ua())),d=Cf(),c=f=Al(O=T+=D2e(Z1())),b++;break;case 45:g===45&&Al(T)==2&&(v=0)}}return o}function aW(t,e,n,r,i,o,a,s,l,u,c,f){for(var d=i-1,p=i===0?o:[""],g=C2e(p),v=0,m=0,y=0;v0?p[b]+" "+O:G1(O,/&\f/g,p[b])))&&(l[y++]=w);return rA(t,e,n,i===0?tW:s,l,u,c,f)}function k2e(t,e,n,r){return rA(t,e,n,eW,nA(T2e()),Vm(t,2,-2),0,r)}function sW(t,e,n,r,i){return rA(t,e,n,nW,Vm(t,0,r),Vm(t,r+1,-1),r,i)}function sA(t,e){for(var n="",r=0;r ")}`:""}`)}const L2e=(t,e,n)=>{if(t==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!r.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&lW(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,n)}},B2e=(t,e,n)=>{t==="animation"&&n.hashId&&e!=="none"&&lW(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,n)},uW="data-ant-cssinjs-cache-path",V2e="_FILE_STYLE__";let Tf,cW=!0;function z2e(){var t;if(!Tf&&(Tf={},jo())){const e=document.createElement("div");e.className=uW,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(i=>{const[o,a]=i.split(":");Tf[o]=a});const r=document.querySelector(`style[${uW}]`);r&&(cW=!1,(t=r.parentNode)===null||t===void 0||t.removeChild(r)),document.body.removeChild(e)}}function F2e(t){return z2e(),!!Tf[t]}function W2e(t){const e=Tf[t];let n=null;if(e&&jo())if(cW)n=V2e;else{const r=document.querySelector(`style[${wf}="${Tf[t]}"]`);r?n=r.innerHTML:delete Tf[t]}return[n,e]}const fW=jo(),dW="_skip_check_",hW="_multi_value_";function pW(t){return sA(R2e(t),N2e).replace(/\{%%%\:[^;];}/g,";")}function Q2e(t){return typeof t=="object"&&t&&(dW in t||hW in t)}function H2e(t,e,n){if(!e)return t;const r=`.${e}`,i=n==="low"?`:where(${r})`:r;return t.split(",").map(a=>{var s;const l=a.trim().split(/\s+/);let u=l[0]||"";const c=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u=`${c}${i}${u.slice(c.length)}`,[u,...l.slice(1)].join(" ")}).join(",")}const lA=new Set;process.env.NODE_ENV;const uA=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:o,layer:a,path:s,hashPriority:l,transformers:u=[],linters:c=[]}=e;let f="",d={};function p(m){const y=m.getName(o);if(!d[y]){const[b]=uA(m.style,e,{root:!1,parentSelectors:i});d[y]=`@keyframes ${m.getName(o)}${b}`}}function g(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(b=>{Array.isArray(b)?g(b,y):b&&y.push(b)}),y}if(g(Array.isArray(t)?t:[t]).forEach(m=>{const y=typeof m=="string"&&!n?{}:m;if(typeof y=="string")f+=`${y} `;else if(y._keyframe)p(y);else{const b=u.reduce((O,w)=>{var S;return((S=w==null?void 0:w.visit)===null||S===void 0?void 0:S.call(w,O))||O},y);Object.keys(b).forEach(O=>{var w;const S=b[O];if(typeof S=="object"&&S&&(O!=="animationName"||!S._keyframe)&&!Q2e(S)){let x=!1,T=O.trim(),$=!1;(n||r)&&o?T.startsWith("@")?x=!0:T=H2e(O,o,l):n&&!o&&(T==="&"||T==="")&&(T="",$=!0);const[A,P]=uA(S,e,{root:$,injectHash:x,parentSelectors:[...i,T]});d=k(k({},d),P),f+=`${T}${A}`}else{let x=function($,A){process.env.NODE_ENV!=="production"&&(typeof S!="object"||!(S!=null&&S[dW]))&&[L2e,B2e,...c].forEach(I=>I($,A,{path:s,hashId:o,parentSelectors:i}));const P=$.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let M=A;!_2e[$]&&typeof M=="number"&&M!==0&&(M=`${M}px`),$==="animationName"&&(A!=null&&A._keyframe)&&(p(A),M=A.getName(o)),f+=`${P}:${M};`};const T=(w=S==null?void 0:S.value)!==null&&w!==void 0?w:S;typeof S=="object"&&(S!=null&&S[hW])&&Array.isArray(T)?T.forEach($=>{x(O,$)}):x(O,T)}})}}),!n)f=`{${f}}`;else if(a&&c2e()){const m=a.split(",");f=`@layer ${m[m.length-1].trim()} {${f}}`,m.length>1&&(f=`@layer ${a}{%%%:%}${f}`)}return[f,d]};function G2e(t,e){return Y$(`${t.join("%")}${e}`)}function cA(t,e){const n=F1(),r=h.computed(()=>t.value.token._tokenKey),i=h.computed(()=>[r.value,...t.value.path]);let o=fW;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(o=n.value.mock==="client"),zF("style",i,()=>{const{path:a,hashId:s,layer:l,nonce:u,clientOnly:c,order:f=0}=t.value,d=i.value.join("|");if(F2e(d)){const[T,$]=W2e(d);if(T)return[T,r.value,$,{},c,f]}const p=e(),{hashPriority:g,container:v,transformers:m,linters:y,cache:b}=n.value,[O,w]=uA(p,{hashId:s,hashPriority:g,layer:l,path:a.join("-"),transformers:m,linters:y}),S=pW(O),x=G2e(i.value,S);if(o){const T={mark:wf,prepend:"queue",attachTo:v,priority:f},$=typeof u=="function"?u():u;$&&(T.csp={nonce:$});const A=Nm(S,x,T);A[yp]=b.instanceId,A.setAttribute(LF,r.value),process.env.NODE_ENV!=="production"&&A.setAttribute(ZPe,i.value.join("|")),Object.keys(w).forEach(P=>{lA.has(P)||(lA.add(P),Nm(pW(w[P]),`_effect-${P}`,{mark:wf,prepend:"queue",attachTo:v}))})}return[S,r.value,x,w,c,f]},(a,s)=>{let[,,l]=a;(s||n.value.autoClear)&&fW&&Q1(l,{mark:wf})}),a=>a}class At{constructor(e,n){this._keyframe=!0,this.name=e,this.style=n}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const j2e="4.2.3",q1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var K1=2,gW=.16,U2e=.05,Z2e=.05,X2e=.15,vW=5,mW=4,Y2e=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function yW(t){var e=t.r,n=t.g,r=t.b,i=I$(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function J1(t){var e=t.r,n=t.g,r=t.b;return"#".concat(D$(e,n,r,!1))}function q2e(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function bW(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-K1*e:Math.round(t.h)+K1*e:r=n?Math.round(t.h)+K1*e:Math.round(t.h)-K1*e,r<0?r+=360:r>=360&&(r-=360),r}function _W(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-gW*e:e===mW?r=t.s+gW:r=t.s+U2e*e,r>1&&(r=1),n&&e===vW&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function OW(t,e,n){var r;return n?r=t.v+Z2e*e:r=t.v-X2e*e,r>1&&(r=1),Number(r.toFixed(2))}function Pf(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=up(t),i=vW;i>0;i-=1){var o=yW(r),a=J1(up({h:bW(o,i,!0),s:_W(o,i,!0),v:OW(o,i,!0)}));n.push(a)}n.push(J1(r));for(var s=1;s<=mW;s+=1){var l=yW(r),u=J1(up({h:bW(l,s),s:_W(l,s),v:OW(l,s)}));n.push(u)}return e.theme==="dark"?Y2e.map(function(c){var f=c.index,d=c.opacity,p=J1(q2e(up(e.backgroundColor||"#141414"),up(n[f]),d*100));return p}):n}var fA={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},eO={},dA={};Object.keys(fA).forEach(function(t){eO[t]=Pf(fA[t]),eO[t].primary=eO[t][5],dA[t]=Pf(fA[t],{theme:"dark",backgroundColor:"#141414"}),dA[t].primary=dA[t][5]});var K2e=eO.blue;const J2e=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function e$e(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const wW={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},tO=k(k({},wW),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-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'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function t$e(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=t,f=n(l),d=n(i),p=n(o),g=n(a),v=n(s),m=r(u,c);return k(k({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new yn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const n$e=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t>16?16:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function r$e(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return k({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},n$e(r))}const El=(t,e)=>new yn(t).setAlpha(e).toRgbString(),zm=(t,e)=>new yn(t).darken(e).toHexString(),i$e=t=>{const e=Pf(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},o$e=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:El(r,.88),colorTextSecondary:El(r,.65),colorTextTertiary:El(r,.45),colorTextQuaternary:El(r,.25),colorFill:El(r,.15),colorFillSecondary:El(r,.06),colorFillTertiary:El(r,.04),colorFillQuaternary:El(r,.02),colorBgLayout:zm(n,4),colorBgContainer:zm(n,0),colorBgElevated:zm(n,0),colorBgSpotlight:El(r,.85),colorBorder:zm(n,15),colorBorderSecondary:zm(n,6)}};function a$e(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=t*Math.pow(2.71828,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return e[1]=t,e.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const s$e=t=>{const e=a$e(t),n=e.map(i=>i.size),r=e.map(i=>i.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function l$e(t){const e=Object.keys(wW).map(n=>{const r=Pf(t[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=k(k({},n),r),n),{});return k(k(k(k(k(k(k({},t),e),t$e(t,{generateColorPalettes:i$e,generateNeutralColorPalettes:o$e})),s$e(t.fontSize)),e$e(t)),J2e(t)),r$e(t))}function hA(t){return t>=0&&t<=255}function nO(t,e){const{r:n,g:r,b:i,a:o}=new yn(t).toRgb();if(o<1)return t;const{r:a,g:s,b:l}=new yn(e).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),d=Math.round((i-l*(1-u))/u);if(hA(c)&&hA(f)&&hA(d))return new yn({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new yn({r:n,g:r,b:i,a:1}).toRgbString()}var u$e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{delete r[p]});const i=k(k({},n),r),o=480,a=576,s=768,l=992,u=1200,c=1600,f=2e3;return k(k(k({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:nO(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:nO(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:nO(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:nO(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const f$e=(t,e,n,r,i)=>{const o=t/2,a=0,s=o,l=n*1/Math.sqrt(2),u=o-n*(1-1/Math.sqrt(2)),c=o-e*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),d=2*o-c,p=f,g=2*o-l,v=u,m=2*o-a,y=s,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*o-O}px 100%, ${O}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${p} L ${g} ${v} A ${n} ${n} 0 0 0 ${m} ${y} Z')`]},content:'""'}}};function d$e(t,e){return q1.reduce((n,r)=>{const i=t[`${r}-1`],o=t[`${r}-3`],a=t[`${r}-6`],s=t[`${r}-7`];return k(k({},n),e(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const wp={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},bn=t=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:t.fontFamily}),Sp=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rO=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),h$e=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active,\n &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),p$e=(t,e)=>{const{fontFamily:n,fontSize:r}=t,i=`[class^="${e}"], [class*=" ${e}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Fm=t=>({outline:`${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),iO=t=>({"&:focus-visible":k({},Fm(t))});function Fn(t,e,n){return r=>{const i=h.computed(()=>r==null?void 0:r.value),[o,a,s]=xp(),{getPrefixCls:l,iconPrefixCls:u}=V1(),c=h.computed(()=>l()),f=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:["Shared",c.value]}));cA(f,()=>[{"&":h$e(a.value)}]);const d=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:[t,i.value,u.value]}));return[cA(d,()=>{const{token:p,flush:g}=v$e(a.value),v=typeof n=="function"?n(p):n,m=k(k({},v),a.value[t]),y=`.${i.value}`,b=Xt(p,{componentCls:y,prefixCls:i.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},m),O=e(b,{hashId:s.value,prefixCls:i.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:a.value[t]});return g(t,m),[p$e(a.value,i.value),O]}),s]}}const SW=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let pA=!0;function Xt(){for(var t=arguments.length,e=new Array(t),n=0;n{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),pA=!0,r}function g$e(){}function v$e(t){let e,n=t,r=g$e;return SW&&(e=new Set,n=new Proxy(t,{get(i,o){return pA&&e.add(o),i[o]}}),r=(i,o)=>{Array.from(e)}),{token:n,keys:e,flush:r}}const m$e=YF(l$e),xW={token:tO,hashed:!0},CW=Symbol("DesignTokenContext"),gA=h.shallowRef(),y$e=t=>{h.provide(CW,t),h.watch(t,()=>{gA.value=h.unref(t),h.triggerRef(gA)},{immediate:!0,deep:!0})},b$e=h.defineComponent({props:{value:Vt()},setup(t,e){let{slots:n}=e;return y$e(h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function xp(){const t=h.inject(CW,h.computed(()=>gA.value||xW)),e=h.computed(()=>`${j2e}-${t.value.hashed||""}`),n=h.computed(()=>t.value.theme||m$e),r=b2e(n,h.computed(()=>[tO,t.value.token]),h.computed(()=>({salt:e.value,override:k({override:t.value.token},t.value.components),formatToken:c$e})));return[n,h.computed(()=>r.value[0]),h.computed(()=>t.value.hashed?r.value[1]:"")]}const TW=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=xp(),e=h.computed(()=>new yn(t.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>h.createVNode("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{fill:"none","fill-rule":"evenodd"},[h.createVNode("g",{transform:"translate(24 31.67)"},[h.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),h.createVNode("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),h.createVNode("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),h.createVNode("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),h.createVNode("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),h.createVNode("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),h.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[h.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),h.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});TW.PRESENTED_IMAGE_DEFAULT=!0;const PW=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=xp(),e=h.computed(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=t.value;return{borderColor:new yn(n).onBackground(o).toHexString(),shadowColor:new yn(r).onBackground(o).toHexString(),contentColor:new yn(i).onBackground(o).toHexString()}});return()=>h.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[h.createVNode("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),h.createVNode("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[h.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),h.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:e.value.contentColor},null)])])])}});PW.PRESENTED_IMAGE_SIMPLE=!0;const _$e=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},O$e=Fn("Empty",t=>{const{componentCls:e,controlHeightLG:n}=t,r=Xt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[_$e(r)]});var w$e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({prefixCls:String,imageStyle:Vt(),image:Go(),description:Go()}),vA=h.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:S$e(),setup(t,e){let{slots:n={},attrs:r}=e;const{direction:i,prefixCls:o}=Qt("empty",t),[a,s]=O$e(o);return()=>{var l,u;const c=o.value,f=k(k({},t),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||$W,description:p=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:g,class:v=""}=f,m=w$e(f,["image","description","imageStyle","class"]);return a(h.createVNode(kF,{componentName:"Empty",children:y=>{const b=typeof p<"u"?p:y.description,O=typeof b=="string"?b:"empty";let w=null;return typeof d=="string"?w=h.createVNode("img",{alt:O,src:d},null):w=d,h.createVNode("div",K({class:Pe(c,v,s.value,{[`${c}-normal`]:d===AW,[`${c}-rtl`]:i.value==="rtl"})},m),[h.createVNode("div",{class:`${c}-image`,style:g},[w]),b&&h.createVNode("p",{class:`${c}-description`},[b]),n.default&&h.createVNode("div",{class:`${c}-footer`},[xs(n.default())])])}},null))}}});vA.PRESENTED_IMAGE_DEFAULT=$W,vA.PRESENTED_IMAGE_SIMPLE=AW;const Wm=mp(vA),mA=t=>{const{prefixCls:e}=Qt("empty",t);return(r=>{switch(r){case"Table":case"List":return h.createVNode(Wm,{image:Wm.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h.createVNode(Wm,{image:Wm.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return h.createVNode(Wm,null,null)}})(t.componentName)};function x$e(t){return h.createVNode(mA,{componentName:t},null)}const EW=Symbol("SizeContextKey"),MW=()=>h.inject(EW,h.ref(void 0)),IW=t=>{const e=MW();return h.provide(EW,h.computed(()=>t.value||e.value)),t},Qt=(t,e)=>{const n=MW(),r=Cs(),i=h.inject(X$,k(k({},EF),{renderEmpty:T=>h.h(mA,{componentName:T})})),o=h.computed(()=>i.getPrefixCls(t,e.prefixCls)),a=h.computed(()=>{var T,$;return(T=e.direction)!==null&&T!==void 0?T:($=i.direction)===null||$===void 0?void 0:$.value}),s=h.computed(()=>{var T;return(T=e.iconPrefixCls)!==null&&T!==void 0?T:i.iconPrefixCls.value}),l=h.computed(()=>i.getPrefixCls()),u=h.computed(()=>{var T;return(T=i.autoInsertSpaceInButton)===null||T===void 0?void 0:T.value}),c=i.renderEmpty,f=i.space,d=i.pageHeader,p=i.form,g=h.computed(()=>{var T,$;return(T=e.getTargetContainer)!==null&&T!==void 0?T:($=i.getTargetContainer)===null||$===void 0?void 0:$.value}),v=h.computed(()=>{var T,$,A;return($=(T=e.getContainer)!==null&&T!==void 0?T:e.getPopupContainer)!==null&&$!==void 0?$:(A=i.getPopupContainer)===null||A===void 0?void 0:A.value}),m=h.computed(()=>{var T,$;return(T=e.dropdownMatchSelectWidth)!==null&&T!==void 0?T:($=i.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),y=h.computed(()=>{var T;return(e.virtual===void 0?((T=i.virtual)===null||T===void 0?void 0:T.value)!==!1:e.virtual!==!1)&&m.value!==!1}),b=h.computed(()=>e.size||n.value),O=h.computed(()=>{var T,$,A;return(T=e.autocomplete)!==null&&T!==void 0?T:(A=($=i.input)===null||$===void 0?void 0:$.value)===null||A===void 0?void 0:A.autocomplete}),w=h.computed(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:r.value}),S=h.computed(()=>{var T;return(T=e.csp)!==null&&T!==void 0?T:i.csp}),x=h.computed(()=>{var T,$;return(T=e.wave)!==null&&T!==void 0?T:($=i.wave)===null||$===void 0?void 0:$.value});return{configProvider:i,prefixCls:o,direction:a,size:b,getTargetContainer:g,getPopupContainer:v,space:f,pageHeader:d,form:p,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:m,rootPrefixCls:l,getPrefixCls:i.getPrefixCls,autocomplete:O,csp:S,iconPrefixCls:s,disabled:w,select:i.select,wave:x}};function Er(t,e){const n=k({},t);for(let r=0;re||o>t&&a=e&&s>=n?o-t-r:a>e&&sn?a-e+i:0}var kW=function(t,e){var n=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l=typeof a=="function"?a:function(ye){return ye!==a};if(!DW(t))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=t;DW(p)&&l(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===f){d.push(p);break}p!=null&&p===document.body&&yA(p)&&!yA(document.documentElement)||p!=null&&yA(p,s)&&d.push(p)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=t.getBoundingClientRect(),O=b.height,w=b.width,S=b.top,x=b.right,T=b.bottom,$=b.left,A=i==="start"||i==="nearest"?S:i==="end"?T:S+O/2,P=o==="center"?$+w/2:o==="end"?x:$,M=[],I=0;I=0&&$>=0&&T<=v&&x<=g&&S>=F&&T<=W&&$>=j&&x<=z)return M;var H=getComputedStyle(R),Z=parseInt(H.borderLeftWidth,10),J=parseInt(H.borderTopWidth,10),se=parseInt(H.borderRightWidth,10),oe=parseInt(H.borderBottomWidth,10),de=0,ie=0,ue="offsetWidth"in R?R.offsetWidth-R.clientWidth-Z-se:0,ee="offsetHeight"in R?R.offsetHeight-R.clientHeight-J-oe:0,X="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,Y="offsetHeight"in R?R.offsetHeight===0?0:D/R.offsetHeight:0;if(f===R)de=i==="start"?A:i==="end"?A-v:i==="nearest"?oO(y,y+v,v,J,oe,y+A,y+A+O,O):A-v/2,ie=o==="start"?P:o==="center"?P-g/2:o==="end"?P-g:oO(m,m+g,g,Z,se,m+P,m+P+w,w),de=Math.max(0,de+y),ie=Math.max(0,ie+m);else{de=i==="start"?A-F-J:i==="end"?A-W+oe+ee:i==="nearest"?oO(F,W,D,J,oe+ee,A,A+O,O):A-(F+D/2)+ee/2,ie=o==="start"?P-j-Z:o==="center"?P-(j+B/2)+ue/2:o==="end"?P-z+se+ue:oO(j,z,B,Z,se+ue,P,P+w,w);var le=R.scrollLeft,ve=R.scrollTop;A+=ve-(de=Math.max(0,Math.min(ve+de/Y,R.scrollHeight-D/Y+ee))),P+=le-(ie=Math.max(0,Math.min(le+ie/X,R.scrollWidth-B/X+ue)))}M.push({el:R,top:de,left:ie})}return M};function NW(t){return t===Object(t)&&Object.keys(t).length!==0}function C$e(t,e){e===void 0&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&n?i.scroll({top:o,left:a,behavior:e}):(i.scrollTop=o,i.scrollLeft=a)})}function T$e(t){return t===!1?{block:"end",inline:"nearest"}:NW(t)?t:{block:"start",inline:"nearest"}}function P$e(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(NW(e)&&typeof e.behavior=="function")return e.behavior(n?kW(t,e):[]);if(n){var r=T$e(e);return C$e(kW(t,r),r.behavior)}}function $$e(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}function zW(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var FW=Object.prototype,WW=FW.toString,A$e=FW.hasOwnProperty,QW=/^\s*function (\w+)/;function HW(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(QW);return r?r[1]:""}return""}var $f=function(t){var e,n;return zW(t)!==!1&&typeof(e=t.constructor)=="function"&&zW(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},GW=function(t){return t},ni=GW;if(process.env.NODE_ENV!=="production"){var E$e=typeof console<"u";ni=E$e?function(t){console.warn("[VueTypes warn]: "+t)}:GW}var Qm=function(t,e){return A$e.call(t,e)},M$e=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Cp=Array.isArray||function(t){return WW.call(t)==="[object Array]"},Tp=function(t){return WW.call(t)==="[object Function]"},sO=function(t){return $f(t)&&Qm(t,"_vueTypes_name")},jW=function(t){return $f(t)&&(Qm(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Qm(t,e)}))};function bA(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function Af(t,e,n){var r;n===void 0&&(n=!1);var i=!0,o="";r=$f(t)?t:{type:t};var a=sO(r)?r._vueTypes_name+" - ":"";if(jW(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;Cp(r.type)?(i=r.type.some(function(f){return Af(f,e,!0)===!0}),o=r.type.map(function(f){return HW(f)}).join(" or ")):i=(o=HW(r))==="Array"?Cp(e):o==="Object"?$f(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(QW);return d?d[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return n===!1?(ni(s),!1):s}if(Qm(r,"validator")&&Tp(r.validator)){var l=ni,u=[];if(ni=function(f){u.push(f)},i=r.validator(e),ni=l,!i){var c=(u.length>1?"* ":"")+u.join(` * `);return u.length=0,n===!1?(ni(c),i):c}}return i}function vo(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?Tp(i)||Af(this,i,!0)===!0?(this.default=Cp(i)?function(){return[].concat(i)}:$f(i)?function(){return Object.assign({},i)}:i,this):(ni(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=n.validator;return Tp(r)&&(n.validator=bA(r,n)),n}function Ts(t,e){var n=vo(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Tp(this.validator)&&ni(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: `+JSON.stringify(this)),this.validator=bA(r,this),this}})}function UW(t,e,n){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(f){i[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},i));if(o._vueTypes_name=t,!$f(n))return o;var a,s,l=n.validator,u=VW(n,["validator"]);if(Tp(l)){var c=o.validator;c&&(c=(s=(a=c).__original)!==null&&s!==void 0?s:a),o.validator=bA(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,o)}return Object.assign(o,u)}function lO(t){return t.replace(/^(?!\s*$)/gm," ")}var I$e=function(){return Ts("any",{})},D$e=function(){return Ts("function",{type:Function})},R$e=function(){return Ts("boolean",{type:Boolean})},k$e=function(){return Ts("string",{type:String})},N$e=function(){return Ts("number",{type:Number})},L$e=function(){return Ts("array",{type:Array})},B$e=function(){return Ts("object",{type:Object})},V$e=function(){return vo("integer",{type:Number,validator:function(t){return M$e(t)}})},z$e=function(){return vo("symbol",{validator:function(t){return typeof t=="symbol"}})};function F$e(t,e){if(e===void 0&&(e="custom validation failed"),typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return vo(t.name||"<>",{validator:function(n){var r=t(n);return r||ni(this._vueTypes_name+" - "+e),r}})}function W$e(t){if(!Cp(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce(function(r,i){if(i!=null){var o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return vo("oneOf",{type:n.length>0?n:void 0,validator:function(r){var i=t.indexOf(r)!==-1;return i||ni(e),i}})}function Q$e(t){if(!Cp(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r0&&n.some(function(l){return a.indexOf(l)===-1})){var s=n.filter(function(l){return a.indexOf(l)===-1});return ni(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every(function(l){if(e.indexOf(l)===-1)return o._vueTypes_isLoose===!0||(ni('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=Af(t[l],i[l],!0);return typeof u=="string"&&ni('shape - "'+l+`" property validation error: `+lO(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ps=function(){function t(){}return t.extend=function(e){var n=this;if(Cp(e))return e.forEach(function(f){return n.extend(f)}),this;var r=e.name,i=e.validate,o=i!==void 0&&i,a=e.getter,s=a!==void 0&&a,l=VW(e,["name","validate","getter"]);if(Qm(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return sO(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return UW(r,c,l)}}:{value:function(){var f,d=UW(r,c,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(u=s?{get:function(){var f=Object.assign({},l);return o?Ts(r,f):vo(r,f)},enumerable:!0}:{value:function(){var f,d,p=Object.assign({},l);return f=o?Ts(r,p):vo(r,p),p.validator&&(f.validator=(d=p.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,u))},LW(t,null,[{key:"any",get:function(){return I$e()}},{key:"func",get:function(){return D$e().def(this.defaults.func)}},{key:"bool",get:function(){return R$e().def(this.defaults.bool)}},{key:"string",get:function(){return k$e().def(this.defaults.string)}},{key:"number",get:function(){return N$e().def(this.defaults.number)}},{key:"array",get:function(){return L$e().def(this.defaults.array)}},{key:"object",get:function(){return B$e().def(this.defaults.object)}},{key:"integer",get:function(){return V$e().def(this.defaults.integer)}},{key:"symbol",get:function(){return z$e()}}]),t}();function ZW(t){var e;return t===void 0&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(n){function r(){return n.apply(this,arguments)||this}return BW(r,n),LW(r,null,[{key:"sensibleDefaults",get:function(){return aO({},this.defaults)},set:function(i){this.defaults=i!==!1?aO({},i!==!0?i:t):{}}}]),r}(Ps)).defaults=aO({},t),e}Ps.defaults={},Ps.custom=F$e,Ps.oneOf=W$e,Ps.instanceOf=G$e,Ps.oneOfType=Q$e,Ps.arrayOf=H$e,Ps.objectOf=j$e,Ps.shape=U$e,Ps.utils={validate:function(t,e){return Af(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?Ts(t,e):vo(t,e)}},function(t){function e(){return t.apply(this,arguments)||this}return BW(e,t),e}(ZW());const ne=ZW({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});ne.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function Z$e(t){return t.default=void 0,t}const mo=(t,e,n)=>{Uo(t,`[ant-design-vue: ${e}] ${n}`)};function XW(t,e){const{key:n}=t;let r;return"value"in t&&({value:r}=t),n??(r!==void 0?r:`rc-index-key-${e}`)}function YW(t,e){const{label:n,value:r,options:i}=t||{};return{label:n||(e?"children":"label"),value:r||"value",options:i||"options"}}function X$e(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:i,value:o,options:a}=YW(e,!1);function s(l,u){l.forEach(c=>{const f=c[i];if(u||!(a in c)){const d=c[o];r.push({key:XW(c,r.length),groupOption:u,data:c,label:f,value:d})}else{let d=f;d===void 0&&n&&(d=c.label),r.push({key:XW(c,r.length),group:!0,data:c,label:d}),s(c[a],!0)}})}return s(t,!1),r}function _A(t){const e=k({},t);return"props"in e||Object.defineProperty(e,"props",{get(){return Sf(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function Y$e(t,e){if(!e||!e.length)return null;let n=!1;function r(o,a){let[s,...l]=a;if(!s)return[o];const u=o.split(s);return n=n||u.length>1,u.reduce((c,f)=>[...c,...r(f,l)],[]).filter(c=>c)}const i=r(t,e);return n?i:null}function q$e(){return""}function K$e(t){return t?t.ownerDocument:window.document}function qW(){}const J$e=()=>({action:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def([]),showAction:ne.any.def([]),hideAction:ne.any.def([]),getPopupClassNameFromAlign:ne.any.def(q$e),onPopupVisibleChange:Function,afterPopupVisibleChange:ne.func.def(qW),popup:ne.any,arrow:ne.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:ne.string.def("rc-trigger-popup"),popupClassName:ne.string.def(""),popupPlacement:String,builtinPlacements:ne.object,popupTransitionName:String,popupAnimation:ne.any,mouseEnterDelay:ne.number.def(0),mouseLeaveDelay:ne.number.def(.1),zIndex:Number,focusDelay:ne.number.def(0),blurDelay:ne.number.def(.15),getPopupContainer:Function,getDocument:ne.func.def(K$e),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ne.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),OA={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},eAe=k(k({},OA),{mobile:{type:Object}}),tAe=k(k({},OA),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function wA(t){let{prefixCls:e,animation:n,transitionName:r}=t;return n?{name:`${e}-${n}`}:r?{name:r}:{}}function KW(t){const{prefixCls:e,visible:n,zIndex:r,mask:i,maskAnimation:o,maskTransitionName:a}=t;if(!i)return null;let s={};return(a||o)&&(s=wA({prefixCls:e,transitionName:a,animation:o})),h.createVNode(h.Transition,K({appear:!0},s),{default:()=>[h.withDirectives(h.createVNode("div",{style:{zIndex:r},class:`${e}-mask`},null),[[h.resolveDirective("if"),n]])]})}KW.displayName="Mask";const nAe=h.defineComponent({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:eAe,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{var o;const{zIndex:a,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:f={},popupRender:d}={}}=t,p=k({zIndex:a},c);let g=vr((o=r.default)===null||o===void 0?void 0:o.call(r));g.length>1&&(g=h.createVNode("div",{class:`${l}-content`},[g])),d&&(g=d(g));const v=Pe(l,u);return h.createVNode(h.Transition,K({ref:i},f),{default:()=>[s?h.createVNode("div",{class:v,style:p},[g]):null]})}}});var rAe=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const JW=["measure","align",null,"motion"],iAe=(t,e)=>{const n=h.shallowRef(null),r=h.shallowRef(),i=h.shallowRef(!1);function o(l){i.value||(n.value=l)}function a(){Dt.cancel(r.value)}function s(l){a(),r.value=Dt(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}o(u),l==null||l()})}return h.watch(t,()=>{o("measure")},{immediate:!0,flush:"post"}),h.onMounted(()=>{h.watch(n,()=>{switch(n.value){case"measure":e();break}n.value&&(r.value=Dt(()=>rAe(void 0,void 0,void 0,function*(){const l=JW.indexOf(n.value),u=JW[l+1];u&&l!==-1&&o(u)})))},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{i.value=!0,a()}),[n,s]},oAe=t=>{const e=h.shallowRef({width:0,height:0});function n(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}return[h.computed(()=>{const i={};if(t.value){const{width:o,height:a}=e.value;t.value.indexOf("height")!==-1&&a?i.height=`${a}px`:t.value.indexOf("minHeight")!==-1&&a&&(i.minHeight=`${a}px`),t.value.indexOf("width")!==-1&&o?i.width=`${o}px`:t.value.indexOf("minWidth")!==-1&&o&&(i.minWidth=`${o}px`)}return i}),n]};function e7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function t7(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function $Ae(t,e,n,r){var i=_t.clone(t),o={width:e.width,height:e.height};return r.adjustX&&i.left=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),_t.mix(i,o)}function RA(t){var e,n,r;if(!_t.isWindow(t)&&t.nodeType!==9)e=_t.offset(t),n=_t.outerWidth(t),r=_t.outerHeight(t);else{var i=_t.getWindow(t);e={left:_t.getWindowScrollLeft(i),top:_t.getWindowScrollTop(i)},n=_t.viewportWidth(i),r=_t.viewportHeight(i)}return e.width=n,e.height=r,e}function v7(t,e){var n=e.charAt(0),r=e.charAt(1),i=t.width,o=t.height,a=t.left,s=t.top;return n==="c"?s+=o/2:n==="b"&&(s+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:s}}function dO(t,e,n,r,i){var o=v7(e,n[1]),a=v7(t,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(t.left-s[0]+r[0]-i[0]),top:Math.round(t.top-s[1]+r[1]-i[1])}}function m7(t,e,n){return t.leftn.right}function y7(t,e,n){return t.topn.bottom}function AAe(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||r.top>=n.bottom}function kA(t,e,n){var r=n.target||e,i=RA(r),o=!MAe(r,n.overflow&&n.overflow.alwaysByViewport);return O7(t,i,n,o)}kA.__getOffsetParent=IA,kA.__getVisibleRectForElement=DA;function IAe(t,e,n){var r,i,o=_t.getDocument(t),a=o.defaultView||o.parentWindow,s=_t.getWindowScrollLeft(a),l=_t.getWindowScrollTop(a),u=_t.viewportWidth(a),c=_t.viewportHeight(a);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?i=e.pageY:i=l+e.clientY;var f={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+u&&i>=0&&i<=l+c,p=[n.points[0],"cc"];return O7(t,f,t7(t7({},n),{},{points:p}),d)}function Gn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t;if(Array.isArray(t)&&(i=xs(t)[0]),!i)return null;const o=h.cloneVNode(i,e,r);return o.props=n?k(k({},o.props),e):o.props,yi(typeof o.props.class!="object","class must be string"),o}function DAe(t,e,n){h.render(h.cloneVNode(t,k({},e)),n)}const w7=t=>{if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){const e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){const e=t.getBoundingClientRect();if(e.width||e.height)return!0}return!1};function RAe(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function kAe(t,e){t!==document.activeElement&&Ru(e,t)&&typeof t.focus=="function"&&t.focus()}function S7(t,e){let n=null,r=null;function i(a){let[{target:s}]=a;if(!document.documentElement.contains(s))return;const{width:l,height:u}=s.getBoundingClientRect(),c=Math.floor(l),f=Math.floor(u);(n!==c||r!==f)&&Promise.resolve().then(()=>{e({width:c,height:f})}),n=c,r=f}const o=new OF(i);return t&&o.observe(t),()=>{o.disconnect()}}const NAe=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r)}function o(a){if(!n||a===!0){if(t()===!1)return;n=!0,i(),r=setTimeout(()=>{n=!1},e.value)}else i(),r=setTimeout(()=>{n=!1,o()},e.value)}return[o,()=>{n=!1,i()}]},LAe={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function x7(t){return typeof t!="function"?null:t()}function C7(t){return typeof t!="object"||!t?null:t}const BAe=h.defineComponent({compatConfig:{MODE:3},name:"Align",props:LAe,emits:["align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref({}),o=h.ref(),[a,s]=NAe(()=>{const{disabled:d,target:p,align:g,onAlign:v}=t;if(!d&&p&&o.value){const m=o.value;let y;const b=x7(p),O=C7(p);i.value.element=b,i.value.point=O,i.value.align=g;const{activeElement:w}=document;return b&&w7(b)?y=kA(m,b,g):O&&(y=IAe(m,O,g)),kAe(w,m),v&&y&&v(m,y),!0}return!1},h.computed(()=>t.monitorBufferTime)),l=h.ref({cancel:()=>{}}),u=h.ref({cancel:()=>{}}),c=()=>{const d=t.target,p=x7(d),g=C7(d);o.value!==u.value.element&&(u.value.cancel(),u.value.element=o.value,u.value.cancel=S7(o.value,a)),(i.value.element!==p||!RAe(i.value.point,g)||!fm(i.value.align,t.align))&&(a(),l.value.element!==p&&(l.value.cancel(),l.value.element=p,l.value.cancel=S7(p,a)))};h.onMounted(()=>{h.nextTick(()=>{c()})}),h.onUpdated(()=>{h.nextTick(()=>{c()})}),h.watch(()=>t.disabled,d=>{d?s():a()},{immediate:!0,flush:"post"});const f=h.ref(null);return h.watch(()=>t.monitorWindowResize,d=>{d?f.value||(f.value=zr(window,"resize",a)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),h.onUnmounted(()=>{l.value.cancel(),u.value.cancel(),f.value&&f.value.remove(),s()}),n({forceAlign:()=>a(!0)}),()=>{const d=r==null?void 0:r.default();return d?Gn(d[0],{ref:o},!0,!0):null}}});Du("bottomLeft","bottomRight","topLeft","topRight");const VAe=t=>t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up",Zm=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,enterFromClass:`${t}-enter ${t}-enter-prepare ${t}-enter-start`,enterActiveClass:`${t}-enter ${t}-enter-prepare`,enterToClass:`${t}-enter ${t}-enter-active`,leaveFromClass:` ${t}-leave`,leaveActiveClass:`${t}-leave ${t}-leave-active`,leaveToClass:`${t}-leave ${t}-leave-active`}:{css:!1},e)},NA=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,appearActiveClass:`${t}`,appearToClass:`${t}-appear ${t}-appear-active`,enterFromClass:`${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,enterActiveClass:`${t}`,enterToClass:`${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,leaveActiveClass:`${t} ${t}-leave`,leaveToClass:`${t}-leave-active`}:{css:!1},e)},As=(t,e,n)=>n!==void 0?n:`${t}-${e}`,zAe=h.defineComponent({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:OA,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(),[l,u]=oAe(h.toRef(t,"stretch")),c=()=>{t.stretch&&u(t.getRootDomNode())},f=h.shallowRef(!1);let d;h.watch(()=>t.visible,x=>{clearTimeout(d),x?d=setTimeout(()=>{f.value=t.visible}):f.value=!1},{immediate:!0});const[p,g]=iAe(f,c),v=h.shallowRef(),m=()=>t.point?t.point:t.getRootDomNode,y=()=>{var x;(x=o.value)===null||x===void 0||x.forceAlign()},b=(x,T)=>{var $;const A=t.getClassNameFromAlign(T),P=s.value;s.value!==A&&(s.value=A),p.value==="align"&&(P!==A?Promise.resolve().then(()=>{y()}):g(()=>{var M;(M=v.value)===null||M===void 0||M.call(v)}),($=t.onAlign)===null||$===void 0||$.call(t,x,T))},O=h.computed(()=>{const x=typeof t.animation=="object"?t.animation:wA(t);return["onAfterEnter","onAfterLeave"].forEach(T=>{const $=x[T];x[T]=A=>{g(),p.value="stable",$==null||$(A)}}),x}),w=()=>new Promise(x=>{v.value=x});h.watch([O,p],()=>{!O.value&&p.value==="motion"&&g()},{immediate:!0}),n({forceAlign:y,getElement:()=>a.value.$el||a.value});const S=h.computed(()=>{var x;return!(!((x=t.align)===null||x===void 0)&&x.points&&(p.value==="align"||p.value==="stable"))});return()=>{var x;const{zIndex:T,align:$,prefixCls:A,destroyPopupOnHide:P,onMouseenter:M,onMouseleave:I,onTouchstart:R=()=>{},onMousedown:L}=t,D=p.value,B=[k(k({},l.value),{zIndex:T,opacity:D==="motion"||D==="stable"||!f.value?null:0,pointerEvents:!f.value&&D!=="stable"?"none":null}),r.style];let F=vr((x=i.default)===null||x===void 0?void 0:x.call(i,{visible:t.visible}));F.length>1&&(F=h.createVNode("div",{class:`${A}-content`},[F]));const z=Pe(A,r.class,s.value,!t.arrow&&`${A}-arrow-hidden`),j=f.value||!t.visible?Zm(O.value.name,O.value):{};return h.createVNode(h.Transition,K(K({ref:a},j),{},{onBeforeEnter:w}),{default:()=>!P||t.visible?h.withDirectives(h.createVNode(BAe,{target:m(),key:"popup",ref:o,monitorWindowResize:!0,disabled:S.value,align:$,onAlign:b},{default:()=>h.createVNode("div",{class:z,onMouseenter:M,onMouseleave:I,onMousedown:h.withModifiers(L,["capture"]),[Vr?"onTouchstartPassive":"onTouchstart"]:h.withModifiers(R,["capture"]),style:B},[F])}),[[h.vShow,f.value]]):null})}}}),FAe=h.defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:tAe,setup(t,e){let{attrs:n,slots:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(!1),s=h.shallowRef(),l=h.shallowRef();return h.watch([()=>t.visible,()=>t.mobile],()=>{o.value=t.visible,t.visible&&t.mobile&&(a.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var u;(u=s.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=s.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=k(k(k({},t),n),{visible:o.value}),c=a.value?h.createVNode(nAe,K(K({},u),{},{mobile:t.mobile,ref:s}),{default:r.default}):h.createVNode(zAe,K(K({},u),{},{ref:s}),{default:r.default});return h.createVNode("div",{ref:l},[h.createVNode(KW,u,null),c])}}});function WAe(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function T7(t,e,n){const r=t[e]||{};return k(k({},r),n)}function QAe(t,e,n,r){const{points:i}=n,o=Object.keys(t);for(let a=0;a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(LPe(this),k(k({},this.$data),n));if(r===null)return;n=k(k({},n),r||{})}k(this.$data,n),this._.isMounted&&this.$forceUpdate(),h.nextTick(()=>{e&&e()})},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let r=0,i=n.length;r1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};h.provide(P7,{inTriggerContext:e.inTriggerContext,shouldRender:h.computed(()=>{const{sPopupVisible:n,popupRef:r,forceRender:i,autoDestroy:o}=t||{};let a=!1;return(n||r||i)&&(a=!0),!n&&o&&(a=!1),a})})},HAe=()=>{LA({},{inTriggerContext:!1});const t=h.inject(P7,{shouldRender:h.computed(()=>!1),inTriggerContext:!1});return{shouldRender:h.computed(()=>t.shouldRender.value||t.inTriggerContext===!1)}},$7=h.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ne.func.isRequired,didUpdate:Function},setup(t,e){let{slots:n}=e,r=!0,i;const{shouldRender:o}=HAe();function a(){o.value&&(i=t.getContainer())}h.onBeforeMount(()=>{r=!1,a()}),h.onMounted(()=>{i||a()});const s=h.watch(o,()=>{o.value&&!i&&(i=t.getContainer()),i&&s()});return h.onUpdated(()=>{h.nextTick(()=>{var l;o.value&&((l=t.didUpdate)===null||l===void 0||l.call(t,t))})}),()=>{var l;return o.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):i?h.createVNode(h.Teleport,{to:i},n):null:null}}});let BA;function GAe(t){if(typeof document>"u")return 0;if(BA===void 0){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);const i=e.offsetWidth;n.style.overflow="scroll";let o=e.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),BA=i-o}return BA}const jAe=`vc-util-locker-${Date.now()}`;let A7=0;function UAe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ZAe(t){const e=h.computed(()=>!!t&&!!t.value);A7+=1;const n=`${jAe}_${A7}`;h.watchEffect(r=>{if(jo()){if(e.value){const i=GAe(),o=UAe();Nm(` html body { overflow-y: hidden; ${o?`width: calc(100% - ${i}px);`:""} }`,n)}else Q1(n);r(()=>{Q1(n)})}},{flush:"post"})}let Mf=0;const vO=jo(),E7=t=>{if(!vO)return null;if(t){if(typeof t=="string")return document.querySelectorAll(t)[0];if(typeof t=="function")return t();if(typeof t=="object"&&t instanceof window.HTMLElement)return t}return document.body},M7=h.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ne.any,visible:{type:Boolean,default:void 0},autoLock:lt(),didUpdate:Function},setup(t,e){let{slots:n}=e;const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(1),s=jo()&&document.createElement("div"),l=()=>{var p,g;r.value===s&&((g=(p=r.value)===null||p===void 0?void 0:p.parentNode)===null||g===void 0||g.removeChild(r.value)),r.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(u=E7(t.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>vO?(r.value||(r.value=s,c(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:p}=t;r.value&&p&&p!==r.value.className&&(r.value.className=p)};return h.onUpdated(()=>{d(),c()}),ZAe(h.computed(()=>t.autoLock&&t.visible&&jo()&&(r.value===document.body||r.value===s))),h.onMounted(()=>{let p=!1;h.watch([()=>t.visible,()=>t.getContainer],(g,v)=>{let[m,y]=g,[b,O]=v;vO&&(u=E7(t.getContainer),u===document.body&&(m&&!b?Mf+=1:p&&(Mf-=1))),p&&(typeof y=="function"&&typeof O=="function"?y.toString()!==O.toString():y!==O)&&l(),p=!0},{immediate:!0,flush:"post"}),h.nextTick(()=>{c()||(o.value=Dt(()=>{a.value+=1}))})}),h.onBeforeUnmount(()=>{const{visible:p}=t;vO&&u===document.body&&(Mf=p&&Mf?Mf-1:Mf),l(),Dt.cancel(o.value)}),()=>{const{forceRender:p,visible:g}=t;let v=null;const m={getOpenCount:()=>Mf,getContainer:f};return a.value&&(p||g||i.value)&&(v=h.createVNode($7,{getContainer:f,ref:i,didUpdate:t.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,m)}})),v}}}),XAe=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],mO=h.defineComponent({compatConfig:{MODE:3},name:"Trigger",mixins:[gO],inheritAttrs:!1,props:J$e(),setup(t){const e=h.computed(()=>{const{popupPlacement:i,popupAlign:o,builtinPlacements:a}=t;return i&&a?T7(a,i,o):o}),n=h.shallowRef(null),r=i=>{n.value=i};return{vcTriggerContext:h.inject("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:h.shallowRef(null),align:e,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let e;return this.popupVisible!==void 0?e=!!t.popupVisible:e=!!t.defaultPopupVisible,XAe.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){h.provide("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),LA(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Dt.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=zr(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=zr(n,"touchstart",this.onDocumentClick,Vr?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=zr(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=zr(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&Ru((e=this.popupRef)===null||e===void 0?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){Ru(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const e=t.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!Ru(n,e)||this.isContextMenuOnly())&&!Ru(r,e)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,e,n,r;const{getTriggerDOMNode:i}=this.$props;if(i){const o=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:Pl(this.triggerRef);return Pl(i(o))}try{const o=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:Pl(this.triggerRef);if(o)return o}catch{}return Pl(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:o,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&i&&e.push(QAe(i,o,t,a)),s&&e.push(s(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?T7(r,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Vr?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:r}=this,{prefixCls:i,destroyPopupOnHide:o,popupClassName:a,popupAnimation:s,popupTransitionName:l,popupStyle:u,mask:c,maskAnimation:f,maskTransitionName:d,zIndex:p,stretch:g,alignPoint:v,mobile:m,arrow:y,forceRender:b}=this.$props,{sPopupVisible:O,point:w}=this.$data,S=k(k({prefixCls:i,arrow:y,destroyPopupOnHide:o,visible:O,point:v?w:null,align:this.align,animation:s,getClassNameFromAlign:e,stretch:g,getRootDomNode:n,mask:c,zIndex:p,transitionName:l,maskAnimation:f,maskTransitionName:d,class:a,style:u,onAlign:r.onPopupAlign||qW},t),{ref:this.setPopupRef,mobile:m,forceRender:b});return h.createVNode(FAe,S,{default:this.$slots.popup||(()=>BPe(this,"popup"))})},attachParent(t){Dt.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,r=this.getRootDomNode();let i;e?(r||e.length===0)&&(i=e(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=Dt(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(t,e){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==t&&(N1(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:r}),i&&i(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;!e||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const r=e*1e3;if(this.clearDelayTimer(),r){const i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},r)}else this.setPopupVisible(t,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let e=()=>{};const n=xF(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("contextmenu")!==-1||e.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=xs(SF(this)),{alignPoint:n,getPopupContainer:r}=this.$props,i=e[0];this.childOriginEvents=xF(i);const o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[Vr?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[Vr?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,n&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=u=>{u&&(!u.relatedTarget||!Ru(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const a=Pe(i&&i.props&&i.props.class,t.class);a&&(o.class=a);const s=Gn(i,k(k({},o),{ref:"triggerRef"}),!0,!0),l=h.createVNode(M7,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return h.createVNode(h.Fragment,null,[s,l])}});var YAe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const e=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}},KAe=h.defineComponent({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ne.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ne.oneOfType([Number,Boolean]).def(!0),popupElement:ne.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.computed(()=>{const{dropdownMatchSelectWidth:s}=t;return qAe(s)}),a=h.ref();return i({getPopupElement:()=>a.value}),()=>{const s=k(k({},t),r),{empty:l=!1}=s,u=YAe(s,["empty"]),{visible:c,dropdownAlign:f,prefixCls:d,popupElement:p,dropdownClassName:g,dropdownStyle:v,direction:m="ltr",placement:y,dropdownMatchSelectWidth:b,containerWidth:O,dropdownRender:w,animation:S,transitionName:x,getPopupContainer:T,getTriggerDOMNode:$,onPopupVisibleChange:A,onPopupMouseEnter:P,onPopupFocusin:M,onPopupFocusout:I}=u,R=`${d}-dropdown`;let L=p;w&&(L=w({menuNode:p,props:t}));const D=S?`${R}-${S}`:x,B=k({minWidth:`${O}px`},v);return typeof b=="number"?B.width=`${b}px`:b&&(B.width=`${O}px`),h.createVNode(mO,K(K({},t),{},{showAction:A?["click"]:[],hideAction:A?["click"]:[],popupPlacement:y||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:R,popupTransitionName:D,popupAlign:f,popupVisible:c,getPopupContainer:T,popupClassName:Pe(g,{[`${R}-empty`]:l}),popupStyle:B,getTriggerDOMNode:$,onPopupVisibleChange:A}),{default:n.default,popup:()=>h.createVNode("div",{ref:a,onMouseenter:P,onFocusin:M,onFocusout:I},[L])})}}}),Se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:n}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Se.F1&&n<=Se.F12)return!1;switch(n){case Se.ALT:case Se.CAPS_LOCK:case Se.CONTEXT_MENU:case Se.CTRL:case Se.DOWN:case Se.END:case Se.ESC:case Se.HOME:case Se.INSERT:case Se.LEFT:case Se.MAC_FF_META:case Se.META:case Se.NUMLOCK:case Se.NUM_CENTER:case Se.PAGE_DOWN:case Se.PAGE_UP:case Se.PAUSE:case Se.PRINT_SCREEN:case Se.RIGHT:case Se.SHIFT:case Se.UP:case Se.WIN_KEY:case Se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Se.ZERO&&e<=Se.NINE||e>=Se.NUM_ZERO&&e<=Se.NUM_MULTIPLY||e>=Se.A&&e<=Se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Se.SPACE:case Se.QUESTION_MARK:case Se.NUM_PLUS:case Se.NUM_MINUS:case Se.NUM_PERIOD:case Se.NUM_DIVISION:case Se.SEMICOLON:case Se.DASH:case Se.EQUALS:case Se.COMMA:case Se.PERIOD:case Se.SLASH:case Se.APOSTROPHE:case Se.SINGLE_QUOTE:case Se.OPEN_SQUARE_BRACKET:case Se.BACKSLASH:case Se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},If=(t,e)=>{let{slots:n}=e;var r;const{class:i,customizeIcon:o,customizeIconProps:a,onMousedown:s,onClick:l}=t;let u;return typeof o=="function"?u=o(a):u=h.isVNode(o)?h.cloneVNode(o):o,h.createVNode("span",{class:i,onMousedown:c=>{c.preventDefault(),s&&s(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},[u!==void 0?u:h.createVNode("span",{class:i.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};If.inheritAttrs=!1,If.displayName="TransBtn",If.props={class:String,customizeIcon:ne.any,customizeIconProps:ne.any,onMousedown:Function,onClick:Function};var JAe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(l,u,c)=>{var f;(f=r.value)===null||f===void 0||f.setSelectionRange(l,u,c)},select:()=>{var l;(l=r.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:u}=t,c=JAe(t,["tag","value"]);return h.createVNode(l,K(K({},c),{},{ref:r,value:u}),null)}}});function tEe(){const t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function I7(t){const e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function nEe(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return typeof r>"u"||r===null||(e+=`${n}: ${t[n]};`),e},"")}var rEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.value,s],()=>{s.value||(a.value=t.value)},{immediate:!0});const l=T=>{n("change",T)},u=T=>{s.value=!0,T.target.composing=!0,n("compositionstart",T)},c=T=>{s.value=!1,T.target.composing=!1,n("compositionend",T);const $=document.createEvent("HTMLEvents");$.initEvent("input",!0,!0),T.target.dispatchEvent($),l(T)},f=T=>{if(s.value&&t.lazy){a.value=T.target.value;return}n("input",T)},d=T=>{n("blur",T)},p=T=>{n("focus",T)},g=()=>{o.value&&o.value.focus()},v=()=>{o.value&&o.value.blur()},m=T=>{n("keydown",T)},y=T=>{n("keyup",T)},b=(T,$,A)=>{var P;(P=o.value)===null||P===void 0||P.setSelectionRange(T,$,A)},O=()=>{var T;(T=o.value)===null||T===void 0||T.select()};i({focus:g,blur:v,input:h.computed(()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.input}),setSelectionRange:b,select:O,getSelectionStart:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionStart()},getSelectionEnd:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionEnd()},getScrollTop:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getScrollTop()}});const w=T=>{n("mousedown",T)},S=T=>{n("paste",T)},x=h.computed(()=>t.style&&typeof t.style!="string"?nEe(t.style):t.style);return()=>{const T=rEe(t,["style","lazy"]);return h.createVNode(eEe,K(K(K({},T),r),{},{style:x.value,onInput:f,onChange:l,onBlur:d,onFocus:p,ref:o,value:a.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:m,onPaste:S,onMousedown:w}),null)}}}),iEe={inputRef:ne.any,prefixCls:String,id:String,inputElement:ne.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),attrs:ne.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},D7=h.defineComponent({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:iEe,setup(t){let e=null;const n=h.inject("VCSelectContainerEvent");return()=>{var r;const{prefixCls:i,id:o,inputElement:a,disabled:s,tabindex:l,autofocus:u,autocomplete:c,editable:f,activeDescendantId:d,value:p,onKeydown:g,onMousedown:v,onChange:m,onPaste:y,onCompositionstart:b,onCompositionend:O,onFocus:w,onBlur:S,open:x,inputRef:T,attrs:$}=t;let A=a||h.createVNode(VA,null,null);const P=A.props||{},{onKeydown:M,onInput:I,onFocus:R,onBlur:L,onMousedown:D,onCompositionstart:B,onCompositionend:F,style:z}=P;return A=Gn(A,k(k(k(k(k({type:"search"},P),{id:o,ref:T,disabled:s,tabindex:l,lazy:!1,autocomplete:c||"off",autofocus:u,class:Pe(`${i}-selection-search-input`,(r=A==null?void 0:A.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":`${o}_list`,"aria-autocomplete":"list","aria-controls":`${o}_list`,"aria-activedescendant":d}),$),{value:f?p:"",readonly:!f,unselectable:f?null:"on",style:k(k({},z),{opacity:f?null:0}),onKeydown:W=>{g(W),M&&M(W)},onMousedown:W=>{v(W),D&&D(W)},onInput:W=>{m(W),I&&I(W)},onCompositionstart(W){b(W),B&&B(W)},onCompositionend(W){O(W),F&&F(W)},onPaste:y,onFocus:function(){clearTimeout(e),R&&R(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var W=arguments.length,j=new Array(W),H=0;H{L&&L(j[0]),S&&S(j[0]),n==null||n.blur(j[0])},100)}}),A.type==="textarea"?{}:{type:"search"}),!0,!0),A}}}),R7=`accept acceptcharset accesskey action allowfullscreen allowtransparency alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge charset checked classid classname colspan cols content contenteditable contextmenu controls coords crossorigin data datetime default defer dir disabled download draggable enctype form formaction formenctype formmethod formnovalidate formtarget frameborder headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media mediagroup method min minlength multiple muted name novalidate nonce open optimum pattern placeholder poster preload radiogroup readonly rel required reversed role rowspan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellcheck src srcdoc srclang srcset start step style summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),oEe="aria-",aEe="data-";function k7(t,e){return t.indexOf(e)===0}function yO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=k({},e);const r={};return Object.keys(t).forEach(i=>{(n.aria&&(i==="role"||k7(i,oEe))||n.data&&k7(i,aEe)||n.attr&&(R7.includes(i)||R7.includes(i.toLowerCase())))&&(r[i]=t[i])}),r}const N7=Symbol("OverflowContextProviderKey"),zA=h.defineComponent({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(t,e){let{slots:n}=e;return h.provide(N7,h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),sEe=()=>h.inject(N7,h.computed(()=>null));var lEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.responsive&&!t.display),o=h.ref();r({itemNodeRef:o});function a(s){t.registerSize(t.itemKey,s)}return h.onUnmounted(()=>{a(null)}),()=>{var s;const{prefixCls:l,invalidate:u,item:c,renderItem:f,responsive:d,registerSize:p,itemKey:g,display:v,order:m,component:y="div"}=t,b=lEe(t,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),O=(s=n.default)===null||s===void 0?void 0:s.call(n),w=f&&c!==$p?f(c):O;let S;u||(S={opacity:i.value?0:1,height:i.value?0:$p,overflowY:i.value?"hidden":$p,order:d?m:$p,pointerEvents:i.value?"none":$p,position:i.value?"absolute":$p});const x={};return i.value&&(x["aria-hidden"]=!0),h.createVNode(vp,{disabled:!d,onResize:T=>{let{offsetWidth:$}=T;a($)}},{default:()=>h.createVNode(y,K(K(K({class:Pe(!u&&l),style:S},x),b),{},{ref:o}),{default:()=>[w]})})}}});var FA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var o;if(!i.value){const{component:f="div"}=t,d=FA(t,["component"]);return h.createVNode(f,K(K({},d),r),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}const a=i.value,{className:s}=a,l=FA(a,["className"]),{class:u}=r,c=FA(r,["class"]);return h.createVNode(zA,{value:null},{default:()=>[h.createVNode(bO,K(K(K({class:Pe(s,u)},l),c),t),n)]})}}});var cEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ne.any,component:String,itemComponent:ne.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),Ml=h.defineComponent({name:"Overflow",inheritAttrs:!1,props:dEe(),emits:["visibleChange"],setup(t,e){let{attrs:n,emit:r,slots:i}=e;const o=h.computed(()=>t.ssr==="full"),a=h.shallowRef(null),s=h.computed(()=>a.value||0),l=h.shallowRef(new Map),u=h.shallowRef(0),c=h.shallowRef(0),f=h.shallowRef(0),d=h.shallowRef(null),p=h.shallowRef(null),g=h.computed(()=>p.value===null&&o.value?Number.MAX_SAFE_INTEGER:p.value||0),v=h.shallowRef(!1),m=h.computed(()=>`${t.prefixCls}-item`),y=h.computed(()=>Math.max(u.value,c.value)),b=h.computed(()=>!!(t.data.length&&t.maxCount===L7)),O=h.computed(()=>t.maxCount===B7),w=h.computed(()=>b.value||typeof t.maxCount=="number"&&t.data.length>t.maxCount),S=h.computed(()=>{let D=t.data;return b.value?a.value===null&&o.value?D=t.data:D=t.data.slice(0,Math.min(t.data.length,s.value/t.itemWidth)):typeof t.maxCount=="number"&&(D=t.data.slice(0,t.maxCount)),D}),x=h.computed(()=>b.value?t.data.slice(g.value+1):t.data.slice(S.value.length)),T=(D,B)=>{var F;return typeof t.itemKey=="function"?t.itemKey(D):(F=t.itemKey&&(D==null?void 0:D[t.itemKey]))!==null&&F!==void 0?F:B},$=h.computed(()=>t.renderItem||(D=>D)),A=(D,B)=>{p.value=D,B||(v.value=D{a.value=B.clientWidth},M=(D,B)=>{const F=new Map(l.value);B===null?F.delete(D):F.set(D,B),l.value=F},I=(D,B)=>{u.value=c.value,c.value=B},R=(D,B)=>{f.value=B},L=D=>l.value.get(T(S.value[D],D));return h.watch([s,l,c,f,()=>t.itemKey,S],()=>{if(s.value&&y.value&&S.value){let D=f.value;const B=S.value.length,F=B-1;if(!B){A(0),d.value=null;return}for(let z=0;zs.value){A(z-1),d.value=D-W-f.value+c.value;break}}t.suffix&&L(0)+f.value>s.value&&(d.value=null)}}),()=>{const D=v.value&&!!x.value.length,{itemComponent:B,renderRawItem:F,renderRawRest:z,renderRest:W,prefixCls:j="rc-overflow",suffix:H,component:Z="div",id:J,onMousedown:se}=t,{class:oe,style:de}=n,ie=cEe(n,["class","style"]);let ue={};d.value!==null&&b.value&&(ue={position:"absolute",left:`${d.value}px`,top:0});const ee={prefixCls:m.value,responsive:b.value,component:B,invalidate:O.value},X=F?(ye,Ne)=>{const Be=T(ye,Ne);return h.createVNode(zA,{key:Be,value:k(k({},ee),{order:Ne,item:ye,itemKey:Be,registerSize:M,display:Ne<=g.value})},{default:()=>[F(ye,Ne)]})}:(ye,Ne)=>{const Be=T(ye,Ne);return h.createVNode(bO,K(K({},ee),{},{order:Ne,key:Be,item:ye,renderItem:$.value,itemKey:Be,registerSize:M,display:Ne<=g.value}),null)};let Y=()=>null;const le={order:D?g.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:I,display:D};if(z)z&&(Y=()=>h.createVNode(zA,{value:k(k({},ee),le)},{default:()=>[z(x.value)]}));else{const ye=W||fEe;Y=()=>h.createVNode(bO,K(K({},ee),le),{default:()=>typeof ye=="function"?ye(x.value):ye})}const ve=()=>{var ye;return h.createVNode(Z,K({id:J,class:Pe(!O.value&&j,oe),style:de,onMousedown:se},ie),{default:()=>[S.value.map(X),w.value?Y():null,H&&h.createVNode(bO,K(K({},ee),{},{order:g.value,class:`${m.value}-suffix`,registerSize:R,display:!0,style:ue}),{default:()=>H}),(ye=i.default)===null||ye===void 0?void 0:ye.call(i)]})};return h.createVNode(vp,{disabled:!b.value,onResize:P},{default:ve})}}});Ml.Item=uEe,Ml.RESPONSIVE=L7,Ml.INVALIDATE=B7;const hEe=Symbol("TreeSelectLegacyContextPropsKey");function WA(){return h.inject(hEe,{})}const pEe={id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),compositionStatus:Boolean,removeIcon:ne.any,choiceTransitionName:String,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any.def(()=>t=>`+ ${t.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},V7=t=>{t.preventDefault(),t.stopPropagation()},gEe=h.defineComponent({name:"MultipleSelectSelector",inheritAttrs:!1,props:pEe,setup(t){const e=h.shallowRef(),n=h.shallowRef(0),r=h.shallowRef(!1),i=WA(),o=h.computed(()=>`${t.prefixCls}-selection`),a=h.computed(()=>t.open||t.mode==="tags"?t.searchValue:""),s=h.computed(()=>t.mode==="tags"||t.showSearch&&(t.open||r.value)),l=h.ref("");h.watchEffect(()=>{l.value=a.value}),h.onMounted(()=>{h.watch(l,()=>{n.value=e.value.scrollWidth},{flush:"post",immediate:!0})});function u(g,v,m,y,b){return h.createVNode("span",{class:Pe(`${o.value}-item`,{[`${o.value}-item-disabled`]:m}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[h.createVNode("span",{class:`${o.value}-item-content`},[v]),y&&h.createVNode(If,{class:`${o.value}-item-remove`,onMousedown:V7,onClick:b,customizeIcon:t.removeIcon},{default:()=>[h.createTextVNode("×")]})])}function c(g,v,m,y,b,O){var w;const S=T=>{V7(T),t.onToggleOpen(!open)};let x=O;return i.keyEntities&&(x=((w=i.keyEntities[g])===null||w===void 0?void 0:w.node)||{}),h.createVNode("span",{key:g,onMousedown:S},[t.tagRender({label:v,value:g,disabled:m,closable:y,onClose:b,option:x})])}function f(g){const{disabled:v,label:m,value:y,option:b}=g,O=!t.disabled&&!v;let w=m;if(typeof t.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const x=String(w);x.length>t.maxTagTextLength&&(w=`${x.slice(0,t.maxTagTextLength)}...`)}const S=x=>{var T;x&&x.stopPropagation(),(T=t.onRemove)===null||T===void 0||T.call(t,g)};return typeof t.tagRender=="function"?c(y,w,v,O,S,b):u(m,w,v,O,S)}function d(g){const{maxTagPlaceholder:v=y=>`+ ${y.length} ...`}=t,m=typeof v=="function"?v(g):v;return u(m,m,!1)}const p=g=>{const v=g.target.composing;l.value=g.target.value,v||t.onInputChange(g)};return()=>{const{id:g,prefixCls:v,values:m,open:y,inputRef:b,placeholder:O,disabled:w,autofocus:S,autocomplete:x,activeDescendantId:T,tabindex:$,compositionStatus:A,onInputPaste:P,onInputKeyDown:M,onInputMouseDown:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=h.createVNode("div",{class:`${o.value}-search`,style:{width:n.value+"px"},key:"input"},[h.createVNode(D7,{inputRef:b,open:y,prefixCls:v,id:g,inputElement:null,disabled:w,autofocus:S,autocomplete:x,editable:s.value,activeDescendantId:T,value:l.value,onKeydown:M,onMousedown:I,onChange:p,onPaste:P,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:yO(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),h.createVNode("span",{ref:e,class:`${o.value}-search-mirror`,"aria-hidden":!0},[l.value,h.createTextVNode(" ")])]),B=h.createVNode(Ml,{prefixCls:`${o.value}-overflow`,data:m,renderItem:f,renderRest:d,suffix:D,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return h.createVNode(h.Fragment,null,[B,!m.length&&!a.value&&!A&&h.createVNode("span",{class:`${o.value}-placeholder`},[O])])}}}),vEe={inputElement:ne.any,id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},QA=h.defineComponent({name:"SingleSelector",setup(t){const e=h.shallowRef(!1),n=h.computed(()=>t.mode==="combobox"),r=h.computed(()=>n.value||t.showSearch),i=h.computed(()=>{let c=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(c=t.activeValue),c}),o=WA();h.watch([n,()=>t.activeValue],()=>{n.value&&(e.value=!1)},{immediate:!0});const a=h.computed(()=>t.mode!=="combobox"&&!t.open&&!t.showSearch?!1:!!i.value||t.compositionStatus),s=h.computed(()=>{const c=t.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),l=()=>{if(t.values[0])return null;const c=a.value?{visibility:"hidden"}:void 0;return h.createVNode("span",{class:`${t.prefixCls}-selection-placeholder`,style:c},[t.placeholder])},u=c=>{c.target.composing||(e.value=!0,t.onInputChange(c))};return()=>{var c,f,d,p;const{inputElement:g,prefixCls:v,id:m,values:y,inputRef:b,disabled:O,autofocus:w,autocomplete:S,activeDescendantId:x,open:T,tabindex:$,optionLabelRender:A,onInputKeyDown:P,onInputMouseDown:M,onInputPaste:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=y[0];let B=null;if(D&&o.customSlots){const F=(c=D.key)!==null&&c!==void 0?c:D.value,z=((f=o.keyEntities[F])===null||f===void 0?void 0:f.node)||{};B=o.customSlots[(d=z.slots)===null||d===void 0?void 0:d.title]||o.customSlots.title||D.label,typeof B=="function"&&(B=B(z))}else B=A&&D?A(D.option):D==null?void 0:D.label;return h.createVNode(h.Fragment,null,[h.createVNode("span",{class:`${v}-selection-search`},[h.createVNode(D7,{inputRef:b,prefixCls:v,id:m,open:T,inputElement:g,disabled:O,autofocus:w,autocomplete:S,editable:r.value,activeDescendantId:x,value:i.value,onKeydown:P,onMousedown:M,onChange:u,onPaste:I,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:yO(t,!0)},null)]),!n.value&&D&&!a.value&&h.createVNode("span",{class:`${v}-selection-item`,title:s.value},[h.createVNode(h.Fragment,{key:(p=D.key)!==null&&p!==void 0?p:D.value},[B])]),l()])}}});QA.props=vEe,QA.inheritAttrs=!1;function mEe(t){return![Se.ESC,Se.SHIFT,Se.BACKSPACE,Se.TAB,Se.WIN_KEY,Se.ALT,Se.META,Se.WIN_KEY_RIGHT,Se.CTRL,Se.SEMICOLON,Se.EQUALS,Se.CAPS_LOCK,Se.CONTEXT_MENU,Se.F1,Se.F2,Se.F3,Se.F4,Se.F5,Se.F6,Se.F7,Se.F8,Se.F9,Se.F10,Se.F11,Se.F12].includes(t)}function z7(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;h.onBeforeUnmount(()=>{clearTimeout(n)});function r(i){(i||e===null)&&(e=i),clearTimeout(n),n=setTimeout(()=>{e=null},t)}return[()=>e,r]}function Xm(){const t=e=>{t.current=e};return t}const yEe=h.defineComponent({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ne.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ne.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),disabled:{type:Boolean,default:void 0},placeholder:ne.any,removeIcon:ne.any,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(t,e){let{expose:n}=e;const r=Xm(),i=h.ref(!1),[o,a]=z7(0),s=y=>{const{which:b}=y;(b===Se.UP||b===Se.DOWN)&&y.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(y),b===Se.ENTER&&t.mode==="tags"&&!i.value&&!t.open&&t.onSearchSubmit(y.target.value),mEe(b)&&t.onToggleOpen(!0)},l=()=>{a(!0)};let u=null;const c=y=>{t.onSearch(y,!0,i.value)!==!1&&t.onToggleOpen(!0)},f=()=>{i.value=!0},d=y=>{i.value=!1,t.mode!=="combobox"&&c(y.target.value)},p=y=>{let{target:{value:b}}=y;if(t.tokenWithEnter&&u&&/[\r\n]/.test(u)){const O=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");b=b.replace(O,u)}u=null,c(b)},g=y=>{const{clipboardData:b}=y;u=b.getData("text")},v=y=>{let{target:b}=y;b!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},m=y=>{const b=o();y.target!==r.current&&!b&&y.preventDefault(),(t.mode!=="combobox"&&(!t.showSearch||!b)||!t.open)&&(t.open&&t.onSearch("",!0,!1),t.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:y,domRef:b,mode:O}=t,w={inputRef:r,onInputKeyDown:s,onInputMouseDown:l,onInputChange:p,onInputPaste:g,compositionStatus:i.value,onInputCompositionStart:f,onInputCompositionEnd:d},S=O==="multiple"||O==="tags"?h.createVNode(gEe,K(K({},t),w),null):h.createVNode(QA,K(K({},t),w),null);return h.createVNode("div",{ref:b,class:`${y}-selector`,onClick:v,onMousedown:m},[S])}}});function bEe(t,e,n){function r(i){var o,a,s;let l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);const u=[(o=t[0])===null||o===void 0?void 0:o.value,(s=(a=t[1])===null||a===void 0?void 0:a.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(c=>c&&!c.contains(l)&&c!==l)&&n(!1)}h.onMounted(()=>{window.addEventListener("mousedown",r)}),h.onBeforeUnmount(()=>{window.removeEventListener("mousedown",r)})}function _Ee(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const e=h.shallowRef(!1);let n;const r=()=>{clearTimeout(n)};return h.onMounted(()=>{r()}),[e,(o,a)=>{r(),n=setTimeout(()=>{e.value=o,a&&a()},t)},r]}const F7=Symbol("BaseSelectContextKey");function OEe(t){return h.provide(F7,t)}function wEe(){return h.inject(F7,{})}const HA=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substring(0,4))};function W7(t){if(!h.isRef(t))return h.reactive(t);const e=new Proxy({},{get(n,r,i){return Reflect.get(t.value,r,i)},set(n,r,i){return t.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(t.value,r)},has(n,r){return Reflect.has(t.value,r)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(e)}var SEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ne.any,emptyOptions:Boolean}),Q7=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ne.any,placeholder:ne.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ne.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ne.any,clearIcon:ne.any,removeIcon:ne.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),TEe=()=>k(k({},CEe()),Q7());function GA(t){return t==="tags"||t==="multiple"}const PEe=h.defineComponent({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Ar(TEe(),{showAction:[],notFoundContent:"Not Found"}),setup(t,e){let{attrs:n,expose:r,slots:i}=e;const o=h.computed(()=>GA(t.mode)),a=h.computed(()=>t.showSearch!==void 0?t.showSearch:o.value||t.mode==="combobox"),s=h.shallowRef(!1);h.onMounted(()=>{s.value=HA()});const l=WA(),u=h.shallowRef(null),c=Xm(),f=h.shallowRef(null),d=h.shallowRef(null),p=h.shallowRef(null),g=h.ref(!1),[v,m,y]=_Ee();r({focus:()=>{var X;(X=d.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=d.value)===null||X===void 0||X.blur()},scrollTo:X=>{var Y;return(Y=p.value)===null||Y===void 0?void 0:Y.scrollTo(X)}});const w=h.computed(()=>{var X;if(t.mode!=="combobox")return t.searchValue;const Y=(X=t.displayValues[0])===null||X===void 0?void 0:X.value;return typeof Y=="string"||typeof Y=="number"?String(Y):""}),S=t.open!==void 0?t.open:t.defaultOpen,x=h.shallowRef(S),T=h.shallowRef(S),$=X=>{x.value=t.open!==void 0?t.open:X,T.value=x.value};h.watch(()=>t.open,()=>{$(t.open)});const A=h.computed(()=>!t.notFoundContent&&t.emptyOptions);h.watchEffect(()=>{T.value=x.value,(t.disabled||A.value&&T.value&&t.mode==="combobox")&&(T.value=!1)});const P=h.computed(()=>A.value?!1:T.value),M=X=>{const Y=X!==void 0?X:!T.value;T.value!==Y&&!t.disabled&&($(Y),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(Y))},I=h.computed(()=>(t.tokenSeparators||[]).some(X=>[` `,`\r `].includes(X))),R=(X,Y,le)=>{var ve,ye;let Ne=!0,Be=X;(ve=t.onActiveValueChange)===null||ve===void 0||ve.call(t,null);const Me=le?null:Y$e(X,t.tokenSeparators);return t.mode!=="combobox"&&Me&&(Be="",(ye=t.onSearchSplit)===null||ye===void 0||ye.call(t,Me),M(!1),Ne=!1),t.onSearch&&w.value!==Be&&t.onSearch(Be,{source:Y?"typing":"effect"}),Ne},L=X=>{var Y;!X||!X.trim()||(Y=t.onSearch)===null||Y===void 0||Y.call(t,X,{source:"submit"})};h.watch(T,()=>{!T.value&&!o.value&&t.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),h.watch(()=>t.disabled,()=>{x.value&&t.disabled&&$(!1),t.disabled&&!g.value&&m(!1)},{immediate:!0});const[D,B]=z7(),F=function(X){var Y;const le=D(),{which:ve}=X;if(ve===Se.ENTER&&(t.mode!=="combobox"&&X.preventDefault(),T.value||M(!0)),B(!!w.value),ve===Se.BACKSPACE&&!le&&o.value&&!w.value&&t.displayValues.length){const Me=[...t.displayValues];let $e=null;for(let _e=Me.length-1;_e>=0;_e-=1){const De=Me[_e];if(!De.disabled){Me.splice(_e,1),$e=De;break}}$e&&t.onDisplayValuesChange(Me,{type:"remove",values:[$e]})}for(var ye=arguments.length,Ne=new Array(ye>1?ye-1:0),Be=1;Be1?Y-1:0),ve=1;ve{const Y=t.displayValues.filter(le=>le!==X);t.onDisplayValuesChange(Y,{type:"remove",values:[X]})},j=h.shallowRef(!1),H=function(){m(!0),t.disabled||(t.onFocus&&!j.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes("focus")&&M(!0)),j.value=!0},Z=h.ref(!1),J=function(){if(Z.value||(g.value=!0,m(!1,()=>{j.value=!1,g.value=!1,M(!1)}),t.disabled))return;const X=w.value;X&&(t.mode==="tags"?t.onSearch(X,{source:"submit"}):t.mode==="multiple"&&t.onSearch("",{source:"blur"})),t.onBlur&&t.onBlur(...arguments)},se=()=>{Z.value=!0},oe=()=>{Z.value=!1};h.provide("VCSelectContainerEvent",{focus:H,blur:J});const de=[];h.onMounted(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)}),h.onBeforeUnmount(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)});const ie=function(X){var Y,le;const{target:ve}=X,ye=(Y=f.value)===null||Y===void 0?void 0:Y.getPopupElement();if(ye&&ye.contains(ve)){const $e=setTimeout(()=>{var _e;const De=de.indexOf($e);De!==-1&&de.splice(De,1),y(),!s.value&&!ye.contains(document.activeElement)&&((_e=d.value)===null||_e===void 0||_e.focus())});de.push($e)}for(var Ne=arguments.length,Be=new Array(Ne>1?Ne-1:0),Me=1;Me{};return h.onMounted(()=>{h.watch(P,()=>{var X;if(P.value){const Y=Math.ceil((X=u.value)===null||X===void 0?void 0:X.offsetWidth);ue.value!==Y&&!Number.isNaN(Y)&&(ue.value=Y)}},{immediate:!0,flush:"post"})}),bEe([u,f],P,M),OEe(W7(k(k({},h.toRefs(t)),{open:T,triggerOpen:P,showSearch:a,multiple:o,toggleOpen:M}))),()=>{const X=k(k({},t),n),{prefixCls:Y,id:le,open:ve,defaultOpen:ye,mode:Ne,showSearch:Be,searchValue:Me,onSearch:$e,allowClear:_e,clearIcon:De,showArrow:Fe,inputIcon:ct,disabled:vt,loading:zt,getInputElement:we,getPopupContainer:rt,placement:Mt,animation:mn,transitionName:pn,dropdownStyle:pr,dropdownClassName:Ni,dropdownMatchSelectWidth:du,dropdownRender:hu,dropdownAlign:Uc,showAction:Th,direction:vl,tokenSeparators:Ph,tagRender:$h,optionLabelRender:x_,onPopupScroll:Zc,onDropdownVisibleChange:C_,onFocus:E3,onBlur:Spe,onKeyup:xpe,onKeydown:Cpe,onMousedown:Tpe,onClear:Vv,omitDomProps:T_,getRawInputElement:EP,displayValues:zv,onDisplayValuesChange:P_,emptyOptions:M3,activeDescendantId:$_,activeValue:I3,OptionList:D3}=X,R3=SEe(X,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),MP=Ne==="combobox"&&we&&we()||null,Ah=typeof EP=="function"&&EP(),A_=k({},R3);let IP;Ah&&(IP=Aa=>{M(Aa)}),xEe.forEach(Aa=>{delete A_[Aa]}),T_==null||T_.forEach(Aa=>{delete A_[Aa]});const DP=Fe!==void 0?Fe:zt||!o.value&&Ne!=="combobox";let E_;DP&&(E_=h.createVNode(If,{class:Pe(`${Y}-arrow`,{[`${Y}-arrow-loading`]:zt}),customizeIcon:ct,customizeIconProps:{loading:zt,searchValue:w.value,open:T.value,focused:v.value,showSearch:a.value}},null));let RP;const k3=()=>{Vv==null||Vv(),P_([],{type:"clear",values:zv}),R("",!1,!1)};!vt&&_e&&(zv.length||w.value)&&(RP=h.createVNode(If,{class:`${Y}-clear`,onMousedown:k3,customizeIcon:De},{default:()=>[h.createTextVNode("×")]}));const N3=h.createVNode(D3,{ref:p},k(k({},l.customSlots),{option:i.option})),L3=Pe(Y,n.class,{[`${Y}-focused`]:v.value,[`${Y}-multiple`]:o.value,[`${Y}-single`]:!o.value,[`${Y}-allow-clear`]:_e,[`${Y}-show-arrow`]:DP,[`${Y}-disabled`]:vt,[`${Y}-loading`]:zt,[`${Y}-open`]:T.value,[`${Y}-customize-input`]:MP,[`${Y}-show-search`]:a.value}),kP=h.createVNode(KAe,{ref:f,disabled:vt,prefixCls:Y,visible:P.value,popupElement:N3,containerWidth:ue.value,animation:mn,transitionName:pn,dropdownStyle:pr,dropdownClassName:Ni,direction:vl,dropdownMatchSelectWidth:du,dropdownRender:hu,dropdownAlign:Uc,placement:Mt,getPopupContainer:rt,empty:M3,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:IP,onPopupMouseEnter:ee,onPopupFocusin:se,onPopupFocusout:oe},{default:()=>Ah?po(Ah)&&Gn(Ah,{ref:c},!1,!0):h.createVNode(yEe,K(K({},t),{},{domRef:c,prefixCls:Y,inputElement:MP,ref:d,id:le,showSearch:a.value,mode:Ne,activeDescendantId:$_,tagRender:$h,optionLabelRender:x_,values:zv,open:T.value,onToggleOpen:M,activeValue:I3,searchValue:w.value,onSearch:R,onSearchSubmit:L,onRemove:W,tokenWithEnter:I.value}),null)});let M_;return Ah?M_=kP:M_=h.createVNode("div",K(K({},A_),{},{class:L3,ref:u,onMousedown:ie,onKeydown:F,onKeyup:z}),[v.value&&!T.value&&h.createVNode("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${zv.map(Aa=>{let{label:NP,value:Fv}=Aa;return["number","string"].includes(typeof NP)?NP:Fv}).join(", ")}`]),kP,E_,RP]),M_}}}),_O=(t,e)=>{let{height:n,offset:r,prefixCls:i,onInnerResize:o}=t,{slots:a}=e;var s;let l={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:`${n}px`,position:"relative",overflow:"hidden"},u=k(k({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),h.createVNode("div",{style:l},[h.createVNode(vp,{onResize:c=>{let{offsetHeight:f}=c;f&&o&&o()}},{default:()=>[h.createVNode("div",{style:u,class:Pe({[`${i}-holder-inner`]:i})},[(s=a.default)===null||s===void 0?void 0:s.call(a)])]})])};_O.displayName="Filter",_O.inheritAttrs=!1,_O.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const H7=(t,e)=>{let{setRef:n}=t,{slots:r}=e;var i;const o=vr((i=r.default)===null||i===void 0?void 0:i.call(r));return o&&o.length?h.cloneVNode(o[0],{ref:n}):o};H7.props={setRef:{type:Function,default:()=>{}}};const $Ee=20;function G7(t){return"touches"in t?t.touches[0].pageY:t.pageY}const AEe=h.defineComponent({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Xm(),thumbRef:Xm(),visibleTimeout:null,state:h.reactive({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var t,e;(t=this.scrollbarRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onScrollbarTouchStart,Vr?{passive:!1}:!1),(e=this.thumbRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onMouseDown,Vr?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(t){t.preventDefault()},onContainerMouseDown(t){t.stopPropagation(),t.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Vr?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,Vr?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Vr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Vr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Dt.cancel(this.moveRaf)},onMouseDown(t){const{onStartMove:e}=this.$props;k(this.state,{dragging:!0,pageY:G7(t),startTop:this.getTop()}),e(),this.patchEvents(),t.stopPropagation(),t.preventDefault()},onMouseMove(t){const{dragging:e,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(Dt.cancel(this.moveRaf),e){const o=G7(t)-n,a=r+o,s=this.getEnableScrollRange(),l=this.getEnableHeightRange(),u=l?a/l:0,c=Math.ceil(u*s);this.moveRaf=Dt(()=>{i(c)})}},onMouseUp(){const{onStopMove:t}=this.$props;this.state.dragging=!1,t(),this.removeEvents()},getSpinHeight(){const{height:t,scrollHeight:e}=this.$props;let n=t/e*100;return n=Math.max(n,$Ee),n=Math.min(n,t/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:t,height:e}=this.$props;return t-e||0},getEnableHeightRange(){const{height:t}=this.$props,e=this.getSpinHeight();return t-e||0},getTop(){const{scrollTop:t}=this.$props,e=this.getEnableScrollRange(),n=this.getEnableHeightRange();return t===0||e===0?0:t/e*n},showScroll(){const{height:t,scrollHeight:e}=this.$props;return e>t}},render(){const{dragging:t,visible:e}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",i=this.getTop()+"px",o=this.showScroll(),a=o&&e;return h.createVNode("div",{ref:this.scrollbarRef,class:Pe(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:o}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:a?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[h.createVNode("div",{ref:this.thumbRef,class:Pe(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:t}),style:{width:"100%",height:r,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function EEe(t,e,n,r){const i=new Map,o=new Map,a=h.ref(Symbol("update"));h.watch(t,()=>{a.value=Symbol("update")});let s;function l(){Dt.cancel(s)}function u(){l(),s=Dt(()=>{i.forEach((f,d)=>{if(f&&f.offsetParent){const{offsetHeight:p}=f;o.get(d)!==p&&(a.value=Symbol("update"),o.set(d,f.offsetHeight))}})})}function c(f,d){const p=e(f);i.get(p),d?(i.set(p,d.$el||d),u()):i.delete(p)}return h.onUnmounted(()=>{l()}),[c,u,o,a]}function MEe(t,e,n,r,i,o,a,s){let l;return u=>{if(u==null){s();return}Dt.cancel(l);const c=e.value,f=r.itemHeight;if(typeof u=="number")a(u);else if(u&&typeof u=="object"){let d;const{align:p}=u;"index"in u?{index:d}=u:d=c.findIndex(m=>i(m)===u.key);const{offset:g=0}=u,v=(m,y)=>{if(m<0||!t.value)return;const b=t.value.clientHeight;let O=!1,w=y;if(b){const S=y||p;let x=0,T=0,$=0;const A=Math.min(c.length,d);for(let I=0;I<=A;I+=1){const R=i(c[I]);T=x;const L=n.get(R);$=T+(L===void 0?f:L),x=$,I===d&&L===void 0&&(O=!0)}const P=t.value.scrollTop;let M=null;switch(S){case"top":M=T-g;break;case"bottom":M=$-b+g;break;default:{const I=P+b;TI&&(w="bottom")}}M!==null&&M!==P&&a(M)}l=Dt(()=>{O&&o(),v(m-1,w)},2)};v(5)}}}const IEe=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),j7=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=o<0&&t.value||o>0&&e.value;return a&&s?(clearTimeout(r),n=!1):(!s||n)&&i(),!n&&s}};function DEe(t,e,n,r){let i=0,o=null,a=null,s=!1;const l=j7(e,n);function u(f){if(!t.value)return;Dt.cancel(o);const{deltaY:d}=f;i+=d,a=d,!l(d)&&(IEe||f.preventDefault(),o=Dt(()=>{r(i*(s?10:1)),i=0}))}function c(f){t.value&&(s=f.detail===a)}return[u,c]}const REe=14/15;function kEe(t,e,n){let r=!1,i=0,o=null,a=null;const s=()=>{o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=d=>{if(r){const p=Math.ceil(d.touches[0].pageY);let g=i-p;i=p,n(g)&&d.preventDefault(),clearInterval(a),a=setInterval(()=>{g*=REe,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a)},16)}},u=()=>{r=!1,s()},c=d=>{s(),d.touches.length===1&&!r&&(r=!0,i=Math.ceil(d.touches[0].pageY),o=d.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},f=()=>{};h.onMounted(()=>{document.addEventListener("touchmove",f,{passive:!1}),h.watch(t,d=>{e.value.removeEventListener("touchstart",c),s(),clearInterval(a),d&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",f)})}var NEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const u=e+l,c=i(s,u,{}),f=a(s);return h.createVNode(H7,{key:f,setRef:d=>r(s,d)},{default:()=>[c]})})}const zEe=h.defineComponent({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ne.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(t,e){let{expose:n}=e;const r=h.computed(()=>{const{height:W,itemHeight:j,virtual:H}=t;return!!(H!==!1&&W&&j)}),i=h.computed(()=>{const{height:W,itemHeight:j,data:H}=t;return r.value&&H&&j*H.length>W}),o=h.reactive({scrollTop:0,scrollMoving:!1}),a=h.computed(()=>t.data||LEe),s=h.shallowRef([]);h.watch(a,()=>{s.value=h.toRaw(a.value).slice()},{immediate:!0});const l=h.shallowRef(W=>{});h.watch(()=>t.itemKey,W=>{typeof W=="function"?l.value=W:l.value=j=>j==null?void 0:j[W]},{immediate:!0});const u=h.shallowRef(),c=h.shallowRef(),f=h.shallowRef(),d=W=>l.value(W),p={getKey:d};function g(W){let j;typeof W=="function"?j=W(o.scrollTop):j=W;const H=x(j);u.value&&(u.value.scrollTop=H),o.scrollTop=H}const[v,m,y,b]=EEe(s,d),O=h.reactive({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=h.shallowRef(0);h.onMounted(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.onUpdated(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.watch([r,s],()=>{r.value||k(O,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})},{immediate:!0}),h.watch([r,s,w,i],()=>{r.value&&!i.value&&k(O,{scrollHeight:w.value,start:0,end:s.value.length-1,offset:void 0}),u.value&&(o.scrollTop=u.value.scrollTop)},{immediate:!0}),h.watch([i,r,()=>o.scrollTop,s,b,()=>t.height,w],()=>{if(!r.value||!i.value)return;let W=0,j,H,Z;const J=s.value.length,se=s.value,oe=o.scrollTop,{itemHeight:de,height:ie}=t,ue=oe+ie;for(let ee=0;ee=oe&&(j=ee,H=W),Z===void 0&&ve>ue&&(Z=ee),W=ve}j===void 0&&(j=0,H=0,Z=Math.ceil(ie/de)),Z===void 0&&(Z=J-1),Z=Math.min(Z+1,J),k(O,{scrollHeight:W,start:j,end:Z,offset:H})},{immediate:!0});const S=h.computed(()=>O.scrollHeight-t.height);function x(W){let j=W;return Number.isNaN(S.value)||(j=Math.min(j,S.value)),j=Math.max(j,0),j}const T=h.computed(()=>o.scrollTop<=0),$=h.computed(()=>o.scrollTop>=S.value),A=j7(T,$);function P(W){g(W)}function M(W){var j;const{scrollTop:H}=W.currentTarget;H!==o.scrollTop&&g(H),(j=t.onScroll)===null||j===void 0||j.call(t,W)}const[I,R]=DEe(r,T,$,W=>{g(j=>j+W)});kEe(r,u,(W,j)=>A(W,j)?!1:(I({preventDefault(){},deltaY:W}),!0));function L(W){r.value&&W.preventDefault()}const D=()=>{u.value&&(u.value.removeEventListener("wheel",I,Vr?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",R),u.value.removeEventListener("MozMousePixelScroll",L))};h.watchEffect(()=>{h.nextTick(()=>{u.value&&(D(),u.value.addEventListener("wheel",I,Vr?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",R),u.value.addEventListener("MozMousePixelScroll",L))})}),h.onBeforeUnmount(()=>{D()});const B=MEe(u,s,y,t,d,m,g,()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()});n({scrollTo:B});const F=h.computed(()=>{let W=null;return t.height&&(W=k({[t.fullHeight?"height":"maxHeight"]:t.height+"px"},BEe),r.value&&(W.overflowY="hidden",o.scrollMoving&&(W.pointerEvents="none"))),W});return h.watch([()=>O.start,()=>O.end,s],()=>{if(t.onVisibleChange){const W=s.value.slice(O.start,O.end+1);t.onVisibleChange(W,s.value)}},{flush:"post"}),{state:o,mergedData:s,componentStyle:F,onFallbackScroll:M,onScrollBar:P,componentRef:u,useVirtual:r,calRes:O,collectHeight:m,setInstance:v,sharedConfig:p,scrollBarRef:f,fillerInnerRef:c,delayHideScrollBar:()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()}}},render(){const t=k(k({},this.$props),this.$attrs),{prefixCls:e="rc-virtual-list",height:n,itemHeight:r,fullHeight:i,data:o,itemKey:a,virtual:s,component:l="div",onScroll:u,children:c=this.$slots.default,style:f,class:d}=t,p=NEe(t,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=Pe(e,d),{scrollTop:v}=this.state,{scrollHeight:m,offset:y,start:b,end:O}=this.calRes,{componentStyle:w,onFallbackScroll:S,onScrollBar:x,useVirtual:T,collectHeight:$,sharedConfig:A,setInstance:P,mergedData:M,delayHideScrollBar:I}=this;return h.createVNode("div",K({style:k(k({},f),{position:"relative"}),class:g},p),[h.createVNode(l,{class:`${e}-holder`,style:w,ref:"componentRef",onScroll:S,onMouseenter:I},{default:()=>[h.createVNode(_O,{prefixCls:e,height:m,offset:y,onInnerResize:$,ref:"fillerInnerRef"},{default:()=>VEe(M,b,O,P,c,A)})]}),T&&h.createVNode(AEe,{ref:"scrollBarRef",prefixCls:e,scrollTop:v,height:n,scrollHeight:m,count:M.length,onScroll:x,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function FEe(t,e,n){const r=h.ref(t());return h.watch(e,(i,o)=>{n?n(i,o)&&(r.value=t()):r.value=t()}),r}function WEe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const U7=Symbol("SelectContextKey");function QEe(t){return h.provide(U7,t)}function HEe(){return h.inject(U7,{})}var GEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i`${i.prefixCls}-item`),s=FEe(()=>o.flattenOptions,[()=>i.open,()=>o.flattenOptions],S=>S[0]),l=Xm(),u=S=>{S.preventDefault()},c=S=>{l.current&&l.current.scrollTo(typeof S=="number"?{index:S}:S)},f=function(S){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const T=s.value.length;for(let $=0;$1&&arguments[1]!==void 0?arguments[1]:!1;d.activeIndex=S;const T={source:x?"keyboard":"mouse"},$=s.value[S];if(!$){o.onActiveValue(null,-1,T);return}o.onActiveValue($.value,S,T)};h.watch([()=>s.value.length,()=>i.searchValue],()=>{p(o.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});const g=S=>o.rawValues.has(S)&&i.mode!=="combobox";h.watch([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&o.rawValues.size===1){const S=Array.from(o.rawValues)[0],x=h.toRaw(s.value).findIndex(T=>{let{data:$}=T;return $[o.fieldNames.value]===S});x!==-1&&(p(x),h.nextTick(()=>{c(x)}))}i.open&&h.nextTick(()=>{var S;(S=l.current)===null||S===void 0||S.scrollTo(void 0)})},{immediate:!0,flush:"post"});const v=S=>{S!==void 0&&o.onSelect(S,{selected:!o.rawValues.has(S)}),i.multiple||i.toggleOpen(!1)},m=S=>typeof S.label=="function"?S.label():S.label;function y(S){const x=s.value[S];if(!x)return null;const T=x.data||{},{value:$}=T,{group:A}=x,P=yO(T,!0),M=m(x);return x?h.createVNode("div",K(K({"aria-label":typeof M=="string"&&!A?M:null},P),{},{key:S,role:A?"presentation":"option",id:`${i.id}_list_${S}`,"aria-selected":g($)}),[$]):null}return n({onKeydown:S=>{const{which:x,ctrlKey:T}=S;switch(x){case Se.N:case Se.P:case Se.UP:case Se.DOWN:{let $=0;if(x===Se.UP?$=-1:x===Se.DOWN?$=1:WEe()&&T&&(x===Se.N?$=1:x===Se.P&&($=-1)),$!==0){const A=f(d.activeIndex+$,$);c(A),p(A,!0)}break}case Se.ENTER:{const $=s.value[d.activeIndex];$&&!$.data.disabled?v($.value):v(void 0),i.open&&S.preventDefault();break}case Se.ESC:i.toggleOpen(!1),i.open&&S.stopPropagation()}},onKeyup:()=>{},scrollTo:S=>{c(S)}}),()=>{const{id:S,notFoundContent:x,onPopupScroll:T}=i,{menuItemSelectedIcon:$,fieldNames:A,virtual:P,listHeight:M,listItemHeight:I}=o,R=r.option,{activeIndex:L}=d,D=Object.keys(A).map(B=>A[B]);return s.value.length===0?h.createVNode("div",{role:"listbox",id:`${S}_list`,class:`${a.value}-empty`,onMousedown:u},[x]):h.createVNode(h.Fragment,null,[h.createVNode("div",{role:"listbox",id:`${S}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(L-1),y(L),y(L+1)]),h.createVNode(zEe,{itemKey:"key",ref:l,data:s.value,height:M,itemHeight:I,fullHeight:!1,onMousedown:u,onScroll:T,virtual:P},{default:(B,F)=>{var z;const{group:W,groupOption:j,data:H,value:Z}=B,{key:J}=H,se=typeof B.label=="function"?B.label():B.label;if(W){const De=(z=H.title)!==null&&z!==void 0?z:Z7(se)&&se;return h.createVNode("div",{class:Pe(a.value,`${a.value}-group`),title:De},[R?R(H):se!==void 0?se:J])}const{disabled:oe,title:de,children:ie,style:ue,class:ee,className:X}=H,Y=GEe(H,["disabled","title","children","style","class","className"]),le=Er(Y,D),ve=g(Z),ye=`${a.value}-option`,Ne=Pe(a.value,ye,ee,X,{[`${ye}-grouped`]:j,[`${ye}-active`]:L===F&&!oe,[`${ye}-disabled`]:oe,[`${ye}-selected`]:ve}),Be=m(B),Me=!$||typeof $=="function"||ve,$e=typeof Be=="number"?Be:Be||Z;let _e=Z7($e)?$e.toString():void 0;return de!==void 0&&(_e=de),h.createVNode("div",K(K({},le),{},{"aria-selected":ve,class:Ne,title:_e,onMousemove:De=>{Y.onMousemove&&Y.onMousemove(De),!(L===F||oe)&&p(F)},onClick:De=>{oe||v(Z),Y.onClick&&Y.onClick(De)},style:ue}),[h.createVNode("div",{class:`${ye}-content`},[R?R(H):$e]),po($)||ve,Me&&h.createVNode(If,{class:`${a.value}-option-state`,customizeIcon:$,customizeIconProps:{isSelected:ve}},{default:()=>[ve?"✓":null]})])}})])}}});var UEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i1&&arguments[1]!==void 0?arguments[1]:!1;return vr(t).map((r,i)=>{var o;if(!po(r)||!r.type)return null;const{type:{isSelectOptGroup:a},key:s,children:l,props:u}=r;if(e||!a)return ZEe(r);const c=l&&l.default?l.default():void 0,f=(u==null?void 0:u.label)||((o=l.label)===null||o===void 0?void 0:o.call(l))||s;return k(k({key:`__RC_SELECT_GRP__${s===null?i:String(s)}__`},u),{label:f,options:jA(c||[])})}).filter(r=>r)}function XEe(t,e,n){const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef([]);return h.watch([t,e],()=>{t.value?a.value=h.toRaw(t.value).slice():a.value=jA(e.value)},{immediate:!0,deep:!0}),h.watchEffect(()=>{const s=a.value,l=new Map,u=new Map,c=n.value;function f(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g0&&arguments[0]!==void 0?arguments[0]:h.ref("");const e=`rc_select_${qEe()}`;return t.value||e}function UA(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}const JEe=typeof window<"u"&&window.document&&window.document.documentElement;process.env.NODE_ENV;function eMe(t){const{mode:e,options:n,children:r,backfill:i,allowClear:o,placeholder:a,getInputElement:s,showSearch:l,onSearch:u,defaultOpen:c,autofocus:f,labelInValue:d,value:p,inputValue:g,optionLabelProp:v}=t,m=GA(e),y=l!==void 0?l:m||e==="combobox",b=n||jA(r);if(Uo(e!=="tags"||b.every(O=>!O.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Uo(e!=="combobox"||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Uo(e==="combobox"||!i,"`backfill` only works with `combobox` mode."),Uo(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),UF(e!=="combobox"||!s||!o||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&e!=="combobox"&&e!=="tags"&&Uo(!1,"`onSearch` should work with `showSearch` instead of use alone."),UF(!c||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),p!=null){const O=UA(p);Uo(!d||O.every(w=>typeof w=="object"&&("key"in w||"value"in w)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),Uo(!m||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let O=null;r.some(w=>{var S;if(!po(w)||!w.type)return!1;const{type:x}=w;return x.isSelectOption?!1:x.isSelectOptGroup?!(((S=w.children)===null||S===void 0?void 0:S.default())||[]).every(A=>!po(A)||!w.type||A.type.isSelectOption?!0:(O=A.type,!1)):(O=x,!0)}),O&&Uo(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${O.displayName||O.name||O}\`.`),Uo(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ZA(t,e){return UA(t).join("").toUpperCase().includes(e)}const tMe=(t,e,n,r,i)=>h.computed(()=>{const o=n.value,a=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!o||s===!1)return t.value;const{options:l,label:u,value:c}=e.value,f=[],d=typeof s=="function",p=o.toUpperCase(),g=d?s:(m,y)=>a?ZA(y[a],p):y[l]?ZA(y[u!=="children"?u:"label"],p):ZA(y[c],p),v=d?m=>_A(m):m=>m;return t.value.forEach(m=>{if(m[l]){if(g(o,v(m)))f.push(m);else{const b=m[l].filter(O=>g(o,v(O)));b.length&&f.push(k(k({},m),{[l]:b}))}return}g(o,v(m))&&f.push(m)}),f}),nMe=(t,e)=>{const n=h.shallowRef({values:new Map,options:new Map});return[h.computed(()=>{const{values:o,options:a}=n.value,s=t.value.map(c=>{var f;return c.label===void 0?k(k({},c),{label:(f=o.get(c.value))===null||f===void 0?void 0:f.label}):c}),l=new Map,u=new Map;return s.forEach(c=>{l.set(c.value,c),u.set(c.value,e.value.get(c.value)||a.get(c.value))}),n.value.values=l,n.value.options=u,s}),o=>e.value.get(o)||n.value.options.get(o)]};function Ap(t,e){const{defaultValue:n,value:r=h.ref()}=e||{};let i=typeof t=="function"?t():t;r.value!==void 0&&(i=h.unref(r)),n!==void 0&&(i=typeof n=="function"?n():n);const o=h.ref(i),a=h.ref(i);h.watchEffect(()=>{let l=r.value!==void 0?r.value:o.value;e.postState&&(l=e.postState(l)),a.value=l});function s(l){const u=a.value;o.value=l,h.toRaw(a.value)!==l&&e.onChange&&e.onChange(l,u)}return h.watch(r,()=>{o.value=r.value}),[a,s]}function An(t){const e=typeof t=="function"?t():t,n=h.ref(e);function r(i){n.value=i}return[n,r]}const rMe=["inputValue"];function Y7(){return k(k({},Q7()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ne.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ne.any,defaultValue:ne.any,onChange:Function,children:Array})}function iMe(t){return!t||typeof t!="object"}const oMe=h.defineComponent({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Ar(Y7(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=KEe(h.toRef(t,"id")),a=h.computed(()=>GA(t.mode)),s=h.computed(()=>!!(!t.options&&t.children)),l=h.computed(()=>t.filterOption===void 0&&t.mode==="combobox"?!1:t.filterOption),u=h.computed(()=>YW(t.fieldNames,s.value)),[c,f]=Ap("",{value:h.computed(()=>t.searchValue!==void 0?t.searchValue:t.inputValue),postState:ee=>ee||""}),d=XEe(h.toRef(t,"options"),h.toRef(t,"children"),u),{valueOptions:p,labelOptions:g,options:v}=d,m=ee=>UA(ee).map(Y=>{var le,ve;let ye,Ne,Be,Me;iMe(Y)?ye=Y:(Be=Y.key,Ne=Y.label,ye=(le=Y.value)!==null&&le!==void 0?le:Be);const $e=p.value.get(ye);return $e&&(Ne===void 0&&(Ne=$e==null?void 0:$e[t.optionLabelProp||u.value.label]),Be===void 0&&(Be=(ve=$e==null?void 0:$e.key)!==null&&ve!==void 0?ve:ye),Me=$e==null?void 0:$e.disabled),{label:Ne,value:ye,key:Be,disabled:Me,option:$e}}),[y,b]=Ap(t.defaultValue,{value:h.toRef(t,"value")}),O=h.computed(()=>{var ee;const X=m(y.value);return t.mode==="combobox"&&!(!((ee=X[0])===null||ee===void 0)&&ee.value)?[]:X}),[w,S]=nMe(O,p),x=h.computed(()=>{if(!t.mode&&w.value.length===1){const ee=w.value[0];if(ee.value===null&&(ee.label===null||ee.label===void 0))return[]}return w.value.map(ee=>{var X;return k(k({},ee),{label:(X=typeof ee.label=="function"?ee.label():ee.label)!==null&&X!==void 0?X:ee.value})})}),T=h.computed(()=>new Set(w.value.map(ee=>ee.value)));h.watchEffect(()=>{var ee;if(t.mode==="combobox"){const X=(ee=w.value[0])===null||ee===void 0?void 0:ee.value;X!=null&&f(String(X))}},{flush:"post"});const $=(ee,X)=>{const Y=X??ee;return{[u.value.value]:ee,[u.value.label]:Y}},A=h.shallowRef();h.watchEffect(()=>{if(t.mode!=="tags"){A.value=v.value;return}const ee=v.value.slice(),X=Y=>p.value.has(Y);[...w.value].sort((Y,le)=>Y.value{const le=Y.value;X(le)||ee.push($(le,Y.label))}),A.value=ee});const P=tMe(A,u,c,l,h.toRef(t,"optionFilterProp")),M=h.computed(()=>t.mode!=="tags"||!c.value||P.value.some(ee=>ee[t.optionFilterProp||"value"]===c.value)?P.value:[$(c.value),...P.value]),I=h.computed(()=>t.filterSort?[...M.value].sort((ee,X)=>t.filterSort(ee,X)):M.value),R=h.computed(()=>X$e(I.value,{fieldNames:u.value,childrenAsData:s.value})),L=ee=>{const X=m(ee);if(b(X),t.onChange&&(X.length!==w.value.length||X.some((Y,le)=>{var ve;return((ve=w.value[le])===null||ve===void 0?void 0:ve.value)!==(Y==null?void 0:Y.value)}))){const Y=t.labelInValue?X.map(ve=>k(k({},ve),{originLabel:ve.label,label:typeof ve.label=="function"?ve.label():ve.label})):X.map(ve=>ve.value),le=X.map(ve=>_A(S(ve.value)));t.onChange(a.value?Y:Y[0],a.value?le:le[0])}},[D,B]=An(null),[F,z]=An(0),W=h.computed(()=>t.defaultActiveFirstOption!==void 0?t.defaultActiveFirstOption:t.mode!=="combobox"),j=function(ee,X){let{source:Y="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};z(X),t.backfill&&t.mode==="combobox"&&ee!==null&&Y==="keyboard"&&B(String(ee))},H=(ee,X)=>{const Y=()=>{var le;const ve=S(ee),ye=ve==null?void 0:ve[u.value.label];return[t.labelInValue?{label:typeof ye=="function"?ye():ye,originLabel:ye,value:ee,key:(le=ve==null?void 0:ve.key)!==null&&le!==void 0?le:ee}:ee,_A(ve)]};if(X&&t.onSelect){const[le,ve]=Y();t.onSelect(le,ve)}else if(!X&&t.onDeselect){const[le,ve]=Y();t.onDeselect(le,ve)}},Z=(ee,X)=>{let Y;const le=a.value?X.selected:!0;le?Y=a.value?[...w.value,ee]:[ee]:Y=w.value.filter(ve=>ve.value!==ee),L(Y),H(ee,le),t.mode==="combobox"?B(""):(!a.value||t.autoClearSearchValue)&&(f(""),B(""))},J=(ee,X)=>{L(ee),(X.type==="remove"||X.type==="clear")&&X.values.forEach(Y=>{H(Y.value,!1)})},se=(ee,X)=>{var Y;if(f(ee),B(null),X.source==="submit"){const le=(ee||"").trim();if(le){const ve=Array.from(new Set([...T.value,le]));L(ve),H(le,!0),f("")}return}X.source!=="blur"&&(t.mode==="combobox"&&L(ee),(Y=t.onSearch)===null||Y===void 0||Y.call(t,ee))},oe=ee=>{let X=ee;t.mode!=="tags"&&(X=ee.map(le=>{const ve=g.value.get(le);return ve==null?void 0:ve.value}).filter(le=>le!==void 0));const Y=Array.from(new Set([...T.value,...X]));L(Y),Y.forEach(le=>{H(le,!0)})},de=h.computed(()=>t.virtual!==!1&&t.dropdownMatchSelectWidth!==!1);QEe(W7(k(k({},d),{flattenOptions:R,onActiveValue:j,defaultActiveFirstOption:W,onSelect:Z,menuItemSelectedIcon:h.toRef(t,"menuItemSelectedIcon"),rawValues:T,fieldNames:u,virtual:de,listHeight:h.toRef(t,"listHeight"),listItemHeight:h.toRef(t,"listItemHeight"),childrenAsData:s}))),process.env.NODE_ENV!=="production"&&h.watchEffect(()=>{eMe(t)},{flush:"post"});const ie=h.ref();n({focus(){var ee;(ee=ie.value)===null||ee===void 0||ee.focus()},blur(){var ee;(ee=ie.value)===null||ee===void 0||ee.blur()},scrollTo(ee){var X;(X=ie.value)===null||X===void 0||X.scrollTo(ee)}});const ue=h.computed(()=>Er(t,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>h.createVNode(PEe,K(K(K({},ue.value),r),{},{id:o,prefixCls:t.prefixCls,ref:ie,omitDomProps:rMe,mode:t.mode,displayValues:x.value,onDisplayValuesChange:J,searchValue:c.value,onSearch:se,onSearchSplit:oe,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,OptionList:jEe,emptyOptions:!R.value.length,activeValue:D.value,activeDescendantId:`${o}_list_${F.value}`}),i)}}),XA=()=>null;XA.isSelectOption=!0,XA.displayName="ASelectOption";const YA=()=>null;YA.isSelectOptGroup=!0,YA.displayName="ASelectOptGroup";var aMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},sMe=Symbol("iconContext"),q7=function(){return h.inject(sMe,{prefixCls:h.ref("anticon"),rootClassName:h.ref(""),csp:h.ref()})};function qA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function lMe(t,e){return t&&t.contains?t.contains(e):!1}var K7="data-vc-order",uMe="vc-icon-key",KA=new Map;function J7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):uMe}function JA(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function cMe(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function eQ(t){return Array.from((KA.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function tQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qA())return null;var n=e.csp,r=e.prepend,i=document.createElement("style");i.setAttribute(K7,cMe(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=t;var o=JA(e),a=o.firstChild;if(r){if(r==="queue"){var s=eQ(o).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(K7))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function fMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=JA(e);return eQ(n).find(function(r){return r.getAttribute(J7(e))===t})}function dMe(t,e){var n=KA.get(t);if(!n||!lMe(document,n)){var r=tQ("",e),i=r.parentNode;KA.set(t,i),t.removeChild(r)}}function hMe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=JA(n);dMe(r,n);var i=fMe(e,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==t&&(i.innerHTML=t),i;var o=tQ(t,n);return o.setAttribute(J7(n),e),o}function nQ(t){for(var e=1;e * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `;function aQ(t){return t&&t.getRootNode&&t.getRootNode()}function yMe(t){return qA()?aQ(t)instanceof ShadowRoot:!1}function bMe(t){return yMe(t)?aQ(t):null}var _Me=function(){var e=q7(),n=e.prefixCls,r=e.csp,i=h.getCurrentInstance(),o=mMe;n&&(o=o.replace(/anticon/g,n.value)),h.nextTick(function(){if(qA()){var a=i.vnode.el,s=bMe(a);hMe(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},OMe=["icon","primaryColor","secondaryColor"];function wMe(t,e){if(t==null)return{};var n=SMe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SMe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function OO(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FMe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}lQ(K2e.primary);var mt=function(e,n){var r,i=cQ({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,f=i.onClick,d=zMe(i,RMe),p=q7(),g=p.prefixCls,v=p.rootClassName,m=(r={},qm(r,v.value,!!v.value),qm(r,g.value,!0),qm(r,"".concat(g.value,"-").concat(a.name),!!a.name),qm(r,"".concat(g.value,"-spin"),!!s||a.name==="loading"),r),y=u;y===void 0&&f&&(y=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,O=oQ(c),w=kMe(O,2),S=w[0],x=w[1];return h.createVNode("span",cQ({role:"img","aria-label":a.name},d,{onClick:f,class:[m,o],tabindex:y}),[h.createVNode(ku,{icon:a,primaryColor:S,secondaryColor:x,style:b},null),h.createVNode(DMe,null,null)])};mt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},mt.displayName="AntdIcon",mt.inheritAttrs=!1,mt.getTwoToneColor=IMe,mt.setTwoToneColor=lQ;function fQ(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:o,feedbackIcon:a,showArrow:s}=t,l=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),u=t.clearIcon||e.clearIcon&&e.clearIcon(),c=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),f=t.removeIcon||e.removeIcon&&e.removeIcon(),d=u??h.createVNode(Xo,null,null),p=y=>h.createVNode(h.Fragment,null,[s!==!1&&y,o&&a]);let g=null;if(l!==void 0)g=p(l);else if(n)g=p(h.createVNode(Es,{spin:!0},null));else{const y=`${i}-suffix`;g=b=>{let{open:O,showSearch:w}=b;return p(O&&w?h.createVNode(SO,{class:y},null):h.createVNode(wO,{class:y},null))}}let v=null;c!==void 0?v=c:r?v=h.createVNode(tE,null,null):v=null;let m=null;return f!==void 0?m=f:m=h.createVNode(Il,null,null),{clearIcon:d,suffixIcon:g,itemIcon:v,removeIcon:m}}function nE(t){const e=Symbol("contextKey");return{useProvide:(i,o)=>{const a=h.reactive({});return h.provide(e,a),h.watchEffect(()=>{k(a,i,o||{})}),a},useInject:()=>h.inject(e,t)||{}}}const xO=Symbol("ContextProps"),CO=Symbol("InternalContextProps"),eIe=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.computed(()=>!0);const n=h.ref(new Map),r=(a,s)=>{n.value.set(a,s),n.value=new Map(n.value)},i=a=>{n.value.delete(a),n.value=new Map(n.value)},o=h.getCurrentInstance();h.watch([e,n],()=>{if(process.env.NODE_ENV!=="production"&&e.value&&n.value.size>1){mo(!1,"Form.Item",`FormItem can only collect one field item, you haved set ${[...n.value.values()].map(s=>`\`${s.name}\``).join(", ")} ${n.value.size} field items. You can set not need to be collected fields into \`a-form-item-rest\``);let a=o;for(;a.parent;)console.warn("at",a.type),a=a.parent}}),h.provide(xO,t),h.provide(CO,{addFormItemField:r,removeFormItemField:i})},rE={id:h.computed(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},iE={addFormItemField:()=>{},removeFormItemField:()=>{}},Ms=()=>{const t=h.inject(CO,iE),e=Symbol("FormItemFieldKey"),n=h.getCurrentInstance();return t.addFormItemField(e,n.type),h.onBeforeUnmount(()=>{t.removeFormItemField(e)}),h.provide(CO,iE),h.provide(xO,rE),h.inject(xO,rE)},Km=h.defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return h.provide(CO,iE),h.provide(xO,rE),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Za=nE({}),TO=h.defineComponent({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return Za.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Dl(t,e,n){return Pe({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const Jm=(t,e)=>e||t,tIe=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},nIe=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}},rIe=Fn("Space",t=>[nIe(t),tIe(t)]),iIe=()=>({compactSize:String,compactDirection:ne.oneOf(Du("horizontal","vertical")).def("horizontal"),isFirstItem:lt(),isLastItem:lt()}),PO=nE(null),$O=(t,e)=>{const n=PO.useInject(),r=h.computed(()=>{if(!n||vV(n))return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Pe({[`${t.value}-compact${s}item`]:!0,[`${t.value}-compact${s}first-item`]:o,[`${t.value}-compact${s}last-item`]:a,[`${t.value}-compact${s}item-rtl`]:e.value==="rtl"})});return{compactSize:h.computed(()=>n==null?void 0:n.compactSize),compactDirection:h.computed(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},AO=h.defineComponent({name:"NoCompactStyle",setup(t,e){let{slots:n}=e;return PO.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),oIe=()=>({prefixCls:String,size:{type:String},direction:ne.oneOf(Du("horizontal","vertical")).def("horizontal"),align:ne.oneOf(Du("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),aIe=h.defineComponent({name:"CompactItem",props:iIe(),setup(t,e){let{slots:n}=e;return PO.useProvide(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});h.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:oIe(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,direction:o}=Qt("space-compact",t),a=PO.useInject(),[s,l]=rIe(i),u=h.computed(()=>Pe(i.value,l.value,{[`${i.value}-rtl`]:o.value==="rtl",[`${i.value}-block`]:t.block,[`${i.value}-vertical`]:t.direction==="vertical"}));return()=>{var c;const f=vr(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return f.length===0?null:s(h.createVNode("div",K(K({},n),{},{class:[u.value,n.class]}),[f.map((d,p)=>{var g;const v=d&&d.key||`${i.value}-item-${p}`,m=!a||vV(a);return h.createVNode(aIe,{key:v,compactSize:(g=t.size)!==null&&g!==void 0?g:"middle",compactDirection:t.direction,isFirstItem:p===0&&(m||(a==null?void 0:a.isFirstItem)),isLastItem:p===f.length-1&&(m||(a==null?void 0:a.isLastItem))},{default:()=>[d]})})]))}}});const sIe=t=>({animationDuration:t,animationFillMode:"both"}),lIe=t=>({animationDuration:t,animationFillMode:"both"}),EO=function(t,e,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${t}-enter, ${o}${t}-appear `]:k(k({},sIe(r)),{animationPlayState:"paused"}),[`${o}${t}-leave`]:k(k({},lIe(r)),{animationPlayState:"paused"}),[` ${o}${t}-enter${t}-enter-active, ${o}${t}-appear${t}-appear-active `]:{animationName:e,animationPlayState:"running"},[`${o}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},uIe=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cIe=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mQ=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=t,r=`${n}-fade`,i=e?"&":"";return[EO(r,uIe,cIe,t.motionDurationMid,e),{[` ${i}${r}-enter, ${i}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},fIe=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dIe=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),hIe=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pIe=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gIe=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vIe=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mIe=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yIe=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),bIe={"move-up":{inKeyframes:mIe,outKeyframes:yIe},"move-down":{inKeyframes:fIe,outKeyframes:dIe},"move-left":{inKeyframes:hIe,outKeyframes:pIe},"move-right":{inKeyframes:gIe,outKeyframes:vIe}},yQ=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=bIe[e];return[EO(r,i,o,t.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},bQ=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_Q=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),OQ=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wQ=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_Ie=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),OIe=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wIe=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SIe=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xIe={"slide-up":{inKeyframes:bQ,outKeyframes:_Q},"slide-down":{inKeyframes:OQ,outKeyframes:wQ},"slide-left":{inKeyframes:_Ie,outKeyframes:OIe},"slide-right":{inKeyframes:wIe,outKeyframes:SIe}},Ep=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=xIe[e];return[EO(r,i,o,t.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},oE=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CIe=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),SQ=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xQ=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TIe=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PIe=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$Ie=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),AIe=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),EIe=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),MIe=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),IIe=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),DIe=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),RIe={zoom:{inKeyframes:oE,outKeyframes:CIe},"zoom-big":{inKeyframes:SQ,outKeyframes:xQ},"zoom-big-fast":{inKeyframes:SQ,outKeyframes:xQ},"zoom-left":{inKeyframes:$Ie,outKeyframes:AIe},"zoom-right":{inKeyframes:EIe,outKeyframes:MIe},"zoom-up":{inKeyframes:TIe,outKeyframes:PIe},"zoom-down":{inKeyframes:IIe,outKeyframes:DIe}},MO=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=RIe[e];return[EO(r,i,o,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},aE=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),CQ=t=>{const{controlPaddingHorizontal:e}=t;return{position:"relative",display:"block",minHeight:t.controlHeight,padding:`${(t.controlHeight-t.fontSize*t.lineHeight)/2}px ${e}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,boxSizing:"border-box"}},kIe=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`;return[{[`${n}-dropdown`]:k(k({},bn(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[` &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:bQ},[` &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{animationName:OQ},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:_Q},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:wQ},"&-hidden":{display:"none"},"&-empty":{color:t.colorTextDisabled},[`${r}-empty`]:k(k({},CQ(t)),{color:t.colorTextDisabled}),[`${r}`]:k(k({},CQ(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":k({flex:"auto"},wp),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:t.colorText,fontWeight:t.fontWeightStrong,backgroundColor:t.controlItemBgActive,[`${r}-option-state`]:{color:t.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:t.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Ep(t,"slide-up"),Ep(t,"slide-down"),yQ(t,"move-up"),yQ(t,"move-down")]},Mp=2;function TQ(t){let{controlHeightSM:e,controlHeight:n,lineWidth:r}=t;const i=(n-e)/2-r,o=Math.ceil(i/2);return[i,o]}function sE(t,e){const{componentCls:n,iconCls:r}=t,i=`${n}-selection-overflow`,o=t.controlHeightSM,[a]=TQ(t),s=e?`${n}-${e}`:"";return{[`${n}-multiple${s}`]:{fontSize:t.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Mp}px ${Mp*2}px`,borderRadius:t.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:t.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Mp}px 0`,lineHeight:`${o}px`,content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:t.fontSizeIcon+t.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:Mp,marginBottom:Mp,lineHeight:`${o-t.lineWidth*2}px`,background:t.colorFillSecondary,border:`${t.lineWidth}px solid ${t.colorSplit}`,borderRadius:t.borderRadiusSM,cursor:"default",transition:`font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Mp*2,paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS/2,[`${n}-disabled&`]:{color:t.colorTextDisabled,borderColor:t.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":k(k({},Sp()),{display:"inline-block",color:t.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:t.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:t.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:t.fontFamily,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:t.inputPaddingHorizontalBase,insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}}}}function NIe(t){const{componentCls:e}=t,n=Xt(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,r]=TQ(t);return[sE(t),sE(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:r}}},sE(Xt(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function lE(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=t,o=t.controlHeight-t.lineWidth*2,a=Math.ceil(t.fontSize*1.25),s=e?`${n}-${e}`:"";return{[`${n}-single${s}`]:{fontSize:t.fontSize,[`${n}-selector`]:k(k({},bn(t)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:t.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function LIe(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[lE(t),lE(Xt(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${n}px`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:n+t.fontSize*1.5},[` &${e}-show-arrow ${e}-selection-item, &${e}-show-arrow ${e}-selection-placeholder `]:{paddingInlineEnd:t.fontSize*1.5}}}},lE(Xt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}function BIe(t,e,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":k(k({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function VIe(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function IO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:k(k({},BIe(t,r,e)),VIe(n,r,e))}}const zIe=t=>{const{componentCls:e}=t;return{position:"relative",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${e}-disabled&`]:{color:t.colorTextDisabled,background:t.colorBgContainerDisabled,cursor:"not-allowed",[`${e}-multiple&`]:{background:t.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},uE=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:i,outlineColor:o,antCls:a}=e,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[t]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:k(k({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${o}`,borderInlineEndWidth:`${e.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${e.controlLineWidth}px !important`}})}}},FIe=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},WIe=t=>{const{componentCls:e,inputPaddingHorizontalBase:n,iconCls:r}=t;return{[e]:k(k({},bn(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${e}-customize-input) ${e}-selector`]:k(k({},zIe(t)),FIe(t)),[`${e}-selection-item`]:k({flex:1,fontWeight:"normal"},wp),[`${e}-selection-placeholder`]:k(k({},wp),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${e}-arrow`]:k(k({},Sp()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${e}-suffix)`]:{pointerEvents:"auto"}},[`${e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:t.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},"&:hover":{[`${e}-clear`]:{opacity:1}}}),[`${e}-has-feedback`]:{[`${e}-clear`]:{insetInlineEnd:n+t.fontSize+t.paddingXXS}}}},QIe=t=>{const{componentCls:e}=t;return[{[e]:{[`&-borderless ${e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${e}-in-form-item`]:{width:"100%"}}},WIe(t),LIe(t),NIe(t),kIe(t),{[`${e}-rtl`]:{direction:"rtl"}},uE(e,Xt(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),uE(`${e}-status-error`,Xt(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),uE(`${e}-status-warning`,Xt(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),IO(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},HIe=Fn("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=Xt(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[QIe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50})),GIe=()=>k(k({},Er(Y7(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:kn([Array,Object,String,Number]),defaultValue:kn([Array,Object,String,Number]),notFoundContent:ne.any,suffixIcon:ne.any,itemIcon:ne.any,size:$n(),mode:$n(),bordered:lt(!0),transitionName:String,choiceTransitionName:$n(""),popupClassName:String,dropdownClassName:String,placement:$n(),status:$n(),"onUpdate:value":ut()}),PQ="SECRET_COMBOBOX_MODE_DO_NOT_USE",Hi=h.defineComponent({compatConfig:{MODE:3},name:"ASelect",Option:XA,OptGroup:YA,inheritAttrs:!1,props:Ar(GIe(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:PQ,slots:Object,setup(t,e){let{attrs:n,emit:r,slots:i,expose:o}=e;const a=h.ref(),s=Ms(),l=Za.useInject(),u=h.computed(()=>Jm(l.status,t.status)),c=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.focus()},f=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.blur()},d=Z=>{var J;(J=a.value)===null||J===void 0||J.scrollTo(Z)},p=h.computed(()=>{const{mode:Z}=t;if(Z!=="combobox")return Z===PQ?"combobox":Z});process.env.NODE_ENV!=="production"&&mo(!t.dropdownClassName,"Select","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const{prefixCls:g,direction:v,configProvider:m,renderEmpty:y,size:b,getPrefixCls:O,getPopupContainer:w,disabled:S,select:x}=Qt("select",t),{compactSize:T,compactItemClassnames:$}=$O(g,v),A=h.computed(()=>T.value||b.value),P=Cs(),M=h.computed(()=>{var Z;return(Z=S.value)!==null&&Z!==void 0?Z:P.value}),[I,R]=HIe(g),L=h.computed(()=>O()),D=h.computed(()=>t.placement!==void 0?t.placement:v.value==="rtl"?"bottomRight":"bottomLeft"),B=h.computed(()=>As(L.value,VAe(D.value),t.transitionName)),F=h.computed(()=>Pe({[`${g.value}-lg`]:A.value==="large",[`${g.value}-sm`]:A.value==="small",[`${g.value}-rtl`]:v.value==="rtl",[`${g.value}-borderless`]:!t.bordered,[`${g.value}-in-form-item`]:l.isFormItemInput},Dl(g.value,u.value,l.hasFeedback),$.value,R.value)),z=function(){for(var Z=arguments.length,J=new Array(Z),se=0;se{r("blur",Z),s.onFieldBlur()};o({blur:f,focus:c,scrollTo:d});const j=h.computed(()=>p.value==="multiple"||p.value==="tags"),H=h.computed(()=>t.showArrow!==void 0?t.showArrow:t.loading||!(j.value||p.value==="combobox"));return()=>{var Z,J,se,oe;const{notFoundContent:de,listHeight:ie=256,listItemHeight:ue=24,popupClassName:ee,dropdownClassName:X,virtual:Y,dropdownMatchSelectWidth:le,id:ve=s.id.value,placeholder:ye=(Z=i.placeholder)===null||Z===void 0?void 0:Z.call(i),showArrow:Ne}=t,{hasFeedback:Be,feedbackIcon:Me}=l;let $e;de!==void 0?$e=de:i.notFoundContent?$e=i.notFoundContent():p.value==="combobox"?$e=null:$e=(y==null?void 0:y("Select"))||h.createVNode(mA,{componentName:"Select"},null);const{suffixIcon:_e,itemIcon:De,removeIcon:Fe,clearIcon:ct}=JMe(k(k({},t),{multiple:j.value,prefixCls:g.value,hasFeedback:Be,feedbackIcon:Me,showArrow:H.value}),i),vt=Er(t,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),zt=Pe(ee||X,{[`${g.value}-dropdown-${v.value}`]:v.value==="rtl"},R.value);return I(h.createVNode(oMe,K(K(K({ref:a,virtual:Y,dropdownMatchSelectWidth:le},vt),n),{},{showSearch:(J=t.showSearch)!==null&&J!==void 0?J:(se=x==null?void 0:x.value)===null||se===void 0?void 0:se.showSearch,placeholder:ye,listHeight:ie,listItemHeight:ue,mode:p.value,prefixCls:g.value,direction:v.value,inputIcon:_e,menuItemSelectedIcon:De,removeIcon:Fe,clearIcon:ct,notFoundContent:$e,class:[F.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:zt,onChange:z,onBlur:W,id:ve,dropdownRender:vt.dropdownRender||i.dropdownRender,transitionName:B.value,children:(oe=i.default)===null||oe===void 0?void 0:oe.call(i),tagRender:t.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:t.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:Be||Ne,disabled:M.value}),{option:i.option}))}}});Hi.install=function(t){return t.component(Hi.name,Hi),t.component(Hi.Option.displayName,Hi.Option),t.component(Hi.OptGroup.displayName,Hi.OptGroup),t};const Ip=Hi.Option;Hi.OptGroup;var jIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function $Q(t){for(var e=1;e({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`,xxxl:`{min-width: ${t.screenXXXL}px}`});function sDe(){const[,t]=xp();return h.computed(()=>{const e=aDe(t.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(e).forEach(o=>{const a=e[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(e).forEach(o=>{const a=e[o],s=u=>{let{matches:c}=u;this.dispatch(k(k({},i),{[o]:c}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:e}})}const Yo={adjustX:1,adjustY:1},qo=[0,0],kQ={left:{points:["cr","cl"],overflow:Yo,offset:[-4,0],targetOffset:qo},right:{points:["cl","cr"],overflow:Yo,offset:[4,0],targetOffset:qo},top:{points:["bc","tc"],overflow:Yo,offset:[0,-4],targetOffset:qo},bottom:{points:["tc","bc"],overflow:Yo,offset:[0,4],targetOffset:qo},topLeft:{points:["bl","tl"],overflow:Yo,offset:[0,-4],targetOffset:qo},leftTop:{points:["tr","tl"],overflow:Yo,offset:[-4,0],targetOffset:qo},topRight:{points:["br","tr"],overflow:Yo,offset:[0,-4],targetOffset:qo},rightTop:{points:["tl","tr"],overflow:Yo,offset:[4,0],targetOffset:qo},bottomRight:{points:["tr","br"],overflow:Yo,offset:[0,4],targetOffset:qo},rightBottom:{points:["bl","br"],overflow:Yo,offset:[4,0],targetOffset:qo},bottomLeft:{points:["tl","bl"],overflow:Yo,offset:[0,4],targetOffset:qo},leftBottom:{points:["br","bl"],overflow:Yo,offset:[-4,0],targetOffset:qo}},lDe={prefixCls:String,id:String,overlayInnerStyle:ne.any},uDe=h.defineComponent({compatConfig:{MODE:3},name:"TooltipContent",props:lDe,setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var cDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ne.string.def("rc-tooltip"),mouseEnterDelay:ne.number.def(.1),mouseLeaveDelay:ne.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ne.object.def(()=>({})),arrowContent:ne.any.def(null),tipId:String,builtinPlacements:ne.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.shallowRef(),a=()=>{const{prefixCls:c,tipId:f,overlayInnerStyle:d}=t;return[t.arrow?h.createVNode("div",{class:`${c}-arrow`,key:"arrow"},[L1(n,t,"arrowContent")]):null,h.createVNode(uDe,{key:"content",prefixCls:c,id:f,overlayInnerStyle:d},{overlay:n.overlay})]};i({getPopupDomNode:()=>o.value.getPopupDomNode(),triggerDOM:o,forcePopupAlign:()=>{var c;return(c=o.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const l=h.shallowRef(!1),u=h.shallowRef(!1);return h.watchEffect(()=>{const{destroyTooltipOnHide:c}=t;if(typeof c=="boolean")l.value=c;else if(c&&typeof c=="object"){const{keepParent:f}=c;l.value=f===!0,u.value=f===!1}}),()=>{const{overlayClassName:c,trigger:f,mouseEnterDelay:d,mouseLeaveDelay:p,overlayStyle:g,prefixCls:v,afterVisibleChange:m,transitionName:y,animation:b,placement:O,align:w,destroyTooltipOnHide:S,defaultVisible:x}=t,T=cDe(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),$=k({},T);t.visible!==void 0&&($.popupVisible=t.visible);const A=k(k(k({popupClassName:c,prefixCls:v,action:f,builtinPlacements:kQ,popupPlacement:O,popupAlign:w,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:x,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:p,popupStyle:g,mouseEnterDelay:d},$),r),{onPopupVisibleChange:t.onVisibleChange||NQ,onPopupAlign:t.onPopupAlign||NQ,ref:o,arrow:!!t.arrow,popup:a()});return h.createVNode(mO,A,{default:n.default})}}}),dDe=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Vt(),overlayInnerStyle:Vt(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Vt(),builtinPlacements:Vt(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),hDe={adjustX:1,adjustY:1},LQ={adjustX:0,adjustY:0},pDe=[0,0];function BQ(t){return typeof t=="boolean"?t?hDe:LQ:k(k({},LQ),t)}function gDe(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:o}=t,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,r+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,r+e]}};return Object.keys(a).forEach(s=>{a[s]=o?k(k({},a[s]),{overflow:BQ(i),targetOffset:pDe}):k(k({},kQ[s]),{overflow:BQ(i)}),a[s].ignoreShake=!0}),a}function VQ(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e`${t}-inverse`);function mDe(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...vDe,...q1].includes(t):q1.includes(t)}function yDe(t,e){const n=mDe(e),r=Pe({[`${t}-${e}`]:e&&n}),i={},o={};return e&&!n&&(i.background=e,o["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:o}}function kO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const zQ=8;function bDe(t){const e=zQ,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=t,a=n/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-a,l=o?e-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function _De(t,e){const{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:s}=t,{colorBg:l,showArrowCls:u,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:f}=e,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:p}=bDe({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:a,limitVerticalRadius:f}),g=r/2+i;return{[n]:{[`${n}-arrow`]:[k(k({position:"absolute",zIndex:1,display:"block"},f$e(r,o,a,l,s)),{"&:before":{background:l}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d},[kO(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingBottom:g},[kO(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingTop:g},[kO(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:g}},[kO(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const ODe=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:f}=t;return[{[e]:k(k(k(k({},bn(t)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${e}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(o,zQ)}},[`${e}-content`]:{position:"relative"}}),d$e(t,(d,p)=>{let{darkColor:g}=p;return{[`&${e}-${d}`]:{[`${e}-inner`]:{backgroundColor:g},[`${e}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},_De(Xt(t,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:o,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},wDe=(t,e)=>Fn("Tooltip",r=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=r,l=Xt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[ODe(l),MO(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=r;return{zIndexPopup:i+70,colorBgDefault:o}})(t),SDe=(t,e)=>{const n={},r=k({},t);return e.forEach(i=>{t&&i in t&&(n[i]=t[i],delete r[i])}),{picked:n,omitted:r}},FQ=()=>k(k({},dDe()),{title:ne.any}),xDe=h.defineComponent({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ar(FQ(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(P=>{let[M,I]=P;yi(t[M]===void 0,"Tooltip",`\`${M}\` is deprecated, please use \`${I}\` instead.`)});const{prefixCls:a,getPopupContainer:s,direction:l,rootPrefixCls:u}=Qt("tooltip",t),c=h.computed(()=>{var P;return(P=t.open)!==null&&P!==void 0?P:t.visible}),f=h.ref(VQ([t.open,t.visible])),d=h.ref();let p;h.watch(c,P=>{Dt.cancel(p),p=Dt(()=>{f.value=!!P})});const g=()=>{var P;const M=(P=t.title)!==null&&P!==void 0?P:n.title;return!M&&M!==0},v=P=>{const M=g();c.value===void 0&&(f.value=M?!1:P),M||(r("update:visible",P),r("visibleChange",P),r("update:open",P),r("openChange",P))};o({getPopupDomNode:()=>d.value.getPopupDomNode(),open:f,forcePopupAlign:()=>{var P;return(P=d.value)===null||P===void 0?void 0:P.forcePopupAlign()}});const y=h.computed(()=>{var P;const{builtinPlacements:M,autoAdjustOverflow:I,arrow:R,arrowPointAtCenter:L}=t;let D=L;return typeof R=="object"&&(D=(P=R.pointAtCenter)!==null&&P!==void 0?P:L),M||gDe({arrowPointAtCenter:D,autoAdjustOverflow:I})}),b=P=>P||P==="",O=P=>{const M=P.type;if(typeof M=="object"&&P.props&&((M.__ANT_BUTTON===!0||M==="button")&&b(P.props.disabled)||M.__ANT_SWITCH===!0&&(b(P.props.disabled)||b(P.props.loading))||M.__ANT_RADIO===!0&&b(P.props.disabled))){const{picked:I,omitted:R}=SDe(VPe(P),["position","left","right","top","bottom","float","display","zIndex"]),L=k(k({display:"inline-block"},I),{cursor:"not-allowed",lineHeight:1,width:P.props&&P.props.block?"100%":void 0}),D=k(k({},R),{pointerEvents:"none"}),B=Gn(P,{style:D},!0);return h.createVNode("span",{style:L,class:`${a.value}-disabled-compatible-wrapper`},[B])}return P},w=()=>{var P,M;return(P=t.title)!==null&&P!==void 0?P:(M=n.title)===null||M===void 0?void 0:M.call(n)},S=(P,M)=>{const I=y.value,R=Object.keys(I).find(L=>{var D,B;return I[L].points[0]===((D=M.points)===null||D===void 0?void 0:D[0])&&I[L].points[1]===((B=M.points)===null||B===void 0?void 0:B[1])});if(R){const L=P.getBoundingClientRect(),D={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?D.top=`${L.height-M.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(D.top=`${-M.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?D.left=`${L.width-M.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(D.left=`${-M.offset[0]}px`),P.style.transformOrigin=`${D.left} ${D.top}`}},x=h.computed(()=>yDe(a.value,t.color)),T=h.computed(()=>i["data-popover-inject"]),[$,A]=wDe(a,h.computed(()=>!T.value));return()=>{var P,M;const{openClassName:I,overlayClassName:R,overlayStyle:L,overlayInnerStyle:D}=t;let B=(M=xs((P=n.default)===null||P===void 0?void 0:P.call(n)))!==null&&M!==void 0?M:null;B=B.length===1?B[0]:B;let F=f.value;if(c.value===void 0&&g()&&(F=!1),!B)return null;const z=O(po(B)&&!zPe(B)?B:h.createVNode("span",null,[B])),W=Pe({[I||`${a.value}-open`]:!0,[z.props&&z.props.class]:z.props&&z.props.class}),j=Pe(R,{[`${a.value}-rtl`]:l.value==="rtl"},x.value.className,A.value),H=k(k({},x.value.overlayStyle),D),Z=x.value.arrowStyle,J=k(k(k({},i),t),{prefixCls:a.value,arrow:!!t.arrow,getPopupContainer:s==null?void 0:s.value,builtinPlacements:y.value,visible:F,ref:d,overlayClassName:j,overlayStyle:k(k({},Z),L),overlayInnerStyle:H,onVisibleChange:v,onPopupAlign:S,transitionName:As(u.value,"zoom-big-fast",t.transitionName)});return $(h.createVNode(fDe,J,{default:()=>[f.value?Gn(z,{class:W}):z],arrowContent:()=>h.createVNode("span",{class:`${a.value}-arrow-content`},null),overlay:w}))}}}),NO=mp(xDe),Dp={adjustX:1,adjustY:1},Rp=[0,0],CDe={topLeft:{points:["bl","tl"],overflow:Dp,offset:[0,-4],targetOffset:Rp},topCenter:{points:["bc","tc"],overflow:Dp,offset:[0,-4],targetOffset:Rp},topRight:{points:["br","tr"],overflow:Dp,offset:[0,-4],targetOffset:Rp},bottomLeft:{points:["tl","bl"],overflow:Dp,offset:[0,4],targetOffset:Rp},bottomCenter:{points:["tc","bc"],overflow:Dp,offset:[0,4],targetOffset:Rp},bottomRight:{points:["tr","br"],overflow:Dp,offset:[0,4],targetOffset:Rp}};var TDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.visible,p=>{p!==void 0&&(o.value=p)});const a=h.ref();i({triggerRef:a});const s=p=>{t.visible===void 0&&(o.value=!1),r("overlayClick",p)},l=p=>{t.visible===void 0&&(o.value=p),r("visibleChange",p)},u=()=>{var p;const g=(p=n.overlay)===null||p===void 0?void 0:p.call(n),v={prefixCls:`${t.prefixCls}-menu`,onClick:s};return h.createVNode(h.Fragment,{key:wF},[t.arrow&&h.createVNode("div",{class:`${t.prefixCls}-arrow`},null),Gn(g,v,!1)])},c=h.computed(()=>{const{minOverlayWidthMatchTrigger:p=!t.alignPoint}=t;return p}),f=()=>{var p;const g=(p=n.default)===null||p===void 0?void 0:p.call(n);return o.value&&g?Gn(g[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):g},d=h.computed(()=>!t.hideAction&&t.trigger.indexOf("contextmenu")!==-1?["click"]:t.hideAction);return()=>{const{prefixCls:p,arrow:g,showAction:v,overlayStyle:m,trigger:y,placement:b,align:O,getPopupContainer:w,transitionName:S,animation:x,overlayClassName:T}=t,$=TDe(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return h.createVNode(mO,K(K({},$),{},{prefixCls:p,ref:a,popupClassName:Pe(T,{[`${p}-show-arrow`]:g}),popupStyle:m,builtinPlacements:CDe,action:y,showAction:v,hideAction:d.value||[],popupPlacement:b,popupAlign:O,popupTransitionName:S,popupAnimation:x,popupVisible:o.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:l,getPopupContainer:w}),{popup:u,default:f})}}}),$De=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},ADe=Fn("Wave",t=>[$De(t)]);function EDe(t){const e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}function hE(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&EDe(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function MDe(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return hE(e)?e:hE(n)?n:hE(r)?r:null}function pE(t){return Number.isNaN(t)?0:t}const IDe=h.defineComponent({props:{target:Vt(),className:String},setup(t){const e=h.shallowRef(null),[n,r]=An(null),[i,o]=An([]),[a,s]=An(0),[l,u]=An(0),[c,f]=An(0),[d,p]=An(0),[g,v]=An(!1);function m(){const{target:T}=t,$=getComputedStyle(T);r(MDe(T));const A=$.position==="static",{borderLeftWidth:P,borderTopWidth:M}=$;s(A?T.offsetLeft:pE(-parseFloat(P))),u(A?T.offsetTop:pE(-parseFloat(M))),f(T.offsetWidth),p(T.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:R,borderBottomLeftRadius:L,borderBottomRightRadius:D}=$;o([I,R,D,L].map(B=>pE(parseFloat(B))))}let y,b,O;const w=()=>{clearTimeout(O),Dt.cancel(b),y==null||y.disconnect()},S=()=>{var T;const $=(T=e.value)===null||T===void 0?void 0:T.parentElement;$&&(h.render(null,$),$.parentElement&&$.parentElement.removeChild($))};h.onMounted(()=>{w(),O=setTimeout(()=>{S()},5e3);const{target:T}=t;T&&(b=Dt(()=>{m(),v(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(m),y.observe(T)))}),h.onBeforeUnmount(()=>{w()});const x=T=>{T.propertyName==="opacity"&&S()};return()=>{if(!g.value)return null;const T={left:`${a.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${d.value}px`,borderRadius:i.value.map($=>`${$}px`).join(" ")};return n&&(T["--wave-color"]=n.value),h.createVNode(h.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[h.createVNode("div",{ref:e,class:t.className,style:T,onTransitionend:x},null)]})}}});function DDe(t,e){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",t==null||t.insertBefore(n,t==null?void 0:t.firstChild),h.render(h.createVNode(IDe,{target:t,className:e},null),n)}function RDe(t,e,n){function r(){var i;const o=Pl(t);!((i=n==null?void 0:n.value)===null||i===void 0)&&i.disabled||!o||DDe(o,e.value)}return r}const kDe=h.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(t,e){let{slots:n}=e;const r=h.getCurrentInstance(),{prefixCls:i,wave:o}=Qt("wave",t),[,a]=ADe(i),s=RDe(r,h.computed(()=>Pe(i.value,a.value)),o);let l;const u=()=>{Pl(r).removeEventListener("click",l,!0)};return h.onMounted(()=>{h.watch(()=>t.disabled,()=>{u(),h.nextTick(()=>{const c=Pl(r);c==null||c.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||t.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!w7(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s()},c.addEventListener("click",l,!0))})},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function WQ(t){return t==="danger"?{danger:!0}:{type:t}}const NDe=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ne.any,href:String,target:String,title:String,onClick:B1(),onMousedown:B1()}),QQ=t=>{t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},HQ=t=>{h.nextTick(()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity="1",t.style.transform="scale(1)")})},GQ=t=>{t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)},LDe=h.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(t){return()=>{const{existIcon:e,prefixCls:n,loading:r}=t;if(e)return h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(Es,null,null)]);const i=!!r;return h.createVNode(h.Transition,{name:`${n}-loading-icon-motion`,onBeforeEnter:QQ,onEnter:HQ,onAfterEnter:GQ,onBeforeLeave:HQ,onLeave:o=>{setTimeout(()=>{QQ(o)})},onAfterLeave:GQ},{default:()=>[i?h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(Es,null,null)]):null]})}}}),jQ=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),BDe=t=>{const{componentCls:e,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},jQ(`${e}-primary`,i),jQ(`${e}-danger`,o)]}};function VDe(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function zDe(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function FDe(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:k(k({},VDe(t,e)),zDe(t.componentCls,e))}}const WDe=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${t.lineWidth}px ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:t.lineHeight,color:t.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:t.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":k({},iO(t)),[`&-icon-only${e}-compact-item`]:{flex:"none"},[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:t.lineWidth,height:`calc(100% + ${t.lineWidth*2}px)`,backgroundColor:t.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:`calc(100% + ${t.lineWidth*2}px)`,height:t.lineWidth,backgroundColor:t.colorPrimaryHover,content:'""'}}}}}}},Rl=(t,e)=>({"&:not(:disabled)":{"&:hover":t,"&:active":e}}),QDe=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HDe=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),gE=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),LO=(t,e,n,r,i,o,a)=>({[`&${t}-background-ghost`]:k(k({color:e||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Rl(k({backgroundColor:"transparent"},o),k({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),vE=t=>({"&:disabled":k({},gE(t))}),UQ=t=>k({},vE(t)),BO=t=>({"&:disabled":{cursor:"not-allowed",color:t.colorTextDisabled}}),ZQ=t=>k(k(k(k(k({},UQ(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),Rl({color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),LO(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:k(k(k({color:t.colorError,borderColor:t.colorError},Rl({color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),LO(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),vE(t))}),GDe=t=>k(k(k(k(k({},UQ(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),Rl({color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),LO(t.componentCls,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),{[`&${t.componentCls}-dangerous`]:k(k(k({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},Rl({backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),LO(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),vE(t))}),jDe=t=>k(k({},ZQ(t)),{borderStyle:"dashed"}),UDe=t=>k(k(k({color:t.colorLink},Rl({color:t.colorLinkHover},{color:t.colorLinkActive})),BO(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},Rl({color:t.colorErrorHover},{color:t.colorErrorActive})),BO(t))}),ZDe=t=>k(k(k({},Rl({color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),BO(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},BO(t)),Rl({color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),XDe=t=>k(k({},gE(t)),{[`&${t.componentCls}:hover`]:k({},gE(t))}),YDe=t=>{const{componentCls:e}=t;return{[`${e}-default`]:ZQ(t),[`${e}-primary`]:GDe(t),[`${e}-dashed`]:jDe(t),[`${e}-link`]:UDe(t),[`${e}-text`]:ZDe(t),[`${e}-disabled`]:XDe(t)}},mE=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=t,c=Math.max(0,(i-o*a)/2-s),f=u-s,d=`${n}-icon-only`;return[{[`${n}${e}`]:{fontSize:o,height:i,padding:`${c}px ${f}px`,borderRadius:l,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:t.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`&:not(${d}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:t.marginXS}}},{[`${n}${n}-circle${e}`]:QDe(t)},{[`${n}${n}-round${e}`]:HDe(t)}]},qDe=t=>mE(t),KDe=t=>{const e=Xt(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM});return mE(e,`${t.componentCls}-sm`)},JDe=t=>{const e=Xt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG});return mE(e,`${t.componentCls}-lg`)},eRe=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},tRe=Fn("Button",t=>{const{controlTmpOutline:e,paddingContentHorizontal:n}=t,r=Xt(t,{colorOutlineDefault:e,buttonPaddingHorizontal:n});return[WDe(r),KDe(r),qDe(r),JDe(r),eRe(r),YDe(r),BDe(r),IO(t,{focus:!1}),FDe(t)]}),nRe=()=>({prefixCls:String,size:{type:String}}),XQ=nE(),yE=h.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:nRe(),setup(t,e){let{slots:n}=e;const{prefixCls:r,direction:i}=Qt("btn-group",t),[,,o]=xp();XQ.useProvide(h.reactive({size:h.computed(()=>t.size)}));const a=h.computed(()=>{const{size:s}=t;let l="";switch(s){case"large":l="lg";break;case"small":l="sm";break;case"middle":case void 0:break;default:mo(!s,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${l}`]:l,[`${r.value}-rtl`]:i.value==="rtl",[o.value]:!0}});return()=>{var s;return h.createVNode("div",{class:a.value},[vr((s=n.default)===null||s===void 0?void 0:s.call(n))])}}}),YQ=/^[\u4e00-\u9fa5]{2}$/,qQ=YQ.test.bind(YQ);function VO(t){return t==="text"||t==="link"}const ri=h.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ar(NDe(),{type:"default"}),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i,expose:o}=e;const{prefixCls:a,autoInsertSpaceInButton:s,direction:l,size:u}=Qt("btn",t),[c,f]=tRe(a),d=XQ.useInject(),p=Cs(),g=h.computed(()=>{var D;return(D=t.disabled)!==null&&D!==void 0?D:p.value}),v=h.shallowRef(null),m=h.shallowRef(void 0);let y=!1;const b=h.shallowRef(!1),O=h.shallowRef(!1),w=h.computed(()=>s.value!==!1),{compactSize:S,compactItemClassnames:x}=$O(a,l),T=h.computed(()=>typeof t.loading=="object"&&t.loading.delay?t.loading.delay||!0:!!t.loading);h.watch(T,D=>{clearTimeout(m.value),typeof T.value=="number"?m.value=setTimeout(()=>{b.value=D},T.value):b.value=D},{immediate:!0});const $=h.computed(()=>{const{type:D,shape:B="default",ghost:F,block:z,danger:W}=t,j=a.value,H={large:"lg",small:"sm",middle:void 0},Z=S.value||(d==null?void 0:d.size)||u.value,J=Z&&H[Z]||"";return[x.value,{[f.value]:!0,[`${j}`]:!0,[`${j}-${B}`]:B!=="default"&&B,[`${j}-${D}`]:D,[`${j}-${J}`]:J,[`${j}-loading`]:b.value,[`${j}-background-ghost`]:F&&!VO(D),[`${j}-two-chinese-chars`]:O.value&&w.value,[`${j}-block`]:z,[`${j}-dangerous`]:!!W,[`${j}-rtl`]:l.value==="rtl"}]}),A=()=>{const D=v.value;if(!D||s.value===!1)return;const B=D.textContent;y&&qQ(B)?O.value||(O.value=!0):O.value&&(O.value=!1)},P=D=>{if(b.value||g.value){D.preventDefault();return}i("click",D)},M=D=>{i("mousedown",D)},I=(D,B)=>{const F=B?" ":"";if(D.type===h.Text){let z=D.children.trim();return qQ(z)&&(z=z.split("").join(F)),h.createVNode("span",null,[z])}return D};return h.watchEffect(()=>{mo(!(t.ghost&&VO(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),h.onMounted(A),h.onUpdated(A),h.onBeforeUnmount(()=>{m.value&&clearTimeout(m.value)}),o({focus:()=>{var D;(D=v.value)===null||D===void 0||D.focus()},blur:()=>{var D;(D=v.value)===null||D===void 0||D.blur()}}),()=>{var D,B;const{icon:F=(D=n.icon)===null||D===void 0?void 0:D.call(n)}=t,z=vr((B=n.default)===null||B===void 0?void 0:B.call(n));y=z.length===1&&!F&&!VO(t.type);const{type:W,htmlType:j,href:H,title:Z,target:J}=t,se=b.value?"loading":F,oe=k(k({},r),{title:Z,disabled:g.value,class:[$.value,r.class,{[`${a.value}-icon-only`]:z.length===0&&!!se}],onClick:P,onMousedown:M});g.value||delete oe.disabled;const de=F&&!b.value?F:h.createVNode(LDe,{existIcon:!!F,prefixCls:a.value,loading:!!b.value},null),ie=z.map(ee=>I(ee,y&&w.value));if(H!==void 0)return c(h.createVNode("a",K(K({},oe),{},{href:H,target:J,ref:v}),[de,ie]));let ue=h.createVNode("button",K(K({},oe),{},{ref:v,type:j}),[de,ie]);if(!VO(W)){const ee=function(){return ue}();ue=h.createVNode(kDe,{ref:"wave",disabled:!!b.value},{default:()=>[ee]})}return c(ue)}}});ri.Group=yE,ri.install=function(t){return t.component(ri.name,ri),t.component(yE.name,yE),t};var rRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function KQ(t){for(var e=1;eh.inject(e9,void 0),sRe=t=>{var e,n,r;const{prefixCls:i,mode:o,selectable:a,validator:s,onClick:l,expandIcon:u}=t9()||{};h.provide(e9,{prefixCls:h.computed(()=>{var c,f;return(f=(c=t.prefixCls)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:i==null?void 0:i.value}),mode:h.computed(()=>{var c,f;return(f=(c=t.mode)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:o==null?void 0:o.value}),selectable:h.computed(()=>{var c,f;return(f=(c=t.selectable)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:a==null?void 0:a.value}),validator:(e=t.validator)!==null&&e!==void 0?e:s,onClick:(n=t.onClick)!==null&&n!==void 0?n:l,expandIcon:(r=t.expandIcon)!==null&&r!==void 0?r:u==null?void 0:u.value})};function lRe(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l{h.provide(n9,t)},kl=()=>h.inject(n9),i9=Symbol("ForceRenderKey"),uRe=t=>{h.provide(i9,t)},o9=()=>h.inject(i9,!1),a9=Symbol("menuFirstLevelContextKey"),s9=t=>{h.provide(a9,t)},cRe=()=>h.inject(a9,!0),WO=h.defineComponent({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,e){let{slots:n}=e;const r=kl(),i=k({},r);return t.mode!==void 0&&(i.mode=h.toRef(t,"mode")),t.overflowDisabled!==void 0&&(i.overflowDisabled=h.toRef(t,"overflowDisabled")),r9(i),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),fRe=r9,dRe=Symbol("siderCollapsed"),QO="$$__vc-menu-more__key",l9=Symbol("KeyPathContext"),bE=()=>h.inject(l9,{parentEventKeys:h.computed(()=>[]),parentKeys:h.computed(()=>[]),parentInfo:{}}),hRe=(t,e,n)=>{const{parentEventKeys:r,parentKeys:i}=bE(),o=h.computed(()=>[...r.value,t]),a=h.computed(()=>[...i.value,e]);return h.provide(l9,{parentEventKeys:o,parentKeys:a,parentInfo:n}),a},u9=Symbol("measure"),c9=h.defineComponent({compatConfig:{MODE:3},setup(t,e){let{slots:n}=e;return h.provide(u9,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),_E=()=>h.inject(u9,!1),pRe=hRe;function f9(t){const{mode:e,rtl:n,inlineIndent:r}=kl();return h.computed(()=>e.value!=="inline"?null:n.value?{paddingRight:`${t.value*r.value}px`}:{paddingLeft:`${t.value*r.value}px`})}let gRe=0;const vRe=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:ne.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Vt()}),kp=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:vRe(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=h.getCurrentInstance(),a=_E(),s=typeof o.vnode.key=="symbol"?String(o.vnode.key):o.vnode.key;mo(typeof o.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(s)}"\` not support Symbol type`);const l=`menu_item_${++gRe}_$$_${s}`,{parentEventKeys:u,parentKeys:c}=bE(),{prefixCls:f,activeKeys:d,disabled:p,changeActiveKeys:g,rtl:v,inlineCollapsed:m,siderCollapsed:y,onItemClick:b,selectedKeys:O,registerMenuInfo:w,unRegisterMenuInfo:S}=kl(),x=cRe(),T=h.shallowRef(!1),$=h.computed(()=>[...c.value,s]);w(l,{eventKey:l,key:s,parentEventKeys:u,parentKeys:c,isLeaf:!0}),h.onBeforeUnmount(()=>{S(l)}),h.watch(d,()=>{T.value=!!d.value.find(H=>H===s)},{immediate:!0});const P=h.computed(()=>p.value||t.disabled),M=h.computed(()=>O.value.includes(s)),I=h.computed(()=>{const H=`${f.value}-item`;return{[`${H}`]:!0,[`${H}-danger`]:t.danger,[`${H}-active`]:T.value,[`${H}-selected`]:M.value,[`${H}-disabled`]:P.value}}),R=H=>({key:s,eventKey:l,keyPath:$.value,eventKeyPath:[...u.value,l],domEvent:H,item:k(k({},t),i)}),L=H=>{if(P.value)return;const Z=R(H);r("click",H),b(Z)},D=H=>{P.value||(g($.value),r("mouseenter",H))},B=H=>{P.value||(g([]),r("mouseleave",H))},F=H=>{if(r("keydown",H),H.which===Se.ENTER){const Z=R(H);r("click",H),b(Z)}},z=H=>{g($.value),r("focus",H)},W=(H,Z)=>{const J=h.createVNode("span",{class:`${f.value}-title-content`},[Z]);return(!H||po(Z)&&Z.type==="span")&&Z&&m.value&&x&&typeof Z=="string"?h.createVNode("div",{class:`${f.value}-inline-collapsed-noicon`},[Z.charAt(0)]):J},j=f9(h.computed(()=>$.value.length));return()=>{var H,Z,J,se,oe;if(a)return null;const de=(H=t.title)!==null&&H!==void 0?H:(Z=n.title)===null||Z===void 0?void 0:Z.call(n),ie=vr((J=n.default)===null||J===void 0?void 0:J.call(n)),ue=ie.length;let ee=de;typeof de>"u"?ee=x&&ue?ie:"":de===!1&&(ee="");const X={title:ee};!y.value&&!m.value&&(X.title=null,X.open=!1);const Y={};t.role==="option"&&(Y["aria-selected"]=M.value);const le=(se=t.icon)!==null&&se!==void 0?se:(oe=n.icon)===null||oe===void 0?void 0:oe.call(n,t);return h.createVNode(NO,K(K({},X),{},{placement:v.value?"left":"right",overlayClassName:`${f.value}-inline-collapsed-tooltip`}),{default:()=>[h.createVNode(Ml.Item,K(K(K({component:"li"},i),{},{id:t.id,style:k(k({},i.style||{}),j.value),class:[I.value,{[`${i.class}`]:!!i.class,[`${f.value}-item-only-child`]:(le?ue+1:ue)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":s,"aria-disabled":t.disabled},Y),{},{onMouseenter:D,onMouseleave:B,onClick:L,onKeydown:F,onFocus:z,title:typeof de=="string"?de:void 0}),{default:()=>[Gn(typeof le=="function"?le(t.originItemValue):le,{class:`${f.value}-item-icon`},!1),W(le,ie)]})]})}}}),Bu={adjustX:1,adjustY:1},mRe={topLeft:{points:["bl","tl"],overflow:Bu,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bu,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Bu,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Bu,offset:[4,0]}},yRe={topLeft:{points:["bl","tl"],overflow:Bu,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bu,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Bu,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Bu,offset:[4,0]}},bRe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},d9=h.defineComponent({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,e){let{slots:n,emit:r}=e;const i=h.shallowRef(!1),{getPopupContainer:o,rtl:a,subMenuOpenDelay:s,subMenuCloseDelay:l,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:f,motion:d,defaultMotions:p,rootClassName:g}=kl(),v=o9(),m=h.computed(()=>a.value?k(k({},yRe),u.value):k(k({},mRe),u.value)),y=h.computed(()=>bRe[t.mode]),b=h.shallowRef();h.watch(()=>t.visible,S=>{Dt.cancel(b.value),b.value=Dt(()=>{i.value=S})},{immediate:!0}),h.onBeforeUnmount(()=>{Dt.cancel(b.value)});const O=S=>{r("visibleChange",S)},w=h.computed(()=>{var S,x;const T=d.value||((S=p.value)===null||S===void 0?void 0:S[t.mode])||((x=p.value)===null||x===void 0?void 0:x.other),$=typeof T=="function"?T():T;return $?Zm($.name,{css:!0}):void 0});return()=>{const{prefixCls:S,popupClassName:x,mode:T,popupOffset:$,disabled:A}=t;return h.createVNode(mO,{prefixCls:S,popupClassName:Pe(`${S}-popup`,{[`${S}-rtl`]:a.value},x,g.value),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:o.value,builtinPlacements:m.value,popupPlacement:y.value,popupVisible:i.value,popupAlign:$&&{offset:$},action:A?[]:[c.value],mouseEnterDelay:s.value,mouseLeaveDelay:l.value,onPopupVisibleChange:O,forceRender:v||f.value,popupAnimation:w.value},{popup:n.popup,default:n.default})}}}),OE=(t,e)=>{let{slots:n,attrs:r}=e;var i;const{prefixCls:o,mode:a}=kl();return h.createVNode("ul",K(K({},r),{},{class:Pe(o.value,`${o.value}-sub`,`${o.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(i=n.default)===null||i===void 0?void 0:i.call(n)])};OE.displayName="SubMenuList";const _Re=h.defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,e){let{slots:n}=e;const r=h.computed(()=>"inline"),{motion:i,mode:o,defaultMotions:a}=kl(),s=h.computed(()=>o.value===r.value),l=h.ref(!s.value),u=h.computed(()=>s.value?t.open:!1);h.watch(o,()=>{s.value&&(l.value=!1)},{flush:"post"});const c=h.computed(()=>{var f,d;const p=i.value||((f=a.value)===null||f===void 0?void 0:f[r.value])||((d=a.value)===null||d===void 0?void 0:d.other),g=typeof p=="function"?p():p;return k(k({},g),{appear:t.keyPath.length<=1})});return()=>{var f;return l.value?null:h.createVNode(WO,{mode:r.value},{default:()=>[h.createVNode(h.Transition,c.value,{default:()=>[h.withDirectives(h.createVNode(OE,{id:t.id},{default:()=>[(f=n.default)===null||f===void 0?void 0:f.call(n)]}),[[h.vShow,u.value]])]})]})}}});let h9=0;const ORe=()=>({icon:ne.any,title:ne.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Vt()}),Np=h.defineComponent({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:ORe(),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i}=e;var o,a;s9(!1);const s=_E(),l=h.getCurrentInstance(),u=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;mo(typeof l.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=G$(u)?u:`sub_menu_${++h9}_$$_not_set_key`,f=(o=t.eventKey)!==null&&o!==void 0?o:G$(u)?`sub_menu_${++h9}_$$_${u}`:c,{parentEventKeys:d,parentInfo:p,parentKeys:g}=bE(),v=h.computed(()=>[...g.value,c]),m=h.shallowRef([]),y={eventKey:f,key:c,parentEventKeys:d,childrenEventKeys:m,parentKeys:g};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(f),h.onBeforeUnmount(()=>{var _e;p.childrenEventKeys&&(p.childrenEventKeys.value=(_e=p.childrenEventKeys)===null||_e===void 0?void 0:_e.value.filter(De=>De!=f))}),pRe(f,c,y);const{prefixCls:b,activeKeys:O,disabled:w,changeActiveKeys:S,mode:x,inlineCollapsed:T,openKeys:$,overflowDisabled:A,onOpenChange:P,registerMenuInfo:M,unRegisterMenuInfo:I,selectedSubMenuKeys:R,expandIcon:L,theme:D}=kl(),B=u!=null,F=!s&&(o9()||!B);uRe(F),(s&&B||!s&&!B||F)&&(M(f,y),h.onBeforeUnmount(()=>{I(f)}));const z=h.computed(()=>`${b.value}-submenu`),W=h.computed(()=>w.value||t.disabled),j=h.shallowRef(),H=h.shallowRef(),Z=h.computed(()=>$.value.includes(c)),J=h.computed(()=>!A.value&&Z.value),se=h.computed(()=>R.value.includes(c)),oe=h.shallowRef(!1);h.watch(O,()=>{oe.value=!!O.value.find(_e=>_e===c)},{immediate:!0});const de=_e=>{W.value||(i("titleClick",_e,c),x.value==="inline"&&P(c,!Z.value))},ie=_e=>{W.value||(S(v.value),i("mouseenter",_e))},ue=_e=>{W.value||(S([]),i("mouseleave",_e))},ee=f9(h.computed(()=>v.value.length)),X=_e=>{x.value!=="inline"&&P(c,_e)},Y=()=>{S(v.value)},le=f&&`${f}-popup`,ve=h.computed(()=>Pe(b.value,`${b.value}-${t.theme||D.value}`,t.popupClassName)),ye=(_e,De)=>{if(!De)return T.value&&!g.value.length&&_e&&typeof _e=="string"?h.createVNode("div",{class:`${b.value}-inline-collapsed-noicon`},[_e.charAt(0)]):h.createVNode("span",{class:`${b.value}-title-content`},[_e]);const Fe=po(_e)&&_e.type==="span";return h.createVNode(h.Fragment,null,[Gn(typeof De=="function"?De(t.originItemValue):De,{class:`${b.value}-item-icon`},!1),Fe?_e:h.createVNode("span",{class:`${b.value}-title-content`},[_e])])},Ne=h.computed(()=>x.value!=="inline"&&v.value.length>1?"vertical":x.value),Be=h.computed(()=>x.value==="horizontal"?"vertical":x.value),Me=h.computed(()=>Ne.value==="horizontal"?"vertical":Ne.value),$e=()=>{var _e,De;const Fe=z.value,ct=(_e=t.icon)!==null&&_e!==void 0?_e:(De=n.icon)===null||De===void 0?void 0:De.call(n,t),vt=t.expandIcon||n.expandIcon||L.value,zt=ye(L1(n,t,"title"),ct);return h.createVNode("div",{style:ee.value,class:`${Fe}-title`,tabindex:W.value?null:-1,ref:j,title:typeof zt=="string"?zt:null,"data-menu-id":c,"aria-expanded":J.value,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":W.value,onClick:de,onFocus:Y},[zt,x.value!=="horizontal"&&vt?vt(k(k({},t),{isOpen:J.value})):h.createVNode("i",{class:`${Fe}-arrow`},null)])};return()=>{var _e;if(s)return B?(_e=n.default)===null||_e===void 0?void 0:_e.call(n):null;const De=z.value;let Fe=()=>null;if(!A.value&&x.value!=="inline"){const ct=x.value==="horizontal"?[0,8]:[10,0];Fe=()=>h.createVNode(d9,{mode:Ne.value,prefixCls:De,visible:!t.internalPopupClose&&J.value,popupClassName:ve.value,popupOffset:t.popupOffset||ct,disabled:W.value,onVisibleChange:X},{default:()=>[$e()],popup:()=>h.createVNode(WO,{mode:Me.value},{default:()=>[h.createVNode(OE,{id:le,ref:H},{default:n.default})]})})}else Fe=()=>h.createVNode(d9,null,{default:$e});return h.createVNode(WO,{mode:Be.value},{default:()=>[h.createVNode(Ml.Item,K(K({component:"li"},r),{},{role:"none",class:Pe(De,`${De}-${x.value}`,r.class,{[`${De}-open`]:J.value,[`${De}-active`]:oe.value,[`${De}-selected`]:se.value,[`${De}-disabled`]:W.value}),onMouseenter:ie,onMouseleave:ue,"data-submenu-id":c}),{default:()=>h.createVNode(h.Fragment,null,[Fe(),!A.value&&h.createVNode(_Re,{id:le,open:J.value,keyPath:v.value},{default:n.default})])})]})}}});function p9(t,e){return t.classList?t.classList.contains(e):` ${t.className} `.indexOf(` ${e} `)>-1}function g9(t,e){t.classList?t.classList.add(e):p9(t,e)||(t.className=`${t.className} ${e}`)}function v9(t,e){if(t.classList)t.classList.remove(e);else if(p9(t,e)){const n=t.className;t.className=` ${n} `.replace(` ${e} `," ")}}const wE=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:e,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",g9(n,t)},onEnter:n=>{h.nextTick(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(v9(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{g9(n,t),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(v9(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}},wRe=()=>({title:ne.any,originItemValue:Vt()}),HO=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:wRe(),slots:Object,setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=kl(),o=h.computed(()=>`${i.value}-item-group`),a=_E();return()=>{var s,l;return a?(s=n.default)===null||s===void 0?void 0:s.call(n):h.createVNode("li",K(K({},r),{},{onClick:u=>u.stopPropagation(),class:o.value}),[h.createVNode("div",{title:typeof t.title=="string"?t.title:void 0,class:`${o.value}-title`},[L1(n,t,"title")]),h.createVNode("ul",{class:`${o.value}-list`},[(l=n.default)===null||l===void 0?void 0:l.call(n)])])}}}),SRe=()=>({prefixCls:String,dashed:Boolean}),GO=h.defineComponent({compatConfig:{MODE:3},name:"AMenuDivider",props:SRe(),setup(t){const{prefixCls:e}=kl(),n=h.computed(()=>({[`${e.value}-item-divider`]:!0,[`${e.value}-item-divider-dashed`]:!!t.dashed}));return()=>h.createVNode("li",{class:n.value},null)}});var xRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(r&&typeof r=="object"){const o=r,{label:a,children:s,key:l,type:u}=o,c=xRe(o,["label","children","key","type"]),f=l??`tmp-${i}`,d=n?n.parentKeys.slice():[],p=[],g={eventKey:f,key:f,parentEventKeys:h.ref(d),parentKeys:h.ref(d),childrenEventKeys:h.ref(p),isLeaf:!1};if(s||u==="group"){if(u==="group"){const m=SE(s,e,n);return h.createVNode(HO,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[m]})}e.set(f,g),n&&n.childrenEventKeys.push(f);const v=SE(s,e,{childrenEventKeys:p,parentKeys:[].concat(d,f)});return h.createVNode(Np,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[v]})}return u==="divider"?h.createVNode(GO,K({key:f},c),null):(g.isLeaf=!0,e.set(f,g),h.createVNode(kp,K(K({key:f},c),{},{originItemValue:r}),{default:()=>[a]}))}return null}).filter(r=>r)}function CRe(t){const e=h.shallowRef([]),n=h.shallowRef(!1),r=h.shallowRef(new Map);return h.watch(()=>t.items,()=>{const i=new Map;n.value=!1,t.items?(n.value=!0,e.value=SE(t.items,i)):e.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:e,store:r,hasItmes:n}}const TRe=t=>{const{componentCls:e,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${e}-item:hover, > ${e}-item-active, > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},PRe=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},m9=t=>k({},Fm(t)),y9=(t,e)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:o,colorItemBg:a,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:f,motionDurationSlow:d,motionEaseInOut:p,motionEaseOut:g,menuItemPaddingInline:v,motionDurationMid:m,colorItemTextHover:y,lineType:b,colorSplit:O,colorItemTextDisabled:w,colorDangerItemText:S,colorDangerItemTextHover:x,colorDangerItemTextSelected:T,colorDangerItemBgActive:$,colorDangerItemBgSelected:A,colorItemBgHover:P,menuSubMenuBg:M,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:R}=t;return{[`${n}-${e}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:k({},m9(t)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:A}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:k({},m9(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:k(k({},e==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${d} ${p}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:f&&c?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${g}`,`opacity ${m} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},b9=t=>{const{componentCls:e,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:s}=t,l=i+o+a;return{[`${e}-item`]:{position:"relative"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${e}-submenu`]:{paddingBottom:.02},[`> ${e}-item, > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title, ${e}-submenu-title`]:{paddingInlineEnd:l}}},$Re=t=>{const{componentCls:e,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:u,fontSizeSM:c,fontSizeLG:f,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:g}=t,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":k({[`&${e}-root`]:{boxShadow:"none"}},b9(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:k(k({},b9(t)),{boxShadow:g})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:v,[`& ${e}-item-group-title`]:{paddingInlineStart:u}},[`${e}-item`]:v}},{[`${e}-inline-collapsed`]:{width:r*2,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${e}-item, > ${e}-item-group > ${e}-item-group-list > ${e}-item, > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title, > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[` ${e}-submenu-arrow, ${e}-submenu-expand-icon `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:f,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${e}-item-group-title`]:k(k({},wp),{paddingInline:p})}}]},_9=t=>{const{componentCls:e,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:s,controlHeightSM:l}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${e}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${e}-item-icon`]:k({},Sp()),[`&${e}-item-only-child`]:{[`> ${s}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},O9=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:o*.6,height:o*.15,backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},ARe=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:u,colorSplit:c,lineWidth:f,zIndexPopup:d,borderRadiusLG:p,radiusSubMenuItem:g,menuArrowSize:v,menuArrowOffset:m,lineType:y,menuPanelMaskInset:b}=t;return[{"":{[`${n}`]:k(k({},rO()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:k(k(k(k(k(k(k({},bn(t)),rO()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:t.radiusItem},[`${n}-item-group-title`]:{padding:`${l}px ${u}px`,fontSize:r,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_9(t)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:k(k(k({borderRadius:p},_9(t)),O9(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})}}),O9(t)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ERe=(t,e)=>Fn("Menu",(r,i)=>{let{overrideComponentToken:o}=i;if((e==null?void 0:e.value)===!1)return[];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:f,fontSize:d}=r,p=d/7*5,g=Xt(r,{menuItemHeight:f,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:f*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),v=new yn(c).setAlpha(.65).toRgbString(),m=Xt(g,{colorItemText:v,colorItemTextHover:c,colorGroupTitle:v,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new yn(c).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:s},k({},o));return[ARe(g),TRe(g),$Re(g),y9(g,"light"),y9(m,"dark"),PRe(g),aE(g),Ep(g,"slide-up"),Ep(g,"slide-down"),MO(g,"zoom-big")]},r=>{const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:c,colorFillAlter:f,colorFillContent:d,lineWidth:p,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:m}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:i,colorGroupTitle:u,colorItemTextSelected:i,colorItemTextSelectedHorizontal:i,colorItemBg:c,colorItemBgHover:m,colorItemBgActive:d,colorSubItemBg:f,colorItemBgSelected:v,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:p,colorItemTextDisabled:a,colorDangerItemText:o,colorDangerItemTextHover:o,colorDangerItemTextSelected:o,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:r.marginXXS}})(t),MRe=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),w9=[],Vu=h.defineComponent({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:MRe(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const{direction:o,getPrefixCls:a}=Qt("menu",t),s=t9(),l=h.computed(()=>{var ie;return a("menu",t.prefixCls||((ie=s==null?void 0:s.prefixCls)===null||ie===void 0?void 0:ie.value))}),[u,c]=ERe(l,h.computed(()=>!s)),f=h.shallowRef(new Map),d=h.inject(dRe,h.ref(void 0)),p=h.computed(()=>d.value!==void 0?d.value:t.inlineCollapsed),{itemsNodes:g}=CRe(t),v=h.shallowRef(!1);h.onMounted(()=>{v.value=!0}),h.watchEffect(()=>{mo(!(t.inlineCollapsed===!0&&t.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),mo(!(d.value!==void 0&&t.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const m=h.ref([]),y=h.ref([]),b=h.ref({});h.watch(f,()=>{const ie={};for(const ue of f.value.values())ie[ue.key]=ue;b.value=ie},{flush:"post"}),h.watchEffect(()=>{if(t.activeKey!==void 0){let ie=[];const ue=t.activeKey?b.value[t.activeKey]:void 0;ue&&t.activeKey!==void 0?ie=e$([].concat(h.unref(ue.parentKeys),t.activeKey)):ie=[],e0(m.value,ie)||(m.value=ie)}}),h.watch(()=>t.selectedKeys,ie=>{ie&&(y.value=ie.slice())},{immediate:!0,deep:!0});const O=h.ref([]);h.watch([b,y],()=>{let ie=[];y.value.forEach(ue=>{const ee=b.value[ue];ee&&(ie=ie.concat(h.unref(ee.parentKeys)))}),ie=e$(ie),e0(O.value,ie)||(O.value=ie)},{immediate:!0});const w=ie=>{if(t.selectable){const{key:ue}=ie,ee=y.value.includes(ue);let X;t.multiple?ee?X=y.value.filter(le=>le!==ue):X=[...y.value,ue]:X=[ue];const Y=k(k({},ie),{selectedKeys:X});e0(X,y.value)||(t.selectedKeys===void 0&&(y.value=X),r("update:selectedKeys",X),ee&&t.multiple?r("deselect",Y):r("select",Y))}P.value!=="inline"&&!t.multiple&&S.value.length&&R(w9)},S=h.ref([]);h.watch(()=>t.openKeys,function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.value;e0(S.value,ie)||(S.value=ie.slice())},{immediate:!0,deep:!0});let x;const T=ie=>{clearTimeout(x),x=setTimeout(()=>{t.activeKey===void 0&&(m.value=ie),r("update:activeKey",ie[ie.length-1])})},$=h.computed(()=>!!t.disabled),A=h.computed(()=>o.value==="rtl"),P=h.ref("vertical"),M=h.shallowRef(!1);h.watchEffect(()=>{var ie;(t.mode==="inline"||t.mode==="vertical")&&p.value?(P.value="vertical",M.value=p.value):(P.value=t.mode,M.value=!1),!((ie=s==null?void 0:s.mode)===null||ie===void 0)&&ie.value&&(P.value=s.mode.value)});const I=h.computed(()=>P.value==="inline"),R=ie=>{S.value=ie,r("update:openKeys",ie),r("openChange",ie)},L=h.ref(S.value),D=h.shallowRef(!1);h.watch(S,()=>{I.value&&(L.value=S.value)},{immediate:!0}),h.watch(I,()=>{if(!D.value){D.value=!0;return}I.value?S.value=L.value:R(w9)},{immediate:!0});const B=h.computed(()=>({[`${l.value}`]:!0,[`${l.value}-root`]:!0,[`${l.value}-${P.value}`]:!0,[`${l.value}-inline-collapsed`]:M.value,[`${l.value}-rtl`]:A.value,[`${l.value}-${t.theme}`]:!0})),F=h.computed(()=>a()),z=h.computed(()=>({horizontal:{name:`${F.value}-slide-up`},inline:wE(`${F.value}-motion-collapse`),other:{name:`${F.value}-zoom-big`}}));s9(!0);const W=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ue=[],ee=f.value;return ie.forEach(X=>{const{key:Y,childrenEventKeys:le}=ee.get(X);ue.push(Y,...W(h.unref(le)))}),ue},j=ie=>{var ue;r("click",ie),w(ie),(ue=s==null?void 0:s.onClick)===null||ue===void 0||ue.call(s)},H=(ie,ue)=>{var ee;const X=((ee=b.value[ie])===null||ee===void 0?void 0:ee.childrenEventKeys)||[];let Y=S.value.filter(le=>le!==ie);if(ue)Y.push(ie);else if(P.value!=="inline"){const le=W(h.unref(X));Y=e$(Y.filter(ve=>!le.includes(ve)))}e0(S,Y)||R(Y)},Z=(ie,ue)=>{f.value.set(ie,ue),f.value=new Map(f.value)},J=ie=>{f.value.delete(ie),f.value=new Map(f.value)},se=h.ref(0),oe=h.computed(()=>{var ie;return t.expandIcon||n.expandIcon||!((ie=s==null?void 0:s.expandIcon)===null||ie===void 0)&&ie.value?ue=>{let ee=t.expandIcon||n.expandIcon;return ee=typeof ee=="function"?ee(ue):ee,Gn(ee,{class:`${l.value}-submenu-expand-icon`},!1)}:null});fRe({prefixCls:l,activeKeys:m,openKeys:S,selectedKeys:y,changeActiveKeys:T,disabled:$,rtl:A,mode:P,inlineIndent:h.computed(()=>t.inlineIndent),subMenuCloseDelay:h.computed(()=>t.subMenuCloseDelay),subMenuOpenDelay:h.computed(()=>t.subMenuOpenDelay),builtinPlacements:h.computed(()=>t.builtinPlacements),triggerSubMenuAction:h.computed(()=>t.triggerSubMenuAction),getPopupContainer:h.computed(()=>t.getPopupContainer),inlineCollapsed:M,theme:h.computed(()=>t.theme),siderCollapsed:d,defaultMotions:h.computed(()=>v.value?z.value:null),motion:h.computed(()=>v.value?t.motion:null),overflowDisabled:h.shallowRef(void 0),onOpenChange:H,onItemClick:j,registerMenuInfo:Z,unRegisterMenuInfo:J,selectedSubMenuKeys:O,expandIcon:oe,forceSubMenuRender:h.computed(()=>t.forceSubMenuRender),rootClassName:c});const de=()=>{var ie;return g.value||vr((ie=n.default)===null||ie===void 0?void 0:ie.call(n))};return()=>{var ie;const ue=de(),ee=se.value>=ue.length-1||P.value!=="horizontal"||t.disabledOverflow,X=le=>P.value!=="horizontal"||t.disabledOverflow?le:le.map((ve,ye)=>h.createVNode(WO,{key:ve.key,overflowDisabled:ye>se.value},{default:()=>ve})),Y=((ie=n.overflowedIndicator)===null||ie===void 0?void 0:ie.call(n))||h.createVNode(zO,null,null);return u(h.createVNode(Ml,K(K({},i),{},{onMousedown:t.onMousedown,prefixCls:`${l.value}-overflow`,component:"ul",itemComponent:kp,class:[B.value,i.class,c.value],role:"menu",id:t.id,data:X(ue),renderRawItem:le=>le,renderRawRest:le=>{const ve=le.length,ye=ve?ue.slice(-ve):null;return h.createVNode(h.Fragment,null,[h.createVNode(Np,{eventKey:QO,key:QO,title:Y,disabled:ee,internalPopupClose:ve===0},{default:()=>ye}),h.createVNode(c9,null,{default:()=>[h.createVNode(Np,{eventKey:QO,key:QO,title:Y,disabled:ee,internalPopupClose:ve===0},{default:()=>ye})]})])},maxCount:P.value!=="horizontal"||t.disabledOverflow?Ml.INVALIDATE:Ml.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:le=>{se.value=le}}),{default:()=>[h.createVNode(h.Teleport,{to:"body"},{default:()=>[h.createVNode("div",{style:{display:"none"},"aria-hidden":!0},[h.createVNode(c9,null,{default:()=>[X(de())]})])]})]}))}}});Vu.install=function(t){return t.component(Vu.name,Vu),t.component(kp.name,kp),t.component(Np.name,Np),t.component(GO.name,GO),t.component(HO.name,HO),t},Vu.Item=kp,Vu.Divider=GO,Vu.SubMenu=Np,Vu.ItemGroup=HO;var IRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.checked,()=>{o.value=t.checked}),i({focus(){var c;(c=a.value)===null||c===void 0||c.focus()},blur(){var c;(c=a.value)===null||c===void 0||c.blur()}});const s=h.ref(),l=c=>{if(t.disabled)return;t.checked===void 0&&(o.value=c.target.checked),c.shiftKey=s.value;const f={target:k(k({},t),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};t.checked!==void 0&&(a.value.checked=!!t.checked),r("change",f),s.value=!1},u=c=>{r("click",c),s.value=c.shiftKey};return()=>{const{prefixCls:c,name:f,id:d,type:p,disabled:g,readonly:v,tabindex:m,autofocus:y,value:b,required:O}=t,w=IRe(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:S,onFocus:x,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P}=n,M=k(k({},w),n),I=Object.keys(M).reduce((D,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(D[B]=M[B]),D),{}),R=Pe(c,S,{[`${c}-checked`]:o.value,[`${c}-disabled`]:g}),L=k(k({name:f,id:d,type:p,readonly:v,disabled:g,tabindex:m,class:`${c}-input`,checked:!!o.value,autofocus:y,value:b},I),{onChange:l,onClick:u,onFocus:x,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P,required:O});return h.createVNode("span",{class:R},[h.createVNode("input",K({ref:a},L),null),h.createVNode("span",{class:`${c}-inner`},null)])}}}),x9=Symbol("radioGroupContextKey"),RRe=t=>{h.provide(x9,t)},kRe=()=>h.inject(x9,void 0),C9=Symbol("radioOptionTypeContextKey"),NRe=t=>{h.provide(C9,t)},LRe=()=>h.inject(C9,void 0),BRe=new At("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),VRe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-group`;return{[r]:k(k({},bn(t)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},zRe=t=>{const{componentCls:e,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:u,colorBorder:c,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:v,radioDotDisabledColor:m,lineType:y,radioDotDisabledSize:b,wireframe:O,colorWhite:w}=t,S=`${e}-inner`;return{[`${e}-wrapper`]:k(k({},bn(t)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${e}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${e}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:BRe,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[e]:k(k({},bn(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${e}-wrapper:hover &, &:hover ${S}`]:{borderColor:r},[`${e}-input:focus-visible + ${S}`]:k({},Fm(t)),[`${e}:hover::after, ${e}-wrapper:hover &::after`]:{visibility:"visible"},[`${e}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:O?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${e}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[S]:{borderColor:r,backgroundColor:O?u:r,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${e}-checked`]:{[S]:{"&::after":{transform:`scale(${b/i})`}}}},[`span${e} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},FRe=t=>{const{radioButtonColor:e,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:f,fontSizeLG:d,controlHeightLG:p,controlHeightSM:g,paddingXS:v,borderRadius:m,borderRadiusSM:y,borderRadiusLG:b,radioCheckedColor:O,radioButtonCheckedBg:w,radioButtonHoverColor:S,radioButtonActiveColor:x,radioSolidCheckedColor:T,colorTextDisabled:$,colorBgContainerDisabled:A,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:M}=t;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:e,fontSize:c,lineHeight:`${n-i*2}px`,background:f,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:e},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:d,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:v-i,paddingBlock:0,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":k({},Fm(t)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:w,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:T,background:O,borderColor:O,"&:hover":{color:T,background:S,borderColor:S},"&:active":{color:T,background:x,borderColor:x}},"&-disabled":{color:$,backgroundColor:A,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:A,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:M,borderColor:a,boxShadow:"none"}}}},T9=Fn("Radio",t=>{const{padding:e,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:u,colorText:c,colorPrimary:f,marginXS:d,controlOutlineWidth:p,colorTextLightSolid:g,wireframe:v}=t,m=`0 0 0 ${p}px ${s}`,y=m,b=a,O=4,w=b-O*2,S=v?w:b-(O+n)*2,x=f,T=c,$=l,A=u,P=e-n,R=Xt(t,{radioFocusShadow:m,radioButtonFocusShadow:y,radioSize:b,radioDotSize:S,radioDotDisabledSize:w,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:g,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:T,radioButtonHoverColor:$,radioButtonActiveColor:A,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[VRe(R),zRe(R),FRe(R)]});var WRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({prefixCls:String,checked:lt(),disabled:lt(),isGroup:lt(),value:ne.any,name:String,id:String,autofocus:lt(),onChange:ut(),onFocus:ut(),onBlur:ut(),onClick:ut(),"onUpdate:checked":ut(),"onUpdate:value":ut()}),Gi=h.defineComponent({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:P9(),setup(t,e){let{emit:n,expose:r,slots:i,attrs:o}=e;const a=Ms(),s=Za.useInject(),l=LRe(),u=kRe(),c=Cs(),f=h.computed(()=>{var $;return($=v.value)!==null&&$!==void 0?$:c.value}),d=h.ref(),{prefixCls:p,direction:g,disabled:v}=Qt("radio",t),m=h.computed(()=>(u==null?void 0:u.optionType.value)==="button"||l==="button"?`${p.value}-button`:p.value),y=Cs(),[b,O]=T9(p);r({focus:()=>{d.value.focus()},blur:()=>{d.value.blur()}});const x=$=>{const A=$.target.checked;n("update:checked",A),n("update:value",A),n("change",$),a.onFieldChange()},T=$=>{n("change",$),u&&u.onChange&&u.onChange($)};return()=>{var $;const A=u,{prefixCls:P,id:M=a.id.value}=t,I=WRe(t,["prefixCls","id"]),R=k(k({prefixCls:m.value,id:M},Er(I,["onUpdate:checked","onUpdate:value"])),{disabled:($=v.value)!==null&&$!==void 0?$:y.value});A?(R.name=A.name.value,R.onChange=T,R.checked=t.value===A.value.value,R.disabled=f.value||A.disabled.value):R.onChange=x;const L=Pe({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:R.checked,[`${m.value}-wrapper-disabled`]:R.disabled,[`${m.value}-wrapper-rtl`]:g.value==="rtl",[`${m.value}-wrapper-in-form-item`]:s.isFormItemInput},o.class,O.value);return b(h.createVNode("label",K(K({},o),{},{class:L}),[h.createVNode(S9,K(K({},R),{},{type:"radio",ref:d}),null),i.default&&h.createVNode("span",null,[i.default()])]))}}}),QRe=()=>({prefixCls:String,value:ne.any,size:$n(),options:Of(),disabled:lt(),name:String,buttonStyle:$n("outline"),id:String,optionType:$n("default"),onChange:ut(),"onUpdate:value":ut()}),Rf=h.defineComponent({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:QRe(),setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=Ms(),{prefixCls:a,direction:s,size:l}=Qt("radio",t),[u,c]=T9(a),f=h.ref(t.value),d=h.ref(!1);return h.watch(()=>t.value,g=>{f.value=g,d.value=!1}),RRe({onChange:g=>{const v=f.value,{value:m}=g.target;"value"in t||(f.value=m),!d.value&&m!==v&&(d.value=!0,r("update:value",m),r("change",g),o.onFieldChange()),h.nextTick(()=>{d.value=!1})},value:f,disabled:h.computed(()=>t.disabled),name:h.computed(()=>t.name),optionType:h.computed(()=>t.optionType)}),()=>{var g;const{options:v,buttonStyle:m,id:y=o.id.value}=t,b=`${a.value}-group`,O=Pe(b,`${b}-${m}`,{[`${b}-${l.value}`]:l.value,[`${b}-rtl`]:s.value==="rtl"},i.class,c.value);let w=null;return v&&v.length>0?w=v.map(S=>{if(typeof S=="string"||typeof S=="number")return h.createVNode(Gi,{key:S,prefixCls:a.value,disabled:t.disabled,value:S,checked:f.value===S},{default:()=>[S]});const{value:x,disabled:T,label:$}=S;return h.createVNode(Gi,{key:`radio-group-value-options-${x}`,prefixCls:a.value,disabled:T||t.disabled,value:x,checked:f.value===x},{default:()=>[$]})}):w=(g=n.default)===null||g===void 0?void 0:g.call(n),u(h.createVNode("div",K(K({},i),{},{class:O,id:y}),[w]))}}}),Is=h.defineComponent({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:P9(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=Qt("radio",t);return NRe("button"),()=>{var o;return h.createVNode(Gi,K(K(K({},r),t),{},{prefixCls:i.value}),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}}});Gi.Group=Rf,Gi.Button=Is,Gi.install=function(t){return t.component(Gi.name,Gi),t.component(Gi.Group.name,Gi.Group),t.component(Gi.Button.name,Gi.Button),t};const $9=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),t0=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),jO=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),A9=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":k({},t0(Xt(t,{inputBorderHoverColor:t.colorBorder})))}),E9=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},M9=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),UO=(t,e)=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":k({},jO(Xt(t,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":k({},jO(Xt(t,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${n}-prefix`]:{color:i}}}},ZO=t=>k(k({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},$9(t.colorTextPlaceholder)),{"&:hover":k({},t0(t)),"&:focus, &-focused":k({},jO(t)),"&-disabled, &[disabled]":k({},A9(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":k({},E9(t)),"&-sm":k({},M9(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),I9=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:k({},E9(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:k({},M9(t)),[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${t.inputPaddingHorizontal}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${t.inputPaddingVertical+1}px -${t.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:t.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${t.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${e}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:k(k({display:"block"},rO()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${e}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${e}, & > ${n}-cascader-picker ${e}, & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${e}, & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${e}, & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:t.fontSizeSM,height:t.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:t.fontSizeLG,height:t.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightSM}px`}}}},HRe=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r}=t,o=(n-r*2-16)/2;return{[e]:k(k(k(k({},bn(t)),ZO(t)),UO(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:o,paddingBottom:o}}})}},GRe=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${e}-clear-icon`]:{position:"absolute",insetBlockStart:t.paddingXS,insetInlineEnd:t.paddingXS,zIndex:1}}}},jRe=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=t;return{[`${e}-affix-wrapper`]:k(k(k(k(k({},ZO(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},t0(t)),{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> input${e}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),GRe(t)),{[`${s}${e}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),UO(t,`${e}-affix-wrapper`))}},URe=t=>{const{componentCls:e,colorError:n,colorSuccess:r,borderRadiusLG:i,borderRadiusSM:o}=t;return{[`${e}-group`]:k(k(k({},bn(t)),I9(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:i}},"&-sm":{[`${e}-group-addon`]:{borderRadius:o}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},ZRe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:t.controlHeightLG},[`&-small ${r}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button, > ${e}, ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function D9(t){return Xt(t,{inputAffixPadding:t.paddingXXS,inputPaddingVertical:Math.max(Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,3),inputPaddingVerticalLG:Math.ceil((t.controlHeightLG-t.fontSizeLG*t.lineHeightLG)/2*10)/10-t.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((t.controlHeightSM-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,0),inputPaddingHorizontal:t.paddingSM-t.lineWidth,inputPaddingHorizontalSM:t.paddingXS-t.lineWidth,inputPaddingHorizontalLG:t.controlPaddingHorizontal-t.lineWidth,inputBorderHoverColor:t.colorPrimaryHover,inputBorderActiveColor:t.colorPrimaryHover})}const XRe=t=>{const{componentCls:e,inputPaddingHorizontal:n,paddingLG:r}=t,i=`${e}-textarea`;return{[i]:{position:"relative",[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${i}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${e}`]:{height:"100%"},"&::after":{color:t.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},xE=Fn("Input",t=>{const e=D9(t);return[HRe(e),XRe(e),jRe(e),URe(e),ZRe(e),IO(e)]});function YRe(t){const e=h.shallowRef(),n=h.shallowRef(!1);function r(){for(var i=arguments.length,o=new Array(i),a=0;a{t(...o)}))}return h.onBeforeUnmount(()=>{n.value=!0,Dt.cancel(e.value)}),r}function qRe(t){const e=h.shallowRef([]),n=h.shallowRef(typeof t=="function"?t():t),r=YRe(()=>{let o=n.value;e.value.forEach(a=>{o=a(o)}),e.value=[],n.value=o});function i(o){e.value.push(o),r()}return[n,i]}const KRe=h.defineComponent({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(t,e){let{expose:n,attrs:r}=e;const i=h.ref();function o(l){var u;!((u=t.tab)===null||u===void 0)&&u.disabled||t.onClick(l)}n({domRef:i});function a(l){var u;l.preventDefault(),l.stopPropagation(),t.editable.onEdit("remove",{key:(u=t.tab)===null||u===void 0?void 0:u.key,event:l})}const s=h.computed(()=>{var l;return t.editable&&t.closable!==!1&&!(!((l=t.tab)===null||l===void 0)&&l.disabled)});return()=>{var l;const{prefixCls:u,id:c,active:f,tab:{key:d,tab:p,disabled:g,closeIcon:v},renderWrapper:m,removeAriaLabel:y,editable:b,onFocus:O}=t,w=`${u}-tab`,S=h.createVNode("div",{key:d,ref:i,class:Pe(w,{[`${w}-with-remove`]:s.value,[`${w}-active`]:f,[`${w}-disabled`]:g}),style:r.style,onClick:o},[h.createVNode("div",{role:"tab","aria-selected":f,id:c&&`${c}-tab-${d}`,class:`${w}-btn`,"aria-controls":c&&`${c}-panel-${d}`,"aria-disabled":g,tabindex:g?null:0,onClick:x=>{x.stopPropagation(),o(x)},onKeydown:x=>{[Se.SPACE,Se.ENTER].includes(x.which)&&(x.preventDefault(),o(x))},onFocus:O},[typeof p=="function"?p():p]),s.value&&h.createVNode("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${w}-remove`,onClick:x=>{x.stopPropagation(),a(x)}},[(v==null?void 0:v())||((l=b.removeIcon)===null||l===void 0?void 0:l.call(b))||"×"])]);return m?m(S):S}}}),R9={width:0,height:0,left:0,top:0};function JRe(t,e){const n=h.ref(new Map);return h.watchEffect(()=>{var r,i;const o=new Map,a=t.value,s=e.value.get((r=a[0])===null||r===void 0?void 0:r.key)||R9,l=s.left+s.width;for(let u=0;u{const{prefixCls:o,editable:a,locale:s}=t;return!a||a.showAdd===!1?null:h.createVNode("button",{ref:i,type:"button",class:`${o}-nav-add`,style:r.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:l=>{a.onEdit("add",{event:l})}},[a.addIcon?a.addIcon():"+"])}}}),eke={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:ne.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ut()},tke=h.defineComponent({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:eke,emits:["tabClick"],slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const[i,o]=An(!1),[a,s]=An(null),l=p=>{const g=t.tabs.filter(y=>!y.disabled);let v=g.findIndex(y=>y.key===a.value)||0;const m=g.length;for(let y=0;y{const{which:g}=p;if(!i.value){[Se.DOWN,Se.SPACE,Se.ENTER].includes(g)&&(o(!0),p.preventDefault());return}switch(g){case Se.UP:l(-1),p.preventDefault();break;case Se.DOWN:l(1),p.preventDefault();break;case Se.ESC:o(!1);break;case Se.SPACE:case Se.ENTER:a.value!==null&&t.onTabClick(a.value,p);break}},c=h.computed(()=>`${t.id}-more-popup`),f=h.computed(()=>a.value!==null?`${c.value}-${a.value}`:null),d=(p,g)=>{p.preventDefault(),p.stopPropagation(),t.editable.onEdit("remove",{key:g,event:p})};return h.onMounted(()=>{h.watch(a,()=>{const p=document.getElementById(f.value);p&&p.scrollIntoView&&p.scrollIntoView(!1)},{flush:"post",immediate:!0})}),h.watch(i,()=>{i.value||s(null)}),sRe({}),()=>{var p;const{prefixCls:g,id:v,tabs:m,locale:y,mobile:b,moreIcon:O=((p=r.moreIcon)===null||p===void 0?void 0:p.call(r))||h.createVNode(zO,null,null),moreTransitionName:w,editable:S,tabBarGutter:x,rtl:T,onTabClick:$,popupClassName:A}=t;if(!m.length)return null;const P=`${g}-dropdown`,M=y==null?void 0:y.dropdownAriaLabel,I={[T?"marginRight":"marginLeft"]:x};m.length||(I.visibility="hidden",I.order=1);const R=Pe({[`${P}-rtl`]:T,[`${A}`]:!0}),L=b?null:h.createVNode(PDe,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:w,onVisibleChange:o,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:t.getPopupContainer},{overlay:()=>h.createVNode(Vu,{onClick:D=>{let{key:B,domEvent:F}=D;$(B,F),o(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[a.value],"aria-label":M!==void 0?M:"expanded dropdown"},{default:()=>[m.map(D=>{var B,F;const z=S&&D.closable!==!1&&!D.disabled;return h.createVNode(kp,{key:D.key,id:`${c.value}-${D.key}`,role:"option","aria-controls":v&&`${v}-panel-${D.key}`,disabled:D.disabled},{default:()=>[h.createVNode("span",null,[typeof D.tab=="function"?D.tab():D.tab]),z&&h.createVNode("button",{type:"button","aria-label":t.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:W=>{W.stopPropagation(),d(W,D.key)}},[((B=D.closeIcon)===null||B===void 0?void 0:B.call(D))||((F=S.removeIcon)===null||F===void 0?void 0:F.call(S))||"×"])]})})]}),default:()=>h.createVNode("button",{type:"button",class:`${g}-nav-more`,style:I,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${v}-more`,"aria-expanded":i.value,onKeydown:u},[O])});return h.createVNode("div",{class:Pe(`${g}-nav-operations`,n.class),style:n.style},[L,h.createVNode(k9,{prefixCls:g,locale:y,editable:S},null)])}}}),N9=Symbol("tabsContextKey"),L9=t=>{h.provide(N9,t)},B9=()=>h.inject(N9,{tabs:h.ref([]),prefixCls:h.ref()});h.defineComponent({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(t,e){let{slots:n}=e;return L9(h.toRefs(t)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const nke=.1,V9=.01,XO=20,z9=Math.pow(.995,XO);function rke(t,e){const[n,r]=An(),[i,o]=An(0),[a,s]=An(0),[l,u]=An(),c=h.ref();function f(S){const{screenX:x,screenY:T}=S.touches[0];r({x,y:T}),clearInterval(c.value)}function d(S){if(!n.value)return;S.preventDefault();const{screenX:x,screenY:T}=S.touches[0],$=x-n.value.x,A=T-n.value.y;e($,A),r({x,y:T});const P=Date.now();s(P-i.value),o(P),u({x:$,y:A})}function p(){if(!n.value)return;const S=l.value;if(r(null),u(null),S){const x=S.x/a.value,T=S.y/a.value,$=Math.abs(x),A=Math.abs(T);if(Math.max($,A){if(Math.abs(P)P?($=x,g.value="x"):($=T,g.value="y"),e(-$,-$)&&S.preventDefault()}const m=h.ref({onTouchStart:f,onTouchMove:d,onTouchEnd:p,onWheel:v});function y(S){m.value.onTouchStart(S)}function b(S){m.value.onTouchMove(S)}function O(S){m.value.onTouchEnd(S)}function w(S){m.value.onWheel(S)}h.onMounted(()=>{var S,x;document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),(S=t.value)===null||S===void 0||S.addEventListener("touchstart",y,{passive:!1}),(x=t.value)===null||x===void 0||x.addEventListener("wheel",w,{passive:!1})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",O)})}function F9(t,e){const n=h.ref(t);function r(i){const o=typeof i=="function"?i(n.value):i;o!==n.value&&e(o,n.value),n.value=o}return[n,r]}const ike=()=>{const t=h.ref(new Map),e=n=>r=>{t.value.set(n,r)};return h.onBeforeUpdate(()=>{t.value=new Map}),[e,t]},W9={width:0,height:0,left:0,top:0,right:0},oke=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Vt(),editable:Vt(),moreIcon:ne.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Vt(),popupClassName:String,getPopupContainer:ut(),onTabClick:{type:Function},onTabScroll:{type:Function}}),ake=(t,e)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=t,{width:a,height:s,x:l,y:u}=t.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-e.x,u-e.y]:[n,r,o,i]},Q9=h.defineComponent({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:oke(),slots:Object,emits:["tabClick","tabScroll"],setup(t,e){let{attrs:n,slots:r}=e;const{tabs:i,prefixCls:o}=B9(),a=h.shallowRef(),s=h.shallowRef(),l=h.shallowRef(),u=h.shallowRef(),[c,f]=ike(),d=h.computed(()=>t.tabPosition==="top"||t.tabPosition==="bottom"),[p,g]=F9(0,($e,_e)=>{d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"left":"right"})}),[v,m]=F9(0,($e,_e)=>{!d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"top":"bottom"})}),[y,b]=An(0),[O,w]=An(0),[S,x]=An(null),[T,$]=An(null),[A,P]=An(0),[M,I]=An(0),[R,L]=qRe(new Map),D=JRe(i,R),B=h.computed(()=>`${o.value}-nav-operations-hidden`),F=h.shallowRef(0),z=h.shallowRef(0);h.watchEffect(()=>{d.value?t.rtl?(F.value=0,z.value=Math.max(0,y.value-S.value)):(F.value=Math.min(0,S.value-y.value),z.value=0):(F.value=Math.min(0,T.value-O.value),z.value=0)});const W=$e=>$ez.value?z.value:$e,j=h.shallowRef(),[H,Z]=An(),J=()=>{Z(Date.now())},se=()=>{clearTimeout(j.value)},oe=($e,_e)=>{$e(De=>W(De+_e))};rke(a,($e,_e)=>{if(d.value){if(S.value>=y.value)return!1;oe(g,$e)}else{if(T.value>=O.value)return!1;oe(m,_e)}return se(),J(),!0}),h.watch(H,()=>{se(),H.value&&(j.value=setTimeout(()=>{Z(0)},100))});const de=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activeKey;const _e=D.value.get($e)||{width:0,height:0,left:0,right:0,top:0};if(d.value){let De=p.value;t.rtl?_e.rightp.value+S.value&&(De=_e.right+_e.width-S.value):_e.left<-p.value?De=-_e.left:_e.left+_e.width>-p.value+S.value&&(De=-(_e.left+_e.width-S.value)),m(0),g(W(De))}else{let De=v.value;_e.top<-v.value?De=-_e.top:_e.top+_e.height>-v.value+T.value&&(De=-(_e.top+_e.height-T.value)),g(0),m(W(De))}},ie=h.shallowRef(0),ue=h.shallowRef(0);h.watchEffect(()=>{let $e,_e,De,Fe,ct,vt;const zt=D.value;["top","bottom"].includes(t.tabPosition)?($e="width",Fe=S.value,ct=y.value,vt=A.value,_e=t.rtl?"right":"left",De=Math.abs(p.value)):($e="height",Fe=T.value,ct=y.value,vt=M.value,_e="top",De=-v.value);let we=Fe;ct+vt>Fe&&ctDe+we){mn=pr-1;break}}let pn=0;for(let pr=Mt-1;pr>=0;pr-=1)if((zt.get(rt[pr].key)||W9)[_e]{L(()=>{var $e;const _e=new Map,De=($e=s.value)===null||$e===void 0?void 0:$e.getBoundingClientRect();return i.value.forEach(Fe=>{let{key:ct}=Fe;const vt=f.value.get(ct),zt=(vt==null?void 0:vt.$el)||vt;if(zt){const[we,rt,Mt,mn]=ake(zt,De);_e.set(ct,{width:we,height:rt,left:Mt,top:mn})}}),_e})};h.watch(()=>i.value.map($e=>$e.key).join("%%"),()=>{ee()},{flush:"post"});const X=()=>{var $e,_e,De,Fe,ct;const vt=(($e=a.value)===null||$e===void 0?void 0:$e.offsetWidth)||0,zt=((_e=a.value)===null||_e===void 0?void 0:_e.offsetHeight)||0,we=((De=u.value)===null||De===void 0?void 0:De.$el)||{},rt=we.offsetWidth||0,Mt=we.offsetHeight||0;x(vt),$(zt),P(rt),I(Mt);const mn=(((Fe=s.value)===null||Fe===void 0?void 0:Fe.offsetWidth)||0)-rt,pn=(((ct=s.value)===null||ct===void 0?void 0:ct.offsetHeight)||0)-Mt;b(mn),w(pn),ee()},Y=h.computed(()=>[...i.value.slice(0,ie.value),...i.value.slice(ue.value+1)]),[le,ve]=An(),ye=h.computed(()=>D.value.get(t.activeKey)),Ne=h.shallowRef(),Be=()=>{Dt.cancel(Ne.value)};h.watch([ye,d,()=>t.rtl],()=>{const $e={};ye.value&&(d.value?(t.rtl?$e.right=Rm(ye.value.right):$e.left=Rm(ye.value.left),$e.width=Rm(ye.value.width)):($e.top=Rm(ye.value.top),$e.height=Rm(ye.value.height))),Be(),Ne.value=Dt(()=>{ve($e)})}),h.watch([()=>t.activeKey,ye,D,d],()=>{de()},{flush:"post"}),h.watch([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>i.value],()=>{X()},{flush:"post"});const Me=$e=>{let{position:_e,prefixCls:De,extra:Fe}=$e;if(!Fe)return null;const ct=Fe==null?void 0:Fe({position:_e});return ct?h.createVNode("div",{class:`${De}-extra-content`},[ct]):null};return h.onBeforeUnmount(()=>{se(),Be()}),()=>{const{id:$e,animated:_e,activeKey:De,rtl:Fe,editable:ct,locale:vt,tabPosition:zt,tabBarGutter:we,onTabClick:rt}=t,{class:Mt,style:mn}=n,pn=o.value,pr=!!Y.value.length,Ni=`${pn}-nav-wrap`;let du,hu,Uc,Th;d.value?Fe?(hu=p.value>0,du=p.value+S.value{const{key:Zc}=$h;return h.createVNode(KRe,{id:$e,prefixCls:pn,key:Zc,tab:$h,style:x_===0?void 0:vl,closable:$h.closable,editable:ct,active:Zc===De,removeAriaLabel:vt==null?void 0:vt.removeAriaLabel,ref:c(Zc),onClick:C_=>{rt(Zc,C_)},onFocus:()=>{de(Zc),J(),a.value&&(Fe||(a.value.scrollLeft=0),a.value.scrollTop=0)}},r)});return h.createVNode("div",{role:"tablist",class:Pe(`${pn}-nav`,Mt),style:mn,onKeydown:()=>{J()}},[h.createVNode(Me,{position:"left",prefixCls:pn,extra:r.leftExtra},null),h.createVNode(vp,{onResize:X},{default:()=>[h.createVNode("div",{class:Pe(Ni,{[`${Ni}-ping-left`]:du,[`${Ni}-ping-right`]:hu,[`${Ni}-ping-top`]:Uc,[`${Ni}-ping-bottom`]:Th}),ref:a},[h.createVNode(vp,{onResize:X},{default:()=>[h.createVNode("div",{ref:s,class:`${pn}-nav-list`,style:{transform:`translate(${p.value}px, ${v.value}px)`,transition:H.value?"none":void 0}},[Ph,h.createVNode(k9,{ref:u,prefixCls:pn,locale:vt,editable:ct,style:k(k({},Ph.length===0?void 0:vl),{visibility:pr?"hidden":null})},null),h.createVNode("div",{class:Pe(`${pn}-ink-bar`,{[`${pn}-ink-bar-animated`]:_e.inkBar}),style:le.value},null)])]})])]}),h.createVNode(tke,K(K({},t),{},{removeAriaLabel:vt==null?void 0:vt.removeAriaLabel,ref:l,prefixCls:pn,tabs:Y.value,class:!pr&&B.value}),Xh(r,["moreIcon"])),h.createVNode(Me,{position:"right",prefixCls:pn,extra:r.rightExtra},null),h.createVNode(Me,{position:"right",prefixCls:pn,extra:r.tabBarExtraContent},null)])}}}),ske=h.defineComponent({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(t){const{tabs:e,prefixCls:n}=B9();return()=>{const{id:r,activeKey:i,animated:o,tabPosition:a,rtl:s,destroyInactiveTabPane:l}=t,u=o.tabPane,c=n.value,f=e.value.findIndex(d=>d.key===i);return h.createVNode("div",{class:`${c}-content-holder`},[h.createVNode("div",{class:[`${c}-content`,`${c}-content-${a}`,{[`${c}-content-animated`]:u}],style:f&&u?{[s?"marginRight":"marginLeft"]:`-${f}00%`}:null},[e.value.map(d=>Gn(d.node,{key:d.key,prefixCls:c,tabKey:d.key,id:r,animated:u,active:d.key===i,destroyInactiveTabPane:l}))])])}}});var lke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function H9(t){for(var e=1;e{const{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{[`${e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ep(t,"slide-up"),Ep(t,"slide-down")]]},fke=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=t;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:n,background:r,border:`${t.lineWidth}px ${t.lineType} ${o}`,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`${e}-tab-active`]:{color:t.colorPrimary,background:t.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`},[`${e}-tab-active`]:{borderBottomColor:t.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},[`${e}-tab-active`]:{borderTopColor:t.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:`${i}px`}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},dke=t=>{const{componentCls:e,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=t;return{[`${e}-dropdown`]:k(k({},bn(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":k(k({},wp),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:`${t.paddingXXS}px ${t.paddingSM}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},hke=t=>{const{componentCls:e,margin:n,colorSplit:r}=t;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${t.lineWidth}px ${t.lineType} ${r}`,content:"''"},[`${e}-ink-bar`]:{height:t.lineWidthBold,"&-animated":{transition:`width ${t.motionDurationSlow}, left ${t.motionDurationSlow}, right ${t.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:t.controlHeight*1.25,[`${e}-tab`]:{padding:`${t.paddingXS}px ${t.paddingLG}px`,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:`${t.margin}px 0 0 0`},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight},"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:t.lineWidthBold,"&-animated":{transition:`height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${t.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-t.lineWidth},borderRight:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},pke=t=>{const{componentCls:e,padding:n}=t;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px 0`,fontSize:t.fontSize}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${n}px 0`,fontSize:t.fontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXXS*1.5}px ${n}px`}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${t.borderRadius}px ${t.borderRadius}px`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${t.borderRadius}px ${t.borderRadius}px 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadius}px ${t.borderRadius}px 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadius}px 0 0 ${t.borderRadius}px`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px ${n}px ${t.paddingXXS*1.5}px`}}}}}},gke=t=>{const{componentCls:e,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:o}=t,a=`${e}-tab`;return{[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${t.paddingSM}px 0`,fontSize:`${t.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":k({"&:focus:not(:focus-visible), &:active":{color:n}},iO(t)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-t.marginXXS},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:t.colorPrimary,textShadow:t.tabsActiveTextShadow},[`&${a}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${e}-remove`]:{"&:focus, &:active":{color:t.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},vke=t=>{const{componentCls:e,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=t;return{[`${e}-rtl`]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${t.marginSM}px`}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${t.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${t.marginXXS}px`},[r]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},mke=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorSplit:s}=t;return{[e]:k(k(k(k({},bn(t)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${t.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${t.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:k({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${t.paddingXS}px`,background:"transparent",border:`${t.lineWidth}px ${t.lineType} ${s}`,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:t.colorText,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},iO(t))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:t.colorPrimary,pointerEvents:"none"}}),gke(t)),{[`${e}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},yke=Fn("Tabs",t=>{const e=t.controlHeightLG,n=Xt(t,{tabsHoverColor:t.colorPrimaryHover,tabsActiveColor:t.colorPrimaryActive,tabsCardHorizontalPadding:`${(e-Math.round(t.fontSize*t.lineHeight))/2-t.lineWidth}px ${t.padding}px`,tabsCardHeight:e,tabsCardGutter:t.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:t.colorFillAlter,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[pke(n),vke(n),hke(n),dke(n),fke(n),mke(n),cke(n)]},t=>({zIndexPopup:t.zIndexPopupBase+50}));let G9=0;const j9=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ut(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:$n(),animated:kn([Boolean,Object]),renderTabBar:ut(),tabBarGutter:{type:Number},tabBarStyle:Vt(),tabPosition:$n(),destroyInactiveTabPane:lt(),hideAdd:Boolean,type:$n(),size:$n(),centered:Boolean,onEdit:ut(),onChange:ut(),onTabClick:ut(),onTabScroll:ut(),"onUpdate:activeKey":ut(),locale:Vt(),onPrevClick:ut(),onNextClick:ut(),tabBarExtraContent:ne.any});function bke(t){return t.map(e=>{if(po(e)){const n=k({},e.props||{});for(const[d,p]of Object.entries(n))delete n[d],n[Q$(d)]=p;const r=e.children||{},i=e.key!==void 0?e.key:void 0,{tab:o=r.tab,disabled:a,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:f}=n;return k(k({key:i},n),{node:e,closeIcon:r.closeIcon,tab:o,disabled:a===""||a,forceRender:s===""||s,closable:l===""||l,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:f===""||f})}return null}).filter(e=>e)}const _ke=h.defineComponent({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:k(k({},Ar(j9(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Of()}),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;mo(t.onPrevClick===void 0&&t.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),mo(t.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),mo(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:o,size:a,rootPrefixCls:s,getPopupContainer:l}=Qt("tabs",t),[u,c]=yke(i),f=h.computed(()=>o.value==="rtl"),d=h.computed(()=>{const{animated:T,tabPosition:$}=t;return T===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:T===!0?{inkBar:!0,tabPane:!0}:k({inkBar:!0,tabPane:!1},typeof T=="object"?T:{})}),[p,g]=An(!1);h.onMounted(()=>{g(HA())});const[v,m]=Ap(()=>{var T;return(T=t.tabs[0])===null||T===void 0?void 0:T.key},{value:h.computed(()=>t.activeKey),defaultValue:t.defaultActiveKey}),[y,b]=An(()=>t.tabs.findIndex(T=>T.key===v.value));h.watchEffect(()=>{var T;let $=t.tabs.findIndex(A=>A.key===v.value);$===-1&&($=Math.max(0,Math.min(y.value,t.tabs.length-1)),m((T=t.tabs[$])===null||T===void 0?void 0:T.key)),b($)});const[O,w]=Ap(null,{value:h.computed(()=>t.id)}),S=h.computed(()=>p.value&&!["left","right"].includes(t.tabPosition)?"top":t.tabPosition);h.onMounted(()=>{t.id||(w(`rc-tabs-${process.env.NODE_ENV==="test"?"test":G9}`),G9+=1)});const x=(T,$)=>{var A,P;(A=t.onTabClick)===null||A===void 0||A.call(t,T,$);const M=T!==v.value;m(T),M&&((P=t.onChange)===null||P===void 0||P.call(t,T))};return L9({tabs:h.computed(()=>t.tabs),prefixCls:i}),()=>{const{id:T,type:$,tabBarGutter:A,tabBarStyle:P,locale:M,destroyInactiveTabPane:I,renderTabBar:R=r.renderTabBar,onTabScroll:L,hideAdd:D,centered:B}=t,F={id:O.value,activeKey:v.value,animated:d.value,tabPosition:S.value,rtl:f.value,mobile:p.value};let z;$==="editable-card"&&(z={onEdit:(Z,J)=>{let{key:se,event:oe}=J;var de;(de=t.onEdit)===null||de===void 0||de.call(t,Z==="add"?oe:se,Z)},removeIcon:()=>h.createVNode(Il,null,null),addIcon:r.addIcon?r.addIcon:()=>h.createVNode(YO,null,null),showAdd:D!==!0});let W;const j=k(k({},F),{moreTransitionName:`${s.value}-slide-up`,editable:z,locale:M,tabBarGutter:A,onTabClick:x,onTabScroll:L,style:P,getPopupContainer:l.value,popupClassName:Pe(t.popupClassName,c.value)});R?W=R(k(k({},j),{DefaultTabBar:Q9})):W=h.createVNode(Q9,j,Xh(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const H=i.value;return u(h.createVNode("div",K(K({},n),{},{id:T,class:Pe(H,`${H}-${S.value}`,{[c.value]:!0,[`${H}-${a.value}`]:a.value,[`${H}-card`]:["card","editable-card"].includes($),[`${H}-editable-card`]:$==="editable-card",[`${H}-centered`]:B,[`${H}-mobile`]:p.value,[`${H}-editable`]:$==="editable-card",[`${H}-rtl`]:f.value},n.class)}),[W,h.createVNode(ske,K(K({destroyInactiveTabPane:I},F),{},{animated:d.value}),null)]))}}}),kf=h.defineComponent({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Ar(j9(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=a=>{i("update:activeKey",a),i("change",a)};return()=>{var a;const s=bke(vr((a=r.default)===null||a===void 0?void 0:a.call(r)));return h.createVNode(_ke,K(K(K({},Er(t,["onUpdate:activeKey"])),n),{},{onChange:o,tabs:s}),r)}}}),Oke=()=>({tab:ne.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),Nl=h.defineComponent({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Oke(),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.forceRender);h.watch([()=>t.active,()=>t.destroyInactiveTabPane],()=>{t.active?i.value=!0:t.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const o=h.computed(()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var a;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:f}=t;return h.createVNode("div",{id:u&&`${u}-panel-${f}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${f}`,"aria-hidden":!c,style:[o.value,n.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,n.class]},[(c||i.value||l)&&((a=r.default)===null||a===void 0?void 0:a.call(r))])}}});kf.TabPane=Nl,kf.install=function(t){return t.component(kf.name,kf),t.component(Nl.name,Nl),t};const wke=()=>({prefixCls:String,activeKey:kn([Array,Number,String]),defaultActiveKey:kn([Array,Number,String]),accordion:lt(),destroyInactivePanel:lt(),bordered:lt(),expandIcon:ut(),openAnimation:ne.object,expandIconPosition:$n(),collapsible:$n(),ghost:lt(),onChange:ut(),"onUpdate:activeKey":ut()}),U9=()=>({openAnimation:ne.object,prefixCls:String,header:ne.any,headerClass:String,showArrow:lt(),isActive:lt(),destroyInactivePanel:lt(),disabled:lt(),accordion:lt(),forceRender:lt(),expandIcon:ut(),extra:ne.any,panelKey:kn(),collapsible:$n(),role:String,onItemClick:ut()}),Ske=t=>{const{componentCls:e,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:f,colorTextHeading:d,colorTextDisabled:p,fontSize:g,lineHeight:v,marginSM:m,paddingSM:y,motionDurationSlow:b,fontSizeIcon:O}=t,w=`${l}px ${u} ${c}`;return{[e]:k(k({},bn(t)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:w,"&:last-child":{[` &, & > ${e}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:d,lineHeight:v,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:g*v,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${e}-arrow`]:k(k({},Sp()),{fontSize:O,svg:{transition:`transform ${b}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:y}}},[`${e}-content`]:{color:f,backgroundColor:n,borderTop:w,[`& > ${e}-content-box`]:{padding:`${r}px ${i}px`},"&-hidden":{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},xke=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Cke=t=>{const{componentCls:e,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[` > ${e}-item:last-child, > ${e}-item:last-child ${e}-header `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},Tke=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}},Pke=Fn("Collapse",t=>{const e=Xt(t,{collapseContentBg:t.colorBgContainer,collapseHeaderBg:t.colorFillAlter,collapseHeaderPadding:`${t.paddingSM}px ${t.padding}px`,collapsePanelBorderRadius:t.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Ske(e),Cke(e),Tke(e),xke(e),aE(e)]});function Z9(t){let e=t;if(!Array.isArray(e)){const n=typeof e;e=n==="number"||n==="string"?[e]:[]}return e.map(n=>String(n))}const n0=h.defineComponent({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ar(wke(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.ref(Z9(VQ([t.activeKey,t.defaultActiveKey])));h.watch(()=>t.activeKey,()=>{o.value=Z9(t.activeKey)},{deep:!0});const{prefixCls:a,direction:s,rootPrefixCls:l}=Qt("collapse",t),[u,c]=Pke(a),f=h.computed(()=>{const{expandIconPosition:y}=t;return y!==void 0?y:s.value==="rtl"?"end":"start"}),d=y=>{const{expandIcon:b=r.expandIcon}=t,O=b?b(y):h.createVNode(FO,{rotate:y.isActive?90:void 0},null);return h.createVNode("div",{class:[`${a.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(t.collapsible)&&g(y.panelKey)},[po(Array.isArray(b)?O[0]:O)?Gn(O,{class:`${a.value}-arrow`},!1):O])},p=y=>{t.activeKey===void 0&&(o.value=y);const b=t.accordion?y[0]:y;i("update:activeKey",b),i("change",b)},g=y=>{let b=o.value;if(t.accordion)b=b[0]===y?[]:[y];else{b=[...b];const O=b.indexOf(y);O>-1?b.splice(O,1):b.push(y)}p(b)},v=(y,b)=>{var O,w,S;if(j$(y))return;const x=o.value,{accordion:T,destroyInactivePanel:$,collapsible:A,openAnimation:P}=t,M=P||wE(`${l.value}-motion-collapse`),I=String((O=y.key)!==null&&O!==void 0?O:b),{header:R=(S=(w=y.children)===null||w===void 0?void 0:w.header)===null||S===void 0?void 0:S.call(w),headerClass:L,collapsible:D,disabled:B}=y.props||{};let F=!1;T?F=x[0]===I:F=x.indexOf(I)>-1;let z=D??A;(B||B==="")&&(z="disabled");const W={key:I,panelKey:I,header:R,headerClass:L,isActive:F,prefixCls:a.value,destroyInactivePanel:$,openAnimation:M,accordion:T,onItemClick:z==="disabled"?null:g,expandIcon:d,collapsible:z};return Gn(y,W)},m=()=>{var y;return vr((y=r.default)===null||y===void 0?void 0:y.call(r)).map(v)};return()=>{const{accordion:y,bordered:b,ghost:O}=t,w=Pe(a.value,{[`${a.value}-borderless`]:!b,[`${a.value}-icon-position-${f.value}`]:!0,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-ghost`]:!!O,[n.class]:!!n.class},c.value);return u(h.createVNode("div",K(K({class:w},vPe(n)),{},{style:n.style,role:y?"tablist":null}),[m()]))}}}),$ke=h.defineComponent({compatConfig:{MODE:3},name:"PanelContent",props:U9(),setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1);return h.watchEffect(()=>{(t.isActive||t.forceRender)&&(r.value=!0)}),()=>{var i;if(!r.value)return null;const{prefixCls:o,isActive:a,role:s}=t;return h.createVNode("div",{class:Pe(`${o}-content`,{[`${o}-content-active`]:a,[`${o}-content-inactive`]:!a}),role:s},[h.createVNode("div",{class:`${o}-content-box`},[(i=n.default)===null||i===void 0?void 0:i.call(n)])])}}}),qO=h.defineComponent({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ar(U9(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;mo(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:o}=Qt("collapse",t),a=()=>{r("itemClick",t.panelKey)},s=l=>{(l.key==="Enter"||l.keyCode===13||l.which===13)&&a()};return()=>{var l,u;const{header:c=(l=n.header)===null||l===void 0?void 0:l.call(n),headerClass:f,isActive:d,showArrow:p,destroyInactivePanel:g,accordion:v,forceRender:m,openAnimation:y,expandIcon:b=n.expandIcon,extra:O=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:w}=t,S=w==="disabled",x=o.value,T=Pe(`${x}-header`,{[f]:f,[`${x}-header-collapsible-only`]:w==="header",[`${x}-icon-collapsible-only`]:w==="icon"}),$=Pe({[`${x}-item`]:!0,[`${x}-item-active`]:d,[`${x}-item-disabled`]:S,[`${x}-no-arrow`]:!p,[`${i.class}`]:!!i.class});let A=h.createVNode("i",{class:"arrow"},null);p&&typeof b=="function"&&(A=b(t));const P=h.withDirectives(h.createVNode($ke,{prefixCls:x,isActive:d,forceRender:m,role:v?"tabpanel":null},{default:n.default}),[[h.vShow,d]]),M=k({appear:!1,css:!1},y);return h.createVNode("div",K(K({},i),{},{class:$}),[h.createVNode("div",{class:T,onClick:()=>!["header","icon"].includes(w)&&a(),role:v?"tab":"button",tabindex:S?-1:0,"aria-expanded":d,onKeypress:s},[p&&A,h.createVNode("span",{onClick:()=>w==="header"&&a(),class:`${x}-header-text`},[c]),O&&h.createVNode("div",{class:`${x}-extra`},[O])]),h.createVNode(h.Transition,M,{default:()=>[!g||d?P:null]})])}}});n0.Panel=qO,n0.install=function(t){return t.component(n0.name,n0),t.component(qO.name,qO),t};var Ake={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function X9(t){for(var e=1;ejo()&&window.document.documentElement;let KO;const Mke=()=>{if(!Y9())return!1;if(KO!==void 0)return KO;const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),KO=t.scrollHeight===1,document.body.removeChild(t),KO},Ike=()=>{const t=h.shallowRef(!1);return h.onMounted(()=>{t.value=Mke()}),t},q9=Symbol("rowContextKey"),Dke=t=>{h.provide(q9,t)},Rke=()=>h.inject(q9,{gutter:h.computed(()=>{}),wrap:h.computed(()=>{}),supportFlexGap:h.computed(()=>{})}),kke=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Nke=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},Lke=(t,e)=>{const{componentCls:n,gridColumns:r}=t,i={};for(let o=r;o>=0;o--)o===0?(i[`${n}${e}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${e}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-offset-${o}`]={marginInlineEnd:0},i[`${n}${e}-order-${o}`]={order:0}):(i[`${n}${e}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:`${o/r*100}%`},i[`${n}${e}-push-${o}`]={insetInlineStart:`${o/r*100}%`},i[`${n}${e}-pull-${o}`]={insetInlineEnd:`${o/r*100}%`},i[`${n}${e}-offset-${o}`]={marginInlineStart:`${o/r*100}%`},i[`${n}${e}-order-${o}`]={order:o});return i},TE=(t,e)=>Lke(t,e),Bke=(t,e,n)=>({[`@media (min-width: ${e}px)`]:k({},TE(t,n))}),Vke=Fn("Grid",t=>[kke(t)]),zke=Fn("Grid",t=>{const e=Xt(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[Nke(e),TE(e,""),TE(e,"-xs"),Object.keys(n).map(r=>Bke(e,n[r],r)).reduce((r,i)=>k(k({},r),i),{})]}),Fke=()=>({align:kn([String,Object]),justify:kn([String,Object]),prefixCls:String,gutter:kn([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),Wke=h.defineComponent({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:Fke(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Qt("row",t),[a,s]=Vke(i);let l;const u=sDe(),c=h.ref({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),f=h.ref({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),d=O=>h.computed(()=>{if(typeof t[O]=="string")return t[O];if(typeof t[O]!="object")return"";for(let w=0;w{l=u.value.subscribe(O=>{f.value=O;const w=t.gutter||0;(!Array.isArray(w)&&typeof w=="object"||Array.isArray(w)&&(typeof w[0]=="object"||typeof w[1]=="object"))&&(c.value=O)})}),h.onBeforeUnmount(()=>{u.value.unsubscribe(l)});const m=h.computed(()=>{const O=[void 0,void 0],{gutter:w=0}=t;return(Array.isArray(w)?w:[w,void 0]).forEach((x,T)=>{if(typeof x=="object")for(let $=0;$t.wrap)});const y=h.computed(()=>Pe(i.value,{[`${i.value}-no-wrap`]:t.wrap===!1,[`${i.value}-${g.value}`]:g.value,[`${i.value}-${p.value}`]:p.value,[`${i.value}-rtl`]:o.value==="rtl"},r.class,s.value)),b=h.computed(()=>{const O=m.value,w={},S=O[0]!=null&&O[0]>0?`${O[0]/-2}px`:void 0,x=O[1]!=null&&O[1]>0?`${O[1]/-2}px`:void 0;return S&&(w.marginLeft=S,w.marginRight=S),v.value?w.rowGap=`${O[1]}px`:x&&(w.marginTop=x,w.marginBottom=x),w});return()=>{var O;return a(h.createVNode("div",K(K({},r),{},{class:y.value,style:k(k({},b.value),r.style)}),[(O=n.default)===null||O===void 0?void 0:O.call(n)]))}}});function zu(t){return t==null?[]:Array.isArray(t)?t:[t]}function K9(t,e){let n=t;for(let r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!K9(t,e.slice(0,-1))?t:J9(t,e,n,r)}function PE(t){return zu(t)}function Hke(t,e){return K9(t,e)}function Gke(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Qke(t,e,n,r)}function jke(t,e){return t&&t.some(n=>Zke(n,e))}function eH(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function tH(t,e){const n=Array.isArray(t)?[...t]:k({},t);return e&&Object.keys(e).forEach(r=>{const i=n[r],o=e[r],a=eH(i)&&eH(o);n[r]=a?tH(i,o||{}):o}),n}function Uke(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;rtH(i,o),t)}function nH(t,e){let n={};return e.forEach(r=>{const i=Hke(t,r);n=Gke(n,r,i)}),n}function Zke(t,e){return!t||!e||t.length!==e.length?!1:t.every((n,r)=>e[r]===n)}const yo="'${name}' is not a valid ${type}",JO={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var ew=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const Xke=Pm;function Yke(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function $E(t,e,n,r,i){return ew(this,void 0,void 0,function*(){const o=k({},n);delete o.ruleIndex,delete o.trigger;let a=null;o&&o.type==="array"&&o.defaultField&&(a=o.defaultField,delete o.defaultField);const s=new Xke({[t]:[o]}),l=Uke({},JO,r.validateMessages);s.messages(l);let u=[];try{yield Promise.resolve(s.validate({[t]:e},k({},r)))}catch(d){d.errors?u=d.errors.map((p,g)=>{let{message:v}=p;return po(v)?h.cloneVNode(v,{key:`error_${g}`}):v}):(console.error(d),u=[l.default()])}if(!u.length&&a)return(yield Promise.all(e.map((p,g)=>$E(`${t}.${g}`,p,a,r,i)))).reduce((p,g)=>[...p,...g],[]);const c=k(k(k({},n),{name:t,enum:(n.enum||[]).join(", ")}),i);return u.map(d=>typeof d=="string"?Yke(d,c):d)})}function rH(t,e,n,r,i,o){const a=t.join("."),s=n.map((u,c)=>{const f=u.validator,d=k(k({},u),{ruleIndex:c});return f&&(d.validator=(p,g,v)=>{let m=!1;const b=f(p,g,function(){for(var O=arguments.length,w=new Array(O),S=0;S{Sf(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||v(...w)})});m=b&&typeof b.then=="function"&&typeof b.catch=="function",Sf(m,"`callback` is deprecated. Please return a promise instead."),m&&b.then(()=>{v()}).catch(O=>{v(O||" ")})}),d}).sort((u,c)=>{let{warningOnly:f,ruleIndex:d}=u,{warningOnly:p,ruleIndex:g}=c;return!!f==!!p?d-g:f?1:-1});let l;if(i===!0)l=new Promise((u,c)=>ew(this,void 0,void 0,function*(){for(let f=0;f$E(a,e,c,r,o).then(f=>({errors:f,rule:c})));l=(i?Kke(u):qke(u)).then(c=>Promise.reject(c))}return l.catch(u=>u),l}function qke(t){return ew(this,void 0,void 0,function*(){return Promise.all(t).then(e=>[].concat(...e))})}function Kke(t){return ew(this,void 0,void 0,function*(){let e=0;return new Promise(n=>{t.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),e+=1,e===t.length&&n([])})})})})}const iH=Symbol("formContextKey"),oH=t=>{h.provide(iH,t)},AE=()=>h.inject(iH,{name:h.computed(()=>{}),labelAlign:h.computed(()=>"right"),vertical:h.computed(()=>!1),addField:(t,e)=>{},removeField:t=>{},model:h.computed(()=>{}),rules:h.computed(()=>{}),colon:h.computed(()=>{}),labelWrap:h.computed(()=>{}),labelCol:h.computed(()=>{}),requiredMark:h.computed(()=>!1),validateTrigger:h.computed(()=>{}),onValidate:()=>{},validateMessages:h.computed(()=>JO)}),aH=Symbol("formItemPrefixContextKey"),Jke=t=>{h.provide(aH,t)},eNe=()=>h.inject(aH,{prefixCls:h.computed(()=>"")});function tNe(t){return typeof t=="number"?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}const nNe=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),rNe=["xs","sm","md","lg","xl","xxl"],sH=h.defineComponent({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:nNe(),setup(t,e){let{slots:n,attrs:r}=e;const{gutter:i,supportFlexGap:o,wrap:a}=Rke(),{prefixCls:s,direction:l}=Qt("col",t),[u,c]=zke(s),f=h.computed(()=>{const{span:p,order:g,offset:v,push:m,pull:y}=t,b=s.value;let O={};return rNe.forEach(w=>{let S={};const x=t[w];typeof x=="number"?S.span=x:typeof x=="object"&&(S=x||{}),O=k(k({},O),{[`${b}-${w}-${S.span}`]:S.span!==void 0,[`${b}-${w}-order-${S.order}`]:S.order||S.order===0,[`${b}-${w}-offset-${S.offset}`]:S.offset||S.offset===0,[`${b}-${w}-push-${S.push}`]:S.push||S.push===0,[`${b}-${w}-pull-${S.pull}`]:S.pull||S.pull===0,[`${b}-rtl`]:l.value==="rtl"})}),Pe(b,{[`${b}-${p}`]:p!==void 0,[`${b}-order-${g}`]:g,[`${b}-offset-${v}`]:v,[`${b}-push-${m}`]:m,[`${b}-pull-${y}`]:y},O,r.class,c.value)}),d=h.computed(()=>{const{flex:p}=t,g=i.value,v={};if(g&&g[0]>0){const m=`${g[0]/2}px`;v.paddingLeft=m,v.paddingRight=m}if(g&&g[1]>0&&!o.value){const m=`${g[1]/2}px`;v.paddingTop=m,v.paddingBottom=m}return p&&(v.flex=tNe(p),a.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return()=>{var p;return u(h.createVNode("div",K(K({},r),{},{class:f.value,style:[d.value,r.style]}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}});var iNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function lH(t){for(var e=1;e{let{slots:n,emit:r,attrs:i}=e;var o,a,s,l,u;const{prefixCls:c,htmlFor:f,labelCol:d,labelAlign:p,colon:g,required:v,requiredMark:m}=k(k({},t),i),[y]=z1("Form"),b=(o=t.label)!==null&&o!==void 0?o:(a=n.label)===null||a===void 0?void 0:a.call(n);if(!b)return null;const{vertical:O,labelAlign:w,labelCol:S,labelWrap:x,colon:T}=AE(),$=d||(S==null?void 0:S.value)||{},A=p||(w==null?void 0:w.value),P=`${c}-item-label`,M=Pe(P,A==="left"&&`${P}-left`,$.class,{[`${P}-wrap`]:!!x.value});let I=b;const R=g===!0||(T==null?void 0:T.value)!==!1&&g!==!1;if(R&&!O.value&&typeof b=="string"&&b.trim()!==""&&(I=b.replace(/[:|:]\s*$/,"")),t.tooltip||n.tooltip){const B=h.createVNode("span",{class:`${c}-item-tooltip`},[h.createVNode(NO,{title:t.tooltip},{default:()=>[h.createVNode(EE,null,null)]})]);I=h.createVNode(h.Fragment,null,[I,n.tooltip?(s=n.tooltip)===null||s===void 0?void 0:s.call(n,{class:`${c}-item-tooltip`}):B])}m==="optional"&&!v&&(I=h.createVNode(h.Fragment,null,[I,h.createVNode("span",{class:`${c}-item-optional`},[((l=y.value)===null||l===void 0?void 0:l.optional)||((u=$l.Form)===null||u===void 0?void 0:u.optional)])]));const D=Pe({[`${c}-item-required`]:v,[`${c}-item-required-mark-optional`]:m==="optional",[`${c}-item-no-colon`]:!R});return h.createVNode(sH,K(K({},$),{},{class:M}),{default:()=>[h.createVNode("label",{for:f,class:D,title:typeof b=="string"?b:"",onClick:B=>r("click",B)},[I])]})};ME.displayName="FormItemLabel",ME.inheritAttrs=!1;const aNe=t=>{const{componentCls:e}=t,n=`${e}-show-help`,r=`${e}-show-help-item`;return{[n]:{transition:`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}, transform ${t.motionDurationSlow} ${t.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},sNe=t=>({legend:{display:"block",width:"100%",marginBottom:t.marginLG,padding:0,color:t.colorTextDescription,fontSize:t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},label:{fontSize:t.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`},output:{display:"block",paddingTop:15,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight}}),uH=(t,e)=>{const{formItemCls:n}=t;return{[n]:{[`${n}-label > label`]:{height:e},[`${n}-control-input`]:{minHeight:e}}}},lNe=t=>{const{componentCls:e}=t;return{[t.componentCls]:k(k(k({},bn(t)),sNe(t)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":k({},uH(t,t.controlHeightSM)),"&-large":k({},uH(t,t.controlHeightLG))})}},uNe=t=>{const{formItemCls:e,iconCls:n,componentCls:r,rootPrefixCls:i}=t;return{[e]:k(k({},bn(t)),{marginBottom:t.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:t.colorError}},"&-has-error":{[`${e}-split`]:{color:t.colorWarning}},[`${e}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:t.controlHeight,color:t.colorTextHeading,fontSize:t.fontSize,[`> ${n}`]:{fontSize:t.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:t.marginXXS,color:t.colorError,fontSize:t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:t.marginXXS,color:t.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:t.marginXXS/2,marginInlineEnd:t.marginXS},[`&${e}-no-colon::after`]:{content:'" "'}}},[`${e}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:t.colorTextDescription,fontSize:t.fontSize,lineHeight:t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:t.controlHeightSM,transition:`color ${t.motionDurationMid} ${t.motionEaseOut}`},"&-explain":{"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:t.fontSize,textAlign:"center",visibility:"visible",animationName:oE,animationDuration:t.motionDurationMid,animationTimingFunction:t.motionEaseOutBack,pointerEvents:"none","&-success":{color:t.colorSuccess},"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning},"&-validating":{color:t.colorPrimary}}})}},cNe=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},fNe=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:t.margin,marginBottom:0,"&-with-help":{marginBottom:t.marginLG},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Lp=t=>({margin:0,padding:`0 0 ${t.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),dNe=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${n} ${n}-label`]:Lp(t),[e]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},hNe=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${n}-label, .${r}-col-24${n}-label, .${r}-col-xl-24${n}-label`]:Lp(t),[`@media (max-width: ${t.screenXSMax}px)`]:[dNe(t),{[e]:{[`.${r}-col-xs-24${n}-label`]:Lp(t)}}],[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{[`.${r}-col-sm-24${n}-label`]:Lp(t)}},[`@media (max-width: ${t.screenMDMax}px)`]:{[e]:{[`.${r}-col-md-24${n}-label`]:Lp(t)}},[`@media (max-width: ${t.screenLGMax}px)`]:{[e]:{[`.${r}-col-lg-24${n}-label`]:Lp(t)}}}},IE=Fn("Form",(t,e)=>{let{rootPrefixCls:n}=e;const r=Xt(t,{formItemCls:`${t.componentCls}-item`,rootPrefixCls:n});return[lNe(r),uNe(r),aNe(r),cNe(r),fNe(r),hNe(r),aE(r),oE]}),pNe=h.defineComponent({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(t,e){let{attrs:n}=e;const{prefixCls:r,status:i}=eNe(),o=h.computed(()=>`${r.value}-item-explain`),a=h.computed(()=>!!(t.errors&&t.errors.length)),s=h.ref(i.value),[,l]=IE(r);return h.watch([a,i],()=>{a.value&&(s.value=i.value)}),()=>{var u,c;const f=wE(`${r.value}-show-help-item`),d=NA(`${r.value}-show-help-item`,f);return d.role="alert",d.class=[l.value,o.value,n.class,`${r.value}-show-help`],h.createVNode(h.Transition,K(K({},Zm(`${r.value}-show-help`)),{},{onAfterEnter:()=>t.onErrorVisibleChanged(!0),onAfterLeave:()=>t.onErrorVisibleChanged(!1)}),{default:()=>[h.withDirectives(h.createVNode(h.TransitionGroup,K(K({},d),{},{tag:"div"}),{default:()=>[(c=t.errors)===null||c===void 0?void 0:c.map((p,g)=>h.createVNode("div",{key:g,class:s.value?`${o.value}-${s.value}`:""},[p]))]}),[[h.vShow,!!(!((u=t.errors)===null||u===void 0)&&u.length)]])]})}}}),gNe=h.defineComponent({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(t,e){let{slots:n}=e;const r=AE(),{wrapperCol:i}=r,o=k({},r);return delete o.labelCol,delete o.wrapperCol,oH(o),Jke({prefixCls:h.computed(()=>t.prefixCls),status:h.computed(()=>t.status)}),()=>{var a,s,l;const{prefixCls:u,wrapperCol:c,marginBottom:f,onErrorVisibleChanged:d,help:p=(a=n.help)===null||a===void 0?void 0:a.call(n),errors:g=xs((s=n.errors)===null||s===void 0?void 0:s.call(n)),extra:v=(l=n.extra)===null||l===void 0?void 0:l.call(n)}=t,m=`${u}-item`,y=c||(i==null?void 0:i.value)||{},b=Pe(`${m}-control`,y.class);return h.createVNode(sH,K(K({},y),{},{class:b}),{default:()=>{var O;return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:`${m}-control-input`},[h.createVNode("div",{class:`${m}-control-input-content`},[(O=n.default)===null||O===void 0?void 0:O.call(n)])]),f!==null||g.length?h.createVNode("div",{style:{display:"flex",flexWrap:"nowrap"}},[h.createVNode(pNe,{errors:g,help:p,class:`${m}-explain-connected`,onErrorVisibleChanged:d},null),!!f&&h.createVNode("div",{style:{width:0,height:`${f}px`}},null)]):null,v?h.createVNode("div",{class:`${m}-extra`},[v]):null])}})}}});function vNe(t){const e=h.shallowRef(t.value.slice());let n=null;return h.watchEffect(()=>{clearTimeout(n),n=setTimeout(()=>{e.value=t.value},t.value.length?0:10)}),e}Du("success","warning","error","validating","");const mNe={success:Nu,warning:Lu,error:Xo,validating:Es};function DE(t,e,n){let r=t;const i=e;let o=0;try{for(let a=i.length;o({htmlFor:String,prefixCls:String,label:ne.any,help:ne.any,extra:ne.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:ne.oneOf(Du("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let bNe=0;const _Ne="form_item",cH=h.defineComponent({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:yNe(),slots:Object,setup(t,e){let{slots:n,attrs:r,expose:i}=e;Sf(t.prop===void 0,"`prop` is deprecated. Please use `name` instead.");const o=`form-item-${++bNe}`,{prefixCls:a}=Qt("form",t),[s,l]=IE(a),u=h.shallowRef(),c=AE(),f=h.computed(()=>t.name||t.prop),d=h.shallowRef([]),p=h.shallowRef(!1),g=h.shallowRef(),v=h.computed(()=>{const oe=f.value;return PE(oe)}),m=h.computed(()=>{if(v.value.length){const oe=c.name.value,de=v.value.join("_");return oe?`${oe}_${de}`:`${_Ne}_${de}`}else return}),y=()=>{const oe=c.model.value;if(!(!oe||!f.value))return DE(oe,v.value,!0).v},b=h.computed(()=>y()),O=h.shallowRef(ff(b.value)),w=h.computed(()=>{let oe=t.validateTrigger!==void 0?t.validateTrigger:c.validateTrigger.value;return oe=oe===void 0?"change":oe,zu(oe)}),S=h.computed(()=>{let oe=c.rules.value;const de=t.rules,ie=t.required!==void 0?{required:!!t.required,trigger:w.value}:[],ue=DE(oe,v.value);oe=oe?ue.o[ue.k]||ue.v:[];const ee=[].concat(de||oe||[]);return T1e(ee,X=>X.required)?ee:ee.concat(ie)}),x=h.computed(()=>{const oe=S.value;let de=!1;return oe&&oe.length&&oe.every(ie=>ie.required?(de=!0,!1):!0),de||t.required}),T=h.shallowRef();h.watchEffect(()=>{T.value=t.validateStatus});const $=h.computed(()=>{let oe={};return typeof t.label=="string"?oe.label=t.label:t.name&&(oe.label=String(t.name)),t.messageVariables&&(oe=k(k({},oe),t.messageVariables)),oe}),A=oe=>{if(v.value.length===0)return;const{validateFirst:de=!1}=t,{triggerName:ie}=oe||{};let ue=S.value;if(ie&&(ue=ue.filter(X=>{const{trigger:Y}=X;return!Y&&!w.value.length?!0:zu(Y||w.value).includes(ie)})),!ue.length)return Promise.resolve();const ee=rH(v.value,b.value,ue,k({validateMessages:c.validateMessages.value},oe),de,$.value);return T.value="validating",d.value=[],ee.catch(X=>X).then(function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(T.value==="validating"){const Y=X.filter(le=>le&&le.errors.length);T.value=Y.length?"error":"success",d.value=Y.map(le=>le.errors),c.onValidate(f.value,!d.value.length,d.value.length?h.toRaw(d.value[0]):null)}}),ee},P=()=>{A({triggerName:"blur"})},M=()=>{if(p.value){p.value=!1;return}A({triggerName:"change"})},I=()=>{T.value=t.validateStatus,p.value=!1,d.value=[]},R=()=>{var oe;T.value=t.validateStatus,p.value=!0,d.value=[];const de=c.model.value||{},ie=b.value,ue=DE(de,v.value,!0);Array.isArray(ie)?ue.o[ue.k]=[].concat((oe=O.value)!==null&&oe!==void 0?oe:[]):ue.o[ue.k]=O.value,h.nextTick(()=>{p.value=!1})},L=h.computed(()=>t.htmlFor===void 0?m.value:t.htmlFor),D=()=>{const oe=L.value;if(!oe||!g.value)return;const de=g.value.$el.querySelector(`[id="${oe}"]`);de&&de.focus&&de.focus()};i({onFieldBlur:P,onFieldChange:M,clearValidate:I,resetField:R}),eIe({id:m,onFieldBlur:()=>{t.autoLink&&P()},onFieldChange:()=>{t.autoLink&&M()},clearValidate:I},h.computed(()=>!!(t.autoLink&&c.model.value&&f.value)));let B=!1;h.watch(f,oe=>{oe?B||(B=!0,c.addField(o,{fieldValue:b,fieldId:m,fieldName:f,resetField:R,clearValidate:I,namePath:v,validateRules:A,rules:S})):(B=!1,c.removeField(o))},{immediate:!0}),h.onBeforeUnmount(()=>{c.removeField(o)});const F=vNe(d),z=h.computed(()=>t.validateStatus!==void 0?t.validateStatus:F.value.length?"error":T.value),W=h.computed(()=>({[`${a.value}-item`]:!0,[l.value]:!0,[`${a.value}-item-has-feedback`]:z.value&&t.hasFeedback,[`${a.value}-item-has-success`]:z.value==="success",[`${a.value}-item-has-warning`]:z.value==="warning",[`${a.value}-item-has-error`]:z.value==="error",[`${a.value}-item-is-validating`]:z.value==="validating",[`${a.value}-item-hidden`]:t.hidden})),j=h.reactive({});Za.useProvide(j),h.watchEffect(()=>{let oe;if(t.hasFeedback){const de=z.value&&mNe[z.value];oe=de?h.createVNode("span",{class:Pe(`${a.value}-item-feedback-icon`,`${a.value}-item-feedback-icon-${z.value}`)},[h.createVNode(de,null,null)]):null}k(j,{status:z.value,hasFeedback:t.hasFeedback,feedbackIcon:oe,isFormItemInput:!0})});const H=h.shallowRef(null),Z=h.shallowRef(!1),J=()=>{if(u.value){const oe=getComputedStyle(u.value);H.value=parseInt(oe.marginBottom,10)}};h.onMounted(()=>{h.watch(Z,()=>{Z.value&&J()},{flush:"post",immediate:!0})});const se=oe=>{oe||(H.value=null)};return()=>{var oe,de;if(t.noStyle)return(oe=n.default)===null||oe===void 0?void 0:oe.call(n);const ie=(de=t.help)!==null&&de!==void 0?de:n.help?xs(n.help()):null,ue=!!(ie!=null&&Array.isArray(ie)&&ie.length||F.value.length);return Z.value=ue,s(h.createVNode("div",{class:[W.value,ue?`${a.value}-item-with-help`:"",r.class],ref:u},[h.createVNode(Wke,K(K({},r),{},{class:`${a.value}-item-row`,key:"row"}),{default:()=>{var ee,X;return h.createVNode(h.Fragment,null,[h.createVNode(ME,K(K({},t),{},{htmlFor:L.value,required:x.value,requiredMark:c.requiredMark.value,prefixCls:a.value,onClick:D,label:t.label}),{label:n.label,tooltip:n.tooltip}),h.createVNode(gNe,K(K({},t),{},{errors:ie!=null?zu(ie):F.value,marginBottom:H.value,prefixCls:a.value,status:z.value,ref:g,help:ie,extra:(ee=t.extra)!==null&&ee!==void 0?ee:(X=n.extra)===null||X===void 0?void 0:X.call(n),onErrorVisibleChanged:se}),{default:n.default})])}}),!!H.value&&h.createVNode("div",{class:`${a.value}-margin-offset`,style:{marginBottom:`-${H.value}px`}},null)]))}}});function fH(t){let e=!1,n=t.length;const r=[];return t.length?new Promise((i,o)=>{t.forEach((a,s)=>{a.catch(l=>(e=!0,l)).then(l=>{n-=1,r[s]=l,!(n>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}function dH(t){let e=!1;return t&&t.length&&t.every(n=>n.required?(e=!0,!1):!0),e}function hH(t){return t==null?[]:Array.isArray(t)?t:[t]}function RE(t,e,n){let r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");const i=e.split(".");let o=0;for(let a=i.length;o1&&arguments[1]!==void 0?arguments[1]:h.ref({}),n=arguments.length>2?arguments[2]:void 0;const r=ff(h.unref(t)),i=h.reactive({}),o=h.shallowRef([]),a=O=>{k(h.unref(t),k(k({},ff(r)),O)),h.nextTick(()=>{Object.keys(i).forEach(w=>{i[w]={autoLink:!1,required:dH(h.unref(e)[w])}})})},s=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?O.filter(S=>{const x=hH(S.trigger||"change");return E1e(x,w).length}):O};let l=null;const u=function(O){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=arguments.length>2?arguments[2]:void 0;const x=[],T={};for(let P=0;P({name:M,errors:[],warnings:[]})).catch(L=>{const D=[],B=[];return L.forEach(F=>{let{rule:{warningOnly:z},errors:W}=F;z?B.push(...W):D.push(...W)}),D.length?Promise.reject({name:M,errors:D,warnings:B}):{name:M,errors:D,warnings:B}}))}const $=fH(x);l=$;const A=$.then(()=>l===$?Promise.resolve(T):Promise.reject([])).catch(P=>{const M=P.filter(I=>I&&I.errors.length);return M.length?Promise.reject({values:T,errorFields:M,outOfDate:l!==$}):Promise.resolve(T)});return A.catch(P=>P),A},c=function(O,w,S){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const T=rH([O],w,S,k({validateMessages:JO},x),!!x.validateFirst);return i[O]?(i[O].validateStatus="validating",T.catch($=>$).then(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var A;if(i[O].validateStatus==="validating"){const P=$.filter(M=>M&&M.errors.length);i[O].validateStatus=P.length?"error":"success",i[O].help=P.length?P.map(M=>M.errors):null,(A=n==null?void 0:n.onValidate)===null||A===void 0||A.call(n,O,!P.length,P.length?h.toRaw(i[O].help[0]):null)}}),T):T.catch($=>$)},f=(O,w)=>{let S=[],x=!0;O?Array.isArray(O)?S=O:S=[O]:(x=!1,S=o.value);const T=u(S,w||{},x);return T.catch($=>$),T},d=O=>{let w=[];O?Array.isArray(O)?w=O:w=[O]:w=o.value,w.forEach(S=>{i[S]&&k(i[S],{validateStatus:"",help:null})})},p=O=>{const w={autoLink:!1},S=[],x=Array.isArray(O)?O:[O];for(let T=0;T{const w=[];o.value.forEach(S=>{const x=RE(O,S,!1),T=RE(g,S,!1);(v&&(n==null?void 0:n.immediate)&&x.isValid||!fm(x.v,T.v))&&w.push(S)}),f(w,{trigger:"change"}),v=!1,g=ff(h.toRaw(O))},y=n==null?void 0:n.debounce;let b=!0;return h.watch(e,()=>{o.value=e?Object.keys(h.unref(e)):[],!b&&n&&n.validateOnRuleChange&&f(),b=!1},{deep:!0,immediate:!0}),h.watch(o,()=>{const O={};o.value.forEach(w=>{O[w]=k({},i[w],{autoLink:!1,required:dH(h.unref(e)[w])}),delete i[w]});for(const w in i)Object.prototype.hasOwnProperty.call(i,w)&&delete i[w];k(i,O)},{immediate:!0}),h.watch(t,y&&y.wait?X2(m,y.wait,yV(y,["wait"])):m,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:i,resetFields:a,validate:f,validateField:c,mergeValidateInfo:p,clearValidate:d}}const wNe=()=>({layout:ne.oneOf(Du("horizontal","inline","vertical")),labelCol:Vt(),wrapperCol:Vt(),colon:lt(),labelAlign:$n(),labelWrap:lt(),prefixCls:String,requiredMark:kn([String,Boolean]),hideRequiredMark:lt(),model:ne.object,rules:Vt(),validateMessages:Vt(),validateOnRuleChange:lt(),scrollToFirstError:Go(),onSubmit:ut(),name:String,validateTrigger:kn([String,Array]),size:$n(),disabled:lt(),onValuesChange:ut(),onFieldsChange:ut(),onFinish:ut(),onFinishFailed:ut(),onValidate:ut()});function SNe(t,e){return fm(zu(t),zu(e))}const mr=h.defineComponent({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Ar(wNe(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:cH,useForm:ONe,setup(t,e){let{emit:n,slots:r,expose:i,attrs:o}=e;const{prefixCls:a,direction:s,form:l,size:u,disabled:c}=Qt("form",t),f=h.computed(()=>t.requiredMark===""||t.requiredMark),d=h.computed(()=>{var F;return f.value!==void 0?f.value:l&&((F=l.value)===null||F===void 0?void 0:F.requiredMark)!==void 0?l.value.requiredMark:!t.hideRequiredMark});IW(u),IF(c);const p=h.computed(()=>{var F,z;return(F=t.colon)!==null&&F!==void 0?F:(z=l.value)===null||z===void 0?void 0:z.colon}),{validateMessages:g}=WPe(),v=h.computed(()=>k(k(k({},JO),g.value),t.validateMessages)),[m,y]=IE(a),b=h.computed(()=>Pe(a.value,{[`${a.value}-${t.layout}`]:!0,[`${a.value}-hide-required-mark`]:d.value===!1,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-${u.value}`]:u.value},y.value)),O=h.ref(),w={},S=(F,z)=>{w[F]=z},x=F=>{delete w[F]},T=F=>{const z=!!F,W=z?zu(F).map(PE):[];return z?Object.values(w).filter(j=>W.findIndex(H=>SNe(H,j.fieldName.value))>-1):Object.values(w)},$=F=>{if(!t.model){yi(!1,"Form","model is required for resetFields to work.");return}T(F).forEach(z=>{z.resetField()})},A=F=>{T(F).forEach(z=>{z.clearValidate()})},P=F=>{const{scrollToFirstError:z}=t;if(n("finishFailed",F),z&&F.errorFields.length){let W={};typeof z=="object"&&(W=z),I(F.errorFields[0].name,W)}},M=function(){return D(...arguments)},I=function(F){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const W=T(F?[F]:void 0);if(W.length){const j=W[0].fieldId.value,H=j?document.getElementById(j):null;H&&P$e(H,k({scrollMode:"if-needed",block:"nearest"},z))}},R=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(F===!0){const z=[];return Object.values(w).forEach(W=>{let{namePath:j}=W;z.push(j.value)}),nH(t.model,z)}else return nH(t.model,F)},L=(F,z)=>{if(yi(!(F instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return yi(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const W=!!F,j=W?zu(F).map(PE):[],H=[];Object.values(w).forEach(se=>{var oe;if(W||j.push(se.namePath.value),!(!((oe=se.rules)===null||oe===void 0)&&oe.value.length))return;const de=se.namePath.value;if(!W||jke(j,de)){const ie=se.validateRules(k({validateMessages:v.value},z));H.push(ie.then(()=>({name:de,errors:[],warnings:[]})).catch(ue=>{const ee=[],X=[];return ue.forEach(Y=>{let{rule:{warningOnly:le},errors:ve}=Y;le?X.push(...ve):ee.push(...ve)}),ee.length?Promise.reject({name:de,errors:ee,warnings:X}):{name:de,errors:ee,warnings:X}}))}});const Z=fH(H);O.value=Z;const J=Z.then(()=>O.value===Z?Promise.resolve(R(j)):Promise.reject([])).catch(se=>{const oe=se.filter(de=>de&&de.errors.length);return Promise.reject({values:R(j),errorFields:oe,outOfDate:O.value!==Z})});return J.catch(se=>se),J},D=function(){return L(...arguments)},B=F=>{F.preventDefault(),F.stopPropagation(),n("submit",F),t.model&&L().then(W=>{n("finish",W)}).catch(W=>{P(W)})};return i({resetFields:$,clearValidate:A,validateFields:L,getFieldsValue:R,validate:M,scrollToField:I}),oH({model:h.computed(()=>t.model),name:h.computed(()=>t.name),labelAlign:h.computed(()=>t.labelAlign),labelCol:h.computed(()=>t.labelCol),labelWrap:h.computed(()=>t.labelWrap),wrapperCol:h.computed(()=>t.wrapperCol),vertical:h.computed(()=>t.layout==="vertical"),colon:p,requiredMark:d,validateTrigger:h.computed(()=>t.validateTrigger),rules:h.computed(()=>t.rules),addField:S,removeField:x,onValidate:(F,z,W)=>{n("validate",F,z,W)},validateMessages:v}),h.watch(()=>t.rules,()=>{t.validateOnRuleChange&&L()}),()=>{var F;return m(h.createVNode("form",K(K({},o),{},{onSubmit:B,class:[b.value,o.class]}),[(F=r.default)===null||F===void 0?void 0:F.call(r)]))}}});mr.useInjectFormItemContext=Ms,mr.ItemRest=Km,mr.install=function(t){return t.component(mr.name,mr),t.component(mr.Item.name,mr.Item),t.component(Km.name,Km),t};const xNe=new At("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),CNe=t=>{const{checkboxCls:e}=t,n=`${e}-wrapper`;return[{[`${e}-group`]:k(k({},bn(t)),{display:"inline-flex",flexWrap:"wrap",columnGap:t.marginXS,[`> ${t.antCls}-row`]:{flex:1}}),[n]:k(k({},bn(t)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[e]:k(k({},bn(t)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${e}-inner`]:k({},Fm(t))},[`${e}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:t.checkboxSize,height:t.checkboxSize,direction:"ltr",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,borderCollapse:"separate",transition:`all ${t.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.checkboxSize/14*5,height:t.checkboxSize/14*8,border:`${t.lineWidthBold}px solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`}},"& + span":{paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS}})},{[e]:{"&-indeterminate":{[`${e}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:t.fontSizeLG/2,height:t.fontSizeLG/2,backgroundColor:t.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${e}:after`]:{visibility:"visible"},[` ${n}:not(${n}-disabled), ${e}:not(${e}-disabled) `]:{[`&:hover ${e}-inner`]:{borderColor:t.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}-checked:not(${e}-disabled):after`]:{borderColor:t.colorPrimaryHover}}},{[`${e}-checked`]:{[`${e}-inner`]:{backgroundColor:t.colorPrimary,borderColor:t.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:t.borderRadiusSM,visibility:"hidden",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,animationName:xNe,animationDuration:t.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${t.motionDurationSlow}`}},[` ${n}-checked:not(${n}-disabled), ${e}-checked:not(${e}-disabled) `]:{[`&:hover ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}:after`]:{borderColor:t.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${e}-disabled`]:{[`&, ${e}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${e}-inner`]:{background:t.colorBgContainerDisabled,borderColor:t.colorBorder,"&:after":{borderColor:t.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:t.colorTextDisabled},[`&${e}-indeterminate ${e}-inner::after`]:{background:t.colorTextDisabled}}}]};function TNe(t,e){const n=Xt(e,{checkboxCls:`.${t}`,checkboxSize:e.controlInteractiveSize});return[CNe(n)]}const pH=Fn("Checkbox",(t,e)=>{let{prefixCls:n}=e;return[TNe(n,t)]}),PNe=()=>({name:String,prefixCls:String,options:Of([]),disabled:Boolean,id:String}),$Ne=()=>k(k({},PNe()),{defaultValue:Of(),value:Of(),onChange:ut(),"onUpdate:value":ut()}),ANe=()=>({prefixCls:String,defaultChecked:lt(),checked:lt(),disabled:lt(),isGroup:lt(),value:ne.any,name:String,id:String,indeterminate:lt(),type:$n("checkbox"),autofocus:lt(),onChange:ut(),"onUpdate:checked":ut(),onClick:ut(),skipGroup:lt(!1)}),ENe=()=>k(k({},ANe()),{indeterminate:lt(!1)}),gH=Symbol("CheckboxGroupContext");var vH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(g==null?void 0:g.disabled.value)||c.value);h.watchEffect(()=>{!t.skipGroup&&g&&g.registerValue(v,t.value)}),h.onBeforeUnmount(()=>{g&&g.cancelValue(v)}),h.onMounted(()=>{yi(!!(t.checked!==void 0||g||t.value===void 0),"Checkbox","`value` is not validate prop, do you mean `checked`?")});const y=S=>{const x=S.target.checked;n("update:checked",x),n("change",S),a.onFieldChange()},b=h.ref();return o({focus:()=>{var S;(S=b.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=b.value)===null||S===void 0||S.blur()}}),()=>{var S;const x=vr((S=i.default)===null||S===void 0?void 0:S.call(i)),{indeterminate:T,skipGroup:$,id:A=a.id.value}=t,P=vH(t,["indeterminate","skipGroup","id"]),{onMouseenter:M,onMouseleave:I,onInput:R,class:L,style:D}=r,B=vH(r,["onMouseenter","onMouseleave","onInput","class","style"]),F=k(k(k(k({},P),{id:A,prefixCls:l.value}),B),{disabled:m.value});g&&!$?(F.onChange=function(){for(var H=arguments.length,Z=new Array(H),J=0;J`${s.value}-group`),[c,f]=pH(u),d=h.ref((t.value===void 0?t.defaultValue:t.value)||[]);h.watch(()=>t.value,()=>{d.value=t.value||[]});const p=h.computed(()=>t.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),g=h.ref(Symbol()),v=h.ref(new Map),m=w=>{v.value.delete(w),g.value=Symbol()},y=(w,S)=>{v.value.set(w,S),g.value=Symbol()},b=h.ref(new Map);h.watch(g,()=>{const w=new Map;for(const S of v.value.values())w.set(S,!0);b.value=w});const O=w=>{const S=d.value.indexOf(w.value),x=[...d.value];S===-1?x.push(w.value):x.splice(S,1),t.value===void 0&&(d.value=x);const T=x.filter($=>b.value.has($)).sort(($,A)=>{const P=p.value.findIndex(I=>I.value===$),M=p.value.findIndex(I=>I.value===A);return P-M});i("update:value",T),i("change",T),a.onFieldChange()};return h.provide(gH,{cancelValue:m,registerValue:y,toggleOption:O,mergedValue:d,name:h.computed(()=>t.name),disabled:h.computed(()=>t.disabled)}),o({mergedValue:d}),()=>{var w;const{id:S=a.id.value}=t;let x=null;return p.value&&p.value.length>0&&(x=p.value.map(T=>{var $;return h.createVNode(r0,{prefixCls:s.value,key:T.value.toString(),disabled:"disabled"in T?T.disabled:t.disabled,indeterminate:T.indeterminate,value:T.value,checked:d.value.indexOf(T.value)!==-1,onChange:T.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?($=n.label)===null||$===void 0?void 0:$.call(n,T):T.label]})})),c(h.createVNode("div",K(K({},r),{},{class:[u.value,{[`${u.value}-rtl`]:l.value==="rtl"},r.class,f.value],id:S}),[x||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});r0.Group=tw,r0.install=function(t){return t.component(r0.name,r0),t.component(tw.name,tw),t};let nw=k({},$l.Modal);function MNe(t){t?nw=k(k({},nw),t):nw=k({},$l.Modal)}function INe(){return nw}const kE="internalMark",rw=h.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(t,e){let{slots:n}=e;yi(t.ANT_MARK__===kE,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const r=h.reactive({antLocale:k(k({},t.locale),{exist:!0}),ANT_MARK__:kE});return h.provide("localeData",r),h.watch(()=>t.locale,i=>{MNe(i&&i.Modal),r.antLocale=k(k({},i),{exist:!0})},{immediate:!0}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}});rw.install=function(t){return t.component(rw.name,rw),t};const DNe=mp(rw),iw=h.defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(t,e){let{attrs:n,slots:r}=e,i,o=!1;const a=h.computed(()=>t.duration===void 0?4.5:t.duration),s=()=>{a.value&&!o&&(i=setTimeout(()=>{u()},a.value*1e3))},l=()=>{i&&(clearTimeout(i),i=null)},u=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:p}=t;d&&d(p)},c=()=>{l(),s()};return h.onMounted(()=>{s()}),h.onUnmounted(()=>{o=!0,l()}),h.watch([a,()=>t.updateMark,()=>t.visible],(f,d)=>{let[p,g,v]=f,[m,y,b]=d;(p!==m||g!==y||v!==b&&b)&&c()},{flush:"post"}),()=>{var f,d;const{prefixCls:p,closable:g,closeIcon:v=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:m,holder:y}=t,{class:b,style:O}=n,w=`${p}-notice`,S=Object.keys(n).reduce((T,$)=>(($.startsWith("data-")||$.startsWith("aria-")||$==="role")&&(T[$]=n[$]),T),{}),x=h.createVNode("div",K({class:Pe(w,b,{[`${w}-closable`]:g}),style:O,onMouseenter:l,onMouseleave:s,onClick:m},S),[h.createVNode("div",{class:`${w}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),g?h.createVNode("a",{tabindex:0,onClick:u,class:`${w}-close`},[v||h.createVNode("span",{class:`${w}-close-x`},null)]):null]);return y?h.createVNode(h.Teleport,{to:y},{default:()=>x}):x}}});var RNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{prefixCls:c,animation:f="fade"}=t;let d=t.transitionName;return!d&&f&&(d=`${c}-${f}`),NA(d)}),l=(c,f)=>{const d=c.key||yH(),p=k(k({},c),{key:d}),{maxCount:g}=t,v=a.value.map(y=>y.notice.key).indexOf(d),m=a.value.concat();v!==-1?m.splice(v,1,{notice:p,holderCallback:f}):(g&&a.value.length>=g&&(p.key=m[0].notice.key,p.updateMark=yH(),p.userPassKey=d,m.shift()),m.push({notice:p,holderCallback:f})),a.value=m},u=c=>{a.value=a.value.filter(f=>{let{notice:{key:d,userPassKey:p}}=f;return(p||d)!==c})};return r({add:l,remove:u,notices:a}),()=>{var c;const{prefixCls:f,closeIcon:d=(c=i.closeIcon)===null||c===void 0?void 0:c.call(i,{prefixCls:f})}=t,p=a.value.map((v,m)=>{let{notice:y,holderCallback:b}=v;const O=m===a.value.length-1?y.updateMark:void 0,{key:w,userPassKey:S}=y,{content:x}=y,T=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},y),y.props),{key:w,noticeKey:S||w,updateMark:O,onClose:$=>{var A;u($),(A=y.onClose)===null||A===void 0||A.call(y)},onClick:y.onClick});return b?h.createVNode("div",{key:w,class:`${f}-hook-holder`,ref:$=>{typeof w>"u"||($?(o.set(w,$),b($,T)):o.delete(w))}},null):h.createVNode(iw,K(K({},T),{},{class:Pe(T.class,t.hashId)}),{default:()=>[typeof x=="function"?x({prefixCls:f}):x]})}),g={[f]:1,[n.class]:!!n.class,[t.hashId]:!0};return h.createVNode("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K({tag:"div"},s.value),{default:()=>[p]})])}}});ow.newInstance=function(e,n){const r=e||{},{name:i="notification",getContainer:o,appContext:a,prefixCls:s,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:f}=r,d=RNe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");o?o().appendChild(p):document.body.appendChild(p);const g=h.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(m,y){let{attrs:b}=y;const O=h.shallowRef(),w=h.computed(()=>Fr.getPrefixCls(i,s)),[,S]=f(w);return h.onMounted(()=>{n({notice(x){var T;(T=O.value)===null||T===void 0||T.add(x)},removeNotice(x){var T;(T=O.value)===null||T===void 0||T.remove(x)},destroy(){h.render(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:O})}),()=>{const x=Fr,T=x.getRootPrefixCls(l,w.value),$=c?u:`${w.value}-${u}`;return h.createVNode(zp,K(K({},x),{},{prefixCls:T}),{default:()=>[h.createVNode(ow,K(K({ref:O},b),{},{prefixCls:w.value,transitionName:$,hashId:S.value}),null)]})}}}),v=h.createVNode(g,d);v.appContext=a||v.appContext,h.render(v,p)};let bH=0;const NNe=Date.now();function _H(){const t=bH;return bH+=1,`rcNotification_${NNe}_${t}`}const LNe=h.defineComponent({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(t,e){let{attrs:n,slots:r}=e;const i=new Map,o=h.computed(()=>t.notices),a=h.computed(()=>{let c=t.transitionName;if(!c&&t.animation)switch(typeof t.animation){case"string":c=t.animation;break;case"function":c=t.animation().name;break;case"object":c=t.animation.name;break;default:c=`${t.prefixCls}-fade`;break}return NA(c)}),s=c=>t.remove(c),l=h.ref({});h.watch(o,()=>{const c={};Object.keys(l.value).forEach(f=>{c[f]=[]}),t.notices.forEach(f=>{const{placement:d="topRight"}=f.notice;d&&(c[d]=c[d]||[],c[d].push(f))}),l.value=c});const u=h.computed(()=>Object.keys(l.value));return()=>{var c;const{prefixCls:f,closeIcon:d=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:f})}=t,p=u.value.map(g=>{var v,m;const y=l.value[g],b=(v=t.getClassName)===null||v===void 0?void 0:v.call(t,g),O=(m=t.getStyles)===null||m===void 0?void 0:m.call(t,g),w=y.map((T,$)=>{let{notice:A,holderCallback:P}=T;const M=$===o.value.length-1?A.updateMark:void 0,{key:I,userPassKey:R}=A,{content:L}=A,D=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},A),A.props),{key:I,noticeKey:R||I,updateMark:M,onClose:B=>{var F;s(B),(F=A.onClose)===null||F===void 0||F.call(A)},onClick:A.onClick});return P?h.createVNode("div",{key:I,class:`${f}-hook-holder`,ref:B=>{typeof I>"u"||(B?(i.set(I,B),P(B,D)):i.delete(I))}},null):h.createVNode(iw,K(K({},D),{},{class:Pe(D.class,t.hashId)}),{default:()=>[typeof L=="function"?L({prefixCls:f}):L]})}),S={[f]:1,[`${f}-${g}`]:1,[n.class]:!!n.class,[t.hashId]:!0,[b]:!!b};function x(){var T;y.length>0||(Reflect.deleteProperty(l.value,g),(T=t.onAllRemoved)===null||T===void 0||T.call(t))}return h.createVNode("div",{key:g,class:S,style:n.style||O||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K(K({tag:"div"},a.value),{},{onAfterLeave:x}),{default:()=>[w]})])});return h.createVNode($7,{getContainer:t.getContainer},{default:()=>[p]})}}});var BNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);idocument.body;let OH=0;function zNe(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r{i&&Object.keys(i).forEach(o=>{const a=i[o];a!==void 0&&(t[o]=a)})}),t}function wH(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:e=VNe,motion:n,prefixCls:r,maxCount:i,getClassName:o,getStyles:a,onAllRemoved:s}=t,l=BNe(t,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=h.shallowRef([]),c=h.shallowRef(),f=(y,b)=>{const O=y.key||_H(),w=k(k({},y),{key:O}),S=u.value.map(T=>T.notice.key).indexOf(O),x=u.value.concat();S!==-1?x.splice(S,1,{notice:w,holderCallback:b}):(i&&u.value.length>=i&&(w.key=x[0].notice.key,w.updateMark=_H(),w.userPassKey=O,x.shift()),x.push({notice:w,holderCallback:b})),u.value=x},d=y=>{u.value=u.value.filter(b=>{let{notice:{key:O,userPassKey:w}}=b;return(w||O)!==y})},p=()=>{u.value=[]},g=()=>h.createVNode(LNe,{ref:c,prefixCls:r,maxCount:i,notices:u.value,remove:d,getClassName:o,getStyles:a,animation:n,hashId:t.hashId,onAllRemoved:s,getContainer:e},null),v=h.shallowRef([]),m={open:y=>{const b=zNe(l,y);(b.key===null||b.key===void 0)&&(b.key=`vc-notification-${OH}`,OH+=1),v.value=[...v.value,{type:"open",config:b}]},close:y=>{v.value=[...v.value,{type:"close",key:y}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return h.watch(v,()=>{v.value.length&&(v.value.forEach(y=>{switch(y.type){case"open":f(y.config);break;case"close":d(y.key);break;case"destroy":p();break}}),v.value=[])}),[m,g]}const FNe=t=>{const{componentCls:e,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:g,zIndexPopup:v,messageNoticeContentPadding:m}=t,y=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),b=new At("MessageMoveOut",{"0%":{maxHeight:t.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:k(k({},bn(t)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:v,[`${e}-move-up`]:{animationFillMode:"forwards"},[` ${e}-move-up-appear, ${e}-move-up-enter `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[` ${e}-move-up-appear${e}-move-up-appear-active, ${e}-move-up-enter${e}-move-up-enter-active `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${e}-notice`]:{padding:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${e}-notice-content`]:{display:"inline-block",padding:m,background:i,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${e}-success ${n}`]:{color:o},[`${e}-error ${n}`]:{color:a},[`${e}-warning ${n}`]:{color:s},[` ${e}-info ${n}, ${e}-loading ${n}`]:{color:l}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},NE=Fn("Message",t=>{const e=Xt(t,{messageNoticeContentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`});return[FNe(e)]},t=>({height:150,zIndexPopup:t.zIndexPopupBase+10})),WNe={info:h.createVNode(Df,null,null),success:h.createVNode(Nu,null,null),error:h.createVNode(Xo,null,null),warning:h.createVNode(Lu,null,null),loading:h.createVNode(Es,null,null)},SH=h.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:Pe(`${t.prefixCls}-custom-content`,`${t.prefixCls}-${t.type}`)},[t.icon||WNe[t.type],h.createVNode("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(t,e){let{slots:n,attrs:r}=e;var i;const{getPrefixCls:o}=V1(),a=h.computed(()=>t.prefixCls||o("message")),[,s]=NE(a);return h.createVNode(iw,K(K({},r),{},{prefixCls:a.value,class:Pe(s.value,`${a.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[h.createVNode(SH,{prefixCls:a.value,type:t.type,icon:t.icon},{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})]})}});var QNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);io("message",t.prefixCls)),[,l]=NE(s),u=()=>{var v;const m=(v=t.top)!==null&&v!==void 0?v:HNe;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},c=()=>Pe(l.value,t.rtl?`${s.value}-rtl`:""),f=()=>{var v;return wA({prefixCls:s.value,animation:(v=t.animation)!==null&&v!==void 0?v:"move-up",transitionName:t.transitionName})},d=h.createVNode("span",{class:`${s.value}-close-x`},[h.createVNode(Il,{class:`${s.value}-close-icon`},null)]),[p,g]=wH({getStyles:u,prefixCls:s.value,getClassName:c,motion:f,closable:!1,closeIcon:d,duration:(r=t.duration)!==null&&r!==void 0?r:GNe,getContainer:(i=t.staticGetContainer)!==null&&i!==void 0?i:a.value,maxCount:t.maxCount,onAllRemoved:t.onAllRemoved});return n(k(k({},p),{prefixCls:s,hashId:l})),g}});let xH=0;function UNe(t){const e=h.shallowRef(null),n=Symbol("messageHolderKey"),r=l=>{var u;(u=e.value)===null||u===void 0||u.close(l)},i=l=>{if(!e.value){const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:c,hashId:f}=e.value,d=`${c}-notice`,{content:p,icon:g,type:v,key:m,class:y,onClose:b}=l,O=QNe(l,["content","icon","type","key","class","onClose"]);let w=m;return w==null&&(xH+=1,w=`antd-message-${xH}`),mPe(S=>(u(k(k({},O),{key:w,content:()=>h.createVNode(SH,{prefixCls:c,type:v,icon:typeof g=="function"?g():g},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:Pe(v&&`${d}-${v}`,f,y),onClose:()=>{b==null||b(),S()}})),()=>{r(w)}))},a={open:i,destroy:l=>{var u;l!==void 0?r(l):(u=e.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,f,d)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let g,v;typeof f=="function"?v=f:(g=f,v=d);const m=k(k({onClose:v,duration:g},p),{type:l});return i(m)};a[l]=u}),[a,()=>h.createVNode(jNe,K(K({key:n},t),{},{ref:e}),null)]}function ZNe(t){return UNe(t)}let CH=3,TH,bi,XNe=1,PH="",$H="move-up",AH=!1,EH=()=>document.body,MH,IH=!1;function YNe(){return XNe++}function qNe(t){t.top!==void 0&&(TH=t.top,bi=null),t.duration!==void 0&&(CH=t.duration),t.prefixCls!==void 0&&(PH=t.prefixCls),t.getContainer!==void 0&&(EH=t.getContainer,bi=null),t.transitionName!==void 0&&($H=t.transitionName,bi=null,AH=!0),t.maxCount!==void 0&&(MH=t.maxCount,bi=null),t.rtl!==void 0&&(IH=t.rtl)}function KNe(t,e){if(bi){e(bi);return}ow.newInstance({appContext:t.appContext,prefixCls:t.prefixCls||PH,rootPrefixCls:t.rootPrefixCls,transitionName:$H,hasTransitionName:AH,style:{top:TH},getContainer:EH||t.getPopupContainer,maxCount:MH,name:"message",useStyle:NE},n=>{if(bi){e(bi);return}bi=n,e(n)})}const DH={info:Df,success:Nu,error:Xo,warning:Lu,loading:Es},JNe=Object.keys(DH);function eLe(t){const e=t.duration!==void 0?t.duration:CH,n=t.key||YNe(),r=new Promise(o=>{const a=()=>(typeof t.onClose=="function"&&t.onClose(),o(!0));KNe(t,s=>{s.notice({key:n,duration:e,style:t.style||{},class:t.class,content:l=>{let{prefixCls:u}=l;const c=DH[t.type],f=c?h.createVNode(c,null,null):"",d=Pe(`${u}-custom-content`,{[`${u}-${t.type}`]:t.type,[`${u}-rtl`]:IH===!0});return h.createVNode("div",{class:d},[typeof t.icon=="function"?t.icon():t.icon||f,h.createVNode("span",null,[typeof t.content=="function"?t.content():t.content])])},onClose:a,onClick:t.onClick})})}),i=()=>{bi&&bi.removeNotice(n)};return i.then=(o,a)=>r.then(o,a),i.promise=r,i}function tLe(t){return Object.prototype.toString.call(t)==="[object Object]"&&!!t.content}const Nf={open:eLe,config:qNe,destroy(t){if(bi)if(t){const{removeNotice:e}=bi;e(t)}else{const{destroy:e}=bi;e(),bi=null}}};function nLe(t,e){t[e]=(n,r,i)=>tLe(n)?t.open(k(k({},n),{type:e})):(typeof r=="function"&&(i=r,r=void 0),t.open({content:n,duration:r,type:e,onClose:i}))}JNe.forEach(t=>nLe(Nf,t)),Nf.warn=Nf.warning,Nf.useMessage=ZNe;const rLe=t=>{const{componentCls:e,width:n,notificationMarginEdge:r}=t,i=new At("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),o=new At("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new At("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${e}-top, &${e}-bottom`]:{marginInline:0},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}}}},iLe=t=>{const{iconCls:e,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:g,motionDurationMid:v,motionEaseInOut:m,fontSize:y,lineHeight:b,width:O,notificationIconSize:w}=t,S=`${n}-notice`,x=new At("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:O},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),T=new At("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:o,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:k(k(k(k({},bn(t)),{position:"fixed",zIndex:t.zIndexPopup,marginInlineEnd:g,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:t.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:v,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:T,animationPlayState:"running"}}),rLe(t)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[S]:{position:"relative",width:O,maxWidth:`calc(100vw - ${g*2}px)`,marginBottom:o,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${S}-message`]:{marginBottom:t.marginXS,color:f,fontSize:i,lineHeight:t.lineHeightLG},[`${S}-description`]:{fontSize:y},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:t.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.marginSM+w,fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:t.marginSM+w,fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${e}`]:{color:s},[`&-info${e}`]:{color:l},[`&-warning${e}`]:{color:u},[`&-error${e}`]:{color:c}},[`${S}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.wireframe?"transparent":t.colorFillContent}},[`${S}-btn`]:{float:"right",marginTop:t.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]},LE=Fn("Notification",t=>{const e=t.paddingMD,n=t.paddingLG,r=Xt(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationPadding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,notificationMarginBottom:t.margin,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationIconSize:t.fontSizeLG*t.lineHeightLG,notificationCloseButtonSize:t.controlHeightLG*.55});return[iLe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50,width:384}));function RH(t,e){return e||h.createVNode("span",{class:`${t}-close-x`},[h.createVNode(Il,{class:`${t}-close-icon`},null)])}h.createVNode(Df,null,null),h.createVNode(Nu,null,null),h.createVNode(Xo,null,null),h.createVNode(Lu,null,null),h.createVNode(Es,null,null);const oLe={success:Nu,info:Df,error:Xo,warning:Lu};function kH(t){let{prefixCls:e,icon:n,type:r,message:i,description:o,btn:a}=t,s=null;if(n)s=h.createVNode("span",{class:`${e}-icon`},[pp(n)]);else if(r){const l=oLe[r];s=h.createVNode(l,{class:`${e}-icon ${e}-icon-${r}`},null)}return h.createVNode("div",{class:Pe({[`${e}-with-icon`]:s}),role:"alert"},[s,h.createVNode("div",{class:`${e}-message`},[i]),h.createVNode("div",{class:`${e}-description`},[o]),a&&h.createVNode("div",{class:`${e}-btn`},[a])])}h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(t){const{getPrefixCls:e}=Qt("notification",t),n=h.computed(()=>t.prefixCls||e("notification")),r=h.computed(()=>`${n.value}-notice`),[,i]=LE(n);return()=>h.createVNode(iw,K(K({},t),{},{prefixCls:n.value,class:Pe(i.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:t.closable,closeIcon:RH(n.value,t.closeIcon)}),{default:()=>[h.createVNode(kH,{prefixCls:r.value,icon:t.icon,type:t.type,message:t.message,description:t.description,btn:t.btn},null)]})}});function NH(t,e,n){let r;switch(e=typeof e=="number"?`${e}px`:e,n=typeof n=="number"?`${n}px`:n,t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function aLe(t){return{name:`${t}-fade`}}var sLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.prefixCls||r("notification")),a=d=>{var p,g;return NH(d,(p=t.top)!==null&&p!==void 0?p:LH,(g=t.bottom)!==null&&g!==void 0?g:LH)},[,s]=LE(o),l=()=>Pe(s.value,{[`${o.value}-rtl`]:t.rtl}),u=()=>aLe(o.value),[c,f]=wH({prefixCls:o.value,getStyles:a,getClassName:l,motion:u,closable:!0,closeIcon:RH(o.value),duration:lLe,getContainer:()=>{var d,p;return((d=t.getPopupContainer)===null||d===void 0?void 0:d.call(t))||((p=i.value)===null||p===void 0?void 0:p.call(i))||document.body},maxCount:t.maxCount,hashId:s.value,onAllRemoved:t.onAllRemoved});return n(k(k({},c),{prefixCls:o.value,hashId:s})),f}});function cLe(t){const e=h.shallowRef(null),n=Symbol("notificationHolderKey"),r=s=>{if(!e.value)return;const{open:l,prefixCls:u,hashId:c}=e.value,f=`${u}-notice`,{message:d,description:p,icon:g,type:v,btn:m,class:y}=s,b=sLe(s,["message","description","icon","type","btn","class"]);return l(k(k({placement:"topRight"},b),{content:()=>h.createVNode(kH,{prefixCls:f,icon:typeof g=="function"?g():g,type:v,message:typeof d=="function"?d():d,description:typeof p=="function"?p():p,btn:typeof m=="function"?m():m},null),class:Pe(v&&`${f}-${v}`,c,y)}))},o={open:r,destroy:s=>{var l,u;s!==void 0?(l=e.value)===null||l===void 0||l.close(s):(u=e.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(k(k({},l),{type:s}))}),[o,()=>h.createVNode(uLe,K(K({key:n},t),{},{ref:e}),null)]}function fLe(t){return cLe(t)}const Lf={};let BH=4.5,VH="24px",zH="24px",BE="",FH="topRight",WH=()=>document.body,QH=null,VE=!1,HH;function dLe(t){const{duration:e,placement:n,bottom:r,top:i,getContainer:o,closeIcon:a,prefixCls:s}=t;s!==void 0&&(BE=s),e!==void 0&&(BH=e),n!==void 0&&(FH=n),r!==void 0&&(zH=typeof r=="number"?`${r}px`:r),i!==void 0&&(VH=typeof i=="number"?`${i}px`:i),o!==void 0&&(WH=o),a!==void 0&&(QH=a),t.rtl!==void 0&&(VE=t.rtl),t.maxCount!==void 0&&(HH=t.maxCount)}function hLe(t,e){let{prefixCls:n,placement:r=FH,getContainer:i=WH,top:o,bottom:a,closeIcon:s=QH,appContext:l}=t;const{getPrefixCls:u}=xLe(),c=u("notification",n||BE),f=`${c}-${r}-${VE}`,d=Lf[f];if(d){Promise.resolve(d).then(g=>{e(g)});return}const p=Pe(`${c}-${r}`,{[`${c}-rtl`]:VE===!0});ow.newInstance({name:"notification",prefixCls:n||BE,useStyle:LE,class:p,style:NH(r,o??VH,a??zH),appContext:l,getContainer:i,closeIcon:g=>{let{prefixCls:v}=g;return h.createVNode("span",{class:`${v}-close-x`},[pp(s,{},h.createVNode(Il,{class:`${v}-close-icon`},null))])},maxCount:HH,hasTransitionName:!0},g=>{Lf[f]=g,e(g)})}const pLe={success:cE,info:DO,error:dE,warning:fE};function gLe(t){const{icon:e,type:n,description:r,message:i,btn:o}=t,a=t.duration===void 0?BH:t.duration;hLe(t,s=>{s.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let f=null;if(e)f=()=>h.createVNode("span",{class:`${c}-icon`},[pp(e)]);else if(n){const d=pLe[n];f=()=>h.createVNode(d,{class:`${c}-icon ${c}-icon-${n}`},null)}return h.createVNode("div",{class:f?`${c}-with-icon`:""},[f&&f(),h.createVNode("div",{class:`${c}-message`},[!r&&f?h.createVNode("span",{class:`${c}-message-single-line-auto-margin`},null):null,pp(i)]),h.createVNode("div",{class:`${c}-description`},[pp(r)]),o?h.createVNode("span",{class:`${c}-btn`},[pp(o)]):null])},duration:a,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}const Bp={open:gLe,close(t){Object.keys(Lf).forEach(e=>Promise.resolve(Lf[e]).then(n=>{n.removeNotice(t)}))},config:dLe,destroy(){Object.keys(Lf).forEach(t=>{Promise.resolve(Lf[t]).then(e=>{e.destroy()}),delete Lf[t]})}};["success","info","warning","error"].forEach(t=>{Bp[t]=e=>Bp.open(k(k({},e),{type:t}))}),Bp.warn=Bp.warning,Bp.useNotification=fLe;const vLe=`-ant-${Date.now()}-${Math.random()}`;function mLe(t,e){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new yn(a),u=Pf(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(e.primaryColor){i(e.primaryColor,"primary");const a=new yn(e.primaryColor),s=Pf(a.toRgbString());s.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const l=new yn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${t}-${a}: ${n[a]};`).join(` `)} } `.trim()}function yLe(t,e){const n=mLe(t,e);jo()?Nm(n,`${vLe}-dynamic-theme`):yi(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const bLe=t=>{const[e,n]=xp();return cA(h.computed(()=>({theme:e.value,token:n.value,hashId:"",path:["ant-design-icons",t.value]})),()=>[{[`.${t.value}`]:k(k({},Sp()),{[`.${t.value} .${t.value}-icon`]:{display:"block"}})}])};function _Le(t,e){const n=h.computed(()=>(t==null?void 0:t.value)||{}),r=h.computed(()=>n.value.inherit===!1||!(e!=null&&e.value)?xW:e.value);return h.computed(()=>{if(!(t!=null&&t.value))return e==null?void 0:e.value;const o=k({},r.value.components);return Object.keys(t.value.components||{}).forEach(a=>{o[a]=k(k({},o[a]),t.value.components[a])}),k(k(k({},r.value),n.value),{token:k(k({},r.value.token),n.value.token),components:o})})}var OLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{k(Fr,zE),Fr.prefixCls=Vp(),Fr.iconPrefixCls=GH(),Fr.getPrefixCls=(t,e)=>e||(t?`${Fr.prefixCls}-${t}`:Fr.prefixCls),Fr.getRootPrefixCls=()=>Fr.prefixCls?Fr.prefixCls:Vp()});let FE;const SLe=t=>{FE&&FE(),FE=h.watchEffect(()=>{k(zE,h.reactive(t)),k(Fr,h.reactive(t))}),t.theme&&yLe(Vp(),t.theme)},xLe=()=>({getPrefixCls:(t,e)=>e||(t?`${Vp()}-${t}`:Vp()),getIconPrefixCls:GH,getRootPrefixCls:()=>Fr.prefixCls?Fr.prefixCls:Vp()}),zp=h.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:QPe(),setup(t,e){let{slots:n}=e;const r=V1(),i=(D,B)=>{const{prefixCls:F="ant"}=t;if(B)return B;const z=F||r.getPrefixCls("");return D?`${z}-${D}`:z},o=h.computed(()=>t.iconPrefixCls||r.iconPrefixCls.value||Z$),a=h.computed(()=>o.value!==r.iconPrefixCls.value),s=h.computed(()=>{var D;return t.csp||((D=r.csp)===null||D===void 0?void 0:D.value)}),l=bLe(o),u=_Le(h.computed(()=>t.theme),h.computed(()=>{var D;return(D=r.theme)===null||D===void 0?void 0:D.value})),c=D=>(t.renderEmpty||n.renderEmpty||r.renderEmpty||x$e)(D),f=h.computed(()=>{var D,B;return(D=t.autoInsertSpaceInButton)!==null&&D!==void 0?D:(B=r.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),d=h.computed(()=>{var D;return t.locale||((D=r.locale)===null||D===void 0?void 0:D.value)});h.watch(d,()=>{zE.locale=d.value},{immediate:!0});const p=h.computed(()=>{var D;return t.direction||((D=r.direction)===null||D===void 0?void 0:D.value)}),g=h.computed(()=>{var D,B;return(D=t.space)!==null&&D!==void 0?D:(B=r.space)===null||B===void 0?void 0:B.value}),v=h.computed(()=>{var D,B;return(D=t.virtual)!==null&&D!==void 0?D:(B=r.virtual)===null||B===void 0?void 0:B.value}),m=h.computed(()=>{var D,B;return(D=t.dropdownMatchSelectWidth)!==null&&D!==void 0?D:(B=r.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=h.computed(()=>{var D;return t.getTargetContainer!==void 0?t.getTargetContainer:(D=r.getTargetContainer)===null||D===void 0?void 0:D.value}),b=h.computed(()=>{var D;return t.getPopupContainer!==void 0?t.getPopupContainer:(D=r.getPopupContainer)===null||D===void 0?void 0:D.value}),O=h.computed(()=>{var D;return t.pageHeader!==void 0?t.pageHeader:(D=r.pageHeader)===null||D===void 0?void 0:D.value}),w=h.computed(()=>{var D;return t.input!==void 0?t.input:(D=r.input)===null||D===void 0?void 0:D.value}),S=h.computed(()=>{var D;return t.pagination!==void 0?t.pagination:(D=r.pagination)===null||D===void 0?void 0:D.value}),x=h.computed(()=>{var D;return t.form!==void 0?t.form:(D=r.form)===null||D===void 0?void 0:D.value}),T=h.computed(()=>{var D;return t.select!==void 0?t.select:(D=r.select)===null||D===void 0?void 0:D.value}),$=h.computed(()=>t.componentSize),A=h.computed(()=>t.componentDisabled),P=h.computed(()=>{var D,B;return(D=t.wave)!==null&&D!==void 0?D:(B=r.wave)===null||B===void 0?void 0:B.value}),M={csp:s,autoInsertSpaceInButton:f,locale:d,direction:p,space:g,virtual:v,dropdownMatchSelectWidth:m,getPrefixCls:i,iconPrefixCls:o,theme:h.computed(()=>{var D,B;return(D=u.value)!==null&&D!==void 0?D:(B=r.theme)===null||B===void 0?void 0:B.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:b,pageHeader:O,input:w,pagination:S,form:x,select:T,componentSize:$,componentDisabled:A,transformCellText:h.computed(()=>t.transformCellText),wave:P},I=h.computed(()=>{const D=u.value||{},{algorithm:B,token:F}=D,z=OLe(D,["algorithm","token"]),W=B&&(!Array.isArray(B)||B.length>0)?YF(B):void 0;return k(k({},z),{theme:W,token:k(k({},tO),F)})}),R=h.computed(()=>{var D,B;let F={};return d.value&&(F=((D=d.value.Form)===null||D===void 0?void 0:D.defaultValidateMessages)||((B=$l.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),t.form&&t.form.validateMessages&&(F=k(k({},F),t.form.validateMessages)),F});HPe(M),FPe({validateMessages:R}),IW($),IF(A);const L=D=>{var B,F;let z=a.value?l((B=n.default)===null||B===void 0?void 0:B.call(n)):(F=n.default)===null||F===void 0?void 0:F.call(n);if(t.theme){const W=function(){return z}();z=h.createVNode(b$e,{value:I.value},{default:()=>[W]})}return h.createVNode(DNe,{locale:d.value||D,ANT_MARK__:kE},{default:()=>[z]})};return h.watchEffect(()=>{p.value&&(Nf.config({rtl:p.value==="rtl"}),Bp.config({rtl:p.value==="rtl"}))}),()=>h.createVNode(kF,{children:(D,B,F)=>L(F)},null)}});zp.config=SLe,zp.install=function(t){t.component(zp.name,zp)};const CLe=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=t;return{[e]:k(k({},bn(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}},TLe=Fn("Divider",t=>{const e=Xt(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[CLe(e)]},{sizePaddingEdgeHorizontal:0}),PLe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),$Le=h.defineComponent({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:PLe(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Qt("divider",t),[a,s]=TLe(i),l=h.computed(()=>t.orientation==="left"&&t.orientationMargin!=null),u=h.computed(()=>t.orientation==="right"&&t.orientationMargin!=null),c=h.computed(()=>{const{type:p,dashed:g,plain:v}=t,m=i.value;return{[m]:!0,[s.value]:!!s.value,[`${m}-${p}`]:!0,[`${m}-dashed`]:!!g,[`${m}-plain`]:!!v,[`${m}-rtl`]:o.value==="rtl",[`${m}-no-default-orientation-margin-left`]:l.value,[`${m}-no-default-orientation-margin-right`]:u.value}}),f=h.computed(()=>{const p=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return k(k({},l.value&&{marginLeft:p}),u.value&&{marginRight:p})}),d=h.computed(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var p;const g=vr((p=n.default)===null||p===void 0?void 0:p.call(n));return a(h.createVNode("div",K(K({},r),{},{class:[c.value,g.length?`${i.value}-with-text ${i.value}-with-text${d.value}`:"",r.class],role:"separator"}),[g.length?h.createVNode("span",{class:`${i.value}-inner-text`,style:f.value},[g]):null]))}}}),ALe=mp($Le),i0=t=>t!=null&&(Array.isArray(t)?xs(t).length:!0);function WE(t){return i0(t.prefix)||i0(t.suffix)||i0(t.allowClear)}function aw(t){return i0(t.addonBefore)||i0(t.addonAfter)}function QE(t){return typeof t>"u"||t===null?"":String(t)}function o0(t,e,n,r){if(!n)return;const i=e;if(e.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const o=t.cloneNode(!0);i.target=o,i.currentTarget=o,o.value="",n(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=t,i.currentTarget=t,t.value=r,n(i);return}n(i)}function jH(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}const ELe=()=>({addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,suffix:ne.any,clearIcon:ne.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),UH=()=>k(k({},ELe()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:ne.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),ZH=()=>k(k({},UH()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:$n("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),MLe=h.defineComponent({name:"BaseInput",inheritAttrs:!1,props:UH(),setup(t,e){let{slots:n,attrs:r}=e;const i=h.ref(),o=s=>{var l;if(!((l=i.value)===null||l===void 0)&&l.contains(s.target)){const{triggerFocus:u}=t;u==null||u()}},a=()=>{var s;const{allowClear:l,value:u,disabled:c,readonly:f,handleReset:d,suffix:p=n.suffix,prefixCls:g}=t;if(!l)return null;const v=!c&&!f&&u,m=`${g}-clear-icon`,y=((s=n.clearIcon)===null||s===void 0?void 0:s.call(n))||"*";return h.createVNode("span",{onClick:d,onMousedown:b=>b.preventDefault(),class:Pe({[`${m}-hidden`]:!v,[`${m}-has-suffix`]:!!p},m),role:"button",tabindex:-1},[y])};return()=>{var s,l;const{focused:u,value:c,disabled:f,allowClear:d,readonly:p,hidden:g,prefixCls:v,prefix:m=(s=n.prefix)===null||s===void 0?void 0:s.call(n),suffix:y=(l=n.suffix)===null||l===void 0?void 0:l.call(n),addonAfter:b=n.addonAfter,addonBefore:O=n.addonBefore,inputElement:w,affixWrapperClassName:S,wrapperClassName:x,groupClassName:T}=t;let $=Gn(w,{value:c,hidden:g});if(WE({prefix:m,suffix:y,allowClear:d})){const A=`${v}-affix-wrapper`,P=Pe(A,{[`${A}-disabled`]:f,[`${A}-focused`]:u,[`${A}-readonly`]:p,[`${A}-input-with-clear-btn`]:y&&d&&c},!aw({addonAfter:b,addonBefore:O})&&r.class,S),M=(y||d)&&h.createVNode("span",{class:`${v}-suffix`},[a(),y]);$=h.createVNode("span",{class:P,style:r.style,hidden:!aw({addonAfter:b,addonBefore:O})&&g,onMousedown:o,ref:i},[m&&h.createVNode("span",{class:`${v}-prefix`},[m]),Gn(w,{style:null,value:c,hidden:null}),M])}if(aw({addonAfter:b,addonBefore:O})){const A=`${v}-group`,P=`${A}-addon`,M=Pe(`${v}-wrapper`,A,x),I=Pe(`${v}-group-wrapper`,r.class,T);return h.createVNode("span",{class:I,style:r.style,hidden:g},[h.createVNode("span",{class:M},[O&&h.createVNode("span",{class:P},[O]),Gn($,{style:null,hidden:null}),b&&h.createVNode("span",{class:P},[b])])])}return $}}});var ILe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.value,()=>{a.value=t.value}),h.watch(()=>t.disabled,()=>{t.disabled&&(s.value=!1)});const c=T=>{l.value&&jH(l.value.input,T)},f=()=>{var T;(T=l.value.input)===null||T===void 0||T.blur()},d=(T,$,A)=>{var P;(P=l.value.input)===null||P===void 0||P.setSelectionRange(T,$,A)},p=()=>{var T;(T=l.value.input)===null||T===void 0||T.select()};i({focus:c,blur:f,input:h.computed(()=>{var T;return(T=l.value.input)===null||T===void 0?void 0:T.input}),stateValue:a,setSelectionRange:d,select:p});const g=T=>{o("change",T)},v=(T,$)=>{a.value!==T&&(t.value===void 0?a.value=T:h.nextTick(()=>{var A;l.value.input.value!==a.value&&((A=u.value)===null||A===void 0||A.$forceUpdate())}),h.nextTick(()=>{$&&$()}))},m=T=>{const{value:$}=T.target;if(a.value===$)return;const A=T.target.value;o0(l.value.input,T,g),v(A)},y=T=>{T.keyCode===13&&o("pressEnter",T),o("keydown",T)},b=T=>{s.value=!0,o("focus",T)},O=T=>{s.value=!1,o("blur",T)},w=T=>{o0(l.value.input,T,g),v("",()=>{c()})},S=()=>{var T,$;const{addonBefore:A=n.addonBefore,addonAfter:P=n.addonAfter,disabled:M,valueModifiers:I={},htmlSize:R,autocomplete:L,prefixCls:D,inputClassName:B,prefix:F=(T=n.prefix)===null||T===void 0?void 0:T.call(n),suffix:z=($=n.suffix)===null||$===void 0?void 0:$.call(n),allowClear:W,type:j="text"}=t,H=Er(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),Z=k(k(k({},H),r),{autocomplete:L,onChange:m,onInput:m,onFocus:b,onBlur:O,onKeydown:y,class:Pe(D,{[`${D}-disabled`]:M},B,!aw({addonAfter:P,addonBefore:A})&&!WE({prefix:F,suffix:z,allowClear:W})&&r.class),ref:l,key:"ant-input",size:R,type:j,lazy:t.lazy});return I.lazy&&delete Z.onInput,Z.autofocus||delete Z.autofocus,h.createVNode(VA,Er(Z,["size"]),null)},x=()=>{var T;const{maxlength:$,suffix:A=(T=n.suffix)===null||T===void 0?void 0:T.call(n),showCount:P,prefixCls:M}=t,I=Number($)>0;if(A||P){const R=[...QE(a.value)].length,L=typeof P=="object"?P.formatter({count:R,maxlength:$}):`${R}${I?` / ${$}`:""}`;return h.createVNode(h.Fragment,null,[!!P&&h.createVNode("span",{class:Pe(`${M}-show-count-suffix`,{[`${M}-show-count-has-suffix`]:!!A})},[L]),A])}return null};return h.onMounted(()=>{process.env.NODE_ENV==="test"&&t.autofocus&&c()}),()=>{const{prefixCls:T,disabled:$}=t,A=ILe(t,["prefixCls","disabled"]);return h.createVNode(MLe,K(K(K({},A),r),{},{ref:u,prefixCls:T,inputElement:S(),handleReset:w,value:QE(a.value),focused:s.value,triggerFocus:c,suffix:x(),disabled:$}),n)}}}),sw=()=>Er(ZH(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),XH=()=>k(k({},Er(sw(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:B1(),onCompositionend:B1(),valueModifiers:Object});var RLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iJm(l.status,t.status)),{direction:c,prefixCls:f,size:d,autocomplete:p}=Qt("input",t),{compactSize:g,compactItemClassnames:v}=$O(f,c),m=h.computed(()=>g.value||d.value),[y,b]=xE(f),O=Cs();i({focus:R=>{var L;(L=a.value)===null||L===void 0||L.focus(R)},blur:()=>{var R;(R=a.value)===null||R===void 0||R.blur()},input:a,setSelectionRange:(R,L,D)=>{var B;(B=a.value)===null||B===void 0||B.setSelectionRange(R,L,D)},select:()=>{var R;(R=a.value)===null||R===void 0||R.select()}});const $=h.ref([]),A=()=>{$.value.push(setTimeout(()=>{var R,L,D,B;!((R=a.value)===null||R===void 0)&&R.input&&((L=a.value)===null||L===void 0?void 0:L.input.getAttribute("type"))==="password"&&(!((D=a.value)===null||D===void 0)&&D.input.hasAttribute("value"))&&((B=a.value)===null||B===void 0||B.input.removeAttribute("value"))}))};h.onMounted(()=>{A()}),h.onBeforeUpdate(()=>{$.value.forEach(R=>clearTimeout(R))}),h.onBeforeUnmount(()=>{$.value.forEach(R=>clearTimeout(R))});const P=R=>{A(),o("blur",R),s.onFieldBlur()},M=R=>{A(),o("focus",R)},I=R=>{o("update:value",R.target.value),o("change",R),o("input",R),s.onFieldChange()};return()=>{var R,L,D,B,F,z;const{hasFeedback:W,feedbackIcon:j}=l,{allowClear:H,bordered:Z=!0,prefix:J=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:se=(L=n.suffix)===null||L===void 0?void 0:L.call(n),addonAfter:oe=(D=n.addonAfter)===null||D===void 0?void 0:D.call(n),addonBefore:de=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:ie=(F=s.id)===null||F===void 0?void 0:F.value}=t,ue=RLe(t,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ee=(W||se)&&h.createVNode(h.Fragment,null,[se,W&&j]),X=f.value,Y=WE({prefix:J,suffix:se})||!!W,le=n.clearIcon||(()=>h.createVNode(Xo,null,null));return y(h.createVNode(DLe,K(K(K({},r),Er(ue,["onUpdate:value","onChange","onInput"])),{},{onChange:I,id:ie,disabled:(z=t.disabled)!==null&&z!==void 0?z:O.value,ref:a,prefixCls:X,autocomplete:p.value,onBlur:P,onFocus:M,prefix:J,suffix:ee,allowClear:H,addonAfter:oe&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[oe]})]}),addonBefore:de&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[de]})]}),class:[r.class,v.value],inputClassName:Pe({[`${X}-sm`]:m.value==="small",[`${X}-lg`]:m.value==="large",[`${X}-rtl`]:c.value==="rtl",[`${X}-borderless`]:!Z},!Y&&Dl(X,u.value),b.value),affixWrapperClassName:Pe({[`${X}-affix-wrapper-sm`]:m.value==="small",[`${X}-affix-wrapper-lg`]:m.value==="large",[`${X}-affix-wrapper-rtl`]:c.value==="rtl",[`${X}-affix-wrapper-borderless`]:!Z},Dl(`${X}-affix-wrapper`,u.value,W),b.value),wrapperClassName:Pe({[`${X}-group-rtl`]:c.value==="rtl"},b.value),groupClassName:Pe({[`${X}-group-wrapper-sm`]:m.value==="small",[`${X}-group-wrapper-lg`]:m.value==="large",[`${X}-group-wrapper-rtl`]:c.value==="rtl"},Dl(`${X}-group-wrapper`,u.value,W),b.value)}),k(k({},n),{clearIcon:le})))}}}),kLe=h.defineComponent({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o,getPrefixCls:a}=Qt("input-group",t),s=Za.useInject();Za.useProvide(s,{isFormItemInput:!1});const l=h.computed(()=>a("input")),[u,c]=xE(l),f=h.computed(()=>{const d=i.value;return{[`${d}`]:!0,[c.value]:!0,[`${d}-lg`]:t.size==="large",[`${d}-sm`]:t.size==="small",[`${d}-compact`]:t.compact,[`${d}-rtl`]:o.value==="rtl"}});return()=>{var d;return u(h.createVNode("span",K(K({},r),{},{class:Pe(f.value,r.class)}),[(d=n.default)===null||d===void 0?void 0:d.call(n)]))}}});var NLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var S;(S=a.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=a.value)===null||S===void 0||S.blur()}});const c=S=>{o("update:value",S.target.value),S&&S.target&&S.type==="click"&&o("search",S.target.value,S),o("change",S)},f=S=>{var x;document.activeElement===((x=a.value)===null||x===void 0?void 0:x.input)&&S.preventDefault()},d=S=>{var x,T;o("search",(T=(x=a.value)===null||x===void 0?void 0:x.input)===null||T===void 0?void 0:T.stateValue,S)},p=S=>{s.value||t.loading||d(S)},g=S=>{s.value=!0,o("compositionstart",S)},v=S=>{s.value=!1,o("compositionend",S)},{prefixCls:m,getPrefixCls:y,direction:b,size:O}=Qt("input-search",t),w=h.computed(()=>y("input",t.inputPrefixCls));return()=>{var S,x,T,$;const{disabled:A,loading:P,addonAfter:M=(S=n.addonAfter)===null||S===void 0?void 0:S.call(n),suffix:I=(x=n.suffix)===null||x===void 0?void 0:x.call(n)}=t,R=NLe(t,["disabled","loading","addonAfter","suffix"]);let{enterButton:L=($=(T=n.enterButton)===null||T===void 0?void 0:T.call(n))!==null&&$!==void 0?$:!1}=t;L=L||L==="";const D=typeof L=="boolean"?h.createVNode(SO,null,null):null,B=`${m.value}-button`,F=Array.isArray(L)?L[0]:L;let z;const W=F.type&&z2(F.type)&&F.type.__ANT_BUTTON;if(W||F.tagName==="button")z=Gn(F,k({onMousedown:f,onClick:d,key:"enterButton"},W?{class:B,size:O.value}:{}),!1);else{const H=D&&!L;z=h.createVNode(ri,{class:B,type:L?"primary":void 0,size:O.value,disabled:A,key:"enterButton",onMousedown:f,onClick:d,loading:P,icon:H?D:null},{default:()=>[H?null:D||L]})}M&&(z=[z,M]);const j=Pe(m.value,{[`${m.value}-rtl`]:b.value==="rtl",[`${m.value}-${O.value}`]:!!O.value,[`${m.value}-with-button`]:!!L},r.class);return h.createVNode(jn,K(K(K({ref:a},Er(R,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:p,onCompositionstart:g,onCompositionend:v,size:O.value,prefixCls:w.value,addonAfter:z,suffix:I,onChange:c,class:j,disabled:A}),n)}}}),YH=t=>t!=null&&(Array.isArray(t)?xs(t).length:!0);function BLe(t){return YH(t.addonBefore)||YH(t.addonAfter)}const VLe=["text","input"],zLe=h.defineComponent({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ne.oneOf(Du("text","input")),value:Go(),defaultValue:Go(),allowClear:{type:Boolean,default:void 0},element:Go(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Go(),prefix:Go(),addonBefore:Go(),addonAfter:Go(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(t,e){let{slots:n,attrs:r}=e;const i=Za.useInject(),o=s=>{const{value:l,disabled:u,readonly:c,handleReset:f,suffix:d=n.suffix}=t,p=!u&&!c&&l,g=`${s}-clear-icon`;return h.createVNode(Xo,{onClick:f,onMousedown:v=>v.preventDefault(),class:Pe({[`${g}-hidden`]:!p,[`${g}-has-suffix`]:!!d},g),role:"button"},null)},a=(s,l)=>{const{value:u,allowClear:c,direction:f,bordered:d,hidden:p,status:g,addonAfter:v=n.addonAfter,addonBefore:m=n.addonBefore,hashId:y}=t,{status:b,hasFeedback:O}=i;if(!c)return Gn(l,{value:u,disabled:t.disabled});const w=Pe(`${s}-affix-wrapper`,`${s}-affix-wrapper-textarea-with-clear-btn`,Dl(`${s}-affix-wrapper`,Jm(b,g),O),{[`${s}-affix-wrapper-rtl`]:f==="rtl",[`${s}-affix-wrapper-borderless`]:!d,[`${r.class}`]:!BLe({addonAfter:v,addonBefore:m})&&r.class},y);return h.createVNode("span",{class:w,style:r.style,hidden:p},[Gn(l,{style:null,value:u,disabled:t.disabled}),o(s)])};return()=>{var s;const{prefixCls:l,inputType:u,element:c=(s=n.element)===null||s===void 0?void 0:s.call(n)}=t;return u===VLe[0]?a(l,c):null}}}),FLe=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,WLe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],HE={};let Ko;function QLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&HE[n])return HE[n];const r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:WLe.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(HE[n]=l),l}function HLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ko||(Ko=document.createElement("textarea"),Ko.setAttribute("tab-index","-1"),Ko.setAttribute("aria-hidden","true"),document.body.appendChild(Ko)),t.getAttribute("wrap")?Ko.setAttribute("wrap",t.getAttribute("wrap")):Ko.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=QLe(t,e);Ko.setAttribute("style",`${s};${FLe}`),Ko.value=t.value||t.placeholder||"";let l,u,c,f=Ko.scrollHeight;if(a==="border-box"?f+=o:a==="content-box"&&(f-=i),n!==null||r!==null){Ko.value=" ";const p=Ko.scrollHeight-i;n!==null&&(l=p*n,a==="border-box"&&(l=l+i+o),f=Math.max(l,f)),r!==null&&(u=p*r,a==="border-box"&&(u=u+i+o),c=f>u?"":"hidden",f=Math.min(u,f))}const d={height:`${f}px`,overflowY:c,resize:"none"};return l&&(d.minHeight=`${l}px`),u&&(d.maxHeight=`${u}px`),d}const GE=0,jE=1,UE=2,GLe=h.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:XH(),setup(t,e){let{attrs:n,emit:r,expose:i}=e,o,a;const s=h.ref(),l=h.ref({}),u=h.ref(UE);h.onBeforeUnmount(()=>{Dt.cancel(o),Dt.cancel(a)});const c=()=>{try{if(s.value&&document.activeElement===s.value.input){const x=s.value.getSelectionStart(),T=s.value.getSelectionEnd(),$=s.value.getScrollTop();s.value.setSelectionRange(x,T),s.value.setScrollTop($)}}catch{}},f=h.ref(),d=h.ref();h.watchEffect(()=>{const x=t.autoSize||t.autosize;x?(f.value=x.minRows,d.value=x.maxRows):(f.value=void 0,d.value=void 0)});const p=h.computed(()=>!!(t.autoSize||t.autosize)),g=()=>{u.value=GE};h.watch([()=>t.value,f,d,p],()=>{p.value&&g()},{immediate:!0});const v=h.ref();h.watch([u,s],()=>{if(s.value)if(u.value===GE)u.value=jE;else if(u.value===jE){const x=HLe(s.value.input,!1,f.value,d.value);u.value=UE,v.value=x}else c()},{immediate:!0,flush:"post"});const m=h.getCurrentInstance(),y=h.ref(),b=()=>{Dt.cancel(y.value)},O=x=>{u.value===UE&&(r("resize",x),p.value&&(b(),y.value=Dt(()=>{g()})))};h.onBeforeUnmount(()=>{b()}),i({resizeTextarea:()=>{g()},textArea:h.computed(()=>{var x;return(x=s.value)===null||x===void 0?void 0:x.input}),instance:m}),yi(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const S=()=>{const{prefixCls:x,disabled:T}=t,$=Er(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),A=Pe(x,n.class,{[`${x}-disabled`]:T}),P=p.value?v.value:null,M=[n.style,l.value,P],I=k(k(k({},$),n),{style:M,class:A});return(u.value===GE||u.value===jE)&&M.push({overflowX:"hidden",overflowY:"hidden"}),I.autofocus||delete I.autofocus,I.rows===0&&delete I.rows,h.createVNode(vp,{onResize:O,disabled:!p.value},{default:()=>[h.createVNode(VA,K(K({},I),{},{ref:s,tag:"textarea"}),null)]})};return()=>S()}});function qH(t,e){return[...t||""].slice(0,e).join("")}function KH(t,e,n,r){let i=n;return t?i=qH(n,r):[...e||""].lengthr&&(i=e),i}const jLe=h.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:XH(),setup(t,e){let{attrs:n,expose:r,emit:i}=e;var o;const a=Ms(),s=Za.useInject(),l=h.computed(()=>Jm(s.status,t.status)),u=h.shallowRef((o=t.value)!==null&&o!==void 0?o:t.defaultValue),c=h.shallowRef(),f=h.shallowRef(""),{prefixCls:d,size:p,direction:g}=Qt("input",t),[v,m]=xE(d),y=Cs(),b=h.computed(()=>t.showCount===""||t.showCount||!1),O=h.computed(()=>Number(t.maxlength)>0),w=h.shallowRef(!1),S=h.shallowRef(),x=h.shallowRef(0),T=W=>{w.value=!0,S.value=f.value,x.value=W.currentTarget.selectionStart,i("compositionstart",W)},$=W=>{var j;w.value=!1;let H=W.currentTarget.value;if(O.value){const Z=x.value>=t.maxlength+1||x.value===((j=S.value)===null||j===void 0?void 0:j.length);H=KH(Z,S.value,H,t.maxlength)}H!==f.value&&(I(H),o0(W.currentTarget,W,D,H)),i("compositionend",W)},A=h.getCurrentInstance();h.watch(()=>t.value,()=>{var W;"value"in A.vnode.props,u.value=(W=t.value)!==null&&W!==void 0?W:""});const P=W=>{var j;jH((j=c.value)===null||j===void 0?void 0:j.textArea,W)},M=()=>{var W,j;(j=(W=c.value)===null||W===void 0?void 0:W.textArea)===null||j===void 0||j.blur()},I=(W,j)=>{u.value!==W&&(t.value===void 0?u.value=W:h.nextTick(()=>{var H,Z,J;c.value.textArea.value!==f.value&&((J=(H=c.value)===null||H===void 0?void 0:(Z=H.instance).update)===null||J===void 0||J.call(Z))}),h.nextTick(()=>{j&&j()}))},R=W=>{W.keyCode===13&&i("pressEnter",W),i("keydown",W)},L=W=>{const{onBlur:j}=t;j==null||j(W),a.onFieldBlur()},D=W=>{i("update:value",W.target.value),i("change",W),i("input",W),a.onFieldChange()},B=W=>{o0(c.value.textArea,W,D),I("",()=>{P()})},F=W=>{let j=W.target.value;if(u.value!==j){if(O.value){const H=W.target,Z=H.selectionStart>=t.maxlength+1||H.selectionStart===j.length||!H.selectionStart;j=KH(Z,f.value,j,t.maxlength)}o0(W.currentTarget,W,D,j),I(j)}},z=()=>{var W,j;const{class:H}=n,{bordered:Z=!0}=t,J=k(k(k({},Er(t,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!Z,[`${H}`]:H&&!b.value,[`${d.value}-sm`]:p.value==="small",[`${d.value}-lg`]:p.value==="large"},Dl(d.value,l.value),m.value],disabled:y.value,showCount:null,prefixCls:d.value,onInput:F,onChange:F,onBlur:L,onKeydown:R,onCompositionstart:T,onCompositionend:$});return!((W=t.valueModifiers)===null||W===void 0)&&W.lazy&&delete J.onInput,h.createVNode(GLe,K(K({},J),{},{id:(j=J==null?void 0:J.id)!==null&&j!==void 0?j:a.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return r({focus:P,blur:M,resizableTextArea:c}),h.watchEffect(()=>{let W=QE(u.value);!w.value&&O.value&&(t.value===null||t.value===void 0)&&(W=qH(W,t.maxlength)),f.value=W}),()=>{var W;const{maxlength:j,bordered:H=!0,hidden:Z}=t,{style:J,class:se}=n,oe=k(k(k({},t),n),{prefixCls:d.value,inputType:"text",handleReset:B,direction:g.value,bordered:H,style:b.value?void 0:J,hashId:m.value,disabled:(W=t.disabled)!==null&&W!==void 0?W:y.value});let de=h.createVNode(zLe,K(K({},oe),{},{value:f.value,status:t.status}),{element:z});if(b.value||s.hasFeedback){const ie=[...f.value].length;let ue="";typeof b.value=="object"?ue=b.value.formatter({value:f.value,count:ie,maxlength:j}):ue=`${ie}${O.value?` / ${j}`:""}`,de=h.createVNode("div",{hidden:Z,class:Pe(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:g.value==="rtl",[`${d.value}-textarea-show-count`]:b.value,[`${d.value}-textarea-in-form-item`]:s.isFormItemInput},`${d.value}-textarea-show-count`,se,m.value),style:J,"data-count":typeof ue!="object"?ue:void 0},[de,s.hasFeedback&&h.createVNode("span",{class:`${d.value}-textarea-suffix`},[s.feedbackIcon])])}return v(de)}}});var ULe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function JH(t){for(var e=1;et?h.createVNode(lw,null,null):h.createVNode(ZE,null,null),e4e=h.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:k(k({},sw()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(!1),s=()=>{const{disabled:m}=t;m||(a.value=!a.value,o("update:visible",a.value))};h.watchEffect(()=>{t.visible!==void 0&&(a.value=!!t.visible)});const l=h.shallowRef();i({focus:()=>{var m;(m=l.value)===null||m===void 0||m.focus()},blur:()=>{var m;(m=l.value)===null||m===void 0||m.blur()}});const f=m=>{const{action:y,iconRender:b=n.iconRender||JLe}=t,O=KLe[y]||"",w=b(a.value),S={[O]:s,class:`${m}-icon`,key:"passwordIcon",onMousedown:x=>{x.preventDefault()},onMouseup:x=>{x.preventDefault()}};return Gn(po(w)?w:h.createVNode("span",null,[w]),S)},{prefixCls:d,getPrefixCls:p}=Qt("input-password",t),g=h.computed(()=>p("input",t.inputPrefixCls)),v=()=>{const{size:m,visibilityToggle:y}=t,b=qLe(t,["size","visibilityToggle"]),O=y&&f(d.value),w=Pe(d.value,r.class,{[`${d.value}-${m}`]:!!m}),S=k(k(k({},Er(b,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:w,prefixCls:g.value,suffix:O});return m&&(S.size=m),h.createVNode(jn,K({ref:l},S),n)};return()=>v()}});jn.Group=kLe,jn.Search=LLe,jn.TextArea=jLe,jn.Password=e4e,jn.install=function(t){return t.component(jn.name,jn),t.component(jn.Group.name,jn.Group),t.component(jn.Search.name,jn.Search),t.component(jn.TextArea.name,jn.TextArea),t.component(jn.Password.name,jn.Password),t};function uw(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:ne.shape({x:Number,y:Number}).loose,title:ne.any,footer:ne.any,transitionName:String,maskTransitionName:String,animation:ne.any,maskAnimation:ne.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:ne.any,maskProps:ne.any,wrapProps:ne.any,getContainer:ne.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:ne.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function tG(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}let nG=-1;function t4e(){return nG+=1,nG}function rG(t,e){let n=t[`page${e?"Y":"X"}Offset`];const r=`scroll${e?"Top":"Left"}`;if(typeof n!="number"){const i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function n4e(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=rG(i),n.top+=rG(i,!0),n}const iG={width:0,height:0,overflow:"hidden",outline:"none"},r4e=h.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:k(k({},uw()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(t,e){let{expose:n,slots:r,attrs:i}=e;const o=h.ref(),a=h.ref(),s=h.ref();n({focus:()=>{var d;(d=o.value)===null||d===void 0||d.focus()},changeActive:d=>{const{activeElement:p}=document;d&&p===a.value?o.value.focus():!d&&p===o.value&&a.value.focus()}});const l=h.ref(),u=h.computed(()=>{const{width:d,height:p}=t,g={};return d!==void 0&&(g.width=typeof d=="number"?`${d}px`:d),p!==void 0&&(g.height=typeof p=="number"?`${p}px`:p),l.value&&(g.transformOrigin=l.value),g}),c=()=>{h.nextTick(()=>{if(s.value){const d=n4e(s.value);l.value=t.mousePosition?`${t.mousePosition.x-d.left}px ${t.mousePosition.y-d.top}px`:""}})},f=d=>{t.onVisibleChanged(d)};return()=>{var d,p,g,v;const{prefixCls:m,footer:y=(d=r.footer)===null||d===void 0?void 0:d.call(r),title:b=(p=r.title)===null||p===void 0?void 0:p.call(r),ariaId:O,closable:w,closeIcon:S=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r),onClose:x,bodyStyle:T,bodyProps:$,onMousedown:A,onMouseup:P,visible:M,modalRender:I=r.modalRender,destroyOnClose:R,motionName:L}=t;let D;y&&(D=h.createVNode("div",{class:`${m}-footer`},[y]));let B;b&&(B=h.createVNode("div",{class:`${m}-header`},[h.createVNode("div",{class:`${m}-title`,id:O},[b])]));let F;w&&(F=h.createVNode("button",{type:"button",onClick:x,"aria-label":"Close",class:`${m}-close`},[S||h.createVNode("span",{class:`${m}-close-x`},null)]));const z=h.createVNode("div",{class:`${m}-content`},[F,B,h.createVNode("div",K({class:`${m}-body`,style:T},$),[(v=r.default)===null||v===void 0?void 0:v.call(r)]),D]),W=Zm(L);return h.createVNode(h.Transition,K(K({},W),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[M||!R?h.withDirectives(h.createVNode("div",K(K({},i),{},{ref:s,key:"dialog-element",role:"document",style:[u.value,i.style],class:[m,i.class],onMousedown:A,onMouseup:P}),[h.createVNode("div",{tabindex:0,ref:o,style:iG,"aria-hidden":"true"},null),I?I({originVNode:z}):z,h.createVNode("div",{tabindex:0,ref:a,style:iG,"aria-hidden":"true"},null)]),[[h.vShow,M]]):null]})}}}),i4e=h.defineComponent({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(t,e){return()=>{const{prefixCls:n,visible:r,maskProps:i,motionName:o}=t,a=Zm(o);return h.createVNode(h.Transition,a,{default:()=>[h.withDirectives(h.createVNode("div",K({class:`${n}-mask`},i),null),[[h.vShow,r]])]})}}}),oG=h.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ar(k(k({},uw()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(t.visible),l=h.shallowRef(`vcDialogTitle${t4e()}`),u=y=>{var b,O;if(y)Ru(o.value,document.activeElement)||(i.value=document.activeElement,(b=a.value)===null||b===void 0||b.focus());else{const w=s.value;if(s.value=!1,t.mask&&i.value&&t.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch{}i.value=null}w&&((O=t.afterClose)===null||O===void 0||O.call(t))}},c=y=>{var b;(b=t.onClose)===null||b===void 0||b.call(t,y)},f=h.shallowRef(!1),d=h.shallowRef(),p=()=>{clearTimeout(d.value),f.value=!0},g=()=>{d.value=setTimeout(()=>{f.value=!1})},v=y=>{if(!t.maskClosable)return null;f.value?f.value=!1:o.value===y.target&&c(y)},m=y=>{if(t.keyboard&&y.keyCode===Se.ESC){y.stopPropagation(),c(y);return}t.visible&&y.keyCode===Se.TAB&&a.value.changeActive(!y.shiftKey)};return h.watch(()=>t.visible,()=>{t.visible&&(s.value=!0)},{flush:"post"}),h.onBeforeUnmount(()=>{var y;clearTimeout(d.value),(y=t.scrollLocker)===null||y===void 0||y.unLock()}),h.watchEffect(()=>{var y,b;(y=t.scrollLocker)===null||y===void 0||y.unLock(),s.value&&((b=t.scrollLocker)===null||b===void 0||b.lock())}),()=>{const{prefixCls:y,mask:b,visible:O,maskTransitionName:w,maskAnimation:S,zIndex:x,wrapClassName:T,rootClassName:$,wrapStyle:A,closable:P,maskProps:M,maskStyle:I,transitionName:R,animation:L,wrapProps:D,title:B=r.title}=t,{style:F,class:z}=n;return h.createVNode("div",K({class:[`${y}-root`,$]},yO(t,{data:!0})),[h.createVNode(i4e,{prefixCls:y,visible:b&&O,motionName:tG(y,w,S),style:k({zIndex:x},I),maskProps:M},null),h.createVNode("div",K({tabIndex:-1,onKeydown:m,class:Pe(`${y}-wrap`,T),ref:o,onClick:v,role:"dialog","aria-labelledby":B?l.value:null,style:k(k({zIndex:x},A),{display:s.value?null:"none"})},D),[h.createVNode(r4e,K(K({},Er(t,["scrollLocker"])),{},{style:F,class:z,onMousedown:p,onMouseup:g,ref:a,closable:P,ariaId:l.value,prefixCls:y,visible:O,onClose:c,onVisibleChanged:u,motionName:tG(y,R,L)}),r)])])}}}),o4e=uw(),aG=h.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ar(o4e,{visible:!1}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.visible);return LA({},{inTriggerContext:!1}),h.watch(()=>t.visible,()=>{t.visible&&(i.value=!0)},{flush:"post"}),()=>{const{visible:o,getContainer:a,forceRender:s,destroyOnClose:l=!1,afterClose:u}=t;let c=k(k(k({},t),n),{ref:"_component",key:"dialog"});return a===!1?h.createVNode(oG,K(K({},c),{},{getOpenCount:()=>2}),r):!s&&l&&!i.value?null:h.createVNode(M7,{autoLock:!0,visible:o,forceRender:s,getContainer:a},{default:f=>(c=k(k(k({},c),f),{afterClose:()=>{u==null||u(),i.value=!1}}),h.createVNode(oG,c,r))})}}});function a4e(t){const e=h.ref(null),n=h.reactive(k({},t)),r=h.ref([]),i=o=>{e.value===null&&(r.value=[],e.value=Dt(()=>{let a;r.value.forEach(s=>{a=k(k({},a),s)}),k(n,a),e.value=null})),r.value.push(o)};return h.onMounted(()=>{e.value&&Dt.cancel(e.value)}),[n,i]}function sG(t,e,n,r){const i=e+n,o=(n-r)/2;if(n>r){if(e>0)return{[t]:o};if(e<0&&ir)return{[t]:e<0?o:-o};return{}}function s4e(t,e,n,r){const{width:i,height:o}=tEe();let a=null;return t<=i&&e<=o?a={x:0,y:0}:(t>i||e>o)&&(a=k(k({},sG("x",n,t,i)),sG("y",r,e,o))),a}var l4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{h.provide(lG,t)},inject:()=>h.inject(lG,{isPreviewGroup:h.shallowRef(!1),previewUrls:h.computed(()=>new Map),setPreviewUrls:()=>{},current:h.ref(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},u4e=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),uG=h.defineComponent({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:u4e(),setup(t,e){let{slots:n}=e;const r=h.computed(()=>{const S={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof t.preview=="object"?dG(t.preview,S):S}),i=h.reactive(new Map),o=h.ref(),a=h.computed(()=>r.value.visible),s=h.computed(()=>r.value.getContainer),l=(S,x)=>{var T,$;($=(T=r.value).onVisibleChange)===null||$===void 0||$.call(T,S,x)},[u,c]=Ap(!!a.value,{value:a,onChange:l}),f=h.ref(null),d=h.computed(()=>a.value!==void 0),p=h.computed(()=>Array.from(i.keys())),g=h.computed(()=>p.value[r.value.current]),v=h.computed(()=>new Map(Array.from(i).filter(S=>{let[,{canPreview:x}]=S;return!!x}).map(S=>{let[x,{url:T}]=S;return[x,T]}))),m=function(S,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(S,{url:x,canPreview:T})},y=S=>{o.value=S},b=S=>{f.value=S},O=function(S,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const $=()=>{i.delete(S)};return i.set(S,{url:x,canPreview:T}),$},w=S=>{S==null||S.stopPropagation(),c(!1),b(null)};return h.watch(g,S=>{y(S)},{immediate:!0,flush:"post"}),h.watchEffect(()=>{u.value&&d.value&&y(g.value)},{flush:"post"}),XE.provide({isPreviewGroup:h.shallowRef(!0),previewUrls:v,setPreviewUrls:m,current:o,setCurrent:y,setShowPreview:c,setMousePosition:b,registerImage:O}),()=>{const S=l4e(r.value,[]);return h.createVNode(h.Fragment,null,[n.default&&n.default(),h.createVNode(cG,K(K({},S),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:t.previewPrefixCls,onClose:w,mousePosition:f.value,src:v.value.get(o.value),icons:t.icons,getContainer:s.value}),null)])}}}),Bf={x:0,y:0},c4e=k(k({},uw()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),cG=h.defineComponent({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:c4e,emits:["close","afterClose"],setup(t,e){let{emit:n,attrs:r}=e;const{rotateLeft:i,rotateRight:o,zoomIn:a,zoomOut:s,close:l,left:u,right:c,flipX:f,flipY:d}=h.reactive(t.icons),p=h.shallowRef(1),g=h.shallowRef(0),v=h.reactive({x:1,y:1}),[m,y]=a4e(Bf),b=()=>n("close"),O=h.shallowRef(),w=h.reactive({originX:0,originY:0,deltaX:0,deltaY:0}),S=h.shallowRef(!1),x=XE.inject(),{previewUrls:T,current:$,isPreviewGroup:A,setCurrent:P}=x,M=h.computed(()=>T.value.size),I=h.computed(()=>Array.from(T.value.keys())),R=h.computed(()=>I.value.indexOf($.value)),L=h.computed(()=>A.value?T.value.get($.value):t.src),D=h.computed(()=>A.value&&M.value>1),B=h.shallowRef({wheelDirection:0}),F=()=>{p.value=1,g.value=0,v.x=1,v.y=1,y(Bf),n("afterClose")},z=Me=>{Me?p.value+=.5:p.value++,y(Bf)},W=Me=>{p.value>1&&(Me?p.value-=.5:p.value--),y(Bf)},j=()=>{g.value+=90},H=()=>{g.value-=90},Z=()=>{v.x=-v.x},J=()=>{v.y=-v.y},se=Me=>{Me.preventDefault(),Me.stopPropagation(),R.value>0&&P(I.value[R.value-1])},oe=Me=>{Me.preventDefault(),Me.stopPropagation(),R.valuez(),type:"zoomIn"},{icon:s,onClick:()=>W(),type:"zoomOut",disabled:h.computed(()=>p.value===1)},{icon:o,onClick:j,type:"rotateRight"},{icon:i,onClick:H,type:"rotateLeft"},{icon:f,onClick:Z,type:"flipX"},{icon:d,onClick:J,type:"flipY"}],X=()=>{if(t.visible&&S.value){const Me=O.value.offsetWidth*p.value,$e=O.value.offsetHeight*p.value,{left:_e,top:De}=I7(O.value),Fe=g.value%180!==0;S.value=!1;const ct=s4e(Fe?$e:Me,Fe?Me:$e,_e,De);ct&&y(k({},ct))}},Y=Me=>{Me.button===0&&(Me.preventDefault(),Me.stopPropagation(),w.deltaX=Me.pageX-m.x,w.deltaY=Me.pageY-m.y,w.originX=m.x,w.originY=m.y,S.value=!0)},le=Me=>{t.visible&&S.value&&y({x:Me.pageX-w.deltaX,y:Me.pageY-w.deltaY})},ve=Me=>{if(!t.visible)return;Me.preventDefault();const $e=Me.deltaY;B.value={wheelDirection:$e}},ye=Me=>{!t.visible||!D.value||(Me.preventDefault(),Me.keyCode===Se.LEFT?R.value>0&&P(I.value[R.value-1]):Me.keyCode===Se.RIGHT&&R.value{t.visible&&(p.value!==1&&(p.value=1),(m.x!==Bf.x||m.y!==Bf.y)&&y(Bf))};let Be=()=>{};return h.onMounted(()=>{h.watch([()=>t.visible,S],()=>{Be();let Me,$e;const _e=zr(window,"mouseup",X,!1),De=zr(window,"mousemove",le,!1),Fe=zr(window,"wheel",ve,{passive:!1}),ct=zr(window,"keydown",ye,!1);try{window.top!==window.self&&(Me=zr(window.top,"mouseup",X,!1),$e=zr(window.top,"mousemove",le,!1))}catch(vt){Sf(!1,`[vc-image] ${vt}`)}Be=()=>{_e.remove(),De.remove(),Fe.remove(),ct.remove(),Me&&Me.remove(),$e&&$e.remove()}},{flush:"post",immediate:!0}),h.watch([B],()=>{const{wheelDirection:Me}=B.value;Me>0?W(!0):Me<0&&z(!0)})}),h.onUnmounted(()=>{Be()}),()=>{const{visible:Me,prefixCls:$e,rootClassName:_e}=t;return h.createVNode(aG,K(K({},r),{},{transitionName:t.transitionName,maskTransitionName:t.maskTransitionName,closable:!1,keyboard:!0,prefixCls:$e,onClose:b,afterClose:F,visible:Me,wrapClassName:de,rootClassName:_e,getContainer:t.getContainer}),{default:()=>[h.createVNode("div",{class:[`${t.prefixCls}-operations-wrapper`,_e]},[h.createVNode("ul",{class:`${t.prefixCls}-operations`},[ee.map(De=>{let{icon:Fe,onClick:ct,type:vt,disabled:zt}=De;return h.createVNode("li",{class:Pe(ie,{[`${t.prefixCls}-operations-operation-disabled`]:zt&&(zt==null?void 0:zt.value)}),onClick:ct,key:vt},[h.cloneVNode(Fe,{class:ue})])})])]),h.createVNode("div",{class:`${t.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[h.createVNode("img",{onMousedown:Y,onDblclick:Ne,ref:O,class:`${t.prefixCls}-img`,src:L.value,alt:t.alt,style:{transform:`scale3d(${v.x*p.value}, ${v.y*p.value}, 1) rotate(${g.value}deg)`}},null)]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-left`,{[`${t.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:se},[u]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-right`,{[`${t.prefixCls}-switch-right-disabled`]:R.value>=M.value-1}),onClick:oe},[c])]})}}});var f4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:ne.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),dG=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{t[r]===void 0&&(n[r]=e[r])}),n};let d4e=0;const hG=h.defineComponent({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:fG(),emits:["click","error"],setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.computed(()=>t.prefixCls),a=h.computed(()=>`${o.value}-preview`),s=h.computed(()=>{const z={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof t.preview=="object"?dG(t.preview,z):z}),l=h.computed(()=>{var z;return(z=s.value.src)!==null&&z!==void 0?z:t.src}),u=h.computed(()=>t.placeholder&&t.placeholder!==!0||r.placeholder),c=h.computed(()=>s.value.visible),f=h.computed(()=>s.value.getContainer),d=h.computed(()=>c.value!==void 0),p=(z,W)=>{var j,H;(H=(j=s.value).onVisibleChange)===null||H===void 0||H.call(j,z,W)},[g,v]=Ap(!!c.value,{value:c,onChange:p}),m=h.ref(u.value?"loading":"normal");h.watch(()=>t.src,()=>{m.value=u.value?"loading":"normal"});const y=h.ref(null),b=h.computed(()=>m.value==="error"),O=XE.inject(),{isPreviewGroup:w,setCurrent:S,setShowPreview:x,setMousePosition:T,registerImage:$}=O,A=h.ref(d4e++),P=h.computed(()=>t.preview&&!b.value),M=()=>{m.value="normal"},I=z=>{m.value="error",i("error",z)},R=z=>{if(!d.value){const{left:W,top:j}=I7(z.target);w.value?(S(A.value),T({x:W,y:j})):y.value={x:W,y:j}}w.value?x(!0):v(!0),i("click",z)},L=()=>{v(!1),d.value||(y.value=null)},D=h.ref(null);h.watch(()=>D,()=>{m.value==="loading"&&D.value.complete&&(D.value.naturalWidth||D.value.naturalHeight)&&M()});let B=()=>{};h.onMounted(()=>{h.watch([l,P],()=>{if(B(),!w.value)return()=>{};B=$(A.value,l.value,P.value),P.value||B()},{flush:"post",immediate:!0})}),h.onUnmounted(()=>{B()});const F=z=>L1e(z)?z+"px":z;return()=>{const{prefixCls:z,wrapperClassName:W,fallback:j,src:H,placeholder:Z,wrapperStyle:J,rootClassName:se}=t,{width:oe,height:de,crossorigin:ie,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,class:ve,style:ye}=n,Ne=s.value,{icons:Be,maskClassName:Me}=Ne,$e=f4e(Ne,["icons","maskClassName"]),_e=Pe(z,W,se,{[`${z}-error`]:b.value}),De=b.value&&j?j:l.value,Fe={crossorigin:ie,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,width:oe,height:de,class:Pe(`${z}-img`,{[`${z}-img-placeholder`]:Z===!0},ve),style:k({height:F(de)},ye)};return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:_e,onClick:P.value?R:ct=>{i("click",ct)},style:k({width:F(oe),height:F(de)},J)},[h.createVNode("img",K(K(K({},Fe),b.value&&j?{src:j}:{onLoad:M,onError:I,src:H}),{},{ref:D}),null),m.value==="loading"&&h.createVNode("div",{"aria-hidden":"true",class:`${z}-placeholder`},[Z||r.placeholder&&r.placeholder()]),r.previewMask&&P.value&&h.createVNode("div",{class:[`${z}-mask`,Me]},[r.previewMask()])]),!w.value&&P.value&&h.createVNode(cG,K(K({},$e),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:a.value,onClose:L,mousePosition:y.value,src:De,alt:ee,getContainer:f.value,icons:Be,rootClassName:se}),null)])}}});hG.PreviewGroup=uG;const h4e=hG;var p4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function pG(t){for(var e=1;e{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${t.antCls}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:k(k({},bG("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:k(k({},bG("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:mQ(t)}]},x4e=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}-wrap`]:{zIndex:t.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax})`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${t.marginXS} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:k(k({},bn(t)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${t.margin*2}px)`,margin:"0 auto",paddingBottom:t.paddingLG,[`${e}-title`]:{margin:0,color:t.modalHeadingColor,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:t.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadowSecondary,pointerEvents:"auto",padding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`},[`${e}-close`]:k({position:"absolute",top:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,insetInlineEnd:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,zIndex:t.zIndexPopupBase+10,padding:0,color:t.modalCloseColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalConfirmIconSize,height:t.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,"&-x":{display:"block",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:`${t.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:t.modalIconHoverColor,backgroundColor:t.wireframe?"transparent":t.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:t.wireframe?"transparent":t.colorFillContentHover}},iO(t)),[`${e}-header`]:{color:t.colorText,background:t.modalHeaderBg,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,marginBottom:t.marginXS},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word"},[`${e}-footer`]:{textAlign:"end",background:t.modalFooterBg,marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content, ${e}-body, ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},C4e=t=>{const{componentCls:e}=t,n=`${e}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:k({},rO()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:t.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${t.modalConfirmIconSize+t.marginSM}px)`}},[`${n}-content`]:{color:t.colorText,fontSize:t.fontSize},[`> ${t.iconCls}`]:{flex:"none",marginInlineEnd:t.marginSM,fontSize:t.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${n}-error ${n}-body > ${t.iconCls}`]:{color:t.colorError},[`${n}-warning ${n}-body > ${t.iconCls}, ${n}-confirm ${n}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${n}-info ${n}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${n}-success ${n}-body > ${t.iconCls}`]:{color:t.colorSuccess},[`${e}-zoom-leave ${e}-btns`]:{pointerEvents:"none"}}},T4e=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},P4e=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-confirm`;return{[e]:{[`${e}-content`]:{padding:0},[`${e}-header`]:{padding:t.modalHeaderPadding,borderBottom:`${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,marginBottom:0},[`${e}-body`]:{padding:t.modalBodyPadding},[`${e}-footer`]:{padding:`${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,borderTop:`${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${t.padding*2}px ${t.padding*2}px ${t.paddingLG}px`},[`${r}-body`]:{[`> ${t.iconCls}`]:{marginInlineEnd:t.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.margin}}},[`${r}-btns`]:{marginTop:t.marginLG}}}},$4e=Fn("Modal",t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5,i=Xt(t,{modalBodyPadding:t.paddingLG,modalHeaderBg:t.colorBgElevated,modalHeaderPadding:`${e}px ${t.paddingLG}px`,modalHeaderBorderWidth:t.lineWidth,modalHeaderBorderStyle:t.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:t.colorSplit,modalHeaderCloseSize:r*n+e*2,modalContentBg:t.colorBgElevated,modalHeadingColor:t.colorTextHeading,modalCloseColor:t.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterPaddingVertical:t.paddingXS,modalFooterPaddingHorizontal:t.padding,modalFooterBorderWidth:t.lineWidth,modalConfirmTitleFontSize:t.fontSizeLG,modalIconHoverColor:t.colorIconHover,modalConfirmIconSize:t.fontSize*t.lineHeight,modalCloseBtnSize:t.controlHeightLG*.55});return[x4e(i),C4e(i),T4e(i),_G(i),t.wireframe&&P4e(i),MO(i,"zoom")]}),eM=t=>({position:t||"absolute",inset:0}),A4e=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new yn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:k(k({},wp),{padding:`0 ${r}px`,[e]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},E4e=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:o}=t,a=new yn(n).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${e}-operations`]:k(k({},bn(t)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:t.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{color:i,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:t.previewOperationSize}})}},M4e=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=t,s=new yn(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:-t.imagePreviewSwitchSize/2,color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:t.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:t.marginSM},[`${i}-switch-right`]:{insetInlineEnd:t.marginSM}}},I4e=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:i}=t;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:k(k({},eM()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${e} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":k(k({},eM()),{transition:`transform ${r} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:t.zIndexPopup+1,width:"100%"},"&":[E4e(t),M4e(t)]}]},D4e=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:k({},A4e(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:k({},eM())}}},R4e=t=>{const{previewCls:e}=t;return{[`${e}-root`]:MO(t,"zoom"),"&":mQ(t,!0)}},OG=Fn("Image",t=>{const e=`${t.componentCls}-preview`,n=Xt(t,{previewCls:e,modalMaskBg:new yn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[D4e(n),I4e(n),_G(Xt(n,{componentCls:e})),R4e(n)]},t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new yn(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new yn(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5})),wG={rotateLeft:h.createVNode(YE,null,null),rotateRight:h.createVNode(qE,null,null),zoomIn:h.createVNode(KE,null,null),zoomOut:h.createVNode(JE,null,null),close:h.createVNode(Il,null,null),left:h.createVNode(CE,null,null),right:h.createVNode(FO,null,null),flipX:h.createVNode(cw,null,null),flipY:h.createVNode(cw,{rotate:90},null)},k4e=()=>({previewPrefixCls:String,preview:Go()}),N4e=h.defineComponent({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:k4e(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,rootPrefixCls:o}=Qt("image",t),a=h.computed(()=>`${i.value}-preview`),[s,l]=OG(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({},f),{rootClassName:l.value,transitionName:As(o.value,"zoom",f.transitionName),maskTransitionName:As(o.value,"fade",f.maskTransitionName)})});return()=>s(h.createVNode(uG,K(K({},k(k({},n),t)),{},{preview:u.value,icons:wG,previewPrefixCls:a.value}),r))}}),Fu=h.defineComponent({name:"AImage",inheritAttrs:!1,props:fG(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,rootPrefixCls:o,configProvider:a}=Qt("image",t),[s,l]=OG(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({icons:wG},f),{transitionName:As(o.value,"zoom",f.transitionName),maskTransitionName:As(o.value,"fade",f.maskTransitionName)})});return()=>{var c,f;const d=((f=(c=a.locale)===null||c===void 0?void 0:c.value)===null||f===void 0?void 0:f.Image)||$l.Image,p=()=>h.createVNode("div",{class:`${i.value}-mask-info`},[h.createVNode(lw,null,null),d==null?void 0:d.preview]),{previewMask:g=n.previewMask||p}=t;return s(h.createVNode(h4e,K(K({},k(k(k({},r),t),{prefixCls:i.value})),{},{preview:u.value,rootClassName:Pe(t.rootClassName,l.value)}),k(k({},n),{previewMask:typeof g=="function"?g:null})))}}});Fu.PreviewGroup=N4e,Fu.install=function(t){return t.component(Fu.name,Fu),t.component(Fu.PreviewGroup.name,Fu.PreviewGroup),t};var L4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function SG(t){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(nM()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(tNumber.MAX_SAFE_INTEGER)return new Vf(Number.MAX_SAFE_INTEGER);if(r0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":iM(this.number):this.origin}}class Fp{constructor(e){if(this.origin="",xG(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}let n=e;if(rM(n)&&(n=Number(n)),n=typeof n=="string"?n:iM(n),oM(n)){const r=a0(n);this.negative=r.negative;const i=r.trimStr.split(".");this.integer=BigInt(i[0]);const o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(n)}negate(){const e=new Fp(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new Fp(e);const n=new Fp(e);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(r),o=n.alignDecimal(r),a=(i+o).toString(),{negativeStr:s,trimStr:l}=a0(a),u=`${s}${l.padStart(r+1,"0")}`;return new Fp(`${u.slice(0,-r)}.${u.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(e==null?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":a0(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Ds(t){return nM()?new Fp(t):new Vf(t)}function aM(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";const{negativeStr:i,integerStr:o,decimalStr:a}=a0(t),s=`${e}${a}`,l=`${i}${o}`;if(n>=0){const u=Number(a[n]);if(u>=5&&!r){const c=Ds(t).add(`${i}0.${"0".repeat(n)}${10-u}`);return aM(c.toString(),e,n,r)}return n===0?l:`${l}${e}${a.padEnd(n,"0").slice(0,n)}`}return s===".0"?l:`${l}${s}`}const V4e=200,z4e=600,F4e=h.defineComponent({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ut()},slots:Object,setup(t,e){let{slots:n,emit:r}=e;const i=h.ref(),o=(s,l)=>{s.preventDefault(),r("step",l);function u(){r("step",l),i.value=setTimeout(u,V4e)}i.value=setTimeout(u,z4e)},a=()=>{clearTimeout(i.value)};return h.onBeforeUnmount(()=>{a()}),()=>{if(HA())return null;const{prefixCls:s,upDisabled:l,downDisabled:u}=t,c=`${s}-handler`,f=Pe(c,`${c}-up`,{[`${c}-up-disabled`]:l}),d=Pe(c,`${c}-down`,{[`${c}-down-disabled`]:u}),p={unselectable:"on",role:"button",onMouseup:a,onMouseleave:a},{upNode:g,downNode:v}=n;return h.createVNode("div",{class:`${c}-wrap`},[h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!0)},"aria-label":"Increase Value","aria-disabled":l,class:f}),[(g==null?void 0:g())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-up-inner`},null)]),h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:d}),[(v==null?void 0:v())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-down-inner`},null)])])}}});function W4e(t,e){const n=h.ref(null);function r(){try{const{selectionStart:o,selectionEnd:a,value:s}=t.value,l=s.substring(0,o),u=s.substring(a);n.value={start:o,end:a,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(t.value&&n.value&&e.value)try{const{value:o}=t.value,{beforeTxt:a,afterTxt:s,start:l}=n.value;let u=o.length;if(o.endsWith(s))u=o.length-n.value.afterTxt.length;else if(o.startsWith(a))u=a.length;else{const c=a[l-1],f=o.indexOf(c,l-1);f!==-1&&(u=f+1)}t.value.setSelectionRange(u,u)}catch(o){Sf(!1,`Something warning of cursor restore. Please fire issue about this: ${o.message}`)}}return[r,i]}const Q4e=()=>{const t=h.shallowRef(0),e=()=>{Dt.cancel(t.value)};return h.onBeforeUnmount(()=>{e()}),n=>{e(),t.value=Dt(()=>{n()})}};var H4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it||e.isEmpty()?e.toString():e.toNumber(),TG=t=>{const e=Ds(t);return e.isInvalidate()?null:e},PG=()=>({stringMode:lt(),defaultValue:kn([String,Number]),value:kn([String,Number]),prefixCls:$n(),min:kn([String,Number]),max:kn([String,Number]),step:kn([String,Number],1),tabindex:Number,controls:lt(!0),readonly:lt(),disabled:lt(),autofocus:lt(),keyboard:lt(!0),parser:ut(),formatter:ut(),precision:Number,decimalSeparator:String,onInput:ut(),onChange:ut(),onPressEnter:ut(),onStep:ut(),onBlur:ut(),onFocus:ut()}),G4e=h.defineComponent({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:k(k({},PG()),{lazy:Boolean}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;const a=h.shallowRef(),s=h.shallowRef(!1),l=h.shallowRef(!1),u=h.shallowRef(!1),c=h.shallowRef(Ds(t.value));function f(H){t.value===void 0&&(c.value=H)}const d=(H,Z)=>{if(!Z)return t.precision>=0?t.precision:Math.max(s0(H),s0(t.step))},p=H=>{const Z=String(H);if(t.parser)return t.parser(Z);let J=Z;return t.decimalSeparator&&(J=J.replace(t.decimalSeparator,".")),J.replace(/[^\w.-]+/g,"")},g=h.shallowRef(""),v=(H,Z)=>{if(t.formatter)return t.formatter(H,{userTyping:Z,input:String(g.value)});let J=typeof H=="number"?iM(H):H;if(!Z){const se=d(J,Z);if(oM(J)&&(t.decimalSeparator||se>=0)){const oe=t.decimalSeparator||".";J=aM(J,oe,se)}}return J},m=(()=>{const H=t.value;return c.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:v(c.value.toString(),!1)})();g.value=m;function y(H,Z){g.value=v(H.isInvalidate()?H.toString(!1):H.toString(!Z),Z)}const b=h.computed(()=>TG(t.max)),O=h.computed(()=>TG(t.min)),w=h.computed(()=>!b.value||!c.value||c.value.isInvalidate()?!1:b.value.lessEquals(c.value)),S=h.computed(()=>!O.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(O.value)),[x,T]=W4e(a,s),$=H=>b.value&&!H.lessEquals(b.value)?b.value:O.value&&!O.value.lessEquals(H)?O.value:null,A=H=>!$(H),P=(H,Z)=>{var J;let se=H,oe=A(se)||se.isEmpty();if(!se.isEmpty()&&!Z&&(se=$(se)||se,oe=!0),!t.readonly&&!t.disabled&&oe){const de=se.toString(),ie=d(de,Z);return ie>=0&&(se=Ds(aM(de,".",ie))),se.equals(c.value)||(f(se),(J=t.onChange)===null||J===void 0||J.call(t,se.isEmpty()?null:CG(t.stringMode,se)),t.value===void 0&&y(se,Z)),se}return c.value},M=Q4e(),I=H=>{var Z;if(x(),g.value=H,!u.value){const J=p(H),se=Ds(J);se.isNaN()||P(se,!0)}(Z=t.onInput)===null||Z===void 0||Z.call(t,H),M(()=>{let J=H;t.parser||(J=H.replace(/。/g,".")),J!==H&&I(J)})},R=()=>{u.value=!0},L=()=>{u.value=!1,I(a.value.value)},D=H=>{I(H.target.value)},B=H=>{var Z,J;if(H&&w.value||!H&&S.value)return;l.value=!1;let se=Ds(t.step);H||(se=se.negate());const oe=(c.value||Ds(0)).add(se.toString()),de=P(oe,!1);(Z=t.onStep)===null||Z===void 0||Z.call(t,CG(t.stringMode,de),{offset:t.step,type:H?"up":"down"}),(J=a.value)===null||J===void 0||J.focus()},F=H=>{const Z=Ds(p(g.value));let J=Z;Z.isNaN()?J=c.value:J=P(Z,H),t.value!==void 0?y(c.value,!1):J.isNaN()||y(J,!1)},z=H=>{var Z;const{which:J}=H;l.value=!0,J===Se.ENTER&&(u.value||(l.value=!1),F(!1),(Z=t.onPressEnter)===null||Z===void 0||Z.call(t,H)),t.keyboard!==!1&&!u.value&&[Se.UP,Se.DOWN].includes(J)&&(B(Se.UP===J),H.preventDefault())},W=()=>{l.value=!1},j=H=>{F(!1),s.value=!1,l.value=!1,i("blur",H)};return h.watch(()=>t.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),h.watch(()=>t.value,()=>{const H=Ds(t.value);c.value=H;const Z=Ds(p(g.value));(!H.equals(Z)||!l.value||t.formatter)&&y(H,l.value)},{flush:"post"}),h.watch(g,()=>{t.formatter&&T()},{flush:"post"}),h.watch(()=>t.disabled,H=>{H&&(s.value=!1)}),o({focus:()=>{var H;(H=a.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=a.value)===null||H===void 0||H.blur()}}),()=>{const H=k(k({},n),t),{prefixCls:Z="rc-input-number",min:J,max:se,step:oe=1,defaultValue:de,value:ie,disabled:ue,readonly:ee,keyboard:X,controls:Y=!0,autofocus:le,stringMode:ve,parser:ye,formatter:Ne,precision:Be,decimalSeparator:Me,onChange:$e,onInput:_e,onPressEnter:De,onStep:Fe,lazy:ct,class:vt,style:zt}=H,we=H4e(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:rt,downHandler:Mt}=r,mn=`${Z}-input`,pn={};return ct?pn.onChange=D:pn.onInput=D,h.createVNode("div",{class:Pe(Z,vt,{[`${Z}-focused`]:s.value,[`${Z}-disabled`]:ue,[`${Z}-readonly`]:ee,[`${Z}-not-a-number`]:c.value.isNaN(),[`${Z}-out-of-range`]:!c.value.isInvalidate()&&!A(c.value)}),style:zt,onKeydown:z,onKeyup:W},[Y&&h.createVNode(F4e,{prefixCls:Z,upDisabled:w.value,downDisabled:S.value,onStep:B},{upNode:rt,downNode:Mt}),h.createVNode("div",{class:`${mn}-wrap`},[h.createVNode("input",K(K(K({autofocus:le,autocomplete:"off",role:"spinbutton","aria-valuemin":J,"aria-valuemax":se,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:oe},we),{},{ref:a,class:mn,value:g.value,disabled:ue,readonly:ee,onFocus:pr=>{s.value=!0,i("focus",pr)}},pn),{},{onBlur:j,onCompositionstart:R,onCompositionend:L}),null)])])}}});function sM(t){return t!=null}const j4e=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:f,motionDurationMid:d,colorPrimary:p,controlHeight:g,inputPaddingHorizontal:v,colorBgContainer:m,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:O,controlWidth:w,handleVisible:S}=t;return[{[e]:k(k(k(k({},bn(t)),ZO(t)),UO(t,e)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:O,[`input${e}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${e}-input`]:{height:l-2*n,padding:`0 ${c}px`}},"&:hover":k({},t0(t)),"&-focused":k({},jO(t)),"&-disabled":k(k({},A9(t)),{[`${e}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":k(k(k({},bn(t)),I9(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:O}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}}}),[e]:{"&-input":k(k({width:"100%",height:g-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${d} linear`,appearance:"textfield",color:t.colorText,fontSize:"inherit",verticalAlign:"top"},$9(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:{[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${e}-handler-up-inner, ${e}-handler-down-inner `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${d} linear`,"&:active":{background:t.colorFillAlter},"&:hover":{height:"60%",[` ${e}-handler-up-inner, ${e}-handler-down-inner `]:{color:p}},"&-up-inner, &-down-inner":k(k({},Sp()),{color:f,transition:`all ${d} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"}},[` ${e}-handler-up-disabled, ${e}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${e}-handler-up-disabled:hover &-handler-up-inner, ${e}-handler-down-disabled:hover &-handler-down-inner `]:{color:y}}},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},U4e=t=>{const{componentCls:e,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=t;return{[`${e}-affix-wrapper`]:k(k(k({},ZO(t)),UO(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},t0(t)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},[`input${e}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},Z4e=Fn("InputNumber",t=>{const e=D9(t);return[j4e(e),U4e(e),IO(e)]},t=>({controlWidth:90,handleWidth:t.controlHeightSM-t.lineWidth*2,handleFontSize:t.fontSize/2,handleVisible:"auto"}));var X4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ik(k({},$G),{size:$n(),bordered:lt(!0),placeholder:String,name:String,id:String,type:String,addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,"onUpdate:value":$G.onChange,valueModifiers:Object,status:$n()}),lM=h.defineComponent({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Y4e(),slots:Object,setup(t,e){let{emit:n,expose:r,attrs:i,slots:o}=e;var a;const s=Ms(),l=Za.useInject(),u=h.computed(()=>Jm(l.status,t.status)),{prefixCls:c,size:f,direction:d,disabled:p}=Qt("input-number",t),{compactSize:g,compactItemClassnames:v}=$O(c,d),m=Cs(),y=h.computed(()=>{var R;return(R=p.value)!==null&&R!==void 0?R:m.value}),[b,O]=Z4e(c),w=h.computed(()=>g.value||f.value),S=h.shallowRef((a=t.value)!==null&&a!==void 0?a:t.defaultValue),x=h.shallowRef(!1);h.watch(()=>t.value,()=>{S.value=t.value});const T=h.shallowRef(null),$=()=>{var R;(R=T.value)===null||R===void 0||R.focus()};r({focus:$,blur:()=>{var R;(R=T.value)===null||R===void 0||R.blur()}});const P=R=>{t.value===void 0&&(S.value=R),n("update:value",R),n("change",R),s.onFieldChange()},M=R=>{x.value=!1,n("blur",R),s.onFieldBlur()},I=R=>{x.value=!0,n("focus",R)};return()=>{var R,L,D,B;const{hasFeedback:F,isFormItemInput:z,feedbackIcon:W}=l,j=(R=t.id)!==null&&R!==void 0?R:s.id.value,H=k(k(k({},i),t),{id:j,disabled:y.value}),{class:Z,bordered:J,readonly:se,style:oe,addonBefore:de=(L=o.addonBefore)===null||L===void 0?void 0:L.call(o),addonAfter:ie=(D=o.addonAfter)===null||D===void 0?void 0:D.call(o),prefix:ue=(B=o.prefix)===null||B===void 0?void 0:B.call(o),valueModifiers:ee={}}=H,X=X4e(H,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Y=c.value,le=Pe({[`${Y}-lg`]:w.value==="large",[`${Y}-sm`]:w.value==="small",[`${Y}-rtl`]:d.value==="rtl",[`${Y}-readonly`]:se,[`${Y}-borderless`]:!J,[`${Y}-in-form-item`]:z},Dl(Y,u.value),Z,v.value,O.value);let ve=h.createVNode(G4e,K(K({},Er(X,["size","defaultValue"])),{},{ref:T,lazy:!!ee.lazy,value:S.value,class:le,prefixCls:Y,readonly:se,onChange:P,onBlur:M,onFocus:I}),{upHandler:o.upIcon?()=>h.createVNode("span",{class:`${Y}-handler-up-inner`},[o.upIcon()]):()=>h.createVNode(tM,{class:`${Y}-handler-up-inner`},null),downHandler:o.downIcon?()=>h.createVNode("span",{class:`${Y}-handler-down-inner`},[o.downIcon()]):()=>h.createVNode(wO,{class:`${Y}-handler-down-inner`},null)});const ye=sM(de)||sM(ie),Ne=sM(ue);if(Ne||F){const Be=Pe(`${Y}-affix-wrapper`,Dl(`${Y}-affix-wrapper`,u.value,F),{[`${Y}-affix-wrapper-focused`]:x.value,[`${Y}-affix-wrapper-disabled`]:y.value,[`${Y}-affix-wrapper-sm`]:w.value==="small",[`${Y}-affix-wrapper-lg`]:w.value==="large",[`${Y}-affix-wrapper-rtl`]:d.value==="rtl",[`${Y}-affix-wrapper-readonly`]:se,[`${Y}-affix-wrapper-borderless`]:!J,[`${Z}`]:!ye&&Z},O.value);ve=h.createVNode("div",{class:Be,style:oe,onClick:$},[Ne&&h.createVNode("span",{class:`${Y}-prefix`},[ue]),ve,F&&h.createVNode("span",{class:`${Y}-suffix`},[W])])}if(ye){const Be=`${Y}-group`,Me=`${Be}-addon`,$e=de?h.createVNode("div",{class:Me},[de]):null,_e=ie?h.createVNode("div",{class:Me},[ie]):null,De=Pe(`${Y}-wrapper`,Be,{[`${Be}-rtl`]:d.value==="rtl"},O.value),Fe=Pe(`${Y}-group-wrapper`,{[`${Y}-group-wrapper-sm`]:w.value==="small",[`${Y}-group-wrapper-lg`]:w.value==="large",[`${Y}-group-wrapper-rtl`]:d.value==="rtl"},Dl(`${c}-group-wrapper`,u.value,F),Z,O.value);ve=h.createVNode("div",{class:Fe,style:oe},[h.createVNode("div",{class:De},[$e&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[$e]})]}),ve,_e&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[_e]})]})])])}return b(Gn(ve,{style:oe}))}}}),l0=k(lM,{install:t=>(t.component(lM.name,lM),t)});function q4e(t,e,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,u=l===void 0?void 0:l,c,f=!1,d=0;function p(){c&&clearTimeout(c)}function g(m){var y=m||{},b=y.upcomingOnly,O=b===void 0?!1:b;p(),f=!O}function v(){for(var m=arguments.length,y=new Array(m),b=0;bt?s?(d=Date.now(),o||(c=setTimeout(u?x:S,t))):S():o!==!0&&(c=setTimeout(u?x:S,u===void 0?t-w:t))}return v.cancel=g,v}function K4e(t,e,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return q4e(t,e,{debounceMode:o!==!1})}const J4e=new At("antSpinMove",{to:{opacity:1}}),e8e=new At("antRotate",{to:{transform:"rotate(405deg)"}}),t8e=t=>({[`${t.componentCls}`]:k(k({},bn(t)),{position:"absolute",display:"none",color:t.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${t.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${t.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-t.spinDotSize/2},[`${t.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(t.spinDotSize-t.fontSize)/2+2,textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSize/2)-10},"&-sm":{[`${t.componentCls}-dot`]:{margin:-t.spinDotSizeSM/2},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeSM-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeSM/2)-10}},"&-lg":{[`${t.componentCls}-dot`]:{margin:-(t.spinDotSizeLG/2)},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeLG-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeLG/2)-10}}},[`${t.componentCls}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${t.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:t.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(t.spinDotSize-t.marginXXS/2)/2,height:(t.spinDotSize-t.marginXXS/2)/2,backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:J4e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:e8e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeSM,i:{width:(t.spinDotSizeSM-t.marginXXS/2)/2,height:(t.spinDotSizeSM-t.marginXXS/2)/2}},[`&-lg ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeLG,i:{width:(t.spinDotSizeLG-t.marginXXS)/2,height:(t.spinDotSizeLG-t.marginXXS)/2}},[`&${t.componentCls}-show-text ${t.componentCls}-text`]:{display:"block"}})}),n8e=Fn("Spin",t=>{const e=Xt(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:t.controlHeightLG*.35,spinDotSizeLG:t.controlHeight});return[t8e(e)]},{contentHeight:400});var r8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ne.any,delay:Number,indicator:ne.any});let fw=null;function o8e(t,e){return!!t&&!!e&&!isNaN(Number(e))}function a8e(t){const e=t.indicator;fw=typeof e=="function"?e:()=>h.createVNode(e,null,null)}const u0=h.defineComponent({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ar(i8e(),{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,size:o,direction:a}=Qt("spin",t),[s,l]=n8e(i),u=h.shallowRef(t.spinning&&!o8e(t.spinning,t.delay));let c;return h.watch([()=>t.spinning,()=>t.delay],()=>{c==null||c.cancel(),c=K4e(t.delay,()=>{u.value=t.spinning}),c==null||c()},{immediate:!0,flush:"post"}),h.onBeforeUnmount(()=>{c==null||c.cancel()}),()=>{var f,d;const{class:p}=n,g=r8e(n,["class"]),{tip:v=(f=r.tip)===null||f===void 0?void 0:f.call(r)}=t,m=(d=r.default)===null||d===void 0?void 0:d.call(r),y={[l.value]:!0,[i.value]:!0,[`${i.value}-sm`]:o.value==="small",[`${i.value}-lg`]:o.value==="large",[`${i.value}-spinning`]:u.value,[`${i.value}-show-text`]:!!v,[`${i.value}-rtl`]:a.value==="rtl",[p]:!!p};function b(w){const S=`${w}-dot`;let x=L1(r,t,"indicator");return x===null?null:(Array.isArray(x)&&(x=x.length===1?x[0]:x),h.isVNode(x)?h.cloneVNode(x,{class:S}):fw&&h.isVNode(fw())?h.cloneVNode(fw(),{class:S}):h.createVNode("span",{class:`${S} ${w}-dot-spin`},[h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null)]))}const O=h.createVNode("div",K(K({},g),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[b(i.value),v?h.createVNode("div",{class:`${i.value}-text`},[v]):null]);if(m&&xs(m).length){const w={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s(h.createVNode("div",{class:[`${i.value}-nested-loading`,t.wrapperClassName,l.value]},[u.value&&h.createVNode("div",{key:"loading"},[O]),h.createVNode("div",{class:w,key:"container"},[m])]))}return s(O)}}});u0.setDefaultIndicator=a8e,u0.install=function(t){return t.component(u0.name,u0),t};var s8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{uM={x:t.pageX,y:t.pageY},setTimeout(()=>uM=null,100)};Y9()&&zr(document.documentElement,"click",l8e,!0);const u8e=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ne.any,closable:{type:Boolean,default:void 0},closeIcon:ne.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ne.any,okText:ne.any,okType:String,cancelText:ne.any,icon:ne.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Vt(),cancelButtonProps:Vt(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Vt(),maskStyle:Vt(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Vt()}),bo=h.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ar(u8e(),{width:520,confirmLoading:!1,okType:"primary"}),setup(t,e){let{emit:n,slots:r,attrs:i}=e;const[o]=z1("Modal"),{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u}=Qt("modal",t),[c,f]=$4e(a);yi(t.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const d=v=>{n("update:visible",!1),n("update:open",!1),n("cancel",v),n("change",!1)},p=v=>{n("ok",v)},g=()=>{var v,m;const{okText:y=(v=r.okText)===null||v===void 0?void 0:v.call(r),okType:b,cancelText:O=(m=r.cancelText)===null||m===void 0?void 0:m.call(r),confirmLoading:w}=t;return h.createVNode(h.Fragment,null,[h.createVNode(ri,K({onClick:d},t.cancelButtonProps),{default:()=>[O||o.value.cancelText]}),h.createVNode(ri,K(K({},WQ(b)),{},{loading:w,onClick:p},t.okButtonProps),{default:()=>[y||o.value.okText]})])};return()=>{var v,m;const{prefixCls:y,visible:b,open:O,wrapClassName:w,centered:S,getContainer:x,closeIcon:T=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),focusTriggerAfterClose:$=!0}=t,A=s8e(t,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),P=Pe(w,{[`${a.value}-centered`]:!!S,[`${a.value}-wrap-rtl`]:l.value==="rtl"});return c(h.createVNode(aG,K(K(K({},A),i),{},{rootClassName:f.value,class:Pe(f.value,i.class),getContainer:x||(u==null?void 0:u.value),prefixCls:a.value,wrapClassName:P,visible:O??b,onClose:d,focusTriggerAfterClose:$,transitionName:As(s.value,"zoom",t.transitionName),maskTransitionName:As(s.value,"fade",t.maskTransitionName),mousePosition:(m=A.mousePosition)!==null&&m!==void 0?m:uM}),k(k({},r),{footer:r.footer||g,closeIcon:()=>h.createVNode("span",{class:`${a.value}-close-x`},[T||h.createVNode(Il,{class:`${a.value}-close-icon`},null)])})))}}}),c8e=()=>{const t=h.shallowRef(!1);return h.onBeforeUnmount(()=>{t.value=!0}),t},f8e={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Vt(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function AG(t){return!!(t&&t.then)}const EG=h.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:f8e,setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1),i=h.shallowRef(),o=h.shallowRef(!1);let a;const s=c8e();h.onMounted(()=>{t.autofocus&&(a=setTimeout(()=>{var f,d;return(d=(f=Pl(i.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),h.onBeforeUnmount(()=>{clearTimeout(a)});const l=function(){for(var f,d=arguments.length,p=new Array(d),g=0;g{AG(f)&&(o.value=!0,f.then(function(){s.value||(o.value=!1),l(...arguments),r.value=!1},d=>(s.value||(o.value=!1),r.value=!1,Promise.reject(d))))},c=f=>{const{actionFn:d}=t;if(r.value)return;if(r.value=!0,!d){l();return}let p;if(t.emitEvent){if(p=d(f),t.quitOnNullishReturnValue&&!AG(p)){r.value=!1,l(f);return}}else if(d.length)p=d(t.close),r.value=!1;else if(p=d(),!p){l();return}u(p)};return()=>{const{type:f,prefixCls:d,buttonProps:p}=t;return h.createVNode(ri,K(K(K({},WQ(f)),{},{onClick:c,loading:o.value,prefixCls:d},p),{},{ref:i}),n)}}});function Wp(t){return typeof t=="function"?t():t}const MG=h.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(t,e){let{attrs:n}=e;const[r]=z1("Modal");return process.env.NODE_ENV!=="production"&&yi(t.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:i,onCancel:o,onOk:a,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:g,maskStyle:v,okButtonProps:m,cancelButtonProps:y,okCancel:b,width:O=416,mask:w=!0,maskClosable:S=!1,type:x,open:T,title:$,content:A,direction:P,closeIcon:M,modalRender:I,focusTriggerAfterClose:R,rootPrefixCls:L,bodyStyle:D,wrapClassName:B,footer:F}=t;let z=i;if(!i&&i!==null)switch(x){case"info":z=h.createVNode(Df,null,null);break;case"success":z=h.createVNode(Nu,null,null);break;case"error":z=h.createVNode(Xo,null,null);break;default:z=h.createVNode(Lu,null,null)}const W=t.okType||"primary",j=t.prefixCls||"ant-modal",H=`${j}-confirm`,Z=n.style||{},J=b??x==="confirm",se=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",oe=`${j}-confirm`,de=Pe(oe,`${oe}-${t.type}`,{[`${oe}-rtl`]:P==="rtl"},n.class),ie=r.value,ue=J&&h.createVNode(EG,{actionFn:o,close:s,autofocus:se==="cancel",buttonProps:y,prefixCls:`${L}-btn`},{default:()=>[Wp(t.cancelText)||ie.cancelText]});return h.createVNode(bo,{prefixCls:j,class:de,wrapClassName:Pe({[`${oe}-centered`]:!!p},B),onCancel:ee=>s==null?void 0:s({triggerCancel:!0},ee),open:T,title:"",footer:"",transitionName:As(L,"zoom",t.transitionName),maskTransitionName:As(L,"fade",t.maskTransitionName),mask:w,maskClosable:S,maskStyle:v,style:Z,bodyStyle:D,width:O,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:g,closable:u,closeIcon:M,modalRender:I,focusTriggerAfterClose:R},{default:()=>[h.createVNode("div",{class:`${H}-body-wrapper`},[h.createVNode("div",{class:`${H}-body`},[Wp(z),$===void 0?null:h.createVNode("span",{class:`${H}-title`},[Wp($)]),h.createVNode("div",{class:`${H}-content`},[Wp(A)])]),F!==void 0?Wp(F):h.createVNode("div",{class:`${H}-btns`},[ue,h.createVNode(EG,{type:W,actionFn:a,close:s,autofocus:se==="ok",buttonProps:m,prefixCls:`${L}-btn`},{default:()=>[Wp(l)||(J?ie.okText:ie.justOkText)]})])])]})}}}),zf=[],c0=t=>{const e=document.createDocumentFragment();let n=k(k({},Er(t,["parentContext","appContext"])),{close:o,open:!0}),r=null;function i(){r&&(h.render(null,e),r=null);for(var u=arguments.length,c=new Array(u),f=0;fp&&p.triggerCancel);t.onCancel&&d&&t.onCancel(()=>{},...c.slice(1));for(let p=0;p{typeof t.afterClose=="function"&&t.afterClose(),i.apply(this,c)}}),n.visible&&delete n.visible,a(n)}function a(u){typeof u=="function"?n=u(n):n=k(k({},n),u),r&&DAe(r,n,e)}const s=u=>{const c=Fr,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,p=c.iconPrefixCls,g=INe();return h.createVNode(zp,K(K({},c),{},{prefixCls:f}),{default:()=>[h.createVNode(MG,K(K({},u),{},{rootPrefixCls:f,prefixCls:d,iconPrefixCls:p,locale:g,cancelText:u.cancelText||g.cancelText}),null)]})};function l(u){const c=h.createVNode(s,k({},u));return c.appContext=t.parentContext||t.appContext||c.appContext,h.render(c,e),c}return r=l(n),zf.push(o),{destroy:o,update:a}};function IG(t){return k(k({},t),{type:"warning"})}function DG(t){return k(k({},t),{type:"info"})}function RG(t){return k(k({},t),{type:"success"})}function kG(t){return k(k({},t),{type:"error"})}function NG(t){return k(k({},t),{type:"confirm"})}const d8e=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),h8e=h.defineComponent({name:"HookModal",inheritAttrs:!1,props:Ar(d8e(),{config:{width:520,okType:"primary"}}),setup(t,e){let{expose:n}=e;var r;const i=h.computed(()=>t.open),o=h.computed(()=>t.config),{direction:a,getPrefixCls:s}=V1(),l=s("modal"),u=s(),c=()=>{var g,v;t==null||t.afterClose(),(v=(g=o.value).afterClose)===null||v===void 0||v.call(g)},f=function(){t.destroyAction(...arguments)};n({destroy:f});const d=(r=o.value.okCancel)!==null&&r!==void 0?r:o.value.type==="confirm",[p]=z1("Modal",$l.Modal);return()=>h.createVNode(MG,K(K({prefixCls:l,rootPrefixCls:u},o.value),{},{close:f,open:i.value,afterClose:c,okText:o.value.okText||(d?p==null?void 0:p.value.okText:p==null?void 0:p.value.justOkText),direction:o.value.direction||a.value,cancelText:o.value.cancelText||(p==null?void 0:p.value.cancelText)}),null)}});let LG=0;const p8e=h.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(t,e){let{expose:n}=e;const r=h.shallowRef([]);return n({addModal:o=>(r.value.push(o),r.value=r.value.slice(),()=>{r.value=r.value.filter(a=>a!==o)})}),()=>r.value.map(o=>o())}});function g8e(){const t=h.shallowRef(null),e=h.shallowRef([]);h.watch(e,()=>{e.value.length&&([...e.value].forEach(a=>{a()}),e.value=[])},{immediate:!0});const n=o=>function(s){var l;LG+=1;const u=h.shallowRef(!0),c=h.shallowRef(null),f=h.shallowRef(h.unref(s)),d=h.shallowRef({});h.watch(()=>s,O=>{m(k(k({},h.isRef(O)?O.value:O),d.value))});const p=function(){u.value=!1;for(var O=arguments.length,w=new Array(O),S=0;ST&&T.triggerCancel);f.value.onCancel&&x&&f.value.onCancel(()=>{},...w.slice(1))};let g;const v=()=>h.createVNode(h8e,{key:`modal-${LG}`,config:o(f.value),ref:c,open:u.value,destroyAction:p,afterClose:()=>{g==null||g()}},null);g=(l=t.value)===null||l===void 0?void 0:l.addModal(v),g&&zf.push(g);const m=O=>{f.value=k(k({},f.value),O)};return{destroy:()=>{c.value?p():e.value=[...e.value,p]},update:O=>{d.value=O,c.value?m(O):e.value=[...e.value,()=>m(O)]}}},r=h.computed(()=>({info:n(DG),success:n(RG),error:n(kG),warning:n(IG),confirm:n(NG)})),i=Symbol("modalHolderKey");return[r.value,()=>h.createVNode(p8e,{key:i,ref:t},null)]}function BG(t){return c0(IG(t))}bo.useModal=g8e,bo.info=function(e){return c0(DG(e))},bo.success=function(e){return c0(RG(e))},bo.error=function(e){return c0(kG(e))},bo.warning=BG,bo.warn=BG,bo.confirm=function(e){return c0(NG(e))},bo.destroyAll=function(){for(;zf.length;){const e=zf.pop();e&&e()}},bo.install=function(t){return t.component(bo.name,bo),t};const cM=(t,e)=>{let{attrs:n}=e;const{included:r,vertical:i,style:o,class:a}=n;let{length:s,offset:l,reverse:u}=n;s<0&&(u=!u,s=Math.abs(s),l=100-l);const c=i?{[u?"top":"bottom"]:`${l}%`,[u?"bottom":"top"]:"auto",height:`${s}%`}:{[u?"right":"left"]:`${l}%`,[u?"left":"right"]:"auto",width:`${s}%`},f=k(k({},o),c);return r?h.createVNode("div",{class:a,style:f},null):null};cM.inheritAttrs=!1;const v8e=(t,e,n,r,i,o)=>{yi(n?r>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const a=Object.keys(e).map(parseFloat).sort((s,l)=>s-l);if(n&&r)for(let s=i;s<=o;s+=r)a.indexOf(s)===-1&&a.push(s);return a},VG=(t,e)=>{let{attrs:n}=e;const{prefixCls:r,vertical:i,reverse:o,marks:a,dots:s,step:l,included:u,lowerBound:c,upperBound:f,max:d,min:p,dotStyle:g,activeDotStyle:v}=n,m=d-p,y=v8e(i,a,s,l,p,d).map(b=>{const O=`${Math.abs(b-p)/m*100}%`,w=!u&&b===f||u&&b<=f&&b>=c;let S=i?k(k({},g),{[o?"top":"bottom"]:O}):k(k({},g),{[o?"right":"left"]:O});w&&(S=k(k({},S),v));const x=Pe({[`${r}-dot`]:!0,[`${r}-dot-active`]:w,[`${r}-dot-reverse`]:o});return h.createVNode("span",{class:x,style:S,key:b},null)});return h.createVNode("div",{class:`${r}-step`},[y])};VG.inheritAttrs=!1;const zG=(t,e)=>{let{attrs:n,slots:r}=e;const{class:i,vertical:o,reverse:a,marks:s,included:l,upperBound:u,lowerBound:c,max:f,min:d,onClickLabel:p}=n,g=Object.keys(s),v=r.mark,m=f-d,y=g.map(parseFloat).sort((b,O)=>b-O).map(b=>{const O=typeof s[b]=="function"?s[b]():s[b],w=typeof O=="object"&&!po(O);let S=w?O.label:O;if(!S&&S!==0)return null;v&&(S=v({point:b,label:S}));const x=!l&&b===u||l&&b<=u&&b>=c,T=Pe({[`${i}-text`]:!0,[`${i}-text-active`]:x}),$={marginBottom:"-50%",[a?"top":"bottom"]:`${(b-d)/m*100}%`},A={transform:`translateX(${a?"50%":"-50%"})`,msTransform:`translateX(${a?"50%":"-50%"})`,[a?"right":"left"]:`${(b-d)/m*100}%`},P=o?$:A,M=w?k(k({},P),O.style):P,I={[Vr?"onTouchstartPassive":"onTouchstart"]:R=>p(R,b)};return h.createVNode("span",K({class:T,style:M,key:b,onMousedown:R=>p(R,b)},I),[S])});return h.createVNode("div",{class:i},[y])};zG.inheritAttrs=!1;const FG=h.defineComponent({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(t,e){let{attrs:n,emit:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(),s=()=>{document.activeElement===a.value&&(o.value=!0)},l=m=>{o.value=!1,r("blur",m)},u=()=>{o.value=!1},c=()=>{var m;(m=a.value)===null||m===void 0||m.focus()},f=()=>{var m;(m=a.value)===null||m===void 0||m.blur()},d=()=>{o.value=!0,c()},p=m=>{m.preventDefault(),c(),r("mousedown",m)};i({focus:c,blur:f,clickFocus:d,ref:a});let g=null;h.onMounted(()=>{g=zr(document,"mouseup",s)}),h.onBeforeUnmount(()=>{g==null||g.remove()});const v=h.computed(()=>{const{vertical:m,offset:y,reverse:b}=t;return m?{[b?"top":"bottom"]:`${y}%`,[b?"bottom":"top"]:"auto",transform:b?null:"translateY(+50%)"}:{[b?"right":"left"]:`${y}%`,[b?"left":"right"]:"auto",transform:`translateX(${b?"+":"-"}50%)`}});return()=>{const{prefixCls:m,disabled:y,min:b,max:O,value:w,tabindex:S,ariaLabel:x,ariaLabelledBy:T,ariaValueTextFormatter:$,onMouseenter:A,onMouseleave:P}=t,M=Pe(n.class,{[`${m}-handle-click-focused`]:o.value}),I={"aria-valuemin":b,"aria-valuemax":O,"aria-valuenow":w,"aria-disabled":!!y},R=[n.style,v.value];let L=S||0;(y||S===null)&&(L=null);let D;$&&(D=$(w));const B=k(k(k(k({},n),{role:"slider",tabindex:L}),I),{class:M,onBlur:l,onKeydown:u,onMousedown:p,onMouseenter:A,onMouseleave:P,ref:a,style:R});return h.createVNode("div",K(K({},B),{},{"aria-label":x,"aria-labelledby":T,"aria-valuetext":D}),null)}}});function fM(t,e){try{return Object.keys(e).some(n=>t.target===e[n].ref)}catch{return!1}}function WG(t,e){let{min:n,max:r}=e;return tr}function QG(t){return t.touches.length>1||t.type.toLowerCase()==="touchend"&&t.touches.length>0}function HG(t,e){let{marks:n,step:r,min:i,max:o}=e;const a=Object.keys(n).map(parseFloat);if(r!==null){const l=Math.pow(10,GG(r)),u=Math.floor((o*l-i*l)/(r*l)),c=Math.min((t-i)/r,u),f=Math.round(c)*r+i;a.push(f)}const s=a.map(l=>Math.abs(t-l));return a[s.indexOf(Math.min(...s))]}function GG(t){const e=t.toString();let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}function jG(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.clientY:e.pageX)/n}function UG(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.touches[0].clientY:e.touches[0].pageX)/n}function ZG(t,e){const n=e.getBoundingClientRect();return t?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function dM(t,e){let{max:n,min:r}=e;return t<=r?r:t>=n?n:t}function XG(t,e){const{step:n}=e,r=isFinite(HG(t,e))?HG(t,e):0;return n===null?r:parseFloat(r.toFixed(GG(n)))}function Qp(t){t.stopPropagation(),t.preventDefault()}function m8e(t,e,n){const r={increase:(a,s)=>a+s,decrease:(a,s)=>a-s},i=r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)),1),o=Object.keys(n.marks)[i];return n.step?r[t](e,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:e}function YG(t,e,n){const r="increase",i="decrease";let o=r;switch(t.keyCode){case Se.UP:o=e&&n?i:r;break;case Se.RIGHT:o=!e&&n?i:r;break;case Se.DOWN:o=e&&n?r:i;break;case Se.LEFT:o=!e&&n?r:i;break;case Se.END:return(a,s)=>s.max;case Se.HOME:return(a,s)=>s.min;case Se.PAGE_UP:return(a,s)=>a+s.step*2;case Se.PAGE_DOWN:return(a,s)=>a-s.step*2;default:return}return(a,s)=>m8e(o,a,s)}var y8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:i,className:o,style:a}=n,s=y8e(n,["index","directives","className","style"]);if(delete s.dragging,s.value===null)return null;const l=k(k({},s),{class:o,style:a,key:r});return h.createVNode(FG,l,null)},onDown(n,r){let i=r;const{draggableTrack:o,vertical:a}=this.$props,{bounds:s}=this.$data,l=o&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=fM(n,this.handlesRefs);if(this.dragTrack=o&&s.length>=2&&!u&&!l.map((c,f)=>{const d=f?!0:c>=s[f];return f===l.length-1?c<=s[f]:d}).some(c=>!c),this.dragTrack)this.dragOffset=i,this.startBounds=[...s];else{if(!u)this.dragOffset=0;else{const c=ZG(a,n.target);this.dragOffset=i-c,i=c}this.onStart(i)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,i=jG(r,n);this.onDown(n,i),this.addDocumentMouseEvents()},onTouchStart(n){if(QG(n))return;const r=this.vertical,i=UG(r,n);this.onDown(n,i),this.addDocumentTouchEvents(),Qp(n)},onFocus(n){const{vertical:r}=this;if(fM(n,this.handlesRefs)&&!this.dragTrack){const i=ZG(r,n.target);this.dragOffset=0,this.onStart(i),Qp(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=jG(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(QG(n)||!this.sliderRef){this.onEnd();return}const r=UG(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&fM(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:i}=this,o=n.getBoundingClientRect();return r?i?o.bottom:o.top:window.scrollX+(i?o.right:o.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=zr(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=zr(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=zr(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=zr(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,i;(i=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||i===void 0||i.call(r)})},calcValue(n){const{vertical:r,min:i,max:o}=this,a=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-a)*(o-i)+i:a*(o-i)+i},calcValueByPos(n){const i=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(i))},calcOffset(n){const{min:r,max:i}=this,o=(n-r)/(i-r);return Math.max(0,o*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:i,step:o,included:a,disabled:s,vertical:l,reverse:u,min:c,max:f,maximumTrackStyle:d,railStyle:p,dotStyle:g,activeDotStyle:v,id:m}=this,{class:y,style:b}=this.$attrs,{tracks:O,handles:w}=this.renderSlider(),S=Pe(n,y,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:s,[`${n}-vertical`]:l,[`${n}-horizontal`]:!l}),x={vertical:l,marks:r,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,reverse:u,class:`${n}-mark`,onClickLabel:s?Ff:this.onClickMarkLabel},T={[Vr?"onTouchstartPassive":"onTouchstart"]:s?Ff:this.onTouchStart};return h.createVNode("div",K(K({id:m,ref:this.saveSlider,tabindex:"-1",class:S},T),{},{onMousedown:s?Ff:this.onMouseDown,onMouseup:s?Ff:this.onMouseUp,onKeydown:s?Ff:this.onKeyDown,onFocus:s?Ff:this.onFocus,onBlur:s?Ff:this.onBlur,style:b}),[h.createVNode("div",{class:`${n}-rail`,style:k(k({},d),p)},null),O,h.createVNode(VG,{prefixCls:n,vertical:l,reverse:u,marks:r,dots:i,step:o,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,dotStyle:g,activeDotStyle:v},null),w,h.createVNode(zG,x,{mark:this.$slots.mark}),SF(this)])}})}const b8e=h.defineComponent({compatConfig:{MODE:3},name:"Slider",mixins:[gO],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const t=this.defaultValue!==void 0?this.defaultValue:this.min,e=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(e),dragging:!1}},watch:{value:{handler(t){this.setChangeValue(t)},deep:!0},min(){const{sValue:t}=this;this.setChangeValue(t)},max(){const{sValue:t}=this;this.setChangeValue(t)}},methods:{setChangeValue(t){const e=t!==void 0?t:this.sValue,n=this.trimAlignValue(e,this.$props);n!==this.sValue&&(this.setState({sValue:n}),WG(e,this.$props)&&this.$emit("change",n))},onChange(t){const e=!N1(this,"value"),n=t.sValue>this.max?k(k({},t),{sValue:this.max}):t;e&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(t){this.setState({dragging:!0});const{sValue:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t,n!==e&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(t){const{dragging:e}=this;this.removeDocumentEvents(),(e||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(t,e){Qp(t);const{sValue:n}=this,r=this.calcValueByPos(e);r!==n&&this.onChange({sValue:r})},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=YG(t,n,e);if(r){Qp(t);const{sValue:i}=this,o=r(i,this.$props),a=this.trimAlignValue(o);if(a===i)return;this.onChange({sValue:a}),this.$emit("afterChange",a),this.onEnd()}},getLowerBound(){const t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;const n=k(k({},this.$props),e),r=dM(t,n);return XG(r,n)},getTrack(t){let{prefixCls:e,reverse:n,vertical:r,included:i,minimumTrackStyle:o,mergedTrackStyle:a,length:s,offset:l}=t;return h.createVNode(cM,{class:`${e}-track`,vertical:r,included:i,offset:l,reverse:n,length:s,style:k(k({},o),a)},null)},renderSlider(){const{prefixCls:t,vertical:e,included:n,disabled:r,minimumTrackStyle:i,trackStyle:o,handleStyle:a,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:f,max:d,startPoint:p,reverse:g,handle:v,defaultHandle:m}=this,y=v||m,{sValue:b,dragging:O}=this,w=this.calcOffset(b),S=y({class:`${t}-handle`,prefixCls:t,vertical:e,offset:w,value:b,dragging:O,disabled:r,min:f,max:d,reverse:g,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:a[0]||a,ref:$=>this.saveHandle(0,$),onFocus:this.onFocus,onBlur:this.onBlur}),x=p!==void 0?this.calcOffset(p):0,T=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:g,vertical:e,included:n,offset:x,minimumTrackStyle:i,mergedTrackStyle:T,length:w-x}),handles:S}}}}),_8e=qG(b8e),f0=t=>{let{value:e,handle:n,bounds:r,props:i}=t;const{allowCross:o,pushable:a}=i,s=Number(a),l=dM(e,i);let u=l;return!o&&n!=null&&r!==void 0&&(n>0&&l<=r[n-1]+s&&(u=r[n-1]+s),n=r[n+1]-s&&(u=r[n+1]-s)),XG(u,i)},O8e={defaultValue:ne.arrayOf(ne.number),value:ne.arrayOf(ne.number),count:Number,pushable:Z$e(ne.oneOfType([ne.looseBool,ne.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:ne.arrayOf(ne.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},w8e=h.defineComponent({compatConfig:{MODE:3},name:"Range",mixins:[gO],inheritAttrs:!1,props:Ar(O8e,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:t,min:e,max:n}=this,r=Array(...Array(t+1)).map(()=>e),i=N1(this,"defaultValue")?this.defaultValue:r;let{value:o}=this;o===void 0&&(o=i);const a=o.map((l,u)=>f0({value:l,handle:u,props:this.$props}));return{sHandle:null,recent:a[0]===n?0:a.length-1,bounds:a}},watch:{value:{handler(t){const{bounds:e}=this;this.setChangeValue(t||e)},deep:!0},min(){const{value:t}=this;this.setChangeValue(t||this.bounds)},max(){const{value:t}=this;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue(t){const{bounds:e}=this;let n=t.map((r,i)=>f0({value:r,handle:i,bounds:e,props:this.$props}));if(e.length===n.length){if(n.every((r,i)=>r===e[i]))return null}else n=t.map((r,i)=>f0({value:r,handle:i,props:this.$props}));if(this.setState({bounds:n}),t.some(r=>WG(r,this.$props))){const r=t.map(i=>dM(i,this.$props));this.$emit("change",r)}},onChange(t){if(!N1(this,"value"))this.setState(t);else{const i={};["sHandle","recent"].forEach(o=>{t[o]!==void 0&&(i[o]=t[o])}),Object.keys(i).length&&this.setState(i)}const r=k(k({},this.$data),t).bounds;this.$emit("change",r)},positionGetValue(t){const e=this.getValue(),n=this.calcValueByPos(t),r=this.getClosestBound(n),i=this.getBoundNeedMoving(n,r),o=e[i];if(n===o)return null;const a=[...e];return a[i]=n,a},onStart(t){const{bounds:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const i=e[this.prevMovedHandleIndex];if(n===i)return;const o=[...e];o[this.prevMovedHandleIndex]=n,this.onChange({bounds:o})},onEnd(t){const{sHandle:e}=this;this.removeDocumentEvents(),e||(this.dragTrack=!1),(e!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(t,e,n,r){Qp(t);const{$data:i,$props:o}=this,a=o.max||100,s=o.min||0;if(n){let d=o.vertical?-e:e;d=o.reverse?-d:d;const p=a-Math.max(...r),g=s-Math.min(...r),v=Math.min(Math.max(d/(this.getSliderLength()/100),g),p),m=r.map(y=>Math.floor(Math.max(Math.min(y+v,a),s)));i.bounds.map((y,b)=>y===m[b]).some(y=>!y)&&this.onChange({bounds:m});return}const{bounds:l,sHandle:u}=this,c=this.calcValueByPos(e),f=l[u];c!==f&&this.moveTo(c)},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=YG(t,n,e);if(r){Qp(t);const{bounds:i,sHandle:o}=this,a=i[o===null?this.recent:o],s=r(a,this.$props),l=f0({value:s,handle:o,bounds:i,props:this.$props});if(l===a)return;this.moveTo(l,!0)}},getClosestBound(t){const{bounds:e}=this;let n=0;for(let r=1;r=e[r]&&(n=r);return Math.abs(e[n+1]-t)s-l),this.internalPointsCache={marks:t,step:e,points:a}}return this.internalPointsCache.points},moveTo(t,e){const n=[...this.bounds],{sHandle:r,recent:i}=this,o=r===null?i:r;n[o]=t;let a=o;this.$props.pushable!==!1?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort((s,l)=>s-l),a=n.indexOf(t)),this.onChange({recent:a,sHandle:a,bounds:n}),e&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[a].focus()}),this.onEnd())},pushSurroundingHandles(t,e){const n=t[e],{pushable:r}=this,i=Number(r);let o=0;if(t[e+1]-n=r.length||o<0)return!1;const a=e+n,s=r[o],{pushable:l}=this,u=Number(l),c=n*(t[a]-s);return this.pushHandle(t,a,n,u-c)?(t[e]=s,!0):!1},trimAlignValue(t){const{sHandle:e,bounds:n}=this;return f0({value:t,handle:e,bounds:n,props:this.$props})},ensureValueNotConflict(t,e,n){let{allowCross:r,pushable:i}=n;const o=this.$data||{},{bounds:a}=o;if(t=t===void 0?o.sHandle:t,i=Number(i),!r&&t!=null&&a!==void 0){if(t>0&&e<=a[t-1]+i)return a[t-1]+i;if(t=a[t+1]-i)return a[t+1]-i}return e},getTrack(t){let{bounds:e,prefixCls:n,reverse:r,vertical:i,included:o,offsets:a,trackStyle:s}=t;return e.slice(0,-1).map((l,u)=>{const c=u+1,f=Pe({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return h.createVNode(cM,{class:f,vertical:i,reverse:r,included:o,offset:a[c-1],length:a[c]-a[c-1],style:s[u],key:c},null)})},renderSlider(){const{sHandle:t,bounds:e,prefixCls:n,vertical:r,included:i,disabled:o,min:a,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:f,handleStyle:d,tabindex:p,ariaLabelGroupForHandles:g,ariaLabelledByGroupForHandles:v,ariaValueTextFormatterGroupForHandles:m}=this,y=u||c,b=e.map(S=>this.calcOffset(S)),O=`${n}-handle`,w=e.map((S,x)=>{let T=p[x]||0;(o||p[x]===null)&&(T=null);const $=t===x;return y({class:Pe({[O]:!0,[`${O}-${x+1}`]:!0,[`${O}-dragging`]:$}),prefixCls:n,vertical:r,dragging:$,offset:b[x],value:S,index:x,tabindex:T,min:a,max:s,reverse:l,disabled:o,style:d[x],ref:A=>this.saveHandle(x,A),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:g[x],ariaLabelledBy:v[x],ariaValueTextFormatter:m[x]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:l,vertical:r,included:i,offsets:b,trackStyle:f}),handles:w}}}}),S8e=qG(w8e),x8e=h.defineComponent({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:FQ(),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(null),o=h.ref(null);function a(){Dt.cancel(o.value),o.value=null}function s(){o.value=Dt(()=>{var u;(u=i.value)===null||u===void 0||u.forcePopupAlign(),o.value=null})}const l=()=>{a(),t.open&&s()};return h.watch([()=>t.open,()=>t.title],()=>{l()},{flush:"post",immediate:!0}),h.onActivated(()=>{l()}),h.onBeforeUnmount(()=>{a()}),()=>h.createVNode(NO,K(K({ref:i},t),n),r)}}),C8e=t=>{const{componentCls:e,controlSize:n,dotSize:r,marginFull:i,marginPart:o,colorFillContentHover:a}=t;return{[e]:k(k({},bn(t)),{position:"relative",height:n,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${o}px`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.colorFillTertiary,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},[`${e}-track`]:{position:"absolute",backgroundColor:t.colorPrimaryBorder,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},"&:hover":{[`${e}-rail`]:{backgroundColor:t.colorFillSecondary},[`${e}-track`]:{backgroundColor:t.colorPrimaryBorderHover},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.colorPrimary}},[`${e}-handle`]:{position:"absolute",width:t.handleSize,height:t.handleSize,outline:"none",[`${e}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-t.handleLineWidth,insetBlockStart:-t.handleLineWidth,width:t.handleSize+t.handleLineWidth*2,height:t.handleSize+t.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:t.handleSize,height:t.handleSize,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${t.motionDurationMid}, inset-block-start ${t.motionDurationMid}, width ${t.motionDurationMid}, height ${t.motionDurationMid}, box-shadow ${t.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),insetBlockStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),width:t.handleSizeHover+t.handleLineWidthHover*2,height:t.handleSizeHover+t.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,width:t.handleSizeHover,height:t.handleSizeHover,insetInlineStart:(t.handleSize-t.handleSizeHover)/2,insetBlockStart:(t.handleSize-t.handleSizeHover)/2}}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:t.colorBgElevated,border:`${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,"&-active":{borderColor:t.colorPrimaryBorder}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.colorFillSecondary} !important`},[`${e}-track`]:{backgroundColor:`${t.colorTextDisabled} !important`},[` ${e}-dot `]:{backgroundColor:t.colorBgElevated,borderColor:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:t.handleSize,height:t.handleSize,boxShadow:`0 0 0 ${t.handleLineWidth}px ${new yn(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` ${e}-mark-text, ${e}-dot `]:{cursor:"not-allowed !important"}}})}},KG=(t,e)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o}=t,a=e?"paddingBlock":"paddingInline",s=e?"width":"height",l=e?"height":"width",u=e?"insetBlockStart":"insetInlineStart",c=e?"top":"insetInlineStart";return{[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[u]:(r*3-i)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:i,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-o)/2}}},T8e=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:k(k({},KG(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},P8e=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:k(k({},KG(t,!1)),{height:"100%"})}},$8e=Fn("Slider",t=>{const e=Xt(t,{marginPart:(t.controlHeight-t.controlSize)/2,marginFull:t.controlSize/2,marginPartWithMark:t.controlHeightLG-t.controlSize});return[C8e(e),T8e(e),P8e(e)]},t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,i=t.lineWidth+1,o=t.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var JG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);itypeof t=="number"?t.toString():"",E8e=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:kn([Boolean,Object]),reverse:lt(),min:Number,max:Number,step:kn([Object,Number]),marks:Vt(),dots:lt(),value:kn([Array,Number]),defaultValue:kn([Array,Number]),included:lt(),disabled:lt(),vertical:lt(),tipFormatter:kn([Function,Object],()=>A8e),tooltipOpen:lt(),tooltipVisible:lt(),tooltipPlacement:$n(),getTooltipPopupContainer:ut(),autofocus:lt(),handleStyle:kn([Array,Object]),trackStyle:kn([Array,Object]),onChange:ut(),onAfterChange:ut(),onFocus:ut(),onBlur:ut(),"onUpdate:value":ut()}),M8e=h.defineComponent({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:E8e(),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["tooltipVisible","tooltipOpen"]].forEach(T=>{let[$,A]=T;mo(t.tooltipVisible===void 0,"Slider",`\`${$}\` is deprecated, please use \`${A}\` instead.`)});const{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u,configProvider:c}=Qt("slider",t),[f,d]=$8e(a),p=Ms(),g=h.ref(),v=h.ref({}),m=(T,$)=>{v.value[T]=$},y=h.computed(()=>t.tooltipPlacement?t.tooltipPlacement:t.vertical?l.value==="rtl"?"left":"right":"top"),b=()=>{var T;(T=g.value)===null||T===void 0||T.focus()},O=()=>{var T;(T=g.value)===null||T===void 0||T.blur()},w=T=>{i("update:value",T),i("change",T),p.onFieldChange()},S=T=>{i("blur",T)};o({focus:b,blur:O});const x=T=>{var{tooltipPrefixCls:$}=T,A=T.info,{value:P,dragging:M,index:I}=A,R=JG(A,["value","dragging","index"]);const{tipFormatter:L,tooltipOpen:D=t.tooltipVisible,getTooltipPopupContainer:B}=t,F=L?v.value[I]||M:!1,z=D||D===void 0&&F;return h.createVNode(x8e,{prefixCls:$,title:L?L(P):"",open:z,placement:y.value,transitionName:`${s.value}-zoom-down`,key:I,overlayClassName:`${a.value}-tooltip`,getPopupContainer:B||(u==null?void 0:u.value)},{default:()=>[h.createVNode(FG,K(K({},R),{},{value:P,onMouseenter:()=>m(I,!0),onMouseleave:()=>m(I,!1)}),null)]})};return()=>{const{tooltipPrefixCls:T,range:$,id:A=p.id.value}=t,P=JG(t,["tooltipPrefixCls","range","id"]),M=c.getPrefixCls("tooltip",T),I=Pe(n.class,{[`${a.value}-rtl`]:l.value==="rtl"},d.value);l.value==="rtl"&&!P.vertical&&(P.reverse=!P.reverse);let R;return typeof $=="object"&&(R=$.draggableTrack),f($?h.createVNode(S8e,K(K(K({},n),P),{},{step:P.step,draggableTrack:R,class:I,ref:g,handle:L=>x({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:S}),{mark:r.mark}):h.createVNode(_8e,K(K(K({},n),P),{},{id:A,step:P.step,class:I,ref:g,handle:L=>x({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:S}),{mark:r.mark}))}}}),I8e=mp(M8e);var D8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"};function ej(t){for(var e=1;ee=>{const n=h5e.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xa=t=>(t=t.toLowerCase(),e=>hw(e)===t),pw=t=>e=>typeof e===t,{isArray:Hp}=Array,p0=pw("undefined");function p5e(t){return t!==null&&!p0(t)&&t.constructor!==null&&!p0(t.constructor)&&Jo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const yj=Xa("ArrayBuffer");function g5e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&yj(t.buffer),e}const v5e=pw("string"),Jo=pw("function"),bj=pw("number"),gw=t=>t!==null&&typeof t=="object",m5e=t=>t===!0||t===!1,vw=t=>{if(hw(t)!=="object")return!1;const e=PM(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},y5e=Xa("Date"),b5e=Xa("File"),_5e=Xa("Blob"),O5e=Xa("FileList"),w5e=t=>gw(t)&&Jo(t.pipe),S5e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jo(t.append)&&((e=hw(t))==="formdata"||e==="object"&&Jo(t.toString)&&t.toString()==="[object FormData]"))},x5e=Xa("URLSearchParams"),[C5e,T5e,P5e,$5e]=["ReadableStream","Request","Response","Headers"].map(Xa),A5e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function g0(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Hp(t))for(r=0,i=t.length;r0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Oj=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wj=t=>!p0(t)&&t!==Oj;function $M(){const{caseless:t}=wj(this)&&this||{},e={},n=(r,i)=>{const o=t&&_j(e,i)||i;vw(e[o])&&vw(r)?e[o]=$M(e[o],r):vw(r)?e[o]=$M({},r):Hp(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r(g0(e,(i,o)=>{n&&Jo(i)?t[o]=mj(i,n):t[o]=i},{allOwnKeys:r}),t),M5e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),I5e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},D5e=(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!r||r(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=n!==!1&&PM(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},R5e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},k5e=t=>{if(!t)return null;if(Hp(t))return t;let e=t.length;if(!bj(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},N5e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&PM(Uint8Array)),L5e=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},B5e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},V5e=Xa("HTMLFormElement"),z5e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Sj=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),F5e=Xa("RegExp"),xj=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};g0(n,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(r[o]=a||i)}),Object.defineProperties(t,r)},W5e=t=>{xj(t,(e,n)=>{if(Jo(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Jo(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Q5e=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Hp(t)?r(t):r(String(t).split(e)),n},H5e=()=>{},G5e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,AM="abcdefghijklmnopqrstuvwxyz",Cj="0123456789",Tj={DIGIT:Cj,ALPHA:AM,ALPHA_DIGIT:AM+AM.toUpperCase()+Cj},j5e=(t=16,e=Tj.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function U5e(t){return!!(t&&Jo(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Z5e=t=>{const e=new Array(10),n=(r,i)=>{if(gw(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Hp(r)?[]:{};return g0(r,(a,s)=>{const l=n(a,i+1);!p0(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return n(t,0)},X5e=Xa("AsyncFunction"),be={isArray:Hp,isArrayBuffer:yj,isBuffer:p5e,isFormData:S5e,isArrayBufferView:g5e,isString:v5e,isNumber:bj,isBoolean:m5e,isObject:gw,isPlainObject:vw,isReadableStream:C5e,isRequest:T5e,isResponse:P5e,isHeaders:$5e,isUndefined:p0,isDate:y5e,isFile:b5e,isBlob:_5e,isRegExp:F5e,isFunction:Jo,isStream:w5e,isURLSearchParams:x5e,isTypedArray:N5e,isFileList:O5e,forEach:g0,merge:$M,extend:E5e,trim:A5e,stripBOM:M5e,inherits:I5e,toFlatObject:D5e,kindOf:hw,kindOfTest:Xa,endsWith:R5e,toArray:k5e,forEachEntry:L5e,matchAll:B5e,isHTMLForm:V5e,hasOwnProperty:Sj,hasOwnProp:Sj,reduceDescriptors:xj,freezeMethods:W5e,toObjectSet:Q5e,toCamelCase:z5e,noop:H5e,toFiniteNumber:G5e,findKey:_j,global:Oj,isContextDefined:wj,ALPHABET:Tj,generateString:j5e,isSpecCompliantForm:U5e,toJSONObject:Z5e,isAsyncFn:X5e,isThenable:t=>t&&(gw(t)||Jo(t))&&Jo(t.then)&&Jo(t.catch)};function xt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}be.inherits(xt,Error,{toJSON:function(){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:be.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pj=xt.prototype,$j={};["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(t=>{$j[t]={value:t}}),Object.defineProperties(xt,$j),Object.defineProperty(Pj,"isAxiosError",{value:!0}),xt.from=(t,e,n,r,i,o)=>{const a=Object.create(Pj);return be.toFlatObject(t,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),xt.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const Y5e=null;function EM(t){return be.isPlainObject(t)||be.isArray(t)}function Aj(t){return be.endsWith(t,"[]")?t.slice(0,-2):t}function Ej(t,e,n){return t?t.concat(e).map(function(i,o){return i=Aj(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function q5e(t){return be.isArray(t)&&!t.some(EM)}const K5e=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function mw(t,e,n){if(!be.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!be.isUndefined(m[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(e);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(be.isDate(g))return g.toISOString();if(!l&&be.isBlob(g))throw new xt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(g)||be.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,m){let y=g;if(g&&!m&&typeof g=="object"){if(be.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(be.isArray(g)&&q5e(g)||(be.isFileList(g)||be.endsWith(v,"[]"))&&(y=be.toArray(g)))return v=Aj(v),y.forEach(function(O,w){!(be.isUndefined(O)||O===null)&&e.append(a===!0?Ej([v],w,o):a===null?v:v+"[]",u(O))}),!1}return EM(g)?!0:(e.append(Ej(m,v,o),u(g)),!1)}const f=[],d=Object.assign(K5e,{defaultVisitor:c,convertValue:u,isVisitable:EM});function p(g,v){if(!be.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),be.forEach(g,function(y,b){(!(be.isUndefined(y)||y===null)&&i.call(e,y,be.isString(b)?b.trim():b,v,d))===!0&&p(y,v?v.concat(b):[b])}),f.pop()}}if(!be.isObject(t))throw new TypeError("data must be an object");return p(t),e}function Mj(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function MM(t,e){this._pairs=[],t&&mw(t,this,e)}const Ij=MM.prototype;Ij.append=function(e,n){this._pairs.push([e,n])},Ij.toString=function(e){const n=e?function(r){return e.call(this,r,Mj)}:Mj;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function J5e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dj(t,e,n){if(!e)return t;const r=n&&n.encode||J5e,i=n&&n.serialize;let o;if(i?o=i(e,n):o=be.isURLSearchParams(e)?e.toString():new MM(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Rj{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(r){r!==null&&e(r)})}}const kj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e3e={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:MM,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},IM=typeof window<"u"&&typeof document<"u",t3e=(t=>IM&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),n3e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r3e=IM&&window.location.href||"http://localhost",Ya={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IM,hasStandardBrowserEnv:t3e,hasStandardBrowserWebWorkerEnv:n3e,origin:r3e},Symbol.toStringTag,{value:"Module"})),...e3e};function i3e(t,e){return mw(t,new Ya.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ya.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function o3e(t){return be.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function a3e(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=a3e(i[a])),!s)}if(be.isFormData(t)&&be.isFunction(t.entries)){const n={};return be.forEachEntry(t,(r,i)=>{e(o3e(r),i,n,0)}),n}return null}function s3e(t,e,n){if(be.isString(t))try{return(e||JSON.parse)(t),be.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const v0={transitional:kj,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(e);if(o&&be.isHTMLForm(e)&&(e=new FormData(e)),be.isFormData(e))return i?JSON.stringify(Nj(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return i3e(e,this.formSerializer).toString();if((s=be.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return mw(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),s3e(e)):e}],transformResponse:[function(e){const n=this.transitional||v0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?xt.from(s,xt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ya.classes.FormData,Blob:Ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],t=>{v0.headers[t]={}});const l3e=be.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"]),u3e=t=>{const e={};let n,r,i;return t&&t.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&l3e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Lj=Symbol("internals");function m0(t){return t&&String(t).trim().toLowerCase()}function yw(t){return t===!1||t==null?t:be.isArray(t)?t.map(yw):String(t)}function c3e(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const f3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function DM(t,e,n,r,i){if(be.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!be.isString(e)){if(be.isString(r))return e.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(e)}}function d3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function h3e(t,e){const n=be.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}class ji{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(s,l,u){const c=m0(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=yw(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(be.isString(e)&&(e=e.trim())&&!f3e(e))a(u3e(e),n);else if(be.isHeaders(e))for(const[s,l]of e.entries())o(l,s,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=m0(e),e){const r=be.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return c3e(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=m0(e),e){const r=be.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||DM(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(a){if(a=m0(a),a){const s=be.findKey(r,a);s&&(!n||DM(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||DM(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=yw(i),delete n[o];return}const s=e?d3e(o):String(o).trim();s!==o&&delete n[o],n[s]=yw(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Lj]=this[Lj]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=m0(a);r[s]||(h3e(i,a),r[s]=!0)}return be.isArray(e)?e.forEach(o):o(e),this}}ji.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(ji.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),be.freezeMethods(ji);function RM(t,e){const n=this||v0,r=e||n,i=ji.from(r.headers);let o=r.data;return be.forEach(t,function(s){o=s.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Bj(t){return!!(t&&t.__CANCEL__)}function Gp(t,e,n){xt.call(this,t??"canceled",xt.ERR_CANCELED,e,n),this.name="CanceledError"}be.inherits(Gp,xt,{__CANCEL__:!0});function Vj(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new xt("Request failed with status code "+n.status,[xt.ERR_BAD_REQUEST,xt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function p3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function g3e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-ar)return i&&(clearTimeout(i),i=null),n=s,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(s-n)))}}const bw=(t,e,n=3)=>{let r=0;const i=g3e(50,250);return v3e(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null};f[e?"download":"upload"]=!0,t(f)},n)},m3e=Ya.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=be.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),y3e=Ya.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function _3e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function zj(t,e){return t&&!b3e(e)?_3e(t,e):e}const Fj=t=>t instanceof ji?{...t}:t;function Wf(t,e){e=e||{};const n={};function r(u,c,f){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:f},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(Fj(u),Fj(c),!0)};return be.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,d=f(t[c],e[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const Wj=t=>{const e=Wf({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=ji.from(a),e.url=Dj(zj(e.baseURL,e.url),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(n)){if(Ya.hasStandardBrowserEnv||Ya.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Ya.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(e)),r||r!==!1&&m3e(e.url))){const u=i&&o&&y3e.read(o);u&&a.set(i,u)}return e},O3e=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=Wj(t);let o=i.data;const a=ji.from(i.headers).normalize();let{responseType:s}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const p=ji.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};Vj(function(y){n(y),u()},function(y){r(y),u()},v),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new xt("Request aborted",xt.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new xt("Network Error",xt.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const v=i.transitional||kj;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new xt(g,v.clarifyTimeoutError?xt.ETIMEDOUT:xt.ECONNABORTED,i,c)),c=null},o===void 0&&a.setContentType(null),"setRequestHeader"in c&&be.forEach(a.toJSON(),function(g,v){c.setRequestHeader(v,g)}),be.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&s!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",bw(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",bw(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=p=>{c&&(r(!p||p.type?new Gp(null,t,c):p),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=p3e(i.url);if(d&&Ya.protocols.indexOf(d)===-1){r(new xt("Unsupported protocol "+d+":",xt.ERR_BAD_REQUEST,t));return}c.send(o||null)})},w3e=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof xt?u:new Gp(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{i(new xt(`timeout ${e} of ms exceeded`,xt.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},S3e=function*(t,e){let n=t.byteLength;if(!e||n{const o=x3e(t,e,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:u}=await o.next();if(l){s.close(),r();return}let c=u.byteLength;n&&n(a+=c),s.enqueue(new Uint8Array(u))},cancel(s){return r(s),o.return()}},{highWaterMark:2})},Hj=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},_w=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gj=_w&&typeof ReadableStream=="function",kM=_w&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),C3e=Gj&&(()=>{let t=!1;const e=new Request(Ya.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),jj=64*1024,NM=Gj&&!!(()=>{try{return be.isReadableStream(new Response("").body)}catch{}})(),Ow={stream:NM&&(t=>t.body)};_w&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ow[e]&&(Ow[e]=be.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new xt(`Response type '${e}' is not supported`,xt.ERR_NOT_SUPPORT,r)})})})(new Response);const T3e=async t=>{if(t==null)return 0;if(be.isBlob(t))return t.size;if(be.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(be.isArrayBufferView(t))return t.byteLength;if(be.isURLSearchParams(t)&&(t=t+""),be.isString(t))return(await kM(t)).byteLength},P3e=async(t,e)=>{const n=be.toFiniteNumber(t.getContentLength());return n??T3e(e)},LM={http:Y5e,xhr:O3e,fetch:_w&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Wj(t);u=u?(u+"").toLowerCase():"text";let[p,g]=i||o||a?w3e([i,o],a):[],v,m;const y=()=>{!v&&setTimeout(()=>{p&&p.unsubscribe()}),v=!0};let b;try{if(l&&C3e&&n!=="get"&&n!=="head"&&(b=await P3e(c,r))!==0){let x=new Request(e,{method:"POST",body:r,duplex:"half"}),T;be.isFormData(r)&&(T=x.headers.get("content-type"))&&c.setContentType(T),x.body&&(r=Qj(x.body,jj,Hj(b,bw(l)),null,kM))}be.isString(f)||(f=f?"cors":"omit"),m=new Request(e,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let O=await fetch(m);const w=NM&&(u==="stream"||u==="response");if(NM&&(s||w)){const x={};["status","statusText","headers"].forEach($=>{x[$]=O[$]});const T=be.toFiniteNumber(O.headers.get("content-length"));O=new Response(Qj(O.body,jj,s&&Hj(T,bw(s,!0)),w&&y,kM),x)}u=u||"text";let S=await Ow[be.findKey(Ow,u)||"text"](O,t);return!w&&y(),g&&g(),await new Promise((x,T)=>{Vj(x,T,{data:S,headers:ji.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})})}catch(O){throw y(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new xt("Network Error",xt.ERR_NETWORK,t,m),{cause:O.cause||O}):xt.from(O,O&&O.code,t,m)}})};be.forEach(LM,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Uj=t=>`- ${t}`,$3e=t=>be.isFunction(t)||t===null||t===!1,Zj={getAdapter:t=>{t=be.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since : `+o.map(Uj).join(` `):" "+Uj(o[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:LM};function BM(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gp(null,t)}function Xj(t){return BM(t),t.headers=ji.from(t.headers),t.data=RM.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Zj.getAdapter(t.adapter||v0.adapter)(t).then(function(r){return BM(t),r.data=RM.call(t,t.transformResponse,r),r.headers=ji.from(r.headers),r},function(r){return Bj(r)||(BM(t),r&&r.response&&(r.response.data=RM.call(t,t.transformResponse,r.response),r.response.headers=ji.from(r.response.headers))),Promise.reject(r)})}const Yj="1.7.2",VM={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{VM[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const qj={};VM.transitional=function(e,n,r){function i(o,a){return"[Axios v"+Yj+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(e===!1)throw new xt(i(a," has been removed"+(n?" in "+n:"")),xt.ERR_DEPRECATED);return n&&!qj[a]&&(qj[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,s):!0}};function A3e(t,e,n){if(typeof t!="object")throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=t[o],l=s===void 0||a(s,o,t);if(l!==!0)throw new xt("option "+o+" must be "+l,xt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xt("Unknown option "+o,xt.ERR_BAD_OPTION)}}const zM={assertOptions:A3e,validators:VM},Wu=zM.validators;class Qf{constructor(e){this.defaults=e,this.interceptors={request:new Rj,response:new Rj}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Wf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&zM.assertOptions(r,{silentJSONParsing:Wu.transitional(Wu.boolean),forcedJSONParsing:Wu.transitional(Wu.boolean),clarifyTimeoutError:Wu.transitional(Wu.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:zM.assertOptions(i,{encode:Wu.function,serialize:Wu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ji.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const g=[Xj.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,s){r.reason||(r.reason=new Gp(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new FM(function(i){e=i}),cancel:e}}}function E3e(t){return function(n){return t.apply(null,n)}}function M3e(t){return be.isObject(t)&&t.isAxiosError===!0}const WM={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(WM).forEach(([t,e])=>{WM[e]=t});function Kj(t){const e=new Qf(t),n=mj(Qf.prototype.request,e);return be.extend(n,Qf.prototype,e,{allOwnKeys:!0}),be.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Kj(Wf(t,i))},n}const ur=Kj(v0);ur.Axios=Qf,ur.CanceledError=Gp,ur.CancelToken=FM,ur.isCancel=Bj,ur.VERSION=Yj,ur.toFormData=mw,ur.AxiosError=xt,ur.Cancel=ur.CanceledError,ur.all=function(e){return Promise.all(e)},ur.spread=E3e,ur.isAxiosError=M3e,ur.mergeConfig=Wf,ur.AxiosHeaders=ji,ur.formToJSON=t=>Nj(be.isHTMLForm(t)?new FormData(t):t),ur.getAdapter=Zj.getAdapter,ur.HttpStatusCode=WM,ur.default=ur;class I3e{constructor(e,n){this.axiosInstance=ur.create({baseURL:e,timeout:5e3}),this.options=n}get(e,n){return this.request({url:e,method:"GET",...n})}post(e,n,r){return this.request({url:e,method:"POST",data:n,...r})}put(e,n,r){return this.request({url:e,method:"PUT",data:n,...r})}delete(e,n){return this.request({url:e,method:"DELETE",...n})}request(e){e.headers={...e.headers,Authorization:localStorage.getItem("token")||""};const{transformResponse:n}=this.options||{};return new Promise((r,i)=>{this.axiosInstance.request(e).then(o=>{if(n)try{const a=n(o.data,e);r(a)}catch(a){i(a)}r(o.data)}).catch(o=>{i(o)})})}}var D3e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const R3e=D3e.VITE_APP_BASE_URL,k3e=(t,e)=>{if(e.responseType==="blob")return t;if(t.code===1)return t.result;throw Nf.warning(t.error),new Error(t.error)},Jj=new I3e(R3e,{transformResponse:k3e});function N3e(t){return Jj.post("/api/table/GetAllTablesAndViews",t)}function L3e(t){return Jj.post("/api/system/GetAllBasicData",t)}const B3e=t=>{const e=h.ref(),n=h.ref(!1),r=h.ref(""),i=h.ref(""),o=h.ref(),a=h.ref("");t==="view"&&(e.value=[{label:"系统视图",children:[]},{label:"数据源视图",children:[]}],n.value=!0,N3e({types:t}).then(u=>{const{bpmViewTables:c=[]}=u||{};c.forEach(f=>{const{name:d,schemaName:p,type:g,id:v}=f;e.value[g-1]&&e.value[g-1].children.push({label:`${p}(${d})`,value:p,id:v})})}).finally(()=>{n.value=!1}));const s=(u,c)=>{if(u.level===0)return c([{name:"基础数据"}]);const f=u.data;L3e({currentPage:1,pageSize:999,orderByProperty:"id",Ascending:!0,totalPage:1,totalCount:1,filters:f!=null&&f.id?[{name:"parentId",value:f.id}]:null}).then(d=>{c(d||[])})},l=()=>t==="table"?React.createElement(fF,{ref:o,lazy:!0,load:s,props:{label:u=>u.path?`${u.path}(${u.name})`:u.name,children:"children"},"onNode-click":u=>{u!=null&&u.path&&(r.value=u.path)},filterNodeMethod:(u,c)=>{var f;return((f=c.path)==null?void 0:f.toUpperCase().includes(u.toUpperCase()))||c.name.toUpperCase().includes(u.toUpperCase())},"empty-text":"暂无数据"}):React.createElement(fF,{ref:o,data:e.value,defaultExpandAll:!0,"onNode-click":u=>{u!=null&&u.value&&u.id&&(r.value=u.value,a.value=u.id)},filterNodeMethod:(u,c)=>{var f;return(f=c.label)==null?void 0:f.includes(u)},"empty-text":"暂无数据"});return new Promise((u,c)=>{const f=document.createElement("div"),d=h.createApp({render(){return React.createElement(FTe,{modelValue:!0,title:t==="table"?"选择数据集":"选择视图表",width:"800px",style:{height:"600px"},"v-slots":{footer:()=>React.createElement(L$,{type:"primary",disabled:!r.value,onClick:()=>{u({value:r.value}),document.body.removeChild(f)}},"确定")},onClose:()=>{c("close"),document.body.removeChild(f)}},React.createElement(O1,{size:"small",placeholder:"请输入关键字进行搜索","v-model":i.value,onInput:()=>{var p;(p=o.value)==null||p.filter(i.value)},style:{marginBottom:"10px",height:"35px",fontSize:"14px"}}),React.createElement("div",{style:{height:"379px",overflow:"auto"}},l()))}});document.body.appendChild(f),d.mount(f)})};function QM(t){const e={};for(const n in t)if(typeof t[n]=="object")switch(n){case"background":t[n].type==="none"&&(e[n]="none"),t[n].type==="color"&&(e[n]=t[n].color),t[n].type==="image"&&(e[n+"-image"]=`url(${t[n].image}) no-repeat center center`,e[n+"-size"]=t[n].fillType);break;case"border":t[n].type==="none"?e[n]="none":e[n]=`${t[n].width}px ${t[n].type} ${t[n].color}`;break;case"borderRadius":t[n].type==="all"?e[n]=`${t[n].value}${t[n].unit}`:e[n]=`${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;break;case"boxShadow":t[n].enabled&&(e[n]=`${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset?"inset":""}`);break;case"backdropFilter":t[n].enabled&&(e[n]=`blur(${t[n].blur}px)`);break}else typeof t[n]=="number"?e[n]=t[n]+"px":typeof t[n]=="string"&&(e[n]=t[n]);return e}var ww={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ww.exports,function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,p=4,g=1,v=2,m=1,y=2,b=4,O=8,w=16,S=32,x=64,T=128,$=256,A=512,P=30,M="...",I=800,R=16,L=1,D=2,B=3,F=1/0,z=9007199254740991,W=17976931348623157e292,j=NaN,H=4294967295,Z=H-1,J=H>>>1,se=[["ary",T],["bind",m],["bindKey",y],["curry",O],["curryRight",w],["flip",A],["partial",S],["partialRight",x],["rearg",$]],oe="[object Arguments]",de="[object Array]",ie="[object AsyncFunction]",ue="[object Boolean]",ee="[object Date]",X="[object DOMException]",Y="[object Error]",le="[object Function]",ve="[object GeneratorFunction]",ye="[object Map]",Ne="[object Number]",Be="[object Null]",Me="[object Object]",$e="[object Promise]",_e="[object Proxy]",De="[object RegExp]",Fe="[object Set]",ct="[object String]",vt="[object Symbol]",zt="[object Undefined]",we="[object WeakMap]",rt="[object WeakSet]",Mt="[object ArrayBuffer]",mn="[object DataView]",pn="[object Float32Array]",pr="[object Float64Array]",Ni="[object Int8Array]",du="[object Int16Array]",hu="[object Int32Array]",Uc="[object Uint8Array]",Th="[object Uint8ClampedArray]",vl="[object Uint16Array]",Ph="[object Uint32Array]",$h=/\b__p \+= '';/g,x_=/\b(__p \+=) '' \+/g,Zc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,C_=/&(?:amp|lt|gt|quot|#39);/g,E3=/[&<>"']/g,Spe=RegExp(C_.source),xpe=RegExp(E3.source),Cpe=/<%-([\s\S]+?)%>/g,Tpe=/<%([\s\S]+?)%>/g,Vv=/<%=([\s\S]+?)%>/g,T_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EP=/^\w*$/,zv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P_=/[\\^$.*+?()[\]{}|]/g,M3=RegExp(P_.source),$_=/^\s+/,I3=/\s/,D3=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,R3=/\{\n\/\* \[wrapped with (.+)\] \*/,MP=/,? & /,Ah=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,A_=/[()=,{}\[\]\/\s]/,IP=/\\(\\)?/g,DP=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,E_=/\w*$/,RP=/^[-+]0x[0-9a-f]+$/i,k3=/^0b[01]+$/i,N3=/^\[object .+?Constructor\]$/,L3=/^0o[0-7]+$/i,kP=/^(?:0|[1-9]\d*)$/,M_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Aa=/($^)/,NP=/['\n\r\u2028\u2029\\]/g,Fv="\\ud800-\\udfff",Iwt="\\u0300-\\u036f",Dwt="\\ufe20-\\ufe2f",Rwt="\\u20d0-\\u20ff",Ppe=Iwt+Dwt+Rwt,$pe="\\u2700-\\u27bf",Ape="a-z\\xdf-\\xf6\\xf8-\\xff",kwt="\\xac\\xb1\\xd7\\xf7",Nwt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lwt="\\u2000-\\u206f",Bwt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Epe="A-Z\\xc0-\\xd6\\xd8-\\xde",Mpe="\\ufe0e\\ufe0f",Ipe=kwt+Nwt+Lwt+Bwt,B3="['’]",Vwt="["+Fv+"]",Dpe="["+Ipe+"]",LP="["+Ppe+"]",Rpe="\\d+",zwt="["+$pe+"]",kpe="["+Ape+"]",Npe="[^"+Fv+Ipe+Rpe+$pe+Ape+Epe+"]",V3="\\ud83c[\\udffb-\\udfff]",Fwt="(?:"+LP+"|"+V3+")",Lpe="[^"+Fv+"]",z3="(?:\\ud83c[\\udde6-\\uddff]){2}",F3="[\\ud800-\\udbff][\\udc00-\\udfff]",Wv="["+Epe+"]",Bpe="\\u200d",Vpe="(?:"+kpe+"|"+Npe+")",Wwt="(?:"+Wv+"|"+Npe+")",zpe="(?:"+B3+"(?:d|ll|m|re|s|t|ve))?",Fpe="(?:"+B3+"(?:D|LL|M|RE|S|T|VE))?",Wpe=Fwt+"?",Qpe="["+Mpe+"]?",Qwt="(?:"+Bpe+"(?:"+[Lpe,z3,F3].join("|")+")"+Qpe+Wpe+")*",Hwt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gwt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hpe=Qpe+Wpe+Qwt,jwt="(?:"+[zwt,z3,F3].join("|")+")"+Hpe,Uwt="(?:"+[Lpe+LP+"?",LP,z3,F3,Vwt].join("|")+")",Zwt=RegExp(B3,"g"),Xwt=RegExp(LP,"g"),W3=RegExp(V3+"(?="+V3+")|"+Uwt+Hpe,"g"),Ywt=RegExp([Wv+"?"+kpe+"+"+zpe+"(?="+[Dpe,Wv,"$"].join("|")+")",Wwt+"+"+Fpe+"(?="+[Dpe,Wv+Vpe,"$"].join("|")+")",Wv+"?"+Vpe+"+"+zpe,Wv+"+"+Fpe,Gwt,Hwt,Rpe,jwt].join("|"),"g"),qwt=RegExp("["+Bpe+Fv+Ppe+Mpe+"]"),Kwt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jwt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eSt=-1,Rn={};Rn[pn]=Rn[pr]=Rn[Ni]=Rn[du]=Rn[hu]=Rn[Uc]=Rn[Th]=Rn[vl]=Rn[Ph]=!0,Rn[oe]=Rn[de]=Rn[Mt]=Rn[ue]=Rn[mn]=Rn[ee]=Rn[Y]=Rn[le]=Rn[ye]=Rn[Ne]=Rn[Me]=Rn[De]=Rn[Fe]=Rn[ct]=Rn[we]=!1;var Tn={};Tn[oe]=Tn[de]=Tn[Mt]=Tn[mn]=Tn[ue]=Tn[ee]=Tn[pn]=Tn[pr]=Tn[Ni]=Tn[du]=Tn[hu]=Tn[ye]=Tn[Ne]=Tn[Me]=Tn[De]=Tn[Fe]=Tn[ct]=Tn[vt]=Tn[Uc]=Tn[Th]=Tn[vl]=Tn[Ph]=!0,Tn[Y]=Tn[le]=Tn[we]=!1;var tSt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nSt={"&":"&","<":"<",">":">",'"':""","'":"'"},rSt={"&":"&","<":"<",">":">",""":'"',"'":"'"},iSt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oSt=parseFloat,aSt=parseInt,Gpe=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,sSt=typeof self=="object"&&self&&self.Object===Object&&self,Jr=Gpe||sSt||Function("return this")(),Q3=e&&!e.nodeType&&e,Eh=Q3&&!0&&t&&!t.nodeType&&t,jpe=Eh&&Eh.exports===Q3,H3=jpe&&Gpe.process,Ea=function(){try{var ce=Eh&&Eh.require&&Eh.require("util").types;return ce||H3&&H3.binding&&H3.binding("util")}catch{}}(),Upe=Ea&&Ea.isArrayBuffer,Zpe=Ea&&Ea.isDate,Xpe=Ea&&Ea.isMap,Ype=Ea&&Ea.isRegExp,qpe=Ea&&Ea.isSet,Kpe=Ea&&Ea.isTypedArray;function Ro(ce,Oe,pe){switch(pe.length){case 0:return ce.call(Oe);case 1:return ce.call(Oe,pe[0]);case 2:return ce.call(Oe,pe[0],pe[1]);case 3:return ce.call(Oe,pe[0],pe[1],pe[2])}return ce.apply(Oe,pe)}function lSt(ce,Oe,pe,Xe){for(var wt=-1,sn=ce==null?0:ce.length;++wt-1}function G3(ce,Oe,pe){for(var Xe=-1,wt=ce==null?0:ce.length;++Xe-1;);return pe}function age(ce,Oe){for(var pe=ce.length;pe--&&Qv(Oe,ce[pe],0)>-1;);return pe}function mSt(ce,Oe){for(var pe=ce.length,Xe=0;pe--;)ce[pe]===Oe&&++Xe;return Xe}var ySt=X3(tSt),bSt=X3(nSt);function _St(ce){return"\\"+iSt[ce]}function OSt(ce,Oe){return ce==null?n:ce[Oe]}function Hv(ce){return qwt.test(ce)}function wSt(ce){return Kwt.test(ce)}function SSt(ce){for(var Oe,pe=[];!(Oe=ce.next()).done;)pe.push(Oe.value);return pe}function J3(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Xe,wt){pe[++Oe]=[wt,Xe]}),pe}function sge(ce,Oe){return function(pe){return ce(Oe(pe))}}function qc(ce,Oe){for(var pe=-1,Xe=ce.length,wt=0,sn=[];++pe-1}function cxt(_,C){var E=this.__data__,N=t2(E,_);return N<0?(++this.size,E.push([_,C])):E[N][1]=C,this}pu.prototype.clear=axt,pu.prototype.delete=sxt,pu.prototype.get=lxt,pu.prototype.has=uxt,pu.prototype.set=cxt;function gu(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C=C?_:C)),_}function Ra(_,C,E,N,Q,U){var q,te=C&f,fe=C&d,xe=C&p;if(E&&(q=Q?E(_,N,Q,U):E(_)),q!==n)return q;if(!Hn(_))return _;var Te=St(_);if(Te){if(q=pCt(_),!te)return so(_,q)}else{var Ae=gi(_),We=Ae==le||Ae==ve;if(rf(_))return Qge(_,te);if(Ae==Me||Ae==oe||We&&!Q){if(q=fe||We?{}:lve(_),!te)return fe?rCt(_,Txt(q,_)):nCt(_,bge(q,_))}else{if(!Tn[Ae])return Q?_:{};q=gCt(_,Ae,te)}}U||(U=new bs);var et=U.get(_);if(et)return et;U.set(_,q),Lve(_)?_.forEach(function(gt){q.add(Ra(gt,C,E,gt,_,U))}):kve(_)&&_.forEach(function(gt,Ft){q.set(Ft,Ra(gt,C,E,Ft,_,U))});var pt=xe?fe?CB:xB:fe?uo:Nr,kt=Te?n:pt(_);return Ma(kt||_,function(gt,Ft){kt&&(Ft=gt,gt=_[Ft]),B_(q,Ft,Ra(gt,C,E,Ft,_,U))}),q}function Pxt(_){var C=Nr(_);return function(E){return _ge(E,_,C)}}function _ge(_,C,E){var N=E.length;if(_==null)return!N;for(_=wn(_);N--;){var Q=E[N],U=C[Q],q=_[Q];if(q===n&&!(Q in _)||!U(q))return!1}return!0}function Oge(_,C,E){if(typeof _!="function")throw new Ia(a);return G_(function(){_.apply(n,E)},C)}function V_(_,C,E,N){var Q=-1,U=BP,q=!0,te=_.length,fe=[],xe=C.length;if(!te)return fe;E&&(C=Vn(C,ko(E))),N?(U=G3,q=!1):C.length>=i&&(U=I_,q=!1,C=new Dh(C));e:for(;++QQ?0:Q+E),N=N===n||N>Q?Q:It(N),N<0&&(N+=Q),N=E>N?0:Vve(N);E0&&E(te)?C>1?ei(te,C-1,E,N,Q):Yc(Q,te):N||(Q[Q.length]=te)}return Q}var aB=Xge(),xge=Xge(!0);function ml(_,C){return _&&aB(_,C,Nr)}function sB(_,C){return _&&xge(_,C,Nr)}function r2(_,C){return Xc(C,function(E){return _u(_[E])})}function kh(_,C){C=tf(C,_);for(var E=0,N=C.length;_!=null&&EC}function Ext(_,C){return _!=null&&gn.call(_,C)}function Mxt(_,C){return _!=null&&C in wn(_)}function Ixt(_,C,E){return _>=pi(C,E)&&_<$r(C,E)}function uB(_,C,E){for(var N=E?G3:BP,Q=_[0].length,U=_.length,q=U,te=pe(U),fe=1/0,xe=[];q--;){var Te=_[q];q&&C&&(Te=Vn(Te,ko(C))),fe=pi(Te.length,fe),te[q]=!E&&(C||Q>=120&&Te.length>=120)?new Dh(q&&Te):n}Te=_[0];var Ae=-1,We=te[0];e:for(;++Ae-1;)te!==_&&ZP.call(te,fe,1),ZP.call(_,fe,1);return _}function kge(_,C){for(var E=_?C.length:0,N=E-1;E--;){var Q=C[E];if(E==N||Q!==U){var U=Q;bu(Q)?ZP.call(_,Q,1):mB(_,Q)}}return _}function pB(_,C){return _+qP(gge()*(C-_+1))}function Gxt(_,C,E,N){for(var Q=-1,U=$r(YP((C-_)/(E||1)),0),q=pe(U);U--;)q[N?U:++Q]=_,_+=E;return q}function gB(_,C){var E="";if(!_||C<1||C>z)return E;do C%2&&(E+=_),C=qP(C/2),C&&(_+=_);while(C);return E}function Nt(_,C){return IB(fve(_,C,co),_+"")}function jxt(_){return yge(tm(_))}function Uxt(_,C){var E=tm(_);return p2(E,Rh(C,0,E.length))}function W_(_,C,E,N){if(!Hn(_))return _;C=tf(C,_);for(var Q=-1,U=C.length,q=U-1,te=_;te!=null&&++QQ?0:Q+C),E=E>Q?Q:E,E<0&&(E+=Q),Q=C>E?0:E-C>>>0,C>>>=0;for(var U=pe(Q);++N>>1,q=_[U];q!==null&&!Lo(q)&&(E?q<=C:q=i){var xe=C?null:sCt(_);if(xe)return zP(xe);q=!1,Q=I_,fe=new Dh}else fe=C?[]:te;e:for(;++N=N?_:ka(_,C,E)}var Wge=BSt||function(_){return Jr.clearTimeout(_)};function Qge(_,C){if(C)return _.slice();var E=_.length,N=cge?cge(E):new _.constructor(E);return _.copy(N),N}function OB(_){var C=new _.constructor(_.byteLength);return new jP(C).set(new jP(_)),C}function Kxt(_,C){var E=C?OB(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.byteLength)}function Jxt(_){var C=new _.constructor(_.source,E_.exec(_));return C.lastIndex=_.lastIndex,C}function eCt(_){return L_?wn(L_.call(_)):{}}function Hge(_,C){var E=C?OB(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.length)}function Gge(_,C){if(_!==C){var E=_!==n,N=_===null,Q=_===_,U=Lo(_),q=C!==n,te=C===null,fe=C===C,xe=Lo(C);if(!te&&!xe&&!U&&_>C||U&&q&&fe&&!te&&!xe||N&&q&&fe||!E&&fe||!Q)return 1;if(!N&&!U&&!xe&&_=te)return fe;var xe=E[N];return fe*(xe=="desc"?-1:1)}}return _.index-C.index}function jge(_,C,E,N){for(var Q=-1,U=_.length,q=E.length,te=-1,fe=C.length,xe=$r(U-q,0),Te=pe(fe+xe),Ae=!N;++te1?E[Q-1]:n,q=Q>2?E[2]:n;for(U=_.length>3&&typeof U=="function"?(Q--,U):n,q&&Bi(E[0],E[1],q)&&(U=Q<3?n:U,Q=1),C=wn(C);++N-1?Q[U?C[q]:q]:n}}function Kge(_){return yu(function(C){var E=C.length,N=E,Q=Da.prototype.thru;for(_&&C.reverse();N--;){var U=C[N];if(typeof U!="function")throw new Ia(a);if(Q&&!q&&d2(U)=="wrapper")var q=new Da([],!0)}for(N=q?N:E;++N1&&Kt.reverse(),Te&&fete))return!1;var xe=U.get(_),Te=U.get(C);if(xe&&Te)return xe==C&&Te==_;var Ae=-1,We=!0,et=E&v?new Dh:n;for(U.set(_,C),U.set(C,_);++Ae1?"& ":"")+C[N],C=C.join(E>2?", ":" "),_.replace(D3,`{ /* [wrapped with `+C+`] */ `)}function mCt(_){return St(_)||Bh(_)||!!(hge&&_&&_[hge])}function bu(_,C){var E=typeof _;return C=C??z,!!C&&(E=="number"||E!="symbol"&&kP.test(_))&&_>-1&&_%1==0&&_0){if(++C>=I)return arguments[0]}else C=0;return _.apply(n,arguments)}}function p2(_,C){var E=-1,N=_.length,Q=N-1;for(C=C===n?N:C;++E1?_[C-1]:n;return E=typeof E=="function"?(_.pop(),E):n,Sve(_,E)});function xve(_){var C=G(_);return C.__chain__=!0,C}function $Tt(_,C){return C(_),_}function g2(_,C){return C(_)}var ATt=yu(function(_){var C=_.length,E=C?_[0]:0,N=this.__wrapped__,Q=function(U){return oB(U,_)};return C>1||this.__actions__.length||!(N instanceof jt)||!bu(E)?this.thru(Q):(N=N.slice(E,+E+(C?1:0)),N.__actions__.push({func:g2,args:[Q],thisArg:n}),new Da(N,this.__chain__).thru(function(U){return C&&!U.length&&U.push(n),U}))});function ETt(){return xve(this)}function MTt(){return new Da(this.value(),this.__chain__)}function ITt(){this.__values__===n&&(this.__values__=Bve(this.value()));var _=this.__index__>=this.__values__.length,C=_?n:this.__values__[this.__index__++];return{done:_,value:C}}function DTt(){return this}function RTt(_){for(var C,E=this;E instanceof e2;){var N=mve(E);N.__index__=0,N.__values__=n,C?Q.__wrapped__=N:C=N;var Q=N;E=E.__wrapped__}return Q.__wrapped__=_,C}function kTt(){var _=this.__wrapped__;if(_ instanceof jt){var C=_;return this.__actions__.length&&(C=new jt(this)),C=C.reverse(),C.__actions__.push({func:g2,args:[DB],thisArg:n}),new Da(C,this.__chain__)}return this.thru(DB)}function NTt(){return zge(this.__wrapped__,this.__actions__)}var LTt=s2(function(_,C,E){gn.call(_,E)?++_[E]:vu(_,E,1)});function BTt(_,C,E){var N=St(_)?Jpe:$xt;return E&&Bi(_,C,E)&&(C=n),N(_,ft(C,3))}function VTt(_,C){var E=St(_)?Xc:Sge;return E(_,ft(C,3))}var zTt=qge(yve),FTt=qge(bve);function WTt(_,C){return ei(v2(_,C),1)}function QTt(_,C){return ei(v2(_,C),F)}function HTt(_,C,E){return E=E===n?1:It(E),ei(v2(_,C),E)}function Cve(_,C){var E=St(_)?Ma:Jc;return E(_,ft(C,3))}function Tve(_,C){var E=St(_)?uSt:wge;return E(_,ft(C,3))}var GTt=s2(function(_,C,E){gn.call(_,E)?_[E].push(C):vu(_,E,[C])});function jTt(_,C,E,N){_=lo(_)?_:tm(_),E=E&&!N?It(E):0;var Q=_.length;return E<0&&(E=$r(Q+E,0)),O2(_)?E<=Q&&_.indexOf(C,E)>-1:!!Q&&Qv(_,C,E)>-1}var UTt=Nt(function(_,C,E){var N=-1,Q=typeof C=="function",U=lo(_)?pe(_.length):[];return Jc(_,function(q){U[++N]=Q?Ro(C,q,E):z_(q,C,E)}),U}),ZTt=s2(function(_,C,E){vu(_,E,C)});function v2(_,C){var E=St(_)?Vn:Age;return E(_,ft(C,3))}function XTt(_,C,E,N){return _==null?[]:(St(C)||(C=C==null?[]:[C]),E=N?n:E,St(E)||(E=E==null?[]:[E]),Dge(_,C,E))}var YTt=s2(function(_,C,E){_[E?0:1].push(C)},function(){return[[],[]]});function qTt(_,C,E){var N=St(_)?j3:rge,Q=arguments.length<3;return N(_,ft(C,4),E,Q,Jc)}function KTt(_,C,E){var N=St(_)?cSt:rge,Q=arguments.length<3;return N(_,ft(C,4),E,Q,wge)}function JTt(_,C){var E=St(_)?Xc:Sge;return E(_,b2(ft(C,3)))}function ePt(_){var C=St(_)?yge:jxt;return C(_)}function tPt(_,C,E){(E?Bi(_,C,E):C===n)?C=1:C=It(C);var N=St(_)?Sxt:Uxt;return N(_,C)}function nPt(_){var C=St(_)?xxt:Xxt;return C(_)}function rPt(_){if(_==null)return 0;if(lo(_))return O2(_)?Gv(_):_.length;var C=gi(_);return C==ye||C==Fe?_.size:fB(_).length}function iPt(_,C,E){var N=St(_)?U3:Yxt;return E&&Bi(_,C,E)&&(C=n),N(_,ft(C,3))}var oPt=Nt(function(_,C){if(_==null)return[];var E=C.length;return E>1&&Bi(_,C[0],C[1])?C=[]:E>2&&Bi(C[0],C[1],C[2])&&(C=[C[0]]),Dge(_,ei(C,1),[])}),m2=VSt||function(){return Jr.Date.now()};function aPt(_,C){if(typeof C!="function")throw new Ia(a);return _=It(_),function(){if(--_<1)return C.apply(this,arguments)}}function Pve(_,C,E){return C=E?n:C,C=_&&C==null?_.length:C,mu(_,T,n,n,n,n,C)}function $ve(_,C){var E;if(typeof C!="function")throw new Ia(a);return _=It(_),function(){return--_>0&&(E=C.apply(this,arguments)),_<=1&&(C=n),E}}var kB=Nt(function(_,C,E){var N=m;if(E.length){var Q=qc(E,Jv(kB));N|=S}return mu(_,N,C,E,Q)}),Ave=Nt(function(_,C,E){var N=m|y;if(E.length){var Q=qc(E,Jv(Ave));N|=S}return mu(C,N,_,E,Q)});function Eve(_,C,E){C=E?n:C;var N=mu(_,O,n,n,n,n,n,C);return N.placeholder=Eve.placeholder,N}function Mve(_,C,E){C=E?n:C;var N=mu(_,w,n,n,n,n,n,C);return N.placeholder=Mve.placeholder,N}function Ive(_,C,E){var N,Q,U,q,te,fe,xe=0,Te=!1,Ae=!1,We=!0;if(typeof _!="function")throw new Ia(a);C=La(C)||0,Hn(E)&&(Te=!!E.leading,Ae="maxWait"in E,U=Ae?$r(La(E.maxWait)||0,C):U,We="trailing"in E?!!E.trailing:We);function et(ar){var Os=N,wu=Q;return N=Q=n,xe=ar,q=_.apply(wu,Os),q}function pt(ar){return xe=ar,te=G_(Ft,C),Te?et(ar):q}function kt(ar){var Os=ar-fe,wu=ar-xe,qve=C-Os;return Ae?pi(qve,U-wu):qve}function gt(ar){var Os=ar-fe,wu=ar-xe;return fe===n||Os>=C||Os<0||Ae&&wu>=U}function Ft(){var ar=m2();if(gt(ar))return Kt(ar);te=G_(Ft,kt(ar))}function Kt(ar){return te=n,We&&N?et(ar):(N=Q=n,q)}function Bo(){te!==n&&Wge(te),xe=0,N=fe=Q=te=n}function Vi(){return te===n?q:Kt(m2())}function Vo(){var ar=m2(),Os=gt(ar);if(N=arguments,Q=this,fe=ar,Os){if(te===n)return pt(fe);if(Ae)return Wge(te),te=G_(Ft,C),et(fe)}return te===n&&(te=G_(Ft,C)),q}return Vo.cancel=Bo,Vo.flush=Vi,Vo}var sPt=Nt(function(_,C){return Oge(_,1,C)}),lPt=Nt(function(_,C,E){return Oge(_,La(C)||0,E)});function uPt(_){return mu(_,A)}function y2(_,C){if(typeof _!="function"||C!=null&&typeof C!="function")throw new Ia(a);var E=function(){var N=arguments,Q=C?C.apply(this,N):N[0],U=E.cache;if(U.has(Q))return U.get(Q);var q=_.apply(this,N);return E.cache=U.set(Q,q)||U,q};return E.cache=new(y2.Cache||gu),E}y2.Cache=gu;function b2(_){if(typeof _!="function")throw new Ia(a);return function(){var C=arguments;switch(C.length){case 0:return!_.call(this);case 1:return!_.call(this,C[0]);case 2:return!_.call(this,C[0],C[1]);case 3:return!_.call(this,C[0],C[1],C[2])}return!_.apply(this,C)}}function cPt(_){return $ve(2,_)}var fPt=qxt(function(_,C){C=C.length==1&&St(C[0])?Vn(C[0],ko(ft())):Vn(ei(C,1),ko(ft()));var E=C.length;return Nt(function(N){for(var Q=-1,U=pi(N.length,E);++Q=C}),Bh=Tge(function(){return arguments}())?Tge:function(_){return qn(_)&&gn.call(_,"callee")&&!dge.call(_,"callee")},St=pe.isArray,TPt=Upe?ko(Upe):Rxt;function lo(_){return _!=null&&_2(_.length)&&!_u(_)}function or(_){return qn(_)&&lo(_)}function PPt(_){return _===!0||_===!1||qn(_)&&Li(_)==ue}var rf=FSt||UB,$Pt=Zpe?ko(Zpe):kxt;function APt(_){return qn(_)&&_.nodeType===1&&!j_(_)}function EPt(_){if(_==null)return!0;if(lo(_)&&(St(_)||typeof _=="string"||typeof _.splice=="function"||rf(_)||em(_)||Bh(_)))return!_.length;var C=gi(_);if(C==ye||C==Fe)return!_.size;if(H_(_))return!fB(_).length;for(var E in _)if(gn.call(_,E))return!1;return!0}function MPt(_,C){return F_(_,C)}function IPt(_,C,E){E=typeof E=="function"?E:n;var N=E?E(_,C):n;return N===n?F_(_,C,n,E):!!N}function LB(_){if(!qn(_))return!1;var C=Li(_);return C==Y||C==X||typeof _.message=="string"&&typeof _.name=="string"&&!j_(_)}function DPt(_){return typeof _=="number"&&pge(_)}function _u(_){if(!Hn(_))return!1;var C=Li(_);return C==le||C==ve||C==ie||C==_e}function Rve(_){return typeof _=="number"&&_==It(_)}function _2(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=z}function Hn(_){var C=typeof _;return _!=null&&(C=="object"||C=="function")}function qn(_){return _!=null&&typeof _=="object"}var kve=Xpe?ko(Xpe):Lxt;function RPt(_,C){return _===C||cB(_,C,PB(C))}function kPt(_,C,E){return E=typeof E=="function"?E:n,cB(_,C,PB(C),E)}function NPt(_){return Nve(_)&&_!=+_}function LPt(_){if(_Ct(_))throw new wt(o);return Pge(_)}function BPt(_){return _===null}function VPt(_){return _==null}function Nve(_){return typeof _=="number"||qn(_)&&Li(_)==Ne}function j_(_){if(!qn(_)||Li(_)!=Me)return!1;var C=UP(_);if(C===null)return!0;var E=gn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&QP.call(E)==kSt}var BB=Ype?ko(Ype):Bxt;function zPt(_){return Rve(_)&&_>=-z&&_<=z}var Lve=qpe?ko(qpe):Vxt;function O2(_){return typeof _=="string"||!St(_)&&qn(_)&&Li(_)==ct}function Lo(_){return typeof _=="symbol"||qn(_)&&Li(_)==vt}var em=Kpe?ko(Kpe):zxt;function FPt(_){return _===n}function WPt(_){return qn(_)&&gi(_)==we}function QPt(_){return qn(_)&&Li(_)==rt}var HPt=f2(dB),GPt=f2(function(_,C){return _<=C});function Bve(_){if(!_)return[];if(lo(_))return O2(_)?ys(_):so(_);if(D_&&_[D_])return SSt(_[D_]());var C=gi(_),E=C==ye?J3:C==Fe?zP:tm;return E(_)}function Ou(_){if(!_)return _===0?_:0;if(_=La(_),_===F||_===-F){var C=_<0?-1:1;return C*W}return _===_?_:0}function It(_){var C=Ou(_),E=C%1;return C===C?E?C-E:C:0}function Vve(_){return _?Rh(It(_),0,H):0}function La(_){if(typeof _=="number")return _;if(Lo(_))return j;if(Hn(_)){var C=typeof _.valueOf=="function"?_.valueOf():_;_=Hn(C)?C+"":C}if(typeof _!="string")return _===0?_:+_;_=ige(_);var E=k3.test(_);return E||L3.test(_)?aSt(_.slice(2),E?2:8):RP.test(_)?j:+_}function zve(_){return yl(_,uo(_))}function jPt(_){return _?Rh(It(_),-z,z):_===0?_:0}function cn(_){return _==null?"":No(_)}var UPt=qv(function(_,C){if(H_(C)||lo(C)){yl(C,Nr(C),_);return}for(var E in C)gn.call(C,E)&&B_(_,E,C[E])}),Fve=qv(function(_,C){yl(C,uo(C),_)}),w2=qv(function(_,C,E,N){yl(C,uo(C),_,N)}),ZPt=qv(function(_,C,E,N){yl(C,Nr(C),_,N)}),XPt=yu(oB);function YPt(_,C){var E=Yv(_);return C==null?E:bge(E,C)}var qPt=Nt(function(_,C){_=wn(_);var E=-1,N=C.length,Q=N>2?C[2]:n;for(Q&&Bi(C[0],C[1],Q)&&(N=1);++E1),U}),yl(_,CB(_),E),N&&(E=Ra(E,f|d|p,lCt));for(var Q=C.length;Q--;)mB(E,C[Q]);return E});function g2t(_,C){return Qve(_,b2(ft(C)))}var v2t=yu(function(_,C){return _==null?{}:Qxt(_,C)});function Qve(_,C){if(_==null)return{};var E=Vn(CB(_),function(N){return[N]});return C=ft(C),Rge(_,E,function(N,Q){return C(N,Q[0])})}function m2t(_,C,E){C=tf(C,_);var N=-1,Q=C.length;for(Q||(Q=1,_=n);++NC){var N=_;_=C,C=N}if(E||_%1||C%1){var Q=gge();return pi(_+Q*(C-_+oSt("1e-"+((Q+"").length-1))),C)}return pB(_,C)}var $2t=Kv(function(_,C,E){return C=C.toLowerCase(),_+(E?jve(C):C)});function jve(_){return FB(cn(_).toLowerCase())}function Uve(_){return _=cn(_),_&&_.replace(M_,ySt).replace(Xwt,"")}function A2t(_,C,E){_=cn(_),C=No(C);var N=_.length;E=E===n?N:Rh(It(E),0,N);var Q=E;return E-=C.length,E>=0&&_.slice(E,Q)==C}function E2t(_){return _=cn(_),_&&xpe.test(_)?_.replace(E3,bSt):_}function M2t(_){return _=cn(_),_&&M3.test(_)?_.replace(P_,"\\$&"):_}var I2t=Kv(function(_,C,E){return _+(E?"-":"")+C.toLowerCase()}),D2t=Kv(function(_,C,E){return _+(E?" ":"")+C.toLowerCase()}),R2t=Yge("toLowerCase");function k2t(_,C,E){_=cn(_),C=It(C);var N=C?Gv(_):0;if(!C||N>=C)return _;var Q=(C-N)/2;return c2(qP(Q),E)+_+c2(YP(Q),E)}function N2t(_,C,E){_=cn(_),C=It(C);var N=C?Gv(_):0;return C&&N>>0,E?(_=cn(_),_&&(typeof C=="string"||C!=null&&!BB(C))&&(C=No(C),!C&&Hv(_))?nf(ys(_),0,E):_.split(C,E)):[]}var Q2t=Kv(function(_,C,E){return _+(E?" ":"")+FB(C)});function H2t(_,C,E){return _=cn(_),E=E==null?0:Rh(It(E),0,_.length),C=No(C),_.slice(E,E+C.length)==C}function G2t(_,C,E){var N=G.templateSettings;E&&Bi(_,C,E)&&(C=n),_=cn(_),C=w2({},C,N,rve);var Q=w2({},C.imports,N.imports,rve),U=Nr(Q),q=K3(Q,U),te,fe,xe=0,Te=C.interpolate||Aa,Ae="__p += '",We=eB((C.escape||Aa).source+"|"+Te.source+"|"+(Te===Vv?DP:Aa).source+"|"+(C.evaluate||Aa).source+"|$","g"),et="//# sourceURL="+(gn.call(C,"sourceURL")?(C.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eSt+"]")+` `;_.replace(We,function(gt,Ft,Kt,Bo,Vi,Vo){return Kt||(Kt=Bo),Ae+=_.slice(xe,Vo).replace(NP,_St),Ft&&(te=!0,Ae+=`' + __e(`+Ft+`) + '`),Vi&&(fe=!0,Ae+=`'; `+Vi+`; __p += '`),Kt&&(Ae+=`' + ((__t = (`+Kt+`)) == null ? '' : __t) + '`),xe=Vo+gt.length,gt}),Ae+=`'; `;var pt=gn.call(C,"variable")&&C.variable;if(!pt)Ae=`with (obj) { `+Ae+` } `;else if(A_.test(pt))throw new wt(s);Ae=(fe?Ae.replace($h,""):Ae).replace(x_,"$1").replace(Zc,"$1;"),Ae="function("+(pt||"obj")+`) { `+(pt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ae+`return __p }`;var kt=Xve(function(){return sn(U,et+"return "+Ae).apply(n,q)});if(kt.source=Ae,LB(kt))throw kt;return kt}function j2t(_){return cn(_).toLowerCase()}function U2t(_){return cn(_).toUpperCase()}function Z2t(_,C,E){if(_=cn(_),_&&(E||C===n))return ige(_);if(!_||!(C=No(C)))return _;var N=ys(_),Q=ys(C),U=oge(N,Q),q=age(N,Q)+1;return nf(N,U,q).join("")}function X2t(_,C,E){if(_=cn(_),_&&(E||C===n))return _.slice(0,lge(_)+1);if(!_||!(C=No(C)))return _;var N=ys(_),Q=age(N,ys(C))+1;return nf(N,0,Q).join("")}function Y2t(_,C,E){if(_=cn(_),_&&(E||C===n))return _.replace($_,"");if(!_||!(C=No(C)))return _;var N=ys(_),Q=oge(N,ys(C));return nf(N,Q).join("")}function q2t(_,C){var E=P,N=M;if(Hn(C)){var Q="separator"in C?C.separator:Q;E="length"in C?It(C.length):E,N="omission"in C?No(C.omission):N}_=cn(_);var U=_.length;if(Hv(_)){var q=ys(_);U=q.length}if(E>=U)return _;var te=E-Gv(N);if(te<1)return N;var fe=q?nf(q,0,te).join(""):_.slice(0,te);if(Q===n)return fe+N;if(q&&(te+=fe.length-te),BB(Q)){if(_.slice(te).search(Q)){var xe,Te=fe;for(Q.global||(Q=eB(Q.source,cn(E_.exec(Q))+"g")),Q.lastIndex=0;xe=Q.exec(Te);)var Ae=xe.index;fe=fe.slice(0,Ae===n?te:Ae)}}else if(_.indexOf(No(Q),te)!=te){var We=fe.lastIndexOf(Q);We>-1&&(fe=fe.slice(0,We))}return fe+N}function K2t(_){return _=cn(_),_&&Spe.test(_)?_.replace(C_,PSt):_}var J2t=Kv(function(_,C,E){return _+(E?" ":"")+C.toUpperCase()}),FB=Yge("toUpperCase");function Zve(_,C,E){return _=cn(_),C=E?n:C,C===n?wSt(_)?ESt(_):hSt(_):_.match(C)||[]}var Xve=Nt(function(_,C){try{return Ro(_,n,C)}catch(E){return LB(E)?E:new wt(E)}}),e$t=yu(function(_,C){return Ma(C,function(E){E=bl(E),vu(_,E,kB(_[E],_))}),_});function t$t(_){var C=_==null?0:_.length,E=ft();return _=C?Vn(_,function(N){if(typeof N[1]!="function")throw new Ia(a);return[E(N[0]),N[1]]}):[],Nt(function(N){for(var Q=-1;++Qz)return[];var E=H,N=pi(_,H);C=ft(C),_-=H;for(var Q=q3(N,C);++E<_;)C(E);return Q}function w$t(_){return St(_)?Vn(_,bl):Lo(_)?[_]:so(vve(cn(_)))}function S$t(_){var C=++RSt;return cn(_)+C}var x$t=u2(function(_,C){return _+C},0),C$t=SB("ceil"),T$t=u2(function(_,C){return _/C},1),P$t=SB("floor");function $$t(_){return _&&_.length?n2(_,co,lB):n}function A$t(_,C){return _&&_.length?n2(_,ft(C,2),lB):n}function E$t(_){return nge(_,co)}function M$t(_,C){return nge(_,ft(C,2))}function I$t(_){return _&&_.length?n2(_,co,dB):n}function D$t(_,C){return _&&_.length?n2(_,ft(C,2),dB):n}var R$t=u2(function(_,C){return _*C},1),k$t=SB("round"),N$t=u2(function(_,C){return _-C},0);function L$t(_){return _&&_.length?Y3(_,co):0}function B$t(_,C){return _&&_.length?Y3(_,ft(C,2)):0}return G.after=aPt,G.ary=Pve,G.assign=UPt,G.assignIn=Fve,G.assignInWith=w2,G.assignWith=ZPt,G.at=XPt,G.before=$ve,G.bind=kB,G.bindAll=e$t,G.bindKey=Ave,G.castArray=yPt,G.chain=xve,G.chunk=PCt,G.compact=$Ct,G.concat=ACt,G.cond=t$t,G.conforms=n$t,G.constant=WB,G.countBy=LTt,G.create=YPt,G.curry=Eve,G.curryRight=Mve,G.debounce=Ive,G.defaults=qPt,G.defaultsDeep=KPt,G.defer=sPt,G.delay=lPt,G.difference=ECt,G.differenceBy=MCt,G.differenceWith=ICt,G.drop=DCt,G.dropRight=RCt,G.dropRightWhile=kCt,G.dropWhile=NCt,G.fill=LCt,G.filter=VTt,G.flatMap=WTt,G.flatMapDeep=QTt,G.flatMapDepth=HTt,G.flatten=_ve,G.flattenDeep=BCt,G.flattenDepth=VCt,G.flip=uPt,G.flow=i$t,G.flowRight=o$t,G.fromPairs=zCt,G.functions=o2t,G.functionsIn=a2t,G.groupBy=GTt,G.initial=WCt,G.intersection=QCt,G.intersectionBy=HCt,G.intersectionWith=GCt,G.invert=l2t,G.invertBy=u2t,G.invokeMap=UTt,G.iteratee=QB,G.keyBy=ZTt,G.keys=Nr,G.keysIn=uo,G.map=v2,G.mapKeys=f2t,G.mapValues=d2t,G.matches=a$t,G.matchesProperty=s$t,G.memoize=y2,G.merge=h2t,G.mergeWith=Wve,G.method=l$t,G.methodOf=u$t,G.mixin=HB,G.negate=b2,G.nthArg=f$t,G.omit=p2t,G.omitBy=g2t,G.once=cPt,G.orderBy=XTt,G.over=d$t,G.overArgs=fPt,G.overEvery=h$t,G.overSome=p$t,G.partial=NB,G.partialRight=Dve,G.partition=YTt,G.pick=v2t,G.pickBy=Qve,G.property=Yve,G.propertyOf=g$t,G.pull=XCt,G.pullAll=wve,G.pullAllBy=YCt,G.pullAllWith=qCt,G.pullAt=KCt,G.range=v$t,G.rangeRight=m$t,G.rearg=dPt,G.reject=JTt,G.remove=JCt,G.rest=hPt,G.reverse=DB,G.sampleSize=tPt,G.set=y2t,G.setWith=b2t,G.shuffle=nPt,G.slice=eTt,G.sortBy=oPt,G.sortedUniq=sTt,G.sortedUniqBy=lTt,G.split=W2t,G.spread=pPt,G.tail=uTt,G.take=cTt,G.takeRight=fTt,G.takeRightWhile=dTt,G.takeWhile=hTt,G.tap=$Tt,G.throttle=gPt,G.thru=g2,G.toArray=Bve,G.toPairs=Hve,G.toPairsIn=Gve,G.toPath=w$t,G.toPlainObject=zve,G.transform=_2t,G.unary=vPt,G.union=pTt,G.unionBy=gTt,G.unionWith=vTt,G.uniq=mTt,G.uniqBy=yTt,G.uniqWith=bTt,G.unset=O2t,G.unzip=RB,G.unzipWith=Sve,G.update=w2t,G.updateWith=S2t,G.values=tm,G.valuesIn=x2t,G.without=_Tt,G.words=Zve,G.wrap=mPt,G.xor=OTt,G.xorBy=wTt,G.xorWith=STt,G.zip=xTt,G.zipObject=CTt,G.zipObjectDeep=TTt,G.zipWith=PTt,G.entries=Hve,G.entriesIn=Gve,G.extend=Fve,G.extendWith=w2,HB(G,G),G.add=x$t,G.attempt=Xve,G.camelCase=$2t,G.capitalize=jve,G.ceil=C$t,G.clamp=C2t,G.clone=bPt,G.cloneDeep=OPt,G.cloneDeepWith=wPt,G.cloneWith=_Pt,G.conformsTo=SPt,G.deburr=Uve,G.defaultTo=r$t,G.divide=T$t,G.endsWith=A2t,G.eq=_s,G.escape=E2t,G.escapeRegExp=M2t,G.every=BTt,G.find=zTt,G.findIndex=yve,G.findKey=JPt,G.findLast=FTt,G.findLastIndex=bve,G.findLastKey=e2t,G.floor=P$t,G.forEach=Cve,G.forEachRight=Tve,G.forIn=t2t,G.forInRight=n2t,G.forOwn=r2t,G.forOwnRight=i2t,G.get=VB,G.gt=xPt,G.gte=CPt,G.has=s2t,G.hasIn=zB,G.head=Ove,G.identity=co,G.includes=jTt,G.indexOf=FCt,G.inRange=T2t,G.invoke=c2t,G.isArguments=Bh,G.isArray=St,G.isArrayBuffer=TPt,G.isArrayLike=lo,G.isArrayLikeObject=or,G.isBoolean=PPt,G.isBuffer=rf,G.isDate=$Pt,G.isElement=APt,G.isEmpty=EPt,G.isEqual=MPt,G.isEqualWith=IPt,G.isError=LB,G.isFinite=DPt,G.isFunction=_u,G.isInteger=Rve,G.isLength=_2,G.isMap=kve,G.isMatch=RPt,G.isMatchWith=kPt,G.isNaN=NPt,G.isNative=LPt,G.isNil=VPt,G.isNull=BPt,G.isNumber=Nve,G.isObject=Hn,G.isObjectLike=qn,G.isPlainObject=j_,G.isRegExp=BB,G.isSafeInteger=zPt,G.isSet=Lve,G.isString=O2,G.isSymbol=Lo,G.isTypedArray=em,G.isUndefined=FPt,G.isWeakMap=WPt,G.isWeakSet=QPt,G.join=jCt,G.kebabCase=I2t,G.last=Na,G.lastIndexOf=UCt,G.lowerCase=D2t,G.lowerFirst=R2t,G.lt=HPt,G.lte=GPt,G.max=$$t,G.maxBy=A$t,G.mean=E$t,G.meanBy=M$t,G.min=I$t,G.minBy=D$t,G.stubArray=jB,G.stubFalse=UB,G.stubObject=y$t,G.stubString=b$t,G.stubTrue=_$t,G.multiply=R$t,G.nth=ZCt,G.noConflict=c$t,G.noop=GB,G.now=m2,G.pad=k2t,G.padEnd=N2t,G.padStart=L2t,G.parseInt=B2t,G.random=P2t,G.reduce=qTt,G.reduceRight=KTt,G.repeat=V2t,G.replace=z2t,G.result=m2t,G.round=k$t,G.runInContext=ce,G.sample=ePt,G.size=rPt,G.snakeCase=F2t,G.some=iPt,G.sortedIndex=tTt,G.sortedIndexBy=nTt,G.sortedIndexOf=rTt,G.sortedLastIndex=iTt,G.sortedLastIndexBy=oTt,G.sortedLastIndexOf=aTt,G.startCase=Q2t,G.startsWith=H2t,G.subtract=N$t,G.sum=L$t,G.sumBy=B$t,G.template=G2t,G.times=O$t,G.toFinite=Ou,G.toInteger=It,G.toLength=Vve,G.toLower=j2t,G.toNumber=La,G.toSafeInteger=jPt,G.toString=cn,G.toUpper=U2t,G.trim=Z2t,G.trimEnd=X2t,G.trimStart=Y2t,G.truncate=q2t,G.unescape=K2t,G.uniqueId=S$t,G.upperCase=J2t,G.upperFirst=FB,G.each=Cve,G.eachRight=Tve,G.first=Ove,HB(G,function(){var _={};return ml(G,function(C,E){gn.call(G.prototype,E)||(_[E]=C)}),_}(),{chain:!1}),G.VERSION=r,Ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){G[_].placeholder=G}),Ma(["drop","take"],function(_,C){jt.prototype[_]=function(E){E=E===n?1:$r(It(E),0);var N=this.__filtered__&&!C?new jt(this):this.clone();return N.__filtered__?N.__takeCount__=pi(E,N.__takeCount__):N.__views__.push({size:pi(E,H),type:_+(N.__dir__<0?"Right":"")}),N},jt.prototype[_+"Right"]=function(E){return this.reverse()[_](E).reverse()}}),Ma(["filter","map","takeWhile"],function(_,C){var E=C+1,N=E==L||E==B;jt.prototype[_]=function(Q){var U=this.clone();return U.__iteratees__.push({iteratee:ft(Q,3),type:E}),U.__filtered__=U.__filtered__||N,U}}),Ma(["head","last"],function(_,C){var E="take"+(C?"Right":"");jt.prototype[_]=function(){return this[E](1).value()[0]}}),Ma(["initial","tail"],function(_,C){var E="drop"+(C?"":"Right");jt.prototype[_]=function(){return this.__filtered__?new jt(this):this[E](1)}}),jt.prototype.compact=function(){return this.filter(co)},jt.prototype.find=function(_){return this.filter(_).head()},jt.prototype.findLast=function(_){return this.reverse().find(_)},jt.prototype.invokeMap=Nt(function(_,C){return typeof _=="function"?new jt(this):this.map(function(E){return z_(E,_,C)})}),jt.prototype.reject=function(_){return this.filter(b2(ft(_)))},jt.prototype.slice=function(_,C){_=It(_);var E=this;return E.__filtered__&&(_>0||C<0)?new jt(E):(_<0?E=E.takeRight(-_):_&&(E=E.drop(_)),C!==n&&(C=It(C),E=C<0?E.dropRight(-C):E.take(C-_)),E)},jt.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},jt.prototype.toArray=function(){return this.take(H)},ml(jt.prototype,function(_,C){var E=/^(?:filter|find|map|reject)|While$/.test(C),N=/^(?:head|last)$/.test(C),Q=G[N?"take"+(C=="last"?"Right":""):C],U=N||/^find/.test(C);Q&&(G.prototype[C]=function(){var q=this.__wrapped__,te=N?[1]:arguments,fe=q instanceof jt,xe=te[0],Te=fe||St(q),Ae=function(Ft){var Kt=Q.apply(G,Yc([Ft],te));return N&&We?Kt[0]:Kt};Te&&E&&typeof xe=="function"&&xe.length!=1&&(fe=Te=!1);var We=this.__chain__,et=!!this.__actions__.length,pt=U&&!We,kt=fe&&!et;if(!U&&Te){q=kt?q:new jt(this);var gt=_.apply(q,te);return gt.__actions__.push({func:g2,args:[Ae],thisArg:n}),new Da(gt,We)}return pt&&kt?_.apply(this,te):(gt=this.thru(Ae),pt?N?gt.value()[0]:gt.value():gt)})}),Ma(["pop","push","shift","sort","splice","unshift"],function(_){var C=FP[_],E=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",N=/^(?:pop|shift)$/.test(_);G.prototype[_]=function(){var Q=arguments;if(N&&!this.__chain__){var U=this.value();return C.apply(St(U)?U:[],Q)}return this[E](function(q){return C.apply(St(q)?q:[],Q)})}}),ml(jt.prototype,function(_,C){var E=G[C];if(E){var N=E.name+"";gn.call(Xv,N)||(Xv[N]=[]),Xv[N].push({name:C,func:E})}}),Xv[l2(n,y).name]=[{name:"wrapper",func:n}],jt.prototype.clone=KSt,jt.prototype.reverse=JSt,jt.prototype.value=ext,G.prototype.at=ATt,G.prototype.chain=ETt,G.prototype.commit=MTt,G.prototype.next=ITt,G.prototype.plant=RTt,G.prototype.reverse=kTt,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=NTt,G.prototype.first=G.prototype.head,D_&&(G.prototype[D_]=DTt),G},jv=MSt();Eh?((Eh.exports=jv)._=jv,Q3._=jv):Jr._=jv}).call(Tl)}(ww,ww.exports);var eU=ww.exports;const V3e=h.defineComponent({name:"DContainer",props:{style:Object,props:Object},setup(t){const e=h.computed(()=>{var i,o,a,s,l,u;return{width:((i=t.props)==null?void 0:i.width)+"px",height:((o=t.props)==null?void 0:o.height)+"px",transform:`rotateX(${((a=t.props)==null?void 0:a.rotateX)||0}deg) rotateY(${((s=t.props)==null?void 0:s.rotateY)||0}deg) rotateZ(${((l=t.props)==null?void 0:l.rotateZ)||0}deg)`,opacity:((u=t.props)==null?void 0:u.opacity)/100,...QM(eU.pick(t.style,["boxShadow","webkitBoxReflect"]))}}),n=h.computed(()=>{var i,o,a,s;return{paddingLeft:((i=t.props)==null?void 0:i.paddingLeft)+"px",paddingRight:((o=t.props)==null?void 0:o.paddingRight)+"px",paddingTop:((a=t.props)==null?void 0:a.paddingTop)+"px",paddingBottom:((s=t.props)==null?void 0:s.paddingBottom)+"px",overflow:"hidden"}}),r=h.computed(()=>{var a,s;const{style:i={}}=t,o=QM(eU.pick(i,["background","backdropFilter","borderRadius","borderStyle","borderColor","borderWidth"]));return{position:"absolute",boxSizing:"border-box",left:0,top:0,opacity:i.opacity/100,width:((a=t.props)==null?void 0:a.width)+"px",height:((s=t.props)==null?void 0:s.height)+"px",...o}});return{getContentStyle:n,getBackgroundStyle:r,getContainetStyle:e}}}),Mr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function z3e(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",h.mergeProps({class:"component-contaier",style:t.getContainetStyle},t.$attrs),[h.createElementVNode("div",{class:"component-background",style:h.normalizeStyle(t.getBackgroundStyle)},null,4),h.createElementVNode("div",{class:"component-content",style:h.normalizeStyle(t.getContentStyle)},[h.renderSlot(t.$slots,"default",{},void 0,!0)],4)],16)}const Hf=Mr(V3e,[["render",z3e],["__scopeId","data-v-54953270"]]);Hf.install=t=>(t.component(Hf.name,Hf),t);const F3e=Object.freeze(Object.defineProperty({__proto__:null,Container:Hf,default:Hf},Symbol.toStringTag,{value:"Module"})),HM={text:{type:String,required:!0},width:{type:Number},height:{type:Number},fontSize:{type:Number},fontWeight:{type:[Number,String]},color:{type:String},backgroundColor:{type:String},textAlign:{type:String},direction:{type:String}},W3e={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}},Q3e=h.defineComponent({name:"DTitle",props:HM,setup(t){return{style:h.computed(()=>{const n=QM(t),r={};return n.color.length>9&&(r.backgroundImage=n.color,r.webkitBackgroundClip="text",r.webkitTextFillColor="transparent"),{...r,...n,width:"100%",height:"100%",lineHeight:t.height+"px"}})}}});function H3e(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:"cus-title",style:h.normalizeStyle(t.style)},h.toDisplayString(t.text),5)}const Gf=Mr(Q3e,[["render",H3e]]),tU=t=>(h.pushScopeId("data-v-eace9702"),t=t(),h.popScopeId(),t),G3e={key:0,class:"color-box"},j3e={class:"img-preview"},U3e=tU(()=>h.createElementVNode("div",{class:"img-empty"},"未选择",-1)),Z3e=tU(()=>h.createElementVNode("div",{class:"img-tip"},"选择素材",-1)),X3e=Mr(h.defineComponent({__name:"BackgroundSelect",props:{value:{default:()=>({type:"none",color:"",image:"",fillType:""})},filterOptions:{}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.value),o=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],a=h.computed(()=>n.filterOptions?o.filter(l=>{var u;return!((u=n.filterOptions)!=null&&u.includes(l.value))}):o);h.watch(()=>i.value,()=>{r("update:value",i.value)},{deep:!0});const s=l=>{l==="color"&&!i.value.color&&(i.value.color="#0B074BFF")};return(l,u)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(Hi),{value:i.value.type,"onUpdate:value":u[0]||(u[0]=c=>i.value.type=c),style:{width:"100%"},options:a.value,onChange:s},null,8,["value","options"]),i.value.type==="color"?(h.openBlock(),h.createElementBlock("div",G3e,[h.createVNode(h.unref(dp),{modelValue:i.value.color,"onUpdate:modelValue":u[1]||(u[1]=c=>i.value.color=c),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(O1),{modelValue:i.value.color,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value.color=c),size:"small"},null,8,["modelValue"])])):i.value.type==="image"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(jn),{style:{"margin-top":"12px"},placeholder:"图片地址",value:i.value.image,"onUpdate:value":u[3]||(u[3]=c=>i.value.image=c)},null,8,["value"]),h.createElementVNode("div",j3e,[U3e,h.createVNode(h.unref(Fu),{src:i.value.image},null,8,["src"]),Z3e]),h.createVNode(h.unref(eF),{modelValue:i.value.fillType,"onUpdate:modelValue":u[4]||(u[4]=c=>i.value.fillType=c)},{default:h.withCtx(()=>[h.createVNode(h.unref($m),{value:"cover"},{default:h.withCtx(()=>[h.createTextVNode("填充")]),_:1}),h.createVNode(h.unref($m),{value:"contain"},{default:h.withCtx(()=>[h.createTextVNode("适应")]),_:1}),h.createVNode(h.unref($m),{value:"stretch"},{default:h.withCtx(()=>[h.createTextVNode("拉伸")]),_:1})]),_:1},8,["modelValue"])],64)):h.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-eace9702"]]),Y3e=Mr(h.defineComponent({__name:"ColorSelect",props:{value:{},gradient:{type:Boolean,default:!0}},emits:["update:value"],setup(t,{emit:e}){var s,l;const n=e,r=t,i=h.ref(((s=r.value)==null?void 0:s.length)<=9||!r.value?"pure":"gradient"),o=h.ref(r.value),a=h.ref(((l=r.value)==null?void 0:l.length)>=9?r.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return h.watch(()=>[i.value,o.value,a.value],()=>{i.value==="pure"?o.value=o.value.length>9?"#FFFFFFFF":o.value:o.value=`linear-gradient(90deg, ${a.value.join(",")})`,n("update:value",o.value)},{deep:!0}),h.watch(()=>r.gradient,u=>{u||(i.value="pure",o.value=o.value.length>9?"#FFFFFFFF":o.value)}),(u,c)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[u.gradient?(h.openBlock(),h.createBlock(h.unref(eF),{key:0,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),size:"small",style:{width:"100%"}},{default:h.withCtx(()=>[h.createVNode(h.unref($m),{value:"pure"},{default:h.withCtx(()=>[h.createTextVNode("单色")]),_:1}),h.createVNode(h.unref($m),{value:"gradient"},{default:h.withCtx(()=>[h.createTextVNode("渐变色")]),_:1})]),_:1},8,["modelValue"])):h.createCommentVNode("",!0),i.value==="pure"?(h.openBlock(),h.createElementBlock("div",{key:1,class:"color-box",style:h.normalizeStyle({marginTop:u.gradient?"12px":"0"})},[h.createVNode(h.unref(dp),{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(O1),{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=f=>o.value=f),size:"small"},null,8,["modelValue"])],4)):i.value==="gradient"?(h.openBlock(),h.createElementBlock("div",{key:2,class:"gradient-box",style:h.normalizeStyle({background:o.value})},[h.createVNode(h.unref(dp),{modelValue:a.value[0],"onUpdate:modelValue":c[3]||(c[3]=f=>a.value[0]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(dp),{modelValue:a.value[1],"onUpdate:modelValue":c[4]||(c[4]=f=>a.value[1]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):h.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d5768739"]]),Sw=[{name:"清新",color:["#00a8e1","#99cc00","#e30039","#fcd300","#800080"]},{name:"复古",color:["#FFA69E","#FAE3D9","#B8F2E6","#56E39F","#3A837D"]},{name:"商务",color:["#194f97","#555555","#bd6b08","#00686b","#c82d31"]},{name:"经典",color:["#002c53","#ffa510","#0c84c6","#ffffff","#f74d4d"]},{name:"怀旧",color:["#3b6291","#943c39","#779043","#624c7c","#388498"]}],q3e={color:Sw[0].color,title:{show:!0,left:"center",top:8,textStyle:{color:"#FFFFFFFF",fontSize:16,fontWeight:"normal"}},legend:{show:!0,textStyle:{color:"#FFFFFFFF"},top:32,bottom:"auto",left:"center",right:"auto"},grid:{bottom:34,right:20,left:20,top:60},xAxis:{type:"category",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLine:{show:!0,lineStyle:{width:1}},axisTick:{show:!0,lineStyle:{width:1,color:"#ccc"}}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#36485f"}},type:"value",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal",rotate:0},axisLine:{show:!1,lineStyle:{width:1,color:"#ccc"}},axisTick:{show:!1,lineStyle:{width:1,color:"#ccc"}}},tooltip:{show:!0,trigger:"axis",formatter:"{b} {c}",axisPointer:{type:"line"},textStyle:{color:"#000000FF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},padding:10,borderWidth:1,borderColor:"#ccc",borderRadius:4,backgroundColor:"#FFFFFFFF",extraCssText:""}},K3e={class:"color-list"},J3e={class:"del-btn"},eBe=Mr(h.defineComponent({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=Sw.map(d=>d.color.join(",")),i=e,o=h.ref(r.includes(n.value.join(","))?n.value.join(","):"custom"),a=h.ref(n.value),s=h.ref();function l(d){d==="custom"||(a.value=d.split(","),i("update:value",d.split(",")))}const u=()=>{var d;(d=s.value)==null||d.show()};function c(d){a.value.push(d),o.value="custom",i("update:value",a.value)}const f=d=>{a.value.splice(d,1),o.value="custom",i("update:value",a.value)};return(d,p)=>(h.openBlock(),h.createElementBlock("div",null,[h.createVNode(h.unref(Hi),{value:o.value,"onUpdate:value":p[0]||(p[0]=g=>o.value=g),size:"small",style:{width:"100%"},onChange:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(Sw),g=>(h.openBlock(),h.createBlock(h.unref(Ip),{key:g.name,value:g.color.join(",")},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(g.color.slice(0,5),v=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:v,style:h.normalizeStyle({background:v})},null,4))),128)),h.createTextVNode(" "+h.toDisplayString(g.name),1)]),_:2},1032,["value"]))),128)),h.createVNode(h.unref(Ip),{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("自定义组合")]),_:1})]),_:1},8,["value"]),h.createElementVNode("div",K3e,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(g,v)=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:v,style:h.normalizeStyle({background:g})},[h.createElementVNode("span",J3e,[h.createVNode(h.unref(Xo),{onClick:m=>f(v)},null,8,["onClick"])])],4))),128)),h.createElementVNode("span",{class:"color-block cus-btn",onClick:u},[h.createVNode(h.unref(YO))]),h.createVNode(h.unref(dp),{ref_key:"colorPickerRef",ref:s,style:{width:"0",height:"0",opacity:"0"},onChange:c},null,512)])]))}}),[["__scopeId","data-v-b29b1b78"]]),tBe={class:"position"},nBe=Mr(h.defineComponent({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",tBe,[e.type==="line"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:0,value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Is),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(pM))]),_:1}),h.createVNode(h.unref(Is),{value:"center"},{default:h.withCtx(()=>[h.createVNode(h.unref(hM))]),_:1}),h.createVNode(h.unref(Is),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(gM))]),_:1})]),_:1},8,["value"])):e.type==="round"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:1,value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Is),{value:"top"},{default:h.withCtx(()=>[h.createVNode(h.unref(_M))]),_:1}),h.createVNode(h.unref(Is),{value:"bottom"},{default:h.withCtx(()=>[h.createVNode(h.unref(mM))]),_:1}),h.createVNode(h.unref(Is),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(yM))]),_:1}),h.createVNode(h.unref(Is),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(bM))]),_:1})]),_:1},8,["value"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a4b8591a"]]),rBe={class:"font-style"},iBe={class:"cus-btn"},oBe=Mr(h.defineComponent({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){var v,m,y,b;const n=t,r=e,i=h.ref((v=n.value)==null?void 0:v.bold),o=h.ref((m=n.value)==null?void 0:m.italic),a=h.ref((y=n.value)==null?void 0:y.size),s=h.ref((b=n.value)==null?void 0:b.color),l=h.ref(),u=()=>{r("update:value",{size:a.value,bold:i.value,italic:o.value,color:s.value})},c=()=>{i.value=!i.value,u()},f=()=>{o.value=!o.value,u()};function d(O){s.value=O,u()}function p(O){a.value=O,u()}const g=()=>{var O;(O=l.value)==null||O.show()};return(O,w)=>(h.openBlock(),h.createElementBlock("div",rBe,[h.createVNode(h.unref(ri),{size:"small",onClick:g},{default:h.withCtx(()=>[h.createElementVNode("span",iBe,[h.createVNode(h.unref(OM)),h.createElementVNode("div",{class:"color-block",style:h.normalizeStyle({background:s.value})},null,4),h.createVNode(h.unref(dp),{ref_key:"colorPickerRef",ref:l,style:{width:"0",height:"0",opacity:"0"},value:s.value,"onUpdate:value":w[0]||(w[0]=S=>s.value=S),onChange:d},null,8,["value"])])]),_:1}),h.createVNode(h.unref(ri),{size:"small",onClick:c},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":i.value}])},[h.createVNode(h.unref(vM))],2)]),_:1}),h.createVNode(h.unref(ri),{size:"small",onClick:f},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":o.value}])},[h.createVNode(h.unref(wM))],2)]),_:1}),h.createVNode(h.unref(l0),{size:"small",value:a.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:p},{addonAfter:h.withCtx(()=>[h.createTextVNode("px")]),_:1},8,["value"])]))}}),[["__scopeId","data-v-12e62bfe"]]),aBe={class:"cus-slider"},sBe=Mr(h.defineComponent({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",aBe,[h.createVNode(h.unref(I8e),{value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r)),"tip-formatter":r=>`${r}%`},null,8,["value","tip-formatter"]),h.createVNode(h.unref(l0),{value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r)),"addon-after":"%"},null,8,["value"])]))}}),[["__scopeId","data-v-2fe8fa98"]]),lBe=h.defineComponent({name:"FmBorderRadius",components:{RadioGroup:Rf,RadioButton:Is,InputNumber:l0,Select:Hi,RadiusUpleftOutlined:CM,RadiusUprightOutlined:TM,RadiusBottomleftOutlined:SM,RadiusBottomrightOutlined:xM},props:{value:{type:Object,default:()=>({})}},emits:["update:value"],setup(t,{emit:e}){var r,i,o,a;const n=h.reactive({type:t.value.type||"all",value:t.value.type==="all"?t.value.value:0,unit:t.value.unit||"px",topLeft:typeof t.value.value=="object"?(r=t.value.value)==null?void 0:r.topLeft:0,topRight:typeof t.value.value=="object"?(i=t.value.value)==null?void 0:i.topRight:0,bottomLeft:typeof t.value.value=="object"?(o=t.value.value)==null?void 0:o.bottomLeft:0,bottomRight:typeof t.value.value=="object"?(a=t.value.value)==null?void 0:a.bottomRight:0});return h.watch(()=>n,s=>{e("update:value",{type:s.type,value:s.type==="all"?s.value:{topLeft:s.topLeft,topRight:s.topRight,bottomLeft:s.bottomLeft,bottomRight:s.bottomRight},unit:s.unit})},{deep:!0}),{radius:n,unitOptions:[{label:"px",value:"px"},{label:"%",value:"%"}]}}}),uBe={key:0,class:"all"},cBe={key:1,class:"custom"};function fBe(t,e,n,r,i,o){const a=h.resolveComponent("RadioButton"),s=h.resolveComponent("RadioGroup"),l=h.resolveComponent("InputNumber"),u=h.resolveComponent("Select"),c=h.resolveComponent("RadiusUpleftOutlined"),f=h.resolveComponent("RadiusUprightOutlined"),d=h.resolveComponent("RadiusBottomleftOutlined"),p=h.resolveComponent("RadiusBottomrightOutlined");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(s,{value:t.radius.type,"onUpdate:value":e[0]||(e[0]=g=>t.radius.type=g)},{default:h.withCtx(()=>[h.createVNode(a,{value:"all"},{default:h.withCtx(()=>[h.createTextVNode("整体")]),_:1}),h.createVNode(a,{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("单个")]),_:1})]),_:1},8,["value"]),t.radius.type==="all"?(h.openBlock(),h.createElementBlock("div",uBe,[h.createVNode(l,{value:t.radius.value,"onUpdate:value":e[1]||(e[1]=g=>t.radius.value=g)},null,8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[2]||(e[2]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])])):(h.openBlock(),h.createElementBlock("div",cBe,[h.createVNode(l,{value:t.radius.topLeft,"onUpdate:value":e[3]||(e[3]=g=>t.radius.topLeft=g)},{addonBefore:h.withCtx(()=>[h.createVNode(c)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.topRight,"onUpdate:value":e[4]||(e[4]=g=>t.radius.topRight=g)},{addonBefore:h.withCtx(()=>[h.createVNode(f)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomLeft,"onUpdate:value":e[5]||(e[5]=g=>t.radius.bottomLeft=g)},{addonBefore:h.withCtx(()=>[h.createVNode(d)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomRight,"onUpdate:value":e[6]||(e[6]=g=>t.radius.bottomRight=g)},{addonBefore:h.withCtx(()=>[h.createVNode(p)]),_:1},8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[7]||(e[7]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])]))])}const dBe=Mr(lBe,[["render",fBe],["__scopeId","data-v-da2b5cf6"]]),hBe=Mr(h.defineComponent({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.modelValue);return h.watch(()=>i.value,()=>{r("update:modelValue",i.value)},{deep:!0}),h.watch(()=>n.modelValue,o=>{fm(o,i.value)||(i.value=o)}),(o,a)=>(h.openBlock(),h.createBlock(h.unref(cH),{label:o.item.type!=="divider"?o.item.label:"",name:o.item.prop,rules:o.item.rules},{default:h.withCtx(()=>{var s,l,u,c,f,d,p,g,v,m,y;return[o.item.type==="divider"?(h.openBlock(),h.createBlock(h.unref(ALe),{key:0,style:{margin:"0"}},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(o.item.label),1)]),_:1})):o.item.type==="input"?(h.openBlock(),h.createBlock(h.unref(jn),h.mergeProps({key:1,value:i.value,"onUpdate:value":a[0]||(a[0]=b=>i.value=b)},(s=o.item)==null?void 0:s.fieldProps),null,16,["value"])):o.item.type==="select"?(h.openBlock(),h.createBlock(h.unref(Hi),h.mergeProps({key:2,value:i.value,"onUpdate:value":a[1]||(a[1]=b=>i.value=b)},(l=o.item)==null?void 0:l.fieldProps),null,16,["value"])):o.item.type==="inputNumber"?(h.openBlock(),h.createBlock(h.unref(l0),h.mergeProps({key:3,value:i.value,"onUpdate:value":a[2]||(a[2]=b=>i.value=b)},(u=o.item)==null?void 0:u.fieldProps,{style:{width:"100%"}}),null,16,["value"])):o.item.type==="image"?(h.openBlock(),h.createBlock(h.unref(Fu),h.mergeProps({key:4,value:i.value,"onUpdate:value":a[3]||(a[3]=b=>i.value=b)},(c=o.item)==null?void 0:c.fieldProps),null,16,["value"])):o.item.type==="checkboxGroup"?(h.openBlock(),h.createBlock(h.unref(tw),h.mergeProps({key:5,value:i.value,"onUpdate:value":a[4]||(a[4]=b=>i.value=b)},(f=o.item)==null?void 0:f.fieldProps),null,16,["value"])):o.item.type==="backgroundSelect"?(h.openBlock(),h.createBlock(X3e,h.mergeProps({key:6,value:i.value,"onUpdate:value":a[5]||(a[5]=b=>i.value=b)},(d=o.item)==null?void 0:d.fieldProps),null,16,["value"])):o.item.type==="colorSelect"?(h.openBlock(),h.createBlock(Y3e,h.mergeProps({key:7,value:i.value,"onUpdate:value":a[6]||(a[6]=b=>i.value=b)},(p=o.item)==null?void 0:p.fieldProps),null,16,["value"])):o.item.type==="colorScheme"?(h.openBlock(),h.createBlock(eBe,h.mergeProps({key:8,value:i.value,"onUpdate:value":a[7]||(a[7]=b=>i.value=b)},(g=o.item)==null?void 0:g.fieldProps),null,16,["value"])):o.item.type==="radioGroup"?(h.openBlock(),h.createBlock(h.unref(Rf),h.mergeProps({key:9,value:i.value,"onUpdate:value":a[8]||(a[8]=b=>i.value=b),size:"small"},(v=o.item)==null?void 0:v.fieldProps),null,16,["value"])):o.item.type==="radioGroupButton"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:10,value:i.value,"onUpdate:value":a[9]||(a[9]=b=>i.value=b),size:"small"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.item.fieldProps.options,b=>(h.openBlock(),h.createBlock(h.unref(Is),{key:b.value,value:b.value},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):o.item.type==="position"?(h.openBlock(),h.createBlock(nBe,h.mergeProps({key:11,value:i.value,"onUpdate:value":a[10]||(a[10]=b=>i.value=b)},(m=o.item)==null?void 0:m.fieldProps),null,16,["value"])):o.item.type==="fontStyle"?(h.openBlock(),h.createBlock(oBe,h.mergeProps({key:12,value:i.value,"onUpdate:value":a[11]||(a[11]=b=>i.value=b)},(y=o.item)==null?void 0:y.fieldProps),null,16,["value"])):o.item.type==="slider"?(h.openBlock(),h.createBlock(h.unref(Km),{key:13},{default:h.withCtx(()=>{var b;return[h.createVNode(sBe,h.mergeProps({value:i.value,"onUpdate:value":a[12]||(a[12]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):o.item.type==="boderRadiusSelect"?(h.openBlock(),h.createBlock(h.unref(Km),{key:14},{default:h.withCtx(()=>{var b;return[h.createVNode(dBe,h.mergeProps({value:i.value,"onUpdate:value":a[13]||(a[13]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):h.createCommentVNode("",!0),o.item.tip?(h.openBlock(),h.createBlock(h.unref(NO),{key:15,title:o.item.tip},{default:h.withCtx(()=>[h.createVNode(h.unref(DO),{style:{color:"#666"}})]),_:1},8,["title"])):h.createCommentVNode("",!0)]}),_:1},8,["label","name","rules"]))}}),[["__scopeId","data-v-04c55003"]]),Qu=h.defineComponent({name:"DCusForm",props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(t,{emit:e}){const n=h.ref({}),r=h.ref(),i=h.ref({}),o=h.computed(()=>t.columns.map(f=>({...f,rules:(f==null?void 0:f.rules)||[]}))),a=f=>{f==null||f.forEach(d=>{var p;if(d.type==="group")a(d.children);else if(d.type==="dependency"){const g=(p=d.children)==null?void 0:p.call(d,Xh(n.value,d.name||[]),n);a(g)}else{if(d.type==="divider")return;const g=Ut(t.formModel,d.prop);n.value[d.prop]=d!=null&&d.valueToForm?d.valueToForm(g,t.formModel):g??d.defaultValue,d.format?d.format(i,n.value[d.prop]):i.value[d.prop]=g??d.defaultValue}})},s=(f,d)=>{n.value[d.prop]=f,d.format?d.format(i,f):i.value[d.prop]=f,e("change",i.value)},l=f=>{var d;switch(f.type){case"dependency":{const p=(d=f.children)==null?void 0:d.call(f,Xh(n.value,f.name||[]),n);return a(p),c(p)}case"group":return u(f);default:return React.createElement(hBe,{key:f.prop,item:f,modelValue:n.value[f.prop],"onUpdate:modelValue":p=>{s(p,f)}})}},u=f=>{var d;return React.createElement(n0,{style:{borderRadius:0}},React.createElement(qO,{style:{borderRadius:0},key:f.prop,header:f.label},(d=f.children)==null?void 0:d.map(p=>l(p))))},c=f=>f.map(d=>{switch(d.type){case"group":return u(d);default:return l(d)}});return h.watch(()=>o.value,f=>{f&&a(f)},{immediate:!0}),()=>React.createElement(mr,{model:n,colon:!1,"label-col":{span:8},ref:r,layout:"horizontal",size:"small"},c(o.value))}});Qu.install=t=>(t.component(Qu.name,Qu),t);const nU=h.defineComponent({__name:"Config",props:HM,emits:["change"],setup(t,{emit:e}){const n=t,r=e,i=h.computed(()=>[{label:"内容",prop:"text",type:"input",defaultValue:n.text},{label:"字体",prop:"fontSize",type:"inputNumber",defaultValue:n.fontSize},{label:"颜色",prop:"color",type:"colorSelect",defaultValue:n.color},{label:"对齐",prop:"textAlign",type:"radioGroup",defaultValue:n.textAlign,fieldProps:{options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}}]),o=a=>{r("change",a)};return(a,s)=>(h.openBlock(),h.createBlock(h.unref(Qu),h.mergeProps({columns:i.value},a.$attrs,{onChange:o}),null,16,["columns"]))}});Gf.Config=nU,Gf.install=t=>(t.component(Gf.name,Gf),t);const pBe=Object.freeze(Object.defineProperty({__proto__:null,Config:nU,default:Gf,defaultPropsValue:W3e,titleProps:HM},Symbol.toStringTag,{value:"Module"}));/*! ***************************************************************************** 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 GM=function(t,e){return GM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},GM(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");GM(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var gBe=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),vBe=function(){function t(){this.browser=new gBe,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 t}(),jf=new vBe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(jf.wxa=!0,jf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jf.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(jf.node=!0,jf.svgSupported=!0):mBe(navigator.userAgent,jf);function mBe(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Ct=jf;var jM=12,rU="sans-serif",Hu=jM+"px "+rU,yBe=20,bBe=100,_Be="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OBe(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n=0)s=a*n.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",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function QBe(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[f]&&p===o[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?gU(s,a):gU(a,s))}function mU(t){return t.nodeName.toUpperCase()==="CANVAS"}var HBe=/([&<>"'])/g,GBe={"&":"&","<":"<",">":">",'"':""","'":"'"};function _i(t){return t==null?"":(t+"").replace(HBe,function(e,n){return GBe[n]})}var jBe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oI=[],UBe=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function aI(t,e,n,r){return n=n||{},r?yU(t,e,n):UBe&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):yU(t,e,n),n}function yU(t,e,n){if(Ct.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(mU(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(iI(oI,t,r,i)){n.zrX=oI[0],n.zrY=oI[1];return}}n.zrX=n.zrY=0}function sI(t){return t||window.event}function ia(t,e,n){if(e=sI(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];a&&aI(t,a,e,n)}else{aI(t,e,e,n);var o=ZBe(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&jBe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function ZBe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function lI(t,e,n,r){t.addEventListener(e,n,r)}function XBe(t,e,n,r){t.removeEventListener(e,n,r)}var zl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function bU(t){return t.which===2||t.which===3}var YBe=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var i=e.touches;if(i){for(var o={points:[],touches:[],target:n,event:e},a=0,s=i.length;a1&&r&&r.length>1){var o=_U(r)/_U(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=qBe(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Ui(){return[1,0,0,1,0,0]}function P0(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mw(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ks(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ka(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Yu(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),f=Math.cos(n);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=o*f+l*c,t[3]=-o*c+f*l,t[4]=f*(a-r[0])+c*(u-r[1])+r[0],t[5]=f*(u-r[1])-c*(a-r[0])+r[1],t}function Iw(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Zf(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function OU(t){var e=Ui();return Mw(e,t),e}const KBe=Object.freeze(Object.defineProperty({__proto__:null,clone:OU,copy:Mw,create:Ui,identity:P0,invert:Zf,mul:ks,rotate:Yu,scale:Iw,translate:Ka},Symbol.toStringTag,{value:"Module"}));var ot=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,i){e.x=n.x+r.x*i,e.y=n.y+r.y*i},t.lerp=function(e,n,r,i){var o=1-i;e.x=o*n.x+i*r.x,e.y=o*n.y+i*r.y},t}(),Dw=Math.min,Rw=Math.max,Xf=new ot,Yf=new ot,qf=new ot,Kf=new ot,$0=new ot,A0=new ot,JBe=function(){function t(e,n,r,i){r<0&&(e=e+r,r=-r),i<0&&(n=n+i,i=-i),this.x=e,this.y=n,this.width=r,this.height=i}return t.prototype.union=function(e){var n=Dw(e.x,this.x),r=Dw(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rw(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rw(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,i=e.height/n.height,o=Ui();return Ka(o,o,[-n.x,-n.y]),Iw(o,o,[r,i]),Ka(o,o,[e.x,e.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(og&&(g=O,vg&&(g=w,y=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xf.x=qf.x=n.x,Xf.y=Kf.y=n.y,Yf.x=Kf.x=n.x+n.width,Yf.y=qf.y=n.y+n.height,Xf.transform(r),Kf.transform(r),Yf.transform(r),qf.transform(r),e.x=Dw(Xf.x,Yf.x,qf.x,Kf.x),e.y=Dw(Xf.y,Yf.y,qf.y,Kf.y);var l=Rw(Xf.x,Yf.x,qf.x,Kf.x),u=Rw(Xf.y,Yf.y,qf.y,Kf.y);e.width=l-e.x,e.height=u-e.y},t}();const at=JBe;var wU="silent";function e6e(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:t6e}}function t6e(){zl(this.event)}var n6e=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ra),E0=function(){function t(e,n){this.x=e,this.y=n}return t}(),r6e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cI=new at(0,0,0,0),SU=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this)||this;return s._hovered=new E0(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new n6e,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new VBe(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(V(r6e,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=CU(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new E0(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new E0(0,0)},e.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=e6e(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new E0(n,r);if(xU(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new at(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(cI.copy(d.getBoundingRect()),d.transform&&cI.applyTransform(d.transform),cI.intersect(c)&&s.push(d))}if(s.length)for(var p=4,g=Math.PI/12,v=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function i6e(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?wU:!0}return!1}function xU(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=i6e(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==wU)){e.target=a;break}}}function CU(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var TU=32,M0=7;function o6e(t){for(var e=0;t>=TU;)e|=t&1,t>>=1;return t+e}function PU(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function a6e(t,e,n){for(n--;e>>1,i(o,t[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;u>0;)t[a+u]=t[a+u-1],u--}t[a]=o}}function fI(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function dI(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function s6e(t,e){var n=M0,r,i,o=0,a=[];r=[],i=[];function s(p,g){r[o]=p,i[o]=g,o+=1}function l(){for(;o>1;){var p=o-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]i[p+1])break;c(p)}}function u(){for(;o>1;){var p=o-2;p>0&&i[p-1]=M0||T>=M0);if($)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),g===1){for(y=0;y=0;y--)t[x+y]=t[S+y];t[w]=a[O];return}for(var T=n;;){var $=0,A=0,P=!1;do if(e(a[O],t[b])<0){if(t[w--]=t[b--],$++,A=0,--g===0){P=!0;break}}else if(t[w--]=a[O--],A++,$=0,--m===1){P=!0;break}while(($|A)=0;y--)t[x+y]=t[S+y];if(g===0){P=!0;break}}if(t[w--]=a[O--],--m===1){P=!0;break}if(A=m-fI(t[b],a,0,m,m-1,e),A!==0){for(w-=A,O-=A,m-=A,x=w+1,S=O+1,y=0;y=M0||A>=M0);if(P)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),m===1){for(w-=g,b-=g,x=w+1,S=b+1,y=g-1;y>=0;y--)t[x+y]=t[S+y];t[w]=a[O]}else{if(m===0)throw new Error;for(S=w-(m-1),y=0;ys&&(l=s),$U(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Oo=1,I0=2,Xp=4,AU=!1;function hI(){AU||(AU=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function EU(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l6e=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=EU}return t.prototype.traverse=function(e,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(hI(),c.z=0),isNaN(c.z2)&&(hI(),c.z2=0),isNaN(c.zlevel)&&(hI(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Nw;Nw=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var D0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-D0.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?D0.bounceIn(t*2)*.5:D0.bounceOut(t*2-1)*.5+.5}},Lw=Math.pow,qu=Math.sqrt,Bw=1e-8,MU=1e-4,IU=qu(3),Vw=1/3,Ns=Uu(),oa=Uu(),Yp=Uu();function Ku(t){return t>-Bw&&tBw||t<-Bw}function yr(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function RU(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function zw(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Ku(c)&&Ku(f))if(Ku(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[p++]=g)}else{var v=f*f-4*c*d;if(Ku(v)){var m=f/c,g=-s/a+m,y=-m/2;g>=0&&g<=1&&(o[p++]=g),y>=0&&y<=1&&(o[p++]=y)}else if(v>0){var b=qu(v),O=c*s+1.5*a*(-f+b),w=c*s+1.5*a*(-f-b);O<0?O=-Lw(-O,Vw):O=Lw(O,Vw),w<0?w=-Lw(-w,Vw):w=Lw(w,Vw);var g=(-s-(O+w))/(3*a);g>=0&&g<=1&&(o[p++]=g)}else{var S=(2*c*s-3*a*f)/(2*qu(c*c*c)),x=Math.acos(S)/3,T=qu(c),$=Math.cos(x),g=(-s-2*T*$)/(3*a),y=(-s+T*($+IU*Math.sin(x)))/(3*a),A=(-s+T*($-IU*Math.sin(x)))/(3*a);g>=0&&g<=1&&(o[p++]=g),y>=0&&y<=1&&(o[p++]=y),A>=0&&A<=1&&(o[p++]=A)}}return p}function kU(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Ku(a)){if(DU(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ku(c))i[0]=-o/(2*a);else if(c>0){var f=qu(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ju(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function NU(t,e,n,r,i,o,a,s,l,u,c){var f,d=.005,p=1/0,g,v,m,y;Ns[0]=l,Ns[1]=u;for(var b=0;b<1;b+=.05)oa[0]=yr(t,n,i,a,b),oa[1]=yr(e,r,o,s,b),m=Xu(Ns,oa),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ku(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=qu(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function LU(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function R0(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function BU(t,e,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Ns[0]=a,Ns[1]=s;for(var d=0;d<1;d+=.05){oa[0]=Dr(t,n,i,d),oa[1]=Dr(e,r,o,d);var p=Xu(Ns,oa);p=0&&p=1?1:zw(0,r,o,1,l,s)&&yr(0,i,a,1,s[0])}}}var h6e=function(){function t(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||Qn,this.ondestroy=e.ondestroy||Qn,this.onrestart=e.onrestart||Qn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=e-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ze(e)?e:D0[e]||gI(e)},t}(),VU=function(){function t(e){this.value=e}return t}(),p6e=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new VU(e);return this.insertEntry(n),n},t.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++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),k0=function(){function t(e){this._list=new p6e,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,o=null;if(i[e]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new VU(n),s.key=e,r.insertEntry(s),i[e]=s}return o},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),zU={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 Ja(t){return t=Math.round(t),t<0?0:t>255?255:t}function g6e(t){return t=Math.round(t),t<0?0:t>360?360:t}function N0(t){return t<0?0:t>1?1:t}function vI(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ja(parseFloat(e)/100*255):Ja(parseInt(e,10))}function Jf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?N0(parseFloat(e)/100):N0(parseFloat(e))}function mI(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function ec(t,e,n){return t+(e-t)*n}function aa(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function yI(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var FU=new k0(20),Fw=null;function qp(t,e){Fw&&yI(Fw,e),Fw=FU.put(t,Fw||e.slice())}function Oi(t,e){if(t){e=e||[];var n=FU.get(t);if(n)return yI(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in zU)return yI(e,zU[r]),qp(t,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){aa(e,0,0,0,1);return}return aa(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),qp(t,e),e}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){aa(e,0,0,0,1);return}return aa(e,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),qp(t,e),e}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?aa(e,+u[0],+u[1],+u[2],1):aa(e,0,0,0,1);c=Jf(u.pop());case"rgb":if(u.length>=3)return aa(e,vI(u[0]),vI(u[1]),vI(u[2]),u.length===3?c:Jf(u[3])),qp(t,e),e;aa(e,0,0,0,1);return;case"hsla":if(u.length!==4){aa(e,0,0,0,1);return}return u[3]=Jf(u[3]),bI(u,e),qp(t,e),e;case"hsl":if(u.length!==3){aa(e,0,0,0,1);return}return bI(u,e),qp(t,e),e;default:return}}aa(e,0,0,0,1)}}function bI(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Jf(t[1]),i=Jf(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return e=e||[],aa(e,Ja(mI(a,o,n+1/3)*255),Ja(mI(a,o,n)*255),Ja(mI(a,o,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function v6e(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-e)/6+a/2)/a,f=((o-n)/6+a/2)/a,d=((o-r)/6+a/2)/a;e===o?l=d-f:n===o?l=1/3+c-d:r===o&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return t[3]!=null&&p.push(t[3]),p}}function Ww(t,e){var n=Oi(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return es(n,n.length===4?"rgba":"rgb")}}function m6e(t){var e=Oi(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function L0(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Ja(ec(a[0],s[0],l)),n[1]=Ja(ec(a[1],s[1],l)),n[2]=Ja(ec(a[2],s[2],l)),n[3]=N0(ec(a[3],s[3],l)),n}}var y6e=L0;function _I(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Oi(e[i]),s=Oi(e[o]),l=r-i,u=es([Ja(ec(a[0],s[0],l)),Ja(ec(a[1],s[1],l)),Ja(ec(a[2],s[2],l)),N0(ec(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var b6e=_I;function Kp(t,e,n,r){var i=Oi(t);if(t)return i=v6e(i),e!=null&&(i[0]=g6e(e)),n!=null&&(i[1]=Jf(n)),r!=null&&(i[2]=Jf(r)),es(bI(i),"rgba")}function B0(t,e){var n=Oi(t);if(n&&e!=null)return n[3]=N0(e),es(n,"rgba")}function es(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function V0(t,e){var n=Oi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function _6e(){return es([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var WU=new k0(100);function Qw(t){if(Ie(t)){var e=WU.get(t);return e||(e=Ww(t,-.1),WU.put(t,e)),e}else if(b0(t)){var n=he({},t);return n.colorStops=me(t.colorStops,function(r){return{offset:r.offset,color:Ww(r.color,-.1)}}),n}return t}const O6e=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:L0,fastMapToColor:y6e,lerp:_I,lift:Ww,liftColor:Qw,lum:V0,mapToColor:b6e,modifyAlpha:B0,modifyHSL:Kp,parse:Oi,random:_6e,stringify:es,toHex:m6e},Symbol.toStringTag,{value:"Module"}));var Hw=Math.round;function z0(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Oi(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var QU=1e-4;function tc(t){return t-QU}function Gw(t){return Hw(t*1e3)/1e3}function OI(t){return Hw(t*1e4)/1e4}function w6e(t){return"matrix("+Gw(t[0])+","+Gw(t[1])+","+Gw(t[2])+","+Gw(t[3])+","+OI(t[4])+","+OI(t[5])+")"}var S6e={left:"start",right:"end",center:"middle",middle:"middle"};function x6e(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function C6e(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function T6e(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function HU(t){return t&&!!t.image}function P6e(t){return t&&!!t.svgElement}function wI(t){return HU(t)||P6e(t)}function GU(t){return t.type==="linear"}function jU(t){return t.type==="radial"}function UU(t){return t&&(t.type==="linear"||t.type==="radial")}function jw(t){return"url(#"+t+")"}function ZU(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function XU(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*S0,i=Je(t.scaleX,1),o=Je(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Hw(a*S0)+"deg, "+Hw(s*S0)+"deg)"),l.join(" ")}var $6e=function(){return Ct.hasGlobalWindow&&ze(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&ea("Base64 isn't natively supported in the current environment."),null}}(),SI=Array.prototype.slice;function Fl(t,e,n){return(e-t)*n+t}function xI(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=KU,l=n;if(Wr(n)){var u=I6e(n);s=u,(u===1&&!Et(n[0])||u===2&&!Et(n[0][0]))&&(a=!0)}else if(Et(n)&&!ju(n))s=Xw;else if(Ie(n))if(!isNaN(+n))s=Xw;else{var c=Oi(n);c&&(l=c,s=W0)}else if(b0(n)){var f=he({},l);f.colorStops=me(n.colorStops,function(p){return{offset:p.offset,color:Oi(p.color)}}),GU(n)?s=CI:jU(n)&&(s=TI),l=f}o===0?this.valType=s:(s!==this.valType||s===KU)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ze(r)?r:D0[r]||gI(r)),i.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,m){return v.time-m.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=qw(i),u=JU(i),c=0;c=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}g=a[c+1],p=a[c]}if(p&&g){this._lastFr=c,this._lastFrP=n;var m=g.percent-p.percent,y=m===0?1:d((n-p.percent)/m,1);g.easingFunc&&(y=g.easingFunc(y));var b=r?this._additiveValue:u?Q0:e[l];if((qw(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:g.rawValue;else if(qw(o))o===Yw?xI(b,p[i],g[i],y):A6e(b,p[i],g[i],y);else if(JU(o)){var O=p[i],w=g[i],S=o===CI;e[l]={type:S?"linear":"radial",x:Fl(O.x,w.x,y),y:Fl(O.y,w.y,y),colorStops:me(O.colorStops,function(T,$){var A=w.colorStops[$];return{offset:Fl(T.offset,A.offset,y),color:Zw(xI([],T.color,A.color,y))}}),global:w.global},S?(e[l].x2=Fl(O.x2,w.x2,y),e[l].y2=Fl(O.y2,w.y2,y)):e[l].r=Fl(O.r,w.r,y)}else if(u)xI(b,p[i],g[i],y),r||(e[l]=Zw(b));else{var x=Fl(p[i],g[i],y);r?this._additiveValue=x:e[l]=x}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===Xw?e[r]=e[r]+i:n===W0?(Oi(e[r],Q0),Uw(Q0,Q0,i,1),e[r]=Zw(Q0)):n===Yw?Uw(e[r],e[r],i,1):n===qU&&YU(e[r],e[r],i,1)},t}(),PI=function(){function t(e,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&i){ea("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,bt(n),r)},t.prototype.whenWithKeys=function(e,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,F0(u),i),this._trackKeys.push(s)}l.addKeyframe(e,F0(n[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}();function Jp(){return new Date().getTime()}var R6e=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Jp()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Nw(r),!n._paused&&n.update())}Nw(r)},e.prototype.start=function(){this._running||(this._time=Jp(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Jp(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Jp()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var i=new PI(n,r.loop);return this.addAnimator(i),i},e}(ra),k6e=300,$I=Ct.domSupported,AI=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=me(t,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:t,touch:e,pointer:r}}(),eZ={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tZ=!1;function EI(t){var e=t.pointerType;return e==="pen"||e==="touch"}function N6e(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function MI(t){t&&(t.zrByTouch=!0)}function L6e(t,e){return ia(t.dom,new B6e(t,e),!0)}function nZ(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var B6e=function(){function t(e,n){this.stopPropagation=Qn,this.stopImmediatePropagation=Qn,this.preventDefault=Qn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),ts={mousedown:function(t){t=ia(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ia(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ia(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ia(this.dom,t);var e=t.toElement||t.relatedTarget;nZ(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){tZ=!0,t=ia(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){tZ||(t=ia(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ia(this.dom,t),MI(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ts.mousemove.call(this,t),ts.mousedown.call(this,t)},touchmove:function(t){t=ia(this.dom,t),MI(t),this.handler.processGesture(t,"change"),ts.mousemove.call(this,t)},touchend:function(t){t=ia(this.dom,t),MI(t),this.handler.processGesture(t,"end"),ts.mouseup.call(this,t),+new Date-+this.__lastTouchMomentaZ||t<-aZ}var td=[],eg=[],LI=Ui(),BI=Math.abs,Q6e=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return ed(this.rotation)||ed(this.x)||ed(this.y)||ed(this.scaleX-1)||ed(this.scaleY-1)||ed(this.skewX)||ed(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(oZ(r),this.invTransform=null);return}r=r||Ui(),n?this.getLocalTransform(r):oZ(r),e&&(n?ks(r,e,r):Mw(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(td);var r=td[0]<0?-1:1,i=td[1]<0?-1:1,o=((td[0]-r)*n+r)/td[0]||0,a=((td[1]-i)*n+i)/td[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Ui(),Zf(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ui(),ks(eg,e.invTransform,n),n=eg);var r=this.originX,i=this.originY;(r||i)&&(LI[4]=r,LI[5]=i,ks(eg,n,LI),eg[4]-=r,eg[5]-=i,n=eg),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],i=this.invTransform;return i&&Ir(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&Ir(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&BI(e[0]-1)>1e-10&&BI(e[3]-1)>1e-10?Math.sqrt(BI(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){sZ(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var g=r+s,v=i+l;n[4]=-g*o-d*v*a,n[5]=-v*a-p*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=p*o,n[2]=d*a,u&&Yu(n,n,u),n[4]+=r+c,n[5]+=i+f,n},t.initDefaultProps=function(){var e=t.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}(),t}(),Ls=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function sZ(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function tS(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=ns(r[0],n.width),u+=ns(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var VI="__zr_normal__",zI=Ls.concat(["ignore"]),H6e=ta(Ls,function(t,e){return t[e]=!0,t},{ignore:!1}),ng={},G6e=new at(0,0,0,0),nS=function(){function t(e){this.id=XM(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=G6e;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ng,r,c):tS(ng,r,c),o.x=ng.x,o.y=ng.y,a=ng.align,s=ng.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=ns(f[0],c.width),p=ns(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+p+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],u||(o.originX=-g[0],o.originY=-g[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,O=void 0;v&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),O=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),O=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||O!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=O,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=Oo,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?NI:kI},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Oi(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,es(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},he(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(Qe(e))for(var r=e,i=bt(r),o=0;o0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(VI,!1,e)},t.prototype.useState=function(e,n,r,i){var o=e===VI,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){ea("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,c),d&&d.useState(e,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oo),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l0,g);var v=this._textContent,m=this._textGuide;v&&v.useStates(e,n,d),m&&m.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oo)}},t.prototype.isSilent=function(){for(var e=this.silent,n=this.parent;!e&&n;){if(n.silent){e=!0;break}n=n.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var i=this.currentStates.slice(),o=st(i,e),a=st(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,i=0;i=0&&o.splice(a,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,i=r.length,o=[],a=0;a0&&n.during&&o[0].during(function(g,v){n.during(v)});for(var d=0;d0||i.force&&!a.length){var $=void 0,A=void 0,P=void 0;if(s){A={},d&&($={});for(var w=0;w=0&&(i.splice(o,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var i=st(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,i=this._children,o=st(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Ee(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ie(t)?iVe(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Nn(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),vZ),t=(+t).toFixed(e),n?t:+t}function So(t){return t.sort(function(e,n){return e-n}),t}function rs(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return rS(t)}function rS(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function GI(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function oVe(t,e,n){if(!t[e])return 0;var r=mZ(t,n);return r[e]||0}function mZ(t,e){var n=ta(t,function(p,g){return p+(isNaN(g)?0:g)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=me(t,function(p){return(isNaN(p)?0:p)/n*r*100}),o=r*100,a=me(i,function(p){return Math.floor(p)}),s=ta(a,function(p,g){return p+g},0),l=me(i,function(p,g){return p-a[g]});su&&(u=l[f],c=f);++a[c],l[c]=0,++s}return me(a,function(p){return p/r})}function aVe(t,e){var n=Math.max(rs(t),rs(e)),r=t+e;return n>vZ?r:Nn(r,n)}var jI=9007199254740991;function UI(t){var e=Math.PI*2;return(t%e+e)%e}function rg(t){return t>-gZ&&t=10&&e++,e}function ZI(t,e){var n=U0(t),r=Math.pow(10,n),i=t/r,o;return e?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,t=o*r,n>=-20?+t.toFixed(n<0?-n:0):t}function iS(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function XI(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r=0||o&&st(o,l)<0)){var u=r.getShallow(l,e);u!=null&&(a[t[s][0]]=u)}}return a}}var RVe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kVe=ad(RVe),NVe=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return kVe(this,e,n)},t}(),eD=new k0(50);function LVe(t){if(typeof t=="string"){var e=eD.get(t);return e&&e.image}else return t}function tD(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var o=eD.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!lS(e)&&o.pending.push(a)):(e=qa.loadImage(t,kZ,kZ),e.__zrImageSrc=t,eD.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}else return t;else return e}function kZ(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=wo(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function BZ(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=wo(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=a===0?BVe(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=wo(t,r)}return t===""&&(t=e.placeholder),t}function BVe(t,e,n,r){for(var i=0,o=0,a=t.length;op&&u){var g=Math.floor(p/s);f=f.slice(0,g)}if(t&&o&&c!=null)for(var v=LZ(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&rD(n,t.substring(s,u),e,a),rD(n,l[2],e,a,l[1]),s=nD.lastIndex}si){S>0?(b.tokens=b.tokens.slice(0,S),m(b,w,O),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var I=T.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,c.push(x),x.contentWidth=wo(x.text,P);else{if(R){var L=T.backgroundColor,D=L&&L.image;D&&(D=LVe(D),lS(D)&&(x.width=Math.max(x.width,D.width*M/D.height)))}var B=g&&r!=null?r-w:null;B!=null&&B0&&g+r.accumWidth>r.width&&(c=e.split(` `),u=!0),r.accumWidth=g}else{var v=zZ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+p,f=v.linesWidths,c=v.lines}}else c=e.split(` `);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var HVe=ta(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function GVe(t){return QVe(t)?!!HVe[t]:!0}function zZ(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+p>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):g?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p));continue}c+=p,g?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var iD="__zr_style_"+Math.round(Math.random()*10),sd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sd[iD]=!0;var FZ=["z","z2","invisible"],jVe=["invisible"],UVe=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=bt(n),i=0;i1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(cS[0]=lD(i)*n+t,cS[1]=sD(i)*r+e,fS[0]=lD(o)*n+t,fS[1]=sD(o)*r+e,u(s,cS,fS),c(l,cS,fS),i=i%ld,i<0&&(i=i+ld),o=o%ld,o<0&&(o=o+ld),i>o&&!a?o+=ld:ii&&(dS[0]=lD(p)*n+t,dS[1]=sD(p)*r+e,u(s,dS,s),c(l,dS,l))}var ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ud=[],cd=[],zs=[],nc=[],Fs=[],Ws=[],uD=Math.min,cD=Math.max,fd=Math.cos,dd=Math.sin,Ql=Math.abs,fD=Math.PI,rc=fD*2,dD=typeof Float32Array<"u",q0=[];function hD(t){var e=Math.round(t/fD*1e8)/1e8;return e%2*fD}function pD(t,e){var n=hD(t[0]);n<0&&(n+=rc);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=rc?i=n+rc:e&&n-i>=rc?i=n-rc:!e&&n>i?i=n+(rc-hD(n-i)):e&&n0&&(this._ux=Ql(r/Jw/e)||0,this._uy=Ql(r/Jw/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(ln.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Ql(e-this._xi),i=Ql(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(ln.L,e,n),this._ctx&&o&&this._ctx.lineTo(e,n),o)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){return this._drawPendingPt(),this.addData(ln.C,e,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,o,a),this._xi=o,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(ln.Q,e,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(e,n,r,i,o,a){this._drawPendingPt(),q0[0]=i,q0[1]=o,pD(q0,a),i=q0[0],o=q0[1];var s=o-i;return this.addData(ln.A,e,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(e,n,r,i,o,a),this._xi=fd(o)*r+e,this._yi=dd(o)*r+n,this},t.prototype.arcTo=function(e,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,o),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(ln.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ln.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&dD&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){zs[0]=zs[1]=Fs[0]=Fs[1]=Number.MAX_VALUE,nc[0]=nc[1]=Ws[0]=Ws[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||Ql(O)>i||d===n-1)&&(v=Math.sqrt(b*b+O*O),o=m,a=y);break}case ln.C:{var w=e[d++],S=e[d++],m=e[d++],y=e[d++],x=e[d++],T=e[d++];v=u6e(o,a,w,S,m,y,x,T,10),o=x,a=T;break}case ln.Q:{var w=e[d++],S=e[d++],m=e[d++],y=e[d++];v=f6e(o,a,w,S,m,y,10),o=m,a=y;break}case ln.A:var $=e[d++],A=e[d++],P=e[d++],M=e[d++],I=e[d++],R=e[d++],L=R+I;d+=1,g&&(s=fd(I)*P+$,l=dd(I)*M+A),v=cD(P,M)*uD(rc,Math.abs(R)),o=fd(L)*P+$,a=dd(L)*M+A;break;case ln.R:{s=o=e[d++],l=a=e[d++];var D=e[d++],B=e[d++];v=D*2+B*2;break}case ln.Z:{var b=s-o,O=l-a;v=Math.sqrt(b*b+O*O),o=s,a=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,d,p=n<1,g,v,m=0,y=0,b,O=0,w,S;if(!(p&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,v=this._pathLen,b=n*v,!b)))e:for(var x=0;x0&&(e.lineTo(w,S),O=0),T){case ln.M:s=u=r[x++],l=c=r[x++],e.moveTo(u,c);break;case ln.L:{f=r[x++],d=r[x++];var A=Ql(f-u),P=Ql(d-c);if(A>i||P>o){if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}m+=M}e.lineTo(f,d),u=f,c=d,O=0}else{var R=A*A+P*P;R>O&&(w=f,S=d,O=R)}break}case ln.C:{var L=r[x++],D=r[x++],B=r[x++],F=r[x++],z=r[x++],W=r[x++];if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;Ju(u,L,B,z,I,ud),Ju(c,D,F,W,I,cd),e.bezierCurveTo(ud[1],cd[1],ud[2],cd[2],ud[3],cd[3]);break e}m+=M}e.bezierCurveTo(L,D,B,F,z,W),u=z,c=W;break}case ln.Q:{var L=r[x++],D=r[x++],B=r[x++],F=r[x++];if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;R0(u,L,B,I,ud),R0(c,D,F,I,cd),e.quadraticCurveTo(ud[1],cd[1],ud[2],cd[2]);break e}m+=M}e.quadraticCurveTo(L,D,B,F),u=B,c=F;break}case ln.A:var j=r[x++],H=r[x++],Z=r[x++],J=r[x++],se=r[x++],oe=r[x++],de=r[x++],ie=!r[x++],ue=Z>J?Z:J,ee=Ql(Z-J)>.001,X=se+oe,Y=!1;if(p){var M=g[y++];m+M>b&&(X=se+oe*(b-m)/M,Y=!0),m+=M}if(ee&&e.ellipse?e.ellipse(j,H,Z,J,de,se,X,ie):e.arc(j,H,ue,se,X,ie),Y)break e;$&&(s=fd(se)*Z+j,l=dd(se)*J+H),u=fd(X)*Z+j,c=dd(X)*J+H;break;case ln.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var le=r[x++],ve=r[x++];if(p){var M=g[y++];if(m+M>b){var ye=b-m;e.moveTo(f,d),e.lineTo(f+uD(ye,le),d),ye-=le,ye>0&&e.lineTo(f+le,d+uD(ye,ve)),ye-=ve,ye>0&&e.lineTo(f+cD(le-ye,0),d+ve),ye-=le,ye>0&&e.lineTo(f,d+cD(ve-ye,0));break e}m+=M}e.rect(f,d,le,ve);break;case ln.Z:if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}m+=M}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ln,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function ic(t,e,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+f&&c>r+f&&c>o+f&&c>s+f||ct+f&&u>n+f&&u>i+f&&u>a+f||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=K0);var d=Math.atan2(l,s);return d<0&&(d+=K0),d>=r&&d<=i||d+K0>=r&&d+K0<=i}function Hl(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var oc=Qs.CMD,hd=Math.PI*2,eze=1e-4;function tze(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&nze(),p=yr(e,r,o,s,ua[0]),d>1&&(g=yr(e,r,o,s,ua[1]))),d===2?me&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=Dr(e,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Si[0]=-l,Si[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=hd-1e-4){r=0,i=hd;var c=o?1:-1;return a>=Si[0]+t&&a<=Si[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=hd,i+=hd);for(var d=0,p=0;p<2;p++){var g=Si[p];if(g+t>a){var v=Math.atan2(s,g),c=o?1:-1;v<0&&(v=hd+v),(v>=r&&v<=i||v+hd>=r&&v+hd<=i)&&(v>Math.PI/2&&v1&&(n||(s+=Hl(l,u,c,f,r,i))),m&&(l=o[g],u=o[g+1],c=l,f=u),v){case oc.M:c=o[g++],f=o[g++],l=c,u=f;break;case oc.L:if(n){if(ic(l,u,o[g],o[g+1],e,r,i))return!0}else s+=Hl(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.C:if(n){if(KVe(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=rze(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.Q:if(n){if(GZ(l,u,o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=ize(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.A:var y=o[g++],b=o[g++],O=o[g++],w=o[g++],S=o[g++],x=o[g++];g+=1;var T=!!(1-o[g++]);d=Math.cos(S)*O+y,p=Math.sin(S)*w+b,m?(c=d,f=p):s+=Hl(l,u,d,p,r,i);var $=(r-y)*w/O+y;if(n){if(JVe(y,b,w,S,S+x,T,e,$,i))return!0}else s+=oze(y,b,w,S,S+x,T,$,i);l=Math.cos(S+x)*O+y,u=Math.sin(S+x)*w+b;break;case oc.R:c=l=o[g++],f=u=o[g++];var A=o[g++],P=o[g++];if(d=c+A,p=f+P,n){if(ic(c,f,d,f,e,r,i)||ic(d,f,d,p,e,r,i)||ic(d,p,c,p,e,r,i)||ic(c,p,c,f,e,r,i))return!0}else s+=Hl(d,f,d,p,r,i),s+=Hl(c,p,c,f,r,i);break;case oc.Z:if(n){if(ic(l,u,c,f,e,r,i))return!0}else s+=Hl(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!tze(u,f)&&(s+=Hl(l,u,c,f,r,i)||0),s!==0}function aze(t,e,n){return UZ(t,0,!1,e,n)}function sze(t,e,n,r){return UZ(t,e,!0,n,r)}var pS=Ge({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sd),lze={style:Ge({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uS.style)},gD=Ls.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?kI:r>.2?W6e:NI}else if(n)return NI}return kI},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ie(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=V0(n,0)0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Xp)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??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 n},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),sze(s,l/u,n,r)))return!0}if(this.hasFill())return aze(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Xp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:he(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Xp)},e.prototype.createStyle=function(n){return w0(pS,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=he({},this.shape))},e.prototype._applyStateObj=function(n,r,i,o,a,s){t.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=he({},i.shape),he(u,r.shape)):(u=he({},o?this.shape:i.shape),he(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=he({},this.shape);for(var c={},f=bt(u),d=0;d0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return w0(uze,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=H0(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(la);ag.prototype.type="tspan";var cze=Ge({x:0,y:0},sd),fze={style:Ge({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uS.style)};function dze(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZZ=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return w0(cze,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=dze(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fze},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new at(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(la);ZZ.prototype.type="image";const Rr=ZZ;function hze(t,e){var n=e.x,r=e.y,i=e.width,o=e.height,a=e.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),t.moveTo(n+s,r),t.lineTo(n+i-l,r),l!==0&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),u!==0&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+c,r+o),c!==0&&t.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var sg=Math.round;function XZ(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(sg(r*2)===sg(i*2)&&(t.x1=t.x2=pd(r,s,!0)),sg(o*2)===sg(a*2)&&(t.y1=t.y2=pd(o,s,!0))),t}}function YZ(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=pd(r,s,!0),t.y=pd(i,s,!0),t.width=Math.max(pd(r+o,s,!1)-t.x,o===0?0:1),t.height=Math.max(pd(i+a,s,!1)-t.y,a===0?0:1)),t}}function pd(t,e,n){if(!e)return t;var r=sg(t*2);return(r+sg(e))%2===0?r/2:(r+(n?1:-1))/2}var pze=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),gze={},qZ=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new pze},e.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=YZ(gze,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?hze(n,r):n.rect(i,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);qZ.prototype.type="rect";const Pt=qZ;var KZ={fill:"#000"},JZ=2,vze={style:Ge({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},uS.style)},eX=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=KZ,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,I=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),R=a.calculatedLineHeight,L=0;L=0&&(L=x[R],L.align==="right");)this._placeToken(L,n,$,y,I,"right",O),A-=L.width,I-=L.width,R--;for(M+=(o-(M-m)-(b-I)-A)/2;P<=R;)L=x[P],this._placeToken(L,n,$,y,M+L.width/2,"center",O),M+=L.width,P++;y+=$}},e.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var d=!n.isLineHolder&&vD(u);d&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var p=!!u.backgroundColor,g=n.textPadding;g&&(a=lX(a,s,g),f-=n.height/2-g[0]-n.innerHeight/2);var v=this._getOrCreateChild(ag),m=v.createStyle();v.useStyle(m);var y=this._defaultStyle,b=!1,O=0,w=sX("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),S=aX("stroke"in u?u.stroke:"stroke"in r?r.stroke:!p&&!l&&(!y.autoStroke||b)?(O=JZ,y.stroke):null),x=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=a,m.y=f,x&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=n.font||Hu,m.opacity=_o(u.opacity,r.opacity,1),rX(m,u),S&&(m.lineWidth=_o(u.lineWidth,r.lineWidth,O),m.lineDash=Je(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=S),w&&(m.fill=w);var T=n.contentWidth,$=n.contentHeight;v.setBoundingRect(new at(G0(m.x,T,m.textAlign),tg(m.y,$,m.textBaseline),T,$))},e.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,p=n.borderRadius,g=this,v,m;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(Pt),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=p,v.dirtyShape()}if(d){var b=v.style;b.fill=l||null,b.fillOpacity=Je(n.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Rr),m.onload=function(){g.dirtyStyle()};var O=m.style;O.image=l.image,O.x=i,O.y=o,O.width=a,O.height=s}if(u&&c){var b=v.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Je(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(v||m).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=_o(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return iX(n)&&(r=[n.fontStyle,n.fontWeight,nX(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&na(r)||n.textFont||n.font},e}(la),mze={left:!0,right:1,center:1},yze={top:1,bottom:1,middle:1},tX=["fontStyle","fontWeight","fontSize","fontFamily"];function nX(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?jM+"px":t+"px"}function rX(t,e){for(var n=0;n=0,o=!1;if(t instanceof yt){var a=dX(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(ug(s)||ug(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=he({},r),u=he({},u),u.fill=s):!ug(u.fill)&&ug(s)?(o=!0,r=he({},r),u=he({},u),u.fill=Qw(s)):!ug(u.stroke)&&ug(l)&&(o||(r=he({},r),u=he({},u)),u.stroke=Qw(l)),r.style=u}}if(r&&r.z2==null){o||(r=he({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??lg)}return r}function Cze(t,e,n){if(n&&n.z2==null){n=he({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??_ze)}return n}function Tze(t,e,n){var r=st(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:Sze(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=he({},n),a=he({opacity:r?i:o.opacity*.1},a),n.style=a),n}function OD(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return xze(this,t,e,n);if(t==="blur")return Tze(this,t,n);if(t==="select")return Cze(this,t,n)}return n}function vd(t){t.stateProxy=OD;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=OD),n&&(n.stateProxy=OD)}function mX(t,e){!wX(t,e)&&!t.__highByOuter&&Gl(t,hX)}function yX(t,e){!wX(t,e)&&!t.__highByOuter&&Gl(t,pX)}function jl(t,e){t.__highByOuter|=1<<(e||0),Gl(t,hX)}function Ul(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Gl(t,pX)}function bX(t){Gl(t,_D)}function wD(t){Gl(t,gX)}function _X(t){Gl(t,Oze)}function OX(t){Gl(t,wze)}function wX(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function SX(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,o){var a=yD(o),s=i==="series",l=s?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){gX(u)}),s&&n.push(o)),a.isBlured=!1}),V(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function SD(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),e.push(s)}})}),e}function ac(t,e,n){md(t,!0),Gl(t,vd),TD(t,e,n)}function Ize(t){md(t,!1)}function Ln(t,e,n,r){r?Ize(t):ac(t,e,n)}function TD(t,e,n){var r=Ke(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var CX=["emphasis","blur","select"],Dze={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hr(t,e,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=$D(g),s*=$D(g));var v=(i===o?-1:1)*$D((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=v*a*p/s,y=v*-s*d/a,b=(t+n)/2+OS(f)*m-_S(f)*y,O=(e+r)/2+_S(f)*m+OS(f)*y,w=EX([1,0],[(d-m)/a,(p-y)/s]),S=[(d-m)/a,(p-y)/s],x=[(-1*d-m)/a,(-1*p-y)/s],T=EX(S,x);if(AD(S,x)<=-1&&(T=ry),AD(S,x)>=1&&(T=0),T<0){var $=Math.round(T/ry*1e6)/1e6;T=ry*2+$%2*ry}c.addData(u,b,O,a,s,w,T,f,o)}var Vze=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,zze=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Fze(t){var e=new Qs;if(!t)return e;var n=0,r=0,i=n,o=r,a,s=Qs.CMD,l=t.match(Vze);if(!l)return e;for(var u=0;uL*L+D*D&&($=P,A=M),{cx:$,cy:A,x0:-c,y0:-f,x1:$*(i/S-1),y1:A*(i/S-1)}}function Zze(t){var e;if(ge(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Xze(t,e){var n,r=oy(e.r,0),i=oy(e.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,p=VX(u-l),g=p>MD&&p%MD;if(g>is&&(p=g),!(r>is))t.moveTo(c,f);else if(p>MD-is)t.moveTo(c+r*fg(l),f+r*yd(l)),t.arc(c,f,r,l,u,!d),i>is&&(t.moveTo(c+i*fg(u),f+i*yd(u)),t.arc(c,f,i,u,l,d));else{var v=void 0,m=void 0,y=void 0,b=void 0,O=void 0,w=void 0,S=void 0,x=void 0,T=void 0,$=void 0,A=void 0,P=void 0,M=void 0,I=void 0,R=void 0,L=void 0,D=r*fg(l),B=r*yd(l),F=i*fg(u),z=i*yd(u),W=p>is;if(W){var j=e.cornerRadius;j&&(n=Zze(j),v=n[0],m=n[1],y=n[2],b=n[3]);var H=VX(r-i)/2;if(O=Hs(H,y),w=Hs(H,b),S=Hs(H,v),x=Hs(H,m),A=T=oy(O,w),P=$=oy(S,x),(T>is||$>is)&&(M=r*fg(u),I=r*yd(u),R=i*fg(l),L=i*yd(l),pis){var ee=Hs(y,A),X=Hs(b,A),Y=SS(R,L,D,B,r,ee,d),le=SS(M,I,F,z,r,X,d);t.moveTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),A0&&t.arc(c+Y.cx,f+Y.cy,ee,ai(Y.y0,Y.x0),ai(Y.y1,Y.x1),!d),t.arc(c,f,r,ai(Y.cy+Y.y1,Y.cx+Y.x1),ai(le.cy+le.y1,le.cx+le.x1),!d),X>0&&t.arc(c+le.cx,f+le.cy,X,ai(le.y1,le.x1),ai(le.y0,le.x0),!d))}else t.moveTo(c+D,f+B),t.arc(c,f,r,l,u,!d);if(!(i>is)||!W)t.lineTo(c+F,f+z);else if(P>is){var ee=Hs(v,P),X=Hs(m,P),Y=SS(F,z,M,I,i,-X,d),le=SS(D,B,R,L,i,-ee,d);t.lineTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),P<$&&ee===X?t.arc(c+Y.cx,f+Y.cy,P,ai(Y.y0,Y.x0),ai(le.y0,le.x0),!d):(X>0&&t.arc(c+Y.cx,f+Y.cy,X,ai(Y.y0,Y.x0),ai(Y.y1,Y.x1),!d),t.arc(c,f,i,ai(Y.cy+Y.y1,Y.cx+Y.x1),ai(le.cy+le.y1,le.cx+le.x1),d),ee>0&&t.arc(c+le.cx,f+le.cy,ee,ai(le.y1,le.x1),ai(le.y0,le.x0),!d))}else t.lineTo(c+F,f+z),t.arc(c,f,i,u,l,d)}t.closePath()}}}var Yze=function(){function t(){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 t}(),zX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Yze},e.prototype.buildPath=function(n,r){Xze(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);zX.prototype.type="sector";const Ci=zX;var qze=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),FX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new qze},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},e}(yt);FX.prototype.type="ring";const ay=FX;function Kze(t,e,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=t.length;d=2){if(r){var o=Kze(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s_d[1]){if(s=!1,o)return s;var c=Math.abs(_d[0]-bd[1]),f=Math.abs(bd[0]-_d[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,p=c.easing,g={duration:f,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};s?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!s&&e.attr(n),a&&a(1),o&&o()}function Rt(t,e,n,r,i,o){DD("update",t,e,n,r,i,o)}function vn(t,e,n,r,i,o){DD("enter",t,e,n,r,i,o)}function pg(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function nY(t){return!t.isGroup}function pFe(t){return t.shape!=null}function cy(t,e,n){if(!t||!e)return;function r(a){var s={};return a.traverse(function(l){nY(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return pFe(a)&&(s.shape=he({},a.shape)),s}var o=r(t);e.traverse(function(a){if(nY(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Rt(a,l,n,Ke(a).dataIndex)}}})}function LD(t,e){return me(t,function(n){var r=n[0];r=AS(r,e.x),r=ES(r,e.x+e.width);var i=n[1];return i=AS(i,e.y),i=ES(i,e.y+e.height),[r,i]})}function rY(t,e){var n=AS(t.x,e.x),r=ES(t.x+t.width,e.x+e.width),i=AS(t.y,e.y),o=ES(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function vg(t,e,n){var r=he({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ge(i,n),new Rr(r)):uy(t.replace("path://",""),r,n,"center")}function fy(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var m=BD(p,g,c,f)/d;return!(m<0||m>1)}function BD(t,e,n,r){return t*r-n*e}function gFe(t){return t<=1e-6&&t>=-1e-6}function mg(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Ie(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&V(bt(l),function(c){ke(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ke(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Ge({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function oY(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function cc(t,e){if(t)if(ge(t))for(var n=0;n=0&&s.push(l)}),s}}function fc(t,e){return it(it({},t,!0),e,!0)}const PFe={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:". "}}}},$Fe={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 NS="ZH",QD="EN",_g=QD,LS={},HD={},gY=Ct.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_g).toUpperCase();return t.indexOf(NS)>-1?NS:_g}():_g;function GD(t,e){t=t.toUpperCase(),HD[t]=new rn(e),LS[t]=e}function AFe(t){if(Ie(t)){var e=LS[t.toUpperCase()]||{};return t===NS||t===QD?Ue(e):it(Ue(e),Ue(LS[_g]),!1)}else return it(Ue(t),Ue(LS[_g]),!1)}function jD(t){return HD[t]}function EFe(){return HD[_g]}GD(QD,PFe),GD(NS,$Fe);var UD=1e3,ZD=UD*60,dy=ZD*60,fa=dy*24,vY=fa*365,hy={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}"},BS="{yyyy}-{MM}-{dd}",mY={year:"{yyyy}",month:"{yyyy}-{MM}",day:BS,hour:BS+" "+hy.hour,minute:BS+" "+hy.minute,second:BS+" "+hy.second,millisecond:hy.none},XD=["year","month","day","hour","minute","second","millisecond"],yY=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $i(t,e){return t+="","0000".substr(0,e-t.length)+t}function Og(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function MFe(t){return t===Og(t)}function IFe(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function py(t,e,n,r){var i=xo(t),o=i[YD(n)](),a=i[wg(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[VS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[gy(n)](),f=(c-1)%12+1,d=i[zS(n)](),p=i[FS(n)](),g=i[WS(n)](),v=c>=12?"pm":"am",m=v.toUpperCase(),y=r instanceof rn?r:jD(r||gY)||EFe(),b=y.getModel("time"),O=b.get("month"),w=b.get("monthAbbr"),S=b.get("dayOfWeek"),x=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,$i(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,O[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,$i(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,$i(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$i(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$i(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$i(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$i(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,$i(g,3)).replace(/{S}/g,g+"")}function DFe(t,e,n,r,i){var o=null;if(Ie(n))o=n;else if(ze(n))o=n(t.value,e,{level:t.level});else{var a=he({},hy);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ge(o)){var f=t.level==null?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return py(new Date(t.value),o,i,r)}function bY(t,e){var n=xo(t),r=n[wg(e)]()+1,i=n[VS(e)](),o=n[gy(e)](),a=n[zS(e)](),s=n[FS(e)](),l=n[WS(e)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,p=d&&i===1,g=p&&r===1;return g?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _Y(t,e,n){var r=Et(t)?xo(t):t;switch(e=e||bY(t,n),e){case"year":return r[YD(n)]();case"half-year":return r[wg(n)]()>=6?1:0;case"quarter":return Math.floor((r[wg(n)]()+1)/4);case"month":return r[wg(n)]();case"day":return r[VS(n)]();case"half-day":return r[gy(n)]()/24;case"hour":return r[gy(n)]();case"minute":return r[zS(n)]();case"second":return r[FS(n)]();case"millisecond":return r[WS(n)]()}}function YD(t){return t?"getUTCFullYear":"getFullYear"}function wg(t){return t?"getUTCMonth":"getMonth"}function VS(t){return t?"getUTCDate":"getDate"}function gy(t){return t?"getUTCHours":"getHours"}function zS(t){return t?"getUTCMinutes":"getMinutes"}function FS(t){return t?"getUTCSeconds":"getSeconds"}function WS(t){return t?"getUTCMilliseconds":"getMilliseconds"}function RFe(t){return t?"setUTCFullYear":"setFullYear"}function OY(t){return t?"setUTCMonth":"setMonth"}function wY(t){return t?"setUTCDate":"setDate"}function SY(t){return t?"setUTCHours":"setHours"}function xY(t){return t?"setUTCMinutes":"setMinutes"}function CY(t){return t?"setUTCSeconds":"setSeconds"}function TY(t){return t?"setUTCMilliseconds":"setMilliseconds"}function kFe(t,e,n,r,i,o,a,s){var l=new $t({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function qD(t){if(!oS(t))return Ie(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function KD(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Sd=$w;function JD(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&na(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=t instanceof Date;if(a||s){var l=a?xo(t):t;if(isNaN(+l)){if(s)return"-"}else return py(l,r,n)}if(e==="ordinal")return y0(t)?i(t):Et(t)&&o(t)?t+"":"-";var u=Bs(t);return o(u)?qD(u):y0(t)?i(t):typeof t=="boolean"?t+"":"-"}var PY=["a","b","c","d","e","f","g"],eR=function(t,e){return"{"+t+(e??"")+"}"};function tR(t,e,n){ge(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function LFe(t,e,n){process.env.NODE_ENV!=="production"&&Zn("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var r=xo(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),f=r[i+"Milliseconds"]();return t=t.replace("MM",$i(a,2)).replace("M",a).replace("yyyy",o).replace("yy",$i(o%100+"",2)).replace("dd",$i(s,2)).replace("d",s).replace("hh",$i(l,2)).replace("h",l).replace("mm",$i(u,2)).replace("m",u).replace("ss",$i(c,2)).replace("s",c).replace("SSS",$i(f,3)),t}function BFe(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function xd(t,e){return e=e||"transparent",Ie(t)?t:Qe(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function QS(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var HS=V,AY=["left","right","top","bottom","width","height"],Cd=[["width","left","right"],["height","top","bottom"]];function nR(t,e,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),p,g;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);p=o+v,p>r||l.newline?(o=0,p=v,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);g=a+m,g>i||l.newline?(o+=s+n,a=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),t==="horizontal"?o=p+n:a=g+n)})}var Td=nR;tt(nR,"vertical"),tt(nR,"horizontal");function VFe(t,e,n){var r=e.width,i=e.height,o=Ee(t.left,r),a=Ee(t.top,i),s=Ee(t.right,r),l=Ee(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Sd(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function er(t,e,n){n=Sd(n||0);var r=e.width,i=e.height,o=Ee(t.left,r),a=Ee(t.top,i),s=Ee(t.right,r),l=Ee(t.bottom,i),u=Ee(t.width,r),c=Ee(t.height,i),f=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),p!=null&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var g=new at(o+n[3],a+n[0],u,c);return g.margin=n,g}function GS(t,e,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!a&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new at(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=er(Ge({width:u.width,height:u.height},e),n,r),d=a?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function zFe(t,e){return t[Cd[e][0]]!=null||t[Cd[e][1]]!=null&&t[Cd[e][2]]!=null}function vy(t){var e=t.layoutMode||t.constructor.layoutMode;return Qe(e)?e:e?{type:e}:null}function dc(t,e,n){var r=n&&n.ignoreSize;!ge(r)&&(r=[r,r]);var i=a(Cd[0],0),o=a(Cd[1],1);u(Cd[0],t,i),u(Cd[1],t,o);function a(c,f){var d={},p=0,g={},v=0,m=2;if(HS(c,function(O){g[O]=t[O]}),HS(c,function(O){s(e,O)&&(d[O]=g[O]=e[O]),l(d,O)&&p++,l(g,O)&&v++}),r[f])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(v===m||!p)return g;if(p>=m)return d;for(var y=0;y=0;l--)s=it(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return Y0(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(rn);RZ(dt,rn),sS(dt),CFe(dt),TFe(dt,WFe);function WFe(t){var e=[];return V(dt.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=me(e,function(n){return Vs(n).main}),t!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}var MY="";typeof navigator<"u"&&(MY=navigator.platform||"");var xg="rgba(0, 0, 0, 0.2)";const QFe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xg,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xg,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MY.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 rR=Le(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),da="original",si="arrayRows",ha="objectRows",Gs="keyedColumns",Xl="typedArray",IY="unknown",js="column",Cg="row",jr={Must:1,Might:2,Not:3},DY=Tt();function HFe(t){DY(t).datasetMap=Le()}function RY(t,e,n){var r={},i=oR(e);if(!i||!t)return r;var o=[],a=[],s=e.ecModel,l=DY(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),V(t,function(v,m){var y=Qe(v)?v:t[m]={name:v};y.type==="ordinal"&&c==null&&(c=m,f=g(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});V(t,function(v,m){var y=v.name,b=g(v);if(c==null){var O=d.valueWayDim;p(r[y],O,b),p(a,O,b),d.valueWayDim+=b}else if(c===m)p(r[y],0,b),p(o,0,b);else{var O=d.categoryWayDim;p(r[y],O,b),p(a,O,b),d.categoryWayDim+=b}});function p(v,m,y){for(var b=0;be)return t[r];return t[n-1]}function BY(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:XFe(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function YFe(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var jS,my,VY,uR="\0_ec_inner",zY=1,qFe={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},KFe={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},US={};function JFe(t){V(t,function(e,n){if(!dt.hasClass(n)){var r=qFe[n];r&&!US[r]&&(Qr("Component "+n+` is used but not imported. import { `+r+` } from 'echarts/components'; echarts.use([`+r+"]);"),US[r]=!0)}})}var cR=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new rn(o),this._locale=new rn(a),this._optionManager=s},e.prototype.setOption=function(n,r,i){process.env.NODE_ENV!=="production"&&(je(n!=null,"option is null/undefined"),je(n[uR]!==zY,"please use chart.getOption()"));var o=QY(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},e.prototype.resetOption=function(n,r){return this._resetOption(n,QY(r))},e.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&JFe(a),!this.option||n==="recreate"?VY(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&V(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Le(),u=r&&r.replaceMergeMainTypeMap;HFe(this),V(n,function(f,d){f!=null&&(dt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ue(f):it(i[d],f,!0))}),u&&u.each(function(f,d){dt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),dt.topologicalTravel(s,dt.getAllClassMainTypes(),c,this);function c(f){var d=UFe(this,f,nn(n[f])),p=o.get(f),g=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=PZ(p,d,g);bVe(v,f,dt),i[f]=null,o.set(f,null),a.set(f,0);var m=[],y=[],b=0,O,w;V(v,function(S,x){var T=S.existing,$=S.newOption;if(!$)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=f==="series",P=dt.getClass(f,S.keyInfo.subType,!A);if(!P){if(process.env.NODE_ENV!=="production"){var M=S.keyInfo.subType,I=KFe[M];US[M]||(US[M]=!0,Qr(I?"Series "+M+` is used but not imported. import { `+I+` } from 'echarts/charts'; echarts.use([`+I+"]);":"Unknown series "+M))}return}if(f==="tooltip"){if(O){process.env.NODE_ENV!=="production"&&(w||(En("Currently only one tooltip component is allowed."),w=!0));return}O=!0}if(T&&T.constructor===P)T.name=S.keyInfo.name,T.mergeOption($,this),T.optionUpdated($,!1);else{var R=he({componentIndex:x},S.keyInfo);T=new P($,this,this,R),he(T,R),S.brandNew&&(T.__requireNewView=!0),T.init($,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),y.push(T),b++):(m.push(void 0),y.push(void 0))},this),i[f]=m,o.set(f,y),a.set(f,b),f==="series"&&jS(this)}this._seriesIndices||jS(this)},e.prototype.getOption=function(){var n=Ue(this.option);return V(n,function(r,i){if(dt.hasClass(i)){for(var o=nn(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!og(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[uR],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=e:n==="max"?t<=e:t===e}function lWe(t,e){return t.join(",")===e.join(",")}var pa=V,yy=Qe,GY=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function dR(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=GY.length;n=0;m--){var y=t[m];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,p)),g>=0){var b=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=aVe(d,b),v=b;break}}}return r[0]=d,r[1]=v,r})})}var ZS=function(){function t(e){this.data=e.data||(e.sourceFormat===Gs?{}:[]),this.sourceFormat=e.sourceFormat||IY,this.seriesLayoutBy=e.seriesLayoutBy||js,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;rv&&(v=O)}p[0]=g,p[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};nq=(e={},e[si+"_"+js]={pure:!0,appendData:o},e[si+"_"+Cg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ha]={pure:!0,appendData:o},e[Gs]={pure:!0,appendData:function(a){var s=this._data;V(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[da]={appendData:o},e[Xl]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&je(ii(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(a){for(var s=0;s=0&&(v=a.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return Tg(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function cq(t){var e,n;return Qe(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+wi(t)):e=t,{text:e,frag:n}}function Oy(t){return new CWe(t)}var CWe=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?(process.env.NODE_ENV!=="production"&&je(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&je(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||p=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,i,o){fq.reset(n,r,i,o),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:fq.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ge(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex1&&r>0?s:a}};return o;function a(){return e=t?null:le},gte:function(t,e){return t>=e}},PWe=function(){function t(e,n){if(!Et(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ht(r)}this._opFn=hq[e],this._rvalFloat=Bs(n)}return t.prototype.evaluate=function(e){return Et(e)?this._opFn(e,this._rvalFloat):this._opFn(Bs(e),this._rvalFloat)},t}(),pq=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=Et(e)?e:Bs(e),i=Et(n)?n:Bs(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Ie(e),l=Ie(n);s&&(r=l?e:0),l&&(i=s?n:0)}return ri?-this._resultLT:0},t}(),$We=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Bs(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Bs(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function AWe(t,e){return t==="eq"||t==="ne"?new $We(t==="eq",e):ke(hq,t)?new PWe(t,e):null}var EWe=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return hc(e,n)},t}();function MWe(t,e){var n=new EWe,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==js&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ht(a));var s=[],l={},u=t.dimensionsDefine;if(u)V(u,function(v,m){var y=v.name,b={index:m,name:y,displayName:v.displayName};if(s.push(b),y!=null){var O="";ke(l,y)&&(process.env.NODE_ENV!=="production"&&(O='dimension name "'+y+'" duplicated.'),Ht(O)),l[y]=b}});else for(var c=0;c65535?VWe:zWe}function Pg(){return[1/0,-1/0]}function FWe(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function bq(t,e,n,r,i){var o=yq[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=me(a,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n=0&&n=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&re)o=a-1;else return a}return-1},t.prototype.indicesOfNearest=function(e,n,r){var i=this._chunks,o=i[e],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=g,l=p,u=0),p===l&&(a[u++]=c))}return a.length=u,a},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){e=new r(i);for(var o=0;o=f&&b<=d||isNaN(b))&&(l[u++]=v),v++}g=!0}else if(o===2){for(var m=p[i[0]],O=p[i[1]],w=e[i[1]][0],S=e[i[1]][1],y=0;y=f&&b<=d||isNaN(b))&&(x>=w&&x<=S||isNaN(x))&&(l[u++]=v),v++}g=!0}}if(!g)if(o===1)for(var y=0;y=f&&b<=d||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[P][1])&&($=!1)}$&&(l[u++]=n.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),i=r._chunks,o=i[e],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,p=new(wy(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var g=1;gc&&(c=f,d=w)}M>0&&Mc-g&&(l=c-g,s.length=l);for(var v=0;vf[1]&&(f[1]=y),d[p++]=b}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,i=this._chunks,o=0,a=this.count();ol&&(l=f)}return a=[s,l],this._extent[e]=a,a},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,i,o){return hc(n[o],this._dimensions[o])}_R={arrayRows:e,objectRows:function(n,r,i,o){return hc(n[r],this._dimensions[o])},keyedColumns:e,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return hc(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),t}(),_q=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Sy(e)){var a=e,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ii(s)?Xl:da,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Je(f.seriesLayoutBy,d.seriesLayoutBy)||null,g=Je(f.sourceHeader,d.sourceHeader),v=Je(f.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||v;i=m?[gR(s,{seriesLayoutBy:p,sourceHeader:g,dimensions:v},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var O=y.get("source",!0);i=[gR(O,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&je(i&&o),this._setLocalSource(i,o)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&je(i!=null||r!=null),i!=null){var o="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),wq(o))}var a,s=[],l=[];return V(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+i),wq(f)),s.push(c),l.push(u._getVersionSign())}),r?a=LWe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[yWe(s[0])]),{sourceList:a,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!t.noHeader;return V(t.blocks,function(i){var o=Tq(i);o>=e&&(e=o+ +(r&&(!o||wR(i)&&!i.noHeader)))}),e}return 0}function HWe(t,e,n,r){var i=e.noHeader,o=jWe(Tq(e)),a=[],s=e.blocks||[];je(!s||ge(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ke(u,l)){var c=new pq(u[l],null);s.sort(function(g,v){return c.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(g,v){var m=e.valueFormatter,y=Cq(g)(m?he(he({},t),{valueFormatter:m}):t,g,v>0?o.html:0,r);y!=null&&a.push(y)});var f=t.renderMode==="richText"?a.join(o.richText):SR(a.join(""),i?n:o.html);if(i)return f;var d=JD(e.header,"ordinal",t.useUTC),p=xq(r,t.renderMode).nameStyle;return t.renderMode==="richText"?$q(t,d,p)+o.richText+f:SR('
'+_i(d)+"
"+f,n)}function GWe(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=ge(w)?w:[w],me(w,function(S,x){return JD(S,ge(p)?p[x]:p,u)})};if(!(o&&a)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":JD(l,"ordinal",u),p=e.valueType,g=a?[]:c(e.value,e.dataIndex),v=!s||!o,m=!s&&o,y=xq(r,i),b=y.nameStyle,O=y.valueStyle;return i==="richText"?(s?"":f)+(o?"":$q(t,d,b))+(a?"":XWe(t,g,v,m,O)):SR((s?"":f)+(o?"":UWe(d,!s,b))+(a?"":ZWe(g,v,m,O)),n)}}function Pq(t,e,n,r,i,o){if(t){var a=Cq(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function jWe(t){return{html:WWe[t],richText:QWe[t]}}function SR(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function UWe(t,e,n){var r=e?"margin-left:2px":"";return''+_i(t)+""}function ZWe(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=ge(t)?t:[t],''+me(t,function(a){return _i(a)}).join("  ")+""}function $q(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function XWe(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ge(e)?e.join(" "):e,o)}function Aq(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return xd(r)}function Eq(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var xR=function(){function t(){this.richTextStyles={},this._nextStyleNameId=bZ()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,o=$Y({color:n,type:e,renderMode:r,markerId:i});return Ie(o)?o:(process.env.NODE_ENV!=="production"&&je(i),this.richTextStyles[i]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ge(n)?V(n,function(o){return he(r,o)}):he(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t}();function Mq(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=e.getRawValue(n),l=ge(s),u=Aq(e,n),c,f,d,p;if(a>1||l&&!a){var g=YWe(s,e,n,o,u);c=g.inlineValues,f=g.inlineValueTypes,d=g.blocks,p=g.inlineValues[0]}else if(a){var v=i.getDimensionInfo(o[0]);p=c=Tg(i,n,o[0]),f=v.type}else p=c=l?s[0]:s;var m=YI(e),y=m&&e.name||"",b=i.getName(n),O=r?y:b;return Or("section",{header:y,noHeader:r||!m,sortParam:p,blocks:[Or("nameValue",{markerType:"item",markerColor:u,name:O,noName:!na(O),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function YWe(t,e,n,r,i){var o=e.getData(),a=ta(t,function(f,d,p){var g=o.getDimensionInfo(p);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?V(r,function(f){c(Tg(o,n,f),f)}):V(t,c);function c(f,d){var p=o.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(Or("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pc=Tt();function qS(t,e){return t.getName(e)||t.getId(e)}var KS="__universalTransitionEnabled",on=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Oy({count:KWe,reset:JWe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=pc(this).sourceManager=new _q(this);o.prepareSource();var a=this.getInitialData(n,i);Dq(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&je(a,"getInitialData returned invalid data."),pc(this).dataBeforeProcessed=a,Iq(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=vy(this),o=i?Sg(n):{},a=this.subType;dt.hasClass(a)&&(a+="Series"),it(n,r.getTheme().get(this.subType)),it(n,this.getDefaultOption()),rd(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&dc(n,o,i)},e.prototype.mergeOption=function(n,r){n=it(this.option,n,!0),this.fillDataTextStyle(n.data);var i=vy(this);i&&dc(this.option,n,i);var o=pc(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);Dq(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,pc(this).dataBeforeProcessed=a,Iq(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(n){if(n&&!ii(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=sR.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[qS(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[KS])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Qe(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},e.registerClass=function(n){return dt.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(dt);Wn(on,XS),Wn(on,sR),RZ(on,dt);function Iq(t){var e=t.name;YI(t)||(t.name=qWe(t)||e)}function qWe(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return V(n,function(i){var o=e.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function KWe(t){return t.model.getRawData().count()}function JWe(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),e7e}function e7e(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Dq(t,e){V(O0(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(t7e,e))})}function t7e(t,e){var n=CR(t);return n&&n.setOutputEnd((e||this).count()),e}function CR(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}var dn=function(){function t(){this.group=new qe,this.uid=bg("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){},t.prototype.updateLayout=function(e,n,r,i){},t.prototype.updateVisual=function(e,n,r,i){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();JI(dn),sS(dn);function $g(){var t=Tt();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var Rq=Tt(),n7e=$g(),Jt=function(){function t(){this.group=new qe,this.uid=bg("viewChart"),this.renderTask=Oy({plan:r7e,reset:i7e}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Qr("Unknown dataType "+i.dataType);return}Nq(o,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Qr("Unknown dataType "+i.dataType);return}Nq(o,i,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateLayout=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateVisual=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.eachRendered=function(e){cc(this.group,e)},t.markUpdateMethod=function(e,n){Rq(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function kq(t,e,n){t&&sc(t)&&(e==="emphasis"?jl:Ul)(t,n)}function Nq(t,e,n){var r=id(t,e),i=e&&e.highlightKey!=null?kze(e.highlightKey):null;r!=null?V(nn(r),function(o){kq(t.getItemGraphicEl(o),n,i)}):t.eachItemGraphicEl(function(o){kq(o,n,i)})}JI(Jt,["dispose"]),sS(Jt);function r7e(t){return n7e(t.model)}function i7e(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Rq(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,n,r,i),o7e[l]}var o7e={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},JS="\0__throttleOriginMethod",Lq="\0__throttleRate",Bq="\0__throttleType";function ex(t,e,n){var r,i=0,o=0,a=null,s,l,u,c;e=e||0;function f(){o=new Date().getTime(),a=null,t.apply(l,u||[])}var d=function(){for(var p=[],g=0;g=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){c=p},d}function Ag(t,e,n,r){var i=t[e];if(i){var o=i[JS]||i,a=i[Bq],s=i[Lq];if(s!==n||a!==r){if(n==null||!r)return t[e]=o;i=t[e]=ex(o,n,r==="debounce"),i[JS]=o,i[Bq]=r,i[Lq]=n}return i}}function xy(t,e){var n=t[e];n&&n[JS]&&(n.clear&&n.clear(),t[e]=n[JS])}var Vq=Tt(),zq={itemStyle:ad(pY,!0),lineStyle:ad(hY,!0)},a7e={lineStyle:"stroke",itemStyle:"fill"};function Fq(t,e){var n=t.visualStyleMapper||zq[e];return n||(console.warn("Unknown style type '"+e+"'."),zq.itemStyle)}function Wq(t,e){var n=t.visualDrawType||a7e[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var s7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Fq(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Wq(t,r),u=a[l],c=ze(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||ze(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||ze(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,g){var v=t.getDataParams(g),m=he({},a);m[l]=c(v),p.setItemVisual(g,"style",m)}}}},Cy=new rn,l7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Fq(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Cy.option=l[r];var u=i(Cy),c=a.ensureUniqueItemVisual(s,"style");he(c,u),Cy.option.decal&&(a.setItemVisual(s,"decal",Cy.option.decal),Cy.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},u7e={performRawSeries:!0,overallReset:function(t){var e=Le();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=e.get(i);o||(o={},e.set(i,o)),Vq(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=Vq(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Wq(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),p=r.getName(u)||u+"",g=r.count();d[l]=n.getColorFromPalette(p,a,g)}})}})}},tx=Math.PI;function c7e(t,e){e=e||{},Ge(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new qe,r=new Pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new $t({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new xS({shape:{startAngle:-tx/2,endAngle:-tx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:tx*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:tx*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.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),c=t.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Qq=function(){function t(e,n,r,i){this._stageTaskMap=Le(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),i=e.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Le();e.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;V(this._allHandlers,function(i){var o=e.get(i.uid)||e.set(i.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),je(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var o=e.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,i){i=i||{};var o=!1,a=this;V(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,g=d.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,r);var v=a.getPerformArgs(d,i.block);g.each(function(m){m.perform(v)}),d.perform(v)&&(o=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var b=a.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),a.updatePayload(m,r),m.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Le(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,p=s.set(d,a&&a.get(d)||Oy({plan:g7e,reset:v7e,count:y7e}));p.context={model:f,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(f,p)}},t.prototype._createOverallStageTask=function(e,n,r,i){var o=this,a=n.overallTask=n.overallTask||Oy({reset:f7e});a.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Le(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,p="";process.env.NODE_ENV!=="production"&&(p='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),je(!e.createOnAllSeries,p),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(f=!1,V(r.getSeries(),g));function g(v){var m=v.uid,y=l.set(m,s&&s.get(m)||(d=!0,Oy({reset:d7e,onDirty:p7e})));y.context={model:v,overallProgress:f},y.agent=a,y.__block=f,o._pipe(v,y)}d&&a.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},t.wrapStageHandler=function(e,n){return ze(e)&&(e={overallReset:e,seriesType:b7e(e)}),e.uid=bg("stageHandler"),n&&(e.visualType=n),e},t}();function f7e(t){t.overallReset(t.ecModel,t.api,t.payload)}function d7e(t){return t.overallProgress&&h7e}function h7e(){this.agent.dirty(),this.getDownstream().dirty()}function p7e(){this.agent&&this.agent.dirty()}function g7e(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function v7e(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?me(e,function(n,r){return Hq(r)}):m7e}var m7e=Hq(0);function Hq(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&p===u.length-d.length){var g=u.slice(0,p);g!=="data"&&(n.mainType=g,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,i,o));function c(f,d,p,g){return f[p]==null||d[g||p]===f[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),TR=["symbol","symbolSize","symbolRotate","symbolOffset"],qq=TR.concat(["symbolKeepAspect"]),w7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&Dd(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function $R(t,e,n){for(var r=e.type==="radial"?L7e(t,e,n):N7e(t,e,n),i=e.colorStops,o=0;o0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Et(t)?[t]:ge(t)?t:null}function AR(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&V7e(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=me(n,function(o){return o/i}),r/=i)}return[n,r]}var z7e=new Qs(!0);function ax(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function eK(t){return typeof t=="string"&&t!=="none"}function sx(t){var e=t.fill;return e!=null&&e!=="none"}function tK(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function nK(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function ER(t,e,n){var r=tD(e.image,e.__image,n);if(lS(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*S0),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function F7e(t,e,n,r){var i,o=ax(n),a=sx(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||z7e,f=e.__dirty;if(!r){var d=n.fill,p=n.stroke,g=a&&!!d.colorStops,v=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,b=void 0,O=void 0,w=void 0,S=void 0,x=void 0;(g||v)&&(x=e.getBoundingRect()),g&&(b=f?$R(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=b),v&&(O=f?$R(t,p,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=O),m&&(w=f||!e.__canvasFillPattern?ER(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(S=f||!e.__canvasStrokePattern?ER(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=b:m&&(w?t.fillStyle=w:a=!1),v?t.strokeStyle=O:y&&(S?t.strokeStyle=S:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var $,A;t.setLineDash&&n.lineDash&&(i=AR(e),$=i[0],A=i[1]);var P=!0;(u||f&Xp)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),P=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),P&&c.rebuildPath(t,l?s:1),$&&(t.setLineDash($),t.lineDashOffset=A),r||(n.strokeFirst?(o&&nK(t,n),a&&tK(t,n)):(a&&tK(t,n),o&&nK(t,n))),$&&t.setLineDash([])}function W7e(t,e,n){var r=e.__image=tD(n.image,e.__image,e,e.onload);if(!(!r||!lS(r))){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,d=s-c;t.drawImage(r,u,c,f,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Q7e(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||Hu,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=AR(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(ax(n)&&t.strokeText(i,n.x,n.y),sx(n)&&t.fillText(i,n.x,n.y)):(sx(n)&&t.fillText(i,n.x,n.y),ax(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var rK=["shadowBlur","shadowOffsetX","shadowOffsetY"],iK=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oK(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){qi(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?sd.opacity:a}(r||e.blend!==n.blend)&&(o||(qi(t,i),o=!0),t.globalCompositeOperation=e.blend||sd.blend);for(var s=0;sa.maxTileWidth&&B("maxTileWidth"),D>a.maxTileHeight&&B("maxTileHeight")}return{width:Math.max(1,Math.min(M,a.maxTileWidth)),height:Math.max(1,Math.min(D,a.maxTileHeight))}}function P(){$&&($.clearRect(0,0,S.width,S.height),a.backgroundColor&&($.fillStyle=a.backgroundColor,$.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I0&&n.unfinished);n.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(n,r,i){if(this[ui]){process.env.NODE_ENV!=="production"&&Qr("`setOption` should not be called during main process.");return}if(this._disposed){Po(this.id);return}var o,a,s;if(Qe(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[ui]=!0,!this._model||r){var l=new iWe(this._api),u=this._theme,c=this._model=new cR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},QR);var f={seriesTransition:s,optionChanged:!0};if(i)this[Ki]={silent:o,updateParams:f},this[ui]=!1,this.getZr().wakeUp();else{try{Rg(this),gc.update.call(this,null,f)}catch(d){throw this[Ki]=null,this[ui]=!1,d}this._ssr||this._zr.flush(),this[Ki]=null,this[ui]=!1,Ay.call(this,o),Ey.call(this,o)}},e.prototype.setTheme=function(){sa("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&Zn("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ct.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return V(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){Po(this.id);return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;V(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return V(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){Po(this.id);return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(gx[i]){var l=s,u=s,c=-s,f=-s,d=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();V(kd,function(O,w){if(O.group===i){var S=r?O.getZr().painter.getSvgDom().innerHTML:O.renderToCanvas(Ue(n)),x=O.getDom().getBoundingClientRect();l=o(x.left,l),u=o(x.top,u),c=a(x.right,c),f=a(x.bottom,f),d.push({dom:S,left:x.left,top:x.top})}}),l*=p,u*=p,c*=p,f*=p;var g=c-l,v=f-u,m=qa.createCanvas(),y=QI(m,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:v}),r){var b="";return V(d,function(O){var w=O.left-l,S=O.top-u;b+=''+O.dom+""}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Pt({shape:{x:0,y:0,width:g,height:v},style:{fill:n.connectedBackgroundColor}})),V(d,function(O){var w=new Rr({style:{x:O.left*p-l,y:O.top*p-u,image:O.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return LR(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return LR(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){Po(this.id);return}var i=this._model,o,a=X0(i,n);return V(a,function(s,l){l.indexOf("Models")>=0&&V(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?o=o||f.containPoint(r,u):process.env.NODE_ENV!=="production"&&En(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&En(l+": containPoint is not supported")},this)},this),!!o},e.prototype.getVisual=function(n,r){var i=this._model,o=X0(i,n,{defaultMainType:"series"}),a=o.seriesModel;process.env.NODE_ENV!=="production"&&(a||En("There is no specified series model"));var s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?PR(s,l,r):Py(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;V(pQe,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Md(s,function(g){var v=Ke(g);if(v&&v.dataIndex!=null){var m=v.dataModel||a.getSeriesByIndex(v.seriesIndex);return l=m&&m.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=he({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),p=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&p)&&En("model or view can not be found by params"),l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),V(My,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),V(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),x7e(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Po(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Po(this.id);return}this._disposed=!0;var n=this.getDom();n&&MZ(this.getDom(),GR,"");var r=this,i=r._api,o=r._model;V(r._componentsViews,function(a){a.dispose(o,i)}),V(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete kd[r.id]},e.prototype.resize=function(n){if(this[ui]){process.env.NODE_ENV!=="production"&&Qr("`resize` should not be called during main process.");return}if(this._disposed){Po(this.id);return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Ki]&&(o==null&&(o=this[Ki].silent),i=!0,this[Ki]=null),this[ui]=!0;try{i&&Rg(this),gc.update.call(this,{type:"resize",animation:he({duration:0},n&&n.animation)})}catch(a){throw this[ui]=!1,a}this[ui]=!1,Ay.call(this,o),Ey.call(this,o)}},e.prototype.showLoading=function(n,r){if(this._disposed){Po(this.id);return}if(Qe(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!HR[n]){process.env.NODE_ENV!=="production"&&En("Loading effects "+n+" not exists.");return}var i=HR[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)},e.prototype.hideLoading=function(){if(this._disposed){Po(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=he({},n);return r.type=My[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){Po(this.id);return}if(Qe(r)||(r={silent:!!r}),!!hx[n.type]&&this._model){if(this[ui]){this._pendingActions.push(n);return}var i=r.silent;VR.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Ay.call(this,i),Ey.call(this,i)}},e.prototype.updateLabelLayout=function(){ss.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){Po(this.id);return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&je(n.data&&o),o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Rg=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),NR(f,!0),NR(f,!1),d.plan()},NR=function(f,d){for(var p=f._model,g=f._scheduler,v=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,O=0;Od.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,g=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,p,g,-1/0),!0})}}function l(f,d,p,g){var v=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var b=f.childrenRef(),O=0;O0?{duration:v,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(pg(y))return;if(y instanceof yt&&Nze(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(g){y.stateTransition=m;var O=y.getTextContent(),w=y.getTextGuideLine();O&&(O.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}IK=function(f){return new(function(d){re(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(g){for(;g;){var v=g.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);g=g.parent}},p.prototype.enterEmphasis=function(g,v){jl(g,v),va(f)},p.prototype.leaveEmphasis=function(g,v){Ul(g,v),va(f)},p.prototype.enterBlur=function(g){bX(g),va(f)},p.prototype.leaveBlur=function(g){wD(g),va(f)},p.prototype.enterSelect=function(g){_X(g),va(f)},p.prototype.leaveSelect=function(g){OX(g),va(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},p.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},p}(HY))(f)},DK=function(f){function d(p,g){for(var v=0;v=0)){WK.push(n);var o=Qq.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function qR(t,e){HR[t]=e}function wQe(t){process.env.NODE_ENV!=="production"&&sa("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),iU({createCanvas:t})}function QK(t,e,n){var r=mK("registerMap");r&&r(t,e,n)}function SQe(t){var e=mK("getMap");return e&&e(t)}var HK=NWe;vc(DR,s7e),vc(ux,l7e),vc(ux,u7e),vc(DR,w7e),vc(ux,S7e),vc(_K,q7e),ZR(qY),XR(rQe,vWe),qR("default",c7e),ls({type:gd,event:gd,update:gd},Qn),ls({type:vS,event:vS,update:vS},Qn),ls({type:ty,event:ty,update:ty},Qn),ls({type:mS,event:mS,update:mS},Qn),ls({type:ny,event:ny,update:ny},Qn),UR("light",_7e),UR("dark",Yq);var xQe={},GK=[],CQe={registerPreprocessor:ZR,registerProcessor:XR,registerPostInit:BK,registerPostUpdate:VK,registerUpdateLifecycle:vx,registerAction:ls,registerCoordinateSystem:zK,registerLayout:FK,registerVisual:vc,registerTransform:HK,registerLoading:qR,registerMap:QK,registerImpl:K7e,PRIORITY:OK,ComponentModel:dt,ComponentView:dn,SeriesModel:on,ChartView:Jt,registerComponentModel:function(t){dt.registerClass(t)},registerComponentView:function(t){dn.registerClass(t)},registerSeriesModel:function(t){on.registerClass(t)},registerChartView:function(t){Jt.registerClass(t)},registerSubTypeDefaulter:function(t,e){dt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){dZ(t,e)}};function ht(t){if(ge(t)){V(t,function(e){ht(e)});return}st(GK,t)>=0||(GK.push(t),ze(t)&&(t={install:t}),t.install(CQe))}function Iy(t){return t==null?0:t.length||1}function jK(t){return t}var ql=function(){function t(e,n,r,i,o,a){this._old=e,this._new=n,this._oldKeyGetter=r||jK,this._newKeyGetter=i||jK,this.context=o,this._diffModeMultiple=a==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},i=new Array(e.length),o=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(e,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var p=0;p1)for(var s=0;s30}var Dy=Qe,mc=me,MQe=typeof Int32Array>"u"?Array:Int32Array,IQe="e\0\0",KK=-1,DQe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],RQe=["_approximateExtent"],JK,bx,Ry,kg,JR,_x,ek,kQe=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;ZK(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c=0),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Le();V(a,function(m){v.set(o[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Et(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Unknown dimension "+e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var i=this,o;if(e instanceof OR&&(o=e),!o){var a=this.dimensions,s=pR(e)||Wr(e)?new iq(e,a.length):e;o=new OR;var l=mc(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=PQe(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===da;if(l&&!i.pure)for(var u=[],c=e;c0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var o=i[n];return o==null&&(o=this.getVisual(n),ge(o)?o=o.slice():Dy(o)&&(o=he({},o)),i[n]=o),o},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Dy(n)?he(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Dy(e)?he(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?he(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;mD(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){V(this._graphicEls,function(r,i){r&&e&&e.call(n,r,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:mc(this.dimensions,this._getDimInfo,this),this.hostModel)),JR(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];ze(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Pw(arguments)))})},t.internalField=function(){JK=function(e){var n=e._invertedIndicesMap;V(n,function(r,i){var o=e._dimInfos[i],a=o.ordinalMeta,s=e._store;if(a){r=n[i]=new MQe(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),t}();const ci=kQe;function NQe(t,e){return Ng(t,e).dimensions}function Ng(t,e){pR(t)||(t=vR(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Le(),o=[],a=BQe(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qK(a),l=r===t.dimensionsDefine,u=l?YK(t):XK(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var f=Le(c),d=new vq(a),p=0;p0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function BQe(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return V(e,function(o){var a;Qe(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function VQe(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var zQe=function(){function t(e){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=e}return t}();function FQe(t){var e=t.get("coordinateSystem"),n=new zQe(e),r=WQe[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var WQe={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Jn).models[0],o=t.getReferringComponents("yAxis",Jn).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Un(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Un(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Lg(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Lg(o)&&(r.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Jn).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Lg(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Jn).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Lg(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Lg(a)&&(r.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();V(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Lg(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Lg(t){return t.get("type")==="category"}function eJ(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;QQe(e)?o=e:(a=e.schema,o=a.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(V(o,function(b,O){Ie(b)&&(o[O]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,g=c.type,v=0;V(o,function(b){b.coordDim===p&&v++});var m={name:f,coordDim:p,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,g),y.storeDimIndex=s.ensureCalculationDimension(f,g)),a.appendCalculationDimension(m),a.appendCalculationDimension(y)):(o.push(m),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function QQe(t){return!ZK(t.schema)}function Kl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function tk(t,e){return Kl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function HQe(t,e){var n=t.get("coordinateSystem"),r=Pd.get(n),i;return e&&e.coordSysDims&&(i=me(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=mx(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function GQe(t,e,n){var r,i;return n&&V(t,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function Us(t,e,n){n=n||{};var r=e.getSourceManager(),i,o=!1;t?(o=!0,i=vR(t)):(i=r.getSource(),o=i.sourceFormat===da);var a=FQe(e),s=HQe(e,a),l=n.useEncodeDefaulter,u=ze(l)?l:l?tt(RY,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Ng(i,c),d=GQe(f.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(f),g=eJ(e,{schema:f,store:p}),v=new ci(f,e);v.setCalculationInfo(g);var m=d!=null&&jQe(i)?function(y,b,O,w){return w===d?O:this.defaultDimValueGetter(y,b,O,w)}:null;return v.hasItemOption=!1,v.initData(o?i:p,null,m),v}function jQe(t){if(t.sourceFormat===da){var e=UQe(t.data||[]);return!ge(ig(e))}}function UQe(t){for(var e=0;en[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();sS(Zs);var ZQe=0,nk=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ZQe}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&me(r,XQe);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!Ie(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var i=this._getOrCreateMap();return n=i.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,i.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Le(this.categories))},t}();function XQe(t){return Qe(t)&&t.value!=null?t.value:t+""}function YQe(t){var e=Math.pow(10,U0(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function rk(t){return t.type==="interval"||t.type==="log"}function qQe(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=ZI(o/e,!0);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=tJ(a),l=i.niceTickExtent=[Nn(Math.ceil(t[0]/a)*a,s),Nn(Math.floor(t[1]/a)*a,s)];return KQe(l,t),i}function ik(t){var e=Math.pow(10,U0(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Nn(n*e)}function tJ(t){return rs(t)+2}function nJ(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function KQe(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),nJ(t,0,e),nJ(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ox(t,e){return t>=e[0]&&t<=e[1]}function Sx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function xx(t,e){return t*(e[1]-e[0])+e[0]}var Cx=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new nk({})),ge(i)&&(i=new nk({categories:me(i,function(o){return Qe(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:Ie(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),Ox(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),Sx(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(xx(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Zs);Zs.registerClass(Cx);var Nd=Nn,Jl=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return Ox(n,this._extent)},e.prototype.normalize=function(n){return Sx(n,this._extent)},e.prototype.scale=function(n){return xx(n,this._extent)},e.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=tJ(n)},e.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Nd(c+r,a)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&p0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function oJ(t){var e=t9e(t),n=[];return V(t,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=e[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var p=r.getData();s=Math.abs(a[1]-a[0])/p.count()}var g=Ee(r.get("barWidth"),s),v=Ee(r.get("barMaxWidth"),s),m=Ee(r.get("barMinWidth")||(cJ(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:sk(o),stackId:ak(r)})}),aJ(n)}function aJ(t){var e={};V(t,function(r,i){var o=r.axisKey,a=r.bandWidth,s=e[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var p=r.barGap;p!=null&&(s.gap=p);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=bt(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ee(s,a),c=Ee(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),V(o,function(y){var b=y.maxWidth,O=y.minWidth;if(y.width){var w=y.width;b&&(w=Math.min(w,b)),O&&(w=Math.max(w,O)),y.width=w,f-=w+c*w,d--}else{var w=p;b&&bw&&(w=O),w!==p&&(y.width=w,f-=w+c*w,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var g=0,v;V(o,function(y,b){y.width||(y.width=p),v=y,g+=y.width*(1+c)}),v&&(g-=v.width*c);var m=-g/2;V(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function n9e(t,e,n){if(t&&e){var r=t[sk(e)];return r!=null&&n!=null?r[ak(n)]:r}}function sJ(t,e){var n=iJ(t,e),r=oJ(n);V(n,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=ak(i),u=r[sk(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function lJ(t){return{seriesType:t,plan:$g(),reset:function(e){if(uJ(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=e.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),f=Kl(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=r9e(i,o),g=cJ(e),v=e.get("barMinHeight")||0,m=c&&n.getDimensionIndex(c),y=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(O,w){for(var S=O.count,x=g&&Xs(S*3),T=g&&l&&Xs(S*3),$=g&&Xs(S),A=r.master.getRect(),P=d?A.width:A.height,M,I=w.getStore(),R=0;(M=O.next())!=null;){var L=I.get(f?m:a,M),D=I.get(s,M),B=p,F=void 0;f&&(F=+L-I.get(a,M));var z=void 0,W=void 0,j=void 0,H=void 0;if(d){var Z=r.dataToPoint([L,D]);if(f){var J=r.dataToPoint([F,D]);B=J[0]}z=B,W=Z[1]+b,j=Z[0]-B,H=y,Math.abs(j)0?n:1:n))}var i9e=function(t,e,n,r){for(;n>>1;t[i][1]i&&(this._approxInterval=i);var s=Tx.length,l=Math.min(i9e(Tx,this._approxInterval,0,s),s-1);this._interval=Tx[l][1],this._minLevelUnit=Tx[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return Et(n)?n:+xo(n)},e.prototype.contain=function(n){return Ox(this.parse(n),this._extent)},e.prototype.normalize=function(n){return Sx(this.parse(n),this._extent)},e.prototype.scale=function(n){return xx(n,this._extent)},e.type="time",e}(Jl),Tx=[["second",UD],["minute",ZD],["hour",dy],["quarter-day",dy*6],["half-day",dy*12],["day",fa*1.2],["half-week",fa*3.5],["week",fa*7],["month",fa*31],["quarter",fa*95],["half-year",vY/2],["year",vY]];function o9e(t,e,n,r){var i=xo(e),o=xo(n),a=function(g){return _Y(i,g,r)===_Y(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return p()}}function a9e(t,e){return t/=fa,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function s9e(t){var e=30*fa;return t/=e,t>6?6:t>3?3:t>2?2:1}function l9e(t){return t/=dy,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function fJ(t,e){return t/=e?ZD:UD,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function u9e(t){return ZI(t,!0)}function c9e(t,e,n){var r=new Date(t);switch(Og(e)){case"year":case"month":r[OY(n)](0);case"day":r[wY(n)](1);case"hour":r[SY(n)](0);case"minute":r[xY(n)](0);case"second":r[CY(n)](0),r[TY(n)](0)}return r.getTime()}function f9e(t,e,n,r){var i=1e4,o=yY,a=0;function s(P,M,I,R,L,D,B){for(var F=new Date(M),z=M,W=F[R]();z1&&D===0&&I.unshift({value:I[0].value-z})}}for(var D=0;D=r[0]&&b<=r[1]&&f++)}var O=(r[1]-r[0])/e;if(f>O*1.5&&d>O/1.5||(u.push(m),f>O||t===o[p]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=i&&En("Exceed safe limit.");for(var w=Yt(me(u,function(P){return Yt(P,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(P){return P.length>0}),S=[],x=w.length-1,p=0;p0;)o*=10;var s=[Nn(p9e(r[0]/o)*o),Nn(h9e(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){ky.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=us(n)/us(this.base),Ox(n,this._extent)},e.prototype.normalize=function(n){return n=us(n)/us(this.base),Sx(n,this._extent)},e.prototype.scale=function(n){return n=xx(n,this._extent),Px(this.base,n)},e.type="log",e}(Zs),hJ=uk.prototype;hJ.getMinorTicks=ky.getMinorTicks,hJ.getLabel=ky.getLabel;function $x(t,e){return d9e(t,rs(e))}Zs.registerClass(uk);var g9e=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&je(!this.frozen),this[m9e[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=v9e[e];process.env.NODE_ENV!=="production"&&je(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),v9e={min:"_determinedMin",max:"_determinedMax"},m9e={min:"_dataMin",max:"_dataMax"};function pJ(t,e,n){var r=t.rawExtentInfo;return r||(r=new g9e(t,e,n),t.rawExtentInfo=r,r)}function Ax(t,e){return e==null?null:ju(e)?NaN:t.parse(e)}function gJ(t,e){var n=t.type,r=pJ(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&n==="time"){var s=iJ("bar",a),l=!1;if(V(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=oJ(s),c=y9e(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function y9e(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=n9e(r,n.axis);if(a===void 0)return{min:t,max:e};var s=1/0;V(a,function(p){s=Math.min(p.offset,s)});var l=-1/0;V(a,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/o,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function Ld(t,e){var n=e,r=gJ(t,n),i=r.extent,o=n.get("splitNumber");t instanceof uk&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l=a==="interval"||a==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Ny(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Cx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new lk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zs.getClass(e)||Jl)}}function b9e(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Bg(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(i,o){return t.scale.getFormattedLabel(i,o,r)}}(e):Ie(e)?function(r){return function(i){var o=t.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(e):ze(e)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(ck(t,i),o,i.level!=null?{level:i.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function ck(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function _9e(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof Cx?i=n.count():(r=n.getTicks(),i=r.length);var a=t.getLabelModel(),s=Bg(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ct[1]&&(t[1]=i[1])})}var Vg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function S9e(t){return Us(null,t)}var x9e={isDimensionStacked:Kl,enableDataStack:eJ,getStackedDimension:tk};function C9e(t,e){var n=e;e instanceof rn||(n=new rn(e));var r=Ny(n);return r.setExtent(t[0],t[1]),Ld(r,n),r}function T9e(t){Wn(t,Vg)}function P9e(t,e){return e=e||{},un(t,null,null,e.state!=="normal")}const $9e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:NQe,createList:S9e,createScale:C9e,createSymbol:Xn,createTextStyle:P9e,dataStack:x9e,enableHoverEmphasis:ac,getECData:Ke,getLayoutRect:er,mixinAxisModelCommonMethods:T9e},Symbol.toStringTag,{value:"Module"}));var A9e=1e-8;function mJ(t,e){return Math.abs(t-e)i&&(r=a,i=l)}if(r)return M9e(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return V(a,function(s){s.type==="polygon"?yJ(s.exterior,i,o,n):V(s.points,function(l){yJ(l,i,o,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,a=i.length;o>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function pk(t,e){return t=D9e(t),me(Yt(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new _J(a[0],a.slice(1)));break;case"MultiPolygon":V(i.coordinates,function(l){l[0]&&o.push(new _J(l[0],l.slice(1)))});break;case"LineString":o.push(new OJ([i.coordinates]));break;case"MultiLineString":o.push(new OJ(i.coordinates))}var s=new wJ(r[e||"name"],o,r.cp);return s.properties=r,s})}const R9e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:jI,asc:So,getPercentWithPrecision:oVe,getPixelPrecision:GI,getPrecision:rs,getPrecisionSafe:rS,isNumeric:oS,isRadianAroundZero:rg,linearMap:qt,nice:ZI,numericToNumber:Bs,parseDate:xo,quantile:iS,quantity:yZ,quantityExponent:U0,reformIntervals:XI,remRadian:UI,round:Nn},Symbol.toStringTag,{value:"Module"})),k9e=Object.freeze(Object.defineProperty({__proto__:null,format:py,parse:xo},Symbol.toStringTag,{value:"Module"})),N9e=Object.freeze(Object.defineProperty({__proto__:null,Arc:xS,BezierCurve:sy,BoundingRect:at,Circle:Zl,CompoundPath:CS,Ellipse:wS,Group:qe,Image:Rr,IncrementalDisplayable:YX,Line:br,LinearGradient:dg,Polygon:Ti,Polyline:Pi,RadialGradient:ID,Rect:Pt,Ring:ay,Sector:Ci,Text:$t,clipPointsByRect:LD,clipRectByRect:rY,createIcon:vg,extendPath:eY,extendShape:JX,getShapeClass:MS,getTransform:uc,initProps:vn,makeImage:kD,makePath:uy,mergePath:To,registerShape:ca,resizePath:ND,updateProps:Rt},Symbol.toStringTag,{value:"Module"})),L9e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:qD,capitalFirst:BFe,encodeHTML:_i,formatTime:LFe,formatTpl:tR,getTextRect:kFe,getTooltipMarker:$Y,normalizeCssArray:Sd,toCamelCase:KD,truncateText:NZ},Symbol.toStringTag,{value:"Module"})),B9e=Object.freeze(Object.defineProperty({__proto__:null,bind:Re,clone:Ue,curry:tt,defaults:Ge,each:V,extend:he,filter:Yt,indexOf:st,inherits:YM,isArray:ge,isFunction:ze,isObject:Qe,isString:Ie,map:me,merge:it,reduce:ta},Symbol.toStringTag,{value:"Module"}));var Ly=Tt();function xJ(t,e){var n=me(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function V9e(t){var e=t.getLabelModel().get("customValues");if(e){var n=Bg(t);return{labels:xJ(t,e).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:r}})}}return t.type==="category"?F9e(t):Q9e(t)}function z9e(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:xJ(t,n)}:t.type==="category"?W9e(t,e):{ticks:me(t.scale.getTicks(),function(r){return r.value})}}function F9e(t){var e=t.getLabelModel(),n=CJ(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function CJ(t,e){var n=TJ(t,"labels"),r=fk(e),i=PJ(n,r);if(i)return i;var o,a;return ze(r)?o=EJ(t,r):(a=r==="auto"?H9e(t):r,o=AJ(t,a)),$J(n,r,{labels:o,labelCategoryInterval:a})}function W9e(t,e){var n=TJ(t,"ticks"),r=fk(e),i=PJ(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),ze(r))o=EJ(t,r,!0);else if(r==="auto"){var s=CJ(t,t.getLabelModel());a=s.labelCategoryInterval,o=me(s.labels,function(l){return l.tickValue})}else a=r,o=AJ(t,a,!0);return $J(n,r,{ticks:o,tickCategoryInterval:a})}function Q9e(t){var e=t.scale.getTicks(),n=Bg(t);return{labels:me(e,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function TJ(t,e){return Ly(t)[e]||(Ly(t)[e]=[])}function PJ(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var g=0,v=0,m=H0(n({value:l}),e.font,"center","top");g=m.width*1.3,v=m.height*1.3,d=Math.max(d,g,7),p=Math.max(p,v,7)}var y=d/c,b=p/f;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var O=Math.max(0,Math.floor(Math.min(y,b))),w=Ly(t.model),S=t.getExtent(),x=w.lastAutoInterval,T=w.lastTickCount;return x!=null&&T!=null&&Math.abs(x-O)<=1&&Math.abs(T-a)<=1&&x>O&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?O=x:(w.lastTickCount=a,w.lastAutoInterval=O,w.axisExtent0=S[0],w.axisExtent1=S[1]),O}function j9e(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function AJ(t,e,n){var r=Bg(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=vJ(t),d=a.get("showMinLabel")||f,p=a.get("showMaxLabel")||f;d&&u!==o[0]&&v(o[0]);for(var g=u;g<=o[1];g+=l)v(g);p&&g-l!==o[1]&&v(o[1]);function v(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function EJ(t,e,n){var r=t.scale,i=Bg(t),o=[];return V(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;e(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var MJ=[0,1],U9e=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return e>=r&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return GI(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),IJ(r,i.count())),qt(e,MJ,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),IJ(r,i.count()));var o=qt(e,r,MJ,n);return this.scale.scale(o)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=z9e(this,n),i=r.ticks,o=me(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Z9e(this,o,a,e.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=me(r,function(o){return me(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},t.prototype.getViewLabels=function(){return V9e(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},t.prototype.calculateCategoryInterval=function(){return G9e(this)},t}();function IJ(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Z9e(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o=t.getExtent(),a,s;if(i===1)e[0].coord=o[0],a=e[1]={coord:o[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;V(e,function(p){p.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,a={coord:e[i-1].coord+u*s},e.push(a)}var f=o[0]>o[1];d(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&d(o[0],e[0].coord)&&e.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:e.pop()),r&&d(a.coord,o[1])&&e.push({coord:o[1]});function d(p,g){return p=Nn(p),g=Nn(g),f?p>g:pi&&(i+=By);var p=Math.atan2(s,a);if(p<0&&(p+=By),p>=r&&p<=i||p+By>=r&&p+By<=i)return l[0]=c,l[1]=f,u-n;var g=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=n*Math.cos(i)+t,y=n*Math.sin(i)+e,b=(g-a)*(g-a)+(v-s)*(v-s),O=(m-a)*(m-a)+(y-s)*(y-s);return b0){e=e/180*Math.PI,fs.fromArray(t[0]),hn.fromArray(t[1]),Yn.fromArray(t[2]),ot.sub(Ys,fs,hn),ot.sub(qs,Yn,hn);var n=Ys.len(),r=qs.len();if(!(n<.001||r<.001)){Ys.scale(1/n),qs.scale(1/r);var i=Ys.dot(qs),o=Math.cos(e);if(o1&&ot.copy(Ei,Yn),Ei.toArray(t[1])}}}}function iHe(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,fs.fromArray(t[0]),hn.fromArray(t[1]),Yn.fromArray(t[2]),ot.sub(Ys,hn,fs),ot.sub(qs,Yn,hn);var r=Ys.len(),i=qs.len();if(!(r<.001||i<.001)){Ys.scale(1/r),qs.scale(1/i);var o=Ys.dot(e),a=Math.cos(n);if(o=l)ot.copy(Ei,Yn);else{Ei.scaleAndAdd(qs,s/Math.tan(Math.PI/2-c));var f=Yn.x!==hn.x?(Ei.x-hn.x)/(Yn.x-hn.x):(Ei.y-hn.y)/(Yn.y-hn.y);if(isNaN(f))return;f<0?ot.copy(Ei,hn):f>1&&ot.copy(Ei,Yn)}Ei.toArray(t[1])}}}}function gk(t,e,n,r){var i=n==="normal",o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function oHe(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ll(r[0],r[1]),o=Ll(r[1],r[2]);if(!i||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=T0([],r[1],r[0],a/i),l=T0([],r[1],r[2],a/o),u=T0([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&S(-c/a,0,a);var v=t[0],m=t[a-1],y,b;O(),y<0&&x(-y,.8),b<0&&x(b,.8),O(),w(y,b,1),w(b,y,-1),O(),y<0&&T(-y),b<0&&T(b);function O(){y=v.rect[e]-r,b=i-m.rect[e]-m.rect[n]}function w($,A,P){if($<0){var M=Math.min(A,-$);if(M>0){S(M*P,0,a);var I=M+$;I<0&&x(-I*P,1)}else x(-$*P,1)}}function S($,A,P){$!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var B=P[I-1]*D;S(-B,I,a)}}}function T($){var A=$<0?-1:1;$=Math.abs($);for(var P=Math.ceil($/(a-1)),M=0;M0?S(P,0,M+1):S(-P,a-M-1,a),$-=P,$<=0)return}return u}function aHe(t,e,n,r){return LJ(t,"x","width",e,n,r)}function BJ(t,e,n,r){return LJ(t,"y","height",e,n,r)}function VJ(t){var e=[];t.sort(function(v,m){return m.priority-v.priority});var n=new at(0,0,0,0);function r(v){if(!v.ignore){var m=v.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&r.attr(o.oldLayoutSelect),st(d,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),Rt(r,u,n,l)}else if(r.attr(u),!yg(r).valueAnimation){var f=Je(r.style.opacity,1);r.style.opacity=0,vn(r,{style:{opacity:f}},n,l)}if(o.oldLayout=u,r.states.select){var p=o.oldLayoutSelect={};Dx(p,u,Rx),Dx(p,r.states.select,Rx)}if(r.states.emphasis){var g=o.oldLayoutEmphasis={};Dx(g,u,Rx),Dx(g,r.states.emphasis,Rx)}dY(r,l,c,n,n)}if(i&&!i.ignore&&!i.invisible){var o=uHe(i),a=o.oldLayout,v={points:i.shape.points};a?(i.attr({shape:a}),Rt(i,{shape:v},n)):(i.setShape(v),i.style.strokePercent=0,vn(i,{style:{strokePercent:1}},n)),o.oldLayout=v}},t}(),bk=Tt();function fHe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var i=bk(n).labelManager;i||(i=bk(n).labelManager=new cHe),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var i=bk(n).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var _k=Math.sin,Ok=Math.cos,FJ=Math.PI,zd=Math.PI*2,dHe=180/FJ,WJ=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){this._add("C",e,n,r,i,o,a)},t.prototype.quadraticCurveTo=function(e,n,r,i){this._add("Q",e,n,r,i)},t.prototype.arc=function(e,n,r,i,o,a){this.ellipse(e,n,r,r,0,i,o,a)},t.prototype.ellipse=function(e,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=tc(f-zd)||(c?u>=zd:-u>=zd),p=u>0?u%zd:u%zd+zd,g=!1;d?g=!0:tc(f)?g=!1:g=p>=FJ==!!c;var v=e+r*Ok(a),m=n+i*_k(a);this._start&&this._add("M",v,m);var y=Math.round(o*dHe);if(d){var b=1/this._p,O=(c?1:-1)*(zd-b);this._add("A",r,i,y,1,+c,e+r*Ok(a+O),n+i*_k(a+O)),b>.01&&this._add("A",r,i,y,0,+c,v,m)}else{var w=e+r*Ok(s),S=n+i*_k(s);this._add("A",r,i,y,+g,+c,w,S)}},t.prototype.rect=function(e,n,r,i){this._add("M",e,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d"}function OHe(t){return""}function xk(t,e){e=e||{};var n=e.newline?` `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return _He(a,s)+(a!=="style"?_i(l):l||"")+(o?""+n+me(o,function(u){return r(u)}).join(n)+n:"")+OHe(a)}return r(t)}function wHe(t,e,n){n=n||{};var r=n.newline?` `:"",i=" {"+r,o=r+"}",a=me(bt(t),function(l){return l+i+me(bt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+o}).join(r),s=me(bt(e),function(l){return"@keyframes "+l+i+me(bt(e[l]),function(u){return u+i+me(bt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":[""].join(r)}function Ck(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function UJ(t,e,n,r){return wr("svg","root",{width:t,height:e,xmlns:QJ,"xmlns:xlink":HJ,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var SHe=0;function ZJ(){return SHe++}var XJ={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"},Fd="transform-origin";function xHe(t,e,n){var r=he({},t.shape);he(r,e),t.buildPath(n,r);var i=new WJ;return i.reset(ZU(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function CHe(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Fd]=n+"px "+r+"px")}var THe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function YJ(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function PHe(t,e,n){var r=t.shape.paths,i={},o,a;if(V(r,function(l){var u=Ck(n.zrId);u.animation=!0,kx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=bt(c),p=d.length;if(p){a=d[p-1];var g=c[a];for(var v in g){var m=g[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var y in f){var b=f[y].animation;b.indexOf(a)>=0&&(o=b)}}}),!!o){e.d=!1;var s=YJ(i,n);return o.replace(a,s)}}function qJ(t){return Ie(t)?XJ[t]?"cubic-bezier("+XJ[t]+")":gI(t)?t:"":""}function kx(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof CS){var s=PHe(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length){var ie=YJ(T,n);return ie+" "+b[0]+" both"}}for(var m in l){var s=v(l[m]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+ZJ();n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function $He(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};KJ(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=Qw(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),KJ(r,e,n)}}function KJ(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+ZJ(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var Vy=Math.round;function JJ(t){return t&&Ie(t.src)}function eee(t){return t&&ze(t.toDataURL)}function Tk(t,e,n,r){mHe(function(i,o){var a=i==="fill"||i==="stroke";a&&UU(o)?aee(e,t,i,r):a&&wI(o)?see(n,t,i,r):a&&o==="none"?t[i]="transparent":t[i]=o},e,n,!1),kHe(n,t,r)}function Pk(t,e){var n=hZ(e);n&&(n.each(function(r,i){r!=null&&(t[(GJ+i).toLowerCase()]=r+"")}),e.isSilent()&&(t[GJ+"silent"]="true"))}function tee(t){return tc(t[0]-1)&&tc(t[1])&&tc(t[2])&&tc(t[3]-1)}function AHe(t){return tc(t[4])&&tc(t[5])}function $k(t,e,n){if(e&&!(AHe(e)&&tee(e))){var r=1e4;t.transform=tee(e)?"translate("+Vy(e[4]*r)/r+" "+Vy(e[5]*r)/r+")":w6e(e)}}function nee(t,e,n){for(var r=t.points,i=[],o=0;o"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";je(d,m),je(p,m)}else if(d==null||p==null){var y=function(P,M){if(P){var I=P.elm,R=d||M.width,L=p||M.height;P.tag==="pattern"&&(u?(L=1,R/=o.width):c&&(R=1,L/=o.height)),P.attrs.width=R,P.attrs.height=L,I&&(I.setAttribute("width",R),I.setAttribute("height",L))}},b=tD(g,null,t,function(P){l||y(x,P),y(f,P)});b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}f=wr("image","img",{href:g,width:d,height:p}),a.width=d,a.height=p}else i.svgElement&&(f=Ue(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var O,w;l?O=w=1:u?(w=1,O=a.width/o.width):c?(O=1,w=a.height/o.height):a.patternUnits="userSpaceOnUse",O!=null&&!isNaN(O)&&(a.width=O),w!=null&&!isNaN(w)&&(a.height=w);var S=XU(i);S&&(a.patternTransform=S);var x=wr("pattern","",a,[f]),T=xk(x),$=r.patternCache,A=$[T];A||(A=r.zrId+"-p"+r.patternIdx++,$[T]=A,a.id=A,x=r.defs[A]=wr("pattern",A,a,[f])),e[n]=jw(A)}}function NHe(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=wr("clipPath",o,a,[iee(t,n)])}e["clip-path"]=jw(o)}function lee(t){return document.createTextNode(t)}function Wd(t,e,n){t.insertBefore(e,n)}function uee(t,e){t.removeChild(e)}function cee(t,e){t.appendChild(e)}function fee(t){return t.parentNode}function dee(t){return t.nextSibling}function Ak(t,e){t.textContent=e}var hee=58,LHe=120,BHe=wr("","");function Ek(t){return t===void 0}function Ks(t){return t!==void 0}function VHe(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;o!==void 0&&(process.env.NODE_ENV!=="production"&&r[o]!=null&&console.error("Duplicate key "+o),r[o]=i)}return r}function zy(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function Fy(t){var e,n=t.children,r=t.tag;if(Ks(r)){var i=t.elm=jJ(r);if(Mk(BHe,t),ge(n))for(e=0;eo?(g=n[l+1]==null?null:n[l+1].elm,pee(t,g,n,i,l)):Nx(t,e,r,o))}function zg(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Mk(t,e),Ek(e.text)?Ks(r)&&Ks(i)?r!==i&&zHe(n,r,i):Ks(i)?(Ks(t.text)&&Ak(n,""),pee(n,null,i,0,i.length-1)):Ks(r)?Nx(n,r,0,r.length-1):Ks(t.text)&&Ak(n,""):t.text!==e.text&&(Ks(r)&&Nx(n,r,0,r.length-1),Ak(n,e.text)))}function FHe(t,e){if(zy(t,e))zg(t,e);else{var n=t.elm,r=fee(n);Fy(e),r!==null&&(Wd(r,e.elm,dee(n)),Nx(r,[t],0,0))}return e}var WHe=0,QHe=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=gee("refreshHover"),this.configLayer=gee("configLayer"),this.storage=n,this._opts=r=he({},r),this.root=e,this._id="zr"+WHe++,this._oldVNode=UJ(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=jJ("svg");Mk(null,this._oldVNode),i.appendChild(o),e.appendChild(i)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",FHe(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return oee(e,Ck(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=Ck(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var a=[],s=this._bgVNode=HHe(r,i,this._backgroundColor,o);s&&a.push(s);var l=e.compress?null:this._mainVNode=wr("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=me(bt(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(wr("defs","defs",{},u)),e.animation){var c=wHe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=wr("style","stl",{},[],c);a.push(f)}}return UJ(r,i,a,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},xk(this.renderToVNode({animation:Je(e.cssAnimation,!0),emphasis:Je(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Je(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var i=e.length,o=[],a=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var m=g-1;m>v;m--)a--,s=o[a-1];for(var y=v+1;y=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)$=m.__endIndex;else for(var P=p.dpr,M=0;M0&&e>i[0]){for(l=0;le);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,i=0;i0?Lx:0),this._needsManuallyCompositing),c.__builtin__||ea("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&Oo&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,V(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?it(r[e],n,!0):r[e]=n;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},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}(on);function Fg(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Tg(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var Wy=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this)||this;return a.updateData(n,r,i,o),a}return e.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Xn(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=KHe,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){jl(this.childAt(0))},e.prototype.downplay=function(){Ul(this.childAt(0))},e.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},e.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},e.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):Rt(d,p,s,r),os(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,vn(d,p,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,d,p,g,v,m,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,p=o.blurScope,v=o.labelStatesModels,m=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),O=b.getModel("emphasis");u=O.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=O.get("focus"),p=O.get("blurScope"),g=O.get("disabled"),v=_r(b),m=O.getShallow("scale"),y=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var S=Id(n.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),y&&s.attr("cursor",y);var x=n.getItemVisual(r,"style"),T=x.fill;if(s instanceof Rr){var $=s.style;s.useStyle(he({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},x))}else s.__isEmptyBrush?s.useStyle(he({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var A=n.getItemVisual(r,"liftZ"),P=this._z2;A!=null?P==null&&(this._z2=s.z2,s.z2+=A):P!=null&&(s.z2=P,this._z2=null);var M=a&&a.useNameLabel;Gr(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:I,inheritColor:T,defaultOpacity:x.opacity});function I(D){return M?n.getName(D):Fg(n,D)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),Ln(this,d,p,g)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Ke(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&lc(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();lc(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return Mg(n.getItemVisual(r,"symbolSize"))},e}(qe);function KHe(t,e){this.parent.drift(t,e)}function Dk(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function bee(t){return t!=null&&!Qe(t)&&(t={isIgnore:t}),t||{}}function _ee(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:_r(e),cursorStyle:e.get("cursor")}}var Qy=function(){function t(e){this.group=new qe,this._SymbolCtor=e||Wy}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=bee(n);var r=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=_ee(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};o||r.removeAll(),e.diff(o).add(function(f){var d=c(f);if(Dk(e,d,f,n)){var p=new a(e,f,l,u);p.setPosition(d),e.setItemGraphicEl(f,p),r.add(p)}}).update(function(f,d){var p=o.getItemGraphicEl(d),g=c(f);if(!Dk(e,g,f,n)){r.remove(p);return}var v=e.getItemVisual(f,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)r.remove(p),p=new a(e,f,l,u),p.setPosition(g);else{p.updateData(e,f,l,u);var y={x:g[0],y:g[1]};s?p.attr(y):Rt(p,y,i)}r.add(p),e.setItemGraphicEl(f,p)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=e._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_ee(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=bee(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function wee(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function eGe(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function tGe(t,e,n,r,i,o,a,s){for(var l=eGe(t,e),u=[],c=[],f=[],d=[],p=[],g=[],v=[],m=Oee(i,e,a),y=t.getLayout("points")||[],b=e.getLayout("points")||[],O=0;O=i||v<0)break;if(Hd(y,b)){if(l){v+=o;continue}break}if(v===n)t[o>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var O=y-u,w=b-c;if(O*O+w*w<.5){v+=o;continue}if(a>0){for(var S=v+o,x=e[S*2],T=e[S*2+1];x===y&&T===b&&m=r||Hd(x,T))p=y,g=b;else{P=x-u,M=T-c;var L=y-u,D=x-y,B=b-c,F=T-b,z=void 0,W=void 0;if(s==="x"){z=Math.abs(L),W=Math.abs(D);var j=P>0?1:-1;p=y-j*z*a,g=b,I=y+j*W*a,R=b}else if(s==="y"){z=Math.abs(B),W=Math.abs(F);var H=M>0?1:-1;p=y,g=b-H*z*a,I=y,R=b+H*W*a}else z=Math.sqrt(L*L+B*B),W=Math.sqrt(D*D+F*F),A=W/(W+z),p=y-P*a*(1-A),g=b-M*a*(1-A),I=y+P*a*A,R=b+M*a*A,I=yc(I,bc(x,y)),R=yc(R,bc(T,b)),I=bc(I,yc(x,y)),R=bc(R,yc(T,b)),P=I-y,M=R-b,p=y-P*z/W,g=b-M*z/W,p=yc(p,bc(u,y)),g=yc(g,bc(c,b)),p=bc(p,yc(u,y)),g=bc(g,yc(c,b)),P=y-p,M=b-g,I=y+P*W/z,R=b+M*W/z}t.bezierCurveTo(f,d,p,g,y,b),f=I,d=R}else t.lineTo(y,b)}u=y,c=b,v+=o}return m}var See=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),nGe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new See},e.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&Hd(i[a*2-2],i[a*2-1]);a--);for(;o=0){var w=u?(g-l)*O+l:(p-s)*O+s;return u?[n,w]:[w,n]}s=p,l=g;break;case a.C:p=o[f++],g=o[f++],v=o[f++],m=o[f++],y=o[f++],b=o[f++];var S=u?zw(s,p,v,y,n,c):zw(l,g,m,b,n,c);if(S>0)for(var x=0;x=0){var w=u?yr(l,g,m,b,T):yr(s,p,v,y,T);return u?[n,w]:[w,n]}}s=y,l=b;break}}},e}(yt),rGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(See),xee=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new rGe},e.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Hd(i[s*2-2],i[s*2-1]);s--);for(;ae){o?n.push(a(o,l,e)):i&&n.push(a(i,l,0),a(i,l,e));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function aGe(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=me(o.stops,function(O){return{coord:l.toGlobalCoord(l.dataToCoord(O.value)),color:O.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=oGe(u,i==="x"?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";V(d,function(O){O.offset=(O.coord-v)/y}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var b=new dg(0,0,0,0,d,!0);return b[i]=v,b[i+"2"]=m,b}}function sGe(t,e,n){var r=t.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&lGe(o,e))){var a=e.mapDimension(o.dim),s={};return V(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function lGe(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function uGe(t,e){return isNaN(t)||isNaN(e)}function cGe(t){for(var e=t.length/2;e>0&&uGe(t[e*2-2],t[e*2-1]);e--);return e-1}function Mee(t,e){return[t[e*2],t[e*2+1]]}function fGe(t,e,n){for(var r=t.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=e||o>=e&&a<=e){l=u;break}s=u,o=a}return{range:[s,l],t:(e-o)/(a-o)}}function Iee(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var j=v.getState("emphasis").style;j.lineWidth=+v.style.lineWidth+1}Ke(v).seriesIndex=n.seriesIndex,Ln(v,F,z,W);var H=Eee(n.get("smooth")),Z=n.get("smoothMonotone");if(v.setShape({smooth:H,smoothMonotone:Z,connectNulls:$}),m){var J=l.getCalculationInfo("stackedOnSeries"),se=0;m.useStyle(Ge(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(se=Eee(J.get("smooth"))),m.setShape({smooth:H,stackedOnSmooth:se,smoothMonotone:Z,connectNulls:$}),Hr(m,n,"areaStyle"),Ke(m).seriesIndex=n.seriesIndex,Ln(m,F,z,W)}var oe=function(de){o._changePolyState(de)};l.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},e.prototype.packEventData=function(n,r){Ke(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=id(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,p=n.get("z")||0;u=new Wy(a,s),u.x=c,u.y=f,u.setZ(d,p);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=p,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Jt.prototype.highlight.call(this,n,r,i,o)},e.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=id(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Jt.prototype.downplay.call(this,n,r,i,o)},e.prototype._changePolyState=function(n){var r=this._polygon;bS(this._polyline,n),r&&bS(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new nGe({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new xee({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");ze(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ze(f)?f(null):f;n.eachItemGraphicEl(function(p,g){var v=p;if(v){var m=[p.x,p.y],y=void 0,b=void 0,O=void 0;if(i)if(a){var w=i,S=r.pointToCoord(m);o?(y=w.startAngle,b=w.endAngle,O=-S[1]/180*Math.PI):(y=w.r0,b=w.r,O=S[0])}else{var x=i;o?(y=x.x,b=x.x+x.width,O=p.x):(y=x.y+x.height,b=x.y,O=p.y)}var T=b===y?0:(O-y)/(b-y);l&&(T=1-T);var $=ze(f)?f(g):c*T+d,A=v.getSymbolPath(),P=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:$}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:$}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(Iee(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new $t({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=cGe(l);c>=0&&(Gr(s,_r(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?yee(a,p):Fg(a,f)},enableTextSetter:!0},dGe(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,p=d.get("connectNulls"),g=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,O=r.shape,w=b?y?O.x:O.y+O.height:y?O.x+O.width:O.y,S=(y?v:0)*(b?-1:1),x=(y?0:-v)*(b?-1:1),T=y?"x":"y",$=fGe(f,w,T),A=$.range,P=A[1]-A[0],M=void 0;if(P>=1){if(P>1&&!p){var I=Mee(f,A[0]);u.attr({x:I[0]+S,y:I[1]+x}),a&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(w,T);I&&u.attr({x:I[0]+S,y:I[1]+x});var R=d.getRawValue(A[0]),L=d.getRawValue(A[1]);a&&(M=IZ(i,g,R,L,$.t))}o.lastFrameIndex=A[0]}else{var D=n===1||o.lastFrameIndex>0?A[0]:0,I=Mee(f,D);a&&(M=d.getRawValue(D)),u.attr({x:I[0]+S,y:I[1]+x})}if(a){var B=yg(u);typeof B.setLabelText=="function"&&B.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=tGe(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=d.current,g=d.stackedOnCurrent,v=d.next,m=d.stackedOnNext;if(a&&(p=_c(d.current,i,a,l),g=_c(d.stackedOnCurrent,i,a,l),v=_c(d.next,i,a,l),m=_c(d.stackedOnNext,i,a,l)),Aee(p,v)>3e3||c&&Aee(g,m)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:v}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),Rt(u,y,f),c&&(c.setShape({points:p,stackedOnPoints:g}),c.stopAnimation(),Rt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],O=d.status,w=0;we&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},gGe=function(t){return Math.round(t.length/2)};function Dee(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),o=e.get("sampling"),a=e.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){o==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var g=void 0;Ie(o)?g=pGe[o]:ze(o)&&(g=o),g&&e.setData(i.downSample(i.mapDimension(u.dim),1/p,g,gGe))}}}}}function vGe(t){t.registerChartView(hGe),t.registerSeriesModel(qHe),t.registerLayout(Gy("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dee("line"))}var jy=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)V(o.getAxes(),function(d,p){if(d.type==="category"&&r!=null){var g=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),m=a[p],y=r[p]==="x1"||r[p]==="y1";if(y&&!v&&(m+=1),g.length<2)return;if(g.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var b=void 0,O=void 0,w=1,S=0;Sm){O=(x+b)/2;break}S===1&&(w=T-g[0].tickValue)}O==null&&(b?b&&(O=g[g.length-1].coord):O=g[0].coord),s[p]=d.toGlobalCoord(O)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/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}(on);on.registerClass(jy);var mGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return Us(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 n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=fc(jy.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}(jy),yGe=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Bx=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new yGe},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,u=a+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,p=Math.PI*2,g=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){ly(o,n,Ke(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jt),Ree={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=Nk(e.x,t.x),s=Lk(e.x+e.width,i),l=Nk(e.y,t.y),u=Lk(e.y+e.height,o),c=si?s:a,e.y=f&&l>o?u:l,e.width=c?0:s-a,e.height=f?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=Lk(e.r,t.r),o=Nk(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},kee={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Pt({shape:he({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?Bx:Ci,c=new u({shape:r,z2:1});c.name="item";var f=Vee(i);if(c.calculateTextPosition=bGe(f,{isRoundCap:u===Bx}),o){var d=c.shape,p=i?"r":"endAngle",g={};d[p]=i?r.r0:r.startAngle,g[p]=r[p],(s?Rt:vn)(c,{shape:g},o)}return c}};function SGe(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&En("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&En("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Nee(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Rt:vn)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?Rt:vn)(n,{shape:u},c,i)}function Lee(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function TGe(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Vee(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function zee(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=t.shape,f=jd(r.getModel("itemStyle"),c,!0);he(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=_r(r);Gr(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:Fg(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var v=t.getTextContent();if(s&&v){var m=r.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,_Ge(t,m==="outside"?p:m,Vee(a),r.get(["label","rotate"]))}fY(v,g,o.getRawValue(n),function(b){return yee(e,b)});var y=r.getModel(["emphasis"]);Ln(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Hr(t,r),TGe(i)&&(t.style.fill="none",t.style.stroke="none",V(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function PGe(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var $Ge=function(){function t(){}return t}(),Fee=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new $Ge},e.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function AGe(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function Hee(t,e,n){if(Gd(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}else{var i=n.getArea(),o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:Math.PI*2}}}function EGe(t,e,n){var r=t.type==="polar"?Ci:Pt;return new r({shape:Hee(e,n,t),silent:!0,z2:0})}function MGe(t){t.registerChartView(wGe),t.registerSeriesModel(mGe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tt(sJ,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lJ("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dee("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Gee=Math.PI*2,Wx=Math.PI/180;function jee(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Uee(t,e){var n=jee(t,e),r=t.get("center"),i=t.get("radius");ge(i)||(i=[0,i]);var o=Ee(n.width,e.getWidth()),a=Ee(n.height,e.getHeight()),s=Math.min(o,a),l=Ee(i[0],s/2),u=Ee(i[1],s/2),c,f,d=t.coordinateSystem;if(d){var p=d.dataToPoint(r);c=p[0]||0,f=p[1]||0}else ge(r)||(r=[r,r]),c=Ee(r[0],o)+n.x,f=Ee(r[1],a)+n.y;return{cx:c,cy:f,r0:l,r:u}}function IGe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),o=i.mapDimension("value"),a=jee(r,n),s=Uee(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Wx,p=r.get("endAngle"),g=r.get("padAngle")*Wx;p=p==="auto"?d-Gee:-p*Wx;var v=r.get("minAngle")*Wx,m=v+g,y=0;i.each(o,function(F){!isNaN(F)&&y++});var b=i.getSum(o),O=Math.PI/(b||y)*2,w=r.get("clockwise"),S=r.get("roseType"),x=r.get("stillShowZeroSum"),T=i.getDataExtent(o);T[0]=0;var $=w?1:-1,A=[d,p],P=$*g/2;pD(A,!w),d=A[0],p=A[1];var M=Zee(r);M.startAngle=d,M.endAngle=p,M.clockwise=w;var I=Math.abs(p-d),R=I,L=0,D=d;if(i.setLayout({viewRect:a,r:c}),i.each(o,function(F,z){var W;if(isNaN(F)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?W=b===0&&x?O:F*O:W=I/y,WW?(H=D+$*W/2,Z=H):(H=D+P,Z=j-P),i.setItemLayout(z,{angle:W,startAngle:H,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:S?qt(F,T,[f,c]):c}),D=j}),Rn?y:m,S=Math.abs(O.label.y-n);if(S>=w.maxY){var x=O.label.x-e-O.len2*i,T=r+O.len,$=Math.abs(x)t.unconstrainedWidth?null:p:null;r.setStyle("width",g)}var v=r.getBoundingRect();o.width=v.width;var m=(r.style.margin||0)+2.1;o.height=v.height+m,o.y-=(o.height-f)/2}}}function Bk(t){return t.position==="center"}function kGe(t){var e=t.getData(),n=[],r,i,o=!1,a=(t.get("minShowLabelAngle")||0)*DGe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(x){x.ignore=!0}function g(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}e.each(function(x){var T=e.getItemGraphicEl(x),$=T.shape,A=T.getTextContent(),P=T.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),R=I.get("position")||M.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),D=I.get("alignTo"),B=Ee(I.get("edgeDistance"),u),F=I.get("bleedMargin"),z=M.getModel("labelLine"),W=z.get("length");W=Ee(W,u);var j=z.get("length2");if(j=Ee(j,u),Math.abs($.endAngle-$.startAngle)0?"right":"left":Z>0?"left":"right"}var Ne=Math.PI,Be=0,Me=I.get("rotate");if(Et(Me))Be=Me*(Ne/180);else if(R==="center")Be=0;else if(Me==="radial"||Me===!0){var $e=Z<0?-H+Ne:-H;Be=$e}else if(Me==="tangential"&&R!=="outside"&&R!=="outer"){var _e=Math.atan2(Z,J);_e<0&&(_e=Ne*2+_e);var De=J>0;De&&(_e=Ne+_e),Be=_e-Ne}if(o=!!Be,A.x=se,A.y=oe,A.rotation=Be,A.setStyle({verticalAlign:"middle"}),ue){A.setStyle({align:ie});var vt=A.states.select;vt&&(vt.x+=A.x,vt.y+=A.y)}else{var Fe=A.getBoundingRect().clone();Fe.applyTransform(A.getComputedTransform());var ct=(A.style.margin||0)+2.1;Fe.y-=ct/2,Fe.height+=ct,n.push({label:A,labelLine:P,position:R,len:W,len2:j,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new ot(Z,J),linePoints:de,textAlign:ie,labelDistance:L,labelAlignTo:D,edgeDistance:B,bleedMargin:F,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:ue})}}),!o&&t.get("avoidLabelOverlap")&&RGe(n,r,i,l,u,d,c,f);for(var v=0;v0){for(var c=a.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=o.r0}},e.type="pie",e}(Jt);function Wg(t,e,n){e=ge(e)&&{coordDimensions:e}||he({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ng(r,e).dimensions,o=new ci(i,t);return o.initData(r,n),o}var Zy=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}(),BGe=Tt(),VGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Wg(this,{coordDimensions:["value"],encodeDefaulter:tt(iR,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=BGe(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=mZ(a,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.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}(on);function zGe(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(Et(a)&&!isNaN(a)&&a<0)})}}}function FGe(t){t.registerChartView(LGe),t.registerSeriesModel(VGe),Jq("pie",t.registerAction),t.registerLayout(tt(IGe,"pie")),t.registerProcessor(Uy("pie")),t.registerProcessor(zGe("pie"))}var WGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},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}(on),qee=4,QGe=function(){function t(){}return t}(),HGe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new QGe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,u=l&&o[0]=0;u--){var c=u*2,f=o[c]-s/2,d=o[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),jGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,i){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=Gy("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new GGe:new Qy,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Jt),UGe=function(t){re(e,t);function e(){return t!==null&&t.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}(dt),Vk=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jn).models[0]},e.type="cartesian2dAxis",e}(dt);Wn(Vk,Vg);var Kee={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)"]}}},ZGe=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Kee),zk=it({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}}},Kee),XGe=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zk),YGe=Ge({logBase:10},zk);const Jee={category:ZGe,value:zk,time:XGe,log:YGe};var qGe={value:1,category:1,time:1,log:1};function Qg(t,e,n,r){V(qGe,function(i,o){var a=it(it({},Jee[o],!0),r,!0),s=function(l){re(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=vy(this),p=d?Sg(c):{},g=f.getTheme();it(c,g.get(o+"Axis")),it(c,this.getDefaultOption()),c.type=ete(c),d&&dc(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=nk.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+o,u.defaultOption=a,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ete)}function ete(t){return t.type||(t.data?"category":"value")}var KGe=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return me(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yt(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}(),Fk=["x","y"];function tte(t){return t.type==="interval"||t.type==="time"}var JGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Fk,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!tte(n)||!tte(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,p=a[1]-o[0]*f,g=this._transform=[c,0,0,f,d,p];this._invTransform=Zf([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},e.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Ir(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},e.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Ir(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new at(o,a,s,l)},e}(KGe),eje=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(ma);function Wk(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=[u==="y"?g[d[l]]:f[0],u==="x"?g[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Un(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function nte(t){return t.get("coordinateSystem")==="cartesian2d"}function rte(t){var e={xAxisModel:null,yAxisModel:null};return V(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Jn).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(i+' "'+_o(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o}),e}var Qk=Math.log;function ite(t,e,n){var r=Jl.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=gJ(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=Qk(t.base);u=[Qk(u[0])/d,Qk(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var p=r.getExtent.call(t);c&&(u[0]=p[0]),f&&(u[1]=p[1]);var g=r.getInterval.call(t),v=u[0],m=u[1];if(c&&f)g=(m-v)/a;else if(c)for(m=u[0]+g*a;mu[0]&&isFinite(v)&&isFinite(u[0]);)g=ik(g),v=u[1]-g*a;else{var y=t.getTicks().length-1;y>a&&(g=ik(g));var b=g*a;m=Math.ceil(u[1]/g)*g,v=Nn(m-b),v<0&&u[0]>=0?(v=0,m=Nn(b)):m>0&&u[1]<=0&&(m=0,v=-Nn(b))}var O=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,v+g*O,m+g*w),r.setInterval.call(t,g),(O||w)&&r.setNiceExtent.call(t,v+g,m-g),process.env.NODE_ENV!=="production"){var S=r.getTicks.call(t);S[1]&&(!YQe(g)||rS(S[1].value)>rS(g))&&En("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var tje=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fk,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function i(a){var s,l=bt(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=a[d],g=p.model,v=p.scale;rk(v)&&g.get("alignTicks")&&g.get("interval")==null?c.push(p):(Ld(v,g),rk(v)&&(s=p))}c.length&&(s||(s=c.pop(),Ld(s.scale,s.model)),V(c,function(m){ite(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var o={};V(r.x,function(a){ote(r,"y",a,o)}),V(r.y,function(a){ote(r,"x",a,o)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),a=er(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=_9e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),nje(u,c?a.x:a.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}Qe(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):rg(i-Oc)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),ste={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Ir(s,s,a),Ir(l,l,a));var c=he({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new br({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});gg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);Ie(d)&&(d=[d,d]),(Ie(p)||Et(p))&&(p=[p,p]);var g=Id(e.get(["axisLine","symbolOffset"])||0,p),v=p[0],m=p[1];V([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(d[b]!=="none"&&d[b]!=null){var O=Xn(d[b],-v/2,-m/2,v,m,c.stroke,!0),w=y.r+y.offset,S=u?l:s;O.attr({rotation:y.rotate,x:S[0]+w*Math.cos(t.rotation),y:S[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(O)}})}}},axisTickLabel:function(t,e,n,r){var i=oje(n,r,e,t),o=sje(n,r,e,t);if(ije(e,o,i),aje(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=NJ(me(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));VJ(a)}},axisName:function(t,e,n,r){var i=Un(t.axisName,e.get("name"));if(i){var o=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,ute(o)?t.labelOffset+a*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*Oc/180);var g;ute(o)?d=Ii.innerTextLayout(t.rotation,p??t.rotation,a):(d=rje(t.rotation,o,p||0,u),g=t.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(d.rotation)),!isFinite(g)&&(g=null)));var v=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Un(t.nameTruncateMaxWidth,m.maxWidth,g),O=new $t({x:f[0],y:f[1],rotation:d.rotation,silent:Ii.isLabelSilent(e),style:un(s,{text:i,font:v,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(mg({el:O,componentModel:e,itemName:i}),O.__fullText=i,O.anid="name",e.get("triggerEvent")){var w=Ii.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Ke(O).eventData=w}r.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function rje(t,e,n,r){var i=UI(n-t),o,a,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return rg(i-Oc/2)?(a=l?"bottom":"top",o="center"):rg(i-Oc*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iOc/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function ije(t,e,n){if(!vJ(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(ya(o),ya(u)):lte(o,a)&&(r?(ya(a),ya(c)):(ya(o),ya(u))),i===!1?(ya(s),ya(f)):lte(l,s)&&(i?(ya(l),ya(d)):(ya(s),ya(f)))}}function ya(t){t&&(t.ignore=!0)}function lte(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var i=P0([]);return Yu(i,i,-t.rotation),n.applyTransform(ks([],i,t.getLocalTransform())),r.applyTransform(ks([],i,e.getLocalTransform())),n.intersect(r)}}function ute(t){return t==="middle"||t==="center"}function cte(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||t===e}function hje(t){var e=jk(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=Uk(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var v=l;g.color!=null&&(v=Ge({color:g.color},l));var m=it(Ue(g),{boundaryGap:n,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(Ie(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else ze(c)&&(m.name=c(m.name,m));var b=new rn(m,null,this.ecModel);return Wn(b,Vg.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=p},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:it({lineStyle:{color:"#bbb"}},Yy.axisLine),axisLabel:Qx(Yy.axisLabel,!1),axisTick:Qx(Yy.axisTick,!1),splitLine:Qx(Yy.splitLine,!0),splitArea:Qx(Yy.splitArea,!0),indicator:[]},e}(dt),Tje=["axisLine","axisTickLabel","axisName"],Pje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),o=me(i,function(a){var s=a.model.get("showName")?a.name:"",l=new Ii(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(o,function(a){V(Tje,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),f=s.get("show"),d=l.get("color"),p=u.get("color"),g=ge(d)?d:[d],v=ge(p)?p:[p],m=[],y=[];function b(D,B,F){var z=F%B.length;return D[z]=D[z]||[],z}if(o==="circle")for(var O=i[0].getTicksCoords(),w=r.cx,S=r.cy,x=0;x3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;qk(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);qk(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!_te(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;qk(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(ra);function qk(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(zl(r.event),Ote(t,e,n,r,i))}function Ote(t,e,n,r,i){i.isAvailableBehavior=Re(Hx,null,n,r),t.trigger(e,i)}function Hx(t,e,n){var r=n[t];return!t||r&&(!Ie(r)||e.event[r+"Key"])}function Kk(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function Jk(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Rje={axisPointer:1,tooltip:1,brush:1};function Gx(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Rje.hasOwnProperty(r.mainType)&&i&&i.model!==n}function wte(t){if(Ie(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var eN,jx={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"},Ste=bt(jx),Ux={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xte=bt(Ux),kje=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=wte(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Illegal svg");this._defsUsePending=[];var i=new qe;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),$o(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;Bje(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(a){var d=Zx(a);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=Ite(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var p=i;i=new qe,i.add(p),p.scaleX=p.scaleY=f.scale,p.x=f.x,p.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:o}},t.prototype._parseNode=function(e,n,r,i,o,a){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=n;else{if(!o){var c=eN[s];if(c&&ke(eN,s)){l=c.call(this,e,n);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});n.add(l)}}var p=Cte[s];if(p&&ke(Cte,s)){var g=p.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=g)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,o,a):m.nodeType===3&&a&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,n){var r=new ag({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ba(n,r),$o(e,r,this._defsUsePending,!1,!1),Nje(r,n);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){eN={g:function(e,n){var r=new qe;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new Pt;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},circle:function(e,n){var r=new Zl;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new br;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},ellipse:function(e,n){var r=new wS;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),i;r&&(i=$te(r));var o=new Ti({shape:{points:i||[]},silent:!0});return ba(n,o),$o(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,n){var r=e.getAttribute("points"),i;r&&(i=$te(r));var o=new Pi({shape:{points:i||[]},silent:!0});return ba(n,o),$o(e,o,this._defsUsePending,!1,!1),o},image:function(e,n){var r=new Rr;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new qe;return ba(n,s),$o(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,n){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new qe;return ba(n,s),$o(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(e,n){var r=e.getAttribute("d")||"",i=kX(r);return ba(n,i),$o(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),Cte={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new dg(e,n,r,i);return Tte(t,o),Pte(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new ID(e,n,r);return Tte(t,i),Pte(t,i),i}};function Tte(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function Pte(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};Mte(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function ba(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ge(e.__inheritedStyle,t.__inheritedStyle))}function $te(t){for(var e=Zx(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=Zx(a);switch(i=i||Ui(),s){case"translate":Ka(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Iw(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yu(i,i,-parseFloat(l[0])*tN,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tN);ks(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*tN);ks(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Ete=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Mte(t,e,n){var r=t.getAttribute("style");if(r){Ete.lastIndex=0;for(var i;(i=Ete.exec(r))!=null;){var o=i[1],a=ke(jx,o)?jx[o]:null;a&&(e[a]=i[2]);var s=ke(Ux,o)?Ux[o]:null;s&&(n[s]=i[2])}}}function Wje(t,e,n){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,i)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=Le(),r=Le(),i=this._regionsGroup,o=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(p,g){return g&&(p=g(p)),p&&[p[0]*o.scaleX+o.x,p[1]*o.scaleY+o.y]}function f(p){for(var g=[],v=!u&&l&&l.project,m=0;m=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Gr(e,_r(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},p);var g=e.getTextContent();if(g&&(Rte(g).ignore=g.ignore,e.textConfig&&a)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(a[0]-v.x)/v.width*100+"%",(a[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Vte(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Ke(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function zte(t,e,n,r,i){t.data||mg({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Fte(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ln(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Rze(e,i,n),a}function Wte(t,e,n){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),V(t,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},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}(on);function lUe(t,e){var n={};return V(t,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);n[a]=n[a]||[],isNaN(i)||n[a].push(i)})}),t[0].map(t[0].mapDimension("value"),function(r,i){for(var o="ec-"+t[0].getName(i),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c1?(w.width=O,w.height=O/m):(w.height=O,w.width=O*m),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var S=t.getBoxLayoutParams();S.aspect=m,w=er(S,{width:g,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function dUe(t,e){V(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var hUe=function(){function t(){this.dimensions=Gte}return t.prototype.create=function(e,n){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new Zte(l+s,l,he({nameMap:a.get("nameMap")},i(a)));u.zoomLimit=a.get("scaleLimit"),r.push(u),a.coordinateSystem=u,u.model=a,u.resize=Xte,u.resize(a,n)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),V(o,function(a,s){var l=me(a,function(c){return c.get("nameMap")}),u=new Zte(s,s,he({nameMap:Tw(l)},i(a[0])));u.zoomLimit=Un.apply(null,me(a,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xte,u.resize(a[0],n),V(a,function(c){c.coordinateSystem=u,dUe(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,i){for(var o=(e||[]).slice(),a=Le(),s=0;s=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function bUe(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){wUe(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=SUe(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function _Ue(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Jte(t){return arguments.length?t:TUe}function eb(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function OUe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wUe(t){for(var e=t.children,n=e.length,r=0,i=0;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function SUe(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;s=oN(s),o=aN(o),s&&o;){i=oN(i),a=aN(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);d>0&&(CUe(xUe(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!oN(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),o&&!aN(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oN(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aN(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function xUe(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function CUe(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function TUe(t,e){return t.parentNode===e.parentNode?1:2}var PUe=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),$Ue=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PUe},e.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Ee(r.forkPosition,1),p=[];p[c]=a[c],p[f]=a[f]+(l[f]-a[f])*d,n.moveTo(a[0],a[1]),n.lineTo(p[0],p[1]),n.moveTo(s[0],s[1]),p[c]=s[c],n.lineTo(p[0],p[1]),p[c]=l[c],n.lineTo(p[0],p[1]),n.lineTo(l[0],l[1]);for(var g=1;gb.x,S||(w=w-Math.PI));var T=S?"left":"right",$=s.getModel("label"),A=$.get("rotate"),P=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:$.get("position")||T,rotation:A==null?-w:P,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),R=I==="relative"?O0(a.getAncestorsIndices(),a.getDescendantIndices()):I==="ancestor"?a.getAncestorsIndices():I==="descendant"?a.getDescendantIndices():null;R&&(Ke(n).focus=R),EUe(i,a,c,n,g,p,v,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var D=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);D&&D.hoverState===J0||bS(n.__edge,L)}})}function EUe(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new sy({shape:sN(c,f,d,i,i)})),Rt(v,{shape:sN(c,f,d,o,a)},t));else if(u==="polyline"){if(c==="orthogonal"){if(e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bn&&(n=i.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,i=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,i=t.targetNode;if(Ie(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function sne(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function cN(t,e){var n=sne(t);return st(n,e)>=0}function Yx(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var VUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new rn(i,this,this.ecModel),a=uN.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var g=a.getNodeByDataIndex(p);return g&&g.children.length&&g.isExpand||(d.parentModel=o),d})}var l=0;a.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),a.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Or("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Yx(i,this),r.collapsed=!i.isExpand,r},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}(on);function zUe(t,e,n){for(var r=[t],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s=0;o--)n.push(i[o])}}function FUe(t,e){t.eachSeriesByType("tree",function(n){WUe(n,e)})}function WUe(t,e){var n=OUe(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=Jte(function(O,w){return(O.parentNode===w.parentNode?1:2)/O.depth})):(i=n.width,o=n.height,a=Jte());var s=t.getData().tree.root,l=s.children[0];if(l){yUe(s),zUe(l,bUe,a),s.hierNode.modifier=-l.hierNode.prelim,nb(l,_Ue);var u=l,c=l,f=l;nb(l,function(O){var w=O.getLayout().x;wc.getLayout().x&&(c=O),O.depth>f.depth&&(f=O)});var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,g=0,v=0,m=0,y=0;if(r==="radial")g=i/(c.getLayout().x+d+p),v=o/(f.depth-1||1),nb(l,function(O){m=(O.getLayout().x+p)*g,y=(O.depth-1)*v;var w=eb(m,y);O.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var b=t.getOrient();b==="RL"||b==="LR"?(v=o/(c.getLayout().x+d+p),g=i/(f.depth-1||1),nb(l,function(O){y=(O.getLayout().x+p)*v,m=b==="LR"?(O.depth-1)*g:i-(O.depth-1)*g,O.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(g=i/(c.getLayout().x+d+p),v=o/(f.depth-1||1),nb(l,function(O){m=(O.getLayout().x+p)*g,y=b==="TB"?(O.depth-1)*v:o-(O.depth-1)*v,O.setLayout({x:m,y},!0)}))}}}function QUe(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");he(s,a)})})}function HUe(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=i.coordinateSystem,a=iN(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function GUe(t){t.registerChartView(AUe),t.registerSeriesModel(VUe),t.registerLayout(FUe),t.registerVisual(QUe),HUe(t)}var lne=["treemapZoomToNode","treemapRender","treemapMove"];function jUe(t){for(var e=0;e1;)o=o.parentNode;var a=lR(t.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var UUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};cne(i);var o=n.levels||[],a=this.designatedVisualItemStyle={},s=new rn({itemStyle:a},this,r);o=n.levels=ZUe(o,r);var l=me(o||[],function(f){return new rn(f,s,r)},this),u=uN.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,p){var g=u.getNodeByDataIndex(p),v=g?l[g.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Or("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Yx(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},he(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Le(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){une(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(on);function cne(t){var e=0;V(t.children,function(r){cne(r);var i=r.value;ge(i)&&(i=i[0]),e+=i});var n=t.value;ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ge(t.value)?t.value[0]=n:t.value=n}function ZUe(t,e){var n=nn(e.get("color")),r=nn(e.get(["aria","decal","decals"]));if(n){t=t||[];var i,o;V(t,function(s){var l=new rn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(o=!0)});var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var XUe=8,fne=8,fN=5,YUe=function(){function t(e){this.group=new qe,e.add(this.group)}return t.prototype.render=function(e,n,r,i){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,i),GS(a,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var i=e;i;i=i.parentNode){var o=cr(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+XUe*2,n.emptyItemWidth);n.totalWidth+=s+fne,n.renderList.push({node:i,text:o,width:s})}},t.prototype._renderContent=function(e,n,r,i,o,a,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=VFe(n.pos,n.box),d=n.totalWidth,p=n.renderList,g=i.getModel("itemStyle").getItemStyle(),v=p.length-1;v>=0;v--){var m=p[v],y=m.node,b=m.width,O=m.text;d>f.width&&(d-=b-u,b=u,O=null);var w=new Ti({shape:{points:qUe(l,0,b,c,v===p.length-1,v===0)},style:Ge(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new $t({style:un(o,{text:O})}),textConfig:{position:"inside"},z2:lg*1e4,onclick:tt(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=un(a,{text:O}),w.ensureState("emphasis").style=g,Ln(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),KUe(w,e,y),l+=b+fne}},t.prototype.remove=function(){this.group.removeAll()},t}();function qUe(t,e,n,r,i,o){var a=[[i?t:t-fN,e],[t+n,e],[t+n,e+r],[i?t:t-fN,e+r]];return!o&&a.splice(2,0,[t+n+fN,e+r/2]),!i&&a.push([t,e+r/2]),a}function KUe(t,e,n){Ke(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Yx(n,e)}}var JUe=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,i,o){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:i,easing:o}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;ihne||Math.abs(n.dy)>hne)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(n){var r=n.originX,i=n.originY,o=n.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=o,u){var d=u.min||0,p=u.max||1/0;f=Math.max(Math.min(p,f),d)}var g=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;r-=v.x,i-=v.y;var m=Ui();Ka(m,m,[-r,-i]),Iw(m,m,[g,g]),Ka(m,m,[r,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&QS(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,i){var o=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new YUe(this.group))).render(n,r,i.node,function(a){o._state!=="animating"&&(cN(n.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rb(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Jt);function rb(){return{nodeGroup:[],background:[],content:[]}}function oZe(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),f=t.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,g=c.height,v=c.borderWidth,m=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),O=a.viewChildren,w=c.upperHeight,S=O&&O.length,x=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),$=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),P=x.get("borderRadius")||0,M=se("nodeGroup",dN);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),qx(M).nodeWidth=p,qx(M).nodeHeight=g,c.isAboveViewRoot)return M;var I=se("background",dne,u,nZe);I&&W(M,I,S&&c.upperLabelHeight);var R=d.getModel("emphasis"),L=R.get("focus"),D=R.get("blurScope"),B=R.get("disabled"),F=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(S)sc(M)&&md(M,!1),I&&(md(I,!B),f.setItemGraphicEl(a.dataIndex,I),TD(I,F,D));else{var z=se("content",dne,u,rZe);z&&j(M,z),I.disableMorphing=!0,I&&sc(I)&&md(I,!1),md(M,!B),f.setItemGraphicEl(a.dataIndex,M),TD(M,F,D)}return M;function W(ie,ue,ee){var X=Ke(ue);if(X.dataIndex=a.dataIndex,X.seriesIndex=t.seriesIndex,ue.setShape({x:0,y:0,width:p,height:g,r:P}),m)H(ue);else{ue.invisible=!1;var Y=a.getVisual("style"),le=Y.stroke,ve=vne(x);ve.fill=le;var ye=Yd(T);ye.fill=T.get("borderColor");var Ne=Yd($);Ne.fill=$.get("borderColor");var Be=Yd(A);if(Be.fill=A.get("borderColor"),ee){var Me=p-2*v;Z(ue,le,Y.opacity,{x:v,y:0,width:Me,height:w})}else ue.removeTextContent();ue.setStyle(ve),ue.ensureState("emphasis").style=ye,ue.ensureState("blur").style=Ne,ue.ensureState("select").style=Be,vd(ue)}ie.add(ue)}function j(ie,ue){var ee=Ke(ue);ee.dataIndex=a.dataIndex,ee.seriesIndex=t.seriesIndex;var X=Math.max(p-2*v,0),Y=Math.max(g-2*v,0);if(ue.culling=!0,ue.setShape({x:v,y:v,width:X,height:Y,r:P}),m)H(ue);else{ue.invisible=!1;var le=a.getVisual("style"),ve=le.fill,ye=vne(x);ye.fill=ve,ye.decal=le.decal;var Ne=Yd(T),Be=Yd($),Me=Yd(A);Z(ue,ve,le.opacity,null),ue.setStyle(ye),ue.ensureState("emphasis").style=Ne,ue.ensureState("blur").style=Be,ue.ensureState("select").style=Me,vd(ue)}ie.add(ue)}function H(ie){!ie.invisible&&o.push(ie)}function Z(ie,ue,ee,X){var Y=d.getModel(X?gne:pne),le=cr(d.get("name"),null),ve=Y.getShallow("show");Gr(ie,_r(d,X?gne:pne),{defaultText:ve?le:null,inheritColor:ue,defaultOpacity:ee,labelFetcher:t,labelDataIndex:a.dataIndex});var ye=ie.getTextContent();if(ye){var Ne=ye.style,Be=$w(Ne.padding||0);X&&(ie.setTextConfig({layoutRect:X}),ye.disableLabelLayout=!0),ye.beforeUpdate=function(){var $e=Math.max((X?X.width:ie.shape.width)-Be[1]-Be[3],0),_e=Math.max((X?X.height:ie.shape.height)-Be[0]-Be[2],0);(Ne.width!==$e||Ne.height!==_e)&&ye.setStyle({width:$e,height:_e})},Ne.truncateMinChar=2,Ne.lineOverflow="truncate",J(Ne,X,c);var Me=ye.getState("emphasis");J(Me?Me.style:null,X,c)}}function J(ie,ue,ee){var X=ie?ie.text:null;if(!ue&&ee.isLeafRoot&&X!=null){var Y=t.get("drillDownIcon",!0);ie.text=Y?Y+" "+X:X}}function se(ie,ue,ee,X){var Y=b!=null&&n[ie][b],le=i[ie];return Y?(n[ie][b]=null,oe(le,Y)):m||(Y=new ue,Y instanceof la&&(Y.z2=aZe(ee,X)),de(le,Y)),e[ie][y]=Y}function oe(ie,ue){var ee=ie[y]={};ue instanceof dN?(ee.oldX=ue.x,ee.oldY=ue.y):ee.oldShape=he({},ue.shape)}function de(ie,ue){var ee=ie[y]={},X=a.parentNode,Y=ue instanceof qe;if(X&&(!r||r.direction==="drillDown")){var le=0,ve=0,ye=i.background[X.getRawIndex()];!r&&ye&&ye.oldShape&&(le=ye.oldShape.width,ve=ye.oldShape.height),Y?(ee.oldX=0,ee.oldY=ve):ee.oldShape={x:le,y:ve,width:0,height:0}}ee.fadein=!Y}}function aZe(t,e){return t*tZe+e}var ib=V,sZe=Qe,Kx=-1,Sr=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=Ue(e);this.type=r,this.mappingMethod=n,this._normalizeData=cZe[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(hN(i),lZe(i)):n==="category"?i.categories?uZe(i):hN(i,!0):(je(n!=="linear"||i.dataExtent),hN(i))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Re(this._normalizeData,this)},t.listVisualTypes=function(){return bt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Qe(e)?V(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var i,o=ge(e)?[]:Qe(e)?{}:(i=!0,null);return t.eachVisual(e,function(a,s){var l=n.call(r,a,s);i?o=l:o[s]=l}),o},t.retrieveVisuals=function(e){var n={},r;return e&&ib(t.visualHandlers,function(i,o){e.hasOwnProperty(o)&&(n[o]=e[o],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(ge(e))e=e.slice();else if(sZe(e)){var n=[];ib(e,function(r,i){n.push(i)}),e=n}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var i,o=1/0,a=0,s=n.length;a=0;o--)r[o]==null&&(delete n[e[o]],e.pop())}function hN(t,e){var n=t.visual,r=[];Qe(n)?ib(n,function(o){r.push(o)}):n!=null&&r.push(n);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(t.type)&&(r[1]=r[0]),yne(t,r)}function Jx(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:pN([0,1])}}function mne(t){var e=this.option.visual;return e[Math.round(qt(t,[0,1],[0,e.length-1],!0))]||{}}function ob(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function ab(t){var e=this.option.visual;return e[this.option.loop&&t!==Kx?t%e.length:t]}function qd(){return this.option.visual[0]}function pN(t){return{linear:function(e){return qt(e,t,this.option.visual,!0)},category:ab,piecewise:function(e,n){var r=gN.call(this,n);return r==null&&(r=qt(e,t,this.option.visual,!0)),r},fixed:qd}}function gN(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=Sr.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function yne(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=me(e,function(n){var r=Oi(n);return!r&&process.env.NODE_ENV!=="production"&&En("'"+n+"' is an illegal color, fallback to '#000000'",!0),r||[0,0,0,1]})),e}var cZe={linear:function(t){return qt(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Sr.findPieceIndex(t,e,!0);if(n!=null)return qt(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Kx},fixed:Qn};function eC(t,e,n){return t?e<=n:e=n.length||v===n[v.depth]){var y=vZe(i,l,v,m,g,r);_ne(v,y,n,r)}})}}}function hZe(t,e,n){var r=he({},e),i=n.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(o){i[o]=e[o];var a=t.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function One(t){var e=vN(t,"color");if(e){var n=vN(t,"colorAlpha"),r=vN(t,"colorSaturation");return r&&(e=Kp(e,null,null,r)),n&&(e=B0(e,n)),e}}function pZe(t,e){return e!=null?Kp(e,null,null,t):null}function vN(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function gZe(t,e,n,r,i,o){if(!(!o||!o.length)){var a=mN(e,"color")||i.color!=null&&i.color!=="none"&&(mN(e,"colorAlpha")||mN(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:a.name,dataExtent:u,visual:a.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Sr(f);return bne(d).drColorMappingBy=c,d}}}function mN(t,e){var n=t.get(e);return ge(n)&&n.length?{name:e,range:n}:null}function vZe(t,e,n,r,i,o){var a=he({},e);if(i){var s=i.type,l=s==="color"&&bne(i).drColorMappingBy,u=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var sb=Math.max,tC=Math.min,wne=Un,yN=V,Sne=["itemStyle","borderWidth"],mZe=["itemStyle","gapWidth"],yZe=["upperLabel","show"],bZe=["upperLabel","height"];const _Ze={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=er(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Ee(wne(s.width,l[0]),i),c=Ee(wne(s.height,l[1]),o),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],p=tb(r,d,t),g=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),m=sne(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?TZe(t,p,v,u,c):g?[g.width,g.height]:[u,c],b=a.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var O={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(w),xne(v,O,!1,0),w=v.getLayout(),yN(m,function(x,T){var $=(m[T+1]||v).getValue();x.setLayout(he({dataExtent:[$,$],borderWidth:0,upperHeight:0},w))})}var S=t.getData().tree.root;S.setLayout(PZe(s,g,p),!0),t.setLayoutInfo(s),Tne(S,new at(-s.x,-s.y,i,o),m,v,0)}};function xne(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(Sne),u=s.get(mZe)/2,c=Pne(s),f=Math.max(l,c),d=l-u,p=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=sb(i-2*d,0),o=sb(o-d-p,0);var g=i*o,v=OZe(t,s,g,e,n,r);if(v.length){var m={x:d,y:p,width:i,height:o},y=tC(i,o),b=1/0,O=[];O.area=0;for(var w=0,S=v.length;w=0;l--){var u=i[r==="asc"?a-l-1:l].getValue();u/n*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function CZe(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;or&&(r=a));var l=t.area*t.area,u=e*e*n;return l?sb(u*r/l,l/(u*i)):1/0}function Cne(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var f=0,d=t.length;fjI&&(u=jI),o=s}ur&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(S[0]=-S[0],S[1]=-S[1]);var T=w[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var $=-Math.atan2(w[1],w[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*b+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*T+c[0],o.y=c[1]+A,g=w[0]<0?"right":"left",o.originX=-y*T,o.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=x[0],o.y=x[1]+A,g="center",o.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*T+f[0],o.y=f[1]+A,g=w[0]>=0?"right":"left",o.originX=y*T,o.originY=-A;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||v,align:o.__align||g})}},e}(qe),EN=function(){function t(e){this.group=new qe,this._LineCtor=e||AN}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=e,o||i.removeAll();var a=Bne(e);e.diff(o).add(function(s){n._doAdd(e,s,a)}).update(function(s,l){n._doUpdate(o,e,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Bne(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!GZe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function Bne(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:_r(e)}}function Vne(t){return isNaN(t[0])||isNaN(t[1])}function MN(t){return t&&!Vne(t[0])&&!Vne(t[1])}var IN=[],DN=[],RN=[],jg=Dr,kN=Xu,zne=Math.abs;function Fne(t,e,n){for(var r=t[0],i=t[1],o=t[2],a=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){IN[0]=jg(r[0],i[0],o[0],c),IN[1]=jg(r[1],i[1],o[1],c);var f=zne(kN(IN,e)-l);f=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function NN(t,e){var n=[],r=R0,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Rs(u[0]),Rs(u[1])],u[2]&&u.__original.push(Rs(u[2])));var d=u.__original;if(u[2]!=null){if(oi(i[0],d[0]),oi(i[1],d[2]),oi(i[2],d[1]),c&&c!=="none"){var p=cb(s.node1),g=Fne(i,d[0],p*e);r(i[0][0],i[1][0],i[2][0],g,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],g,n),i[0][1]=n[3],i[1][1]=n[4]}if(f&&f!=="none"){var p=cb(s.node2),g=Fne(i,d[1],p*e);r(i[0][0],i[1][0],i[2][0],g,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],g,n),i[1][1]=n[1],i[2][1]=n[2]}oi(u[0],i[0]),oi(u[1],i[2]),oi(u[2],i[1])}else{if(oi(o[0],d[0]),oi(o[1],d[1]),Zu(a,o[1],o[0]),Uf(a,a),c&&c!=="none"){var p=cb(s.node1);Aw(o[0],o[0],a,p*e)}if(f&&f!=="none"){var p=cb(s.node2);Aw(o[1],o[1],a,-p*e)}oi(u[0],o[0]),oi(u[1],o[1])}})}function Wne(t){return t.type==="view"}var jZe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var i=new Qy,o=new EN,a=this.group;this._controller=new qy(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},e.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Wne(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):Rt(u,c,n)}NN(n.getGraph(),ub(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,i),clearTimeout(this._layoutTimeout);var p=n.forceLayout,g=n.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,g);var v=n.get("layout");f.graph.eachNode(function(O){var w=O.dataIndex,S=O.getGraphicEl(),x=O.getModel();if(S){S.off("drag").off("dragend");var T=x.get("draggable");T&&S.on("drag",function(A){switch(v){case"force":p.warmUp(),!o._layouting&&o._startForceLayoutIteration(p,g),p.setFixed(w),f.setItemLayout(w,[S.x,S.y]);break;case"circular":f.setItemLayout(w,[S.x,S.y]),O.setLayout({fixed:!0},!0),xN(n,"symbolSize",O,[A.offsetX,A.offsetY]),o.updateLayout(n);break;case"none":default:f.setItemLayout(w,[S.x,S.y]),wN(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){p&&p.setUnfixed(w)}),S.setDraggable(T,!!x.get("cursor"));var $=x.get(["emphasis","focus"]);$==="adjacency"&&(Ke(S).focus=O.getAdjacentDataIndices())}}),f.graph.eachEdge(function(O){var w=O.getGraphicEl(),S=O.getModel().get(["emphasis","focus"]);w&&S==="adjacency"&&(Ke(w).focus={edge:[O.dataIndex],node:[O.node1.dataIndex,O.node2.dataIndex]})});var m=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(O){Ine(O,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var i=this;(function o(){n.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},e.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Gx(u,i,n)}),!Wne(n.coordinateSystem)){a.disable();return}a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Kk(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(),NN(n.getGraph(),ub(n)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=ub(n);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},e.prototype.updateLayout=function(n){NN(n.getGraph(),ub(n)),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}(Jt);function Ug(t){return"_EC_"+t}var UZe=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(r[Ug(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new Kd(e,n);return i.hostGraph=this,this.nodes.push(i),r[Ug(e)]=i,i},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[Ug(e)]},t.prototype.addEdge=function(e,n,r){var i=this._nodesMap,o=this._edgesMap;if(Et(e)&&(e=this.nodes[e]),Et(n)&&(n=this.nodes[n]),e instanceof Kd||(e=i[Ug(e)]),n instanceof Kd||(n=i[Ug(n)]),!(!e||!n)){var a=e.id+"-"+n.id,s=new Qne(e,n,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),n.inEdges.push(s)),e.edges.push(s),e!==n&&n.edges.push(s),this.edges.push(s),o[a]=s,s}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof Kd&&(e=e.id),n instanceof Kd&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,i=r.length,o=0;o=0&&e.call(n,r[o],o)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,o=0;o=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(n,r[o],o)},t.prototype.breadthFirstTraverse=function(e,n,r,i){if(n instanceof Kd||(n=this._nodesMap[Ug(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Wn(Kd,Hne("hostGraph","data")),Wn(Qne,Hne("hostGraph","edgeData"));function Gne(t,e,n,r,i){for(var o=new UZe(r),a=0;a "+d)),u++)}var p=n.get("coordinateSystem"),g;if(p==="cartesian2d"||p==="polar")g=Us(t,n);else{var v=Pd.get(p),m=v?v.dimensions||[]:[];st(m,"value")<0&&m.concat(["value"]);var y=Ng(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;g=new ci(y,n),g.initData(t)}var b=new ci(["value"],n);return b.initData(l,s),i&&i(g,b),one({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var ZZe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new Zy(i,i),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rd(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=this;if(o&&i){RZe(this);var s=Gne(o,i,this,!0,l);return V(s.edges,function(u){kZe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var v=a._categoriesModels,m=g.getShallow("category"),y=v[m];return y&&(y.parentModel=g.parentModel,g.parentModel=y),g});var f=rn.prototype.getModel;function d(g,v){var m=f.call(this,g,v);return m.resolveParentPath=p,m}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=p,g.getModel=d,g});function p(g){if(g&&(g[0]==="label"||g[1]==="label")){var v=g.slice();return g[0]==="label"?v[0]="edgeLabel":g[1]==="label"&&(v[1]="edgeLabel"),v}return g}}},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(n,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(n,i),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Or("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var f=Mq({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=me(this.option.categories||[],function(i){return i.value!=null?i:he({value:0},i)}),r=new ci(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.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}(on),XZe={type:"graphRoam",event:"graphRoam",update:"none"};function YZe(t){t.registerChartView(jZe),t.registerSeriesModel(ZZe),t.registerProcessor(AZe),t.registerVisual(EZe),t.registerVisual(MZe),t.registerLayout(NZe),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,BZe),t.registerLayout(zZe),t.registerCoordinateSystem("graphView",{dimensions:Jy.dimensions,create:WZe}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Qn),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Qn),t.registerAction(XZe,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(i){var o=i.coordinateSystem,a=iN(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var qZe=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),KZe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new qZe},e.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=a/3?1:2),c=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(u,c)},e}(yt);function JZe(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Ee(n[0],e.getWidth()),s=Ee(n[1],e.getHeight()),l=Ee(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function iC(t,e){var n=t==null?"":t+"";return e&&(Ie(e)?n=e.replace("{value}",n):ze(e)&&(n=e(t))),n}var eXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=JZe(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),p=d?Bx:Ci,g=f.get("show"),v=f.getModel("lineStyle"),m=v.get("width"),y=[u,c];pD(y,!l),u=y[0],c=y[1];for(var b=c-u,O=u,w=[],S=0;g&&S=A&&(P===0?0:o[P-1][0])Math.PI/2&&(se+=Math.PI)):J==="tangential"?se=-$-Math.PI/2:Et(J)&&(se=J*Math.PI/180),se===0?f.add(new $t({style:un(O,{text:W,x:H,y:Z,verticalAlign:D<-.8?"top":D>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:j}),silent:!0})):f.add(new $t({style:un(O,{text:W,x:H,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:H,originY:Z,rotation:se}))}if(b.get("show")&&B!==w){var F=b.get("distance");F=F?F+c:c;for(var oe=0;oe<=S;oe++){L=Math.cos($),D=Math.sin($);var de=new br({shape:{x1:L*(g-F)+d,y1:D*(g-F)+p,x2:L*(g-T-F)+d,y2:D*(g-T-F)+p},silent:!0,style:I});I.stroke==="auto"&&de.setStyle({stroke:o((B+oe/S)/w)}),f.add(de),$+=P}$-=P}else $+=A}},e.prototype._renderPointer=function(n,r,i,o,a,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,g=[],v=n.get(["pointer","show"]),m=n.getModel("progress"),y=m.get("show"),b=n.getData(),O=b.mapDimension("value"),w=+n.get("min"),S=+n.get("max"),x=[w,S],T=[s,l];function $(P,M){var I=b.getItemModel(P),R=I.getModel("pointer"),L=Ee(R.get("width"),a.r),D=Ee(R.get("length"),a.r),B=n.get(["pointer","icon"]),F=R.get("offsetCenter"),z=Ee(F[0],a.r),W=Ee(F[1],a.r),j=R.get("keepAspect"),H;return B?H=Xn(B,z-L/2,W-D,L,D,null,j):H=new KZe({shape:{angle:-Math.PI/2,width:L,r:D,x:z,y:W}}),H.rotation=-(M+Math.PI/2),H.x=a.cx,H.y=a.cy,H}function A(P,M){var I=m.get("roundCap"),R=I?Bx:Ci,L=m.get("overlap"),D=L?m.get("width"):c/b.count(),B=L?a.r-D:a.r-(P+1)*D,F=L?a.r:a.r-P*D,z=new R({shape:{startAngle:s,endAngle:M,cx:a.cx,cy:a.cy,clockwise:u,r0:B,r:F}});return L&&(z.z2=S-b.get(O,P)%S),z}(y||v)&&(b.diff(d).add(function(P){var M=b.get(O,P);if(v){var I=$(P,s);vn(I,{rotation:-((isNaN(+M)?T[0]:qt(M,x,T,!0))+Math.PI/2)},n),f.add(I),b.setItemGraphicEl(P,I)}if(y){var R=A(P,s),L=m.get("clip");vn(R,{shape:{endAngle:qt(M,x,T,L)}},n),f.add(R),mD(n.seriesIndex,b.dataType,P,R),g[P]=R}}).update(function(P,M){var I=b.get(O,P);if(v){var R=d.getItemGraphicEl(M),L=R?R.rotation:s,D=$(P,L);D.rotation=L,Rt(D,{rotation:-((isNaN(+I)?T[0]:qt(I,x,T,!0))+Math.PI/2)},n),f.add(D),b.setItemGraphicEl(P,D)}if(y){var B=p[M],F=B?B.shape.endAngle:s,z=A(P,F),W=m.get("clip");Rt(z,{shape:{endAngle:qt(I,x,T,W)}},n),f.add(z),mD(n.seriesIndex,b.dataType,P,z),g[P]=z}}).execute(),b.each(function(P){var M=b.getItemModel(P),I=M.getModel("emphasis"),R=I.get("focus"),L=I.get("blurScope"),D=I.get("disabled");if(v){var B=b.getItemGraphicEl(P),F=b.getItemVisual(P,"style"),z=F.fill;if(B instanceof Rr){var W=B.style;B.useStyle(he({image:W.image,x:W.x,y:W.y,width:W.width,height:W.height},F))}else B.useStyle(F),B.type!=="pointer"&&B.setColor(z);B.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",o(qt(b.get(O,P),x,[0,1],!0))),B.z2EmphasisLift=0,Hr(B,M),Ln(B,R,L,D)}if(y){var j=g[P];j.useStyle(b.getItemVisual(P,"style")),j.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),j.z2EmphasisLift=0,Hr(j,M),Ln(j,R,L,D)}}),this._progressEls=g)},e.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Xn(s,r.cx-a/2+Ee(l[0],r.r),r.cy-a/2+Ee(l[1],r.r),a,a,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new qe,p=[],g=[],v=n.isAnimationEnabled(),m=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new $t({silent:!0}),g[y]=new $t({silent:!0})}).update(function(y,b){p[y]=s._titleEls[b],g[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),O=l.get(u,y),w=new qe,S=o(qt(O,[c,f],[0,1],!0)),x=b.getModel("title");if(x.get("show")){var T=x.get("offsetCenter"),$=a.cx+Ee(T[0],a.r),A=a.cy+Ee(T[1],a.r),P=p[y];P.attr({z2:m?0:2,style:un(x,{x:$,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:S})}),w.add(P)}var M=b.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),R=a.cx+Ee(I[0],a.r),L=a.cy+Ee(I[1],a.r),D=Ee(M.get("width"),a.r),B=Ee(M.get("height"),a.r),F=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:S,P=g[y],z=M.get("formatter");P.attr({z2:m?0:2,style:un(M,{x:R,y:L,text:iC(O,z),width:isNaN(D)?null:D,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:F})}),fY(P,{normal:M},O,function(j){return iC(j,z)}),v&&dY(P,y,l,n,{getFormattedLabel:function(j,H,Z,J,se,oe){return iC(oe?oe.interpolatedValue:O,z)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=p,this._detailEls=g},e.type="gauge",e}(Jt),tXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return Wg(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}(on);function nXe(t){t.registerChartView(eXe),t.registerSeriesModel(tXe)}var rXe=["itemStyle","opacity"],iXe=function(t){re(e,t);function e(n,r){var i=t.call(this)||this,o=i,a=new Pi,s=new $t;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(n,r,!0),i}return e.prototype.updateData=function(n,r,i){var o=this,a=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(rXe);c=c??1,i||os(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,vn(o,{style:{opacity:c}},a,r)):Rt(o,{style:{opacity:c},shape:{points:l.points}},a,r),Hr(o,s),this._updateLabel(n,r),Ln(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Gr(a,_r(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var p=c.linePoints;o.setShape({points:p}),i.textGuideLineConfig={anchor:p?new ot(p[0][0],p[0][1]):null},Rt(a,{style:{x:c.x,y:c.y}},s,r),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),vk(i,mk(l),{stroke:d})},e}(Ti),oXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var u=new iXe(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);ly(u,n,l)}).execute(),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Jt),aXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return Wg(this,{coordDimensions:["value"],encodeDefaulter:tt(iR,this)})},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),i=t.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,n)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(on);function sXe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lXe(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),i=[],o=e==="ascending",a=0,s=t.count();a-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),n==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=v-O,d=y-5,f="right"):a==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=v+O,d=y+5,f="left"):a==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,b=m-O,p=b-5,f="center"):a==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,b=m+O,p=b+5,f="center"):a==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],m=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=v+O,d=y+5,f="top")):a==="rightBottom"?(v=u[2][0],m=u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v+O,d=y+5,f="bottom")):a==="leftTop"?(v=u[0][0],m=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=v-O,d=y-5,f="right")):a==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],m=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v-O,d=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v+O,d=y+5,f="left")),n==="horizontal"?(y=v,d=y):(b=m,p=b),g=[[v,m],[y,b]]}l.label={linePoints:g,x:d,y:p,verticalAlign:"middle",textAlign:f,inside:c}})}function cXe(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),o=n.get("sort"),a=sXe(n,e),s=n.get("orient"),l=a.width,u=a.height,c=lXe(r,o),f=a.x,d=a.y,p=s==="horizontal"?[Ee(n.get("minSize"),u),Ee(n.get("maxSize"),u)]:[Ee(n.get("minSize"),l),Ee(n.get("maxSize"),l)],g=r.getDataExtent(i),v=n.get("min"),m=n.get("max");v==null&&(v=Math.min(g[0],0)),m==null&&(m=g[1]);var y=n.get("funnelAlign"),b=n.get("gap"),O=s==="horizontal"?l:u,w=(O-b*(r.count()-1))/r.count(),S=function(L,D){if(s==="horizontal"){var B=r.get(i,L)||0,F=qt(B,[v,m],p,!0),z=void 0;switch(y){case"top":z=d;break;case"center":z=d+(u-F)/2;break;case"bottom":z=d+(u-F);break}return[[D,z],[D,z+F]]}var W=r.get(i,L)||0,j=qt(W,[v,m],p,!0),H;switch(y){case"left":H=f;break;case"center":H=f+(l-j)/2;break;case"right":H=f+l-j;break}return[[H,D],[H+j,D]]};o==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var x=0;xxXe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!BN(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function BN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var PXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&it(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var i=n.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(n){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],i=Yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);V(i,function(o){n.push("dim"+o.get("dim")),r.push(o.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}(dt),$Xe=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ma);function Jd(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(i!=null&&(i=Zg(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Zg(s,[0,a]),i=o=Zg(s,[i,o]),r=0}e[0]=Zg(e[0],n),e[1]=Zg(e[1],n);var l=VN(e,r);e[r]+=t;var u=i||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Zg(e[r],c);var f;return f=VN(e,r),i!=null&&(f.sign!==l.sign||f.spano&&(e[1-r]=e[r]+f.sign*o),e}function VN(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Zg(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var zN=V,Xne=Math.min,Yne=Math.max,qne=Math.floor,AXe=Math.ceil,Kne=Nn,EXe=Math.PI,MXe=function(){function t(e,n,r){this.type="parallel",this._axesMap=Le(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=e.dimensions,o=e.parallelAxisIndex;zN(i,function(a,s){var l=o[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(a,new $Xe(a,Ny(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,i=n.layoutBase,o=n.pixelDimIndex,a=e[1-o],s=e[o];return a>=r&&a<=r+n.axisLength&&s>=i&&s<=i+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var i=r.getData();zN(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),Ld(a.scale,a.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=er(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a=o==="horizontal"?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=oC(e.get("axisExpandWidth"),l),f=oC(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,p=e.get("axisExpandWindow"),g;if(p)g=oC(p[1]-p[0],l),p[1]=p[0]+g;else{g=oC(c*(f-1),l);var v=e.get("axisExpandCenter")||qne(u/2);p=[c*v-g/2],p[1]=p[0]+g}var m=(s-g)/(u-f);m<3&&(m=0);var y=[qne(Kne(p[0]/c,1))+1,AXe(Kne(p[1]/c,1))-1],b=m/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;n.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),zN(r,function(a,s){var l=(i.axisExpandable?DXe:IXe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:EXe/2,vertical:0},f=[u[o].x+e.x,u[o].y+e.y],d=c[o],p=Ui();Yu(p,p,d),Ka(p,p,f),this._axesLayout[a]={position:f,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,i){r==null&&(r=0),i==null&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];V(a,function(m){s.push(e.mapDimension(m)),l.push(o.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;co*(1-f[0])?(u="jump",l=s-o*(1-f[2])):(l=s-o*f[1])>=0&&(l=s-o*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Jd(l,i,a,"all"):u="none";else{var p=i[1]-i[0],g=a[1]*s/p;i=[Yne(0,g-p/2)],i[1]=Xne(a[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},t}();function oC(t,e){return Xne(Yne(t,e[0]),e[1])}function IXe(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function DXe(t,e){var n=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,o=e.axisCollapseWidth,a=e.winInnerIndices,s,l=o,u=!1,c;return t=0;i--)So(r[i])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=n&&n<=i[1])return"active"}else for(var o=0,a=r.length;oBXe}function are(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function sre(t,e,n,r){var i=new qe;return i.add(new Pt({name:"main",style:ZN(n),silent:!0,draggable:!0,cursor:"move",drift:tt(cre,t,e,i,["n","s","w","e"]),ondragend:tt(th,e,{isEnd:!0})})),V(r,function(o){i.add(new Pt({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(cre,t,e,i,o),ondragend:tt(th,e,{isEnd:!0})}))}),i}function lre(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=Xg(i,VXe),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],f=n[1][1],d=c-o+i/2,p=f-o+i/2,g=c-a,v=f-s,m=g+i,y=v+i;tu(t,e,"main",a,s,g,v),r.transformable&&(tu(t,e,"w",l,u,o,y),tu(t,e,"e",d,u,o,y),tu(t,e,"n",l,u,m,o),tu(t,e,"s",l,p,m,o),tu(t,e,"nw",l,u,o,o),tu(t,e,"ne",d,u,o,o),tu(t,e,"sw",l,p,o,o),tu(t,e,"se",d,p,o,o))}function UN(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(ZN(n)),i.attr({silent:!r,cursor:r?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=e.childOfName(o.join("")),s=o.length===1?XN(t,o[0]):GXe(t,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?FXe[s]+"-resize":null})})}function tu(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(UXe(YN(t,e,[[r,i],[r+o,i+a]])))}function ZN(t){return Ge({strokeNoScale:!0},t.brushStyle)}function ure(t,e,n,r){var i=[fb(t,n),fb(e,r)],o=[Xg(t,n),Xg(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function HXe(t){return uc(t.group)}function XN(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=DS(n[e],HXe(t));return r[i]}function GXe(t,e){var n=[XN(t,e[0]),XN(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function cre(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=fre(e,i,o);V(r,function(u){var c=zXe[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=t.fromRectRange(ure(s[0][0],s[1][0],s[0][1],s[1][1])),QN(e,n),th(e,{isEnd:!1})}function jXe(t,e,n,r){var i=e.__brushOption.range,o=fre(t,n,r);V(i,function(a){a[0]+=o[0],a[1]+=o[1]}),QN(t,e),th(t,{isEnd:!1})}function fre(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function YN(t,e,n){var r=ore(t,e);return r&&r!==eh?r.clipPath(n,t._transform):Ue(n)}function UXe(t){var e=fb(t[0][0],t[1][0]),n=fb(t[0][1],t[1][1]),r=Xg(t[0][0],t[1][0]),i=Xg(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function ZXe(t,e,n){if(!(!t._brushType||YXe(t,e.offsetX,e.offsetY))){var r=t._zr,i=t._covers,o=GN(t,e,n);if(!t._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var aC={lineX:gre(0),lineY:gre(1),rect:{createCover:function(t,e){function n(r){return r}return sre({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=are(t);return ure(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){lre(t,e,n,r)},updateCommon:UN,contain:KN},polygon:{createCover:function(t,e){var n=new qe;return n.add(new Pi({name:"main",style:ZN(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ti({name:"main",draggable:!0,drift:tt(jXe,t,e),ondragend:tt(th,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:YN(t,e,n)})},updateCommon:UN,contain:KN}};function gre(t){return{createCover:function(e,n){return sre({toRectRange:function(r){var i=[r,[0,100]];return t&&i.reverse(),i},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=are(e),r=fb(n[0][t],n[1][t]),i=Xg(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=ore(e,n);if(a!==eh&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),lre(e,n,l,i)},updateCommon:UN,contain:KN}}function vre(t){return t=JN(t),function(e){return LD(e,t)}}function mre(t,e){return t=JN(t),function(n){var r=e??n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function yre(t,e,n){var r=JN(t);return function(i,o){return r.contain(o[0],o[1])&&!Gx(i,e,n)}}function JN(t){return at.create(t)}var qXe=["axisLine","axisTickLabel","axisName"],KXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new WN(r.getZr())).on("brush",Re(this._onBrush,this))},e.prototype.render=function(n,r,i,o){if(!JXe(n,r,o)){this.axisModel=n,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!n.get("show")){var s=tYe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),p=he({strokeContainThreshold:c},d),g=new Ii(n,p);V(qXe,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(p,u,n,s,c,i),cy(a,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,i,o,a,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=at.create({x:l[0],y:-a/2,width:u,height:a});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:vre(f),isTargetByCursor:yre(f,s,o),getLinearBrushOtherExtent:mre(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(eYe(i))},e.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,o=i.axis,a=me(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(dn);function JXe(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function eYe(t){var e=t.axis;return me(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function tYe(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var nYe={type:"axisAreaSelect",event:"axisAreaSelected"};function rYe(t){t.registerAction(nYe,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var iYe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bre(t){t.registerComponentView(CXe),t.registerComponentModel(PXe),t.registerCoordinateSystem("parallel",kXe),t.registerPreprocessor(OXe),t.registerComponentModel(FN),t.registerComponentView(KXe),Qg(t,"parallel",FN,iYe),rYe(t)}function oYe(t){ht(bre),t.registerChartView(hXe),t.registerSeriesModel(vXe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,_Xe)}var aYe=function(){function t(){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 t}(),sYe=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new aYe},e.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},e.prototype.highlight=function(){jl(this)},e.prototype.downplay=function(){Ul(this)},e}(yt),lYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,i){var o=this,a=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),p=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(g){var v=new sYe,m=Ke(v);m.dataIndex=g.dataIndex,m.seriesIndex=n.seriesIndex,m.dataType="edge";var y=g.getModel(),b=y.getModel("lineStyle"),O=b.get("curveness"),w=g.node1.getLayout(),S=g.node1.getModel(),x=S.get("localX"),T=S.get("localY"),$=g.node2.getLayout(),A=g.node2.getModel(),P=A.get("localX"),M=A.get("localY"),I=g.getLayout(),R,L,D,B,F,z,W,j;v.shape.extent=Math.max(1,I.dy),v.shape.orient=p,p==="vertical"?(R=(x!=null?x*u:w.x)+I.sy,L=(T!=null?T*c:w.y)+w.dy,D=(P!=null?P*u:$.x)+I.ty,B=M!=null?M*c:$.y,F=R,z=L*(1-O)+B*O,W=D,j=L*O+B*(1-O)):(R=(x!=null?x*u:w.x)+w.dx,L=(T!=null?T*c:w.y)+I.sy,D=P!=null?P*u:$.x,B=(M!=null?M*c:$.y)+I.ty,F=R*(1-O)+D*O,z=L,W=R*O+D*(1-O),j=B),v.setShape({x1:R,y1:L,x2:D,y2:B,cpx1:F,cpy1:z,cpx2:W,cpy2:j}),v.useStyle(b.getItemStyle()),_re(v.style,p,g);var H=""+y.get("value"),Z=_r(y,"edgeLabel");Gr(v,Z,{labelFetcher:{getFormattedLabel:function(oe,de,ie,ue,ee,X){return n.getFormattedLabel(oe,de,"edge",ue,_o(ee,Z.normal&&Z.normal.get("formatter"),H),X)}},labelDataIndex:g.dataIndex,defaultText:H}),v.setTextConfig({position:"inside"});var J=y.getModel("emphasis");Hr(v,y,"lineStyle",function(oe){var de=oe.getItemStyle();return _re(de,p,g),de}),s.add(v),d.setItemGraphicEl(g.dataIndex,v);var se=J.get("focus");Ln(v,se==="adjacency"?g.getAdjacentDataIndices():se==="trajectory"?g.getTrajectoryDataIndices():se,J.get("blurScope"),J.get("disabled"))}),a.eachNode(function(g){var v=g.getLayout(),m=g.getModel(),y=m.get("localX"),b=m.get("localY"),O=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,S=new Pt({shape:{x:y!=null?y*u:v.x,y:b!=null?b*c:v.y,width:v.dx,height:v.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Gr(S,_r(m),{labelFetcher:{getFormattedLabel:function(T,$){return n.getFormattedLabel(T,$,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),S.disableLabelAnimation=!0,S.setStyle("fill",g.getVisual("color")),S.setStyle("decal",g.getVisual("style").decal),Hr(S,m),s.add(S),f.setItemGraphicEl(g.dataIndex,S),Ke(S).dataType="node";var x=O.get("focus");Ln(S,x==="adjacency"?g.getAdjacentDataIndices():x==="trajectory"?g.getTrajectoryDataIndices():x,O.get("blurScope"),O.get("disabled"))}),f.eachItemGraphicEl(function(g,v){var m=f.getItemModel(v);m.get("draggable")&&(g.drift=function(y,b){o._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){o._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(uYe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Jt);function _re(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Ie(r)&&Ie(i)&&(t.fill=new dg(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function uYe(t,e,n){var r=new Pt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return vn(r,{shape:{width:t.width+20}},e,n),r}var cYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var i=n.edges||n.links,o=n.data||n.nodes,a=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0)s[a[l].depth]=new rn(a[l],this,r);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(o&&i){var u=Gne(o,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(p,g){var v=p.parentModel,m=v.getData().getItemLayout(g);if(m){var y=m.depth,b=v.levelModels[y];b&&(p.parentModel=b)}return p}),d.wrapMethod("getItemModel",function(p,g){var v=p.parentModel,m=v.getGraph().getEdgeByIndex(g),y=m.node1.getLayout();if(y){var b=y.depth,O=v.levelModels[b];O&&(p.parentModel=O)}return p})}},e.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,o=i[n];o.localX=r[0],o.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,i){function o(p){return isNaN(p)||p==null}if(i==="edge"){var a=this.getDataParams(n,i),s=a.data,l=a.value,u=s.source+" -- "+s.target;return Or("nameValue",{name:u,value:l,noValue:o(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,i).data.name;return Or("nameValue",{name:d!=null?d+"":null,value:f,noValue:o(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var i=t.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(on);function fYe(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),o=dYe(n,e);n.layoutInfo=o;var a=o.width,s=o.height,l=n.getGraph(),u=l.nodes,c=l.edges;pYe(u);var f=Yt(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),p=n.get("orient"),g=n.get("nodeAlign");hYe(u,c,r,i,a,s,d,p,g)})}function dYe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hYe(t,e,n,r,i,o,a,s,l){gYe(t,e,n,i,o,s,l),bYe(t,e,o,i,r,a,s),$Ye(t,s)}function pYe(t){V(t,function(e){var n=Sc(e.outEdges,sC),r=Sc(e.inEdges,sC),i=e.getValue()||0,o=Math.max(n,r,i);e.setLayout({value:o},!0)})}function gYe(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;y&&m.depth>p&&(p=m.depth),v.setLayout({depth:y?m.depth:f},!0),o==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var b=0;bf-1?p:f-1;a&&a!=="left"&&vYe(t,a,o,T);var $=o==="vertical"?(i-n)/T:(r-n)/T;yYe(t,$,o)}function Ore(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function vYe(t,e,n,r){if(e==="right"){for(var i=[],o=t,a=0;o.length;){for(var s=0;s0;o--)l*=.99,wYe(s,l,a),eL(s,i,n,r,a),PYe(s,l,a),eL(s,i,n,r,a)}function _Ye(t,e){var n=[],r=e==="vertical"?"y":"x",i=KI(t,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),V(i.keys,function(o){n.push(i.buckets.get(o))}),n}function OYe(t,e,n,r,i,o){var a=1/0;V(t,function(s){var l=s.length,u=0;V(s,function(f){u+=f.getLayout().value});var c=o==="vertical"?(r-(l-1)*i)/u:(n-(l-1)*i)/u;c0&&(s=l.getLayout()[o]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+e;var g=i==="vertical"?r:n;if(u=c-e-g,u>0){s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=f-2;p>=0;--p)l=a[p],u=l.getLayout()[o]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]}})}function wYe(t,e,n){V(t.slice().reverse(),function(r){V(r,function(i){if(i.outEdges.length){var o=Sc(i.outEdges,SYe,n)/Sc(i.outEdges,sC);if(isNaN(o)){var a=i.outEdges.length;o=a?Sc(i.outEdges,xYe,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-wc(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-wc(i,n))*e;i.setLayout({y:l},!0)}}})})}function SYe(t,e){return wc(t.node2,e)*t.getValue()}function xYe(t,e){return wc(t.node2,e)}function CYe(t,e){return wc(t.node1,e)*t.getValue()}function TYe(t,e){return wc(t.node1,e)}function wc(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function sC(t){return t.getValue()}function Sc(t,e,n){for(var r=0,i=t.length,o=-1;++oa&&(a=l)}),V(r,function(s){var l=new Sr({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&V(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function EYe(t){t.registerChartView(lYe),t.registerSeriesModel(cYe),t.registerLayout(fYe),t.registerVisual(AYe),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var wre=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=o.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],p=[i,o],g=p[c].get("type"),v=p[1-c].get("type"),m=e.data;if(m&&l){var y=[];V(m,function(w,S){var x;ge(w)?(x=w.slice(),w.unshift(S)):ge(w.value)?(x=he({},w),x.value=x.value.slice(),w.value.unshift(S)):x=w,y.push(x)}),e.data=y}var b=this.defaultValueDimensions,O=[{name:f,type:mx(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:mx(v),dimsDef:b.slice()}];return Wg(this,{coordDimensions:O,dimensionsCount:b.length+1,encodeDefaulter:tt(RY,O,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Sre=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return 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}(on);Wn(Sre,wre,!0);var MYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(u){if(o.hasValue(u)){var c=o.getItemLayout(u),f=xre(c,o,u,l,!0);o.setItemGraphicEl(u,f),a.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!o.hasValue(u)){a.remove(f);return}var d=o.getItemLayout(u);f?(os(f),Cre(d,f,o,u)):f=xre(d,o,u,l),a.add(f),o.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=o},e.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},e.type="boxplot",e}(Jt),IYe=function(){function t(){}return t}(),DYe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new IYe},e.prototype.buildPath=function(n,r){var i=r.points,o=0;for(n.moveTo(i[o][0],i[o][1]),o++;o<4;o++)n.lineTo(i[o][0],i[o][1]);for(n.closePath();ov){var w=[y,O];r.push(w)}}}return{boxData:n,outliers:r}}var zYe={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==si){var r="";process.env.NODE_ENV!=="production"&&(r=wi("source data is not applicable for this boxplot transform. Expect number[][].")),Ht(r)}var i=VYe(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function FYe(t){t.registerSeriesModel(Sre),t.registerChartView(MYe),t.registerLayout(kYe),t.registerTransform(zYe)}var WYe=["color","borderColor"],QYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&Tre(u,f))return;var d=tL(f,c,!0);vn(d,{shape:{points:f.ends}},n,c),nL(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!r.hasValue(c)){o.remove(d);return}var p=r.getItemLayout(c);if(s&&Tre(u,p)){o.remove(d);return}d?(Rt(d,{shape:{points:p.ends}},n,c),os(d)):d=tL(p),nL(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&o.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),Pre(n,this.group);var r=n.get("clip",!0)?Hy(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=i.getItemLayout(a),l=tL(s);nL(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){Pre(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Jt),HYe=function(){function t(){}return t}(),GYe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new HYe},e.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},e}(yt);function tL(t,e,n){var r=t.ends;return new GYe({shape:{points:n?jYe(r,t):r},z2:100})}function Tre(t,e){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(WYe);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var $re=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,i){var o=r.getItemLayout(n);return o&&i.rect(o.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}(on);Wn($re,wre,!0);function ZYe(t){!t||!ge(t.series)||V(t.series,function(e){Qe(e)&&e.type==="k"&&(e.type="candlestick")})}var XYe=["itemStyle","borderColor"],YYe=["itemStyle","borderColor0"],qYe=["itemStyle","borderColorDoji"],KYe=["itemStyle","color"],JYe=["itemStyle","color0"],eqe={seriesType:"candlestick",plan:$g(),performRawSeries:!0,reset:function(t,e){function n(o,a){return a.get(o>0?KYe:JYe)}function r(o,a){return a.get(o===0?qYe:o>0?XYe:YYe)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(o,a){for(var s;(s=o.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=a.ensureUniqueItemVisual(s,"style");he(f,c)}}}}}},tqe={seriesType:"candlestick",plan:$g(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=nqe(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=me(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?g:p};function p(v,m){for(var y,b=m.getStore();(y=v.next())!=null;){var O=b.get(s,y),w=b.get(u,y),S=b.get(c,y),x=b.get(f,y),T=b.get(d,y),$=Math.min(w,S),A=Math.max(w,S),P=F($,O),M=F(A,O),I=F(x,O),R=F(T,O),L=[];z(L,M,0),z(L,P,1),L.push(j(R),j(M),j(I),j(P));var D=m.getItemModel(y),B=!!D.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:Are(b,y,w,S,c,B),initBaseline:w>S?M[o]:P[o],ends:L,brushRect:W(x,T,O)})}function F(H,Z){var J=[];return J[i]=Z,J[o]=H,isNaN(Z)||isNaN(H)?[NaN,NaN]:e.dataToPoint(J)}function z(H,Z,J){var se=Z.slice(),oe=Z.slice();se[i]=IS(se[i]+r/2,1,!1),oe[i]=IS(oe[i]-r/2,1,!0),J?H.push(se,oe):H.push(oe,se)}function W(H,Z,J){var se=F(H,J),oe=F(Z,J);return se[i]-=r/2,oe[i]-=r/2,{x:se[0],y:se[1],width:r,height:oe[1]-se[1]}}function j(H){return H[i]=IS(H[i],1),H}}function g(v,m){for(var y=Xs(v.count*4),b=0,O,w=[],S=[],x,T=m.getStore(),$=!!t.get(["itemStyle","borderColorDoji"]);(x=v.next())!=null;){var A=T.get(s,x),P=T.get(u,x),M=T.get(c,x),I=T.get(f,x),R=T.get(d,x);if(isNaN(A)||isNaN(I)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=Are(T,x,P,M,c,$),w[i]=A,w[o]=I,O=e.dataToPoint(w,null,S),y[b++]=O?O[0]:NaN,y[b++]=O?O[1]:NaN,w[o]=R,O=e.dataToPoint(w,null,S),y[b++]=O?O[1]:NaN}m.setLayout("largePoints",y)}}};function Are(t,e,n,r,i,o){var a;return n>r?a=-1:n0?t.get(i,e-1)<=r?1:-1:1,a}function nqe(t,e){var n=t.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),o=Ee(Je(t.get("barMaxWidth"),i),i),a=Ee(Je(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?Ee(s,i):Math.max(Math.min(i/2,o),a)}function rqe(t){t.registerChartView(QYe),t.registerSeriesModel($re),t.registerPreprocessor(ZYe),t.registerVisual(eqe),t.registerLayout(tqe)}function Ere(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var iqe=function(t){re(e,t);function e(n,r){var i=t.call(this)||this,o=new Wy(n,r),a=new qe;return i.add(o),i.add(a),i.updateData(n,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,i=n.color,o=n.rippleNumber,a=this.childAt(1),s=0;s0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;ze(f)?d=f(i):d=f,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,i,o,a){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return Ll(n.__p1,n.__cp1)+Ll(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,i){this.childAt(0).updateData(n,r,i),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,i=n.__p2,o=n.__cp1,a=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Dr,c=pI;s[0]=u(r[0],o[0],i[0],a),s[1]=u(r[1],o[1],i[1],a);var f=n.__t<1?c(r[0],o[0],i[0],a):c(i[0],o[0],r[0],1-a),d=n.__t<1?c(r[1],o[1],i[1],a):c(i[1],o[1],r[1],1-a);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;lr);l++);l=Math.min(l-1,a-2)}var c=(r-o[l])/(o[l+1]-o[l]),f=i[l],d=i[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var p=n.__t<1?d[0]-f[0]:f[0]-d[0],g=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(Mre),uqe=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),cqe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}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 uqe},e.prototype.buildPath=function(n,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a0){n.moveTo(i[a++],i[a++]);for(var l=1;l0){var p=(u+f)/2-(c-d)*o,g=(c+d)/2-(f-u)*o;n.quadraticCurveTo(p,g,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=o[u++],d=o[u++],p=1;p0){var m=(f+g)/2-(d-v)*a,y=(d+v)/2-(g-f)*a;if(GZ(f,d,m,y,g,v,s,n,r))return l}else if(ic(f,d,g,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u0&&(a.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Dre={seriesType:"lines",plan:$g(),reset:function(t){var e=t.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Qr("The lines series must have a coordinate system.");return}var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var f=n.get("clip",!0)&&Hy(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,i){var o=n.getData(),a=n.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=Dre.reset(n,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&o&&l&&console.warn("Large lines not support effect"),(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new fqe:new EN(a?o?lqe:Ire:o?Mre:AN),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(Jt),hqe=typeof Uint32Array>"u"?Array:Uint32Array,pqe=typeof Float64Array>"u"?Array:Float64Array;function Rre(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=me(e,function(n){var r=[n[0].coord,n[1].coord],i={coords:r};return n[0].name&&(i.fromName=n[0].name),n[1].name&&(i.toName=n[1].name),Tw([i,n[0],n[1]])}))}var gqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],Rre(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(Rre(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=O0(this._flatCoords,r.flatCoords),this._flatCoordsOffset=O0(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],a=0;ai&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){if(process.env.NODE_ENV!=="production"){var i=Pd.get(n.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+n.coordinateSystem)}var o=new ci(["value"],this);return o.hasItemOption=!1,o.initData(n.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;o.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),o},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getItemModel(n),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Or("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},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}(on);function lC(t){return t instanceof Array||(t=[t,t]),t}var vqe={seriesType:"lines",reset:function(t){var e=lC(t.get("symbol")),n=lC(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function i(o,a){var s=o.getItemModel(a),l=lC(s.getShallow("symbol",!0)),u=lC(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),u[0]&&o.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};function mqe(t){t.registerChartView(dqe),t.registerSeriesModel(gqe),t.registerLayout(Dre),t.registerVisual(vqe)}var yqe=256,bqe=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=qa.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),p=e.length;f.width=n,f.height=r;for(var g=0;g0){var I=a(O)?l:u;O>0&&(O=O*P+$),S[x++]=I[M],S[x++]=I[M+1],S[x++]=I[M+2],S[x++]=I[M+3]*O*256}else x+=4}return d.putImageData(w,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=qa.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},t}();function _qe(t,e,n){var r=t[1]-t[0];e=me(e,function(a){return{interval:[(a.interval[0]-t[0])/r,(a.interval[1]-t[0])/r]}});var i=e.length,o=0;return function(a){var s;for(s=o;s=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function kre(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var wqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o;if(r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),process.env.NODE_ENV!=="production"&&!o)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=n.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):kre(a)&&this._renderOnGeo(a,n,o,i)},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,i,o){var a=r.coordinateSystem;a&&(kre(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,i,o,a){var s=n.coordinateSystem,l=Gd(s,"cartesian2d"),u,c,f,d;if(l){var p=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=p.getBandWidth()+.5,c=g.getBandWidth()+.5,f=p.scale.getExtent(),d=g.scale.getExtent()}for(var v=this.group,m=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),O=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),S=_r(n),x=n.getModel("emphasis"),T=x.get("focus"),$=x.get("blurScope"),A=x.get("disabled"),P=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=i;Mf[1]||Dd[1])continue;var B=s.dataToPoint([L,D]);I=new Pt({shape:{x:B[0]-u/2,y:B[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(P[1],M)))continue;I=new Pt({z2:1,shape:s.dataToRect([m.get(P[0],M)]).contentShape,style:R})}if(m.hasItemOption){var F=m.getItemModel(M),z=F.getModel("emphasis");y=z.getModel("itemStyle").getItemStyle(),b=F.getModel(["blur","itemStyle"]).getItemStyle(),O=F.getModel(["select","itemStyle"]).getItemStyle(),w=F.get(["itemStyle","borderRadius"]),T=z.get("focus"),$=z.get("blurScope"),A=z.get("disabled"),S=_r(F)}I.shape.r=w;var W=n.getRawValue(M),j="-";W&&W[2]!=null&&(j=W[2]+""),Gr(I,S,{labelFetcher:n,labelDataIndex:M,defaultOpacity:R.opacity,defaultText:j}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=b,I.ensureState("select").style=O,Ln(I,T,$,A),I.incremental=a,a&&(I.states.emphasis.hoverLayer=!0),v.add(I),m.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(n,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new bqe;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),p=Math.max(c.y,0),g=Math.min(c.width+c.x,o.getWidth()),v=Math.min(c.height+c.y,o.getHeight()),m=g-d,y=v-p,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],O=l.mapArray(b,function(T,$,A){var P=n.dataToPoint([T,$]);return P[0]-=d,P[1]-=p,P.push(A),P}),w=i.getExtent(),S=i.type==="visualMap.continuous"?Oqe(w,i.option.range):_qe(w,i.getPieceList(),i.option.selected);u.update(O,m,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var x=new Rr({style:{width:m,height:y,x:d,y:p,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Jt),Sqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=Pd.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.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}(on);function xqe(t){t.registerChartView(wqe),t.registerSeriesModel(Sqe)}var Cqe=["itemStyle","borderWidth"],Nre=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oL=new Zl,Tqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group,a=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Nre[+c],categoryDim:Nre[1-+c]};a.diff(s).add(function(g){if(a.hasValue(g)){var v=Qre(a,g),m=Lre(a,g,v,d),y=Hre(a,d,m);a.setItemGraphicEl(g,y),o.add(y),Ure(y,d,m)}}).update(function(g,v){var m=s.getItemGraphicEl(v);if(!a.hasValue(g)){o.remove(m);return}var y=Qre(a,g),b=Lre(a,g,y,d),O=jre(a,b);m&&O!==m.__pictorialShapeStr&&(o.remove(m),a.setItemGraphicEl(g,null),m=null),m?Dqe(m,d,b):m=Hre(a,d,b,!0),a.setItemGraphicEl(g,m),m.__pictorialSymbolMeta=b,o.add(m),Ure(m,d,b)}).remove(function(g){var v=s.getItemGraphicEl(g);v&&Gre(s,g,v.__pictorialSymbolMeta.animationModel,v)}).execute();var p=n.get("clip",!0)?Hy(n.coordinateSystem,!1,n):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(n,r){var i=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(a){Gre(o,Ke(a).dataIndex,n,a)}):i.removeAll()},e.type="pictorialBar",e}(Jt);function Lre(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Pqe(n,o,i,r,d),$qe(t,e,i,o,a,d.boundingLength,d.pxSign,c,r,d),Aqe(n,d.symbolScale,u,r,d);var p=d.symbolSize,g=Id(n.get("symbolOffset"),p);return Eqe(n,p,i,o,a,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Pqe(t,e,n,r,i){var o=r.valueDim,a=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[o.wh]<=0),c;if(ge(a)){var f=[aL(s,a[0])-l,aL(s,a[1])-l];f[1]0?1:-1}function aL(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function $qe(t,e,n,r,i,o,a,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),p=t.getItemVisual(e,"symbolSize"),g;ge(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[f.index]=Ee(g[f.index],d),g[c.index]=Ee(g[c.index],r?d:Math.abs(o)),u.symbolSize=g;var v=u.symbolScale=[g[0]/s,g[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*a}function Aqe(t,e,n,r,i){var o=t.get(Cqe)||0;o&&(oL.attr({scaleX:e[0],scaleY:e[1],rotation:n}),oL.updateTransform(),o/=oL.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function Eqe(t,e,n,r,i,o,a,s,l,u,c,f){var d=c.categoryDim,p=c.valueDim,g=f.pxSign,v=Math.max(e[p.index]+s,0),m=v;if(r){var y=Math.abs(l),b=Un(t.get("symbolMargin"),"15%")+"",O=!1;b.lastIndexOf("!")===b.length-1&&(O=!0,b=b.slice(0,b.length-1));var w=Ee(b,e[p.index]),S=Math.max(v+w*2,0),x=O?0:w*2,T=oS(r),$=T?r:Zre((y+x)/S),A=y-$*v;w=A/2/(O?$:Math.max($-1,1)),S=v+w*2,x=O?0:w*2,!T&&r!=="fixed"&&($=u?Zre((Math.abs(u)+x)/S):0),m=$*S-x,f.repeatTimes=$,f.symbolMargin=w}var P=g*(m/2),M=f.pathPosition=[];M[d.index]=n[d.wh]/2,M[p.index]=a==="start"?P:a==="end"?l-P:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var I=f.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var R=f.barRectShape=he({},n);R[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(M[p.index]+P)),R[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[p.xy]=0,L[p.wh]=n[p.wh]}function Bre(t){var e=t.symbolPatternSize,n=Xn(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Vre(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=o[e.valueDim.index]+a+n.symbolMargin*2;for(sL(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-v),m[l.index]=f*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zre(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?Yg(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=Bre(n),i.add(o),Yg(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Fre(t,e,n){var r=he({},e.barRectShape),i=t.__pictorialBarRect;i?Yg(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Pt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function Wre(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=he({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)Rt(i,{shape:o},s,l);else{o[a.wh]=0,i=new Pt({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],Od[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Qre(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Mqe,n.isAnimationEnabled=Iqe,n}function Mqe(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Iqe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Hre(t,e,n,r){var i=new qe,o=new qe;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Vre(i,e,n):zre(i,e,n),Fre(i,n,r),Wre(i,e,n,r),i.__pictorialShapeStr=jre(t,n),i.__pictorialSymbolMeta=n,i}function Dqe(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;Rt(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Vre(t,e,n,!0):zre(t,e,n,!0),Fre(t,n,!0),Wre(t,e,n,!0)}function Gre(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];sL(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),V(o,function(a){lc(a,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function jre(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sL(t,e,n){V(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function Yg(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&Od[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function Ure(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");sL(t,function(v){if(v instanceof Rr){var m=v.style;v.useStyle(he({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=a,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var p=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,Gr(g,_r(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Fg(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ln(t,c,f,o.get("disabled"))}function Zre(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Rqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=fc(jy.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}(jy);function kqe(t){t.registerChartView(Tqe),t.registerSeriesModel(Rqe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tt(sJ,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lJ("pictorialBar"))}var Nqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this,s=this.group,l=n.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var p=new ql(this._layersSeries||[],l,d,d),g=[];p.add(Re(v,this,"add")).update(Re(v,this,"update")).remove(Re(v,this,"remove")).execute();function v(m,y,b){var O=a._layers;if(m==="remove"){s.remove(O[y]);return}for(var w=[],S=[],x,T=l[y].indices,$=0;$o&&(o=s),r.push(s)}for(var u=0;uo&&(o=f)}return{y0:i,max:o}}function Fqe(t){t.registerChartView(Nqe),t.registerSeriesModel(Bqe),t.registerLayout(Vqe),t.registerProcessor(Uy("themeRiver"))}var Wqe=2,Qqe=4,Yre=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this)||this;a.z2=Wqe,a.textConfig={inside:!0},Ke(a).seriesIndex=r.seriesIndex;var s=new $t({z2:Qqe,silent:n.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,n,r,i,o),a}return e.prototype.updateData=function(n,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;Ke(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=he({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var p=r.getVisual("decal");p&&(d.decal=Dg(p,a));var g=jd(l.getModel("itemStyle"),f,!0);he(f,g),V(xi,function(b){var O=s.ensureState(b),w=l.getModel([b,"itemStyle"]);O.style=w.getItemStyle();var S=jd(w,f);S&&(O.shape=S)}),n?(s.setShape(f),s.shape.r=c.r0,vn(s,{shape:{r:c.r}},i,r.dataIndex)):(Rt(s,{shape:f},i),os(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;Ln(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),p=this.node.dataIndex,g=o.get("minAngle")/180*Math.PI,v=o.get("show")&&!(g!=null&&Math.abs(s)L&&!rg(B-L)&&B0?(a.virtualPiece?a.virtualPiece.updateData(!1,b,n,r,i):(a.virtualPiece=new Yre(b,n,r,i),c.add(a.virtualPiece)),O.piece.off("click"),a.virtualPiece.on("click",function(w){a._rootToNode(O.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";QS(u,c)}}i=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:uL,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="sunburst",e}(Jt),Uqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Kre(i);var o=this._levelModels=me(n.levels||[],function(l){return new rn(l,this,r)},this),a=uN.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=a.getNodeByDataIndex(c),d=o[f.depth];return d&&(u.parentModel=d),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=Yx(i,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){une(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}(on);function Kre(t){var e=0;V(t.children,function(r){Kre(r);var i=r.value;ge(i)&&(i=i[0]),e+=i});var n=t.value;ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ge(t.value)?t.value[0]=n:t.value=n}var Jre=Math.PI/180;function Zqe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.get("center"),o=r.get("radius");ge(o)||(o=[0,o]),ge(i)||(i=[i,i]);var a=n.getWidth(),s=n.getHeight(),l=Math.min(a,s),u=Ee(i[0],a),c=Ee(i[1],s),f=Ee(o[0],l/2),d=Ee(o[1],l/2),p=-r.get("startAngle")*Jre,g=r.get("minAngle")*Jre,v=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&eie(m,b);var O=0;V(m.children,function(B){!isNaN(B.getValue())&&O++});var w=m.getValue(),S=Math.PI/(w||O)*2,x=m.depth>0,T=m.height-(x?-1:1),$=(d-f)/(T||1),A=r.get("clockwise"),P=r.get("stillShowZeroSum"),M=A?1:-1,I=function(B,F){if(B){var z=F;if(B!==v){var W=B.getValue(),j=w===0&&P?S:W*S;j1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",e);return r.depth>1&&Ie(s)&&(s=Ww(s,(r.depth-1)/(o-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(a,r,o.root.height));var u=i.ensureUniqueItemVisual(a.dataIndex,"style");he(u,l)})})}function qqe(t){t.registerChartView(jqe),t.registerSeriesModel(Uqe),t.registerLayout(tt(Zqe,"sunburst")),t.registerProcessor(tt(Uy,"sunburst")),t.registerVisual(Yqe),Gqe(t)}var tie={color:"fill",borderColor:"stroke"},Kqe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},nu=Tt(),Jqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return Us(null,this)},e.prototype.getDataParams=function(n,r,i){var o=t.prototype.getDataParams.call(this,n,r);return i&&(o.info=nu(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(on);function eKe(t,e){return e=e||[0,0],me(["x","y"],function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function tKe(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(eKe,t)}}}function nKe(t,e){return e=e||[0,0],me([0,1],function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function rKe(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:Re(nKe,t)}}}function iKe(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function oKe(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(iKe,t)}}}function aKe(t,e){return e=e||[0,0],me(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function sKe(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),s=t.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:Re(aKe,t)}}}function lKe(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,i){return t.dataToPoint(r,i)}}}}var nie={};function rie(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||ke(t,"text")))}function iie(t,e,n){var r=t,i,o,a;if(e==="text")a=r;else{a={},ke(r,"text")&&(a.text=r.text),ke(r,"rich")&&(a.rich=r.rich),ke(r,"textFill")&&(a.fill=r.textFill),ke(r,"textStroke")&&(a.stroke=r.textStroke),ke(r,"fontFamily")&&(a.fontFamily=r.fontFamily),ke(r,"fontSize")&&(a.fontSize=r.fontSize),ke(r,"fontStyle")&&(a.fontStyle=r.fontStyle),ke(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=ke(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),ke(r,"textPosition")&&(i.position=r.textPosition),ke(r,"textOffset")&&(i.offset=r.textOffset),ke(r,"textRotation")&&(i.rotation=r.textRotation),ke(r,"textDistance")&&(i.distance=r.textDistance)}return oie(a,t),V(a.rich,function(l){oie(l,l)}),{textConfig:i,textContent:o}}function oie(t,e){e&&(e.font=e.textFont||e.font,ke(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ke(e,"textAlign")&&(t.align=e.textAlign),ke(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ke(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ke(e,"textWidth")&&(t.width=e.textWidth),ke(e,"textHeight")&&(t.height=e.textHeight),ke(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ke(e,"textPadding")&&(t.padding=e.textPadding),ke(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ke(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ke(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ke(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ke(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ke(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ke(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function aie(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";sie(r,e);var a=r.textFill==null;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,V(e.rich,function(s){sie(s,s)}),r}function sie(t,e){e&&(ke(e,"fill")&&(t.textFill=e.fill),ke(e,"stroke")&&(t.textStroke=e.fill),ke(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ke(e,"font")&&(t.font=e.font),ke(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ke(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ke(e,"fontSize")&&(t.fontSize=e.fontSize),ke(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ke(e,"align")&&(t.textAlign=e.align),ke(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ke(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ke(e,"width")&&(t.textWidth=e.width),ke(e,"height")&&(t.textHeight=e.height),ke(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ke(e,"padding")&&(t.textPadding=e.padding),ke(e,"borderColor")&&(t.textBorderColor=e.borderColor),ke(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ke(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ke(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ke(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ke(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ke(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ke(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ke(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ke(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ke(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function lie(t,e){if(process.env.NODE_ENV!=="production"){var n=t+"^_^"+e;nie[n]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),nie[n]=!0)}}var uie={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cie=bt(uie),uC=ta(Ls,function(t,e){return t[e]=1,t},{}),fie=Ls.join(", "),cC=["","style","shape","extra"],qg=Tt();function cL(t,e,n,r,i){var o=t+"Animation",a=hg(t,r,i)||{},s=qg(e).userDuring;return a.duration>0&&(a.during=s?Re(hKe,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),he(a,n[o]),a}function fC(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=qg(t),u=e.style;l.userDuring=e.during;var c={},f={};if(gKe(t,e,f),pie("shape",e,f),pie("extra",e,f),!o&&s&&(pKe(t,e,c),hie("shape",t,e,c),hie("extra",t,e,c),vKe(t,e,u,c)),f.style=u,uKe(t,f,a),fKe(t,e),s)if(o){var d={};V(cC,function(g){var v=g?e[g]:e;v&&v.enterFrom&&(g&&(d[g]=d[g]||{}),he(g?d[g]:d,v.enterFrom))});var p=cL("enter",t,e,n,i);p.duration>0&&t.animateFrom(d,p)}else cKe(t,e,i||0,n,c);die(t,e),u?t.dirty():t.markRedraw()}function die(t,e){for(var n=qg(t).leaveToProps,r=0;r0&&t.animateFrom(i,o)}}function fKe(t,e){ke(e,"silent")&&(t.silent=e.silent),ke(e,"ignore")&&(t.ignore=e.ignore),t instanceof la&&ke(e,"invisible")&&(t.invisible=e.invisible),t instanceof yt&&ke(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Js={},dKe={setTransform:function(t,e){return process.env.NODE_ENV!=="production"&&je(ke(uC,t),"Only "+fie+" available in `setTransform`."),Js.el[t]=e,this},getTransform:function(t){return process.env.NODE_ENV!=="production"&&je(ke(uC,t),"Only "+fie+" available in `getTransform`."),Js.el[t]},setShape:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.shape;if(e)return e[t]},setStyle:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el,r=n.style;return r&&(process.env.NODE_ENV!=="production"&&ju(e)&&En("style."+t+" must not be assigned with NaN."),r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.style;if(e)return e[t]},setExtra:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el.extra||(Js.el.extra={});return n[t]=e,this},getExtra:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.extra;if(e)return e[t]}};function Kg(t){if(process.env.NODE_ENV!=="production"&&(t==="transition"||t==="enterFrom"||t==="leaveTo"))throw new Error('key must not be "'+t+'"')}function hKe(){var t=this,e=t.el;if(e){var n=qg(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}Js.el=e,r(dKe)}}function hie(t,e,n,r){var i=n[t];if(i){var o=e[t],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[t]={}),nh(l))he(a,o);else for(var u=nn(l),c=0;c=0){!a&&(a=r[t]={});for(var p=bt(o),c=0;c=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=r.style={});for(var g=bt(n),u=0;u=1&&(u=!0),!!d){var p=bt(d);if(s||(p=Yt(p,function(m){return st(yKe,m)<0})),!!p.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var g=0;g=0?e.getStore().get(F,D):void 0}var z=e.get(B.name,D),W=B&&B.ordinalMeta;return W?W.categories[z]:z}function x(L,D){process.env.NODE_ENV!=="production"&&lie("api.style","Please write literal style directly instead."),D==null&&(D=u);var B=e.getItemVisual(D,"style"),F=B&&B.fill,z=B&&B.opacity,W=b(D,xc).getItemStyle();F!=null&&(W.fill=F),z!=null&&(W.opacity=z);var j={inheritColor:Ie(F)?F:"#000"},H=O(D,xc),Z=un(H,null,j,!1,!0);Z.text=H.getShallow("show")?Je(t.getFormattedLabel(D,xc),Fg(e,D)):null;var J=kS(H,j,!1);return A(L,W),W=aie(W,Z,J),L&&$(W,L),W.legacy=!0,W}function T(L,D){process.env.NODE_ENV!=="production"&&lie("api.styleEmphasis","Please write literal style directly instead."),D==null&&(D=u);var B=b(D,ru).getItemStyle(),F=O(D,ru),z=un(F,null,null,!0,!0);z.text=F.getShallow("show")?_o(t.getFormattedLabel(D,ru),t.getFormattedLabel(D,xc),Fg(e,D)):null;var W=kS(F,null,!0);return A(L,B),B=aie(B,z,W),L&&$(B,L),B.legacy=!0,B}function $(L,D){for(var B in D)ke(D,B)&&(L[B]=D[B])}function A(L,D){L&&(L.textFill&&(D.textFill=L.textFill),L.textPosition&&(D.textPosition=L.textPosition))}function P(L,D){if(D==null&&(D=u),ke(tie,L)){var B=e.getItemVisual(D,"style");return B?B[tie[L]]:null}if(ke(Kqe,L))return e.getItemVisual(D,L)}function M(L){if(o.type==="cartesian2d"){var D=o.getBaseAxis();return e9e(Ge({axis:D},L))}}function I(){return n.getCurrentSeriesIndices()}function R(L){return zD(L,n)}}function CKe(t){var e={};return V(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function yL(t,e,n,r,i,o,a){if(!r){o.remove(e);return}var s=bL(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Ln(s,r.focus,r.blurScope,r.emphasisDisabled),s}function bL(t,e,n,r,i,o){process.env.NODE_ENV!=="production"&&je(r,"should not have an null/undefined element setting");var a=-1,s=e;e&&Oie(e,r,i)&&(a=st(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=vL(r),s&&OKe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oa.normal.cfg=Oa.normal.conOpt=Oa.emphasis.cfg=Oa.emphasis.conOpt=Oa.blur.cfg=Oa.blur.conOpt=Oa.select.cfg=Oa.select.conOpt=null,Oa.isLegacy=!1,PKe(u,n,r,i,l,Oa),TKe(u,n,r,i,l),mL(t,u,n,r,Oa,i,l),ke(r,"info")&&(nu(u).info=r.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function Oie(t,e,n){var r=nu(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&IKe(o)&&Cie(o)!==r.customPathData||i==="image"&&ke(a,"image")&&a.image!==r.customImagePath}function TKe(t,e,n,r,i){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Oie(a,o,r)&&(a=null),a||(a=vL(o),process.env.NODE_ENV!=="production"&&je(pC(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),t.setClipPath(a)),mL(null,a,e,o,null,r,i)}}function PKe(t,e,n,r,i,o){if(!t.isGroup){wie(n,null,o),wie(n,ru,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(a===!1)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=vL(a),t.setTextContent(c)),mL(null,c,e,a,null,r,i);for(var f=a&&a.style,d=0;d=c;p--){var g=e.childAt(p);AKe(e,g,i)}}}function AKe(t,e,n){e&&dC(e,nu(t).option,n)}function EKe(t){new ql(t.oldChildren,t.newChildren,Sie,Sie,t).add(xie).update(xie).remove(MKe).execute()}function Sie(t,e){var n=t&&t.name;return n??_Ke+e}function xie(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,i=e!=null?n.oldChildren[e]:null;bL(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function MKe(t){var e=this.context,n=e.oldChildren[t];n&&dC(n,nu(n).option,e.seriesModel)}function Cie(t){return t&&(t.pathData||t.d)}function IKe(t){return t&&(ke(t,"pathData")||ke(t,"d"))}function DKe(t){t.registerChartView(wKe),t.registerSeriesModel(Jqe)}var rh=Tt(),Tie=Ue,OL=Re,wL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,e,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,n);if(!s)s=this._group=new qe,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=tt(Pie,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}Eie(s,n,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),i=e.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=jk(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,i,o){},t.prototype.createPointerEl=function(e,n,r,i){var o=n.pointer;if(o){var a=rh(e).pointerEl=new Od[o.type](Tie(n.pointer));e.add(a)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var o=rh(e).labelEl=new $t(Tie(n.label));e.add(o),Aie(o,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=rh(e).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,i){var o=rh(e).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),Aie(o,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zl(u.event)},onmousedown:OL(this._onHandleDragMove,this,0,0),drift:OL(this._onHandleDragMove,this),ondragend:OL(this._onHandleDragEnd,this)}),r.add(i)),Eie(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Ag(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){Pie(this._axisPointerModel,!n&&this._moveAnimation,this._handle,SL(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(SL(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(SL(i)),rh(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function Pie(t,e,n,r){$ie(rh(n).lastProp,r)||(rh(n).lastProp=r,e?Rt(n,r,t):(n.stopAnimation(),n.attr(r)))}function $ie(t,e){if(Qe(t)&&Qe(e)){var n=!0;return V(e,function(r,i){n=n&&$ie(t[i],r)}),!!n}else return t===e}function Aie(t,e){t[e.get(["label","show"])?"show":"hide"]()}function SL(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Eie(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function xL(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Mie(t,e,n,r,i){var o=n.get("value"),a=Iie(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Sd(s.get("padding")||0),u=s.getFont(),c=H0(a,u),f=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],g=i.align;g==="right"&&(f[0]-=d),g==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=p),v==="middle"&&(f[1]-=p/2),RKe(f,d,p,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:un(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function RKe(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Iie(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:ck(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};V(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ie(a)?o=a.replace("{value}",o):ze(a)&&(o=a(s))}return o}function CL(t,e,n){var r=Ui();return Yu(r,r,n.rotation),Ka(r,r,n.position),as([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Die(t,e,n,r,i,o){var a=Ii.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Mie(e,r,i,o,{position:CL(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function TL(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Rie(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function kie(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r,startAngle:i,endAngle:o,clockwise:!0}}var kKe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=Nie(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=xL(o),p=NKe[u](s,f,c);p.style=d,n.graphicKey=p.type,n.pointer=p}var g=Wk(l.model,i);Die(r,n,g,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=Wk(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=CL(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=Nie(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:p,tooltipOption:g[c]}},e}(wL);function Nie(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var NKe={line:function(t,e,n){var r=TL([e,n[0]],[e,n[1]],Lie(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Rie([e-r/2,n[0]],[r,i],Lie(t))}}};function Lie(t){return t.dim==="x"?0:1}var LKe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(dt),iu=Tt(),BKe=V;function Bie(t,e,n){if(!Ct.node){var r=e.getZr();iu(r).records||(iu(r).records={}),VKe(r,e);var i=iu(r).records[t]||(iu(r).records[t]={});i.handler=n}}function VKe(t,e){if(iu(t).initialized)return;iu(t).initialized=!0,n("click",tt(Vie,"click")),n("mousemove",tt(Vie,"mousemove")),n("globalout",FKe);function n(r,i){t.on(r,function(o){var a=WKe(e);BKe(iu(t).records,function(s){s&&i(s,o,a.dispatchAction)}),zKe(a.pendings,e)})}}function zKe(t,e){var n=t.showTip.length,r=t.hideTip.length,i;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function FKe(t,e,n){t.handler("leave",null,n)}function Vie(t,e,n,r){e.handler(t,n,r)}function WKe(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function PL(t,e){if(!Ct.node){var n=e.getZr(),r=(iu(n).records||{})[t];r&&(iu(n).records[t]=null)}}var QKe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Bie("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(n,r){PL("axisPointer",r)},e.prototype.dispose=function(n,r){PL("axisPointer",r)},e.type="axisPointer",e}(dn);function zie(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=id(o,t);if(a==null||a<0||ge(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,g=o.mapDimension(d),v=[];v[p]=o.get(g,a),v[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(o.getValues(me(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var Fie=Tt();function HKe(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Re(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vC(i)&&(i=zie({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=vC(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||vC(i),d={},p={},g={list:[],map:{}},v={showPointer:tt(jKe,p),showTooltip:tt(UKe,g)};V(s.coordSysMap,function(y,b){var O=l||y.containPoint(i);V(s.coordSysAxesInfo[b],function(w,S){var x=w.axis,T=qKe(u,w);if(!f&&O&&(!u||T)){var $=T&&T.value;$==null&&!l&&($=x.pointToData(i)),$!=null&&Wie(w,$,v,!1,d)}})});var m={};return V(c,function(y,b){var O=y.linkGroup;O&&!p[b]&&V(O.axesInfo,function(w,S){var x=p[S];if(w!==y&&x){var T=x.value;O.mapper&&(T=y.axis.scale.parse(O.mapper(T,Qie(w),Qie(y)))),m[y.key]=T}})}),V(m,function(y,b){Wie(c[b],y,v,!0,d)}),ZKe(p,c,d),XKe(g,i,t,a),YKe(c,a,n),d}}function Wie(t,e,n,r,i){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var a=GKe(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&he(i,s[0]),!r&&t.snap&&o.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function GKe(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return V(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,t,n);d=p.dataIndices,f=p.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var g=t-f,v=Math.abs(g);v<=a&&((v=0&&s<0)&&(a=v,s=g,i=f,o.length=0),V(d,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:i}}function jKe(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function UKe(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Xy(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ZKe(t,e,n){var r=n.axesInfo=[];V(e,function(i,o){var a=i.axisPointerModel.option,s=t[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function XKe(t,e,n,r){if(vC(e)||!t.list.length){r({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function YKe(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=Fie(r)[i]||{},a=Fie(r)[i]={};V(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&V(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;a[p]=d})});var s=[],l=[];V(o,function(u,c){!a[c]&&l.push(u)}),V(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function qKe(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Qie(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function vC(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function hb(t){Ud.registerAxisPointerClass("CartesianAxisPointer",kKe),t.registerComponentModel(LKe),t.registerComponentView(QKe),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ge(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=lje(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HKe)}function KKe(t){ht(vte),ht(hb)}var JKe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=o.get("type");if(d&&d!=="none"){var p=xL(o),g=tJe[d](s,l,f,c);g.style=p,n.graphicKey=g.type,n.pointer=g}var v=o.get(["label","margin"]),m=eJe(r,i,o,l,v);Mie(n,i,o,a,m)},e}(wL);function eJe(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(o.dim==="radius"){var d=Ui();Yu(d,d,s),Ka(d,d,[r.cx,r.cy]),u=as([a,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,g=Ii.innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,f=g.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+i,a]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/v<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var tJe={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:TL(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:kie(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:kie(e.cx,e.cy,n-i/2,n+i/2,0,Math.PI*2)}}},nJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,i=this.ecModel;return i.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(dt),$L=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jn).models[0]},e.type="polarAxis",e}(dt);Wn($L,Vg);var rJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}($L),iJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}($L),AL=function(t){re(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(ma);AL.prototype.dataToRadius=ma.prototype.dataToCoord,AL.prototype.radiusToData=ma.prototype.coordToData;var oJe=Tt(),EL=function(t){re(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=H0(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),g=oJe(n.model),v=g.lastAutoInterval,m=g.lastTickCount;return v!=null&&m!=null&&Math.abs(v-p)<=1&&Math.abs(m-a)<=1&&v>p?p=v:(g.lastTickCount=a,g.lastAutoInterval=p),p},e}(ma);EL.prototype.dataToAngle=ma.prototype.dataToCoord,EL.prototype.angleToData=ma.prototype.coordToData;var Hie=["radius","angle"],aJe=function(){function t(e){this.dimensions=Hie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new AL,this._angleAxis=new EL,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&n.push(r),i.scale.type===e&&n.push(i),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[i,o]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},t.prototype.convertToPixel=function(e,n,r){var i=Gie(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=Gie(n);return i===this?this.pointToData(r):null},t}();function Gie(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const sJe=aJe;function lJe(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Ee(r[0],i),t.cy=Ee(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");l==null?l=[0,"100%"]:ge(l)||(l=[0,l]);var u=[Ee(l[0],s),Ee(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function uJe(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();V(Ex(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),V(Ex(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Ld(r.scale,r.model),Ld(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function cJe(t){return t.mainType==="angleAxis"}function jie(t,e){var n;if(t.type=e.get("type"),t.scale=Ny(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),cJe(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(n=e.get("endAngle"))!==null&&n!==void 0?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var fJe={dimensions:Hie,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,i){var o=new sJe(i+"");o.update=uJe;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");jie(a,l),jie(s,u),lJe(o,r,e),n.push(o),r.coordinateSystem=o,o.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Jn).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Un(r.get("polarIndex"),r.get("polarId"),0)+'" not found');r.coordinateSystem=i.coordinateSystem}}),n}},dJe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function mC(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function yC(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Uie(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var hJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=n.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=me(i.getViewLabels(),function(c){c=Ue(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});Uie(u),Uie(s),V(dJe,function(c){n.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&pJe[c](this.group,n,o,s,l,a,u)},this)}},e.type="angleAxis",e}(Ud),pJe={axisLine:function(t,e,n,r,i,o){var a=e.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=yC(n),f=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[f]===0?d=new Od[p]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new ay({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[f]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,t.add(d)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yC(n)],u=me(r,function(c){return new br({shape:mC(n,[l,l+s],c.coord)})});t.add(To(u,{style:Ge(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yC(n)],c=[],f=0;fy?"left":"right",w=Math.abs(m[1]-b)/v<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[g]){var S=s[g];Qe(S)&&S.textStyle&&(p=new rn(S.textStyle,l,l.ecModel))}var x=new $t({silent:Ii.isLabelSilent(e),style:un(p,{x:m[0],y:m[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:O,verticalAlign:w})});if(t.add(x),c){var T=Ii.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=f.rawLabel,Ke(x).eventData=T}},this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",D=A;S&&(r[c][R]||(r[c][R]={p:A,n:A}),D=r[c][R][L]);var B=void 0,F=void 0,z=void 0,W=void 0;if(g.dim==="radius"){var j=g.dataToCoord(I)-A,H=l.dataToCoord(R);Math.abs(j)=W})}}})}function OJe(t){var e={};V(t,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=Xie(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var p=Zie(r);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var g=Ee(r.get("barWidth"),c),v=Ee(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");g&&!d[p].width&&(g=Math.min(f.remainedWidth,g),d[p].width=g,f.remainedWidth-=g),v&&(d[p].maxWidth=v),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=Ee(r.categoryGap,a),l=Ee(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),V(o,function(v,m){var y=v.maxWidth;y&&y=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),i=[],o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=n.toGlobalCoord(n.dataToCoord(+e)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},t.prototype.convertToPixel=function(e,n,r){var i=qie(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=qie(n);return i===this?this.pointToData(r):null},t}();function qie(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function IJe(t,e){var n=[];return t.eachComponent("singleAxis",function(r,i){var o=new MJe(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",Jn).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var DJe={create:IJe,dimensions:Yie},Kie=["x","y"],RJe=["width","height"],kJe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.coordinateSystem,u=IL(l,1-_C(s)),c=l.dataToPoint(r)[0],f=o.get("type");if(f&&f!=="none"){var d=xL(o),p=NJe[f](s,c,u);p.style=d,n.graphicKey=p.type,n.pointer=p}var g=ML(i);Die(r,n,g,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=ML(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=CL(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.coordinateSystem,l=_C(a),u=IL(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=IL(s,1-l),d=(f[1]+f[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(wL),NJe={line:function(t,e,n){var r=TL([e,n[0]],[e,n[1]],_C(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Rie([e-r/2,n[0]],[r,i],_C(t))}}};function _C(t){return t.isHorizontal()?0:1}function IL(t,e){var n=t.getRect();return[n[Kie[e]],n[Kie[e]]+n[RJe[e]]]}var LJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(dn);function BJe(t){ht(hb),Ud.registerAxisPointerClass("SingleAxisPointer",kJe),t.registerComponentView(LJe),t.registerComponentView($Je),t.registerComponentModel(bC),Qg(t,"single",bC,bC.defaultOption),t.registerCoordinateSystem("single",DJe)}var VJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,i){var o=Sg(n);t.prototype.init.apply(this,arguments),Jie(n,o)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),Jie(this.option,n)},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}(dt);function Jie(t,e){var n=t.cellSize,r;ge(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=me([0,1],function(o){return zFe(e,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});dc(t,e,{type:"box",ignoreSize:i})}var zJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll();var a=n.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,u,l,o),this._renderWeekText(n,u,s,l,o)},e.prototype._renderDayRect=function(n,r,i){for(var o=n.coordinateSystem,a=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToRect([u],!1).tl,f=new Pt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});i.add(f)}},e.prototype._renderLines=function(n,r,i,o){var a=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){g(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var p=f.date;p.setMonth(p.getMonth()+1),f=s.getDateInfo(p)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(v){a._firstDayOfMonth.push(s.getDateInfo(v)),a._firstDayPoints.push(s.dataToRect([v],!1).tl);var m=a._getLinePointsOfOneWeek(n,v,i);a._tlpoints.push(m[0]),a._blpoints.push(m[m.length-1]),u&&a._drawSplitline(m,l,o)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,i),l,o),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,i),l,o)},e.prototype._getEdgesPoints=function(n,r,i){var o=[n[0].slice(),n[n.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},e.prototype._drawSplitline=function(n,r,i){var o=new Pi({z2:20,shape:{points:n},style:r});i.add(o)},e.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var o=n.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var u=o.getNextNDay(a.time,l),c=o.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(n,r){return Ie(n)&&n?NFe(n,r):ze(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,i,o,a){var s=r[0],l=r[1],u=["center","bottom"];o==="bottom"?(l+=a,u=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(o==="left"||o==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,i,o){var a=n.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var v=a.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:g},y=this._formatterLabel(v,m),b=new $t({z2:30,style:un(a,{text:y})});b.attr(this._yearTextPositionControl(b,p[l],i,l,s)),o.add(b)}},e.prototype._monthTextPositionControl=function(n,r,i,o,a){var s="left",l="top",u=n[0],c=n[1];return i==="horizontal"?(c=c+a,r&&(s="center"),o==="start"&&(l="bottom")):(u=u+a,r&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,i,o){var a=n.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ie(s))&&(s&&(r=jD(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",v=0;v=i.start.time&&r.times.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var i=Math.floor(n[1].time/DL)-Math.floor(n[0].time/DL)+1,o=new Date(n[0].time),a=o.getDate(),s=n[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*u>0;)i-=u,o.setDate(l-u);var c=Math.floor((i+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&ni.lweek)return null;var o=(e-1)*7-i.fweek+n,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(i){var o=new t(i);r.push(o),i.coordinateSystem=o}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function eoe(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}function WJe(t){t.registerComponentModel(VJe),t.registerComponentView(zJe),t.registerCoordinateSystem("calendar",FJe)}function QJe(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function toe(t,e){var n;return V(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function HJe(t,e,n){var r=he({},n),i=t[e],o=n.$action||"merge";if(o==="merge")if(i){if(process.env.NODE_ENV!=="production"){var a=n.type;je(!a||i.type===a,'Please set $action: "replace" to change `type`')}it(i,r,!0),dc(i,r,{ignoreSize:!0}),EY(n,i),OC(n,i),OC(n,i,"shape"),OC(n,i,"style"),OC(n,i,"extra"),n.clipPath=i.clipPath}else t[e]=r;else o==="replace"?t[e]=r:o==="remove"&&i&&(t[e]=null)}var noe=["transition","enterFrom","leaveTo"],GJe=noe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function OC(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?noe:GJe,i=0;i=0;c--){var f=i[c],d=cr(f.id,null),p=d!=null?a.get(d):null;if(p){var g=p.parent,y=wa(g),b=g===o?{width:s,height:l}:{width:y.width,height:y.height},O={},w=GS(p,f,b,null,{hv:f.hv,boundingMode:f.bounding},O);if(!wa(p).isNew&&w){for(var S=f.transition,x={},T=0;T=0)?x[$]=A:p[$]=A}Rt(p,x,n,0)}else p.attr(O)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){wC(i,wa(i).option,r,n._lastGraphicModel)}),this._elMap=Le()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(dn);function RL(t){process.env.NODE_ENV!=="production"&&je(t,"graphic type MUST be set");var e=ke(roe,t)?roe[t]:MS(t);process.env.NODE_ENV!=="production"&&je(e,"graphic type "+t+" can not be found");var n=new e({});return wa(n).type=t,n}function ioe(t,e,n,r){var i=RL(n);return e.add(i),r.set(t,i),wa(i).id=t,wa(i).isNew=!0,i}function wC(t,e,n,r){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(o){wC(o,e,n,r)}),dC(t,e,r),n.removeKey(wa(t).id))}function ooe(t,e,n,r){t.isGroup||V([["cursor",la.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];ke(e,o)?t[o]=Je(e[o],i[1]):t[o]==null&&(t[o]=i[1])}),V(bt(e),function(i){if(i.indexOf("on")===0){var o=e[i];t[i]=ze(o)?o:null}}),ke(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function XJe(t){return t=he({},t),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(AY),function(e){delete t[e]}),t}function YJe(t,e,n){var r=Ke(t).eventData;!t.silent&&!t.ignore&&!r&&(r=Ke(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function qJe(t){t.registerComponentModel(UJe),t.registerComponentView(ZJe),t.registerPreprocessor(function(e){var n=e.graphic;ge(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var aoe=["x","y","radius","angle","single"],KJe=["cartesian2d","polar","singleAxis"];function JJe(t){var e=t.get("coordinateSystem");return st(KJe,e)>=0}function Tc(t){return process.env.NODE_ENV!=="production"&&je(t),t+"Axis"}function eet(t,e){var n=Le(),r=[],i=Le();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var o;do o=!1,t.eachComponent("dataZoom",a);while(o);function a(c){!i.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,p){var g=n.get(d);g&&g[p]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function soe(t){var e=t.ecModel,n={infoList:[],infoMap:Le()};return t.eachTargetAxis(function(r,i){var o=e.getComponent(Tc(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=n.infoMap.get(s);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var kL=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),pb=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,i){var o=loe(n);this.settledOption=o,this.mergeDefaultAndTheme(n,i),this._doInit(o)},e.prototype.mergeOption=function(n){var r=loe(n);it(this.option,n,!0),it(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Le(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return V(aoe,function(i){var o=this.getReferringComponents(Tc(i),SVe);if(o.specified){r=!0;var a=new kL;V(o.models,function(s){a.add(s.componentIndex)}),n.set(i,a)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new kL;if(d.add(f.componentIndex),n.set(c,d),o=!1,c==="x"||c==="y"){var p=f.getReferringComponents("grid",Jn).models[0];p&&V(u,function(g){f.componentIndex!==g.componentIndex&&p===g.getReferringComponents("grid",Jn).models[0]&&d.add(g.componentIndex)})}}}o&&V(aoe,function(u){if(o){var c=i.findComponents({mainType:Tc(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new kL;f.add(c[0].componentIndex),n.set(u,f),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");V([["start","startValue"],["end","endValue"]],function(o,a){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(Tc(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,o){V(i.indexList,function(a){n.call(r,o,a)})})},e.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){process.env.NODE_ENV!=="production"&&je(n&&r!=null);var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(Tc(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=i[o[0]]=n[o[0]],r[o[1]]=i[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;V(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;oa[1];if(O&&!w&&!S)return!0;O&&(m=!0),w&&(g=!0),S&&(v=!0)}return m&&g&&v})}else Jg(c,function(p){if(o==="empty")l.setData(u=u.map(p,function(v){return s(v)?v:NaN}));else{var g={};g[p]=a,u.selectRange(g)}});Jg(c,function(p){u.setApproximateExtent(a,p)})}});function s(l){return l>=a[0]&&l<=a[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Jg(["min","max"],function(i){var o=n.get(i+"Span"),a=n.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=qt(r[0]+a,r,[0,100],!0):o!=null&&(a=qt(o,[0,100],r,!0)-r[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=a},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=GI(r,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},t}();function iet(t,e,n){var r=[1/0,-1/0];Jg(n,function(a){w9e(r,a.getData(),e)});var i=t.getAxisModel(),o=pJ(i.axis.scale,i,r).calculate();return[o.min,o.max]}var oet={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=t.getComponent(Tc(a),s);i(a,s,l,o)})})}e(function(i,o,a,s){a.__dzAxisProxy=null});var n=[];e(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new ret(i,o,s,t),n.push(a.__dzAxisProxy))});var r=Le();return V(n,function(i){V(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function aet(t){t.registerAction("dataZoom",function(e,n){var r=eet(n,e);V(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var coe=!1;function LL(t){coe||(coe=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,oet),aet(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function set(t){t.registerComponentModel(tet),t.registerComponentView(net),LL(t)}var Sa=function(){function t(){}return t}(),foe={};function ev(t,e){foe[t]=e}function doe(t){return foe[t]}var uet=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;V(this.option.feature,function(r,i){var o=doe(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),it(r,o.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}(dt);function cet(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=er(r,o,i);Td(e.get("orient"),t,e.get("itemGap"),a.width,a.height),GS(t,r,o,i)}function hoe(t,e){var n=Sd(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Pt({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var fet=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){var a=this.group;if(a.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];V(u,function(g,v){f.push(v)}),new ql(this._featureNames||[],f).add(d).update(d).remove(tt(d,null)).execute(),this._featureNames=f;function d(g,v){var m=f[g],y=f[v],b=u[m],O=new rn(b,n,n.ecModel),w;if(o&&o.newTitle!=null&&o.featureName===m&&(b.title=o.newTitle),m&&!y){if(det(m))w={onclick:O.option.onclick,featureName:m};else{var S=doe(m);if(!S)return;w=new S}c[m]=w}else if(w=c[y],!w)return;w.uid=bg("toolbox-feature"),w.model=O,w.ecModel=r,w.api=i;var x=w instanceof Sa;if(!m&&y){x&&w.dispose&&w.dispose(r,i);return}if(!O.get("show")||x&&w.unusable){x&&w.remove&&w.remove(r,i);return}p(O,w,m),O.setIconStatus=function(T,$){var A=this.option,P=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=$,P[T]&&($==="emphasis"?jl:Ul)(P[T])},w instanceof Sa&&w.render&&w.render(O,r,i,o)}function p(g,v,m){var y=g.getModel("iconStyle"),b=g.getModel(["emphasis","iconStyle"]),O=v instanceof Sa&&v.getIcons?v.getIcons():g.get("icon"),w=g.get("title")||{},S,x;Ie(O)?(S={},S[m]=O):S=O,Ie(w)?(x={},x[m]=w):x=w;var T=g.iconPaths={};V(S,function($,A){var P=vg($,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(y.getItemStyle());var M=P.ensureState("emphasis");M.style=b.getItemStyle();var I=new $t({style:{text:x[A],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:zD({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},r)},ignore:!0});P.setTextContent(I),mg({el:P,componentModel:n,itemName:A,formatterParamsExtra:{title:x[A]}}),P.__title=x[A],P.on("mouseover",function(){var R=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||L}),I.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(g.get(["iconStatus",A])==="emphasis"?jl:Ul)(P),a.add(P),P.on("click",Re(v.onclick,v,r,i,A)),T[A]=P})}cet(a,n,i),a.add(hoe(a.getBoundingRect(),n)),l||a.eachChild(function(g){var v=g.__title,m=g.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=g.getTextContent(),O=b&&b.ensureState("emphasis");if(O&&!ze(O)&&v){var w=O.style||(O.style={}),S=H0(v,$t.makeFont(w)),x=g.x+a.x,T=g.y+a.y+s,$=!1;T+S.height>i.getHeight()&&(y.position="top",$=!0);var A=$?-5-S.height:s+10;x+S.width/2>i.getWidth()?(y.position=["100%",A],w.align="right"):x-S.width/2<0&&(y.position=[0,A],w.align="left")}})},e.prototype.updateView=function(n,r,i,o){V(this._features,function(a){a instanceof Sa&&a.updateView&&a.updateView(a.model,r,i,o)})},e.prototype.remove=function(n,r){V(this._features,function(i){i instanceof Sa&&i.remove&&i.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){V(this._features,function(i){i instanceof Sa&&i.dispose&&i.dispose(n,r)})},e.type="toolbox",e}(dn);function det(t){return t.indexOf("my")===0}var het=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var i=this.model,o=i.get("name")||n.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Ct.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=o+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),p=d[0].indexOf("base64")>-1,g=a?decodeURIComponent(d[1]):d[1];p&&(g=window.atob(g));var v=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=g.length,y=new Uint8Array(m);m--;)y[m]=g.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,v)}else{var O=document.createElement("iframe");document.body.appendChild(O);var w=O.contentWindow,S=w.document;S.open("image/svg+xml","replace"),S.write(g),S.close(),w.focus(),S.execCommand("SaveAs",!0,v),document.body.removeChild(O)}}else{var x=i.get("lang"),T='',$=window.open();$.document.write(T),$.document.title=o}},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(Sa),poe="__ec_magicType_stack__",pet=[["line","bar"],["stack"]],get=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return V(n.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(goe[i]){var s={series:[]},l=function(f){var d=f.subType,p=f.id,g=goe[i](d,p,f,o);g&&(Ge(g,f.option),s.series.push(g));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=v.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",O=f.getReferringComponents(b,Jn).models[0],w=O.componentIndex;s[b]=s[b]||[];for(var S=0;S<=w;S++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=i==="bar"}}};V(pet,function(f){st(f,i)>=0&&V(f,function(d){o.setIconStatus(d,"normal")})}),o.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=i;i==="stack"&&(u=it({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Sa),goe={line:function(t,e,n,r){if(t==="bar")return it({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return it({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===poe;if(t==="line"||t==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),it({id:e,stack:i?"":poe},r.get(["option","stack"])||{},!0)}};ls({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var SC=new Array(60).join("-"),tv=" ";function vet(t){var e={},n=[],r=[];return t.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function met(t){var e=[];return V(t,function(n,r){var i=n.categoryAxis,o=n.valueAxis,a=o.dim,s=[" "].concat(me(n.series,function(p){return p.name})),l=[i.model.getCategories()];V(n.series,function(p){var g=p.getRawData();l.push(p.getRawData().mapArray(g.mapDimension(a),function(v){return v}))});for(var u=[s.join(tv)],c=0;c=0)return!0}var BL=new RegExp("["+tv+"]+","g");function Oet(t){for(var e=t.split(/\n+/g),n=xC(e.shift()).split(BL),r=[],i=me(n,function(l){return{name:l,data:[]}}),o=0;o=0;o--){var a=n[o];if(a[i])break}if(o<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();n[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),n.push(e)}function $et(t){var e=VL(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return voe(n,function(i,o){for(var a=e.length-1;a>=0;a--)if(i=e[a][o],i){r[o]=i;break}}),r}function Aet(t){moe(t).snapshots=null}function Eet(t){return VL(t).length}function VL(t){var e=moe(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Met=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){Aet(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(Sa);ls({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var Iet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],zL=function(){function t(e,n,r){var i=this;this._targetInfoList=[];var o=yoe(n,e);V(Det,function(a,s){(!r||!r.include||st(r.include,s)>=0)&&a(o,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=WL[r.brushType](0,o,i);r.__rangeOffset={offset:woe[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){V(e,function(i){var o=this.findTargetInfo(i,n);o&&o!==!0&&V(o.coordSyses,function(a){var s=WL[i.brushType](1,a,i.range,!0);r(i,s.values,a,n)})},this)},t.prototype.setInputRanges=function(e,n){V(e,function(r){var i=this.findTargetInfo(r,n);if(process.env.NODE_ENV!=="production"&&(je(!i||i===!0||r.coordRange,"coordRange must be specified when coord index specified."),je(!i||i!==!0||r.range,"range must be specified in global brush.")),r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=WL[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?woe[r.brushType](o.values,a.offset,Ret(o.xyMinMax,a.xyMinMax)):o.values}},this)},t.prototype.makePanelOpts=function(e,n){return me(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:vre(i),isTargetByCursor:yre(i,e,r.coordSysModel),getLinearBrushOtherExtent:mre(i)}})},t.prototype.controlSeries=function(e,n,r){var i=this.findTargetInfo(e,r);return i===!0||i&&st(i.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,i=yoe(n,e),o=0;ot[1]&&t.reverse(),t}function yoe(t,e){return X0(t,e,{includeMainTypes:Iet})}var Det={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Le(),a={},s={};!n&&!r&&!i||(V(n,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),V(r,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),V(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(f,d){(st(n,f.getAxis("x").model)>=0||st(r,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:_oe.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){V(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:_oe.geo})})}},boe=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],_oe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(uc(t)),e}},WL={lineX:tt(Ooe,0),lineY:tt(Ooe,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[FL([i[0],o[0]]),FL([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=me(n,function(a){var s=t?e.pointToData(a,r):e.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function Ooe(t,e,n,r){process.env.NODE_ENV!=="production"&&je(n.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][t]),o=FL(me([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var woe={lineX:tt(Soe,0),lineY:tt(Soe,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return me(t,function(r,i){return[r[0]-n[0]*e[i][0],r[1]-n[1]*e[i][1]]})}};function Soe(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function Ret(t,e){var n=xoe(t),r=xoe(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function xoe(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var QL=V,ket=yVe("toolbox-dataZoom_"),Net=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){this._brushController||(this._brushController=new WN(i.getZr()),this._brushController.on("brush",Re(this._onBrush,this)).mount()),Vet(n,r,this,o,i),Bet(n,r)},e.prototype.onclick=function(n,r,i){Let[i].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new zL(HL(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),Pet(o,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),p=d.model,g=l(u,p,o),v=g.findRepresentativeAxisProxy(p).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Jd(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var g=p.getAxisModel(u,c.componentIndex);g&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];QL(n,function(i,o){r.push(Ue(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(Sa),Let={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction($et(this.ecModel))}};function HL(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Bet(t,e){t.setIconStatus("back",Eet(e)>1?"emphasis":"normal")}function Vet(t,e,n,r,i){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new zL(HL(t),e,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}jFe("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),i=[],o=HL(r),a=X0(t,o);QL(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),QL(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:ket+u+f};d[c]=f,i.push(d)}return i});function zet(t){t.registerComponentModel(uet),t.registerComponentView(fet),ev("saveAsImage",het),ev("magicType",get),ev("dataView",Cet),ev("dataZoom",Net),ev("restore",Met),ht(set)}var Fet=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(dt);function Coe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Toe(t){if(Ct.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+p+"px";var g=e+" solid "+i+"px;",v=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function Zet(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Ct.transformSupported?","+GL+r:",left"+r+",top"+r),Het+":"+i}function Aoe(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ct.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ct.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+GL+":"+a+";":[["top",0],["left",0],[Poe,a]]}function Xet(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),V(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Yet(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=Eq(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(Zet(i,n)),o&&r.push("background-color:"+o),V(["width","color","radius"],function(p){var g="border-"+p,v=KD(g),m=t.get(v);m!=null&&r.push(g+":"+m+(p==="color"?"":"px"))}),r.push(Xet(c)),f!=null&&r.push("padding:"+Sd(f).join("px ")+"px"),r.join(";")+";"}function Eoe(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&FBe(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var qet=function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=n.appendTo,a=o&&(Ie(o)?document.querySelector(o):Gu(o)?o:ze(o)&&o(e.getDom()));Eoe(this._styleCoord,i,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(r),this._api=e,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ia(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=Qet(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=Get+Yet(e,!this._firstShow,this._longHide)+Aoe(o[0],o[1],!0)+("border-color:"+xd(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,i,o){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(Ie(o)&&r.get("trigger")==="item"&&!Coe(r)&&(s=Uet(r,i,o)),Ie(e))a.innerHTML=e+s;else if(e){a.innerHTML="",ge(e)||(e=[e]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Ct.node||!i.getDom())){var a=Doe(o,i);this._ticket="";var s=o.dataByCoordSys,l=itt(o,r,i);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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=Jet;c.x=o.x,c.y=o.y,c.update(),Ke(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=zie(o,r),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},e.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Doe(o,i))},e.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=gb([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},e.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=Ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Md(i,function(c){if(Ke(c).dataIndex!=null)return l=c,!0;if(Ke(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Re(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=gb([r.tooltipOption],o),l=this._renderMode,u=[],c=Or("section",{blocks:[],noHeader:!0}),f=[],d=new xR;V(n,function(b){V(b.dataByAxis,function(O){var w=i.getComponent(O.axisDim+"Axis",O.axisIndex),S=O.value;if(!(!w||S==null)){var x=Iie(S,w.axis,i,O.seriesDataIndices,O.valueLabelOpt),T=Or("section",{header:x,noHeader:!na(x),sortBlocks:!0,blocks:[]});c.blocks.push(T),V(O.seriesDataIndices,function($){var A=i.getSeriesByIndex($.seriesIndex),P=$.dataIndexInside,M=A.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=O.axisDim,M.axisIndex=O.axisIndex,M.axisType=O.axisType,M.axisId=O.axisId,M.axisValue=ck(w.axis,{value:S}),M.axisValueLabel=x,M.marker=d.makeTooltipMarker("item",xd(M.color),l);var I=cq(A.formatTooltip(P,!0,null)),R=I.frag;if(R){var L=gb([A],o).get("valueFormatter");T.blocks.push(L?he({valueFormatter:L},R):R)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var p=r.position,g=s.get("order"),v=Pq(c,d,l,g,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var m=l==="richText"?` `:"
",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Ke(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),p=this._renderMode,g=n.positionDefault,v=gb([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),b=new xR;y.marker=b.makeTooltipMarker("item",xd(y.color),p);var O=cq(u.formatTooltip(c,!1,f)),w=v.get("order"),S=v.get("valueFormatter"),x=O.frag,T=x?Pq(S?he({valueFormatter:S},x):x,b,p,w,o.get("useUTC"),v.get("textStyle")):O.text,$="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,T,y,$,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Ke(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ie(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Ue(l),l.content=_i(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=n.positionDefault,g=gb(f,this._tooltipModel,p?{position:p}:null),v=g.get("content"),m=Math.random()+"",y=new xR;this._showOrMove(g,function(){var b=Ue(g.get("formatterParams")||{});this._showTooltipContent(g,v,b,m,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var p=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),v=g.color;if(d)if(Ie(d)){var m=n.ecModel.get("useUTC"),y=ge(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,b&&(p=py(y.axisValue,p,m)),p=tR(p,i,!0)}else if(ze(d)){var O=Re(function(w,S){w===this._ticket&&(f.setContent(S,c,n,v,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,p=d(i,o,O)}else p=d;f.setContent(p,c,n,v,l),f.show(n,v),this._updatePosition(n,l,a,s,f,i,u)}},e.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ge(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ge(r))return{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),d=n.get("align"),p=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),ze(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:f.slice()})),ge(r))i=Ee(r[0],u),o=Ee(r[1],c);else if(Qe(r)){var v=r;v.width=f[0],v.height=f[1];var m=er(v,{width:u,height:c});i=m.x,o=m.y,d=null,p=null}else if(Ie(r)&&l){var y=rtt(r,g,f,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=ttt(i,o,a,u,c,d?null:20,p?null:20);i=y[0],o=y[1]}if(d&&(i-=Roe(d)?f[0]/2:d==="right"?f[0]:0),p&&(o-=Roe(p)?f[1]/2:p==="bottom"?f[1]:0),Coe(n)){var y=ntt(i,o,a,u,c);i=y[0],o=y[1]}a.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&V(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&V(u,function(d,p){var g=f[p]||{},v=d.seriesDataIndices||[],m=g.seriesDataIndices||[];a=a&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&v.length===m.length,a&&V(v,function(y,b){var O=m[b];a=a&&y.seriesIndex===O.seriesIndex&&y.dataIndex===O.dataIndex}),o&&V(d.seriesDataIndices,function(y){var b=y.seriesIndex,O=r[b],w=o[b];O&&w&&w.data!==O.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Ct.node||!r.getDom()||(xy(this,"_updatePosition"),this._tooltipContent.dispose(),PL("itemTooltip",r))},e.type="tooltip",e}(dn);function gb(t,e,n){var r=e.ecModel,i;n?(i=new rn(n,r,r),i=new rn(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof rn&&(a=a.get("tooltip",!0)),Ie(a)&&(a={formatter:a}),a&&(i=new rn(a,i,r)))}return i}function Doe(t,e){return t.dispatchAction||Re(e.dispatchAction,e)}function ttt(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(t+l+o+2>r?t-=l+o:t+=o),a!=null&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function ntt(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function rtt(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function Roe(t){return t==="center"||t==="middle"}function itt(t,e,n){var r=qI(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Y0(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=Ke(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function ott(t){ht(hb),t.registerComponentModel(Fet),t.registerComponentView(ett),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qn)}var att=["rect","polygon","keep","clear"];function stt(t,e){var n=nn(t?t.brush:[]);if(n.length){var r=[];V(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=t&&t.toolbox;ge(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),ltt(s),e&&!s.length&&s.push.apply(s,att)}}function ltt(t){var e={};V(t,function(n){e[n]=1}),t.length=0,V(e,function(n,r){t.push(r)})}var koe=V;function Noe(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function jL(t,e,n){var r={};return koe(e,function(o){var a=r[o]=i();koe(t[o],function(s,l){if(Sr.isValidType(l)){var u={type:l,visual:s};n&&n(u,o),a[l]=new Sr(u),l==="opacity"&&(u=Ue(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new Sr(u))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function Loe(t,e,n){var r;V(n,function(i){e.hasOwnProperty(i)&&Noe(e[i])&&(r=!0)}),r&&V(n,function(i){e.hasOwnProperty(i)&&Noe(e[i])?t[i]=Ue(e[i]):delete t[i]})}function utt(t,e,n,r,i,o){var a={};V(t,function(f){var d=Sr.prepareVisualTypes(e[f]);a[f]=d});var s;function l(f){return PR(n,s,f)}function u(f,d){Kq(n,s,f,d)}n.each(c);function c(f,d){s=f;var p=n.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var g=r.call(i,f),v=e[g],m=a[g],y=0,b=m.length;ye[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&Qoe(e)}};function Qoe(t){return new at(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var mtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new WN(r.getZr())).on("brush",Re(this._onBrush,this)).mount()},e.prototype.render=function(n,r,i,o){this.model=n,this._updateController(n,r,i,o)},e.prototype.updateTransform=function(n,r,i,o){Foe(r),this._updateController(n,r,i,o)},e.prototype.updateVisual=function(n,r,i,o){this.updateTransform(n,r,i,o)},e.prototype.updateView=function(n,r,i,o){this._updateController(n,r,i,o)},e.prototype._updateController=function(n,r,i,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ue(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ue(i),$from:r})},e.type="brush",e}(dn),ytt="#ddd",btt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&Loe(i,n,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:ytt},o.hasOwnProperty("liftZ")||(o.liftZ=5)},e.prototype.setAreas=function(n){process.env.NODE_ENV!=="production"&&(je(ge(n)),V(n,function(r){je(r.brushType,"Illegal areas")})),n&&(this.areas=me(n,function(r){return Hoe(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=Hoe(this.option,n),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}(dt);function Hoe(t,e){return it({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new rn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var _tt=["rect","polygon","lineX","lineY","keep","clear"],Ott=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,V(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,i){this.render(n,r,i)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return V(n.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},e.prototype.onclick=function(n,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(n){var r={show:!0,type:_tt.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:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(Sa);function wtt(t){t.registerComponentView(mtt),t.registerComponentModel(btt),t.registerPreprocessor(stt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,dtt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Qn),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Qn),ev("brush",Ott)}var Stt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}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}(dt),xtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Je(n.get("textBaseline"),n.get("textVerticalAlign")),c=new $t({style:un(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),p=new $t({style:un(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=n.get("link"),v=n.get("sublink"),m=n.get("triggerEvent",!0);c.silent=!g&&!m,p.silent=!v&&!m,g&&c.on("click",function(){QS(g,"_"+n.get("target"))}),v&&p.on("click",function(){QS(v,"_"+n.get("subtarget"))}),Ke(c).eventData=Ke(p).eventData=m?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(c),d&&o.add(p);var y=o.getBoundingRect(),b=n.getBoxLayoutParams();b.width=y.width,b.height=y.height;var O=er(b,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?O.x+=O.width:l==="center"&&(O.x+=O.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?O.y+=O.height:u==="middle"&&(O.y+=O.height/2),u=u||"top"),o.x=O.x,o.y=O.y,o.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),p.setStyle(w),y=o.getBoundingRect();var S=O.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var T=new Pt({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});o.add(T)}},e.type="title",e}(dn);function Ctt(t){t.registerComponentModel(Stt),t.registerComponentView(xtt)}var Goe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],i=n.axisType,o=this._names=[],a;i==="category"?(a=[],V(r,function(u,c){var f=cr(ig(u),""),d;Qe(u)?(d=Ue(u),d.value=c):d=c,a.push(d),o.push(f)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ci([{name:"value",type:s}],this);l.initData(a,o)},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}(dt),joe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=fc(Goe.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}(Goe);Wn(joe,XS.prototype);var Ttt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(dn),Ptt=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this,n,r,i)||this;return a.type=o||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ma),XL=Math.PI,Uoe=Tt(),$tt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,i){if(this.model=n,this.api=i,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Or("nameValue",{noName:!0,value:c})},V(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,a,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var i=n.get(["label","position"]),o=n.get("orient"),a=Ett(n,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:XL/2},f=o==="vertical"?a.height:a.width,d=n.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,v=p?d.get("itemGap"):0,m=g+v,y=n.get(["label","rotate"])||0;y=y*XL/180;var b,O,w,S=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),T=p&&d.get("showPrevBtn",!0),$=p&&d.get("showNextBtn",!0),A=0,P=f;S==="left"||S==="bottom"?(x&&(b=[0,0],A+=m),T&&(O=[A,0],A+=m),$&&(w=[P-g,0],P-=m)):(x&&(b=[P-g,0],P-=m),T&&(O=[0,0],A+=m),$&&(w=[P-g,0],P-=m));var M=[A,P];return n.get("inverse")&&M.reverse(),{viewRect:a,mainLength:f,orient:o,rotation:c[o],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[o],playPosition:b,prevBtnPosition:O,nextBtnPosition:w,axisExtent:M,controlSize:g,controlGap:v}},e.prototype._position=function(n,r){var i=this._mainGroup,o=this._labelGroup,a=n.viewRect;if(n.orient==="vertical"){var s=Ui(),l=a.x,u=a.y+a.height;Ka(s,s,[-l,-u]),Yu(s,s,-XL/2),Ka(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=b(a),f=b(i.getBoundingRect()),d=b(o.getBoundingRect()),p=[i.x,i.y],g=[o.x,o.y];g[0]=p[0]=c[0][0];var v=n.labelPosOpt;if(v==null||Ie(v)){var m=v==="+"?0:1;O(p,f,c,1,m),O(g,d,c,1,1-m)}else{var m=v>=0?0:1;O(p,f,c,1,m),g[1]=p[1]+v}i.setPosition(p),o.setPosition(g),i.rotation=o.rotation=n.rotation,y(i),y(o);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function O(w,S,x,T,$){w[T]+=x[T][$]-S[T][$]}},e.prototype._createAxis=function(n,r){var i=r.getData(),o=r.get("axisType"),a=Att(r,o);a.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new Ptt("value",a,n.axisExtent,o);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new qe;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new br({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:he({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new br({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Ge({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),p=f.getModel(["emphasis","itemStyle"]),g=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:Re(a._changeTimeline,a,u.value)},m=Zoe(f,d,r,v);m.ensureState("emphasis").style=p.getItemStyle(),m.ensureState("progress").style=g.getItemStyle(),ac(m);var y=Ke(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(n,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),u=i.getViewLabels();this._tickLabels=[],V(u,function(c){var f=c.tickValue,d=l.getItemModel(f),p=d.getModel("label"),g=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new $t({x:m,y:0,rotation:n.labelRotation-n.rotation,onclick:Re(a._changeTimeline,a,f),silent:!1,style:un(p,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=un(g),y.ensureState("progress").style=un(v),r.add(y),ac(y),Uoe(y).dataIndex=f,a._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,i,o){var a=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),f=o.get("inverse",!0);d(n.nextBtnPosition,"next",Re(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Re(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Re(this._handlePlayClick,this,!c),!0);function d(p,g,v,m){if(p){var y=ns(Je(o.get(["controlStyle",g+"BtnSize"]),a),a),b=[0,-y/2,y,y],O=Mtt(o,g+"Icon",b,{x:p[0],y:p[1],originX:a/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:v});O.ensureState("emphasis").style=u,r.add(O),ac(O)}}},e.prototype._renderCurrentPointer=function(n,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Re(u._handlePointerDrag,u),f.ondragend=Re(u._handlePointerDragend,u),Xoe(f,u._progressLine,s,i,o,!0)},onUpdate:function(f){Xoe(f,u._progressLine,s,i,o)}};this._currentPointer=Zoe(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var i=this._toAxisCoord(n)[0],o=this._axis,a=So(o.getExtent().slice());i>a[1]&&(i=a[1]),i=0&&(a[o]=+a[o].toFixed(d)),[a,f]}var KL={min:tt(PC,"min"),max:tt(PC,"max"),average:tt(PC,"average"),median:tt(PC,"median")};function mb(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!Ltt(e)&&!ge(e.coord)&&ge(i)){var o=qoe(e,n,r,t);if(e=Ue(e),e.type&&KL[e.type]&&o.baseAxis&&o.valueAxis){var a=st(i,o.baseAxis.dim),s=st(i,o.valueAxis.dim),l=KL[e.type](n,o.baseDataDim,o.valueDataDim,a,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||!ge(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)KL[u[c]]&&(u[c]=JL(n,n.mapDimension(i[c]),u[c]));return e}}function qoe(t,e,n,r){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(Btt(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function Btt(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function yb(t,e){return t&&t.containData&&e.coord&&!qL(e)?t.containData(e.coord):!0}function Vtt(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!qL(e)&&!qL(n)?t.containZone(e.coord,n.coord):!0}function Koe(t,e){return t?function(n,r,i,o){var a=o<2?n.coord&&n.coord[o]:n.value;return hc(a,e[o])}:function(n,r,i,o){return hc(n.value,e[o])}}function JL(t,e,n){if(n==="average"){var r=0,i=0;return t.each(e,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var e4=Tt(),t4=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=Le()},e.prototype.render=function(n,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){e4(s).keep=!1}),r.eachSeries(function(s){var l=ou.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!e4(s).keep&&o.group.remove(s.group)})},e.prototype.markKeep=function(n){e4(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var i=this;V(n,function(o){var a=ou.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?bX(l):wD(l))})}})},e.type="marker",e}(dn);function Joe(t,e,n){var r=e.coordinateSystem;t.each(function(i){var o=t.getItemModel(i),a,s=Ee(o.get("x"),n.getWidth()),l=Ee(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(i,a)})}var ztt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markPoint");a&&(Joe(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Qy),f=Ftt(a,n,r);r.setData(f),Joe(r.getData(),n,o),f.each(function(d){var p=f.getItemModel(d),g=p.getShallow("symbol"),v=p.getShallow("symbolSize"),m=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),b=p.getShallow("symbolKeepAspect");if(ze(g)||ze(v)||ze(m)||ze(y)){var O=r.getRawValue(d),w=r.getDataParams(d);ze(g)&&(g=g(O,w)),ze(v)&&(v=v(O,w)),ze(m)&&(m=m(O,w)),ze(y)&&(y=y(O,w))}var S=p.getModel("itemStyle").getItemStyle(),x=Py(l,"color");S.fill||(S.fill=x),f.setItemVisual(d,{symbol:g,symbolSize:v,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(p){Ke(p).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(t4);function Ftt(t,e,n){var r;t?r=me(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return he(he({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ci(r,n),o=me(n.get("data"),tt(mb,e));t&&(o=Yt(o,tt(yb,t)));var a=Koe(!!t,r);return i.initData(o,null,a),i}function Wtt(t){t.registerComponentModel(Ntt),t.registerComponentView(ztt),t.registerPreprocessor(function(e){YL(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Qtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ou),$C=Tt(),Htt=function(t,e,n,r){var i=t.getData(),o;if(ge(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Un(r.yAxis,r.xAxis);else{var u=qoe(r,i,e,t);s=u.valueAxis;var c=tk(i,u.valueDataDim);l=JL(i,c,a)}var f=s.dim==="x"?0:1,d=1-f,p=Ue(r),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var v=n.get("precision");v>=0&&Et(l)&&(l=+l.toFixed(Math.min(v,20))),p.coord[f]=g.coord[f]=l,o=[p,g,{type:a,valueIndex:r.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&ea("Invalid markLine data."),o=[]}var m=[mb(t,o[0]),mb(t,o[1]),he({},o[2])];return m[2].type=m[2].type||null,it(m[2],m[0]),it(m[2],m[1]),m};function AC(t){return!isNaN(t)&&!isFinite(t)}function eae(t,e,n,r){var i=1-t,o=r.dimensions[t];return AC(e[i])&&AC(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function Gtt(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(eae(1,n,r,t)||eae(0,n,r,t)))return!0}return yb(t,e[0])&&yb(t,e[1])}function n4(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Ee(a.get("x"),i.getWidth()),u=Ee(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=o.dataToPoint([f,d])}if(Gd(o,"cartesian2d")){var p=o.getAxis("x"),g=o.getAxis("y"),c=o.dimensions;AC(t.get(c[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):AC(t.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var jtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=$C(a).from,u=$C(a).to;l.each(function(c){n4(l,c,!0,o,i),n4(u,c,!1,o,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new EN);this.group.add(c.group);var f=Utt(a,n,r),d=f.from,p=f.to,g=f.line;$C(r).from=d,$C(r).to=p,r.setData(g);var v=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");ge(v)||(v=[v,v]),ge(m)||(m=[m,m]),ge(y)||(y=[y,y]),ge(b)||(b=[b,b]),f.from.each(function(w){O(d,w,!0),O(p,w,!1)}),g.each(function(w){var S=g.getItemModel(w).getModel("lineStyle").getLineStyle();g.setItemLayout(w,[d.getItemLayout(w),p.getItemLayout(w)]),S.stroke==null&&(S.stroke=d.getItemVisual(w,"style").fill),g.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:p.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(w,"symbolOffset"),toSymbolRotate:p.getItemVisual(w,"symbolRotate"),toSymbolSize:p.getItemVisual(w,"symbolSize"),toSymbol:p.getItemVisual(w,"symbol"),style:S})}),c.updateData(g),f.line.eachItemGraphicEl(function(w){Ke(w).dataModel=r,w.traverse(function(S){Ke(S).dataModel=r})});function O(w,S,x){var T=w.getItemModel(S);n4(w,S,x,n,o);var $=T.getModel("itemStyle").getItemStyle();$.fill==null&&($.fill=Py(l,"color")),w.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Je(T.get("symbolOffset",!0),b[x?0:1]),symbolRotate:Je(T.get("symbolRotate",!0),y[x?0:1]),symbolSize:Je(T.get("symbolSize"),m[x?0:1]),symbol:Je(T.get("symbol",!0),v[x?0:1]),style:$})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(t4);function Utt(t,e,n){var r;t?r=me(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return he(he({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ci(r,n),o=new ci(r,n),a=new ci([],n),s=me(n.get("data"),tt(Htt,e,t,n));t&&(s=Yt(s,tt(Gtt,t)));var l=Koe(!!t,r);return i.initData(me(s,function(u){return u[0]}),null,l),o.initData(me(s,function(u){return u[1]}),null,l),a.initData(me(s,function(u){return u[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function Ztt(t){t.registerComponentModel(Qtt),t.registerComponentView(jtt),t.registerPreprocessor(function(e){YL(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Xtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ou),EC=Tt(),Ytt=function(t,e,n,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=mb(t,i),s=mb(t,o),l=a.coord,u=s.coord;l[0]=Un(l[0],-1/0),l[1]=Un(l[1],-1/0),u[0]=Un(u[0],1/0),u[1]=Un(u[1],1/0);var c=Tw([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function MC(t){return!isNaN(t)&&!isFinite(t)}function tae(t,e,n,r){var i=1-t;return MC(e[i])&&MC(n[i])}function qtt(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Gd(t,"cartesian2d")?n&&r&&(tae(1,n,r)||tae(0,n,r))?!0:Vtt(t,i,o):yb(t,i)||yb(t,o)}function nae(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Ee(a.get(n[0]),i.getWidth()),u=Ee(a.get(n[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(f),g=[];n[0]==="x0"?g[0]=d[0]>p[0]?f[0]:c[0]:g[0]=d[0]>p[0]?c[0]:f[0],n[1]==="y0"?g[1]=d[1]>p[1]?f[1]:c[1]:g[1]=d[1]>p[1]?c[1]:f[1],s=r.getMarkerPosition(g,n,!0)}else{var v=t.get(n[0],e),m=t.get(n[1],e),y=[v,m];o.clampData&&o.clampData(y,y),s=o.dataToPoint(y,!0)}if(Gd(o,"cartesian2d")){var b=o.getAxis("x"),O=o.getAxis("y"),v=t.get(n[0],e),m=t.get(n[1],e);MC(v)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):MC(m)&&(s[1]=O.toGlobalCoord(O.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var rae=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ktt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var u=me(rae,function(f){return nae(s,l,f,o,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=Jtt(a,n,r);r.setData(f),f.each(function(d){var p=me(rae,function($){return nae(f,d,$,n,o)}),g=a.getAxis("x").scale,v=a.getAxis("y").scale,m=g.getExtent(),y=v.getExtent(),b=[g.parse(f.get("x0",d)),g.parse(f.get("x1",d))],O=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];So(b),So(O);var w=!(m[0]>b[1]||m[1]O[1]||y[1]=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}(dt),nv=tt,i4=V,IC=qe,iae=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new IC),this.group.add(this._selectorGroup=new IC),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),p=er(c,f,d),g=this.layoutInner(n,a,p,o,l,u),v=er(Ge({width:g.width,height:g.height},c),f,d);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hoe(g,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Le(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),i4(r.getData(),function(p,g){var v=p.get("name");if(!this.newlineDisabled&&(v===""||v===` `)){var m=new IC;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(v)[0];if(!c.get(v)){if(y){var b=y.getData(),O=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),S=b.getVisual("style"),x=this._createItem(y,v,g,p,r,n,O,S,w,f,o);x.on("click",nv(oae,v,null,o,d)).on("mouseover",nv(o4,y.name,null,o,d)).on("mouseout",nv(a4,y.name,null,o,d)),i.ssr&&x.eachChild(function(T){var $=Ke(T);$.seriesIndex=y.seriesIndex,$.dataIndex=g,$.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(T){if(!c.get(v)&&T.legendVisualProvider){var $=T.legendVisualProvider;if(!$.containName(v))return;var A=$.indexOfName(v),P=$.getItemVisual(A,"style"),M=$.getItemVisual(A,"legendIcon"),I=Oi(P.fill);I&&I[3]===0&&(I[3]=.2,P=he(he({},P),{fill:es(I,"rgba")}));var R=this._createItem(T,v,g,p,r,n,{},P,M,f,o);R.on("click",nv(oae,null,v,o,d)).on("mouseover",nv(o4,null,v,o,d)).on("mouseout",nv(a4,null,v,o,d)),i.ssr&&R.eachChild(function(L){var D=Ke(L);D.seriesIndex=T.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(v,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(v)||console.warn(v+" series not exists. Legend data should be same with series name or data name."))}},this),a&&this._createSelector(a,r,o,s,l)},e.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();i4(n,function(u){var c=u.type,f=new $t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);Gr(f,{normal:d,emphasis:p},{defaultText:u.title}),ac(f)})},e.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var p=n.visualDrawType,g=a.get("itemWidth"),v=a.get("itemHeight"),m=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),O=o.get("icon");c=O||c||"roundRect";var w=nnt(c,o,l,u,p,m,d),S=new IC,x=o.getModel("textStyle");if(ze(n.getLegendIcon)&&(!O||O==="inherit"))S.add(n.getLegendIcon({itemWidth:g,itemHeight:v,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var T=O==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;S.add(rnt({itemWidth:g,itemHeight:v,icon:c,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var $=s==="left"?g+5:-5,A=s,P=a.get("formatter"),M=r;Ie(P)&&P?M=P.replace("{name}",r??""):ze(P)&&(M=P(r));var I=m?x.getTextColor():o.get("inactiveColor");S.add(new $t({style:un(x,{text:M,x:$,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var R=new Pt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=o.getModel("tooltip");return L.get("show")&&mg({el:R,componentModel:a,itemName:r,itemTooltipOption:L.option}),S.add(R),S.eachChild(function(D){D.silent=!0}),R.silent=!f,this.getContentGroup().add(S),ac(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Td(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Td("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],g=n.get("selectorButtonGap",!0),v=n.getOrient().index,m=v===0?"width":"height",y=v===0?"height":"width",b=v===0?"y":"x";s==="end"?p[v]+=c[m]+g:f[v]+=d[m]+g,p[1-v]+=c[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var O={x:0,y:0};return O[m]=c[m]+g+d[m],O[y]=Math.max(c[y],d[y]),O[b]=Math.min(0,d[b]+p[1-v]),O}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(dn);function nnt(t,e,n,r,i,o,a){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),i4(m,function(b,O){m[O]==="inherit"&&(m[O]=y[O])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Dg(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!o){var g=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function rnt(t){var e=t.icon||"roundRect",n=Xn(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function oae(t,e,n,r){a4(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),o4(t,e,n,r)}function aae(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,i=e.length;ri[a],m=[-p.x,-p.y];r||(m[o]=c[u]);var y=[0,0],b=[-g.x,-g.y],O=Je(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var w=n.get("pageButtonPosition",!0);w==="end"?b[o]+=i[a]-g[a]:y[o]+=g[a]+O}b[1-o]+=p[s]/2-g[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(b);var S={x:0,y:0};if(S[a]=v?i[a]:p[a],S[s]=Math.max(p[s],g[s]),S[l]=Math.min(0,g[l]+b[1-o]),f.__rectSize=i[a],v){var x={x:0,y:0};x[a]=Math.max(i[a]-g[a]-O,0),x[s]=S[s],f.setClipPath(new Pt({shape:x})),f.__rectSize=x[a]}else d.eachChild(function($){$.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(n);return T.pageIndex!=null&&Rt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},v?n:null),this._updatePageInfoView(n,T),S},e.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,p=i.childOfName(c);p&&(p.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Ie(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=s4[a],l=l4[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,p=d?1:0,g={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var v=w(f);g.contentPosition[a]=-v.s;for(var m=u+1,y=v,b=v,O=null;m<=d;++m)O=w(c[m]),(!O&&b.e>y.s+o||O&&!S(O,y.s))&&(b.i>y.i?y=b:y=O,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),b=O;for(var m=u-1,y=v,b=v,O=null;m>=-1;--m)O=w(c[m]),(!O||!S(b,O.s))&&y.i=T&&x.s<=T+o}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},e.type="legend.scroll",e}(iae);function lnt(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function unt(t){ht(sae),t.registerComponentModel(ant),t.registerComponentView(snt),lnt(t)}function cnt(t){ht(sae),ht(unt)}var fnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=fc(pb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(pb),u4=Tt();function dnt(t,e,n){u4(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function hnt(t,e){for(var n=u4(t).coordSysRecordMap,r=n.keys(),i=0;ir[n+e]&&(e=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function ynt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=u4(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Le());i.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=soe(o);V(a.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,pnt(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Le());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){cae(i,o);return}var c=mnt(l);a.enable(c.controlType,c.opt),a.setPointerChecker(o.containsPoint),Ag(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var bnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,i){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),dnt(i,n,{pan:Re(c4.pan,this),zoom:Re(c4.zoom,this),scrollMove:Re(c4.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hnt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(NL),c4={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=f4[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Jd(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:fae(function(t,e,n,r,i,o){var a=f4[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:fae(function(t,e,n,r,i,o){var a=f4[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta})};function fae(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);if(Jd(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var f4={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),n.mainType==="radiusAxis"?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],o.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function dae(t){LL(t),t.registerComponentModel(fnt),t.registerComponentView(bnt),ynt(t)}var _nt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fc(pb.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}(pb),_b=Pt,hae=7,Ont=1,d4=30,wnt=7,Ob="horizontal",pae="vertical",Snt=5,xnt=["line","bar","candlestick","scatter"],Cnt={easing:"cubicOut",duration:100,delay:0},Tnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Re(this._onBrush,this),this._onBrushEnd=Re(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,o){if(t.prototype.render.apply(this,arguments),Ag(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){xy(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),o=i?wnt:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Ob?{right:s.width-a.x-a.width,top:s.height-d4-hae-o,width:a.width,height:d4}:{right:hae,top:a.y,width:d4,height:a.height},u=Sg(n.option);V(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=er(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===pae&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ob&&!a?{scaleY:l?1:-1,scaleX:1}:i===Ob&&a?{scaleY:l?1:-1,scaleX:-1}:i===pae&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=n.get("brushSelect");i.add(new _b({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var a=new _b({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Re(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],o=n.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var f=a.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var p=[0,r[1]],g=[0,r[0]],v=[[r[0],0],[0,0]],m=[],y=g[1]/(a.count()-1),b=0,O=Math.round(a.count()/r[0]),w;a.each([l],function(A,P){if(O>0&&P%O){b+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:qt(A,f,p,!0);M&&!w&&P?(v.push([v[v.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&w&&(v.push([b,0]),m.push([b,0])),v.push([b,I]),m.push([b,I]),b+=y,w=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(A){var P=S.getModel(A?"selectedDataBackground":"dataBackground"),M=new qe,I=new Ti({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Pi({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(R),M}for(var T=0;T<3;T++){var $=x(T===1);this._displayables.sliderGroup.add($),this._displayables.dataShadowSegs.push($)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return n.eachTargetAxis(function(a,s){var l=n.getAxisProxy(a,s).getTargetSeriesModels();V(l,function(u){if(!i&&!(r!==!0&&st(xnt,u.get("type"))<0)){var c=o.getComponent(Tc(a),s).axis,f=Pnt(a),d,p=u.coordinateSystem;f!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:a,otherDim:f,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new _b({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new _b({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Ont,fill:"rgba(0,0,0,0)"}})),V([0,1],function(O){var w=l.get("handleIcon");!ix[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w,process.env.NODE_ENV!=="production"&&sa("handleIcon now needs 'path://' prefix when using a path string"));var S=Xn(w,-1,0,2,2,null,!0);S.attr({cursor:gae(this._orient),draggable:!0,drift:Re(this._onDragMove,this,O),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Ee(T,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ac(S);var $=l.get("handleColor");$!=null&&(S.style.fill=$),a.add(i[O]=S);var A=l.getModel("textStyle");n.add(o[O]=new $t({silent:!0,invisible:!0,style:un(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var p=d;if(f){var g=Ee(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new Pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),m=g*.8,y=r.moveHandleIcon=Xn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+g/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(g,10));p=r.moveZone=new Pt({invisible:!0,shape:{y:s[1]-b,height:g+b}}),p.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),a.add(v),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:gae(this._orient),drift:Re(this._onDragMove,this,"all"),ondragstart:Re(this._showDataInfo,this,!0),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[qt(n[0],[0,100],r,!0),qt(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Jd(r,o,a,i.get("zoomLock")?"all":n,s.minSpan!=null?qt(s.minSpan,l,a,!0):null,s.maxSpan!=null?qt(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=So([qt(o[0],a,l,!0),qt(o[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,o=So(i.slice()),a=this._size;V([0,1],function(p){var g=r.handles[p],v=this._handleHeight;g.attr({scaleX:v/2,scaleY:v/2,x:i[p]+(p?-1:1),y:a[1]/2-v/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,o[0],o[1],a[0]],c=0;cr[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new ot(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=So([qt(i.x,a,s,!0),qt(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(zl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new _b({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Cnt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=soe(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var o=this.api.getWidth(),a=this.api.getHeight();n={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return n},e.type="dataZoom.slider",e}(NL);function Pnt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function gae(t){return t==="vertical"?"ns-resize":"ew-resize"}function vae(t){t.registerComponentModel(_nt),t.registerComponentView(Tnt),LL(t)}function $nt(t){ht(dae),ht(vae)}var mae={get:function(t,e,n){var r=Ue((Ant[t]||{})[e]);return n&&ge(r)?r[r.length-1]:r}},Ant={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]}},yae=Sr.mapVisual,Ent=Sr.eachVisual,Mnt=ge,bae=V,Int=So,Dnt=qt,DC=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&Loe(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Re(n,this),this.controllerVisuals=jL(this.option.controller,r,n),this.targetVisuals=jL(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=nn(n),r},e.prototype.eachTargetSeries=function(n,r){V(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&n.call(r,o)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,u;i=i||["<",">"],ge(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ie(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ze(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?i[0]+" "+c[1]:n[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var n=this.option,r=Int([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=n.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});it(o,i),it(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),u.call(this,o,"inRange","outOfRange"),c.call(this,a);function l(f){Mnt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,p){var g=f[d],v=f[p];g&&!v&&(v=f[p]={},bae(g,function(m,y){if(Sr.isValidType(y)){var b=mae.get(y,"inactive",s);b!=null&&(v[y]=b,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,p=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";bae(this.stateList,function(y){var b=this.itemSize,O=f[y];O||(O=f[y]={color:s?g:[g]}),O.symbol==null&&(O.symbol=d&&Ue(d)||(s?m:[m])),O.symbolSize==null&&(O.symbolSize=p&&Ue(p)||(s?b[0]:[b[0],b[0]])),O.symbol=yae(O.symbol,function(x){return x==="none"?m:x});var w=O.symbolSize;if(w!=null){var S=-1/0;Ent(w,function(x){x>S&&(S=x)}),O.symbolSize=yae(w,function(x){return Dnt(x,[0,S],[0,b[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(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){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}(dt),_ae=[20,140],Rnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=_ae[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=_ae[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):ge(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=So((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=i[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getVisualMeta=function(n){var r=Oae(this,"outOfRange",this.getExtent()),i=Oae(this,"inRange",this.option.range.slice()),o=[];function a(p,g){o.push({value:p,color:n(p,g)})}for(var s=0,l=0,u=i.length,c=r.length;ln[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},e.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new qe(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,u=o.getExtent();knt([0,1],function(c){var f=a[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=el(n[c],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var g=as(i.handleLabelPoints[c],uc(f,this.group));s[c].setStyle({x:g[0],y:g[1],text:o.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(n,"color",d),g=this.getControllerVisual(n,"symbolSize"),v=el(n,s,u,!0),m=l[0]-g/2,y={x:f.x,y:f.y};f.y=v,f.x=m;var b=as(c.indicatorLabelPoint,uc(f,this.group)),O=c.indicatorLabel;O.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),S=this._orient,x=S==="horizontal";O.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var T={x:m,y:v,style:{fill:p}},$={style:{x:b[0],y:b[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(T,A),O.animateTo($,A)}else f.attr(T),O.attr($);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var M=0;Ma[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(r||Pae(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var g=OVe(d,p);this._dispatchHighDown("downplay",RC(g[0],i)),this._dispatchHighDown("highlight",RC(g[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Md(n.target,function(l){var u=Ke(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i=0&&(o.dimension=a,r.push(o))}}),t.getData().setVisual("visualMeta",r)}}];function Qnt(t,e,n,r){for(var i=e.targetVisuals[r],o=Sr.prepareVisualTypes(i),a={color:Py(t.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(znt,Fnt),V(Wnt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Hnt))}function Iae(t){t.registerComponentModel(Rnt),t.registerComponentView(Bnt),Mae(t)}var Gnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],jnt[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Ue(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=me(this._pieceList,function(l){return l=Ue(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},i=Sr.listVisualTypes(),o=this.isCategory();V(n.pieces,function(s){V(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),V(r,function(s,l){var u=!1;V(this.stateList,function(c){u=u||a(n,c,l)||a(n.target,c,l)},this),!u&&V(this.stateList,function(c){(n[c]||(n[c]={}))[l]=mae.get(l,c==="inRange"?"active":"inactive",o)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var i=this.option,o=this._pieceList,a=(r?i:n).selected||{};if(i.selected=a,V(o,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),i.selectedMode==="single"){var s=!1;V(o,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=Ue(n)},e.prototype.getValueState=function(n){var r=Sr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Sr.findPieceIndex(l,i);c===n&&a.push(u)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(c,f){var d=o.getRepresentValue({interval:c});f||(f=o.getValueState(d));var p=n(d,f);c[0]===-1/0?i[0]=p:c[1]===1/0?i[1]=p:r.push({value:c[0],color:p},{value:c[1],color:p})}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 V(s,function(c){var f=c.interval;f&&(f[0]>u&&a([u,f[0]],"outOfRange"),a(f.slice()),u=f[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=fc(DC.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}(DC),jnt={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];aa[1]&&console.warn("Piece "+r+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=Sr.retrieveVisuals(n),t.push(i)},this),Dae(e,t),XI(t),V(t,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function Dae(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}var Unt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Un(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),V(c.viewPieceList,function(p){var g=p.piece,v=new qe;v.onclick=Re(this._onItemClick,this,g),this._enableHoverLink(v,p.indexInModelPieceList);var m=r.getRepresentValue(g);if(this._createItemSymbol(v,m,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(m);v.add(new $t({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),Td(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:RC(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return xae(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(n,r,i,o,a){if(r){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new $t({style:un(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=me(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),o=n.get("orient"),a=n.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(n,r,i){n.add(Xn(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Ue(i.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(a[s]=!0,V(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(wae);function Rae(t){t.registerComponentModel(Gnt),t.registerComponentView(Unt),Mae(t)}function Znt(t){ht(Iae),ht(Rae)}var Xnt={label:{enabled:!0},decal:{show:!1}},kae=Tt(),Ynt={};function qnt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=Ue(Xnt);it(r.label,t.getLocaleModel().get("aria"),!1),it(n.option,r,!1),i(),o();function i(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Le();t.eachSeries(function(d){if(!d.isColorBySeries()){var p=f.get(d.type);p||(p={},f.set(d.type,p)),kae(d).scope=p}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(ze(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var b=lR(d.ecModel,d.name,Ynt,t.getSeriesCount()),O=p.getVisual("decal");p.setVisual("decal",w(O,b))}else{var g=d.getRawData(),v={},m=kae(d).scope;p.each(function(S){var x=p.getRawIndex(S);v[x]=S});var y=g.count();g.each(function(S){var x=v[S],T=g.getName(S)||S+"",$=lR(d.ecModel,T,m,y),A=p.getItemVisual(x,"decal");p.setItemVisual(x,"decal",w(A,$))})}function w(S,x){var T=S?he(he({},x),S):x;return T.dirty=!0,T}})}}function o(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Ge(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=t.getSeriesCount(),p=f.get(["data","maxCount"])||10,g=f.get(["series","maxCount"])||10,v=Math.min(d,g),m;if(!(d<1)){var y=s();if(y){var b=f.get(["general","withTitle"]);m=a(b,{title:y})}else m=f.get(["general","withoutTitle"]);var O=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=a(w,{seriesCount:d}),t.eachSeries(function($,A){if(A1?f.get(["series","multiple",I]):f.get(["series","single",I]),P=a(P,{seriesId:$.seriesIndex,seriesName:$.get("name"),seriesType:l($.subType)});var R=$.getData();if(R.count()>p){var L=f.get(["data","partialData"]);P+=a(L,{displayCnt:p})}else P+=f.get(["data","allData"]);for(var D=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),F=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ert=function(){function t(e){var n=this._condVal=Ie(e)?new RegExp(e):KM(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=wi("Illegal regexp",e,"in")),Ht(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return Ie(n)?this._condVal.test(e):Et(n)?this._condVal.test(e+""):!1},t}(),trt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),nrt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n2&&r.push(i),i=[R,L]}function c(R,L,D,B){iv(R,D)&&iv(L,B)||i.push(R,L,D,B,D,B)}function f(R,L,D,B,F,z){var W=Math.abs(L-R),j=Math.tan(W/4)*4/3,H=L$:M<$;M+=P){var I=A?Math.max(M+P,$):Math.min(M+P,$);f(M,I,O,w,S,x)}break;case tl.R:s=o=e[m++],l=a=e[m++],d=s+e[m++],p=l+e[m++],u(d,l),c(d,l,d,p),c(d,p,s,p),c(s,p,s,l),c(s,l,d,l);break;case tl.Z:i&&c(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function m4(t,e,n,r,i,o,a,s,l,u){if(iv(t,n)&&iv(e,r)&&iv(i,a)&&iv(o,s)){l.push(a,s);return}var c=2/u,f=c*c,d=a-t,p=s-e,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var v=n-t,m=r-e,y=i-a,b=o-s,O=v*v+m*m,w=y*y+b*b;if(O=0&&$=0){l.push(a,s);return}var A=[],P=[];Ju(t,n,i,a,.5,A),Ju(e,r,o,s,.5,P),m4(A[0],P[0],A[1],P[1],A[2],P[2],A[3],P[3],l,u),m4(A[4],P[4],A[5],P[5],A[6],P[6],A[7],P[7],l,u)}function vrt(t,e){var n=v4(t),r=[];e=e||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=Vae([l,u],c?0:1,e),d=(c?s:u)/f.length,p=0;pi,a=Vae([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",f=t[s]/a.length,d=0;d1?null:new ot(v*l+t,v*u+e)}function brt(t,e,n){var r=new ot;ot.sub(r,n,e),r.normalize();var i=new ot;ot.sub(i,t,e);var o=i.dot(r);return o}function ov(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function _rt(t,e,n){for(var r=t.length,i=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),_rt(e,u,c)}function kC(t,e,n,r){if(n===1)r.push(e);else{var i=Math.floor(n/2),o=t(e);kC(t,o[0],i,r),kC(t,o[1],n-i,r)}return r}function Ort(t,e){for(var n=[],r=0;r0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function BC(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=me(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),n=Math.min(f,n),r=Math.max(c,r),i=Math.max(f,i),[c,f]}),a=me(o,function(s,l){return{cp:s,z:Ert(s[0],s[1],e,n,r,i),path:t[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Zae(t){return xrt(t.path,t.count)}function b4(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mrt(t,e,n){var r=[];function i(S){for(var x=0;x=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Drt={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;Xae(t)&&(u=t,c=e),Xae(e)&&(u=e,c=t);function f(y,b,O,w,S){var x=y.many,T=y.one;if(x.length===1&&!S){var $=b?x[0]:T,A=b?T:x[0];if(NC($))f({many:[$],one:A},!0,O,w,!0);else{var P=s?Ge({delay:s(O,w)},l):l;y4($,A,P),o($,A,$,A,P)}}else for(var M=Ge({dividePath:Drt[n],individualDelay:s&&function(F,z,W,j){return s(F+O,w)}},l),I=b?Mrt(x,T,M):Irt(T,x,M),R=I.fromIndividuals,L=I.toIndividuals,D=R.length,B=0;Be.length,p=u?Yae(c,u):Yae(d?e:t,[d?t:e]),g=0,v=0;vqae){process.env.NODE_ENV!=="production"&&En("Universal transition is disabled on large data > 10k.");return}for(var o=r.getIndices(),a=0;a0&&x.group.traverse(function($){$ instanceof yt&&!$.animators.length&&$.animateFrom({style:{opacity:0}},T)})})}function rse(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function ise(t){return ge(t)?t.sort().join(","):t}function $c(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function zrt(t,e){var n=Le(),r=Le(),i=Le();V(t.oldSeries,function(a,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=rse(a),f=ise(c);r.set(f,{dataGroupId:l,data:u}),ge(c)&&V(c,function(d){i.set(d,{key:f,dataGroupId:l,data:u})})});function o(a){n.get(a)&&En("Duplicated seriesKey in universalTransition "+a)}return V(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=rse(a),c=ise(u),f=r.get(c);if(f)process.env.NODE_ENV!=="production"&&o(c),n.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:$c(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:$c(l),data:l}]});else if(ge(u)){process.env.NODE_ENV!=="production"&&o(c);var d=[];V(u,function(v){var m=r.get(v);m.data&&d.push({dataGroupId:m.dataGroupId,divide:$c(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:$c(l)}]})}else{var p=i.get(u);if(p){var g=n.get(p.key);g||(g={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:$c(p.data)}],newSeries:[]},n.set(p.key,g)),g.newSeries.push({dataGroupId:s,data:l,divide:$c(l)})}}}}),n}function ose(t,e){for(var n=0;n=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:$c(e.oldData[s]),groupIdDim:a.dimension})}),V(nn(t.to),function(a){var s=ose(n.updatedSeries,a);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:$c(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&nse(i,o,r)}function Wrt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){V(nn(r.seriesTransition),function(i){V(nn(i.to),function(o){for(var a=r.updatedSeries,s=0;sjrt.call(t)==="[object Object]",S4=()=>{};function Zrt(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}function Xrt(t,e={}){let n,r,i=S4;const o=s=>{clearTimeout(s),i(),i=S4};return s=>{const l=VC(t),u=VC(e.maxWait);return n&&o(n),l<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{i=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(s())},l)})}}function Yrt(t){return h.getCurrentInstance()}function qrt(t,e=200,n={}){return Zrt(Xrt(e,n),t)}function Krt(t,e){Yrt()&&h.onUnmounted(t,e)}function Jrt(t){var e;const n=VC(t);return(e=n==null?void 0:n.$el)!=null?e:n}const eit=Grt?window:void 0;function tit(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=eit):[e,n,r,i]=t,!e)return S4;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[Jrt(e),VC(i)],([c,f])=>{if(a(),!c)return;const d=Urt(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(g=>s(c,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Hrt(u),u}function nit(t,e="default"){let n=null,r=s;const i=h.ref({});let o;const a=h.computed(()=>i.value);r=qrt(s,200);function s(){n==null||n.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(f=e){const d=h.unref(t);if(!d||!h.unref(d))return;n=NK(d,f),o=tit(window,"resize",r)}function u(f,d=!1){return i.value=f,new Promise(p=>{var g;((g=h.unref(t))==null?void 0:g.offsetHeight)===0&&setTimeout(()=>{u(h.unref(a)),p(null)},30),h.nextTick(()=>{setTimeout(()=>{!n&&(l("default"),!n)||(d&&(n==null||n.clear()),n==null||n.setOption(h.unref(a)),p(null))},30)})})}h.watch(()=>e,f=>{n&&(n.dispose(),l(f),u(i.value))}),Krt(()=>{n&&(o(),n.dispose(),n=null)});function c(){return n||l("default"),n}return{setOptions:u,resize:s,echarts:Qrt,getInstance:c}}const x4=h.defineComponent({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(t){const e=t,n=h.ref(null),{setOptions:r,resize:i}=nit(n),o=h.h(Es,{style:{fontSize:"24px"}});return h.watch(()=>[e.width,e.height],j1e(async()=>{i()},200)),h.watch(()=>e,async()=>{await h.nextTick();const{echartsOptions:a}=e;r(a)},{immediate:!0,deep:!0}),(a,s)=>(h.openBlock(),h.createBlock(h.unref(u0),{spinning:a.loading,indicator:h.unref(o)},{default:h.withCtx(()=>[h.createElementVNode("div",{ref_key:"chartRef",ref:n,style:h.normalizeStyle({width:a.width+"px",height:a.height+"px"})},null,4)]),_:1},8,["spinning","indicator"]))}});function C4(t){return gV(t,q3e)}const T4={type:Object,default:()=>({sourceType:Kn.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},rit=(t,e)=>new Promise((n,r)=>{const i=new Blob([` self.onmessage = function(e) { self.postMessage((${t}).call(null, e.data)); } `],{type:"application/javascript"}),o=new Worker(URL.createObjectURL(i));o.postMessage(JSON.parse(e)),o.onmessage=a=>{o.terminate(),n(a.data)},o.onerror=a=>{o.terminate(),r(a)}}),zC={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},seriesExtend:{type:Object,default:()=>ase}},iit=[],ase={lineStyle:{type:"solid",width:1},symbol:"rect",symbolSize:4,symbolRotate:0,smooth:!1,step:!1},oit=C4({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:iit,seriesExtend:ase}),sse={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"line",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"line",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/line",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:` (res) => { // 取出列表 const data = res.data; // x轴数据 const xData = data.map((item) => item.name); // 系列数据 const series = [ { type: 'line', name: '苹果', data: data.map(item => item.apple) }, { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) }, { type: 'line', name: '小米', data: data.map(item => item.mi) }, ]; // 返回图表数据 return { xData, series }; } `},...oit}},lse=(t,{manual:e,ready:n=!0,refreshDeps:r=[],refreshDepsAction:i})=>{const o=h.ref(!1);return h.watchEffect(()=>{!e&&t.options.refreshDeps!==!0&&(o.value=h.unref(n))}),r instanceof Array?h.watch([o,...r],([a])=>{a&&!e&&a&&(i?i():t.refresh())},{deep:!0,immediate:!1}):h.watch(o,a=>{!e&&a&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h.unref(n))return{stopNow:!0}}}};lse.onInit=({ready:t=!0,manual:e})=>({loading:!e&&h.unref(t)});const FC=new Map,ait=(t,e,n)=>{const r=FC.get(t);r!=null&&r.timer&&clearTimeout(r.timer);let i;e>-1&&(i=setTimeout(()=>{FC.delete(t)},e)),FC.set(t,{...n,timer:i})},sit=t=>FC.get(t),WC=new Map,lit=t=>WC.get(t),uit=(t,e)=>{WC.set(t,e),e.then(n=>(WC.delete(t),n)).catch(n=>{throw WC.delete(t),n})},ah={},cit=[],fit=(t,e)=>{ah[t]&&(ah[t].forEach(n=>n(e)),cit.forEach(n=>n({type:t,data:e})))},P4=(t,e)=>(ah[t]||(ah[t]=[]),ah[t].push(e),function(){const r=ah[t].indexOf(e);ah[t].splice(r,1)}),dit=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:r=0,setCache:i,getCache:o})=>{const a=h.ref(),s=h.ref(),l=(c,f)=>{i?i(f):ait(c,n,f),fit(c,f.data)},u=(c,f=[])=>o?o(f):sit(c);return h.watchEffect(()=>{if(!e)return;const c=u(e);c&&Object.hasOwnProperty.call(c,"data")&&(t.state.data=c.data,t.state.params=c.params,(r===-1||new Date().getTime()-c.time<=r)&&(t.state.loading=!1)),a.value=P4(e,f=>{t.setState({data:f})})}),h.onScopeDispose(()=>{var c;(c=a.value)==null||c.call(a)}),e?{name:"cachePlugin",onBefore:c=>{const f=u(e,c);return!f||!Object.hasOwnProperty.call(f,"data")?{}:r===-1||new Date().getTime()-f.time<=r?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(c,f)=>{let d=lit(e);return d&&d!==s.value?{servicePromise:d}:(d=c(...f),s.value=d,uit(e,d),{servicePromise:d})},onSuccess:(c,f)=>{var d;e&&((d=a.value)==null||d.call(a),l(e,{data:c,params:f,time:new Date().getTime()}),a.value=P4(e,p=>{t.setState({data:p})}))},onMutate:c=>{var f;e&&((f=a.value)==null||f.call(a),l(e,{data:c,params:t.state.params,time:new Date().getTime()}),a.value=P4(e,d=>{t.setState({data:d})}))}}:{}};function hit(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ds=hit,pit=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,use=pit,git=use,vit=typeof self=="object"&&self&&self.Object===Object&&self,mit=git||vit||Function("return this")(),hs=mit,yit=hs,bit=function(){return yit.Date.now()},_it=bit,Oit=/\s/;function wit(t){for(var e=t.length;e--&&Oit.test(t.charAt(e)););return e}var Sit=wit,xit=Sit,Cit=/^\s+/;function Tit(t){return t&&t.slice(0,xit(t)+1).replace(Cit,"")}var Pit=Tit,$it=hs,Ait=$it.Symbol,QC=Ait,cse=QC,fse=Object.prototype,Eit=fse.hasOwnProperty,Mit=fse.toString,Sb=cse?cse.toStringTag:void 0;function Iit(t){var e=Eit.call(t,Sb),n=t[Sb];try{t[Sb]=void 0;var r=!0}catch{}var i=Mit.call(t);return r&&(e?t[Sb]=n:delete t[Sb]),i}var Dit=Iit,Rit=Object.prototype,kit=Rit.toString;function Nit(t){return kit.call(t)}var Lit=Nit,dse=QC,Bit=Dit,Vit=Lit,zit="[object Null]",Fit="[object Undefined]",hse=dse?dse.toStringTag:void 0;function Wit(t){return t==null?t===void 0?Fit:zit:hse&&hse in Object(t)?Bit(t):Vit(t)}var sv=Wit;function Qit(t){return t!=null&&typeof t=="object"}var Ac=Qit,Hit=sv,Git=Ac,jit="[object Symbol]";function Uit(t){return typeof t=="symbol"||Git(t)&&Hit(t)==jit}var Zit=Uit,Xit=Pit,pse=ds,Yit=Zit,gse=NaN,qit=/^[-+]0x[0-9a-f]+$/i,Kit=/^0b[01]+$/i,Jit=/^0o[0-7]+$/i,eot=parseInt;function tot(t){if(typeof t=="number")return t;if(Yit(t))return gse;if(pse(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=pse(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xit(t);var n=Kit.test(t);return n||Jit.test(t)?eot(t.slice(2),n?2:8):qit.test(t)?gse:+t}var not=tot,rot=ds,$4=_it,vse=not,iot="Expected a function",oot=Math.max,aot=Math.min;function sot(t,e,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(iot);e=vse(e)||0,rot(n)&&(c=!!n.leading,f="maxWait"in n,o=f?oot(vse(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function p(x){var T=r,$=i;return r=i=void 0,u=x,a=t.apply($,T),a}function g(x){return u=x,s=setTimeout(y,e),c?p(x):a}function v(x){var T=x-l,$=x-u,A=e-T;return f?aot(A,o-$):A}function m(x){var T=x-l,$=x-u;return l===void 0||T>=e||T<0||f&&$>=o}function y(){var x=$4();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?p(x):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b($4())}function S(){var x=$4(),T=m(x);if(r=arguments,i=this,l=x,T){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return S.cancel=O,S.flush=w,S}var mse=sot;const lot=$1(mse),uot=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{const o=h.ref(),a=h.computed(()=>{const s={},l=h.unref(n),u=h.unref(r),c=h.unref(i);return l!==void 0&&(s.leading=l),u!==void 0&&(s.trailing=u),c!==void 0&&(s.maxWait=c),s});return h.watchEffect(s=>{if(h.unref(e)){const l=t.runAsync.bind(t);o.value=lot(u=>{u()},h.unref(e),a.value),t.runAsync=(...u)=>new Promise((c,f)=>{var d;(d=o.value)==null||d.call(o,()=>{l(...u).then(c).catch(f)})}),s(()=>{var u;(u=o.value)==null||u.cancel(),t.runAsync=l})}}),h.unref(e)?{name:"debouncePlugin",onCancel:()=>{var s;(s=o.value)==null||s.cancel()}}:{}};var cot=Object.defineProperty,fot=(t,e,n)=>e in t?cot(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yse=(t,e,n)=>(fot(t,typeof e!="symbol"?e+"":e,n),n);class dot{constructor(){yse(this,"table",{}),yse(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new dot;function hot(t){const n=t.toString().match(/^function\s+([^\s(]+)/);return n?n[1]:""}function pot(t){const e=t.toString(),n=/([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/,r=e.match(n);return r?r[1].trim():""}var got=Object.defineProperty,vot=(t,e,n)=>e in t?got(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bse=(t,e,n)=>(vot(t,typeof e!="symbol"?e+"":e,n),n);class mot{constructor(){bse(this,"requestInstances",new Map),bse(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}const Ji=new mot,yot=(t,{ready:e=!0,debugKey:n,...r})=>{const i=()=>{if(n&&!Ji.has(n)){const a=t.serviceRef.value.toString().includes("function")?hot(t.serviceRef.value.toString()):pot(t.serviceRef.value.toString());Ji.insert(n,{instance:t,requestName:a,time:Date.now()})}},o=h.computed(()=>Object.fromEntries(Object.entries({ready:e,...r}).map(([a,s])=>[a,h.unref(s)])));return h.watchEffect(()=>{n&&Ji.has(n)&&Ji.emit({...t,options:{...t.options,...o.value}})}),{name:"devtoolsPlugin",onBefore:a=>{i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,params:a,loading:!0,time:Date.now(),type:"pending"})},onSuccess(a,s){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,data:a,params:s,loading:!1,time:Date.now(),type:"done"})},onCancel(){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,loading:!1,time:Date.now(),type:"cancel"})},onError(a,s){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,params:s,loading:!1,error:a,time:Date.now(),type:"error"})},onMutate(a){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,data:a,loading:!1,time:Date.now(),type:"mutate"})}}},bot=(t,{loadingDelay:e})=>{const n=h.ref(),r=()=>{n.value&&(clearTimeout(h.unref(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{r();const i=h.unref(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{r()}}};function A4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const _ot=!!(typeof window<"u"&&window.document&&window.document.createElement);function E4(){return A4()?document.visibilityState!=="hidden":!0}const xb=[];function Oot(t){return xb.push(t),function(){const n=xb.indexOf(t);xb.splice(n,1)}}if(A4()){const t=()=>{if(E4())for(let e=0;e{let i;const o=h.ref(),a=h.ref(0),s=()=>{var l;i&&clearTimeout(i),(l=o.value)==null||l.call(o)};return h.watchEffect(()=>{h.unref(e)||s()}),h.unref(e)?{name:"pollingPlugin",onBefore:()=>{s()},onError:()=>{a.value+=1},onSuccess:()=>{a.value=0},onFinally:()=>{r===-1||r!==-1&&a.value<=r?i=setTimeout(()=>{!n&&!E4()?o.value=Oot(()=>{t.refresh()}):t.refresh()},h.unref(e)):a.value=0},onCancel:()=>{s()}}:{}};function Sot(t,e){let n=!1;return(...r)=>{n||(n=!0,t(...r),setTimeout(()=>{n=!1},e))}}function xot(){return A4()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const Cb=[];function Cot(t){return Cb.push(t),function(){const n=Cb.indexOf(t);n>-1&&Cb.splice(n,1)}}if(_ot){const t=()=>{if(!(!E4()||!xot()))for(let e=0;e{const r=h.ref(),i=()=>{var o;(o=r.value)==null||o.call(r)};return h.watchEffect(o=>{if(h.unref(e)){const a=Sot(t.refresh.bind(t),h.unref(n));r.value=Cot(()=>{a()})}o(()=>{i()})}),h.onScopeDispose(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Pot=(t,{retryInterval:e,retryCount:n})=>{const r=h.ref(),i=h.ref(0),o=h.ref(!1);return n?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,r.value&&clearTimeout(r.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const a=e??Math.min(1e3*2**i.value,3e4);r.value=setTimeout(()=>{o.value=!0,t.refresh()},a)}else i.value=0},onCancel:()=>{i.value=0,r.value&&clearTimeout(r.value)}}:{}};var $ot=mse,Aot=ds,Eot="Expected a function";function Mot(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Eot);return Aot(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ot(t,e,{leading:r,maxWait:e,trailing:i})}var Iot=Mot;const Dot=$1(Iot),Rot=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:r})=>{const i=h.computed(()=>{const a={};return h.unref(n)!==void 0&&(a.leading=h.unref(n)),h.unref(r)!==void 0&&(a.trailing=h.unref(r)),a}),o=h.computed(()=>Dot(a=>{a()},h.unref(e),i.value));return h.watchEffect(a=>{if(h.unref(e)){const s=t.runAsync.bind(t);t.runAsync=(...l)=>new Promise((u,c)=>{var f;(f=o.value)==null||f.call(o,()=>{s(...l).then(u).catch(c)})}),a(()=>{var l;t.runAsync=s,(l=o.value)==null||l.cancel()})}}),h.unref(e)?{name:"throttlePlugin",onCancel:()=>{var a;(a=o.value)==null||a.cancel()}}:{}},_se=t=>typeof t=="function",kot=t=>typeof t=="boolean";var Not=Object.defineProperty,Lot=(t,e,n)=>e in t?Not(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HC=(t,e,n)=>(Lot(t,typeof e!="symbol"?e+"":e,n),n);class Bot{constructor(e,n,r,i={}){HC(this,"pluginImpls"),HC(this,"count",0),HC(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),HC(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=r,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var r,i,o;const a=(o=(i=(r=this.pluginImpls)==null?void 0:r.map(s=>{var l;return(l=s[e])==null?void 0:l.call(s,...n)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...a)}async runAsync(...e){var n,r,i,o,a,s,l,u,c,f,d;this.count+=1;const p=this.count,{stopNow:g=!1,returnNow:v=!1,...m}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...m}),v)return Promise.resolve(m.data);try{(r=(n=this.options).onBefore)==null||r.call(n,e)}catch(y){return this.setState({error:y,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,y,e),this.runPluginHandler("onError",y,e),new Promise(()=>{})}try{let{servicePromise:y}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const b=w=>{var S,x,T,$;if(p!==this.count)return new Promise(()=>{});const A=this.options.formatResult?this.options.formatResult(w):w;return this.setState({data:A,error:void 0,loading:!1}),(x=(S=this.options).onSuccess)==null||x.call(S,A,e),this.runPluginHandler("onSuccess",A,e),this.previousValidData=A,($=(T=this.options).onFinally)==null||$.call(T,e,A,void 0),p===this.count&&this.runPluginHandler("onFinally",e,A,void 0),A};y||(y=this.serviceRef.value(...e));const O=await y;return b(O)}catch(y){if(p!==this.count)return new Promise(()=>{});throw this.setState({error:y,loading:!1}),(s=(a=this.options).onError)==null||s.call(a,y,e),this.runPluginHandler("onError",y,e),(_se((l=this.options)==null?void 0:l.rollbackOnError)&&((u=this.options)!=null&&u.rollbackOnError(e))||kot((c=this.options)==null?void 0:c.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(d=(f=this.options).onFinally)==null||d.call(f,e,void 0,y),p===this.count&&this.runPluginHandler("onFinally",e,void 0,y),y}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=_se(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const Vot=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function zot(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function Fot(t,e={},n=[]){const r=h.inject(Vot,{}),{initialData:i=void 0,manual:o=!1,ready:a=!0,...s}={...r??{},...e??{}},l={manual:o,ready:a,initialData:i,...s},u=h.ref(t),c=h.reactive({data:i,loading:!1,params:void 0,error:void 0}),f=(v,m)=>{m?c[m]=v:zot(v)&&(c.data=v.data,c.loading=v.loading,c.error=v.error,c.params=v.params)},d=n.map(v=>{var m;return(m=v==null?void 0:v.onInit)==null?void 0:m.call(v,l)}).filter(Boolean),p=new Bot(u,l,f,Object.assign({},...d,c));p.options=l,p.pluginImpls=n.map(v=>v(p,l));const g=h.computed(()=>h.isRef(a)?a.value:a);if(h.watchEffect(()=>{if(!o){const v=p.state.params||e.defaultParams||[];g.value&&p.options.refreshDeps===!0&&u.value&&p.run(...v)}}),!o&&p.options.refreshDeps!==!0){const v=p.state.params||e.defaultParams||[];h.unref(a)&&p.run(...v)}return h.onScopeDispose(()=>{p.cancel()}),{...h.toRefs(c),cancel:p.cancel.bind(p),refresh:p.refresh.bind(p),refreshAsync:p.refreshAsync.bind(p),run:p.run.bind(p),runAsync:p.runAsync.bind(p),mutate:p.mutate.bind(p)}}const Wot=(t,e)=>function(r,i={},o=[]){let a=t;const s=e||[];for(let l=s.length;l--;)a=s[l](a);return a(r,i,o)};function Qot(t,e,n){var r;const i=(r=[process.env.NODE_ENV==="development"?yot:null,uot,bot,wot,Tot,Rot,lse,dit,Pot])==null?void 0:r.filter(Boolean);return Wot(Fot,e==null?void 0:e.use)(t,e,[...i])}/*! js-cookie v3.0.5 | MIT */function GC(t){for(var e=1;e"u")){a=GC({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s-1}var aat=oat,sat=UC;function lat(t,e){var n=this.__data__,r=sat(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var uat=lat,cat=jot,fat=eat,dat=rat,hat=aat,pat=uat;function lv(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=jlt}var Rse=Ult,Zlt=sv,Xlt=Rse,Ylt=Ac,qlt="[object Arguments]",Klt="[object Array]",Jlt="[object Boolean]",eut="[object Date]",tut="[object Error]",nut="[object Function]",rut="[object Map]",iut="[object Number]",out="[object Object]",aut="[object RegExp]",sut="[object Set]",lut="[object String]",uut="[object WeakMap]",cut="[object ArrayBuffer]",fut="[object DataView]",dut="[object Float32Array]",hut="[object Float64Array]",put="[object Int8Array]",gut="[object Int16Array]",vut="[object Int32Array]",mut="[object Uint8Array]",yut="[object Uint8ClampedArray]",but="[object Uint16Array]",_ut="[object Uint32Array]",Mn={};Mn[dut]=Mn[hut]=Mn[put]=Mn[gut]=Mn[vut]=Mn[mut]=Mn[yut]=Mn[but]=Mn[_ut]=!0,Mn[qlt]=Mn[Klt]=Mn[cut]=Mn[Jlt]=Mn[fut]=Mn[eut]=Mn[tut]=Mn[nut]=Mn[rut]=Mn[iut]=Mn[out]=Mn[aut]=Mn[sut]=Mn[lut]=Mn[uut]=!1;function Out(t){return Ylt(t)&&Xlt(t.length)&&!!Mn[Zlt(t)]}var wut=Out;function Sut(t){return function(e){return t(e)}}var L4=Sut,JC={exports:{}};JC.exports,function(t,e){var n=use,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s}(JC,JC.exports);var B4=JC.exports,xut=wut,Cut=L4,kse=B4,Nse=kse&&kse.isTypedArray,Tut=Nse?Cut(Nse):xut,Lse=Tut,Put=Elt,$ut=Ise,Aut=qC,Eut=N4,Mut=Dse,Iut=Lse,Dut=Object.prototype,Rut=Dut.hasOwnProperty;function kut(t,e){var n=Aut(t),r=!n&&$ut(t),i=!n&&!r&&Eut(t),o=!n&&!r&&!i&&Iut(t),a=n||r||i||o,s=a?Put(t.length,String):[],l=s.length;for(var u in t)(e||Rut.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Mut(u,l)))&&s.push(u);return s}var Bse=kut,Nut=Object.prototype;function Lut(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Nut;return t===n}var V4=Lut;function But(t,e){return function(n){return t(e(n))}}var Vse=But,Vut=Vse,zut=Vut(Object.keys,Object),Fut=zut,Wut=V4,Qut=Fut,Hut=Object.prototype,Gut=Hut.hasOwnProperty;function jut(t){if(!Wut(t))return Qut(t);var e=[];for(var n in Object(t))Gut.call(t,n)&&n!="constructor"&&e.push(n);return e}var Uut=jut,Zut=I4,Xut=Rse;function Yut(t){return t!=null&&Xut(t.length)&&!Zut(t)}var eT=Yut,qut=Bse,Kut=Uut,Jut=eT;function ect(t){return Jut(t)?qut(t):Kut(t)}var z4=ect,tct=Tb,nct=z4;function rct(t,e){return t&&tct(e,nct(e),t)}var ict=rct;function oct(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var act=oct,sct=ds,lct=V4,uct=act,cct=Object.prototype,fct=cct.hasOwnProperty;function dct(t){if(!sct(t))return uct(t);var e=lct(t),n=[];for(var r in t)r=="constructor"&&(e||!fct.call(t,r))||n.push(r);return n}var hct=dct,pct=Bse,gct=hct,vct=eT;function mct(t){return vct(t)?pct(t,!0):gct(t)}var Pb=mct,yct=Tb,bct=Pb;function _ct(t,e){return t&&yct(e,bct(e),t)}var Oct=_ct,tT={exports:{}};tT.exports,function(t,e){var n=hs,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}t.exports=l}(tT,tT.exports);var zse=tT.exports;function wct(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++ne in t?Hht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uh=(t,e,n)=>(Ght(t,typeof e!="symbol"?e+"":e,n),n);class jht{constructor(){uh(this,"subscriptions",new Map),uh(this,"emitEffectCache",new Map),uh(this,"useSubscription",(e,n)=>{const r=h.ref();h.watchEffect(i=>{var o,a;r.value=n;function s(u){r.value&&r.value(u)}const l=(a=(o=this.subscriptions)==null?void 0:o.get(e))!=null?a:[];l.push(s),this.subscriptions.set(e,l),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),uh(this,"emit",(e,...n)=>{if(typeof e=="string"||typeof e=="number"){const r=this.subscriptions.get(e);r==null||r.forEach(i=>{i==null||i({params:hle(n),event:e})}),this.emitEffectCache.set(e,{params:hle(n),event:e})}else throw new TypeError("event must be string or number !")}),uh(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),r=this.subscriptions.get(e);n&&(r==null||r.forEach(i=>{i==null||i({...n})}))}),uh(this,"removeListener",e=>{this.subscriptions.delete(e)}),uh(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new jht;var Uht={exports:{}};/*! * screenfull * v5.2.0 - 2021-11-03 * (c) Sindre Sorhus; MIT License */(function(t){(function(){var e=typeof window<"u"&&typeof window.document<"u"?window.document:{},n=t.exports,r=function(){for(var a,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,u=s.length,c={};l0){if(++e>=lgt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var dgt=fgt,hgt=sgt,pgt=dgt,ggt=pgt(hgt),vgt=ggt,mgt=xle,ygt=tgt,bgt=vgt;function _gt(t,e){return bgt(ygt(t,e,mgt),t+"")}var Ogt=_gt,wgt=jC,Sgt=eT,xgt=Dse,Cgt=ds;function Tgt(t,e,n){if(!Cgt(n))return!1;var r=typeof e;return(r=="number"?Sgt(n)&&xgt(e,n.length):r=="string"&&e in n)?wgt(n[e],t):!1}var Pgt=Tgt,$gt=Ogt,Agt=Pgt;function Egt(t){return $gt(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&Agt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r{var p,g,v;const e=t.dataSource||{},n=h.ref(),r=h.ref(),i=h.ref((p=e==null?void 0:e.data)==null?void 0:p.series),o=h.computed(()=>async()=>await fetch(t.dataSource.url,{method:t.dataSource.method}).then(m=>m.json())),{run:a,refresh:s,cancel:l,data:u,loading:c}=Qot(o.value,{defaultParams:t.dataSource.params,manual:!0,cacheKey:t.dataSource.url,cacheTime:(((g=t.dataSource)==null?void 0:g.refreshTime)||0)*1e3,pollingInterval:(((v=t.dataSource)==null?void 0:v.refreshTime)||0)*1e3,onError:m=>{console.error(m),Nf.error(t.dataSource.url+"请求失败")}});t.dataSource.sourceType===Kn.API&&a(),h.watch(()=>u.value,async m=>{if(m&&t.dataSource.sourceType===Kn.API){let y=m;t.dataSource.dataProcess&&(y=await rit(t.dataSource.dataProcess,JSON.stringify(m))),n.value=y.xAxis||y.xData?{data:y.xData}:n.value,r.value=y.yAxis||y.yData?{data:y.yData}:r.value,i.value=y.series}},{deep:!0}),h.watch(()=>[t.dataSource.sourceType,t.dataSource.method,t.dataSource.data],()=>{if(t.dataSource.sourceType===Kn.API&&s(),t.dataSource.sourceType===Kn.STATIC){l();const m=t.dataSource||{},{xData:y,yData:b,series:O}=(m==null?void 0:m.data)||{};y&&(n.value={data:y}),b&&(r.value={data:b}),i.value=O}if([Kn.BASIC_PATH,Kn.VIEW_CODE].includes(t.dataSource.sourceType)){const m=t.dataSource||{},y={viewCode:m.viewCode,basicPath:m.basicPath,items:"",filter:"",key:"",isOne:""};window.mabp.$doLoadComponentData(y).then(function(b){i.value=b.data})}},{deep:!0});const f=m=>{var S,x,T,$;let y=34,b=20,O=30,w=20;return!Array.isArray(m.title)&&((S=m.title)!=null&&S.show)&&(w+=20),!Array.isArray(m.legend)&&((x=m.legend)!=null&&x.show)&&(m.legend.left==="center"&&m.legend.top!=="auto"&&(w+=20),m.legend.left==="center"&&m.legend.bottom!=="auto"&&(y+=20),m.legend.top==="center"&&m.legend.left!=="auto"&&(O+=70),m.legend.top==="center"&&m.legend.right!=="auto"&&(b+=50)),!Array.isArray(m.xAxis)&&((T=m.xAxis)!=null&&T.name)&&(y+=20),!Array.isArray(m.yAxis)&&(($=m.yAxis)!=null&&$.name)&&(O+=20),{bottom:y,left:O,right:b,top:w}};return{options:h.computed(()=>{var O,w;const m=yV(t,["width","height","dataSource"]);!Array.isArray(m.title)&&!((O=m.title)!=null&&O.show)&&!Array.isArray(m.legend)&&m.legend&&(m.legend.top=12);const y=(m==null?void 0:m.label)||{},b=gV({xAxis:n.value,yAxis:r.value,series:(w=i.value)==null?void 0:w.map(S=>{const x=m.seriesExtend||{};return{...y,...S,...x}}),grid:f(m)},m);return console.log("option result:",b),b}),loading:c}},Rgt=h.defineComponent({name:"DBasicLine",components:{Charts:x4},props:zC,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function kgt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const ch=Mr(Rgt,[["render",kgt]]);class en{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=hv(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),nl.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=hv(this,e,n);let r=[];return this.decompose(e,n,r,0),nl.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new $b(this),o=new $b(e);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(e=1){return new $b(this,e)}iterRange(e,n=this.length){return new $le(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Ale(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?en.empty:e.length<=32?new nr(e):nl.from(nr.split(e,[]))}}class nr extends en{constructor(e,n=Ngt(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=e)return new Lgt(i,s,r,a);i=s+1,r++}}decompose(e,n,r,i){let o=e<=0&&n>=this.length?this:new nr(Ple(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let a=r.pop(),s=rT(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new nr(s,a.length+o.length));else{let l=s.length>>1;r.push(new nr(s.slice(0,l)),new nr(s.slice(l)))}}else r.push(o)}replace(e,n,r){if(!(r instanceof nr))return super.replace(e,n,r);[e,n]=hv(this,e,n);let i=rT(this.text,rT(r.text,Ple(this.text,0,e)),n),o=this.length+r.length-(n-e);return i.length<=32?new nr(i,o):nl.from(nr.split(i,[]),o)}sliceString(e,n=this.length,r=` `){[e,n]=hv(this,e,n);let i="";for(let o=0,a=0;o<=n&&ae&&a&&(i+=r),eo&&(i+=s.slice(Math.max(0,e-o),n-o)),o=l+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let o of e)r.push(o),i+=o.length+1,r.length==32&&(n.push(new nr(r,i)),r=[],i=-1);return i>-1&&n.push(new nr(r,i)),n}}class nl extends en{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=e)return a.lineInner(e,n,r,i);i=s+1,r=l+1}}decompose(e,n,r,i){for(let o=0,a=0;a<=n&&o=a){let u=i&((a<=e?1:0)|(l>=n?2:0));a>=e&&l<=n&&!u?r.push(s):s.decompose(e-a,n-a,r,u)}a=l+1}}replace(e,n,r){if([e,n]=hv(this,e,n),r.lines=o&&n<=s){let l=a.replace(e-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new nl(c,this.length-(n-e)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=` `){[e,n]=hv(this,e,n);let i="";for(let o=0,a=0;oe&&o&&(i+=r),ea&&(i+=s.sliceString(e-a,n-a,r)),a=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof nl))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=e.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let p of e)r+=p.lines;if(r<32){let p=[];for(let g of e)g.flatten(p);return new nr(p,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function f(p){let g;if(p.lines>o&&p instanceof nl)for(let v of p.children)f(v);else p.lines>a&&(l>a||!l)?(d(),s.push(p)):p instanceof nr&&l&&(g=c[c.length-1])instanceof nr&&p.lines+g.lines<=32?(l+=p.lines,u+=p.length+1,c[c.length-1]=new nr(g.text.concat(p.text),g.length+1+p.length)):(l+p.lines>i&&d(),l+=p.lines,u+=p.length+1,c.push(p))}function d(){l!=0&&(s.push(c.length==1?c[0]:nl.from(c,u)),u=-1,l=c.length=0)}for(let p of e)f(p);return d(),s.length==1?s[0]:new nl(s,n)}}en.empty=new nr([""],0);function Ngt(t){let e=-1;for(let n of t)e+=n.length+1;return e}function rT(t,e,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof nr?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof nr?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(i instanceof nr){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[a+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof nr?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class $le{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new $b(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ale{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(en.prototype[Symbol.iterator]=function(){return this.iter()},$b.prototype[Symbol.iterator]=$le.prototype[Symbol.iterator]=Ale.prototype[Symbol.iterator]=function(){return this});class Lgt{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function hv(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let pv="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return pv[e-1]<=t;return!1}function Ele(t){return t>=127462&&t<=127487}const Mle=8205;function Ur(t,e,n=!0,r=!0){return(n?Ile:Vgt)(t,e,r)}function Ile(t,e,n){if(e==t.length)return e;e&&Dle(t.charCodeAt(e))&&Rle(t.charCodeAt(e-1))&&e--;let r=Zr(t,e);for(e+=xa(r);e=0&&Ele(Zr(t,a));)o++,a-=2;if(o%2==0)break;e+=2}else break}return e}function Vgt(t,e,n){for(;e>0;){let r=Ile(t,e-2,n);if(r=56320&&t<57344}function Rle(t){return t>=55296&&t<56320}function Zr(t,e){let n=t.charCodeAt(e);if(!Rle(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return Dle(r)?(n-55296<<10)+(r-56320)+65536:n}function K4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function xa(t){return t<65536?1:2}const J4=/\r\n?|\n/;var Xr=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Xr||(Xr={}));class rl{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;ne)return o+(e-i);o+=s}else{if(r!=Xr.Simple&&u>=e&&(r==Xr.TrackDel&&ie||r==Xr.TrackBefore&&ie))return null;if(u>e||u==e&&n<0&&!s)return e==i||n<0?o:o+l;o+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return o}touchesRange(e,n=e){for(let r=0,i=0;r=0&&i<=n&&s>=e)return in?"cover":!0;i=s}return!1}toString(){let e="";for(let n=0;n=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new rl(e)}static create(e){return new rl(e)}}class xr extends rl{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return e8(this,(n,r,i,o,a)=>e=e.replace(i,i+(r-n),a),!1),e}mapDesc(e,n=!1){return t8(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length0&&Ec(r,n,o.text),o.forward(c),s+=c}let u=e[a++];for(;s>1].toJSON()))}return e}static of(e,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;ad||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let g=p?typeof p=="string"?en.of(p.split(r||J4)):p:en.empty,v=g.length;if(f==d&&v==0)return;fa&&fi(i,f-a,-1),fi(i,d-f,v),Ec(o,i,g),a=d}}return u(e),l(!s),s}static empty(e){return new xr(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;is&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length=0&&n<=0&&n==t[i+1]?t[i]+=e:e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function Ec(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)s=t.sections[a++],l=t.sections[a++];e(i,u,o,c,f),i=u,o=c}}}function t8(t,e,n,r=!1){let i=[],o=r?[]:null,a=new Ab(t),s=new Ab(e);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);fi(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len=0&&l=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);u+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.lenl||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Ab{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return n>=e.length?en.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?en.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class fh{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new fh(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Ce.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Ce.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ce.range(e.anchor,e.head)}static create(e,n,r){return new fh(e,n,r)}}class Ce{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Ce.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;re.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ce(e.ranges.map(n=>fh.fromJSON(n)),e.main)}static single(e,n=e){return new Ce([Ce.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;ie?8:0)|o)}static normalized(e,n=0){let r=e[n];e.sort((i,o)=>i.from-o.from),n=e.indexOf(r);for(let i=1;io.head?Ce.range(l,s):Ce.range(s,l))}}return new Ce(e,n)}}function Nle(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let n8=0;class Ye{constructor(e,n,r,i,o){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=n8++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new Ye(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:r8),!!e.static,e.enables)}of(e){return new iT([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iT(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iT(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function r8(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class iT{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=n8++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=e[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=e[f.id])!==null&&n!==void 0?n:1)&1||c.push(e[f.id]);return{create(f){return f.values[a]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||i8(f,c)){let p=r(f);if(s?!Lle(p,f.values[a],i):!i(p,f.values[a]))return f.values[a]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let v=aT(d,g);if(this.dependencies.every(m=>m instanceof Ye?d.facet(m)===f.facet(m):m instanceof kr?d.field(m,!1)==f.field(m,!1):!0)||(s?Lle(p=r(f),v,i):i(p=r(f),v)))return f.values[a]=v,0}else p=r(f);return f.values[a]=p,1}}}}function Lle(t,e,n){if(t.length!=e.length)return!1;for(let r=0;rt[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=t[e.id]>>1;function s(l){let u=[];for(let c=0;cr===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(Ble).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(e){return[this,Ble.of({field:this,create:e})]}get extension(){return this}}const dh={lowest:4,low:3,default:2,high:1,highest:0};function Eb(t){return e=>new Vle(e,t)}const Mc={highest:Eb(dh.highest),high:Eb(dh.high),default:Eb(dh.default),low:Eb(dh.low),lowest:Eb(dh.lowest)};class Vle{constructor(e,n){this.inner=e,this.prec=n}}class Mb{of(e){return new o8(this,e)}reconfigure(e){return Mb.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class o8{constructor(e,n){this.compartment=e,this.inner=n}}class oT{constructor(e,n,r,i,o,a){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,n,r){let i=[],o=Object.create(null),a=new Map;for(let d of Fgt(e,n,a))d instanceof kr?i.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of i)s[d.id]=u.length<<1,u.push(p=>d.slot(p));let c=r==null?void 0:r.config.facets;for(let d in o){let p=o[d],g=p[0].facet,v=c&&c[d]||[];if(p.every(m=>m.type==0))if(s[g.id]=l.length<<1|1,r8(v,p))l.push(r.facet(g));else{let m=g.combine(p.map(y=>y.value));l.push(r&&g.compare(m,r.facet(g))?r.facet(g):m)}else{for(let m of p)m.type==0?(s[m.id]=l.length<<1|1,l.push(m.value)):(s[m.id]=u.length<<1,u.push(y=>m.dynamicSlot(y)));s[g.id]=u.length<<1,u.push(m=>zgt(m,g,p))}}let f=u.map(d=>d(s));return new oT(e,a,f,s,l,o)}}function Fgt(t,e,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof o8&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof o8){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Vle)o(a.inner,a.prec);else if(a instanceof kr)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof iT)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,dh.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(t,dh.default),r.reduce((a,s)=>a.concat(s))}function Ib(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function aT(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const zle=Ye.define(),a8=Ye.define({combine:t=>t.some(e=>e),static:!0}),Fle=Ye.define({combine:t=>t.length?t[0]:void 0,static:!0}),Wle=Ye.define(),Qle=Ye.define(),Hle=Ye.define(),Gle=Ye.define({combine:t=>t.length?t[0]:!1});class au{constructor(e,n){this.type=e,this.value=n}static define(){return new Wgt}}class Wgt{of(e){return new au(this,e)}}class Qgt{constructor(e){this.map=e}of(e){return new Ot(this,e)}}class Ot{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Ot(this.type,n)}is(e){return this.type==e}static define(e={}){return new Qgt(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let o=i.map(n);o&&r.push(o)}return r}}Ot.reconfigure=Ot.define(),Ot.appendConfig=Ot.define();class fr{constructor(e,n,r,i,o,a){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&Nle(r,n.newLength),o.some(s=>s.type==fr.time)||(this.annotations=o.concat(fr.time.of(Date.now())))}static create(e,n,r,i,o,a){return new fr(e,n,r,i,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(fr.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}fr.time=au.define(),fr.userEvent=au.define(),fr.addToHistory=au.define(),fr.remote=au.define();function Hgt(t,e){let n=[];for(let r=0,i=0;;){let o,a;if(r=t[r]))o=t[r++],a=t[r++];else if(i=0;i--){let o=r[i](t);o instanceof fr?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof fr?t=o[0]:t=Ule(e,gv(o),!1)}return t}function jgt(t){let e=t.startState,n=e.facet(Hle),r=t;for(let i=n.length-1;i>=0;i--){let o=n[i](t);o&&Object.keys(o).length&&(r=jle(r,s8(e,o,t.changes.newLength),!0))}return r==t?t:fr.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const Ugt=[];function gv(t){return t==null?Ugt:Array.isArray(t)?t:[t]}var Bn=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Bn||(Bn={}));const Zgt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let l8;try{l8=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Xgt(t){if(l8)return l8.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||Zgt.test(n)))return!0}return!1}function Ygt(t){return e=>{if(!/\S/.test(e))return Bn.Space;if(Xgt(e))return Bn.Word;for(let n=0;n-1)return Bn.Word;return Bn.Other}}class Gt{constructor(e,n,r,i,o,a){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;si.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(Ot.reconfigure)?(n=null,r=s.value):s.is(Ot.appendConfig)&&(n=null,r=gv(r).concat(s.value));let o;n?o=e.startState.values.slice():(n=oT.resolve(r,i,this),o=new Gt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=e.startState.facet(a8)?e.newSelection:e.newSelection.asSingle();new Gt(n,e.newDoc,a,o,(s,l)=>l.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Ce.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=gv(r.effects);for(let s=1;sa.spec.fromJSON(s,l)))}}return Gt.create({doc:e.doc,selection:Ce.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=oT.resolve(e.extensions||[],new Map),r=e.doc instanceof en?e.doc:en.of((e.doc||"").split(n.staticFacet(Gt.lineSeparator)||J4)),i=e.selection?e.selection instanceof Ce?e.selection:Ce.single(e.selection.anchor,e.selection.head):Ce.single(0);return Nle(i,r.length),n.staticFacet(a8)||(i=i.asSingle()),new Gt(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Gt.tabSize)}get lineBreak(){return this.facet(Gt.lineSeparator)||` `}get readOnly(){return this.facet(Gle)}phrase(e,...n){for(let r of this.facet(Gt.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let o of this.facet(zle))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,e)&&i.push(a[e]);return i}charCategorizer(e){return Ygt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),o=this.charCategorizer(e),a=e-r,s=e-r;for(;a>0;){let l=Ur(n,a,!1);if(o(n.slice(l,a))!=Bn.Word)break;a=l}for(;st.length?t[0]:4}),Gt.lineSeparator=Fle,Gt.readOnly=Gle,Gt.phrases=Ye.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}}),Gt.languageData=zle,Gt.changeFilter=Wle,Gt.transactionFilter=Qle,Gt.transactionExtender=Hle,Mb.reconfigure=Ot.define();function il(t,e,n={}){let r={};for(let i of t)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class hh{eq(e){return this==e}range(e,n=e){return u8.create(e,n,this)}}hh.prototype.startSide=hh.prototype.endSide=0,hh.prototype.point=!1,hh.prototype.mapMode=Xr.TrackDel;let u8=class Kve{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Kve(e,n,r)}};function c8(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class f8{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(e,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);op||d==p&&u.startSide>0&&u.endSide<=0)continue;(p-d||u.endSide-u.startSide)<0||(a<0&&(a=d),u.point&&(s=Math.max(s,p-d)),r.push(u),i.push(d-a),o.push(p-a))}return{mapped:r.length?new f8(i,o,r,s):null,pos:a}}}class tn{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new tn(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=e,a=e.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(c8)),this.isEmpty)return n.length?tn.of(n):this;let s=new Xle(this,null,-1).goto(0),l=0,u=[],c=new Ic;for(;s.value||l=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&e<=o+a.length&&a.between(o,e-o,n-o,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Db.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Db.from(e).goto(n)}static compare(e,n,r,i,o=-1){let a=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=Zle(a,s,r),u=new Rb(a,l,o),c=new Rb(s,l,o);r.iterGaps((f,d,p)=>Yle(u,f,c,d,p,i)),r.empty&&r.length==0&&Yle(u,0,c,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let o=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=Zle(o,a),l=new Rb(o,s,0).goto(r),u=new Rb(a,s,0).goto(r);for(;;){if(l.to!=u.to||!h8(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(e,n,r,i,o=-1){let a=new Rb(e,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),f=a.pointFroms&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(e,n=!1){let r=new Ic;for(let i of e instanceof u8?[e]:n?qgt(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return tn.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=tn.empty;i=i.nextLayer)n=new tn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}tn.empty=new tn([],[],null,-1);function qgt(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(c8);e=r}return t}tn.empty.nextLayer=tn.empty;class Ic{finishChunk(e){this.chunks.push(new f8(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new Ic)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(tn.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=tn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function Zle(t,e,n){let r=new Map;for(let o of t)for(let a=0;a=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new Xle(a,n,r,o));return i.length==1?i[0]:new Db(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)d8(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)d8(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),d8(this.heap,0)}}}function d8(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class Rb{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Db.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){sT(this.active,e),sT(this.activeTo,e),sT(this.activeRank,e),this.minActive=qle(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;lT(this.active,n,r),lT(this.activeTo,n,i),lT(this.activeRank,n,o),e&&lT(e,n,this.cursor.from),this.minActive=qle(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&sT(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function Yle(t,e,n,r,i,o){t.goto(e),n.goto(r);let a=r+i,s=r,l=r-e;for(;;){let u=t.to+l-n.to||t.endSide-n.endSide,c=u<0?t.to+l:n.to,f=Math.min(c,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&h8(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,f,t.point,n.point):f>s&&!h8(t.active,n.active)&&o.compareRange(s,f,t.active,n.active),c>a)break;s=c,u<=0&&t.next(),u>=0&&n.next()}}function h8(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;r--)t[r+1]=t[r];t[e]=n}function qle(t,e){let n=-1,r=1e9;for(let i=0;i=e)return i;if(i==t.length)break;o+=t.charCodeAt(i)==9?n-o%n:1,i=Ur(t,i)}return r===!0?-1:t.length}const g8="ͼ",Kle=typeof Symbol>"u"?"__"+g8:Symbol.for(g8),v8=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Jle=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Dc{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],f=/^@(\w+)\b/.exec(a[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(a[0]+";");for(let p in s){let g=s[p];if(/&/.test(p))o(p.split(/,\s*/).map(v=>a.map(m=>v.replace(/&/,m))).reduce((v,m)=>v.concat(m)),g,l);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(i(p),g,c,d)}else g!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+g+";")}(c.length||d)&&l.push((r&&!f&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)o(i(a),e[a],this.rules)}getRules(){return this.rules.join(` `)}static newName(){let e=Jle[Kle]||1;return Jle[Kle]=e+1,g8+e.toString(36)}static mount(e,n,r){let i=e[v8],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Kgt(e,o),i.mount(Array.isArray(n)?n:[n],e)}}let eue=new Map;class Kgt{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let o=eue.get(r);if(o)return e[v8]=o;this.sheet=new i.CSSStyleSheet,eue.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[v8]=this}mount(e,n){let r=this.sheet,i=0,o=0;for(let a=0;a-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,s),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jgt=typeof navigator<"u"&&/Mac/.test(navigator.platform),evt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Yr=0;Yr<10;Yr++)Rc[48+Yr]=Rc[96+Yr]=String(Yr);for(var Yr=1;Yr<=24;Yr++)Rc[Yr+111]="F"+Yr;for(var Yr=65;Yr<=90;Yr++)Rc[Yr]=String.fromCharCode(Yr+32),kb[Yr]=String.fromCharCode(Yr);for(var m8 in Rc)kb.hasOwnProperty(m8)||(kb[m8]=Rc[m8]);function tvt(t){var e=Jgt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||evt&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?kb:Rc)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Nb(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function y8(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function nvt(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function uT(t,e){if(!e.anchorNode)return!1;try{return y8(t,e.anchorNode)}catch{return!1}}function mv(t){return t.nodeType==3?gh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Lb(t,e,n,r){return n?tue(t,e,n,r,-1)||tue(t,e,n,r,1):!1}function ph(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function cT(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function tue(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:su(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=ph(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?su(t):0}else return!1}}function su(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function fT(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function rvt(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function nue(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function ivt(t,e,n,r,i,o,a,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(c.nodeType==1){let d,p=c==l.body,g=1,v=1;if(p)d=rvt(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:g,scaleY:v}=nue(c,b)),d={left:b.left,right:b.left+c.clientWidth*g,top:b.top,bottom:b.top+c.clientHeight*v}}let m=0,y=0;if(i=="nearest")e.top0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+y+a)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+a,n<0&&e.top-y0&&e.right>d.right+m&&(m=e.right-d.right+m+o)):e.right>d.right&&(m=e.right-d.right+o,n<0&&e.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class avt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?su(n):0),r,Math.min(e.focusOffset,r?su(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let yv=null;function rue(t){if(t.setActive)return t.setActive();if(yv)return t.focus(yv);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(yv==null?{get preventScroll(){return yv={preventScroll:!0},!0}}:void 0),!yv){yv=!1;for(let n=0;nMath.max(1,t.scrollHeight-t.clientHeight-4)}function sue(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=su(n)}else if(n.parentNode&&!cT(n))r=ph(n),n=n.parentNode;else return null}}function lue(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&rn)return f.domBoundsAround(e,n,u);if(d>=e&&i==-1&&(i=l,o=u),u>n&&f.dom.parentNode==this.dom){a=l,s=c;break}c=d,u=d+f.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=b8){this.markDirty();for(let i=e;ithis.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function fue(t,e,n,r,i,o,a,s,l){let{children:u}=t,c=u.length?u[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:a;if(!(e==r&&c&&!a&&!d&&o.length<2&&c.merge(n,i,o.length?f:null,n==0,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var Ze={mac:mue||/Mac/.test(eo.platform),windows:/Win/.test(eo.platform),linux:/Linux|X11/.test(eo.platform),ie:dT,ie_version:hue?_8.documentMode||6:w8?+w8[1]:O8?+O8[1]:0,gecko:pue,gecko_version:pue?+(/Firefox\/(\d+)/.exec(eo.userAgent)||[0,0])[1]:0,chrome:!!S8,chrome_version:S8?+S8[1]:0,ios:mue,android:/Android\b/.test(eo.userAgent),webkit:gue,safari:vue,webkit_version:gue?+(/\bAppleWebKit\/(\d+)/.exec(eo.userAgent)||[0,0])[1]:0,tabSize:_8.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const uvt=256;class ps extends _n{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof ps)||this.length-(n-e)+r.length>uvt||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new ps(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new di(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return cvt(this.dom,e,n)}}class lu extends _n{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(oue(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,o,a){return r&&(!(r instanceof lu&&r.mark.eq(this.mark))||e&&o<=0||ne&&n.push(r=e&&(i=o),r=l,o++}let a=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new lu(this.mark,n,a)}domAtPos(e){return yue(this,e)}coordsAt(e,n){return _ue(this,e,n)}}function cvt(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;e==0&&n<0||e==r&&n>=0?Ze.chrome||Ze.gecko||(e?(i--,a=1):o=0)?0:s.length-1];return Ze.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?fT(l,a<0):l||null}class kc extends _n{static create(e,n,r){return new kc(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=kc.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,o,a){return r&&(!(r instanceof kc)||!this.widget.compare(r.widget)||e>0&&o<=0||n0)?di.before(this.dom):di.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let a=this.side?this.side<0:e>0;for(let s=a?i.length-1:0;o=i[s],!(e>0?s==0:s==i.length-1||o.top0?di.before(this.dom):di.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return en.empty}get isHidden(){return!0}}ps.prototype.children=kc.prototype.children=_v.prototype.children=b8;function yue(t,e){let n=t.dom,{children:r}=t,i=0;for(let o=0;io&&e0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o0&&e instanceof lu&&i.length&&(r=i[i.length-1])instanceof lu&&r.mark.eq(e.mark)?bue(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function _ue(t,e,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let f=0,d=0;f=c&&(p.children.length?s(p,c-d):(!o||o.isHidden&&n>0)&&(g>c||d==g&&p.getSide()>0)?(o=p,a=c-d):(d-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function C8(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function dvt(t){let e=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){hT(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){bue(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=x8(n,this.attrs||{})),r&&(this.attrs=x8({class:r},this.attrs||{}))}domAtPos(e){return yue(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(oue(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(C8(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&_n.get(i)instanceof lu;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=_n.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Ze.ios||!this.children.some(o=>o instanceof ps))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof ps)||/[^ -~]/.test(r.text))return null;let i=mv(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=_ue(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=n){if(o instanceof dr)return o;if(a>n)break}i=a+o.breakAfter}return null}}class uu extends _n{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,o,a){return r&&(!(r instanceof uu)||!this.widget.compare(r.widget)||e>0&&o<=0||n0}}class ol{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Di=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Di||(Di={}));class nt extends hh{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Bb(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Nc(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:o,end:a}=wue(e,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Nc(e,r,i,n,e.widget||null,!0)}static line(e){return new Vb(e)}static set(e,n=!1){return tn.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}nt.none=tn.empty;class Bb extends nt{constructor(e){let{start:n,end:r}=wue(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof Bb&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&hT(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}Bb.prototype.point=!1;class Vb extends nt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Vb&&this.spec.class==e.spec.class&&hT(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}Vb.prototype.mapMode=Xr.TrackBefore,Vb.prototype.point=!0;class Nc extends nt{constructor(e,n,r,i,o,a){super(n,r,o,e),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?Xr.TrackBefore:Xr.TrackAfter:Xr.TrackDel}get type(){return this.startSide!=this.endSide?Di.WidgetRange:this.startSide<=0?Di.WidgetBefore:Di.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Nc&&hvt(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Nc.prototype.point=!0;function wue(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function hvt(t,e){return t==e||!!(t&&e&&t.compare(e))}function T8(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class zb{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof uu&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new dr),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(pT(new _v(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof uu)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(pT(new ps(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Nc){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-e;if(r instanceof Nc)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new uu(r.widget||Ov.block,s,r));else{let l=kc.create(r.widget||Ov.inline,s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(e0),c=!l.isEditable&&(ei.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(pT(new _v(1),i),o),o=i.length+Math.max(0,o-i.length)),f.append(pT(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?ei.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,r,i,o){let a=new zb(e,n,r,o);return a.openEnd=tn.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function pT(t,e){for(let n of e)t=new lu(n,[t],t.length);return t}class Ov extends ol{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Ov.inline=new Ov("span"),Ov.block=new Ov("div");var In=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(In||(In={}));const vh=In.LTR,P8=In.RTL;function Sue(t){let e=[];for(let n=0;n=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.fromn:e[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function Cue(t,e){if(t.length!=e.length)return!1;for(let n=0;n=0;v-=3)if(al[v+1]==-p){let m=al[v+2],y=m&2?i:m&4?m&1?o:i:0;y&&(On[f]=On[al[v]]=y),s=v;break}}else{if(al.length==189)break;al[s++]=f,al[s++]=d,al[s++]=l}else if((g=On[f])==2||g==1){let v=g==i;l=v?0:1;for(let m=s-3;m>=0;m-=3){let y=al[m+2];if(y&2)break;if(v)al[m+2]|=2;else{if(y&4)break;al[m+2]|=4}}}}}function bvt(t,e,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:t,s=il;)g==m&&(g=n[--v].from,m=v?n[v-1].to:t),On[--g]=p;l=c}else o=u,l++}}}function A8(t,e,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=e,u=0;ll&&a.push(new Lc(l,v.from,p));let m=v.direction==vh!=!(p%2);E8(t,m?r+1:r,i,v.inner,v.from,v.to,a),l=v.to}g=v.to}else{if(g==n||(c?On[g]!=s:On[g]==s))break;g++}d?A8(t,l,g,r+1,i,d,a):le;){let c=!0,f=!1;if(!u||l>o[u-1].to){let v=On[l-1];v!=s&&(c=!1,f=v==16)}let d=!c&&s==1?[]:null,p=c?r:r+1,g=l;e:for(;;)if(u&&g==o[u-1].to){if(f)break e;let v=o[--u];if(!c)for(let m=v.from,y=u;;){if(m==e)break e;if(y&&o[y-1].to==m)m=o[--y].from;else{if(On[m-1]==s)break e;break}}if(d)d.push(v);else{v.toOn.length;)On[On.length]=256;let r=[],i=e==vh?0:1;return E8(t,i,i,n,0,t.length,r),r}function Tue(t){return[new Lc(0,t,0)]}let Pue="";function Ovt(t,e,n,r,i){var o;let a=r.head-t.from,s=Lc.find(e,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=e[s],u=l.side(i,n);if(a==u){let d=s+=i?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],a=l.side(!i,n),u=l.side(i,n)}let c=Ur(t.text,a,l.forward(i,n));(cl.to)&&(c=u),Pue=t.text.slice(Math.min(a,c),Math.max(a,c));let f=s==(i?e.length-1:0)?null:e[s+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)t.some(e=>e)}),kue=Ye.define({combine:t=>t.some(e=>e)}),Nue=Ye.define();class wv{constructor(e,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(e){return e.empty?this:new wv(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new wv(Ce.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const gT=Ot.define({map:(t,e)=>t.map(e)}),Lue=Ot.define();function to(t,e,n){let r=t.facet(Mue);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Bc=Ye.define({combine:t=>t.length?t[0]:!0});let Svt=0;const Fb=Ye.define();class rr{constructor(e,n,r,i,o){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new rr(Svt++,e,r,i,s=>{let l=[Fb.of(s)];return a&&l.push(Wb.of(u=>{let c=u.plugin(s);return c?a(c):nt.none})),o&&l.push(o(s)),l})}static fromClass(e,n){return rr.define(r=>new e(r),n)}}class I8{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(to(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){to(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){to(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Bue=Ye.define(),D8=Ye.define(),Wb=Ye.define(),Vue=Ye.define(),R8=Ye.define(),zue=Ye.define();function Fue(t,e){let n=t.state.facet(zue);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(t):o),i=[];return tn.spans(r,e.from,e.to,{point(){},span(o,a,s,l){let u=o-e.from,c=a-e.from,f=i;for(let d=s.length-1;d>=0;d--,l--){let p=s[d].spec.bidiIsolate,g;if(p==null&&(p=wvt(e.text,u,c)),l>0&&f.length&&(g=f[f.length-1]).to==u&&g.direction==p)g.to=c,f=g.inner;else{let v={from:u,to:c,direction:p,inner:[]};f.push(v),f=v.inner}}}}),i}const Wue=Ye.define();function Que(t){let e=0,n=0,r=0,i=0;for(let o of t.state.facet(Wue)){let a=o(t);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:e,right:n,top:r,bottom:i}}const Qb=Ye.define();class Ca{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new Ca(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toAc)break;o+=2}if(!l)return r;new Ca(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class vT{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=xr.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new Ca(o,a,s,l))),this.changedRanges=i}static create(e,n,r){return new vT(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Hue extends _n{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=nt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new dr],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ca(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Evt(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let o=i>-1?Cvt(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Ca(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Ze.ie||Ze.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=$vt(a,s,e.changes);return r=Ca.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Ze.chrome||Ze.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:f}=s,d,p,g,v;if(r&&r.range.fromBc){let w=zb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),S=zb.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);p=w.breakAtStart,g=w.openStart,v=S.openEnd;let x=this.compositionView(r);S.breakAtStart?x.breakAfter=1:S.content.length&&x.merge(x.length,x.length,S.content[0],!1,S.openStart,0)&&(x.breakAfter=S.content[0].breakAfter,S.content.shift()),w.content.length&&x.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),d=w.content.concat(x).concat(S.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:v}=zb.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=o.findPos(u,1),{i:b,off:O}=o.findPos(l,-1);fue(this,b,O,m,y,d,p,g,v)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(Lue)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new ps(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new lu(i,[n],n.length);let r=new dr;return r.append(n,0),r}fixCompositionDOM(e){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=_n.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let o=e.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?e.marks[o].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&uT(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(Ze.gecko&&s.empty&&!this.hasComposition&&xvt(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new di(f,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Lb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Lb(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{Ze.android&&Ze.chrome&&this.dom.contains(c.focusNode)&&Avt(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Nb(this.view.root);if(f)if(s.empty){if(Ze.gecko){let d=Tvt(l.node,l.offset);if(d&&d!=3){let p=(d==1?sue:lue)(l.node,l.offset);p&&(l=new di(p.node,p.offset))}}f.collapse(l.node,l.offset),s.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=s.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let d=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),d.setEnd(u.node,u.offset),d.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new di(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new di(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Lb(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=Nb(e.root),{anchorNode:i,anchorOffset:o}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=dr.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i=0;i--){let o=_n.get(n.childNodes[i]);o instanceof dr&&(r=o.domAtPos(o.length))}return r?new di(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=_n.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n=0;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(le||s.covers(1))&&(!r||s instanceof dr&&!(r instanceof dr&&n>=0)))r=s,i=u;else if(r&&u==e&&l==e&&s instanceof uu&&Math.abs(n)<2){if(s.deco.startSide<0)break;a&&(r=null)}o=u}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof dr))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof ps))return null;let o=Ur(i.text,r);if(o==r)return null;let a=gh(i.dom,r,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==In.LTR;for(let u=0,c=0;ci)break;if(u>=r){let p=f.dom.getBoundingClientRect();if(n.push(p.height),a){let g=f.dom.lastChild,v=g?mv(g):[];if(v.length){let m=v[v.length-1],y=l?m.right-p.left:p.right-m.left;y>s&&(s=y,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=d)}}}u=d+f.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?In.RTL:In.LTR}measureTextSize(){for(let o of this.children)if(o instanceof dr){let a=o.measureTextSize();if(a)return a}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=mv(e.firstChild)[0];n=e.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new cue(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(nt.replace({widget:new Gue(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return nt.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Wb).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),r=!1,i=this.view.state.facet(Vue).map((o,a)=>{let s=typeof o=="function";return s&&(r=!0),s?o(this.view):o});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(tn.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let o=Que(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;ivt(this.view.scrollDOM,a,n.head{re.from&&(n=!0)}),n}function Mvt(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),o=e-i.from;if(i.length==0)return Ce.cursor(e);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Ur(i.text,o,!1):s=Ur(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=Ur(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;st?e.left-t:Math.max(0,t-e.right)}function Dvt(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function k8(t,e){return t.tope.top+1}function Uue(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function N8(t,e,n){let r,i,o,a,s=!1,l,u,c,f;for(let g=t.firstChild;g;g=g.nextSibling){let v=mv(g);for(let m=0;mO||a==O&&o>b){r=g,i=y,o=b,a=O;let w=O?n0?m0)}b==0?n>y.bottom&&(!c||c.bottomy.top)&&(u=g,f=y):c&&k8(c,y)?c=Zue(c,y.bottom):f&&k8(f,y)&&(f=Uue(f,y.top))}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return{node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return Xue(r,d,n);if(s&&r.contentEditable!="false")return N8(r,d,n);let p=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:p}}function Xue(t,e,n){let r=t.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f=(c.left+c.right)/2,p=d;if((Ze.chrome||Ze.gecko)&&gh(t,s).getBoundingClientRect().left==c.right&&(p=!d),f<=0)return{node:t,offset:s+(p?1:0)};i=s+(p?1:0),o=f}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function Yue(t,e,n,r=-1){var i,o;let a=t.contentDOM.getBoundingClientRect(),s=a.top+t.viewState.paddingTop,l,{docHeight:u}=t.viewState,{x:c,y:f}=e,d=f-s;if(d<0)return 0;if(d>u)return t.state.doc.length;for(let w=t.viewState.heightOracle.textHeight/2,S=!1;l=t.elementAtHeight(d),l.type!=Di.Text;)for(;d=r>0?l.bottom+w:l.top-w,!(d>=0&&d<=u);){if(S)return n?null:0;S=!0,r=-r}f=s+d;let p=l.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:que(t,a,l,c,f);let g=t.dom.ownerDocument,v=t.root.elementFromPoint?t.root:g,m=v.elementFromPoint(c,f);m&&!t.contentDOM.contains(m)&&(m=null),m||(c=Math.max(a.left+1,Math.min(a.right-1,c)),m=v.elementFromPoint(c,f),m&&!t.contentDOM.contains(m)&&(m=null));let y,b=-1;if(m&&((i=t.docView.nearest(m))===null||i===void 0?void 0:i.isEditable)!=!1){if(g.caretPositionFromPoint){let w=g.caretPositionFromPoint(c,f);w&&({offsetNode:y,offset:b}=w)}else if(g.caretRangeFromPoint){let w=g.caretRangeFromPoint(c,f);w&&({startContainer:y,startOffset:b}=w,(!t.contentDOM.contains(y)||Ze.safari&&Rvt(y,b,c)||Ze.chrome&&kvt(y,b,c))&&(y=void 0))}}if(!y||!t.docView.dom.contains(y)){let w=dr.find(t.docView,p);if(!w)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:b}=N8(w.dom,c,f))}let O=t.docView.nearest(y);if(!O)return null;if(O.isWidget&&((o=O.dom)===null||o===void 0?void 0:o.nodeType)==1){let w=O.dom.getBoundingClientRect();return e.yt.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(t.defaultLineHeight-s)*.5)/s);o+=l*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+p8(a,o,t.state.tabSize)}function Rvt(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return gh(t,r-1,r).getBoundingClientRect().left>n}function kvt(t,e,n){if(e!=0)return!1;for(let i=t;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=t.nodeType==1?t.getBoundingClientRect():gh(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function L8(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Di.Text))return r}return n}function Nvt(t,e,n,r){let i=L8(t,e.head),o=!r||i.type!=Di.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(o){let a=t.dom.getBoundingClientRect(),s=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(s==In.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return Ce.cursor(l,n?-1:1)}return Ce.cursor(n?i.to:i.from,n?-1:1)}function Kue(t,e,n,r){let i=t.state.doc.lineAt(e.head),o=t.bidiSpans(i),a=t.textDirectionAt(i.from);for(let s=e,l=null;;){let u=Ovt(i,o,a,s,n),c=Pue;if(!u){if(i.number==(n?t.state.doc.lines:1))return s;c=` `,i=t.state.doc.line(i.number+(n?1:-1)),o=t.bidiSpans(i),u=t.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function Lvt(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return o=>{let a=r(o);return i==Bn.Space&&(i=a),i==a}}function Bvt(t,e,n,r){let i=e.head,o=n?1:-1;if(i==(n?t.state.doc.length:0))return Ce.cursor(i,e.assoc);let a=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let p=t.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-p.from))),s=(o<0?p.top:p.bottom)+c}let f=l.left+a,d=r??t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=s+(d+p)*o,v=Yue(t,{x:f,y:g},!1,o);if(gl.bottom||(o<0?vi)){let m=t.docView.coordsForChar(v),y=!m||g{if(e>o&&ei(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:Ce.cursor(r,rnull),Ze.gecko&&tmt(e.contentDOM.ownerDocument)}handleEvent(e){!Uvt(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=zvt(e),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&tce.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Ze.android&&Ze.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Ze.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=ece.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||Fvt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from0?!0:Ze.safari&&!Ze.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Jue(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){to(n.state,i)}}}function zvt(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(Jue(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(Jue(r.value,a))}}for(let r in gs)n(r).handlers.push(gs[r]);for(let r in Ta)n(r).observers.push(Ta[r]);return e}const ece=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Fvt="dthko",tce=[16,17,18,20,91,92,224,225],yT=6;function bT(t){return Math.max(0,t)*.7+8}function Wvt(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Qvt{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=ovt(e.contentDOM),this.atoms=e.state.facet(R8).map(a=>a(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(Gt.allowMultipleSelections)&&Hvt(e,n),this.dragging=jvt(e,n)&&fce(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Wvt(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let r=0,i=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=Que(this.view);e.clientX-a.left<=o.left+yT?r=-bT(o.left-e.clientX):e.clientX+a.right>=o.right-yT&&(r=bT(e.clientX-o.right)),e.clientY-a.top<=o.top+yT?i=-bT(o.top-e.clientY):e.clientY+a.bottom>=o.bottom-yT&&(i=bT(e.clientY-o.bottom)),this.setScrollSpeed(r,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;rn.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Hvt(t,e){let n=t.state.facet($ue);return n.length?n[0](e):Ze.mac?e.metaKey:e.ctrlKey}function Gvt(t,e){let n=t.state.facet(Aue);return n.length?n[0](e):Ze.mac?!e.altKey:!e.ctrlKey}function jvt(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=Nb(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function Uvt(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=_n.get(n))&&r.ignoreEvent(e))return!1;return!0}const gs=Object.create(null),Ta=Object.create(null),nce=Ze.ie&&Ze.ie_version<15||Ze.ios&&Ze.webkit_version<604;function Zvt(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),rce(t,n.value)},50)}function rce(t,e){let{state:n}=t,r,i=1,o=n.toText(e),a=o.lines==n.selection.ranges.length;if(V8!=null&&n.selection.ranges.every(l=>l.empty)&&V8==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=n.toText((a?o.line(i++).text:e)+n.lineBreak);return{changes:{from:c.from,insert:f},range:Ce.cursor(u.from+f.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Ce.cursor(l.from+u.length)}}):r=n.replaceSelection(o);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Ta.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},gs.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),Ta.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Ta.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},gs.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(Eue))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=qvt(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new Qvt(t,e,n,r)),r&&t.observer.ignore(()=>{rue(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function ice(t,e,n,r){if(r==1)return Ce.cursor(e,n);if(r==2)return Mvt(t.state,e,n);{let i=dr.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return st>=e.top&&t<=e.bottom,ace=(t,e,n)=>oce(e,n)&&t>=n.left&&t<=n.right;function Xvt(t,e,n,r){let i=dr.find(t.docView,e);if(!i)return 1;let o=e-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&ace(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&ace(n,r,s)?1:a&&oce(r,a)?-1:1}function sce(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Xvt(t,n,e.clientX,e.clientY)}}const Yvt=Ze.ie&&Ze.ie_version<=11;let lce=null,uce=0,cce=0;function fce(t){if(!Yvt)return t.detail;let e=lce,n=cce;return lce=t,cce=Date.now(),uce=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(uce+1)%3:1}function qvt(t,e){let n=sce(t,e),r=fce(e),i=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=sce(t,o),u,c=ice(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let f=ice(t,n.pos,n.bias,r),d=Math.min(f.from,c.from),p=Math.max(f.to,c.to);c=d1&&(u=Kvt(i,l.pos))?u:s?i.addRange(c):Ce.create([c])}}}function Kvt(t,e){for(let n=0;n=e)return Ce.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}gs.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=Ce.range(o,a))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},gs.dragend=t=>(t.inputState.draggedContent=null,!1);function dce(t,e,n,r){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,a=r&&o&&Gvt(t,e)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}gs.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&dce(t,e,r.filter(a=>a!=null).join(t.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return dce(t,e,r,!0),!0}return!1},gs.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=nce?null:e.clipboardData;return n?(rce(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Zvt(t),!1)};function Jvt(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function emt(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:o}of t.selection.ranges){let a=t.doc.lineAt(o);a.number>i&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),i=a.number}r=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:r}}let V8=null;gs.copy=gs.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=emt(t.state);if(!n&&!i)return!1;V8=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=nce?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Jvt(t,n),!1)};const hce=au.define();function pce(t,e){let n=[];for(let r of t.facet(Due)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:hce.of(!0)}):null}function gce(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=pce(t.state,e);n?t.dispatch(n):t.update([])}},10)}Ta.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),gce(t)},Ta.blur=t=>{t.observer.clearSelectionRange(),gce(t)},Ta.compositionstart=Ta.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},Ta.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ze.chrome&&Ze.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))},Ta.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},gs.beforeinput=(t,e)=>{var n;let r;if(Ze.chrome&&Ze.android&&(r=ece.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Ze.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Ze.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Ta.compositionend(t,e),20),!1};const vce=new Set;function tmt(t){vce.has(t)||(vce.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const mce=["pre-wrap","normal","pre-line","break-spaces"];class nmt{constructor(e){this.lineWrapping=e,this.doc=en.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return mce.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>_T&&(e.heightChanged=!0),this.height=n)}replace(e,n,r){return Ri.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=i[s],d=o.lineAt(l,Dn.ByPosNoHeight,r.setDoc(n),0,0),p=d.to>=u?d:o.lineAt(u,Dn.ByPosNoHeight,r,0,0);for(f+=p.to-u,u=p.to;s>0&&d.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,lo*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i=o&&a(this.blockAt(0,r,i,o))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ao extends yce{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new sl(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof Ao||i instanceof qr&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof qr?i=new Ao(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ri.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(e,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class qr extends Ri{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(e,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(e0){let o=r[r.length-1];o instanceof qr?r[r.length-1]=new qr(o.length+i):r.push(null,new qr(i-1))}if(e>0){let o=r[0];o instanceof qr?r[0]=new qr(e+o.length):r.unshift(new qr(e-1),null)}return Ri.of(r)}decomposeLeft(e,n){n.push(new qr(e-1),null)}decomposeRight(e,n){n.push(null,new qr(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new qr(i.from-n-1).updateHeight(e,n));s<=o&&i.more;){let c=e.doc.lineAt(s).length;a.length&&a.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=_T&&(l=-2);let d=new Ao(c,f);d.outdated=!1,a.push(d),s+=c+1}s<=o&&a.push(null,new qr(o-s).updateHeight(e,s));let u=Ri.of(a);return(l<0||Math.abs(u.height-this.height)>=_T||Math.abs(l-this.heightMetrics(e,n).perLine)>=_T)&&(e.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class imt extends Ri{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let o=r+this.left.height;return es))return u;let c=n==Dn.ByPosNoHeight?Dn.ByPosNoHeight:Dn.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(e,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,n,r,s,l,a);else{let u=this.lineAt(l,Dn.ByPos,r,i,o);e=e&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(e,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let o=[];e>0&&this.decomposeLeft(e,o);let a=o.length;for(let s of r)o.push(s);if(e>0&&bce(o,a-1),n=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e2*n.size||n.size>2*e.size?Ri.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(e,n,r,i):o.updateHeight(e,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(e,s,r,i):a.updateHeight(e,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function bce(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof qr&&(r=t[e+1])instanceof qr&&t.splice(e-1,3,new qr(n.length+1+r.length))}const omt=5;class z8{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Ao?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Ao(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e=omt)&&this.addLineDeco(i,o,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new Ao(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new qr(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ao)return e;let n=new Ao(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Ao)&&!this.isCovered?this.nodes.push(new Ao(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();o=Math.max(o,d.left),a=Math.min(a,d.right),s=Math.max(s,d.top),l=u==t.parentNode?d.bottom:Math.min(l,d.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+e),bottom:Math.max(s,l)-(n.top+e)}}function umt(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class F8{constructor(e,n,r){this.from=e,this.to=n,this.size=r}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;rtypeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new nmt(n),this.stateDeco=e.facet(Wb).filter(r=>typeof r!="function"),this.heightMap=Ri.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle.setDoc(e.doc),[new Ca(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=nt.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);e.push(new OT(o,a))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Oce:new W8(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Hb(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Wb).filter(c=>typeof c!="function");let i=e.changedRanges,o=Ca.extendWithRanges(i,amt(r,this.stateDeco,e?e.changes:xr.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(kue)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?In.RTL:In.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:w,scaleY:S}=nue(n,s);(w>.005&&Math.abs(this.scaleX-w)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=w,this.scaleY=S,u|=8,a=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=aue(e.scrollDOM);let g=(this.printing?umt:lmt)(n,this.paddingTop),v=g.top-this.pixelViewport.top,m=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let b=s.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let w=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(w)&&(a=!0),a||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:S,charWidth:x,textHeight:T}=e.docView.measureTextSize();a=S>0&&i.refresh(o,S,x,T,b/x,w),a&&(e.docView.minWidth=0,u|=8)}v>0&&m>0?c=Math.max(v,m):v<0&&m<0&&(c=Math.min(v,m)),i.heightChanged=!1;for(let S of this.viewports){let x=S.from==this.viewport.from?w:e.docView.measureVisibleLineHeights(S);this.heightMap=(a?Ri.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle,[new Ca(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new rmt(S.from,x))}i.heightChanged&&(u|=2)}let O=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return O&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||O)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new OT(i.lineAt(a-r*1e3,Dn.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Dn.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,Dn.ByPos,o,0,0),d;n.y=="center"?d=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o>1,a=i<<1;if(this.defaultTextDirection!=In.LTR&&!r)return[];let s=[],l=(c,f,d,p)=>{if(f-cc&&yy.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)y.fromb));if(!m){if(fy.from<=f&&y.to>=f)){let y=n.moveToLineBoundary(Ce.cursor(f),!1,!0).head;y>c&&(f=y)}m=new F8(c,f,this.gapSize(d,c,f,p))}s.push(m)},u=c=>{if(c.lengthc.from&&l(c.from,p,c,f),gn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];tn.spans(e,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].to);return this.visibleRanges=n,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Hb(this.heightMap.lineAt(e,Dn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Hb(this.heightMap.lineAt(this.scaler.fromDOM(e),Dn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Hb(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class OT{constructor(e,n){this.from=e,this.to=n}}function fmt(t,e,n){let r=[],i=t,o=0;return tn.spans(n,t,e,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:o,to:a}=e[i],s=a-o;if(r<=s)return o+r;r-=s}}function ST(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function dmt(t,e){for(let n of t)if(e(n))return n}const Oce={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class W8{constructor(e,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Dn.ByPos,e,0,0).top,c=n.lineAt(l,Dn.ByPos,e,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let o=nn.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function Hb(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new sl(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>Hb(i,e)):t._content)}const xT=Ye.define({combine:t=>t.join(" ")}),Q8=Ye.define({combine:t=>t.indexOf(!0)>-1}),H8=Dc.newName(),wce=Dc.newName(),Sce=Dc.newName(),xce={"&light":"."+wce,"&dark":"."+Sce};function G8(t,e,n){return new Dc(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const hmt=G8("."+H8,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},xce),Gb="￿";class pmt{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(Gt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Gb}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=_n.get(i),l=_n.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:cT(i))||cT(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(e){if(e.cmIgnore)return;let n=_n.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(gmt(e,r.node,r.offset)?n:0))}}function gmt(t,e,n){for(;;){if(!e||n-1;let{impreciseHead:o,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let s=o||a?[]:bmt(e),l=new pmt(s,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=_mt(s,this.bounds.from)}else{let s=e.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!y8(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!y8(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=e.viewport;if((Ze.ios||Ze.chrome)&&e.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:s}=e.bounds,l=i.from,u=null;(o===8||Ze.android&&e.text.length=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:(Ze.mac||Ze.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}):Ze.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` `&&t.lineWrapping&&(r&&(r=Ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}),n)return Pce(t,n,r,o);if(r&&!r.main.eq(i)){let a=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(a=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function Pce(t,e,n,r=-1){if(Ze.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(Ze.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&bv(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.lengthi.head)&&bv(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&bv(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,s=()=>a||(a=mmt(t,e,n));return t.state.facet(Iue).some(l=>l(t,e.from,e.to,o,s))||t.dispatch(s()),!0}function mmt(t,e,n){let r,i=t.state,o=i.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=o.frome.to?i.sliceDoc(e.to,o.to):"";r=i.replaceSelection(t.state.toText(s+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let s=i.changes(e),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let u=t.state.sliceDoc(e.from,e.to),c,f=n&&jue(t,n.main.head);if(f){let g=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-g}}else c=t.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;r=i.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:s,range:l||g.map(s)};let v=g.to-d,m=v-u.length;if(g.to-g.from!=p||t.state.sliceDoc(m,v)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let y=i.changes({from:m,to:v,insert:e.insert}),b=g.to-o.to;return{changes:y,range:l?Ce.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):g.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function ymt(t,e,n,r){let i=Math.min(t.length,e.length),o=0;for(;o0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function bmt(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new Cce(n,r)),(i!=n||o!=r)&&e.push(new Cce(i,o))),e}function _mt(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?Ce.single(n+e,r+e):null}const Omt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},j8=Ze.ie&&Ze.ie_version<=11;class wmt{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new avt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Ze.ie&&Ze.ie_version<=11||Ze.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(Ze.chrome&&Ze.chrome_version<126)&&(this.editContext=new xmt(e),e.state.facet(Bc)&&(e.contentDOM.editContext=this.editContext.editContext)),j8&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Bc)?r.root.activeElement!=this.dom:!uT(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Ze.ie&&Ze.ie_version<=11||Ze.android&&Ze.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Lb(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Nb(e.root);if(!n)return!1;let r=Ze.safari&&e.root.nodeType==11&&nvt(this.dom.ownerDocument)==this.dom&&Smt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=uT(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&bv(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let o of e){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&uT(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new vmt(this.view,e,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Tce(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=$ce(n,e.previousSibling||e.target.previousSibling,-1),i=$ce(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Bc)!=e.state.facet(Bc)&&(e.view.contentDOM.editContext=e.state.facet(Bc)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function $ce(t,e,n){for(;e;){let r=_n.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Ace(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return Lb(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function Smt(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Ace(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?Ace(t,n):null}class xmt{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});n.addEventListener("textupdate",r=>{let{anchor:i}=e.state.selection.main,o={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:en.of(r.text.split(` `))};o.from==this.from&&ithis.to&&(o.to=i),!(o.from==o.to&&!o.insert.length)&&(this.pendingContextChange=o,Pce(e,o,Ce.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&this.revertPending(e.state))}),n.addEventListener("characterboundsupdate",r=>{let i=[],o=null;for(let a=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);a{let i=[];for(let o of r.getTextFormats()){let a=o.underlineStyle,s=o.underlineThickness;if(a!="None"&&s!="None"){let l=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;i.push(nt.mark({attributes:{style:l}}).range(this.toEditorPos(o.rangeStart),this.toEditorPos(o.rangeEnd)))}}e.dispatch({effects:Lue.of(nt.set(i))})}),n.addEventListener("compositionstart",()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)}),n.addEventListener("compositionend",()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null}),this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Nb(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((o,a,s,l,u)=>{if(r)return;let c=u.length-(a-o);if(i&&a>=i.to)if(i.from==o&&i.to==a&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=c,this.to+=c;return}else i=null,this.revertPending(e.state);if(o+=n,a+=n,a<=this.from)this.from+=c,this.to+=c;else if(othis.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(a),u.toString()),this.to+=c}n+=c}),i&&!r&&this.revertPending(e.state),!r}update(e){!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.to+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}}class He{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||svt(e.parent)||document,this.viewState=new _ce(e.state||Gt.create(e)),e.scrollTo&&e.scrollTo.is(gT)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Fb).map(r=>new I8(r));for(let r of this.plugins)r.update(this);this.observer=new wmt(this),this.inputState=new Vvt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Hue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof fr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(hce))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=pce(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(Gt.phrases)!=this.state.facet(Gt.phrases))return this.setState(o);i=vT.create(this,o,e),i.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new wv(p.empty?p:Ce.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(gT)&&(f=p.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=CT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Qb)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(xT)!=i.state.facet(xT)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(M8))try{d(i)}catch(p){to(this.state,p,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Tce(this,c)&&u.force&&bv(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new _ce(e),this.plugins=e.facet(Fb).map(r=>new I8(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Hue(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(Fb),r=e.state.facet(Fb);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new I8(o));else{let s=this.plugins[a];s.mustUpdate=e,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(aue(r))o=-1,a=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(i);o=p.from,a=p.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(p=>{try{return p.read(this)}catch(g){return to(this.state,g),Ece}}),f=vT.create(this,this.state,[]),d=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p1||g<-1){i=i+g,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(M8))s(n)}get themeClasses(){return H8+" "+(this.state.facet(Q8)?Sce:wce)+" "+this.state.facet(xT)}updateAttrs(){let e=Mce(this,Bue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Bc)?"true":"false",class:"cm-content",style:`${Ze.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),Mce(this,D8,n);let r=this.observer.ignore(()=>{let i=C8(this.contentDOM,this.contentAttrs,n),o=C8(this.dom,this.editorAttrs,e);return i||o});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(He.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Qb);let e=this.state.facet(He.cspNonce);Dc.mount(this.root,this.styleModules.concat(hmt).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;nr.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return B8(this,e,Kue(this,e,n,r))}moveByGroup(e,n){return B8(this,e,Kue(this,e,n,r=>Lvt(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),o=r[n?r.length-1:0];return Ce.cursor(o.side(n,i)+e.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return Nvt(this,e,n,r)}moveVertically(e,n,r){return B8(this,e,Bvt(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),Yue(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),o=this.bidiSpans(i),a=o[Lc.find(o,e-i.from,-1,n)];return fT(r,a.dir==In.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Rue)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Cmt)return Tue(e.length);let n=this.textDirectionAt(e.from),r;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||Cue(o.isolates,r=Fue(this,e))))return o.order;r||(r=Fue(this,e));let i=_vt(e.text,n,r);return this.bidiCache.push(new CT(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ze.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{rue(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return gT.of(new wv(typeof e=="number"?Ce.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return gT.of(new wv(Ce.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return rr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rr.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Dc.newName(),i=[xT.of(r),Qb.of(G8(`.${r}`,e))];return n&&n.dark&&i.push(Q8.of(!0)),i}static baseTheme(e){return Mc.lowest(Qb.of(G8("."+H8,e,xce)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&_n.get(r)||_n.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}He.styleModule=Qb,He.inputHandler=Iue,He.scrollHandler=Nue,He.focusChangeEffect=Due,He.perLineTextDirection=Rue,He.exceptionSink=Mue,He.updateListener=M8,He.editable=Bc,He.mouseSelectionStyle=Eue,He.dragMovesSelection=Aue,He.clickAddsSelectionRange=$ue,He.decorations=Wb,He.outerDecorations=Vue,He.atomicRanges=R8,He.bidiIsolatedRanges=zue,He.scrollMargins=Wue,He.darkTheme=Q8,He.cspNonce=Ye.define({combine:t=>t.length?t[0]:""}),He.contentAttributes=D8,He.editorAttributes=Bue,He.lineWrapping=He.contentAttributes.of({class:"cm-lineWrapping"}),He.announce=Ot.define();const Cmt=4096,Ece={};class CT{constructor(e,n,r,i,o,a){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:In.LTR;for(let o=Math.max(0,e.length-10);o=0;i--){let o=r[i],a=typeof o=="function"?o(t):o;a&&x8(a,n)}return n}const Tmt=Ze.mac?"mac":Ze.windows?"win":Ze.linux?"linux":"key";function Pmt(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;lr.concat(i),[]))),n}function Amt(t,e,n){return Rce(Dce(t.state),e,t,n)}let Vc=null;const Emt=4e3;function Mmt(t,e=Tmt){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var f,d;let p=n[a]||(n[a]=Object.create(null)),g=s.split(/ (?!$)/).map(y=>Pmt(y,e));for(let y=1;y{let w=Vc={view:O,prefix:b,scope:a};return setTimeout(()=>{Vc==w&&(Vc=null)},Emt),!0}]})}let v=g.join(" ");i(v,!1);let m=p[v]||(p[v]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&m.run.push(l),u&&(m.preventDefault=!0),c&&(m.stopPropagation=!0)};for(let a of t){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=a;for(let d in c)c[d].run.push(p=>f(p,U8))}let l=a[e]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}let U8=null;function Rce(t,e,n,r){U8=e;let i=tvt(e),o=Zr(i,0),a=xa(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;Vc&&Vc.view==n&&Vc.scope==r&&(s=Vc.prefix+" ",tce.indexOf(e.keyCode)<0&&(u=!0,Vc=null));let f=new Set,d=m=>{if(m){for(let y of m.run)if(!f.has(y)&&(f.add(y),y(n)))return m.stopPropagation&&(c=!0),!0;m.preventDefault&&(m.stopPropagation&&(c=!0),u=!0)}return!1},p=t[r],g,v;return p&&(d(p[s+TT(i,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ze.windows&&e.ctrlKey&&e.altKey)&&(g=Rc[e.keyCode])&&g!=i?(d(p[s+TT(g,e,!0)])||e.shiftKey&&(v=kb[e.keyCode])!=i&&v!=g&&d(p[s+TT(v,e,!1)]))&&(l=!0):a&&e.shiftKey&&d(p[s+TT(i,e,!0)])&&(l=!0),!l&&d(p._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),U8=null,l}class Ub{constructor(e,n,r,i,o){this.className=e,this.left=n,this.top=r,this.width=i,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let o=kce(e);return[new Ub(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return Imt(e,n,r)}}function kce(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==In.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Nce(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let o=t.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=t.posAtCoords({x:o.left+1,y:a}),l=t.posAtCoords({x:o.right-1,y:a});return s==null||l==null?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function Imt(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),o=t.textDirection==In.LTR,a=t.contentDOM,s=a.getBoundingClientRect(),l=kce(t),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),p=L8(t,r),g=L8(t,i),v=p.type==Di.Text?p:null,m=g.type==Di.Text?g:null;if(v&&(t.lineWrapping||p.widgetLineBreaks)&&(v=Nce(t,r,1,v)),m&&(t.lineWrapping||g.widgetLineBreaks)&&(m=Nce(t,i,-1,m)),v&&m&&v.from==m.from&&v.to==m.to)return b(O(n.from,n.to,v));{let S=v?O(n.from,null,v):w(p,!1),x=m?O(null,n.to,m):w(g,!0),T=[];return(v||p).to<(m||g).from-(v&&m?1:0)||p.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2I&&L.from=B)break;j>D&&M(Math.max(W,D),S==null&&W<=I,Math.min(j,B),x==null&&j>=R,z.dir)}if(D=F.to+1,D>=B)break}return P.length==0&&M(I,S==null,R,x==null,t.textDirection),{top:$,bottom:A,horizontal:P}}function w(S,x){let T=s.top+(x?S.top:S.bottom);return{top:T,bottom:T,horizontal:[]}}}function Dmt(t,e){return t.constructor==e.constructor&&t.eq(e)}class Rmt{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(PT)!=e.state.facet(PT)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(PT);for(;n!Dmt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const PT=Ye.define();function Lce(t){return[rr.define(e=>new Rmt(e,t)),PT.of(t)]}const Bce=!Ze.ios,Zb=Ye.define({combine(t){return il(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function kmt(t={}){return[Zb.of(t),Nmt,Lmt,Bmt,kue.of(!0)]}function Vce(t){return t.startState.facet(Zb)!=t.state.facet(Zb)}const Nmt=Lce({above:!0,markers(t){let{state:e}=t,n=e.facet(Zb),r=[];for(let i of e.selection.ranges){let o=i==e.selection.main;if(i.empty?!o||Bce:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:Ce.cursor(i.head,i.head>i.anchor?-1:1);for(let l of Ub.forRange(t,a,s))r.push(l)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Vce(t);return n&&zce(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){zce(e.state,t)},class:"cm-cursorLayer"});function zce(t,e){e.style.animationDuration=t.facet(Zb).cursorBlinkRate+"ms"}const Lmt=Lce({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Ub.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Vce(t)},class:"cm-selectionLayer"}),Z8={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Bce&&(Z8[".cm-line"].caretColor=Z8[".cm-content"].caretColor="transparent !important");const Bmt=Mc.highest(He.theme(Z8)),Fce=Ot.define({map(t,e){return t==null?null:e.mapPos(t)}}),Xb=kr.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(Fce)?r.value:n,t)}}),Vmt=rr.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Xb);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Xb)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Xb),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Xb)!=t&&this.view.dispatch({effects:Fce.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function zmt(){return[Xb,Vmt]}function Wce(t,e,n,r,i){e.lastIndex=0;for(let o=t.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=e.exec(o.value);)i(a+s.index,s)}function Fmt(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class Wmt{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let f=r(s,l,u);f&&c(u,u+s[0].length,f)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(e){let n=new Ic,r=n.add.bind(n);for(let{from:i,to:o}of Fmt(e,this.maxLength))Wce(e.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,e,a,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((o,a,s,l)=>{l>e.view.viewport.from&&s1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let o of e.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=e.state.doc.lineAt(a),u=l.tol.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;sd.push(y.range(v,m));if(l==u)for(this.regexp.lastIndex=c-l.from;(p=this.regexp.exec(l.text))&&p.indexthis.addMatch(m,e,v,g));n=n.update({filterFrom:c,filterTo:f,filter:(v,m)=>vf,add:d})}}return n}}const X8=/x/.unicode!=null?"gu":"g",Qmt=new RegExp(`[\0-\b --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,X8),Hmt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Y8=null;function Gmt(){var t;if(Y8==null&&typeof document<"u"&&document.body){let e=document.body.style;Y8=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Y8||!1}const $T=Ye.define({combine(t){let e=il(t,{render:null,specialChars:Qmt,addSpecialChars:null});return(e.replaceTabs=!Gmt())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,X8)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,X8)),e}});function jmt(t={}){return[$T.of(t),Umt()]}let Qce=null;function Umt(){return Qce||(Qce=rr.fromClass(class{constructor(t){this.view=t,this.decorations=nt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet($T)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Wmt({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,o=Zr(e[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=vv(a.text,s,r-a.from);return nt.replace({widget:new qmt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=nt.replace({widget:new Ymt(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet($T);t.startState.facet($T)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Zmt="•";function Xmt(t){return t>=32?Zmt:t==10?"␤":String.fromCharCode(9216+t)}class Ymt extends ol{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Xmt(this.code),r=e.state.phrase("Control character")+" "+(Hmt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class qmt extends ol{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Kmt(){return e0t}const Jmt=nt.line({class:"cm-activeLine"}),e0t=rr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(Jmt.range(i.from)),e=i.from)}return nt.set(n)}},{decorations:t=>t.decorations});class t0t extends ol{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let n=e.firstChild?mv(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=fT(n[0],r.direction!="rtl"),o=parseInt(r.lineHeight);return i.bottom-i.top>o*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+o}:i}ignoreEvent(){return!1}}function n0t(t){return rr.fromClass(class{constructor(e){this.view=e,this.placeholder=t?nt.set([nt.widget({widget:new t0t(t),side:1}).range(0)]):nt.none}get decorations(){return this.view.state.doc.length?nt.none:this.placeholder}},{decorations:e=>e.decorations})}const q8=2e3;function r0t(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),o=[];if(e.off>q8||n.off>q8||e.col<0||n.col<0){let a=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let l=r;l<=i;l++){let u=t.doc.line(l);u.length<=s&&o.push(Ce.range(u.from+a,u.to+s))}}else{let a=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let l=r;l<=i;l++){let u=t.doc.line(l),c=p8(u.text,a,t.tabSize,!0);if(c<0)o.push(Ce.cursor(u.to));else{let f=p8(u.text,s,t.tabSize);o.push(Ce.range(u.from+c,u.from+f))}}}return o}function i0t(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function Hce(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,o=i>q8?-1:i==r.length?i0t(t,e.clientX):vv(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function o0t(t,e){let n=Hce(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=Hce(t,i);if(!s)return r;let l=r0t(t.state,n,s);return l.length?a?Ce.create(l.concat(r.ranges)):Ce.create(l):r}}:null}function a0t(t){let e=n=>n.altKey&&n.button==0;return He.mouseSelectionStyle.of((n,r)=>e(r)?o0t(n,r):null)}const s0t={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},l0t={style:"cursor: crosshair"};function u0t(t={}){let[e,n]=s0t[t.key||"Alt"],r=rr.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,He.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?l0t:null})]}const Yb="-10000px";class Gce{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let o=null;this.tooltipViews=this.tooltips.map(a=>o=r(a,o))}update(e,n){var r;let i=e.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let a=[],s=n?[]:null;for(let l=0;ln[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function c0t(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const K8=Ye.define({combine:t=>{var e,n,r;return{position:Ze.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||c0t}}}),jce=new WeakMap,J8=rr.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(K8);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Gce(t,e5,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(K8);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=Yb,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Ze.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Yb&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((i,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(K8).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:r}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=t,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){c.style.top=Yb;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,v=d.right-d.left,m=(e=jce.get(u))!==null&&e!==void 0?e:d.bottom-d.top,y=u.offset||d0t,b=this.view.textDirection==In.LTR,O=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.min(f.left-(p?14:0)+y.x,r.right-v):Math.max(r.left,f.left-v+(p?14:0)-y.x),w=this.above[s];!l.strictSide&&(w?f.top-(d.bottom-d.top)-y.yr.bottom)&&w==r.bottom-f.bottom>f.top-r.top&&(w=this.above[s]=!w);let S=(w?f.top-r.top:r.bottom-f.bottom)-g;if(SO&&$.topx&&(x=w?$.top-m-2-g:$.bottom+g+2);if(this.position=="absolute"?(c.style.top=(x-t.parent.top)/o+"px",c.style.left=(O-t.parent.left)/i+"px"):(c.style.top=x/o+"px",c.style.left=O/i+"px"),p){let $=f.left+(b?y.x:-y.x)-(O+14-7);p.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:O,top:x,right:T,bottom:x+m}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),u.positioned&&u.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Yb}},{eventObservers:{scroll(){this.maybeMeasure()}}}),f0t=He.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),d0t={x:0,y:0},e5=Ye.define({enables:[J8,f0t]}),AT=Ye.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class ET{static create(e){return new ET(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Gce(e,AT,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const h0t=e5.compute([AT],t=>{let e=t.facet(AT);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:ET.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class p0t{constructor(e,n,r,i,o){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;es.bottom||n.xs.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==In.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>to(e.state,l,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(J8),n=e?e.manager.tooltips.findIndex(r=>r.create==ET.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:o}=this;if(i.length&&o&&!g0t(o.dom,e)||this.pending){let{pos:a}=i[0]||this.pending,s=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!v0t(this.view,a,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const MT=4;function g0t(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-MT&&e.clientX<=n.right+MT&&e.clientY>=n.top-MT&&e.clientY<=n.bottom+MT}function v0t(t,e,n,r,i,o){let a=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=e&&l<=n}function m0t(t,e={}){let n=Ot.define(),r=kr.define({create(){return[]},update(i,o){if(i.length&&(e.hideOnChange&&(o.docChanged||o.selection)?i=[]:e.hideOn&&(i=i.filter(a=>!e.hideOn(o,a))),o.docChanged)){let a=[];for(let s of i){let l=o.changes.mapPos(s.pos,-1,Xr.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),s);u.pos=l,u.end!=null&&(u.end=o.changes.mapPos(u.end)),a.push(u)}}i=a}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(y0t)&&(i=[]);return i},provide:i=>AT.from(i)});return[r,rr.define(i=>new p0t(i,t,r,n,e.hoverTime||300)),h0t]}function Uce(t,e){let n=t.plugin(J8);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const y0t=Ot.define(),Zce=Ye.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function qb(t,e){let n=t.plugin(Xce),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Xce=rr.fromClass(class{constructor(t){this.input=t.state.facet(Kb),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(Zce);this.top=new IT(t,!0,e.topContainer),this.bottom=new IT(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(Zce);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new IT(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new IT(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Kb);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),s.push(c)):(c=this.panels[u],c.update&&c.update(t)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class IT{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=Yce(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=Yce(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Yce(t){let e=t.nextSibling;return t.remove(),e}const Kb=Ye.define({enables:Xce});class cu extends hh{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}cu.prototype.elementClass="",cu.prototype.toDOM=void 0,cu.prototype.mapMode=Xr.TrackBefore,cu.prototype.startSide=cu.prototype.endSide=-1,cu.prototype.point=!0;const DT=Ye.define(),b0t={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>tn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Jb=Ye.define();function _0t(t){return[Kce(),Jb.of(Object.assign(Object.assign({},b0t),t))]}const qce=Ye.define({combine:t=>t.some(e=>e)});function Kce(t){return[O0t]}const O0t=rr.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Jb).map(e=>new efe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(qce),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(qce)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=tn.iter(this.view.state.facet(DT),this.view.viewport.from),r=[],i=this.gutters.map(o=>new w0t(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==Di.Text&&a){t5(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==Di.Text){t5(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Jb),n=t.state.facet(Jb),r=t.docChanged||t.heightChanged||t.viewportChanged||!tn.eq(t.startState.facet(DT),t.state.facet(DT),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let o of n){let a=e.indexOf(o);a<0?i.push(new efe(this.view,o)):(this.gutters[a].update(t),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==In.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function Jce(t){return Array.isArray(t)?t:[t]}function t5(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class w0t{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=tn.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,o=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==i.elements.length){let s=new tfe(e,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(e,a,o,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];t5(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(e,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n);r&&this.addElement(e,n,[r])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class efe{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[r](e,s,i)&&i.preventDefault()});this.markers=Jce(n.markers(e)),n.initialSpacer&&(this.spacer=new tfe(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=Jce(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!tn.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class tfe{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),S0t(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=oo(s,l,u)||a(s,l,u):a}return r}})}});class n5 extends cu{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function r5(t,e){return t.state.facet(Sv).formatNumber(e,t.state)}const C0t=Jb.compute([Sv],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(x0t)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new n5(r5(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Sv)!=e.state.facet(Sv),initialSpacer(e){return new n5(r5(e,nfe(e.state.doc.lines)))},updateSpacer(e,n){let r=r5(n.view,nfe(n.view.state.doc.lines));return r==e.number?e:new n5(r)},domEventHandlers:t.facet(Sv).domEventHandlers}));function T0t(t={}){return[Sv.of(t),Kce(),C0t]}function nfe(t){let e=9;for(;e{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(P0t.range(i)))}return tn.of(e)});function A0t(){return $0t}const rfe=1024;let E0t=0;class i5{constructor(e,n){this.from=e,this.to=n}}class Bt{constructor(e={}){this.id=E0t++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=no.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}Bt.closedBy=new Bt({deserialize:t=>t.split(" ")}),Bt.openedBy=new Bt({deserialize:t=>t.split(" ")}),Bt.group=new Bt({deserialize:t=>t.split(" ")}),Bt.isolate=new Bt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),Bt.contextHash=new Bt({perNode:!0}),Bt.lookAhead=new Bt({perNode:!0}),Bt.mounted=new Bt({perNode:!0});class RT{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[Bt.mounted.id]}}const M0t=Object.create(null);class no{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):M0t,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new no(e.name||"",n,e.id,r);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Bt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(Bt.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}no.none=new no("",Object.create(null),0,8);class o5{constructor(e){this.types=e;for(let n=0;n0;for(let l=this.cursor(a|Cr.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:c5(no.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new hr(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new hr(no.none,n,r,i)))}static build(e){return k0t(e)}}hr.empty=new hr(no.none,[],[],0);class a5{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new a5(this.buffer,this.index)}}class zc{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return no.none}toString(){let e=[];for(let n=0;n0));l=a[l+3]);return s}slice(e,n,r){let i=this.buffer,o=new Uint16Array(n-e),a=0;for(let s=e,l=0;s=e&&ne;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function e_(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?s.length:-1;e!=u;e+=n){let c=s[e],f=l[e]+a.from;if(ofe(i,r,f,f+c.length)){if(c instanceof zc){if(o&Cr.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,n,r-f,i);if(d>-1)return new ll(new I0t(a,c,e,f),null,d)}else if(o&Cr.IncludeAnonymous||!c.type.isAnonymous||u5(c)){let d;if(!(o&Cr.IgnoreMounts)&&(d=RT.get(c))&&!d.overlay)return new ro(d.tree,f,e,a);let p=new ro(c,f,e,a);return o&Cr.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&Cr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+n:e=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&Cr.IgnoreOverlays)&&(i=RT.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a=o:s>o))return new ro(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function sfe(t,e,n,r){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function s5(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class I0t{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class ll extends afe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return o<0?null:new ll(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&Cr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new ll(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new ll(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new ll(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];e.push(r.slice(i,o,a)),n.push(0)}return new hr(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function lfe(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;on.from||a.to=e){let s=new ro(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(e_(s,e,n,!1))}}return i?lfe(i):r}class l5{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ro)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof ro?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&Cr.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Cr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Cr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let o=n+e,a=e<0?-1:r._tree.children.length;o!=a;o+=e){let s=r._tree.children[o];if(this.mode&Cr.IncludeAnonymous||s instanceof zc||!s.type.isAnonymous||u5(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i=0;o--){if(o<0)return s5(this.node,e,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function u5(t){return t.children.some(e=>e instanceof zc||!e.type.isAnonymous||u5(e))}function k0t(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=rfe,reused:o=[],minRepeatType:a=r.types.length}=t,s=Array.isArray(n)?new a5(n,n.length):n,l=r.types,u=0,c=0;function f(S,x,T,$,A,P){let{id:M,start:I,end:R,size:L}=s,D=c;for(;L<0;)if(s.next(),L==-1){let j=o[M];T.push(j),$.push(I-S);return}else if(L==-3){u=M;return}else if(L==-4){c=M;return}else throw new RangeError(`Unrecognized record size: ${L}`);let B=l[M],F,z,W=I-S;if(R-I<=i&&(z=m(s.pos-x,A))){let j=new Uint16Array(z.size-z.skip),H=s.pos-z.size,Z=j.length;for(;s.pos>H;)Z=y(z.start,j,Z);F=new zc(j,R-z.start,r),W=z.start-S}else{let j=s.pos-L;s.next();let H=[],Z=[],J=M>=a?M:-1,se=0,oe=R;for(;s.pos>j;)J>=0&&s.id==J&&s.size>=0?(s.end<=oe-i&&(g(H,Z,I,se,s.end,oe,J,D),se=H.length,oe=s.end),s.next()):P>2500?d(I,j,H,Z):f(I,j,H,Z,J,P+1);if(J>=0&&se>0&&se-1&&se>0){let de=p(B);F=c5(B,H,Z,0,H.length,0,R-I,de,de)}else F=v(B,H,Z,R-I,D-R)}T.push(F),$.push(W)}function d(S,x,T,$){let A=[],P=0,M=-1;for(;s.pos>x;){let{id:I,start:R,end:L,size:D}=s;if(D>4)s.next();else{if(M>-1&&R=0;L-=3)I[D++]=A[L],I[D++]=A[L+1]-R,I[D++]=A[L+2]-R,I[D++]=D;T.push(new zc(I,A[2]-R,r)),$.push(R-S)}}function p(S){return(x,T,$)=>{let A=0,P=x.length-1,M,I;if(P>=0&&(M=x[P])instanceof hr){if(!P&&M.type==S&&M.length==$)return M;(I=M.prop(Bt.lookAhead))&&(A=T[P]+M.length+I)}return v(S,x,T,$,A)}}function g(S,x,T,$,A,P,M,I){let R=[],L=[];for(;S.length>$;)R.push(S.pop()),L.push(x.pop()+T-A);S.push(v(r.types[M],R,L,P-A,I-P)),x.push(A-T)}function v(S,x,T,$,A=0,P){if(u){let M=[Bt.contextHash,u];P=P?[M].concat(P):[M]}if(A>25){let M=[Bt.lookAhead,A];P=P?[M].concat(P):[M]}return new hr(S,x,T,$,P)}function m(S,x){let T=s.fork(),$=0,A=0,P=0,M=T.end-i,I={size:0,start:0,skip:0};e:for(let R=T.pos-S;T.pos>R;){let L=T.size;if(T.id==x&&L>=0){I.size=$,I.start=A,I.skip=P,P+=4,$+=4,T.next();continue}let D=T.pos-L;if(L<0||D=a?4:0,F=T.start;for(T.next();T.pos>D;){if(T.size<0)if(T.size==-3)B+=4;else break e;else T.id>=a&&(B+=4);T.next()}A=F,$+=L,P+=B}return(x<0||$==S)&&(I.size=$,I.start=A,I.skip=P),I.size>4?I:void 0}function y(S,x,T){let{id:$,start:A,end:P,size:M}=s;if(s.next(),M>=0&&$4){let R=s.pos-(M-4);for(;s.pos>R;)T=y(S,x,T)}x[--T]=I,x[--T]=P-S,x[--T]=A-S,x[--T]=$}else M==-3?u=$:M==-4&&(c=$);return T}let b=[],O=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,b,O,-1,0);let w=(e=t.length)!==null&&e!==void 0?e:b.length?O[0]+b[0].length:0;return new hr(l[t.topID],b.reverse(),O.reverse(),w)}const ufe=new WeakMap;function NT(t,e){if(!t.isAnonymous||e instanceof zc||e.type!=t)return 1;let n=ufe.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof hr)){n=1;break}n+=NT(t,r)}ufe.set(e,n)}return n}function c5(t,e,n,r,i,o,a,s,l){let u=0;for(let g=r;g=c)break;x+=T}if(O==w+1){if(x>c){let T=g[w];p(T.children,T.positions,0,T.children.length,v[w]+b);continue}f.push(g[w])}else{let T=v[O-1]+g[O-1].length-S;f.push(c5(t,g,v,w,O,S,T,null,l))}d.push(S+b-o)}}return p(e,n,r,i,0),(s||l)(f,d,a)}class N0t{constructor(){this.map=new WeakMap}setBuffer(e,n,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(n,r)}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof ll?this.setBuffer(e.context.buffer,e.index,n):e instanceof ro&&this.map.set(e.tree,n)}get(e){return e instanceof ll?this.getBuffer(e.context.buffer,e.index):e instanceof ro?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class mh{constructor(e,n,r,i,o=!1,a=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new mh(0,e.length,e,0,!1,r)];for(let o of n)o.to>e.length&&i.push(o);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],o=1,a=e.length?e[0]:null;for(let s=0,l=0,u=0;;s++){let c=s=r)for(;a&&a.from=d.from||f<=d.to||u){let p=Math.max(d.from,l)-u,g=Math.min(d.to,f)-u;d=p>=g?null:new mh(p,g,d.tree,d.offset+u,s>0,!!c)}if(d&&i.push(d),a.to>f)break;a=onew i5(i.from,i.to)):[new i5(0,0)]:[new i5(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let o=i.advance();if(o)return o}}}class L0t{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Bt({perNode:!0});let B0t=0;class ul{constructor(e,n,r){this.set=e,this.base=n,this.modified=r,this.id=B0t++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new ul([],null,[]);if(n.set.push(n),e)for(let r of e.set)n.set.push(r);return n}static defineModifier(){let e=new LT;return n=>n.modified.indexOf(e)>-1?n:LT.get(n.base||n,n.modified.concat(e).sort((r,i)=>r.id-i.id))}}let V0t=0;class LT{constructor(){this.instances=[],this.id=V0t++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(s=>s.base==e&&z0t(n,s.modified));if(r)return r;let i=[],o=new ul(i,e,n);for(let s of n)s.instances.push(o);let a=F0t(n);for(let s of e.set)if(!s.modified.length)for(let l of a)i.push(LT.get(s,l));return o}}function z0t(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function F0t(t){let e=[[]];for(let n=0;nr.length-n.length)}function f5(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let f=0;;){if(s=="..."&&f>0&&f+3==i.length){a=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+i);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==i.length)break;let p=i[f++];if(f==i.length&&p=="!"){a=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);s=i.slice(f)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new BT(r,a,l>0?o.slice(0,l):null);e[u]=c.sort(e[u])}}return ffe.add(e)}const ffe=new Bt;class BT{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function W0t(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function Q0t(t,e,n,r=0,i=t.length){let o=new H0t(r,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),r,i,"",o.highlighters),o.flush(i)}class H0t{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,o){let{type:a,from:s,to:l}=e;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(a)));let u=i,c=G0t(e)||BT.empty,f=W0t(o,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(Bt.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+s,1),g=this.highlighters.filter(m=>!m.scope||m.scope(d.tree.type)),v=e.firstChild();for(let m=0,y=s;;m++){let b=m=O||!e.nextSibling())););if(!b||O>r)break;y=b.to+s,y>n&&(this.highlightRange(p.cursor(),Math.max(n,b.from+s),Math.min(r,y),"",g),this.startSpan(Math.min(r,y),u))}v&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,o),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}}function G0t(t){let e=t.type.prop(ffe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ve=ul.define,VT=Ve(),Fc=Ve(),hfe=Ve(Fc),pfe=Ve(Fc),Wc=Ve(),zT=Ve(Wc),d5=Ve(Wc),cl=Ve(),yh=Ve(cl),fl=Ve(),dl=Ve(),h5=Ve(),t_=Ve(h5),FT=Ve(),ae={comment:VT,lineComment:Ve(VT),blockComment:Ve(VT),docComment:Ve(VT),name:Fc,variableName:Ve(Fc),typeName:hfe,tagName:Ve(hfe),propertyName:pfe,attributeName:Ve(pfe),className:Ve(Fc),labelName:Ve(Fc),namespace:Ve(Fc),macroName:Ve(Fc),literal:Wc,string:zT,docString:Ve(zT),character:Ve(zT),attributeValue:Ve(zT),number:d5,integer:Ve(d5),float:Ve(d5),bool:Ve(Wc),regexp:Ve(Wc),escape:Ve(Wc),color:Ve(Wc),url:Ve(Wc),keyword:fl,self:Ve(fl),null:Ve(fl),atom:Ve(fl),unit:Ve(fl),modifier:Ve(fl),operatorKeyword:Ve(fl),controlKeyword:Ve(fl),definitionKeyword:Ve(fl),moduleKeyword:Ve(fl),operator:dl,derefOperator:Ve(dl),arithmeticOperator:Ve(dl),logicOperator:Ve(dl),bitwiseOperator:Ve(dl),compareOperator:Ve(dl),updateOperator:Ve(dl),definitionOperator:Ve(dl),typeOperator:Ve(dl),controlOperator:Ve(dl),punctuation:h5,separator:Ve(h5),bracket:t_,angleBracket:Ve(t_),squareBracket:Ve(t_),paren:Ve(t_),brace:Ve(t_),content:cl,heading:yh,heading1:Ve(yh),heading2:Ve(yh),heading3:Ve(yh),heading4:Ve(yh),heading5:Ve(yh),heading6:Ve(yh),contentSeparator:Ve(cl),list:Ve(cl),quote:Ve(cl),emphasis:Ve(cl),strong:Ve(cl),link:Ve(cl),monospace:Ve(cl),strikethrough:Ve(cl),inserted:Ve(),deleted:Ve(),changed:Ve(),invalid:Ve(),meta:FT,documentMeta:Ve(FT),annotation:Ve(FT),processingInstruction:Ve(FT),definition:ul.defineModifier(),constant:ul.defineModifier(),function:ul.defineModifier(),standard:ul.defineModifier(),local:ul.defineModifier(),special:ul.defineModifier()};dfe([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);var p5;const xv=new Bt;function gfe(t){return Ye.define({combine:t?e=>e.concat(t):void 0})}const g5=new Bt;class vs{constructor(e,n,r=[],i=""){this.data=e,this.name=i,Gt.prototype.hasOwnProperty("tree")||Object.defineProperty(Gt.prototype,"tree",{get(){return Tr(this)}}),this.parser=n,this.extension=[Qc.of(this),Gt.languageData.of((o,a,s)=>{let l=vfe(o,a,s),u=l.type.prop(xv);if(!u)return[];let c=o.facet(u),f=l.type.prop(g5);if(f){let d=l.resolve(a-l.from,s);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(c)}}return c})].concat(r)}isActiveAt(e,n,r=-1){return vfe(e,n,r).type.prop(xv)==this.data}findRegions(e){let n=e.facet(Qc);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(xv)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(Bt.mounted);if(s){if(s.tree.prop(xv)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),e.name)}configure(e,n){return new n_(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Tr(t){let e=t.field(vs.state,!1);return e?e.tree:hr.empty}class j0t{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let r_=null;class WT{constructor(e,n,r=[],i,o,a,s,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new WT(e,n,[],hr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new j0t(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=hr.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(mh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=r_;r_=this;try{return e()}finally{r_=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=mfe(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),r=mh.applyChanges(r,l),i=hr.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);ce.from&&(this.fragments=mfe(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends cfe{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=r_;if(l){for(let u of i)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=a,new hr(no.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return r_}}function mfe(t,e,n){return mh.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Cv{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Cv(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=WT.create(e.facet(Qc).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Cv(r)}}vs.state=kr.define({create:Cv.init,update(t,e){for(let n of e.effects)if(n.is(vs.setState))return n.value;return e.startState.facet(Qc)!=e.state.facet(Qc)?Cv.init(e.state):t.apply(e)}});let yfe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(yfe=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const v5=typeof navigator<"u"&&(!((p5=navigator.scheduling)===null||p5===void 0)&&p5.isInputPending)?()=>navigator.scheduling.isInputPending():null,U0t=rr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(vs.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(vs.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=yfe(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>v5&&v5()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:vs.setState.of(new Cv(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>to(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Qc=Ye.define({combine(t){return t.length?t[0]:null},enables:t=>[vs.state,U0t,He.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class bfe{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const Z0t=Ye.define(),i_=Ye.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function QT(t){let e=t.facet(i_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function o_(t,e){let n="",r=t.tabSize,i=t.facet(i_)[0];if(i==" "){for(;e>=r;)n+=" ",e-=r;i=" "}for(let o=0;o=e?X0t(t,n,e):null}class HT{constructor(e,n={}){this.state=e,this.options=n,this.unit=QT(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==e?{text:"",from:e}:(n<0?i-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,n=e.length){return vv(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const y5=new Bt;function X0t(t,e,n){let r=e.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return _fe(r,t,n)}function _fe(t,e,n){for(let r=t;r;r=r.next){let i=q0t(r.node);if(i)return i(b5.create(e,n,r))}return 0}function Y0t(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function q0t(t){let e=t.type.prop(y5);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(Bt.closedBy))){let i=t.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>Ofe(a,!0,1,void 0,o&&!Y0t(a)?i.from:void 0)}return t.parent==null?K0t:null}function K0t(){return 0}class b5 extends HT{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new b5(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(J0t(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return _fe(this.context.next,this.base,this.pos)}}function J0t(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function eyt(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=e.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromOfe(r,e,n,t)}function Ofe(t,e,n,r,i){let o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,l=e?eyt(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*n)}const nyt=t=>t.baseIndent;function a_({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const ryt=200;function iyt(){return Gt.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+ryt)return t;let o=n.sliceString(i.from,r);if(!e.some(u=>u.test(o)))return t;let{state:a}=t,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=m5(a,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],p=o_(a,f);d!=p&&l.push({from:c.from,to:c.from+d.length,insert:p})}return l.length?[t,{changes:l,sequential:!0}]:t})}const oyt=Ye.define(),_5=new Bt;function wfe(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(o&&s.from=e&&u.to>n&&(o=u)}}return o}function syt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function GT(t,e,n){for(let r of t.facet(oyt)){let i=r(t,e,n);if(i)return i}return ayt(t,e,n)}function Sfe(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const jT=Ot.define({map:Sfe}),s_=Ot.define({map:Sfe});function xfe(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const bh=kr.define({create(){return nt.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(jT)&&!lyt(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Pfe),i=r?nt.replace({widget:new hyt(r(e.state,n.value))}):Efe;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(s_)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,o)=>{ir&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return t},provide:t=>He.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!i||i.from>o)&&(i={from:o,to:a})}),i}function lyt(t,e,n){let r=!1;return t.between(e,e,(i,o)=>{i==e&&o==n&&(r=!0)}),r}function Cfe(t,e){return t.field(bh,!1)?e:e.concat(Ot.appendConfig.of($fe()))}const uyt=t=>{for(let e of xfe(t)){let n=GT(t.state,e.from,e.to);if(n)return t.dispatch({effects:Cfe(t.state,[jT.of(n),Tfe(t,n)])}),!0}return!1},cyt=t=>{if(!t.state.field(bh,!1))return!1;let e=[];for(let n of xfe(t)){let r=UT(t.state,n.from,n.to);r&&e.push(s_.of(r),Tfe(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Tfe(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return He.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const fyt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:uyt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:cyt},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r{let e=t.state.field(bh,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(s_.of({from:r,to:i}))}),t.dispatch({effects:n}),!0}}],dyt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Pfe=Ye.define({combine(t){return il(t,dyt)}});function $fe(t){return[bh,vyt]}function Afe(t,e){let{state:n}=t,r=n.facet(Pfe),i=a=>{let s=t.lineBlockAt(t.posAtDOM(a.target)),l=UT(t.state,s.from,s.to);l&&t.dispatch({effects:s_.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const Efe=nt.replace({widget:new class extends ol{toDOM(t){return Afe(t,null)}}});class hyt extends ol{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Afe(e,this.value)}}const pyt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class O5 extends cu{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function gyt(t={}){let e=Object.assign(Object.assign({},pyt),t),n=new O5(e,!0),r=new O5(e,!1),i=rr.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Qc)!=a.state.facet(Qc)||a.startState.field(bh,!1)!=a.state.field(bh,!1)||Tr(a.startState)!=Tr(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Ic;for(let l of a.viewportLineBlocks){let u=UT(a.state,l.from,l.to)?r:GT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=e;return[i,_0t({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||tn.empty},initialSpacer(){return new O5(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=UT(a.state,s.from,s.to);if(u)return a.dispatch({effects:s_.of(u)}),!0;let c=GT(a.state,s.from,s.to);return c?(a.dispatch({effects:jT.of(c)}),!0):!1}})}),$fe()]}const vyt=He.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class l_{constructor(e,n){this.specs=e;let r;function i(s){let l=Dc.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof vs?s=>s.prop(xv)==a.data:a?s=>s==a:void 0,this.style=dfe(e.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new Dc(r):null,this.themeType=n.themeType}static define(e,n){return new l_(e,n||{})}}const w5=Ye.define(),Mfe=Ye.define({combine(t){return t.length?[t[0]]:null}});function S5(t){let e=t.facet(w5);return e.length?e:t.facet(Mfe)}function Ife(t,e){let n=[yyt],r;return t instanceof l_&&(t.module&&n.push(He.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(Mfe.of(t)):r?n.push(w5.computeN([He.darkTheme],i=>i.facet(He.darkTheme)==(r=="dark")?[t]:[])):n.push(w5.of(t)),n}class myt{constructor(e){this.markCache=Object.create(null),this.tree=Tr(e.state),this.decorations=this.buildDeco(e,S5(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Tr(e.state),r=S5(e.state),i=r!=S5(e.startState),{viewport:o}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,n){if(!n||!this.tree.length)return nt.none;let r=new Ic;for(let{from:i,to:o}of e.visibleRanges)Q0t(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=nt.mark({class:l})))},i,o);return r.finish()}}const yyt=Mc.high(rr.fromClass(myt,{decorations:t=>t.decorations})),byt=l_.define([{tag:ae.meta,color:"#404740"},{tag:ae.link,textDecoration:"underline"},{tag:ae.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strong,fontWeight:"bold"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.keyword,color:"#708"},{tag:[ae.atom,ae.bool,ae.url,ae.contentSeparator,ae.labelName],color:"#219"},{tag:[ae.literal,ae.inserted],color:"#164"},{tag:[ae.string,ae.deleted],color:"#a11"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],color:"#e40"},{tag:ae.definition(ae.variableName),color:"#00f"},{tag:ae.local(ae.variableName),color:"#30a"},{tag:[ae.typeName,ae.namespace],color:"#085"},{tag:ae.className,color:"#167"},{tag:[ae.special(ae.variableName),ae.macroName],color:"#256"},{tag:ae.definition(ae.propertyName),color:"#00c"},{tag:ae.comment,color:"#940"},{tag:ae.invalid,color:"#f00"}]),_yt=He.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Dfe=1e4,Rfe="()[]{}",kfe=Ye.define({combine(t){return il(t,{afterCursor:!0,brackets:Rfe,maxScanDistance:Dfe,renderMatch:Syt})}}),Oyt=nt.mark({class:"cm-matchingBracket"}),wyt=nt.mark({class:"cm-nonmatchingBracket"});function Syt(t){let e=[],n=t.matched?Oyt:wyt;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const xyt=[kr.define({create(){return nt.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(kfe);for(let i of e.state.selection.ranges){if(!i.empty)continue;let o=hl(e.state,i.head,-1,r)||i.head>0&&hl(e.state,i.head-1,1,r)||r.afterCursor&&(hl(e.state,i.head,1,r)||i.headHe.decorations.from(t)}),_yt];function Cyt(t={}){return[kfe.of(t),xyt]}const Tyt=new Bt;function x5(t,e,n){let r=t.prop(e<0?Bt.openedBy:Bt.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function C5(t){let e=t.type.prop(Tyt);return e?e(t.node):t}function hl(t,e,n,r={}){let i=r.maxScanDistance||Dfe,o=r.brackets||Rfe,a=Tr(t),s=a.resolveInner(e,n);for(let l=s;l;l=l.parent){let u=x5(l.type,n,o);if(u&&l.from0?e>=c.from&&ec.from&&e<=c.to))return Pyt(t,e,n,l,c,u,o)}}return $yt(t,e,n,a,s.type,i,o)}function Pyt(t,e,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=o;){let p=c.value;n<0&&(d+=p.length);let g=e+d*n;for(let v=n>0?0:p.length-1,m=n>0?p.length:-1;v!=m;v+=n){let y=a.indexOf(p[v]);if(!(y<0||r.resolveInner(g+v,1).type!=i))if(y%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:g+v,to:g+v+1},matched:y>>1==l>>1};f--}}n>0&&(d+=p.length)}return c.done?{start:u,matched:!1}:null}const Ayt=Object.create(null),Nfe=[no.none],Lfe=[],Bfe=Object.create(null),Eyt=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Eyt[t]=Myt(Ayt,e);function T5(t,e){Lfe.indexOf(t)>-1||(Lfe.push(t),console.warn(e))}function Myt(t,e){let n=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||ae[u];c?typeof c=="function"?l.length?l=l.map(c):T5(u,`Modifier ${u} used at start of tag`):l.length?T5(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:T5(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=Bfe[i];if(o)return o.id;let a=Bfe[i]=no.define({id:Nfe.length,name:r,props:[f5({[r]:n})]});return Nfe.push(a),a.id}In.RTL,In.LTR;const Iyt=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=$5(t.state,n.from);return r.line?Dyt(t):r.block?kyt(t):!1};function P5(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const Dyt=P5(Byt,0),Ryt=P5(Vfe,0),kyt=P5((t,e)=>Vfe(t,e,Lyt(e)),0);function $5(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const u_=50;function Nyt(t,{open:e,close:n},r,i){let o=t.sliceDoc(r-u_,r),a=t.sliceDoc(i,i+u_),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-e.length,u)==e&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*u_?c=f=t.sliceDoc(r,i):(c=t.sliceDoc(r,r+u_),f=t.sliceDoc(i-u_,i));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-n.length;return c.slice(d,d+e.length)==e&&f.slice(g,g+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function Lyt(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function Vfe(t,e,n=e.selection.ranges){let r=n.map(o=>$5(e,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>Nyt(e,r[a],o.from,o.to));if(t!=2&&!i.every(o=>o))return{changes:e.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(t!=1&&i.some(o=>o)){let o=[];for(let a=0,s;ai&&(o==a||a>f.from)){i=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+u.length)==u?d:-1;do.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&o.push({from:s.from+u,insert:l+" "});let a=e.changes(o);return{changes:a,selection:e.selection.map(a,1)}}else if(t!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const A5=au.define(),Vyt=au.define(),zyt=Ye.define(),zfe=Ye.define({combine(t){return il(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),Ffe=kr.define({create(){return pl.empty},update(t,e){let n=e.state.facet(zfe),r=e.annotation(A5);if(r){let l=io.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=XT(c,c.length,n.minDepth,l):c=Hfe(c,e.startState.selection),new pl(u==0?r.rest:c,u==0?c:r.rest)}let i=e.annotation(Vyt);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(fr.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=io.fromTransaction(e),a=e.annotation(fr.time),s=e.annotation(fr.userEvent);return o?t=t.addChanges(o,a,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,s,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new pl(t.done.map(io.fromJSON),t.undone.map(io.fromJSON))}});function Fyt(t={}){return[Ffe,zfe.of(t),He.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?Wfe:e.inputType=="historyRedo"?E5:null;return r?(e.preventDefault(),r(n)):!1}})]}function ZT(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(Ffe,!1);if(!i)return!1;let o=i.pop(t,n,e);return o?(r(o),!0):!1}}const Wfe=ZT(0,!1),E5=ZT(1,!1),Wyt=ZT(0,!0),Qyt=ZT(1,!0);class io{constructor(e,n,r,i,o){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(e){return new io(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new io(e.changes&&xr.fromJSON(e.changes),[],e.mapped&&rl.fromJSON(e.mapped),e.startSelection&&Ce.fromJSON(e.startSelection),e.selectionsAfter.map(Ce.fromJSON))}static fromTransaction(e,n){let r=Pa;for(let i of e.startState.facet(zyt)){let o=i(e);o.length&&(r=r.concat(o))}return!r.length&&e.changes.empty?null:new io(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,Pa)}static selection(e){return new io(void 0,Pa,void 0,void 0,e)}}function XT(t,e,n,r){let i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function Hyt(t,e){let n=[],r=!1;return t.iterChangedRanges((i,o)=>n.push(i,o)),e.iterChangedRanges((i,o,a,s)=>{for(let l=0;l=u&&a<=c&&(r=!0)}}),r}function Gyt(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function Qfe(t,e){return t.length?e.length?t.concat(e):t:e}const Pa=[],jyt=200;function Hfe(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-jyt));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),XT(t,t.length-1,1e9,n.setSelAfter(r)))}else return[io.selection([e])]}function Uyt(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function M5(t,e){if(!t.length)return t;let n=t.length,r=Pa;for(;n;){let i=Zyt(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=t.slice(0,n);return o[n-1]=i,o}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[io.selection(r)]:Pa}function Zyt(t,e,n){let r=Qfe(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):Pa,n);if(!t.changes)return io.selection(r);let i=t.changes.map(e),o=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(o):o;return new io(i,Ot.mapEffects(t.effects,e),a,t.startSelection.map(o),r)}const Xyt=/^(input\.type|delete)($|\.)/;class pl{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new pl(this.done,this.undone):this}addChanges(e,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||Xyt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?t.moveByChar(n,e):YT(n,e))}function hi(t){return t.textDirectionAt(t.state.selection.main.head)==In.LTR}const jfe=t=>Gfe(t,!hi(t)),Ufe=t=>Gfe(t,hi(t));function Zfe(t,e){return ms(t,n=>n.empty?t.moveByGroup(n,e):YT(n,e))}const qyt=t=>Zfe(t,!hi(t)),Kyt=t=>Zfe(t,hi(t));function Jyt(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function qT(t,e,n){let r=Tr(t).resolveInner(e.head),i=n?Bt.closedBy:Bt.openedBy;for(let l=e.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;Jyt(t,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?hl(t,r.from,1):hl(t,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,Ce.cursor(s,n?-1:1)}const ebt=t=>ms(t,e=>qT(t.state,e,!hi(t))),tbt=t=>ms(t,e=>qT(t.state,e,hi(t)));function Xfe(t,e){return ms(t,n=>{if(!n.empty)return YT(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const Yfe=t=>Xfe(t,!1),qfe=t=>Xfe(t,!0);function Kfe(t){let e=t.scrollDOM.clientHeighta.empty?t.moveVertically(a,e,n.height):YT(a,e));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottomJfe(t,!1),I5=t=>Jfe(t,!0);function Hc(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let o=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&e.head!=r.from+o&&(i=Ce.cursor(r.from+o))}return i}const nbt=t=>ms(t,e=>Hc(t,e,!0)),rbt=t=>ms(t,e=>Hc(t,e,!1)),ibt=t=>ms(t,e=>Hc(t,e,!hi(t))),obt=t=>ms(t,e=>Hc(t,e,hi(t))),abt=t=>ms(t,e=>Ce.cursor(t.lineBlockAt(e.head).from,1)),sbt=t=>ms(t,e=>Ce.cursor(t.lineBlockAt(e.head).to,-1));function lbt(t,e,n){let r=!1,i=Tv(t.selection,o=>{let a=hl(t,o.head,-1)||hl(t,o.head,1)||o.head>0&&hl(t,o.head-1,1)||o.headlbt(t,e);function $a(t,e){let n=Tv(t.state.selection,r=>{let i=e(r);return Ce.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(gl(t.state,n)),!0)}function tde(t,e){return $a(t,n=>t.moveByChar(n,e))}const nde=t=>tde(t,!hi(t)),rde=t=>tde(t,hi(t));function ide(t,e){return $a(t,n=>t.moveByGroup(n,e))}const cbt=t=>ide(t,!hi(t)),fbt=t=>ide(t,hi(t)),dbt=t=>$a(t,e=>qT(t.state,e,!hi(t))),hbt=t=>$a(t,e=>qT(t.state,e,hi(t)));function ode(t,e){return $a(t,n=>t.moveVertically(n,e))}const ade=t=>ode(t,!1),sde=t=>ode(t,!0);function lde(t,e){return $a(t,n=>t.moveVertically(n,e,Kfe(t).height))}const ude=t=>lde(t,!1),cde=t=>lde(t,!0),pbt=t=>$a(t,e=>Hc(t,e,!0)),gbt=t=>$a(t,e=>Hc(t,e,!1)),vbt=t=>$a(t,e=>Hc(t,e,!hi(t))),mbt=t=>$a(t,e=>Hc(t,e,hi(t))),ybt=t=>$a(t,e=>Ce.cursor(t.lineBlockAt(e.head).from)),bbt=t=>$a(t,e=>Ce.cursor(t.lineBlockAt(e.head).to)),fde=({state:t,dispatch:e})=>(e(gl(t,{anchor:0})),!0),dde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.doc.length})),!0),hde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.selection.main.anchor,head:0})),!0),pde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),_bt=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),Obt=({state:t,dispatch:e})=>{let n=JT(t).map(({from:r,to:i})=>Ce.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:Ce.create(n),userEvent:"select"})),!0},wbt=({state:t,dispatch:e})=>{let n=Tv(t.selection,r=>{var i;let o=Tr(t).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return Ce.range(s.to,s.from)}return r});return e(gl(t,n)),!0},Sbt=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Ce.create([n.main]):n.main.empty||(r=Ce.create([Ce.cursor(n.main.head)])),r?(e(gl(t,r)),!0):!1};function c_(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=e(o);la&&(n="delete.forward",l=KT(t,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=KT(t,a,!1),s=KT(t,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:Ce.cursor(a,ai(t)))r.between(e,e,(i,o)=>{ie&&(e=n?o:i)});return e}const gde=(t,e,n)=>c_(t,r=>{let i=r.from,{state:o}=t,a=o.doc.lineAt(i),s,l;if(n&&!e&&i>a.from&&igde(t,!1,!0),vde=t=>gde(t,!0,!1),mde=(t,e)=>c_(t,n=>{let r=n.head,{state:i}=t,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(e?o.to:o.from)){r==n.head&&o.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=Ur(o.text,r-o.from,e)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),yde=t=>mde(t,!1),xbt=t=>mde(t,!0),Cbt=t=>c_(t,e=>{let n=t.lineBlockAt(e.head).to;return e.headc_(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),Pbt=t=>c_(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:en.of(["",""])},range:Ce.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Abt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,o=t.doc.lineAt(i),a=i==o.from?i-1:Ur(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:Ur(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:t.doc.slice(i,s).append(t.doc.slice(a,i))},range:Ce.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function JT(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=t.doc.lineAt(r.to-1)),n>=i.number){let a=e[e.length-1];a.to=o.to,a.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function bde(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let o of JT(t)){if(n?o.to==t.doc.length:o.from==0)continue;let a=t.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+t.lineBreak});for(let l of o.ranges)i.push(Ce.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:t.lineBreak+a.text});for(let l of o.ranges)i.push(Ce.range(l.anchor-s,l.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:Ce.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Ebt=({state:t,dispatch:e})=>bde(t,e,!1),Mbt=({state:t,dispatch:e})=>bde(t,e,!0);function _de(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of JT(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ibt=({state:t,dispatch:e})=>_de(t,e,!1),Dbt=({state:t,dispatch:e})=>_de(t,e,!0),Rbt=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(JT(e).map(({from:i,to:o})=>(i>0?i--:o{let o;if(t.lineWrapping){let a=t.lineBlockAt(i.head),s=t.coordsAtPos(i.head,i.assoc||1);s&&(o=a.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,o)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function kbt(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Tr(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),o;return r&&i&&r.to<=e&&i.from>=e&&(o=r.type.prop(Bt.closedBy))&&o.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const Nbt=Ode(!1),Lbt=Ode(!0);function Ode(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:o,to:a}=i,s=e.doc.lineAt(o),l=!t&&o==a&&kbt(e,o);t&&(o=a=(a<=s.to?s:e.doc.lineAt(a)).to);let u=new HT(e,{simulateBreak:o,simulateDoubleBreak:!!l}),c=m5(u,o);for(c==null&&(c=vv(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));as.from&&o{let i=[];for(let a=r.from;a<=r.to;){let s=t.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),a=s.to+1}let o=t.changes(i);return{changes:i,range:Ce.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const Bbt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new HT(t,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=R5(t,(o,a,s)=>{let l=m5(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=o_(t,l);(u!=c||s.fromt.readOnly?!1:(e(t.update(R5(t,(n,r)=>{r.push({from:n.from,insert:t.facet(i_)})}),{userEvent:"input.indent"})),!0),Sde=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(R5(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=vv(i,t.tabSize),a=0,s=o_(t,Math.max(0,o-QT(t)));for(;a(t.setTabFocusMode(),!0),zbt=[{key:"Ctrl-b",run:jfe,shift:nde,preventDefault:!0},{key:"Ctrl-f",run:Ufe,shift:rde},{key:"Ctrl-p",run:Yfe,shift:ade},{key:"Ctrl-n",run:qfe,shift:sde},{key:"Ctrl-a",run:abt,shift:ybt},{key:"Ctrl-e",run:sbt,shift:bbt},{key:"Ctrl-d",run:vde},{key:"Ctrl-h",run:D5},{key:"Ctrl-k",run:Cbt},{key:"Ctrl-Alt-h",run:yde},{key:"Ctrl-o",run:$bt},{key:"Ctrl-t",run:Abt},{key:"Ctrl-v",run:I5}],Fbt=[{key:"ArrowLeft",run:jfe,shift:nde,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:qyt,shift:cbt,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:ibt,shift:vbt,preventDefault:!0},{key:"ArrowRight",run:Ufe,shift:rde,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Kyt,shift:fbt,preventDefault:!0},{mac:"Cmd-ArrowRight",run:obt,shift:mbt,preventDefault:!0},{key:"ArrowUp",run:Yfe,shift:ade,preventDefault:!0},{mac:"Cmd-ArrowUp",run:fde,shift:hde},{mac:"Ctrl-ArrowUp",run:ede,shift:ude},{key:"ArrowDown",run:qfe,shift:sde,preventDefault:!0},{mac:"Cmd-ArrowDown",run:dde,shift:pde},{mac:"Ctrl-ArrowDown",run:I5,shift:cde},{key:"PageUp",run:ede,shift:ude},{key:"PageDown",run:I5,shift:cde},{key:"Home",run:rbt,shift:gbt,preventDefault:!0},{key:"Mod-Home",run:fde,shift:hde},{key:"End",run:nbt,shift:pbt,preventDefault:!0},{key:"Mod-End",run:dde,shift:pde},{key:"Enter",run:Nbt},{key:"Mod-a",run:_bt},{key:"Backspace",run:D5,shift:D5},{key:"Delete",run:vde},{key:"Mod-Backspace",mac:"Alt-Backspace",run:yde},{key:"Mod-Delete",mac:"Alt-Delete",run:xbt},{mac:"Mod-Backspace",run:Tbt},{mac:"Mod-Delete",run:Pbt}].concat(zbt.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Wbt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:ebt,shift:dbt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:tbt,shift:hbt},{key:"Alt-ArrowUp",run:Ebt},{key:"Shift-Alt-ArrowUp",run:Ibt},{key:"Alt-ArrowDown",run:Mbt},{key:"Shift-Alt-ArrowDown",run:Dbt},{key:"Escape",run:Sbt},{key:"Mod-Enter",run:Lbt},{key:"Alt-l",mac:"Ctrl-l",run:Obt},{key:"Mod-i",run:wbt,preventDefault:!0},{key:"Mod-[",run:Sde},{key:"Mod-]",run:wde},{key:"Mod-Alt-\\",run:Bbt},{key:"Shift-Mod-k",run:Rbt},{key:"Shift-Mod-\\",run:ubt},{key:"Mod-/",run:Iyt},{key:"Alt-A",run:Ryt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Vbt}].concat(Fbt),Qbt={key:"Tab",run:wde,shift:Sde};function Cn(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;et.normalize("NFKD"):t=>t;class Pv{constructor(e,n,r=0,i=e.length,o,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?s=>o(Cde(s)):Cde,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Zr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=K4(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=xa(e);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a,this.bufferPos+this.bufferStart);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=eP(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let s=new $v(n,e.sliceString(n,r));return N5.set(e,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=e.sliceString(n,a)+o,a=n),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=eP(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=$v.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Pde.prototype[Symbol.iterator]=$de.prototype[Symbol.iterator]=function(){return this});function Hbt(t){try{return new RegExp(t,k5),!0}catch{return!1}}function eP(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e=56320&&r<57344;)e++;return e}function L5(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Cn("input",{class:"cm-textfield",name:"line",value:e}),r=Cn("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:tP.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},Cn("label",t.state.phrase("Go to line"),": ",n)," ",Cn("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=t,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,f]=o,d=c?+c.slice(1):0,p=u?+u:s.number;if(u&&f){let m=p/100;l&&(m=m*(l=="-"?-1:1)+s.number/a.doc.lines),p=Math.round(a.doc.lines*m)}else u&&l&&(p=p*(l=="-"?-1:1)+s.number);let g=a.doc.line(Math.max(1,Math.min(a.doc.lines,p))),v=Ce.cursor(g.from+Math.max(0,Math.min(d,g.length)));t.dispatch({effects:[tP.of(!1),He.scrollIntoView(v.from,{y:"center"})],selection:v}),t.focus()}return{dom:r}}const tP=Ot.define(),Ade=kr.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(tP)&&(t=n.value);return t},provide:t=>Kb.from(t,e=>e?L5:null)}),Gbt=t=>{let e=qb(t,L5);if(!e){let n=[tP.of(!0)];t.state.field(Ade,!1)==null&&n.push(Ot.appendConfig.of([Ade,jbt])),t.dispatch({effects:n}),e=qb(t,L5)}return e&&e.dom.querySelector("input").select(),!0},jbt=He.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Ubt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Zbt=Ye.define({combine(t){return il(t,Ubt,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Xbt(t){return[e_t,Jbt]}const Ybt=nt.mark({class:"cm-selectionMatch"}),qbt=nt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ede(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Bn.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Bn.Word)}function Kbt(t,e,n,r){return t(e.sliceDoc(n,n+1))==Bn.Word&&t(e.sliceDoc(r-1,r))==Bn.Word}const Jbt=rr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Zbt),{state:n}=t,r=n.selection;if(r.ranges.length>1)return nt.none;let i=r.main,o,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return nt.none;let l=n.wordAt(i.head);if(!l)return nt.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return nt.none;if(e.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(Ede(a,n,i.from,i.to)&&Kbt(a,n,i.from,i.to)))return nt.none}else if(o=n.sliceDoc(i.from,i.to),!o)return nt.none}let s=[];for(let l of t.visibleRanges){let u=new Pv(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!a||Ede(a,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?s.push(qbt.range(c,f)):(c>=i.to||f<=i.from)&&s.push(Ybt.range(c,f)),s.length>e.maxMatches))return nt.none}}return nt.set(s)}},{decorations:t=>t.decorations}),e_t=He.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),t_t=({state:t,dispatch:e})=>{let{selection:n}=t,r=Ce.create(n.ranges.map(i=>t.wordAt(i.head)||Ce.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function n_t(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new Pv(t.doc,e,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Pv(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const r_t=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return t_t({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=r))return!1;let i=n_t(t,r);return i?(e(t.update({selection:t.selection.addRange(Ce.range(i.from,i.to),!1),effects:He.scrollIntoView(i.to)})),!0):!1},Av=Ye.define({combine(t){return il(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new g_t(e),scrollToMatch:e=>He.scrollIntoView(e)})}});class Mde{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Hbt(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` `:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new s_t(this):new o_t(this)}getCursor(e,n=0,r){let i=e.doc?e:Gt.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Mv(this,i,n,r):Ev(this,i,n,r)}}class Ide{constructor(e){this.spec=e}}function Ev(t,e,n,r){return new Pv(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?i_t(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function i_t(t,e){return(n,r,i,o)=>((o>n||o+i.length=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Ev(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function Mv(t,e,n,r){return new Pde(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?a_t(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function nP(t,e){return t.slice(Ur(t,e,!1),e)}function rP(t,e){return t.slice(e,Ur(t,e))}function a_t(t){return(e,n,r)=>!r[0].length||(t(nP(r.input,r.index))!=Bn.Word||t(rP(r.input,r.index))!=Bn.Word)&&(t(rP(r.input,r.index+r[0].length))!=Bn.Word||t(nP(r.input,r.index+r[0].length))!=Bn.Word)}class s_t extends Ide{nextMatch(e,n,r){let i=Mv(this.spec,e,r,e.doc.length).next();return i.done&&(i=Mv(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=Mv(this.spec,e,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Mv(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const f_=Ot.define(),B5=Ot.define(),Gc=kr.define({create(t){return new V5(F5(t).create(),null)},update(t,e){for(let n of e.effects)n.is(f_)?t=new V5(n.value.create(),t.panel):n.is(B5)&&(t=new V5(t.query,n.value?z5:null));return t},provide:t=>Kb.from(t,e=>e.panel)});class V5{constructor(e,n){this.query=e,this.panel=n}}const l_t=nt.mark({class:"cm-searchMatch"}),u_t=nt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),c_t=rr.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Gc))}update(t){let e=t.state.field(Gc);(e!=t.startState.field(Gc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return nt.none;let{view:n}=this,r=new Ic;for(let i=0,o=n.visibleRanges,a=o.length;io[i+1].from-2*250;)l=o[++i].to;t.highlight(n.state,s,l,(u,c)=>{let f=n.state.selection.ranges.some(d=>d.from==u&&d.to==c);r.add(u,c,f?u_t:l_t)})}return r.finish()}},{decorations:t=>t.decorations});function d_(t){return e=>{let n=e.state.field(Gc,!1);return n&&n.query.spec.valid?t(e,n):Nde(e)}}const iP=d_((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Ce.single(r.from,r.to),o=t.state.facet(Av);return t.dispatch({selection:i,effects:[W5(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),kde(t),!0}),oP=d_((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let o=Ce.single(i.from,i.to),a=t.state.facet(Av);return t.dispatch({selection:o,effects:[W5(t,i),a.scrollToMatch(o.main,t)],userEvent:"select.search"}),kde(t),!0}),f_t=d_((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Ce.create(n.map(r=>Ce.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),d_t=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let s=new Pv(t.doc,t.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(Ce.range(s.value.from,s.value.to))}return e(t.update({selection:Ce.create(o,a),userEvent:"select.search.matches"})),!0},Dde=d_((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(n,o.from,o.to),u.push(He.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=Ce.single(o.from-c,o.to-c),u.push(W5(t,o)),u.push(n.facet(Av).scrollToMatch(s.main,t))}return t.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),h_t=d_((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:He.announce.of(r),userEvent:"input.replace.all"}),!0});function z5(t){return t.state.facet(Av).createPanel(t)}function F5(t,e){var n,r,i,o,a;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(Av);return new Mde({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:u.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function Rde(t){let e=qb(t,z5);return e&&e.dom.querySelector("[main-field]")}function kde(t){let e=Rde(t);e&&e==t.root.activeElement&&e.select()}const Nde=t=>{let e=t.state.field(Gc,!1);if(e&&e.panel){let n=Rde(t);if(n&&n!=t.root.activeElement){let r=F5(t.state,e.query.spec);r.valid&&t.dispatch({effects:f_.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[B5.of(!0),e?f_.of(F5(t.state,e.query.spec)):Ot.appendConfig.of(m_t)]});return!0},Lde=t=>{let e=t.state.field(Gc,!1);if(!e||!e.panel)return!1;let n=qb(t,z5);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:B5.of(!1)}),!0},p_t=[{key:"Mod-f",run:Nde,scope:"editor search-panel"},{key:"F3",run:iP,shift:oP,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:iP,shift:oP,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Lde,scope:"editor search-panel"},{key:"Mod-Shift-l",run:d_t},{key:"Mod-Alt-g",run:Gbt},{key:"Mod-d",run:r_t,preventDefault:!0}];class g_t{constructor(e){this.view=e;let n=this.query=e.state.field(Gc).query.spec;this.commit=this.commit.bind(this),this.searchField=Cn("input",{value:n.search,placeholder:Eo(e,"Find"),"aria-label":Eo(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Cn("input",{value:n.replace,placeholder:Eo(e,"Replace"),"aria-label":Eo(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Cn("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Cn("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Cn("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return Cn("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=Cn("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>iP(e),[Eo(e,"next")]),r("prev",()=>oP(e),[Eo(e,"previous")]),r("select",()=>f_t(e),[Eo(e,"all")]),Cn("label",null,[this.caseField,Eo(e,"match case")]),Cn("label",null,[this.reField,Eo(e,"regexp")]),Cn("label",null,[this.wordField,Eo(e,"by word")]),...e.state.readOnly?[]:[Cn("br"),this.replaceField,r("replace",()=>Dde(e),[Eo(e,"replace")]),r("replaceAll",()=>h_t(e),[Eo(e,"replace all")])],Cn("button",{name:"close",onclick:()=>Lde(e),"aria-label":Eo(e,"close"),type:"button"},["×"])])}commit(){let e=new Mde({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:f_.of(e)}))}keydown(e){Amt(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?oP:iP)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Dde(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(f_)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Av).top}}function Eo(t,e){return t.state.phrase(e)}const aP=30,sP=/[\s\.,:;?!]/;function W5(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,o=Math.max(r.from,e-aP),a=Math.min(i,n+aP),s=t.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-aP;l--)if(!sP.test(s[l-1])&&sP.test(s[l])){s=s.slice(0,l);break}}return He.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const v_t=He.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),m_t=[Gc,Mc.low(c_t),v_t];class Bde{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[]}tokenBefore(e){let n=Tr(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),o=i.search(Wde(e,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function Vde(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function y_t(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let o=1;otypeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:y_t(e);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:e,validFor:n}:null}}function b_t(t,e){return n=>{for(let r=Tr(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class Fde{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function jc(t){return t.selection.main.from}function Wde(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?t:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const Q5=au.define();function __t(t,e,n,r){let{main:i}=t.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},t.changeByRange(s=>s!=i&&n!=r&&t.sliceDoc(s.from+o,s.from+a)!=t.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:e},range:Ce.cursor(s.from+o+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Qde=new WeakMap;function O_t(t){if(!Array.isArray(t))return t;let e=Qde.get(t);return e||Qde.set(t,e=zde(t)),e}const lP=Ot.define(),h_=Ot.define();class w_t{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(x=K4(S))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!b||T==1&&m||w==0&&T!=0)&&(n[f]==S||r[f]==S&&(d=!0)?a[f++]=b:a.length&&(y=!1)),w=T,b+=xa(S)}return f==l&&a[0]==0&&y?this.result(-100+(d?-200:0),a,e):p==l&&g==0?this.ret(-200-e.length+(v==e.length?0:-100),[0,v]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==l?this.ret(-900-e.length,[g,v]):f==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),a,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?xa(Zr(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(e-r.length,i)}}class S_t{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x_t,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>Hde(e(r),n(r)),optionClass:(e,n)=>r=>Hde(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Hde(t,e){return t?e?t+" "+e:t:e}function x_t(t,e,n,r,i,o){let a=t.textDirection==In.RTL,s=a,l=!1,u="top",c,f,d=e.left-i.left,p=i.right-e.right,g=r.right-r.left,v=r.bottom-r.top;if(s&&d=v||b>e.top?c=n.bottom-e.top:(u="bottom",c=e.bottom-n.top)}let m=(e.bottom-e.top)/o.offsetHeight,y=(e.right-e.left)/o.offsetWidth;return{style:`${u}: ${c/m}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function C_t(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;ul&&a.appendChild(document.createTextNode(s.slice(l,c)));let d=a.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(s.slice(c,f))),d.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function H5(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class T_t{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:o,selected:a}=i.open,s=e.state.facet(Kr);this.optionContent=C_t(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=H5(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=e.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Kr).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:h_.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=H5(o.length,a,e.state.facet(Kr).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=H5(n.options.length,n.selected,this.view.state.facet(Kr).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,r)}).catch(a=>to(this.view.state,a,"completion info")):this.addInfoPane(o,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:o}=e;r.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&$_t(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(o=d,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let p=i.appendChild(document.createElement("completion-section"));p.textContent=d}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let d of this.optionContent){let p=d(s,this.view.state,this.view,l);p&&c.appendChild(p)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew T_t(n,t,e)}function $_t(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.topn.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function Gde(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function A_t(t,e){let n=[],r=null,i=u=>{n.push(u);let{section:c}=u.completion;if(c){r||(r=[]);let f=typeof c=="string"?c:c.name;r.some(d=>d.name==f)||r.push(typeof c=="string"?{name:f}:c)}},o=e.facet(Kr);for(let u of t)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new Fde(f,u.source,c?c(f):[],1e9-n.length));else{let f=e.sliceDoc(u.from,u.to),d,p=o.filterStrict?new S_t(f):new w_t(f);for(let g of u.result.options)if(d=p.match(g.label)){let v=g.displayLabel?c?c(g,d.matched):[]:d.matched;i(new Fde(g,u.source,v,d.score+(g.boost||0)))}}}if(r){let u=Object.create(null),c=0,f=(d,p)=>{var g,v;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((v=p.rank)!==null&&v!==void 0?v:1e9)||(d.namef.score-c.score||l(c.completion,f.completion))){let c=u.completion;!s||s.label!=c.label||s.detail!=c.detail||s.type!=null&&c.type!=null&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?a.push(u):Gde(u.completion)>Gde(s)&&(a[a.length-1]=u),s=u.completion}return a}class Iv{constructor(e,n,r,i,o,a){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Iv(this.options,jde(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,o){let a=A_t(e,n);if(!a.length)return i&&e.some(l=>l.state==1)?new Iv(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(Kr).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:k_t,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(e){return new Iv(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class uP{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new uP(D_t,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Kr),o=(r.override||n.languageDataAt("autocomplete",jc(n)).map(O_t)).map(s=>(this.active.find(u=>u.source==s)||new Mo(s,this.active.some(u=>u.state!=0)?1:0)).update(e,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||o.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!E_t(o,this.active)?a=Iv.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new Mo(s.source,0):s));for(let s of e.effects)s.is(Xde)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new uP(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?M_t:I_t}}function E_t(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=t+"-"+e),n}const D_t=[];function Ude(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(Q5);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class Mo{constructor(e,n,r=-1){this.source=e,this.state=n,this.explicitPos=r}hasResult(){return!1}update(e,n){let r=Ude(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new Mo(i.source,0)),r&4&&i.state==0&&(i=new Mo(this.source,1)),i=i.updateFor(e,r);for(let o of e.effects)if(o.is(lP))i=new Mo(i.source,1,o.value?jc(e.state):-1);else if(o.is(h_))i=new Mo(i.source,0);else if(o.is(Zde))for(let a of o.value)a.source==i.source&&(i=a);return i}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Mo(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(jc(e.state))}}class Dv extends Mo{constructor(e,n,r,i,o){super(e,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let o=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=jc(e.state);if((this.explicitPos<0?s<=o:sa||!i||n&2&&jc(e.startState)==this.from)return new Mo(this.source,n&4?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return R_t(i.validFor,e.state,o,a)?new Dv(this.source,l,i,o,a):i.update&&(i=i.update(i,o,a,new Bde(e.state,s,l>=0)))?new Dv(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:jc(e.state)):new Mo(this.source,1,l)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Dv(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Mo(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function R_t(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):Wde(t,!0).test(i)}const Zde=Ot.define({map(t,e){return t.map(n=>n.map(e))}}),Xde=Ot.define(),oo=kr.define({create(){return uP.start()},update(t,e){return t.update(e)},provide:t=>[e5.from(t,e=>e.tooltip),He.contentAttributes.from(t,e=>e.attrs)]});function G5(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(oo).active.find(i=>i.source==e.source);return r instanceof Dv?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},__t(t.state,n,r.from,r.to)),{annotations:Q5.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const k_t=P_t(oo,G5);function cP(t,e="option"){return n=>{let r=n.state.field(oo,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(t?1:-1):t?0:a-1;return s<0?s=e=="page"?0:a-1:s>=a&&(s=e=="page"?a-1:0),n.dispatch({effects:Xde.of(s)}),!0}}const N_t=t=>{let e=t.state.field(oo,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(oo,!1)?(t.dispatch({effects:lP.of(!0)}),!0):!1,B_t=t=>{let e=t.state.field(oo,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:h_.of(null)}),!0)};class V_t{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const z_t=50,F_t=1e3,W_t=rr.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(oo).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(oo),n=t.state.facet(Kr);if(!t.selectionSet&&!t.docChanged&&t.startState.field(oo)==e)return;let r=t.transactions.some(o=>{let a=Ude(o,n);return a&8||(o.selection||o.docChanged)&&!(a&3)});for(let o=0;oz_t&&Date.now()-a.time>F_t){for(let s of a.context.abortListeners)try{s()}catch(l){to(this.view.state,l)}a.context.abortListeners=null,this.running.splice(o--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(a=>a.is(lP)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(a=>a.active.source==o.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(oo);for(let n of e.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=jc(e),r=new Bde(e,n,t.explicitPos==n,this.view),i=new V_t(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:h_.of(null)}),to(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kr).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Kr);for(let r=0;ra.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new Mo(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&e.push(a)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Zde.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(oo,!1);if(e&&e.tooltip&&this.view.state.facet(Kr).closeOnBlur){let n=e.open&&Uce(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:h_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:lP.of(!1)}),20),this.composing=0}}}),Q_t=typeof navigator=="object"&&/Win/.test(navigator.platform),H_t=Mc.highest(He.domEventHandlers({keydown(t,e){let n=e.state.field(oo,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(Q_t&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(a=>a.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&G5(e,r),!1}})),Yde=He.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class G_t{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class j5{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Xr.TrackDel),r=e.mapPos(this.to,1,Xr.TrackDel);return n==null||r==null?null:new j5(this.field,n,r)}}class U5{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],o=e.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let f=0;fnew j5(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(e){let n=[],r=[],i=[],o;for(let a of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1,c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=u&&d.field++}i.push(new G_t(u,r.length,o.index,o.index+c.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}a=a.replace(/\\([{}])/g,(s,l,u)=>{for(let c of i)c.line==r.length&&c.from>u&&(c.from--,c.to--);return l}),r.push(a)}return new U5(r,i)}}let j_t=nt.widget({widget:new class extends ol{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),U_t=nt.mark({class:"cm-snippetField"});class Rv{constructor(e,n){this.ranges=e,this.active=n,this.deco=nt.set(e.map(r=>(r.from==r.to?j_t:U_t).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new Rv(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const p_=Ot.define({map(t,e){return t&&t.map(e)}}),Z_t=Ot.define(),g_=kr.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(p_))return n.value;if(n.is(Z_t)&&t)return new Rv(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>He.decorations.from(t,e=>e?e.deco:nt.none)});function Z5(t,e){return Ce.create(t.filter(n=>n.field==e).map(n=>Ce.range(n.from,n.to)))}function X_t(t){let e=U5.parse(t);return(n,r,i,o)=>{let{text:a,ranges:s}=e.instantiate(n.state,i),l={changes:{from:i,to:o,insert:en.of(a)},scrollIntoView:!0,annotations:r?[Q5.of(r),fr.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=Z5(s,0)),s.some(u=>u.field>0)){let u=new Rv(s,0),c=l.effects=[p_.of(u)];n.state.field(g_,!1)===void 0&&c.push(Ot.appendConfig.of([g_,q_t,K_t,Yde]))}n.dispatch(n.state.update(l))}}function qde(t){return({state:e,dispatch:n})=>{let r=e.field(g_,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,o=t>0&&!r.ranges.some(a=>a.field==i+t);return n(e.update({selection:Z5(r.ranges,i),effects:p_.of(o?null:new Rv(r.ranges,i)),scrollIntoView:!0})),!0}}const Y_t=[{key:"Tab",run:qde(1),shift:qde(-1)},{key:"Escape",run:({state:t,dispatch:e})=>t.field(g_,!1)?(e(t.update({effects:p_.of(null)})),!0):!1}],Kde=Ye.define({combine(t){return t.length?t[0]:Y_t}}),q_t=Mc.highest(jb.compute([Kde],t=>t.facet(Kde)));function ao(t,e){return Object.assign(Object.assign({},e),{apply:X_t(t)})}const K_t=He.domEventHandlers({mousedown(t,e){let n=e.state.field(g_,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:Z5(n.ranges,i.field),effects:p_.of(n.ranges.some(o=>o.field>i.field)?new Rv(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),v_={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},_h=Ot.define({map(t,e){let n=e.mapPos(t,-1,Xr.TrackAfter);return n??void 0}}),X5=new class extends hh{};X5.startSide=1,X5.endSide=-1;const Jde=kr.define({create(){return tn.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(_h)&&(t=t.update({add:[X5.range(n.value,n.value+1)]}));return t}});function J_t(){return[t1t,Jde]}const Y5="()[]{}<>";function ehe(t){for(let e=0;e{if((e1t?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&xa(Zr(r,0))==1||e!=i.from||n!=i.to)return!1;let o=r1t(t.state,r);return o?(t.dispatch(o),!0):!1}),n1t=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=the(t,t.selection.main.head).brackets||v_.brackets,i=null,o=t.changeByRange(a=>{if(a.empty){let s=i1t(t.doc,a.head);for(let l of r)if(l==s&&fP(t.doc,a.head)==ehe(Zr(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Ce.cursor(a.head-l.length)}}return{range:i=a}});return i||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function r1t(t,e){let n=the(t,t.selection.main.head),r=n.brackets||v_.brackets;for(let i of r){let o=ehe(Zr(i,0));if(e==i)return o==i?s1t(t,i,r.indexOf(i+i+i)>-1,n):o1t(t,i,o,n.before||v_.before);if(e==o&&nhe(t,t.selection.main.from))return a1t(t,i,o)}return null}function nhe(t,e){let n=!1;return t.field(Jde).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function fP(t,e){let n=t.sliceString(e,e+2);return n.slice(0,xa(Zr(n,0)))}function i1t(t,e){let n=t.sliceString(e-2,e);return xa(Zr(n,0))==n.length?n:n.slice(1)}function o1t(t,e,n,r){let i=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:_h.of(a.to+e.length),range:Ce.range(a.anchor+e.length,a.head+e.length)};let s=fP(t.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:e+n,from:a.head},effects:_h.of(a.head+e.length),range:Ce.cursor(a.head+e.length)}:{range:i=a}});return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function a1t(t,e,n){let r=null,i=t.changeByRange(o=>o.empty&&fP(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Ce.cursor(o.head+n.length)}:r={range:o});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function s1t(t,e,n,r){let i=r.stringPrefixes||v_.stringPrefixes,o=null,a=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:_h.of(s.to+e.length),range:Ce.range(s.anchor+e.length,s.head+e.length)};let l=s.head,u=fP(t.doc,l),c;if(u==e){if(rhe(t,l))return{changes:{insert:e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)};if(nhe(t,l)){let d=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:Ce.cursor(l+d.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(c=ihe(t,l-2*e.length,i))>-1&&rhe(t,c))return{changes:{insert:e+e+e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Bn.Word&&ihe(t,l,i)>-1&&!l1t(t,l,e,i))return{changes:{insert:e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)}}return{range:o=s}});return o?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function rhe(t,e){let n=Tr(t).resolveInner(e+1);return n.parent&&n.from==e}function l1t(t,e,n,r){let i=Tr(t).resolveInner(e,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==e&&i.parent;if(!u)break;i=u}return!1}function ihe(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Bn.Word)return e;for(let i of n){let o=e-i.length;if(t.sliceDoc(o,e)==i&&r(t.sliceDoc(o-1,o))!=Bn.Word)return o}return-1}function u1t(t={}){return[H_t,oo,Kr.of(t),W_t,c1t,Yde]}const ohe=[{key:"Ctrl-Space",run:L_t},{key:"Escape",run:B_t},{key:"ArrowDown",run:cP(!0)},{key:"ArrowUp",run:cP(!1)},{key:"PageDown",run:cP(!0,"page")},{key:"PageUp",run:cP(!1,"page")},{key:"Enter",run:N_t}],c1t=Mc.highest(jb.computeN([Kr],t=>t.facet(Kr).defaultKeymap?[ohe]:[]));class f1t{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class Oh{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=e,o=r.facet(m_).markerFilter;o&&(i=o(i,r));let a=nt.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?nt.widget({widget:new b1t(s),diagnostic:s}).range(s.from):nt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Oh(a,n,kv(a))}}function kv(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,o,{spec:a})=>{if(!(e&&a.diagnostic!=e))return r=new f1t(i,o,a.diagnostic),!1}),r}function d1t(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(m_).hideOn(t,n,r);if(i!=null)return i;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(a=>a.is(ahe))||t.changes.touchesRange(o.from,Math.max(o.to,r)))}function h1t(t,e){return t.field(Io,!1)?e:e.concat(Ot.appendConfig.of(w1t))}const ahe=Ot.define(),q5=Ot.define(),she=Ot.define(),Io=kr.define({create(){return new Oh(nt.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);r=kv(n,t.selected.diagnostic,o)||kv(n,null,o)}!n.size&&i&&e.state.facet(m_).autoPanel&&(i=null),t=new Oh(n,i,r)}for(let n of e.effects)if(n.is(ahe)){let r=e.state.facet(m_).autoPanel?n.value.length?y_.open:null:t.panel;t=Oh.init(n.value,r,e.state)}else n.is(q5)?t=new Oh(t.diagnostics,n.value?y_.open:null,t.selected):n.is(she)&&(t=new Oh(t.diagnostics,t.panel,n.value));return t},provide:t=>[Kb.from(t,e=>e.panel),He.decorations.from(t,e=>e.diagnostics)]}),p1t=nt.mark({class:"cm-lintRange cm-lintRange-active"});function g1t(t,e,n){let{diagnostics:r}=t.state.field(Io),i=[],o=2e8,a=0;r.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:c})=>{e>=l&&e<=u&&(l==u||(e>l||n>0)&&(eche(t,n,!1)))}const m1t=t=>{let e=t.state.field(Io,!1);(!e||!e.panel)&&t.dispatch({effects:h1t(t.state,[q5.of(!0)])});let n=qb(t,y_.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},lhe=t=>{let e=t.state.field(Io,!1);return!e||!e.panel?!1:(t.dispatch({effects:q5.of(!1)}),!0)},y1t=[{key:"Mod-Shift-m",run:m1t,preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Io,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],m_=Ye.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},il(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function uhe(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;ro.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function che(t,e,n){var r;let i=n?uhe(e.actions):[];return Cn("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Cn("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=d=>{if(d.preventDefault(),s)return;s=!0;let p=kv(t.state.field(Io).diagnostics,e);p&&o.apply(t,p.from,p.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,f=c<0?u:[u.slice(0,c),Cn("u",u.slice(c,c+1)),u.slice(c+1)];return Cn("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},f)}),e.source&&Cn("div",{class:"cm-diagnosticSource"},e.source))}class b1t extends ol{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Cn("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class fhe{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=che(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class y_{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)lhe(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],a=uhe(o.actions);for(let s=0;s{for(let o=0;olhe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Io).selected;if(!e)return-1;for(let n=0;n{let u=-1,c;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.tops.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Io),r=kv(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:she.of(r)})}static open(e){return new y_(e)}}function _1t(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function dP(t){return _1t(``,'width="6" height="3"')}const O1t=He.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:dP("#d11")},".cm-lintRange-warning":{backgroundImage:dP("orange")},".cm-lintRange-info":{backgroundImage:dP("#999")},".cm-lintRange-hint":{backgroundImage:dP("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),w1t=[Io,He.decorations.compute([Io],t=>{let{selected:e,panel:n}=t.field(Io);return!e||!n||e.from==e.to?nt.none:nt.set([p1t.range(e.from,e.to)])}),m0t(g1t,{hideOn:d1t}),O1t],S1t=[T0t(),A0t(),jmt(),Fyt(),gyt(),kmt(),zmt(),Gt.allowMultipleSelections.of(!0),iyt(),Ife(byt,{fallback:!0}),Cyt(),J_t(),u1t(),a0t(),u0t(),Kmt(),Xbt(),jb.of([...n1t,...Wbt,...p_t,...Yyt,...fyt,...ohe,...y1t])];/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon */var x1t=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[S1t]}),C1t=Symbol("vue-codemirror-global-config"),ki,T1t=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,o=function(a,s){var l={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(l[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(a);c .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:z1t},".cm-panels":{backgroundColor:V1t,color:pP},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:mhe,color:K5,border:"none"},".cm-activeLineGutter":{backgroundColor:vhe},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:J5},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:J5,borderBottomColor:J5},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:vhe,color:pP}}},{dark:!0}),W1t=l_.define([{tag:ae.keyword,color:B1t},{tag:[ae.name,ae.deleted,ae.character,ae.propertyName,ae.macroName],color:phe},{tag:[ae.function(ae.variableName),ae.labelName],color:N1t},{tag:[ae.color,ae.constant(ae.name),ae.standard(ae.name)],color:ghe},{tag:[ae.definition(ae.name),ae.separator],color:pP},{tag:[ae.typeName,ae.className,ae.number,ae.changed,ae.annotation,ae.modifier,ae.self,ae.namespace],color:D1t},{tag:[ae.operator,ae.operatorKeyword,ae.url,ae.escape,ae.regexp,ae.link,ae.special(ae.string)],color:R1t},{tag:[ae.meta,ae.comment],color:K5},{tag:ae.strong,fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.link,color:K5,textDecoration:"underline"},{tag:ae.heading,fontWeight:"bold",color:phe},{tag:[ae.atom,ae.bool,ae.special(ae.variableName)],color:ghe},{tag:[ae.processingInstruction,ae.string,ae.inserted],color:L1t},{tag:ae.invalid,color:k1t}]),Q1t=[F1t,Ife(W1t)];class gP{constructor(e,n,r,i,o,a,s,l,u,c=0,f){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new gP(e,[],n,r,r,0,[],0,i?new bhe(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:o}=this.p;this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,n,r,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(e,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=e,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new gP(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new H1t(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),e.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class bhe{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class H1t{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class vP{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new vP(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new vP(this.stack,this.pos,this.index)}}function b_(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new e(o)}return n}class mP{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _he=new mP;class G1t{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_he,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,o=this.pos+e;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n=this.chunk2Pos&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=_he,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class Lv{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;Ohe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}Lv.prototype.contextual=Lv.prototype.fallback=Lv.prototype.extend=!1;class e3{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?b_(e):e}token(e,n){let r=e.pos,i=0;for(;;){let o=e.next<0,a=e.resolveOffset(1,1);if(Ohe(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;e.reset(a,e.token)}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}e3.prototype.contextual=Lv.prototype.fallback=Lv.prototype.extend=!1;class yP{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function Ohe(t,e,n,r,i,o){let a=0,s=1<0){let g=t[p];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||j1t(g,e.token.value,i,o))){e.acceptToken(g);break}}let c=e.next,f=0,d=t[a+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){a=t[u+d*3-1];continue e}for(;f>1,g=u+p+(p<<1),v=t[g],m=t[g+1]||65536;if(c=m)f=p+1;else{a=t[g+2],e.advance();continue e}}break}}function whe(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function j1t(t,e,n,r){let i=whe(n,r,e);return i<0||whe(n,r,t)e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class U1t{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?She(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?She(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(o instanceof hr){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class Z1t{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new mP)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:o}=i,a=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!c.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!r&&e.pos==this.stream.end&&(r=new mP,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new mP,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let o=0;oe.bufferLength*4?new U1t(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,e))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&K1t(i);if(a)return Do&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Do&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Do&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!u||(f.prop(Bt.contextHash)||0)==c))return e.useNode(f,d),Do&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof hr)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof hr&&f.positions[0]==0)f=p;else break}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),Do&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;ui?n.push(g):r.push(g)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return xhe(e,n),!0}}runRecovery(e,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Do&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let p=0;f.forceReduce()&&p<10&&(Do&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));p++)Do&&(d=this.stackID(f)+" -> ");for(let p of s.recoverByInsert(l))Do&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Do&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),xhe(s,r)):(!i||i.scoret;class q1t{constructor(e){this.start=e.start,this.shift=e.shift||n3,this.reduce=e.reduce||n3,this.reuse=e.reuse||n3,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class __ extends cfe{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;se.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)o(s[u++],l,f);u++}}}this.nodeSet=new o5(n.map((s,l)=>no.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=rfe;let a=b_(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new Lv(a,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new X1t(this,e,n,r);for(let o of this.wrappers)i=o(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let o=this.stateSlot(e,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=fu(this.data,o+2);else break;i=n(fu(this.data,o+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=fu(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(__.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(o=>o.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=e.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=Che(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let o of e.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.external(n,r)<<1|e}return t.get}const J1t=312,The=1,eOt=2,tOt=3,nOt=4,rOt=313,iOt=315,oOt=316,aOt=5,sOt=6,lOt=0,r3=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Phe=125,uOt=59,i3=47,cOt=42,fOt=43,dOt=45,hOt=60,pOt=44,gOt=63,vOt=46,mOt=new q1t({start:!1,shift(t,e){return e==aOt||e==sOt||e==iOt?t:e==oOt},strict:!1}),yOt=new yP((t,e)=>{let{next:n}=t;(n==Phe||n==-1||e.context)&&t.acceptToken(rOt)},{contextual:!0,fallback:!0}),bOt=new yP((t,e)=>{let{next:n}=t,r;r3.indexOf(n)>-1||n==i3&&((r=t.peek(1))==i3||r==cOt)||n!=Phe&&n!=uOt&&n!=-1&&!e.context&&t.acceptToken(J1t)},{contextual:!0}),_Ot=new yP((t,e)=>{let{next:n}=t;if(n==fOt||n==dOt){if(t.advance(),n==t.next){t.advance();let r=!e.context&&e.canShift(The);t.acceptToken(r?The:eOt)}}else n==gOt&&t.peek(1)==vOt&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(tOt))},{contextual:!0});function o3(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const OOt=new yP((t,e)=>{if(t.next!=hOt||!e.dialectEnabled(lOt)||(t.advance(),t.next==i3))return;let n=0;for(;r3.indexOf(t.next)>-1;)t.advance(),n++;if(o3(t.next,!0)){for(t.advance(),n++;o3(t.next,!1);)t.advance(),n++;for(;r3.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==pOt)return;for(let r=0;;r++){if(r==7){if(!o3(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),n++}}t.acceptToken(nOt,-n)}),wOt=f5({"get set async static":ae.modifier,"for while do if else switch try catch finally return throw break continue default case":ae.controlKeyword,"in of await yield void typeof delete instanceof":ae.operatorKeyword,"let var const using function class extends":ae.definitionKeyword,"import export from":ae.moduleKeyword,"with debugger as new":ae.keyword,TemplateString:ae.special(ae.string),super:ae.atom,BooleanLiteral:ae.bool,this:ae.self,null:ae.null,Star:ae.modifier,VariableName:ae.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ae.function(ae.variableName),VariableDefinition:ae.definition(ae.variableName),Label:ae.labelName,PropertyName:ae.propertyName,PrivatePropertyName:ae.special(ae.propertyName),"CallExpression/MemberExpression/PropertyName":ae.function(ae.propertyName),"FunctionDeclaration/VariableDefinition":ae.function(ae.definition(ae.variableName)),"ClassDeclaration/VariableDefinition":ae.definition(ae.className),PropertyDefinition:ae.definition(ae.propertyName),PrivatePropertyDefinition:ae.definition(ae.special(ae.propertyName)),UpdateOp:ae.updateOperator,"LineComment Hashbang":ae.lineComment,BlockComment:ae.blockComment,Number:ae.number,String:ae.string,Escape:ae.escape,ArithOp:ae.arithmeticOperator,LogicOp:ae.logicOperator,BitOp:ae.bitwiseOperator,CompareOp:ae.compareOperator,RegExp:ae.regexp,Equals:ae.definitionOperator,Arrow:ae.function(ae.punctuation),": Spread":ae.punctuation,"( )":ae.paren,"[ ]":ae.squareBracket,"{ }":ae.brace,"InterpolationStart InterpolationEnd":ae.special(ae.brace),".":ae.derefOperator,", ;":ae.separator,"@":ae.meta,TypeName:ae.typeName,TypeDefinition:ae.definition(ae.typeName),"type enum interface implements namespace module declare":ae.definitionKeyword,"abstract global Privacy readonly override":ae.modifier,"is keyof unique infer":ae.operatorKeyword,JSXAttributeValue:ae.attributeValue,JSXText:ae.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ae.angleBracket,"JSXIdentifier JSXNameSpacedName":ae.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ae.attributeName,"JSXBuiltin/JSXIdentifier":ae.standard(ae.tagName)}),SOt={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},xOt={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},COt={__proto__:null,"<":187},TOt=__.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:mOt,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[wOt],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-SOt[t]||-1},{term:338,get:t=>xOt[t]||-1},{term:92,get:t=>COt[t]||-1}],tokenPrec:14749}),$he=[ao("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ao("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ao("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ao("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ao("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ao(`try { \${} } catch (\${error}) { \${} }`,{label:"try",detail:"/ catch block",type:"keyword"}),ao("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ao(`if (\${}) { \${} } else { \${} }`,{label:"if",detail:"/ else block",type:"keyword"}),ao(`class \${name} { constructor(\${params}) { \${} } }`,{label:"class",detail:"definition",type:"keyword"}),ao('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ao('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],POt=$he.concat([ao("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ao("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ao("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Ahe=new N0t,Ehe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function O_(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const $Ot=["FunctionDeclaration"],AOt={FunctionDeclaration:O_("function"),ClassDeclaration:O_("class"),ClassExpression:()=>!0,EnumDeclaration:O_("constant"),TypeAliasDeclaration:O_("type"),NamespaceDeclaration:O_("namespace"),VariableDefinition(t,e){t.matchContext($Ot)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Mhe(t,e){let n=Ahe.get(e);if(n)return n;let r=[],i=!0;function o(a,s){let l=t.sliceString(a.from,a.to);r.push({label:l,type:s})}return e.cursor(Cr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=AOt[a.name];if(s&&s(a,o)||Ehe.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of Mhe(t,a.node))r.push(s);return!1}}),Ahe.set(e,r),r}const Ihe=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Dhe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function EOt(t){let e=Tr(t.state).resolveInner(t.pos,-1);if(Dhe.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&Ihe.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let i=e;i;i=i.parent)Ehe.has(i.name)&&(r=r.concat(Mhe(t.state.doc,i)));return{options:r,from:n?e.from:t.pos,validFor:Ihe}}const Sh=n_.define({name:"javascript",parser:TOt.configure({props:[y5.add({IfStatement:a_({except:/^\s*({|else\b)/}),TryStatement:a_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:nyt,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:r?1:2)*t.unit},Block:tyt({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":a_({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),_5.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":wfe,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Rhe={test:t=>/^JSX/.test(t.name),facet:gfe({commentTokens:{block:{open:"{/*",close:"*/}"}}})},MOt=Sh.configure({dialect:"ts"},"typescript"),IOt=Sh.configure({dialect:"jsx",props:[g5.add(t=>t.isTop?[Rhe]:void 0)]}),DOt=Sh.configure({dialect:"jsx ts",props:[g5.add(t=>t.isTop?[Rhe]:void 0)]},"typescript");let khe=t=>({label:t,type:"keyword"});const Nhe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(khe),ROt=Nhe.concat(["declare","implements","private","protected","public"].map(khe));function kOt(t={}){let e=t.jsx?t.typescript?DOt:IOt:t.typescript?MOt:Sh,n=t.typescript?POt.concat(ROt):$he.concat(Nhe);return new bfe(e,[Sh.data.of({autocomplete:b_t(Dhe,zde(n))}),Sh.data.of({autocomplete:EOt}),t.jsx?BOt:[]])}function NOt(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function Lhe(t,e,n=t.length){for(let r=e==null?void 0:e.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,n));return""}const LOt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BOt=He.inputHandler.of((t,e,n,r,i)=>{if((LOt?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||r!=">"&&r!="/"||!Sh.isActiveAt(t.state,e,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,f=Tr(a).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(a.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let p=f.parent,g=p.parent;if(g&&p.from==c-2&&((d=Lhe(a.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let v=`${d}>`;return{range:Ce.cursor(c+v.length,-1),changes:{from:c,insert:v}}}}else if(r==">"){let p=NOt(f);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(d=Lhe(a.doc,p,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),VOt=f5({String:ae.string,Number:ae.number,"True False":ae.bool,PropertyName:ae.propertyName,Null:ae.null,",":ae.separator,"[ ]":ae.squareBracket,"{ }":ae.brace}),zOt=__.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[VOt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),FOt=n_.define({name:"json",parser:zOt.configure({props:[y5.add({Object:a_({except:/^\s*\}/}),Array:a_({except:/^\s*\]/})}),_5.add({"Object Array":wfe})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function WOt(){return new bfe(FOt)}var Bhe={exports:{}},w_={},bP={exports:{}},a3={},s3={},Vhe;function l3(){if(Vhe)return s3;Vhe=1;function t(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var r=new t(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},t.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},t.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},t.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(` `);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},t.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function e(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}e.prototype.get_indent_size=function(r,i){var o=this.__base_string_length;return i=i||0,r<0&&(o=0),o+=r*this.__indent_size,o+=i,o},e.prototype.get_indent_string=function(r,i){var o=this.__base_string;return i=i||0,r<0&&(r=0,o=""),i+=r*this.__indent_size,this.__ensure_cache(i),o+=this.__cache[i],o},e.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},e.prototype.__add_column=function(){var r=this.__cache.length,i=0,o="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,o=new Array(i+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function n(r,i){this.__indent_cache=new e(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},n.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===` `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(` `);return r!==` `&&(o=o.replace(/[\n]/g,r)),o},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(r){for(var i=0;i1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(r,i){for(var o=this.__lines.length-2;o>=0;){var a=this.__lines[o];if(a.is_empty())break;if(a.item(0).indexOf(r)!==0&&a.item(-1)!==i){this.__lines.splice(o+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},s3.Output=n,s3}var u3={},zhe;function Fhe(){if(zhe)return u3;zhe=1;function t(e,n,r,i){this.type=e,this.text=n,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return u3.Token=t,u3}var c3={},Whe;function Qhe(){return Whe||(Whe=1,function(t){var e="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+o+"|["+e+r+"])",s="(?:"+o+"|["+n+r+i+"])*";t.identifier=new RegExp(a+s,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+o+"|["+n+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(c3)),c3}var f3={},S_={},Hhe;function d3(){if(Hhe)return S_;Hhe=1;function t(r,i){this.raw_options=e(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(r,i){var o=this.raw_options[r],a=i||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(a=o.concat()):typeof o=="string"&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},t.prototype._get_boolean=function(r,i){var o=this.raw_options[r],a=o===void 0?!!i:!!o;return a},t.prototype._get_characters=function(r,i){var o=this.raw_options[r],a=i||"";return typeof o=="string"&&(a=o.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),a},t.prototype._get_number=function(r,i){var o=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var a=parseInt(o,10);return isNaN(a)&&(a=i),a},t.prototype._get_selection=function(r,i,o){var a=this._get_selection_list(r,i,o);if(a.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values: `+i+` You passed in: '`+this.raw_options[r]+"'");return a[0]},t.prototype._get_selection_list=function(r,i,o){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[i[0]],!this._is_valid_selection(o,i))throw new Error("Invalid Default Value!");var a=this._get_array(r,o);if(!this._is_valid_selection(a,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values: `+i+` You passed in: '`+this.raw_options[r]+"'");return a},t.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(o){return i.indexOf(o)===-1})};function e(r,i){var o={};r=n(r);var a;for(a in r)a!==i&&(o[a]=r[a]);if(i&&r[i])for(a in r[i])o[a]=r[i][a];return o}function n(r){var i={},o;for(o in r){var a=o.replace(/-/g,"_");i[a]=r[o]}return i}return S_.Options=t,S_.normalizeOpts=n,S_.mergeOpts=e,S_}var Ghe;function jhe(){if(Ghe)return f3;Ghe=1;var t=d3().Options,e=["before-newline","after-newline","preserve-newline"];function n(r){t.call(this,r,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a0&&(this.__position-=1)},e.prototype.hasNext=function(){return this.__position=0&&n=0&&r=n.length&&this.__input.substring(r-n.length,r).toLowerCase()===n},h3.InputScanner=e,h3}var _P={},g3={},Zhe;function QOt(){if(Zhe)return g3;Zhe=1;function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position=0&&e/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new t,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(r){var i=this._create();return i._disabled[r]=!0,i._update(),i},n.prototype.read_options=function(r){var i=this._create();for(var o in e)i._disabled[o]=r.templating.indexOf(o)===-1;return i._update(),i},n.prototype.exclude=function(r){var i=this._create();return i._excluded[r]=!0,i._update(),i},n.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),r+=i,i=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},n.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},n.prototype._read_template=function(){var r="",i=this._input.peek();if(i==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},_3.TemplatablePattern=n,_3}var tpe;function SP(){if(tpe)return Bv;tpe=1;var t=p3().InputScanner,e=wP().Tokenizer,n=wP().TOKEN,r=b3().Directives,i=Qhe(),o=OP().Pattern,a=epe().TemplatablePattern;function s(x,T){return T.indexOf(x)!==-1}var l={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},u=new r(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,f=/[0-9]/,d=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),g="\\?\\.(?!\\d) "+g,g=g.replace(/ /g,"|");var v=new RegExp(g),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),y=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+y.join("|")+")$"),O,w=function(x,T){e.call(this,x,T),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var $=new o(this._input),A=new a(this._input).read_options(this._options);this.__patterns={template:A,identifier:A.starting_with(i.identifier).matching(i.identifierMatch),number:$.matching(c),punct:$.matching(v),comment:$.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:$.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:$.matching(//),include:$.starting_with(/#include/).until_after(i.lineBreak),shebang:$.starting_with(/#!/).until_after(i.lineBreak),xml:$.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:A.until(/['\\\n\r\u2028\u2029]/),double_quote:A.until(/["\\\n\r\u2028\u2029]/),template_text:A.until(/[`\\$]/),template_expression:A.until(/[`}\\]/)}};w.prototype=new e,w.prototype._is_comment=function(x){return x.type===l.COMMENT||x.type===l.BLOCK_COMMENT||x.type===l.UNKNOWN},w.prototype._is_opening=function(x){return x.type===l.START_BLOCK||x.type===l.START_EXPR},w.prototype._is_closing=function(x,T){return(x.type===l.END_BLOCK||x.type===l.END_EXPR)&&T&&(x.text==="]"&&T.text==="["||x.text===")"&&T.text==="("||x.text==="}"&&T.text==="{")},w.prototype._reset=function(){O=!1},w.prototype._get_next_token=function(x,T){var $=null;this._readWhitespace();var A=this._input.peek();return A===null?this._create_token(l.EOF,""):($=$||this._read_non_javascript(A),$=$||this._read_string(A),$=$||this._read_pair(A,this._input.peek(1)),$=$||this._read_word(x),$=$||this._read_singles(A),$=$||this._read_comment(A),$=$||this._read_regexp(A,x),$=$||this._read_xml(A,x),$=$||this._read_punctuation(),$=$||this._create_token(l.UNKNOWN,this._input.next()),$)},w.prototype._read_word=function(x){var T;if(T=this.__patterns.identifier.read(),T!=="")return T=T.replace(i.allLineBreaks,` `),!(x.type===l.DOT||x.type===l.RESERVED&&(x.text==="set"||x.text==="get"))&&b.test(T)?(T==="in"||T==="of")&&(x.type===l.WORD||x.type===l.STRING)?this._create_token(l.OPERATOR,T):this._create_token(l.RESERVED,T):this._create_token(l.WORD,T);if(T=this.__patterns.number.read(),T!=="")return this._create_token(l.WORD,T)},w.prototype._read_singles=function(x){var T=null;return x==="("||x==="["?T=this._create_token(l.START_EXPR,x):x===")"||x==="]"?T=this._create_token(l.END_EXPR,x):x==="{"?T=this._create_token(l.START_BLOCK,x):x==="}"?T=this._create_token(l.END_BLOCK,x):x===";"?T=this._create_token(l.SEMICOLON,x):x==="."&&d.test(this._input.peek(1))?T=this._create_token(l.DOT,x):x===","&&(T=this._create_token(l.COMMA,x)),T&&this._input.next(),T},w.prototype._read_pair=function(x,T){var $=null;return x==="#"&&T==="{"&&($=this._create_token(l.START_BLOCK,x+T)),$&&(this._input.next(),this._input.next()),$},w.prototype._read_punctuation=function(){var x=this.__patterns.punct.read();if(x!=="")return x==="="?this._create_token(l.EQUALS,x):x==="?."?this._create_token(l.DOT,x):this._create_token(l.OPERATOR,x)},w.prototype._read_non_javascript=function(x){var T="";if(x==="#"){if(this._is_first_token()&&(T=this.__patterns.shebang.read(),T))return this._create_token(l.UNKNOWN,T.trim()+` `);if(T=this.__patterns.include.read(),T)return this._create_token(l.UNKNOWN,T.trim()+` `);x=this._input.next();var $="#";if(this._input.hasNext()&&this._input.testChar(f)){do x=this._input.next(),$+=x;while(this._input.hasNext()&&x!=="#"&&x!=="=");return x==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?($+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&($+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,$)}this._input.back()}else if(x==="<"&&this._is_first_token()){if(T=this.__patterns.html_comment_start.read(),T){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)T+=this._input.next();return O=!0,this._create_token(l.COMMENT,T)}}else if(O&&x==="-"&&(T=this.__patterns.html_comment_end.read(),T))return O=!1,this._create_token(l.COMMENT,T);return null},w.prototype._read_comment=function(x){var T=null;if(x==="/"){var $="";if(this._input.peek(1)==="*"){$=this.__patterns.block_comment.read();var A=u.get_directives($);A&&A.ignore==="start"&&($+=u.readIgnored(this._input)),$=$.replace(i.allLineBreaks,` `),T=this._create_token(l.BLOCK_COMMENT,$),T.directives=A}else this._input.peek(1)==="/"&&($=this.__patterns.comment.read(),T=this._create_token(l.COMMENT,$))}return T},w.prototype._read_string=function(x){if(x==="`"||x==="'"||x==='"'){var T=this._input.next();return this.has_char_escapes=!1,x==="`"?T+=this._read_string_recursive("`",!0,"${"):T+=this._read_string_recursive(x),this.has_char_escapes&&this._options.unescape_strings&&(T=S(T)),this._input.peek()===x&&(T+=this._input.next()),T=T.replace(i.allLineBreaks,` `),this._create_token(l.STRING,T)}return null},w.prototype._allow_regexp_or_xml=function(x){return x.type===l.RESERVED&&s(x.text,["return","case","throw","else","do","typeof","yield"])||x.type===l.END_EXPR&&x.text===")"&&x.opened.previous.type===l.RESERVED&&s(x.opened.previous.text,["if","while","for"])||s(x.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},w.prototype._read_regexp=function(x,T){if(x==="/"&&this._allow_regexp_or_xml(T)){for(var $=this._input.next(),A=!1,P=!1;this._input.hasNext()&&(A||P||this._input.peek()!==x)&&!this._input.testChar(i.newline);)$+=this._input.peek(),A?A=!1:(A=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===x&&($+=this._input.next(),$+=this._input.read(i.identifier)),this._create_token(l.STRING,$)}return null},w.prototype._read_xml=function(x,T){if(this._options.e4x&&x==="<"&&this._allow_regexp_or_xml(T)){var $="",A=this.__patterns.xml.read_match();if(A){for(var P=A[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),M=P.indexOf("{")===0,I=0;A;){var R=!!A[1],L=A[2],D=!!A[A.length-1]||L.slice(0,8)==="![CDATA[";if(!D&&(L===P||M&&L.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(R?--I:++I),$+=A[0],I<=0)break;A=this.__patterns.xml.read_match()}return A||($+=this._input.match(/[\s\S]*/g)[0]),$=$.replace(i.allLineBreaks,` `),this._create_token(l.STRING,$)}}return null};function S(x){for(var T="",$=0,A=new t(x),P=null;A.hasNext();)if(P=A.match(/([\s]|[^\\]|\\\\)+/g),P&&(T+=P[0]),A.peek()==="\\"){if(A.next(),A.peek()==="x")P=A.match(/x([0-9A-Fa-f]{2})/g);else if(A.peek()==="u")P=A.match(/u([0-9A-Fa-f]{4})/g),P||(P=A.match(/u\{([0-9A-Fa-f]+)\}/g));else{T+="\\",A.hasNext()&&(T+=A.next());continue}if(!P||($=parseInt(P[1],16),$>126&&$<=255&&P[0].indexOf("x")===0))return x;$>=0&&$<32||$>1114111?T+="\\"+P[0]:$===34||$===39||$===92?T+="\\"+String.fromCharCode($):T+=String.fromCharCode($)}return T}return w.prototype._read_string_recursive=function(x,T,$){var A,P;x==="'"?P=this.__patterns.single_quote:x==='"'?P=this.__patterns.double_quote:x==="`"?P=this.__patterns.template_text:x==="}"&&(P=this.__patterns.template_expression);for(var M=P.read(),I="";this._input.hasNext();){if(I=this._input.next(),I===x||!T&&i.newline.test(I)){this._input.back();break}else I==="\\"&&this._input.hasNext()?(A=this._input.peek(),A==="x"||A==="u"?this.has_char_escapes=!0:A==="\r"&&this._input.peek(1)===` `&&this._input.next(),I+=this._input.next()):$&&($==="${"&&I==="$"&&this._input.peek()==="{"&&(I+=this._input.next()),$===I&&(x==="`"?I+=this._read_string_recursive("}",T,"`"):I+=this._read_string_recursive("`",T,"${"),this._input.hasNext()&&(I+=this._input.next())));I+=P.read(),M+=I}return M},Bv.Tokenizer=w,Bv.TOKEN=l,Bv.positionable_operators=p.slice(),Bv.line_starters=m.slice(),Bv}var npe;function GOt(){if(npe)return a3;npe=1;var t=l3().Output,e=Fhe().Token,n=Qhe(),r=jhe().Options,i=SP().Tokenizer,o=SP().line_starters,a=SP().positionable_operators,s=SP().TOKEN;function l(P,M){return M.indexOf(P)!==-1}function u(P){return P.replace(/^\s+/g,"")}function c(P){for(var M={},I=0;II&&(I=P.line_indent_level));var R={mode:M,parent:P,last_token:P?P.last_token:new e(s.START_BLOCK,""),last_word:P?P.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:I,alignment:0,line_indent_level:P?P.line_indent_level:I,start_line_index:this._output.get_line_number(),ternary_depth:0};return R},$.prototype._reset=function(P){var M=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,M),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var I=new i(P,this._options);return this._tokens=I.tokenize(),P},$.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,M=this._reset(this._source_text),I=this._options.eol;this._options.eol==="auto"&&(I=` `,M&&n.lineBreak.test(M||"")&&(I=M.match(n.lineBreak)[0]));for(var R=this._tokens.next();R;)this.handle_token(R),this._last_last_text=this._flags.last_token.text,this._flags.last_token=R,R=this._tokens.next();return P=this._output.get_code(I),P},$.prototype.handle_token=function(P,M){P.type===s.START_EXPR?this.handle_start_expr(P):P.type===s.END_EXPR?this.handle_end_expr(P):P.type===s.START_BLOCK?this.handle_start_block(P):P.type===s.END_BLOCK?this.handle_end_block(P):P.type===s.WORD?this.handle_word(P):P.type===s.RESERVED?this.handle_word(P):P.type===s.SEMICOLON?this.handle_semicolon(P):P.type===s.STRING?this.handle_string(P):P.type===s.EQUALS?this.handle_equals(P):P.type===s.OPERATOR?this.handle_operator(P):P.type===s.COMMA?this.handle_comma(P):P.type===s.BLOCK_COMMENT?this.handle_block_comment(P,M):P.type===s.COMMENT?this.handle_comment(P,M):P.type===s.DOT?this.handle_dot(P):P.type===s.EOF?this.handle_eof(P):P.type===s.UNKNOWN?this.handle_unknown(P,M):this.handle_unknown(P,M)},$.prototype.handle_whitespace_and_comments=function(P,M){var I=P.newlines,R=this._options.keep_array_indentation&&w(this._flags.mode);if(P.comments_before)for(var L=P.comments_before.next();L;)this.handle_whitespace_and_comments(L,M),this.handle_token(L,M),L=P.comments_before.next();if(R)for(var D=0;D0,M);else if(this._options.max_preserve_newlines&&I>this._options.max_preserve_newlines&&(I=this._options.max_preserve_newlines),this._options.preserve_newlines&&I>1){this.print_newline(!1,M);for(var B=1;B0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.start_of_object_property=function(){return this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"]))},$.prototype.start_of_statement=function(P){var M=!1;return M=M||d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD,M=M||f(this._flags.last_token,"do"),M=M||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&d(this._flags.last_token,A)&&!P.newlines,M=M||f(this._flags.last_token,"else")&&!(f(P,"if")&&!P.comments_before),M=M||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),M=M||this._flags.last_token.type===s.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==s.WORD&&P.type!==s.RESERVED,M=M||this._flags.mode===y.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"])),M?(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,d(P,["do","for","if","while"])),!0):!1},$.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var M=y.Expression;if(P.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){d(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(M),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}M=y.ArrayLiteral,w(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),l(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,M=y.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,M=y.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var I=this._tokens.peek(-3);if(this._options.space_after_named_function&&I){var R=this._tokens.peek(-4);d(I,["async","function"])||I.text==="*"&&d(R,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral?(I.text==="{"||I.text===","||I.text==="*"&&(R.text==="{"||R.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(P);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(M),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},$.prototype.handle_end_expr=function(P){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&w(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(P),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y.Conditional&&(this._previous_flags.mode=y.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},$.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var M=this._tokens.peek(),I=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(y.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y.BlockStatement):I&&(l(I.text,[":",","])&&l(M.type,[s.STRING,s.WORD,s.RESERVED])||l(M.text,["get","set","..."])&&l(I.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(I.text,[":",","])?this.set_mode(y.BlockStatement):this.set_mode(y.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(y.BlockStatement):l(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y.ObjectLiteral):this.set_mode(y.BlockStatement),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var R=!M.comments_before&&M.text==="}",L=R&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var D=0,B=null;this._flags.inline_frame=!0;do if(D+=1,B=this._tokens.peek(D-1),B.newlines){this._flags.inline_frame=!1;break}while(B.type!==s.EOF&&!(B.type===s.END_BLOCK&&B.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(L||this._flags.last_token.type===s.EQUALS||d(this._flags.last_token,p)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(w(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(l(this._flags.last_token.type,[s.START_BLOCK,s.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!R&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},$.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===y.Statement;)this.restore_mode();var M=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!M?this._output.space_before_token=!0:this._options.brace_style==="expand"?M||this.print_newline():M||(w(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(P)},$.prototype.handle_word=function(P){if(P.type===s.RESERVED){if(l(P.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)P.type=s.WORD;else if(P.text==="import"&&l(this._tokens.peek().text,["(","."]))P.type=s.WORD;else if(l(P.text,["as","from"])&&!this._flags.import_block)P.type=s.WORD;else if(this._flags.mode===y.ObjectLiteral){var M=this._tokens.peek();M.text===":"&&(P.type=s.WORD)}}if(this.start_of_statement(P)?d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!S(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!d(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(f(P,"while")){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&f(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(P,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&!this.start_of_object_property()&&!(l(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===y.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(P),f(P,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)?this._output.space_before_token=!0:f(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(S(this._flags.mode)||w(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var I="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?I="SPACE":d(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?I="NEWLINE":(I="SPACE",this._output.space_before_token=!0):I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===y.BlockStatement?I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&S(this._flags.mode)?I="SPACE":this._flags.last_token.type===s.STRING?I="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","]))?I="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?I="SPACE":I="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,I="NEWLINE"),d(P,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?I="SPACE":I="NEWLINE"),d(P,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===y.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var R=this._output.current_line;R.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else I==="NEWLINE"?d(this._flags.last_token,p)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&d(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!d(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(f(P,"if")&&f(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(P,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&w(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():I==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===s.WORD||P.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===s.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&f(P,"from")&&(this._flags.import_block=!1))},$.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var M=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},$.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},$.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},$.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)):this._flags.mode===y.ObjectLiteral||this._flags.mode===y.Statement&&this._flags.parent.mode===y.ObjectLiteral?(this._flags.mode===y.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},$.prototype.handle_operator=function(P){var M=P.text==="*"&&(d(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),I=l(P.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var R=!M;this.handle_whitespace_and_comments(P,R)}if(P.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(l(P.text,["-","+"])&&this.start_of_object_property()){this.print_token(P);return}if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var L=!0,D=!0,B=!1;if(P.text===":"?this._flags.ternary_depth===0?L=!1:(this._flags.ternary_depth-=1,B=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!I&&!M&&this._options.preserve_newlines&&l(P.text,a)){var F=P.text===":",z=F&&B,W=F&&!B;switch(this._options.operator_position){case v.before_newline:this._output.space_before_token=!W,this.print_token(P),(!F||z)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case v.after_newline:this._output.space_before_token=!0,!F||z?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case v.preserve_newline:W||this.allow_wrap_or_preserved_newline(P),L=!(this._output.just_added_newline()||W),this._output.space_before_token=L,this.print_token(P),this._output.space_before_token=!0;return}}if(M){this.allow_wrap_or_preserved_newline(P),L=!1;var j=this._tokens.peek();D=j&&l(j.type,[s.WORD,s.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),L=this._flags.last_token.type===s.START_BLOCK,D=!1;else if(l(P.text,["--","++","!","~"])||I){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),L=!1,D=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var H=d(this._flags.last_token,p)&&P.newlines;H&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(H,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(L=!0),this._flags.last_token.type===s.RESERVED?L=!0:this._flags.last_token.type===s.END_EXPR?L=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===s.OPERATOR&&(L=l(P.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(P.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(D=!0)),(this._flags.mode===y.BlockStatement&&!this._flags.inline_frame||this._flags.mode===y.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||L,this.print_token(P),this._output.space_before_token=D},$.prototype.handle_block_comment=function(P,M){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,M),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!n.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,M)},$.prototype.print_block_commment=function(P,M){var I=O(P.text),R,L=!1,D=!1,B=P.whitespace_before,F=B.length;if(this.print_newline(!1,M),this.print_token_line_indentation(P),this._output.add_token(I[0]),this.print_newline(!1,M),I.length>1){for(I=I.slice(1),L=x(I,"*"),D=T(I,B),L&&(this._flags.alignment=1),R=0;R0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var d=this._source_text,p=this._options.eol;p==="auto"&&(p=` `,d&&o.test(d||"")&&(p=d.match(o)[0])),d=d.replace(a,` `);var g=d.match(/^[\t ]*/)[0];this._output=new e(this._options,g),this._input=new n(d),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var v=0,m=!1,y=!1,b=!1,O=!1,w=!1,S=this._ch,x=!1,T,$,A;T=this._input.read(l),$=T!=="",A=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var P=this._input.read(u),M=i.get_directives(P);M&&M.ignore==="start"&&(P+=i.readIgnored(this._input)),this.print_string(P),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace($),this.print_string(this._ch);var I=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);I.match(/[ :]$/)&&(I=this.eatString(": ").replace(/\s+$/,""),this.print_string(I),this._output.space_before_token=!0),v===0&&I.indexOf(":")!==-1&&(y=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace($),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var R=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);R.match(/[ :]$/)&&(R=this.eatString(": ").replace(/\s+$/,""),this.print_string(R),this._output.space_before_token=!0),v===0&&R.indexOf(":")!==-1?(y=!0,this.indent()):R in this.NESTED_AT_RULE?(this._nestedLevel+=1,R in this.CONDITIONAL_GROUP_RULE&&(b=!0)):v===0&&!y&&(O=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace($),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")y&&(y=!1,this.outdent()),O=!1,b?(b=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(A==="("?this._output.space_before_token=!1:A!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),A==="{"&&this._output.trim(!0),y&&(this.outdent(),y=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var L=0;L"||this._ch==="+"||this._ch==="~")&&!y&&v===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace($),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var F=A==='"'||A==="'";this.preserveSingleSpace(F||$),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` `&&x&&this._output.add_new_line()}var z=this._output.get_code(p);return z},O3.Beautifier=f,O3}var spe;function ZOt(){if(spe)return xP.exports;spe=1;var t=UOt().Beautifier,e=ope().Options;function n(r,i){var o=new t(r,i);return o.beautify()}return xP.exports=n,xP.exports.defaultOptions=function(){return new e},xP.exports}var CP={exports:{}},S3={},x3={},lpe;function upe(){if(lpe)return x3;lpe=1;var t=d3().Options;function e(n){t.call(this,n,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return e.prototype=new t,x3.Options=e,x3}var TP={},cpe;function fpe(){if(cpe)return TP;cpe=1;var t=wP().Tokenizer,e=wP().TOKEN,n=b3().Directives,r=epe().TemplatablePattern,i=OP().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:e.START,RAW:e.RAW,EOF:e.EOF},a=new n(/<\!--/,/-->/),s=function(l,u){t.call(this,l,u),this._current_tag_name="";var c=new r(this._input).read_options(this._options),f=new i(this._input);if(this.__patterns={word:c.until(/[\n\r\t <]/),word_control_flow_close_excluded:c.until(/[\n\r\t <}]/),single_quote:c.until_after(/'/),double_quote:c.until_after(/"/),attribute:c.until(/[\n\r\t =>]|\/>/),element_name:c.until(/[\n\r\t >\/]/),angular_control_flow_start:f.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),handlebars_open:f.until(/[\n\r\t }]/),handlebars_raw_close:f.until(/}}/),comment:f.starting_with(//),cdata:f.starting_with(//),conditional_comment:f.starting_with(//),processing:f.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=f.matching(d).until_after(d)}};return s.prototype=new t,s.prototype._is_comment=function(l){return!1},s.prototype._is_opening=function(l){return l.type===o.TAG_OPEN||l.type===o.CONTROL_FLOW_OPEN},s.prototype._is_closing=function(l,u){return l.type===o.TAG_CLOSE&&u&&((l.text===">"||l.text==="/>")&&u.text[0]==="<"||l.text==="}}"&&u.text[0]==="{"&&u.text[1]==="{")||l.type===o.CONTROL_FLOW_CLOSE&&l.text==="}"&&u.text.endsWith("{")},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(l,u){var c=null;this._readWhitespace();var f=this._input.peek();return f===null?this._create_token(o.EOF,""):(c=c||this._read_open_handlebars(f,u),c=c||this._read_attribute(f,l,u),c=c||this._read_close(f,u),c=c||this._read_control_flows(f,u),c=c||this._read_raw_content(f,l,u),c=c||this._read_content_word(f,u),c=c||this._read_comment_or_cdata(f),c=c||this._read_processing(f),c=c||this._read_open(f,u),c=c||this._create_token(o.UNKNOWN,this._input.next()),c)},s.prototype._read_comment_or_cdata=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);d==="!"&&(c=this.__patterns.comment.read(),c?(f=a.get_directives(c),f&&f.ignore==="start"&&(c+=a.readIgnored(this._input))):c=this.__patterns.cdata.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_processing=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);(d==="!"||d==="?")&&(c=this.__patterns.conditional_comment.read(),c=c||this.__patterns.processing.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_open=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&l==="<"&&(c=this._input.next(),this._input.peek()==="/"&&(c+=this._input.next()),c+=this.__patterns.element_name.read(),f=this._create_token(o.TAG_OPEN,c)),f},s.prototype._read_open_handlebars=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&l==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(c=this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars.read(),f=this._create_token(o.COMMENT,c)):(c=this.__patterns.handlebars_open.read(),f=this._create_token(o.TAG_OPEN,c))),f},s.prototype._read_control_flows=function(l,u){var c="",f=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return f;if(l==="@"){if(c=this.__patterns.angular_control_flow_start.read(),c==="")return f;for(var d=c.endsWith("(")?1:0,p=0;!(c.endsWith("{")&&d===p);){var g=this._input.next();if(g===null)break;g==="("?d++:g===")"&&p++,c+=g}f=this._create_token(o.CONTROL_FLOW_OPEN,c)}else l==="}"&&u&&u.type===o.CONTROL_FLOW_OPEN&&(c=this._input.next(),f=this._create_token(o.CONTROL_FLOW_CLOSE,c));return f},s.prototype._read_close=function(l,u){var c=null,f=null;return u&&u.type===o.TAG_OPEN&&(u.text[0]==="<"&&(l===">"||l==="/"&&this._input.peek(1)===">")?(c=this._input.next(),l==="/"&&(c+=this._input.next()),f=this._create_token(o.TAG_CLOSE,c)):u.text[0]==="{"&&l==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),f=this._create_token(o.TAG_CLOSE,"}}"))),f},s.prototype._read_attribute=function(l,u,c){var f=null,d="";if(c&&c.text[0]==="<")if(l==="=")f=this._create_token(o.EQUALS,this._input.next());else if(l==='"'||l==="'"){var p=this._input.next();l==='"'?p+=this.__patterns.double_quote.read():p+=this.__patterns.single_quote.read(),f=this._create_token(o.VALUE,p)}else d=this.__patterns.attribute.read(),d&&(u.type===o.EQUALS?f=this._create_token(o.VALUE,d):f=this._create_token(o.ATTRIBUTE,d));return f},s.prototype._is_content_unformatted=function(l){return this._options.void_elements.indexOf(l)===-1&&(this._options.content_unformatted.indexOf(l)!==-1||this._options.unformatted.indexOf(l)!==-1)},s.prototype._read_raw_content=function(l,u,c){var f="";if(c&&c.text[0]==="{")f=this.__patterns.handlebars_raw_close.read();else if(u.type===o.TAG_CLOSE&&u.opened.text[0]==="<"&&u.text[0]!=="/"){var d=u.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var p=this._read_comment_or_cdata(l);if(p)return p.type=o.TEXT,p;f=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(d)&&(f=this._input.readUntil(new RegExp("","ig")))}return f?this._create_token(o.TEXT,f):null},s.prototype._read_content_word=function(l,u){var c="";if(this._options.unformatted_content_delimiter&&l===this._options.unformatted_content_delimiter[0]&&(c=this.__patterns.unformatted_content_delimiter.read()),c||(c=u&&u.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),c)return this._create_token(o.TEXT,c)},TP.Tokenizer=s,TP.TOKEN=o,TP}var dpe;function XOt(){if(dpe)return S3;dpe=1;var t=upe().Options,e=l3().Output,n=fpe().Tokenizer,r=fpe().TOKEN,i=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,a=function(m,y){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=m.max_preserve_newlines,this.preserve_newlines=m.preserve_newlines,this._output=new e(m,y)};a.prototype.current_line_has_match=function(m){return this._output.current_line.has_match(m)},a.prototype.set_space_before_token=function(m,y){this._output.space_before_token=m,this._output.non_breaking_space=y},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(m){this._output.add_raw_token(m)},a.prototype.print_preserved_newlines=function(m){var y=0;m.type!==r.TEXT&&m.previous.type!==r.TEXT&&(y=m.newlines?1:0),this.preserve_newlines&&(y=m.newlines0);return y!==0},a.prototype.traverse_whitespace=function(m){return m.whitespace_before||m.newlines?(this.print_preserved_newlines(m)||(this._output.space_before_token=!0),!0):!1},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(m){this._output.add_new_line(m)},a.prototype.print_token=function(m){m.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(m.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},a.prototype.get_full_indent=function(m){return m=this.indent_level+(m||0),m<1?"":this._output.get_indent_string(m)};var s=function(m){for(var y=null,b=m.next;b.type!==r.EOF&&m.closed!==b;){if(b.type===r.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===r.EQUALS&&b.next.next&&b.next.next.type===r.VALUE&&(y=b.next.next.text);break}b=b.next}return y},l=function(m,y){var b=null,O=null;return y.closed?(m==="script"?b="text/javascript":m==="style"&&(b="text/css"),b=s(y)||b,b.search("text/css")>-1?O="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?O="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?O="html":b.search(/test\/null/)>-1&&(O="null"),O):null};function u(m,y){return y.indexOf(m)!==-1}function c(m,y,b){this.parent=m||null,this.tag=y?y.tag_name:"",this.indent_level=b||0,this.parser_token=y||null}function f(m){this._printer=m,this._current_frame=null}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(m){var y=new c(this._current_frame,m,this._printer.indent_level);this._current_frame=y},f.prototype._try_pop_frame=function(m){var y=null;return m&&(y=m.parser_token,this._printer.indent_level=m.indent_level,this._current_frame=m.parent),y},f.prototype._get_frame=function(m,y){for(var b=this._current_frame;b&&m.indexOf(b.tag)===-1;){if(y&&y.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},f.prototype.try_pop=function(m,y){var b=this._get_frame([m],y);return this._try_pop_frame(b)},f.prototype.indent_to_tag=function(m){var y=this._get_frame(m);y&&(this._printer.indent_level=y.indent_level)};function d(m,y,b,O){this._source_text=m||"",y=y||{},this._js_beautify=b,this._css_beautify=O,this._tag_stack=null;var w=new t(y,"html");this._options=w,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m=this._source_text,y=this._options.eol;this._options.eol==="auto"&&(y=` `,m&&i.test(m)&&(y=m.match(i)[0])),m=m.replace(o,` `);var b=m.match(/^[\t ]*/)[0],O={text:"",type:""},w=new p,S=new a(this._options,b),x=new n(m,this._options).tokenize();this._tag_stack=new f(S);for(var T=null,$=x.next();$.type!==r.EOF;)$.type===r.TAG_OPEN||$.type===r.COMMENT?(T=this._handle_tag_open(S,$,w,O,x),w=T):$.type===r.ATTRIBUTE||$.type===r.EQUALS||$.type===r.VALUE||$.type===r.TEXT&&!w.tag_complete?T=this._handle_inside_tag(S,$,w,O):$.type===r.TAG_CLOSE?T=this._handle_tag_close(S,$,w):$.type===r.TEXT?T=this._handle_text(S,$,w):$.type===r.CONTROL_FLOW_OPEN?T=this._handle_control_flow_open(S,$):$.type===r.CONTROL_FLOW_CLOSE?T=this._handle_control_flow_close(S,$):S.add_raw_token($),O=T,$=x.next();var A=S._output.get_code(y);return A},d.prototype._handle_control_flow_open=function(m,y){var b={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),m.indent(),b},d.prototype._handle_control_flow_close=function(m,y){var b={text:y.text,type:y.type};return m.deindent(),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),b},d.prototype._handle_tag_close=function(m,y,b){var O={text:y.text,type:y.type};return m.alignment_size=0,b.tag_complete=!0,m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):(b.tag_start_char==="<"&&(m.set_space_before_token(y.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&m.print_newline(!1)),m.print_token(y)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(m.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&m.set_wrap_point(),O},d.prototype._handle_inside_tag=function(m,y,b,O){var w=b.has_wrapped_attrs,S={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):b.tag_start_char==="{"&&y.type===r.TEXT?m.print_preserved_newlines(y)?(y.newlines=0,m.add_raw_token(y)):m.print_token(y):(y.type===r.ATTRIBUTE?m.set_space_before_token(!0):(y.type===r.EQUALS||y.type===r.VALUE&&y.previous.type===r.EQUALS)&&m.set_space_before_token(!1),y.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(m.traverse_whitespace(y),w=w||y.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(O.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(m.print_newline(!1),w=!0)),m.print_token(y),w=w||m.previous_token_wrapped(),b.has_wrapped_attrs=w),S},d.prototype._handle_text=function(m,y,b){var O={text:y.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(m,y,b):b.is_unformatted||b.is_content_unformatted?m.add_raw_token(y):(m.traverse_whitespace(y),m.print_token(y)),O},d.prototype._print_custom_beatifier_text=function(m,y,b){var O=this;if(y.text!==""){var w=y.text,S,x=1,T="",$="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:b.custom_beautifier_name==="html"&&(S=function(L,D){var B=new d(L,D,O._js_beautify,O._css_beautify);return B.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-m.indent_level);var A=m.get_full_indent(x);if(w=w.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&w[0]==="<"&&w.match(/^(|]]>)$/.exec(w);if(!P){m.add_raw_token(y);return}T=A+P[1]+` `,w=P[4],P[5]&&($=A+P[5]),w=w.replace(/\n[ \t]*$/,""),(P[2]||P[3].indexOf(` `)!==-1)&&(P=P[3].match(/[ \t]+$/),P&&(y.whitespace_before=P[0]))}if(w)if(S){var M=function(){this.eol=` `};M.prototype=this._options.raw_options;var I=new M;w=S(A+w,I)}else{var R=y.whitespace_before;R&&(w=w.replace(new RegExp(` (`+R+")?","g"),` `)),w=A+w.replace(/\n/g,` `+A)}T&&(w?w=T+w+` `+$:w=T+$),m.print_newline(!1),w&&(y.text=w,y.whitespace_before="",y.newlines=0,m.add_raw_token(y),m.print_newline(!0))}},d.prototype._handle_tag_open=function(m,y,b,O,w){var S=this._get_tag_open_token(y);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===r.TAG_OPEN&&!S.is_start_tag?(m.add_raw_token(y),S.start_tag_token=this._tag_stack.try_pop(S.tag_name)):(m.traverse_whitespace(y),this._set_tag_position(m,y,S,b,O),S.is_inline_element||m.set_wrap_point(),m.print_token(y)),S.is_start_tag&&this._is_wrap_attributes_force){var x=0,T;do T=w.peek(x),T.type===r.ATTRIBUTE&&(S.attr_count+=1),x+=1;while(T.type!==r.EOF&&T.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(S.alignment_size=y.text.length+1),!S.tag_complete&&!S.is_unformatted&&(m.alignment_size=S.alignment_size),S};var p=function(m,y){if(this.parent=m||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!y)this.tag_complete=!0;else{var b;this.tag_start_char=y.text[0],this.text=y.text,this.tag_start_char==="<"?(b=y.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(y.text.startsWith("{{#>")||y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&y.next!==null?this.tag_check=y.next.text.split(" ")[0]:this.tag_check=y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),y.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||y.closed&&y.closed.text==="/>";var O=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(O=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(O)))}};d.prototype._get_tag_open_token=function(m){var y=new p(this._tag_stack.get_parser_token(),m);return y.alignment_size=this._options.wrap_attributes_indent_size,y.is_end_tag=y.is_end_tag||u(y.tag_check,this._options.void_elements),y.is_empty_element=y.tag_complete||y.is_start_tag&&y.is_end_tag,y.is_unformatted=!y.tag_complete&&u(y.tag_check,this._options.unformatted),y.is_content_unformatted=!y.is_empty_element&&u(y.tag_check,this._options.content_unformatted),y.is_inline_element=u(y.tag_name,this._options.inline)||this._options.inline_custom_elements&&y.tag_name.includes("-")||y.tag_start_char==="{",y},d.prototype._set_tag_position=function(m,y,b,O,w){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||m.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=l(b.tag_check,y)))),u(b.tag_check,this._options.extra_liners)&&(m.print_newline(!1),m._output.just_added_blankline()||m.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var S=m.current_line_has_match(/{{#if/);S||m.print_newline(!1)}b.tag_name==="!--"&&w.type===r.TAG_CLOSE&&O.is_end_tag&&b.text.indexOf(` `)===-1||(b.is_inline_element||b.is_unformatted||m.print_newline(!1),this._calcluate_parent_multiline(m,b))}else if(b.is_end_tag){var x=!1;x=b.start_tag_token&&b.start_tag_token.multiline_content,x=x||!b.is_inline_element&&!(O.is_inline_element||O.is_unformatted)&&!(w.type===r.TAG_CLOSE&&b.start_tag_token===O)&&w.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(x=!1),x&&m.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(w.type!=="TK_CONTENT"||b.is_content_unformatted)&&m.print_newline(!1),this._calcluate_parent_multiline(m,b)},d.prototype._calcluate_parent_multiline=function(m,y){y.parent&&m._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(m){var y=null;if(!(m.is_empty_element||!m.is_start_tag||!m.parent)){if(m.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(m.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(m.tag_name==="dd"||m.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(m.parent.tag_name==="p"&&g.indexOf(m.tag_name)!==-1){var b=m.parent.parent;(!b||v.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else m.tag_name==="rp"||m.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):m.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):m.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):m.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):m.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):m.tag_name==="tbody"||m.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):m.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(m.tag_name==="th"||m.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return m.parent=this._tag_stack.get_parser_token(),y}},S3.Beautifier=d,S3}var hpe;function YOt(){if(hpe)return CP.exports;hpe=1;var t=XOt().Beautifier,e=upe().Options;function n(r,i,o,a){var s=new t(r,i,o,a);return s.beautify()}return CP.exports=n,CP.exports.defaultOptions=function(){return new e},CP.exports}var ppe;function qOt(){if(ppe)return w_;ppe=1;var t=jOt(),e=ZOt(),n=YOt();function r(i,o,a,s){return a=a||t,s=s||e,n(i,o,a,s)}return r.defaultOptions=n.defaultOptions,w_.js=t,w_.css=e,w_.html=r,w_}(function(t){function e(n,r,i){var o=function(a,s){return n.js_beautify(a,s)};return o.js=n.js_beautify,o.css=r.css_beautify,o.html=i.html_beautify,o.js_beautify=n.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=i.html_beautify,o}(function(n){var r=qOt();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=e(r,r,r)})(t)})(Bhe);var KOt=Bhe.exports;const JOt=$1(KOt),ewt={indent_size:"2",indent_char:" ",max_preserve_newlines:"5",preserve_newlines:!0,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1},twt=h.defineComponent({name:"DEditor",components:{Codemirror:I1t},props:{code:{type:String,default:""}},emits:["update:code","change"],setup(t,{emit:e}){const n=h.ref(null),r=h.ref(JOt(t.code,ewt));return{editorRef:n,modelValue:r,handleCodeChange:o=>{try{e("update:code",o),e("change",o)}catch(a){console.error(a);return}},oneDark:Q1t,javascript:kOt,json:WOt}}});function nwt(t,e,n,r,i,o){const a=h.resolveComponent("Codemirror");return h.openBlock(),h.createBlock(a,{ref:"editorRef",placeholder:"请输入",style:{height:"500px"},"model-value":t.modelValue,"tab-size":2,"auto-focus":!1,"indent-with-tabs":!0,extensions:[t.oneDark,t.javascript(),t.json()],onChange:t.handleCodeChange},null,8,["model-value","extensions","onChange"])}const rwt=Mr(twt,[["render",nwt]]),iwt=h.defineComponent({name:"DEditorModal",components:{Modal:bo,Editor:rwt,Button:ri},props:{title:{type:String,default:"编辑"},width:{type:Number,default:800}},emits:["ok"],setup(t,{emit:e}){const n=h.ref(!1),r=h.ref("");return{open:s=>{n.value=!0,r.value=s},close:()=>{n.value=!1},code:r,handleOk:()=>{e("ok",r.value),n.value=!1},show:n}}});function owt(t,e,n,r,i,o){const a=h.resolveComponent("Editor"),s=h.resolveComponent("Button"),l=h.resolveComponent("Modal");return h.openBlock(),h.createBlock(l,{open:t.show,"onUpdate:open":e[1]||(e[1]=u=>t.show=u),title:t.title,width:t.width,destroyOnClose:!0},{footer:h.withCtx(()=>[h.renderSlot(t.$slots,"footer",{},()=>[h.createVNode(s,{onClick:t.close},{default:h.withCtx(()=>[h.createTextVNode("取消")]),_:1},8,["onClick"]),h.createVNode(s,{type:"primary",onClick:t.handleOk},{default:h.withCtx(()=>[h.createTextVNode("确定")]),_:1},8,["onClick"])])]),default:h.withCtx(()=>[h.createVNode(a,{code:t.code,"onUpdate:code":e[0]||(e[0]=u=>t.code=u)},null,8,["code"])]),_:3},8,["open","title","width"])}const PP=Mr(iwt,[["render",owt]]);PP.install=t=>(t.component(PP.name,PP),t);const awt=h.createElementVNode("span",{class:"text-gray-500"},"秒",-1),C3=h.defineComponent({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=t,i=h.ref({sourceType:Kn.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:"",basicPath:"",viewCode:""}),o=f=>{i.value.refreshTime=f===0||f>=60?f:60};let a;const s=h.ref(null),l=f=>{var d;a=f,(d=s.value)==null||d.open(typeof i.value[f]=="string"?i.value[f]:JSON.stringify(i.value[f]))},u=f=>{try{i.value[a]=JSON.parse(f)}catch{i.value[a]=f}},c=async f=>{const d=await B3e(f);console.log(d),f==="table"?(i.value.basicPath=d.value,i.value.viewCode=""):(i.value.viewCode=d.value,i.value.basicPath="")};return h.watch(()=>r.dataSource,f=>{Object.assign(i.value,f||{})},{immediate:!0}),h.watch(()=>i.value,f=>{n("change",f)},{deep:!0}),(f,d)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(mr),{size:"small",layout:"horizontal",model:i.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:h.withCtx(()=>[h.createVNode(h.unref(mr).Item,{label:"数据源",name:"sourceType"},{default:h.withCtx(()=>[h.createVNode(h.unref(Hi),{value:i.value.sourceType,"onUpdate:value":d[0]||(d[0]=p=>i.value.sourceType=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(Ip),{value:h.unref(Kn).STATIC},{default:h.withCtx(()=>[h.createTextVNode("静态数据")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).API},{default:h.withCtx(()=>[h.createTextVNode("API")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).BASIC_PATH},{default:h.withCtx(()=>[h.createTextVNode("基础数据源")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).VIEW_CODE},{default:h.withCtx(()=>[h.createTextVNode("视图源")]),_:1},8,["value"])]),_:1},8,["value"])]),_:1}),i.value.sourceType===h.unref(Kn).STATIC?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:0,label:"数据",name:"data"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[1]||(d[1]=p=>l("data"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})):i.value.sourceType===h.unref(Kn).API?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(mr).Item,{label:"接口地址",name:"url"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:i.value.url,"onUpdate:value":d[2]||(d[2]=p=>i.value.url=p)},null,8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求方式",name:"method"},{default:h.withCtx(()=>[h.createVNode(h.unref(Rf),{value:i.value.method,"onUpdate:value":d[3]||(d[3]=p=>i.value.method=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(Gi),{value:"GET"},{default:h.withCtx(()=>[h.createTextVNode("GET")]),_:1}),h.createVNode(h.unref(Gi),{value:"POST"},{default:h.withCtx(()=>[h.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"刷新时间",name:"refreshTime"},{default:h.withCtx(()=>[h.createVNode(h.unref(l0),{value:i.value.refreshTime,"onUpdate:value":d[4]||(d[4]=p=>i.value.refreshTime=p),step:1,style:{width:"100%"},onChange:o},{addonAfter:h.withCtx(()=>[awt]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求参数",name:"params"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[5]||(d[5]=p=>l("params"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求头",name:"headers"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[6]||(d[6]=p=>l("headers"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(mr).Item,{label:"数据处理",name:"dataProcess"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[7]||(d[7]=p=>l("dataProcess"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})],64)):i.value.sourceType===h.unref(Kn).BASIC_PATH?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:2,label:"基础数据源",name:"basicPath"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn),{placeholder:"请输入或选择",value:i.value.basicPath,"onUpdate:value":d[9]||(d[9]=p=>i.value.basicPath=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(dw),{onClick:d[8]||(d[8]=p=>c("table"))})]),_:1},8,["value"])]),_:1})):i.value.sourceType===h.unref(Kn).VIEW_CODE?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:3,label:"视图源",name:"viewCode"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn),{placeholder:"请输入或选择",value:i.value.viewCode,"onUpdate:value":d[11]||(d[11]=p=>i.value.viewCode=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(dw),{onClick:d[10]||(d[10]=p=>c("view"))})]),_:1},8,["value"])]),_:1})):h.createCommentVNode("",!0)]),_:1},8,["model"]),h.createVNode(h.unref(PP),{ref_key:"codeEditorRef",ref:s,title:"编辑",onOk:u},null,512)],64))}}),ir={title:{label:"标题",prop:"title",type:"group",children:[{label:" ",prop:"title.show",type:"checkboxGroup",fieldProps:{options:[{label:"标题可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["title.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["title.show"],children:t=>t["title.show"].length?[{label:"文本",prop:"title.text",type:"input",defaultValue:"图表标题"},{label:"位置",prop:"title.left",type:"position",defaultValue:"center"},{label:"样式",prop:"title.textStyle",type:"fontStyle",defaultValue:{color:"#ffffffff",size:18,bold:!0,italic:!1},format:(e,n)=>{e.value["title.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"title.textStyle.color","#FFFFFF"),size:Ut(n,"title.textStyle.size",16),bold:Ut(n,"title.textStyle.fontWeight")==="bold",italic:Ut(n,"title.textStyle.fontStyle")==="italic"})},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"title.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#FFFFFF00"},format:(e,n)=>{e.value["title.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none",color:"#000000ff"}:{type:"color",color:e.color}},{label:"圆角",prop:"title.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]},legend:{label:"图例",prop:"legend",type:"group",children:[{label:" ",prop:"legend.show",type:"checkboxGroup",fieldProps:{options:[{label:"图例可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["legend.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["legend.show"],children:t=>t["legend.show"].length?[{label:"位置",prop:"legend.position",type:"position",fieldProps:{type:"round"},defaultValue:"top",format:(e,n)=>{switch(["left","right"].includes(n)?e.value["legend.orient"]="vertical":e.value["legend.orient"]="horizontal",n){case"bottom":e.value["legend.top"]="auto",e.value["legend.right"]="auto",e.value["legend.bottom"]=8,e.value["legend.left"]="center";break;case"left":e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.left"]=8,e.value["legend.top"]="center";break;case"right":e.value["legend.bottom"]="auto",e.value["legend.left"]="auto",e.value["legend.right"]=8,e.value["legend.top"]="center";break;default:e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.top"]=32,e.value["legend.left"]="center"}},valueToForm:(e,n)=>Ut(n,"legend.orient")==="vertical"?e==="top"?"top":e==="bottom"?"bottom":"left":Ut(n,"legend.bottom")===8&&Ut(n,"legend.left")==="center"?"bottom":"top"},{label:"样式",prop:"legend.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["legend.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"legend.textStyle.color","#000000ff"),size:Ut(n,"legend.textStyle.fontSize",12),bold:Ut(n,"legend.textStyle.fontWeight")==="bold",italic:Ut(n,"legend.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"legend.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"legend.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"legend.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"背景",prop:"",type:"divider"},{label:"背景",prop:"legend.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["legend.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e.color}},{label:"阴影",prop:"legend.shadowBlur",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{n?(e.value["legend.shadowBlur"]=10,e.value["legend.shadowColor"]=e.value["legend.backgroundColor"]||"#000000ff",e.value["legend.shadowOffsetX"]=3,e.value["legend.shadowOffsetY"]=3):(e.value["legend.shadowBlur"]=0,e.value["legend.shadowColor"]="transparent",e.value["legend.shadowOffsetX"]=0,e.value["legend.shadowOffsetY"]=0)},valueToForm:e=>!!e}]:[]}]},series:{label:"系列",prop:"series",type:"group",children:[{label:"配色",prop:"color",type:"colorScheme",defaultValue:Sw[0].color}]},xAxis:{label:"X 轴",prop:"xAxis",type:"group",children:[{label:"类型",prop:"xAxis.type",type:"select",fieldProps:{options:[{label:"类目坐标轴",value:"category"},{label:"数值坐标轴",value:"value"},{label:"时间坐标轴",value:"time"}]},defaultValue:"category"},{label:" ",prop:"xAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[!0],format:(t,e)=>{e!=null&&e.length?(t.value["xAxis.showName"]=!0,t.value["xAxis.name"]="X轴标题",t.value["xAxis.nameGap"]=25):(t.value["xAxis.showName"]=!1,t.value["xAxis.name"]="",t.value["xAxis.nameGap"]=15,t.value["xAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.showName"],children:t=>t["xAxis.showName"].length?[{label:"标题内容",prop:"xAxis.name",type:"input",defaultValue:"X 轴标题",format:(e,n)=>{e.value["xAxis.showName"]&&(e.value["xAxis.name"]=n,e.value["xAxis.nameGap"]=25)},valueToForm:e=>e||"X 轴标题"},{label:"标题位置",prop:"xAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["xAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center"},{label:"标题样式",prop:"xAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"xAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"xAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisTick.show"],children:t=>t["xAxis.axisTick.show"].length?[{label:"刻度宽度",prop:"xAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"xAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisLabel.show"],children:t=>t["xAxis.axisLabel.show"].length?[{label:"样式",prop:"xAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["xAxis.axisLabel.fontSize"]=n.size,e.value["xAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["xAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"xAxis.axisLabel.color","#000000ff"),size:Ut(n,"xAxis.axisLabel.fontSize",12),bold:Ut(n,"xAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"xAxis.axisLabel.fontStyle")==="italic"})}]:[]}]},yAxis:{label:"Y 轴",prop:"yAxis",type:"group",children:[{label:" ",prop:"yAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[],format:(t,e)=>{e!=null&&e.length?(t.value["yAxis.showName"]=!0,t.value["yAxis.name"]="Y轴标题",t.value["yAxis.nameGap"]=25):(t.value["yAxis.showName"]=!1,t.value["yAxis.name"]="",t.value["yAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.showName"],children:t=>t["yAxis.showName"].length?[{label:"标题内容",prop:"yAxis.name",type:"input",defaultValue:"Y 轴标题",format:(e,n)=>{e.value["yAxis.showName"]?(e.value["yAxis.name"]=n,e.value["yAxis.nameGap"]=25):(e.value["yAxis.name"]="",e.value["yAxis.nameGap"]=15)},valueToForm:e=>e||"Y 轴标题"},{label:"标题位置",prop:"yAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["yAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center "},{label:"标题样式",prop:"yAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#FFFFFFFF",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLine.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴线",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLine.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLine.show"],children:t=>t["yAxis.axisLine.show"].length?[{label:"线宽",prop:"yAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"yAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisTick.show"],children:t=>t["yAxis.axisTick.show"].length?[{label:"刻度长度",prop:"yAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"yAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLabel.show"],children:t=>t["yAxis.axisLabel.show"].length?[{label:"样式",prop:"yAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["yAxis.axisLabel.fontSize"]=n.size,e.value["yAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["yAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"yAxis.axisLabel.color","#000000ff"),size:Ut(n,"yAxis.axisLabel.fontSize",12),bold:Ut(n,"yAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"yAxis.axisLabel.fontStyle")==="italic"})},{label:"旋转角度",prop:"yAxis.axisLabel.rotate",type:"inputNumber",fieldProps:{addonAfter:"°",min:-90,max:90,step:1}}]:[]}]},tooltip:{label:"提示",prop:"tooltip",type:"group",children:[{label:" ",prop:"tooltip.show",type:"checkboxGroup",fieldProps:{options:[{label:"提示可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["tooltip.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["tooltip.show"],children:t=>t["tooltip.show"].length?[{label:"文本",prop:"tooltip.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["b"],format:(e,n)=>{e.value["tooltip.formatter"]=n.map(r=>`{${r}}`).join(" ")},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"tooltip.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"tooltip.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["tooltip.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"tooltip.textStyle.color","#000000ff"),size:Ut(n,"tooltip.textStyle.fontSize",12),bold:Ut(n,"tooltip.textStyle.fontWeight")==="bold",italic:Ut(n,"tooltip.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"tooltip.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"tooltip.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"tooltip.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:4},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"tooltip.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["tooltip.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e}},{label:"阴影",prop:"tooltip.extraCssText",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{e.value["tooltip.extraCssText"]=n?"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);":""},valueToForm:(e,n)=>!!Ut(n,"tooltip.extraCssText")}]:[]}]},label:{label:"标签",prop:"label",type:"group",children:[{label:" ",prop:"label.show",type:"checkboxGroup",fieldProps:{options:[{label:"标签可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["label.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["label.show"],children:t=>t["label.show"].length?[{label:"文本",prop:"label.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["a"],format:(e,n)=>{e.value["label.formatter"]=`{${n}}`},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"label.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"label.fontStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["label.color"]=n==null?void 0:n.color,e.value["label.fontSize"]=n.size,e.value["label.fontWeight"]=n.bold?"bold":"normal",e.value["label.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"label.color","#000000ff"),size:Ut(n,"label.fontSize",12),bold:Ut(n,"label.fontWeight")==="bold",italic:Ut(n,"label.fontStyle")==="italic"})},{label:"布局",prop:"",type:"divider"},{label:"位置",prop:"label.position",type:"radioGroup",fieldProps:{options:[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"},{label:"内部",value:"inside"},{label:"内部左侧",value:"insideLeft"},{label:"内部右侧",value:"insideRight"},{label:"内部顶部",value:"insideTop"},{label:"内部底部",value:"insideBottom"}]},defaultValue:"top"},{label:"文本方向",prop:"label.rotate",type:"radioGroup",fieldProps:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},defaultValue:"horizontal",format:(e,n)=>{e.value["label.rotate"]=n==="horizontal"?0:90},valueToForm:e=>e===0?"horizontal":"vertical"},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"label.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"label.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"label.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]}},gpe=t=>(h.pushScopeId("data-v-0b356b47"),t=t(),h.popScopeId(),t),swt={class:"chart-config"},lwt={class:"config-tab"},uwt=gpe(()=>h.createElementVNode("span",null,"数据设置",-1)),cwt=gpe(()=>h.createElementVNode("span",null,"样式设置",-1)),T3=Mr(h.defineComponent({__name:"Config",props:zC,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"线",prop:"",type:"divider"},{label:"线条样式",prop:"series.line.lineStyle.type",type:"select",fieldProps:{options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}},{label:"线宽",prop:"series.line.lineStyle.width",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"形态",prop:"series.line.lineType",type:"radioGroupButton",fieldProps:{options:[{label:"普通",value:"normal"},{label:"平滑",value:"smooth"},{label:"阶梯",value:"step"}]},format:(u,c)=>{switch(c){case"smooth":u.value["series.line.smooth"]=!0,u.value["series.line.step"]=!1;break;case"step":u.value["series.line.smooth"]=!1,u.value["series.line.step"]="end";break;default:u.value["series.line.smooth"]=!1,u.value["series.line.step"]=!1}},valueToForm:(u,c)=>{const f=Ut(c,"series.line.step"),d=Ut(c,"series.line.smooth");return f?"step":d?"smooth":"normal"}},{label:"标记点",prop:"",type:"divider"},{label:"图形",prop:"series.line.symbol",type:"select",fieldProps:{options:[{label:"圆",value:"circle"},{label:"方",value:"rect"},{label:"三角",value:"triangle"},{label:"菱形",value:"diamond"},{label:"标记",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"}]}},{label:"大小",prop:"series.line.symbolSize",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"旋转",prop:"series.line.symbolRotate",type:"inputNumber",fieldProps:{min:0,addonAfter:"°"}}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.tooltip,ir.background],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",swt,[h.createElementVNode("div",lwt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),uwt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),cwt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0b356b47"]]);ch.Config=T3,ch.install=t=>(t.component(ch.name,ch),t);const fwt=Object.freeze(Object.defineProperty({__proto__:null,Config:T3,basicLineProps:zC,default:ch,defaultPropsValue:sse},Symbol.toStringTag,{value:"Module"})),$P={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>vpe}},dwt=[],vpe={fixedBarWidth:!1,barWidth:"auto",barGap:"10%",barCategoryGap:"20%",itemStyle:{borderColor:"#ccc",borderRadius:0,borderWidth:0}},hwt=C4({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:dwt,seriesExtend:vpe}),mpe={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{series:[{type:"bar",name:"系列1",data:[10,30,20,40]},{type:"bar",name:"系列2",data:[15,35,25,45]}]},url:location.origin+"/mock/api/get/example/bar",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:` (res) => { // 取出列表 const data = res.data; // x轴数据 const xData = data.map((item) => item.name); // 系列数据 const series = [ { type: 'bar', name: '价格', data: data.map(item => item.price) }, { type: 'bar', name: '总量', data: data.map(item => item.count) }, ]; // 返回图表数据 return { xData, series }; } `},...hwt}},pwt=h.defineComponent({name:"DBasicBar",components:{Charts:x4},props:$P,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function gwt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const xh=Mr(pwt,[["render",gwt]]),ype=t=>(h.pushScopeId("data-v-3945a2ab"),t=t(),h.popScopeId(),t),vwt={class:"chart-config"},mwt={class:"config-tab"},ywt=ype(()=>h.createElementVNode("span",null,"数据设置",-1)),bwt=ype(()=>h.createElementVNode("span",null,"样式设置",-1)),P3=Mr(h.defineComponent({__name:"Config",props:$P,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"seriesExtend.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(u,c)=>{var f,d;u.value["seriesExtend.barWidth"]=c&&((f=u.value)==null?void 0:f["seriesExtend.barWidth"])!=="auto"?((d=u.value)==null?void 0:d["seriesExtend.barWidth"])||20:"auto"}},{label:"",prop:"",type:"dependency",name:["seriesExtend.fixedBarWidth"],children:u=>u["seriesExtend.fixedBarWidth"]?[{label:"柱宽",prop:"seriesExtend.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"seriesExtend.barGap",type:"slider",defaultValue:30,format:(u,c)=>{u.value["seriesExtend.barGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"分类间隔",prop:"seriesExtend.barCategoryGap",type:"slider",defaultValue:20,format:(u,c)=>{u.value["seriesExtend.barCategoryGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"seriesExtend.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"seriesExtend.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"seriesExtend.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.xAxis,ir.yAxis,ir.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",vwt,[h.createElementVNode("div",mwt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),ywt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),bwt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-3945a2ab"]]);xh.Config=P3,xh.install=t=>(t.component(xh.name,xh),t);const _wt=Object.freeze(Object.defineProperty({__proto__:null,Config:P3,basicBarProps:$P,default:xh,defaultPropsValue:mpe},Symbol.toStringTag,{value:"Module"})),AP={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>bpe}},Owt=[],bpe={top:70,left:20,right:20,bottom:20,startAngle:0,endAngle:360,radius:["0%","75%"]},wwt=C4({title:{text:"饼图标题"},grid:{show:!1},xAxis:{show:!1},yAxis:{show:!1},series:Owt,seriesExtend:bpe}),_pe={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{series:[{type:"pie",name:"系列1",data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"}]}]},url:location.origin+"/mock/api/get/example/pie",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:` (res) => { // 取出列表 const data = res.data; // 系列数据 const series = [ { type: 'pie', name: '月份', data: data.map(item => ({value: item.apple, name: item.name})) } ]; // 返回图表数据 return { series }; } `},...wwt}},Swt=h.defineComponent({name:"DBasicPie",components:{Charts:x4},props:AP,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function xwt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const Ch=Mr(Swt,[["render",xwt]]),Ope=t=>(h.pushScopeId("data-v-4184f99c"),t=t(),h.popScopeId(),t),Cwt={class:"chart-config"},Twt={class:"config-tab"},Pwt=Ope(()=>h.createElementVNode("span",null,"数据设置",-1)),$wt=Ope(()=>h.createElementVNode("span",null,"样式设置",-1)),$3=Mr(h.defineComponent({__name:"Config",props:AP,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"起始角度",prop:"series.pie.startAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"完结角度",prop:"series.pie.endAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"内径占比",prop:"series.pie.radius",type:"slider",format:(u,c)=>{const f=c*.75;return u.value["series.pie.radius"]=[f+"%","75%"],c*100},valueToForm:u=>(u||["0%","75%"])[0].replace("%","")/.75},{label:"容器距离",prop:"",type:"divider"},{label:"距离左侧",prop:"series.pie.left",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离右侧",prop:"series.pie.right",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离顶部",prop:"series.pie.top",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离底部",prop:"series.pie.bottom",type:"inputNumber",fieldProps:{addonAfter:"px"}}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",Cwt,[h.createElementVNode("div",Twt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),Pwt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),$wt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4184f99c"]]);Ch.Config=$3,Ch.install=t=>(t.component(Ch.name,Ch),t);const Awt=Object.freeze(Object.defineProperty({__proto__:null,Config:$3,basicPieProps:AP,default:Ch,defaultPropsValue:_pe},Symbol.toStringTag,{value:"Module"})),Ewt={Title:()=>Promise.resolve().then(()=>pBe),BasicLine:()=>Promise.resolve().then(()=>fwt),BasicBar:()=>Promise.resolve().then(()=>_wt),BasicPie:()=>Promise.resolve().then(()=>Awt),Container:()=>Promise.resolve().then(()=>F3e)},A3={BasicLine:ch,BasicBar:xh,Title:Gf,BasicPie:Ch,Container:Hf},wpe=function(t){return Object.keys(A3).forEach(e=>{const n=A3[e];n!=null&&n.install&&(console.log("注册组件:",e),t.use(n))}),t},Mwt={version:"1.0.0",install:wpe};Lt.BasicBar=xh,Lt.BasicBarConfig=P3,Lt.BasicBarDefaultProps=mpe,Lt.BasicBarProps=$P,Lt.BasicLine=ch,Lt.BasicLineConfig=T3,Lt.BasicLineDefaultProps=sse,Lt.BasicLineProps=zC,Lt.BasicPie=Ch,Lt.BasicPieConfig=$3,Lt.BasicPieDefaultProps=_pe,Lt.BasicPieProps=AP,Lt.Container=Hf,Lt.CusForm=Qu,Lt.DataSourceType=Kn,Lt.Title=Gf,Lt.asyncComponentAll=Ewt,Lt.components=A3,Lt.default=Mwt,Lt.install=wpe,Object.defineProperties(Lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); //# sourceMappingURL=shalu-dashboard-ui.umd.cjs.map